index-6e368050.js 2.9 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503
  1. (function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))r(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"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(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 r(a){if(a.ep)return;a.ep=!0;const i=n(a);fetch(a.href,i)}})();function F3(t,e){const n=Object.create(null),r=t.split(",");for(let a=0;a<r.length;a++)n[r[a]]=!0;return e?a=>!!n[a.toLowerCase()]:a=>!!n[a]}const aa={},eg=[],Qn=()=>{},vde=()=>!1,gde=/^on[^a-z]/,GC=t=>gde.test(t),z3=t=>t.startsWith("onUpdate:"),Ma=Object.assign,U3=(t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)},yde=Object.prototype.hasOwnProperty,Sn=(t,e)=>yde.call(t,e),gt=Array.isArray,tg=t=>mb(t)==="[object Map]",HC=t=>mb(t)==="[object Set]",fp=t=>mb(t)==="[object Date]",zt=t=>typeof t=="function",Ht=t=>typeof t=="string",Zm=t=>typeof t=="symbol",un=t=>t!==null&&typeof t=="object",Qm=t=>un(t)&&zt(t.then)&&zt(t.catch),yj=Object.prototype.toString,mb=t=>yj.call(t),Vx=t=>mb(t).slice(8,-1),K_=t=>mb(t)==="[object Object]",G3=t=>Ht(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,Nx=F3(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),WC=t=>{const e=Object.create(null);return n=>e[n]||(e[n]=t(n))},mde=/-(\w)/g,Ss=WC(t=>t.replace(mde,(e,n)=>n?n.toUpperCase():"")),bde=/\B([A-Z])/g,nd=WC(t=>t.replace(bde,"-$1").toLowerCase()),bb=WC(t=>t.charAt(0).toUpperCase()+t.slice(1)),Ix=WC(t=>t?`on${bb(t)}`:""),Jm=(t,e)=>!Object.is(t,e),Bx=(t,e)=>{for(let n=0;n<t.length;n++)t[n](e)},Y_=(t,e,n)=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:n})},Zk=t=>{const e=parseFloat(t);return isNaN(e)?t:e},Sde=t=>{const e=Ht(t)?Number(t):NaN;return isNaN(e)?t:e};let L$;const Qk=()=>L$||(L$=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Et(t){if(gt(t)){const e={};for(let n=0;n<t.length;n++){const r=t[n],a=Ht(r)?Cde(r):Et(r);if(a)for(const i in a)e[i]=a[i]}return e}else{if(Ht(t))return t;if(un(t))return t}}const wde=/;(?![^(]*\))/g,xde=/:([^]+)/,_de=/\/\*[^]*?\*\//g;function Cde(t){const e={};return t.replace(_de,"").split(wde).forEach(n=>{if(n){const r=n.split(xde);r.length>1&&(e[r[0].trim()]=r[1].trim())}}),e}function Y(t){let e="";if(Ht(t))e=t;else if(gt(t))for(let n=0;n<t.length;n++){const r=Y(t[n]);r&&(e+=r+" ")}else if(un(t))for(const n in t)t[n]&&(e+=n+" ");return e.trim()}function rl(t){if(!t)return null;let{class:e,style:n}=t;return e&&!Ht(e)&&(t.class=Y(e)),n&&(t.style=Et(n)),t}const Tde="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Ede=F3(Tde);function mj(t){return!!t||t===""}function Mde(t,e){if(t.length!==e.length)return!1;let n=!0;for(let r=0;n&&r<t.length;r++)n=xg(t[r],e[r]);return n}function xg(t,e){if(t===e)return!0;let n=fp(t),r=fp(e);if(n||r)return n&&r?t.getTime()===e.getTime():!1;if(n=Zm(t),r=Zm(e),n||r)return t===e;if(n=gt(t),r=gt(e),n||r)return n&&r?Mde(t,e):!1;if(n=un(t),r=un(e),n||r){if(!n||!r)return!1;const a=Object.keys(t).length,i=Object.keys(e).length;if(a!==i)return!1;for(const o in t){const s=t.hasOwnProperty(o),l=e.hasOwnProperty(o);if(s&&!l||!s&&l||!xg(t[o],e[o]))return!1}}return String(t)===String(e)}function bj(t,e){return t.findIndex(n=>xg(n,e))}const We=t=>Ht(t)?t:t==null?"":gt(t)||un(t)&&(t.toString===yj||!zt(t.toString))?JSON.stringify(t,Sj,2):String(t),Sj=(t,e)=>e&&e.__v_isRef?Sj(t,e.value):tg(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((n,[r,a])=>(n[`${r} =>`]=a,n),{})}:HC(e)?{[`Set(${e.size})`]:[...e.values()]}:un(e)&&!gt(e)&&!K_(e)?String(e):e;let Io;class wj{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Io,!e&&Io&&(this.index=(Io.scopes||(Io.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const n=Io;try{return Io=this,e()}finally{Io=n}}}on(){Io=this}off(){Io=this.parent}stop(e){if(this._active){let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.scopes)for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!e){const a=this.parent.scopes.pop();a&&a!==this&&(this.parent.scopes[this.index]=a,a.index=this.index)}this.parent=void 0,this._active=!1}}}function xj(t){return new wj(t)}function Dde(t,e=Io){e&&e.active&&e.effects.push(t)}function _j(){return Io}function Cj(t){Io&&Io.cleanups.push(t)}const H3=t=>{const e=new Set(t);return e.w=0,e.n=0,e},Tj=t=>(t.w&Pf)>0,Ej=t=>(t.n&Pf)>0,Ade=({deps:t})=>{if(t.length)for(let e=0;e<t.length;e++)t[e].w|=Pf},kde=t=>{const{deps:e}=t;if(e.length){let n=0;for(let r=0;r<e.length;r++){const a=e[r];Tj(a)&&!Ej(a)?a.delete(t):e[n++]=a,a.w&=~Pf,a.n&=~Pf}e.length=n}},X_=new WeakMap;let Wy=0,Pf=1;const Jk=30;let el;const Kh=Symbol(""),eR=Symbol("");class W3{constructor(e,n=null,r){this.fn=e,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,Dde(this,r)}run(){if(!this.active)return this.fn();let e=el,n=Mf;for(;e;){if(e===this)return;e=e.parent}try{return this.parent=el,el=this,Mf=!0,Pf=1<<++Wy,Wy<=Jk?Ade(this):O$(this),this.fn()}finally{Wy<=Jk&&kde(this),Pf=1<<--Wy,el=this.parent,Mf=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){el===this?this.deferStop=!0:this.active&&(O$(this),this.onStop&&this.onStop(),this.active=!1)}}function O$(t){const{deps:e}=t;if(e.length){for(let n=0;n<e.length;n++)e[n].delete(t);e.length=0}}let Mf=!0;const Mj=[];function c0(){Mj.push(Mf),Mf=!1}function f0(){const t=Mj.pop();Mf=t===void 0?!0:t}function Ao(t,e,n){if(Mf&&el){let r=X_.get(t);r||X_.set(t,r=new Map);let a=r.get(n);a||r.set(n,a=H3()),Dj(a)}}function Dj(t,e){let n=!1;Wy<=Jk?Ej(t)||(t.n|=Pf,n=!Tj(t)):n=!t.has(el),n&&(t.add(el),el.deps.push(t))}function ac(t,e,n,r,a,i){const o=X_.get(t);if(!o)return;let s=[];if(e==="clear")s=[...o.values()];else if(n==="length"&&gt(t)){const l=Number(r);o.forEach((u,c)=>{(c==="length"||c>=l)&&s.push(u)})}else switch(n!==void 0&&s.push(o.get(n)),e){case"add":gt(t)?G3(n)&&s.push(o.get("length")):(s.push(o.get(Kh)),tg(t)&&s.push(o.get(eR)));break;case"delete":gt(t)||(s.push(o.get(Kh)),tg(t)&&s.push(o.get(eR)));break;case"set":tg(t)&&s.push(o.get(Kh));break}if(s.length===1)s[0]&&tR(s[0]);else{const l=[];for(const u of s)u&&l.push(...u);tR(H3(l))}}function tR(t,e){const n=gt(t)?t:[...t];for(const r of n)r.computed&&V$(r);for(const r of n)r.computed||V$(r)}function V$(t,e){(t!==el||t.allowRecurse)&&(t.scheduler?t.scheduler():t.run())}function Rde(t,e){var n;return(n=X_.get(t))==null?void 0:n.get(e)}const Lde=F3("__proto__,__v_isRef,__isVue"),Aj=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(Zm)),Ode=j3(),Vde=j3(!1,!0),Nde=j3(!0),N$=Ide();function Ide(){const t={};return["includes","indexOf","lastIndexOf"].forEach(e=>{t[e]=function(...n){const r=Wn(this);for(let i=0,o=this.length;i<o;i++)Ao(r,"get",i+"");const a=r[e](...n);return a===-1||a===!1?r[e](...n.map(Wn)):a}}),["push","pop","shift","unshift","splice"].forEach(e=>{t[e]=function(...n){c0();const r=Wn(this)[e].apply(this,n);return f0(),r}}),t}function Bde(t){const e=Wn(this);return Ao(e,"has",t),e.hasOwnProperty(t)}function j3(t=!1,e=!1){return function(r,a,i){if(a==="__v_isReactive")return!t;if(a==="__v_isReadonly")return t;if(a==="__v_isShallow")return e;if(a==="__v_raw"&&i===(t?e?Jde:Vj:e?Oj:Lj).get(r))return r;const o=gt(r);if(!t){if(o&&Sn(N$,a))return Reflect.get(N$,a,i);if(a==="hasOwnProperty")return Bde}const s=Reflect.get(r,a,i);return(Zm(a)?Aj.has(a):Lde(a))||(t||Ao(r,"get",a),e)?s:ft(s)?o&&G3(a)?s:s.value:un(s)?t?d0(s):Vn(s):s}}const $de=kj(),Pde=kj(!0);function kj(t=!1){return function(n,r,a,i){let o=n[r];if(_g(o)&&ft(o)&&!ft(a))return!1;if(!t&&(!q_(a)&&!_g(a)&&(o=Wn(o),a=Wn(a)),!gt(n)&&ft(o)&&!ft(a)))return o.value=a,!0;const s=gt(n)&&G3(r)?Number(r)<n.length:Sn(n,r),l=Reflect.set(n,r,a,i);return n===Wn(i)&&(s?Jm(a,o)&&ac(n,"set",r,a):ac(n,"add",r,a)),l}}function Fde(t,e){const n=Sn(t,e);t[e];const r=Reflect.deleteProperty(t,e);return r&&n&&ac(t,"delete",e,void 0),r}function zde(t,e){const n=Reflect.has(t,e);return(!Zm(e)||!Aj.has(e))&&Ao(t,"has",e),n}function Ude(t){return Ao(t,"iterate",gt(t)?"length":Kh),Reflect.ownKeys(t)}const Rj={get:Ode,set:$de,deleteProperty:Fde,has:zde,ownKeys:Ude},Gde={get:Nde,set(t,e){return!0},deleteProperty(t,e){return!0}},Hde=Ma({},Rj,{get:Vde,set:Pde}),K3=t=>t,jC=t=>Reflect.getPrototypeOf(t);function MS(t,e,n=!1,r=!1){t=t.__v_raw;const a=Wn(t),i=Wn(e);n||(e!==i&&Ao(a,"get",e),Ao(a,"get",i));const{has:o}=jC(a),s=r?K3:n?q3:e1;if(o.call(a,e))return s(t.get(e));if(o.call(a,i))return s(t.get(i));t!==a&&t.get(e)}function DS(t,e=!1){const n=this.__v_raw,r=Wn(n),a=Wn(t);return e||(t!==a&&Ao(r,"has",t),Ao(r,"has",a)),t===a?n.has(t):n.has(t)||n.has(a)}function AS(t,e=!1){return t=t.__v_raw,!e&&Ao(Wn(t),"iterate",Kh),Reflect.get(t,"size",t)}function I$(t){t=Wn(t);const e=Wn(this);return jC(e).has.call(e,t)||(e.add(t),ac(e,"add",t,t)),this}function B$(t,e){e=Wn(e);const n=Wn(this),{has:r,get:a}=jC(n);let i=r.call(n,t);i||(t=Wn(t),i=r.call(n,t));const o=a.call(n,t);return n.set(t,e),i?Jm(e,o)&&ac(n,"set",t,e):ac(n,"add",t,e),this}function $$(t){const e=Wn(this),{has:n,get:r}=jC(e);let a=n.call(e,t);a||(t=Wn(t),a=n.call(e,t)),r&&r.call(e,t);const i=e.delete(t);return a&&ac(e,"delete",t,void 0),i}function P$(){const t=Wn(this),e=t.size!==0,n=t.clear();return e&&ac(t,"clear",void 0,void 0),n}function kS(t,e){return function(r,a){const i=this,o=i.__v_raw,s=Wn(o),l=e?K3:t?q3:e1;return!t&&Ao(s,"iterate",Kh),o.forEach((u,c)=>r.call(a,l(u),l(c),i))}}function RS(t,e,n){return function(...r){const a=this.__v_raw,i=Wn(a),o=tg(i),s=t==="entries"||t===Symbol.iterator&&o,l=t==="keys"&&o,u=a[t](...r),c=n?K3:e?q3:e1;return!e&&Ao(i,"iterate",l?eR:Kh),{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 Oc(t){return function(...e){return t==="delete"?!1:this}}function Wde(){const t={get(i){return MS(this,i)},get size(){return AS(this)},has:DS,add:I$,set:B$,delete:$$,clear:P$,forEach:kS(!1,!1)},e={get(i){return MS(this,i,!1,!0)},get size(){return AS(this)},has:DS,add:I$,set:B$,delete:$$,clear:P$,forEach:kS(!1,!0)},n={get(i){return MS(this,i,!0)},get size(){return AS(this,!0)},has(i){return DS.call(this,i,!0)},add:Oc("add"),set:Oc("set"),delete:Oc("delete"),clear:Oc("clear"),forEach:kS(!0,!1)},r={get(i){return MS(this,i,!0,!0)},get size(){return AS(this,!0)},has(i){return DS.call(this,i,!0)},add:Oc("add"),set:Oc("set"),delete:Oc("delete"),clear:Oc("clear"),forEach:kS(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{t[i]=RS(i,!1,!1),n[i]=RS(i,!0,!1),e[i]=RS(i,!1,!0),r[i]=RS(i,!0,!0)}),[t,n,e,r]}const[jde,Kde,Yde,Xde]=Wde();function Y3(t,e){const n=e?t?Xde:Yde:t?Kde:jde;return(r,a,i)=>a==="__v_isReactive"?!t:a==="__v_isReadonly"?t:a==="__v_raw"?r:Reflect.get(Sn(n,a)&&a in r?n:r,a,i)}const qde={get:Y3(!1,!1)},Zde={get:Y3(!1,!0)},Qde={get:Y3(!0,!1)},Lj=new WeakMap,Oj=new WeakMap,Vj=new WeakMap,Jde=new WeakMap;function ehe(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function the(t){return t.__v_skip||!Object.isExtensible(t)?0:ehe(Vx(t))}function Vn(t){return _g(t)?t:X3(t,!1,Rj,qde,Lj)}function Nj(t){return X3(t,!1,Hde,Zde,Oj)}function d0(t){return X3(t,!0,Gde,Qde,Vj)}function X3(t,e,n,r,a){if(!un(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;const i=a.get(t);if(i)return i;const o=the(t);if(o===0)return t;const s=new Proxy(t,o===2?r:n);return a.set(t,s),s}function ng(t){return _g(t)?ng(t.__v_raw):!!(t&&t.__v_isReactive)}function _g(t){return!!(t&&t.__v_isReadonly)}function q_(t){return!!(t&&t.__v_isShallow)}function Ij(t){return ng(t)||_g(t)}function Wn(t){const e=t&&t.__v_raw;return e?Wn(e):t}function Df(t){return Y_(t,"__v_skip",!0),t}const e1=t=>un(t)?Vn(t):t,q3=t=>un(t)?d0(t):t;function Bj(t){Mf&&el&&(t=Wn(t),Dj(t.dep||(t.dep=H3())))}function Z3(t,e){t=Wn(t);const n=t.dep;n&&tR(n)}function ft(t){return!!(t&&t.__v_isRef===!0)}function B(t){return $j(t,!1)}function vr(t){return $j(t,!0)}function $j(t,e){return ft(t)?t:new nhe(t,e)}class nhe{constructor(e,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?e:Wn(e),this._value=n?e:e1(e)}get value(){return Bj(this),this._value}set value(e){const n=this.__v_isShallow||q_(e)||_g(e);e=n?e:Wn(e),Jm(e,this._rawValue)&&(this._rawValue=e,this._value=n?e:e1(e),Z3(this))}}function ey(t){Z3(t)}function b(t){return ft(t)?t.value:t}const rhe={get:(t,e,n)=>b(Reflect.get(t,e,n)),set:(t,e,n,r)=>{const a=t[e];return ft(a)&&!ft(n)?(a.value=n,!0):Reflect.set(t,e,n,r)}};function Pj(t){return ng(t)?t:new Proxy(t,rhe)}function Wa(t){const e=gt(t)?new Array(t.length):{};for(const n in t)e[n]=Fj(t,n);return e}class ahe{constructor(e,n,r){this._object=e,this._key=n,this._defaultValue=r,this.__v_isRef=!0}get value(){const e=this._object[this._key];return e===void 0?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return Rde(Wn(this._object),this._key)}}class ihe{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function Wr(t,e,n){return ft(t)?t:zt(t)?new ihe(t):un(t)&&arguments.length>1?Fj(t,e,n):B(t)}function Fj(t,e,n){const r=t[e];return ft(r)?r:new ahe(t,e,n)}class ohe{constructor(e,n,r,a){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new W3(e,()=>{this._dirty||(this._dirty=!0,Z3(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!a,this.__v_isReadonly=r}get value(){const e=Wn(this);return Bj(e),(e._dirty||!e._cacheable)&&(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function zj(t,e,n=!1){let r,a;const i=zt(t);return i?(r=t,a=Qn):(r=t.get,a=t.set),new ohe(r,a,i||!a,n)}function she(t,...e){}function Af(t,e,n,r){let a;try{a=r?t(...r):t()}catch(i){KC(i,e,n)}return a}function gs(t,e,n,r){if(zt(t)){const i=Af(t,e,n,r);return i&&Qm(i)&&i.catch(o=>{KC(o,e,n)}),i}const a=[];for(let i=0;i<t.length;i++)a.push(gs(t[i],e,n,r));return a}function KC(t,e,n,r=!0){const a=e?e.vnode:null;if(e){let i=e.parent;const o=e.proxy,s=n;for(;i;){const u=i.ec;if(u){for(let c=0;c<u.length;c++)if(u[c](t,o,s)===!1)return}i=i.parent}const l=e.appContext.config.errorHandler;if(l){Af(l,null,10,[t,o,s]);return}}lhe(t,n,a,r)}function lhe(t,e,n,r=!0){console.error(t)}let t1=!1,nR=!1;const ki=[];let Yl=0;const rg=[];let $u=null,gh=0;const Uj=Promise.resolve();let Q3=null;function xt(t){const e=Q3||Uj;return t?e.then(this?t.bind(this):t):e}function uhe(t){let e=Yl+1,n=ki.length;for(;e<n;){const r=e+n>>>1;n1(ki[r])<t?e=r+1:n=r}return e}function J3(t){(!ki.length||!ki.includes(t,t1&&t.allowRecurse?Yl+1:Yl))&&(t.id==null?ki.push(t):ki.splice(uhe(t.id),0,t),Gj())}function Gj(){!t1&&!nR&&(nR=!0,Q3=Uj.then(Wj))}function che(t){const e=ki.indexOf(t);e>Yl&&ki.splice(e,1)}function fhe(t){gt(t)?rg.push(...t):(!$u||!$u.includes(t,t.allowRecurse?gh+1:gh))&&rg.push(t),Gj()}function F$(t,e=t1?Yl+1:0){for(;e<ki.length;e++){const n=ki[e];n&&n.pre&&(ki.splice(e,1),e--,n())}}function Hj(t){if(rg.length){const e=[...new Set(rg)];if(rg.length=0,$u){$u.push(...e);return}for($u=e,$u.sort((n,r)=>n1(n)-n1(r)),gh=0;gh<$u.length;gh++)$u[gh]();$u=null,gh=0}}const n1=t=>t.id==null?1/0:t.id,dhe=(t,e)=>{const n=n1(t)-n1(e);if(n===0){if(t.pre&&!e.pre)return-1;if(e.pre&&!t.pre)return 1}return n};function Wj(t){nR=!1,t1=!0,ki.sort(dhe);const e=Qn;try{for(Yl=0;Yl<ki.length;Yl++){const n=ki[Yl];n&&n.active!==!1&&Af(n,null,14)}}finally{Yl=0,ki.length=0,Hj(),t1=!1,Q3=null,(ki.length||rg.length)&&Wj()}}function hhe(t,e,...n){if(t.isUnmounted)return;const r=t.vnode.props||aa;let a=n;const i=e.startsWith("update:"),o=i&&e.slice(7);if(o&&o in r){const c=`${o==="modelValue"?"model":o}Modifiers`,{number:f,trim:d}=r[c]||aa;d&&(a=n.map(h=>Ht(h)?h.trim():h)),f&&(a=n.map(Zk))}let s,l=r[s=Ix(e)]||r[s=Ix(Ss(e))];!l&&i&&(l=r[s=Ix(nd(e))]),l&&gs(l,t,6,a);const u=r[s+"Once"];if(u){if(!t.emitted)t.emitted={};else if(t.emitted[s])return;t.emitted[s]=!0,gs(u,t,6,a)}}function jj(t,e,n=!1){const r=e.emitsCache,a=r.get(t);if(a!==void 0)return a;const i=t.emits;let o={},s=!1;if(!zt(t)){const l=u=>{const c=jj(u,e,!0);c&&(s=!0,Ma(o,c))};!n&&e.mixins.length&&e.mixins.forEach(l),t.extends&&l(t.extends),t.mixins&&t.mixins.forEach(l)}return!i&&!s?(un(t)&&r.set(t,null),null):(gt(i)?i.forEach(l=>o[l]=null):Ma(o,i),un(t)&&r.set(t,o),o)}function YC(t,e){return!t||!GC(e)?!1:(e=e.slice(2).replace(/Once$/,""),Sn(t,e[0].toLowerCase()+e.slice(1))||Sn(t,nd(e))||Sn(t,e))}let pi=null,XC=null;function Z_(t){const e=pi;return pi=t,XC=t&&t.type.__scopeId||null,e}function Sb(t){XC=t}function wb(){XC=null}function j(t,e=pi,n){if(!e||t._n)return t;const r=(...a)=>{r._d&&J$(-1);const i=Z_(e);let o;try{o=t(...a)}finally{Z_(i),r._d&&J$(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function oM(t){const{type:e,vnode:n,proxy:r,withProxy:a,props:i,propsOptions:[o],slots:s,attrs:l,emit:u,render:c,renderCache:f,data:d,setupState:h,ctx:p,inheritAttrs:v}=t;let g,y;const m=Z_(t);try{if(n.shapeFlag&4){const w=a||r;g=jl(c.call(w,w,f,i,h,d,p)),y=l}else{const w=e;g=jl(w.length>1?w(i,{attrs:l,slots:s,emit:u}):w(i,null)),y=e.props?l:phe(l)}}catch(w){mm.length=0,KC(w,t,1),g=N(Qi)}let S=g;if(y&&v!==!1){const w=Object.keys(y),{shapeFlag:C}=S;w.length&&C&7&&(o&&w.some(z3)&&(y=vhe(y,o)),S=oc(S,y))}return n.dirs&&(S=oc(S),S.dirs=S.dirs?S.dirs.concat(n.dirs):n.dirs),n.transition&&(S.transition=n.transition),g=S,Z_(m),g}const phe=t=>{let e;for(const n in t)(n==="class"||n==="style"||GC(n))&&((e||(e={}))[n]=t[n]);return e},vhe=(t,e)=>{const n={};for(const r in t)(!z3(r)||!(r.slice(9)in e))&&(n[r]=t[r]);return n};function ghe(t,e,n){const{props:r,children:a,component:i}=t,{props:o,children:s,patchFlag:l}=e,u=i.emitsOptions;if(e.dirs||e.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?z$(r,o,u):!!o;if(l&8){const c=e.dynamicProps;for(let f=0;f<c.length;f++){const d=c[f];if(o[d]!==r[d]&&!YC(u,d))return!0}}}else return(a||s)&&(!s||!s.$stable)?!0:r===o?!1:r?o?z$(r,o,u):!0:!!o;return!1}function z$(t,e,n){const r=Object.keys(e);if(r.length!==Object.keys(t).length)return!0;for(let a=0;a<r.length;a++){const i=r[a];if(e[i]!==t[i]&&!YC(n,i))return!0}return!1}function yhe({vnode:t,parent:e},n){for(;e&&e.subTree===t;)(t=e.vnode).el=n,e=e.parent}const mhe=t=>t.__isSuspense;function bhe(t,e){e&&e.pendingBranch?gt(t)?e.effects.push(...t):e.effects.push(t):fhe(t)}function Uo(t,e){return e4(t,null,e)}const LS={};function Ke(t,e,n){return e4(t,e,n)}function e4(t,e,{immediate:n,deep:r,flush:a,onTrack:i,onTrigger:o}=aa){var s;const l=_j()===((s=ei)==null?void 0:s.scope)?ei:null;let u,c=!1,f=!1;if(ft(t)?(u=()=>t.value,c=q_(t)):ng(t)?(u=()=>t,r=!0):gt(t)?(f=!0,c=t.some(w=>ng(w)||q_(w)),u=()=>t.map(w=>{if(ft(w))return w.value;if(ng(w))return Ah(w);if(zt(w))return Af(w,l,2)})):zt(t)?e?u=()=>Af(t,l,2):u=()=>{if(!(l&&l.isUnmounted))return d&&d(),gs(t,l,3,[h])}:u=Qn,e&&r){const w=u;u=()=>Ah(w())}let d,h=w=>{d=m.onStop=()=>{Af(w,l,4)}},p;if(s1)if(h=Qn,e?n&&gs(e,l,3,[u(),f?[]:void 0,h]):u(),a==="sync"){const w=spe();p=w.__watcherHandles||(w.__watcherHandles=[])}else return Qn;let v=f?new Array(t.length).fill(LS):LS;const g=()=>{if(m.active)if(e){const w=m.run();(r||c||(f?w.some((C,_)=>Jm(C,v[_])):Jm(w,v)))&&(d&&d(),gs(e,l,3,[w,v===LS?void 0:f&&v[0]===LS?[]:v,h]),v=w)}else m.run()};g.allowRecurse=!!e;let y;a==="sync"?y=g:a==="post"?y=()=>bo(g,l&&l.suspense):(g.pre=!0,l&&(g.id=l.uid),y=()=>J3(g));const m=new W3(u,y);e?n?g():v=m.run():a==="post"?bo(m.run.bind(m),l&&l.suspense):m.run();const S=()=>{m.stop(),l&&l.scope&&U3(l.scope.effects,m)};return p&&p.push(S),S}function She(t,e,n){const r=this.proxy,a=Ht(t)?t.includes(".")?Kj(r,t):()=>r[t]:t.bind(r,r);let i;zt(e)?i=e:(i=e.handler,n=e);const o=ei;Cg(this);const s=e4(a,i.bind(r),n);return o?Cg(o):Yh(),s}function Kj(t,e){const n=e.split(".");return()=>{let r=t;for(let a=0;a<n.length&&r;a++)r=r[n[a]];return r}}function Ah(t,e){if(!un(t)||t.__v_skip||(e=e||new Set,e.has(t)))return t;if(e.add(t),ft(t))Ah(t.value,e);else if(gt(t))for(let n=0;n<t.length;n++)Ah(t[n],e);else if(HC(t)||tg(t))t.forEach(n=>{Ah(n,e)});else if(K_(t))for(const n in t)Ah(t[n],e);return t}function Ft(t,e){const n=pi;if(n===null)return t;const r=tT(n)||n.proxy,a=t.dirs||(t.dirs=[]);for(let i=0;i<e.length;i++){let[o,s,l,u=aa]=e[i];o&&(zt(o)&&(o={mounted:o,updated:o}),o.deep&&Ah(s),a.push({dir:o,instance:r,value:s,oldValue:void 0,arg:l,modifiers:u}))}return t}function xd(t,e,n,r){const a=t.dirs,i=e&&e.dirs;for(let o=0;o<a.length;o++){const s=a[o];i&&(s.oldValue=i[o].value);let l=s.dir[r];l&&(c0(),gs(l,n,8,[t.el,s,t,e]),f0())}}function Yj(){const t={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Ut(()=>{t.isMounted=!0}),Sr(()=>{t.isUnmounting=!0}),t}const qo=[Function,Array],Xj={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:qo,onEnter:qo,onAfterEnter:qo,onEnterCancelled:qo,onBeforeLeave:qo,onLeave:qo,onAfterLeave:qo,onLeaveCancelled:qo,onBeforeAppear:qo,onAppear:qo,onAfterAppear:qo,onAppearCancelled:qo},whe={name:"BaseTransition",props:Xj,setup(t,{slots:e}){const n=Qt(),r=Yj();let a;return()=>{const i=e.default&&t4(e.default(),!0);if(!i||!i.length)return;let o=i[0];if(i.length>1){for(const v of i)if(v.type!==Qi){o=v;break}}const s=Wn(t),{mode:l}=s;if(r.isLeaving)return sM(o);const u=U$(o);if(!u)return sM(o);const c=r1(u,s,r,n);a1(u,c);const f=n.subTree,d=f&&U$(f);let h=!1;const{getTransitionKey:p}=u.type;if(p){const v=p();a===void 0?a=v:v!==a&&(a=v,h=!0)}if(d&&d.type!==Qi&&(!yh(u,d)||h)){const v=r1(d,s,r,n);if(a1(d,v),l==="out-in")return r.isLeaving=!0,v.afterLeave=()=>{r.isLeaving=!1,n.update.active!==!1&&n.update()},sM(o);l==="in-out"&&u.type!==Qi&&(v.delayLeave=(g,y,m)=>{const S=qj(r,d);S[String(d.key)]=d,g._leaveCb=()=>{y(),g._leaveCb=void 0,delete c.delayedLeave},c.delayedLeave=m})}return o}}},xhe=whe;function qj(t,e){const{leavingVNodes:n}=t;let r=n.get(e.type);return r||(r=Object.create(null),n.set(e.type,r)),r}function r1(t,e,n,r){const{appear:a,mode:i,persisted:o=!1,onBeforeEnter:s,onEnter:l,onAfterEnter:u,onEnterCancelled:c,onBeforeLeave:f,onLeave:d,onAfterLeave:h,onLeaveCancelled:p,onBeforeAppear:v,onAppear:g,onAfterAppear:y,onAppearCancelled:m}=e,S=String(t.key),w=qj(n,t),C=(T,M)=>{T&&gs(T,r,9,M)},_=(T,M)=>{const E=M[1];C(T,M),gt(T)?T.every(A=>A.length<=1)&&E():T.length<=1&&E()},x={mode:i,persisted:o,beforeEnter(T){let M=s;if(!n.isMounted)if(a)M=v||s;else return;T._leaveCb&&T._leaveCb(!0);const E=w[S];E&&yh(t,E)&&E.el._leaveCb&&E.el._leaveCb(),C(M,[T])},enter(T){let M=l,E=u,A=c;if(!n.isMounted)if(a)M=g||l,E=y||u,A=m||c;else return;let k=!1;const L=T._enterCb=I=>{k||(k=!0,I?C(A,[T]):C(E,[T]),x.delayedLeave&&x.delayedLeave(),T._enterCb=void 0)};M?_(M,[T,L]):L()},leave(T,M){const E=String(t.key);if(T._enterCb&&T._enterCb(!0),n.isUnmounting)return M();C(f,[T]);let A=!1;const k=T._leaveCb=L=>{A||(A=!0,M(),L?C(p,[T]):C(h,[T]),T._leaveCb=void 0,w[E]===t&&delete w[E])};w[E]=t,d?_(d,[T,k]):k()},clone(T){return r1(T,e,n,r)}};return x}function sM(t){if(qC(t))return t=oc(t),t.children=null,t}function U$(t){return qC(t)?t.children?t.children[0]:void 0:t}function a1(t,e){t.shapeFlag&6&&t.component?a1(t.component.subTree,e):t.shapeFlag&128?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}function t4(t,e=!1,n){let r=[],a=0;for(let i=0;i<t.length;i++){let o=t[i];const s=n==null?o.key:String(n)+String(o.key!=null?o.key:i);o.type===Ct?(o.patchFlag&128&&a++,r=r.concat(t4(o.children,e,s))):(e||o.type!==Qi)&&r.push(s!=null?oc(o,{key:s}):o)}if(a>1)for(let i=0;i<r.length;i++)r[i].patchFlag=-2;return r}function ye(t,e){return zt(t)?(()=>Ma({name:t.name},e,{setup:t}))():t}const vm=t=>!!t.type.__asyncLoader,qC=t=>t.type.__isKeepAlive;function _he(t,e){Qj(t,"a",e)}function Zj(t,e){Qj(t,"da",e)}function Qj(t,e,n=ei){const r=t.__wdc||(t.__wdc=()=>{let a=n;for(;a;){if(a.isDeactivated)return;a=a.parent}return t()});if(ZC(e,r,n),n){let a=n.parent;for(;a&&a.parent;)qC(a.parent.vnode)&&Che(r,e,n,a),a=a.parent}}function Che(t,e,n,r){const a=ZC(e,t,r,!0);bu(()=>{U3(r[e],a)},n)}function ZC(t,e,n=ei,r=!1){if(n){const a=n[t]||(n[t]=[]),i=e.__weh||(e.__weh=(...o)=>{if(n.isUnmounted)return;c0(),Cg(n);const s=gs(e,n,t,o);return Yh(),f0(),s});return r?a.unshift(i):a.push(i),i}}const mc=t=>(e,n=ei)=>(!s1||t==="sp")&&ZC(t,(...r)=>e(...r),n),QC=mc("bm"),Ut=mc("m"),Jj=mc("bu"),bc=mc("u"),Sr=mc("bum"),bu=mc("um"),The=mc("sp"),Ehe=mc("rtg"),Mhe=mc("rtc");function Dhe(t,e=ei){ZC("ec",t,e)}const n4="components",Ahe="directives";function $e(t,e){return r4(n4,t,!0,e)||t}const eK=Symbol.for("v-ndc");function on(t){return Ht(t)?r4(n4,t,!1)||t:t||eK}function i1(t){return r4(Ahe,t)}function r4(t,e,n=!0,r=!1){const a=pi||ei;if(a){const i=a.type;if(t===n4){const s=ape(i,!1);if(s&&(s===e||s===Ss(e)||s===bb(Ss(e))))return i}const o=G$(a[t]||i[t],e)||G$(a.appContext[t],e);return!o&&r?i:o}}function G$(t,e){return t&&(t[e]||t[Ss(e)]||t[bb(Ss(e))])}function dn(t,e,n,r){let a;const i=n&&n[r];if(gt(t)||Ht(t)){a=new Array(t.length);for(let o=0,s=t.length;o<s;o++)a[o]=e(t[o],o,void 0,i&&i[o])}else if(typeof t=="number"){a=new Array(t);for(let o=0;o<t;o++)a[o]=e(o+1,o,void 0,i&&i[o])}else if(un(t))if(t[Symbol.iterator])a=Array.from(t,(o,s)=>e(o,s,void 0,i&&i[s]));else{const o=Object.keys(t);a=new Array(o.length);for(let s=0,l=o.length;s<l;s++){const u=o[s];a[s]=e(t[u],u,s,i&&i[s])}}else a=[];return n&&(n[r]=a),a}function ic(t,e){for(let n=0;n<e.length;n++){const r=e[n];if(gt(r))for(let a=0;a<r.length;a++)t[r[a].name]=r[a].fn;else r&&(t[r.name]=r.key?(...a)=>{const i=r.fn(...a);return i&&(i.key=r.key),i}:r.fn)}return t}function Ge(t,e,n={},r,a){if(pi.isCE||pi.parent&&vm(pi.parent)&&pi.parent.isCE)return e!=="default"&&(n.name=e),N("slot",n,r&&r());let i=t[e];i&&i._c&&(i._d=!1),G();const o=i&&tK(i(n)),s=Ee(Ct,{key:n.key||o&&o.key||`_${e}`},o||(r?r():[]),o&&t._===1?64:-2);return!a&&s.scopeId&&(s.slotScopeIds=[s.scopeId+"-s"]),i&&i._c&&(i._d=!0),s}function tK(t){return t.some(e=>Gr(e)?!(e.type===Qi||e.type===Ct&&!tK(e.children)):!0)?t:null}function khe(t,e){const n={};for(const r in t)n[e&&/[A-Z]/.test(r)?`on:${r}`:Ix(r)]=t[r];return n}const rR=t=>t?hK(t)?tT(t)||t.proxy:rR(t.parent):null,gm=Ma(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>rR(t.parent),$root:t=>rR(t.root),$emit:t=>t.emit,$options:t=>a4(t),$forceUpdate:t=>t.f||(t.f=()=>J3(t.update)),$nextTick:t=>t.n||(t.n=xt.bind(t.proxy)),$watch:t=>She.bind(t)}),lM=(t,e)=>t!==aa&&!t.__isScriptSetup&&Sn(t,e),Rhe={get({_:t},e){const{ctx:n,setupState:r,data:a,props:i,accessCache:o,type:s,appContext:l}=t;let u;if(e[0]!=="$"){const h=o[e];if(h!==void 0)switch(h){case 1:return r[e];case 2:return a[e];case 4:return n[e];case 3:return i[e]}else{if(lM(r,e))return o[e]=1,r[e];if(a!==aa&&Sn(a,e))return o[e]=2,a[e];if((u=t.propsOptions[0])&&Sn(u,e))return o[e]=3,i[e];if(n!==aa&&Sn(n,e))return o[e]=4,n[e];aR&&(o[e]=0)}}const c=gm[e];let f,d;if(c)return e==="$attrs"&&Ao(t,"get",e),c(t);if((f=s.__cssModules)&&(f=f[e]))return f;if(n!==aa&&Sn(n,e))return o[e]=4,n[e];if(d=l.config.globalProperties,Sn(d,e))return d[e]},set({_:t},e,n){const{data:r,setupState:a,ctx:i}=t;return lM(a,e)?(a[e]=n,!0):r!==aa&&Sn(r,e)?(r[e]=n,!0):Sn(t.props,e)||e[0]==="$"&&e.slice(1)in t?!1:(i[e]=n,!0)},has({_:{data:t,setupState:e,accessCache:n,ctx:r,appContext:a,propsOptions:i}},o){let s;return!!n[o]||t!==aa&&Sn(t,o)||lM(e,o)||(s=i[0])&&Sn(s,o)||Sn(r,o)||Sn(gm,o)||Sn(a.config.globalProperties,o)},defineProperty(t,e,n){return n.get!=null?t._.accessCache[e]=0:Sn(n,"value")&&this.set(t,e,n.value,null),Reflect.defineProperty(t,e,n)}};function wi(){return nK().slots}function Dp(){return nK().attrs}function nK(){const t=Qt();return t.setupContext||(t.setupContext=vK(t))}function H$(t){return gt(t)?t.reduce((e,n)=>(e[n]=null,e),{}):t}let aR=!0;function Lhe(t){const e=a4(t),n=t.proxy,r=t.ctx;aR=!1,e.beforeCreate&&W$(e.beforeCreate,t,"bc");const{data:a,computed:i,methods:o,watch:s,provide:l,inject:u,created:c,beforeMount:f,mounted:d,beforeUpdate:h,updated:p,activated:v,deactivated:g,beforeDestroy:y,beforeUnmount:m,destroyed:S,unmounted:w,render:C,renderTracked:_,renderTriggered:x,errorCaptured:T,serverPrefetch:M,expose:E,inheritAttrs:A,components:k,directives:L,filters:I}=e;if(u&&Ohe(u,r,null),o)for(const $ in o){const W=o[$];zt(W)&&(r[$]=W.bind(n))}if(a){const $=a.call(n,n);un($)&&(t.data=Vn($))}if(aR=!0,i)for(const $ in i){const W=i[$],V=zt(W)?W.bind(n,n):zt(W.get)?W.get.bind(n,n):Qn,z=!zt(W)&&zt(W.set)?W.set.bind(n):Qn,K=U({get:V,set:z});Object.defineProperty(r,$,{enumerable:!0,configurable:!0,get:()=>K.value,set:Z=>K.value=Z})}if(s)for(const $ in s)rK(s[$],r,n,$);if(l){const $=zt(l)?l.call(n):l;Reflect.ownKeys($).forEach(W=>{fn(W,$[W])})}c&&W$(c,t,"c");function F($,W){gt(W)?W.forEach(V=>$(V.bind(n))):W&&$(W.bind(n))}if(F(QC,f),F(Ut,d),F(Jj,h),F(bc,p),F(_he,v),F(Zj,g),F(Dhe,T),F(Mhe,_),F(Ehe,x),F(Sr,m),F(bu,w),F(The,M),gt(E))if(E.length){const $=t.exposed||(t.exposed={});E.forEach(W=>{Object.defineProperty($,W,{get:()=>n[W],set:V=>n[W]=V})})}else t.exposed||(t.exposed={});C&&t.render===Qn&&(t.render=C),A!=null&&(t.inheritAttrs=A),k&&(t.components=k),L&&(t.directives=L)}function Ohe(t,e,n=Qn){gt(t)&&(t=iR(t));for(const r in t){const a=t[r];let i;un(a)?"default"in a?i=yt(a.from||r,a.default,!0):i=yt(a.from||r):i=yt(a),ft(i)?Object.defineProperty(e,r,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):e[r]=i}}function W$(t,e,n){gs(gt(t)?t.map(r=>r.bind(e.proxy)):t.bind(e.proxy),e,n)}function rK(t,e,n,r){const a=r.includes(".")?Kj(n,r):()=>n[r];if(Ht(t)){const i=e[t];zt(i)&&Ke(a,i)}else if(zt(t))Ke(a,t.bind(n));else if(un(t))if(gt(t))t.forEach(i=>rK(i,e,n,r));else{const i=zt(t.handler)?t.handler.bind(n):e[t.handler];zt(i)&&Ke(a,i,t)}}function a4(t){const e=t.type,{mixins:n,extends:r}=e,{mixins:a,optionsCache:i,config:{optionMergeStrategies:o}}=t.appContext,s=i.get(e);let l;return s?l=s:!a.length&&!n&&!r?l=e:(l={},a.length&&a.forEach(u=>Q_(l,u,o,!0)),Q_(l,e,o)),un(e)&&i.set(e,l),l}function Q_(t,e,n,r=!1){const{mixins:a,extends:i}=e;i&&Q_(t,i,n,!0),a&&a.forEach(o=>Q_(t,o,n,!0));for(const o in e)if(!(r&&o==="expose")){const s=Vhe[o]||n&&n[o];t[o]=s?s(t[o],e[o]):e[o]}return t}const Vhe={data:j$,props:K$,emits:K$,methods:jy,computed:jy,beforeCreate:Hi,created:Hi,beforeMount:Hi,mounted:Hi,beforeUpdate:Hi,updated:Hi,beforeDestroy:Hi,beforeUnmount:Hi,destroyed:Hi,unmounted:Hi,activated:Hi,deactivated:Hi,errorCaptured:Hi,serverPrefetch:Hi,components:jy,directives:jy,watch:Ihe,provide:j$,inject:Nhe};function j$(t,e){return e?t?function(){return Ma(zt(t)?t.call(this,this):t,zt(e)?e.call(this,this):e)}:e:t}function Nhe(t,e){return jy(iR(t),iR(e))}function iR(t){if(gt(t)){const e={};for(let n=0;n<t.length;n++)e[t[n]]=t[n];return e}return t}function Hi(t,e){return t?[...new Set([].concat(t,e))]:e}function jy(t,e){return t?Ma(Object.create(null),t,e):e}function K$(t,e){return t?gt(t)&&gt(e)?[...new Set([...t,...e])]:Ma(Object.create(null),H$(t),H$(e??{})):e}function Ihe(t,e){if(!t)return e;if(!e)return t;const n=Ma(Object.create(null),t);for(const r in e)n[r]=Hi(t[r],e[r]);return n}function aK(){return{app:null,config:{isNativeTag:vde,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Bhe=0;function $he(t,e){return function(r,a=null){zt(r)||(r=Ma({},r)),a!=null&&!un(a)&&(a=null);const i=aK(),o=new Set;let s=!1;const l=i.app={_uid:Bhe++,_component:r,_props:a,_container:null,_context:i,_instance:null,version:lpe,get config(){return i.config},set config(u){},use(u,...c){return o.has(u)||(u&&zt(u.install)?(o.add(u),u.install(l,...c)):zt(u)&&(o.add(u),u(l,...c))),l},mixin(u){return i.mixins.includes(u)||i.mixins.push(u),l},component(u,c){return c?(i.components[u]=c,l):i.components[u]},directive(u,c){return c?(i.directives[u]=c,l):i.directives[u]},mount(u,c,f){if(!s){const d=N(r,a);return d.appContext=i,c&&e?e(d,u):t(d,u,f),s=!0,l._container=u,u.__vue_app__=l,tT(d.component)||d.component.proxy}},unmount(){s&&(t(null,l._container),delete l._container.__vue_app__)},provide(u,c){return i.provides[u]=c,l},runWithContext(u){J_=l;try{return u()}finally{J_=null}}};return l}}let J_=null;function fn(t,e){if(ei){let n=ei.provides;const r=ei.parent&&ei.parent.provides;r===n&&(n=ei.provides=Object.create(r)),n[t]=e}}function yt(t,e,n=!1){const r=ei||pi;if(r||J_){const a=r?r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:J_._context.provides;if(a&&t in a)return a[t];if(arguments.length>1)return n&&zt(e)?e.call(r&&r.proxy):e}}function Phe(t,e,n,r=!1){const a={},i={};Y_(i,JC,1),t.propsDefaults=Object.create(null),iK(t,e,a,i);for(const o in t.propsOptions[0])o in a||(a[o]=void 0);n?t.props=r?a:Nj(a):t.type.props?t.props=a:t.props=i,t.attrs=i}function Fhe(t,e,n,r){const{props:a,attrs:i,vnode:{patchFlag:o}}=t,s=Wn(a),[l]=t.propsOptions;let u=!1;if((r||o>0)&&!(o&16)){if(o&8){const c=t.vnode.dynamicProps;for(let f=0;f<c.length;f++){let d=c[f];if(YC(t.emitsOptions,d))continue;const h=e[d];if(l)if(Sn(i,d))h!==i[d]&&(i[d]=h,u=!0);else{const p=Ss(d);a[p]=oR(l,s,p,h,t,!1)}else h!==i[d]&&(i[d]=h,u=!0)}}}else{iK(t,e,a,i)&&(u=!0);let c;for(const f in s)(!e||!Sn(e,f)&&((c=nd(f))===f||!Sn(e,c)))&&(l?n&&(n[f]!==void 0||n[c]!==void 0)&&(a[f]=oR(l,s,f,void 0,t,!0)):delete a[f]);if(i!==s)for(const f in i)(!e||!Sn(e,f))&&(delete i[f],u=!0)}u&&ac(t,"set","$attrs")}function iK(t,e,n,r){const[a,i]=t.propsOptions;let o=!1,s;if(e)for(let l in e){if(Nx(l))continue;const u=e[l];let c;a&&Sn(a,c=Ss(l))?!i||!i.includes(c)?n[c]=u:(s||(s={}))[c]=u:YC(t.emitsOptions,l)||(!(l in r)||u!==r[l])&&(r[l]=u,o=!0)}if(i){const l=Wn(n),u=s||aa;for(let c=0;c<i.length;c++){const f=i[c];n[f]=oR(a,l,f,u[f],t,!Sn(u,f))}}return o}function oR(t,e,n,r,a,i){const o=t[n];if(o!=null){const s=Sn(o,"default");if(s&&r===void 0){const l=o.default;if(o.type!==Function&&!o.skipFactory&&zt(l)){const{propsDefaults:u}=a;n in u?r=u[n]:(Cg(a),r=u[n]=l.call(null,e),Yh())}else r=l}o[0]&&(i&&!s?r=!1:o[1]&&(r===""||r===nd(n))&&(r=!0))}return r}function oK(t,e,n=!1){const r=e.propsCache,a=r.get(t);if(a)return a;const i=t.props,o={},s=[];let l=!1;if(!zt(t)){const c=f=>{l=!0;const[d,h]=oK(f,e,!0);Ma(o,d),h&&s.push(...h)};!n&&e.mixins.length&&e.mixins.forEach(c),t.extends&&c(t.extends),t.mixins&&t.mixins.forEach(c)}if(!i&&!l)return un(t)&&r.set(t,eg),eg;if(gt(i))for(let c=0;c<i.length;c++){const f=Ss(i[c]);Y$(f)&&(o[f]=aa)}else if(i)for(const c in i){const f=Ss(c);if(Y$(f)){const d=i[c],h=o[f]=gt(d)||zt(d)?{type:d}:Ma({},d);if(h){const p=Z$(Boolean,h.type),v=Z$(String,h.type);h[0]=p>-1,h[1]=v<0||p<v,(p>-1||Sn(h,"default"))&&s.push(f)}}}const u=[o,s];return un(t)&&r.set(t,u),u}function Y$(t){return t[0]!=="$"}function X$(t){const e=t&&t.toString().match(/^\s*(function|class) (\w+)/);return e?e[2]:t===null?"null":""}function q$(t,e){return X$(t)===X$(e)}function Z$(t,e){return gt(e)?e.findIndex(n=>q$(n,t)):zt(e)&&q$(e,t)?0:-1}const sK=t=>t[0]==="_"||t==="$stable",i4=t=>gt(t)?t.map(jl):[jl(t)],zhe=(t,e,n)=>{if(e._n)return e;const r=j((...a)=>i4(e(...a)),n);return r._c=!1,r},lK=(t,e,n)=>{const r=t._ctx;for(const a in t){if(sK(a))continue;const i=t[a];if(zt(i))e[a]=zhe(a,i,r);else if(i!=null){const o=i4(i);e[a]=()=>o}}},uK=(t,e)=>{const n=i4(e);t.slots.default=()=>n},Uhe=(t,e)=>{if(t.vnode.shapeFlag&32){const n=e._;n?(t.slots=Wn(e),Y_(e,"_",n)):lK(e,t.slots={})}else t.slots={},e&&uK(t,e);Y_(t.slots,JC,1)},Ghe=(t,e,n)=>{const{vnode:r,slots:a}=t;let i=!0,o=aa;if(r.shapeFlag&32){const s=e._;s?n&&s===1?i=!1:(Ma(a,e),!n&&s===1&&delete a._):(i=!e.$stable,lK(e,a)),o=e}else e&&(uK(t,e),o={default:1});if(i)for(const s in a)!sK(s)&&!(s in o)&&delete a[s]};function sR(t,e,n,r,a=!1){if(gt(t)){t.forEach((d,h)=>sR(d,e&&(gt(e)?e[h]:e),n,r,a));return}if(vm(r)&&!a)return;const i=r.shapeFlag&4?tT(r.component)||r.component.proxy:r.el,o=a?null:i,{i:s,r:l}=t,u=e&&e.r,c=s.refs===aa?s.refs={}:s.refs,f=s.setupState;if(u!=null&&u!==l&&(Ht(u)?(c[u]=null,Sn(f,u)&&(f[u]=null)):ft(u)&&(u.value=null)),zt(l))Af(l,s,12,[o,c]);else{const d=Ht(l),h=ft(l);if(d||h){const p=()=>{if(t.f){const v=d?Sn(f,l)?f[l]:c[l]:l.value;a?gt(v)&&U3(v,i):gt(v)?v.includes(i)||v.push(i):d?(c[l]=[i],Sn(f,l)&&(f[l]=c[l])):(l.value=[i],t.k&&(c[t.k]=l.value))}else d?(c[l]=o,Sn(f,l)&&(f[l]=o)):h&&(l.value=o,t.k&&(c[t.k]=o))};o?(p.id=-1,bo(p,n)):p()}}}const bo=bhe;function Hhe(t){return Whe(t)}function Whe(t,e){const n=Qk();n.__VUE__=!0;const{insert:r,remove:a,patchProp:i,createElement:o,createText:s,createComment:l,setText:u,setElementText:c,parentNode:f,nextSibling:d,setScopeId:h=Qn,insertStaticContent:p}=t,v=(ee,ue,fe,Re=null,Ne=null,De=null,we=!1,ae=null,Ie=!!ue.dynamicChildren)=>{if(ee===ue)return;ee&&!yh(ee,ue)&&(Re=ce(ee),Z(ee,Ne,De,!0),ee=null),ue.patchFlag===-2&&(Ie=!1,ue.dynamicChildren=null);const{type:He,ref:Ce,shapeFlag:qe}=ue;switch(He){case h0:g(ee,ue,fe,Re);break;case Qi:y(ee,ue,fe,Re);break;case $x:ee==null&&m(ue,fe,Re,we);break;case Ct:k(ee,ue,fe,Re,Ne,De,we,ae,Ie);break;default:qe&1?C(ee,ue,fe,Re,Ne,De,we,ae,Ie):qe&6?L(ee,ue,fe,Re,Ne,De,we,ae,Ie):(qe&64||qe&128)&&He.process(ee,ue,fe,Re,Ne,De,we,ae,Ie,me)}Ce!=null&&Ne&&sR(Ce,ee&&ee.ref,De,ue||ee,!ue)},g=(ee,ue,fe,Re)=>{if(ee==null)r(ue.el=s(ue.children),fe,Re);else{const Ne=ue.el=ee.el;ue.children!==ee.children&&u(Ne,ue.children)}},y=(ee,ue,fe,Re)=>{ee==null?r(ue.el=l(ue.children||""),fe,Re):ue.el=ee.el},m=(ee,ue,fe,Re)=>{[ee.el,ee.anchor]=p(ee.children,ue,fe,Re,ee.el,ee.anchor)},S=({el:ee,anchor:ue},fe,Re)=>{let Ne;for(;ee&&ee!==ue;)Ne=d(ee),r(ee,fe,Re),ee=Ne;r(ue,fe,Re)},w=({el:ee,anchor:ue})=>{let fe;for(;ee&&ee!==ue;)fe=d(ee),a(ee),ee=fe;a(ue)},C=(ee,ue,fe,Re,Ne,De,we,ae,Ie)=>{we=we||ue.type==="svg",ee==null?_(ue,fe,Re,Ne,De,we,ae,Ie):M(ee,ue,Ne,De,we,ae,Ie)},_=(ee,ue,fe,Re,Ne,De,we,ae)=>{let Ie,He;const{type:Ce,props:qe,shapeFlag:Ze,transition:de,dirs:Xe}=ee;if(Ie=ee.el=o(ee.type,De,qe&&qe.is,qe),Ze&8?c(Ie,ee.children):Ze&16&&T(ee.children,Ie,null,Re,Ne,De&&Ce!=="foreignObject",we,ae),Xe&&xd(ee,null,Re,"created"),x(Ie,ee,ee.scopeId,we,Re),qe){for(const kt in qe)kt!=="value"&&!Nx(kt)&&i(Ie,kt,null,qe[kt],De,ee.children,Re,Ne,Q);"value"in qe&&i(Ie,"value",null,qe.value),(He=qe.onVnodeBeforeMount)&&Ol(He,Re,ee)}Xe&&xd(ee,null,Re,"beforeMount");const mt=(!Ne||Ne&&!Ne.pendingBranch)&&de&&!de.persisted;mt&&de.beforeEnter(Ie),r(Ie,ue,fe),((He=qe&&qe.onVnodeMounted)||mt||Xe)&&bo(()=>{He&&Ol(He,Re,ee),mt&&de.enter(Ie),Xe&&xd(ee,null,Re,"mounted")},Ne)},x=(ee,ue,fe,Re,Ne)=>{if(fe&&h(ee,fe),Re)for(let De=0;De<Re.length;De++)h(ee,Re[De]);if(Ne){let De=Ne.subTree;if(ue===De){const we=Ne.vnode;x(ee,we,we.scopeId,we.slotScopeIds,Ne.parent)}}},T=(ee,ue,fe,Re,Ne,De,we,ae,Ie=0)=>{for(let He=Ie;He<ee.length;He++){const Ce=ee[He]=ae?sf(ee[He]):jl(ee[He]);v(null,Ce,ue,fe,Re,Ne,De,we,ae)}},M=(ee,ue,fe,Re,Ne,De,we)=>{const ae=ue.el=ee.el;let{patchFlag:Ie,dynamicChildren:He,dirs:Ce}=ue;Ie|=ee.patchFlag&16;const qe=ee.props||aa,Ze=ue.props||aa;let de;fe&&_d(fe,!1),(de=Ze.onVnodeBeforeUpdate)&&Ol(de,fe,ue,ee),Ce&&xd(ue,ee,fe,"beforeUpdate"),fe&&_d(fe,!0);const Xe=Ne&&ue.type!=="foreignObject";if(He?E(ee.dynamicChildren,He,ae,fe,Re,Xe,De):we||W(ee,ue,ae,null,fe,Re,Xe,De,!1),Ie>0){if(Ie&16)A(ae,ue,qe,Ze,fe,Re,Ne);else if(Ie&2&&qe.class!==Ze.class&&i(ae,"class",null,Ze.class,Ne),Ie&4&&i(ae,"style",qe.style,Ze.style,Ne),Ie&8){const mt=ue.dynamicProps;for(let kt=0;kt<mt.length;kt++){const Vt=mt[kt],dt=qe[Vt],Oe=Ze[Vt];(Oe!==dt||Vt==="value")&&i(ae,Vt,dt,Oe,Ne,ee.children,fe,Re,Q)}}Ie&1&&ee.children!==ue.children&&c(ae,ue.children)}else!we&&He==null&&A(ae,ue,qe,Ze,fe,Re,Ne);((de=Ze.onVnodeUpdated)||Ce)&&bo(()=>{de&&Ol(de,fe,ue,ee),Ce&&xd(ue,ee,fe,"updated")},Re)},E=(ee,ue,fe,Re,Ne,De,we)=>{for(let ae=0;ae<ue.length;ae++){const Ie=ee[ae],He=ue[ae],Ce=Ie.el&&(Ie.type===Ct||!yh(Ie,He)||Ie.shapeFlag&70)?f(Ie.el):fe;v(Ie,He,Ce,null,Re,Ne,De,we,!0)}},A=(ee,ue,fe,Re,Ne,De,we)=>{if(fe!==Re){if(fe!==aa)for(const ae in fe)!Nx(ae)&&!(ae in Re)&&i(ee,ae,fe[ae],null,we,ue.children,Ne,De,Q);for(const ae in Re){if(Nx(ae))continue;const Ie=Re[ae],He=fe[ae];Ie!==He&&ae!=="value"&&i(ee,ae,He,Ie,we,ue.children,Ne,De,Q)}"value"in Re&&i(ee,"value",fe.value,Re.value)}},k=(ee,ue,fe,Re,Ne,De,we,ae,Ie)=>{const He=ue.el=ee?ee.el:s(""),Ce=ue.anchor=ee?ee.anchor:s("");let{patchFlag:qe,dynamicChildren:Ze,slotScopeIds:de}=ue;de&&(ae=ae?ae.concat(de):de),ee==null?(r(He,fe,Re),r(Ce,fe,Re),T(ue.children,fe,Ce,Ne,De,we,ae,Ie)):qe>0&&qe&64&&Ze&&ee.dynamicChildren?(E(ee.dynamicChildren,Ze,fe,Ne,De,we,ae),(ue.key!=null||Ne&&ue===Ne.subTree)&&o4(ee,ue,!0)):W(ee,ue,fe,Ce,Ne,De,we,ae,Ie)},L=(ee,ue,fe,Re,Ne,De,we,ae,Ie)=>{ue.slotScopeIds=ae,ee==null?ue.shapeFlag&512?Ne.ctx.activate(ue,fe,Re,we,Ie):I(ue,fe,Re,Ne,De,we,Ie):P(ee,ue,Ie)},I=(ee,ue,fe,Re,Ne,De,we)=>{const ae=ee.component=epe(ee,Re,Ne);if(qC(ee)&&(ae.ctx.renderer=me),tpe(ae),ae.asyncDep){if(Ne&&Ne.registerDep(ae,F),!ee.el){const Ie=ae.subTree=N(Qi);y(null,Ie,ue,fe)}return}F(ae,ee,ue,fe,Ne,De,we)},P=(ee,ue,fe)=>{const Re=ue.component=ee.component;if(ghe(ee,ue,fe))if(Re.asyncDep&&!Re.asyncResolved){$(Re,ue,fe);return}else Re.next=ue,che(Re.update),Re.update();else ue.el=ee.el,Re.vnode=ue},F=(ee,ue,fe,Re,Ne,De,we)=>{const ae=()=>{if(ee.isMounted){let{next:Ce,bu:qe,u:Ze,parent:de,vnode:Xe}=ee,mt=Ce,kt;_d(ee,!1),Ce?(Ce.el=Xe.el,$(ee,Ce,we)):Ce=Xe,qe&&Bx(qe),(kt=Ce.props&&Ce.props.onVnodeBeforeUpdate)&&Ol(kt,de,Ce,Xe),_d(ee,!0);const Vt=oM(ee),dt=ee.subTree;ee.subTree=Vt,v(dt,Vt,f(dt.el),ce(dt),ee,Ne,De),Ce.el=Vt.el,mt===null&&yhe(ee,Vt.el),Ze&&bo(Ze,Ne),(kt=Ce.props&&Ce.props.onVnodeUpdated)&&bo(()=>Ol(kt,de,Ce,Xe),Ne)}else{let Ce;const{el:qe,props:Ze}=ue,{bm:de,m:Xe,parent:mt}=ee,kt=vm(ue);if(_d(ee,!1),de&&Bx(de),!kt&&(Ce=Ze&&Ze.onVnodeBeforeMount)&&Ol(Ce,mt,ue),_d(ee,!0),qe&&he){const Vt=()=>{ee.subTree=oM(ee),he(qe,ee.subTree,ee,Ne,null)};kt?ue.type.__asyncLoader().then(()=>!ee.isUnmounted&&Vt()):Vt()}else{const Vt=ee.subTree=oM(ee);v(null,Vt,fe,Re,ee,Ne,De),ue.el=Vt.el}if(Xe&&bo(Xe,Ne),!kt&&(Ce=Ze&&Ze.onVnodeMounted)){const Vt=ue;bo(()=>Ol(Ce,mt,Vt),Ne)}(ue.shapeFlag&256||mt&&vm(mt.vnode)&&mt.vnode.shapeFlag&256)&&ee.a&&bo(ee.a,Ne),ee.isMounted=!0,ue=fe=Re=null}},Ie=ee.effect=new W3(ae,()=>J3(He),ee.scope),He=ee.update=()=>Ie.run();He.id=ee.uid,_d(ee,!0),He()},$=(ee,ue,fe)=>{ue.component=ee;const Re=ee.vnode.props;ee.vnode=ue,ee.next=null,Fhe(ee,ue.props,Re,fe),Ghe(ee,ue.children,fe),c0(),F$(),f0()},W=(ee,ue,fe,Re,Ne,De,we,ae,Ie=!1)=>{const He=ee&&ee.children,Ce=ee?ee.shapeFlag:0,qe=ue.children,{patchFlag:Ze,shapeFlag:de}=ue;if(Ze>0){if(Ze&128){z(He,qe,fe,Re,Ne,De,we,ae,Ie);return}else if(Ze&256){V(He,qe,fe,Re,Ne,De,we,ae,Ie);return}}de&8?(Ce&16&&Q(He,Ne,De),qe!==He&&c(fe,qe)):Ce&16?de&16?z(He,qe,fe,Re,Ne,De,we,ae,Ie):Q(He,Ne,De,!0):(Ce&8&&c(fe,""),de&16&&T(qe,fe,Re,Ne,De,we,ae,Ie))},V=(ee,ue,fe,Re,Ne,De,we,ae,Ie)=>{ee=ee||eg,ue=ue||eg;const He=ee.length,Ce=ue.length,qe=Math.min(He,Ce);let Ze;for(Ze=0;Ze<qe;Ze++){const de=ue[Ze]=Ie?sf(ue[Ze]):jl(ue[Ze]);v(ee[Ze],de,fe,null,Ne,De,we,ae,Ie)}He>Ce?Q(ee,Ne,De,!0,!1,qe):T(ue,fe,Re,Ne,De,we,ae,Ie,qe)},z=(ee,ue,fe,Re,Ne,De,we,ae,Ie)=>{let He=0;const Ce=ue.length;let qe=ee.length-1,Ze=Ce-1;for(;He<=qe&&He<=Ze;){const de=ee[He],Xe=ue[He]=Ie?sf(ue[He]):jl(ue[He]);if(yh(de,Xe))v(de,Xe,fe,null,Ne,De,we,ae,Ie);else break;He++}for(;He<=qe&&He<=Ze;){const de=ee[qe],Xe=ue[Ze]=Ie?sf(ue[Ze]):jl(ue[Ze]);if(yh(de,Xe))v(de,Xe,fe,null,Ne,De,we,ae,Ie);else break;qe--,Ze--}if(He>qe){if(He<=Ze){const de=Ze+1,Xe=de<Ce?ue[de].el:Re;for(;He<=Ze;)v(null,ue[He]=Ie?sf(ue[He]):jl(ue[He]),fe,Xe,Ne,De,we,ae,Ie),He++}}else if(He>Ze)for(;He<=qe;)Z(ee[He],Ne,De,!0),He++;else{const de=He,Xe=He,mt=new Map;for(He=Xe;He<=Ze;He++){const pe=ue[He]=Ie?sf(ue[He]):jl(ue[He]);pe.key!=null&&mt.set(pe.key,He)}let kt,Vt=0;const dt=Ze-Xe+1;let Oe=!1,be=0;const xe=new Array(dt);for(He=0;He<dt;He++)xe[He]=0;for(He=de;He<=qe;He++){const pe=ee[He];if(Vt>=dt){Z(pe,Ne,De,!0);continue}let it;if(pe.key!=null)it=mt.get(pe.key);else for(kt=Xe;kt<=Ze;kt++)if(xe[kt-Xe]===0&&yh(pe,ue[kt])){it=kt;break}it===void 0?Z(pe,Ne,De,!0):(xe[it-Xe]=He+1,it>=be?be=it:Oe=!0,v(pe,ue[it],fe,null,Ne,De,we,ae,Ie),Vt++)}const Pe=Oe?jhe(xe):eg;for(kt=Pe.length-1,He=dt-1;He>=0;He--){const pe=Xe+He,it=ue[pe],Tt=pe+1<Ce?ue[pe+1].el:Re;xe[He]===0?v(null,it,fe,Tt,Ne,De,we,ae,Ie):Oe&&(kt<0||He!==Pe[kt]?K(it,fe,Tt,2):kt--)}}},K=(ee,ue,fe,Re,Ne=null)=>{const{el:De,type:we,transition:ae,children:Ie,shapeFlag:He}=ee;if(He&6){K(ee.component.subTree,ue,fe,Re);return}if(He&128){ee.suspense.move(ue,fe,Re);return}if(He&64){we.move(ee,ue,fe,me);return}if(we===Ct){r(De,ue,fe);for(let qe=0;qe<Ie.length;qe++)K(Ie[qe],ue,fe,Re);r(ee.anchor,ue,fe);return}if(we===$x){S(ee,ue,fe);return}if(Re!==2&&He&1&&ae)if(Re===0)ae.beforeEnter(De),r(De,ue,fe),bo(()=>ae.enter(De),Ne);else{const{leave:qe,delayLeave:Ze,afterLeave:de}=ae,Xe=()=>r(De,ue,fe),mt=()=>{qe(De,()=>{Xe(),de&&de()})};Ze?Ze(De,Xe,mt):mt()}else r(De,ue,fe)},Z=(ee,ue,fe,Re=!1,Ne=!1)=>{const{type:De,props:we,ref:ae,children:Ie,dynamicChildren:He,shapeFlag:Ce,patchFlag:qe,dirs:Ze}=ee;if(ae!=null&&sR(ae,null,fe,ee,!0),Ce&256){ue.ctx.deactivate(ee);return}const de=Ce&1&&Ze,Xe=!vm(ee);let mt;if(Xe&&(mt=we&&we.onVnodeBeforeUnmount)&&Ol(mt,ue,ee),Ce&6)ie(ee.component,fe,Re);else{if(Ce&128){ee.suspense.unmount(fe,Re);return}de&&xd(ee,null,ue,"beforeUnmount"),Ce&64?ee.type.remove(ee,ue,fe,Ne,me,Re):He&&(De!==Ct||qe>0&&qe&64)?Q(He,ue,fe,!1,!0):(De===Ct&&qe&384||!Ne&&Ce&16)&&Q(Ie,ue,fe),Re&&oe(ee)}(Xe&&(mt=we&&we.onVnodeUnmounted)||de)&&bo(()=>{mt&&Ol(mt,ue,ee),de&&xd(ee,null,ue,"unmounted")},fe)},oe=ee=>{const{type:ue,el:fe,anchor:Re,transition:Ne}=ee;if(ue===Ct){ge(fe,Re);return}if(ue===$x){w(ee);return}const De=()=>{a(fe),Ne&&!Ne.persisted&&Ne.afterLeave&&Ne.afterLeave()};if(ee.shapeFlag&1&&Ne&&!Ne.persisted){const{leave:we,delayLeave:ae}=Ne,Ie=()=>we(fe,De);ae?ae(ee.el,De,Ie):Ie()}else De()},ge=(ee,ue)=>{let fe;for(;ee!==ue;)fe=d(ee),a(ee),ee=fe;a(ue)},ie=(ee,ue,fe)=>{const{bum:Re,scope:Ne,update:De,subTree:we,um:ae}=ee;Re&&Bx(Re),Ne.stop(),De&&(De.active=!1,Z(we,ee,ue,fe)),ae&&bo(ae,ue),bo(()=>{ee.isUnmounted=!0},ue),ue&&ue.pendingBranch&&!ue.isUnmounted&&ee.asyncDep&&!ee.asyncResolved&&ee.suspenseId===ue.pendingId&&(ue.deps--,ue.deps===0&&ue.resolve())},Q=(ee,ue,fe,Re=!1,Ne=!1,De=0)=>{for(let we=De;we<ee.length;we++)Z(ee[we],ue,fe,Re,Ne)},ce=ee=>ee.shapeFlag&6?ce(ee.component.subTree):ee.shapeFlag&128?ee.suspense.next():d(ee.anchor||ee.el),se=(ee,ue,fe)=>{ee==null?ue._vnode&&Z(ue._vnode,null,null,!0):v(ue._vnode||null,ee,ue,null,null,null,fe),F$(),Hj(),ue._vnode=ee},me={p:v,um:Z,m:K,r:oe,mt:I,mc:T,pc:W,pbc:E,n:ce,o:t};let ve,he;return e&&([ve,he]=e(me)),{render:se,hydrate:ve,createApp:$he(se,ve)}}function _d({effect:t,update:e},n){t.allowRecurse=e.allowRecurse=n}function o4(t,e,n=!1){const r=t.children,a=e.children;if(gt(r)&&gt(a))for(let i=0;i<r.length;i++){const o=r[i];let s=a[i];s.shapeFlag&1&&!s.dynamicChildren&&((s.patchFlag<=0||s.patchFlag===32)&&(s=a[i]=sf(a[i]),s.el=o.el),n||o4(o,s)),s.type===h0&&(s.el=o.el)}}function jhe(t){const e=t.slice(),n=[0];let r,a,i,o,s;const l=t.length;for(r=0;r<l;r++){const u=t[r];if(u!==0){if(a=n[n.length-1],t[a]<u){e[r]=a,n.push(r);continue}for(i=0,o=n.length-1;i<o;)s=i+o>>1,t[n[s]]<u?i=s+1:o=s;u<t[n[i]]&&(i>0&&(e[r]=n[i-1]),n[i]=r)}}for(i=n.length,o=n[i-1];i-- >0;)n[i]=o,o=e[o];return n}const Khe=t=>t.__isTeleport,ym=t=>t&&(t.disabled||t.disabled===""),Q$=t=>typeof SVGElement<"u"&&t instanceof SVGElement,lR=(t,e)=>{const n=t&&t.to;return Ht(n)?e?e(n):null:n},Yhe={__isTeleport:!0,process(t,e,n,r,a,i,o,s,l,u){const{mc:c,pc:f,pbc:d,o:{insert:h,querySelector:p,createText:v,createComment:g}}=u,y=ym(e.props);let{shapeFlag:m,children:S,dynamicChildren:w}=e;if(t==null){const C=e.el=v(""),_=e.anchor=v("");h(C,n,r),h(_,n,r);const x=e.target=lR(e.props,p),T=e.targetAnchor=v("");x&&(h(T,x),o=o||Q$(x));const M=(E,A)=>{m&16&&c(S,E,A,a,i,o,s,l)};y?M(n,_):x&&M(x,T)}else{e.el=t.el;const C=e.anchor=t.anchor,_=e.target=t.target,x=e.targetAnchor=t.targetAnchor,T=ym(t.props),M=T?n:_,E=T?C:x;if(o=o||Q$(_),w?(d(t.dynamicChildren,w,M,a,i,o,s),o4(t,e,!0)):l||f(t,e,M,E,a,i,o,s,!1),y)T||OS(e,n,C,u,1);else if((e.props&&e.props.to)!==(t.props&&t.props.to)){const A=e.target=lR(e.props,p);A&&OS(e,A,null,u,0)}else T&&OS(e,_,x,u,1)}cK(e)},remove(t,e,n,r,{um:a,o:{remove:i}},o){const{shapeFlag:s,children:l,anchor:u,targetAnchor:c,target:f,props:d}=t;if(f&&i(c),(o||!ym(d))&&(i(u),s&16))for(let h=0;h<l.length;h++){const p=l[h];a(p,e,n,!0,!!p.dynamicChildren)}},move:OS,hydrate:Xhe};function OS(t,e,n,{o:{insert:r},m:a},i=2){i===0&&r(t.targetAnchor,e,n);const{el:o,anchor:s,shapeFlag:l,children:u,props:c}=t,f=i===2;if(f&&r(o,e,n),(!f||ym(c))&&l&16)for(let d=0;d<u.length;d++)a(u[d],e,n,2);f&&r(s,e,n)}function Xhe(t,e,n,r,a,i,{o:{nextSibling:o,parentNode:s,querySelector:l}},u){const c=e.target=lR(e.props,l);if(c){const f=c._lpa||c.firstChild;if(e.shapeFlag&16)if(ym(e.props))e.anchor=u(o(t),e,s(t),n,r,a,i),e.targetAnchor=f;else{e.anchor=o(t);let d=f;for(;d;)if(d=o(d),d&&d.nodeType===8&&d.data==="teleport anchor"){e.targetAnchor=d,c._lpa=e.targetAnchor&&o(e.targetAnchor);break}u(f,e,c,n,r,a,i)}cK(e)}return e.anchor&&o(e.anchor)}const xb=Yhe;function cK(t){const e=t.ctx;if(e&&e.ut){let n=t.children[0].el;for(;n!==t.targetAnchor;)n.nodeType===1&&n.setAttribute("data-v-owner",e.uid),n=n.nextSibling;e.ut()}}const Ct=Symbol.for("v-fgt"),h0=Symbol.for("v-txt"),Qi=Symbol.for("v-cmt"),$x=Symbol.for("v-stc"),mm=[];let al=null;function G(t=!1){mm.push(al=t?null:[])}function qhe(){mm.pop(),al=mm[mm.length-1]||null}let o1=1;function J$(t){o1+=t}function fK(t){return t.dynamicChildren=o1>0?al||eg:null,qhe(),o1>0&&al&&al.push(t),t}function re(t,e,n,r,a,i){return fK(R(t,e,n,r,a,i,!0))}function Ee(t,e,n,r,a){return fK(N(t,e,n,r,a,!0))}function Gr(t){return t?t.__v_isVNode===!0:!1}function yh(t,e){return t.type===e.type&&t.key===e.key}const JC="__vInternal",dK=({key:t})=>t??null,Px=({ref:t,ref_key:e,ref_for:n})=>(typeof t=="number"&&(t=""+t),t!=null?Ht(t)||ft(t)||zt(t)?{i:pi,r:t,k:e,f:!!n}:t:null);function R(t,e=null,n=null,r=0,a=null,i=t===Ct?0:1,o=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&dK(e),ref:e&&Px(e),scopeId:XC,slotScopeIds:null,children:n,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:r,dynamicProps:a,dynamicChildren:null,appContext:null,ctx:pi};return s?(s4(l,n),i&128&&t.normalize(l)):n&&(l.shapeFlag|=Ht(n)?8:16),o1>0&&!o&&al&&(l.patchFlag>0||i&6)&&l.patchFlag!==32&&al.push(l),l}const N=Zhe;function Zhe(t,e=null,n=null,r=0,a=null,i=!1){if((!t||t===eK)&&(t=Qi),Gr(t)){const s=oc(t,e,!0);return n&&s4(s,n),o1>0&&!i&&al&&(s.shapeFlag&6?al[al.indexOf(t)]=s:al.push(s)),s.patchFlag|=-2,s}if(ipe(t)&&(t=t.__vccOpts),e){e=eT(e);let{class:s,style:l}=e;s&&!Ht(s)&&(e.class=Y(s)),un(l)&&(Ij(l)&&!gt(l)&&(l=Ma({},l)),e.style=Et(l))}const o=Ht(t)?1:mhe(t)?128:Khe(t)?64:un(t)?4:zt(t)?2:0;return R(t,e,n,r,a,o,i,!0)}function eT(t){return t?Ij(t)||JC in t?Ma({},t):t:null}function oc(t,e,n=!1){const{props:r,ref:a,patchFlag:i,children:o}=t,s=e?an(r||{},e):r;return{__v_isVNode:!0,__v_skip:!0,type:t.type,props:s,key:s&&dK(s),ref:e&&e.ref?n&&a?gt(a)?a.concat(Px(e)):[a,Px(e)]:Px(e):a,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:o,target:t.target,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==Ct?i===-1?16:i|16:i,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:t.transition,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&oc(t.ssContent),ssFallback:t.ssFallback&&oc(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce}}function Be(t=" ",e=0){return N(h0,null,t,e)}function $Ft(t,e){const n=N($x,null,t);return n.staticCount=e,n}function _e(t="",e=!1){return e?(G(),Ee(Qi,null,t)):N(Qi,null,t)}function jl(t){return t==null||typeof t=="boolean"?N(Qi):gt(t)?N(Ct,null,t.slice()):typeof t=="object"?sf(t):N(h0,null,String(t))}function sf(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:oc(t)}function s4(t,e){let n=0;const{shapeFlag:r}=t;if(e==null)e=null;else if(gt(e))n=16;else if(typeof e=="object")if(r&65){const a=e.default;a&&(a._c&&(a._d=!1),s4(t,a()),a._c&&(a._d=!0));return}else{n=32;const a=e._;!a&&!(JC in e)?e._ctx=pi:a===3&&pi&&(pi.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else zt(e)?(e={default:e,_ctx:pi},n=32):(e=String(e),r&64?(n=16,e=[Be(e)]):n=8);t.children=e,t.shapeFlag|=n}function an(...t){const e={};for(let n=0;n<t.length;n++){const r=t[n];for(const a in r)if(a==="class")e.class!==r.class&&(e.class=Y([e.class,r.class]));else if(a==="style")e.style=Et([e.style,r.style]);else if(GC(a)){const i=e[a],o=r[a];o&&i!==o&&!(gt(i)&&i.includes(o))&&(e[a]=i?[].concat(i,o):o)}else a!==""&&(e[a]=r[a])}return e}function Ol(t,e,n,r=null){gs(t,e,7,[n,r])}const Qhe=aK();let Jhe=0;function epe(t,e,n){const r=t.type,a=(e?e.appContext:t.appContext)||Qhe,i={uid:Jhe++,vnode:t,type:r,parent:e,appContext:a,root:null,next:null,subTree:null,effect:null,update:null,scope:new wj(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:e?e.provides:Object.create(a.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:oK(r,a),emitsOptions:jj(r,a),emit:null,emitted:null,propsDefaults:aa,inheritAttrs:r.inheritAttrs,ctx:aa,data:aa,props:aa,attrs:aa,slots:aa,refs:aa,setupState:aa,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return i.ctx={_:i},i.root=e?e.root:i,i.emit=hhe.bind(null,i),t.ce&&t.ce(i),i}let ei=null;const Qt=()=>ei||pi;let l4,Yp,eP="__VUE_INSTANCE_SETTERS__";(Yp=Qk()[eP])||(Yp=Qk()[eP]=[]),Yp.push(t=>ei=t),l4=t=>{Yp.length>1?Yp.forEach(e=>e(t)):Yp[0](t)};const Cg=t=>{l4(t),t.scope.on()},Yh=()=>{ei&&ei.scope.off(),l4(null)};function hK(t){return t.vnode.shapeFlag&4}let s1=!1;function tpe(t,e=!1){s1=e;const{props:n,children:r}=t.vnode,a=hK(t);Phe(t,n,a,e),Uhe(t,r);const i=a?npe(t,e):void 0;return s1=!1,i}function npe(t,e){const n=t.type;t.accessCache=Object.create(null),t.proxy=Df(new Proxy(t.ctx,Rhe));const{setup:r}=n;if(r){const a=t.setupContext=r.length>1?vK(t):null;Cg(t),c0();const i=Af(r,t,0,[t.props,a]);if(f0(),Yh(),Qm(i)){if(i.then(Yh,Yh),e)return i.then(o=>{tP(t,o,e)}).catch(o=>{KC(o,t,0)});t.asyncDep=i}else tP(t,i,e)}else pK(t,e)}function tP(t,e,n){zt(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:un(e)&&(t.setupState=Pj(e)),pK(t,n)}let nP;function pK(t,e,n){const r=t.type;if(!t.render){if(!e&&nP&&!r.render){const a=r.template||a4(t).template;if(a){const{isCustomElement:i,compilerOptions:o}=t.appContext.config,{delimiters:s,compilerOptions:l}=r,u=Ma(Ma({isCustomElement:i,delimiters:s},o),l);r.render=nP(a,u)}}t.render=r.render||Qn}Cg(t),c0(),Lhe(t),f0(),Yh()}function rpe(t){return t.attrsProxy||(t.attrsProxy=new Proxy(t.attrs,{get(e,n){return Ao(t,"get","$attrs"),e[n]}}))}function vK(t){const e=n=>{t.exposed=n||{}};return{get attrs(){return rpe(t)},slots:t.slots,emit:t.emit,expose:e}}function tT(t){if(t.exposed)return t.exposeProxy||(t.exposeProxy=new Proxy(Pj(Df(t.exposed)),{get(e,n){if(n in e)return e[n];if(n in gm)return gm[n](t)},has(e,n){return n in e||n in gm}}))}function ape(t,e=!0){return zt(t)?t.displayName||t.name:t.name||e&&t.__name}function ipe(t){return zt(t)&&"__vccOpts"in t}const U=(t,e)=>zj(t,e,s1);function At(t,e,n){const r=arguments.length;return r===2?un(e)&&!gt(e)?Gr(e)?N(t,null,[e]):N(t,e):N(t,null,e):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Gr(n)&&(n=[n]),N(t,e,n))}const ope=Symbol.for("v-scx"),spe=()=>yt(ope),lpe="3.3.4",upe="http://www.w3.org/2000/svg",mh=typeof document<"u"?document:null,rP=mh&&mh.createElement("template"),cpe={insert:(t,e,n)=>{e.insertBefore(t,n||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,n,r)=>{const a=e?mh.createElementNS(upe,t):mh.createElement(t,n?{is:n}:void 0);return t==="select"&&r&&r.multiple!=null&&a.setAttribute("multiple",r.multiple),a},createText:t=>mh.createTextNode(t),createComment:t=>mh.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>mh.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,n,r,a,i){const o=n?n.previousSibling:e.lastChild;if(a&&(a===i||a.nextSibling))for(;e.insertBefore(a.cloneNode(!0),n),!(a===i||!(a=a.nextSibling)););else{rP.innerHTML=r?`<svg>${t}</svg>`:t;const s=rP.content;if(r){const l=s.firstChild;for(;l.firstChild;)s.appendChild(l.firstChild);s.removeChild(l)}e.insertBefore(s,n)}return[o?o.nextSibling:e.firstChild,n?n.previousSibling:e.lastChild]}};function fpe(t,e,n){const r=t._vtc;r&&(e=(e?[e,...r]:[...r]).join(" ")),e==null?t.removeAttribute("class"):n?t.setAttribute("class",e):t.className=e}function dpe(t,e,n){const r=t.style,a=Ht(n);if(n&&!a){if(e&&!Ht(e))for(const i in e)n[i]==null&&uR(r,i,"");for(const i in n)uR(r,i,n[i])}else{const i=r.display;a?e!==n&&(r.cssText=n):e&&t.removeAttribute("style"),"_vod"in t&&(r.display=i)}}const aP=/\s*!important$/;function uR(t,e,n){if(gt(n))n.forEach(r=>uR(t,e,r));else if(n==null&&(n=""),e.startsWith("--"))t.setProperty(e,n);else{const r=hpe(t,e);aP.test(n)?t.setProperty(nd(r),n.replace(aP,""),"important"):t[r]=n}}const iP=["Webkit","Moz","ms"],uM={};function hpe(t,e){const n=uM[e];if(n)return n;let r=Ss(e);if(r!=="filter"&&r in t)return uM[e]=r;r=bb(r);for(let a=0;a<iP.length;a++){const i=iP[a]+r;if(i in t)return uM[e]=i}return e}const oP="http://www.w3.org/1999/xlink";function ppe(t,e,n,r,a){if(r&&e.startsWith("xlink:"))n==null?t.removeAttributeNS(oP,e.slice(6,e.length)):t.setAttributeNS(oP,e,n);else{const i=Ede(e);n==null||i&&!mj(n)?t.removeAttribute(e):t.setAttribute(e,i?"":n)}}function vpe(t,e,n,r,a,i,o){if(e==="innerHTML"||e==="textContent"){r&&o(r,a,i),t[e]=n??"";return}const s=t.tagName;if(e==="value"&&s!=="PROGRESS"&&!s.includes("-")){t._value=n;const u=s==="OPTION"?t.getAttribute("value"):t.value,c=n??"";u!==c&&(t.value=c),n==null&&t.removeAttribute(e);return}let l=!1;if(n===""||n==null){const u=typeof t[e];u==="boolean"?n=mj(n):n==null&&u==="string"?(n="",l=!0):u==="number"&&(n=0,l=!0)}try{t[e]=n}catch{}l&&t.removeAttribute(e)}function hf(t,e,n,r){t.addEventListener(e,n,r)}function gpe(t,e,n,r){t.removeEventListener(e,n,r)}function ype(t,e,n,r,a=null){const i=t._vei||(t._vei={}),o=i[e];if(r&&o)o.value=r;else{const[s,l]=mpe(e);if(r){const u=i[e]=wpe(r,a);hf(t,s,u,l)}else o&&(gpe(t,s,o,l),i[e]=void 0)}}const sP=/(?:Once|Passive|Capture)$/;function mpe(t){let e;if(sP.test(t)){e={};let r;for(;r=t.match(sP);)t=t.slice(0,t.length-r[0].length),e[r[0].toLowerCase()]=!0}return[t[2]===":"?t.slice(3):nd(t.slice(2)),e]}let cM=0;const bpe=Promise.resolve(),Spe=()=>cM||(bpe.then(()=>cM=0),cM=Date.now());function wpe(t,e){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;gs(xpe(r,n.value),e,5,[r])};return n.value=t,n.attached=Spe(),n}function xpe(t,e){if(gt(e)){const n=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{n.call(t),t._stopped=!0},e.map(r=>a=>!a._stopped&&r&&r(a))}else return e}const lP=/^on[a-z]/,_pe=(t,e,n,r,a=!1,i,o,s,l)=>{e==="class"?fpe(t,r,a):e==="style"?dpe(t,n,r):GC(e)?z3(e)||ype(t,e,n,r,o):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):Cpe(t,e,r,a))?vpe(t,e,r,i,o,s,l):(e==="true-value"?t._trueValue=r:e==="false-value"&&(t._falseValue=r),ppe(t,e,r,a))};function Cpe(t,e,n,r){return r?!!(e==="innerHTML"||e==="textContent"||e in t&&lP.test(e)&&zt(n)):e==="spellcheck"||e==="draggable"||e==="translate"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA"||lP.test(e)&&Ht(n)?!1:e in t}const Vc="transition",ty="animation",da=(t,{slots:e})=>At(xhe,yK(t),e);da.displayName="Transition";const gK={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},Tpe=da.props=Ma({},Xj,gK),Cd=(t,e=[])=>{gt(t)?t.forEach(n=>n(...e)):t&&t(...e)},uP=t=>t?gt(t)?t.some(e=>e.length>1):t.length>1:!1;function yK(t){const e={};for(const k in t)k in gK||(e[k]=t[k]);if(t.css===!1)return e;const{name:n="v",type:r,duration:a,enterFromClass:i=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:l=i,appearActiveClass:u=o,appearToClass:c=s,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:d=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=t,p=Epe(a),v=p&&p[0],g=p&&p[1],{onBeforeEnter:y,onEnter:m,onEnterCancelled:S,onLeave:w,onLeaveCancelled:C,onBeforeAppear:_=y,onAppear:x=m,onAppearCancelled:T=S}=e,M=(k,L,I)=>{Zc(k,L?c:s),Zc(k,L?u:o),I&&I()},E=(k,L)=>{k._isLeaving=!1,Zc(k,f),Zc(k,h),Zc(k,d),L&&L()},A=k=>(L,I)=>{const P=k?x:m,F=()=>M(L,k,I);Cd(P,[L,F]),cP(()=>{Zc(L,k?l:i),Iu(L,k?c:s),uP(P)||fP(L,r,v,F)})};return Ma(e,{onBeforeEnter(k){Cd(y,[k]),Iu(k,i),Iu(k,o)},onBeforeAppear(k){Cd(_,[k]),Iu(k,l),Iu(k,u)},onEnter:A(!1),onAppear:A(!0),onLeave(k,L){k._isLeaving=!0;const I=()=>E(k,L);Iu(k,f),bK(),Iu(k,d),cP(()=>{k._isLeaving&&(Zc(k,f),Iu(k,h),uP(w)||fP(k,r,g,I))}),Cd(w,[k,I])},onEnterCancelled(k){M(k,!1),Cd(S,[k])},onAppearCancelled(k){M(k,!0),Cd(T,[k])},onLeaveCancelled(k){E(k),Cd(C,[k])}})}function Epe(t){if(t==null)return null;if(un(t))return[fM(t.enter),fM(t.leave)];{const e=fM(t);return[e,e]}}function fM(t){return Sde(t)}function Iu(t,e){e.split(/\s+/).forEach(n=>n&&t.classList.add(n)),(t._vtc||(t._vtc=new Set)).add(e)}function Zc(t,e){e.split(/\s+/).forEach(r=>r&&t.classList.remove(r));const{_vtc:n}=t;n&&(n.delete(e),n.size||(t._vtc=void 0))}function cP(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let Mpe=0;function fP(t,e,n,r){const a=t._endId=++Mpe,i=()=>{a===t._endId&&r()};if(n)return setTimeout(i,n);const{type:o,timeout:s,propCount:l}=mK(t,e);if(!o)return r();const u=o+"end";let c=0;const f=()=>{t.removeEventListener(u,d),i()},d=h=>{h.target===t&&++c>=l&&f()};setTimeout(()=>{c<l&&f()},s+1),t.addEventListener(u,d)}function mK(t,e){const n=window.getComputedStyle(t),r=p=>(n[p]||"").split(", "),a=r(`${Vc}Delay`),i=r(`${Vc}Duration`),o=dP(a,i),s=r(`${ty}Delay`),l=r(`${ty}Duration`),u=dP(s,l);let c=null,f=0,d=0;e===Vc?o>0&&(c=Vc,f=o,d=i.length):e===ty?u>0&&(c=ty,f=u,d=l.length):(f=Math.max(o,u),c=f>0?o>u?Vc:ty:null,d=c?c===Vc?i.length:l.length:0);const h=c===Vc&&/\b(transform|all)(,|$)/.test(r(`${Vc}Property`).toString());return{type:c,timeout:f,propCount:d,hasTransform:h}}function dP(t,e){for(;t.length<e.length;)t=t.concat(t);return Math.max(...e.map((n,r)=>hP(n)+hP(t[r])))}function hP(t){return Number(t.slice(0,-1).replace(",","."))*1e3}function bK(){return document.body.offsetHeight}const SK=new WeakMap,wK=new WeakMap,xK={name:"TransitionGroup",props:Ma({},Tpe,{tag:String,moveClass:String}),setup(t,{slots:e}){const n=Qt(),r=Yj();let a,i;return bc(()=>{if(!a.length)return;const o=t.moveClass||`${t.name||"v"}-move`;if(!Lpe(a[0].el,n.vnode.el,o))return;a.forEach(Ape),a.forEach(kpe);const s=a.filter(Rpe);bK(),s.forEach(l=>{const u=l.el,c=u.style;Iu(u,o),c.transform=c.webkitTransform=c.transitionDuration="";const f=u._moveCb=d=>{d&&d.target!==u||(!d||/transform$/.test(d.propertyName))&&(u.removeEventListener("transitionend",f),u._moveCb=null,Zc(u,o))};u.addEventListener("transitionend",f)})}),()=>{const o=Wn(t),s=yK(o);let l=o.tag||Ct;a=i,i=e.default?t4(e.default()):[];for(let u=0;u<i.length;u++){const c=i[u];c.key!=null&&a1(c,r1(c,s,r,n))}if(a)for(let u=0;u<a.length;u++){const c=a[u];a1(c,r1(c,s,r,n)),SK.set(c,c.el.getBoundingClientRect())}return N(l,null,i)}}},Dpe=t=>delete t.mode;xK.props;const _K=xK;function Ape(t){const e=t.el;e._moveCb&&e._moveCb(),e._enterCb&&e._enterCb()}function kpe(t){wK.set(t,t.el.getBoundingClientRect())}function Rpe(t){const e=SK.get(t),n=wK.get(t),r=e.left-n.left,a=e.top-n.top;if(r||a){const i=t.el.style;return i.transform=i.webkitTransform=`translate(${r}px,${a}px)`,i.transitionDuration="0s",t}}function Lpe(t,e,n){const r=t.cloneNode();t._vtc&&t._vtc.forEach(o=>{o.split(/\s+/).forEach(s=>s&&r.classList.remove(s))}),n.split(/\s+/).forEach(o=>o&&r.classList.add(o)),r.style.display="none";const a=e.nodeType===1?e:e.parentNode;a.appendChild(r);const{hasTransform:i}=mK(r);return a.removeChild(r),i}const Tg=t=>{const e=t.props["onUpdate:modelValue"]||!1;return gt(e)?n=>Bx(e,n):e};function Ope(t){t.target.composing=!0}function pP(t){const e=t.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const u4={created(t,{modifiers:{lazy:e,trim:n,number:r}},a){t._assign=Tg(a);const i=r||a.props&&a.props.type==="number";hf(t,e?"change":"input",o=>{if(o.target.composing)return;let s=t.value;n&&(s=s.trim()),i&&(s=Zk(s)),t._assign(s)}),n&&hf(t,"change",()=>{t.value=t.value.trim()}),e||(hf(t,"compositionstart",Ope),hf(t,"compositionend",pP),hf(t,"change",pP))},mounted(t,{value:e}){t.value=e??""},beforeUpdate(t,{value:e,modifiers:{lazy:n,trim:r,number:a}},i){if(t._assign=Tg(i),t.composing||document.activeElement===t&&t.type!=="range"&&(n||r&&t.value.trim()===e||(a||t.type==="number")&&Zk(t.value)===e))return;const o=e??"";t.value!==o&&(t.value=o)}},e2={deep:!0,created(t,e,n){t._assign=Tg(n),hf(t,"change",()=>{const r=t._modelValue,a=TK(t),i=t.checked,o=t._assign;if(gt(r)){const s=bj(r,a),l=s!==-1;if(i&&!l)o(r.concat(a));else if(!i&&l){const u=[...r];u.splice(s,1),o(u)}}else if(HC(r)){const s=new Set(r);i?s.add(a):s.delete(a),o(s)}else o(EK(t,i))})},mounted:vP,beforeUpdate(t,e,n){t._assign=Tg(n),vP(t,e,n)}};function vP(t,{value:e,oldValue:n},r){t._modelValue=e,gt(e)?t.checked=bj(e,r.props.value)>-1:HC(e)?t.checked=e.has(r.props.value):e!==n&&(t.checked=xg(e,EK(t,!0)))}const CK={created(t,{value:e},n){t.checked=xg(e,n.props.value),t._assign=Tg(n),hf(t,"change",()=>{t._assign(TK(t))})},beforeUpdate(t,{value:e,oldValue:n},r){t._assign=Tg(r),e!==n&&(t.checked=xg(e,r.props.value))}};function TK(t){return"_value"in t?t._value:t.value}function EK(t,e){const n=e?"_trueValue":"_falseValue";return n in t?t[n]:e}const Vpe=["ctrl","shift","alt","meta"],Npe={stop:t=>t.stopPropagation(),prevent:t=>t.preventDefault(),self:t=>t.target!==t.currentTarget,ctrl:t=>!t.ctrlKey,shift:t=>!t.shiftKey,alt:t=>!t.altKey,meta:t=>!t.metaKey,left:t=>"button"in t&&t.button!==0,middle:t=>"button"in t&&t.button!==1,right:t=>"button"in t&&t.button!==2,exact:(t,e)=>Vpe.some(n=>t[`${n}Key`]&&!e.includes(n))},It=(t,e)=>(n,...r)=>{for(let a=0;a<e.length;a++){const i=Npe[e[a]];if(i&&i(n,e))return}return t(n,...r)},Ipe={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Tn=(t,e)=>n=>{if(!("key"in n))return;const r=nd(n.key);if(e.some(a=>a===r||Ipe[a]===r))return t(n)},cn={beforeMount(t,{value:e},{transition:n}){t._vod=t.style.display==="none"?"":t.style.display,n&&e?n.beforeEnter(t):ny(t,e)},mounted(t,{value:e},{transition:n}){n&&e&&n.enter(t)},updated(t,{value:e,oldValue:n},{transition:r}){!e!=!n&&(r?e?(r.beforeEnter(t),ny(t,!0),r.enter(t)):r.leave(t,()=>{ny(t,!1)}):ny(t,e))},beforeUnmount(t,{value:e}){ny(t,e)}};function ny(t,e){t.style.display=e?t._vod:"none"}const Bpe=Ma({patchProp:_pe},cpe);let gP;function MK(){return gP||(gP=Hhe(Bpe))}const Eg=(...t)=>{MK().render(...t)},DK=(...t)=>{const e=MK().createApp(...t),{mount:n}=e;return e.mount=r=>{const a=$pe(r);if(!a)return;const i=e._component;!zt(i)&&!i.render&&!i.template&&(i.template=a.innerHTML),a.innerHTML="";const o=n(a,!1,a instanceof SVGElement);return a instanceof Element&&(a.removeAttribute("v-cloak"),a.setAttribute("data-v-app","")),o},e};function $pe(t){return Ht(t)?document.querySelector(t):t}const Ppe={__name:"App",setup(t){return(e,n)=>{const r=$e("router-view");return G(),Ee(r)}}},Fpe="modulepreload",zpe=function(t,e){return new URL(t,e).href},yP={},Xp=function(e,n,r){if(!n||n.length===0)return e();const a=document.getElementsByTagName("link");return Promise.all(n.map(i=>{if(i=zpe(i,r),i in yP)return;yP[i]=!0;const o=i.endsWith(".css"),s=o?'[rel="stylesheet"]':"";if(!!r)for(let c=a.length-1;c>=0;c--){const f=a[c];if(f.href===i&&(!o||f.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${s}`))return;const u=document.createElement("link");if(u.rel=o?"stylesheet":Fpe,o||(u.as="script",u.crossOrigin=""),u.href=i,document.head.appendChild(u),o)return new Promise((c,f)=>{u.addEventListener("load",c),u.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>e()).catch(i=>{const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=i,window.dispatchEvent(o),!o.defaultPrevented)throw i})};/*!
  2. * vue-router v4.0.16
  3. * (c) 2022 Eduardo San Martin Morote
  4. * @license MIT
  5. */const AK=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",p0=t=>AK?Symbol(t):"_vr_"+t,Upe=p0("rvlm"),mP=p0("rvd"),nT=p0("r"),c4=p0("rl"),cR=p0("rvl"),Av=typeof window<"u";function Gpe(t){return t.__esModule||AK&&t[Symbol.toStringTag]==="Module"}const Hr=Object.assign;function dM(t,e){const n={};for(const r in e){const a=e[r];n[r]=Array.isArray(a)?a.map(t):t(a)}return n}const bm=()=>{},Hpe=/\/$/,Wpe=t=>t.replace(Hpe,"");function hM(t,e,n="/"){let r,a={},i="",o="";const s=e.indexOf("?"),l=e.indexOf("#",s>-1?s:0);return s>-1&&(r=e.slice(0,s),i=e.slice(s+1,l>-1?l:e.length),a=t(i)),l>-1&&(r=r||e.slice(0,l),o=e.slice(l,e.length)),r=Xpe(r??e,n),{fullPath:r+(i&&"?")+i+o,path:r,query:a,hash:o}}function jpe(t,e){const n=e.query?t(e.query):"";return e.path+(n&&"?")+n+(e.hash||"")}function bP(t,e){return!e||!t.toLowerCase().startsWith(e.toLowerCase())?t:t.slice(e.length)||"/"}function Kpe(t,e,n){const r=e.matched.length-1,a=n.matched.length-1;return r>-1&&r===a&&Mg(e.matched[r],n.matched[a])&&kK(e.params,n.params)&&t(e.query)===t(n.query)&&e.hash===n.hash}function Mg(t,e){return(t.aliasOf||t)===(e.aliasOf||e)}function kK(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(const n in t)if(!Ype(t[n],e[n]))return!1;return!0}function Ype(t,e){return Array.isArray(t)?SP(t,e):Array.isArray(e)?SP(e,t):t===e}function SP(t,e){return Array.isArray(e)?t.length===e.length&&t.every((n,r)=>n===e[r]):t.length===1&&t[0]===e}function Xpe(t,e){if(t.startsWith("/"))return t;if(!t)return e;const n=e.split("/"),r=t.split("/");let a=n.length-1,i,o;for(i=0;i<r.length;i++)if(o=r[i],!(a===1||o==="."))if(o==="..")a--;else break;return n.slice(0,a).join("/")+"/"+r.slice(i-(i===r.length?1:0)).join("/")}var l1;(function(t){t.pop="pop",t.push="push"})(l1||(l1={}));var Sm;(function(t){t.back="back",t.forward="forward",t.unknown=""})(Sm||(Sm={}));function qpe(t){if(!t)if(Av){const e=document.querySelector("base");t=e&&e.getAttribute("href")||"/",t=t.replace(/^\w+:\/\/[^\/]+/,"")}else t="/";return t[0]!=="/"&&t[0]!=="#"&&(t="/"+t),Wpe(t)}const Zpe=/^[^#]+#/;function Qpe(t,e){return t.replace(Zpe,"#")+e}function Jpe(t,e){const n=document.documentElement.getBoundingClientRect(),r=t.getBoundingClientRect();return{behavior:e.behavior,left:r.left-n.left-(e.left||0),top:r.top-n.top-(e.top||0)}}const rT=()=>({left:window.pageXOffset,top:window.pageYOffset});function eve(t){let e;if("el"in t){const n=t.el,r=typeof n=="string"&&n.startsWith("#"),a=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!a)return;e=Jpe(a,t)}else e=t;"scrollBehavior"in document.documentElement.style?window.scrollTo(e):window.scrollTo(e.left!=null?e.left:window.pageXOffset,e.top!=null?e.top:window.pageYOffset)}function wP(t,e){return(history.state?history.state.position-e:-1)+t}const fR=new Map;function tve(t,e){fR.set(t,e)}function nve(t){const e=fR.get(t);return fR.delete(t),e}let rve=()=>location.protocol+"//"+location.host;function RK(t,e){const{pathname:n,search:r,hash:a}=e,i=t.indexOf("#");if(i>-1){let s=a.includes(t.slice(i))?t.slice(i).length:1,l=a.slice(s);return l[0]!=="/"&&(l="/"+l),bP(l,"")}return bP(n,t)+r+a}function ave(t,e,n,r){let a=[],i=[],o=null;const s=({state:d})=>{const h=RK(t,location),p=n.value,v=e.value;let g=0;if(d){if(n.value=h,e.value=d,o&&o===p){o=null;return}g=v?d.position-v.position:0}else r(h);a.forEach(y=>{y(n.value,p,{delta:g,type:l1.pop,direction:g?g>0?Sm.forward:Sm.back:Sm.unknown})})};function l(){o=n.value}function u(d){a.push(d);const h=()=>{const p=a.indexOf(d);p>-1&&a.splice(p,1)};return i.push(h),h}function c(){const{history:d}=window;d.state&&d.replaceState(Hr({},d.state,{scroll:rT()}),"")}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),{pauseListeners:l,listen:u,destroy:f}}function xP(t,e,n,r=!1,a=!1){return{back:t,current:e,forward:n,replaced:r,position:window.history.length,scroll:a?rT():null}}function ive(t){const{history:e,location:n}=window,r={value:RK(t,n)},a={value:e.state};a.value||i(r.value,{back:null,current:r.value,forward:null,position:e.length-1,replaced:!0,scroll:null},!0);function i(l,u,c){const f=t.indexOf("#"),d=f>-1?(n.host&&document.querySelector("base")?t:t.slice(f))+l:rve()+t+l;try{e[c?"replaceState":"pushState"](u,"",d),a.value=u}catch(h){console.error(h),n[c?"replace":"assign"](d)}}function o(l,u){const c=Hr({},e.state,xP(a.value.back,l,a.value.forward,!0),u,{position:a.value.position});i(l,c,!0),r.value=l}function s(l,u){const c=Hr({},a.value,e.state,{forward:l,scroll:rT()});i(c.current,c,!0);const f=Hr({},xP(r.value,l,null),{position:c.position+1},u);i(l,f,!1),r.value=l}return{location:r,state:a,push:s,replace:o}}function ove(t){t=qpe(t);const e=ive(t),n=ave(t,e.state,e.location,e.replace);function r(i,o=!0){o||n.pauseListeners(),history.go(i)}const a=Hr({location:"",base:t,go:r,createHref:Qpe.bind(null,t)},e,n);return Object.defineProperty(a,"location",{enumerable:!0,get:()=>e.location.value}),Object.defineProperty(a,"state",{enumerable:!0,get:()=>e.state.value}),a}function sve(t){return t=location.host?t||location.pathname+location.search:"",t.includes("#")||(t+="#"),ove(t)}function lve(t){return typeof t=="string"||t&&typeof t=="object"}function LK(t){return typeof t=="string"||typeof t=="symbol"}const Nc={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},OK=p0("nf");var _P;(function(t){t[t.aborted=4]="aborted",t[t.cancelled=8]="cancelled",t[t.duplicated=16]="duplicated"})(_P||(_P={}));function Dg(t,e){return Hr(new Error,{type:t,[OK]:!0},e)}function Ic(t,e){return t instanceof Error&&OK in t&&(e==null||!!(t.type&e))}const CP="[^/]+?",uve={sensitive:!1,strict:!1,start:!0,end:!0},cve=/[.+*?^${}()[\]/\\]/g;function fve(t,e){const n=Hr({},uve,e),r=[];let a=n.start?"^":"";const i=[];for(const u of t){const c=u.length?[]:[90];n.strict&&!u.length&&(a+="/");for(let f=0;f<u.length;f++){const d=u[f];let h=40+(n.sensitive?.25:0);if(d.type===0)f||(a+="/"),a+=d.value.replace(cve,"\\$&"),h+=40;else if(d.type===1){const{value:p,repeatable:v,optional:g,regexp:y}=d;i.push({name:p,repeatable:v,optional:g});const m=y||CP;if(m!==CP){h+=10;try{new RegExp(`(${m})`)}catch(w){throw new Error(`Invalid custom RegExp for param "${p}" (${m}): `+w.message)}}let S=v?`((?:${m})(?:/(?:${m}))*)`:`(${m})`;f||(S=g&&u.length<2?`(?:/${S})`:"/"+S),g&&(S+="?"),a+=S,h+=20,g&&(h+=-8),v&&(h+=-20),m===".*"&&(h+=-50)}c.push(h)}r.push(c)}if(n.strict&&n.end){const u=r.length-1;r[u][r[u].length-1]+=.7000000000000001}n.strict||(a+="/?"),n.end?a+="$":n.strict&&(a+="(?:/|$)");const o=new RegExp(a,n.sensitive?"":"i");function s(u){const c=u.match(o),f={};if(!c)return null;for(let d=1;d<c.length;d++){const h=c[d]||"",p=i[d-1];f[p.name]=h&&p.repeatable?h.split("/"):h}return f}function l(u){let c="",f=!1;for(const d of t){(!f||!c.endsWith("/"))&&(c+="/"),f=!1;for(const h of d)if(h.type===0)c+=h.value;else if(h.type===1){const{value:p,repeatable:v,optional:g}=h,y=p in u?u[p]:"";if(Array.isArray(y)&&!v)throw new Error(`Provided param "${p}" is an array but it is not repeatable (* or + modifiers)`);const m=Array.isArray(y)?y.join("/"):y;if(!m)if(g)d.length<2&&t.length>1&&(c.endsWith("/")?c=c.slice(0,-1):f=!0);else throw new Error(`Missing required param "${p}"`);c+=m}}return c}return{re:o,score:r,keys:i,parse:s,stringify:l}}function dve(t,e){let n=0;for(;n<t.length&&n<e.length;){const r=e[n]-t[n];if(r)return r;n++}return t.length<e.length?t.length===1&&t[0]===40+40?-1:1:t.length>e.length?e.length===1&&e[0]===40+40?1:-1:0}function hve(t,e){let n=0;const r=t.score,a=e.score;for(;n<r.length&&n<a.length;){const i=dve(r[n],a[n]);if(i)return i;n++}if(Math.abs(a.length-r.length)===1){if(TP(r))return 1;if(TP(a))return-1}return a.length-r.length}function TP(t){const e=t[t.length-1];return t.length>0&&e[e.length-1]<0}const pve={type:0,value:""},vve=/[a-zA-Z0-9_]/;function gve(t){if(!t)return[[]];if(t==="/")return[[pve]];if(!t.startsWith("/"))throw new Error(`Invalid path "${t}"`);function e(h){throw new Error(`ERR (${n})/"${u}": ${h}`)}let n=0,r=n;const a=[];let i;function o(){i&&a.push(i),i=[]}let s=0,l,u="",c="";function f(){u&&(n===0?i.push({type:0,value:u}):n===1||n===2||n===3?(i.length>1&&(l==="*"||l==="+")&&e(`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==="?"})):e("Invalid state to consume buffer"),u="")}function d(){u+=l}for(;s<t.length;){if(l=t[s++],l==="\\"&&n!==2){r=n,n=4;continue}switch(n){case 0:l==="/"?(u&&f(),o()):l===":"?(f(),n=1):d();break;case 4:d(),n=r;break;case 1:l==="("?n=2:vve.test(l)?d():(f(),n=0,l!=="*"&&l!=="?"&&l!=="+"&&s--);break;case 2:l===")"?c[c.length-1]=="\\"?c=c.slice(0,-1)+l:n=3:c+=l;break;case 3:f(),n=0,l!=="*"&&l!=="?"&&l!=="+"&&s--,c="";break;default:e("Unknown state");break}}return n===2&&e(`Unfinished custom RegExp for param "${u}"`),f(),o(),a}function yve(t,e,n){const r=fve(gve(t.path),n),a=Hr(r,{record:t,parent:e,children:[],alias:[]});return e&&!a.record.aliasOf==!e.record.aliasOf&&e.children.push(a),a}function mve(t,e){const n=[],r=new Map;e=MP({strict:!1,end:!0,sensitive:!1},e);function a(c){return r.get(c)}function i(c,f,d){const h=!d,p=Sve(c);p.aliasOf=d&&d.record;const v=MP(e,c),g=[p];if("alias"in c){const S=typeof c.alias=="string"?[c.alias]:c.alias;for(const w of S)g.push(Hr({},p,{components:d?d.record.components:p.components,path:w,aliasOf:d?d.record:p}))}let y,m;for(const S of g){const{path:w}=S;if(f&&w[0]!=="/"){const C=f.record.path,_=C[C.length-1]==="/"?"":"/";S.path=f.record.path+(w&&_+w)}if(y=yve(S,f,v),d?d.alias.push(y):(m=m||y,m!==y&&m.alias.push(y),h&&c.name&&!EP(y)&&o(c.name)),"children"in p){const C=p.children;for(let _=0;_<C.length;_++)i(C[_],y,d&&d.children[_])}d=d||y,l(y)}return m?()=>{o(m)}:bm}function o(c){if(LK(c)){const f=r.get(c);f&&(r.delete(c),n.splice(n.indexOf(f),1),f.children.forEach(o),f.alias.forEach(o))}else{const f=n.indexOf(c);f>-1&&(n.splice(f,1),c.record.name&&r.delete(c.record.name),c.children.forEach(o),c.alias.forEach(o))}}function s(){return n}function l(c){let f=0;for(;f<n.length&&hve(c,n[f])>=0&&(c.record.path!==n[f].record.path||!VK(c,n[f]));)f++;n.splice(f,0,c),c.record.name&&!EP(c)&&r.set(c.record.name,c)}function u(c,f){let d,h={},p,v;if("name"in c&&c.name){if(d=r.get(c.name),!d)throw Dg(1,{location:c});v=d.record.name,h=Hr(bve(f.params,d.keys.filter(m=>!m.optional).map(m=>m.name)),c.params),p=d.stringify(h)}else if("path"in c)p=c.path,d=n.find(m=>m.re.test(p)),d&&(h=d.parse(p),v=d.record.name);else{if(d=f.name?r.get(f.name):n.find(m=>m.re.test(f.path)),!d)throw Dg(1,{location:c,currentLocation:f});v=d.record.name,h=Hr({},f.params,c.params),p=d.stringify(h)}const g=[];let y=d;for(;y;)g.unshift(y.record),y=y.parent;return{name:v,path:p,params:h,matched:g,meta:xve(g)}}return t.forEach(c=>i(c)),{addRoute:i,resolve:u,removeRoute:o,getRoutes:s,getRecordMatcher:a}}function bve(t,e){const n={};for(const r of e)r in t&&(n[r]=t[r]);return n}function Sve(t){return{path:t.path,redirect:t.redirect,name:t.name,meta:t.meta||{},aliasOf:void 0,beforeEnter:t.beforeEnter,props:wve(t),children:t.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in t?t.components||{}:{default:t.component}}}function wve(t){const e={},n=t.props||!1;if("component"in t)e.default=n;else for(const r in t.components)e[r]=typeof n=="boolean"?n:n[r];return e}function EP(t){for(;t;){if(t.record.aliasOf)return!0;t=t.parent}return!1}function xve(t){return t.reduce((e,n)=>Hr(e,n.meta),{})}function MP(t,e){const n={};for(const r in t)n[r]=r in e?e[r]:t[r];return n}function VK(t,e){return e.children.some(n=>n===t||VK(t,n))}const NK=/#/g,_ve=/&/g,Cve=/\//g,Tve=/=/g,Eve=/\?/g,IK=/\+/g,Mve=/%5B/g,Dve=/%5D/g,BK=/%5E/g,Ave=/%60/g,$K=/%7B/g,kve=/%7C/g,PK=/%7D/g,Rve=/%20/g;function f4(t){return encodeURI(""+t).replace(kve,"|").replace(Mve,"[").replace(Dve,"]")}function Lve(t){return f4(t).replace($K,"{").replace(PK,"}").replace(BK,"^")}function dR(t){return f4(t).replace(IK,"%2B").replace(Rve,"+").replace(NK,"%23").replace(_ve,"%26").replace(Ave,"`").replace($K,"{").replace(PK,"}").replace(BK,"^")}function Ove(t){return dR(t).replace(Tve,"%3D")}function Vve(t){return f4(t).replace(NK,"%23").replace(Eve,"%3F")}function Nve(t){return t==null?"":Vve(t).replace(Cve,"%2F")}function t2(t){try{return decodeURIComponent(""+t)}catch{}return""+t}function Ive(t){const e={};if(t===""||t==="?")return e;const r=(t[0]==="?"?t.slice(1):t).split("&");for(let a=0;a<r.length;++a){const i=r[a].replace(IK," "),o=i.indexOf("="),s=t2(o<0?i:i.slice(0,o)),l=o<0?null:t2(i.slice(o+1));if(s in e){let u=e[s];Array.isArray(u)||(u=e[s]=[u]),u.push(l)}else e[s]=l}return e}function DP(t){let e="";for(let n in t){const r=t[n];if(n=Ove(n),r==null){r!==void 0&&(e+=(e.length?"&":"")+n);continue}(Array.isArray(r)?r.map(i=>i&&dR(i)):[r&&dR(r)]).forEach(i=>{i!==void 0&&(e+=(e.length?"&":"")+n,i!=null&&(e+="="+i))})}return e}function Bve(t){const e={};for(const n in t){const r=t[n];r!==void 0&&(e[n]=Array.isArray(r)?r.map(a=>a==null?null:""+a):r==null?r:""+r)}return e}function ry(){let t=[];function e(r){return t.push(r),()=>{const a=t.indexOf(r);a>-1&&t.splice(a,1)}}function n(){t=[]}return{add:e,list:()=>t,reset:n}}function lf(t,e,n,r,a){const i=r&&(r.enterCallbacks[a]=r.enterCallbacks[a]||[]);return()=>new Promise((o,s)=>{const l=f=>{f===!1?s(Dg(4,{from:n,to:e})):f instanceof Error?s(f):lve(f)?s(Dg(2,{from:e,to:f})):(i&&r.enterCallbacks[a]===i&&typeof f=="function"&&i.push(f),o())},u=t.call(r&&r.instances[a],e,n,l);let c=Promise.resolve(u);t.length<3&&(c=c.then(l)),c.catch(f=>s(f))})}function pM(t,e,n,r){const a=[];for(const i of t)for(const o in i.components){let s=i.components[o];if(!(e!=="beforeRouteEnter"&&!i.instances[o]))if($ve(s)){const u=(s.__vccOpts||s)[e];u&&a.push(lf(u,n,r,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=Gpe(u)?u.default:u;i.components[o]=c;const d=(c.__vccOpts||c)[e];return d&&lf(d,n,r,i,o)()}))}}return a}function $ve(t){return typeof t=="object"||"displayName"in t||"props"in t||"__vccOpts"in t}function AP(t){const e=yt(nT),n=yt(c4),r=U(()=>e.resolve(b(t.to))),a=U(()=>{const{matched:l}=r.value,{length:u}=l,c=l[u-1],f=n.matched;if(!c||!f.length)return-1;const d=f.findIndex(Mg.bind(null,c));if(d>-1)return d;const h=kP(l[u-2]);return u>1&&kP(c)===h&&f[f.length-1].path!==h?f.findIndex(Mg.bind(null,l[u-2])):d}),i=U(()=>a.value>-1&&Uve(n.params,r.value.params)),o=U(()=>a.value>-1&&a.value===n.matched.length-1&&kK(n.params,r.value.params));function s(l={}){return zve(l)?e[b(t.replace)?"replace":"push"](b(t.to)).catch(bm):Promise.resolve()}return{route:r,href:U(()=>r.value.href),isActive:i,isExactActive:o,navigate:s}}const Pve=ye({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:AP,setup(t,{slots:e}){const n=Vn(AP(t)),{options:r}=yt(nT),a=U(()=>({[RP(t.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[RP(t.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=e.default&&e.default(n);return t.custom?i:At("a",{"aria-current":n.isExactActive?t.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:a.value},i)}}}),Fve=Pve;function zve(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)&&!t.defaultPrevented&&!(t.button!==void 0&&t.button!==0)){if(t.currentTarget&&t.currentTarget.getAttribute){const e=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return t.preventDefault&&t.preventDefault(),!0}}function Uve(t,e){for(const n in e){const r=e[n],a=t[n];if(typeof r=="string"){if(r!==a)return!1}else if(!Array.isArray(a)||a.length!==r.length||r.some((i,o)=>i!==a[o]))return!1}return!0}function kP(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}const RP=(t,e,n)=>t??e??n,Gve=ye({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(t,{attrs:e,slots:n}){const r=yt(cR),a=U(()=>t.route||r.value),i=yt(mP,0),o=U(()=>a.value.matched[i]);fn(mP,i+1),fn(Upe,o),fn(cR,a);const s=B();return Ke(()=>[s.value,o.value,t.name],([l,u,c],[f,d,h])=>{u&&(u.instances[c]=l,d&&d!==u&&l&&l===f&&(u.leaveGuards.size||(u.leaveGuards=d.leaveGuards),u.updateGuards.size||(u.updateGuards=d.updateGuards))),l&&u&&(!d||!Mg(u,d)||!f)&&(u.enterCallbacks[c]||[]).forEach(p=>p(l))},{flush:"post"}),()=>{const l=a.value,u=o.value,c=u&&u.components[t.name],f=t.name;if(!c)return LP(n.default,{Component:c,route:l});const d=u.props[t.name],h=d?d===!0?l.params:typeof d=="function"?d(l):d:null,v=At(c,Hr({},h,e,{onVnodeUnmounted:g=>{g.component.isUnmounted&&(u.instances[f]=null)},ref:s}));return LP(n.default,{Component:v,route:l})||v}}});function LP(t,e){if(!t)return null;const n=t(e);return n.length===1?n[0]:n}const Hve=Gve;function Wve(t){const e=mve(t.routes,t),n=t.parseQuery||Ive,r=t.stringifyQuery||DP,a=t.history,i=ry(),o=ry(),s=ry(),l=vr(Nc);let u=Nc;Av&&t.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=dM.bind(null,ie=>""+ie),f=dM.bind(null,Nve),d=dM.bind(null,t2);function h(ie,Q){let ce,se;return LK(ie)?(ce=e.getRecordMatcher(ie),se=Q):se=ie,e.addRoute(se,ce)}function p(ie){const Q=e.getRecordMatcher(ie);Q&&e.removeRoute(Q)}function v(){return e.getRoutes().map(ie=>ie.record)}function g(ie){return!!e.getRecordMatcher(ie)}function y(ie,Q){if(Q=Hr({},Q||l.value),typeof ie=="string"){const ee=hM(n,ie,Q.path),ue=e.resolve({path:ee.path},Q),fe=a.createHref(ee.fullPath);return Hr(ee,ue,{params:d(ue.params),hash:t2(ee.hash),redirectedFrom:void 0,href:fe})}let ce;if("path"in ie)ce=Hr({},ie,{path:hM(n,ie.path,Q.path).path});else{const ee=Hr({},ie.params);for(const ue in ee)ee[ue]==null&&delete ee[ue];ce=Hr({},ie,{params:f(ie.params)}),Q.params=f(Q.params)}const se=e.resolve(ce,Q),me=ie.hash||"";se.params=c(d(se.params));const ve=jpe(r,Hr({},ie,{hash:Lve(me),path:se.path})),he=a.createHref(ve);return Hr({fullPath:ve,hash:me,query:r===DP?Bve(ie.query):ie.query||{}},se,{redirectedFrom:void 0,href:he})}function m(ie){return typeof ie=="string"?hM(n,ie,l.value.path):Hr({},ie)}function S(ie,Q){if(u!==ie)return Dg(8,{from:Q,to:ie})}function w(ie){return x(ie)}function C(ie){return w(Hr(m(ie),{replace:!0}))}function _(ie){const Q=ie.matched[ie.matched.length-1];if(Q&&Q.redirect){const{redirect:ce}=Q;let se=typeof ce=="function"?ce(ie):ce;return typeof se=="string"&&(se=se.includes("?")||se.includes("#")?se=m(se):{path:se},se.params={}),Hr({query:ie.query,hash:ie.hash,params:ie.params},se)}}function x(ie,Q){const ce=u=y(ie),se=l.value,me=ie.state,ve=ie.force,he=ie.replace===!0,ee=_(ce);if(ee)return x(Hr(m(ee),{state:me,force:ve,replace:he}),Q||ce);const ue=ce;ue.redirectedFrom=Q;let fe;return!ve&&Kpe(r,se,ce)&&(fe=Dg(16,{to:ue,from:se}),z(se,se,!0,!1)),(fe?Promise.resolve(fe):M(ue,se)).catch(Re=>Ic(Re)?Ic(Re,2)?Re:V(Re):$(Re,ue,se)).then(Re=>{if(Re){if(Ic(Re,2))return x(Hr(m(Re.to),{state:me,force:ve,replace:he}),Q||ue)}else Re=A(ue,se,!0,he,me);return E(ue,se,Re),Re})}function T(ie,Q){const ce=S(ie,Q);return ce?Promise.reject(ce):Promise.resolve()}function M(ie,Q){let ce;const[se,me,ve]=jve(ie,Q);ce=pM(se.reverse(),"beforeRouteLeave",ie,Q);for(const ee of se)ee.leaveGuards.forEach(ue=>{ce.push(lf(ue,ie,Q))});const he=T.bind(null,ie,Q);return ce.push(he),qp(ce).then(()=>{ce=[];for(const ee of i.list())ce.push(lf(ee,ie,Q));return ce.push(he),qp(ce)}).then(()=>{ce=pM(me,"beforeRouteUpdate",ie,Q);for(const ee of me)ee.updateGuards.forEach(ue=>{ce.push(lf(ue,ie,Q))});return ce.push(he),qp(ce)}).then(()=>{ce=[];for(const ee of ie.matched)if(ee.beforeEnter&&!Q.matched.includes(ee))if(Array.isArray(ee.beforeEnter))for(const ue of ee.beforeEnter)ce.push(lf(ue,ie,Q));else ce.push(lf(ee.beforeEnter,ie,Q));return ce.push(he),qp(ce)}).then(()=>(ie.matched.forEach(ee=>ee.enterCallbacks={}),ce=pM(ve,"beforeRouteEnter",ie,Q),ce.push(he),qp(ce))).then(()=>{ce=[];for(const ee of o.list())ce.push(lf(ee,ie,Q));return ce.push(he),qp(ce)}).catch(ee=>Ic(ee,8)?ee:Promise.reject(ee))}function E(ie,Q,ce){for(const se of s.list())se(ie,Q,ce)}function A(ie,Q,ce,se,me){const ve=S(ie,Q);if(ve)return ve;const he=Q===Nc,ee=Av?history.state:{};ce&&(se||he?a.replace(ie.fullPath,Hr({scroll:he&&ee&&ee.scroll},me)):a.push(ie.fullPath,me)),l.value=ie,z(ie,Q,ce,he),V()}let k;function L(){k||(k=a.listen((ie,Q,ce)=>{const se=y(ie),me=_(se);if(me){x(Hr(me,{replace:!0}),se).catch(bm);return}u=se;const ve=l.value;Av&&tve(wP(ve.fullPath,ce.delta),rT()),M(se,ve).catch(he=>Ic(he,12)?he:Ic(he,2)?(x(he.to,se).then(ee=>{Ic(ee,20)&&!ce.delta&&ce.type===l1.pop&&a.go(-1,!1)}).catch(bm),Promise.reject()):(ce.delta&&a.go(-ce.delta,!1),$(he,se,ve))).then(he=>{he=he||A(se,ve,!1),he&&(ce.delta?a.go(-ce.delta,!1):ce.type===l1.pop&&Ic(he,20)&&a.go(-1,!1)),E(se,ve,he)}).catch(bm)}))}let I=ry(),P=ry(),F;function $(ie,Q,ce){V(ie);const se=P.list();return se.length?se.forEach(me=>me(ie,Q,ce)):console.error(ie),Promise.reject(ie)}function W(){return F&&l.value!==Nc?Promise.resolve():new Promise((ie,Q)=>{I.add([ie,Q])})}function V(ie){return F||(F=!ie,L(),I.list().forEach(([Q,ce])=>ie?ce(ie):Q()),I.reset()),ie}function z(ie,Q,ce,se){const{scrollBehavior:me}=t;if(!Av||!me)return Promise.resolve();const ve=!ce&&nve(wP(ie.fullPath,0))||(se||!ce)&&history.state&&history.state.scroll||null;return xt().then(()=>me(ie,Q,ve)).then(he=>he&&eve(he)).catch(he=>$(he,ie,Q))}const K=ie=>a.go(ie);let Z;const oe=new Set;return{currentRoute:l,addRoute:h,removeRoute:p,hasRoute:g,getRoutes:v,resolve:y,options:t,push:w,replace:C,go:K,back:()=>K(-1),forward:()=>K(1),beforeEach:i.add,beforeResolve:o.add,afterEach:s.add,onError:P.add,isReady:W,install(ie){const Q=this;ie.component("RouterLink",Fve),ie.component("RouterView",Hve),ie.config.globalProperties.$router=Q,Object.defineProperty(ie.config.globalProperties,"$route",{enumerable:!0,get:()=>b(l)}),Av&&!Z&&l.value===Nc&&(Z=!0,w(a.location).catch(me=>{}));const ce={};for(const me in Nc)ce[me]=U(()=>l.value[me]);ie.provide(nT,Q),ie.provide(c4,Vn(ce)),ie.provide(cR,l);const se=ie.unmount;oe.add(ie),ie.unmount=function(){oe.delete(ie),oe.size<1&&(u=Nc,k&&k(),k=null,l.value=Nc,Z=!1,F=!1),se()}}}}function qp(t){return t.reduce((e,n)=>e.then(()=>n()),Promise.resolve())}function jve(t,e){const n=[],r=[],a=[],i=Math.max(e.matched.length,t.matched.length);for(let o=0;o<i;o++){const s=e.matched[o];s&&(t.matched.find(u=>Mg(u,s))?r.push(s):n.push(s));const l=t.matched[o];l&&(e.matched.find(u=>Mg(u,l))||a.push(l))}return[n,r,a]}function Kve(){return yt(nT)}function PFt(){return yt(c4)}function FK(t,e){return function(){return t.apply(e,arguments)}}const{toString:Yve}=Object.prototype,{getPrototypeOf:d4}=Object,aT=(t=>e=>{const n=Yve.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Su=t=>(t=t.toLowerCase(),e=>aT(e)===t),iT=t=>e=>typeof e===t,{isArray:v0}=Array,u1=iT("undefined");function Xve(t){return t!==null&&!u1(t)&&t.constructor!==null&&!u1(t.constructor)&&ys(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const zK=Su("ArrayBuffer");function qve(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&zK(t.buffer),e}const Zve=iT("string"),ys=iT("function"),UK=iT("number"),oT=t=>t!==null&&typeof t=="object",Qve=t=>t===!0||t===!1,Fx=t=>{if(aT(t)!=="object")return!1;const e=d4(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},Jve=Su("Date"),ege=Su("File"),tge=Su("Blob"),nge=Su("FileList"),rge=t=>oT(t)&&ys(t.pipe),age=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||ys(t.append)&&((e=aT(t))==="formdata"||e==="object"&&ys(t.toString)&&t.toString()==="[object FormData]"))},ige=Su("URLSearchParams"),oge=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function _b(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let r,a;if(typeof t!="object"&&(t=[t]),v0(t))for(r=0,a=t.length;r<a;r++)e.call(null,t[r],r,t);else{const i=n?Object.getOwnPropertyNames(t):Object.keys(t),o=i.length;let s;for(r=0;r<o;r++)s=i[r],e.call(null,t[s],s,t)}}function GK(t,e){e=e.toLowerCase();const n=Object.keys(t);let r=n.length,a;for(;r-- >0;)if(a=n[r],e===a.toLowerCase())return a;return null}const HK=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),WK=t=>!u1(t)&&t!==HK;function hR(){const{caseless:t}=WK(this)&&this||{},e={},n=(r,a)=>{const i=t&&GK(e,a)||a;Fx(e[i])&&Fx(r)?e[i]=hR(e[i],r):Fx(r)?e[i]=hR({},r):v0(r)?e[i]=r.slice():e[i]=r};for(let r=0,a=arguments.length;r<a;r++)arguments[r]&&_b(arguments[r],n);return e}const sge=(t,e,n,{allOwnKeys:r}={})=>(_b(e,(a,i)=>{n&&ys(a)?t[i]=FK(a,n):t[i]=a},{allOwnKeys:r}),t),lge=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),uge=(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},cge=(t,e,n,r)=>{let a,i,o;const s={};if(e=e||{},t==null)return e;do{for(a=Object.getOwnPropertyNames(t),i=a.length;i-- >0;)o=a[i],(!r||r(o,t,e))&&!s[o]&&(e[o]=t[o],s[o]=!0);t=n!==!1&&d4(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},fge=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return r!==-1&&r===n},dge=t=>{if(!t)return null;if(v0(t))return t;let e=t.length;if(!UK(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},hge=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&d4(Uint8Array)),pge=(t,e)=>{const r=(t&&t[Symbol.iterator]).call(t);let a;for(;(a=r.next())&&!a.done;){const i=a.value;e.call(t,i[0],i[1])}},vge=(t,e)=>{let n;const r=[];for(;(n=t.exec(e))!==null;)r.push(n);return r},gge=Su("HTMLFormElement"),yge=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,a){return r.toUpperCase()+a}),OP=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),mge=Su("RegExp"),jK=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};_b(n,(a,i)=>{let o;(o=e(a,i,t))!==!1&&(r[i]=o||a)}),Object.defineProperties(t,r)},bge=t=>{jK(t,(e,n)=>{if(ys(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=t[n];if(ys(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Sge=(t,e)=>{const n={},r=a=>{a.forEach(i=>{n[i]=!0})};return v0(t)?r(t):r(String(t).split(e)),n},wge=()=>{},xge=(t,e)=>(t=+t,Number.isFinite(t)?t:e),vM="abcdefghijklmnopqrstuvwxyz",VP="0123456789",KK={DIGIT:VP,ALPHA:vM,ALPHA_DIGIT:vM+vM.toUpperCase()+VP},_ge=(t=16,e=KK.ALPHA_DIGIT)=>{let n="";const{length:r}=e;for(;t--;)n+=e[Math.random()*r|0];return n};function Cge(t){return!!(t&&ys(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const Tge=t=>{const e=new Array(10),n=(r,a)=>{if(oT(r)){if(e.indexOf(r)>=0)return;if(!("toJSON"in r)){e[a]=r;const i=v0(r)?[]:{};return _b(r,(o,s)=>{const l=n(o,a+1);!u1(l)&&(i[s]=l)}),e[a]=void 0,i}}return r};return n(t,0)},Ege=Su("AsyncFunction"),Mge=t=>t&&(oT(t)||ys(t))&&ys(t.then)&&ys(t.catch),bt={isArray:v0,isArrayBuffer:zK,isBuffer:Xve,isFormData:age,isArrayBufferView:qve,isString:Zve,isNumber:UK,isBoolean:Qve,isObject:oT,isPlainObject:Fx,isUndefined:u1,isDate:Jve,isFile:ege,isBlob:tge,isRegExp:mge,isFunction:ys,isStream:rge,isURLSearchParams:ige,isTypedArray:hge,isFileList:nge,forEach:_b,merge:hR,extend:sge,trim:oge,stripBOM:lge,inherits:uge,toFlatObject:cge,kindOf:aT,kindOfTest:Su,endsWith:fge,toArray:dge,forEachEntry:pge,matchAll:vge,isHTMLForm:gge,hasOwnProperty:OP,hasOwnProp:OP,reduceDescriptors:jK,freezeMethods:bge,toObjectSet:Sge,toCamelCase:yge,noop:wge,toFiniteNumber:xge,findKey:GK,global:HK,isContextDefined:WK,ALPHABET:KK,generateString:_ge,isSpecCompliantForm:Cge,toJSONObject:Tge,isAsyncFn:Ege,isThenable:Mge};function pr(t,e,n,r,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),r&&(this.request=r),a&&(this.response=a)}bt.inherits(pr,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:bt.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const YK=pr.prototype,XK={};["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(t=>{XK[t]={value:t}});Object.defineProperties(pr,XK);Object.defineProperty(YK,"isAxiosError",{value:!0});pr.from=(t,e,n,r,a,i)=>{const o=Object.create(YK);return bt.toFlatObject(t,o,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),pr.call(o,t.message,e,n,r,a),o.cause=t,o.name=t.name,i&&Object.assign(o,i),o};const Dge=null;function pR(t){return bt.isPlainObject(t)||bt.isArray(t)}function qK(t){return bt.endsWith(t,"[]")?t.slice(0,-2):t}function NP(t,e,n){return t?t.concat(e).map(function(a,i){return a=qK(a),!n&&i?"["+a+"]":a}).join(n?".":""):e}function Age(t){return bt.isArray(t)&&!t.some(pR)}const kge=bt.toFlatObject(bt,{},null,function(e){return/^is[A-Z]/.test(e)});function sT(t,e,n){if(!bt.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=bt.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(v,g){return!bt.isUndefined(g[v])});const r=n.metaTokens,a=n.visitor||c,i=n.dots,o=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&bt.isSpecCompliantForm(e);if(!bt.isFunction(a))throw new TypeError("visitor must be a function");function u(p){if(p===null)return"";if(bt.isDate(p))return p.toISOString();if(!l&&bt.isBlob(p))throw new pr("Blob is not supported. Use a Buffer instead.");return bt.isArrayBuffer(p)||bt.isTypedArray(p)?l&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function c(p,v,g){let y=p;if(p&&!g&&typeof p=="object"){if(bt.endsWith(v,"{}"))v=r?v:v.slice(0,-2),p=JSON.stringify(p);else if(bt.isArray(p)&&Age(p)||(bt.isFileList(p)||bt.endsWith(v,"[]"))&&(y=bt.toArray(p)))return v=qK(v),y.forEach(function(S,w){!(bt.isUndefined(S)||S===null)&&e.append(o===!0?NP([v],w,i):o===null?v:v+"[]",u(S))}),!1}return pR(p)?!0:(e.append(NP(g,v,i),u(p)),!1)}const f=[],d=Object.assign(kge,{defaultVisitor:c,convertValue:u,isVisitable:pR});function h(p,v){if(!bt.isUndefined(p)){if(f.indexOf(p)!==-1)throw Error("Circular reference detected in "+v.join("."));f.push(p),bt.forEach(p,function(y,m){(!(bt.isUndefined(y)||y===null)&&a.call(e,y,bt.isString(m)?m.trim():m,v,d))===!0&&h(y,v?v.concat(m):[m])}),f.pop()}}if(!bt.isObject(t))throw new TypeError("data must be an object");return h(t),e}function IP(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(r){return e[r]})}function h4(t,e){this._pairs=[],t&&sT(t,this,e)}const ZK=h4.prototype;ZK.append=function(e,n){this._pairs.push([e,n])};ZK.toString=function(e){const n=e?function(r){return e.call(this,r,IP)}:IP;return this._pairs.map(function(a){return n(a[0])+"="+n(a[1])},"").join("&")};function Rge(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function QK(t,e,n){if(!e)return t;const r=n&&n.encode||Rge,a=n&&n.serialize;let i;if(a?i=a(e,n):i=bt.isURLSearchParams(e)?e.toString():new h4(e,n).toString(r),i){const o=t.indexOf("#");o!==-1&&(t=t.slice(0,o)),t+=(t.indexOf("?")===-1?"?":"&")+i}return t}class Lge{constructor(){this.handlers=[]}use(e,n,r){return this.handlers.push({fulfilled:e,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){bt.forEach(this.handlers,function(r){r!==null&&e(r)})}}const BP=Lge,JK={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Oge=typeof URLSearchParams<"u"?URLSearchParams:h4,Vge=typeof FormData<"u"?FormData:null,Nge=typeof Blob<"u"?Blob:null,Ige=(()=>{let t;return typeof navigator<"u"&&((t=navigator.product)==="ReactNative"||t==="NativeScript"||t==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),Bge=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),il={isBrowser:!0,classes:{URLSearchParams:Oge,FormData:Vge,Blob:Nge},isStandardBrowserEnv:Ige,isStandardBrowserWebWorkerEnv:Bge,protocols:["http","https","file","blob","url","data"]};function $ge(t,e){return sT(t,new il.classes.URLSearchParams,Object.assign({visitor:function(n,r,a,i){return il.isNode&&bt.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},e))}function Pge(t){return bt.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function Fge(t){const e={},n=Object.keys(t);let r;const a=n.length;let i;for(r=0;r<a;r++)i=n[r],e[i]=t[i];return e}function eY(t){function e(n,r,a,i){let o=n[i++];const s=Number.isFinite(+o),l=i>=n.length;return o=!o&&bt.isArray(a)?a.length:o,l?(bt.hasOwnProp(a,o)?a[o]=[a[o],r]:a[o]=r,!s):((!a[o]||!bt.isObject(a[o]))&&(a[o]=[]),e(n,r,a[o],i)&&bt.isArray(a[o])&&(a[o]=Fge(a[o])),!s)}if(bt.isFormData(t)&&bt.isFunction(t.entries)){const n={};return bt.forEachEntry(t,(r,a)=>{e(Pge(r),a,n,0)}),n}return null}function zge(t,e,n){if(bt.isString(t))try{return(e||JSON.parse)(t),bt.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(t)}const p4={transitional:JK,adapter:il.isNode?"http":"xhr",transformRequest:[function(e,n){const r=n.getContentType()||"",a=r.indexOf("application/json")>-1,i=bt.isObject(e);if(i&&bt.isHTMLForm(e)&&(e=new FormData(e)),bt.isFormData(e))return a&&a?JSON.stringify(eY(e)):e;if(bt.isArrayBuffer(e)||bt.isBuffer(e)||bt.isStream(e)||bt.isFile(e)||bt.isBlob(e))return e;if(bt.isArrayBufferView(e))return e.buffer;if(bt.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let s;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return $ge(e,this.formSerializer).toString();if((s=bt.isFileList(e))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return sT(s?{"files[]":e}:e,l&&new l,this.formSerializer)}}return i||a?(n.setContentType("application/json",!1),zge(e)):e}],transformResponse:[function(e){const n=this.transitional||p4.transitional,r=n&&n.forcedJSONParsing,a=this.responseType==="json";if(e&&bt.isString(e)&&(r&&!this.responseType||a)){const o=!(n&&n.silentJSONParsing)&&a;try{return JSON.parse(e)}catch(s){if(o)throw s.name==="SyntaxError"?pr.from(s,pr.ERR_BAD_RESPONSE,this,null,this.response):s}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:il.classes.FormData,Blob:il.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};bt.forEach(["delete","get","head","post","put","patch"],t=>{p4.headers[t]={}});const v4=p4,Uge=bt.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"]),Gge=t=>{const e={};let n,r,a;return t&&t.split(`
  6. `).forEach(function(o){a=o.indexOf(":"),n=o.substring(0,a).trim().toLowerCase(),r=o.substring(a+1).trim(),!(!n||e[n]&&Uge[n])&&(n==="set-cookie"?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)}),e},$P=Symbol("internals");function ay(t){return t&&String(t).trim().toLowerCase()}function zx(t){return t===!1||t==null?t:bt.isArray(t)?t.map(zx):String(t)}function Hge(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(t);)e[r[1]]=r[2];return e}const Wge=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function gM(t,e,n,r,a){if(bt.isFunction(r))return r.call(this,e,n);if(a&&(e=n),!!bt.isString(e)){if(bt.isString(r))return e.indexOf(r)!==-1;if(bt.isRegExp(r))return r.test(e)}}function jge(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,r)=>n.toUpperCase()+r)}function Kge(t,e){const n=bt.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(t,r+n,{value:function(a,i,o){return this[r].call(this,e,a,i,o)},configurable:!0})})}class lT{constructor(e){e&&this.set(e)}set(e,n,r){const a=this;function i(s,l,u){const c=ay(l);if(!c)throw new Error("header name must be a non-empty string");const f=bt.findKey(a,c);(!f||a[f]===void 0||u===!0||u===void 0&&a[f]!==!1)&&(a[f||l]=zx(s))}const o=(s,l)=>bt.forEach(s,(u,c)=>i(u,c,l));return bt.isPlainObject(e)||e instanceof this.constructor?o(e,n):bt.isString(e)&&(e=e.trim())&&!Wge(e)?o(Gge(e),n):e!=null&&i(n,e,r),this}get(e,n){if(e=ay(e),e){const r=bt.findKey(this,e);if(r){const a=this[r];if(!n)return a;if(n===!0)return Hge(a);if(bt.isFunction(n))return n.call(this,a,r);if(bt.isRegExp(n))return n.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=ay(e),e){const r=bt.findKey(this,e);return!!(r&&this[r]!==void 0&&(!n||gM(this,this[r],r,n)))}return!1}delete(e,n){const r=this;let a=!1;function i(o){if(o=ay(o),o){const s=bt.findKey(r,o);s&&(!n||gM(r,r[s],s,n))&&(delete r[s],a=!0)}}return bt.isArray(e)?e.forEach(i):i(e),a}clear(e){const n=Object.keys(this);let r=n.length,a=!1;for(;r--;){const i=n[r];(!e||gM(this,this[i],i,e,!0))&&(delete this[i],a=!0)}return a}normalize(e){const n=this,r={};return bt.forEach(this,(a,i)=>{const o=bt.findKey(r,i);if(o){n[o]=zx(a),delete n[i];return}const s=e?jge(i):String(i).trim();s!==i&&delete n[i],n[s]=zx(a),r[s]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return bt.forEach(this,(r,a)=>{r!=null&&r!==!1&&(n[a]=e&&bt.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,n])=>e+": "+n).join(`
  7. `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const r=new this(e);return n.forEach(a=>r.set(a)),r}static accessor(e){const r=(this[$P]=this[$P]={accessors:{}}).accessors,a=this.prototype;function i(o){const s=ay(o);r[s]||(Kge(a,o),r[s]=!0)}return bt.isArray(e)?e.forEach(i):i(e),this}}lT.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);bt.reduceDescriptors(lT.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(r){this[n]=r}}});bt.freezeMethods(lT);const ec=lT;function yM(t,e){const n=this||v4,r=e||n,a=ec.from(r.headers);let i=r.data;return bt.forEach(t,function(s){i=s.call(n,i,a.normalize(),e?e.status:void 0)}),a.normalize(),i}function tY(t){return!!(t&&t.__CANCEL__)}function Cb(t,e,n){pr.call(this,t??"canceled",pr.ERR_CANCELED,e,n),this.name="CanceledError"}bt.inherits(Cb,pr,{__CANCEL__:!0});function Yge(t,e,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):e(new pr("Request failed with status code "+n.status,[pr.ERR_BAD_REQUEST,pr.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const Xge=il.isStandardBrowserEnv?function(){return{write:function(n,r,a,i,o,s){const l=[];l.push(n+"="+encodeURIComponent(r)),bt.isNumber(a)&&l.push("expires="+new Date(a).toGMTString()),bt.isString(i)&&l.push("path="+i),bt.isString(o)&&l.push("domain="+o),s===!0&&l.push("secure"),document.cookie=l.join("; ")},read:function(n){const r=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function qge(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function Zge(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}function nY(t,e){return t&&!qge(e)?Zge(t,e):e}const Qge=il.isStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function a(i){let o=i;return e&&(n.setAttribute("href",o),o=n.href),n.setAttribute("href",o),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=a(window.location.href),function(o){const s=bt.isString(o)?a(o):o;return s.protocol===r.protocol&&s.host===r.host}}():function(){return function(){return!0}}();function Jge(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function e0e(t,e){t=t||10;const n=new Array(t),r=new Array(t);let a=0,i=0,o;return e=e!==void 0?e:1e3,function(l){const u=Date.now(),c=r[i];o||(o=u),n[a]=l,r[a]=u;let f=i,d=0;for(;f!==a;)d+=n[f++],f=f%t;if(a=(a+1)%t,a===i&&(i=(i+1)%t),u-o<e)return;const h=c&&u-c;return h?Math.round(d*1e3/h):void 0}}function PP(t,e){let n=0;const r=e0e(50,250);return a=>{const i=a.loaded,o=a.lengthComputable?a.total:void 0,s=i-n,l=r(s),u=i<=o;n=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[e?"download":"upload"]=!0,t(c)}}const t0e=typeof XMLHttpRequest<"u",n0e=t0e&&function(t){return new Promise(function(n,r){let a=t.data;const i=ec.from(t.headers).normalize(),o=t.responseType;let s;function l(){t.cancelToken&&t.cancelToken.unsubscribe(s),t.signal&&t.signal.removeEventListener("abort",s)}bt.isFormData(a)&&(il.isStandardBrowserEnv||il.isStandardBrowserWebWorkerEnv?i.setContentType(!1):i.setContentType("multipart/form-data;",!1));let u=new XMLHttpRequest;if(t.auth){const h=t.auth.username||"",p=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";i.set("Authorization","Basic "+btoa(h+":"+p))}const c=nY(t.baseURL,t.url);u.open(t.method.toUpperCase(),QK(c,t.params,t.paramsSerializer),!0),u.timeout=t.timeout;function f(){if(!u)return;const h=ec.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),v={data:!o||o==="text"||o==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:h,config:t,request:u};Yge(function(y){n(y),l()},function(y){r(y),l()},v),u=null}if("onloadend"in u?u.onloadend=f:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(f)},u.onabort=function(){u&&(r(new pr("Request aborted",pr.ECONNABORTED,t,u)),u=null)},u.onerror=function(){r(new pr("Network Error",pr.ERR_NETWORK,t,u)),u=null},u.ontimeout=function(){let p=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";const v=t.transitional||JK;t.timeoutErrorMessage&&(p=t.timeoutErrorMessage),r(new pr(p,v.clarifyTimeoutError?pr.ETIMEDOUT:pr.ECONNABORTED,t,u)),u=null},il.isStandardBrowserEnv){const h=(t.withCredentials||Qge(c))&&t.xsrfCookieName&&Xge.read(t.xsrfCookieName);h&&i.set(t.xsrfHeaderName,h)}a===void 0&&i.setContentType(null),"setRequestHeader"in u&&bt.forEach(i.toJSON(),function(p,v){u.setRequestHeader(v,p)}),bt.isUndefined(t.withCredentials)||(u.withCredentials=!!t.withCredentials),o&&o!=="json"&&(u.responseType=t.responseType),typeof t.onDownloadProgress=="function"&&u.addEventListener("progress",PP(t.onDownloadProgress,!0)),typeof t.onUploadProgress=="function"&&u.upload&&u.upload.addEventListener("progress",PP(t.onUploadProgress)),(t.cancelToken||t.signal)&&(s=h=>{u&&(r(!h||h.type?new Cb(null,t,u):h),u.abort(),u=null)},t.cancelToken&&t.cancelToken.subscribe(s),t.signal&&(t.signal.aborted?s():t.signal.addEventListener("abort",s)));const d=Jge(c);if(d&&il.protocols.indexOf(d)===-1){r(new pr("Unsupported protocol "+d+":",pr.ERR_BAD_REQUEST,t));return}u.send(a||null)})},Ux={http:Dge,xhr:n0e};bt.forEach(Ux,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const rY={getAdapter:t=>{t=bt.isArray(t)?t:[t];const{length:e}=t;let n,r;for(let a=0;a<e&&(n=t[a],!(r=bt.isString(n)?Ux[n.toLowerCase()]:n));a++);if(!r)throw r===!1?new pr(`Adapter ${n} is not supported by the environment`,"ERR_NOT_SUPPORT"):new Error(bt.hasOwnProp(Ux,n)?`Adapter '${n}' is not available in the build`:`Unknown adapter '${n}'`);if(!bt.isFunction(r))throw new TypeError("adapter is not a function");return r},adapters:Ux};function mM(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Cb(null,t)}function FP(t){return mM(t),t.headers=ec.from(t.headers),t.data=yM.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),rY.getAdapter(t.adapter||v4.adapter)(t).then(function(r){return mM(t),r.data=yM.call(t,t.transformResponse,r),r.headers=ec.from(r.headers),r},function(r){return tY(r)||(mM(t),r&&r.response&&(r.response.data=yM.call(t,t.transformResponse,r.response),r.response.headers=ec.from(r.response.headers))),Promise.reject(r)})}const zP=t=>t instanceof ec?t.toJSON():t;function Ag(t,e){e=e||{};const n={};function r(u,c,f){return bt.isPlainObject(u)&&bt.isPlainObject(c)?bt.merge.call({caseless:f},u,c):bt.isPlainObject(c)?bt.merge({},c):bt.isArray(c)?c.slice():c}function a(u,c,f){if(bt.isUndefined(c)){if(!bt.isUndefined(u))return r(void 0,u,f)}else return r(u,c,f)}function i(u,c){if(!bt.isUndefined(c))return r(void 0,c)}function o(u,c){if(bt.isUndefined(c)){if(!bt.isUndefined(u))return r(void 0,u)}else return r(void 0,c)}function s(u,c,f){if(f in e)return r(u,c);if(f in t)return r(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,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(zP(u),zP(c),!0)};return bt.forEach(Object.keys(Object.assign({},t,e)),function(c){const f=l[c]||a,d=f(t[c],e[c],c);bt.isUndefined(d)&&f!==s||(n[c]=d)}),n}const aY="1.5.0",g4={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{g4[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}});const UP={};g4.transitional=function(e,n,r){function a(i,o){return"[Axios v"+aY+"] Transitional option '"+i+"'"+o+(r?". "+r:"")}return(i,o,s)=>{if(e===!1)throw new pr(a(o," has been removed"+(n?" in "+n:"")),pr.ERR_DEPRECATED);return n&&!UP[o]&&(UP[o]=!0,console.warn(a(o," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(i,o,s):!0}};function r0e(t,e,n){if(typeof t!="object")throw new pr("options must be an object",pr.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let a=r.length;for(;a-- >0;){const i=r[a],o=e[i];if(o){const s=t[i],l=s===void 0||o(s,i,t);if(l!==!0)throw new pr("option "+i+" must be "+l,pr.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new pr("Unknown option "+i,pr.ERR_BAD_OPTION)}}const vR={assertOptions:r0e,validators:g4},Bc=vR.validators;class n2{constructor(e){this.defaults=e,this.interceptors={request:new BP,response:new BP}}request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=Ag(this.defaults,n);const{transitional:r,paramsSerializer:a,headers:i}=n;r!==void 0&&vR.assertOptions(r,{silentJSONParsing:Bc.transitional(Bc.boolean),forcedJSONParsing:Bc.transitional(Bc.boolean),clarifyTimeoutError:Bc.transitional(Bc.boolean)},!1),a!=null&&(bt.isFunction(a)?n.paramsSerializer={serialize:a}:vR.assertOptions(a,{encode:Bc.function,serialize:Bc.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=i&&bt.merge(i.common,i[n.method]);i&&bt.forEach(["delete","get","head","post","put","patch","common"],p=>{delete i[p]}),n.headers=ec.concat(o,i);const s=[];let l=!0;this.interceptors.request.forEach(function(v){typeof v.runWhen=="function"&&v.runWhen(n)===!1||(l=l&&v.synchronous,s.unshift(v.fulfilled,v.rejected))});const u=[];this.interceptors.response.forEach(function(v){u.push(v.fulfilled,v.rejected)});let c,f=0,d;if(!l){const p=[FP.bind(this),void 0];for(p.unshift.apply(p,s),p.push.apply(p,u),d=p.length,c=Promise.resolve(n);f<d;)c=c.then(p[f++],p[f++]);return c}d=s.length;let h=n;for(f=0;f<d;){const p=s[f++],v=s[f++];try{h=p(h)}catch(g){v.call(this,g);break}}try{c=FP.call(this,h)}catch(p){return Promise.reject(p)}for(f=0,d=u.length;f<d;)c=c.then(u[f++],u[f++]);return c}getUri(e){e=Ag(this.defaults,e);const n=nY(e.baseURL,e.url);return QK(n,e.params,e.paramsSerializer)}}bt.forEach(["delete","get","head","options"],function(e){n2.prototype[e]=function(n,r){return this.request(Ag(r||{},{method:e,url:n,data:(r||{}).data}))}});bt.forEach(["post","put","patch"],function(e){function n(r){return function(i,o,s){return this.request(Ag(s||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:o}))}}n2.prototype[e]=n(),n2.prototype[e+"Form"]=n(!0)});const Gx=n2;let a0e=class iY{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const r=this;this.promise.then(a=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](a);r._listeners=null}),this.promise.then=a=>{let i;const o=new Promise(s=>{r.subscribe(s),i=s}).then(a);return o.cancel=function(){r.unsubscribe(i)},o},e(function(i,o,s){r.reason||(r.reason=new Cb(i,o,s),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}static source(){let e;return{token:new iY(function(a){e=a}),cancel:e}}};const i0e=a0e;function o0e(t){return function(n){return t.apply(null,n)}}function s0e(t){return bt.isObject(t)&&t.isAxiosError===!0}const gR={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(gR).forEach(([t,e])=>{gR[e]=t});const l0e=gR;function oY(t){const e=new Gx(t),n=FK(Gx.prototype.request,e);return bt.extend(n,Gx.prototype,e,{allOwnKeys:!0}),bt.extend(n,e,null,{allOwnKeys:!0}),n.create=function(a){return oY(Ag(t,a))},n}const Ba=oY(v4);Ba.Axios=Gx;Ba.CanceledError=Cb;Ba.CancelToken=i0e;Ba.isCancel=tY;Ba.VERSION=aY;Ba.toFormData=sT;Ba.AxiosError=pr;Ba.Cancel=Ba.CanceledError;Ba.all=function(e){return Promise.all(e)};Ba.spread=o0e;Ba.isAxiosError=s0e;Ba.mergeConfig=Ag;Ba.AxiosHeaders=ec;Ba.formToJSON=t=>eY(bt.isHTMLForm(t)?new FormData(t):t);Ba.getAdapter=rY.getAdapter;Ba.HttpStatusCode=l0e;Ba.default=Ba;const Ff=Ba;var u0e=!1;/*!
  8. * pinia v2.1.6
  9. * (c) 2023 Eduardo San Martin Morote
  10. * @license MIT
  11. */const c0e=Symbol();var GP;(function(t){t.direct="direct",t.patchObject="patch object",t.patchFunction="patch function"})(GP||(GP={}));function f0e(){const t=xj(!0),e=t.run(()=>B({}));let n=[],r=[];const a=Df({install(i){a._a=i,i.provide(c0e,a),i.config.globalProperties.$pinia=a,r.forEach(o=>n.push(o)),r=[]},use(i){return!this._a&&!u0e?r.push(i):n.push(i),this},_p:n,_a:null,_e:t,_s:new Map,state:e});return a}function d0e(t){return typeof t=="object"&&t!==null}function HP(t,e){return t=d0e(t)?t:Object.create(null),new Proxy(t,{get(n,r,a){return r==="key"?Reflect.get(n,r,a):Reflect.get(n,r,a)||Reflect.get(e,r,a)}})}function h0e(t,e){return e.reduce((n,r)=>n==null?void 0:n[r],t)}function p0e(t,e,n){return e.slice(0,-1).reduce((r,a)=>/^(__proto__)$/.test(a)?{}:r[a]=r[a]||{},t)[e[e.length-1]]=n,t}function v0e(t,e){return e.reduce((n,r)=>{const a=r.split(".");return p0e(n,a,h0e(t,a))},{})}function WP(t,{storage:e,serializer:n,key:r,debug:a}){try{const i=e==null?void 0:e.getItem(r);i&&t.$patch(n==null?void 0:n.deserialize(i))}catch(i){a&&console.error(i)}}function jP(t,{storage:e,serializer:n,key:r,paths:a,debug:i}){try{const o=Array.isArray(a)?v0e(t,a):t;e.setItem(r,n.serialize(o))}catch(o){i&&console.error(o)}}function g0e(t={}){return e=>{const{auto:n=!1}=t,{options:{persist:r=n},store:a,pinia:i}=e;if(!r)return;if(!(a.$id in i.state.value)){const s=i._s.get(a.$id.replace("__hot:",""));s&&Promise.resolve().then(()=>s.$persist());return}const o=(Array.isArray(r)?r.map(s=>HP(s,t)):[HP(r,t)]).map(({storage:s=localStorage,beforeRestore:l=null,afterRestore:u=null,serializer:c={serialize:JSON.stringify,deserialize:JSON.parse},key:f=a.$id,paths:d=null,debug:h=!1})=>{var p;return{storage:s,beforeRestore:l,afterRestore:u,serializer:c,key:((p=t.key)!=null?p:v=>v)(typeof f=="string"?f:f(a.$id)),paths:d,debug:h}});a.$persist=()=>{o.forEach(s=>{jP(a.$state,s)})},a.$hydrate=({runHooks:s=!0}={})=>{o.forEach(l=>{const{beforeRestore:u,afterRestore:c}=l;s&&(u==null||u(e)),WP(a,l),s&&(c==null||c(e))})},o.forEach(s=>{const{beforeRestore:l,afterRestore:u}=s;l==null||l(e),WP(a,s),u==null||u(e),a.$subscribe((c,f)=>{jP(f,s)},{detached:!0})})}}var y0e=g0e();const c1=f0e();c1.use(y0e);var ya=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function xi(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function m0e(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var a=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,a.get?a:{enumerable:!0,get:function(){return t[r]}})}),n}var sY={exports:{}};/*!
  12. * JavaScript Cookie v2.2.0
  13. * https://github.com/js-cookie/js-cookie
  14. *
  15. * Copyright 2006, 2015 Klaus Hartl & Fagner Brack
  16. * Released under the MIT license
  17. */(function(t,e){(function(n){var r=!1;if(t.exports=n(),r=!0,!r){var a=window.Cookies,i=window.Cookies=n();i.noConflict=function(){return window.Cookies=a,i}}})(function(){function n(){for(var a=0,i={};a<arguments.length;a++){var o=arguments[a];for(var s in o)i[s]=o[s]}return i}function r(a){function i(o,s,l){var u;if(!(typeof document>"u")){if(arguments.length>1){if(l=n({path:"/"},i.defaults,l),typeof l.expires=="number"){var c=new Date;c.setMilliseconds(c.getMilliseconds()+l.expires*864e5),l.expires=c}l.expires=l.expires?l.expires.toUTCString():"";try{u=JSON.stringify(s),/^[\{\[]/.test(u)&&(s=u)}catch{}a.write?s=a.write(s,o):s=encodeURIComponent(String(s)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),o=encodeURIComponent(String(o)),o=o.replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent),o=o.replace(/[\(\)]/g,escape);var f="";for(var d in l)l[d]&&(f+="; "+d,l[d]!==!0&&(f+="="+l[d]));return document.cookie=o+"="+s+f}o||(u={});for(var h=document.cookie?document.cookie.split("; "):[],p=/(%[0-9A-Z]{2})+/g,v=0;v<h.length;v++){var g=h[v].split("="),y=g.slice(1).join("=");!this.json&&y.charAt(0)==='"'&&(y=y.slice(1,-1));try{var m=g[0].replace(p,decodeURIComponent);if(y=a.read?a.read(y,m):a(y,m)||y.replace(p,decodeURIComponent),this.json)try{y=JSON.parse(y)}catch{}if(o===m){u=y;break}o||(u[m]=y)}catch{}}return u}}return i.set=i,i.get=function(o){return i.call(i,o)},i.getJSON=function(){return i.apply({json:!0},[].slice.call(arguments))},i.defaults={},i.remove=function(o,s){i(o,"",n(s,{expires:-1}))},i.withConverter=r,i}return r(function(){})})})(sY);var b0e=sY.exports;const Zi=xi(b0e),kh="CAE_token",Uv="CAE_userId",lY="CAE_loginflag";function S0e(){let t=[],e="0123456789abcdef";for(let r=0;r<36;r++)t[r]=e.substr(Math.floor(Math.random()*16),1);t[14]="4",t[19]=e.substr(t[19]&3|8,1),t[8]=t[13]=t[18]=t[23]="";var n=t.join("");return n}function uY(){return(Zi.get(kh)==null||Zi.get(kh)==""||Zi.get(kh)=="undefined")&&cY(S0e()),Zi.get(kh)}function w0e(){return Zi.get(kh)}function cY(t){return Zi.set(kh,t)}function x0e(){return Zi.remove(kh)}function _0e(){return(Zi.get(Uv)==null||Zi.get(Uv)==""||Zi.get(Uv)=="undefined")&&fY("guest"),Zi.get(Uv)}function fY(t){return Zi.set(Uv,t)}function C0e(){return Zi.remove(Uv)}function T0e(t){return Zi.set(lY,t)}function iy(){return Zi.get(lY)}function E0e(){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";this.encode=function(e){for(var n="",r,a,i,o,s,l,u,c=0;c<e.length;)r=e.charCodeAt(c++),a=e.charCodeAt(c++),i=e.charCodeAt(c++),o=r>>2,s=(r&3)<<4|a>>4,l=(a&15)<<2|i>>6,u=i&63,isNaN(a)?l=u=64:isNaN(i)&&(u=64),n=n+t.charAt(o)+t.charAt(s)+t.charAt(l)+t.charAt(u);return n},this.decode=function(e){var n="",r,a,i,o,s,l,u,c=0;for(e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");c<e.length;)o=t.indexOf(e.charAt(c++)),s=t.indexOf(e.charAt(c++)),l=t.indexOf(e.charAt(c++)),u=t.indexOf(e.charAt(c++)),r=o<<2|s>>4,a=(s&15)<<4|l>>2,i=(l&3)<<6|u,n=n+String.fromCharCode(r),l!=64&&(n=n+String.fromCharCode(a)),u!=64&&(n=n+String.fromCharCode(i));return n}}const KP=new E0e;function YP(t,e,n,r,a,i){n&&(e=unescape(encodeURIComponent(e)));var o=new Array(16843776,0,65536,16843780,16842756,66564,4,65536,1024,16843776,16843780,1024,16778244,16842756,16777216,4,1028,16778240,16778240,66560,66560,16842752,16842752,16778244,65540,16777220,16777220,65540,0,1028,66564,16777216,65536,16843780,4,16842752,16843776,16777216,16777216,1024,16842756,65536,66560,16777220,1024,4,16778244,66564,16843780,65540,16842752,16778244,16777220,1028,66564,16843776,1028,16778240,16778240,0,65540,66560,0,16842756),s=new Array(-2146402272,-2147450880,32768,1081376,1048576,32,-2146435040,-2147450848,-2147483616,-2146402272,-2146402304,-2147483648,-2147450880,1048576,32,-2146435040,1081344,1048608,-2147450848,0,-2147483648,32768,1081376,-2146435072,1048608,-2147483616,0,1081344,32800,-2146402304,-2146435072,32800,0,1081376,-2146435040,1048576,-2147450848,-2146435072,-2146402304,32768,-2146435072,-2147450880,32,-2146402272,1081376,32,32768,-2147483648,32800,-2146402304,1048576,-2147483616,1048608,-2147450848,-2147483616,1048608,1081344,0,-2147450880,32800,-2147483648,-2146435040,-2146402272,1081344),l=new Array(520,134349312,0,134348808,134218240,0,131592,134218240,131080,134217736,134217736,131072,134349320,131080,134348800,520,134217728,8,134349312,512,131584,134348800,134348808,131592,134218248,131584,131072,134218248,8,134349320,512,134217728,134349312,134217728,131080,520,131072,134349312,134218240,0,512,131080,134349320,134218240,134217736,512,0,134348808,134218248,131072,134217728,134349320,8,131592,131584,134217736,134348800,134218248,520,134348800,131592,8,134348808,131584),u=new Array(8396801,8321,8321,128,8396928,8388737,8388609,8193,0,8396800,8396800,8396929,129,0,8388736,8388609,1,8192,8388608,8396801,128,8388608,8193,8320,8388737,1,8320,8388736,8192,8396928,8396929,129,8388736,8388609,8396800,8396929,129,0,0,8396800,8320,8388736,8388737,1,8396801,8321,8321,128,8396929,129,1,8192,8388609,8193,8396928,8388737,8193,8320,8388608,8396801,128,8388608,8192,8396928),c=new Array(256,34078976,34078720,1107296512,524288,256,1073741824,34078720,1074266368,524288,33554688,1074266368,1107296512,1107820544,524544,1073741824,33554432,1074266112,1074266112,0,1073742080,1107820800,1107820800,33554688,1107820544,1073742080,0,1107296256,34078976,33554432,1107296256,524544,524288,1107296512,256,33554432,1073741824,34078720,1107296512,1074266368,33554688,1073741824,1107820544,34078976,1074266368,256,33554432,1107820544,1107820800,524544,1107296256,1107820800,34078720,0,1074266112,1107296256,524544,33554688,1073742080,524288,0,1074266112,34078976,1073742080),f=new Array(536870928,541065216,16384,541081616,541065216,16,541081616,4194304,536887296,4210704,4194304,536870928,4194320,536887296,536870912,16400,0,4194320,536887312,16384,4210688,536887312,16,541065232,541065232,0,4210704,541081600,16400,4210688,541081600,536870912,536887296,16,541065232,4210688,541081616,4194304,16400,536870928,4194304,536887296,536870912,16400,536870928,541081616,4210688,541065216,4210704,541081600,0,541065232,16,16384,541065216,4210704,16384,4194320,536887312,0,541081600,536870912,4194320,536887312),d=new Array(2097152,69206018,67110914,0,2048,67110914,2099202,69208064,69208066,2097152,0,67108866,2,67108864,69206018,2050,67110912,2099202,2097154,67110912,67108866,69206016,69208064,2097154,69206016,2048,2050,69208066,2099200,2,67108864,2099200,67108864,2099200,2097152,67110914,67110914,69206018,69206018,2,2097154,67108864,67110912,2097152,69208064,2050,2099202,69208064,2050,67108866,69208066,69206016,2099200,0,2,69208066,0,2099202,69206016,2048,67108866,67110912,2048,2097154),h=new Array(268439616,4096,262144,268701760,268435456,268439616,64,268435456,262208,268697600,268701760,266240,268701696,266304,4096,64,268697600,268435520,268439552,4160,266240,262208,268697664,268701696,4160,0,0,268697664,268435520,268439552,266304,262144,266304,262144,268701696,4096,64,268697664,4096,266304,268439552,64,268435520,268697600,268697664,268435456,262144,268439616,0,268701760,262208,268435520,268697600,268439552,268439616,0,268701760,266240,266240,4160,4160,262208,268435456,268701696),p=M0e(t),v=0,g,y,m,S,w,C,_,x,T,M,E,A,k,L,I=e.length,P=0,F=p.length==32?3:9;F==3?x=n?new Array(0,32,2):new Array(30,-2,-2):x=n?new Array(0,32,2,62,30,-2,64,96,2):new Array(94,62,-2,32,64,2,30,-2,-2),i==2?e+=" ":i==1?n&&(m=8-I%8,e+=String.fromCharCode(m,m,m,m,m,m,m,m),m===8&&(I+=8)):i||(e+="\0\0\0\0\0\0\0\0");var $="",W="";for(r==1&&(T=a.charCodeAt(v++)<<24|a.charCodeAt(v++)<<16|a.charCodeAt(v++)<<8|a.charCodeAt(v++),E=a.charCodeAt(v++)<<24|a.charCodeAt(v++)<<16|a.charCodeAt(v++)<<8|a.charCodeAt(v++),v=0);v<I;){for(C=e.charCodeAt(v++)<<24|e.charCodeAt(v++)<<16|e.charCodeAt(v++)<<8|e.charCodeAt(v++),_=e.charCodeAt(v++)<<24|e.charCodeAt(v++)<<16|e.charCodeAt(v++)<<8|e.charCodeAt(v++),r==1&&(n?(C^=T,_^=E):(M=T,A=E,T=C,E=_)),m=(C>>>4^_)&252645135,_^=m,C^=m<<4,m=(C>>>16^_)&65535,_^=m,C^=m<<16,m=(_>>>2^C)&858993459,C^=m,_^=m<<2,m=(_>>>8^C)&16711935,C^=m,_^=m<<8,m=(C>>>1^_)&1431655765,_^=m,C^=m<<1,C=C<<1|C>>>31,_=_<<1|_>>>31,y=0;y<F;y+=3){for(k=x[y+1],L=x[y+2],g=x[y];g!=k;g+=L)S=_^p[g],w=(_>>>4|_<<28)^p[g+1],m=C,C=_,_=m^(s[S>>>24&63]|u[S>>>16&63]|f[S>>>8&63]|h[S&63]|o[w>>>24&63]|l[w>>>16&63]|c[w>>>8&63]|d[w&63]);m=C,C=_,_=m}C=C>>>1|C<<31,_=_>>>1|_<<31,m=(C>>>1^_)&1431655765,_^=m,C^=m<<1,m=(_>>>8^C)&16711935,C^=m,_^=m<<8,m=(_>>>2^C)&858993459,C^=m,_^=m<<2,m=(C>>>16^_)&65535,_^=m,C^=m<<16,m=(C>>>4^_)&252645135,_^=m,C^=m<<4,r==1&&(n?(T=C,E=_):(C^=M,_^=A)),W+=String.fromCharCode(C>>>24,C>>>16&255,C>>>8&255,C&255,_>>>24,_>>>16&255,_>>>8&255,_&255),P+=8,P==512&&($+=W,W="",P=0)}if($+=W,!n){if(i===1){var I=$.length,V=0;I&&(V=$.charCodeAt(I-1)),V<=8&&($=$.substring(0,I-V))}$=decodeURIComponent(escape($))}return $}function M0e(t){for(var e=new Array(0,4,536870912,536870916,65536,65540,536936448,536936452,512,516,536871424,536871428,66048,66052,536936960,536936964),n=new Array(0,1,1048576,1048577,67108864,67108865,68157440,68157441,256,257,1048832,1048833,67109120,67109121,68157696,68157697),r=new Array(0,8,2048,2056,16777216,16777224,16779264,16779272,0,8,2048,2056,16777216,16777224,16779264,16779272),a=new Array(0,2097152,134217728,136314880,8192,2105344,134225920,136323072,131072,2228224,134348800,136445952,139264,2236416,134356992,136454144),i=new Array(0,262144,16,262160,0,262144,16,262160,4096,266240,4112,266256,4096,266240,4112,266256),o=new Array(0,1024,32,1056,0,1024,32,1056,33554432,33555456,33554464,33555488,33554432,33555456,33554464,33555488),s=new Array(0,268435456,524288,268959744,2,268435458,524290,268959746,0,268435456,524288,268959744,2,268435458,524290,268959746),l=new Array(0,65536,2048,67584,536870912,536936448,536872960,536938496,131072,196608,133120,198656,537001984,537067520,537004032,537069568),u=new Array(0,262144,0,262144,2,262146,2,262146,33554432,33816576,33554432,33816576,33554434,33816578,33554434,33816578),c=new Array(0,268435456,8,268435464,0,268435456,8,268435464,1024,268436480,1032,268436488,1024,268436480,1032,268436488),f=new Array(0,32,0,32,1048576,1048608,1048576,1048608,8192,8224,8192,8224,1056768,1056800,1056768,1056800),d=new Array(0,16777216,512,16777728,2097152,18874368,2097664,18874880,67108864,83886080,67109376,83886592,69206016,85983232,69206528,85983744),h=new Array(0,4096,134217728,134221824,524288,528384,134742016,134746112,16,4112,134217744,134221840,524304,528400,134742032,134746128),p=new Array(0,4,256,260,0,4,256,260,1,5,257,261,1,5,257,261),v=t.length>8?3:1,g=new Array(32*v),y=new Array(0,0,1,1,1,1,1,1,0,1,1,1,1,1,1,0),m,S,w=0,C=0,_,x=0;x<v;x++){var T=t.charCodeAt(w++)<<24|t.charCodeAt(w++)<<16|t.charCodeAt(w++)<<8|t.charCodeAt(w++),M=t.charCodeAt(w++)<<24|t.charCodeAt(w++)<<16|t.charCodeAt(w++)<<8|t.charCodeAt(w++);_=(T>>>4^M)&252645135,M^=_,T^=_<<4,_=(M>>>-16^T)&65535,T^=_,M^=_<<-16,_=(T>>>2^M)&858993459,M^=_,T^=_<<2,_=(M>>>-16^T)&65535,T^=_,M^=_<<-16,_=(T>>>1^M)&1431655765,M^=_,T^=_<<1,_=(M>>>8^T)&16711935,T^=_,M^=_<<8,_=(T>>>1^M)&1431655765,M^=_,T^=_<<1,_=T<<8|M>>>20&240,T=M<<24|M<<8&16711680|M>>>8&65280|M>>>24&240,M=_;for(var E=0;E<y.length;E++)y[E]?(T=T<<2|T>>>26,M=M<<2|M>>>26):(T=T<<1|T>>>27,M=M<<1|M>>>27),T&=-15,M&=-15,m=e[T>>>28]|n[T>>>24&15]|r[T>>>20&15]|a[T>>>16&15]|i[T>>>12&15]|o[T>>>8&15]|s[T>>>4&15],S=l[M>>>28]|u[M>>>24&15]|c[M>>>20&15]|f[M>>>16&15]|d[M>>>12&15]|h[M>>>8&15]|p[M>>>4&15],_=(S>>>16^m)&65535,g[C++]=m^_,g[C++]=S^_<<16}return g}function XP(t,e,n){return{key:D0e(t.slice(e,n)),vector:1}}function D0e(t){for(var e=t.length;e<24;e++)t+="0";return t}var qP="/ECB/PKCS5Padding",A0e={encrypt:function(t,e){var n=XP(t,0,24),r=KP;return r.encode(YP(n.key,e,1,0,qP,1))},decrypt:function(t,e){var n=XP(t,0,24),r=KP;return YP(n.key,r.decode(e),0,0,qP,1)}};const k0e='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',R0e=t=>getComputedStyle(t).position==="fixed"?!1:t.offsetParent!==null,ZP=t=>Array.from(t.querySelectorAll(k0e)).filter(e=>L0e(e)&&R0e(e)),L0e=t=>{if(t.tabIndex>0||t.tabIndex===0&&t.getAttribute("tabIndex")!==null)return!0;if(t.disabled)return!1;switch(t.nodeName){case"A":return!!t.href&&t.rel!=="ignore";case"INPUT":return!(t.type==="hidden"||t.type==="file");case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},Hx=function(t,e,...n){let r;e.includes("mouse")||e.includes("click")?r="MouseEvents":e.includes("key")?r="KeyboardEvent":r="HTMLEvents";const a=document.createEvent(r);return a.initEvent(e,...n),t.dispatchEvent(a),t},dY=t=>!t.getAttribute("aria-owns"),hY=(t,e,n)=>{const{parentNode:r}=t;if(!r)return null;const a=r.querySelectorAll(n),i=Array.prototype.indexOf.call(a,t);return a[i+e]||null},Wx=t=>{t&&(t.focus(),!dY(t)&&t.click())},Zr=(t,e,{checkForDefaultPrevented:n=!0}={})=>a=>{const i=t==null?void 0:t(a);if(n===!1||!i)return e==null?void 0:e(a)},QP=t=>e=>e.pointerType==="mouse"?t(e):void 0;var O0e=Object.defineProperty,V0e=Object.defineProperties,N0e=Object.getOwnPropertyDescriptors,JP=Object.getOwnPropertySymbols,I0e=Object.prototype.hasOwnProperty,B0e=Object.prototype.propertyIsEnumerable,eF=(t,e,n)=>e in t?O0e(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,$0e=(t,e)=>{for(var n in e||(e={}))I0e.call(e,n)&&eF(t,n,e[n]);if(JP)for(var n of JP(e))B0e.call(e,n)&&eF(t,n,e[n]);return t},P0e=(t,e)=>V0e(t,N0e(e));function tF(t,e){var n;const r=vr();return Uo(()=>{r.value=t()},P0e($0e({},e),{flush:(n=e==null?void 0:e.flush)!=null?n:"sync"})),d0(r)}var nF;const _n=typeof window<"u",F0e=t=>typeof t<"u",z0e=t=>typeof t=="function",U0e=t=>typeof t=="string",kg=()=>{},pY=_n&&((nF=window==null?void 0:window.navigator)==null?void 0:nF.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function zf(t){return typeof t=="function"?t():b(t)}function vY(t,e){function n(...r){return new Promise((a,i)=>{Promise.resolve(t(()=>e.apply(this,r),{fn:e,thisArg:this,args:r})).then(a).catch(i)})}return n}function G0e(t,e={}){let n,r,a=kg;const i=s=>{clearTimeout(s),a(),a=kg};return s=>{const l=zf(t),u=zf(e.maxWait);return n&&i(n),l<=0||u!==void 0&&u<=0?(r&&(i(r),r=null),Promise.resolve(s())):new Promise((c,f)=>{a=e.rejectOnCancel?f:c,u&&!r&&(r=setTimeout(()=>{n&&i(n),r=null,c(s())},u)),n=setTimeout(()=>{r&&i(r),r=null,c(s())},l)})}}function H0e(t,e=!0,n=!0,r=!1){let a=0,i,o=!0,s=kg,l;const u=()=>{i&&(clearTimeout(i),i=void 0,s(),s=kg)};return f=>{const d=zf(t),h=Date.now()-a,p=()=>l=f();return u(),d<=0?(a=Date.now(),p()):(h>d&&(n||!o)?(a=Date.now(),p()):e&&(l=new Promise((v,g)=>{s=r?g:v,i=setTimeout(()=>{a=Date.now(),o=!0,v(p()),u()},Math.max(0,d-h))})),!n&&!i&&(i=setTimeout(()=>o=!0,d)),o=!1,l)}}function W0e(t){return t}function uT(t){return _j()?(Cj(t),!0):!1}function j0e(t,e=200,n={}){return vY(G0e(e,n),t)}function K0e(t,e=200,n={}){const r=B(t.value),a=j0e(()=>{r.value=t.value},e,n);return Ke(t,()=>a()),r}function gY(t,e=200,n=!1,r=!0,a=!1){return vY(H0e(e,n,r,a),t)}function y4(t,e=!0){Qt()?Ut(t):e?t():xt(t)}function dp(t,e,n={}){const{immediate:r=!0}=n,a=B(!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,t(...u)},zf(e))}return r&&(a.value=!0,_n&&l()),uT(s),{isPending:d0(a),start:l,stop:s}}function Po(t){var e;const n=zf(t);return(e=n==null?void 0:n.$el)!=null?e:n}const g0=_n?window:void 0,Y0e=_n?window.document:void 0;function Or(...t){let e,n,r,a;if(U0e(t[0])||Array.isArray(t[0])?([n,r,a]=t,e=g0):[e,n,r,a]=t,!e)return kg;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);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=Ke(()=>[Po(e),zf(a)],([c,f])=>{o(),c&&i.push(...n.flatMap(d=>r.map(h=>s(c,d,h,f))))},{immediate:!0,flush:"post"}),u=()=>{l(),o()};return uT(u),u}let rF=!1;function m4(t,e,n={}){const{window:r=g0,ignore:a=[],capture:i=!0,detectIframe:o=!1}=n;if(!r)return;pY&&!rF&&(rF=!0,Array.from(r.document.body.children).forEach(d=>d.addEventListener("click",kg)));let s=!0;const l=d=>a.some(h=>{if(typeof h=="string")return Array.from(r.document.querySelectorAll(h)).some(p=>p===d.target||d.composedPath().includes(p));{const p=Po(h);return p&&(d.target===p||d.composedPath().includes(p))}}),c=[Or(r,"click",d=>{const h=Po(t);if(!(!h||h===d.target||d.composedPath().includes(h))){if(d.detail===0&&(s=!l(d)),!s){s=!0;return}e(d)}},{passive:!0,capture:i}),Or(r,"pointerdown",d=>{const h=Po(t);h&&(s=!d.composedPath().includes(h)&&!l(d))},{passive:!0}),o&&Or(r,"blur",d=>{var h;const p=Po(t);((h=r.document.activeElement)==null?void 0:h.tagName)==="IFRAME"&&!(p!=null&&p.contains(r.document.activeElement))&&e(d)})].filter(Boolean);return()=>c.forEach(d=>d())}function X0e(t,e=!1){const n=B(),r=()=>n.value=!!t();return r(),y4(r,e),n}function q0e(t){return JSON.parse(JSON.stringify(t))}const aF=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},iF="__vueuse_ssr_handlers__";aF[iF]=aF[iF]||{};function Z0e(t,e,{window:n=g0,initialValue:r=""}={}){const a=B(r),i=U(()=>{var o;return Po(e)||((o=n==null?void 0:n.document)==null?void 0:o.documentElement)});return Ke([i,()=>zf(t)],([o,s])=>{var l;if(o&&n){const u=(l=n.getComputedStyle(o).getPropertyValue(s))==null?void 0:l.trim();a.value=u||r}},{immediate:!0}),Ke(a,o=>{var s;(s=i.value)!=null&&s.style&&i.value.style.setProperty(zf(t),o)}),a}function Q0e({document:t=Y0e}={}){if(!t)return B("visible");const e=B(t.visibilityState);return Or(t,"visibilitychange",()=>{e.value=t.visibilityState}),e}var oF=Object.getOwnPropertySymbols,J0e=Object.prototype.hasOwnProperty,eye=Object.prototype.propertyIsEnumerable,tye=(t,e)=>{var n={};for(var r in t)J0e.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&oF)for(var r of oF(t))e.indexOf(r)<0&&eye.call(t,r)&&(n[r]=t[r]);return n};function Vi(t,e,n={}){const r=n,{window:a=g0}=r,i=tye(r,["window"]);let o;const s=X0e(()=>a&&"ResizeObserver"in a),l=()=>{o&&(o.disconnect(),o=void 0)},u=Ke(()=>Po(t),f=>{l(),s.value&&a&&f&&(o=new ResizeObserver(e),o.observe(f,i))},{immediate:!0,flush:"post"}),c=()=>{l(),u()};return uT(c),{isSupported:s,stop:c}}function sF(t,e={}){const{reset:n=!0,windowResize:r=!0,windowScroll:a=!0,immediate:i=!0}=e,o=B(0),s=B(0),l=B(0),u=B(0),c=B(0),f=B(0),d=B(0),h=B(0);function p(){const v=Po(t);if(!v){n&&(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=v.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 Vi(t,p),Ke(()=>Po(t),v=>!v&&p()),a&&Or("scroll",p,{capture:!0,passive:!0}),r&&Or("resize",p,{passive:!0}),y4(()=>{i&&p()}),{height:o,bottom:s,left:l,right:u,top:c,width:f,x:d,y:h,update:p}}var lF;(function(t){t.UP="UP",t.RIGHT="RIGHT",t.DOWN="DOWN",t.LEFT="LEFT",t.NONE="NONE"})(lF||(lF={}));var nye=Object.defineProperty,uF=Object.getOwnPropertySymbols,rye=Object.prototype.hasOwnProperty,aye=Object.prototype.propertyIsEnumerable,cF=(t,e,n)=>e in t?nye(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,iye=(t,e)=>{for(var n in e||(e={}))rye.call(e,n)&&cF(t,n,e[n]);if(uF)for(var n of uF(e))aye.call(e,n)&&cF(t,n,e[n]);return t};const oye={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]};iye({linear:W0e},oye);function sye(t,e,n,r={}){var a,i,o;const{clone:s=!1,passive:l=!1,eventName:u,deep:c=!1,defaultValue:f}=r,d=Qt(),h=n||(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 p=u;e||(e="modelValue"),p=u||p||`update:${e.toString()}`;const v=y=>s?z0e(s)?s(y):q0e(y):y,g=()=>F0e(t[e])?v(t[e]):f;if(l){const y=g(),m=B(y);return Ke(()=>t[e],S=>m.value=v(S)),Ke(m,S=>{(S!==t[e]||c)&&h(p,S)},{deep:c}),m}else return U({get(){return g()},set(y){h(p,y)}})}function lye({window:t=g0}={}){if(!t)return B(!1);const e=B(t.document.hasFocus());return Or(t,"blur",()=>{e.value=!1}),Or(t,"focus",()=>{e.value=!0}),e}function uye(t={}){const{window:e=g0,initialWidth:n=1/0,initialHeight:r=1/0,listenOrientation:a=!0,includeScrollbar:i=!0}=t,o=B(n),s=B(r),l=()=>{e&&(i?(o.value=e.innerWidth,s.value=e.innerHeight):(o.value=e.document.documentElement.clientWidth,s.value=e.document.documentElement.clientHeight))};return l(),y4(l),Or("resize",l,{passive:!0}),a&&Or("orientationchange",l,{passive:!0}),{width:o,height:s}}const yY=()=>_n&&/firefox/i.test(window.navigator.userAgent),cye=(t,e)=>{if(!_n||!t||!e)return!1;const n=t.getBoundingClientRect();let r;return e instanceof Element?r=e.getBoundingClientRect():r={top:0,right:window.innerWidth,bottom:window.innerHeight,left:0},n.top<r.bottom&&n.bottom>r.top&&n.right>r.left&&n.left<r.right},fF=t=>{let e=0,n=t;for(;n;)e+=n.offsetTop,n=n.offsetParent;return e},fye=(t,e)=>Math.abs(fF(t)-fF(e)),b4=t=>{let e,n;return t.type==="touchend"?(n=t.changedTouches[0].clientY,e=t.changedTouches[0].clientX):t.type.startsWith("touch")?(n=t.touches[0].clientY,e=t.touches[0].clientX):(n=t.clientY,e=t.clientX),{clientX:e,clientY:n}};var dye=typeof global=="object"&&global&&global.Object===Object&&global;const mY=dye;var hye=typeof self=="object"&&self&&self.Object===Object&&self,pye=mY||hye||Function("return this")();const _l=pye;var vye=_l.Symbol;const ws=vye;var bY=Object.prototype,gye=bY.hasOwnProperty,yye=bY.toString,oy=ws?ws.toStringTag:void 0;function mye(t){var e=gye.call(t,oy),n=t[oy];try{t[oy]=void 0;var r=!0}catch{}var a=yye.call(t);return r&&(e?t[oy]=n:delete t[oy]),a}var bye=Object.prototype,Sye=bye.toString;function wye(t){return Sye.call(t)}var xye="[object Null]",_ye="[object Undefined]",dF=ws?ws.toStringTag:void 0;function Ap(t){return t==null?t===void 0?_ye:xye:dF&&dF in Object(t)?mye(t):wye(t)}function cu(t){return t!=null&&typeof t=="object"}var Cye="[object Symbol]";function cT(t){return typeof t=="symbol"||cu(t)&&Ap(t)==Cye}function SY(t,e){for(var n=-1,r=t==null?0:t.length,a=Array(r);++n<r;)a[n]=e(t[n],n,t);return a}var Tye=Array.isArray;const no=Tye;var Eye=1/0,hF=ws?ws.prototype:void 0,pF=hF?hF.toString:void 0;function wY(t){if(typeof t=="string")return t;if(no(t))return SY(t,wY)+"";if(cT(t))return pF?pF.call(t):"";var e=t+"";return e=="0"&&1/t==-Eye?"-0":e}var Mye=/\s/;function Dye(t){for(var e=t.length;e--&&Mye.test(t.charAt(e)););return e}var Aye=/^\s+/;function kye(t){return t&&t.slice(0,Dye(t)+1).replace(Aye,"")}function ro(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var vF=0/0,Rye=/^[-+]0x[0-9a-f]+$/i,Lye=/^0b[01]+$/i,Oye=/^0o[0-7]+$/i,Vye=parseInt;function yR(t){if(typeof t=="number")return t;if(cT(t))return vF;if(ro(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=ro(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=kye(t);var n=Lye.test(t);return n||Oye.test(t)?Vye(t.slice(2),n?2:8):Rye.test(t)?vF:+t}var gF=1/0,Nye=17976931348623157e292;function Iye(t){if(!t)return t===0?t:0;if(t=yR(t),t===gF||t===-gF){var e=t<0?-1:1;return e*Nye}return t===t?t:0}function Bye(t){var e=Iye(t),n=e%1;return e===e?n?e-n:e:0}function S4(t){return t}var $ye="[object AsyncFunction]",Pye="[object Function]",Fye="[object GeneratorFunction]",zye="[object Proxy]";function w4(t){if(!ro(t))return!1;var e=Ap(t);return e==Pye||e==Fye||e==$ye||e==zye}var Uye=_l["__core-js_shared__"];const bM=Uye;var yF=function(){var t=/[^.]+$/.exec(bM&&bM.keys&&bM.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function Gye(t){return!!yF&&yF in t}var Hye=Function.prototype,Wye=Hye.toString;function kp(t){if(t!=null){try{return Wye.call(t)}catch{}try{return t+""}catch{}}return""}var jye=/[\\^$.*+?()[\]{}|]/g,Kye=/^\[object .+?Constructor\]$/,Yye=Function.prototype,Xye=Object.prototype,qye=Yye.toString,Zye=Xye.hasOwnProperty,Qye=RegExp("^"+qye.call(Zye).replace(jye,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Jye(t){if(!ro(t)||Gye(t))return!1;var e=w4(t)?Qye:Kye;return e.test(kp(t))}function eme(t,e){return t==null?void 0:t[e]}function Rp(t,e){var n=eme(t,e);return Jye(n)?n:void 0}var tme=Rp(_l,"WeakMap");const mR=tme;var mF=Object.create,nme=function(){function t(){}return function(e){if(!ro(e))return{};if(mF)return mF(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();const rme=nme;function ame(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function ime(){}function xY(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}var ome=800,sme=16,lme=Date.now;function ume(t){var e=0,n=0;return function(){var r=lme(),a=sme-(r-n);if(n=r,a>0){if(++e>=ome)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}function cme(t){return function(){return t}}var fme=function(){try{var t=Rp(Object,"defineProperty");return t({},"",{}),t}catch{}}();const r2=fme;var dme=r2?function(t,e){return r2(t,"toString",{configurable:!0,enumerable:!1,value:cme(e),writable:!0})}:S4;const hme=dme;var pme=ume(hme);const _Y=pme;function vme(t,e){for(var n=-1,r=t==null?0:t.length;++n<r&&e(t[n],n,t)!==!1;);return t}function CY(t,e,n,r){for(var a=t.length,i=n+(r?1:-1);r?i--:++i<a;)if(e(t[i],i,t))return i;return-1}function gme(t){return t!==t}function yme(t,e,n){for(var r=n-1,a=t.length;++r<a;)if(t[r]===e)return r;return-1}function mme(t,e,n){return e===e?yme(t,e,n):CY(t,gme,n)}function bme(t,e){var n=t==null?0:t.length;return!!n&&mme(t,e,0)>-1}var Sme=9007199254740991,wme=/^(?:0|[1-9]\d*)$/;function fT(t,e){var n=typeof t;return e=e??Sme,!!e&&(n=="number"||n!="symbol"&&wme.test(t))&&t>-1&&t%1==0&&t<e}function x4(t,e,n){e=="__proto__"&&r2?r2(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function Tb(t,e){return t===e||t!==t&&e!==e}var xme=Object.prototype,_me=xme.hasOwnProperty;function _4(t,e,n){var r=t[e];(!(_me.call(t,e)&&Tb(r,n))||n===void 0&&!(e in t))&&x4(t,e,n)}function Eb(t,e,n,r){var a=!n;n||(n={});for(var i=-1,o=e.length;++i<o;){var s=e[i],l=r?r(n[s],t[s],s,n,t):void 0;l===void 0&&(l=t[s]),a?x4(n,s,l):_4(n,s,l)}return n}var bF=Math.max;function TY(t,e,n){return e=bF(e===void 0?t.length-1:e,0),function(){for(var r=arguments,a=-1,i=bF(r.length-e,0),o=Array(i);++a<i;)o[a]=r[e+a];a=-1;for(var s=Array(e+1);++a<e;)s[a]=r[a];return s[e]=n(o),ame(t,this,s)}}function EY(t,e){return _Y(TY(t,e,S4),t+"")}var Cme=9007199254740991;function C4(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=Cme}function y0(t){return t!=null&&C4(t.length)&&!w4(t)}function Tme(t,e,n){if(!ro(n))return!1;var r=typeof e;return(r=="number"?y0(n)&&fT(e,n.length):r=="string"&&e in n)?Tb(n[e],t):!1}function Eme(t){return EY(function(e,n){var r=-1,a=n.length,i=a>1?n[a-1]:void 0,o=a>2?n[2]:void 0;for(i=t.length>3&&typeof i=="function"?(a--,i):void 0,o&&Tme(n[0],n[1],o)&&(i=a<3?void 0:i,a=1),e=Object(e);++r<a;){var s=n[r];s&&t(e,s,r,i)}return e})}var Mme=Object.prototype;function T4(t){var e=t&&t.constructor,n=typeof e=="function"&&e.prototype||Mme;return t===n}function Dme(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}var Ame="[object Arguments]";function SF(t){return cu(t)&&Ap(t)==Ame}var MY=Object.prototype,kme=MY.hasOwnProperty,Rme=MY.propertyIsEnumerable,Lme=SF(function(){return arguments}())?SF:function(t){return cu(t)&&kme.call(t,"callee")&&!Rme.call(t,"callee")};const f1=Lme;function Ome(){return!1}var DY=typeof exports=="object"&&exports&&!exports.nodeType&&exports,wF=DY&&typeof module=="object"&&module&&!module.nodeType&&module,Vme=wF&&wF.exports===DY,xF=Vme?_l.Buffer:void 0,Nme=xF?xF.isBuffer:void 0,Ime=Nme||Ome;const d1=Ime;var Bme="[object Arguments]",$me="[object Array]",Pme="[object Boolean]",Fme="[object Date]",zme="[object Error]",Ume="[object Function]",Gme="[object Map]",Hme="[object Number]",Wme="[object Object]",jme="[object RegExp]",Kme="[object Set]",Yme="[object String]",Xme="[object WeakMap]",qme="[object ArrayBuffer]",Zme="[object DataView]",Qme="[object Float32Array]",Jme="[object Float64Array]",e1e="[object Int8Array]",t1e="[object Int16Array]",n1e="[object Int32Array]",r1e="[object Uint8Array]",a1e="[object Uint8ClampedArray]",i1e="[object Uint16Array]",o1e="[object Uint32Array]",ra={};ra[Qme]=ra[Jme]=ra[e1e]=ra[t1e]=ra[n1e]=ra[r1e]=ra[a1e]=ra[i1e]=ra[o1e]=!0;ra[Bme]=ra[$me]=ra[qme]=ra[Pme]=ra[Zme]=ra[Fme]=ra[zme]=ra[Ume]=ra[Gme]=ra[Hme]=ra[Wme]=ra[jme]=ra[Kme]=ra[Yme]=ra[Xme]=!1;function s1e(t){return cu(t)&&C4(t.length)&&!!ra[Ap(t)]}function E4(t){return function(e){return t(e)}}var AY=typeof exports=="object"&&exports&&!exports.nodeType&&exports,wm=AY&&typeof module=="object"&&module&&!module.nodeType&&module,l1e=wm&&wm.exports===AY,SM=l1e&&mY.process,u1e=function(){try{var t=wm&&wm.require&&wm.require("util").types;return t||SM&&SM.binding&&SM.binding("util")}catch{}}();const Rg=u1e;var _F=Rg&&Rg.isTypedArray,c1e=_F?E4(_F):s1e;const M4=c1e;var f1e=Object.prototype,d1e=f1e.hasOwnProperty;function kY(t,e){var n=no(t),r=!n&&f1(t),a=!n&&!r&&d1(t),i=!n&&!r&&!a&&M4(t),o=n||r||a||i,s=o?Dme(t.length,String):[],l=s.length;for(var u in t)(e||d1e.call(t,u))&&!(o&&(u=="length"||a&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||fT(u,l)))&&s.push(u);return s}function RY(t,e){return function(n){return t(e(n))}}var h1e=RY(Object.keys,Object);const p1e=h1e;var v1e=Object.prototype,g1e=v1e.hasOwnProperty;function y1e(t){if(!T4(t))return p1e(t);var e=[];for(var n in Object(t))g1e.call(t,n)&&n!="constructor"&&e.push(n);return e}function Mb(t){return y0(t)?kY(t):y1e(t)}function m1e(t){var e=[];if(t!=null)for(var n in Object(t))e.push(n);return e}var b1e=Object.prototype,S1e=b1e.hasOwnProperty;function w1e(t){if(!ro(t))return m1e(t);var e=T4(t),n=[];for(var r in t)r=="constructor"&&(e||!S1e.call(t,r))||n.push(r);return n}function Db(t){return y0(t)?kY(t,!0):w1e(t)}var x1e=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,_1e=/^\w*$/;function D4(t,e){if(no(t))return!1;var n=typeof t;return n=="number"||n=="symbol"||n=="boolean"||t==null||cT(t)?!0:_1e.test(t)||!x1e.test(t)||e!=null&&t in Object(e)}var C1e=Rp(Object,"create");const h1=C1e;function T1e(){this.__data__=h1?h1(null):{},this.size=0}function E1e(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var M1e="__lodash_hash_undefined__",D1e=Object.prototype,A1e=D1e.hasOwnProperty;function k1e(t){var e=this.__data__;if(h1){var n=e[t];return n===M1e?void 0:n}return A1e.call(e,t)?e[t]:void 0}var R1e=Object.prototype,L1e=R1e.hasOwnProperty;function O1e(t){var e=this.__data__;return h1?e[t]!==void 0:L1e.call(e,t)}var V1e="__lodash_hash_undefined__";function N1e(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=h1&&e===void 0?V1e:e,this}function hp(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}hp.prototype.clear=T1e;hp.prototype.delete=E1e;hp.prototype.get=k1e;hp.prototype.has=O1e;hp.prototype.set=N1e;function I1e(){this.__data__=[],this.size=0}function dT(t,e){for(var n=t.length;n--;)if(Tb(t[n][0],e))return n;return-1}var B1e=Array.prototype,$1e=B1e.splice;function P1e(t){var e=this.__data__,n=dT(e,t);if(n<0)return!1;var r=e.length-1;return n==r?e.pop():$1e.call(e,n,1),--this.size,!0}function F1e(t){var e=this.__data__,n=dT(e,t);return n<0?void 0:e[n][1]}function z1e(t){return dT(this.__data__,t)>-1}function U1e(t,e){var n=this.__data__,r=dT(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}function Sc(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Sc.prototype.clear=I1e;Sc.prototype.delete=P1e;Sc.prototype.get=F1e;Sc.prototype.has=z1e;Sc.prototype.set=U1e;var G1e=Rp(_l,"Map");const p1=G1e;function H1e(){this.size=0,this.__data__={hash:new hp,map:new(p1||Sc),string:new hp}}function W1e(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function hT(t,e){var n=t.__data__;return W1e(e)?n[typeof e=="string"?"string":"hash"]:n.map}function j1e(t){var e=hT(this,t).delete(t);return this.size-=e?1:0,e}function K1e(t){return hT(this,t).get(t)}function Y1e(t){return hT(this,t).has(t)}function X1e(t,e){var n=hT(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}function wc(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}wc.prototype.clear=H1e;wc.prototype.delete=j1e;wc.prototype.get=K1e;wc.prototype.has=Y1e;wc.prototype.set=X1e;var q1e="Expected a function";function pT(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(q1e);var n=function(){var r=arguments,a=e?e.apply(this,r):r[0],i=n.cache;if(i.has(a))return i.get(a);var o=t.apply(this,r);return n.cache=i.set(a,o)||i,o};return n.cache=new(pT.Cache||wc),n}pT.Cache=wc;var Z1e=500;function Q1e(t){var e=pT(t,function(r){return n.size===Z1e&&n.clear(),r}),n=e.cache;return e}var J1e=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ebe=/\\(\\)?/g,tbe=Q1e(function(t){var e=[];return t.charCodeAt(0)===46&&e.push(""),t.replace(J1e,function(n,r,a,i){e.push(a?i.replace(ebe,"$1"):r||n)}),e});const nbe=tbe;function rbe(t){return t==null?"":wY(t)}function vT(t,e){return no(t)?t:D4(t,e)?[t]:nbe(rbe(t))}var abe=1/0;function Ab(t){if(typeof t=="string"||cT(t))return t;var e=t+"";return e=="0"&&1/t==-abe?"-0":e}function A4(t,e){e=vT(e,t);for(var n=0,r=e.length;t!=null&&n<r;)t=t[Ab(e[n++])];return n&&n==r?t:void 0}function Fr(t,e,n){var r=t==null?void 0:A4(t,e);return r===void 0?n:r}function k4(t,e){for(var n=-1,r=e.length,a=t.length;++n<r;)t[a+n]=e[n];return t}var CF=ws?ws.isConcatSpreadable:void 0;function ibe(t){return no(t)||f1(t)||!!(CF&&t&&t[CF])}function kb(t,e,n,r,a){var i=-1,o=t.length;for(n||(n=ibe),a||(a=[]);++i<o;){var s=t[i];e>0&&n(s)?e>1?kb(s,e-1,n,r,a):k4(a,s):r||(a[a.length]=s)}return a}function LY(t){var e=t==null?0:t.length;return e?kb(t,1):[]}function obe(t){return _Y(TY(t,void 0,LY),t+"")}var sbe=RY(Object.getPrototypeOf,Object);const R4=sbe;var lbe="[object Object]",ube=Function.prototype,cbe=Object.prototype,OY=ube.toString,fbe=cbe.hasOwnProperty,dbe=OY.call(Object);function hbe(t){if(!cu(t)||Ap(t)!=lbe)return!1;var e=R4(t);if(e===null)return!0;var n=fbe.call(e,"constructor")&&e.constructor;return typeof n=="function"&&n instanceof n&&OY.call(n)==dbe}function pp(){if(!arguments.length)return[];var t=arguments[0];return no(t)?t:[t]}function pbe(){this.__data__=new Sc,this.size=0}function vbe(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}function gbe(t){return this.__data__.get(t)}function ybe(t){return this.__data__.has(t)}var mbe=200;function bbe(t,e){var n=this.__data__;if(n instanceof Sc){var r=n.__data__;if(!p1||r.length<mbe-1)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new wc(r)}return n.set(t,e),this.size=n.size,this}function fl(t){var e=this.__data__=new Sc(t);this.size=e.size}fl.prototype.clear=pbe;fl.prototype.delete=vbe;fl.prototype.get=gbe;fl.prototype.has=ybe;fl.prototype.set=bbe;function Sbe(t,e){return t&&Eb(e,Mb(e),t)}function wbe(t,e){return t&&Eb(e,Db(e),t)}var VY=typeof exports=="object"&&exports&&!exports.nodeType&&exports,TF=VY&&typeof module=="object"&&module&&!module.nodeType&&module,xbe=TF&&TF.exports===VY,EF=xbe?_l.Buffer:void 0,MF=EF?EF.allocUnsafe:void 0;function NY(t,e){if(e)return t.slice();var n=t.length,r=MF?MF(n):new t.constructor(n);return t.copy(r),r}function _be(t,e){for(var n=-1,r=t==null?0:t.length,a=0,i=[];++n<r;){var o=t[n];e(o,n,t)&&(i[a++]=o)}return i}function IY(){return[]}var Cbe=Object.prototype,Tbe=Cbe.propertyIsEnumerable,DF=Object.getOwnPropertySymbols,Ebe=DF?function(t){return t==null?[]:(t=Object(t),_be(DF(t),function(e){return Tbe.call(t,e)}))}:IY;const L4=Ebe;function Mbe(t,e){return Eb(t,L4(t),e)}var Dbe=Object.getOwnPropertySymbols,Abe=Dbe?function(t){for(var e=[];t;)k4(e,L4(t)),t=R4(t);return e}:IY;const BY=Abe;function kbe(t,e){return Eb(t,BY(t),e)}function $Y(t,e,n){var r=e(t);return no(t)?r:k4(r,n(t))}function bR(t){return $Y(t,Mb,L4)}function Rbe(t){return $Y(t,Db,BY)}var Lbe=Rp(_l,"DataView");const SR=Lbe;var Obe=Rp(_l,"Promise");const wR=Obe;var Vbe=Rp(_l,"Set");const ag=Vbe;var AF="[object Map]",Nbe="[object Object]",kF="[object Promise]",RF="[object Set]",LF="[object WeakMap]",OF="[object DataView]",Ibe=kp(SR),Bbe=kp(p1),$be=kp(wR),Pbe=kp(ag),Fbe=kp(mR),oh=Ap;(SR&&oh(new SR(new ArrayBuffer(1)))!=OF||p1&&oh(new p1)!=AF||wR&&oh(wR.resolve())!=kF||ag&&oh(new ag)!=RF||mR&&oh(new mR)!=LF)&&(oh=function(t){var e=Ap(t),n=e==Nbe?t.constructor:void 0,r=n?kp(n):"";if(r)switch(r){case Ibe:return OF;case Bbe:return AF;case $be:return kF;case Pbe:return RF;case Fbe:return LF}return e});const v1=oh;var zbe=Object.prototype,Ube=zbe.hasOwnProperty;function Gbe(t){var e=t.length,n=new t.constructor(e);return e&&typeof t[0]=="string"&&Ube.call(t,"index")&&(n.index=t.index,n.input=t.input),n}var Hbe=_l.Uint8Array;const a2=Hbe;function O4(t){var e=new t.constructor(t.byteLength);return new a2(e).set(new a2(t)),e}function Wbe(t,e){var n=e?O4(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}var jbe=/\w*$/;function Kbe(t){var e=new t.constructor(t.source,jbe.exec(t));return e.lastIndex=t.lastIndex,e}var VF=ws?ws.prototype:void 0,NF=VF?VF.valueOf:void 0;function Ybe(t){return NF?Object(NF.call(t)):{}}function PY(t,e){var n=e?O4(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}var Xbe="[object Boolean]",qbe="[object Date]",Zbe="[object Map]",Qbe="[object Number]",Jbe="[object RegExp]",eSe="[object Set]",tSe="[object String]",nSe="[object Symbol]",rSe="[object ArrayBuffer]",aSe="[object DataView]",iSe="[object Float32Array]",oSe="[object Float64Array]",sSe="[object Int8Array]",lSe="[object Int16Array]",uSe="[object Int32Array]",cSe="[object Uint8Array]",fSe="[object Uint8ClampedArray]",dSe="[object Uint16Array]",hSe="[object Uint32Array]";function pSe(t,e,n){var r=t.constructor;switch(e){case rSe:return O4(t);case Xbe:case qbe:return new r(+t);case aSe:return Wbe(t,n);case iSe:case oSe:case sSe:case lSe:case uSe:case cSe:case fSe:case dSe:case hSe:return PY(t,n);case Zbe:return new r;case Qbe:case tSe:return new r(t);case Jbe:return Kbe(t);case eSe:return new r;case nSe:return Ybe(t)}}function FY(t){return typeof t.constructor=="function"&&!T4(t)?rme(R4(t)):{}}var vSe="[object Map]";function gSe(t){return cu(t)&&v1(t)==vSe}var IF=Rg&&Rg.isMap,ySe=IF?E4(IF):gSe;const mSe=ySe;var bSe="[object Set]";function SSe(t){return cu(t)&&v1(t)==bSe}var BF=Rg&&Rg.isSet,wSe=BF?E4(BF):SSe;const xSe=wSe;var _Se=1,CSe=2,TSe=4,zY="[object Arguments]",ESe="[object Array]",MSe="[object Boolean]",DSe="[object Date]",ASe="[object Error]",UY="[object Function]",kSe="[object GeneratorFunction]",RSe="[object Map]",LSe="[object Number]",GY="[object Object]",OSe="[object RegExp]",VSe="[object Set]",NSe="[object String]",ISe="[object Symbol]",BSe="[object WeakMap]",$Se="[object ArrayBuffer]",PSe="[object DataView]",FSe="[object Float32Array]",zSe="[object Float64Array]",USe="[object Int8Array]",GSe="[object Int16Array]",HSe="[object Int32Array]",WSe="[object Uint8Array]",jSe="[object Uint8ClampedArray]",KSe="[object Uint16Array]",YSe="[object Uint32Array]",Xr={};Xr[zY]=Xr[ESe]=Xr[$Se]=Xr[PSe]=Xr[MSe]=Xr[DSe]=Xr[FSe]=Xr[zSe]=Xr[USe]=Xr[GSe]=Xr[HSe]=Xr[RSe]=Xr[LSe]=Xr[GY]=Xr[OSe]=Xr[VSe]=Xr[NSe]=Xr[ISe]=Xr[WSe]=Xr[jSe]=Xr[KSe]=Xr[YSe]=!0;Xr[ASe]=Xr[UY]=Xr[BSe]=!1;function xm(t,e,n,r,a,i){var o,s=e&_Se,l=e&CSe,u=e&TSe;if(n&&(o=a?n(t,r,a,i):n(t)),o!==void 0)return o;if(!ro(t))return t;var c=no(t);if(c){if(o=Gbe(t),!s)return xY(t,o)}else{var f=v1(t),d=f==UY||f==kSe;if(d1(t))return NY(t,s);if(f==GY||f==zY||d&&!a){if(o=l||d?{}:FY(t),!s)return l?kbe(t,wbe(o,t)):Mbe(t,Sbe(o,t))}else{if(!Xr[f])return a?t:{};o=pSe(t,f,s)}}i||(i=new fl);var h=i.get(t);if(h)return h;i.set(t,o),xSe(t)?t.forEach(function(g){o.add(xm(g,e,n,g,t,i))}):mSe(t)&&t.forEach(function(g,y){o.set(y,xm(g,e,n,y,t,i))});var p=u?l?Rbe:bR:l?Db:Mb,v=c?void 0:p(t);return vme(v||t,function(g,y){v&&(y=g,g=t[y]),_4(o,y,xm(g,e,n,y,t,i))}),o}var XSe=4;function $F(t){return xm(t,XSe)}var qSe=1,ZSe=4;function i2(t){return xm(t,qSe|ZSe)}var QSe="__lodash_hash_undefined__";function JSe(t){return this.__data__.set(t,QSe),this}function ewe(t){return this.__data__.has(t)}function g1(t){var e=-1,n=t==null?0:t.length;for(this.__data__=new wc;++e<n;)this.add(t[e])}g1.prototype.add=g1.prototype.push=JSe;g1.prototype.has=ewe;function twe(t,e){for(var n=-1,r=t==null?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}function HY(t,e){return t.has(e)}var nwe=1,rwe=2;function WY(t,e,n,r,a,i){var o=n&nwe,s=t.length,l=e.length;if(s!=l&&!(o&&l>s))return!1;var u=i.get(t),c=i.get(e);if(u&&c)return u==e&&c==t;var f=-1,d=!0,h=n&rwe?new g1:void 0;for(i.set(t,e),i.set(e,t);++f<s;){var p=t[f],v=e[f];if(r)var g=o?r(v,p,f,e,t,i):r(p,v,f,t,e,i);if(g!==void 0){if(g)continue;d=!1;break}if(h){if(!twe(e,function(y,m){if(!HY(h,m)&&(p===y||a(p,y,n,r,i)))return h.push(m)})){d=!1;break}}else if(!(p===v||a(p,v,n,r,i))){d=!1;break}}return i.delete(t),i.delete(e),d}function awe(t){var e=-1,n=Array(t.size);return t.forEach(function(r,a){n[++e]=[a,r]}),n}function V4(t){var e=-1,n=Array(t.size);return t.forEach(function(r){n[++e]=r}),n}var iwe=1,owe=2,swe="[object Boolean]",lwe="[object Date]",uwe="[object Error]",cwe="[object Map]",fwe="[object Number]",dwe="[object RegExp]",hwe="[object Set]",pwe="[object String]",vwe="[object Symbol]",gwe="[object ArrayBuffer]",ywe="[object DataView]",PF=ws?ws.prototype:void 0,wM=PF?PF.valueOf:void 0;function mwe(t,e,n,r,a,i,o){switch(n){case ywe:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case gwe:return!(t.byteLength!=e.byteLength||!i(new a2(t),new a2(e)));case swe:case lwe:case fwe:return Tb(+t,+e);case uwe:return t.name==e.name&&t.message==e.message;case dwe:case pwe:return t==e+"";case cwe:var s=awe;case hwe:var l=r&iwe;if(s||(s=V4),t.size!=e.size&&!l)return!1;var u=o.get(t);if(u)return u==e;r|=owe,o.set(t,e);var c=WY(s(t),s(e),r,a,i,o);return o.delete(t),c;case vwe:if(wM)return wM.call(t)==wM.call(e)}return!1}var bwe=1,Swe=Object.prototype,wwe=Swe.hasOwnProperty;function xwe(t,e,n,r,a,i){var o=n&bwe,s=bR(t),l=s.length,u=bR(e),c=u.length;if(l!=c&&!o)return!1;for(var f=l;f--;){var d=s[f];if(!(o?d in e:wwe.call(e,d)))return!1}var h=i.get(t),p=i.get(e);if(h&&p)return h==e&&p==t;var v=!0;i.set(t,e),i.set(e,t);for(var g=o;++f<l;){d=s[f];var y=t[d],m=e[d];if(r)var S=o?r(m,y,d,e,t,i):r(y,m,d,t,e,i);if(!(S===void 0?y===m||a(y,m,n,r,i):S)){v=!1;break}g||(g=d=="constructor")}if(v&&!g){var w=t.constructor,C=e.constructor;w!=C&&"constructor"in t&&"constructor"in e&&!(typeof w=="function"&&w instanceof w&&typeof C=="function"&&C instanceof C)&&(v=!1)}return i.delete(t),i.delete(e),v}var _we=1,FF="[object Arguments]",zF="[object Array]",VS="[object Object]",Cwe=Object.prototype,UF=Cwe.hasOwnProperty;function Twe(t,e,n,r,a,i){var o=no(t),s=no(e),l=o?zF:v1(t),u=s?zF:v1(e);l=l==FF?VS:l,u=u==FF?VS:u;var c=l==VS,f=u==VS,d=l==u;if(d&&d1(t)){if(!d1(e))return!1;o=!0,c=!1}if(d&&!c)return i||(i=new fl),o||M4(t)?WY(t,e,n,r,a,i):mwe(t,e,l,n,r,a,i);if(!(n&_we)){var h=c&&UF.call(t,"__wrapped__"),p=f&&UF.call(e,"__wrapped__");if(h||p){var v=h?t.value():t,g=p?e.value():e;return i||(i=new fl),a(v,g,n,r,i)}}return d?(i||(i=new fl),xwe(t,e,n,r,a,i)):!1}function gT(t,e,n,r,a){return t===e?!0:t==null||e==null||!cu(t)&&!cu(e)?t!==t&&e!==e:Twe(t,e,n,r,gT,a)}var Ewe=1,Mwe=2;function Dwe(t,e,n,r){var a=n.length,i=a,o=!r;if(t==null)return!i;for(t=Object(t);a--;){var s=n[a];if(o&&s[2]?s[1]!==t[s[0]]:!(s[0]in t))return!1}for(;++a<i;){s=n[a];var l=s[0],u=t[l],c=s[1];if(o&&s[2]){if(u===void 0&&!(l in t))return!1}else{var f=new fl;if(r)var d=r(u,c,l,t,e,f);if(!(d===void 0?gT(c,u,Ewe|Mwe,r,f):d))return!1}}return!0}function jY(t){return t===t&&!ro(t)}function Awe(t){for(var e=Mb(t),n=e.length;n--;){var r=e[n],a=t[r];e[n]=[r,a,jY(a)]}return e}function KY(t,e){return function(n){return n==null?!1:n[t]===e&&(e!==void 0||t in Object(n))}}function kwe(t){var e=Awe(t);return e.length==1&&e[0][2]?KY(e[0][0],e[0][1]):function(n){return n===t||Dwe(n,t,e)}}function Rwe(t,e){return t!=null&&e in Object(t)}function Lwe(t,e,n){e=vT(e,t);for(var r=-1,a=e.length,i=!1;++r<a;){var o=Ab(e[r]);if(!(i=t!=null&&n(t,o)))break;t=t[o]}return i||++r!=a?i:(a=t==null?0:t.length,!!a&&C4(a)&&fT(o,a)&&(no(t)||f1(t)))}function YY(t,e){return t!=null&&Lwe(t,e,Rwe)}var Owe=1,Vwe=2;function Nwe(t,e){return D4(t)&&jY(e)?KY(Ab(t),e):function(n){var r=Fr(n,t);return r===void 0&&r===e?YY(n,t):gT(e,r,Owe|Vwe)}}function Iwe(t){return function(e){return e==null?void 0:e[t]}}function Bwe(t){return function(e){return A4(e,t)}}function $we(t){return D4(t)?Iwe(Ab(t)):Bwe(t)}function XY(t){return typeof t=="function"?t:t==null?S4:typeof t=="object"?no(t)?Nwe(t[0],t[1]):kwe(t):$we(t)}function Pwe(t){return function(e,n,r){for(var a=-1,i=Object(e),o=r(e),s=o.length;s--;){var l=o[t?s:++a];if(n(i[l],l,i)===!1)break}return e}}var Fwe=Pwe();const qY=Fwe;function zwe(t,e){return t&&qY(t,e,Mb)}function Uwe(t,e){return function(n,r){if(n==null)return n;if(!y0(n))return t(n,r);for(var a=n.length,i=e?a:-1,o=Object(n);(e?i--:++i<a)&&r(o[i],i,o)!==!1;);return n}}var Gwe=Uwe(zwe);const Hwe=Gwe;var Wwe=function(){return _l.Date.now()};const xM=Wwe;var jwe="Expected a function",Kwe=Math.max,Ywe=Math.min;function ao(t,e,n){var r,a,i,o,s,l,u=0,c=!1,f=!1,d=!0;if(typeof t!="function")throw new TypeError(jwe);e=yR(e)||0,ro(n)&&(c=!!n.leading,f="maxWait"in n,i=f?Kwe(yR(n.maxWait)||0,e):i,d="trailing"in n?!!n.trailing:d);function h(_){var x=r,T=a;return r=a=void 0,u=_,o=t.apply(T,x),o}function p(_){return u=_,s=setTimeout(y,e),c?h(_):o}function v(_){var x=_-l,T=_-u,M=e-x;return f?Ywe(M,i-T):M}function g(_){var x=_-l,T=_-u;return l===void 0||x>=e||x<0||f&&T>=i}function y(){var _=xM();if(g(_))return m(_);s=setTimeout(y,v(_))}function m(_){return s=void 0,d&&r?h(_):(r=a=void 0,o)}function S(){s!==void 0&&clearTimeout(s),u=0,r=l=a=s=void 0}function w(){return s===void 0?o:m(xM())}function C(){var _=xM(),x=g(_);if(r=arguments,a=this,l=_,x){if(s===void 0)return p(l);if(f)return clearTimeout(s),s=setTimeout(y,e),h(l)}return s===void 0&&(s=setTimeout(y,e)),o}return C.cancel=S,C.flush=w,C}function xR(t,e,n){(n!==void 0&&!Tb(t[e],n)||n===void 0&&!(e in t))&&x4(t,e,n)}function ZY(t){return cu(t)&&y0(t)}function _R(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}function Xwe(t){return Eb(t,Db(t))}function qwe(t,e,n,r,a,i,o){var s=_R(t,n),l=_R(e,n),u=o.get(l);if(u){xR(t,n,u);return}var c=i?i(s,l,n+"",t,e,o):void 0,f=c===void 0;if(f){var d=no(l),h=!d&&d1(l),p=!d&&!h&&M4(l);c=l,d||h||p?no(s)?c=s:ZY(s)?c=xY(s):h?(f=!1,c=NY(l,!0)):p?(f=!1,c=PY(l,!0)):c=[]:hbe(l)||f1(l)?(c=s,f1(s)?c=Xwe(s):(!ro(s)||w4(s))&&(c=FY(l))):f=!1}f&&(o.set(l,c),a(c,l,r,i,o),o.delete(l)),xR(t,n,c)}function QY(t,e,n,r,a){t!==e&&qY(e,function(i,o){if(a||(a=new fl),ro(i))qwe(t,e,o,n,QY,r,a);else{var s=r?r(_R(t,o),i,o+"",t,e,a):void 0;s===void 0&&(s=i),xR(t,o,s)}},Db)}function Zwe(t,e,n){for(var r=-1,a=t==null?0:t.length;++r<a;)if(n(e,t[r]))return!0;return!1}var Qwe=Math.max,Jwe=Math.min;function exe(t,e,n){var r=t==null?0:t.length;if(!r)return-1;var a=r-1;return n!==void 0&&(a=Bye(n),a=n<0?Qwe(r+a,0):Jwe(a,r-1)),CY(t,XY(e),a,!0)}function txe(t,e){var n=-1,r=y0(t)?Array(t.length):[];return Hwe(t,function(a,i,o){r[++n]=e(a,i,o)}),r}function nxe(t,e){var n=no(t)?SY:txe;return n(t,XY(e))}function rxe(t,e){return kb(nxe(t,e),1)}var axe=1/0;function ixe(t){var e=t==null?0:t.length;return e?kb(t,axe):[]}function o2(t){for(var e=-1,n=t==null?0:t.length,r={};++e<n;){var a=t[e];r[a[0]]=a[1]}return r}function To(t,e){return gT(t,e)}function Ta(t){return t==null}function oxe(t){return t===void 0}var sxe=Eme(function(t,e,n){QY(t,e,n)});const JY=sxe;function eX(t,e,n,r){if(!ro(t))return t;e=vT(e,t);for(var a=-1,i=e.length,o=i-1,s=t;s!=null&&++a<i;){var l=Ab(e[a]),u=n;if(l==="__proto__"||l==="constructor"||l==="prototype")return t;if(a!=o){var c=s[l];u=r?r(c,l,s):void 0,u===void 0&&(u=ro(c)?c:fT(e[a+1])?[]:{})}_4(s,l,u),s=s[l]}return t}function lxe(t,e,n){for(var r=-1,a=e.length,i={};++r<a;){var o=e[r],s=A4(t,o);n(s,o)&&eX(i,vT(o,t),s)}return i}function uxe(t,e){return lxe(t,e,function(n,r){return YY(t,r)})}var cxe=obe(function(t,e){return t==null?{}:uxe(t,e)});const ju=cxe;function fxe(t,e,n){return t==null?t:eX(t,e,n)}var dxe="Expected a function";function Xh(t,e,n){var r=!0,a=!0;if(typeof t!="function")throw new TypeError(dxe);return ro(n)&&(r="leading"in n?!!n.leading:r,a="trailing"in n?!!n.trailing:a),ao(t,e,{leading:r,maxWait:e,trailing:a})}var hxe=1/0,pxe=ag&&1/V4(new ag([,-0]))[1]==hxe?function(t){return new ag(t)}:ime;const vxe=pxe;var gxe=200;function yxe(t,e,n){var r=-1,a=bme,i=t.length,o=!0,s=[],l=s;if(n)o=!1,a=Zwe;else if(i>=gxe){var u=e?null:vxe(t);if(u)return V4(u);o=!1,a=HY,l=new g1}else l=e?[]:s;e:for(;++r<i;){var c=t[r],f=e?e(c):c;if(c=n||c!==0?c:0,o&&f===f){for(var d=l.length;d--;)if(l[d]===f)continue e;e&&l.push(f),s.push(c)}else a(l,f,n)||(l!==s&&l.push(f),s.push(c))}return s}var mxe=EY(function(t){return yxe(kb(t,1,ZY,!0))});const _M=mxe,Na=t=>t===void 0,Ea=t=>typeof t=="boolean",Pt=t=>typeof t=="number",ds=t=>!t&&t!==0||gt(t)&&t.length===0||un(t)&&!Object.keys(t).length,xs=t=>typeof Element>"u"?!1:t instanceof Element,bxe=t=>Ta(t),Sxe=t=>Ht(t)?!Number.isNaN(Number(t)):!1,tX=(t="")=>t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),Xl=t=>bb(t),y1=t=>Object.keys(t),wxe=t=>Object.entries(t),jx=(t,e,n)=>({get value(){return Fr(t,e,n)},set value(r){fxe(t,e,r)}});class xxe extends Error{constructor(e){super(e),this.name="ElementPlusError"}}function Da(t,e){throw new xxe(`[${t}] ${e}`)}const nX=(t="")=>t.split(" ").filter(e=>!!e.trim()),dl=(t,e)=>{if(!t||!e)return!1;if(e.includes(" "))throw new Error("className should not contain space.");return t.classList.contains(e)},Ql=(t,e)=>{!t||!e.trim()||t.classList.add(...nX(e))},Eo=(t,e)=>{!t||!e.trim()||t.classList.remove(...nX(e))},pf=(t,e)=>{var n;if(!_n||!t||!e)return"";let r=Ss(e);r==="float"&&(r="cssFloat");try{const a=t.style[r];if(a)return a;const i=(n=document.defaultView)==null?void 0:n.getComputedStyle(t,"");return i?i[r]:""}catch{return t.style[r]}};function la(t,e="px"){if(!t)return"";if(Pt(t)||Sxe(t))return`${t}${e}`;if(Ht(t))return t}const _xe=(t,e)=>{if(!_n)return!1;const n={undefined:"overflow",true:"overflow-y",false:"overflow-x"}[String(e)],r=pf(t,n);return["scroll","auto","overlay"].some(a=>r.includes(a))},N4=(t,e)=>{if(!_n)return;let n=t;for(;n;){if([window,document,document.documentElement].includes(n))return window;if(_xe(n,e))return n;n=n.parentNode}return n};let NS;const rX=t=>{var e;if(!_n)return 0;if(NS!==void 0)return NS;const n=document.createElement("div");n.className=`${t}-scrollbar__wrap`,n.style.visibility="hidden",n.style.width="100px",n.style.position="absolute",n.style.top="-9999px",document.body.appendChild(n);const r=n.offsetWidth;n.style.overflow="scroll";const a=document.createElement("div");a.style.width="100%",n.appendChild(a);const i=a.offsetWidth;return(e=n.parentNode)==null||e.removeChild(n),NS=r-i,NS};function aX(t,e){if(!_n)return;if(!e){t.scrollTop=0;return}const n=[];let r=e.offsetParent;for(;r!==null&&t!==r&&t.contains(r);)n.push(r),r=r.offsetParent;const a=e.offsetTop+n.reduce((l,u)=>l+u.offsetTop,0),i=a+e.offsetHeight,o=t.scrollTop,s=o+t.clientHeight;a<o?t.scrollTop=a:i>s&&(t.scrollTop=i-t.clientHeight)}/*! Element Plus Icons Vue v2.1.0 */var Pn=(t,e)=>{let n=t.__vccOpts||t;for(let[r,a]of e)n[r]=a;return n},Cxe={name:"ArrowDown"},Txe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Exe=R("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"},null,-1),Mxe=[Exe];function Dxe(t,e,n,r,a,i){return G(),re("svg",Txe,Mxe)}var rd=Pn(Cxe,[["render",Dxe],["__file","arrow-down.vue"]]),Axe={name:"ArrowLeft"},kxe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Rxe=R("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"},null,-1),Lxe=[Rxe];function Oxe(t,e,n,r,a,i){return G(),re("svg",kxe,Lxe)}var sc=Pn(Axe,[["render",Oxe],["__file","arrow-left.vue"]]),Vxe={name:"ArrowRight"},Nxe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Ixe=R("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"},null,-1),Bxe=[Ixe];function $xe(t,e,n,r,a,i){return G(),re("svg",Nxe,Bxe)}var Li=Pn(Vxe,[["render",$xe],["__file","arrow-right.vue"]]),Pxe={name:"ArrowUp"},Fxe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},zxe=R("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 0z"},null,-1),Uxe=[zxe];function Gxe(t,e,n,r,a,i){return G(),re("svg",Fxe,Uxe)}var yT=Pn(Pxe,[["render",Gxe],["__file","arrow-up.vue"]]),Hxe={name:"Back"},Wxe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},jxe=R("path",{fill:"currentColor",d:"M224 480h640a32 32 0 1 1 0 64H224a32 32 0 0 1 0-64z"},null,-1),Kxe=R("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.312L237.248 512z"},null,-1),Yxe=[jxe,Kxe];function Xxe(t,e,n,r,a,i){return G(),re("svg",Wxe,Yxe)}var qxe=Pn(Hxe,[["render",Xxe],["__file","back.vue"]]),Zxe={name:"Calendar"},Qxe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Jxe=R("path",{fill:"currentColor",d:"M128 384v512h768V192H768v32a32 32 0 1 1-64 0v-32H320v32a32 32 0 0 1-64 0v-32H128v128h768v64H128zm192-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 0v32zm-32 384h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64zm0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64zm192-192h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64zm0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64zm192-192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64zm0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64z"},null,-1),e_e=[Jxe];function t_e(t,e,n,r,a,i){return G(),re("svg",Qxe,e_e)}var n_e=Pn(Zxe,[["render",t_e],["__file","calendar.vue"]]),r_e={name:"CaretRight"},a_e={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},i_e=R("path",{fill:"currentColor",d:"M384 192v640l384-320.064z"},null,-1),o_e=[i_e];function s_e(t,e,n,r,a,i){return G(),re("svg",a_e,o_e)}var iX=Pn(r_e,[["render",s_e],["__file","caret-right.vue"]]),l_e={name:"CaretTop"},u_e={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},c_e=R("path",{fill:"currentColor",d:"M512 320 192 704h639.936z"},null,-1),f_e=[c_e];function d_e(t,e,n,r,a,i){return G(),re("svg",u_e,f_e)}var h_e=Pn(l_e,[["render",d_e],["__file","caret-top.vue"]]),p_e={name:"Check"},v_e={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},g_e=R("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"},null,-1),y_e=[g_e];function m_e(t,e,n,r,a,i){return G(),re("svg",v_e,y_e)}var Rb=Pn(p_e,[["render",m_e],["__file","check.vue"]]),b_e={name:"CircleCheckFilled"},S_e={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},w_e=R("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm-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.336L456.192 600.384z"},null,-1),x_e=[w_e];function __e(t,e,n,r,a,i){return G(),re("svg",S_e,x_e)}var C_e=Pn(b_e,[["render",__e],["__file","circle-check-filled.vue"]]),T_e={name:"CircleCheck"},E_e={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},M_e=R("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),D_e=R("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"},null,-1),A_e=[M_e,D_e];function k_e(t,e,n,r,a,i){return G(),re("svg",E_e,A_e)}var I4=Pn(T_e,[["render",k_e],["__file","circle-check.vue"]]),R_e={name:"CircleCloseFilled"},L_e={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},O_e=R("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 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.336L512 457.664z"},null,-1),V_e=[O_e];function N_e(t,e,n,r,a,i){return G(),re("svg",L_e,V_e)}var B4=Pn(R_e,[["render",N_e],["__file","circle-close-filled.vue"]]),I_e={name:"CircleClose"},B_e={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},$_e=R("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.248L466.752 512z"},null,-1),P_e=R("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),F_e=[$_e,P_e];function z_e(t,e,n,r,a,i){return G(),re("svg",B_e,F_e)}var ad=Pn(I_e,[["render",z_e],["__file","circle-close.vue"]]),U_e={name:"Clock"},G_e={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},H_e=R("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),W_e=R("path",{fill:"currentColor",d:"M480 256a32 32 0 0 1 32 32v256a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32z"},null,-1),j_e=R("path",{fill:"currentColor",d:"M480 512h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32z"},null,-1),K_e=[H_e,W_e,j_e];function Y_e(t,e,n,r,a,i){return G(),re("svg",G_e,K_e)}var oX=Pn(U_e,[["render",Y_e],["__file","clock.vue"]]),X_e={name:"Close"},q_e={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Z_e=R("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"},null,-1),Q_e=[Z_e];function J_e(t,e,n,r,a,i){return G(),re("svg",q_e,Q_e)}var yl=Pn(X_e,[["render",J_e],["__file","close.vue"]]),e2e={name:"DArrowLeft"},t2e={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},n2e=R("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"},null,-1),r2e=[n2e];function a2e(t,e,n,r,a,i){return G(),re("svg",t2e,r2e)}var Lg=Pn(e2e,[["render",a2e],["__file","d-arrow-left.vue"]]),i2e={name:"DArrowRight"},o2e={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},s2e=R("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.688zm-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"},null,-1),l2e=[s2e];function u2e(t,e,n,r,a,i){return G(),re("svg",o2e,l2e)}var Og=Pn(i2e,[["render",u2e],["__file","d-arrow-right.vue"]]),c2e={name:"Delete"},f2e={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},d2e=R("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-32V256zm448-64v-64H416v64h192zM224 896h576V256H224v640zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32zm192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32z"},null,-1),h2e=[d2e];function p2e(t,e,n,r,a,i){return G(),re("svg",f2e,h2e)}var sX=Pn(c2e,[["render",p2e],["__file","delete.vue"]]),v2e={name:"Document"},g2e={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},y2e=R("path",{fill:"currentColor",d:"M832 384H576V128H192v768h640V384zm-26.496-64L640 154.496V320h165.504zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32zm160 448h384v64H320v-64zm0-192h160v64H320v-64zm0 384h384v64H320v-64z"},null,-1),m2e=[y2e];function b2e(t,e,n,r,a,i){return G(),re("svg",g2e,m2e)}var S2e=Pn(v2e,[["render",b2e],["__file","document.vue"]]),w2e={name:"FullScreen"},x2e={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_2e=R("path",{fill:"currentColor",d:"m160 96.064 192 .192a32 32 0 0 1 0 64l-192-.192V352a32 32 0 0 1-64 0V96h64v.064zm0 831.872V928H96V672a32 32 0 1 1 64 0v191.936l192-.192a32 32 0 1 1 0 64l-192 .192zM864 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-64v-.064z"},null,-1),C2e=[_2e];function T2e(t,e,n,r,a,i){return G(),re("svg",x2e,C2e)}var E2e=Pn(w2e,[["render",T2e],["__file","full-screen.vue"]]),M2e={name:"Hide"},D2e={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},A2e=R("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.2L371.2 588.8ZM889.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"},null,-1),k2e=R("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"},null,-1),R2e=[A2e,k2e];function L2e(t,e,n,r,a,i){return G(),re("svg",D2e,R2e)}var O2e=Pn(M2e,[["render",L2e],["__file","hide.vue"]]),V2e={name:"InfoFilled"},N2e={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},I2e=R("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64zm67.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.344zM590.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"},null,-1),B2e=[I2e];function $2e(t,e,n,r,a,i){return G(),re("svg",N2e,B2e)}var $4=Pn(V2e,[["render",$2e],["__file","info-filled.vue"]]),P2e={name:"Loading"},F2e={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},z2e=R("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32zm0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32zm448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32zm-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32zM195.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 0zm-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"},null,-1),U2e=[z2e];function G2e(t,e,n,r,a,i){return G(),re("svg",F2e,U2e)}var id=Pn(P2e,[["render",G2e],["__file","loading.vue"]]),H2e={name:"Minus"},W2e={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},j2e=R("path",{fill:"currentColor",d:"M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64z"},null,-1),K2e=[j2e];function Y2e(t,e,n,r,a,i){return G(),re("svg",W2e,K2e)}var X2e=Pn(H2e,[["render",Y2e],["__file","minus.vue"]]),q2e={name:"MoreFilled"},Z2e={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Q2e=R("path",{fill:"currentColor",d:"M176 416a112 112 0 1 1 0 224 112 112 0 0 1 0-224zm336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224zm336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224z"},null,-1),J2e=[Q2e];function eCe(t,e,n,r,a,i){return G(),re("svg",Z2e,J2e)}var GF=Pn(q2e,[["render",eCe],["__file","more-filled.vue"]]),tCe={name:"More"},nCe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},rCe=R("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-96zm336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224zm0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96zm336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224zm0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96z"},null,-1),aCe=[rCe];function iCe(t,e,n,r,a,i){return G(),re("svg",nCe,aCe)}var oCe=Pn(tCe,[["render",iCe],["__file","more.vue"]]),sCe={name:"PictureFilled"},lCe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},uCe=R("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 32H96zm315.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.112zM256 384a96 96 0 1 0 192.064-.064A96 96 0 0 0 256 384z"},null,-1),cCe=[uCe];function fCe(t,e,n,r,a,i){return G(),re("svg",lCe,cCe)}var dCe=Pn(sCe,[["render",fCe],["__file","picture-filled.vue"]]),hCe={name:"Plus"},pCe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},vCe=R("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-64h352z"},null,-1),gCe=[vCe];function yCe(t,e,n,r,a,i){return G(),re("svg",pCe,gCe)}var lX=Pn(hCe,[["render",yCe],["__file","plus.vue"]]),mCe={name:"QuestionFilled"},bCe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},SCe=R("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm23.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"},null,-1),wCe=[SCe];function xCe(t,e,n,r,a,i){return G(),re("svg",bCe,wCe)}var _Ce=Pn(mCe,[["render",xCe],["__file","question-filled.vue"]]),CCe={name:"RefreshLeft"},TCe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},ECe=R("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"},null,-1),MCe=[ECe];function DCe(t,e,n,r,a,i){return G(),re("svg",TCe,MCe)}var ACe=Pn(CCe,[["render",DCe],["__file","refresh-left.vue"]]),kCe={name:"RefreshRight"},RCe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},LCe=R("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"},null,-1),OCe=[LCe];function VCe(t,e,n,r,a,i){return G(),re("svg",RCe,OCe)}var NCe=Pn(kCe,[["render",VCe],["__file","refresh-right.vue"]]),ICe={name:"ScaleToOriginal"},BCe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},$Ce=R("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.118zM512 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.412zM512 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 512z"},null,-1),PCe=[$Ce];function FCe(t,e,n,r,a,i){return G(),re("svg",BCe,PCe)}var zCe=Pn(ICe,[["render",FCe],["__file","scale-to-original.vue"]]),UCe={name:"Search"},GCe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},HCe=R("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 704z"},null,-1),WCe=[HCe];function jCe(t,e,n,r,a,i){return G(),re("svg",GCe,WCe)}var KCe=Pn(UCe,[["render",jCe],["__file","search.vue"]]),YCe={name:"SortDown"},XCe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},qCe=R("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 0z"},null,-1),ZCe=[qCe];function QCe(t,e,n,r,a,i){return G(),re("svg",XCe,ZCe)}var JCe=Pn(YCe,[["render",QCe],["__file","sort-down.vue"]]),eTe={name:"SortUp"},tTe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},nTe=R("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.248z"},null,-1),rTe=[nTe];function aTe(t,e,n,r,a,i){return G(),re("svg",tTe,rTe)}var iTe=Pn(eTe,[["render",aTe],["__file","sort-up.vue"]]),oTe={name:"StarFilled"},sTe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},lTe=R("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"},null,-1),uTe=[lTe];function cTe(t,e,n,r,a,i){return G(),re("svg",sTe,uTe)}var IS=Pn(oTe,[["render",cTe],["__file","star-filled.vue"]]),fTe={name:"Star"},dTe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},hTe=R("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.72L512 747.84zM313.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"},null,-1),pTe=[hTe];function vTe(t,e,n,r,a,i){return G(),re("svg",dTe,pTe)}var gTe=Pn(fTe,[["render",vTe],["__file","star.vue"]]),yTe={name:"SuccessFilled"},mTe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},bTe=R("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm-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.336L456.192 600.384z"},null,-1),STe=[bTe];function wTe(t,e,n,r,a,i){return G(),re("svg",mTe,STe)}var uX=Pn(yTe,[["render",wTe],["__file","success-filled.vue"]]),xTe={name:"View"},_Te={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},CTe=R("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352zm0 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-448zm0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160z"},null,-1),TTe=[CTe];function ETe(t,e,n,r,a,i){return G(),re("svg",_Te,TTe)}var MTe=Pn(xTe,[["render",ETe],["__file","view.vue"]]),DTe={name:"WarningFilled"},ATe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},kTe=R("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 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 256zm0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4z"},null,-1),RTe=[kTe];function LTe(t,e,n,r,a,i){return G(),re("svg",ATe,RTe)}var mT=Pn(DTe,[["render",LTe],["__file","warning-filled.vue"]]),OTe={name:"ZoomIn"},VTe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},NTe=R("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 704zm-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-64h96z"},null,-1),ITe=[NTe];function BTe(t,e,n,r,a,i){return G(),re("svg",VTe,ITe)}var cX=Pn(OTe,[["render",BTe],["__file","zoom-in.vue"]]),$Te={name:"ZoomOut"},PTe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},FTe=R("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 704zM352 448h256a32 32 0 0 1 0 64H352a32 32 0 0 1 0-64z"},null,-1),zTe=[FTe];function UTe(t,e,n,r,a,i){return G(),re("svg",PTe,zTe)}var GTe=Pn($Te,[["render",UTe],["__file","zoom-out.vue"]]);const fX="__epPropKey",ke=t=>t,HTe=t=>un(t)&&!!t[fX],Cl=(t,e)=>{if(!un(t)||HTe(t))return t;const{values:n,required:r,default:a,type:i,validator:o}=t,l={type:i,required:!!r,validator:n||o?u=>{let c=!1,f=[];if(n&&(f=Array.from(n),Sn(t,"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(", ");she(`Invalid prop: validation failed${e?` for prop "${e}"`:""}. Expected one of [${d}], got value ${JSON.stringify(u)}.`)}return c}:void 0,[fX]:!0};return Sn(t,"default")&&(l.default=a),l},nt=t=>o2(Object.entries(t).map(([e,n])=>[e,Cl(n,e)])),gr=ke([String,Object,Function]),dX={Close:yl},P4={Close:yl,SuccessFilled:uX,InfoFilled:$4,WarningFilled:mT,CircleCloseFilled:B4},Uf={success:uX,warning:mT,error:B4,info:$4},F4={validating:id,success:I4,error:ad},tn=(t,e)=>{if(t.install=n=>{for(const r of[t,...Object.values(e??{})])n.component(r.name,r)},e)for(const[n,r]of Object.entries(e))t[n]=r;return t},hX=(t,e)=>(t.install=n=>{t._context=n._context,n.config.globalProperties[e]=t},t),WTe=(t,e)=>(t.install=n=>{n.directive(e,t)},t),ta=t=>(t.install=Qn,t),bT=(...t)=>e=>{t.forEach(n=>{zt(n)?n(e):n.value=e})},Dt={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"},jTe=["year","month","date","dates","week","datetime","datetimerange","daterange","monthrange"],CM=["sun","mon","tue","wed","thu","fri","sat"],nn="update:modelValue",Ar="change",Ji="input",HF=Symbol("INSTALLED_KEY"),wu=["","default","small","large"],KTe={large:40,default:32,small:24},YTe=t=>KTe[t||"default"],ST=t=>["",...wu].includes(t);var os=(t=>(t[t.TEXT=1]="TEXT",t[t.CLASS=2]="CLASS",t[t.STYLE=4]="STYLE",t[t.PROPS=8]="PROPS",t[t.FULL_PROPS=16]="FULL_PROPS",t[t.HYDRATE_EVENTS=32]="HYDRATE_EVENTS",t[t.STABLE_FRAGMENT=64]="STABLE_FRAGMENT",t[t.KEYED_FRAGMENT=128]="KEYED_FRAGMENT",t[t.UNKEYED_FRAGMENT=256]="UNKEYED_FRAGMENT",t[t.NEED_PATCH=512]="NEED_PATCH",t[t.DYNAMIC_SLOTS=1024]="DYNAMIC_SLOTS",t[t.HOISTED=-1]="HOISTED",t[t.BAIL=-2]="BAIL",t))(os||{});function CR(t){return Gr(t)&&t.type===Ct}function XTe(t){return Gr(t)&&t.type===Qi}function qTe(t){return Gr(t)&&!CR(t)&&!XTe(t)}const ZTe=t=>{if(!Gr(t))return{};const e=t.props||{},n=(Gr(t.type)?t.type.props:void 0)||{},r={};return Object.keys(n).forEach(a=>{Sn(n[a],"default")&&(r[a]=n[a].default)}),Object.keys(e).forEach(a=>{r[Ss(a)]=e[a]}),r},QTe=t=>{if(!gt(t)||t.length>1)throw new Error("expect to receive a single Vue element child");return t[0]},ig=t=>{const e=gt(t)?t:[t],n=[];return e.forEach(r=>{var a;gt(r)?n.push(...ig(r)):Gr(r)&&gt(r.children)?n.push(...ig(r.children)):(n.push(r),Gr(r)&&((a=r.component)!=null&&a.subTree)&&n.push(...ig(r.component.subTree)))}),n},WF=t=>[...new Set(t)],tc=t=>!t&&t!==0?[]:Array.isArray(t)?t:[t],wT=t=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(t),Vg=t=>_n?window.requestAnimationFrame(t):setTimeout(t,16),xT=t=>_n?window.cancelAnimationFrame(t):clearTimeout(t),_T=()=>Math.floor(Math.random()*1e4),zr=t=>t,JTe=["class","style"],eEe=/^on[A-Z]/,z4=(t={})=>{const{excludeListeners:e=!1,excludeKeys:n}=t,r=U(()=>((n==null?void 0:n.value)||[]).concat(JTe)),a=Qt();return U(a?()=>{var i;return o2(Object.entries((i=a.proxy)==null?void 0:i.$attrs).filter(([o])=>!r.value.includes(o)&&!(e&&eEe.test(o))))}:()=>({}))},fu=({from:t,replacement:e,scope:n,version:r,ref:a,type:i="API"},o)=>{Ke(()=>b(o),s=>{},{immediate:!0})},pX=(t,e,n)=>{let r={offsetX:0,offsetY:0};const a=s=>{const l=s.clientX,u=s.clientY,{offsetX:c,offsetY:f}=r,d=t.value.getBoundingClientRect(),h=d.left,p=d.top,v=d.width,g=d.height,y=document.documentElement.clientWidth,m=document.documentElement.clientHeight,S=-h+c,w=-p+f,C=y-h-v+c,_=m-p-g+f,x=M=>{const E=Math.min(Math.max(c+M.clientX-l,S),C),A=Math.min(Math.max(f+M.clientY-u,w),_);r={offsetX:E,offsetY:A},t.value.style.transform=`translate(${la(E)}, ${la(A)})`},T=()=>{document.removeEventListener("mousemove",x),document.removeEventListener("mouseup",T)};document.addEventListener("mousemove",x),document.addEventListener("mouseup",T)},i=()=>{e.value&&t.value&&e.value.addEventListener("mousedown",a)},o=()=>{e.value&&t.value&&e.value.removeEventListener("mousedown",a)};Ut(()=>{Uo(()=>{n.value?i():o()})}),Sr(()=>{o()})};var tEe={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 nEe=t=>(e,n)=>rEe(e,n,b(t)),rEe=(t,e,n)=>Fr(n,t,t).replace(/\{(\w+)\}/g,(r,a)=>{var i;return`${(i=e==null?void 0:e[a])!=null?i:`{${a}}`}`}),aEe=t=>{const e=U(()=>b(t).name),n=ft(t)?t:B(t);return{lang:e,locale:n,t:nEe(t)}},vX=Symbol("localeContextKey"),En=t=>{const e=t||yt(vX,B());return aEe(U(()=>e.value||tEe))},_m="el",iEe="is-",Td=(t,e,n,r,a)=>{let i=`${t}-${e}`;return n&&(i+=`-${n}`),r&&(i+=`__${r}`),a&&(i+=`--${a}`),i},gX=Symbol("namespaceContextKey"),U4=t=>{const e=t||(Qt()?yt(gX,B(_m)):B(_m));return U(()=>b(e)||_m)},Ye=(t,e)=>{const n=U4(e);return{namespace:n,b:(v="")=>Td(n.value,t,v,"",""),e:v=>v?Td(n.value,t,"",v,""):"",m:v=>v?Td(n.value,t,"","",v):"",be:(v,g)=>v&&g?Td(n.value,t,v,g,""):"",em:(v,g)=>v&&g?Td(n.value,t,"",v,g):"",bm:(v,g)=>v&&g?Td(n.value,t,v,"",g):"",bem:(v,g,y)=>v&&g&&y?Td(n.value,t,v,g,y):"",is:(v,...g)=>{const y=g.length>=1?g[0]:!0;return v&&y?`${iEe}${v}`:""},cssVar:v=>{const g={};for(const y in v)v[y]&&(g[`--${n.value}-${y}`]=v[y]);return g},cssVarName:v=>`--${n.value}-${v}`,cssVarBlock:v=>{const g={};for(const y in v)v[y]&&(g[`--${n.value}-${t}-${y}`]=v[y]);return g},cssVarBlockName:v=>`--${n.value}-${t}-${v}`}},yX=(t,e={})=>{ft(t)||Da("[useLockscreen]","You need to pass a ref param to this function");const n=e.ns||Ye("popup"),r=zj(()=>n.bm("parent","hidden"));if(!_n||dl(document.body,r.value))return;let a=0,i=!1,o="0";const s=()=>{setTimeout(()=>{Eo(document==null?void 0:document.body,r.value),i&&document&&(document.body.style.width=o)},200)};Ke(t,l=>{if(!l){s();return}i=!dl(document.body,r.value),i&&(o=document.body.style.width),a=rX(n.namespace.value);const u=document.documentElement.clientHeight<document.body.scrollHeight,c=pf(document.body,"overflowY");a>0&&(u||c==="scroll")&&i&&(document.body.style.width=`calc(100% - ${a}px)`),Ql(document.body,r.value)}),Cj(()=>s())},oEe=Cl({type:ke(Boolean),default:null}),sEe=Cl({type:ke(Function)}),mX=t=>{const e=`update:${t}`,n=`onUpdate:${t}`,r=[e],a={[t]:oEe,[n]:sEe};return{useModelToggle:({indicator:o,toggleReason:s,shouldHideWhenRouteChanges:l,shouldProceed:u,onShow:c,onHide:f})=>{const d=Qt(),{emit:h}=d,p=d.props,v=U(()=>zt(p[n])),g=U(()=>p[t]===null),y=x=>{o.value!==!0&&(o.value=!0,s&&(s.value=x),zt(c)&&c(x))},m=x=>{o.value!==!1&&(o.value=!1,s&&(s.value=x),zt(f)&&f(x))},S=x=>{if(p.disabled===!0||zt(u)&&!u())return;const T=v.value&&_n;T&&h(e,!0),(g.value||!T)&&y(x)},w=x=>{if(p.disabled===!0||!_n)return;const T=v.value&&_n;T&&h(e,!1),(g.value||!T)&&m(x)},C=x=>{Ea(x)&&(p.disabled&&x?v.value&&h(e,!1):o.value!==x&&(x?y():m()))},_=()=>{o.value?w():S()};return Ke(()=>p[t],C),l&&d.appContext.config.globalProperties.$route!==void 0&&Ke(()=>({...d.proxy.$route}),()=>{l.value&&o.value&&w()}),Ut(()=>{C(p[t])}),{hide:w,show:S,toggle:_,hasUpdateHandler:v}},useModelToggleProps:a,useModelToggleEmits:r}};mX("modelValue");const bX=t=>{const e=Qt();return U(()=>{var n,r;return(r=(n=e==null?void 0:e.proxy)==null?void 0:n.$props)==null?void 0:r[t]})};var Mo="top",_s="bottom",Cs="right",Do="left",G4="auto",Lb=[Mo,_s,Cs,Do],Ng="start",m1="end",lEe="clippingParents",SX="viewport",sy="popper",uEe="reference",jF=Lb.reduce(function(t,e){return t.concat([e+"-"+Ng,e+"-"+m1])},[]),Lp=[].concat(Lb,[G4]).reduce(function(t,e){return t.concat([e,e+"-"+Ng,e+"-"+m1])},[]),cEe="beforeRead",fEe="read",dEe="afterRead",hEe="beforeMain",pEe="main",vEe="afterMain",gEe="beforeWrite",yEe="write",mEe="afterWrite",bEe=[cEe,fEe,dEe,hEe,pEe,vEe,gEe,yEe,mEe];function du(t){return t?(t.nodeName||"").toLowerCase():null}function Tl(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function Ig(t){var e=Tl(t).Element;return t instanceof e||t instanceof Element}function ms(t){var e=Tl(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function H4(t){if(typeof ShadowRoot>"u")return!1;var e=Tl(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function SEe(t){var e=t.state;Object.keys(e.elements).forEach(function(n){var r=e.styles[n]||{},a=e.attributes[n]||{},i=e.elements[n];!ms(i)||!du(i)||(Object.assign(i.style,r),Object.keys(a).forEach(function(o){var s=a[o];s===!1?i.removeAttribute(o):i.setAttribute(o,s===!0?"":s)}))})}function wEe(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach(function(r){var a=e.elements[r],i=e.attributes[r]||{},o=Object.keys(e.styles.hasOwnProperty(r)?e.styles[r]:n[r]),s=o.reduce(function(l,u){return l[u]="",l},{});!ms(a)||!du(a)||(Object.assign(a.style,s),Object.keys(i).forEach(function(l){a.removeAttribute(l)}))})}}var wX={name:"applyStyles",enabled:!0,phase:"write",fn:SEe,effect:wEe,requires:["computeStyles"]};function ru(t){return t.split("-")[0]}var qh=Math.max,s2=Math.min,Bg=Math.round;function $g(t,e){e===void 0&&(e=!1);var n=t.getBoundingClientRect(),r=1,a=1;if(ms(t)&&e){var i=t.offsetHeight,o=t.offsetWidth;o>0&&(r=Bg(n.width)/o||1),i>0&&(a=Bg(n.height)/i||1)}return{width:n.width/r,height:n.height/a,top:n.top/a,right:n.right/r,bottom:n.bottom/a,left:n.left/r,x:n.left/r,y:n.top/a}}function W4(t){var e=$g(t),n=t.offsetWidth,r=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:r}}function xX(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&H4(n)){var r=e;do{if(r&&t.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function lc(t){return Tl(t).getComputedStyle(t)}function xEe(t){return["table","td","th"].indexOf(du(t))>=0}function od(t){return((Ig(t)?t.ownerDocument:t.document)||window.document).documentElement}function CT(t){return du(t)==="html"?t:t.assignedSlot||t.parentNode||(H4(t)?t.host:null)||od(t)}function KF(t){return!ms(t)||lc(t).position==="fixed"?null:t.offsetParent}function _Ee(t){var e=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&ms(t)){var r=lc(t);if(r.position==="fixed")return null}var a=CT(t);for(H4(a)&&(a=a.host);ms(a)&&["html","body"].indexOf(du(a))<0;){var i=lc(a);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||e&&i.willChange==="filter"||e&&i.filter&&i.filter!=="none")return a;a=a.parentNode}return null}function Ob(t){for(var e=Tl(t),n=KF(t);n&&xEe(n)&&lc(n).position==="static";)n=KF(n);return n&&(du(n)==="html"||du(n)==="body"&&lc(n).position==="static")?e:n||_Ee(t)||e}function j4(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Cm(t,e,n){return qh(t,s2(e,n))}function CEe(t,e,n){var r=Cm(t,e,n);return r>n?n:r}function _X(){return{top:0,right:0,bottom:0,left:0}}function CX(t){return Object.assign({},_X(),t)}function TX(t,e){return e.reduce(function(n,r){return n[r]=t,n},{})}var TEe=function(t,e){return t=typeof t=="function"?t(Object.assign({},e.rects,{placement:e.placement})):t,CX(typeof t!="number"?t:TX(t,Lb))};function EEe(t){var e,n=t.state,r=t.name,a=t.options,i=n.elements.arrow,o=n.modifiersData.popperOffsets,s=ru(n.placement),l=j4(s),u=[Do,Cs].indexOf(s)>=0,c=u?"height":"width";if(!(!i||!o)){var f=TEe(a.padding,n),d=W4(i),h=l==="y"?Mo:Do,p=l==="y"?_s:Cs,v=n.rects.reference[c]+n.rects.reference[l]-o[l]-n.rects.popper[c],g=o[l]-n.rects.reference[l],y=Ob(i),m=y?l==="y"?y.clientHeight||0:y.clientWidth||0:0,S=v/2-g/2,w=f[h],C=m-d[c]-f[p],_=m/2-d[c]/2+S,x=Cm(w,_,C),T=l;n.modifiersData[r]=(e={},e[T]=x,e.centerOffset=x-_,e)}}function MEe(t){var e=t.state,n=t.options,r=n.element,a=r===void 0?"[data-popper-arrow]":r;a!=null&&(typeof a=="string"&&(a=e.elements.popper.querySelector(a),!a)||!xX(e.elements.popper,a)||(e.elements.arrow=a))}var DEe={name:"arrow",enabled:!0,phase:"main",fn:EEe,effect:MEe,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Pg(t){return t.split("-")[1]}var AEe={top:"auto",right:"auto",bottom:"auto",left:"auto"};function kEe(t){var e=t.x,n=t.y,r=window,a=r.devicePixelRatio||1;return{x:Bg(e*a)/a||0,y:Bg(n*a)/a||0}}function YF(t){var e,n=t.popper,r=t.popperRect,a=t.placement,i=t.variation,o=t.offsets,s=t.position,l=t.gpuAcceleration,u=t.adaptive,c=t.roundOffsets,f=t.isFixed,d=o.x,h=d===void 0?0:d,p=o.y,v=p===void 0?0:p,g=typeof c=="function"?c({x:h,y:v}):{x:h,y:v};h=g.x,v=g.y;var y=o.hasOwnProperty("x"),m=o.hasOwnProperty("y"),S=Do,w=Mo,C=window;if(u){var _=Ob(n),x="clientHeight",T="clientWidth";if(_===Tl(n)&&(_=od(n),lc(_).position!=="static"&&s==="absolute"&&(x="scrollHeight",T="scrollWidth")),_=_,a===Mo||(a===Do||a===Cs)&&i===m1){w=_s;var M=f&&_===C&&C.visualViewport?C.visualViewport.height:_[x];v-=M-r.height,v*=l?1:-1}if(a===Do||(a===Mo||a===_s)&&i===m1){S=Cs;var E=f&&_===C&&C.visualViewport?C.visualViewport.width:_[T];h-=E-r.width,h*=l?1:-1}}var A=Object.assign({position:s},u&&AEe),k=c===!0?kEe({x:h,y:v}):{x:h,y:v};if(h=k.x,v=k.y,l){var L;return Object.assign({},A,(L={},L[w]=m?"0":"",L[S]=y?"0":"",L.transform=(C.devicePixelRatio||1)<=1?"translate("+h+"px, "+v+"px)":"translate3d("+h+"px, "+v+"px, 0)",L))}return Object.assign({},A,(e={},e[w]=m?v+"px":"",e[S]=y?h+"px":"",e.transform="",e))}function REe(t){var e=t.state,n=t.options,r=n.gpuAcceleration,a=r===void 0?!0:r,i=n.adaptive,o=i===void 0?!0:i,s=n.roundOffsets,l=s===void 0?!0:s,u={placement:ru(e.placement),variation:Pg(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:a,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,YF(Object.assign({},u,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:o,roundOffsets:l})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,YF(Object.assign({},u,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}var EX={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:REe,data:{}},BS={passive:!0};function LEe(t){var e=t.state,n=t.instance,r=t.options,a=r.scroll,i=a===void 0?!0:a,o=r.resize,s=o===void 0?!0:o,l=Tl(e.elements.popper),u=[].concat(e.scrollParents.reference,e.scrollParents.popper);return i&&u.forEach(function(c){c.addEventListener("scroll",n.update,BS)}),s&&l.addEventListener("resize",n.update,BS),function(){i&&u.forEach(function(c){c.removeEventListener("scroll",n.update,BS)}),s&&l.removeEventListener("resize",n.update,BS)}}var MX={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:LEe,data:{}},OEe={left:"right",right:"left",bottom:"top",top:"bottom"};function Kx(t){return t.replace(/left|right|bottom|top/g,function(e){return OEe[e]})}var VEe={start:"end",end:"start"};function XF(t){return t.replace(/start|end/g,function(e){return VEe[e]})}function K4(t){var e=Tl(t),n=e.pageXOffset,r=e.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Y4(t){return $g(od(t)).left+K4(t).scrollLeft}function NEe(t){var e=Tl(t),n=od(t),r=e.visualViewport,a=n.clientWidth,i=n.clientHeight,o=0,s=0;return r&&(a=r.width,i=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(o=r.offsetLeft,s=r.offsetTop)),{width:a,height:i,x:o+Y4(t),y:s}}function IEe(t){var e,n=od(t),r=K4(t),a=(e=t.ownerDocument)==null?void 0:e.body,i=qh(n.scrollWidth,n.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),o=qh(n.scrollHeight,n.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),s=-r.scrollLeft+Y4(t),l=-r.scrollTop;return lc(a||n).direction==="rtl"&&(s+=qh(n.clientWidth,a?a.clientWidth:0)-i),{width:i,height:o,x:s,y:l}}function X4(t){var e=lc(t),n=e.overflow,r=e.overflowX,a=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+a+r)}function DX(t){return["html","body","#document"].indexOf(du(t))>=0?t.ownerDocument.body:ms(t)&&X4(t)?t:DX(CT(t))}function Tm(t,e){var n;e===void 0&&(e=[]);var r=DX(t),a=r===((n=t.ownerDocument)==null?void 0:n.body),i=Tl(r),o=a?[i].concat(i.visualViewport||[],X4(r)?r:[]):r,s=e.concat(o);return a?s:s.concat(Tm(CT(o)))}function TR(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function BEe(t){var e=$g(t);return e.top=e.top+t.clientTop,e.left=e.left+t.clientLeft,e.bottom=e.top+t.clientHeight,e.right=e.left+t.clientWidth,e.width=t.clientWidth,e.height=t.clientHeight,e.x=e.left,e.y=e.top,e}function qF(t,e){return e===SX?TR(NEe(t)):Ig(e)?BEe(e):TR(IEe(od(t)))}function $Ee(t){var e=Tm(CT(t)),n=["absolute","fixed"].indexOf(lc(t).position)>=0,r=n&&ms(t)?Ob(t):t;return Ig(r)?e.filter(function(a){return Ig(a)&&xX(a,r)&&du(a)!=="body"}):[]}function PEe(t,e,n){var r=e==="clippingParents"?$Ee(t):[].concat(e),a=[].concat(r,[n]),i=a[0],o=a.reduce(function(s,l){var u=qF(t,l);return s.top=qh(u.top,s.top),s.right=s2(u.right,s.right),s.bottom=s2(u.bottom,s.bottom),s.left=qh(u.left,s.left),s},qF(t,i));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}function AX(t){var e=t.reference,n=t.element,r=t.placement,a=r?ru(r):null,i=r?Pg(r):null,o=e.x+e.width/2-n.width/2,s=e.y+e.height/2-n.height/2,l;switch(a){case Mo:l={x:o,y:e.y-n.height};break;case _s:l={x:o,y:e.y+e.height};break;case Cs:l={x:e.x+e.width,y:s};break;case Do:l={x:e.x-n.width,y:s};break;default:l={x:e.x,y:e.y}}var u=a?j4(a):null;if(u!=null){var c=u==="y"?"height":"width";switch(i){case Ng:l[u]=l[u]-(e[c]/2-n[c]/2);break;case m1:l[u]=l[u]+(e[c]/2-n[c]/2);break}}return l}function b1(t,e){e===void 0&&(e={});var n=e,r=n.placement,a=r===void 0?t.placement:r,i=n.boundary,o=i===void 0?lEe:i,s=n.rootBoundary,l=s===void 0?SX:s,u=n.elementContext,c=u===void 0?sy:u,f=n.altBoundary,d=f===void 0?!1:f,h=n.padding,p=h===void 0?0:h,v=CX(typeof p!="number"?p:TX(p,Lb)),g=c===sy?uEe:sy,y=t.rects.popper,m=t.elements[d?g:c],S=PEe(Ig(m)?m:m.contextElement||od(t.elements.popper),o,l),w=$g(t.elements.reference),C=AX({reference:w,element:y,strategy:"absolute",placement:a}),_=TR(Object.assign({},y,C)),x=c===sy?_:w,T={top:S.top-x.top+v.top,bottom:x.bottom-S.bottom+v.bottom,left:S.left-x.left+v.left,right:x.right-S.right+v.right},M=t.modifiersData.offset;if(c===sy&&M){var E=M[a];Object.keys(T).forEach(function(A){var k=[Cs,_s].indexOf(A)>=0?1:-1,L=[Mo,_s].indexOf(A)>=0?"y":"x";T[A]+=E[L]*k})}return T}function FEe(t,e){e===void 0&&(e={});var n=e,r=n.placement,a=n.boundary,i=n.rootBoundary,o=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?Lp:l,c=Pg(r),f=c?s?jF:jF.filter(function(p){return Pg(p)===c}):Lb,d=f.filter(function(p){return u.indexOf(p)>=0});d.length===0&&(d=f);var h=d.reduce(function(p,v){return p[v]=b1(t,{placement:v,boundary:a,rootBoundary:i,padding:o})[ru(v)],p},{});return Object.keys(h).sort(function(p,v){return h[p]-h[v]})}function zEe(t){if(ru(t)===G4)return[];var e=Kx(t);return[XF(t),e,XF(e)]}function UEe(t){var e=t.state,n=t.options,r=t.name;if(!e.modifiersData[r]._skip){for(var a=n.mainAxis,i=a===void 0?!0:a,o=n.altAxis,s=o===void 0?!0:o,l=n.fallbackPlacements,u=n.padding,c=n.boundary,f=n.rootBoundary,d=n.altBoundary,h=n.flipVariations,p=h===void 0?!0:h,v=n.allowedAutoPlacements,g=e.options.placement,y=ru(g),m=y===g,S=l||(m||!p?[Kx(g)]:zEe(g)),w=[g].concat(S).reduce(function(ge,ie){return ge.concat(ru(ie)===G4?FEe(e,{placement:ie,boundary:c,rootBoundary:f,padding:u,flipVariations:p,allowedAutoPlacements:v}):ie)},[]),C=e.rects.reference,_=e.rects.popper,x=new Map,T=!0,M=w[0],E=0;E<w.length;E++){var A=w[E],k=ru(A),L=Pg(A)===Ng,I=[Mo,_s].indexOf(k)>=0,P=I?"width":"height",F=b1(e,{placement:A,boundary:c,rootBoundary:f,altBoundary:d,padding:u}),$=I?L?Cs:Do:L?_s:Mo;C[P]>_[P]&&($=Kx($));var W=Kx($),V=[];if(i&&V.push(F[k]<=0),s&&V.push(F[$]<=0,F[W]<=0),V.every(function(ge){return ge})){M=A,T=!1;break}x.set(A,V)}if(T)for(var z=p?3:1,K=function(ge){var ie=w.find(function(Q){var ce=x.get(Q);if(ce)return ce.slice(0,ge).every(function(se){return se})});if(ie)return M=ie,"break"},Z=z;Z>0;Z--){var oe=K(Z);if(oe==="break")break}e.placement!==M&&(e.modifiersData[r]._skip=!0,e.placement=M,e.reset=!0)}}var GEe={name:"flip",enabled:!0,phase:"main",fn:UEe,requiresIfExists:["offset"],data:{_skip:!1}};function ZF(t,e,n){return n===void 0&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function QF(t){return[Mo,Cs,_s,Do].some(function(e){return t[e]>=0})}function HEe(t){var e=t.state,n=t.name,r=e.rects.reference,a=e.rects.popper,i=e.modifiersData.preventOverflow,o=b1(e,{elementContext:"reference"}),s=b1(e,{altBoundary:!0}),l=ZF(o,r),u=ZF(s,a,i),c=QF(l),f=QF(u);e.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:f},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":f})}var WEe={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:HEe};function jEe(t,e,n){var r=ru(t),a=[Do,Mo].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},e,{placement:t})):n,o=i[0],s=i[1];return o=o||0,s=(s||0)*a,[Do,Cs].indexOf(r)>=0?{x:s,y:o}:{x:o,y:s}}function KEe(t){var e=t.state,n=t.options,r=t.name,a=n.offset,i=a===void 0?[0,0]:a,o=Lp.reduce(function(c,f){return c[f]=jEe(f,e.rects,i),c},{}),s=o[e.placement],l=s.x,u=s.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=u),e.modifiersData[r]=o}var YEe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:KEe};function XEe(t){var e=t.state,n=t.name;e.modifiersData[n]=AX({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}var kX={name:"popperOffsets",enabled:!0,phase:"read",fn:XEe,data:{}};function qEe(t){return t==="x"?"y":"x"}function ZEe(t){var e=t.state,n=t.options,r=t.name,a=n.mainAxis,i=a===void 0?!0:a,o=n.altAxis,s=o===void 0?!1:o,l=n.boundary,u=n.rootBoundary,c=n.altBoundary,f=n.padding,d=n.tether,h=d===void 0?!0:d,p=n.tetherOffset,v=p===void 0?0:p,g=b1(e,{boundary:l,rootBoundary:u,padding:f,altBoundary:c}),y=ru(e.placement),m=Pg(e.placement),S=!m,w=j4(y),C=qEe(w),_=e.modifiersData.popperOffsets,x=e.rects.reference,T=e.rects.popper,M=typeof v=="function"?v(Object.assign({},e.rects,{placement:e.placement})):v,E=typeof M=="number"?{mainAxis:M,altAxis:M}:Object.assign({mainAxis:0,altAxis:0},M),A=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,k={x:0,y:0};if(_){if(i){var L,I=w==="y"?Mo:Do,P=w==="y"?_s:Cs,F=w==="y"?"height":"width",$=_[w],W=$+g[I],V=$-g[P],z=h?-T[F]/2:0,K=m===Ng?x[F]:T[F],Z=m===Ng?-T[F]:-x[F],oe=e.elements.arrow,ge=h&&oe?W4(oe):{width:0,height:0},ie=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:_X(),Q=ie[I],ce=ie[P],se=Cm(0,x[F],ge[F]),me=S?x[F]/2-z-se-Q-E.mainAxis:K-se-Q-E.mainAxis,ve=S?-x[F]/2+z+se+ce+E.mainAxis:Z+se+ce+E.mainAxis,he=e.elements.arrow&&Ob(e.elements.arrow),ee=he?w==="y"?he.clientTop||0:he.clientLeft||0:0,ue=(L=A==null?void 0:A[w])!=null?L:0,fe=$+me-ue-ee,Re=$+ve-ue,Ne=Cm(h?s2(W,fe):W,$,h?qh(V,Re):V);_[w]=Ne,k[w]=Ne-$}if(s){var De,we=w==="x"?Mo:Do,ae=w==="x"?_s:Cs,Ie=_[C],He=C==="y"?"height":"width",Ce=Ie+g[we],qe=Ie-g[ae],Ze=[Mo,Do].indexOf(y)!==-1,de=(De=A==null?void 0:A[C])!=null?De:0,Xe=Ze?Ce:Ie-x[He]-T[He]-de+E.altAxis,mt=Ze?Ie+x[He]+T[He]-de-E.altAxis:qe,kt=h&&Ze?CEe(Xe,Ie,mt):Cm(h?Xe:Ce,Ie,h?mt:qe);_[C]=kt,k[C]=kt-Ie}e.modifiersData[r]=k}}var QEe={name:"preventOverflow",enabled:!0,phase:"main",fn:ZEe,requiresIfExists:["offset"]};function JEe(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function eMe(t){return t===Tl(t)||!ms(t)?K4(t):JEe(t)}function tMe(t){var e=t.getBoundingClientRect(),n=Bg(e.width)/t.offsetWidth||1,r=Bg(e.height)/t.offsetHeight||1;return n!==1||r!==1}function nMe(t,e,n){n===void 0&&(n=!1);var r=ms(e),a=ms(e)&&tMe(e),i=od(e),o=$g(t,a),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((du(e)!=="body"||X4(i))&&(s=eMe(e)),ms(e)?(l=$g(e,!0),l.x+=e.clientLeft,l.y+=e.clientTop):i&&(l.x=Y4(i))),{x:o.left+s.scrollLeft-l.x,y:o.top+s.scrollTop-l.y,width:o.width,height:o.height}}function rMe(t){var e=new Map,n=new Set,r=[];t.forEach(function(i){e.set(i.name,i)});function a(i){n.add(i.name);var o=[].concat(i.requires||[],i.requiresIfExists||[]);o.forEach(function(s){if(!n.has(s)){var l=e.get(s);l&&a(l)}}),r.push(i)}return t.forEach(function(i){n.has(i.name)||a(i)}),r}function aMe(t){var e=rMe(t);return bEe.reduce(function(n,r){return n.concat(e.filter(function(a){return a.phase===r}))},[])}function iMe(t){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(t())})})),e}}function oMe(t){var e=t.reduce(function(n,r){var a=n[r.name];return n[r.name]=a?Object.assign({},a,r,{options:Object.assign({},a.options,r.options),data:Object.assign({},a.data,r.data)}):r,n},{});return Object.keys(e).map(function(n){return e[n]})}var JF={placement:"bottom",modifiers:[],strategy:"absolute"};function e5(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return!e.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function q4(t){t===void 0&&(t={});var e=t,n=e.defaultModifiers,r=n===void 0?[]:n,a=e.defaultOptions,i=a===void 0?JF:a;return function(o,s,l){l===void 0&&(l=i);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},JF,i),modifiersData:{},elements:{reference:o,popper:s},attributes:{},styles:{}},c=[],f=!1,d={state:u,setOptions:function(v){var g=typeof v=="function"?v(u.options):v;p(),u.options=Object.assign({},i,u.options,g),u.scrollParents={reference:Ig(o)?Tm(o):o.contextElement?Tm(o.contextElement):[],popper:Tm(s)};var y=aMe(oMe([].concat(r,u.options.modifiers)));return u.orderedModifiers=y.filter(function(m){return m.enabled}),h(),d.update()},forceUpdate:function(){if(!f){var v=u.elements,g=v.reference,y=v.popper;if(e5(g,y)){u.rects={reference:nMe(g,Ob(y),u.options.strategy==="fixed"),popper:W4(y)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(T){return u.modifiersData[T.name]=Object.assign({},T.data)});for(var m=0;m<u.orderedModifiers.length;m++){if(u.reset===!0){u.reset=!1,m=-1;continue}var S=u.orderedModifiers[m],w=S.fn,C=S.options,_=C===void 0?{}:C,x=S.name;typeof w=="function"&&(u=w({state:u,options:_,name:x,instance:d})||u)}}}},update:iMe(function(){return new Promise(function(v){d.forceUpdate(),v(u)})}),destroy:function(){p(),f=!0}};if(!e5(o,s))return d;d.setOptions(l).then(function(v){!f&&l.onFirstUpdate&&l.onFirstUpdate(v)});function h(){u.orderedModifiers.forEach(function(v){var g=v.name,y=v.options,m=y===void 0?{}:y,S=v.effect;if(typeof S=="function"){var w=S({state:u,name:g,instance:d,options:m}),C=function(){};c.push(w||C)}})}function p(){c.forEach(function(v){return v()}),c=[]}return d}}q4();var sMe=[MX,kX,EX,wX];q4({defaultModifiers:sMe});var lMe=[MX,kX,EX,wX,YEe,GEe,QEe,DEe,WEe],RX=q4({defaultModifiers:lMe});const uMe=(t,e,n={})=>{const r={name:"updateState",enabled:!0,phase:"write",fn:({state:l})=>{const u=cMe(l);Object.assign(o.value,u)},requires:["computeStyles"]},a=U(()=>{const{onFirstUpdate:l,placement:u,strategy:c,modifiers:f}=b(n);return{onFirstUpdate:l,placement:u||"bottom",strategy:c||"absolute",modifiers:[...f||[],r,{name:"applyStyles",enabled:!1}]}}),i=vr(),o=B({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 Ke(a,l=>{const u=b(i);u&&u.setOptions(l)},{deep:!0}),Ke([t,e],([l,u])=>{s(),!(!l||!u)&&(i.value=RX(l,u,b(a)))}),Sr(()=>{s()}),{state:U(()=>{var l;return{...((l=b(i))==null?void 0:l.state)||{}}}),styles:U(()=>b(o).styles),attributes:U(()=>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:U(()=>b(i))}};function cMe(t){const e=Object.keys(t.elements),n=o2(e.map(a=>[a,t.styles[a]||{}])),r=o2(e.map(a=>[a,t.attributes[a]]));return{styles:n,attributes:r}}const Z4=t=>{if(!t)return{onClick:Qn,onMousedown:Qn,onMouseup:Qn};let e=!1,n=!1;return{onClick:o=>{e&&n&&t(o),e=n=!1},onMousedown:o=>{e=o.target===o.currentTarget},onMouseup:o=>{n=o.target===o.currentTarget}}},fMe=(t,e=0)=>{if(e===0)return t;const n=B(!1);let r=0;const a=()=>{r&&clearTimeout(r),r=window.setTimeout(()=>{n.value=t.value},e)};return Ut(a),Ke(()=>t.value,i=>{i?a():n.value=i}),n};function t5(){let t;const e=(r,a)=>{n(),t=window.setTimeout(r,a)},n=()=>window.clearTimeout(t);return uT(()=>n()),{registerTimeout:e,cancelTimeout:n}}const n5={prefix:Math.floor(Math.random()*1e4),current:0},dMe=Symbol("elIdInjection"),LX=()=>Qt()?yt(dMe,n5):n5,Ts=t=>{const e=LX(),n=U4();return U(()=>b(t)||`${n.value}-id-${e.prefix}-${e.current++}`)};let kv=[];const r5=t=>{const e=t;e.key===Dt.esc&&kv.forEach(n=>n(e))},hMe=t=>{Ut(()=>{kv.length===0&&document.addEventListener("keydown",r5),_n&&kv.push(t)}),Sr(()=>{kv=kv.filter(e=>e!==t),kv.length===0&&_n&&document.removeEventListener("keydown",r5)})};let a5;const OX=()=>{const t=U4(),e=LX(),n=U(()=>`${t.value}-popper-container-${e.prefix}`),r=U(()=>`#${n.value}`);return{id:n,selector:r}},pMe=t=>{const e=document.createElement("div");return e.id=t,document.body.appendChild(e),e},vMe=()=>{const{id:t,selector:e}=OX();return QC(()=>{_n&&!a5&&!document.body.querySelector(e.value)&&(a5=pMe(t.value))}),{id:t,selector:e}},gMe=nt({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),VX=({showAfter:t,hideAfter:e,autoClose:n,open:r,close:a})=>{const{registerTimeout:i}=t5(),{registerTimeout:o,cancelTimeout:s}=t5();return{onOpen:c=>{i(()=>{r(c);const f=b(n);Pt(f)&&f>0&&o(()=>{a(c)},f)},b(t))},onClose:c=>{s(),i(()=>{a(c)},b(e))}}},NX=Symbol("elForwardRef"),yMe=t=>{fn(NX,{setForwardRef:n=>{t.value=n}})},mMe=t=>({mounted(e){t(e)},updated(e){t(e)},unmounted(){t(null)}}),i5=B(0),IX=2e3,BX=Symbol("zIndexContextKey"),m0=t=>{const e=t||(Qt()?yt(BX,void 0):void 0),n=U(()=>{const i=b(e);return Pt(i)?i:IX}),r=U(()=>n.value+i5.value);return{initialZIndex:n,currentZIndex:r,nextZIndex:()=>(i5.value++,r.value)}},S1=Math.min,og=Math.max,l2=Math.round,Gf=t=>({x:t,y:t});function bMe(t,e,n){return og(t,S1(e,n))}function $X(t,e){return typeof t=="function"?t(e):t}function Q4(t){return t.split("-")[0]}function J4(t){return t.split("-")[1]}function SMe(t){return t==="x"?"y":"x"}function PX(t){return t==="y"?"height":"width"}function eV(t){return["top","bottom"].includes(Q4(t))?"y":"x"}function FX(t){return SMe(eV(t))}function wMe(t){return{top:0,right:0,bottom:0,left:0,...t}}function xMe(t){return typeof t!="number"?wMe(t):{top:t,right:t,bottom:t,left:t}}function zX(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function o5(t,e,n){let{reference:r,floating:a}=t;const i=eV(e),o=FX(e),s=PX(o),l=Q4(e),u=i==="y",c=r.x+r.width/2-a.width/2,f=r.y+r.height/2-a.height/2,d=r[s]/2-a[s]/2;let h;switch(l){case"top":h={x:c,y:r.y-a.height};break;case"bottom":h={x:c,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:f};break;case"left":h={x:r.x-a.width,y:f};break;default:h={x:r.x,y:r.y}}switch(J4(e)){case"start":h[o]-=d*(n&&u?-1:1);break;case"end":h[o]+=d*(n&&u?-1:1);break}return h}const _Me=async(t,e,n)=>{const{placement:r="bottom",strategy:a="absolute",middleware:i=[],platform:o}=n,s=i.filter(Boolean),l=await(o.isRTL==null?void 0:o.isRTL(e));let u=await o.getElementRects({reference:t,floating:e,strategy:a}),{x:c,y:f}=o5(u,r,l),d=r,h={},p=0;for(let v=0;v<s.length;v++){const{name:g,fn:y}=s[v],{x:m,y:S,data:w,reset:C}=await y({x:c,y:f,initialPlacement:r,placement:d,strategy:a,middlewareData:h,rects:u,platform:o,elements:{reference:t,floating:e}});if(c=m??c,f=S??f,h={...h,[g]:{...h[g],...w}},C&&p<=50){p++,typeof C=="object"&&(C.placement&&(d=C.placement),C.rects&&(u=C.rects===!0?await o.getElementRects({reference:t,floating:e,strategy:a}):C.rects),{x:c,y:f}=o5(u,d,l)),v=-1;continue}}return{x:c,y:f,placement:d,strategy:a,middlewareData:h}},CMe=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:r,placement:a,rects:i,platform:o,elements:s,middlewareData:l}=e,{element:u,padding:c=0}=$X(t,e)||{};if(u==null)return{};const f=xMe(c),d={x:n,y:r},h=FX(a),p=PX(h),v=await o.getDimensions(u),g=h==="y",y=g?"top":"left",m=g?"bottom":"right",S=g?"clientHeight":"clientWidth",w=i.reference[p]+i.reference[h]-d[h]-i.floating[p],C=d[h]-i.reference[h],_=await(o.getOffsetParent==null?void 0:o.getOffsetParent(u));let x=_?_[S]:0;(!x||!await(o.isElement==null?void 0:o.isElement(_)))&&(x=s.floating[S]||i.floating[p]);const T=w/2-C/2,M=x/2-v[p]/2-1,E=S1(f[y],M),A=S1(f[m],M),k=E,L=x-v[p]-A,I=x/2-v[p]/2+T,P=bMe(k,I,L),F=!l.arrow&&J4(a)!=null&&I!=P&&i.reference[p]/2-(I<k?E:A)-v[p]/2<0,$=F?I<k?I-k:I-L:0;return{[h]:d[h]+$,data:{[h]:P,centerOffset:I-P-$,...F&&{alignmentOffset:$}},reset:F}}});async function TMe(t,e){const{placement:n,platform:r,elements:a}=t,i=await(r.isRTL==null?void 0:r.isRTL(a.floating)),o=Q4(n),s=J4(n),l=eV(n)==="y",u=["left","top"].includes(o)?-1:1,c=i&&l?-1:1,f=$X(e,t);let{mainAxis:d,crossAxis:h,alignmentAxis:p}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return s&&typeof p=="number"&&(h=s==="end"?p*-1:p),l?{x:h*c,y:d*u}:{x:d*u,y:h*c}}const EMe=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){const{x:n,y:r}=e,a=await TMe(e,t);return{x:n+a.x,y:r+a.y,data:a}}}};function Hf(t){return UX(t)?(t.nodeName||"").toLowerCase():"#document"}function Go(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function sd(t){var e;return(e=(UX(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function UX(t){return t instanceof Node||t instanceof Go(t).Node}function uc(t){return t instanceof Element||t instanceof Go(t).Element}function hu(t){return t instanceof HTMLElement||t instanceof Go(t).HTMLElement}function s5(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Go(t).ShadowRoot}function Vb(t){const{overflow:e,overflowX:n,overflowY:r,display:a}=Es(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+n)&&!["inline","contents"].includes(a)}function MMe(t){return["table","td","th"].includes(Hf(t))}function tV(t){const e=nV(),n=Es(t);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function DMe(t){let e=Fg(t);for(;hu(e)&&!TT(e);){if(tV(e))return e;e=Fg(e)}return null}function nV(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function TT(t){return["html","body","#document"].includes(Hf(t))}function Es(t){return Go(t).getComputedStyle(t)}function ET(t){return uc(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Fg(t){if(Hf(t)==="html")return t;const e=t.assignedSlot||t.parentNode||s5(t)&&t.host||sd(t);return s5(e)?e.host:e}function GX(t){const e=Fg(t);return TT(e)?t.ownerDocument?t.ownerDocument.body:t.body:hu(e)&&Vb(e)?e:GX(e)}function ER(t,e,n){var r;e===void 0&&(e=[]),n===void 0&&(n=!0);const a=GX(t),i=a===((r=t.ownerDocument)==null?void 0:r.body),o=Go(a);return i?e.concat(o,o.visualViewport||[],Vb(a)?a:[],o.frameElement&&n?ER(o.frameElement):[]):e.concat(a,ER(a,[],n))}function HX(t){const e=Es(t);let n=parseFloat(e.width)||0,r=parseFloat(e.height)||0;const a=hu(t),i=a?t.offsetWidth:n,o=a?t.offsetHeight:r,s=l2(n)!==i||l2(r)!==o;return s&&(n=i,r=o),{width:n,height:r,$:s}}function WX(t){return uc(t)?t:t.contextElement}function sg(t){const e=WX(t);if(!hu(e))return Gf(1);const n=e.getBoundingClientRect(),{width:r,height:a,$:i}=HX(e);let o=(i?l2(n.width):n.width)/r,s=(i?l2(n.height):n.height)/a;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}const AMe=Gf(0);function jX(t){const e=Go(t);return!nV()||!e.visualViewport?AMe:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function kMe(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==Go(t)?!1:e}function w1(t,e,n,r){e===void 0&&(e=!1),n===void 0&&(n=!1);const a=t.getBoundingClientRect(),i=WX(t);let o=Gf(1);e&&(r?uc(r)&&(o=sg(r)):o=sg(t));const s=kMe(i,n,r)?jX(i):Gf(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=Go(i),h=r&&uc(r)?Go(r):r;let p=d.frameElement;for(;p&&r&&h!==d;){const v=sg(p),g=p.getBoundingClientRect(),y=Es(p),m=g.left+(p.clientLeft+parseFloat(y.paddingLeft))*v.x,S=g.top+(p.clientTop+parseFloat(y.paddingTop))*v.y;l*=v.x,u*=v.y,c*=v.x,f*=v.y,l+=m,u+=S,p=Go(p).frameElement}}return zX({width:c,height:f,x:l,y:u})}function RMe(t){let{rect:e,offsetParent:n,strategy:r}=t;const a=hu(n),i=sd(n);if(n===i)return e;let o={scrollLeft:0,scrollTop:0},s=Gf(1);const l=Gf(0);if((a||!a&&r!=="fixed")&&((Hf(n)!=="body"||Vb(i))&&(o=ET(n)),hu(n))){const u=w1(n);s=sg(n),l.x=u.x+n.clientLeft,l.y=u.y+n.clientTop}return{width:e.width*s.x,height:e.height*s.y,x:e.x*s.x-o.scrollLeft*s.x+l.x,y:e.y*s.y-o.scrollTop*s.y+l.y}}function LMe(t){return Array.from(t.getClientRects())}function KX(t){return w1(sd(t)).left+ET(t).scrollLeft}function OMe(t){const e=sd(t),n=ET(t),r=t.ownerDocument.body,a=og(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),i=og(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+KX(t);const s=-n.scrollTop;return Es(r).direction==="rtl"&&(o+=og(e.clientWidth,r.clientWidth)-a),{width:a,height:i,x:o,y:s}}function VMe(t,e){const n=Go(t),r=sd(t),a=n.visualViewport;let i=r.clientWidth,o=r.clientHeight,s=0,l=0;if(a){i=a.width,o=a.height;const u=nV();(!u||u&&e==="fixed")&&(s=a.offsetLeft,l=a.offsetTop)}return{width:i,height:o,x:s,y:l}}function NMe(t,e){const n=w1(t,!0,e==="fixed"),r=n.top+t.clientTop,a=n.left+t.clientLeft,i=hu(t)?sg(t):Gf(1),o=t.clientWidth*i.x,s=t.clientHeight*i.y,l=a*i.x,u=r*i.y;return{width:o,height:s,x:l,y:u}}function l5(t,e,n){let r;if(e==="viewport")r=VMe(t,n);else if(e==="document")r=OMe(sd(t));else if(uc(e))r=NMe(e,n);else{const a=jX(t);r={...e,x:e.x-a.x,y:e.y-a.y}}return zX(r)}function YX(t,e){const n=Fg(t);return n===e||!uc(n)||TT(n)?!1:Es(n).position==="fixed"||YX(n,e)}function IMe(t,e){const n=e.get(t);if(n)return n;let r=ER(t,[],!1).filter(s=>uc(s)&&Hf(s)!=="body"),a=null;const i=Es(t).position==="fixed";let o=i?Fg(t):t;for(;uc(o)&&!TT(o);){const s=Es(o),l=tV(o);!l&&s.position==="fixed"&&(a=null),(i?!l&&!a:!l&&s.position==="static"&&!!a&&["absolute","fixed"].includes(a.position)||Vb(o)&&!l&&YX(t,o))?r=r.filter(c=>c!==o):a=s,o=Fg(o)}return e.set(t,r),r}function BMe(t){let{element:e,boundary:n,rootBoundary:r,strategy:a}=t;const o=[...n==="clippingAncestors"?IMe(e,this._c):[].concat(n),r],s=o[0],l=o.reduce((u,c)=>{const f=l5(e,c,a);return u.top=og(f.top,u.top),u.right=S1(f.right,u.right),u.bottom=S1(f.bottom,u.bottom),u.left=og(f.left,u.left),u},l5(e,s,a));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function $Me(t){return HX(t)}function PMe(t,e,n){const r=hu(e),a=sd(e),i=n==="fixed",o=w1(t,!0,i,e);let s={scrollLeft:0,scrollTop:0};const l=Gf(0);if(r||!r&&!i)if((Hf(e)!=="body"||Vb(a))&&(s=ET(e)),r){const u=w1(e,!0,i,e);l.x=u.x+e.clientLeft,l.y=u.y+e.clientTop}else a&&(l.x=KX(a));return{x:o.left+s.scrollLeft-l.x,y:o.top+s.scrollTop-l.y,width:o.width,height:o.height}}function u5(t,e){return!hu(t)||Es(t).position==="fixed"?null:e?e(t):t.offsetParent}function XX(t,e){const n=Go(t);if(!hu(t))return n;let r=u5(t,e);for(;r&&MMe(r)&&Es(r).position==="static";)r=u5(r,e);return r&&(Hf(r)==="html"||Hf(r)==="body"&&Es(r).position==="static"&&!tV(r))?n:r||DMe(t)||n}const FMe=async function(t){let{reference:e,floating:n,strategy:r}=t;const a=this.getOffsetParent||XX,i=this.getDimensions;return{reference:PMe(e,await a(n),r),floating:{x:0,y:0,...await i(n)}}};function zMe(t){return Es(t).direction==="rtl"}const UMe={convertOffsetParentRelativeRectToViewportRelativeRect:RMe,getDocumentElement:sd,getClippingRect:BMe,getOffsetParent:XX,getElementRects:FMe,getClientRects:LMe,getDimensions:$Me,getScale:sg,isElement:uc,isRTL:zMe},GMe=(t,e,n)=>{const r=new Map,a={platform:UMe,...n},i={...a.platform,_c:r};return _Me(t,e,{...a,platform:i})};nt({});const HMe=t=>{if(!_n)return;if(!t)return t;const e=Po(t);return e||(ft(t)?e:t)},WMe=({middleware:t,placement:e,strategy:n})=>{const r=B(),a=B(),i=B(),o=B(),s=B({}),l={x:i,y:o,placement:e,strategy:n,middlewareData:s},u=async()=>{if(!_n)return;const c=HMe(r),f=Po(a);if(!c||!f)return;const d=await GMe(c,f,{placement:b(e),strategy:b(n),middleware:b(t)});y1(l).forEach(h=>{l[h].value=d[h]})};return Ut(()=>{Uo(()=>{u()})}),{...l,update:u,referenceRef:r,contentRef:a}},jMe=({arrowRef:t,padding:e})=>({name:"arrow",options:{element:t,padding:e},fn(n){const r=b(t);return r?CMe({element:r,padding:e}).fn(n):{}}});function KMe(t){const e=B();function n(){if(t.value==null)return;const{selectionStart:a,selectionEnd:i,value:o}=t.value;if(a==null||i==null)return;const s=o.slice(0,Math.max(0,a)),l=o.slice(Math.max(0,i));e.value={selectionStart:a,selectionEnd:i,value:o,beforeTxt:s,afterTxt:l}}function r(){if(t.value==null||e.value==null)return;const{value:a}=t.value,{beforeTxt:i,afterTxt:o,selectionStart:s}=e.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)}t.value.setSelectionRange(l,l)}return[n,r]}const YMe=(t,e,n)=>ig(t.subTree).filter(i=>{var o;return Gr(i)&&((o=i.type)==null?void 0:o.name)===e&&!!i.component}).map(i=>i.component.uid).map(i=>n[i]).filter(i=>!!i),rV=(t,e)=>{const n={},r=vr([]);return{children:r,addChild:o=>{n[o.uid]=o,r.value=YMe(t,e,n)},removeChild:o=>{delete n[o],r.value=r.value.filter(s=>s.uid!==o)}}},yi=Cl({type:String,values:wu,required:!1}),qX=Symbol("size"),XMe=()=>{const t=yt(qX,{});return U(()=>b(t.size)||"")};function qMe(t,{afterFocus:e,afterBlur:n}={}){const r=Qt(),{emit:a}=r,i=vr(),o=B(!1),s=c=>{o.value||(o.value=!0,a("focus",c),e==null||e())},l=c=>{var f;c.relatedTarget&&((f=i.value)!=null&&f.contains(c.relatedTarget))||(o.value=!1,a("blur",c),n==null||n())},u=()=>{var c;(c=t.value)==null||c.focus()};return Ke(i,c=>{c&&c.setAttribute("tabindex","-1")}),Or(i,"click",u),{wrapperRef:i,isFocused:o,handleFocus:s,handleBlur:l}}const ZX=Symbol(),u2=B();function MT(t,e=void 0){const n=Qt()?yt(ZX,u2):u2;return t?U(()=>{var r,a;return(a=(r=n.value)==null?void 0:r[t])!=null?a:e}):n}function DT(t,e){const n=MT(),r=Ye(t,U(()=>{var s;return((s=n.value)==null?void 0:s.namespace)||_m})),a=En(U(()=>{var s;return(s=n.value)==null?void 0:s.locale})),i=m0(U(()=>{var s;return((s=n.value)==null?void 0:s.zIndex)||IX})),o=U(()=>{var s;return b(e)||((s=n.value)==null?void 0:s.size)||""});return aV(U(()=>b(n)||{})),{ns:r,locale:a,zIndex:i,size:o}}const aV=(t,e,n=!1)=>{var r;const a=!!Qt(),i=a?MT():void 0,o=(r=e==null?void 0:e.provide)!=null?r:a?fn:void 0;if(!o)return;const s=U(()=>{const l=b(t);return i!=null&&i.value?ZMe(i.value,l):l});return o(ZX,s),o(vX,U(()=>s.value.locale)),o(gX,U(()=>s.value.namespace)),o(BX,U(()=>s.value.zIndex)),o(qX,{size:U(()=>s.value.size||"")}),(n||!u2.value)&&(u2.value=s.value),s},ZMe=(t,e)=>{var n;const r=[...new Set([...y1(t),...y1(e)])],a={};for(const i of r)a[i]=(n=e[i])!=null?n:t[i];return a},QMe=nt({a11y:{type:Boolean,default:!0},locale:{type:ke(Object)},size:yi,button:{type:ke(Object)},experimentalFeatures:{type:ke(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:ke(Object)},zIndex:Number,namespace:{type:String,default:"el"}}),MR={},JMe=ye({name:"ElConfigProvider",props:QMe,setup(t,{slots:e}){Ke(()=>t.message,r=>{Object.assign(MR,r??{})},{immediate:!0,deep:!0});const n=aV(t);return()=>Ge(e,"default",{config:n==null?void 0:n.value})}}),x1=tn(JMe),eDe="2.3.14",tDe=(t=[])=>({version:eDe,install:(n,r)=>{n[HF]||(n[HF]=!0,t.forEach(a=>n.use(a)),r&&aV(r,n,!0))}}),nDe=nt({zIndex:{type:ke([Number,String]),default:100},target:{type:String,default:""},offset:{type:Number,default:0},position:{type:String,values:["top","bottom"],default:"top"}}),rDe={scroll:({scrollTop:t,fixed:e})=>Pt(t)&&Ea(e),[Ar]:t=>Ea(t)};var tt=(t,e)=>{const n=t.__vccOpts||t;for(const[r,a]of e)n[r]=a;return n};const QX="ElAffix",aDe=ye({name:QX}),iDe=ye({...aDe,props:nDe,emits:rDe,setup(t,{expose:e,emit:n}){const r=t,a=Ye("affix"),i=vr(),o=vr(),s=vr(),{height:l}=uye(),{height:u,width:c,top:f,bottom:d,update:h}=sF(o,{windowScroll:!1}),p=sF(i),v=B(!1),g=B(0),y=B(0),m=U(()=>({height:v.value?`${u.value}px`:"",width:v.value?`${c.value}px`:""})),S=U(()=>{if(!v.value)return{};const _=r.offset?la(r.offset):0;return{height:`${u.value}px`,width:`${c.value}px`,top:r.position==="top"?_:"",bottom:r.position==="bottom"?_:"",transform:y.value?`translateY(${y.value}px)`:"",zIndex:r.zIndex}}),w=()=>{if(s.value)if(g.value=s.value instanceof Window?document.documentElement.scrollTop:s.value.scrollTop||0,r.position==="top")if(r.target){const _=p.bottom.value-r.offset-u.value;v.value=r.offset>f.value&&p.bottom.value>0,y.value=_<0?_:0}else v.value=r.offset>f.value;else if(r.target){const _=l.value-p.top.value-r.offset-u.value;v.value=l.value-r.offset<d.value&&l.value>p.top.value,y.value=_<0?-_:0}else v.value=l.value-r.offset<d.value},C=()=>{h(),n("scroll",{scrollTop:g.value,fixed:v.value})};return Ke(v,_=>n("change",_)),Ut(()=>{var _;r.target?(i.value=(_=document.querySelector(r.target))!=null?_:void 0,i.value||Da(QX,`Target is not existed: ${r.target}`)):i.value=document.documentElement,s.value=N4(o.value,!0),h()}),Or(s,"scroll",C),Uo(w),e({update:w,updateRoot:h}),(_,x)=>(G(),re("div",{ref_key:"root",ref:o,class:Y(b(a).b()),style:Et(b(m))},[R("div",{class:Y({[b(a).m("fixed")]:v.value}),style:Et(b(S))},[Ge(_.$slots,"default")],6)],6))}});var oDe=tt(iDe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/affix/src/affix.vue"]]);const sDe=tn(oDe),lDe=nt({size:{type:ke([Number,String])},color:{type:String}}),uDe=ye({name:"ElIcon",inheritAttrs:!1}),cDe=ye({...uDe,props:lDe,setup(t){const e=t,n=Ye("icon"),r=U(()=>{const{size:a,color:i}=e;return!a&&!i?{}:{fontSize:Na(a)?void 0:la(a),"--color":i}});return(a,i)=>(G(),re("i",an({class:b(n).b(),style:b(r)},a.$attrs),[Ge(a.$slots,"default")],16))}});var fDe=tt(cDe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/icon/src/icon.vue"]]);const _t=tn(fDe),dDe=["light","dark"],hDe=nt({title:{type:String,default:""},description:{type:String,default:""},type:{type:String,values:y1(Uf),default:"info"},closable:{type:Boolean,default:!0},closeText:{type:String,default:""},showIcon:Boolean,center:Boolean,effect:{type:String,values:dDe,default:"light"}}),pDe={close:t=>t instanceof MouseEvent},vDe=ye({name:"ElAlert"}),gDe=ye({...vDe,props:hDe,emits:pDe,setup(t,{emit:e}){const n=t,{Close:r}=P4,a=wi(),i=Ye("alert"),o=B(!0),s=U(()=>Uf[n.type]),l=U(()=>[i.e("icon"),{[i.is("big")]:!!n.description||!!a.default}]),u=U(()=>({[i.is("bold")]:n.description||a.default})),c=f=>{o.value=!1,e("close",f)};return(f,d)=>(G(),Ee(da,{name:b(i).b("fade"),persisted:""},{default:j(()=>[Ft(R("div",{class:Y([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)?(G(),Ee(b(_t),{key:0,class:Y(b(l))},{default:j(()=>[(G(),Ee(on(b(s))))]),_:1},8,["class"])):_e("v-if",!0),R("div",{class:Y(b(i).e("content"))},[f.title||f.$slots.title?(G(),re("span",{key:0,class:Y([b(i).e("title"),b(u)])},[Ge(f.$slots,"title",{},()=>[Be(We(f.title),1)])],2)):_e("v-if",!0),f.$slots.default||f.description?(G(),re("p",{key:1,class:Y(b(i).e("description"))},[Ge(f.$slots,"default",{},()=>[Be(We(f.description),1)])],2)):_e("v-if",!0),f.closable?(G(),re(Ct,{key:2},[f.closeText?(G(),re("div",{key:0,class:Y([b(i).e("close-btn"),b(i).is("customed")]),onClick:c},We(f.closeText),3)):(G(),Ee(b(_t),{key:1,class:Y(b(i).e("close-btn")),onClick:c},{default:j(()=>[N(b(r))]),_:1},8,["class"]))],64)):_e("v-if",!0)],2)],2),[[cn,o.value]])]),_:3},8,["name"]))}});var yDe=tt(gDe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/alert/src/alert.vue"]]);const mDe=tn(yDe),Op=Symbol("formContextKey"),pu=Symbol("formItemContextKey"),Aa=(t,e={})=>{const n=B(void 0),r=e.prop?n:bX("size"),a=e.global?n:XMe(),i=e.form?{size:void 0}:yt(Op,void 0),o=e.formItem?{size:void 0}:yt(pu,void 0);return U(()=>r.value||b(t)||(o==null?void 0:o.size)||(i==null?void 0:i.size)||a.value||"")},Ro=t=>{const e=bX("disabled"),n=yt(Op,void 0);return U(()=>e.value||b(t)||(n==null?void 0:n.disabled)||!1)},uo=()=>{const t=yt(Op,void 0),e=yt(pu,void 0);return{form:t,formItem:e}},ld=(t,{formItemContext:e,disableIdGeneration:n,disableIdManagement:r})=>{n||(n=B(!1)),r||(r=B(!1));const a=B();let i;const o=U(()=>{var s;return!!(!t.label&&e&&e.inputIds&&((s=e.inputIds)==null?void 0:s.length)<=1)});return Ut(()=>{i=Ke([Wr(t,"id"),n],([s,l])=>{const u=s??(l?void 0:Ts().value);u!==a.value&&(e!=null&&e.removeInputId&&(a.value&&e.removeInputId(a.value),!(r!=null&&r.value)&&!l&&u&&e.addInputId(u)),a.value=u)},{immediate:!0})}),bu(()=>{i&&i(),e!=null&&e.removeInputId&&a.value&&e.removeInputId(a.value)}),{isLabeledByFormItem:o,inputId:a}},bDe=nt({size:{type:String,values:wu},disabled:Boolean}),SDe=nt({...bDe,model:Object,rules:{type:ke(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]}}),wDe={validate:(t,e,n)=>(gt(t)||Ht(t))&&Ea(e)&&Ht(n)};function xDe(){const t=B([]),e=U(()=>{if(!t.value.length)return"0";const i=Math.max(...t.value);return i?`${i}px`:""});function n(i){const o=t.value.indexOf(i);return o===-1&&e.value,o}function r(i,o){if(i&&o){const s=n(o);t.value.splice(s,1,i)}else i&&t.value.push(i)}function a(i){const o=n(i);o>-1&&t.value.splice(o,1)}return{autoLabelWidth:e,registerLabelWidth:r,deregisterLabelWidth:a}}const $S=(t,e)=>{const n=pp(e);return n.length>0?t.filter(r=>r.prop&&n.includes(r.prop)):t},_De="ElForm",CDe=ye({name:_De}),TDe=ye({...CDe,props:SDe,emits:wDe,setup(t,{expose:e,emit:n}){const r=t,a=[],i=Aa(),o=Ye("form"),s=U(()=>{const{labelPosition:m,inline:S}=r;return[o.b(),o.m(i.value||"default"),{[o.m(`label-${m}`)]:m,[o.m("inline")]:S}]}),l=m=>{a.push(m)},u=m=>{m.prop&&a.splice(a.indexOf(m),1)},c=(m=[])=>{r.model&&$S(a,m).forEach(S=>S.resetField())},f=(m=[])=>{$S(a,m).forEach(S=>S.clearValidate())},d=U(()=>!!r.model),h=m=>{if(a.length===0)return[];const S=$S(a,m);return S.length?S:[]},p=async m=>g(void 0,m),v=async(m=[])=>{if(!d.value)return!1;const S=h(m);if(S.length===0)return!0;let w={};for(const C of S)try{await C.validate("")}catch(_){w={...w,..._}}return Object.keys(w).length===0?!0:Promise.reject(w)},g=async(m=[],S)=>{const w=!zt(S);try{const C=await v(m);return C===!0&&(S==null||S(C)),C}catch(C){if(C instanceof Error)throw C;const _=C;return r.scrollToError&&y(Object.keys(_)[0]),S==null||S(!1,_),w&&Promise.reject(_)}},y=m=>{var S;const w=$S(a,m)[0];w&&((S=w.$el)==null||S.scrollIntoView(r.scrollIntoViewOptions))};return Ke(()=>r.rules,()=>{r.validateOnRuleChange&&p().catch(m=>void 0)},{deep:!0}),fn(Op,Vn({...Wa(r),emit:n,resetFields:c,clearValidate:f,validateField:g,addField:l,removeField:u,...xDe()})),e({validate:p,validateField:g,resetFields:c,clearValidate:f,scrollToField:y}),(m,S)=>(G(),re("form",{class:Y(b(s))},[Ge(m.$slots,"default")],2))}});var EDe=tt(TDe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/form/src/form.vue"]]);function Rh(){return Rh=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Rh.apply(this,arguments)}function MDe(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,_1(t,e)}function DR(t){return DR=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},DR(t)}function _1(t,e){return _1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},_1(t,e)}function DDe(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Yx(t,e,n){return DDe()?Yx=Reflect.construct.bind():Yx=function(a,i,o){var s=[null];s.push.apply(s,i);var l=Function.bind.apply(a,s),u=new l;return o&&_1(u,o.prototype),u},Yx.apply(null,arguments)}function ADe(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function AR(t){var e=typeof Map=="function"?new Map:void 0;return AR=function(r){if(r===null||!ADe(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e<"u"){if(e.has(r))return e.get(r);e.set(r,a)}function a(){return Yx(r,arguments,DR(this).constructor)}return a.prototype=Object.create(r.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),_1(a,r)},AR(t)}var kDe=/%[sdj%]/g,RDe=function(){};typeof process<"u"&&process.env;function kR(t){if(!t||!t.length)return null;var e={};return t.forEach(function(n){var r=n.field;e[r]=e[r]||[],e[r].push(n)}),e}function Fo(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];var a=0,i=n.length;if(typeof t=="function")return t.apply(null,n);if(typeof t=="string"){var o=t.replace(kDe,function(s){if(s==="%%")return"%";if(a>=i)return s;switch(s){case"%s":return String(n[a++]);case"%d":return Number(n[a++]);case"%j":try{return JSON.stringify(n[a++])}catch{return"[Circular]"}break;default:return s}});return o}return t}function LDe(t){return t==="string"||t==="url"||t==="hex"||t==="email"||t==="date"||t==="pattern"}function ja(t,e){return!!(t==null||e==="array"&&Array.isArray(t)&&!t.length||LDe(e)&&typeof t=="string"&&!t)}function ODe(t,e,n){var r=[],a=0,i=t.length;function o(s){r.push.apply(r,s||[]),a++,a===i&&n(r)}t.forEach(function(s){e(s,o)})}function c5(t,e,n){var r=0,a=t.length;function i(o){if(o&&o.length){n(o);return}var s=r;r=r+1,s<a?e(t[s],i):n([])}i([])}function VDe(t){var e=[];return Object.keys(t).forEach(function(n){e.push.apply(e,t[n]||[])}),e}var f5=function(t){MDe(e,t);function e(n,r){var a;return a=t.call(this,"Async Validation Error")||this,a.errors=n,a.fields=r,a}return e}(AR(Error));function NDe(t,e,n,r,a){if(e.first){var i=new Promise(function(d,h){var p=function(y){return r(y),y.length?h(new f5(y,kR(y))):d(a)},v=VDe(t);c5(v,n,p)});return i.catch(function(d){return d}),i}var o=e.firstFields===!0?Object.keys(t):e.firstFields||[],s=Object.keys(t),l=s.length,u=0,c=[],f=new Promise(function(d,h){var p=function(g){if(c.push.apply(c,g),u++,u===l)return r(c),c.length?h(new f5(c,kR(c))):d(a)};s.length||(r(c),d(a)),s.forEach(function(v){var g=t[v];o.indexOf(v)!==-1?c5(g,n,p):ODe(g,n,p)})});return f.catch(function(d){return d}),f}function IDe(t){return!!(t&&t.message!==void 0)}function BDe(t,e){for(var n=t,r=0;r<e.length;r++){if(n==null)return n;n=n[e[r]]}return n}function d5(t,e){return function(n){var r;return t.fullFields?r=BDe(e,t.fullFields):r=e[n.field||t.fullField],IDe(n)?(n.field=n.field||t.fullField,n.fieldValue=r,n):{message:typeof n=="function"?n():n,fieldValue:r,field:n.field||t.fullField}}}function h5(t,e){if(e){for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];typeof r=="object"&&typeof t[n]=="object"?t[n]=Rh({},t[n],r):t[n]=r}}return t}var JX=function(e,n,r,a,i,o){e.required&&(!r.hasOwnProperty(e.field)||ja(n,o||e.type))&&a.push(Fo(i.messages.required,e.fullField))},$De=function(e,n,r,a,i){(/^\s+$/.test(n)||n==="")&&a.push(Fo(i.messages.whitespace,e.fullField))},PS,PDe=function(){if(PS)return PS;var t="[a-fA-F\\d:]",e=function(w){return w&&w.includeBoundaries?"(?:(?<=\\s|^)(?="+t+")|(?<="+t+")(?=\\s|$))":""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",a=(`
  18. (?:
  19. (?:`+r+":){7}(?:"+r+`|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8
  20. (?:`+r+":){6}(?:"+n+"|:"+r+`|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4
  21. (?:`+r+":){5}(?::"+n+"|(?::"+r+`){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4
  22. (?:`+r+":){4}(?:(?::"+r+"){0,1}:"+n+"|(?::"+r+`){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4
  23. (?:`+r+":){3}(?:(?::"+r+"){0,2}:"+n+"|(?::"+r+`){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4
  24. (?:`+r+":){2}(?:(?::"+r+"){0,3}:"+n+"|(?::"+r+`){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4
  25. (?:`+r+":){1}(?:(?::"+r+"){0,4}:"+n+"|(?::"+r+`){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4
  26. (?::(?:(?::`+r+"){0,5}:"+n+"|(?::"+r+`){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4
  27. )(?:%[0-9a-zA-Z]{1,})? // %eth0 %1
  28. `).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),i=new RegExp("(?:^"+n+"$)|(?:^"+a+"$)"),o=new RegExp("^"+n+"$"),s=new RegExp("^"+a+"$"),l=function(w){return w&&w.exact?i:new RegExp("(?:"+e(w)+n+e(w)+")|(?:"+e(w)+a+e(w)+")","g")};l.v4=function(S){return S&&S.exact?o:new RegExp(""+e(S)+n+e(S),"g")},l.v6=function(S){return S&&S.exact?s:new RegExp(""+e(S)+a+e(S),"g")};var u="(?:(?:[a-z]+:)?//)",c="(?:\\S+(?::\\S*)?@)?",f=l.v4().source,d=l.v6().source,h="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",p="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",v="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",g="(?::\\d{2,5})?",y='(?:[/?#][^\\s"]*)?',m="(?:"+u+"|www\\.)"+c+"(?:localhost|"+f+"|"+d+"|"+h+p+v+")"+g+y;return PS=new RegExp("(?:^"+m+"$)","i"),PS},p5={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},Ky={integer:function(e){return Ky.number(e)&&parseInt(e,10)===e},float:function(e){return Ky.number(e)&&!Ky.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch{return!1}},date:function(e){return typeof e.getTime=="function"&&typeof e.getMonth=="function"&&typeof e.getYear=="function"&&!isNaN(e.getTime())},number:function(e){return isNaN(e)?!1:typeof e=="number"},object:function(e){return typeof e=="object"&&!Ky.array(e)},method:function(e){return typeof e=="function"},email:function(e){return typeof e=="string"&&e.length<=320&&!!e.match(p5.email)},url:function(e){return typeof e=="string"&&e.length<=2048&&!!e.match(PDe())},hex:function(e){return typeof e=="string"&&!!e.match(p5.hex)}},FDe=function(e,n,r,a,i){if(e.required&&n===void 0){JX(e,n,r,a,i);return}var o=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=e.type;o.indexOf(s)>-1?Ky[s](n)||a.push(Fo(i.messages.types[s],e.fullField,e.type)):s&&typeof n!==e.type&&a.push(Fo(i.messages.types[s],e.fullField,e.type))},zDe=function(e,n,r,a,i){var o=typeof e.len=="number",s=typeof e.min=="number",l=typeof e.max=="number",u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,c=n,f=null,d=typeof n=="number",h=typeof n=="string",p=Array.isArray(n);if(d?f="number":h?f="string":p&&(f="array"),!f)return!1;p&&(c=n.length),h&&(c=n.replace(u,"_").length),o?c!==e.len&&a.push(Fo(i.messages[f].len,e.fullField,e.len)):s&&!l&&c<e.min?a.push(Fo(i.messages[f].min,e.fullField,e.min)):l&&!s&&c>e.max?a.push(Fo(i.messages[f].max,e.fullField,e.max)):s&&l&&(c<e.min||c>e.max)&&a.push(Fo(i.messages[f].range,e.fullField,e.min,e.max))},Zp="enum",UDe=function(e,n,r,a,i){e[Zp]=Array.isArray(e[Zp])?e[Zp]:[],e[Zp].indexOf(n)===-1&&a.push(Fo(i.messages[Zp],e.fullField,e[Zp].join(", ")))},GDe=function(e,n,r,a,i){if(e.pattern){if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(n)||a.push(Fo(i.messages.pattern.mismatch,e.fullField,n,e.pattern));else if(typeof e.pattern=="string"){var o=new RegExp(e.pattern);o.test(n)||a.push(Fo(i.messages.pattern.mismatch,e.fullField,n,e.pattern))}}},nr={required:JX,whitespace:$De,type:FDe,range:zDe,enum:UDe,pattern:GDe},HDe=function(e,n,r,a,i){var o=[],s=e.required||!e.required&&a.hasOwnProperty(e.field);if(s){if(ja(n,"string")&&!e.required)return r();nr.required(e,n,a,o,i,"string"),ja(n,"string")||(nr.type(e,n,a,o,i),nr.range(e,n,a,o,i),nr.pattern(e,n,a,o,i),e.whitespace===!0&&nr.whitespace(e,n,a,o,i))}r(o)},WDe=function(e,n,r,a,i){var o=[],s=e.required||!e.required&&a.hasOwnProperty(e.field);if(s){if(ja(n)&&!e.required)return r();nr.required(e,n,a,o,i),n!==void 0&&nr.type(e,n,a,o,i)}r(o)},jDe=function(e,n,r,a,i){var o=[],s=e.required||!e.required&&a.hasOwnProperty(e.field);if(s){if(n===""&&(n=void 0),ja(n)&&!e.required)return r();nr.required(e,n,a,o,i),n!==void 0&&(nr.type(e,n,a,o,i),nr.range(e,n,a,o,i))}r(o)},KDe=function(e,n,r,a,i){var o=[],s=e.required||!e.required&&a.hasOwnProperty(e.field);if(s){if(ja(n)&&!e.required)return r();nr.required(e,n,a,o,i),n!==void 0&&nr.type(e,n,a,o,i)}r(o)},YDe=function(e,n,r,a,i){var o=[],s=e.required||!e.required&&a.hasOwnProperty(e.field);if(s){if(ja(n)&&!e.required)return r();nr.required(e,n,a,o,i),ja(n)||nr.type(e,n,a,o,i)}r(o)},XDe=function(e,n,r,a,i){var o=[],s=e.required||!e.required&&a.hasOwnProperty(e.field);if(s){if(ja(n)&&!e.required)return r();nr.required(e,n,a,o,i),n!==void 0&&(nr.type(e,n,a,o,i),nr.range(e,n,a,o,i))}r(o)},qDe=function(e,n,r,a,i){var o=[],s=e.required||!e.required&&a.hasOwnProperty(e.field);if(s){if(ja(n)&&!e.required)return r();nr.required(e,n,a,o,i),n!==void 0&&(nr.type(e,n,a,o,i),nr.range(e,n,a,o,i))}r(o)},ZDe=function(e,n,r,a,i){var o=[],s=e.required||!e.required&&a.hasOwnProperty(e.field);if(s){if(n==null&&!e.required)return r();nr.required(e,n,a,o,i,"array"),n!=null&&(nr.type(e,n,a,o,i),nr.range(e,n,a,o,i))}r(o)},QDe=function(e,n,r,a,i){var o=[],s=e.required||!e.required&&a.hasOwnProperty(e.field);if(s){if(ja(n)&&!e.required)return r();nr.required(e,n,a,o,i),n!==void 0&&nr.type(e,n,a,o,i)}r(o)},JDe="enum",eAe=function(e,n,r,a,i){var o=[],s=e.required||!e.required&&a.hasOwnProperty(e.field);if(s){if(ja(n)&&!e.required)return r();nr.required(e,n,a,o,i),n!==void 0&&nr[JDe](e,n,a,o,i)}r(o)},tAe=function(e,n,r,a,i){var o=[],s=e.required||!e.required&&a.hasOwnProperty(e.field);if(s){if(ja(n,"string")&&!e.required)return r();nr.required(e,n,a,o,i),ja(n,"string")||nr.pattern(e,n,a,o,i)}r(o)},nAe=function(e,n,r,a,i){var o=[],s=e.required||!e.required&&a.hasOwnProperty(e.field);if(s){if(ja(n,"date")&&!e.required)return r();if(nr.required(e,n,a,o,i),!ja(n,"date")){var l;n instanceof Date?l=n:l=new Date(n),nr.type(e,l,a,o,i),l&&nr.range(e,l.getTime(),a,o,i)}}r(o)},rAe=function(e,n,r,a,i){var o=[],s=Array.isArray(n)?"array":typeof n;nr.required(e,n,a,o,i,s),r(o)},TM=function(e,n,r,a,i){var o=e.type,s=[],l=e.required||!e.required&&a.hasOwnProperty(e.field);if(l){if(ja(n,o)&&!e.required)return r();nr.required(e,n,a,s,i,o),ja(n,o)||nr.type(e,n,a,s,i)}r(s)},aAe=function(e,n,r,a,i){var o=[],s=e.required||!e.required&&a.hasOwnProperty(e.field);if(s){if(ja(n)&&!e.required)return r();nr.required(e,n,a,o,i)}r(o)},Em={string:HDe,method:WDe,number:jDe,boolean:KDe,regexp:YDe,integer:XDe,float:qDe,array:ZDe,object:QDe,enum:eAe,pattern:tAe,date:nAe,url:TM,hex:TM,email:TM,required:rAe,any:aAe};function RR(){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 e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var LR=RR(),Nb=function(){function t(n){this.rules=null,this._messages=LR,this.define(n)}var e=t.prototype;return e.define=function(r){var a=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(typeof r!="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(i){var o=r[i];a.rules[i]=Array.isArray(o)?o:[o]})},e.messages=function(r){return r&&(this._messages=h5(RR(),r)),this._messages},e.validate=function(r,a,i){var o=this;a===void 0&&(a={}),i===void 0&&(i=function(){});var s=r,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(v){var g=[],y={};function m(w){if(Array.isArray(w)){var C;g=(C=g).concat.apply(C,w)}else g.push(w)}for(var S=0;S<v.length;S++)m(v[S]);g.length?(y=kR(g),u(g,y)):u(null,s)}if(l.messages){var f=this.messages();f===LR&&(f=RR()),h5(f,l.messages),l.messages=f}else l.messages=this.messages();var d={},h=l.keys||Object.keys(this.rules);h.forEach(function(v){var g=o.rules[v],y=s[v];g.forEach(function(m){var S=m;typeof S.transform=="function"&&(s===r&&(s=Rh({},s)),y=s[v]=S.transform(y)),typeof S=="function"?S={validator:S}:S=Rh({},S),S.validator=o.getValidationMethod(S),S.validator&&(S.field=v,S.fullField=S.fullField||v,S.type=o.getType(S),d[v]=d[v]||[],d[v].push({rule:S,value:y,source:s,field:v}))})});var p={};return NDe(d,l,function(v,g){var y=v.rule,m=(y.type==="object"||y.type==="array")&&(typeof y.fields=="object"||typeof y.defaultField=="object");m=m&&(y.required||!y.required&&v.value),y.field=v.field;function S(_,x){return Rh({},x,{fullField:y.fullField+"."+_,fullFields:y.fullFields?[].concat(y.fullFields,[_]):[_]})}function w(_){_===void 0&&(_=[]);var x=Array.isArray(_)?_:[_];!l.suppressWarning&&x.length&&t.warning("async-validator:",x),x.length&&y.message!==void 0&&(x=[].concat(y.message));var T=x.map(d5(y,s));if(l.first&&T.length)return p[y.field]=1,g(T);if(!m)g(T);else{if(y.required&&!v.value)return y.message!==void 0?T=[].concat(y.message).map(d5(y,s)):l.error&&(T=[l.error(y,Fo(l.messages.required,y.field))]),g(T);var M={};y.defaultField&&Object.keys(v.value).map(function(k){M[k]=y.defaultField}),M=Rh({},M,v.rule.fields);var E={};Object.keys(M).forEach(function(k){var L=M[k],I=Array.isArray(L)?L:[L];E[k]=I.map(S.bind(null,k))});var A=new t(E);A.messages(l.messages),v.rule.options&&(v.rule.options.messages=l.messages,v.rule.options.error=l.error),A.validate(v.value,v.rule.options||l,function(k){var L=[];T&&T.length&&L.push.apply(L,T),k&&k.length&&L.push.apply(L,k),g(L.length?L:null)})}}var C;if(y.asyncValidator)C=y.asyncValidator(y,v.value,w,v.source,l);else if(y.validator){try{C=y.validator(y,v.value,w,v.source,l)}catch(_){console.error==null||console.error(_),l.suppressValidatorError||setTimeout(function(){throw _},0),w(_.message)}C===!0?w():C===!1?w(typeof y.message=="function"?y.message(y.fullField||y.field):y.message||(y.fullField||y.field)+" fails"):C instanceof Array?w(C):C instanceof Error&&w(C.message)}C&&C.then&&C.then(function(){return w()},function(_){return w(_)})},function(v){c(v)},s)},e.getType=function(r){if(r.type===void 0&&r.pattern instanceof RegExp&&(r.type="pattern"),typeof r.validator!="function"&&r.type&&!Em.hasOwnProperty(r.type))throw new Error(Fo("Unknown rule type %s",r.type));return r.type||"string"},e.getValidationMethod=function(r){if(typeof r.validator=="function")return r.validator;var a=Object.keys(r),i=a.indexOf("message");return i!==-1&&a.splice(i,1),a.length===1&&a[0]==="required"?Em.required:Em[this.getType(r)]||void 0},t}();Nb.register=function(e,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");Em[e]=n};Nb.warning=RDe;Nb.messages=LR;Nb.validators=Em;const iAe=["","error","validating","success"],oAe=nt({label:String,labelWidth:{type:[String,Number],default:""},prop:{type:ke([String,Array])},required:{type:Boolean,default:void 0},rules:{type:ke([Object,Array])},error:String,validateStatus:{type:String,values:iAe},for:String,inlineMessage:{type:[String,Boolean],default:""},showMessage:{type:Boolean,default:!0},size:{type:String,values:wu}}),v5="ElLabelWrap";var sAe=ye({name:v5,props:{isAutoWidth:Boolean,updateAll:Boolean},setup(t,{slots:e}){const n=yt(Op,void 0),r=yt(pu);r||Da(v5,"usage: <el-form-item><label-wrap /></el-form-item>");const a=Ye("form"),i=B(),o=B(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")=>{xt(()=>{e.default&&t.isAutoWidth&&(c==="update"?o.value=s():c==="remove"&&(n==null||n.deregisterLabelWidth(o.value)))})},u=()=>l("update");return Ut(()=>{u()}),Sr(()=>{l("remove")}),bc(()=>u()),Ke(o,(c,f)=>{t.updateAll&&(n==null||n.registerLabelWidth(c,f))}),Vi(U(()=>{var c,f;return(f=(c=i.value)==null?void 0:c.firstElementChild)!=null?f:null}),u),()=>{var c,f;if(!e)return null;const{isAutoWidth:d}=t;if(d){const h=n==null?void 0:n.autoLabelWidth,p=r==null?void 0:r.hasLabel,v={};if(p&&h&&h!=="auto"){const g=Math.max(0,Number.parseInt(h,10)-o.value),y=n.labelPosition==="left"?"marginRight":"marginLeft";g&&(v[y]=`${g}px`)}return N("div",{ref:i,class:[a.be("item","label-wrap")],style:v},[(c=e.default)==null?void 0:c.call(e)])}else return N(Ct,{ref:i},[(f=e.default)==null?void 0:f.call(e)])}}});const lAe=["role","aria-labelledby"],uAe=ye({name:"ElFormItem"}),cAe=ye({...uAe,props:oAe,setup(t,{expose:e}){const n=t,r=wi(),a=yt(Op,void 0),i=yt(pu,void 0),o=Aa(void 0,{formItem:!1}),s=Ye("form-item"),l=Ts().value,u=B([]),c=B(""),f=K0e(c,100),d=B(""),h=B();let p,v=!1;const g=U(()=>{if((a==null?void 0:a.labelPosition)==="top")return{};const ce=la(n.labelWidth||(a==null?void 0:a.labelWidth)||"");return ce?{width:ce}:{}}),y=U(()=>{if((a==null?void 0:a.labelPosition)==="top"||a!=null&&a.inline)return{};if(!n.label&&!n.labelWidth&&M)return{};const ce=la(n.labelWidth||(a==null?void 0:a.labelWidth)||"");return!n.label&&!r.label?{marginLeft:ce}:{}}),m=U(()=>[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",I.value||n.required),s.is("no-asterisk",a==null?void 0:a.hideRequiredAsterisk),(a==null?void 0:a.requireAsteriskPosition)==="right"?"asterisk-right":"asterisk-left",{[s.m("feedback")]:a==null?void 0:a.statusIcon}]),S=U(()=>Ea(n.inlineMessage)?n.inlineMessage:(a==null?void 0:a.inlineMessage)||!1),w=U(()=>[s.e("error"),{[s.em("error","inline")]:S.value}]),C=U(()=>n.prop?Ht(n.prop)?n.prop:n.prop.join("."):""),_=U(()=>!!(n.label||r.label)),x=U(()=>n.for||u.value.length===1?u.value[0]:void 0),T=U(()=>!x.value&&_.value),M=!!i,E=U(()=>{const ce=a==null?void 0:a.model;if(!(!ce||!n.prop))return jx(ce,n.prop).value}),A=U(()=>{const{required:ce}=n,se=[];n.rules&&se.push(...pp(n.rules));const me=a==null?void 0:a.rules;if(me&&n.prop){const ve=jx(me,n.prop).value;ve&&se.push(...pp(ve))}if(ce!==void 0){const ve=se.map((he,ee)=>[he,ee]).filter(([he])=>Object.keys(he).includes("required"));if(ve.length>0)for(const[he,ee]of ve)he.required!==ce&&(se[ee]={...he,required:ce});else se.push({required:ce})}return se}),k=U(()=>A.value.length>0),L=ce=>A.value.filter(me=>!me.trigger||!ce?!0:Array.isArray(me.trigger)?me.trigger.includes(ce):me.trigger===ce).map(({trigger:me,...ve})=>ve),I=U(()=>A.value.some(ce=>ce.required)),P=U(()=>{var ce;return f.value==="error"&&n.showMessage&&((ce=a==null?void 0:a.showMessage)!=null?ce:!0)}),F=U(()=>`${n.label||""}${(a==null?void 0:a.labelSuffix)||""}`),$=ce=>{c.value=ce},W=ce=>{var se,me;const{errors:ve,fields:he}=ce;(!ve||!he)&&console.error(ce),$("error"),d.value=ve?(me=(se=ve==null?void 0:ve[0])==null?void 0:se.message)!=null?me:`${n.prop} is required`:"",a==null||a.emit("validate",n.prop,!1,d.value)},V=()=>{$("success"),a==null||a.emit("validate",n.prop,!0,"")},z=async ce=>{const se=C.value;return new Nb({[se]:ce}).validate({[se]:E.value},{firstFields:!0}).then(()=>(V(),!0)).catch(ve=>(W(ve),Promise.reject(ve)))},K=async(ce,se)=>{if(v||!n.prop)return!1;const me=zt(se);if(!k.value)return se==null||se(!1),!1;const ve=L(ce);return ve.length===0?(se==null||se(!0),!0):($("validating"),z(ve).then(()=>(se==null||se(!0),!0)).catch(he=>{const{fields:ee}=he;return se==null||se(!1,ee),me?!1:Promise.reject(ee)}))},Z=()=>{$(""),d.value="",v=!1},oe=async()=>{const ce=a==null?void 0:a.model;if(!ce||!n.prop)return;const se=jx(ce,n.prop);v=!0,se.value=$F(p),await xt(),Z(),v=!1},ge=ce=>{u.value.includes(ce)||u.value.push(ce)},ie=ce=>{u.value=u.value.filter(se=>se!==ce)};Ke(()=>n.error,ce=>{d.value=ce||"",$(ce?"error":"")},{immediate:!0}),Ke(()=>n.validateStatus,ce=>$(ce||""));const Q=Vn({...Wa(n),$el:h,size:o,validateState:c,labelId:l,inputIds:u,isGroup:T,hasLabel:_,addInputId:ge,removeInputId:ie,resetField:oe,clearValidate:Z,validate:K});return fn(pu,Q),Ut(()=>{n.prop&&(a==null||a.addField(Q),p=$F(E.value))}),Sr(()=>{a==null||a.removeField(Q)}),e({size:o,validateMessage:d,validateState:c,validate:K,clearValidate:Z,resetField:oe}),(ce,se)=>{var me;return G(),re("div",{ref_key:"formItemRef",ref:h,class:Y(b(m)),role:b(T)?"group":void 0,"aria-labelledby":b(T)?b(l):void 0},[N(b(sAe),{"is-auto-width":b(g).width==="auto","update-all":((me=b(a))==null?void 0:me.labelWidth)==="auto"},{default:j(()=>[b(_)?(G(),Ee(on(b(x)?"label":"div"),{key:0,id:b(l),for:b(x),class:Y(b(s).e("label")),style:Et(b(g))},{default:j(()=>[Ge(ce.$slots,"label",{label:b(F)},()=>[Be(We(b(F)),1)])]),_:3},8,["id","for","class","style"])):_e("v-if",!0)]),_:3},8,["is-auto-width","update-all"]),R("div",{class:Y(b(s).e("content")),style:Et(b(y))},[Ge(ce.$slots,"default"),N(_K,{name:`${b(s).namespace.value}-zoom-in-top`},{default:j(()=>[b(P)?Ge(ce.$slots,"error",{key:0,error:d.value},()=>[R("div",{class:Y(b(w))},We(d.value),3)]):_e("v-if",!0)]),_:3},8,["name"])],6)],10,lAe)}}});var eq=tt(cAe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/form/src/form-item.vue"]]);const fAe=tn(EDe,{FormItem:eq}),dAe=ta(eq);let Ps;const hAe=`
  29. height:0 !important;
  30. visibility:hidden !important;
  31. ${yY()?"":"overflow:hidden !important;"}
  32. position:absolute !important;
  33. z-index:-1000 !important;
  34. top:0 !important;
  35. right:0 !important;
  36. `,pAe=["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 vAe(t){const e=window.getComputedStyle(t),n=e.getPropertyValue("box-sizing"),r=Number.parseFloat(e.getPropertyValue("padding-bottom"))+Number.parseFloat(e.getPropertyValue("padding-top")),a=Number.parseFloat(e.getPropertyValue("border-bottom-width"))+Number.parseFloat(e.getPropertyValue("border-top-width"));return{contextStyle:pAe.map(o=>`${o}:${e.getPropertyValue(o)}`).join(";"),paddingSize:r,borderSize:a,boxSizing:n}}function g5(t,e=1,n){var r;Ps||(Ps=document.createElement("textarea"),document.body.appendChild(Ps));const{paddingSize:a,borderSize:i,boxSizing:o,contextStyle:s}=vAe(t);Ps.setAttribute("style",`${s};${hAe}`),Ps.value=t.value||t.placeholder||"";let l=Ps.scrollHeight;const u={};o==="border-box"?l=l+i:o==="content-box"&&(l=l-a),Ps.value="";const c=Ps.scrollHeight-a;if(Pt(e)){let f=c*e;o==="border-box"&&(f=f+a+i),l=Math.max(f,l),u.minHeight=`${f}px`}if(Pt(n)){let f=c*n;o==="border-box"&&(f=f+a+i),l=Math.min(f,l)}return u.height=`${l}px`,(r=Ps.parentNode)==null||r.removeChild(Ps),Ps=void 0,u}const gAe=nt({id:{type:String,default:void 0},size:yi,disabled:Boolean,modelValue:{type:ke([String,Number,Object]),default:""},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:ke([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:gr},prefixIcon:{type:gr},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:ke([Object,Array,String]),default:()=>zr({})},autofocus:{type:Boolean,default:!1}}),yAe={[nn]:t=>Ht(t),input:t=>Ht(t),change:t=>Ht(t),focus:t=>t instanceof FocusEvent,blur:t=>t instanceof FocusEvent,clear:()=>!0,mouseleave:t=>t instanceof MouseEvent,mouseenter:t=>t instanceof MouseEvent,keydown:t=>t instanceof Event,compositionstart:t=>t instanceof CompositionEvent,compositionupdate:t=>t instanceof CompositionEvent,compositionend:t=>t instanceof CompositionEvent},mAe=["role"],bAe=["id","type","disabled","formatter","parser","readonly","autocomplete","tabindex","aria-label","placeholder","form","autofocus"],SAe=["id","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form","autofocus"],wAe=ye({name:"ElInput",inheritAttrs:!1}),xAe=ye({...wAe,props:gAe,emits:yAe,setup(t,{expose:e,emit:n}){const r=t,a=Dp(),i=wi(),o=U(()=>{const de={};return r.containerRole==="combobox"&&(de["aria-haspopup"]=a["aria-haspopup"],de["aria-owns"]=a["aria-owns"],de["aria-expanded"]=a["aria-expanded"]),de}),s=U(()=>[r.type==="textarea"?g.b():v.b(),v.m(h.value),v.is("disabled",p.value),v.is("exceed",ge.value),{[v.b("group")]:i.prepend||i.append,[v.bm("group","append")]:i.append,[v.bm("group","prepend")]:i.prepend,[v.m("prefix")]:i.prefix||r.prefixIcon,[v.m("suffix")]:i.suffix||r.suffixIcon||r.clearable||r.showPassword,[v.bm("suffix","password-clear")]:z.value&&K.value},a.class]),l=U(()=>[v.e("wrapper"),v.is("focus",E.value)]),u=z4({excludeKeys:U(()=>Object.keys(o.value))}),{form:c,formItem:f}=uo(),{inputId:d}=ld(r,{formItemContext:f}),h=Aa(),p=Ro(),v=Ye("input"),g=Ye("textarea"),y=vr(),m=vr(),S=B(!1),w=B(!1),C=B(!1),_=B(),x=vr(r.inputStyle),T=U(()=>y.value||m.value),{wrapperRef:M,isFocused:E,handleFocus:A,handleBlur:k}=qMe(T,{afterBlur(){var de;r.validateEvent&&((de=f==null?void 0:f.validate)==null||de.call(f,"blur").catch(Xe=>void 0))}}),L=U(()=>{var de;return(de=c==null?void 0:c.statusIcon)!=null?de:!1}),I=U(()=>(f==null?void 0:f.validateState)||""),P=U(()=>I.value&&F4[I.value]),F=U(()=>C.value?MTe:O2e),$=U(()=>[a.style,r.inputStyle]),W=U(()=>[r.inputStyle,x.value,{resize:r.resize}]),V=U(()=>Ta(r.modelValue)?"":String(r.modelValue)),z=U(()=>r.clearable&&!p.value&&!r.readonly&&!!V.value&&(E.value||S.value)),K=U(()=>r.showPassword&&!p.value&&!r.readonly&&!!V.value&&(!!V.value||E.value)),Z=U(()=>r.showWordLimit&&!!u.value.maxlength&&(r.type==="text"||r.type==="textarea")&&!p.value&&!r.readonly&&!r.showPassword),oe=U(()=>V.value.length),ge=U(()=>!!Z.value&&oe.value>Number(u.value.maxlength)),ie=U(()=>!!i.suffix||!!r.suffixIcon||z.value||r.showPassword||Z.value||!!I.value&&L.value),[Q,ce]=KMe(y);Vi(m,de=>{if(ve(),!Z.value||r.resize!=="both")return;const Xe=de[0],{width:mt}=Xe.contentRect;_.value={right:`calc(100% - ${mt+15+6}px)`}});const se=()=>{const{type:de,autosize:Xe}=r;if(!(!_n||de!=="textarea"||!m.value))if(Xe){const mt=un(Xe)?Xe.minRows:void 0,kt=un(Xe)?Xe.maxRows:void 0,Vt=g5(m.value,mt,kt);x.value={overflowY:"hidden",...Vt},xt(()=>{m.value.offsetHeight,x.value=Vt})}else x.value={minHeight:g5(m.value).minHeight}},ve=(de=>{let Xe=!1;return()=>{var mt;if(Xe||!r.autosize)return;((mt=m.value)==null?void 0:mt.offsetParent)===null||(de(),Xe=!0)}})(se),he=()=>{const de=T.value,Xe=r.formatter?r.formatter(V.value):V.value;!de||de.value===Xe||(de.value=Xe)},ee=async de=>{Q();let{value:Xe}=de.target;if(r.formatter&&(Xe=r.parser?r.parser(Xe):Xe),!w.value){if(Xe===V.value){he();return}n(nn,Xe),n("input",Xe),await xt(),he(),ce()}},ue=de=>{n("change",de.target.value)},fe=de=>{n("compositionstart",de),w.value=!0},Re=de=>{var Xe;n("compositionupdate",de);const mt=(Xe=de.target)==null?void 0:Xe.value,kt=mt[mt.length-1]||"";w.value=!wT(kt)},Ne=de=>{n("compositionend",de),w.value&&(w.value=!1,ee(de))},De=()=>{C.value=!C.value,we()},we=async()=>{var de;await xt(),(de=T.value)==null||de.focus()},ae=()=>{var de;return(de=T.value)==null?void 0:de.blur()},Ie=de=>{S.value=!1,n("mouseleave",de)},He=de=>{S.value=!0,n("mouseenter",de)},Ce=de=>{n("keydown",de)},qe=()=>{var de;(de=T.value)==null||de.select()},Ze=()=>{n(nn,""),n("change",""),n("clear"),n("input","")};return Ke(()=>r.modelValue,()=>{var de;xt(()=>se()),r.validateEvent&&((de=f==null?void 0:f.validate)==null||de.call(f,"change").catch(Xe=>void 0))}),Ke(V,()=>he()),Ke(()=>r.type,async()=>{await xt(),he(),se()}),Ut(()=>{!r.formatter&&r.parser,he(),xt(se)}),e({input:y,textarea:m,ref:T,textareaStyle:W,autosize:Wr(r,"autosize"),focus:we,blur:ae,select:qe,clear:Ze,resizeTextarea:se}),(de,Xe)=>Ft((G(),re("div",an(b(o),{class:b(s),style:b($),role:de.containerRole,onMouseenter:He,onMouseleave:Ie}),[_e(" input "),de.type!=="textarea"?(G(),re(Ct,{key:0},[_e(" prepend slot "),de.$slots.prepend?(G(),re("div",{key:0,class:Y(b(v).be("group","prepend"))},[Ge(de.$slots,"prepend")],2)):_e("v-if",!0),R("div",{ref_key:"wrapperRef",ref:M,class:Y(b(l))},[_e(" prefix slot "),de.$slots.prefix||de.prefixIcon?(G(),re("span",{key:0,class:Y(b(v).e("prefix"))},[R("span",{class:Y(b(v).e("prefix-inner"))},[Ge(de.$slots,"prefix"),de.prefixIcon?(G(),Ee(b(_t),{key:0,class:Y(b(v).e("icon"))},{default:j(()=>[(G(),Ee(on(de.prefixIcon)))]),_:1},8,["class"])):_e("v-if",!0)],2)],2)):_e("v-if",!0),R("input",an({id:b(d),ref_key:"input",ref:y,class:b(v).e("inner")},b(u),{type:de.showPassword?C.value?"text":"password":de.type,disabled:b(p),formatter:de.formatter,parser:de.parser,readonly:de.readonly,autocomplete:de.autocomplete,tabindex:de.tabindex,"aria-label":de.label,placeholder:de.placeholder,style:de.inputStyle,form:r.form,autofocus:r.autofocus,onCompositionstart:fe,onCompositionupdate:Re,onCompositionend:Ne,onInput:ee,onFocus:Xe[0]||(Xe[0]=(...mt)=>b(A)&&b(A)(...mt)),onBlur:Xe[1]||(Xe[1]=(...mt)=>b(k)&&b(k)(...mt)),onChange:ue,onKeydown:Ce}),null,16,bAe),_e(" suffix slot "),b(ie)?(G(),re("span",{key:1,class:Y(b(v).e("suffix"))},[R("span",{class:Y(b(v).e("suffix-inner"))},[!b(z)||!b(K)||!b(Z)?(G(),re(Ct,{key:0},[Ge(de.$slots,"suffix"),de.suffixIcon?(G(),Ee(b(_t),{key:0,class:Y(b(v).e("icon"))},{default:j(()=>[(G(),Ee(on(de.suffixIcon)))]),_:1},8,["class"])):_e("v-if",!0)],64)):_e("v-if",!0),b(z)?(G(),Ee(b(_t),{key:1,class:Y([b(v).e("icon"),b(v).e("clear")]),onMousedown:It(b(Qn),["prevent"]),onClick:Ze},{default:j(()=>[N(b(ad))]),_:1},8,["class","onMousedown"])):_e("v-if",!0),b(K)?(G(),Ee(b(_t),{key:2,class:Y([b(v).e("icon"),b(v).e("password")]),onClick:De},{default:j(()=>[(G(),Ee(on(b(F))))]),_:1},8,["class"])):_e("v-if",!0),b(Z)?(G(),re("span",{key:3,class:Y(b(v).e("count"))},[R("span",{class:Y(b(v).e("count-inner"))},We(b(oe))+" / "+We(b(u).maxlength),3)],2)):_e("v-if",!0),b(I)&&b(P)&&b(L)?(G(),Ee(b(_t),{key:4,class:Y([b(v).e("icon"),b(v).e("validateIcon"),b(v).is("loading",b(I)==="validating")])},{default:j(()=>[(G(),Ee(on(b(P))))]),_:1},8,["class"])):_e("v-if",!0)],2)],2)):_e("v-if",!0)],2),_e(" append slot "),de.$slots.append?(G(),re("div",{key:1,class:Y(b(v).be("group","append"))},[Ge(de.$slots,"append")],2)):_e("v-if",!0)],64)):(G(),re(Ct,{key:1},[_e(" textarea "),R("textarea",an({id:b(d),ref_key:"textarea",ref:m,class:b(g).e("inner")},b(u),{tabindex:de.tabindex,disabled:b(p),readonly:de.readonly,autocomplete:de.autocomplete,style:b(W),"aria-label":de.label,placeholder:de.placeholder,form:r.form,autofocus:r.autofocus,onCompositionstart:fe,onCompositionupdate:Re,onCompositionend:Ne,onInput:ee,onFocus:Xe[2]||(Xe[2]=(...mt)=>b(A)&&b(A)(...mt)),onBlur:Xe[3]||(Xe[3]=(...mt)=>b(k)&&b(k)(...mt)),onChange:ue,onKeydown:Ce}),null,16,SAe),b(Z)?(G(),re("span",{key:0,style:Et(_.value),class:Y(b(v).e("count"))},We(b(oe))+" / "+We(b(u).maxlength),7)):_e("v-if",!0)],64))],16,mAe)),[[cn,de.type!=="hidden"]])}});var _Ae=tt(xAe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/input/src/input.vue"]]);const Ri=tn(_Ae),Gv=4,tq={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"}},CAe=({move:t,size:e,bar:n})=>({[n.size]:e,transform:`translate${n.axis}(${t}%)`}),nq=Symbol("scrollbarContextKey"),TAe=nt({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),EAe="Thumb",MAe=ye({__name:"thumb",props:TAe,setup(t){const e=t,n=yt(nq),r=Ye("scrollbar");n||Da(EAe,"can not inject scrollbar context");const a=B(),i=B(),o=B({}),s=B(!1);let l=!1,u=!1,c=_n?document.onselectstart:null;const f=U(()=>tq[e.vertical?"vertical":"horizontal"]),d=U(()=>CAe({size:e.size,move:e.move,bar:f.value})),h=U(()=>a.value[f.value.offset]**2/n.wrapElement[f.value.scrollSize]/e.ratio/i.value[f.value.offset]),p=_=>{var x;if(_.stopPropagation(),_.ctrlKey||[1,2].includes(_.button))return;(x=window.getSelection())==null||x.removeAllRanges(),g(_);const T=_.currentTarget;T&&(o.value[f.value.axis]=T[f.value.offset]-(_[f.value.client]-T.getBoundingClientRect()[f.value.direction]))},v=_=>{if(!i.value||!a.value||!n.wrapElement)return;const x=Math.abs(_.target.getBoundingClientRect()[f.value.direction]-_[f.value.client]),T=i.value[f.value.offset]/2,M=(x-T)*100*h.value/a.value[f.value.offset];n.wrapElement[f.value.scroll]=M*n.wrapElement[f.value.scrollSize]/100},g=_=>{_.stopImmediatePropagation(),l=!0,document.addEventListener("mousemove",y),document.addEventListener("mouseup",m),c=document.onselectstart,document.onselectstart=()=>!1},y=_=>{if(!a.value||!i.value||l===!1)return;const x=o.value[f.value.axis];if(!x)return;const T=(a.value.getBoundingClientRect()[f.value.direction]-_[f.value.client])*-1,M=i.value[f.value.offset]-x,E=(T-M)*100*h.value/a.value[f.value.offset];n.wrapElement[f.value.scroll]=E*n.wrapElement[f.value.scrollSize]/100},m=()=>{l=!1,o.value[f.value.axis]=0,document.removeEventListener("mousemove",y),document.removeEventListener("mouseup",m),C(),u&&(s.value=!1)},S=()=>{u=!1,s.value=!!e.size},w=()=>{u=!0,s.value=l};Sr(()=>{C(),document.removeEventListener("mouseup",m)});const C=()=>{document.onselectstart!==c&&(document.onselectstart=c)};return Or(Wr(n,"scrollbarElement"),"mousemove",S),Or(Wr(n,"scrollbarElement"),"mouseleave",w),(_,x)=>(G(),Ee(da,{name:b(r).b("fade"),persisted:""},{default:j(()=>[Ft(R("div",{ref_key:"instance",ref:a,class:Y([b(r).e("bar"),b(r).is(b(f).key)]),onMousedown:v},[R("div",{ref_key:"thumb",ref:i,class:Y(b(r).e("thumb")),style:Et(b(d)),onMousedown:p},null,38)],34),[[cn,_.always||s.value]])]),_:1},8,["name"]))}});var y5=tt(MAe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/thumb.vue"]]);const DAe=nt({always:{type:Boolean,default:!0},width:String,height:String,ratioX:{type:Number,default:1},ratioY:{type:Number,default:1}}),AAe=ye({__name:"bar",props:DAe,setup(t,{expose:e}){const n=t,r=B(0),a=B(0);return e({handleScroll:o=>{if(o){const s=o.offsetHeight-Gv,l=o.offsetWidth-Gv;a.value=o.scrollTop*100/s*n.ratioY,r.value=o.scrollLeft*100/l*n.ratioX}}}),(o,s)=>(G(),re(Ct,null,[N(y5,{move:r.value,ratio:o.ratioX,size:o.width,always:o.always},null,8,["move","ratio","size","always"]),N(y5,{move:a.value,ratio:o.ratioY,size:o.height,vertical:"",always:o.always},null,8,["move","ratio","size","always"])],64))}});var kAe=tt(AAe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/bar.vue"]]);const RAe=nt({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:{type:Boolean,default:!1},wrapStyle:{type:ke([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}}),LAe={scroll:({scrollTop:t,scrollLeft:e})=>[t,e].every(Pt)},OAe="ElScrollbar",VAe=ye({name:OAe}),NAe=ye({...VAe,props:RAe,emits:LAe,setup(t,{expose:e,emit:n}){const r=t,a=Ye("scrollbar");let i,o;const s=B(),l=B(),u=B(),c=B("0"),f=B("0"),d=B(),h=B(1),p=B(1),v=U(()=>{const x={};return r.height&&(x.height=la(r.height)),r.maxHeight&&(x.maxHeight=la(r.maxHeight)),[r.wrapStyle,x]}),g=U(()=>[r.wrapClass,a.e("wrap"),{[a.em("wrap","hidden-default")]:!r.native}]),y=U(()=>[a.e("view"),r.viewClass]),m=()=>{var x;l.value&&((x=d.value)==null||x.handleScroll(l.value),n("scroll",{scrollTop:l.value.scrollTop,scrollLeft:l.value.scrollLeft}))};function S(x,T){un(x)?l.value.scrollTo(x):Pt(x)&&Pt(T)&&l.value.scrollTo(x,T)}const w=x=>{Pt(x)&&(l.value.scrollTop=x)},C=x=>{Pt(x)&&(l.value.scrollLeft=x)},_=()=>{if(!l.value)return;const x=l.value.offsetHeight-Gv,T=l.value.offsetWidth-Gv,M=x**2/l.value.scrollHeight,E=T**2/l.value.scrollWidth,A=Math.max(M,r.minSize),k=Math.max(E,r.minSize);h.value=M/(x-M)/(A/(x-A)),p.value=E/(T-E)/(k/(T-k)),f.value=A+Gv<x?`${A}px`:"",c.value=k+Gv<T?`${k}px`:""};return Ke(()=>r.noresize,x=>{x?(i==null||i(),o==null||o()):({stop:i}=Vi(u,_),o=Or("resize",_))},{immediate:!0}),Ke(()=>[r.maxHeight,r.height],()=>{r.native||xt(()=>{var x;_(),l.value&&((x=d.value)==null||x.handleScroll(l.value))})}),fn(nq,Vn({scrollbarElement:s,wrapElement:l})),Ut(()=>{r.native||xt(()=>{_()})}),bc(()=>_()),e({wrapRef:l,update:_,scrollTo:S,setScrollTop:w,setScrollLeft:C,handleScroll:m}),(x,T)=>(G(),re("div",{ref_key:"scrollbarRef",ref:s,class:Y(b(a).b())},[R("div",{ref_key:"wrapRef",ref:l,class:Y(b(g)),style:Et(b(v)),onScroll:m},[(G(),Ee(on(x.tag),{ref_key:"resizeRef",ref:u,class:Y(b(y)),style:Et(x.viewStyle)},{default:j(()=>[Ge(x.$slots,"default")]),_:3},8,["class","style"]))],38),x.native?_e("v-if",!0):(G(),Ee(kAe,{key:0,ref_key:"barRef",ref:d,height:f.value,width:c.value,always:x.always,"ratio-x":p.value,"ratio-y":h.value},null,8,["height","width","always","ratio-x","ratio-y"]))],2))}});var IAe=tt(NAe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/scrollbar.vue"]]);const xc=tn(IAe),iV=Symbol("popper"),rq=Symbol("popperContent"),BAe=["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],aq=nt({role:{type:String,values:BAe,default:"tooltip"}}),$Ae=ye({name:"ElPopper",inheritAttrs:!1}),PAe=ye({...$Ae,props:aq,setup(t,{expose:e}){const n=t,r=B(),a=B(),i=B(),o=B(),s=U(()=>n.role),l={triggerRef:r,popperInstanceRef:a,contentRef:i,referenceRef:o,role:s};return e(l),fn(iV,l),(u,c)=>Ge(u.$slots,"default")}});var FAe=tt(PAe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/popper.vue"]]);const iq=nt({arrowOffset:{type:Number,default:5}}),zAe=ye({name:"ElPopperArrow",inheritAttrs:!1}),UAe=ye({...zAe,props:iq,setup(t,{expose:e}){const n=t,r=Ye("popper"),{arrowOffset:a,arrowRef:i,arrowStyle:o}=yt(rq,void 0);return Ke(()=>n.arrowOffset,s=>{a.value=s}),Sr(()=>{i.value=void 0}),e({arrowRef:i}),(s,l)=>(G(),re("span",{ref_key:"arrowRef",ref:i,class:Y(b(r).e("arrow")),style:Et(b(o)),"data-popper-arrow":""},null,6))}});var GAe=tt(UAe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/arrow.vue"]]);const HAe="ElOnlyChild",oq=ye({name:HAe,setup(t,{slots:e,attrs:n}){var r;const a=yt(NX),i=mMe((r=a==null?void 0:a.setForwardRef)!=null?r:Qn);return()=>{var o;const s=(o=e.default)==null?void 0:o.call(e,n);if(!s||s.length>1)return null;const l=sq(s);return l?Ft(oc(l,n),[[i]]):null}}});function sq(t){if(!t)return null;const e=t;for(const n of e){if(un(n))switch(n.type){case Qi:continue;case h0:case"svg":return m5(n);case Ct:return sq(n.children);default:return n}return m5(n)}return null}function m5(t){const e=Ye("only-child");return N("span",{class:e.e("content")},[t])}const lq=nt({virtualRef:{type:ke(Object)},virtualTriggering:Boolean,onMouseenter:{type:ke(Function)},onMouseleave:{type:ke(Function)},onClick:{type:ke(Function)},onKeydown:{type:ke(Function)},onFocus:{type:ke(Function)},onBlur:{type:ke(Function)},onContextmenu:{type:ke(Function)},id:String,open:Boolean}),WAe=ye({name:"ElPopperTrigger",inheritAttrs:!1}),jAe=ye({...WAe,props:lq,setup(t,{expose:e}){const n=t,{role:r,triggerRef:a}=yt(iV,void 0);yMe(a);const i=U(()=>s.value?n.id:void 0),o=U(()=>{if(r&&r.value==="tooltip")return n.open&&n.id?n.id:void 0}),s=U(()=>{if(r&&r.value!=="tooltip")return r.value}),l=U(()=>s.value?`${n.open}`:void 0);let u;return Ut(()=>{Ke(()=>n.virtualRef,c=>{c&&(a.value=Po(c))},{immediate:!0}),Ke(a,(c,f)=>{u==null||u(),u=void 0,xs(c)&&(["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"].forEach(d=>{var h;const p=n[d];p&&(c.addEventListener(d.slice(2).toLowerCase(),p),(h=f==null?void 0:f.removeEventListener)==null||h.call(f,d.slice(2).toLowerCase(),p))}),u=Ke([i,o,s,l],d=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((h,p)=>{Ta(d[p])?c.removeAttribute(h):c.setAttribute(h,d[p])})},{immediate:!0})),xs(f)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(d=>f.removeAttribute(d))},{immediate:!0})}),Sr(()=>{u==null||u(),u=void 0}),e({triggerRef:a}),(c,f)=>c.virtualTriggering?_e("v-if",!0):(G(),Ee(b(oq),an({key:0},c.$attrs,{"aria-controls":b(i),"aria-describedby":b(o),"aria-expanded":b(l),"aria-haspopup":b(s)}),{default:j(()=>[Ge(c.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var KAe=tt(jAe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/trigger.vue"]]);const EM="focus-trap.focus-after-trapped",MM="focus-trap.focus-after-released",YAe="focus-trap.focusout-prevented",b5={cancelable:!0,bubbles:!1},XAe={cancelable:!0,bubbles:!1},S5="focusAfterTrapped",w5="focusAfterReleased",oV=Symbol("elFocusTrap"),sV=B(),AT=B(0),lV=B(0);let FS=0;const uq=t=>{const e=[],n=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const a=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||a?NodeFilter.FILTER_SKIP:r.tabIndex>=0||r===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)e.push(n.currentNode);return e},x5=(t,e)=>{for(const n of t)if(!qAe(n,e))return n},qAe=(t,e)=>{if(getComputedStyle(t).visibility==="hidden")return!0;for(;t;){if(e&&t===e)return!1;if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1},ZAe=t=>{const e=uq(t),n=x5(e,t),r=x5(e.reverse(),t);return[n,r]},QAe=t=>t instanceof HTMLInputElement&&"select"in t,Qc=(t,e)=>{if(t&&t.focus){const n=document.activeElement;t.focus({preventScroll:!0}),lV.value=window.performance.now(),t!==n&&QAe(t)&&e&&t.select()}};function _5(t,e){const n=[...t],r=t.indexOf(e);return r!==-1&&n.splice(r,1),n}const JAe=()=>{let t=[];return{push:r=>{const a=t[0];a&&r!==a&&a.pause(),t=_5(t,r),t.unshift(r)},remove:r=>{var a,i;t=_5(t,r),(i=(a=t[0])==null?void 0:a.resume)==null||i.call(a)}}},eke=(t,e=!1)=>{const n=document.activeElement;for(const r of t)if(Qc(r,e),document.activeElement!==n)return},C5=JAe(),tke=()=>AT.value>lV.value,zS=()=>{sV.value="pointer",AT.value=window.performance.now()},T5=()=>{sV.value="keyboard",AT.value=window.performance.now()},nke=()=>(Ut(()=>{FS===0&&(document.addEventListener("mousedown",zS),document.addEventListener("touchstart",zS),document.addEventListener("keydown",T5)),FS++}),Sr(()=>{FS--,FS<=0&&(document.removeEventListener("mousedown",zS),document.removeEventListener("touchstart",zS),document.removeEventListener("keydown",T5))}),{focusReason:sV,lastUserFocusTimestamp:AT,lastAutomatedFocusTimestamp:lV}),US=t=>new CustomEvent(YAe,{...XAe,detail:t}),rke=ye({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[S5,w5,"focusin","focusout","focusout-prevented","release-requested"],setup(t,{emit:e}){const n=B();let r,a;const{focusReason:i}=nke();hMe(p=>{t.trapped&&!o.paused&&e("release-requested",p)});const o={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},s=p=>{if(!t.loop&&!t.trapped||o.paused)return;const{key:v,altKey:g,ctrlKey:y,metaKey:m,currentTarget:S,shiftKey:w}=p,{loop:C}=t,_=v===Dt.tab&&!g&&!y&&!m,x=document.activeElement;if(_&&x){const T=S,[M,E]=ZAe(T);if(M&&E){if(!w&&x===E){const k=US({focusReason:i.value});e("focusout-prevented",k),k.defaultPrevented||(p.preventDefault(),C&&Qc(M,!0))}else if(w&&[M,T].includes(x)){const k=US({focusReason:i.value});e("focusout-prevented",k),k.defaultPrevented||(p.preventDefault(),C&&Qc(E,!0))}}else if(x===T){const k=US({focusReason:i.value});e("focusout-prevented",k),k.defaultPrevented||p.preventDefault()}}};fn(oV,{focusTrapRef:n,onKeydown:s}),Ke(()=>t.focusTrapEl,p=>{p&&(n.value=p)},{immediate:!0}),Ke([n],([p],[v])=>{p&&(p.addEventListener("keydown",s),p.addEventListener("focusin",c),p.addEventListener("focusout",f)),v&&(v.removeEventListener("keydown",s),v.removeEventListener("focusin",c),v.removeEventListener("focusout",f))});const l=p=>{e(S5,p)},u=p=>e(w5,p),c=p=>{const v=b(n);if(!v)return;const g=p.target,y=p.relatedTarget,m=g&&v.contains(g);t.trapped||y&&v.contains(y)||(r=y),m&&e("focusin",p),!o.paused&&t.trapped&&(m?a=g:Qc(a,!0))},f=p=>{const v=b(n);if(!(o.paused||!v))if(t.trapped){const g=p.relatedTarget;!Ta(g)&&!v.contains(g)&&setTimeout(()=>{if(!o.paused&&t.trapped){const y=US({focusReason:i.value});e("focusout-prevented",y),y.defaultPrevented||Qc(a,!0)}},0)}else{const g=p.target;g&&v.contains(g)||e("focusout",p)}};async function d(){await xt();const p=b(n);if(p){C5.push(o);const v=p.contains(document.activeElement)?r:document.activeElement;if(r=v,!p.contains(v)){const y=new Event(EM,b5);p.addEventListener(EM,l),p.dispatchEvent(y),y.defaultPrevented||xt(()=>{let m=t.focusStartEl;Ht(m)||(Qc(m),document.activeElement!==m&&(m="first")),m==="first"&&eke(uq(p),!0),(document.activeElement===v||m==="container")&&Qc(p)})}}}function h(){const p=b(n);if(p){p.removeEventListener(EM,l);const v=new CustomEvent(MM,{...b5,detail:{focusReason:i.value}});p.addEventListener(MM,u),p.dispatchEvent(v),!v.defaultPrevented&&(i.value=="keyboard"||!tke()||p.contains(document.activeElement))&&Qc(r??document.body),p.removeEventListener(MM,u),C5.remove(o)}}return Ut(()=>{t.trapped&&d(),Ke(()=>t.trapped,p=>{p?d():h()})}),Sr(()=>{t.trapped&&h()}),{onKeydown:s}}});function ake(t,e,n,r,a,i){return Ge(t.$slots,"default",{handleKeydown:t.onKeydown})}var kT=tt(rke,[["render",ake],["__file","/home/runner/work/element-plus/element-plus/packages/components/focus-trap/src/focus-trap.vue"]]);const ike=["fixed","absolute"],oke=nt({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:ke(Array),default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:Lp,default:"bottom"},popperOptions:{type:ke(Object),default:()=>({})},strategy:{type:String,values:ike,default:"absolute"}}),cq=nt({...oke,id:String,style:{type:ke([String,Array,Object])},className:{type:ke([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:ke([String,Array,Object])},popperStyle:{type:ke([String,Array,Object])},referenceEl:{type:ke(Object)},triggerTargetEl:{type:ke(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},ariaLabel:{type:String,default:void 0},virtualTriggering:Boolean,zIndex:Number}),ske={mouseenter:t=>t instanceof MouseEvent,mouseleave:t=>t instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},lke=(t,e=[])=>{const{placement:n,strategy:r,popperOptions:a}=t,i={placement:n,strategy:r,...a,modifiers:[...cke(t),...e]};return fke(i,a==null?void 0:a.modifiers),i},uke=t=>{if(_n)return Po(t)};function cke(t){const{offset:e,gpuAcceleration:n,fallbackPlacements:r}=t;return[{name:"offset",options:{offset:[0,e??12]}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5,fallbackPlacements:r}},{name:"computeStyles",options:{gpuAcceleration:n}}]}function fke(t,e){e&&(t.modifiers=[...t.modifiers,...e??[]])}const dke=0,hke=t=>{const{popperInstanceRef:e,contentRef:n,triggerRef:r,role:a}=yt(iV,void 0),i=B(),o=B(),s=U(()=>({name:"eventListeners",enabled:!!t.visible})),l=U(()=>{var y;const m=b(i),S=(y=b(o))!=null?y:dke;return{name:"arrow",enabled:!oxe(m),options:{element:m,padding:S}}}),u=U(()=>({onFirstUpdate:()=>{p()},...lke(t,[b(l),b(s)])})),c=U(()=>uke(t.referenceEl)||b(r)),{attributes:f,state:d,styles:h,update:p,forceUpdate:v,instanceRef:g}=uMe(c,n,u);return Ke(g,y=>e.value=y),Ut(()=>{Ke(()=>{var y;return(y=b(c))==null?void 0:y.getBoundingClientRect()},()=>{p()})}),{attributes:f,arrowRef:i,contentRef:n,instanceRef:g,state:d,styles:h,role:a,forceUpdate:v,update:p}},pke=(t,{attributes:e,styles:n,role:r})=>{const{nextZIndex:a}=m0(),i=Ye("popper"),o=U(()=>b(e).popper),s=B(t.zIndex||a()),l=U(()=>[i.b(),i.is("pure",t.pure),i.is(t.effect),t.popperClass]),u=U(()=>[{zIndex:b(s)},b(n).popper,t.popperStyle||{}]),c=U(()=>r.value==="dialog"?"false":void 0),f=U(()=>b(n).arrow||{});return{ariaModal:c,arrowStyle:f,contentAttrs:o,contentClass:l,contentStyle:u,contentZIndex:s,updateZIndex:()=>{s.value=t.zIndex||a()}}},vke=(t,e)=>{const n=B(!1),r=B();return{focusStartRef:r,trapped:n,onFocusAfterReleased:u=>{var c;((c=u.detail)==null?void 0:c.focusReason)!=="pointer"&&(r.value="first",e("blur"))},onFocusAfterTrapped:()=>{e("focus")},onFocusInTrap:u=>{t.visible&&!n.value&&(u.target&&(r.value=u.target),n.value=!0)},onFocusoutPrevented:u=>{t.trapping||(u.detail.focusReason==="pointer"&&u.preventDefault(),n.value=!1)},onReleaseRequested:()=>{n.value=!1,e("close")}}},gke=ye({name:"ElPopperContent"}),yke=ye({...gke,props:cq,emits:ske,setup(t,{expose:e,emit:n}){const r=t,{focusStartRef:a,trapped:i,onFocusAfterReleased:o,onFocusAfterTrapped:s,onFocusInTrap:l,onFocusoutPrevented:u,onReleaseRequested:c}=vke(r,n),{attributes:f,arrowRef:d,contentRef:h,styles:p,instanceRef:v,role:g,update:y}=hke(r),{ariaModal:m,arrowStyle:S,contentAttrs:w,contentClass:C,contentStyle:_,updateZIndex:x}=pke(r,{styles:p,attributes:f,role:g}),T=yt(pu,void 0),M=B();fn(rq,{arrowStyle:S,arrowRef:d,arrowOffset:M}),T&&(T.addInputId||T.removeInputId)&&fn(pu,{...T,addInputId:Qn,removeInputId:Qn});let E;const A=(L=!0)=>{y(),L&&x()},k=()=>{A(!1),r.visible&&r.focusOnShow?i.value=!0:r.visible===!1&&(i.value=!1)};return Ut(()=>{Ke(()=>r.triggerTargetEl,(L,I)=>{E==null||E(),E=void 0;const P=b(L||h.value),F=b(I||h.value);xs(P)&&(E=Ke([g,()=>r.ariaLabel,m,()=>r.id],$=>{["role","aria-label","aria-modal","id"].forEach((W,V)=>{Ta($[V])?P.removeAttribute(W):P.setAttribute(W,$[V])})},{immediate:!0})),F!==P&&xs(F)&&["role","aria-label","aria-modal","id"].forEach($=>{F.removeAttribute($)})},{immediate:!0}),Ke(()=>r.visible,k,{immediate:!0})}),Sr(()=>{E==null||E(),E=void 0}),e({popperContentRef:h,popperInstanceRef:v,updatePopper:A,contentStyle:_}),(L,I)=>(G(),re("div",an({ref_key:"contentRef",ref:h},b(w),{style:b(_),class:b(C),tabindex:"-1",onMouseenter:I[0]||(I[0]=P=>L.$emit("mouseenter",P)),onMouseleave:I[1]||(I[1]=P=>L.$emit("mouseleave",P))}),[N(b(kT),{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:j(()=>[Ge(L.$slots,"default")]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16))}});var mke=tt(yke,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/content.vue"]]);const fq=tn(FAe),RT=Symbol("elTooltip"),Qa=nt({...gMe,...cq,appendTo:{type:ke([String,Object])},content:{type:String,default:""},rawContent:{type:Boolean,default:!1},persistent:Boolean,ariaLabel:String,visible:{type:ke(Boolean),default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean}),C1=nt({...lq,disabled:Boolean,trigger:{type:ke([String,Array]),default:"hover"},triggerKeys:{type:ke(Array),default:()=>[Dt.enter,Dt.space]}}),{useModelToggleProps:bke,useModelToggleEmits:Ske,useModelToggle:wke}=mX("visible"),xke=nt({...aq,...bke,...Qa,...C1,...iq,showArrow:{type:Boolean,default:!0}}),_ke=[...Ske,"before-show","before-hide","show","hide","open","close"],Cke=(t,e)=>gt(t)?t.includes(e):t===e,Qp=(t,e,n)=>r=>{Cke(b(t),e)&&n(r)},Tke=ye({name:"ElTooltipTrigger"}),Eke=ye({...Tke,props:C1,setup(t,{expose:e}){const n=t,r=Ye("tooltip"),{controlled:a,id:i,open:o,onOpen:s,onClose:l,onToggle:u}=yt(RT,void 0),c=B(null),f=()=>{if(b(a)||n.disabled)return!0},d=Wr(n,"trigger"),h=Zr(f,Qp(d,"hover",s)),p=Zr(f,Qp(d,"hover",l)),v=Zr(f,Qp(d,"click",w=>{w.button===0&&u(w)})),g=Zr(f,Qp(d,"focus",s)),y=Zr(f,Qp(d,"focus",l)),m=Zr(f,Qp(d,"contextmenu",w=>{w.preventDefault(),u(w)})),S=Zr(f,w=>{const{code:C}=w;n.triggerKeys.includes(C)&&(w.preventDefault(),u(w))});return e({triggerRef:c}),(w,C)=>(G(),Ee(b(KAe),{id:b(i),"virtual-ref":w.virtualRef,open:b(o),"virtual-triggering":w.virtualTriggering,class:Y(b(r).e("trigger")),onBlur:b(y),onClick:b(v),onContextmenu:b(m),onFocus:b(g),onMouseenter:b(h),onMouseleave:b(p),onKeydown:b(S)},{default:j(()=>[Ge(w.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}});var Mke=tt(Eke,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/trigger.vue"]]);const Dke=ye({name:"ElTooltipContent",inheritAttrs:!1}),Ake=ye({...Dke,props:Qa,setup(t,{expose:e}){const n=t,{selector:r}=OX(),a=Ye("tooltip"),i=B(null),o=B(!1),{controlled:s,id:l,open:u,trigger:c,onClose:f,onOpen:d,onShow:h,onHide:p,onBeforeShow:v,onBeforeHide:g}=yt(RT,void 0),y=U(()=>n.transition||`${a.namespace.value}-fade-in-linear`),m=U(()=>n.persistent);Sr(()=>{o.value=!0});const S=U(()=>b(m)?!0:b(u)),w=U(()=>n.disabled?!1:b(u)),C=U(()=>n.appendTo||r.value),_=U(()=>{var $;return($=n.style)!=null?$:{}}),x=U(()=>!b(u)),T=()=>{p()},M=()=>{if(b(s))return!0},E=Zr(M,()=>{n.enterable&&b(c)==="hover"&&d()}),A=Zr(M,()=>{b(c)==="hover"&&f()}),k=()=>{var $,W;(W=($=i.value)==null?void 0:$.updatePopper)==null||W.call($),v==null||v()},L=()=>{g==null||g()},I=()=>{h(),F=m4(U(()=>{var $;return($=i.value)==null?void 0:$.popperContentRef}),()=>{if(b(s))return;b(c)!=="hover"&&f()})},P=()=>{n.virtualTriggering||f()};let F;return Ke(()=>b(u),$=>{$||F==null||F()},{flush:"post"}),Ke(()=>n.content,()=>{var $,W;(W=($=i.value)==null?void 0:$.updatePopper)==null||W.call($)}),e({contentRef:i}),($,W)=>(G(),Ee(xb,{disabled:!$.teleported,to:b(C)},[N(da,{name:b(y),onAfterLeave:T,onBeforeEnter:k,onAfterEnter:I,onBeforeLeave:L},{default:j(()=>[b(S)?Ft((G(),Ee(b(mke),an({key:0,id:b(l),ref_key:"contentRef",ref:i},$.$attrs,{"aria-label":$.ariaLabel,"aria-hidden":b(x),"boundaries-padding":$.boundariesPadding,"fallback-placements":$.fallbackPlacements,"gpu-acceleration":$.gpuAcceleration,offset:$.offset,placement:$.placement,"popper-options":$.popperOptions,strategy:$.strategy,effect:$.effect,enterable:$.enterable,pure:$.pure,"popper-class":$.popperClass,"popper-style":[$.popperStyle,b(_)],"reference-el":$.referenceEl,"trigger-target-el":$.triggerTargetEl,visible:b(w),"z-index":$.zIndex,onMouseenter:b(E),onMouseleave:b(A),onBlur:P,onClose:b(f)}),{default:j(()=>[o.value?_e("v-if",!0):Ge($.$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"])),[[cn,b(w)]]):_e("v-if",!0)]),_:3},8,["name"])],8,["disabled","to"]))}});var kke=tt(Ake,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/content.vue"]]);const Rke=["innerHTML"],Lke={key:1},Oke=ye({name:"ElTooltip"}),Vke=ye({...Oke,props:xke,emits:_ke,setup(t,{expose:e,emit:n}){const r=t;vMe();const a=Ts(),i=B(),o=B(),s=()=>{var y;const m=b(i);m&&((y=m.popperInstanceRef)==null||y.update())},l=B(!1),u=B(),{show:c,hide:f,hasUpdateHandler:d}=wke({indicator:l,toggleReason:u}),{onOpen:h,onClose:p}=VX({showAfter:Wr(r,"showAfter"),hideAfter:Wr(r,"hideAfter"),autoClose:Wr(r,"autoClose"),open:c,close:f}),v=U(()=>Ea(r.visible)&&!d.value);fn(RT,{controlled:v,id:a,open:d0(l),trigger:Wr(r,"trigger"),onOpen:y=>{h(y)},onClose:y=>{p(y)},onToggle:y=>{b(l)?p(y):h(y)},onShow:()=>{n("show",u.value)},onHide:()=>{n("hide",u.value)},onBeforeShow:()=>{n("before-show",u.value)},onBeforeHide:()=>{n("before-hide",u.value)},updatePopper:s}),Ke(()=>r.disabled,y=>{y&&l.value&&(l.value=!1)});const g=y=>{var m,S;const w=(S=(m=o.value)==null?void 0:m.contentRef)==null?void 0:S.popperContentRef,C=(y==null?void 0:y.relatedTarget)||document.activeElement;return w&&w.contains(C)};return Zj(()=>l.value&&f()),e({popperRef:i,contentRef:o,isFocusInsideContent:g,updatePopper:s,onOpen:h,onClose:p,hide:f}),(y,m)=>(G(),Ee(b(fq),{ref_key:"popperRef",ref:i,role:y.role},{default:j(()=>[N(Mke,{disabled:y.disabled,trigger:y.trigger,"trigger-keys":y.triggerKeys,"virtual-ref":y.virtualRef,"virtual-triggering":y.virtualTriggering},{default:j(()=>[y.$slots.default?Ge(y.$slots,"default",{key:0}):_e("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),N(kke,{ref_key:"contentRef",ref:o,"aria-label":y.ariaLabel,"boundaries-padding":y.boundariesPadding,content:y.content,disabled:y.disabled,effect:y.effect,enterable:y.enterable,"fallback-placements":y.fallbackPlacements,"hide-after":y.hideAfter,"gpu-acceleration":y.gpuAcceleration,offset:y.offset,persistent:y.persistent,"popper-class":y.popperClass,"popper-style":y.popperStyle,placement:y.placement,"popper-options":y.popperOptions,pure:y.pure,"raw-content":y.rawContent,"reference-el":y.referenceEl,"trigger-target-el":y.triggerTargetEl,"show-after":y.showAfter,strategy:y.strategy,teleported:y.teleported,transition:y.transition,"virtual-triggering":y.virtualTriggering,"z-index":y.zIndex,"append-to":y.appendTo},{default:j(()=>[Ge(y.$slots,"content",{},()=>[y.rawContent?(G(),re("span",{key:0,innerHTML:y.content},null,8,Rke)):(G(),re("span",Lke,We(y.content),1))]),y.showArrow?(G(),Ee(b(GAe),{key:0,"arrow-offset":y.arrowOffset},null,8,["arrow-offset"])):_e("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 Nke=tt(Vke,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/tooltip.vue"]]);const io=tn(Nke),Ike=nt({valueKey:{type:String,default:"value"},modelValue:{type:[String,Number],default:""},debounce:{type:Number,default:300},placement:{type:ke(String),values:["top","top-start","top-end","bottom","bottom-start","bottom-end"],default:"bottom-start"},fetchSuggestions:{type:ke([Function,Array]),default:Qn},popperClass:{type:String,default:""},triggerOnFocus:{type:Boolean,default:!0},selectWhenUnmatched:{type:Boolean,default:!1},hideLoading:{type:Boolean,default:!1},label:{type:String},teleported:Qa.teleported,highlightFirstItem:{type:Boolean,default:!1},fitInputWidth:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},name:String}),Bke={[nn]:t=>Ht(t),[Ji]:t=>Ht(t),[Ar]:t=>Ht(t),focus:t=>t instanceof FocusEvent,blur:t=>t instanceof FocusEvent,clear:()=>!0,select:t=>un(t)},$ke=["aria-expanded","aria-owns"],Pke={key:0},Fke=["id","aria-selected","onClick"],dq="ElAutocomplete",zke=ye({name:dq,inheritAttrs:!1}),Uke=ye({...zke,props:Ike,emits:Bke,setup(t,{expose:e,emit:n}){const r=t,a=z4(),i=Dp(),o=Ro(),s=Ye("autocomplete"),l=B(),u=B(),c=B(),f=B();let d=!1,h=!1;const p=B([]),v=B(-1),g=B(""),y=B(!1),m=B(!1),S=B(!1),w=U(()=>s.b(String(_T()))),C=U(()=>i.style),_=U(()=>(p.value.length>0||S.value)&&y.value),x=U(()=>!r.hideLoading&&S.value),T=U(()=>l.value?Array.from(l.value.$el.querySelectorAll("input")):[]),M=()=>{_.value&&(g.value=`${l.value.$el.offsetWidth}px`)},E=()=>{v.value=-1},k=ao(async Q=>{if(m.value)return;const ce=se=>{S.value=!1,!m.value&&(gt(se)?(p.value=se,v.value=r.highlightFirstItem?0:-1):Da(dq,"autocomplete suggestions must be an array"))};if(S.value=!0,gt(r.fetchSuggestions))ce(r.fetchSuggestions);else{const se=await r.fetchSuggestions(Q,ce);gt(se)&&ce(se)}},r.debounce),L=Q=>{const ce=!!Q;if(n(Ji,Q),n(nn,Q),m.value=!1,y.value||(y.value=ce),!r.triggerOnFocus&&!Q){m.value=!0,p.value=[];return}k(Q)},I=Q=>{var ce;o.value||(((ce=Q.target)==null?void 0:ce.tagName)!=="INPUT"||T.value.includes(document.activeElement))&&(y.value=!0)},P=Q=>{n(Ar,Q)},F=Q=>{h?h=!1:(y.value=!0,n("focus",Q),r.triggerOnFocus&&!d&&k(String(r.modelValue)))},$=Q=>{setTimeout(()=>{var ce;if((ce=c.value)!=null&&ce.isFocusInsideContent()){h=!0;return}y.value&&K(),n("blur",Q)})},W=()=>{y.value=!1,n(nn,""),n("clear")},V=async()=>{_.value&&v.value>=0&&v.value<p.value.length?ge(p.value[v.value]):r.selectWhenUnmatched&&(n("select",{value:r.modelValue}),p.value=[],v.value=-1)},z=Q=>{_.value&&(Q.preventDefault(),Q.stopPropagation(),K())},K=()=>{y.value=!1},Z=()=>{var Q;(Q=l.value)==null||Q.focus()},oe=()=>{var Q;(Q=l.value)==null||Q.blur()},ge=async Q=>{n(Ji,Q[r.valueKey]),n(nn,Q[r.valueKey]),n("select",Q),p.value=[],v.value=-1},ie=Q=>{if(!_.value||S.value)return;if(Q<0){v.value=-1;return}Q>=p.value.length&&(Q=p.value.length-1);const ce=u.value.querySelector(`.${s.be("suggestion","wrap")}`),me=ce.querySelectorAll(`.${s.be("suggestion","list")} li`)[Q],ve=ce.scrollTop,{offsetTop:he,scrollHeight:ee}=me;he+ee>ve+ce.clientHeight&&(ce.scrollTop+=ee),he<ve&&(ce.scrollTop-=ee),v.value=Q,l.value.ref.setAttribute("aria-activedescendant",`${w.value}-item-${v.value}`)};return m4(f,()=>{_.value&&K()}),Ut(()=>{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-${v.value}`),d=l.value.ref.hasAttribute("readonly")}),e({highlightedIndex:v,activated:y,loading:S,inputRef:l,popperRef:c,suggestions:p,handleSelect:ge,handleKeyEnter:V,focus:Z,blur:oe,close:K,highlight:ie}),(Q,ce)=>(G(),Ee(b(io),{ref_key:"popperRef",ref:c,visible:b(_),placement:Q.placement,"fallback-placements":["bottom-start","top-start"],"popper-class":[b(s).e("popper"),Q.popperClass],teleported:Q.teleported,"gpu-acceleration":!1,pure:"","manual-mode":"",effect:"light",trigger:"click",transition:`${b(s).namespace.value}-zoom-in-top`,persistent:"",role:"listbox",onBeforeShow:M,onHide:E},{content:j(()=>[R("div",{ref_key:"regionRef",ref:u,class:Y([b(s).b("suggestion"),b(s).is("loading",b(x))]),style:Et({[Q.fitInputWidth?"width":"minWidth"]:g.value,outline:"none"}),role:"region"},[N(b(xc),{id:b(w),tag:"ul","wrap-class":b(s).be("suggestion","wrap"),"view-class":b(s).be("suggestion","list"),role:"listbox"},{default:j(()=>[b(x)?(G(),re("li",Pke,[N(b(_t),{class:Y(b(s).is("loading"))},{default:j(()=>[N(b(id))]),_:1},8,["class"])])):(G(!0),re(Ct,{key:1},dn(p.value,(se,me)=>(G(),re("li",{id:`${b(w)}-item-${me}`,key:me,class:Y({highlighted:v.value===me}),role:"option","aria-selected":v.value===me,onClick:ve=>ge(se)},[Ge(Q.$slots,"default",{item:se},()=>[Be(We(se[Q.valueKey]),1)])],10,Fke))),128))]),_:3},8,["id","wrap-class","view-class"])],6)]),default:j(()=>[R("div",{ref_key:"listboxRef",ref:f,class:Y([b(s).b(),Q.$attrs.class]),style:Et(b(C)),role:"combobox","aria-haspopup":"listbox","aria-expanded":b(_),"aria-owns":b(w)},[N(b(Ri),an({ref_key:"inputRef",ref:l},b(a),{clearable:Q.clearable,disabled:b(o),name:Q.name,"model-value":Q.modelValue,onInput:L,onChange:P,onFocus:F,onBlur:$,onClear:W,onKeydown:[ce[0]||(ce[0]=Tn(It(se=>ie(v.value-1),["prevent"]),["up"])),ce[1]||(ce[1]=Tn(It(se=>ie(v.value+1),["prevent"]),["down"])),Tn(V,["enter"]),Tn(K,["tab"]),Tn(z,["esc"])],onMousedown:I}),ic({_:2},[Q.$slots.prepend?{name:"prepend",fn:j(()=>[Ge(Q.$slots,"prepend")])}:void 0,Q.$slots.append?{name:"append",fn:j(()=>[Ge(Q.$slots,"append")])}:void 0,Q.$slots.prefix?{name:"prefix",fn:j(()=>[Ge(Q.$slots,"prefix")])}:void 0,Q.$slots.suffix?{name:"suffix",fn:j(()=>[Ge(Q.$slots,"suffix")])}:void 0]),1040,["clearable","disabled","name","model-value","onKeydown"])],14,$ke)]),_:3},8,["visible","placement","popper-class","teleported","transition"]))}});var Gke=tt(Uke,[["__file","/home/runner/work/element-plus/element-plus/packages/components/autocomplete/src/autocomplete.vue"]]);const Hke=tn(Gke),Wke=nt({size:{type:[Number,String],values:wu,default:"",validator:t=>Pt(t)},shape:{type:String,values:["circle","square"],default:"circle"},icon:{type:gr},src:{type:String,default:""},alt:String,srcSet:String,fit:{type:ke(String),default:"cover"}}),jke={error:t=>t instanceof Event},Kke=["src","alt","srcset"],Yke=ye({name:"ElAvatar"}),Xke=ye({...Yke,props:Wke,emits:jke,setup(t,{emit:e}){const n=t,r=Ye("avatar"),a=B(!1),i=U(()=>{const{size:u,icon:c,shape:f}=n,d=[r.b()];return Ht(u)&&d.push(r.m(u)),c&&d.push(r.m("icon")),f&&d.push(r.m(f)),d}),o=U(()=>{const{size:u}=n;return Pt(u)?r.cssVarBlock({size:la(u)||""}):void 0}),s=U(()=>({objectFit:n.fit}));Ke(()=>n.src,()=>a.value=!1);function l(u){a.value=!0,e("error",u)}return(u,c)=>(G(),re("span",{class:Y(b(i)),style:Et(b(o))},[(u.src||u.srcSet)&&!a.value?(G(),re("img",{key:0,src:u.src,alt:u.alt,srcset:u.srcSet,style:Et(b(s)),onError:l},null,44,Kke)):u.icon?(G(),Ee(b(_t),{key:1},{default:j(()=>[(G(),Ee(on(u.icon)))]),_:1})):Ge(u.$slots,"default",{key:2})],6))}});var qke=tt(Xke,[["__file","/home/runner/work/element-plus/element-plus/packages/components/avatar/src/avatar.vue"]]);const Zke=tn(qke),Qke={visibilityHeight:{type:Number,default:200},target:{type:String,default:""},right:{type:Number,default:40},bottom:{type:Number,default:40}},Jke={click:t=>t instanceof MouseEvent},eRe=(t,e,n)=>{const r=vr(),a=vr(),i=B(!1),o=()=>{r.value&&(i.value=r.value.scrollTop>=t.visibilityHeight)},s=u=>{var c;(c=r.value)==null||c.scrollTo({top:0,behavior:"smooth"}),e("click",u)},l=gY(o,300,!0);return Or(a,"scroll",l),Ut(()=>{var u;a.value=document,r.value=document.documentElement,t.target&&(r.value=(u=document.querySelector(t.target))!=null?u:void 0,r.value||Da(n,`target does not exist: ${t.target}`),a.value=r.value),o()}),{visible:i,handleClick:s}},hq="ElBacktop",tRe=ye({name:hq}),nRe=ye({...tRe,props:Qke,emits:Jke,setup(t,{emit:e}){const n=t,r=Ye("backtop"),{handleClick:a,visible:i}=eRe(n,e,hq),o=U(()=>({right:`${n.right}px`,bottom:`${n.bottom}px`}));return(s,l)=>(G(),Ee(da,{name:`${b(r).namespace.value}-fade-in`},{default:j(()=>[b(i)?(G(),re("div",{key:0,style:Et(b(o)),class:Y(b(r).b()),onClick:l[0]||(l[0]=It((...u)=>b(a)&&b(a)(...u),["stop"]))},[Ge(s.$slots,"default",{},()=>[N(b(_t),{class:Y(b(r).e("icon"))},{default:j(()=>[N(b(h_e))]),_:1},8,["class"])])],6)):_e("v-if",!0)]),_:3},8,["name"]))}});var rRe=tt(nRe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/backtop/src/backtop.vue"]]);const aRe=tn(rRe),iRe=nt({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"}}),oRe=["textContent"],sRe=ye({name:"ElBadge"}),lRe=ye({...sRe,props:iRe,setup(t,{expose:e}){const n=t,r=Ye("badge"),a=U(()=>n.isDot?"":Pt(n.value)&&Pt(n.max)?n.max<n.value?`${n.max}+`:`${n.value}`:`${n.value}`);return e({content:a}),(i,o)=>(G(),re("div",{class:Y(b(r).b())},[Ge(i.$slots,"default"),N(da,{name:`${b(r).namespace.value}-zoom-in-center`,persisted:""},{default:j(()=>[Ft(R("sup",{class:Y([b(r).e("content"),b(r).em("content",i.type),b(r).is("fixed",!!i.$slots.default),b(r).is("dot",i.isDot)]),textContent:We(b(a))},null,10,oRe),[[cn,!i.hidden&&(b(a)||i.isDot)]])]),_:1},8,["name"])],2))}});var uRe=tt(lRe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/badge/src/badge.vue"]]);const pq=tn(uRe),vq=Symbol("breadcrumbKey"),cRe=nt({separator:{type:String,default:"/"},separatorIcon:{type:gr}}),fRe=ye({name:"ElBreadcrumb"}),dRe=ye({...fRe,props:cRe,setup(t){const e=t,n=Ye("breadcrumb"),r=B();return fn(vq,e),Ut(()=>{const a=r.value.querySelectorAll(`.${n.e("item")}`);a.length&&a[a.length-1].setAttribute("aria-current","page")}),(a,i)=>(G(),re("div",{ref_key:"breadcrumb",ref:r,class:Y(b(n).b()),"aria-label":"Breadcrumb",role:"navigation"},[Ge(a.$slots,"default")],2))}});var hRe=tt(dRe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/breadcrumb/src/breadcrumb.vue"]]);const pRe=nt({to:{type:ke([String,Object]),default:""},replace:{type:Boolean,default:!1}}),vRe=ye({name:"ElBreadcrumbItem"}),gRe=ye({...vRe,props:pRe,setup(t){const e=t,n=Qt(),r=yt(vq,void 0),a=Ye("breadcrumb"),i=n.appContext.config.globalProperties.$router,o=B(),s=()=>{!e.to||!i||(e.replace?i.replace(e.to):i.push(e.to))};return(l,u)=>{var c,f;return G(),re("span",{class:Y(b(a).e("item"))},[R("span",{ref_key:"link",ref:o,class:Y([b(a).e("inner"),b(a).is("link",!!l.to)]),role:"link",onClick:s},[Ge(l.$slots,"default")],2),(c=b(r))!=null&&c.separatorIcon?(G(),Ee(b(_t),{key:0,class:Y(b(a).e("separator"))},{default:j(()=>[(G(),Ee(on(b(r).separatorIcon)))]),_:1},8,["class"])):(G(),re("span",{key:1,class:Y(b(a).e("separator")),role:"presentation"},We((f=b(r))==null?void 0:f.separator),3))],2)}}});var gq=tt(gRe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/breadcrumb/src/breadcrumb-item.vue"]]);const yRe=tn(hRe,{BreadcrumbItem:gq}),mRe=ta(gq),yq=Symbol("buttonGroupContextKey"),bRe=(t,e)=>{fu({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},U(()=>t.type==="text"));const n=yt(yq,void 0),r=MT("button"),{form:a}=uo(),i=Aa(U(()=>n==null?void 0:n.size)),o=Ro(),s=B(),l=wi(),u=U(()=>t.type||(n==null?void 0:n.type)||""),c=U(()=>{var p,v,g;return(g=(v=t.autoInsertSpace)!=null?v:(p=r.value)==null?void 0:p.autoInsertSpace)!=null?g:!1}),f=U(()=>t.tag==="button"?{ariaDisabled:o.value||t.loading,disabled:o.value||t.loading,autofocus:t.autofocus,type:t.nativeType}:{}),d=U(()=>{var p;const v=(p=l.default)==null?void 0:p.call(l);if(c.value&&(v==null?void 0:v.length)===1){const g=v[0];if((g==null?void 0:g.type)===h0){const y=g.children;return/^\p{Unified_Ideograph}{2}$/u.test(y.trim())}}return!1});return{_disabled:o,_size:i,_type:u,_ref:s,_props:f,shouldAddSpace:d,handleClick:p=>{t.nativeType==="reset"&&(a==null||a.resetFields()),e("click",p)}}},OR=["default","primary","success","warning","info","danger","text",""],SRe=["button","submit","reset"],VR=nt({size:yi,disabled:Boolean,type:{type:String,values:OR,default:""},icon:{type:gr},nativeType:{type:String,values:SRe,default:"button"},loading:Boolean,loadingIcon:{type:gr,default:()=>id},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:ke([String,Object]),default:"button"}}),wRe={click:t=>t instanceof MouseEvent};function vi(t,e){xRe(t)&&(t="100%");var n=_Re(t);return t=e===360?t:Math.min(e,Math.max(0,parseFloat(t))),n&&(t=parseInt(String(t*e),10)/100),Math.abs(t-e)<1e-6?1:(e===360?t=(t<0?t%e+e:t%e)/parseFloat(String(e)):t=t%e/parseFloat(String(e)),t)}function GS(t){return Math.min(1,Math.max(0,t))}function xRe(t){return typeof t=="string"&&t.indexOf(".")!==-1&&parseFloat(t)===1}function _Re(t){return typeof t=="string"&&t.indexOf("%")!==-1}function mq(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function HS(t){return t<=1?"".concat(Number(t)*100,"%"):t}function Lh(t){return t.length===1?"0"+t:String(t)}function CRe(t,e,n){return{r:vi(t,255)*255,g:vi(e,255)*255,b:vi(n,255)*255}}function E5(t,e,n){t=vi(t,255),e=vi(e,255),n=vi(n,255);var r=Math.max(t,e,n),a=Math.min(t,e,n),i=0,o=0,s=(r+a)/2;if(r===a)o=0,i=0;else{var l=r-a;switch(o=s>.5?l/(2-r-a):l/(r+a),r){case t:i=(e-n)/l+(e<n?6:0);break;case e:i=(n-t)/l+2;break;case n:i=(t-e)/l+4;break}i/=6}return{h:i,s:o,l:s}}function DM(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*(6*n):n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function TRe(t,e,n){var r,a,i;if(t=vi(t,360),e=vi(e,100),n=vi(n,100),e===0)a=n,i=n,r=n;else{var o=n<.5?n*(1+e):n+e-n*e,s=2*n-o;r=DM(s,o,t+1/3),a=DM(s,o,t),i=DM(s,o,t-1/3)}return{r:r*255,g:a*255,b:i*255}}function M5(t,e,n){t=vi(t,255),e=vi(e,255),n=vi(n,255);var r=Math.max(t,e,n),a=Math.min(t,e,n),i=0,o=r,s=r-a,l=r===0?0:s/r;if(r===a)i=0;else{switch(r){case t:i=(e-n)/s+(e<n?6:0);break;case e:i=(n-t)/s+2;break;case n:i=(t-e)/s+4;break}i/=6}return{h:i,s:l,v:o}}function ERe(t,e,n){t=vi(t,360)*6,e=vi(e,100),n=vi(n,100);var r=Math.floor(t),a=t-r,i=n*(1-e),o=n*(1-a*e),s=n*(1-(1-a)*e),l=r%6,u=[n,o,i,i,s,n][l],c=[s,n,n,o,i,i][l],f=[i,i,s,n,n,o][l];return{r:u*255,g:c*255,b:f*255}}function D5(t,e,n,r){var a=[Lh(Math.round(t).toString(16)),Lh(Math.round(e).toString(16)),Lh(Math.round(n).toString(16))];return r&&a[0].startsWith(a[0].charAt(1))&&a[1].startsWith(a[1].charAt(1))&&a[2].startsWith(a[2].charAt(1))?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0):a.join("")}function MRe(t,e,n,r,a){var i=[Lh(Math.round(t).toString(16)),Lh(Math.round(e).toString(16)),Lh(Math.round(n).toString(16)),Lh(DRe(r))];return a&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))&&i[3].startsWith(i[3].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}function DRe(t){return Math.round(parseFloat(t)*255).toString(16)}function A5(t){return No(t)/255}function No(t){return parseInt(t,16)}function ARe(t){return{r:t>>16,g:(t&65280)>>8,b:t&255}}var NR={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 kRe(t){var e={r:0,g:0,b:0},n=1,r=null,a=null,i=null,o=!1,s=!1;return typeof t=="string"&&(t=ORe(t)),typeof t=="object"&&(ku(t.r)&&ku(t.g)&&ku(t.b)?(e=CRe(t.r,t.g,t.b),o=!0,s=String(t.r).substr(-1)==="%"?"prgb":"rgb"):ku(t.h)&&ku(t.s)&&ku(t.v)?(r=HS(t.s),a=HS(t.v),e=ERe(t.h,r,a),o=!0,s="hsv"):ku(t.h)&&ku(t.s)&&ku(t.l)&&(r=HS(t.s),i=HS(t.l),e=TRe(t.h,r,i),o=!0,s="hsl"),Object.prototype.hasOwnProperty.call(t,"a")&&(n=t.a)),n=mq(n),{ok:o,format:t.format||s,r:Math.min(255,Math.max(e.r,0)),g:Math.min(255,Math.max(e.g,0)),b:Math.min(255,Math.max(e.b,0)),a:n}}var RRe="[-\\+]?\\d+%?",LRe="[-\\+]?\\d*\\.\\d+%?",yf="(?:".concat(LRe,")|(?:").concat(RRe,")"),AM="[\\s|\\(]+(".concat(yf,")[,|\\s]+(").concat(yf,")[,|\\s]+(").concat(yf,")\\s*\\)?"),kM="[\\s|\\(]+(".concat(yf,")[,|\\s]+(").concat(yf,")[,|\\s]+(").concat(yf,")[,|\\s]+(").concat(yf,")\\s*\\)?"),Us={CSS_UNIT:new RegExp(yf),rgb:new RegExp("rgb"+AM),rgba:new RegExp("rgba"+kM),hsl:new RegExp("hsl"+AM),hsla:new RegExp("hsla"+kM),hsv:new RegExp("hsv"+AM),hsva:new RegExp("hsva"+kM),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 ORe(t){if(t=t.trim().toLowerCase(),t.length===0)return!1;var e=!1;if(NR[t])t=NR[t],e=!0;else if(t==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=Us.rgb.exec(t);return n?{r:n[1],g:n[2],b:n[3]}:(n=Us.rgba.exec(t),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Us.hsl.exec(t),n?{h:n[1],s:n[2],l:n[3]}:(n=Us.hsla.exec(t),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Us.hsv.exec(t),n?{h:n[1],s:n[2],v:n[3]}:(n=Us.hsva.exec(t),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Us.hex8.exec(t),n?{r:No(n[1]),g:No(n[2]),b:No(n[3]),a:A5(n[4]),format:e?"name":"hex8"}:(n=Us.hex6.exec(t),n?{r:No(n[1]),g:No(n[2]),b:No(n[3]),format:e?"name":"hex"}:(n=Us.hex4.exec(t),n?{r:No(n[1]+n[1]),g:No(n[2]+n[2]),b:No(n[3]+n[3]),a:A5(n[4]+n[4]),format:e?"name":"hex8"}:(n=Us.hex3.exec(t),n?{r:No(n[1]+n[1]),g:No(n[2]+n[2]),b:No(n[3]+n[3]),format:e?"name":"hex"}:!1)))))))))}function ku(t){return!!Us.CSS_UNIT.exec(String(t))}var bq=function(){function t(e,n){e===void 0&&(e=""),n===void 0&&(n={});var r;if(e instanceof t)return e;typeof e=="number"&&(e=ARe(e)),this.originalInput=e;var a=kRe(e);this.originalInput=e,this.r=a.r,this.g=a.g,this.b=a.b,this.a=a.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:a.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=a.ok}return t.prototype.isDark=function(){return this.getBrightness()<128},t.prototype.isLight=function(){return!this.isDark()},t.prototype.getBrightness=function(){var e=this.toRgb();return(e.r*299+e.g*587+e.b*114)/1e3},t.prototype.getLuminance=function(){var e=this.toRgb(),n,r,a,i=e.r/255,o=e.g/255,s=e.b/255;return i<=.03928?n=i/12.92:n=Math.pow((i+.055)/1.055,2.4),o<=.03928?r=o/12.92:r=Math.pow((o+.055)/1.055,2.4),s<=.03928?a=s/12.92:a=Math.pow((s+.055)/1.055,2.4),.2126*n+.7152*r+.0722*a},t.prototype.getAlpha=function(){return this.a},t.prototype.setAlpha=function(e){return this.a=mq(e),this.roundA=Math.round(100*this.a)/100,this},t.prototype.isMonochrome=function(){var e=this.toHsl().s;return e===0},t.prototype.toHsv=function(){var e=M5(this.r,this.g,this.b);return{h:e.h*360,s:e.s,v:e.v,a:this.a}},t.prototype.toHsvString=function(){var e=M5(this.r,this.g,this.b),n=Math.round(e.h*360),r=Math.round(e.s*100),a=Math.round(e.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(a,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(a,"%, ").concat(this.roundA,")")},t.prototype.toHsl=function(){var e=E5(this.r,this.g,this.b);return{h:e.h*360,s:e.s,l:e.l,a:this.a}},t.prototype.toHslString=function(){var e=E5(this.r,this.g,this.b),n=Math.round(e.h*360),r=Math.round(e.s*100),a=Math.round(e.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(a,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(a,"%, ").concat(this.roundA,")")},t.prototype.toHex=function(e){return e===void 0&&(e=!1),D5(this.r,this.g,this.b,e)},t.prototype.toHexString=function(e){return e===void 0&&(e=!1),"#"+this.toHex(e)},t.prototype.toHex8=function(e){return e===void 0&&(e=!1),MRe(this.r,this.g,this.b,this.a,e)},t.prototype.toHex8String=function(e){return e===void 0&&(e=!1),"#"+this.toHex8(e)},t.prototype.toHexShortString=function(e){return e===void 0&&(e=!1),this.a===1?this.toHexString(e):this.toHex8String(e)},t.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},t.prototype.toRgbString=function(){var e=Math.round(this.r),n=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(e,", ").concat(n,", ").concat(r,")"):"rgba(".concat(e,", ").concat(n,", ").concat(r,", ").concat(this.roundA,")")},t.prototype.toPercentageRgb=function(){var e=function(n){return"".concat(Math.round(vi(n,255)*100),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},t.prototype.toPercentageRgbString=function(){var e=function(n){return Math.round(vi(n,255)*100)};return this.a===1?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},t.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var e="#"+D5(this.r,this.g,this.b,!1),n=0,r=Object.entries(NR);n<r.length;n++){var a=r[n],i=a[0],o=a[1];if(e===o)return i}return!1},t.prototype.toString=function(e){var n=!!e;e=e??this.format;var r=!1,a=this.a<1&&this.a>=0,i=!n&&a&&(e.startsWith("hex")||e==="name");return i?e==="name"&&this.a===0?this.toName():this.toRgbString():(e==="rgb"&&(r=this.toRgbString()),e==="prgb"&&(r=this.toPercentageRgbString()),(e==="hex"||e==="hex6")&&(r=this.toHexString()),e==="hex3"&&(r=this.toHexString(!0)),e==="hex4"&&(r=this.toHex8String(!0)),e==="hex8"&&(r=this.toHex8String()),e==="name"&&(r=this.toName()),e==="hsl"&&(r=this.toHslString()),e==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},t.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},t.prototype.clone=function(){return new t(this.toString())},t.prototype.lighten=function(e){e===void 0&&(e=10);var n=this.toHsl();return n.l+=e/100,n.l=GS(n.l),new t(n)},t.prototype.brighten=function(e){e===void 0&&(e=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(e/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(e/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(e/100)))),new t(n)},t.prototype.darken=function(e){e===void 0&&(e=10);var n=this.toHsl();return n.l-=e/100,n.l=GS(n.l),new t(n)},t.prototype.tint=function(e){return e===void 0&&(e=10),this.mix("white",e)},t.prototype.shade=function(e){return e===void 0&&(e=10),this.mix("black",e)},t.prototype.desaturate=function(e){e===void 0&&(e=10);var n=this.toHsl();return n.s-=e/100,n.s=GS(n.s),new t(n)},t.prototype.saturate=function(e){e===void 0&&(e=10);var n=this.toHsl();return n.s+=e/100,n.s=GS(n.s),new t(n)},t.prototype.greyscale=function(){return this.desaturate(100)},t.prototype.spin=function(e){var n=this.toHsl(),r=(n.h+e)%360;return n.h=r<0?360+r:r,new t(n)},t.prototype.mix=function(e,n){n===void 0&&(n=50);var r=this.toRgb(),a=new t(e).toRgb(),i=n/100,o={r:(a.r-r.r)*i+r.r,g:(a.g-r.g)*i+r.g,b:(a.b-r.b)*i+r.b,a:(a.a-r.a)*i+r.a};return new t(o)},t.prototype.analogous=function(e,n){e===void 0&&(e=6),n===void 0&&(n=30);var r=this.toHsl(),a=360/n,i=[this];for(r.h=(r.h-(a*e>>1)+720)%360;--e;)r.h=(r.h+a)%360,i.push(new t(r));return i},t.prototype.complement=function(){var e=this.toHsl();return e.h=(e.h+180)%360,new t(e)},t.prototype.monochromatic=function(e){e===void 0&&(e=6);for(var n=this.toHsv(),r=n.h,a=n.s,i=n.v,o=[],s=1/e;e--;)o.push(new t({h:r,s:a,v:i})),i=(i+s)%1;return o},t.prototype.splitcomplement=function(){var e=this.toHsl(),n=e.h;return[this,new t({h:(n+72)%360,s:e.s,l:e.l}),new t({h:(n+216)%360,s:e.s,l:e.l})]},t.prototype.onBackground=function(e){var n=this.toRgb(),r=new t(e).toRgb(),a=n.a+r.a*(1-n.a);return new t({r:(n.r*n.a+r.r*r.a*(1-n.a))/a,g:(n.g*n.a+r.g*r.a*(1-n.a))/a,b:(n.b*n.a+r.b*r.a*(1-n.a))/a,a})},t.prototype.triad=function(){return this.polyad(3)},t.prototype.tetrad=function(){return this.polyad(4)},t.prototype.polyad=function(e){for(var n=this.toHsl(),r=n.h,a=[this],i=360/e,o=1;o<e;o++)a.push(new t({h:(r+o*i)%360,s:n.s,l:n.l}));return a},t.prototype.equals=function(e){return this.toRgbString()===new t(e).toRgbString()},t}();function $c(t,e=20){return t.mix("#141414",e).toString()}function VRe(t){const e=Ro(),n=Ye("button");return U(()=>{let r={};const a=t.color;if(a){const i=new bq(a),o=t.dark?i.tint(20).toString():$c(i,20);if(t.plain)r=n.cssVarBlock({"bg-color":t.dark?$c(i,90):i.tint(90).toString(),"text-color":a,"border-color":t.dark?$c(i,50):i.tint(50).toString(),"hover-text-color":`var(${n.cssVarName("color-white")})`,"hover-bg-color":a,"hover-border-color":a,"active-bg-color":o,"active-text-color":`var(${n.cssVarName("color-white")})`,"active-border-color":o}),e.value&&(r[n.cssVarBlockName("disabled-bg-color")]=t.dark?$c(i,90):i.tint(90).toString(),r[n.cssVarBlockName("disabled-text-color")]=t.dark?$c(i,50):i.tint(50).toString(),r[n.cssVarBlockName("disabled-border-color")]=t.dark?$c(i,80):i.tint(80).toString());else{const s=t.dark?$c(i,30):i.tint(30).toString(),l=i.isDark()?`var(${n.cssVarName("color-white")})`:`var(${n.cssVarName("color-black")})`;if(r=n.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}),e.value){const u=t.dark?$c(i,50):i.tint(50).toString();r[n.cssVarBlockName("disabled-bg-color")]=u,r[n.cssVarBlockName("disabled-text-color")]=t.dark?"rgba(255, 255, 255, 0.5)":`var(${n.cssVarName("color-white")})`,r[n.cssVarBlockName("disabled-border-color")]=u}}}return r})}const NRe=ye({name:"ElButton"}),IRe=ye({...NRe,props:VR,emits:wRe,setup(t,{expose:e,emit:n}){const r=t,a=VRe(r),i=Ye("button"),{_ref:o,_size:s,_type:l,_disabled:u,_props:c,shouldAddSpace:f,handleClick:d}=bRe(r,n);return e({ref:o,size:s,type:l,disabled:u,shouldAddSpace:f}),(h,p)=>(G(),Ee(on(h.tag),an({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:j(()=>[h.loading?(G(),re(Ct,{key:0},[h.$slots.loading?Ge(h.$slots,"loading",{key:0}):(G(),Ee(b(_t),{key:1,class:Y(b(i).is("loading"))},{default:j(()=>[(G(),Ee(on(h.loadingIcon)))]),_:1},8,["class"]))],64)):h.icon||h.$slots.icon?(G(),Ee(b(_t),{key:1},{default:j(()=>[h.icon?(G(),Ee(on(h.icon),{key:0})):Ge(h.$slots,"icon",{key:1})]),_:3})):_e("v-if",!0),h.$slots.default?(G(),re("span",{key:2,class:Y({[b(i).em("text","expand")]:b(f)})},[Ge(h.$slots,"default")],2)):_e("v-if",!0)]),_:3},16,["class","style","onClick"]))}});var BRe=tt(IRe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button.vue"]]);const $Re={size:VR.size,type:VR.type},PRe=ye({name:"ElButtonGroup"}),FRe=ye({...PRe,props:$Re,setup(t){const e=t;fn(yq,Vn({size:Wr(e,"size"),type:Wr(e,"type")}));const n=Ye("button");return(r,a)=>(G(),re("div",{class:Y(`${b(n).b("group")}`)},[Ge(r.$slots,"default")],2))}});var Sq=tt(FRe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button-group.vue"]]);const ct=tn(BRe,{ButtonGroup:Sq}),wq=ta(Sq);var xq={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(ya,function(){var n=1e3,r=6e4,a=36e5,i="millisecond",o="second",s="minute",l="hour",u="day",c="week",f="month",d="quarter",h="year",p="date",v="Invalid Date",g=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|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,m={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(I){var P=["th","st","nd","rd"],F=I%100;return"["+I+(P[(F-20)%10]||P[F]||P[0])+"]"}},S=function(I,P,F){var $=String(I);return!$||$.length>=P?I:""+Array(P+1-$.length).join(F)+I},w={s:S,z:function(I){var P=-I.utcOffset(),F=Math.abs(P),$=Math.floor(F/60),W=F%60;return(P<=0?"+":"-")+S($,2,"0")+":"+S(W,2,"0")},m:function I(P,F){if(P.date()<F.date())return-I(F,P);var $=12*(F.year()-P.year())+(F.month()-P.month()),W=P.clone().add($,f),V=F-W<0,z=P.clone().add($+(V?-1:1),f);return+(-($+(F-W)/(V?W-z:z-W))||0)},a:function(I){return I<0?Math.ceil(I)||0:Math.floor(I)},p:function(I){return{M:f,y:h,w:c,d:u,D:p,h:l,m:s,s:o,ms:i,Q:d}[I]||String(I||"").toLowerCase().replace(/s$/,"")},u:function(I){return I===void 0}},C="en",_={};_[C]=m;var x="$isDayjsObject",T=function(I){return I instanceof k||!(!I||!I[x])},M=function I(P,F,$){var W;if(!P)return C;if(typeof P=="string"){var V=P.toLowerCase();_[V]&&(W=V),F&&(_[V]=F,W=V);var z=P.split("-");if(!W&&z.length>1)return I(z[0])}else{var K=P.name;_[K]=P,W=K}return!$&&W&&(C=W),W||!$&&C},E=function(I,P){if(T(I))return I.clone();var F=typeof P=="object"?P:{};return F.date=I,F.args=arguments,new k(F)},A=w;A.l=M,A.i=T,A.w=function(I,P){return E(I,{locale:P.$L,utc:P.$u,x:P.$x,$offset:P.$offset})};var k=function(){function I(F){this.$L=M(F.locale,null,!0),this.parse(F),this.$x=this.$x||F.x||{},this[x]=!0}var P=I.prototype;return P.parse=function(F){this.$d=function($){var W=$.date,V=$.utc;if(W===null)return new Date(NaN);if(A.u(W))return new Date;if(W instanceof Date)return new Date(W);if(typeof W=="string"&&!/Z$/i.test(W)){var z=W.match(g);if(z){var K=z[2]-1||0,Z=(z[7]||"0").substring(0,3);return V?new Date(Date.UTC(z[1],K,z[3]||1,z[4]||0,z[5]||0,z[6]||0,Z)):new Date(z[1],K,z[3]||1,z[4]||0,z[5]||0,z[6]||0,Z)}}return new Date(W)}(F),this.init()},P.init=function(){var F=this.$d;this.$y=F.getFullYear(),this.$M=F.getMonth(),this.$D=F.getDate(),this.$W=F.getDay(),this.$H=F.getHours(),this.$m=F.getMinutes(),this.$s=F.getSeconds(),this.$ms=F.getMilliseconds()},P.$utils=function(){return A},P.isValid=function(){return this.$d.toString()!==v},P.isSame=function(F,$){var W=E(F);return this.startOf($)<=W&&W<=this.endOf($)},P.isAfter=function(F,$){return E(F)<this.startOf($)},P.isBefore=function(F,$){return this.endOf($)<E(F)},P.$g=function(F,$,W){return A.u(F)?this[$]:this.set(W,F)},P.unix=function(){return Math.floor(this.valueOf()/1e3)},P.valueOf=function(){return this.$d.getTime()},P.startOf=function(F,$){var W=this,V=!!A.u($)||$,z=A.p(F),K=function(me,ve){var he=A.w(W.$u?Date.UTC(W.$y,ve,me):new Date(W.$y,ve,me),W);return V?he:he.endOf(u)},Z=function(me,ve){return A.w(W.toDate()[me].apply(W.toDate("s"),(V?[0,0,0,0]:[23,59,59,999]).slice(ve)),W)},oe=this.$W,ge=this.$M,ie=this.$D,Q="set"+(this.$u?"UTC":"");switch(z){case h:return V?K(1,0):K(31,11);case f:return V?K(1,ge):K(0,ge+1);case c:var ce=this.$locale().weekStart||0,se=(oe<ce?oe+7:oe)-ce;return K(V?ie-se:ie+(6-se),ge);case u:case p:return Z(Q+"Hours",0);case l:return Z(Q+"Minutes",1);case s:return Z(Q+"Seconds",2);case o:return Z(Q+"Milliseconds",3);default:return this.clone()}},P.endOf=function(F){return this.startOf(F,!1)},P.$set=function(F,$){var W,V=A.p(F),z="set"+(this.$u?"UTC":""),K=(W={},W[u]=z+"Date",W[p]=z+"Date",W[f]=z+"Month",W[h]=z+"FullYear",W[l]=z+"Hours",W[s]=z+"Minutes",W[o]=z+"Seconds",W[i]=z+"Milliseconds",W)[V],Z=V===u?this.$D+($-this.$W):$;if(V===f||V===h){var oe=this.clone().set(p,1);oe.$d[K](Z),oe.init(),this.$d=oe.set(p,Math.min(this.$D,oe.daysInMonth())).$d}else K&&this.$d[K](Z);return this.init(),this},P.set=function(F,$){return this.clone().$set(F,$)},P.get=function(F){return this[A.p(F)]()},P.add=function(F,$){var W,V=this;F=Number(F);var z=A.p($),K=function(ge){var ie=E(V);return A.w(ie.date(ie.date()+Math.round(ge*F)),V)};if(z===f)return this.set(f,this.$M+F);if(z===h)return this.set(h,this.$y+F);if(z===u)return K(1);if(z===c)return K(7);var Z=(W={},W[s]=r,W[l]=a,W[o]=n,W)[z]||1,oe=this.$d.getTime()+F*Z;return A.w(oe,this)},P.subtract=function(F,$){return this.add(-1*F,$)},P.format=function(F){var $=this,W=this.$locale();if(!this.isValid())return W.invalidDate||v;var V=F||"YYYY-MM-DDTHH:mm:ssZ",z=A.z(this),K=this.$H,Z=this.$m,oe=this.$M,ge=W.weekdays,ie=W.months,Q=W.meridiem,ce=function(ve,he,ee,ue){return ve&&(ve[he]||ve($,V))||ee[he].slice(0,ue)},se=function(ve){return A.s(K%12||12,ve,"0")},me=Q||function(ve,he,ee){var ue=ve<12?"AM":"PM";return ee?ue.toLowerCase():ue};return V.replace(y,function(ve,he){return he||function(ee){switch(ee){case"YY":return String($.$y).slice(-2);case"YYYY":return A.s($.$y,4,"0");case"M":return oe+1;case"MM":return A.s(oe+1,2,"0");case"MMM":return ce(W.monthsShort,oe,ie,3);case"MMMM":return ce(ie,oe);case"D":return $.$D;case"DD":return A.s($.$D,2,"0");case"d":return String($.$W);case"dd":return ce(W.weekdaysMin,$.$W,ge,2);case"ddd":return ce(W.weekdaysShort,$.$W,ge,3);case"dddd":return ge[$.$W];case"H":return String(K);case"HH":return A.s(K,2,"0");case"h":return se(1);case"hh":return se(2);case"a":return me(K,Z,!0);case"A":return me(K,Z,!1);case"m":return String(Z);case"mm":return A.s(Z,2,"0");case"s":return String($.$s);case"ss":return A.s($.$s,2,"0");case"SSS":return A.s($.$ms,3,"0");case"Z":return z}return null}(ve)||z.replace(":","")})},P.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},P.diff=function(F,$,W){var V,z=this,K=A.p($),Z=E(F),oe=(Z.utcOffset()-this.utcOffset())*r,ge=this-Z,ie=function(){return A.m(z,Z)};switch(K){case h:V=ie()/12;break;case f:V=ie();break;case d:V=ie()/3;break;case c:V=(ge-oe)/6048e5;break;case u:V=(ge-oe)/864e5;break;case l:V=ge/a;break;case s:V=ge/r;break;case o:V=ge/n;break;default:V=ge}return W?V:A.a(V)},P.daysInMonth=function(){return this.endOf(f).$D},P.$locale=function(){return _[this.$L]},P.locale=function(F,$){if(!F)return this.$L;var W=this.clone(),V=M(F,$,!0);return V&&(W.$L=V),W},P.clone=function(){return A.w(this.$d,this)},P.toDate=function(){return new Date(this.valueOf())},P.toJSON=function(){return this.isValid()?this.toISOString():null},P.toISOString=function(){return this.$d.toISOString()},P.toString=function(){return this.$d.toUTCString()},I}(),L=k.prototype;return E.prototype=L,[["$ms",i],["$s",o],["$m",s],["$H",l],["$W",u],["$M",f],["$y",h],["$D",p]].forEach(function(I){L[I[1]]=function(P){return this.$g(P,I[0],I[1])}}),E.extend=function(I,P){return I.$i||(I(P,k,E),I.$i=!0),E},E.locale=M,E.isDayjs=T,E.unix=function(I){return E(1e3*I)},E.en=_[C],E.Ls=_,E.p={},E})})(xq);var zRe=xq.exports;const Jt=xi(zRe);var _q={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(ya,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,a=/\d\d/,i=/\d\d?/,o=/\d*[^-_:/,()\s\d]+/,s={},l=function(v){return(v=+v)+(v>68?1900:2e3)},u=function(v){return function(g){this[v]=+g}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(v){(this.zone||(this.zone={})).offset=function(g){if(!g||g==="Z")return 0;var y=g.match(/([+-]|\d\d)/g),m=60*y[1]+(+y[2]||0);return m===0?0:y[0]==="+"?-m:m}(v)}],f=function(v){var g=s[v];return g&&(g.indexOf?g:g.s.concat(g.f))},d=function(v,g){var y,m=s.meridiem;if(m){for(var S=1;S<=24;S+=1)if(v.indexOf(m(S,0,g))>-1){y=S>12;break}}else y=v===(g?"pm":"PM");return y},h={A:[o,function(v){this.afternoon=d(v,!1)}],a:[o,function(v){this.afternoon=d(v,!0)}],S:[/\d/,function(v){this.milliseconds=100*+v}],SS:[a,function(v){this.milliseconds=10*+v}],SSS:[/\d{3}/,function(v){this.milliseconds=+v}],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(v){var g=s.ordinal,y=v.match(/\d+/);if(this.day=y[0],g)for(var m=1;m<=31;m+=1)g(m).replace(/\[|\]/g,"")===v&&(this.day=m)}],M:[i,u("month")],MM:[a,u("month")],MMM:[o,function(v){var g=f("months"),y=(f("monthsShort")||g.map(function(m){return m.slice(0,3)})).indexOf(v)+1;if(y<1)throw new Error;this.month=y%12||y}],MMMM:[o,function(v){var g=f("months").indexOf(v)+1;if(g<1)throw new Error;this.month=g%12||g}],Y:[/[+-]?\d+/,u("year")],YY:[a,function(v){this.year=l(v)}],YYYY:[/\d{4}/,u("year")],Z:c,ZZ:c};function p(v){var g,y;g=v,y=s&&s.formats;for(var m=(v=g.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(M,E,A){var k=A&&A.toUpperCase();return E||y[A]||n[A]||y[k].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(L,I,P){return I||P.slice(1)})})).match(r),S=m.length,w=0;w<S;w+=1){var C=m[w],_=h[C],x=_&&_[0],T=_&&_[1];m[w]=T?{regex:x,parser:T}:C.replace(/^\[|\]$/g,"")}return function(M){for(var E={},A=0,k=0;A<S;A+=1){var L=m[A];if(typeof L=="string")k+=L.length;else{var I=L.regex,P=L.parser,F=M.slice(k),$=I.exec(F)[0];P.call(E,$),M=M.replace($,"")}}return function(W){var V=W.afternoon;if(V!==void 0){var z=W.hours;V?z<12&&(W.hours+=12):z===12&&(W.hours=0),delete W.afternoon}}(E),E}}return function(v,g,y){y.p.customParseFormat=!0,v&&v.parseTwoDigitYear&&(l=v.parseTwoDigitYear);var m=g.prototype,S=m.parse;m.parse=function(w){var C=w.date,_=w.utc,x=w.args;this.$u=_;var T=x[1];if(typeof T=="string"){var M=x[2]===!0,E=x[3]===!0,A=M||E,k=x[2];E&&(k=x[2]),s=this.$locale(),!M&&k&&(s=y.Ls[k]),this.$d=function(F,$,W){try{if(["x","X"].indexOf($)>-1)return new Date(($==="X"?1e3:1)*F);var V=p($)(F),z=V.year,K=V.month,Z=V.day,oe=V.hours,ge=V.minutes,ie=V.seconds,Q=V.milliseconds,ce=V.zone,se=new Date,me=Z||(z||K?1:se.getDate()),ve=z||se.getFullYear(),he=0;z&&!K||(he=K>0?K-1:se.getMonth());var ee=oe||0,ue=ge||0,fe=ie||0,Re=Q||0;return ce?new Date(Date.UTC(ve,he,me,ee,ue,fe,Re+60*ce.offset*1e3)):W?new Date(Date.UTC(ve,he,me,ee,ue,fe,Re)):new Date(ve,he,me,ee,ue,fe,Re)}catch{return new Date("")}}(C,T,_),this.init(),k&&k!==!0&&(this.$L=this.locale(k).$L),A&&C!=this.format(T)&&(this.$d=new Date("")),s={}}else if(T instanceof Array)for(var L=T.length,I=1;I<=L;I+=1){x[1]=T[I-1];var P=y.apply(this,x);if(P.isValid()){this.$d=P.$d,this.$L=P.$L,this.init();break}I===L&&(this.$d=new Date(""))}else S.call(this,w)}}})})(_q);var URe=_q.exports;const uV=xi(URe),k5=["hours","minutes","seconds"],IR="HH:mm:ss",Rv="YYYY-MM-DD",GRe={date:Rv,dates:Rv,week:"gggg[w]ww",year:"YYYY",month:"YYYY-MM",datetime:`${Rv} ${IR}`,monthrange:"YYYY-MM",daterange:Rv,datetimerange:`${Rv} ${IR}`},RM=(t,e)=>[t>0?t-1:void 0,t,t<e?t+1:void 0],kf=t=>Array.from(Array.from({length:t}).keys()),Cq=t=>t.replace(/\W?m{1,2}|\W?ZZ/g,"").replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi,"").trim(),Tq=t=>t.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?Y{2,4}/g,"").trim(),R5=function(t,e){const n=fp(t),r=fp(e);return n&&r?t.getTime()===e.getTime():!n&&!r?t===e:!1},L5=function(t,e){const n=gt(t),r=gt(e);return n&&r?t.length!==e.length?!1:t.every((a,i)=>R5(a,e[i])):!n&&!r?R5(t,e):!1},O5=function(t,e,n){const r=ds(e)||e==="x"?Jt(t).locale(n):Jt(t,e).locale(n);return r.isValid()?r:void 0},V5=function(t,e,n){return ds(e)?t:e==="x"?+t:Jt(t).locale(n).format(e)},LM=(t,e)=>{var n;const r=[],a=e==null?void 0:e();for(let i=0;i<t;i++)r.push((n=a==null?void 0:a.includes(i))!=null?n:!1);return r},Eq=nt({disabledHours:{type:ke(Function)},disabledMinutes:{type:ke(Function)},disabledSeconds:{type:ke(Function)}}),Mq=nt({visible:Boolean,actualVisible:{type:Boolean,default:void 0},format:{type:String,default:""}}),cV=nt({id:{type:ke([Array,String])},name:{type:ke([Array,String]),default:""},popperClass:{type:String,default:""},format:String,valueFormat:String,type:{type:String,default:""},clearable:{type:Boolean,default:!0},clearIcon:{type:ke([String,Object]),default:ad},editable:{type:Boolean,default:!0},prefixIcon:{type:ke([String,Object]),default:""},size:yi,readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},placeholder:{type:String,default:""},popperOptions:{type:ke(Object),default:()=>({})},modelValue:{type:ke([Date,Array,String,Number]),default:""},rangeSeparator:{type:String,default:"-"},startPlaceholder:String,endPlaceholder:String,defaultValue:{type:ke([Date,Array])},defaultTime:{type:ke([Date,Array])},isRange:{type:Boolean,default:!1},...Eq,disabledDate:{type:Function},cellClassName:{type:Function},shortcuts:{type:Array,default:()=>[]},arrowControl:{type:Boolean,default:!1},label:{type:String,default:void 0},tabindex:{type:ke([String,Number]),default:0},validateEvent:{type:Boolean,default:!0},unlinkPanels:Boolean}),HRe=["id","name","placeholder","value","disabled","readonly"],WRe=["id","name","placeholder","value","disabled","readonly"],jRe=ye({name:"Picker"}),KRe=ye({...jRe,props:cV,emits:["update:modelValue","change","focus","blur","calendar-change","panel-change","visible-change","keydown"],setup(t,{expose:e,emit:n}){const r=t,a=Dp(),{lang:i}=En(),o=Ye("date"),s=Ye("input"),l=Ye("range"),{form:u,formItem:c}=uo(),f=yt("ElPopperOptions",{}),d=B(),h=B(),p=B(!1),v=B(!1),g=B(null);let y=!1,m=!1;const S=U(()=>[o.b("editor"),o.bm("editor",r.type),s.e("wrapper"),o.is("disabled",Z.value),o.is("active",p.value),l.b("editor"),De?l.bm("editor",De.value):"",a.class]),w=U(()=>[s.e("icon"),l.e("close-icon"),me.value?"":l.e("close-icon--hidden")]);Ke(p,pe=>{pe?xt(()=>{pe&&(g.value=r.modelValue)}):(Ie.value=null,xt(()=>{C(r.modelValue)}))});const C=(pe,it)=>{(it||!L5(pe,g.value))&&(n("change",pe),r.validateEvent&&(c==null||c.validate("change").catch(Tt=>void 0)))},_=pe=>{if(!L5(r.modelValue,pe)){let it;gt(pe)?it=pe.map(Tt=>V5(Tt,r.valueFormat,i.value)):pe&&(it=V5(pe,r.valueFormat,i.value)),n("update:modelValue",pe&&it,i.value)}},x=pe=>{n("keydown",pe)},T=U(()=>{if(h.value){const pe=Ne.value?h.value:h.value.$el;return Array.from(pe.querySelectorAll("input"))}return[]}),M=(pe,it,Tt)=>{const Wt=T.value;Wt.length&&(!Tt||Tt==="min"?(Wt[0].setSelectionRange(pe,it),Wt[0].focus()):Tt==="max"&&(Wt[1].setSelectionRange(pe,it),Wt[1].focus()))},E=()=>{W(!0,!0),xt(()=>{m=!1})},A=(pe="",it=!1)=>{it||(m=!0),p.value=it;let Tt;gt(pe)?Tt=pe.map(Wt=>Wt.toDate()):Tt=pe&&pe.toDate(),Ie.value=null,_(Tt)},k=()=>{v.value=!0},L=()=>{n("visible-change",!0)},I=pe=>{(pe==null?void 0:pe.key)===Dt.esc&&W(!0,!0)},P=()=>{v.value=!1,p.value=!1,m=!1,n("visible-change",!1)},F=()=>{p.value=!0},$=()=>{p.value=!1},W=(pe=!0,it=!1)=>{m=it;const[Tt,Wt]=b(T);let Kn=Tt;!pe&&Ne.value&&(Kn=Wt),Kn&&Kn.focus()},V=pe=>{r.readonly||Z.value||p.value||m||(p.value=!0,n("focus",pe))};let z;const K=pe=>{const it=async()=>{setTimeout(()=>{var Tt;z===it&&(!((Tt=d.value)!=null&&Tt.isFocusInsideContent()&&!y)&&T.value.filter(Wt=>Wt.contains(document.activeElement)).length===0&&(He(),p.value=!1,n("blur",pe),r.validateEvent&&(c==null||c.validate("blur").catch(Wt=>void 0))),y=!1)},0)};z=it,it()},Z=U(()=>r.disabled||(u==null?void 0:u.disabled)),oe=U(()=>{let pe;if(he.value?Oe.value.getDefaultValue&&(pe=Oe.value.getDefaultValue()):gt(r.modelValue)?pe=r.modelValue.map(it=>O5(it,r.valueFormat,i.value)):pe=O5(r.modelValue,r.valueFormat,i.value),Oe.value.getRangeAvailableTime){const it=Oe.value.getRangeAvailableTime(pe);To(it,pe)||(pe=it,_(gt(pe)?pe.map(Tt=>Tt.toDate()):pe.toDate()))}return gt(pe)&&pe.some(it=>!it)&&(pe=[]),pe}),ge=U(()=>{if(!Oe.value.panelReady)return"";const pe=qe(oe.value);return gt(Ie.value)?[Ie.value[0]||pe&&pe[0]||"",Ie.value[1]||pe&&pe[1]||""]:Ie.value!==null?Ie.value:!Q.value&&he.value||!p.value&&he.value?"":pe?ce.value?pe.join(", "):pe:""}),ie=U(()=>r.type.includes("time")),Q=U(()=>r.type.startsWith("time")),ce=U(()=>r.type==="dates"),se=U(()=>r.prefixIcon||(ie.value?oX:n_e)),me=B(!1),ve=pe=>{r.readonly||Z.value||me.value&&(pe.stopPropagation(),E(),_(null),C(null,!0),me.value=!1,p.value=!1,Oe.value.handleClear&&Oe.value.handleClear())},he=U(()=>{const{modelValue:pe}=r;return!pe||gt(pe)&&!pe.filter(Boolean).length}),ee=async pe=>{var it;r.readonly||Z.value||(((it=pe.target)==null?void 0:it.tagName)!=="INPUT"||T.value.includes(document.activeElement))&&(p.value=!0)},ue=()=>{r.readonly||Z.value||!he.value&&r.clearable&&(me.value=!0)},fe=()=>{me.value=!1},Re=pe=>{var it;r.readonly||Z.value||(((it=pe.touches[0].target)==null?void 0:it.tagName)!=="INPUT"||T.value.includes(document.activeElement))&&(p.value=!0)},Ne=U(()=>r.type.includes("range")),De=Aa(),we=U(()=>{var pe,it;return(it=(pe=b(d))==null?void 0:pe.popperRef)==null?void 0:it.contentRef}),ae=U(()=>{var pe;return b(Ne)?b(h):(pe=b(h))==null?void 0:pe.$el});m4(ae,pe=>{const it=b(we),Tt=b(ae);it&&(pe.target===it||pe.composedPath().includes(it))||pe.target===Tt||pe.composedPath().includes(Tt)||(p.value=!1)});const Ie=B(null),He=()=>{if(Ie.value){const pe=Ce(ge.value);pe&&Ze(pe)&&(_(gt(pe)?pe.map(it=>it.toDate()):pe.toDate()),Ie.value=null)}Ie.value===""&&(_(null),C(null),Ie.value=null)},Ce=pe=>pe?Oe.value.parseUserInput(pe):null,qe=pe=>pe?Oe.value.formatToString(pe):null,Ze=pe=>Oe.value.isValidValue(pe),de=async pe=>{if(r.readonly||Z.value)return;const{code:it}=pe;if(x(pe),it===Dt.esc){p.value===!0&&(p.value=!1,pe.preventDefault(),pe.stopPropagation());return}if(it===Dt.down&&(Oe.value.handleFocusPicker&&(pe.preventDefault(),pe.stopPropagation()),p.value===!1&&(p.value=!0,await xt()),Oe.value.handleFocusPicker)){Oe.value.handleFocusPicker();return}if(it===Dt.tab){y=!0;return}if(it===Dt.enter||it===Dt.numpadEnter){(Ie.value===null||Ie.value===""||Ze(Ce(ge.value)))&&(He(),p.value=!1),pe.stopPropagation();return}if(Ie.value){pe.stopPropagation();return}Oe.value.handleKeydownInput&&Oe.value.handleKeydownInput(pe)},Xe=pe=>{Ie.value=pe,p.value||(p.value=!0)},mt=pe=>{const it=pe.target;Ie.value?Ie.value=[it.value,Ie.value[1]]:Ie.value=[it.value,null]},kt=pe=>{const it=pe.target;Ie.value?Ie.value=[Ie.value[0],it.value]:Ie.value=[null,it.value]},Vt=()=>{var pe;const it=Ie.value,Tt=Ce(it&&it[0]),Wt=b(oe);if(Tt&&Tt.isValid()){Ie.value=[qe(Tt),((pe=ge.value)==null?void 0:pe[1])||null];const Kn=[Tt,Wt&&(Wt[1]||null)];Ze(Kn)&&(_(Kn),Ie.value=null)}},dt=()=>{var pe;const it=b(Ie),Tt=Ce(it&&it[1]),Wt=b(oe);if(Tt&&Tt.isValid()){Ie.value=[((pe=b(ge))==null?void 0:pe[0])||null,qe(Tt)];const Kn=[Wt&&Wt[0],Tt];Ze(Kn)&&(_(Kn),Ie.value=null)}},Oe=B({}),be=pe=>{Oe.value[pe[0]]=pe[1],Oe.value.panelReady=!0},xe=pe=>{n("calendar-change",pe)},Pe=(pe,it,Tt)=>{n("panel-change",pe,it,Tt)};return fn("EP_PICKER_BASE",{props:r}),e({focus:W,handleFocusInput:V,handleBlurInput:K,handleOpen:F,handleClose:$,onPick:A}),(pe,it)=>(G(),Ee(b(io),an({ref_key:"refPopper",ref:d,visible:p.value,effect:"light",pure:"",trigger:"click"},pe.$attrs,{role:"dialog",teleported:"",transition:`${b(o).namespace.value}-zoom-in-top`,"popper-class":[`${b(o).namespace.value}-picker__popper`,pe.popperClass],"popper-options":b(f),"fallback-placements":["bottom","top","right","left"],"gpu-acceleration":!1,"stop-popper-mouse-event":!1,"hide-after":0,persistent:"",onBeforeShow:k,onShow:L,onHide:P}),{default:j(()=>[b(Ne)?(G(),re("div",{key:1,ref_key:"inputRef",ref:h,class:Y(b(S)),style:Et(pe.$attrs.style),onClick:V,onMouseenter:ue,onMouseleave:fe,onTouchstart:Re,onKeydown:de},[b(se)?(G(),Ee(b(_t),{key:0,class:Y([b(s).e("icon"),b(l).e("icon")]),onMousedown:It(ee,["prevent"]),onTouchstart:Re},{default:j(()=>[(G(),Ee(on(b(se))))]),_:1},8,["class","onMousedown"])):_e("v-if",!0),R("input",{id:pe.id&&pe.id[0],autocomplete:"off",name:pe.name&&pe.name[0],placeholder:pe.startPlaceholder,value:b(ge)&&b(ge)[0],disabled:b(Z),readonly:!pe.editable||pe.readonly,class:Y(b(l).b("input")),onMousedown:ee,onInput:mt,onChange:Vt,onFocus:V,onBlur:K},null,42,HRe),Ge(pe.$slots,"range-separator",{},()=>[R("span",{class:Y(b(l).b("separator"))},We(pe.rangeSeparator),3)]),R("input",{id:pe.id&&pe.id[1],autocomplete:"off",name:pe.name&&pe.name[1],placeholder:pe.endPlaceholder,value:b(ge)&&b(ge)[1],disabled:b(Z),readonly:!pe.editable||pe.readonly,class:Y(b(l).b("input")),onMousedown:ee,onFocus:V,onBlur:K,onInput:kt,onChange:dt},null,42,WRe),pe.clearIcon?(G(),Ee(b(_t),{key:1,class:Y(b(w)),onClick:ve},{default:j(()=>[(G(),Ee(on(pe.clearIcon)))]),_:1},8,["class"])):_e("v-if",!0)],38)):(G(),Ee(b(Ri),{key:0,id:pe.id,ref_key:"inputRef",ref:h,"container-role":"combobox","model-value":b(ge),name:pe.name,size:b(De),disabled:b(Z),placeholder:pe.placeholder,class:Y([b(o).b("editor"),b(o).bm("editor",pe.type),pe.$attrs.class]),style:Et(pe.$attrs.style),readonly:!pe.editable||pe.readonly||b(ce)||pe.type==="week",label:pe.label,tabindex:pe.tabindex,"validate-event":!1,onInput:Xe,onFocus:V,onBlur:K,onKeydown:de,onChange:He,onMousedown:ee,onMouseenter:ue,onMouseleave:fe,onTouchstart:Re,onClick:it[0]||(it[0]=It(()=>{},["stop"]))},{prefix:j(()=>[b(se)?(G(),Ee(b(_t),{key:0,class:Y(b(s).e("icon")),onMousedown:It(ee,["prevent"]),onTouchstart:Re},{default:j(()=>[(G(),Ee(on(b(se))))]),_:1},8,["class","onMousedown"])):_e("v-if",!0)]),suffix:j(()=>[me.value&&pe.clearIcon?(G(),Ee(b(_t),{key:0,class:Y(`${b(s).e("icon")} clear-icon`),onClick:It(ve,["stop"])},{default:j(()=>[(G(),Ee(on(pe.clearIcon)))]),_:1},8,["class","onClick"])):_e("v-if",!0)]),_:1},8,["id","model-value","name","size","disabled","placeholder","class","style","readonly","label","tabindex","onKeydown"]))]),content:j(()=>[Ge(pe.$slots,"default",{visible:p.value,actualVisible:v.value,parsedValue:b(oe),format:pe.format,unlinkPanels:pe.unlinkPanels,type:pe.type,defaultValue:pe.defaultValue,onPick:A,onSelectRange:M,onSetPickerOption:be,onCalendarChange:xe,onPanelChange:Pe,onKeydown:I,onMousedown:it[1]||(it[1]=It(()=>{},["stop"]))})]),_:3},16,["visible","transition","popper-class","popper-options"]))}});var Dq=tt(KRe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-picker/src/common/picker.vue"]]);const YRe=nt({...Mq,datetimeRole:String,parsedValue:{type:ke(Object)}}),Aq=({getAvailableHours:t,getAvailableMinutes:e,getAvailableSeconds:n})=>{const r=(o,s,l,u)=>{const c={hour:t,minute:e,second:n};let f=o;return["hour","minute","second"].forEach(d=>{if(c[d]){let h;const p=c[d];switch(d){case"minute":{h=p(f.hour(),s,u);break}case"second":{h=p(f.hour(),f.minute(),s,u);break}default:{h=p(s,u);break}}if(h!=null&&h.length&&!h.includes(f[d]())){const v=l?0:h.length-1;f=f[d](h[v])}}}),f},a={};return{timePickerOptions:a,getAvailableTime:r,onSetOption:([o,s])=>{a[o]=s}}},OM=t=>{const e=(r,a)=>r||a,n=r=>r!==!0;return t.map(e).filter(n)},kq=(t,e,n)=>({getHoursList:(o,s)=>LM(24,t&&(()=>t==null?void 0:t(o,s))),getMinutesList:(o,s,l)=>LM(60,e&&(()=>e==null?void 0:e(o,s,l))),getSecondsList:(o,s,l,u)=>LM(60,n&&(()=>n==null?void 0:n(o,s,l,u)))}),Rq=(t,e,n)=>{const{getHoursList:r,getMinutesList:a,getSecondsList:i}=kq(t,e,n);return{getAvailableHours:(u,c)=>OM(r(u,c)),getAvailableMinutes:(u,c,f)=>OM(a(u,c,f)),getAvailableSeconds:(u,c,f,d)=>OM(i(u,c,f,d))}},Lq=t=>{const e=B(t.parsedValue);return Ke(()=>t.visible,n=>{n||(e.value=t.parsedValue)}),e},Jc=new Map;let N5;_n&&(document.addEventListener("mousedown",t=>N5=t),document.addEventListener("mouseup",t=>{for(const e of Jc.values())for(const{documentHandler:n}of e)n(t,N5)}));function I5(t,e){let n=[];return Array.isArray(e.arg)?n=e.arg:xs(e.arg)&&n.push(e.arg),function(r,a){const i=e.instance.popperRef,o=r.target,s=a==null?void 0:a.target,l=!e||!e.instance,u=!o||!s,c=t.contains(o)||t.contains(s),f=t===o,d=n.length&&n.some(p=>p==null?void 0:p.contains(o))||n.length&&n.includes(s),h=i&&(i.contains(o)||i.contains(s));l||u||c||f||d||h||e.value(r,a)}}const Wf={beforeMount(t,e){Jc.has(t)||Jc.set(t,[]),Jc.get(t).push({documentHandler:I5(t,e),bindingFn:e.value})},updated(t,e){Jc.has(t)||Jc.set(t,[]);const n=Jc.get(t),r=n.findIndex(i=>i.bindingFn===e.oldValue),a={documentHandler:I5(t,e),bindingFn:e.value};r>=0?n.splice(r,1,a):n.push(a)},unmounted(t){Jc.delete(t)}},XRe=100,qRe=600,c2={beforeMount(t,e){const n=e.value,{interval:r=XRe,delay:a=qRe}=zt(n)?{}:n;let i,o;const s=()=>zt(n)?n():n.handler(),l=()=>{o&&(clearTimeout(o),o=void 0),i&&(clearInterval(i),i=void 0)};t.addEventListener("mousedown",u=>{u.button===0&&(l(),s(),document.addEventListener("mouseup",()=>l(),{once:!0}),o=setTimeout(()=>{i=setInterval(()=>{s()},r)},a))})}},BR="_trap-focus-children",Oh=[],B5=t=>{if(Oh.length===0)return;const e=Oh[Oh.length-1][BR];if(e.length>0&&t.code===Dt.tab){if(e.length===1){t.preventDefault(),document.activeElement!==e[0]&&e[0].focus();return}const n=t.shiftKey,r=t.target===e[0],a=t.target===e[e.length-1];r&&n&&(t.preventDefault(),e[e.length-1].focus()),a&&!n&&(t.preventDefault(),e[0].focus())}},ZRe={beforeMount(t){t[BR]=ZP(t),Oh.push(t),Oh.length<=1&&document.addEventListener("keydown",B5)},updated(t){xt(()=>{t[BR]=ZP(t)})},unmounted(){Oh.shift(),Oh.length===0&&document.removeEventListener("keydown",B5)}};var $5=!1,bh,$R,PR,Xx,qx,Oq,Zx,FR,zR,UR,Vq,GR,HR,Nq,Iq;function vo(){if(!$5){$5=!0;var t=navigator.userAgent,e=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(t),n=/(Mac OS X)|(Windows)|(Linux)/.exec(t);if(GR=/\b(iPhone|iP[ao]d)/.exec(t),HR=/\b(iP[ao]d)/.exec(t),UR=/Android/i.exec(t),Nq=/FBAN\/\w+;/i.exec(t),Iq=/Mobile/i.exec(t),Vq=!!/Win64/.exec(t),e){bh=e[1]?parseFloat(e[1]):e[5]?parseFloat(e[5]):NaN,bh&&document&&document.documentMode&&(bh=document.documentMode);var r=/(?:Trident\/(\d+.\d+))/.exec(t);Oq=r?parseFloat(r[1])+4:bh,$R=e[2]?parseFloat(e[2]):NaN,PR=e[3]?parseFloat(e[3]):NaN,Xx=e[4]?parseFloat(e[4]):NaN,Xx?(e=/(?:Chrome\/(\d+\.\d+))/.exec(t),qx=e&&e[1]?parseFloat(e[1]):NaN):qx=NaN}else bh=$R=PR=qx=Xx=NaN;if(n){if(n[1]){var a=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(t);Zx=a?parseFloat(a[1].replace("_",".")):!0}else Zx=!1;FR=!!n[2],zR=!!n[3]}else Zx=FR=zR=!1}}var WR={ie:function(){return vo()||bh},ieCompatibilityMode:function(){return vo()||Oq>bh},ie64:function(){return WR.ie()&&Vq},firefox:function(){return vo()||$R},opera:function(){return vo()||PR},webkit:function(){return vo()||Xx},safari:function(){return WR.webkit()},chrome:function(){return vo()||qx},windows:function(){return vo()||FR},osx:function(){return vo()||Zx},linux:function(){return vo()||zR},iphone:function(){return vo()||GR},mobile:function(){return vo()||GR||HR||UR||Iq},nativeApp:function(){return vo()||Nq},android:function(){return vo()||UR},ipad:function(){return vo()||HR}},QRe=WR,WS=!!(typeof window<"u"&&window.document&&window.document.createElement),JRe={canUseDOM:WS,canUseWorkers:typeof Worker<"u",canUseEventListeners:WS&&!!(window.addEventListener||window.attachEvent),canUseViewport:WS&&!!window.screen,isInWorker:!WS},Bq=JRe,$q;Bq.canUseDOM&&($q=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);function eLe(t,e){if(!Bq.canUseDOM||e&&!("addEventListener"in document))return!1;var n="on"+t,r=n in document;if(!r){var a=document.createElement("div");a.setAttribute(n,"return;"),r=typeof a[n]=="function"}return!r&&$q&&t==="wheel"&&(r=document.implementation.hasFeature("Events.wheel","3.0")),r}var tLe=eLe,P5=10,F5=40,z5=800;function Pq(t){var e=0,n=0,r=0,a=0;return"detail"in t&&(n=t.detail),"wheelDelta"in t&&(n=-t.wheelDelta/120),"wheelDeltaY"in t&&(n=-t.wheelDeltaY/120),"wheelDeltaX"in t&&(e=-t.wheelDeltaX/120),"axis"in t&&t.axis===t.HORIZONTAL_AXIS&&(e=n,n=0),r=e*P5,a=n*P5,"deltaY"in t&&(a=t.deltaY),"deltaX"in t&&(r=t.deltaX),(r||a)&&t.deltaMode&&(t.deltaMode==1?(r*=F5,a*=F5):(r*=z5,a*=z5)),r&&!e&&(e=r<1?-1:1),a&&!n&&(n=a<1?-1:1),{spinX:e,spinY:n,pixelX:r,pixelY:a}}Pq.getEventType=function(){return QRe.firefox()?"DOMMouseScroll":tLe("wheel")?"wheel":"mousewheel"};var nLe=Pq;/**
  37. * Checks if an event is supported in the current execution environment.
  38. *
  39. * NOTE: This will not work correctly for non-generic events such as `change`,
  40. * `reset`, `load`, `error`, and `select`.
  41. *
  42. * Borrows from Modernizr.
  43. *
  44. * @param {string} eventNameSuffix Event name, e.g. "click".
  45. * @param {?boolean} capture Check if the capture phase is supported.
  46. * @return {boolean} True if the event is supported.
  47. * @internal
  48. * @license Modernizr 3.0.0pre (Custom Build) | MIT
  49. */const rLe=function(t,e){if(t&&t.addEventListener){const n=function(r){const a=nLe(r);e&&Reflect.apply(e,this,[r,a])};t.addEventListener("wheel",n,{passive:!0})}},aLe={beforeMount(t,e){rLe(t,e.value)}},iLe=nt({role:{type:String,required:!0},spinnerDate:{type:ke(Object),required:!0},showSeconds:{type:Boolean,default:!0},arrowControl:Boolean,amPmMode:{type:ke(String),default:""},...Eq}),oLe=["onClick"],sLe=["onMouseenter"],lLe=ye({__name:"basic-time-spinner",props:iLe,emits:["change","select-range","set-option"],setup(t,{emit:e}){const n=t,r=Ye("time"),{getHoursList:a,getMinutesList:i,getSecondsList:o}=kq(n.disabledHours,n.disabledMinutes,n.disabledSeconds);let s=!1;const l=B(),u=B(),c=B(),f=B(),d={hours:u,minutes:c,seconds:f},h=U(()=>n.showSeconds?k5:k5.slice(0,2)),p=U(()=>{const{spinnerDate:V}=n,z=V.hour(),K=V.minute(),Z=V.second();return{hours:z,minutes:K,seconds:Z}}),v=U(()=>{const{hours:V,minutes:z}=b(p);return{hours:a(n.role),minutes:i(V,n.role),seconds:o(V,z,n.role)}}),g=U(()=>{const{hours:V,minutes:z,seconds:K}=b(p);return{hours:RM(V,23),minutes:RM(z,59),seconds:RM(K,59)}}),y=ao(V=>{s=!1,w(V)},200),m=V=>{if(!!!n.amPmMode)return"";const K=n.amPmMode==="A";let Z=V<12?" am":" pm";return K&&(Z=Z.toUpperCase()),Z},S=V=>{let z;switch(V){case"hours":z=[0,2];break;case"minutes":z=[3,5];break;case"seconds":z=[6,8];break}const[K,Z]=z;e("select-range",K,Z),l.value=V},w=V=>{x(V,b(p)[V])},C=()=>{w("hours"),w("minutes"),w("seconds")},_=V=>V.querySelector(`.${r.namespace.value}-scrollbar__wrap`),x=(V,z)=>{if(n.arrowControl)return;const K=b(d[V]);K&&K.$el&&(_(K.$el).scrollTop=Math.max(0,z*T(V)))},T=V=>{const z=b(d[V]),K=z==null?void 0:z.$el.querySelector("li");return K&&Number.parseFloat(pf(K,"height"))||0},M=()=>{A(1)},E=()=>{A(-1)},A=V=>{l.value||S("hours");const z=l.value,K=b(p)[z],Z=l.value==="hours"?24:60,oe=k(z,K,V,Z);L(z,oe),x(z,oe),xt(()=>S(z))},k=(V,z,K,Z)=>{let oe=(z+K+Z)%Z;const ge=b(v)[V];for(;ge[oe]&&oe!==z;)oe=(oe+K+Z)%Z;return oe},L=(V,z)=>{if(b(v)[V][z])return;const{hours:oe,minutes:ge,seconds:ie}=b(p);let Q;switch(V){case"hours":Q=n.spinnerDate.hour(z).minute(ge).second(ie);break;case"minutes":Q=n.spinnerDate.hour(oe).minute(z).second(ie);break;case"seconds":Q=n.spinnerDate.hour(oe).minute(ge).second(z);break}e("change",Q)},I=(V,{value:z,disabled:K})=>{K||(L(V,z),S(V),x(V,z))},P=V=>{s=!0,y(V);const z=Math.min(Math.round((_(b(d[V]).$el).scrollTop-(F(V)*.5-10)/T(V)+3)/T(V)),V==="hours"?23:59);L(V,z)},F=V=>b(d[V]).$el.offsetHeight,$=()=>{const V=z=>{const K=b(d[z]);K&&K.$el&&(_(K.$el).onscroll=()=>{P(z)})};V("hours"),V("minutes"),V("seconds")};Ut(()=>{xt(()=>{!n.arrowControl&&$(),C(),n.role==="start"&&S("hours")})});const W=(V,z)=>{d[z].value=V};return e("set-option",[`${n.role}_scrollDown`,A]),e("set-option",[`${n.role}_emitSelectRange`,S]),Ke(()=>n.spinnerDate,()=>{s||C()}),(V,z)=>(G(),re("div",{class:Y([b(r).b("spinner"),{"has-seconds":V.showSeconds}])},[V.arrowControl?_e("v-if",!0):(G(!0),re(Ct,{key:0},dn(b(h),K=>(G(),Ee(b(xc),{key:K,ref_for:!0,ref:Z=>W(Z,K),class:Y(b(r).be("spinner","wrapper")),"wrap-style":"max-height: inherit;","view-class":b(r).be("spinner","list"),noresize:"",tag:"ul",onMouseenter:Z=>S(K),onMousemove:Z=>w(K)},{default:j(()=>[(G(!0),re(Ct,null,dn(b(v)[K],(Z,oe)=>(G(),re("li",{key:oe,class:Y([b(r).be("spinner","item"),b(r).is("active",oe===b(p)[K]),b(r).is("disabled",Z)]),onClick:ge=>I(K,{value:oe,disabled:Z})},[K==="hours"?(G(),re(Ct,{key:0},[Be(We(("0"+(V.amPmMode?oe%12||12:oe)).slice(-2))+We(m(oe)),1)],64)):(G(),re(Ct,{key:1},[Be(We(("0"+oe).slice(-2)),1)],64))],10,oLe))),128))]),_:2},1032,["class","view-class","onMouseenter","onMousemove"]))),128)),V.arrowControl?(G(!0),re(Ct,{key:1},dn(b(h),K=>(G(),re("div",{key:K,class:Y([b(r).be("spinner","wrapper"),b(r).is("arrow")]),onMouseenter:Z=>S(K)},[Ft((G(),Ee(b(_t),{class:Y(["arrow-up",b(r).be("spinner","arrow")])},{default:j(()=>[N(b(yT))]),_:1},8,["class"])),[[b(c2),E]]),Ft((G(),Ee(b(_t),{class:Y(["arrow-down",b(r).be("spinner","arrow")])},{default:j(()=>[N(b(rd))]),_:1},8,["class"])),[[b(c2),M]]),R("ul",{class:Y(b(r).be("spinner","list"))},[(G(!0),re(Ct,null,dn(b(g)[K],(Z,oe)=>(G(),re("li",{key:oe,class:Y([b(r).be("spinner","item"),b(r).is("active",Z===b(p)[K]),b(r).is("disabled",b(v)[K][Z])])},[typeof Z=="number"?(G(),re(Ct,{key:0},[K==="hours"?(G(),re(Ct,{key:0},[Be(We(("0"+(V.amPmMode?Z%12||12:Z)).slice(-2))+We(m(Z)),1)],64)):(G(),re(Ct,{key:1},[Be(We(("0"+Z).slice(-2)),1)],64))],64)):_e("v-if",!0)],2))),128))],2)],42,sLe))),128)):_e("v-if",!0)],2))}});var jR=tt(lLe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-picker/src/time-picker-com/basic-time-spinner.vue"]]);const uLe=ye({__name:"panel-time-pick",props:YRe,emits:["pick","select-range","set-picker-option"],setup(t,{emit:e}){const n=t,r=yt("EP_PICKER_BASE"),{arrowControl:a,disabledHours:i,disabledMinutes:o,disabledSeconds:s,defaultValue:l}=r.props,{getAvailableHours:u,getAvailableMinutes:c,getAvailableSeconds:f}=Rq(i,o,s),d=Ye("time"),{t:h,lang:p}=En(),v=B([0,2]),g=Lq(n),y=U(()=>Na(n.actualVisible)?`${d.namespace.value}-zoom-in-top`:""),m=U(()=>n.format.includes("ss")),S=U(()=>n.format.includes("A")?"A":n.format.includes("a")?"a":""),w=W=>{const V=Jt(W).locale(p.value),z=I(V);return V.isSame(z)},C=()=>{e("pick",g.value,!1)},_=(W=!1,V=!1)=>{V||e("pick",n.parsedValue,W)},x=W=>{if(!n.visible)return;const V=I(W).millisecond(0);e("pick",V,!0)},T=(W,V)=>{e("select-range",W,V),v.value=[W,V]},M=W=>{const V=[0,3].concat(m.value?[6]:[]),z=["hours","minutes"].concat(m.value?["seconds"]:[]),Z=(V.indexOf(v.value[0])+W+V.length)%V.length;A.start_emitSelectRange(z[Z])},E=W=>{const V=W.code,{left:z,right:K,up:Z,down:oe}=Dt;if([z,K].includes(V)){M(V===z?-1:1),W.preventDefault();return}if([Z,oe].includes(V)){const ge=V===Z?-1:1;A.start_scrollDown(ge),W.preventDefault();return}},{timePickerOptions:A,onSetOption:k,getAvailableTime:L}=Aq({getAvailableHours:u,getAvailableMinutes:c,getAvailableSeconds:f}),I=W=>L(W,n.datetimeRole||"",!0),P=W=>W?Jt(W,n.format).locale(p.value):null,F=W=>W?W.format(n.format):null,$=()=>Jt(l).locale(p.value);return e("set-picker-option",["isValidValue",w]),e("set-picker-option",["formatToString",F]),e("set-picker-option",["parseUserInput",P]),e("set-picker-option",["handleKeydownInput",E]),e("set-picker-option",["getRangeAvailableTime",I]),e("set-picker-option",["getDefaultValue",$]),(W,V)=>(G(),Ee(da,{name:b(y)},{default:j(()=>[W.actualVisible||W.visible?(G(),re("div",{key:0,class:Y(b(d).b("panel"))},[R("div",{class:Y([b(d).be("panel","content"),{"has-seconds":b(m)}])},[N(jR,{ref:"spinner",role:W.datetimeRole||"start","arrow-control":b(a),"show-seconds":b(m),"am-pm-mode":b(S),"spinner-date":W.parsedValue,"disabled-hours":b(i),"disabled-minutes":b(o),"disabled-seconds":b(s),onChange:x,onSetOption:b(k),onSelectRange:T},null,8,["role","arrow-control","show-seconds","am-pm-mode","spinner-date","disabled-hours","disabled-minutes","disabled-seconds","onSetOption"])],2),R("div",{class:Y(b(d).be("panel","footer"))},[R("button",{type:"button",class:Y([b(d).be("panel","btn"),"cancel"]),onClick:C},We(b(h)("el.datepicker.cancel")),3),R("button",{type:"button",class:Y([b(d).be("panel","btn"),"confirm"]),onClick:V[0]||(V[0]=z=>_())},We(b(h)("el.datepicker.confirm")),3)],2)],2)):_e("v-if",!0)]),_:1},8,["name"]))}});var f2=tt(uLe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-picker/src/time-picker-com/panel-time-pick.vue"]]);const cLe=nt({...Mq,parsedValue:{type:ke(Array)}}),fLe=["disabled"],dLe=ye({__name:"panel-time-range",props:cLe,emits:["pick","select-range","set-picker-option"],setup(t,{emit:e}){const n=t,r=(he,ee)=>{const ue=[];for(let fe=he;fe<=ee;fe++)ue.push(fe);return ue},{t:a,lang:i}=En(),o=Ye("time"),s=Ye("picker"),l=yt("EP_PICKER_BASE"),{arrowControl:u,disabledHours:c,disabledMinutes:f,disabledSeconds:d,defaultValue:h}=l.props,p=U(()=>[o.be("range-picker","body"),o.be("panel","content"),o.is("arrow",u),w.value?"has-seconds":""]),v=U(()=>[o.be("range-picker","body"),o.be("panel","content"),o.is("arrow",u),w.value?"has-seconds":""]),g=U(()=>n.parsedValue[0]),y=U(()=>n.parsedValue[1]),m=Lq(n),S=()=>{e("pick",m.value,!1)},w=U(()=>n.format.includes("ss")),C=U(()=>n.format.includes("A")?"A":n.format.includes("a")?"a":""),_=(he=!1)=>{e("pick",[g.value,y.value],he)},x=he=>{E(he.millisecond(0),y.value)},T=he=>{E(g.value,he.millisecond(0))},M=he=>{const ee=he.map(fe=>Jt(fe).locale(i.value)),ue=K(ee);return ee[0].isSame(ue[0])&&ee[1].isSame(ue[1])},E=(he,ee)=>{e("pick",[he,ee],!0)},A=U(()=>g.value>y.value),k=B([0,2]),L=(he,ee)=>{e("select-range",he,ee,"min"),k.value=[he,ee]},I=U(()=>w.value?11:8),P=(he,ee)=>{e("select-range",he,ee,"max");const ue=b(I);k.value=[he+ue,ee+ue]},F=he=>{const ee=w.value?[0,3,6,11,14,17]:[0,3,8,11],ue=["hours","minutes"].concat(w.value?["seconds"]:[]),Re=(ee.indexOf(k.value[0])+he+ee.length)%ee.length,Ne=ee.length/2;Re<Ne?ie.start_emitSelectRange(ue[Re]):ie.end_emitSelectRange(ue[Re-Ne])},$=he=>{const ee=he.code,{left:ue,right:fe,up:Re,down:Ne}=Dt;if([ue,fe].includes(ee)){F(ee===ue?-1:1),he.preventDefault();return}if([Re,Ne].includes(ee)){const De=ee===Re?-1:1,we=k.value[0]<I.value?"start":"end";ie[`${we}_scrollDown`](De),he.preventDefault();return}},W=(he,ee)=>{const ue=c?c(he):[],fe=he==="start",Ne=(ee||(fe?y.value:g.value)).hour(),De=fe?r(Ne+1,23):r(0,Ne-1);return _M(ue,De)},V=(he,ee,ue)=>{const fe=f?f(he,ee):[],Re=ee==="start",Ne=ue||(Re?y.value:g.value),De=Ne.hour();if(he!==De)return fe;const we=Ne.minute(),ae=Re?r(we+1,59):r(0,we-1);return _M(fe,ae)},z=(he,ee,ue,fe)=>{const Re=d?d(he,ee,ue):[],Ne=ue==="start",De=fe||(Ne?y.value:g.value),we=De.hour(),ae=De.minute();if(he!==we||ee!==ae)return Re;const Ie=De.second(),He=Ne?r(Ie+1,59):r(0,Ie-1);return _M(Re,He)},K=([he,ee])=>[Q(he,"start",!0,ee),Q(ee,"end",!1,he)],{getAvailableHours:Z,getAvailableMinutes:oe,getAvailableSeconds:ge}=Rq(W,V,z),{timePickerOptions:ie,getAvailableTime:Q,onSetOption:ce}=Aq({getAvailableHours:Z,getAvailableMinutes:oe,getAvailableSeconds:ge}),se=he=>he?gt(he)?he.map(ee=>Jt(ee,n.format).locale(i.value)):Jt(he,n.format).locale(i.value):null,me=he=>he?gt(he)?he.map(ee=>ee.format(n.format)):he.format(n.format):null,ve=()=>{if(gt(h))return h.map(ee=>Jt(ee).locale(i.value));const he=Jt(h).locale(i.value);return[he,he.add(60,"m")]};return e("set-picker-option",["formatToString",me]),e("set-picker-option",["parseUserInput",se]),e("set-picker-option",["isValidValue",M]),e("set-picker-option",["handleKeydownInput",$]),e("set-picker-option",["getDefaultValue",ve]),e("set-picker-option",["getRangeAvailableTime",K]),(he,ee)=>he.actualVisible?(G(),re("div",{key:0,class:Y([b(o).b("range-picker"),b(s).b("panel")])},[R("div",{class:Y(b(o).be("range-picker","content"))},[R("div",{class:Y(b(o).be("range-picker","cell"))},[R("div",{class:Y(b(o).be("range-picker","header"))},We(b(a)("el.datepicker.startTime")),3),R("div",{class:Y(b(p))},[N(jR,{ref:"minSpinner",role:"start","show-seconds":b(w),"am-pm-mode":b(C),"arrow-control":b(u),"spinner-date":b(g),"disabled-hours":W,"disabled-minutes":V,"disabled-seconds":z,onChange:x,onSetOption:b(ce),onSelectRange:L},null,8,["show-seconds","am-pm-mode","arrow-control","spinner-date","onSetOption"])],2)],2),R("div",{class:Y(b(o).be("range-picker","cell"))},[R("div",{class:Y(b(o).be("range-picker","header"))},We(b(a)("el.datepicker.endTime")),3),R("div",{class:Y(b(v))},[N(jR,{ref:"maxSpinner",role:"end","show-seconds":b(w),"am-pm-mode":b(C),"arrow-control":b(u),"spinner-date":b(y),"disabled-hours":W,"disabled-minutes":V,"disabled-seconds":z,onChange:T,onSetOption:b(ce),onSelectRange:P},null,8,["show-seconds","am-pm-mode","arrow-control","spinner-date","onSetOption"])],2)],2)],2),R("div",{class:Y(b(o).be("panel","footer"))},[R("button",{type:"button",class:Y([b(o).be("panel","btn"),"cancel"]),onClick:ee[0]||(ee[0]=ue=>S())},We(b(a)("el.datepicker.cancel")),3),R("button",{type:"button",class:Y([b(o).be("panel","btn"),"confirm"]),disabled:b(A),onClick:ee[1]||(ee[1]=ue=>_())},We(b(a)("el.datepicker.confirm")),11,fLe)],2)],2)):_e("v-if",!0)}});var hLe=tt(dLe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-picker/src/time-picker-com/panel-time-range.vue"]]);Jt.extend(uV);var pLe=ye({name:"ElTimePicker",install:null,props:{...cV,isRange:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,e){const n=B(),[r,a]=t.isRange?["timerange",hLe]:["time",f2],i=o=>e.emit("update:modelValue",o);return fn("ElPopperOptions",t.popperOptions),e.expose({focus:o=>{var s;(s=n.value)==null||s.handleFocusInput(o)},blur:o=>{var s;(s=n.value)==null||s.handleBlurInput(o)},handleOpen:()=>{var o;(o=n.value)==null||o.handleOpen()},handleClose:()=>{var o;(o=n.value)==null||o.handleClose()}}),()=>{var o;const s=(o=t.format)!=null?o:IR;return N(Dq,an(t,{ref:n,type:r,format:s,"onUpdate:modelValue":i}),{default:l=>N(a,l,null)})}}});const Qx=pLe;Qx.install=t=>{t.component(Qx.name,Qx)};const vLe=Qx,gLe=(t,e)=>{const n=t.subtract(1,"month").endOf("month").date();return kf(e).map((r,a)=>n-(e-a-1))},yLe=t=>{const e=t.daysInMonth();return kf(e).map((n,r)=>r+1)},mLe=t=>kf(t.length/7).map(e=>{const n=e*7;return t.slice(n,n+7)}),bLe=nt({selectedDay:{type:ke(Object)},range:{type:ke(Array)},date:{type:ke(Object),required:!0},hideHeader:{type:Boolean}}),SLe={pick:t=>un(t)};var Fq={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(ya,function(){return function(n,r,a){var i=r.prototype,o=function(f){return f&&(f.indexOf?f:f.s)},s=function(f,d,h,p,v){var g=f.name?f:f.$locale(),y=o(g[d]),m=o(g[h]),S=y||m.map(function(C){return C.slice(0,p)});if(!v)return S;var w=g.weekStart;return S.map(function(C,_){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(p,v,g){return v||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)}}})})(Fq);var wLe=Fq.exports;const zq=xi(wLe),xLe=(t,e)=>{Jt.extend(zq);const n=Jt.localeData().firstDayOfWeek(),{t:r,lang:a}=En(),i=Jt().locale(a.value),o=U(()=>!!t.range&&!!t.range.length),s=U(()=>{let d=[];if(o.value){const[h,p]=t.range,v=kf(p.date()-h.date()+1).map(m=>({text:h.date()+m,type:"current"}));let g=v.length%7;g=g===0?0:7-g;const y=kf(g).map((m,S)=>({text:S+1,type:"next"}));d=v.concat(y)}else{const h=t.date.startOf("month").day(),p=gLe(t.date,(h-n+7)%7).map(m=>({text:m,type:"prev"})),v=yLe(t.date).map(m=>({text:m,type:"current"}));d=[...p,...v];const g=7-(d.length%7||7),y=kf(g).map((m,S)=>({text:S+1,type:"next"}));d=d.concat(y)}return mLe(d)}),l=U(()=>{const d=n;return d===0?CM.map(h=>r(`el.datepicker.weeks.${h}`)):CM.slice(d).concat(CM.slice(0,d)).map(h=>r(`el.datepicker.weeks.${h}`))}),u=(d,h)=>{switch(h){case"prev":return t.date.startOf("month").subtract(1,"month").date(d);case"next":return t.date.startOf("month").add(1,"month").date(d);case"current":return t.date.date(d)}};return{now:i,isInRange:o,rows:s,weekDays:l,getFormattedDate:u,handlePickDay:({text:d,type:h})=>{const p=u(d,h);e("pick",p)},getSlotData:({text:d,type:h})=>{const p=u(d,h);return{isSelected:p.isSame(t.selectedDay),type:`${h}-month`,day:p.format("YYYY-MM-DD"),date:p.toDate()}}}},_Le={key:0},CLe=["onClick"],TLe=ye({name:"DateTable"}),ELe=ye({...TLe,props:bLe,emits:SLe,setup(t,{expose:e,emit:n}){const r=t,{isInRange:a,now:i,rows:o,weekDays:s,getFormattedDate:l,handlePickDay:u,getSlotData:c}=xLe(r,n),f=Ye("calendar-table"),d=Ye("calendar-day"),h=({text:p,type:v})=>{const g=[v];if(v==="current"){const y=l(p,v);y.isSame(r.selectedDay,"day")&&g.push(d.is("selected")),y.isSame(i,"day")&&g.push(d.is("today"))}return g};return e({getFormattedDate:l}),(p,v)=>(G(),re("table",{class:Y([b(f).b(),b(f).is("range",b(a))]),cellspacing:"0",cellpadding:"0"},[p.hideHeader?_e("v-if",!0):(G(),re("thead",_Le,[(G(!0),re(Ct,null,dn(b(s),g=>(G(),re("th",{key:g},We(g),1))),128))])),R("tbody",null,[(G(!0),re(Ct,null,dn(b(o),(g,y)=>(G(),re("tr",{key:y,class:Y({[b(f).e("row")]:!0,[b(f).em("row","hide-border")]:y===0&&p.hideHeader})},[(G(!0),re(Ct,null,dn(g,(m,S)=>(G(),re("td",{key:S,class:Y(h(m)),onClick:w=>b(u)(m)},[R("div",{class:Y(b(d).b())},[Ge(p.$slots,"date-cell",{data:b(c)(m)},()=>[R("span",null,We(m.text),1)])],2)],10,CLe))),128))],2))),128))])],2))}});var U5=tt(ELe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/calendar/src/date-table.vue"]]);const MLe=(t,e)=>{const n=t.endOf("month"),r=e.startOf("month"),i=n.isSame(r,"week")?r.add(1,"week"):r;return[[t,n],[i.startOf("week"),e]]},DLe=(t,e)=>{const n=t.endOf("month"),r=t.add(1,"month").startOf("month"),a=n.isSame(r,"week")?r.add(1,"week"):r,i=a.endOf("month"),o=e.startOf("month"),s=i.isSame(o,"week")?o.add(1,"week"):o;return[[t,n],[a.startOf("week"),i],[s.startOf("week"),e]]},ALe=(t,e,n)=>{const r=wi(),{lang:a}=En(),i=B(),o=Jt().locale(a.value),s=U({get(){return t.modelValue?u.value:i.value},set(y){if(!y)return;i.value=y;const m=y.toDate();e(Ji,m),e(nn,m)}}),l=U(()=>{if(!t.range)return[];const y=t.range.map(w=>Jt(w).locale(a.value)),[m,S]=y;return m.isAfter(S)?[]:m.isSame(S,"month")?p(m,S):m.add(1,"month").month()!==S.month()?[]:p(m,S)}),u=U(()=>t.modelValue?Jt(t.modelValue).locale(a.value):s.value||(l.value.length?l.value[0][0]:o)),c=U(()=>u.value.subtract(1,"month").date(1)),f=U(()=>u.value.add(1,"month").date(1)),d=U(()=>u.value.subtract(1,"year").date(1)),h=U(()=>u.value.add(1,"year").date(1)),p=(y,m)=>{const S=y.startOf("week"),w=m.endOf("week"),C=S.get("month"),_=w.get("month");return C===_?[[S,w]]:(C+1)%12===_?MLe(S,w):C+2===_||(C+1)%11===_?DLe(S,w):[]},v=y=>{s.value=y},g=y=>{const S={"prev-month":c.value,"next-month":f.value,"prev-year":d.value,"next-year":h.value,today:o}[y];S.isSame(u.value,"day")||v(S)};return fu({from:'"dateCell"',replacement:'"date-cell"',scope:"ElCalendar",version:"2.3.0",ref:"https://element-plus.org/en-US/component/calendar.html#slots",type:"Slot"},U(()=>!!r.dateCell)),{calculateValidatedDateRange:p,date:u,realSelectedDay:s,pickDay:v,selectDate:g,validatedRange:l}},kLe=t=>gt(t)&&t.length===2&&t.every(e=>fp(e)),RLe=nt({modelValue:{type:Date},range:{type:ke(Array),validator:kLe}}),LLe={[nn]:t=>fp(t),[Ji]:t=>fp(t)},OLe="ElCalendar",VLe=ye({name:OLe}),NLe=ye({...VLe,props:RLe,emits:LLe,setup(t,{expose:e,emit:n}){const r=t,a=Ye("calendar"),{calculateValidatedDateRange:i,date:o,pickDay:s,realSelectedDay:l,selectDate:u,validatedRange:c}=ALe(r,n),{t:f}=En(),d=U(()=>{const h=`el.datepicker.month${o.value.format("M")}`;return`${o.value.year()} ${f("el.datepicker.year")} ${f(h)}`});return e({selectedDay:l,pickDay:s,selectDate:u,calculateValidatedDateRange:i}),(h,p)=>(G(),re("div",{class:Y(b(a).b())},[R("div",{class:Y(b(a).e("header"))},[Ge(h.$slots,"header",{date:b(d)},()=>[R("div",{class:Y(b(a).e("title"))},We(b(d)),3),b(c).length===0?(G(),re("div",{key:0,class:Y(b(a).e("button-group"))},[N(b(wq),null,{default:j(()=>[N(b(ct),{size:"small",onClick:p[0]||(p[0]=v=>b(u)("prev-month"))},{default:j(()=>[Be(We(b(f)("el.datepicker.prevMonth")),1)]),_:1}),N(b(ct),{size:"small",onClick:p[1]||(p[1]=v=>b(u)("today"))},{default:j(()=>[Be(We(b(f)("el.datepicker.today")),1)]),_:1}),N(b(ct),{size:"small",onClick:p[2]||(p[2]=v=>b(u)("next-month"))},{default:j(()=>[Be(We(b(f)("el.datepicker.nextMonth")),1)]),_:1})]),_:1})],2)):_e("v-if",!0)])],2),b(c).length===0?(G(),re("div",{key:0,class:Y(b(a).e("body"))},[N(U5,{date:b(o),"selected-day":b(l),onPick:b(s)},ic({_:2},[h.$slots["date-cell"]||h.$slots.dateCell?{name:"date-cell",fn:j(v=>[h.$slots["date-cell"]?Ge(h.$slots,"date-cell",rl(an({key:0},v))):Ge(h.$slots,"dateCell",rl(an({key:1},v)))])}:void 0]),1032,["date","selected-day","onPick"])],2)):(G(),re("div",{key:1,class:Y(b(a).e("body"))},[(G(!0),re(Ct,null,dn(b(c),(v,g)=>(G(),Ee(U5,{key:g,date:v[0],"selected-day":b(l),range:v,"hide-header":g!==0,onPick:b(s)},ic({_:2},[h.$slots["date-cell"]||h.$slots.dateCell?{name:"date-cell",fn:j(y=>[h.$slots["date-cell"]?Ge(h.$slots,"date-cell",rl(an({key:0},y))):Ge(h.$slots,"dateCell",rl(an({key:1},y)))])}:void 0]),1032,["date","selected-day","range","hide-header","onPick"]))),128))],2))],2))}});var ILe=tt(NLe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/calendar/src/calendar.vue"]]);const BLe=tn(ILe),$Le=nt({header:{type:String,default:""},bodyStyle:{type:ke([String,Object,Array]),default:""},bodyClass:String,shadow:{type:String,values:["always","hover","never"],default:"always"}}),PLe=ye({name:"ElCard"}),FLe=ye({...PLe,props:$Le,setup(t){const e=Ye("card");return(n,r)=>(G(),re("div",{class:Y([b(e).b(),b(e).is(`${n.shadow}-shadow`)])},[n.$slots.header||n.header?(G(),re("div",{key:0,class:Y(b(e).e("header"))},[Ge(n.$slots,"header",{},()=>[Be(We(n.header),1)])],2)):_e("v-if",!0),R("div",{class:Y([b(e).e("body"),n.bodyClass]),style:Et(n.bodyStyle)},[Ge(n.$slots,"default")],6)],2))}});var zLe=tt(FLe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/card/src/card.vue"]]);const ULe=tn(zLe),GLe=nt({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}}),HLe={change:(t,e)=>[t,e].every(Pt)},Uq=Symbol("carouselContextKey"),G5=300,WLe=(t,e,n)=>{const{children:r,addChild:a,removeChild:i}=rV(Qt(),"ElCarouselItem"),o=B(-1),s=B(null),l=B(!1),u=B(),c=B(0),f=U(()=>t.arrow!=="never"&&!b(p)),d=U(()=>r.value.some(V=>V.props.label.toString().length>0)),h=U(()=>t.type==="card"),p=U(()=>t.direction==="vertical"),v=U(()=>t.height!=="auto"?{height:t.height}:{height:`${c.value}px`,overflow:"hidden"}),g=Xh(V=>{C(V)},G5,{trailing:!0}),y=Xh(V=>{L(V)},G5);function m(){s.value&&(clearInterval(s.value),s.value=null)}function S(){t.interval<=0||!t.autoplay||s.value||(s.value=setInterval(()=>w(),t.interval))}const w=()=>{o.value<r.value.length-1?o.value=o.value+1:t.loop&&(o.value=0)};function C(V){if(Ht(V)){const Z=r.value.filter(oe=>oe.props.name===V);Z.length>0&&(V=r.value.indexOf(Z[0]))}if(V=Number(V),Number.isNaN(V)||V!==Math.floor(V))return;const z=r.value.length,K=o.value;V<0?o.value=t.loop?z-1:0:V>=z?o.value=t.loop?0:z-1:o.value=V,K===o.value&&_(K),F()}function _(V){r.value.forEach((z,K)=>{z.translateItem(K,o.value,V)})}function x(V,z){var K,Z,oe,ge;const ie=b(r),Q=ie.length;if(Q===0||!V.states.inStage)return!1;const ce=z+1,se=z-1,me=Q-1,ve=ie[me].states.active,he=ie[0].states.active,ee=(Z=(K=ie[ce])==null?void 0:K.states)==null?void 0:Z.active,ue=(ge=(oe=ie[se])==null?void 0:oe.states)==null?void 0:ge.active;return z===me&&he||ee?"left":z===0&&ve||ue?"right":!1}function T(){l.value=!0,t.pauseOnHover&&m()}function M(){l.value=!1,S()}function E(V){b(p)||r.value.forEach((z,K)=>{V===x(z,K)&&(z.states.hover=!0)})}function A(){b(p)||r.value.forEach(V=>{V.states.hover=!1})}function k(V){o.value=V}function L(V){t.trigger==="hover"&&V!==o.value&&(o.value=V)}function I(){C(o.value-1)}function P(){C(o.value+1)}function F(){m(),S()}function $(V){t.height==="auto"&&(c.value=V)}Ke(()=>o.value,(V,z)=>{_(z),z>-1&&e("change",V,z)}),Ke(()=>t.autoplay,V=>{V?S():m()}),Ke(()=>t.loop,()=>{C(o.value)}),Ke(()=>t.interval,()=>{F()}),Ke(()=>r.value,()=>{r.value.length>0&&C(t.initialIndex)});const W=vr();return Ut(()=>{W.value=Vi(u.value,()=>{_()}),S()}),Sr(()=>{m(),u.value&&W.value&&W.value.stop()}),fn(Uq,{root:u,isCardType:h,isVertical:p,items:r,loop:t.loop,addItem:a,removeItem:i,setActiveItem:C,setContainerHeight:$}),{root:u,activeIndex:o,arrowDisplay:f,hasLabel:d,hover:l,isCardType:h,items:r,isVertical:p,containerStyle:v,handleButtonEnter:E,handleButtonLeave:A,handleIndicatorClick:k,handleMouseEnter:T,handleMouseLeave:M,setActiveItem:C,prev:I,next:P,throttledArrowClick:g,throttledIndicatorHover:y}},jLe=["onMouseenter","onClick"],KLe={key:0},YLe="ElCarousel",XLe=ye({name:YLe}),qLe=ye({...XLe,props:GLe,emits:HLe,setup(t,{expose:e,emit:n}){const r=t,{root:a,activeIndex:i,arrowDisplay:o,hasLabel:s,hover:l,isCardType:u,items:c,isVertical:f,containerStyle:d,handleButtonEnter:h,handleButtonLeave:p,handleIndicatorClick:v,handleMouseEnter:g,handleMouseLeave:y,setActiveItem:m,prev:S,next:w,throttledArrowClick:C,throttledIndicatorHover:_}=WLe(r,n),x=Ye("carousel"),T=U(()=>{const E=[x.b(),x.m(r.direction)];return b(u)&&E.push(x.m("card")),E}),M=U(()=>{const E=[x.e("indicators"),x.em("indicators",r.direction)];return b(s)&&E.push(x.em("indicators","labels")),r.indicatorPosition==="outside"&&E.push(x.em("indicators","outside")),b(f)&&E.push(x.em("indicators","right")),E});return e({setActiveItem:m,prev:S,next:w}),(E,A)=>(G(),re("div",{ref_key:"root",ref:a,class:Y(b(T)),onMouseenter:A[6]||(A[6]=It((...k)=>b(g)&&b(g)(...k),["stop"])),onMouseleave:A[7]||(A[7]=It((...k)=>b(y)&&b(y)(...k),["stop"]))},[R("div",{class:Y(b(x).e("container")),style:Et(b(d))},[b(o)?(G(),Ee(da,{key:0,name:"carousel-arrow-left",persisted:""},{default:j(()=>[Ft(R("button",{type:"button",class:Y([b(x).e("arrow"),b(x).em("arrow","left")]),onMouseenter:A[0]||(A[0]=k=>b(h)("left")),onMouseleave:A[1]||(A[1]=(...k)=>b(p)&&b(p)(...k)),onClick:A[2]||(A[2]=It(k=>b(C)(b(i)-1),["stop"]))},[N(b(_t),null,{default:j(()=>[N(b(sc))]),_:1})],34),[[cn,(E.arrow==="always"||b(l))&&(r.loop||b(i)>0)]])]),_:1})):_e("v-if",!0),b(o)?(G(),Ee(da,{key:1,name:"carousel-arrow-right",persisted:""},{default:j(()=>[Ft(R("button",{type:"button",class:Y([b(x).e("arrow"),b(x).em("arrow","right")]),onMouseenter:A[3]||(A[3]=k=>b(h)("right")),onMouseleave:A[4]||(A[4]=(...k)=>b(p)&&b(p)(...k)),onClick:A[5]||(A[5]=It(k=>b(C)(b(i)+1),["stop"]))},[N(b(_t),null,{default:j(()=>[N(b(Li))]),_:1})],34),[[cn,(E.arrow==="always"||b(l))&&(r.loop||b(i)<b(c).length-1)]])]),_:1})):_e("v-if",!0),Ge(E.$slots,"default")],6),E.indicatorPosition!=="none"?(G(),re("ul",{key:0,class:Y(b(M))},[(G(!0),re(Ct,null,dn(b(c),(k,L)=>(G(),re("li",{key:L,class:Y([b(x).e("indicator"),b(x).em("indicator",E.direction),b(x).is("active",L===b(i))]),onMouseenter:I=>b(_)(L),onClick:It(I=>b(v)(L),["stop"])},[R("button",{class:Y(b(x).e("button"))},[b(s)?(G(),re("span",KLe,We(k.props.label),1)):_e("v-if",!0)],2)],42,jLe))),128))],2)):_e("v-if",!0)],34))}});var ZLe=tt(qLe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/carousel/src/carousel.vue"]]);const QLe=nt({name:{type:String,default:""},label:{type:[String,Number],default:""}}),JLe=(t,e)=>{const n=yt(Uq),r=Qt(),a=.83,i=B(),o=B(!1),s=B(0),l=B(1),u=B(!1),c=B(!1),f=B(!1),d=B(!1),{isCardType:h,isVertical:p}=n;function v(w,C,_){const x=_-1,T=C-1,M=C+1,E=_/2;return C===0&&w===x?-1:C===x&&w===0?_:w<T&&C-w>=E?_+1:w>M&&w-C>=E?-2:w}function g(w,C){var _,x;const T=b(p)?((_=n.root.value)==null?void 0:_.offsetHeight)||0:((x=n.root.value)==null?void 0:x.offsetWidth)||0;return f.value?T*((2-a)*(w-C)+1)/4:w<C?-(1+a)*T/4:(3+a)*T/4}function y(w,C,_){const x=n.root.value;return x?((_?x.offsetHeight:x.offsetWidth)||0)*(w-C):0}const m=(w,C,_)=>{var x;const T=b(h),M=(x=n.items.value.length)!=null?x:Number.NaN,E=w===C;!T&&!Na(_)&&(d.value=E||w===_),!E&&M>2&&n.loop&&(w=v(w,C,M));const A=b(p);u.value=E,T?(f.value=Math.round(Math.abs(w-C))<=1,s.value=g(w,C),l.value=b(u)?1:a):s.value=y(w,C,A),c.value=!0,E&&i.value&&n.setContainerHeight(i.value.offsetHeight)};function S(){if(n&&b(h)){const w=n.items.value.findIndex(({uid:C})=>C===r.uid);n.setActiveItem(w)}}return Ut(()=>{n.addItem({props:t,states:Vn({hover:o,translate:s,scale:l,active:u,ready:c,inStage:f,animating:d}),uid:r.uid,translateItem:m})}),bu(()=>{n.removeItem(r.uid)}),{carouselItemRef:i,active:u,animating:d,hover:o,inStage:f,isVertical:p,translate:s,isCardType:h,scale:l,ready:c,handleItemClick:S}},eOe=ye({name:"ElCarouselItem"}),tOe=ye({...eOe,props:QLe,setup(t){const e=t,n=Ye("carousel"),{carouselItemRef:r,active:a,animating:i,hover:o,inStage:s,isVertical:l,translate:u,isCardType:c,scale:f,ready:d,handleItemClick:h}=JLe(e),p=U(()=>{const g=`${`translate${b(l)?"Y":"X"}`}(${b(u)}px)`,y=`scale(${b(f)})`;return{transform:[g,y].join(" ")}});return(v,g)=>Ft((G(),re("div",{ref_key:"carouselItemRef",ref:r,class:Y([b(n).e("item"),b(n).is("active",b(a)),b(n).is("in-stage",b(s)),b(n).is("hover",b(o)),b(n).is("animating",b(i)),{[b(n).em("item","card")]:b(c),[b(n).em("item","card-vertical")]:b(c)&&b(l)}]),style:Et(b(p)),onClick:g[0]||(g[0]=(...y)=>b(h)&&b(h)(...y))},[b(c)?Ft((G(),re("div",{key:0,class:Y(b(n).e("mask"))},null,2)),[[cn,!b(a)]]):_e("v-if",!0),Ge(v.$slots,"default")],6)),[[cn,b(d)]])}});var Gq=tt(tOe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/carousel/src/carousel-item.vue"]]);const nOe=tn(ZLe,{CarouselItem:Gq}),rOe=ta(Gq),Hq={modelValue:{type:[Number,String,Boolean],default:void 0},label:{type:[String,Boolean,Number,Object]},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:yi,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0}},Wq={[nn]:t=>Ht(t)||Pt(t)||Ea(t),change:t=>Ht(t)||Pt(t)||Ea(t)},b0=Symbol("checkboxGroupContextKey"),aOe=({model:t,isChecked:e})=>{const n=yt(b0,void 0),r=U(()=>{var i,o;const s=(i=n==null?void 0:n.max)==null?void 0:i.value,l=(o=n==null?void 0:n.min)==null?void 0:o.value;return!Na(s)&&t.value.length>=s&&!e.value||!Na(l)&&t.value.length<=l&&e.value});return{isDisabled:Ro(U(()=>(n==null?void 0:n.disabled.value)||r.value)),isLimitDisabled:r}},iOe=(t,{model:e,isLimitExceeded:n,hasOwnLabel:r,isDisabled:a,isLabeledByFormItem:i})=>{const o=yt(b0,void 0),{formItem:s}=uo(),{emit:l}=Qt();function u(p){var v,g;return p===t.trueLabel||p===!0?(v=t.trueLabel)!=null?v:!0:(g=t.falseLabel)!=null?g:!1}function c(p,v){l("change",u(p),v)}function f(p){if(n.value)return;const v=p.target;l("change",u(v.checked),p)}async function d(p){n.value||!r.value&&!a.value&&i.value&&(p.composedPath().some(y=>y.tagName==="LABEL")||(e.value=u([!1,t.falseLabel].includes(e.value)),await xt(),c(e.value,p)))}const h=U(()=>(o==null?void 0:o.validateEvent)||t.validateEvent);return Ke(()=>t.modelValue,()=>{h.value&&(s==null||s.validate("change").catch(p=>void 0))}),{handleChange:f,onClickRoot:d}},oOe=t=>{const e=B(!1),{emit:n}=Qt(),r=yt(b0,void 0),a=U(()=>Na(r)===!1),i=B(!1);return{model:U({get(){var s,l;return a.value?(s=r==null?void 0:r.modelValue)==null?void 0:s.value:(l=t.modelValue)!=null?l:e.value},set(s){var l,u;a.value&&gt(s)?(i.value=((l=r==null?void 0:r.max)==null?void 0:l.value)!==void 0&&s.length>(r==null?void 0:r.max.value),i.value===!1&&((u=r==null?void 0:r.changeEvent)==null||u.call(r,s))):(n(nn,s),e.value=s)}}),isGroup:a,isLimitExceeded:i}},sOe=(t,e,{model:n})=>{const r=yt(b0,void 0),a=B(!1),i=U(()=>{const u=n.value;return Ea(u)?u:gt(u)?un(t.label)?u.map(Wn).some(c=>To(c,t.label)):u.map(Wn).includes(t.label):u!=null?u===t.trueLabel:!!u}),o=Aa(U(()=>{var u;return(u=r==null?void 0:r.size)==null?void 0:u.value}),{prop:!0}),s=Aa(U(()=>{var u;return(u=r==null?void 0:r.size)==null?void 0:u.value})),l=U(()=>!!(e.default||t.label));return{checkboxButtonSize:o,isChecked:i,isFocused:a,checkboxSize:s,hasOwnLabel:l}},lOe=(t,{model:e})=>{function n(){gt(e.value)&&!e.value.includes(t.label)?e.value.push(t.label):e.value=t.trueLabel||!0}t.checked&&n()},jq=(t,e)=>{const{formItem:n}=uo(),{model:r,isGroup:a,isLimitExceeded:i}=oOe(t),{isFocused:o,isChecked:s,checkboxButtonSize:l,checkboxSize:u,hasOwnLabel:c}=sOe(t,e,{model:r}),{isDisabled:f}=aOe({model:r,isChecked:s}),{inputId:d,isLabeledByFormItem:h}=ld(t,{formItemContext:n,disableIdGeneration:c,disableIdManagement:a}),{handleChange:p,onClickRoot:v}=iOe(t,{model:r,isLimitExceeded:i,hasOwnLabel:c,isDisabled:f,isLabeledByFormItem:h});return lOe(t,{model:r}),{inputId:d,isLabeledByFormItem:h,isChecked:s,isDisabled:f,isFocused:o,checkboxButtonSize:l,checkboxSize:u,hasOwnLabel:c,model:r,handleChange:p,onClickRoot:v}},uOe=["tabindex","role","aria-checked"],cOe=["id","aria-hidden","name","tabindex","disabled","true-value","false-value"],fOe=["id","aria-hidden","disabled","value","name","tabindex"],dOe=ye({name:"ElCheckbox"}),hOe=ye({...dOe,props:Hq,emits:Wq,setup(t){const e=t,n=wi(),{inputId:r,isLabeledByFormItem:a,isChecked:i,isDisabled:o,isFocused:s,checkboxSize:l,hasOwnLabel:u,model:c,handleChange:f,onClickRoot:d}=jq(e,n),h=Ye("checkbox"),p=U(()=>[h.b(),h.m(l.value),h.is("disabled",o.value),h.is("bordered",e.border),h.is("checked",i.value)]),v=U(()=>[h.e("input"),h.is("disabled",o.value),h.is("checked",i.value),h.is("indeterminate",e.indeterminate),h.is("focus",s.value)]);return(g,y)=>(G(),Ee(on(!b(u)&&b(a)?"span":"label"),{class:Y(b(p)),"aria-controls":g.indeterminate?g.controls:null,onClick:b(d)},{default:j(()=>[R("span",{class:Y(b(v)),tabindex:g.indeterminate?0:void 0,role:g.indeterminate?"checkbox":void 0,"aria-checked":g.indeterminate?"mixed":void 0},[g.trueLabel||g.falseLabel?Ft((G(),re("input",{key:0,id:b(r),"onUpdate:modelValue":y[0]||(y[0]=m=>ft(c)?c.value=m:null),class:Y(b(h).e("original")),type:"checkbox","aria-hidden":g.indeterminate?"true":"false",name:g.name,tabindex:g.tabindex,disabled:b(o),"true-value":g.trueLabel,"false-value":g.falseLabel,onChange:y[1]||(y[1]=(...m)=>b(f)&&b(f)(...m)),onFocus:y[2]||(y[2]=m=>s.value=!0),onBlur:y[3]||(y[3]=m=>s.value=!1),onClick:y[4]||(y[4]=It(()=>{},["stop"]))},null,42,cOe)),[[e2,b(c)]]):Ft((G(),re("input",{key:1,id:b(r),"onUpdate:modelValue":y[5]||(y[5]=m=>ft(c)?c.value=m:null),class:Y(b(h).e("original")),type:"checkbox","aria-hidden":g.indeterminate?"true":"false",disabled:b(o),value:g.label,name:g.name,tabindex:g.tabindex,onChange:y[6]||(y[6]=(...m)=>b(f)&&b(f)(...m)),onFocus:y[7]||(y[7]=m=>s.value=!0),onBlur:y[8]||(y[8]=m=>s.value=!1),onClick:y[9]||(y[9]=It(()=>{},["stop"]))},null,42,fOe)),[[e2,b(c)]]),R("span",{class:Y(b(h).e("inner"))},null,2)],10,uOe),b(u)?(G(),re("span",{key:0,class:Y(b(h).e("label"))},[Ge(g.$slots,"default"),g.$slots.default?_e("v-if",!0):(G(),re(Ct,{key:0},[Be(We(g.label),1)],64))],2)):_e("v-if",!0)]),_:3},8,["class","aria-controls","onClick"]))}});var pOe=tt(hOe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox.vue"]]);const vOe=["name","tabindex","disabled","true-value","false-value"],gOe=["name","tabindex","disabled","value"],yOe=ye({name:"ElCheckboxButton"}),mOe=ye({...yOe,props:Hq,emits:Wq,setup(t){const e=t,n=wi(),{isFocused:r,isChecked:a,isDisabled:i,checkboxButtonSize:o,model:s,handleChange:l}=jq(e,n),u=yt(b0,void 0),c=Ye("checkbox"),f=U(()=>{var h,p,v,g;const y=(p=(h=u==null?void 0:u.fill)==null?void 0:h.value)!=null?p:"";return{backgroundColor:y,borderColor:y,color:(g=(v=u==null?void 0:u.textColor)==null?void 0:v.value)!=null?g:"",boxShadow:y?`-1px 0 0 0 ${y}`:void 0}}),d=U(()=>[c.b("button"),c.bm("button",o.value),c.is("disabled",i.value),c.is("checked",a.value),c.is("focus",r.value)]);return(h,p)=>(G(),re("label",{class:Y(b(d))},[h.trueLabel||h.falseLabel?Ft((G(),re("input",{key:0,"onUpdate:modelValue":p[0]||(p[0]=v=>ft(s)?s.value=v:null),class:Y(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:p[1]||(p[1]=(...v)=>b(l)&&b(l)(...v)),onFocus:p[2]||(p[2]=v=>r.value=!0),onBlur:p[3]||(p[3]=v=>r.value=!1),onClick:p[4]||(p[4]=It(()=>{},["stop"]))},null,42,vOe)),[[e2,b(s)]]):Ft((G(),re("input",{key:1,"onUpdate:modelValue":p[5]||(p[5]=v=>ft(s)?s.value=v:null),class:Y(b(c).be("button","original")),type:"checkbox",name:h.name,tabindex:h.tabindex,disabled:b(i),value:h.label,onChange:p[6]||(p[6]=(...v)=>b(l)&&b(l)(...v)),onFocus:p[7]||(p[7]=v=>r.value=!0),onBlur:p[8]||(p[8]=v=>r.value=!1),onClick:p[9]||(p[9]=It(()=>{},["stop"]))},null,42,gOe)),[[e2,b(s)]]),h.$slots.default||h.label?(G(),re("span",{key:2,class:Y(b(c).be("button","inner")),style:Et(b(a)?b(f):void 0)},[Ge(h.$slots,"default",{},()=>[Be(We(h.label),1)])],6)):_e("v-if",!0)],2))}});var Kq=tt(mOe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox-button.vue"]]);const bOe=nt({modelValue:{type:ke(Array),default:()=>[]},disabled:Boolean,min:Number,max:Number,size:yi,label:String,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0}}),SOe={[nn]:t=>gt(t),change:t=>gt(t)},wOe=ye({name:"ElCheckboxGroup"}),xOe=ye({...wOe,props:bOe,emits:SOe,setup(t,{emit:e}){const n=t,r=Ye("checkbox"),{formItem:a}=uo(),{inputId:i,isLabeledByFormItem:o}=ld(n,{formItemContext:a}),s=async u=>{e(nn,u),await xt(),e("change",u)},l=U({get(){return n.modelValue},set(u){s(u)}});return fn(b0,{...ju(Wa(n),["size","min","max","disabled","validateEvent","fill","textColor"]),modelValue:l,changeEvent:s}),Ke(()=>n.modelValue,()=>{n.validateEvent&&(a==null||a.validate("change").catch(u=>void 0))}),(u,c)=>{var f;return G(),Ee(on(u.tag),{id:b(i),class:Y(b(r).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:j(()=>[Ge(u.$slots,"default")]),_:3},8,["id","class","aria-label","aria-labelledby"])}}});var Yq=tt(xOe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox-group.vue"]]);const Ms=tn(pOe,{CheckboxButton:Kq,CheckboxGroup:Yq}),_Oe=ta(Kq),Xq=ta(Yq),qq=nt({size:yi,disabled:Boolean,label:{type:[String,Number,Boolean],default:""}}),COe=nt({...qq,modelValue:{type:[String,Number,Boolean],default:""},name:{type:String,default:""},border:Boolean}),Zq={[nn]:t=>Ht(t)||Pt(t)||Ea(t),[Ar]:t=>Ht(t)||Pt(t)||Ea(t)},Qq=Symbol("radioGroupKey"),Jq=(t,e)=>{const n=B(),r=yt(Qq,void 0),a=U(()=>!!r),i=U({get(){return a.value?r.modelValue:t.modelValue},set(c){a.value?r.changeEvent(c):e&&e(nn,c),n.value.checked=t.modelValue===t.label}}),o=Aa(U(()=>r==null?void 0:r.size)),s=Ro(U(()=>r==null?void 0:r.disabled)),l=B(!1),u=U(()=>s.value||a.value&&i.value!==t.label?-1:0);return{radioRef:n,isGroup:a,radioGroup:r,focus:l,size:o,disabled:s,tabIndex:u,modelValue:i}},TOe=["value","name","disabled"],EOe=ye({name:"ElRadio"}),MOe=ye({...EOe,props:COe,emits:Zq,setup(t,{emit:e}){const n=t,r=Ye("radio"),{radioRef:a,radioGroup:i,focus:o,size:s,disabled:l,modelValue:u}=Jq(n,e);function c(){xt(()=>e("change",u.value))}return(f,d)=>{var h;return G(),re("label",{class:Y([b(r).b(),b(r).is("disabled",b(l)),b(r).is("focus",b(o)),b(r).is("bordered",f.border),b(r).is("checked",b(u)===f.label),b(r).m(b(s))])},[R("span",{class:Y([b(r).e("input"),b(r).is("disabled",b(l)),b(r).is("checked",b(u)===f.label)])},[Ft(R("input",{ref_key:"radioRef",ref:a,"onUpdate:modelValue":d[0]||(d[0]=p=>ft(u)?u.value=p:null),class:Y(b(r).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]=p=>o.value=!0),onBlur:d[2]||(d[2]=p=>o.value=!1),onChange:c,onClick:d[3]||(d[3]=It(()=>{},["stop"]))},null,42,TOe),[[CK,b(u)]]),R("span",{class:Y(b(r).e("inner"))},null,2)],2),R("span",{class:Y(b(r).e("label")),onKeydown:d[4]||(d[4]=It(()=>{},["stop"]))},[Ge(f.$slots,"default",{},()=>[Be(We(f.label),1)])],34)],2)}}});var DOe=tt(MOe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio.vue"]]);const AOe=nt({...qq,name:{type:String,default:""}}),kOe=["value","name","disabled"],ROe=ye({name:"ElRadioButton"}),LOe=ye({...ROe,props:AOe,setup(t){const e=t,n=Ye("radio"),{radioRef:r,focus:a,size:i,disabled:o,modelValue:s,radioGroup:l}=Jq(e),u=U(()=>({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 G(),re("label",{class:Y([b(n).b("button"),b(n).is("active",b(s)===c.label),b(n).is("disabled",b(o)),b(n).is("focus",b(a)),b(n).bm("button",b(i))])},[Ft(R("input",{ref_key:"radioRef",ref:r,"onUpdate:modelValue":f[0]||(f[0]=h=>ft(s)?s.value=h:null),class:Y(b(n).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,kOe),[[CK,b(s)]]),R("span",{class:Y(b(n).be("button","inner")),style:Et(b(s)===c.label?b(u):{}),onKeydown:f[4]||(f[4]=It(()=>{},["stop"]))},[Ge(c.$slots,"default",{},()=>[Be(We(c.label),1)])],38)],2)}}});var eZ=tt(LOe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio-button.vue"]]);const OOe=nt({id:{type:String,default:void 0},size:yi,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}}),VOe=Zq,NOe=["id","aria-label","aria-labelledby"],IOe=ye({name:"ElRadioGroup"}),BOe=ye({...IOe,props:OOe,emits:VOe,setup(t,{emit:e}){const n=t,r=Ye("radio"),a=Ts(),i=B(),{formItem:o}=uo(),{inputId:s,isLabeledByFormItem:l}=ld(n,{formItemContext:o}),u=f=>{e(nn,f),xt(()=>e("change",f))};Ut(()=>{const f=i.value.querySelectorAll("[type=radio]"),d=f[0];!Array.from(f).some(h=>h.checked)&&d&&(d.tabIndex=0)});const c=U(()=>n.name||a.value);return fn(Qq,Vn({...Wa(n),changeEvent:u,name:c})),Ke(()=>n.modelValue,()=>{n.validateEvent&&(o==null||o.validate("change").catch(f=>void 0))}),(f,d)=>(G(),re("div",{id:b(s),ref_key:"radioGroupRef",ref:i,class:Y(b(r).b("group")),role:"radiogroup","aria-label":b(l)?void 0:f.label||"radio-group","aria-labelledby":b(l)?b(o).labelId:void 0},[Ge(f.$slots,"default")],10,NOe))}});var tZ=tt(BOe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio-group.vue"]]);const nZ=tn(DOe,{RadioButton:eZ,RadioGroup:tZ}),$Oe=ta(tZ),POe=ta(eZ);var FOe=ye({name:"NodeContent",setup(){return{ns:Ye("cascader-node")}},render(){const{ns:t}=this,{node:e,panel:n}=this.$parent,{data:r,label:a}=e,{renderLabelFn:i}=n;return At("span",{class:t.e("label")},i?i({node:e,data:r}):a)}});const fV=Symbol(),zOe=ye({name:"ElCascaderNode",components:{ElCheckbox:Ms,ElRadio:nZ,NodeContent:FOe,ElIcon:_t,Check:Rb,Loading:id,ArrowRight:Li},props:{node:{type:Object,required:!0},menuId:String},emits:["expand"],setup(t,{emit:e}){const n=yt(fV),r=Ye("cascader-node"),a=U(()=>n.isHoverMenu),i=U(()=>n.config.multiple),o=U(()=>n.config.checkStrictly),s=U(()=>{var _;return(_=n.checkedNodes[0])==null?void 0:_.uid}),l=U(()=>t.node.isDisabled),u=U(()=>t.node.isLeaf),c=U(()=>o.value&&!u.value||!l.value),f=U(()=>h(n.expandingNode)),d=U(()=>o.value&&n.checkedNodes.some(h)),h=_=>{var x;const{level:T,uid:M}=t.node;return((x=_==null?void 0:_.pathNodes[T-1])==null?void 0:x.uid)===M},p=()=>{f.value||n.expandNode(t.node)},v=_=>{const{node:x}=t;_!==x.checked&&n.handleCheckChange(x,_)},g=()=>{n.lazyLoad(t.node,()=>{u.value||p()})},y=_=>{a.value&&(m(),!u.value&&e("expand",_))},m=()=>{const{node:_}=t;!c.value||_.loading||(_.loaded?p():g())},S=()=>{a.value&&!u.value||(u.value&&!l.value&&!o.value&&!i.value?C(!0):m())},w=_=>{o.value?(v(_),t.node.loaded&&p()):C(_)},C=_=>{t.node.loaded?(v(_),!o.value&&p()):g()};return{panel:n,isHoverMenu:a,multiple:i,checkStrictly:o,checkedNodeId:s,isDisabled:l,isLeaf:u,expandable:c,inExpandingPath:f,inCheckedPath:d,ns:r,handleHoverExpand:y,handleExpand:m,handleClick:S,handleCheck:C,handleSelectCheck:w}}}),UOe=["id","aria-haspopup","aria-owns","aria-expanded","tabindex"],GOe=R("span",null,null,-1);function HOe(t,e,n,r,a,i){const o=$e("el-checkbox"),s=$e("el-radio"),l=$e("check"),u=$e("el-icon"),c=$e("node-content"),f=$e("loading"),d=$e("arrow-right");return G(),re("li",{id:`${t.menuId}-${t.node.uid}`,role:"menuitem","aria-haspopup":!t.isLeaf,"aria-owns":t.isLeaf?null:t.menuId,"aria-expanded":t.inExpandingPath,tabindex:t.expandable?-1:void 0,class:Y([t.ns.b(),t.ns.is("selectable",t.checkStrictly),t.ns.is("active",t.node.checked),t.ns.is("disabled",!t.expandable),t.inExpandingPath&&"in-active-path",t.inCheckedPath&&"in-checked-path"]),onMouseenter:e[2]||(e[2]=(...h)=>t.handleHoverExpand&&t.handleHoverExpand(...h)),onFocus:e[3]||(e[3]=(...h)=>t.handleHoverExpand&&t.handleHoverExpand(...h)),onClick:e[4]||(e[4]=(...h)=>t.handleClick&&t.handleClick(...h))},[_e(" prefix "),t.multiple?(G(),Ee(o,{key:0,"model-value":t.node.checked,indeterminate:t.node.indeterminate,disabled:t.isDisabled,onClick:e[0]||(e[0]=It(()=>{},["stop"])),"onUpdate:modelValue":t.handleSelectCheck},null,8,["model-value","indeterminate","disabled","onUpdate:modelValue"])):t.checkStrictly?(G(),Ee(s,{key:1,"model-value":t.checkedNodeId,label:t.node.uid,disabled:t.isDisabled,"onUpdate:modelValue":t.handleSelectCheck,onClick:e[1]||(e[1]=It(()=>{},["stop"]))},{default:j(()=>[_e(`
  50. Add an empty element to avoid render label,
  51. do not use empty fragment here for https://github.com/vuejs/vue-next/pull/2485
  52. `),GOe]),_:1},8,["model-value","label","disabled","onUpdate:modelValue"])):t.isLeaf&&t.node.checked?(G(),Ee(u,{key:2,class:Y(t.ns.e("prefix"))},{default:j(()=>[N(l)]),_:1},8,["class"])):_e("v-if",!0),_e(" content "),N(c),_e(" postfix "),t.isLeaf?_e("v-if",!0):(G(),re(Ct,{key:3},[t.node.loading?(G(),Ee(u,{key:0,class:Y([t.ns.is("loading"),t.ns.e("postfix")])},{default:j(()=>[N(f)]),_:1},8,["class"])):(G(),Ee(u,{key:1,class:Y(["arrow-right",t.ns.e("postfix")])},{default:j(()=>[N(d)]),_:1},8,["class"]))],64))],42,UOe)}var WOe=tt(zOe,[["render",HOe],["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader-panel/src/node.vue"]]);const jOe=ye({name:"ElCascaderMenu",components:{Loading:id,ElIcon:_t,ElScrollbar:xc,ElCascaderNode:WOe},props:{nodes:{type:Array,required:!0},index:{type:Number,required:!0}},setup(t){const e=Qt(),n=Ye("cascader-menu"),{t:r}=En(),a=_T();let i=null,o=null;const s=yt(fV),l=B(null),u=U(()=>!t.nodes.length),c=U(()=>!s.initialLoaded),f=U(()=>`cascader-menu-${a}-${t.index}`),d=g=>{i=g.target},h=g=>{if(!(!s.isHoverMenu||!i||!l.value))if(i.contains(g.target)){p();const y=e.vnode.el,{left:m}=y.getBoundingClientRect(),{offsetWidth:S,offsetHeight:w}=y,C=g.clientX-m,_=i.offsetTop,x=_+i.offsetHeight;l.value.innerHTML=`
  53. <path style="pointer-events: auto;" fill="transparent" d="M${C} ${_} L${S} 0 V${_} Z" />
  54. <path style="pointer-events: auto;" fill="transparent" d="M${C} ${x} L${S} ${w} V${x} Z" />
  55. `}else o||(o=window.setTimeout(v,s.config.hoverThreshold))},p=()=>{o&&(clearTimeout(o),o=null)},v=()=>{l.value&&(l.value.innerHTML="",p())};return{ns:n,panel:s,hoverZone:l,isEmpty:u,isLoading:c,menuId:f,t:r,handleExpand:d,handleMouseMove:h,clearHoverZone:v}}});function KOe(t,e,n,r,a,i){const o=$e("el-cascader-node"),s=$e("loading"),l=$e("el-icon"),u=$e("el-scrollbar");return G(),Ee(u,{key:t.menuId,tag:"ul",role:"menu",class:Y(t.ns.b()),"wrap-class":t.ns.e("wrap"),"view-class":[t.ns.e("list"),t.ns.is("empty",t.isEmpty)],onMousemove:t.handleMouseMove,onMouseleave:t.clearHoverZone},{default:j(()=>{var c;return[(G(!0),re(Ct,null,dn(t.nodes,f=>(G(),Ee(o,{key:f.uid,node:f,"menu-id":t.menuId,onExpand:t.handleExpand},null,8,["node","menu-id","onExpand"]))),128)),t.isLoading?(G(),re("div",{key:0,class:Y(t.ns.e("empty-text"))},[N(l,{size:"14",class:Y(t.ns.is("loading"))},{default:j(()=>[N(s)]),_:1},8,["class"]),Be(" "+We(t.t("el.cascader.loading")),1)],2)):t.isEmpty?(G(),re("div",{key:1,class:Y(t.ns.e("empty-text"))},We(t.t("el.cascader.noData")),3)):(c=t.panel)!=null&&c.isHoverMenu?(G(),re("svg",{key:2,ref:"hoverZone",class:Y(t.ns.e("hover-zone"))},null,2)):_e("v-if",!0)]}),_:1},8,["class","wrap-class","view-class","onMousemove","onMouseleave"])}var YOe=tt(jOe,[["render",KOe],["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader-panel/src/menu.vue"]]);let XOe=0;const qOe=t=>{const e=[t];let{parent:n}=t;for(;n;)e.unshift(n),n=n.parent;return e};let KR=class YR{constructor(e,n,r,a=!1){this.data=e,this.config=n,this.parent=r,this.root=a,this.uid=XOe++,this.checked=!1,this.indeterminate=!1,this.loading=!1;const{value:i,label:o,children:s}=n,l=e[s],u=qOe(this);this.level=a?0:r?r.level+1:1,this.value=e[i],this.label=e[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 YR(c,n,this)),this.loaded=!n.lazy||this.isLeaf||!ds(l)}get isDisabled(){const{data:e,parent:n,config:r}=this,{disabled:a,checkStrictly:i}=r;return(zt(a)?a(e,this):!!e[a])||!i&&(n==null?void 0:n.isDisabled)}get isLeaf(){const{data:e,config:n,childrenData:r,loaded:a}=this,{lazy:i,leaf:o}=n,s=zt(o)?o(e,this):e[o];return Na(s)?i&&!a?!1:!(Array.isArray(r)&&r.length):!!s}get valueByOption(){return this.config.emitPath?this.pathValues:this.value}appendChild(e){const{childrenData:n,children:r}=this,a=new YR(e,this.config,this);return Array.isArray(n)?n.push(e):this.childrenData=[e],r.push(a),a}calcText(e,n){const r=e?this.pathLabels.join(n):this.label;return this.text=r,r}broadcast(e,...n){const r=`onParent${Xl(e)}`;this.children.forEach(a=>{a&&(a.broadcast(e,...n),a[r]&&a[r](...n))})}emit(e,...n){const{parent:r}=this,a=`onChild${Xl(e)}`;r&&(r[a]&&r[a](...n),r.emit(e,...n))}onParentCheck(e){this.isDisabled||this.setCheckState(e)}onChildCheck(){const{children:e}=this,n=e.filter(a=>!a.isDisabled),r=n.length?n.every(a=>a.checked):!1;this.setCheckState(r)}setCheckState(e){const n=this.children.length,r=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)&&e,this.indeterminate=this.loaded&&r!==n&&r>0}doCheck(e){if(this.checked===e)return;const{checkStrictly:n,multiple:r}=this.config;n||!r?this.checked=e:(this.broadcast("check",e),this.setCheckState(e),this.emit("check"))}};const XR=(t,e)=>t.reduce((n,r)=>(r.isLeaf?n.push(r):(!e&&n.push(r),n=n.concat(XR(r.children,e))),n),[]);class H5{constructor(e,n){this.config=n;const r=(e||[]).map(a=>new KR(a,this.config));this.nodes=r,this.allNodes=XR(r,!1),this.leafNodes=XR(r,!0)}getNodes(){return this.nodes}getFlattedNodes(e){return e?this.leafNodes:this.allNodes}appendNode(e,n){const r=n?n.appendChild(e):new KR(e,this.config);n||this.nodes.push(r),this.allNodes.push(r),r.isLeaf&&this.leafNodes.push(r)}appendNodes(e,n){e.forEach(r=>this.appendNode(r,n))}getNodeByValue(e,n=!1){return!e&&e!==0?null:this.getFlattedNodes(n).find(a=>To(a.value,e)||To(a.pathValues,e))||null}getSameNode(e){return e&&this.getFlattedNodes(!1).find(({value:r,level:a})=>To(e.value,r)&&e.level===a)||null}}const rZ=nt({modelValue:{type:ke([Number,String,Array])},options:{type:ke(Array),default:()=>[]},props:{type:ke(Object),default:()=>({})}}),ZOe={expandTrigger:"click",multiple:!1,checkStrictly:!1,emitPath:!0,lazy:!1,lazyLoad:Qn,value:"value",label:"label",children:"children",leaf:"leaf",disabled:"disabled",hoverThreshold:500},QOe=t=>U(()=>({...ZOe,...t.props})),W5=t=>{if(!t)return 0;const e=t.id.split("-");return Number(e[e.length-2])},JOe=t=>{if(!t)return;const e=t.querySelector("input");e?e.click():dY(t)&&t.click()},e3e=(t,e)=>{const n=e.slice(0),r=n.map(i=>i.uid),a=t.reduce((i,o)=>{const s=r.indexOf(o.uid);return s>-1&&(i.push(o),n.splice(s,1),r.splice(s,1)),i},[]);return a.push(...n),a},t3e=ye({name:"ElCascaderPanel",components:{ElCascaderMenu:YOe},props:{...rZ,border:{type:Boolean,default:!0},renderLabel:Function},emits:[nn,Ar,"close","expand-change"],setup(t,{emit:e,slots:n}){let r=!1;const a=Ye("cascader"),i=QOe(t);let o=null;const s=B(!0),l=B([]),u=B(null),c=B([]),f=B(null),d=B([]),h=U(()=>i.value.expandTrigger==="hover"),p=U(()=>t.renderLabel||n.default),v=()=>{const{options:k}=t,L=i.value;r=!1,o=new H5(k,L),c.value=[o.getNodes()],L.lazy&&ds(t.options)?(s.value=!1,g(void 0,I=>{I&&(o=new H5(I,L),c.value=[o.getNodes()]),s.value=!0,T(!1,!0)})):T(!1,!0)},g=(k,L)=>{const I=i.value;k=k||new KR({},I,void 0,!0),k.loading=!0;const P=F=>{const $=k,W=$.root?null:$;F&&(o==null||o.appendNodes(F,W)),$.loading=!1,$.loaded=!0,$.childrenData=$.childrenData||[],L&&L(F)};I.lazyLoad(k,P)},y=(k,L)=>{var I;const{level:P}=k,F=c.value.slice(0,P);let $;k.isLeaf?$=k.pathNodes[P-2]:($=k,F.push(k.children)),((I=f.value)==null?void 0:I.uid)!==($==null?void 0:$.uid)&&(f.value=k,c.value=F,!L&&e("expand-change",(k==null?void 0:k.pathValues)||[]))},m=(k,L,I=!0)=>{const{checkStrictly:P,multiple:F}=i.value,$=d.value[0];r=!0,!F&&($==null||$.doCheck(!1)),k.doCheck(L),x(),I&&!F&&!P&&e("close"),!I&&!F&&!P&&S(k)},S=k=>{k&&(k=k.parent,S(k),k&&y(k))},w=k=>o==null?void 0:o.getFlattedNodes(k),C=k=>{var L;return(L=w(k))==null?void 0:L.filter(I=>I.checked!==!1)},_=()=>{d.value.forEach(k=>k.doCheck(!1)),x(),c.value=c.value.slice(0,1),f.value=null,e("expand-change",[])},x=()=>{var k;const{checkStrictly:L,multiple:I}=i.value,P=d.value,F=C(!L),$=e3e(P,F),W=$.map(V=>V.valueByOption);d.value=$,u.value=I?W:(k=W[0])!=null?k:null},T=(k=!1,L=!1)=>{const{modelValue:I}=t,{lazy:P,multiple:F,checkStrictly:$}=i.value,W=!$;if(!(!s.value||r||!L&&To(I,u.value)))if(P&&!k){const z=WF(ixe(tc(I))).map(K=>o==null?void 0:o.getNodeByValue(K)).filter(K=>!!K&&!K.loaded&&!K.loading);z.length?z.forEach(K=>{g(K,()=>T(!1,L))}):T(!0,L)}else{const V=F?tc(I):[I],z=WF(V.map(K=>o==null?void 0:o.getNodeByValue(K,W)));M(z,L),u.value=i2(I)}},M=(k,L=!0)=>{const{checkStrictly:I}=i.value,P=d.value,F=k.filter(V=>!!V&&(I||V.isLeaf)),$=o==null?void 0:o.getSameNode(f.value),W=L&&$||F[0];W?W.pathNodes.forEach(V=>y(V,!0)):f.value=null,P.forEach(V=>V.doCheck(!1)),t.props.multiple?Vn(F).forEach(V=>V.doCheck(!0)):F.forEach(V=>V.doCheck(!0)),d.value=F,xt(E)},E=()=>{_n&&l.value.forEach(k=>{const L=k==null?void 0:k.$el;if(L){const I=L.querySelector(`.${a.namespace.value}-scrollbar__wrap`),P=L.querySelector(`.${a.b("node")}.${a.is("active")}`)||L.querySelector(`.${a.b("node")}.in-active-path`);aX(I,P)}})},A=k=>{const L=k.target,{code:I}=k;switch(I){case Dt.up:case Dt.down:{k.preventDefault();const P=I===Dt.up?-1:1;Wx(hY(L,P,`.${a.b("node")}[tabindex="-1"]`));break}case Dt.left:{k.preventDefault();const P=l.value[W5(L)-1],F=P==null?void 0:P.$el.querySelector(`.${a.b("node")}[aria-expanded="true"]`);Wx(F);break}case Dt.right:{k.preventDefault();const P=l.value[W5(L)+1],F=P==null?void 0:P.$el.querySelector(`.${a.b("node")}[tabindex="-1"]`);Wx(F);break}case Dt.enter:JOe(L);break}};return fn(fV,Vn({config:i,expandingNode:f,checkedNodes:d,isHoverMenu:h,initialLoaded:s,renderLabelFn:p,lazyLoad:g,expandNode:y,handleCheckChange:m})),Ke([i,()=>t.options],v,{deep:!0,immediate:!0}),Ke(()=>t.modelValue,()=>{r=!1,T()},{deep:!0}),Ke(()=>u.value,k=>{To(k,t.modelValue)||(e(nn,k),e(Ar,k))}),Jj(()=>l.value=[]),Ut(()=>!ds(t.modelValue)&&T()),{ns:a,menuList:l,menus:c,checkedNodes:d,handleKeyDown:A,handleCheckChange:m,getFlattedNodes:w,getCheckedNodes:C,clearCheckedNodes:_,calculateCheckedValue:x,scrollToExpandingNode:E}}});function n3e(t,e,n,r,a,i){const o=$e("el-cascader-menu");return G(),re("div",{class:Y([t.ns.b("panel"),t.ns.is("bordered",t.border)]),onKeydown:e[0]||(e[0]=(...s)=>t.handleKeyDown&&t.handleKeyDown(...s))},[(G(!0),re(Ct,null,dn(t.menus,(s,l)=>(G(),Ee(o,{key:l,ref_for:!0,ref:u=>t.menuList[l]=u,index:l,nodes:[...s]},null,8,["index","nodes"]))),128))],34)}var Jx=tt(t3e,[["render",n3e],["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader-panel/src/index.vue"]]);Jx.install=t=>{t.component(Jx.name,Jx)};const aZ=Jx,r3e=aZ,dV=nt({type:{type:String,values:["success","info","warning","danger",""],default:""},closable:Boolean,disableTransitions:Boolean,hit:Boolean,color:{type:String,default:""},size:{type:String,values:wu,default:""},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),a3e={close:t=>t instanceof MouseEvent,click:t=>t instanceof MouseEvent},i3e=ye({name:"ElTag"}),o3e=ye({...i3e,props:dV,emits:a3e,setup(t,{emit:e}){const n=t,r=Aa(),a=Ye("tag"),i=U(()=>{const{type:l,hit:u,effect:c,closable:f,round:d}=n;return[a.b(),a.is("closable",f),a.m(l),a.m(r.value),a.m(c),a.is("hit",u),a.is("round",d)]}),o=l=>{e("close",l)},s=l=>{e("click",l)};return(l,u)=>l.disableTransitions?(G(),re("span",{key:0,class:Y(b(i)),style:Et({backgroundColor:l.color}),onClick:s},[R("span",{class:Y(b(a).e("content"))},[Ge(l.$slots,"default")],2),l.closable?(G(),Ee(b(_t),{key:0,class:Y(b(a).e("close")),onClick:It(o,["stop"])},{default:j(()=>[N(b(yl))]),_:1},8,["class","onClick"])):_e("v-if",!0)],6)):(G(),Ee(da,{key:1,name:`${b(a).namespace.value}-zoom-in-center`,appear:""},{default:j(()=>[R("span",{class:Y(b(i)),style:Et({backgroundColor:l.color}),onClick:s},[R("span",{class:Y(b(a).e("content"))},[Ge(l.$slots,"default")],2),l.closable?(G(),Ee(b(_t),{key:0,class:Y(b(a).e("close")),onClick:It(o,["stop"])},{default:j(()=>[N(b(yl))]),_:1},8,["class","onClick"])):_e("v-if",!0)],6)]),_:3},8,["name"]))}});var s3e=tt(o3e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tag/src/tag.vue"]]);const T1=tn(s3e),l3e=nt({...rZ,size:yi,placeholder:String,disabled:Boolean,clearable:Boolean,filterable:Boolean,filterMethod:{type:ke(Function),default:(t,e)=>t.text.includes(e)},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:ke(Function),default:()=>!0},popperClass:{type:String,default:""},teleported:Qa.teleported,tagType:{...dV.type,default:"info"},validateEvent:{type:Boolean,default:!0}}),u3e={[nn]:t=>!!t||t===null,[Ar]:t=>!!t||t===null,focus:t=>t instanceof FocusEvent,blur:t=>t instanceof FocusEvent,visibleChange:t=>Ea(t),expandChange:t=>!!t,removeTag:t=>!!t},c3e={key:0},f3e=["placeholder","onKeydown"],d3e=["onClick"],h3e="ElCascader",p3e=ye({name:h3e}),v3e=ye({...p3e,props:l3e,emits:u3e,setup(t,{expose:e,emit:n}){const r=t,a={modifiers:[{name:"arrowPosition",enabled:!0,phase:"main",fn:({state:be})=>{const{modifiersData:xe,placement:Pe}=be;["right","left","bottom","top"].includes(Pe)||(xe.arrow.x=35)},requires:["arrow"]}]},i=Dp();let o=0,s=0;const l=Ye("cascader"),u=Ye("input"),{t:c}=En(),{form:f,formItem:d}=uo(),h=B(null),p=B(null),v=B(null),g=B(null),y=B(null),m=B(!1),S=B(!1),w=B(!1),C=B(!1),_=B(""),x=B(""),T=B([]),M=B([]),E=B([]),A=B(!1),k=U(()=>i.style),L=U(()=>r.disabled||(f==null?void 0:f.disabled)),I=U(()=>r.placeholder||c("el.cascader.placeholder")),P=U(()=>x.value||T.value.length>0||A.value?"":I.value),F=Aa(),$=U(()=>["small"].includes(F.value)?"small":"default"),W=U(()=>!!r.props.multiple),V=U(()=>!r.filterable||W.value),z=U(()=>W.value?x.value:_.value),K=U(()=>{var be;return((be=g.value)==null?void 0:be.checkedNodes)||[]}),Z=U(()=>!r.clearable||L.value||w.value||!S.value?!1:!!K.value.length),oe=U(()=>{const{showAllLevels:be,separator:xe}=r,Pe=K.value;return Pe.length?W.value?"":Pe[0].calcText(be,xe):""}),ge=U({get(){return i2(r.modelValue)},set(be){n(nn,be),n(Ar,be),r.validateEvent&&(d==null||d.validate("change").catch(xe=>void 0))}}),ie=U(()=>[l.b(),l.m(F.value),l.is("disabled",L.value),i.class]),Q=U(()=>[u.e("icon"),"icon-arrow-down",l.is("reverse",m.value)]),ce=U(()=>l.is("focus",m.value||C.value)),se=U(()=>{var be,xe;return(xe=(be=h.value)==null?void 0:be.popperRef)==null?void 0:xe.contentRef}),me=be=>{var xe,Pe,pe;L.value||(be=be??!m.value,be!==m.value&&(m.value=be,(Pe=(xe=p.value)==null?void 0:xe.input)==null||Pe.setAttribute("aria-expanded",`${be}`),be?(ve(),xt((pe=g.value)==null?void 0:pe.scrollToExpandingNode)):r.filterable&&qe(),n("visibleChange",be)))},ve=()=>{xt(()=>{var be;(be=h.value)==null||be.updatePopper()})},he=()=>{w.value=!1},ee=be=>{const{showAllLevels:xe,separator:Pe}=r;return{node:be,key:be.uid,text:be.calcText(xe,Pe),hitState:!1,closable:!L.value&&!be.isDisabled,isCollapseTag:!1}},ue=be=>{var xe;const Pe=be.node;Pe.doCheck(!1),(xe=g.value)==null||xe.calculateCheckedValue(),n("removeTag",Pe.valueByOption)},fe=()=>{if(!W.value)return;const be=K.value,xe=[],Pe=[];if(be.forEach(pe=>Pe.push(ee(pe))),M.value=Pe,be.length){be.slice(0,r.maxCollapseTags).forEach(Tt=>xe.push(ee(Tt)));const pe=be.slice(r.maxCollapseTags),it=pe.length;it&&(r.collapseTags?xe.push({key:-1,text:`+ ${it}`,closable:!1,isCollapseTag:!0}):pe.forEach(Tt=>xe.push(ee(Tt))))}T.value=xe},Re=()=>{var be,xe;const{filterMethod:Pe,showAllLevels:pe,separator:it}=r,Tt=(xe=(be=g.value)==null?void 0:be.getFlattedNodes(!r.props.checkStrictly))==null?void 0:xe.filter(Wt=>Wt.isDisabled?!1:(Wt.calcText(pe,it),Pe(Wt,z.value)));W.value&&(T.value.forEach(Wt=>{Wt.hitState=!1}),M.value.forEach(Wt=>{Wt.hitState=!1})),w.value=!0,E.value=Tt,ve()},Ne=()=>{var be;let xe;w.value&&y.value?xe=y.value.$el.querySelector(`.${l.e("suggestion-item")}`):xe=(be=g.value)==null?void 0:be.$el.querySelector(`.${l.b("node")}[tabindex="-1"]`),xe&&(xe.focus(),!w.value&&xe.click())},De=()=>{var be,xe;const Pe=(be=p.value)==null?void 0:be.input,pe=v.value,it=(xe=y.value)==null?void 0:xe.$el;if(!(!_n||!Pe)){if(it){const Tt=it.querySelector(`.${l.e("suggestion-list")}`);Tt.style.minWidth=`${Pe.offsetWidth}px`}if(pe){const{offsetHeight:Tt}=pe,Wt=T.value.length>0?`${Math.max(Tt+6,o)}px`:`${o}px`;Pe.style.height=Wt,ve()}}},we=be=>{var xe;return(xe=g.value)==null?void 0:xe.getCheckedNodes(be)},ae=be=>{ve(),n("expandChange",be)},Ie=be=>{var xe;const Pe=(xe=be.target)==null?void 0:xe.value;if(be.type==="compositionend")A.value=!1,xt(()=>dt(Pe));else{const pe=Pe[Pe.length-1]||"";A.value=!wT(pe)}},He=be=>{if(!A.value)switch(be.code){case Dt.enter:me();break;case Dt.down:me(!0),xt(Ne),be.preventDefault();break;case Dt.esc:m.value===!0&&(be.preventDefault(),be.stopPropagation(),me(!1));break;case Dt.tab:me(!1);break}},Ce=()=>{var be;(be=g.value)==null||be.clearCheckedNodes(),!m.value&&r.filterable&&qe(),me(!1)},qe=()=>{const{value:be}=oe;_.value=be,x.value=be},Ze=be=>{var xe,Pe;const{checked:pe}=be;W.value?(xe=g.value)==null||xe.handleCheckChange(be,!pe,!1):(!pe&&((Pe=g.value)==null||Pe.handleCheckChange(be,!0,!1)),me(!1))},de=be=>{const xe=be.target,{code:Pe}=be;switch(Pe){case Dt.up:case Dt.down:{const pe=Pe===Dt.up?-1:1;Wx(hY(xe,pe,`.${l.e("suggestion-item")}[tabindex="-1"]`));break}case Dt.enter:xe.click();break}},Xe=()=>{const be=T.value,xe=be[be.length-1];s=x.value?0:s+1,!(!xe||!s||r.collapseTags&&be.length>1)&&(xe.hitState?ue(xe):xe.hitState=!0)},mt=be=>{const xe=be.target,Pe=l.e("search-input");xe.className===Pe&&(C.value=!0),n("focus",be)},kt=be=>{C.value=!1,n("blur",be)},Vt=ao(()=>{const{value:be}=z;if(!be)return;const xe=r.beforeFilter(be);Qm(xe)?xe.then(Re).catch(()=>{}):xe!==!1?Re():he()},r.debounce),dt=(be,xe)=>{!m.value&&me(!0),!(xe!=null&&xe.isComposing)&&(be?Vt():he())},Oe=be=>Number.parseFloat(Z0e(u.cssVarName("input-height"),be).value)-2;return Ke(w,ve),Ke([K,L],fe),Ke(T,()=>{xt(()=>De())}),Ke(F,async()=>{await xt();const be=p.value.input;o=Oe(be)||o,De()}),Ke(oe,qe,{immediate:!0}),Ut(()=>{const be=p.value.input,xe=Oe(be);o=be.offsetHeight||xe,Vi(be,De)}),e({getCheckedNodes:we,cascaderPanelRef:g,togglePopperVisible:me,contentRef:se}),(be,xe)=>(G(),Ee(b(io),{ref_key:"tooltipRef",ref:h,visible:m.value,teleported:be.teleported,"popper-class":[b(l).e("dropdown"),be.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:he},{default:j(()=>[Ft((G(),re("div",{class:Y(b(ie)),style:Et(b(k)),onClick:xe[5]||(xe[5]=()=>me(b(V)?void 0:!0)),onKeydown:He,onMouseenter:xe[6]||(xe[6]=Pe=>S.value=!0),onMouseleave:xe[7]||(xe[7]=Pe=>S.value=!1)},[N(b(Ri),{ref_key:"input",ref:p,modelValue:_.value,"onUpdate:modelValue":xe[1]||(xe[1]=Pe=>_.value=Pe),placeholder:b(P),readonly:b(V),disabled:b(L),"validate-event":!1,size:b(F),class:Y(b(ce)),tabindex:b(W)&&be.filterable&&!b(L)?-1:void 0,onCompositionstart:Ie,onCompositionupdate:Ie,onCompositionend:Ie,onFocus:mt,onBlur:kt,onInput:dt},{suffix:j(()=>[b(Z)?(G(),Ee(b(_t),{key:"clear",class:Y([b(u).e("icon"),"icon-circle-close"]),onClick:It(Ce,["stop"])},{default:j(()=>[N(b(ad))]),_:1},8,["class","onClick"])):(G(),Ee(b(_t),{key:"arrow-down",class:Y(b(Q)),onClick:xe[0]||(xe[0]=It(Pe=>me(),["stop"]))},{default:j(()=>[N(b(rd))]),_:1},8,["class"]))]),_:1},8,["modelValue","placeholder","readonly","disabled","size","class","tabindex"]),b(W)?(G(),re("div",{key:0,ref_key:"tagWrapper",ref:v,class:Y(b(l).e("tags"))},[(G(!0),re(Ct,null,dn(T.value,Pe=>(G(),Ee(b(T1),{key:Pe.key,type:be.tagType,size:b($),hit:Pe.hitState,closable:Pe.closable,"disable-transitions":"",onClose:pe=>ue(Pe)},{default:j(()=>[Pe.isCollapseTag===!1?(G(),re("span",c3e,We(Pe.text),1)):(G(),Ee(b(io),{key:1,disabled:m.value||!be.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],placement:"bottom",effect:"light"},{default:j(()=>[R("span",null,We(Pe.text),1)]),content:j(()=>[R("div",{class:Y(b(l).e("collapse-tags"))},[(G(!0),re(Ct,null,dn(M.value.slice(be.maxCollapseTags),(pe,it)=>(G(),re("div",{key:it,class:Y(b(l).e("collapse-tag"))},[(G(),Ee(b(T1),{key:pe.key,class:"in-tooltip",type:be.tagType,size:b($),hit:pe.hitState,closable:pe.closable,"disable-transitions":"",onClose:Tt=>ue(pe)},{default:j(()=>[R("span",null,We(pe.text),1)]),_:2},1032,["type","size","hit","closable","onClose"]))],2))),128))],2)]),_:2},1032,["disabled"]))]),_:2},1032,["type","size","hit","closable","onClose"]))),128)),be.filterable&&!b(L)?Ft((G(),re("input",{key:0,"onUpdate:modelValue":xe[2]||(xe[2]=Pe=>x.value=Pe),type:"text",class:Y(b(l).e("search-input")),placeholder:b(oe)?"":b(I),onInput:xe[3]||(xe[3]=Pe=>dt(x.value,Pe)),onClick:xe[4]||(xe[4]=It(Pe=>me(!0),["stop"])),onKeydown:Tn(Xe,["delete"]),onCompositionstart:Ie,onCompositionupdate:Ie,onCompositionend:Ie,onFocus:mt,onBlur:kt},null,42,f3e)),[[u4,x.value]]):_e("v-if",!0)],2)):_e("v-if",!0)],38)),[[b(Wf),()=>me(!1),b(se)]])]),content:j(()=>[Ft(N(b(aZ),{ref_key:"cascaderPanelRef",ref:g,modelValue:b(ge),"onUpdate:modelValue":xe[8]||(xe[8]=Pe=>ft(ge)?ge.value=Pe:null),options:be.options,props:r.props,border:!1,"render-label":be.$slots.default,onExpandChange:ae,onClose:xe[9]||(xe[9]=Pe=>be.$nextTick(()=>me(!1)))},null,8,["modelValue","options","props","render-label"]),[[cn,!w.value]]),be.filterable?Ft((G(),Ee(b(xc),{key:0,ref_key:"suggestionPanel",ref:y,tag:"ul",class:Y(b(l).e("suggestion-panel")),"view-class":b(l).e("suggestion-list"),onKeydown:de},{default:j(()=>[E.value.length?(G(!0),re(Ct,{key:0},dn(E.value,Pe=>(G(),re("li",{key:Pe.uid,class:Y([b(l).e("suggestion-item"),b(l).is("checked",Pe.checked)]),tabindex:-1,onClick:pe=>Ze(Pe)},[R("span",null,We(Pe.text),1),Pe.checked?(G(),Ee(b(_t),{key:0},{default:j(()=>[N(b(Rb))]),_:1})):_e("v-if",!0)],10,d3e))),128)):Ge(be.$slots,"empty",{key:1},()=>[R("li",{class:Y(b(l).e("empty-text"))},We(b(c)("el.cascader.noMatch")),3)])]),_:3},8,["class","view-class"])),[[cn,w.value]]):_e("v-if",!0)]),_:3},8,["visible","teleported","popper-class","transition"]))}});var e_=tt(v3e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader/src/cascader.vue"]]);e_.install=t=>{t.component(e_.name,e_)};const g3e=e_,y3e=g3e,m3e=nt({checked:{type:Boolean,default:!1}}),b3e={"update:checked":t=>Ea(t),[Ar]:t=>Ea(t)},S3e=ye({name:"ElCheckTag"}),w3e=ye({...S3e,props:m3e,emits:b3e,setup(t,{emit:e}){const n=t,r=Ye("check-tag"),a=U(()=>[r.b(),r.is("checked",n.checked)]),i=()=>{const o=!n.checked;e(Ar,o),e("update:checked",o)};return(o,s)=>(G(),re("span",{class:Y(b(a)),onClick:i},[Ge(o.$slots,"default")],2))}});var x3e=tt(w3e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/check-tag/src/check-tag.vue"]]);const _3e=tn(x3e),iZ=Symbol("rowContextKey"),C3e=["start","center","end","space-around","space-between","space-evenly"],T3e=["top","middle","bottom"],E3e=nt({tag:{type:String,default:"div"},gutter:{type:Number,default:0},justify:{type:String,values:C3e,default:"start"},align:{type:String,values:T3e}}),M3e=ye({name:"ElRow"}),D3e=ye({...M3e,props:E3e,setup(t){const e=t,n=Ye("row"),r=U(()=>e.gutter);fn(iZ,{gutter:r});const a=U(()=>{const o={};return e.gutter&&(o.marginRight=o.marginLeft=`-${e.gutter/2}px`),o}),i=U(()=>[n.b(),n.is(`justify-${e.justify}`,e.justify!=="start"),n.is(`align-${e.align}`,!!e.align)]);return(o,s)=>(G(),Ee(on(o.tag),{class:Y(b(i)),style:Et(b(a))},{default:j(()=>[Ge(o.$slots,"default")]),_:3},8,["class","style"]))}});var A3e=tt(D3e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/row/src/row.vue"]]);const k3e=tn(A3e),R3e=nt({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:ke([Number,Object]),default:()=>zr({})},sm:{type:ke([Number,Object]),default:()=>zr({})},md:{type:ke([Number,Object]),default:()=>zr({})},lg:{type:ke([Number,Object]),default:()=>zr({})},xl:{type:ke([Number,Object]),default:()=>zr({})}}),L3e=ye({name:"ElCol"}),O3e=ye({...L3e,props:R3e,setup(t){const e=t,{gutter:n}=yt(iZ,{gutter:U(()=>0)}),r=Ye("col"),a=U(()=>{const o={};return n.value&&(o.paddingLeft=o.paddingRight=`${n.value/2}px`),o}),i=U(()=>{const o=[];return["span","offset","pull","push"].forEach(u=>{const c=e[u];Pt(c)&&(u==="span"?o.push(r.b(`${e[u]}`)):c>0&&o.push(r.b(`${u}-${e[u]}`)))}),["xs","sm","md","lg","xl"].forEach(u=>{Pt(e[u])?o.push(r.b(`${u}-${e[u]}`)):un(e[u])&&Object.entries(e[u]).forEach(([c,f])=>{o.push(c!=="span"?r.b(`${u}-${c}-${f}`):r.b(`${u}-${f}`))})}),n.value&&o.push(r.is("guttered")),[r.b(),o]});return(o,s)=>(G(),Ee(on(o.tag),{class:Y(b(i)),style:Et(b(a))},{default:j(()=>[Ge(o.$slots,"default")]),_:3},8,["class","style"]))}});var V3e=tt(O3e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/col/src/col.vue"]]);const N3e=tn(V3e),j5=t=>typeof Pt(t),I3e=nt({accordion:Boolean,modelValue:{type:ke([Array,String,Number]),default:()=>zr([])}}),B3e={[nn]:j5,[Ar]:j5},oZ=Symbol("collapseContextKey"),$3e=(t,e)=>{const n=B(pp(t.modelValue)),r=i=>{n.value=i;const o=t.accordion?n.value[0]:n.value;e(nn,o),e(Ar,o)},a=i=>{if(t.accordion)r([n.value[0]===i?"":i]);else{const o=[...n.value],s=o.indexOf(i);s>-1?o.splice(s,1):o.push(i),r(o)}};return Ke(()=>t.modelValue,()=>n.value=pp(t.modelValue),{deep:!0}),fn(oZ,{activeNames:n,handleItemClick:a}),{activeNames:n,setActiveNames:r}},P3e=()=>{const t=Ye("collapse");return{rootKls:U(()=>t.b())}},F3e=ye({name:"ElCollapse"}),z3e=ye({...F3e,props:I3e,emits:B3e,setup(t,{expose:e,emit:n}){const r=t,{activeNames:a,setActiveNames:i}=$3e(r,n),{rootKls:o}=P3e();return e({activeNames:a,setActiveNames:i}),(s,l)=>(G(),re("div",{class:Y(b(o))},[Ge(s.$slots,"default")],2))}});var U3e=tt(z3e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse/src/collapse.vue"]]);const G3e=ye({name:"ElCollapseTransition"}),H3e=ye({...G3e,setup(t){const e=Ye("collapse-transition"),n=a=>{a.style.maxHeight="",a.style.overflow=a.dataset.oldOverflow,a.style.paddingTop=a.dataset.oldPaddingTop,a.style.paddingBottom=a.dataset.oldPaddingBottom},r={beforeEnter(a){a.dataset||(a.dataset={}),a.dataset.oldPaddingTop=a.style.paddingTop,a.dataset.oldPaddingBottom=a.style.paddingBottom,a.style.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){n(a)},beforeLeave(a){a.dataset||(a.dataset={}),a.dataset.oldPaddingTop=a.style.paddingTop,a.dataset.oldPaddingBottom=a.style.paddingBottom,a.dataset.oldOverflow=a.style.overflow,a.style.maxHeight=`${a.scrollHeight}px`,a.style.overflow="hidden"},leave(a){a.scrollHeight!==0&&(a.style.maxHeight=0,a.style.paddingTop=0,a.style.paddingBottom=0)},afterLeave(a){n(a)},leaveCancelled(a){n(a)}};return(a,i)=>(G(),Ee(da,an({name:b(e).b()},khe(r)),{default:j(()=>[Ge(a.$slots,"default")]),_:3},16,["name"]))}});var t_=tt(H3e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse-transition/src/collapse-transition.vue"]]);t_.install=t=>{t.component(t_.name,t_)};const LT=t_,W3e=LT,j3e=nt({title:{type:String,default:""},name:{type:ke([String,Number]),default:()=>_T()},disabled:Boolean}),K3e=t=>{const e=yt(oZ),n=B(!1),r=B(!1),a=B(_T()),i=U(()=>e==null?void 0:e.activeNames.value.includes(t.name));return{focusing:n,id:a,isActive:i,handleFocus:()=>{setTimeout(()=>{r.value?r.value=!1:n.value=!0},50)},handleHeaderClick:()=>{t.disabled||(e==null||e.handleItemClick(t.name),n.value=!1,r.value=!0)},handleEnterClick:()=>{e==null||e.handleItemClick(t.name)}}},Y3e=(t,{focusing:e,isActive:n,id:r})=>{const a=Ye("collapse"),i=U(()=>[a.b("item"),a.is("active",b(n)),a.is("disabled",t.disabled)]),o=U(()=>[a.be("item","header"),a.is("active",b(n)),{focusing:b(e)&&!t.disabled}]),s=U(()=>[a.be("item","arrow"),a.is("active",b(n))]),l=U(()=>a.be("item","wrap")),u=U(()=>a.be("item","content")),c=U(()=>a.b(`content-${b(r)}`)),f=U(()=>a.b(`head-${b(r)}`));return{arrowKls:s,headKls:o,rootKls:i,itemWrapperKls:l,itemContentKls:u,scopedContentId:c,scopedHeadId:f}},X3e=["id","aria-expanded","aria-controls","aria-describedby","tabindex"],q3e=["id","aria-hidden","aria-labelledby"],Z3e=ye({name:"ElCollapseItem"}),Q3e=ye({...Z3e,props:j3e,setup(t,{expose:e}){const n=t,{focusing:r,id:a,isActive:i,handleFocus:o,handleHeaderClick:s,handleEnterClick:l}=K3e(n),{arrowKls:u,headKls:c,rootKls:f,itemWrapperKls:d,itemContentKls:h,scopedContentId:p,scopedHeadId:v}=Y3e(n,{focusing:r,isActive:i,id:a});return e({isActive:i}),(g,y)=>(G(),re("div",{class:Y(b(f))},[R("button",{id:b(v),class:Y(b(c)),"aria-expanded":b(i),"aria-controls":b(p),"aria-describedby":b(p),tabindex:g.disabled?-1:0,onClick:y[0]||(y[0]=(...m)=>b(s)&&b(s)(...m)),onKeydown:y[1]||(y[1]=Tn(It((...m)=>b(l)&&b(l)(...m),["stop","prevent"]),["space","enter"])),onFocus:y[2]||(y[2]=(...m)=>b(o)&&b(o)(...m)),onBlur:y[3]||(y[3]=m=>r.value=!1)},[Ge(g.$slots,"title",{},()=>[Be(We(g.title),1)]),N(b(_t),{class:Y(b(u))},{default:j(()=>[N(b(Li))]),_:1},8,["class"])],42,X3e),N(b(LT),null,{default:j(()=>[Ft(R("div",{id:b(p),role:"region",class:Y(b(d)),"aria-hidden":!b(i),"aria-labelledby":b(v)},[R("div",{class:Y(b(h))},[Ge(g.$slots,"default")],2)],10,q3e),[[cn,b(i)]])]),_:3})],2))}});var sZ=tt(Q3e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse/src/collapse-item.vue"]]);const J3e=tn(U3e,{CollapseItem:sZ}),e4e=ta(sZ),t4e=nt({color:{type:ke(Object),required:!0},vertical:{type:Boolean,default:!1}});let VM=!1;function E1(t,e){if(!_n)return;const n=function(i){var o;(o=e.drag)==null||o.call(e,i)},r=function(i){var o;document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",r),document.removeEventListener("touchmove",n),document.removeEventListener("touchend",r),document.onselectstart=null,document.ondragstart=null,VM=!1,(o=e.end)==null||o.call(e,i)},a=function(i){var o;VM||(i.preventDefault(),document.onselectstart=()=>!1,document.ondragstart=()=>!1,document.addEventListener("mousemove",n),document.addEventListener("mouseup",r),document.addEventListener("touchmove",n),document.addEventListener("touchend",r),VM=!0,(o=e.start)==null||o.call(e,i))};t.addEventListener("mousedown",a),t.addEventListener("touchstart",a)}const n4e=t=>{const e=Qt(),n=vr(),r=vr();function a(o){o.target!==n.value&&i(o)}function i(o){if(!r.value||!n.value)return;const l=e.vnode.el.getBoundingClientRect(),{clientX:u,clientY:c}=b4(o);if(t.vertical){let f=c-l.top;f=Math.max(n.value.offsetHeight/2,f),f=Math.min(f,l.height-n.value.offsetHeight/2),t.color.set("alpha",Math.round((f-n.value.offsetHeight/2)/(l.height-n.value.offsetHeight)*100))}else{let f=u-l.left;f=Math.max(n.value.offsetWidth/2,f),f=Math.min(f,l.width-n.value.offsetWidth/2),t.color.set("alpha",Math.round((f-n.value.offsetWidth/2)/(l.width-n.value.offsetWidth)*100))}}return{thumb:n,bar:r,handleDrag:i,handleClick:a}},r4e=(t,{bar:e,thumb:n,handleDrag:r})=>{const a=Qt(),i=Ye("color-alpha-slider"),o=B(0),s=B(0),l=B();function u(){if(!n.value||t.vertical)return 0;const m=a.vnode.el,S=t.color.get("alpha");return m?Math.round(S*(m.offsetWidth-n.value.offsetWidth/2)/100):0}function c(){if(!n.value)return 0;const m=a.vnode.el;if(!t.vertical)return 0;const S=t.color.get("alpha");return m?Math.round(S*(m.offsetHeight-n.value.offsetHeight/2)/100):0}function f(){if(t.color&&t.color.value){const{r:m,g:S,b:w}=t.color.toRgb();return`linear-gradient(to right, rgba(${m}, ${S}, ${w}, 0) 0%, rgba(${m}, ${S}, ${w}, 1) 100%)`}return""}function d(){o.value=u(),s.value=c(),l.value=f()}Ut(()=>{if(!e.value||!n.value)return;const m={drag:S=>{r(S)},end:S=>{r(S)}};E1(e.value,m),E1(n.value,m),d()}),Ke(()=>t.color.get("alpha"),()=>d()),Ke(()=>t.color.value,()=>d());const h=U(()=>[i.b(),i.is("vertical",t.vertical)]),p=U(()=>i.e("bar")),v=U(()=>i.e("thumb")),g=U(()=>({background:l.value})),y=U(()=>({left:la(o.value),top:la(s.value)}));return{rootKls:h,barKls:p,barStyle:g,thumbKls:v,thumbStyle:y,update:d}},a4e="ElColorAlphaSlider",i4e=ye({name:a4e}),o4e=ye({...i4e,props:t4e,setup(t,{expose:e}){const n=t,{bar:r,thumb:a,handleDrag:i,handleClick:o}=n4e(n),{rootKls:s,barKls:l,barStyle:u,thumbKls:c,thumbStyle:f,update:d}=r4e(n,{bar:r,thumb:a,handleDrag:i});return e({update:d,bar:r,thumb:a}),(h,p)=>(G(),re("div",{class:Y(b(s))},[R("div",{ref_key:"bar",ref:r,class:Y(b(l)),style:Et(b(u)),onClick:p[0]||(p[0]=(...v)=>b(o)&&b(o)(...v))},null,6),R("div",{ref_key:"thumb",ref:a,class:Y(b(c)),style:Et(b(f))},null,6)],2))}});var s4e=tt(o4e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/alpha-slider.vue"]]);const l4e=ye({name:"ElColorHueSlider",props:{color:{type:Object,required:!0},vertical:Boolean},setup(t){const e=Ye("color-hue-slider"),n=Qt(),r=B(),a=B(),i=B(0),o=B(0),s=U(()=>t.color.get("hue"));Ke(()=>s.value,()=>{d()});function l(h){h.target!==r.value&&u(h)}function u(h){if(!a.value||!r.value)return;const v=n.vnode.el.getBoundingClientRect(),{clientX:g,clientY:y}=b4(h);let m;if(t.vertical){let S=y-v.top;S=Math.min(S,v.height-r.value.offsetHeight/2),S=Math.max(r.value.offsetHeight/2,S),m=Math.round((S-r.value.offsetHeight/2)/(v.height-r.value.offsetHeight)*360)}else{let S=g-v.left;S=Math.min(S,v.width-r.value.offsetWidth/2),S=Math.max(r.value.offsetWidth/2,S),m=Math.round((S-r.value.offsetWidth/2)/(v.width-r.value.offsetWidth)*360)}t.color.set("hue",m)}function c(){if(!r.value)return 0;const h=n.vnode.el;if(t.vertical)return 0;const p=t.color.get("hue");return h?Math.round(p*(h.offsetWidth-r.value.offsetWidth/2)/360):0}function f(){if(!r.value)return 0;const h=n.vnode.el;if(!t.vertical)return 0;const p=t.color.get("hue");return h?Math.round(p*(h.offsetHeight-r.value.offsetHeight/2)/360):0}function d(){i.value=c(),o.value=f()}return Ut(()=>{if(!a.value||!r.value)return;const h={drag:p=>{u(p)},end:p=>{u(p)}};E1(a.value,h),E1(r.value,h),d()}),{bar:a,thumb:r,thumbLeft:i,thumbTop:o,hueValue:s,handleClick:l,update:d,ns:e}}});function u4e(t,e,n,r,a,i){return G(),re("div",{class:Y([t.ns.b(),t.ns.is("vertical",t.vertical)])},[R("div",{ref:"bar",class:Y(t.ns.e("bar")),onClick:e[0]||(e[0]=(...o)=>t.handleClick&&t.handleClick(...o))},null,2),R("div",{ref:"thumb",class:Y(t.ns.e("thumb")),style:Et({left:t.thumbLeft+"px",top:t.thumbTop+"px"})},null,6)],2)}var c4e=tt(l4e,[["render",u4e],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/hue-slider.vue"]]);const f4e=nt({modelValue:String,id:String,showAlpha:Boolean,colorFormat:String,disabled:Boolean,size:yi,popperClass:{type:String,default:""},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},predefine:{type:ke(Array)},validateEvent:{type:Boolean,default:!0}}),d4e={[nn]:t=>Ht(t)||Ta(t),[Ar]:t=>Ht(t)||Ta(t),activeChange:t=>Ht(t)||Ta(t)},lZ=Symbol("colorPickerContextKey"),K5=function(t,e,n){return[t,e*n/((t=(2-e)*n)<1?t:2-t)||0,t/2]},h4e=function(t){return typeof t=="string"&&t.includes(".")&&Number.parseFloat(t)===1},p4e=function(t){return typeof t=="string"&&t.includes("%")},lg=function(t,e){h4e(t)&&(t="100%");const n=p4e(t);return t=Math.min(e,Math.max(0,Number.parseFloat(`${t}`))),n&&(t=Number.parseInt(`${t*e}`,10)/100),Math.abs(t-e)<1e-6?1:t%e/Number.parseFloat(e)},Y5={10:"A",11:"B",12:"C",13:"D",14:"E",15:"F"},n_=t=>{t=Math.min(Math.round(t),255);const e=Math.floor(t/16),n=t%16;return`${Y5[e]||e}${Y5[n]||n}`},X5=function({r:t,g:e,b:n}){return Number.isNaN(+t)||Number.isNaN(+e)||Number.isNaN(+n)?"":`#${n_(t)}${n_(e)}${n_(n)}`},NM={A:10,B:11,C:12,D:13,E:14,F:15},Ed=function(t){return t.length===2?(NM[t[0].toUpperCase()]||+t[0])*16+(NM[t[1].toUpperCase()]||+t[1]):NM[t[1].toUpperCase()]||+t[1]},v4e=function(t,e,n){e=e/100,n=n/100;let r=e;const a=Math.max(n,.01);n*=2,e*=n<=1?n:2-n,r*=a<=1?a:2-a;const i=(n+e)/2,o=n===0?2*r/(a+r):2*e/(n+e);return{h:t,s:o*100,v:i*100}},q5=(t,e,n)=>{t=lg(t,255),e=lg(e,255),n=lg(n,255);const r=Math.max(t,e,n),a=Math.min(t,e,n);let i;const o=r,s=r-a,l=r===0?0:s/r;if(r===a)i=0;else{switch(r){case t:{i=(e-n)/s+(e<n?6:0);break}case e:{i=(n-t)/s+2;break}case n:{i=(t-e)/s+4;break}}i/=6}return{h:i*360,s:l*100,v:o*100}},ly=function(t,e,n){t=lg(t,360)*6,e=lg(e,100),n=lg(n,100);const r=Math.floor(t),a=t-r,i=n*(1-e),o=n*(1-a*e),s=n*(1-(1-a)*e),l=r%6,u=[n,o,i,i,s,n][l],c=[s,n,n,o,i,i][l],f=[i,i,s,n,n,o][l];return{r:Math.round(u*255),g:Math.round(c*255),b:Math.round(f*255)}};let Mm=class{constructor(e={}){this._hue=0,this._saturation=100,this._value=100,this._alpha=100,this.enableAlpha=!1,this.format="hex",this.value="";for(const n in e)Sn(e,n)&&(this[n]=e[n]);e.value?this.fromString(e.value):this.doOnChange()}set(e,n){if(arguments.length===1&&typeof e=="object"){for(const r in e)Sn(e,r)&&this.set(r,e[r]);return}this[`_${e}`]=n,this.doOnChange()}get(e){return e==="alpha"?Math.floor(this[`_${e}`]):this[`_${e}`]}toRgb(){return ly(this._hue,this._saturation,this._value)}fromString(e){if(!e){this._hue=0,this._saturation=100,this._value=100,this.doOnChange();return}const n=(r,a,i)=>{this._hue=Math.max(0,Math.min(360,r)),this._saturation=Math.max(0,Math.min(100,a)),this._value=Math.max(0,Math.min(100,i)),this.doOnChange()};if(e.includes("hsl")){const r=e.replace(/hsla|hsl|\(|\)/gm,"").split(/\s|,/g).filter(a=>a!=="").map((a,i)=>i>2?Number.parseFloat(a):Number.parseInt(a,10));if(r.length===4?this._alpha=Number.parseFloat(r[3])*100:r.length===3&&(this._alpha=100),r.length>=3){const{h:a,s:i,v:o}=v4e(r[0],r[1],r[2]);n(a,i,o)}}else if(e.includes("hsv")){const r=e.replace(/hsva|hsv|\(|\)/gm,"").split(/\s|,/g).filter(a=>a!=="").map((a,i)=>i>2?Number.parseFloat(a):Number.parseInt(a,10));r.length===4?this._alpha=Number.parseFloat(r[3])*100:r.length===3&&(this._alpha=100),r.length>=3&&n(r[0],r[1],r[2])}else if(e.includes("rgb")){const r=e.replace(/rgba|rgb|\(|\)/gm,"").split(/\s|,/g).filter(a=>a!=="").map((a,i)=>i>2?Number.parseFloat(a):Number.parseInt(a,10));if(r.length===4?this._alpha=Number.parseFloat(r[3])*100:r.length===3&&(this._alpha=100),r.length>=3){const{h:a,s:i,v:o}=q5(r[0],r[1],r[2]);n(a,i,o)}}else if(e.includes("#")){const r=e.replace("#","").trim();if(!/^[0-9a-fA-F]{3}$|^[0-9a-fA-F]{6}$|^[0-9a-fA-F]{8}$/.test(r))return;let a,i,o;r.length===3?(a=Ed(r[0]+r[0]),i=Ed(r[1]+r[1]),o=Ed(r[2]+r[2])):(r.length===6||r.length===8)&&(a=Ed(r.slice(0,2)),i=Ed(r.slice(2,4)),o=Ed(r.slice(4,6))),r.length===8?this._alpha=Ed(r.slice(6))/255*100:(r.length===3||r.length===6)&&(this._alpha=100);const{h:s,s:l,v:u}=q5(a,i,o);n(s,l,u)}}compare(e){return Math.abs(e._hue-this._hue)<2&&Math.abs(e._saturation-this._saturation)<1&&Math.abs(e._value-this._value)<1&&Math.abs(e._alpha-this._alpha)<1}doOnChange(){const{_hue:e,_saturation:n,_value:r,_alpha:a,format:i}=this;if(this.enableAlpha)switch(i){case"hsl":{const o=K5(e,n/100,r/100);this.value=`hsla(${e}, ${Math.round(o[1]*100)}%, ${Math.round(o[2]*100)}%, ${this.get("alpha")/100})`;break}case"hsv":{this.value=`hsva(${e}, ${Math.round(n)}%, ${Math.round(r)}%, ${this.get("alpha")/100})`;break}case"hex":{this.value=`${X5(ly(e,n,r))}${n_(a*255/100)}`;break}default:{const{r:o,g:s,b:l}=ly(e,n,r);this.value=`rgba(${o}, ${s}, ${l}, ${this.get("alpha")/100})`}}else switch(i){case"hsl":{const o=K5(e,n/100,r/100);this.value=`hsl(${e}, ${Math.round(o[1]*100)}%, ${Math.round(o[2]*100)}%)`;break}case"hsv":{this.value=`hsv(${e}, ${Math.round(n)}%, ${Math.round(r)}%)`;break}case"rgb":{const{r:o,g:s,b:l}=ly(e,n,r);this.value=`rgb(${o}, ${s}, ${l})`;break}default:this.value=X5(ly(e,n,r))}}};const g4e=ye({props:{colors:{type:Array,required:!0},color:{type:Object,required:!0}},setup(t){const e=Ye("color-predefine"),{currentColor:n}=yt(lZ),r=B(i(t.colors,t.color));Ke(()=>n.value,o=>{const s=new Mm;s.fromString(o),r.value.forEach(l=>{l.selected=s.compare(l)})}),Uo(()=>{r.value=i(t.colors,t.color)});function a(o){t.color.fromString(t.colors[o])}function i(o,s){return o.map(l=>{const u=new Mm;return u.enableAlpha=!0,u.format="rgba",u.fromString(l),u.selected=u.value===s.value,u})}return{rgbaColors:r,handleSelect:a,ns:e}}}),y4e=["onClick"];function m4e(t,e,n,r,a,i){return G(),re("div",{class:Y(t.ns.b())},[R("div",{class:Y(t.ns.e("colors"))},[(G(!0),re(Ct,null,dn(t.rgbaColors,(o,s)=>(G(),re("div",{key:t.colors[s],class:Y([t.ns.e("color-selector"),t.ns.is("alpha",o._alpha<100),{selected:o.selected}]),onClick:l=>t.handleSelect(s)},[R("div",{style:Et({backgroundColor:o.value})},null,4)],10,y4e))),128))],2)],2)}var b4e=tt(g4e,[["render",m4e],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/predefine.vue"]]);const S4e=ye({name:"ElSlPanel",props:{color:{type:Object,required:!0}},setup(t){const e=Ye("color-svpanel"),n=Qt(),r=B(0),a=B(0),i=B("hsl(0, 100%, 50%)"),o=U(()=>{const u=t.color.get("hue"),c=t.color.get("value");return{hue:u,value:c}});function s(){const u=t.color.get("saturation"),c=t.color.get("value"),f=n.vnode.el,{clientWidth:d,clientHeight:h}=f;a.value=u*d/100,r.value=(100-c)*h/100,i.value=`hsl(${t.color.get("hue")}, 100%, 50%)`}function l(u){const f=n.vnode.el.getBoundingClientRect(),{clientX:d,clientY:h}=b4(u);let p=d-f.left,v=h-f.top;p=Math.max(0,p),p=Math.min(p,f.width),v=Math.max(0,v),v=Math.min(v,f.height),a.value=p,r.value=v,t.color.set({saturation:p/f.width*100,value:100-v/f.height*100})}return Ke(()=>o.value,()=>{s()}),Ut(()=>{E1(n.vnode.el,{drag:u=>{l(u)},end:u=>{l(u)}}),s()}),{cursorTop:r,cursorLeft:a,background:i,colorValue:o,handleDrag:l,update:s,ns:e}}}),w4e=R("div",null,null,-1),x4e=[w4e];function _4e(t,e,n,r,a,i){return G(),re("div",{class:Y(t.ns.b()),style:Et({backgroundColor:t.background})},[R("div",{class:Y(t.ns.e("white"))},null,2),R("div",{class:Y(t.ns.e("black"))},null,2),R("div",{class:Y(t.ns.e("cursor")),style:Et({top:t.cursorTop+"px",left:t.cursorLeft+"px"})},x4e,6)],6)}var C4e=tt(S4e,[["render",_4e],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/sv-panel.vue"]]);const T4e=["id","aria-label","aria-labelledby","aria-description","tabindex","onKeydown"],E4e=ye({name:"ElColorPicker"}),M4e=ye({...E4e,props:f4e,emits:d4e,setup(t,{expose:e,emit:n}){const r=t,{t:a}=En(),i=Ye("color"),{formItem:o}=uo(),s=Aa(),l=Ro(),{inputId:u,isLabeledByFormItem:c}=ld(r,{formItemContext:o}),f=B(),d=B(),h=B(),p=B();let v=!0;const g=Vn(new Mm({enableAlpha:r.showAlpha,format:r.colorFormat||"",value:r.modelValue})),y=B(!1),m=B(!1),S=B(""),w=U(()=>!r.modelValue&&!m.value?"transparent":M(g,r.showAlpha)),C=U(()=>!r.modelValue&&!m.value?"":g.value),_=U(()=>c.value?void 0:r.label||a("el.colorpicker.defaultLabel")),x=U(()=>c.value?o==null?void 0:o.labelId:void 0),T=U(()=>[i.b("picker"),i.is("disabled",l.value),i.bm("picker",s.value)]);function M(V,z){if(!(V instanceof Mm))throw new TypeError("color should be instance of _color Class");const{r:K,g:Z,b:oe}=V.toRgb();return z?`rgba(${K}, ${Z}, ${oe}, ${V.get("alpha")/100})`:`rgb(${K}, ${Z}, ${oe})`}function E(V){y.value=V}const A=ao(E,100);function k(){l.value||E(!0)}function L(){A(!1),I()}function I(){xt(()=>{r.modelValue?g.fromString(r.modelValue):(g.value="",xt(()=>{m.value=!1}))})}function P(){l.value||A(!y.value)}function F(){g.fromString(S.value)}function $(){const V=g.value;n(nn,V),n("change",V),r.validateEvent&&(o==null||o.validate("change").catch(z=>void 0)),A(!1),xt(()=>{const z=new Mm({enableAlpha:r.showAlpha,format:r.colorFormat||"",value:r.modelValue});g.compare(z)||I()})}function W(){A(!1),n(nn,null),n("change",null),r.modelValue!==null&&r.validateEvent&&(o==null||o.validate("change").catch(V=>void 0)),I()}return Ut(()=>{r.modelValue&&(S.value=C.value)}),Ke(()=>r.modelValue,V=>{V?V&&V!==g.value&&(v=!1,g.fromString(V)):m.value=!1}),Ke(()=>C.value,V=>{S.value=V,v&&n("activeChange",V),v=!0}),Ke(()=>g.value,()=>{!r.modelValue&&!m.value&&(m.value=!0)}),Ke(()=>y.value,()=>{xt(()=>{var V,z,K;(V=f.value)==null||V.update(),(z=d.value)==null||z.update(),(K=h.value)==null||K.update()})}),fn(lZ,{currentColor:C}),e({color:g,show:k,hide:L}),(V,z)=>(G(),Ee(b(io),{ref_key:"popper",ref:p,visible:y.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"),V.popperClass],"stop-popper-mouse-event":!1,effect:"light",trigger:"click",transition:`${b(i).namespace.value}-zoom-in-top`,persistent:""},{content:j(()=>[Ft((G(),re("div",null,[R("div",{class:Y(b(i).be("dropdown","main-wrapper"))},[N(c4e,{ref_key:"hue",ref:f,class:"hue-slider",color:b(g),vertical:""},null,8,["color"]),N(C4e,{ref_key:"sv",ref:d,color:b(g)},null,8,["color"])],2),V.showAlpha?(G(),Ee(s4e,{key:0,ref_key:"alpha",ref:h,color:b(g)},null,8,["color"])):_e("v-if",!0),V.predefine?(G(),Ee(b4e,{key:1,ref:"predefine",color:b(g),colors:V.predefine},null,8,["color","colors"])):_e("v-if",!0),R("div",{class:Y(b(i).be("dropdown","btns"))},[R("span",{class:Y(b(i).be("dropdown","value"))},[N(b(Ri),{modelValue:S.value,"onUpdate:modelValue":z[0]||(z[0]=K=>S.value=K),"validate-event":!1,size:"small",onKeyup:Tn(F,["enter"]),onBlur:F},null,8,["modelValue","onKeyup"])],2),N(b(ct),{class:Y(b(i).be("dropdown","link-btn")),text:"",size:"small",onClick:W},{default:j(()=>[Be(We(b(a)("el.colorpicker.clear")),1)]),_:1},8,["class"]),N(b(ct),{plain:"",size:"small",class:Y(b(i).be("dropdown","btn")),onClick:$},{default:j(()=>[Be(We(b(a)("el.colorpicker.confirm")),1)]),_:1},8,["class"])],2)])),[[b(Wf),L]])]),default:j(()=>[R("div",{id:b(u),class:Y(b(T)),role:"button","aria-label":b(_),"aria-labelledby":b(x),"aria-description":b(a)("el.colorpicker.description",{color:V.modelValue||""}),tabindex:V.tabindex,onKeydown:Tn(P,["enter"])},[b(l)?(G(),re("div",{key:0,class:Y(b(i).be("picker","mask"))},null,2)):_e("v-if",!0),R("div",{class:Y(b(i).be("picker","trigger")),onClick:P},[R("span",{class:Y([b(i).be("picker","color"),b(i).is("alpha",V.showAlpha)])},[R("span",{class:Y(b(i).be("picker","color-inner")),style:Et({backgroundColor:b(w)})},[Ft(N(b(_t),{class:Y([b(i).be("picker","icon"),b(i).is("icon-arrow-down")])},{default:j(()=>[N(b(rd))]),_:1},8,["class"]),[[cn,V.modelValue||m.value]]),Ft(N(b(_t),{class:Y([b(i).be("picker","empty"),b(i).is("icon-close")])},{default:j(()=>[N(b(yl))]),_:1},8,["class"]),[[cn,!V.modelValue&&!m.value]])],6)],2)],2)],42,T4e)]),_:1},8,["visible","popper-class","transition"]))}});var D4e=tt(M4e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/color-picker.vue"]]);const A4e=tn(D4e),k4e=ye({name:"ElContainer"}),R4e=ye({...k4e,props:{direction:{type:String}},setup(t){const e=t,n=wi(),r=Ye("container"),a=U(()=>e.direction==="vertical"?!0:e.direction==="horizontal"?!1:n&&n.default?n.default().some(o=>{const s=o.type.name;return s==="ElHeader"||s==="ElFooter"}):!1);return(i,o)=>(G(),re("section",{class:Y([b(r).b(),b(r).is("vertical",b(a))])},[Ge(i.$slots,"default")],2))}});var L4e=tt(R4e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/container.vue"]]);const O4e=ye({name:"ElAside"}),V4e=ye({...O4e,props:{width:{type:String,default:null}},setup(t){const e=t,n=Ye("aside"),r=U(()=>e.width?n.cssVarBlock({width:e.width}):{});return(a,i)=>(G(),re("aside",{class:Y(b(n).b()),style:Et(b(r))},[Ge(a.$slots,"default")],6))}});var uZ=tt(V4e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/aside.vue"]]);const N4e=ye({name:"ElFooter"}),I4e=ye({...N4e,props:{height:{type:String,default:null}},setup(t){const e=t,n=Ye("footer"),r=U(()=>e.height?n.cssVarBlock({height:e.height}):{});return(a,i)=>(G(),re("footer",{class:Y(b(n).b()),style:Et(b(r))},[Ge(a.$slots,"default")],6))}});var cZ=tt(I4e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/footer.vue"]]);const B4e=ye({name:"ElHeader"}),$4e=ye({...B4e,props:{height:{type:String,default:null}},setup(t){const e=t,n=Ye("header"),r=U(()=>e.height?n.cssVarBlock({height:e.height}):{});return(a,i)=>(G(),re("header",{class:Y(b(n).b()),style:Et(b(r))},[Ge(a.$slots,"default")],6))}});var fZ=tt($4e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/header.vue"]]);const P4e=ye({name:"ElMain"}),F4e=ye({...P4e,setup(t){const e=Ye("main");return(n,r)=>(G(),re("main",{class:Y(b(e).b())},[Ge(n.$slots,"default")],2))}});var dZ=tt(F4e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/main.vue"]]);const z4e=tn(L4e,{Aside:uZ,Footer:cZ,Header:fZ,Main:dZ}),U4e=ta(uZ),G4e=ta(cZ),H4e=ta(fZ),W4e=ta(dZ);var hZ={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(ya,function(){return function(n,r){var a=r.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)}}})})(hZ);var j4e=hZ.exports;const K4e=xi(j4e);var pZ={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(ya,function(){var n="week",r="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(r).add(1,r).date(u),f=o(this).endOf(n);if(c.isBefore(f))return 1}var d=o(this).startOf(r).date(u).startOf(n).subtract(1,"millisecond"),h=this.diff(d,n,!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)}}})})(pZ);var Y4e=pZ.exports;const X4e=xi(Y4e);var vZ={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(ya,function(){return function(n,r){r.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}}})})(vZ);var q4e=vZ.exports;const Z4e=xi(q4e);var gZ={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(ya,function(){return function(n,r,a){r.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")}}})})(gZ);var Q4e=gZ.exports;const J4e=xi(Q4e);var yZ={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(ya,function(){return function(n,r){r.prototype.isSameOrAfter=function(a,i){return this.isSame(a,i)||this.isAfter(a,i)}}})})(yZ);var eVe=yZ.exports;const tVe=xi(eVe);var mZ={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(ya,function(){return function(n,r){r.prototype.isSameOrBefore=function(a,i){return this.isSame(a,i)||this.isBefore(a,i)}}})})(mZ);var nVe=mZ.exports;const rVe=xi(nVe),hV=Symbol(),aVe=nt({...cV,type:{type:ke(String),default:"date"}}),iVe=["date","dates","year","month","week","range"],pV=nt({disabledDate:{type:ke(Function)},date:{type:ke(Object),required:!0},minDate:{type:ke(Object)},maxDate:{type:ke(Object)},parsedValue:{type:ke([Object,Array])},rangeState:{type:ke(Object),default:()=>({endDate:null,selecting:!1})}}),bZ=nt({type:{type:ke(String),required:!0,values:jTe}}),SZ=nt({unlinkPanels:Boolean,parsedValue:{type:ke(Array)}}),wZ=t=>({type:String,values:iVe,default:t}),oVe=nt({...bZ,parsedValue:{type:ke([Object,Array])},visible:{type:Boolean},format:{type:String,default:""}}),sVe=nt({...pV,cellClassName:{type:ke(Function)},showWeekNumber:Boolean,selectionMode:wZ("date")}),lVe=["changerange","pick","select"],qR=t=>{if(!gt(t))return!1;const[e,n]=t;return Jt.isDayjs(e)&&Jt.isDayjs(n)&&e.isSameOrBefore(n)},xZ=(t,{lang:e,unit:n,unlinkPanels:r})=>{let a;if(gt(t)){let[i,o]=t.map(s=>Jt(s).locale(e));return r||(o=i.add(1,n)),[i,o]}else t?a=Jt(t):a=Jt();return a=a.locale(e),[a,a.add(1,n)]},uVe=(t,e,{columnIndexOffset:n,startDate:r,nextEndDate:a,now:i,unit:o,relativeDateGetter:s,setCellMetadata:l,setRowMetadata:u})=>{for(let c=0;c<t.row;c++){const f=e[c];for(let d=0;d<t.column;d++){let h=f[d+n];h||(h={row:c,column:d,type:"normal",inRange:!1,start:!1,end:!1});const p=c*t.column+d,v=s(p);h.dayjs=v,h.date=v.toDate(),h.timestamp=v.valueOf(),h.type="normal",h.inRange=!!(r&&v.isSameOrAfter(r,o)&&a&&v.isSameOrBefore(a,o))||!!(r&&v.isSameOrBefore(r,o)&&a&&v.isSameOrAfter(a,o)),r!=null&&r.isSameOrAfter(a)?(h.start=!!a&&v.isSame(a,o),h.end=r&&v.isSame(r,o)):(h.start=!!r&&v.isSame(r,o),h.end=!!a&&v.isSame(a,o)),v.isSame(i,o)&&(h.type="today"),l==null||l(h,{rowIndex:c,columnIndex:d}),f[d+n]=h}u==null||u(f)}},ZR=(t="")=>["normal","today"].includes(t),cVe=(t,e)=>{const{lang:n}=En(),r=B(),a=B(),i=B(),o=B(),s=B([[],[],[],[],[],[]]);let l=!1;const u=t.date.$locale().weekStart||7,c=t.date.locale("en").localeData().weekdaysShort().map(V=>V.toLowerCase()),f=U(()=>u>3?7-u:-u),d=U(()=>{const V=t.date.startOf("month");return V.subtract(V.day()||7,"day")}),h=U(()=>c.concat(c).slice(u,u+7)),p=U(()=>LY(b(w)).some(V=>V.isCurrent)),v=U(()=>{const V=t.date.startOf("month"),z=V.day()||7,K=V.daysInMonth(),Z=V.subtract(1,"month").daysInMonth();return{startOfMonthDay:z,dateCountOfMonth:K,dateCountOfLastMonth:Z}}),g=U(()=>t.selectionMode==="dates"?tc(t.parsedValue):[]),y=(V,{count:z,rowIndex:K,columnIndex:Z})=>{const{startOfMonthDay:oe,dateCountOfMonth:ge,dateCountOfLastMonth:ie}=b(v),Q=b(f);if(K>=0&&K<=1){const ce=oe+Q<0?7+oe+Q:oe+Q;if(Z+K*7>=ce)return V.text=z,!0;V.text=ie-(ce-Z%7)+1+K*7,V.type="prev-month"}else return z<=ge?V.text=z:(V.text=z-ge,V.type="next-month"),!0;return!1},m=(V,{columnIndex:z,rowIndex:K},Z)=>{const{disabledDate:oe,cellClassName:ge}=t,ie=b(g),Q=y(V,{count:Z,rowIndex:K,columnIndex:z}),ce=V.dayjs.toDate();return V.selected=ie.find(se=>se.valueOf()===V.dayjs.valueOf()),V.isSelected=!!V.selected,V.isCurrent=_(V),V.disabled=oe==null?void 0:oe(ce),V.customClass=ge==null?void 0:ge(ce),Q},S=V=>{if(t.selectionMode==="week"){const[z,K]=t.showWeekNumber?[1,7]:[0,6],Z=W(V[z+1]);V[z].inRange=Z,V[z].start=Z,V[K].inRange=Z,V[K].end=Z}},w=U(()=>{const{minDate:V,maxDate:z,rangeState:K,showWeekNumber:Z}=t,oe=b(f),ge=b(s),ie="day";let Q=1;if(Z)for(let ce=0;ce<6;ce++)ge[ce][0]||(ge[ce][0]={type:"week",text:b(d).add(ce*7+1,ie).week()});return uVe({row:6,column:7},ge,{startDate:V,columnIndexOffset:Z?1:0,nextEndDate:K.endDate||z||K.selecting&&V||null,now:Jt().locale(b(n)).startOf(ie),unit:ie,relativeDateGetter:ce=>b(d).add(ce-oe,ie),setCellMetadata:(...ce)=>{m(...ce,Q)&&(Q+=1)},setRowMetadata:S}),ge});Ke(()=>t.date,async()=>{var V;(V=b(r))!=null&&V.contains(document.activeElement)&&(await xt(),await C())});const C=async()=>{var V;return(V=b(a))==null?void 0:V.focus()},_=V=>t.selectionMode==="date"&&ZR(V.type)&&x(V,t.parsedValue),x=(V,z)=>z?Jt(z).locale(b(n)).isSame(t.date.date(Number(V.text)),"day"):!1,T=(V,z)=>{const K=V*7+(z-(t.showWeekNumber?1:0))-b(f);return b(d).add(K,"day")},M=V=>{var z;if(!t.rangeState.selecting)return;let K=V.target;if(K.tagName==="SPAN"&&(K=(z=K.parentNode)==null?void 0:z.parentNode),K.tagName==="DIV"&&(K=K.parentNode),K.tagName!=="TD")return;const Z=K.parentNode.rowIndex-1,oe=K.cellIndex;b(w)[Z][oe].disabled||(Z!==b(i)||oe!==b(o))&&(i.value=Z,o.value=oe,e("changerange",{selecting:!0,endDate:T(Z,oe)}))},E=V=>!b(p)&&(V==null?void 0:V.text)===1&&V.type==="normal"||V.isCurrent,A=V=>{l||b(p)||t.selectionMode!=="date"||$(V,!0)},k=V=>{V.target.closest("td")&&(l=!0)},L=V=>{V.target.closest("td")&&(l=!1)},I=V=>{!t.rangeState.selecting||!t.minDate?(e("pick",{minDate:V,maxDate:null}),e("select",!0)):(V>=t.minDate?e("pick",{minDate:t.minDate,maxDate:V}):e("pick",{minDate:V,maxDate:t.minDate}),e("select",!1))},P=V=>{const z=V.week(),K=`${V.year()}w${z}`;e("pick",{year:V.year(),week:z,value:K,date:V.startOf("week")})},F=(V,z)=>{const K=z?tc(t.parsedValue).filter(Z=>(Z==null?void 0:Z.valueOf())!==V.valueOf()):tc(t.parsedValue).concat([V]);e("pick",K)},$=(V,z=!1)=>{const K=V.target.closest("td");if(!K)return;const Z=K.parentNode.rowIndex-1,oe=K.cellIndex,ge=b(w)[Z][oe];if(ge.disabled||ge.type==="week")return;const ie=T(Z,oe);switch(t.selectionMode){case"range":{I(ie);break}case"date":{e("pick",ie,z);break}case"week":{P(ie);break}case"dates":{F(ie,!!ge.selected);break}}},W=V=>{if(t.selectionMode!=="week")return!1;let z=t.date.startOf("day");if(V.type==="prev-month"&&(z=z.subtract(1,"month")),V.type==="next-month"&&(z=z.add(1,"month")),z=z.date(Number.parseInt(V.text,10)),t.parsedValue&&!Array.isArray(t.parsedValue)){const K=(t.parsedValue.day()-u+7)%7-1;return t.parsedValue.subtract(K,"day").isSame(z,"day")}return!1};return{WEEKS:h,rows:w,tbodyRef:r,currentCellRef:a,focus:C,isCurrent:_,isWeekActive:W,isSelectedCell:E,handlePickDate:$,handleMouseUp:L,handleMouseDown:k,handleMouseMove:M,handleFocus:A}},fVe=(t,{isCurrent:e,isWeekActive:n})=>{const r=Ye("date-table"),{t:a}=En(),i=U(()=>[r.b(),{"is-week-mode":t.selectionMode==="week"}]),o=U(()=>a("el.datepicker.dateTablePrompt")),s=U(()=>a("el.datepicker.week"));return{tableKls:i,tableLabel:o,weekLabel:s,getCellClasses:c=>{const f=[];return ZR(c.type)&&!c.disabled?(f.push("available"),c.type==="today"&&f.push("today")):f.push(c.type),e(c)&&f.push("current"),c.inRange&&(ZR(c.type)||t.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=>[r.e("row"),{current:n(c)}],t:a}},dVe=nt({cell:{type:ke(Object)}});var hVe=ye({name:"ElDatePickerCell",props:dVe,setup(t){const e=Ye("date-table-cell"),{slots:n}=yt(hV);return()=>{const{cell:r}=t;if(n.default){const a=n.default(r).filter(i=>i.patchFlag!==-2&&i.type.toString()!=="Symbol(Comment)");if(a.length)return a}return N("div",{class:e.b()},[N("span",{class:e.e("text")},[r==null?void 0:r.text])])}}});const pVe=["aria-label"],vVe={key:0,scope:"col"},gVe=["aria-label"],yVe=["aria-current","aria-selected","tabindex"],mVe=ye({__name:"basic-date-table",props:sVe,emits:lVe,setup(t,{expose:e,emit:n}){const r=t,{WEEKS:a,rows:i,tbodyRef:o,currentCellRef:s,focus:l,isCurrent:u,isWeekActive:c,isSelectedCell:f,handlePickDate:d,handleMouseUp:h,handleMouseDown:p,handleMouseMove:v,handleFocus:g}=cVe(r,n),{tableLabel:y,tableKls:m,weekLabel:S,getCellClasses:w,getRowKls:C,t:_}=fVe(r,{isCurrent:u,isWeekActive:c});return e({focus:l}),(x,T)=>(G(),re("table",{"aria-label":b(y),class:Y(b(m)),cellspacing:"0",cellpadding:"0",role:"grid",onClick:T[1]||(T[1]=(...M)=>b(d)&&b(d)(...M)),onMousemove:T[2]||(T[2]=(...M)=>b(v)&&b(v)(...M)),onMousedown:T[3]||(T[3]=It((...M)=>b(p)&&b(p)(...M),["prevent"])),onMouseup:T[4]||(T[4]=(...M)=>b(h)&&b(h)(...M))},[R("tbody",{ref_key:"tbodyRef",ref:o},[R("tr",null,[x.showWeekNumber?(G(),re("th",vVe,We(b(S)),1)):_e("v-if",!0),(G(!0),re(Ct,null,dn(b(a),(M,E)=>(G(),re("th",{key:E,"aria-label":b(_)("el.datepicker.weeksFull."+M),scope:"col"},We(b(_)("el.datepicker.weeks."+M)),9,gVe))),128))]),(G(!0),re(Ct,null,dn(b(i),(M,E)=>(G(),re("tr",{key:E,class:Y(b(C)(M[1]))},[(G(!0),re(Ct,null,dn(M,(A,k)=>(G(),re("td",{key:`${E}.${k}`,ref_for:!0,ref:L=>b(f)(A)&&(s.value=L),class:Y(b(w)(A)),"aria-current":A.isCurrent?"date":void 0,"aria-selected":A.isCurrent,tabindex:b(f)(A)?0:-1,onFocus:T[0]||(T[0]=(...L)=>b(g)&&b(g)(...L))},[N(b(hVe),{cell:A},null,8,["cell"])],42,yVe))),128))],2))),128))],512)],42,pVe))}});var QR=tt(mVe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/basic-date-table.vue"]]);const bVe=nt({...pV,selectionMode:wZ("month")}),SVe=["aria-label"],wVe=["aria-selected","aria-label","tabindex","onKeydown"],xVe={class:"cell"},_Ve=ye({__name:"basic-month-table",props:bVe,emits:["changerange","pick","select"],setup(t,{expose:e,emit:n}){const r=t,a=(w,C,_)=>{const x=Jt().locale(_).startOf("month").month(C).year(w),T=x.daysInMonth();return kf(T).map(M=>x.add(M,"day").toDate())},i=Ye("month-table"),{t:o,lang:s}=En(),l=B(),u=B(),c=B(r.date.locale("en").localeData().monthsShort().map(w=>w.toLowerCase())),f=B([[],[],[]]),d=B(),h=B(),p=U(()=>{var w,C;const _=f.value,x=Jt().locale(s.value).startOf("month");for(let T=0;T<3;T++){const M=_[T];for(let E=0;E<4;E++){const A=M[E]||(M[E]={row:T,column:E,type:"normal",inRange:!1,start:!1,end:!1,text:-1,disabled:!1});A.type="normal";const k=T*4+E,L=r.date.startOf("year").month(k),I=r.rangeState.endDate||r.maxDate||r.rangeState.selecting&&r.minDate||null;A.inRange=!!(r.minDate&&L.isSameOrAfter(r.minDate,"month")&&I&&L.isSameOrBefore(I,"month"))||!!(r.minDate&&L.isSameOrBefore(r.minDate,"month")&&I&&L.isSameOrAfter(I,"month")),(w=r.minDate)!=null&&w.isSameOrAfter(I)?(A.start=!!(I&&L.isSame(I,"month")),A.end=r.minDate&&L.isSame(r.minDate,"month")):(A.start=!!(r.minDate&&L.isSame(r.minDate,"month")),A.end=!!(I&&L.isSame(I,"month"))),x.isSame(L)&&(A.type="today"),A.text=k,A.disabled=((C=r.disabledDate)==null?void 0:C.call(r,L.toDate()))||!1}}return _}),v=()=>{var w;(w=u.value)==null||w.focus()},g=w=>{const C={},_=r.date.year(),x=new Date,T=w.text;return C.disabled=r.disabledDate?a(_,T,s.value).every(r.disabledDate):!1,C.current=tc(r.parsedValue).findIndex(M=>Jt.isDayjs(M)&&M.year()===_&&M.month()===T)>=0,C.today=x.getFullYear()===_&&x.getMonth()===T,w.inRange&&(C["in-range"]=!0,w.start&&(C["start-date"]=!0),w.end&&(C["end-date"]=!0)),C},y=w=>{const C=r.date.year(),_=w.text;return tc(r.date).findIndex(x=>x.year()===C&&x.month()===_)>=0},m=w=>{var C;if(!r.rangeState.selecting)return;let _=w.target;if(_.tagName==="A"&&(_=(C=_.parentNode)==null?void 0:C.parentNode),_.tagName==="DIV"&&(_=_.parentNode),_.tagName!=="TD")return;const x=_.parentNode.rowIndex,T=_.cellIndex;p.value[x][T].disabled||(x!==d.value||T!==h.value)&&(d.value=x,h.value=T,n("changerange",{selecting:!0,endDate:r.date.startOf("year").month(x*4+T)}))},S=w=>{var C;const _=(C=w.target)==null?void 0:C.closest("td");if((_==null?void 0:_.tagName)!=="TD"||dl(_,"disabled"))return;const x=_.cellIndex,M=_.parentNode.rowIndex*4+x,E=r.date.startOf("year").month(M);r.selectionMode==="range"?r.rangeState.selecting?(r.minDate&&E>=r.minDate?n("pick",{minDate:r.minDate,maxDate:E}):n("pick",{minDate:E,maxDate:r.minDate}),n("select",!1)):(n("pick",{minDate:E,maxDate:null}),n("select",!0)):n("pick",M)};return Ke(()=>r.date,async()=>{var w,C;(w=l.value)!=null&&w.contains(document.activeElement)&&(await xt(),(C=u.value)==null||C.focus())}),e({focus:v}),(w,C)=>(G(),re("table",{role:"grid","aria-label":b(o)("el.datepicker.monthTablePrompt"),class:Y(b(i).b()),onClick:S,onMousemove:m},[R("tbody",{ref_key:"tbodyRef",ref:l},[(G(!0),re(Ct,null,dn(b(p),(_,x)=>(G(),re("tr",{key:x},[(G(!0),re(Ct,null,dn(_,(T,M)=>(G(),re("td",{key:M,ref_for:!0,ref:E=>y(T)&&(u.value=E),class:Y(g(T)),"aria-selected":`${y(T)}`,"aria-label":b(o)(`el.datepicker.month${+T.text+1}`),tabindex:y(T)?0:-1,onKeydown:[Tn(It(S,["prevent","stop"]),["space"]),Tn(It(S,["prevent","stop"]),["enter"])]},[R("div",null,[R("span",xVe,We(b(o)("el.datepicker.months."+c.value[T.text])),1)])],42,wVe))),128))]))),128))],512)],42,SVe))}});var JR=tt(_Ve,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/basic-month-table.vue"]]);const{date:CVe,disabledDate:TVe,parsedValue:EVe}=pV,MVe=nt({date:CVe,disabledDate:TVe,parsedValue:EVe}),DVe=["aria-label"],AVe=["aria-selected","tabindex","onKeydown"],kVe={class:"cell"},RVe={key:1},LVe=ye({__name:"basic-year-table",props:MVe,emits:["pick"],setup(t,{expose:e,emit:n}){const r=t,a=(v,g)=>{const y=Jt(String(v)).locale(g).startOf("year"),S=y.endOf("year").dayOfYear();return kf(S).map(w=>y.add(w,"day").toDate())},i=Ye("year-table"),{t:o,lang:s}=En(),l=B(),u=B(),c=U(()=>Math.floor(r.date.year()/10)*10),f=()=>{var v;(v=u.value)==null||v.focus()},d=v=>{const g={},y=Jt().locale(s.value);return g.disabled=r.disabledDate?a(v,s.value).every(r.disabledDate):!1,g.current=tc(r.parsedValue).findIndex(m=>m.year()===v)>=0,g.today=y.year()===v,g},h=v=>v===c.value&&r.date.year()<c.value&&r.date.year()>c.value+9||tc(r.date).findIndex(g=>g.year()===v)>=0,p=v=>{const y=v.target.closest("td");if(y&&y.textContent){if(dl(y,"disabled"))return;const m=y.textContent||y.innerText;n("pick",Number(m))}};return Ke(()=>r.date,async()=>{var v,g;(v=l.value)!=null&&v.contains(document.activeElement)&&(await xt(),(g=u.value)==null||g.focus())}),e({focus:f}),(v,g)=>(G(),re("table",{role:"grid","aria-label":b(o)("el.datepicker.yearTablePrompt"),class:Y(b(i).b()),onClick:p},[R("tbody",{ref_key:"tbodyRef",ref:l},[(G(),re(Ct,null,dn(3,(y,m)=>R("tr",{key:m},[(G(),re(Ct,null,dn(4,(S,w)=>(G(),re(Ct,{key:m+"_"+w},[m*4+w<10?(G(),re("td",{key:0,ref_for:!0,ref:C=>h(b(c)+m*4+w)&&(u.value=C),class:Y(["available",d(b(c)+m*4+w)]),"aria-selected":`${h(b(c)+m*4+w)}`,tabindex:h(b(c)+m*4+w)?0:-1,onKeydown:[Tn(It(p,["prevent","stop"]),["space"]),Tn(It(p,["prevent","stop"]),["enter"])]},[R("span",kVe,We(b(c)+m*4+w),1)],42,AVe)):(G(),re("td",RVe))],64))),64))])),64))],512)],10,DVe))}});var OVe=tt(LVe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/basic-year-table.vue"]]);const VVe=["onClick"],NVe=["aria-label"],IVe=["aria-label"],BVe=["aria-label"],$Ve=["aria-label"],PVe=ye({__name:"panel-date-pick",props:oVe,emits:["pick","set-picker-option","panel-change"],setup(t,{emit:e}){const n=t,r=(Oe,be,xe)=>!0,a=Ye("picker-panel"),i=Ye("date-picker"),o=Dp(),s=wi(),{t:l,lang:u}=En(),c=yt("EP_PICKER_BASE"),f=yt(RT),{shortcuts:d,disabledDate:h,cellClassName:p,defaultTime:v}=c.props,g=Wr(c.props,"defaultValue"),y=B(),m=B(Jt().locale(u.value)),S=B(!1);let w=!1;const C=U(()=>Jt(v).locale(u.value)),_=U(()=>m.value.month()),x=U(()=>m.value.year()),T=B([]),M=B(null),E=B(null),A=Oe=>T.value.length>0?r(Oe,T.value,n.format||"HH:mm:ss"):!0,k=Oe=>v&&!fe.value&&!S.value&&!w?C.value.year(Oe.year()).month(Oe.month()).date(Oe.date()):Q.value?Oe.millisecond(0):Oe.startOf("day"),L=(Oe,...be)=>{if(!Oe)e("pick",Oe,...be);else if(gt(Oe)){const xe=Oe.map(k);e("pick",xe,...be)}else e("pick",k(Oe),...be);M.value=null,E.value=null,S.value=!1,w=!1},I=(Oe,be)=>{if(z.value==="date"){Oe=Oe;let xe=n.parsedValue?n.parsedValue.year(Oe.year()).month(Oe.month()).date(Oe.date()):Oe;A(xe)||(xe=T.value[0][0].year(Oe.year()).month(Oe.month()).date(Oe.date())),m.value=xe,L(xe,Q.value||be)}else z.value==="week"?L(Oe.date):z.value==="dates"&&L(Oe,!0)},P=Oe=>{const be=Oe?"add":"subtract";m.value=m.value[be](1,"month"),dt("month")},F=Oe=>{const be=m.value,xe=Oe?"add":"subtract";m.value=$.value==="year"?be[xe](10,"year"):be[xe](1,"year"),dt("year")},$=B("date"),W=U(()=>{const Oe=l("el.datepicker.year");if($.value==="year"){const be=Math.floor(x.value/10)*10;return Oe?`${be} ${Oe} - ${be+9} ${Oe}`:`${be} - ${be+9}`}return`${x.value} ${Oe}`}),V=Oe=>{const be=zt(Oe.value)?Oe.value():Oe.value;if(be){w=!0,L(Jt(be).locale(u.value));return}Oe.onClick&&Oe.onClick({attrs:o,slots:s,emit:e})},z=U(()=>{const{type:Oe}=n;return["week","month","year","dates"].includes(Oe)?Oe:"date"}),K=U(()=>z.value==="date"?$.value:z.value),Z=U(()=>!!d.length),oe=async Oe=>{m.value=m.value.startOf("month").month(Oe),z.value==="month"?L(m.value,!1):($.value="date",["month","year","date","week"].includes(z.value)&&(L(m.value,!0),await xt(),mt())),dt("month")},ge=async Oe=>{z.value==="year"?(m.value=m.value.startOf("year").year(Oe),L(m.value,!1)):(m.value=m.value.year(Oe),$.value="month",["month","year","date","week"].includes(z.value)&&(L(m.value,!0),await xt(),mt())),dt("year")},ie=async Oe=>{$.value=Oe,await xt(),mt()},Q=U(()=>n.type==="datetime"||n.type==="datetimerange"),ce=U(()=>Q.value||z.value==="dates"),se=U(()=>h?n.parsedValue?gt(n.parsedValue)?h(n.parsedValue[0].toDate()):h(n.parsedValue.toDate()):!0:!1),me=()=>{if(z.value==="dates")L(n.parsedValue);else{let Oe=n.parsedValue;if(!Oe){const be=Jt(v).locale(u.value),xe=Xe();Oe=be.year(xe.year()).month(xe.month()).date(xe.date())}m.value=Oe,L(Oe)}},ve=U(()=>h?h(Jt().locale(u.value).toDate()):!1),he=()=>{const be=Jt().locale(u.value).toDate();S.value=!0,(!h||!h(be))&&A(be)&&(m.value=Jt().locale(u.value),L(m.value))},ee=U(()=>Tq(n.format)),ue=U(()=>Cq(n.format)),fe=U(()=>{if(E.value)return E.value;if(!(!n.parsedValue&&!g.value))return(n.parsedValue||m.value).format(ee.value)}),Re=U(()=>{if(M.value)return M.value;if(!(!n.parsedValue&&!g.value))return(n.parsedValue||m.value).format(ue.value)}),Ne=B(!1),De=()=>{Ne.value=!0},we=()=>{Ne.value=!1},ae=Oe=>({hour:Oe.hour(),minute:Oe.minute(),second:Oe.second(),year:Oe.year(),month:Oe.month(),date:Oe.date()}),Ie=(Oe,be,xe)=>{const{hour:Pe,minute:pe,second:it}=ae(Oe),Tt=n.parsedValue?n.parsedValue.hour(Pe).minute(pe).second(it):Oe;m.value=Tt,L(m.value,!0),xe||(Ne.value=be)},He=Oe=>{const be=Jt(Oe,ee.value).locale(u.value);if(be.isValid()&&A(be)){const{year:xe,month:Pe,date:pe}=ae(m.value);m.value=be.year(xe).month(Pe).date(pe),E.value=null,Ne.value=!1,L(m.value,!0)}},Ce=Oe=>{const be=Jt(Oe,ue.value).locale(u.value);if(be.isValid()){if(h&&h(be.toDate()))return;const{hour:xe,minute:Pe,second:pe}=ae(m.value);m.value=be.hour(xe).minute(Pe).second(pe),M.value=null,L(m.value,!0)}},qe=Oe=>Jt.isDayjs(Oe)&&Oe.isValid()&&(h?!h(Oe.toDate()):!0),Ze=Oe=>z.value==="dates"?Oe.map(be=>be.format(n.format)):Oe.format(n.format),de=Oe=>Jt(Oe,n.format).locale(u.value),Xe=()=>{const Oe=Jt(g.value).locale(u.value);if(!g.value){const be=C.value;return Jt().hour(be.hour()).minute(be.minute()).second(be.second()).locale(u.value)}return Oe},mt=async()=>{var Oe;["week","month","year","date"].includes(z.value)&&((Oe=y.value)==null||Oe.focus(),z.value==="week"&&Vt(Dt.down))},kt=Oe=>{const{code:be}=Oe;[Dt.up,Dt.down,Dt.left,Dt.right,Dt.home,Dt.end,Dt.pageUp,Dt.pageDown].includes(be)&&(Vt(be),Oe.stopPropagation(),Oe.preventDefault()),[Dt.enter,Dt.space,Dt.numpadEnter].includes(be)&&M.value===null&&E.value===null&&(Oe.preventDefault(),L(m.value,!1))},Vt=Oe=>{var be;const{up:xe,down:Pe,left:pe,right:it,home:Tt,end:Wt,pageUp:Kn,pageDown:Nn}=Dt,fr={year:{[xe]:-4,[Pe]:4,[pe]:-1,[it]:1,offset:(Ue,ot)=>Ue.setFullYear(Ue.getFullYear()+ot)},month:{[xe]:-4,[Pe]:4,[pe]:-1,[it]:1,offset:(Ue,ot)=>Ue.setMonth(Ue.getMonth()+ot)},week:{[xe]:-1,[Pe]:1,[pe]:-1,[it]:1,offset:(Ue,ot)=>Ue.setDate(Ue.getDate()+ot*7)},date:{[xe]:-7,[Pe]:7,[pe]:-1,[it]:1,[Tt]:Ue=>-Ue.getDay(),[Wt]:Ue=>-Ue.getDay()+6,[Kn]:Ue=>-new Date(Ue.getFullYear(),Ue.getMonth(),0).getDate(),[Nn]:Ue=>new Date(Ue.getFullYear(),Ue.getMonth()+1,0).getDate(),offset:(Ue,ot)=>Ue.setDate(Ue.getDate()+ot)}},wr=m.value.toDate();for(;Math.abs(m.value.diff(wr,"year",!0))<1;){const Ue=fr[K.value];if(!Ue)return;if(Ue.offset(wr,zt(Ue[Oe])?Ue[Oe](wr):(be=Ue[Oe])!=null?be:0),h&&h(wr))break;const ot=Jt(wr).locale(u.value);m.value=ot,e("pick",ot,!0);break}},dt=Oe=>{e("panel-change",m.value.toDate(),Oe,$.value)};return Ke(()=>z.value,Oe=>{if(["month","year"].includes(Oe)){$.value=Oe;return}$.value="date"},{immediate:!0}),Ke(()=>$.value,()=>{f==null||f.updatePopper()}),Ke(()=>g.value,Oe=>{Oe&&(m.value=Xe())},{immediate:!0}),Ke(()=>n.parsedValue,Oe=>{if(Oe){if(z.value==="dates"||Array.isArray(Oe))return;m.value=Oe}else m.value=Xe()},{immediate:!0}),e("set-picker-option",["isValidValue",qe]),e("set-picker-option",["formatToString",Ze]),e("set-picker-option",["parseUserInput",de]),e("set-picker-option",["handleFocusPicker",mt]),(Oe,be)=>(G(),re("div",{class:Y([b(a).b(),b(i).b(),{"has-sidebar":Oe.$slots.sidebar||b(Z),"has-time":b(Q)}])},[R("div",{class:Y(b(a).e("body-wrapper"))},[Ge(Oe.$slots,"sidebar",{class:Y(b(a).e("sidebar"))}),b(Z)?(G(),re("div",{key:0,class:Y(b(a).e("sidebar"))},[(G(!0),re(Ct,null,dn(b(d),(xe,Pe)=>(G(),re("button",{key:Pe,type:"button",class:Y(b(a).e("shortcut")),onClick:pe=>V(xe)},We(xe.text),11,VVe))),128))],2)):_e("v-if",!0),R("div",{class:Y(b(a).e("body"))},[b(Q)?(G(),re("div",{key:0,class:Y(b(i).e("time-header"))},[R("span",{class:Y(b(i).e("editor-wrap"))},[N(b(Ri),{placeholder:b(l)("el.datepicker.selectDate"),"model-value":b(Re),size:"small","validate-event":!1,onInput:be[0]||(be[0]=xe=>M.value=xe),onChange:Ce},null,8,["placeholder","model-value"])],2),Ft((G(),re("span",{class:Y(b(i).e("editor-wrap"))},[N(b(Ri),{placeholder:b(l)("el.datepicker.selectTime"),"model-value":b(fe),size:"small","validate-event":!1,onFocus:De,onInput:be[1]||(be[1]=xe=>E.value=xe),onChange:He},null,8,["placeholder","model-value"]),N(b(f2),{visible:Ne.value,format:b(ee),"parsed-value":m.value,onPick:Ie},null,8,["visible","format","parsed-value"])],2)),[[b(Wf),we]])],2)):_e("v-if",!0),Ft(R("div",{class:Y([b(i).e("header"),($.value==="year"||$.value==="month")&&b(i).e("header--bordered")])},[R("span",{class:Y(b(i).e("prev-btn"))},[R("button",{type:"button","aria-label":b(l)("el.datepicker.prevYear"),class:Y(["d-arrow-left",b(a).e("icon-btn")]),onClick:be[2]||(be[2]=xe=>F(!1))},[N(b(_t),null,{default:j(()=>[N(b(Lg))]),_:1})],10,NVe),Ft(R("button",{type:"button","aria-label":b(l)("el.datepicker.prevMonth"),class:Y([b(a).e("icon-btn"),"arrow-left"]),onClick:be[3]||(be[3]=xe=>P(!1))},[N(b(_t),null,{default:j(()=>[N(b(sc))]),_:1})],10,IVe),[[cn,$.value==="date"]])],2),R("span",{role:"button",class:Y(b(i).e("header-label")),"aria-live":"polite",tabindex:"0",onKeydown:be[4]||(be[4]=Tn(xe=>ie("year"),["enter"])),onClick:be[5]||(be[5]=xe=>ie("year"))},We(b(W)),35),Ft(R("span",{role:"button","aria-live":"polite",tabindex:"0",class:Y([b(i).e("header-label"),{active:$.value==="month"}]),onKeydown:be[6]||(be[6]=Tn(xe=>ie("month"),["enter"])),onClick:be[7]||(be[7]=xe=>ie("month"))},We(b(l)(`el.datepicker.month${b(_)+1}`)),35),[[cn,$.value==="date"]]),R("span",{class:Y(b(i).e("next-btn"))},[Ft(R("button",{type:"button","aria-label":b(l)("el.datepicker.nextMonth"),class:Y([b(a).e("icon-btn"),"arrow-right"]),onClick:be[8]||(be[8]=xe=>P(!0))},[N(b(_t),null,{default:j(()=>[N(b(Li))]),_:1})],10,BVe),[[cn,$.value==="date"]]),R("button",{type:"button","aria-label":b(l)("el.datepicker.nextYear"),class:Y([b(a).e("icon-btn"),"d-arrow-right"]),onClick:be[9]||(be[9]=xe=>F(!0))},[N(b(_t),null,{default:j(()=>[N(b(Og))]),_:1})],10,$Ve)],2)],2),[[cn,$.value!=="time"]]),R("div",{class:Y(b(a).e("content")),onKeydown:kt},[$.value==="date"?(G(),Ee(QR,{key:0,ref_key:"currentViewRef",ref:y,"selection-mode":b(z),date:m.value,"parsed-value":Oe.parsedValue,"disabled-date":b(h),"cell-class-name":b(p),onPick:I},null,8,["selection-mode","date","parsed-value","disabled-date","cell-class-name"])):_e("v-if",!0),$.value==="year"?(G(),Ee(OVe,{key:1,ref_key:"currentViewRef",ref:y,date:m.value,"disabled-date":b(h),"parsed-value":Oe.parsedValue,onPick:ge},null,8,["date","disabled-date","parsed-value"])):_e("v-if",!0),$.value==="month"?(G(),Ee(JR,{key:2,ref_key:"currentViewRef",ref:y,date:m.value,"parsed-value":Oe.parsedValue,"disabled-date":b(h),onPick:oe},null,8,["date","parsed-value","disabled-date"])):_e("v-if",!0)],34)],2)],2),Ft(R("div",{class:Y(b(a).e("footer"))},[Ft(N(b(ct),{text:"",size:"small",class:Y(b(a).e("link-btn")),disabled:b(ve),onClick:he},{default:j(()=>[Be(We(b(l)("el.datepicker.now")),1)]),_:1},8,["class","disabled"]),[[cn,b(z)!=="dates"]]),N(b(ct),{plain:"",size:"small",class:Y(b(a).e("link-btn")),disabled:b(se),onClick:me},{default:j(()=>[Be(We(b(l)("el.datepicker.confirm")),1)]),_:1},8,["class","disabled"])],2),[[cn,b(ce)&&$.value==="date"]])],2))}});var FVe=tt(PVe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/panel-date-pick.vue"]]);const zVe=nt({...bZ,...SZ}),UVe=t=>{const{emit:e}=Qt(),n=Dp(),r=wi();return i=>{const o=zt(i.value)?i.value():i.value;if(o){e("pick",[Jt(o[0]).locale(t.value),Jt(o[1]).locale(t.value)]);return}i.onClick&&i.onClick({attrs:n,slots:r,emit:e})}},_Z=(t,{defaultValue:e,leftDate:n,rightDate:r,unit:a,onParsedValueChanged:i})=>{const{emit:o}=Qt(),{pickerNs:s}=yt(hV),l=Ye("date-range-picker"),{t:u,lang:c}=En(),f=UVe(c),d=B(),h=B(),p=B({endDate:null,selecting:!1}),v=S=>{p.value=S},g=(S=!1)=>{const w=b(d),C=b(h);qR([w,C])&&o("pick",[w,C],S)},y=S=>{p.value.selecting=S,S||(p.value.endDate=null)},m=()=>{const[S,w]=xZ(b(e),{lang:b(c),unit:a,unlinkPanels:t.unlinkPanels});d.value=void 0,h.value=void 0,n.value=S,r.value=w};return Ke(e,S=>{S&&m()},{immediate:!0}),Ke(()=>t.parsedValue,S=>{if(gt(S)&&S.length===2){const[w,C]=S;d.value=w,n.value=w,h.value=C,i(b(d),b(h))}else m()},{immediate:!0}),{minDate:d,maxDate:h,rangeState:p,lang:c,ppNs:s,drpNs:l,handleChangeRange:v,handleRangeConfirm:g,handleShortcutClick:f,onSelect:y,t:u}},GVe=["onClick"],HVe=["aria-label"],WVe=["aria-label"],jVe=["disabled","aria-label"],KVe=["disabled","aria-label"],YVe=["disabled","aria-label"],XVe=["disabled","aria-label"],qVe=["aria-label"],ZVe=["aria-label"],jS="month",QVe=ye({__name:"panel-date-range",props:zVe,emits:["pick","set-picker-option","calendar-change","panel-change"],setup(t,{emit:e}){const n=t,r=yt("EP_PICKER_BASE"),{disabledDate:a,cellClassName:i,format:o,defaultTime:s,clearable:l}=r.props,u=Wr(r.props,"shortcuts"),c=Wr(r.props,"defaultValue"),{lang:f}=En(),d=B(Jt().locale(f.value)),h=B(Jt().locale(f.value).add(1,jS)),{minDate:p,maxDate:v,rangeState:g,ppNs:y,drpNs:m,handleChangeRange:S,handleRangeConfirm:w,handleShortcutClick:C,onSelect:_,t:x}=_Z(n,{defaultValue:c,leftDate:d,rightDate:h,unit:jS,onParsedValueChanged:be}),T=B({min:null,max:null}),M=B({min:null,max:null}),E=U(()=>`${d.value.year()} ${x("el.datepicker.year")} ${x(`el.datepicker.month${d.value.month()+1}`)}`),A=U(()=>`${h.value.year()} ${x("el.datepicker.year")} ${x(`el.datepicker.month${h.value.month()+1}`)}`),k=U(()=>d.value.year()),L=U(()=>d.value.month()),I=U(()=>h.value.year()),P=U(()=>h.value.month()),F=U(()=>!!u.value.length),$=U(()=>T.value.min!==null?T.value.min:p.value?p.value.format(Z.value):""),W=U(()=>T.value.max!==null?T.value.max:v.value||p.value?(v.value||p.value).format(Z.value):""),V=U(()=>M.value.min!==null?M.value.min:p.value?p.value.format(K.value):""),z=U(()=>M.value.max!==null?M.value.max:v.value||p.value?(v.value||p.value).format(K.value):""),K=U(()=>Tq(o)),Z=U(()=>Cq(o)),oe=xe=>qR(xe)&&(a?!a(xe[0].toDate())&&!a(xe[1].toDate()):!0),ge=()=>{d.value=d.value.subtract(1,"year"),n.unlinkPanels||(h.value=d.value.add(1,"month")),ee("year")},ie=()=>{d.value=d.value.subtract(1,"month"),n.unlinkPanels||(h.value=d.value.add(1,"month")),ee("month")},Q=()=>{n.unlinkPanels?h.value=h.value.add(1,"year"):(d.value=d.value.add(1,"year"),h.value=d.value.add(1,"month")),ee("year")},ce=()=>{n.unlinkPanels?h.value=h.value.add(1,"month"):(d.value=d.value.add(1,"month"),h.value=d.value.add(1,"month")),ee("month")},se=()=>{d.value=d.value.add(1,"year"),ee("year")},me=()=>{d.value=d.value.add(1,"month"),ee("month")},ve=()=>{h.value=h.value.subtract(1,"year"),ee("year")},he=()=>{h.value=h.value.subtract(1,"month"),ee("month")},ee=xe=>{e("panel-change",[d.value.toDate(),h.value.toDate()],xe)},ue=U(()=>{const xe=(L.value+1)%12,Pe=L.value+1>=12?1:0;return n.unlinkPanels&&new Date(k.value+Pe,xe)<new Date(I.value,P.value)}),fe=U(()=>n.unlinkPanels&&I.value*12+P.value-(k.value*12+L.value+1)>=12),Re=U(()=>!(p.value&&v.value&&!g.value.selecting&&qR([p.value,v.value]))),Ne=U(()=>n.type==="datetime"||n.type==="datetimerange"),De=(xe,Pe)=>{if(xe)return s?Jt(s[Pe]||s).locale(f.value).year(xe.year()).month(xe.month()).date(xe.date()):xe},we=(xe,Pe=!0)=>{const pe=xe.minDate,it=xe.maxDate,Tt=De(pe,0),Wt=De(it,1);v.value===Wt&&p.value===Tt||(e("calendar-change",[pe.toDate(),it&&it.toDate()]),v.value=Wt,p.value=Tt,!(!Pe||Ne.value)&&w())},ae=B(!1),Ie=B(!1),He=()=>{ae.value=!1},Ce=()=>{Ie.value=!1},qe=(xe,Pe)=>{T.value[Pe]=xe;const pe=Jt(xe,Z.value).locale(f.value);if(pe.isValid()){if(a&&a(pe.toDate()))return;Pe==="min"?(d.value=pe,p.value=(p.value||d.value).year(pe.year()).month(pe.month()).date(pe.date()),!n.unlinkPanels&&(!v.value||v.value.isBefore(p.value))&&(h.value=pe.add(1,"month"),v.value=p.value.add(1,"month"))):(h.value=pe,v.value=(v.value||h.value).year(pe.year()).month(pe.month()).date(pe.date()),!n.unlinkPanels&&(!p.value||p.value.isAfter(v.value))&&(d.value=pe.subtract(1,"month"),p.value=v.value.subtract(1,"month")))}},Ze=(xe,Pe)=>{T.value[Pe]=null},de=(xe,Pe)=>{M.value[Pe]=xe;const pe=Jt(xe,K.value).locale(f.value);pe.isValid()&&(Pe==="min"?(ae.value=!0,p.value=(p.value||d.value).hour(pe.hour()).minute(pe.minute()).second(pe.second()),(!v.value||v.value.isBefore(p.value))&&(v.value=p.value)):(Ie.value=!0,v.value=(v.value||h.value).hour(pe.hour()).minute(pe.minute()).second(pe.second()),h.value=v.value,v.value&&v.value.isBefore(p.value)&&(p.value=v.value)))},Xe=(xe,Pe)=>{M.value[Pe]=null,Pe==="min"?(d.value=p.value,ae.value=!1):(h.value=v.value,Ie.value=!1)},mt=(xe,Pe,pe)=>{M.value.min||(xe&&(d.value=xe,p.value=(p.value||d.value).hour(xe.hour()).minute(xe.minute()).second(xe.second())),pe||(ae.value=Pe),(!v.value||v.value.isBefore(p.value))&&(v.value=p.value,h.value=xe))},kt=(xe,Pe,pe)=>{M.value.max||(xe&&(h.value=xe,v.value=(v.value||h.value).hour(xe.hour()).minute(xe.minute()).second(xe.second())),pe||(Ie.value=Pe),v.value&&v.value.isBefore(p.value)&&(p.value=v.value))},Vt=()=>{d.value=xZ(b(c),{lang:b(f),unit:"month",unlinkPanels:n.unlinkPanels})[0],h.value=d.value.add(1,"month"),e("pick",null)},dt=xe=>gt(xe)?xe.map(Pe=>Pe.format(o)):xe.format(o),Oe=xe=>gt(xe)?xe.map(Pe=>Jt(Pe,o).locale(f.value)):Jt(xe,o).locale(f.value);function be(xe,Pe){if(n.unlinkPanels&&Pe){const pe=(xe==null?void 0:xe.year())||0,it=(xe==null?void 0:xe.month())||0,Tt=Pe.year(),Wt=Pe.month();h.value=pe===Tt&&it===Wt?Pe.add(1,jS):Pe}else h.value=d.value.add(1,jS),Pe&&(h.value=h.value.hour(Pe.hour()).minute(Pe.minute()).second(Pe.second()))}return e("set-picker-option",["isValidValue",oe]),e("set-picker-option",["parseUserInput",Oe]),e("set-picker-option",["formatToString",dt]),e("set-picker-option",["handleClear",Vt]),(xe,Pe)=>(G(),re("div",{class:Y([b(y).b(),b(m).b(),{"has-sidebar":xe.$slots.sidebar||b(F),"has-time":b(Ne)}])},[R("div",{class:Y(b(y).e("body-wrapper"))},[Ge(xe.$slots,"sidebar",{class:Y(b(y).e("sidebar"))}),b(F)?(G(),re("div",{key:0,class:Y(b(y).e("sidebar"))},[(G(!0),re(Ct,null,dn(b(u),(pe,it)=>(G(),re("button",{key:it,type:"button",class:Y(b(y).e("shortcut")),onClick:Tt=>b(C)(pe)},We(pe.text),11,GVe))),128))],2)):_e("v-if",!0),R("div",{class:Y(b(y).e("body"))},[b(Ne)?(G(),re("div",{key:0,class:Y(b(m).e("time-header"))},[R("span",{class:Y(b(m).e("editors-wrap"))},[R("span",{class:Y(b(m).e("time-picker-wrap"))},[N(b(Ri),{size:"small",disabled:b(g).selecting,placeholder:b(x)("el.datepicker.startDate"),class:Y(b(m).e("editor")),"model-value":b($),"validate-event":!1,onInput:Pe[0]||(Pe[0]=pe=>qe(pe,"min")),onChange:Pe[1]||(Pe[1]=pe=>Ze(pe,"min"))},null,8,["disabled","placeholder","class","model-value"])],2),Ft((G(),re("span",{class:Y(b(m).e("time-picker-wrap"))},[N(b(Ri),{size:"small",class:Y(b(m).e("editor")),disabled:b(g).selecting,placeholder:b(x)("el.datepicker.startTime"),"model-value":b(V),"validate-event":!1,onFocus:Pe[2]||(Pe[2]=pe=>ae.value=!0),onInput:Pe[3]||(Pe[3]=pe=>de(pe,"min")),onChange:Pe[4]||(Pe[4]=pe=>Xe(pe,"min"))},null,8,["class","disabled","placeholder","model-value"]),N(b(f2),{visible:ae.value,format:b(K),"datetime-role":"start","parsed-value":d.value,onPick:mt},null,8,["visible","format","parsed-value"])],2)),[[b(Wf),He]])],2),R("span",null,[N(b(_t),null,{default:j(()=>[N(b(Li))]),_:1})]),R("span",{class:Y([b(m).e("editors-wrap"),"is-right"])},[R("span",{class:Y(b(m).e("time-picker-wrap"))},[N(b(Ri),{size:"small",class:Y(b(m).e("editor")),disabled:b(g).selecting,placeholder:b(x)("el.datepicker.endDate"),"model-value":b(W),readonly:!b(p),"validate-event":!1,onInput:Pe[5]||(Pe[5]=pe=>qe(pe,"max")),onChange:Pe[6]||(Pe[6]=pe=>Ze(pe,"max"))},null,8,["class","disabled","placeholder","model-value","readonly"])],2),Ft((G(),re("span",{class:Y(b(m).e("time-picker-wrap"))},[N(b(Ri),{size:"small",class:Y(b(m).e("editor")),disabled:b(g).selecting,placeholder:b(x)("el.datepicker.endTime"),"model-value":b(z),readonly:!b(p),"validate-event":!1,onFocus:Pe[7]||(Pe[7]=pe=>b(p)&&(Ie.value=!0)),onInput:Pe[8]||(Pe[8]=pe=>de(pe,"max")),onChange:Pe[9]||(Pe[9]=pe=>Xe(pe,"max"))},null,8,["class","disabled","placeholder","model-value","readonly"]),N(b(f2),{"datetime-role":"end",visible:Ie.value,format:b(K),"parsed-value":h.value,onPick:kt},null,8,["visible","format","parsed-value"])],2)),[[b(Wf),Ce]])],2)],2)):_e("v-if",!0),R("div",{class:Y([[b(y).e("content"),b(m).e("content")],"is-left"])},[R("div",{class:Y(b(m).e("header"))},[R("button",{type:"button",class:Y([b(y).e("icon-btn"),"d-arrow-left"]),"aria-label":b(x)("el.datepicker.prevYear"),onClick:ge},[N(b(_t),null,{default:j(()=>[N(b(Lg))]),_:1})],10,HVe),R("button",{type:"button",class:Y([b(y).e("icon-btn"),"arrow-left"]),"aria-label":b(x)("el.datepicker.prevMonth"),onClick:ie},[N(b(_t),null,{default:j(()=>[N(b(sc))]),_:1})],10,WVe),xe.unlinkPanels?(G(),re("button",{key:0,type:"button",disabled:!b(fe),class:Y([[b(y).e("icon-btn"),{"is-disabled":!b(fe)}],"d-arrow-right"]),"aria-label":b(x)("el.datepicker.nextYear"),onClick:se},[N(b(_t),null,{default:j(()=>[N(b(Og))]),_:1})],10,jVe)):_e("v-if",!0),xe.unlinkPanels?(G(),re("button",{key:1,type:"button",disabled:!b(ue),class:Y([[b(y).e("icon-btn"),{"is-disabled":!b(ue)}],"arrow-right"]),"aria-label":b(x)("el.datepicker.nextMonth"),onClick:me},[N(b(_t),null,{default:j(()=>[N(b(Li))]),_:1})],10,KVe)):_e("v-if",!0),R("div",null,We(b(E)),1)],2),N(QR,{"selection-mode":"range",date:d.value,"min-date":b(p),"max-date":b(v),"range-state":b(g),"disabled-date":b(a),"cell-class-name":b(i),onChangerange:b(S),onPick:we,onSelect:b(_)},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","onChangerange","onSelect"])],2),R("div",{class:Y([[b(y).e("content"),b(m).e("content")],"is-right"])},[R("div",{class:Y(b(m).e("header"))},[xe.unlinkPanels?(G(),re("button",{key:0,type:"button",disabled:!b(fe),class:Y([[b(y).e("icon-btn"),{"is-disabled":!b(fe)}],"d-arrow-left"]),"aria-label":b(x)("el.datepicker.prevYear"),onClick:ve},[N(b(_t),null,{default:j(()=>[N(b(Lg))]),_:1})],10,YVe)):_e("v-if",!0),xe.unlinkPanels?(G(),re("button",{key:1,type:"button",disabled:!b(ue),class:Y([[b(y).e("icon-btn"),{"is-disabled":!b(ue)}],"arrow-left"]),"aria-label":b(x)("el.datepicker.prevMonth"),onClick:he},[N(b(_t),null,{default:j(()=>[N(b(sc))]),_:1})],10,XVe)):_e("v-if",!0),R("button",{type:"button","aria-label":b(x)("el.datepicker.nextYear"),class:Y([b(y).e("icon-btn"),"d-arrow-right"]),onClick:Q},[N(b(_t),null,{default:j(()=>[N(b(Og))]),_:1})],10,qVe),R("button",{type:"button",class:Y([b(y).e("icon-btn"),"arrow-right"]),"aria-label":b(x)("el.datepicker.nextMonth"),onClick:ce},[N(b(_t),null,{default:j(()=>[N(b(Li))]),_:1})],10,ZVe),R("div",null,We(b(A)),1)],2),N(QR,{"selection-mode":"range",date:h.value,"min-date":b(p),"max-date":b(v),"range-state":b(g),"disabled-date":b(a),"cell-class-name":b(i),onChangerange:b(S),onPick:we,onSelect:b(_)},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","onChangerange","onSelect"])],2)],2)],2),b(Ne)?(G(),re("div",{key:0,class:Y(b(y).e("footer"))},[b(l)?(G(),Ee(b(ct),{key:0,text:"",size:"small",class:Y(b(y).e("link-btn")),onClick:Vt},{default:j(()=>[Be(We(b(x)("el.datepicker.clear")),1)]),_:1},8,["class"])):_e("v-if",!0),N(b(ct),{plain:"",size:"small",class:Y(b(y).e("link-btn")),disabled:b(Re),onClick:Pe[10]||(Pe[10]=pe=>b(w)(!1))},{default:j(()=>[Be(We(b(x)("el.datepicker.confirm")),1)]),_:1},8,["class","disabled"])],2)):_e("v-if",!0)],2))}});var JVe=tt(QVe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/panel-date-range.vue"]]);const eNe=nt({...SZ}),tNe=["pick","set-picker-option","calendar-change"],nNe=({unlinkPanels:t,leftDate:e,rightDate:n})=>{const{t:r}=En(),a=()=>{e.value=e.value.subtract(1,"year"),t.value||(n.value=n.value.subtract(1,"year"))},i=()=>{t.value||(e.value=e.value.add(1,"year")),n.value=n.value.add(1,"year")},o=()=>{e.value=e.value.add(1,"year")},s=()=>{n.value=n.value.subtract(1,"year")},l=U(()=>`${e.value.year()} ${r("el.datepicker.year")}`),u=U(()=>`${n.value.year()} ${r("el.datepicker.year")}`),c=U(()=>e.value.year()),f=U(()=>n.value.year()===e.value.year()?e.value.year()+1:n.value.year());return{leftPrevYear:a,rightNextYear:i,leftNextYear:o,rightPrevYear:s,leftLabel:l,rightLabel:u,leftYear:c,rightYear:f}},rNe=["onClick"],aNe=["disabled"],iNe=["disabled"],KS="year",oNe=ye({name:"DatePickerMonthRange"}),sNe=ye({...oNe,props:eNe,emits:tNe,setup(t,{emit:e}){const n=t,{lang:r}=En(),a=yt("EP_PICKER_BASE"),{shortcuts:i,disabledDate:o,format:s}=a.props,l=Wr(a.props,"defaultValue"),u=B(Jt().locale(r.value)),c=B(Jt().locale(r.value).add(1,KS)),{minDate:f,maxDate:d,rangeState:h,ppNs:p,drpNs:v,handleChangeRange:g,handleRangeConfirm:y,handleShortcutClick:m,onSelect:S}=_Z(n,{defaultValue:l,leftDate:u,rightDate:c,unit:KS,onParsedValueChanged:F}),w=U(()=>!!i.length),{leftPrevYear:C,rightNextYear:_,leftNextYear:x,rightPrevYear:T,leftLabel:M,rightLabel:E,leftYear:A,rightYear:k}=nNe({unlinkPanels:Wr(n,"unlinkPanels"),leftDate:u,rightDate:c}),L=U(()=>n.unlinkPanels&&k.value>A.value+1),I=($,W=!0)=>{const V=$.minDate,z=$.maxDate;d.value===z&&f.value===V||(e("calendar-change",[V.toDate(),z&&z.toDate()]),d.value=z,f.value=V,W&&y())},P=$=>$.map(W=>W.format(s));function F($,W){if(n.unlinkPanels&&W){const V=($==null?void 0:$.year())||0,z=W.year();c.value=V===z?W.add(1,KS):W}else c.value=u.value.add(1,KS)}return e("set-picker-option",["formatToString",P]),($,W)=>(G(),re("div",{class:Y([b(p).b(),b(v).b(),{"has-sidebar":!!$.$slots.sidebar||b(w)}])},[R("div",{class:Y(b(p).e("body-wrapper"))},[Ge($.$slots,"sidebar",{class:Y(b(p).e("sidebar"))}),b(w)?(G(),re("div",{key:0,class:Y(b(p).e("sidebar"))},[(G(!0),re(Ct,null,dn(b(i),(V,z)=>(G(),re("button",{key:z,type:"button",class:Y(b(p).e("shortcut")),onClick:K=>b(m)(V)},We(V.text),11,rNe))),128))],2)):_e("v-if",!0),R("div",{class:Y(b(p).e("body"))},[R("div",{class:Y([[b(p).e("content"),b(v).e("content")],"is-left"])},[R("div",{class:Y(b(v).e("header"))},[R("button",{type:"button",class:Y([b(p).e("icon-btn"),"d-arrow-left"]),onClick:W[0]||(W[0]=(...V)=>b(C)&&b(C)(...V))},[N(b(_t),null,{default:j(()=>[N(b(Lg))]),_:1})],2),$.unlinkPanels?(G(),re("button",{key:0,type:"button",disabled:!b(L),class:Y([[b(p).e("icon-btn"),{[b(p).is("disabled")]:!b(L)}],"d-arrow-right"]),onClick:W[1]||(W[1]=(...V)=>b(x)&&b(x)(...V))},[N(b(_t),null,{default:j(()=>[N(b(Og))]),_:1})],10,aNe)):_e("v-if",!0),R("div",null,We(b(M)),1)],2),N(JR,{"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:I,onSelect:b(S)},null,8,["date","min-date","max-date","range-state","disabled-date","onChangerange","onSelect"])],2),R("div",{class:Y([[b(p).e("content"),b(v).e("content")],"is-right"])},[R("div",{class:Y(b(v).e("header"))},[$.unlinkPanels?(G(),re("button",{key:0,type:"button",disabled:!b(L),class:Y([[b(p).e("icon-btn"),{"is-disabled":!b(L)}],"d-arrow-left"]),onClick:W[2]||(W[2]=(...V)=>b(T)&&b(T)(...V))},[N(b(_t),null,{default:j(()=>[N(b(Lg))]),_:1})],10,iNe)):_e("v-if",!0),R("button",{type:"button",class:Y([b(p).e("icon-btn"),"d-arrow-right"]),onClick:W[3]||(W[3]=(...V)=>b(_)&&b(_)(...V))},[N(b(_t),null,{default:j(()=>[N(b(Og))]),_:1})],2),R("div",null,We(b(E)),1)],2),N(JR,{"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:I,onSelect:b(S)},null,8,["date","min-date","max-date","range-state","disabled-date","onChangerange","onSelect"])],2)],2)],2)],2))}});var lNe=tt(sNe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/panel-month-range.vue"]]);const uNe=function(t){switch(t){case"daterange":case"datetimerange":return JVe;case"monthrange":return lNe;default:return FVe}};Jt.extend(zq);Jt.extend(K4e);Jt.extend(uV);Jt.extend(X4e);Jt.extend(Z4e);Jt.extend(J4e);Jt.extend(tVe);Jt.extend(rVe);var cNe=ye({name:"ElDatePicker",install:null,props:aVe,emits:["update:modelValue"],setup(t,{expose:e,emit:n,slots:r}){const a=Ye("picker-panel");fn("ElPopperOptions",Vn(Wr(t,"popperOptions"))),fn(hV,{slots:r,pickerNs:a});const i=B();e({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=>{n("update:modelValue",l)};return()=>{var l;const u=(l=t.format)!=null?l:GRe[t.type]||Rv,c=uNe(t.type);return N(Dq,an(t,{format:u,type:t.type,ref:i,"onUpdate:modelValue":s}),{default:f=>N(c,f,null),"range-separator":r["range-separator"]})}}});const r_=cNe;r_.install=t=>{t.component(r_.name,r_)};const fNe=r_,vV=Symbol("elDescriptions");var uy=ye({name:"ElDescriptionsCell",props:{cell:{type:Object},tag:{type:String},type:{type:String}},setup(){return{descriptions:yt(vV,{})}},render(){var t,e,n,r,a,i;const o=ZTe(this.cell),{border:s,direction:l}=this.descriptions,u=l==="vertical",c=((n=(e=(t=this.cell)==null?void 0:t.children)==null?void 0:e.label)==null?void 0:n.call(e))||o.label,f=(i=(a=(r=this.cell)==null?void 0:r.children)==null?void 0:a.default)==null?void 0:i.call(a),d=o.span,h=o.align?`is-${o.align}`:"",p=o.labelAlign?`is-${o.labelAlign}`:h,v=o.className,g=o.labelClassName,y={width:la(o.width),minWidth:la(o.minWidth)},m=Ye("descriptions");switch(this.type){case"label":return At(this.tag,{style:y,class:[m.e("cell"),m.e("label"),m.is("bordered-label",s),m.is("vertical-label",u),p,g],colSpan:u?d:1},c);case"content":return At(this.tag,{style:y,class:[m.e("cell"),m.e("content"),m.is("bordered-content",s),m.is("vertical-content",u),h,v],colSpan:u?d:d*2-1},f);default:return At("td",{style:y,class:[m.e("cell"),h],colSpan:d},[Ta(c)?void 0:At("span",{class:[m.e("label"),g]},c),At("span",{class:[m.e("content"),v]},f)])}}});const dNe=nt({row:{type:Array,default:()=>[]}}),hNe={key:1},pNe=ye({name:"ElDescriptionsRow"}),vNe=ye({...pNe,props:dNe,setup(t){const e=yt(vV,{});return(n,r)=>b(e).direction==="vertical"?(G(),re(Ct,{key:0},[R("tr",null,[(G(!0),re(Ct,null,dn(n.row,(a,i)=>(G(),Ee(b(uy),{key:`tr1-${i}`,cell:a,tag:"th",type:"label"},null,8,["cell"]))),128))]),R("tr",null,[(G(!0),re(Ct,null,dn(n.row,(a,i)=>(G(),Ee(b(uy),{key:`tr2-${i}`,cell:a,tag:"td",type:"content"},null,8,["cell"]))),128))])],64)):(G(),re("tr",hNe,[(G(!0),re(Ct,null,dn(n.row,(a,i)=>(G(),re(Ct,{key:`tr3-${i}`},[b(e).border?(G(),re(Ct,{key:0},[N(b(uy),{cell:a,tag:"td",type:"label"},null,8,["cell"]),N(b(uy),{cell:a,tag:"td",type:"content"},null,8,["cell"])],64)):(G(),Ee(b(uy),{key:1,cell:a,tag:"td",type:"both"},null,8,["cell"]))],64))),128))]))}});var gNe=tt(vNe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/descriptions/src/descriptions-row.vue"]]);const yNe=nt({border:{type:Boolean,default:!1},column:{type:Number,default:3},direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},size:yi,title:{type:String,default:""},extra:{type:String,default:""}}),mNe=ye({name:"ElDescriptions"}),bNe=ye({...mNe,props:yNe,setup(t){const e=t,n=Ye("descriptions"),r=Aa(),a=wi();fn(vV,e);const i=U(()=>[n.b(),n.m(r.value)]),o=(l,u,c,f=!1)=>(l.props||(l.props={}),u>c&&(l.props.span=c),f&&(l.props.span=u),l),s=()=>{var l;const u=ig((l=a.default)==null?void 0:l.call(a)).filter(p=>{var v;return((v=p==null?void 0:p.type)==null?void 0:v.name)==="ElDescriptionsItem"}),c=[];let f=[],d=e.column,h=0;return u.forEach((p,v)=>{var g;const y=((g=p.props)==null?void 0:g.span)||1;if(v<u.length-1&&(h+=y>d?d:y),v===u.length-1){const m=e.column-h%e.column;f.push(o(p,m,d,!0)),c.push(f);return}y<d?(d-=y,f.push(p)):(f.push(o(p,y,d)),c.push(f),d=e.column,f=[])}),c};return(l,u)=>(G(),re("div",{class:Y(b(i))},[l.title||l.extra||l.$slots.title||l.$slots.extra?(G(),re("div",{key:0,class:Y(b(n).e("header"))},[R("div",{class:Y(b(n).e("title"))},[Ge(l.$slots,"title",{},()=>[Be(We(l.title),1)])],2),R("div",{class:Y(b(n).e("extra"))},[Ge(l.$slots,"extra",{},()=>[Be(We(l.extra),1)])],2)],2)):_e("v-if",!0),R("div",{class:Y(b(n).e("body"))},[R("table",{class:Y([b(n).e("table"),b(n).is("bordered",l.border)])},[R("tbody",null,[(G(!0),re(Ct,null,dn(s(),(c,f)=>(G(),Ee(gNe,{key:f,row:c},null,8,["row"]))),128))])],2)],2)],2))}});var SNe=tt(bNe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/descriptions/src/description.vue"]]),CZ=ye({name:"ElDescriptionsItem",props:{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:""}}});const wNe=tn(SNe,{DescriptionsItem:CZ}),xNe=ta(CZ),_Ne=nt({mask:{type:Boolean,default:!0},customMaskEvent:{type:Boolean,default:!1},overlayClass:{type:ke([String,Array,Object])},zIndex:{type:ke([String,Number])}}),CNe={click:t=>t instanceof MouseEvent},TNe="overlay";var ENe=ye({name:"ElOverlay",props:_Ne,emits:CNe,setup(t,{slots:e,emit:n}){const r=Ye(TNe),a=l=>{n("click",l)},{onClick:i,onMousedown:o,onMouseup:s}=Z4(t.customMaskEvent?void 0:a);return()=>t.mask?N("div",{class:[r.b(),t.overlayClass],style:{zIndex:t.zIndex},onClick:i,onMousedown:o,onMouseup:s},[Ge(e,"default")],os.STYLE|os.CLASS|os.PROPS,["onClick","onMouseup","onMousedown"]):At("div",{class:t.overlayClass,style:{zIndex:t.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[Ge(e,"default")])}});const gV=ENe,TZ=Symbol("dialogInjectionKey"),EZ=nt({center:Boolean,alignCenter:Boolean,closeIcon:{type:gr},customClass:{type:String,default:""},draggable:Boolean,fullscreen:Boolean,showClose:{type:Boolean,default:!0},title:{type:String,default:""},ariaLevel:{type:String,default:"2"}}),MNe={close:()=>!0},DNe=["aria-level"],ANe=["aria-label"],kNe=["id"],RNe=ye({name:"ElDialogContent"}),LNe=ye({...RNe,props:EZ,emits:MNe,setup(t){const e=t,{t:n}=En(),{Close:r}=dX,{dialogRef:a,headerRef:i,bodyId:o,ns:s,style:l}=yt(TZ),{focusTrapRef:u}=yt(oV),c=U(()=>[s.b(),s.is("fullscreen",e.fullscreen),s.is("draggable",e.draggable),s.is("align-center",e.alignCenter),{[s.m("center")]:e.center},e.customClass]),f=bT(u,a),d=U(()=>e.draggable);return pX(a,i,d),(h,p)=>(G(),re("div",{ref:b(f),class:Y(b(c)),style:Et(b(l)),tabindex:"-1"},[R("header",{ref_key:"headerRef",ref:i,class:Y(b(s).e("header"))},[Ge(h.$slots,"header",{},()=>[R("span",{role:"heading","aria-level":h.ariaLevel,class:Y(b(s).e("title"))},We(h.title),11,DNe)]),h.showClose?(G(),re("button",{key:0,"aria-label":b(n)("el.dialog.close"),class:Y(b(s).e("headerbtn")),type:"button",onClick:p[0]||(p[0]=v=>h.$emit("close"))},[N(b(_t),{class:Y(b(s).e("close"))},{default:j(()=>[(G(),Ee(on(h.closeIcon||b(r))))]),_:1},8,["class"])],10,ANe)):_e("v-if",!0)],2),R("div",{id:b(o),class:Y(b(s).e("body"))},[Ge(h.$slots,"default")],10,kNe),h.$slots.footer?(G(),re("footer",{key:0,class:Y(b(s).e("footer"))},[Ge(h.$slots,"footer")],2)):_e("v-if",!0)],6))}});var ONe=tt(LNe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/dialog/src/dialog-content.vue"]]);const MZ=nt({...EZ,appendToBody:Boolean,beforeClose:{type:ke(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"}}),DZ={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,[nn]:t=>Ea(t),openAutoFocus:()=>!0,closeAutoFocus:()=>!0},AZ=(t,e)=>{const r=Qt().emit,{nextZIndex:a}=m0();let i="";const o=Ts(),s=Ts(),l=B(!1),u=B(!1),c=B(!1),f=B(t.zIndex||a());let d,h;const p=MT("namespace",_m),v=U(()=>{const I={},P=`--${p.value}-dialog`;return t.fullscreen||(t.top&&(I[`${P}-margin-top`]=t.top),t.width&&(I[`${P}-width`]=la(t.width))),I}),g=U(()=>t.alignCenter?{display:"flex"}:{});function y(){r("opened")}function m(){r("closed"),r(nn,!1),t.destroyOnClose&&(c.value=!1)}function S(){r("close")}function w(){h==null||h(),d==null||d(),t.openDelay&&t.openDelay>0?{stop:d}=dp(()=>T(),t.openDelay):T()}function C(){d==null||d(),h==null||h(),t.closeDelay&&t.closeDelay>0?{stop:h}=dp(()=>M(),t.closeDelay):M()}function _(){function I(P){P||(u.value=!0,l.value=!1)}t.beforeClose?t.beforeClose(I):C()}function x(){t.closeOnClickModal&&_()}function T(){_n&&(l.value=!0)}function M(){l.value=!1}function E(){r("openAutoFocus")}function A(){r("closeAutoFocus")}function k(I){var P;((P=I.detail)==null?void 0:P.focusReason)==="pointer"&&I.preventDefault()}t.lockScroll&&yX(l);function L(){t.closeOnPressEscape&&_()}return Ke(()=>t.modelValue,I=>{I?(u.value=!1,w(),c.value=!0,f.value=t.zIndex?f.value++:a(),xt(()=>{r("open"),e.value&&(e.value.scrollTop=0)})):l.value&&C()}),Ke(()=>t.fullscreen,I=>{e.value&&(I?(i=e.value.style.transform,e.value.style.transform=""):e.value.style.transform=i)}),Ut(()=>{t.modelValue&&(l.value=!0,c.value=!0,w())}),{afterEnter:y,afterLeave:m,beforeLeave:S,handleClose:_,onModalClick:x,close:C,doClose:M,onOpenAutoFocus:E,onCloseAutoFocus:A,onCloseRequested:L,onFocusoutPrevented:k,titleId:o,bodyId:s,closed:u,style:v,overlayDialogStyle:g,rendered:c,visible:l,zIndex:f}},VNe=["aria-label","aria-labelledby","aria-describedby"],NNe=ye({name:"ElDialog",inheritAttrs:!1}),INe=ye({...NNe,props:MZ,emits:DZ,setup(t,{expose:e}){const n=t,r=wi();fu({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"},U(()=>!!r.title)),fu({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"},U(()=>!!n.customClass));const a=Ye("dialog"),i=B(),o=B(),s=B(),{visible:l,titleId:u,bodyId:c,style:f,overlayDialogStyle:d,rendered:h,zIndex:p,afterEnter:v,afterLeave:g,beforeLeave:y,handleClose:m,onModalClick:S,onOpenAutoFocus:w,onCloseAutoFocus:C,onCloseRequested:_,onFocusoutPrevented:x}=AZ(n,i);fn(TZ,{dialogRef:i,headerRef:o,bodyId:c,ns:a,rendered:h,style:f});const T=Z4(S),M=U(()=>n.draggable&&!n.fullscreen);return e({visible:l,dialogContentRef:s}),(E,A)=>(G(),Ee(xb,{to:"body",disabled:!E.appendToBody},[N(da,{name:"dialog-fade",onAfterEnter:b(v),onAfterLeave:b(g),onBeforeLeave:b(y),persisted:""},{default:j(()=>[Ft(N(b(gV),{"custom-mask-event":"",mask:E.modal,"overlay-class":E.modalClass,"z-index":b(p)},{default:j(()=>[R("div",{role:"dialog","aria-modal":"true","aria-label":E.title||void 0,"aria-labelledby":E.title?void 0:b(u),"aria-describedby":b(c),class:Y(`${b(a).namespace.value}-overlay-dialog`),style:Et(b(d)),onClick:A[0]||(A[0]=(...k)=>b(T).onClick&&b(T).onClick(...k)),onMousedown:A[1]||(A[1]=(...k)=>b(T).onMousedown&&b(T).onMousedown(...k)),onMouseup:A[2]||(A[2]=(...k)=>b(T).onMouseup&&b(T).onMouseup(...k))},[N(b(kT),{loop:"",trapped:b(l),"focus-start-el":"container",onFocusAfterTrapped:b(w),onFocusAfterReleased:b(C),onFocusoutPrevented:b(x),onReleaseRequested:b(_)},{default:j(()=>[b(h)?(G(),Ee(ONe,an({key:0,ref_key:"dialogContentRef",ref:s},E.$attrs,{"custom-class":E.customClass,center:E.center,"align-center":E.alignCenter,"close-icon":E.closeIcon,draggable:b(M),fullscreen:E.fullscreen,"show-close":E.showClose,title:E.title,"aria-level":E.headerAriaLevel,onClose:b(m)}),ic({header:j(()=>[E.$slots.title?Ge(E.$slots,"title",{key:1}):Ge(E.$slots,"header",{key:0,close:b(m),titleId:b(u),titleClass:b(a).e("title")})]),default:j(()=>[Ge(E.$slots,"default")]),_:2},[E.$slots.footer?{name:"footer",fn:j(()=>[Ge(E.$slots,"footer")])}:void 0]),1040,["custom-class","center","align-center","close-icon","draggable","fullscreen","show-close","title","aria-level","onClose"])):_e("v-if",!0)]),_:3},8,["trapped","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])],46,VNe)]),_:3},8,["mask","overlay-class","z-index"]),[[cn,b(l)]])]),_:3},8,["onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["disabled"]))}});var BNe=tt(INe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/dialog/src/dialog.vue"]]);const Mr=tn(BNe),$Ne=nt({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},contentPosition:{type:String,values:["left","center","right"],default:"center"},borderStyle:{type:ke(String),default:"solid"}}),PNe=ye({name:"ElDivider"}),FNe=ye({...PNe,props:$Ne,setup(t){const e=t,n=Ye("divider"),r=U(()=>n.cssVar({"border-style":e.borderStyle}));return(a,i)=>(G(),re("div",{class:Y([b(n).b(),b(n).m(a.direction)]),style:Et(b(r)),role:"separator"},[a.$slots.default&&a.direction!=="vertical"?(G(),re("div",{key:0,class:Y([b(n).e("text"),b(n).is(a.contentPosition)])},[Ge(a.$slots,"default")],2)):_e("v-if",!0)],6))}});var zNe=tt(FNe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/divider/src/divider.vue"]]);const kZ=tn(zNe),UNe=nt({...MZ,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"}}),GNe=DZ,HNe=ye({name:"ElDrawer",components:{ElOverlay:gV,ElFocusTrap:kT,ElIcon:_t,Close:yl},inheritAttrs:!1,props:UNe,emits:GNe,setup(t,{slots:e}){fu({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"},U(()=>!!e.title)),fu({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"},U(()=>!!t.customClass));const n=B(),r=B(),a=Ye("drawer"),{t:i}=En(),o=U(()=>t.direction==="rtl"||t.direction==="ltr"),s=U(()=>la(t.size));return{...AZ(t,n),drawerRef:n,focusStartRef:r,isHorizontal:o,drawerSize:s,ns:a,t:i}}}),WNe=["aria-label","aria-labelledby","aria-describedby"],jNe=["id","aria-level"],KNe=["aria-label"],YNe=["id"];function XNe(t,e,n,r,a,i){const o=$e("close"),s=$e("el-icon"),l=$e("el-focus-trap"),u=$e("el-overlay");return G(),Ee(xb,{to:"body",disabled:!t.appendToBody},[N(da,{name:t.ns.b("fade"),onAfterEnter:t.afterEnter,onAfterLeave:t.afterLeave,onBeforeLeave:t.beforeLeave,persisted:""},{default:j(()=>[Ft(N(u,{mask:t.modal,"overlay-class":t.modalClass,"z-index":t.zIndex,onClick:t.onModalClick},{default:j(()=>[N(l,{loop:"",trapped:t.visible,"focus-trap-el":t.drawerRef,"focus-start-el":t.focusStartRef,onReleaseRequested:t.onCloseRequested},{default:j(()=>[R("div",an({ref:"drawerRef","aria-modal":"true","aria-label":t.title||void 0,"aria-labelledby":t.title?void 0:t.titleId,"aria-describedby":t.bodyId},t.$attrs,{class:[t.ns.b(),t.direction,t.visible&&"open",t.customClass],style:t.isHorizontal?"width: "+t.drawerSize:"height: "+t.drawerSize,role:"dialog",onClick:e[1]||(e[1]=It(()=>{},["stop"]))}),[R("span",{ref:"focusStartRef",class:Y(t.ns.e("sr-focus")),tabindex:"-1"},null,2),t.withHeader?(G(),re("header",{key:0,class:Y(t.ns.e("header"))},[t.$slots.title?Ge(t.$slots,"title",{key:1},()=>[_e(" DEPRECATED SLOT ")]):Ge(t.$slots,"header",{key:0,close:t.handleClose,titleId:t.titleId,titleClass:t.ns.e("title")},()=>[t.$slots.title?_e("v-if",!0):(G(),re("span",{key:0,id:t.titleId,role:"heading","aria-level":t.headerAriaLevel,class:Y(t.ns.e("title"))},We(t.title),11,jNe))]),t.showClose?(G(),re("button",{key:2,"aria-label":t.t("el.drawer.close"),class:Y(t.ns.e("close-btn")),type:"button",onClick:e[0]||(e[0]=(...c)=>t.handleClose&&t.handleClose(...c))},[N(s,{class:Y(t.ns.e("close"))},{default:j(()=>[N(o)]),_:1},8,["class"])],10,KNe)):_e("v-if",!0)],2)):_e("v-if",!0),t.rendered?(G(),re("div",{key:1,id:t.bodyId,class:Y(t.ns.e("body"))},[Ge(t.$slots,"default")],10,YNe)):_e("v-if",!0),t.$slots.footer?(G(),re("div",{key:2,class:Y(t.ns.e("footer"))},[Ge(t.$slots,"footer")],2)):_e("v-if",!0)],16,WNe)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])]),_:3},8,["mask","overlay-class","z-index","onClick"]),[[cn,t.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["disabled"])}var qNe=tt(HNe,[["render",XNe],["__file","/home/runner/work/element-plus/element-plus/packages/components/drawer/src/drawer.vue"]]);const ZNe=tn(qNe),QNe=ye({inheritAttrs:!1});function JNe(t,e,n,r,a,i){return Ge(t.$slots,"default")}var eIe=tt(QNe,[["render",JNe],["__file","/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection.vue"]]);const tIe=ye({name:"ElCollectionItem",inheritAttrs:!1});function nIe(t,e,n,r,a,i){return Ge(t.$slots,"default")}var rIe=tt(tIe,[["render",nIe],["__file","/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection-item.vue"]]);const RZ="data-el-collection-item",LZ=t=>{const e=`El${t}Collection`,n=`${e}Item`,r=Symbol(e),a=Symbol(n),i={...eIe,name:e,setup(){const s=B(null),l=new Map;fn(r,{itemMap:l,getItems:()=>{const c=b(s);if(!c)return[];const f=Array.from(c.querySelectorAll(`[${RZ}]`));return[...l.values()].sort((h,p)=>f.indexOf(h.ref)-f.indexOf(p.ref))},collectionRef:s})}},o={...rIe,name:n,setup(s,{attrs:l}){const u=B(null),c=yt(r,void 0);fn(a,{collectionItemRef:u}),Ut(()=>{const f=b(u);f&&c.itemMap.set(f,{ref:f,...l})}),Sr(()=>{const f=b(u);c.itemMap.delete(f)})}};return{COLLECTION_INJECTION_KEY:r,COLLECTION_ITEM_INJECTION_KEY:a,ElCollection:i,ElCollectionItem:o}},aIe=nt({style:{type:ke([String,Array,Object])},currentTabId:{type:ke(String)},defaultCurrentTabId:String,loop:Boolean,dir:{type:String,values:["ltr","rtl"],default:"ltr"},orientation:{type:ke(String)},onBlur:Function,onFocus:Function,onMousedown:Function}),{ElCollection:iIe,ElCollectionItem:oIe,COLLECTION_INJECTION_KEY:yV,COLLECTION_ITEM_INJECTION_KEY:sIe}=LZ("RovingFocusGroup"),mV=Symbol("elRovingFocusGroup"),OZ=Symbol("elRovingFocusGroupItem"),lIe={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"},uIe=(t,e)=>{if(e!=="rtl")return t;switch(t){case Dt.right:return Dt.left;case Dt.left:return Dt.right;default:return t}},cIe=(t,e,n)=>{const r=uIe(t.key,n);if(!(e==="vertical"&&[Dt.left,Dt.right].includes(r))&&!(e==="horizontal"&&[Dt.up,Dt.down].includes(r)))return lIe[r]},fIe=(t,e)=>t.map((n,r)=>t[(r+e)%t.length]),bV=t=>{const{activeElement:e}=document;for(const n of t)if(n===e||(n.focus(),e!==document.activeElement))return},Z5="currentTabIdChange",Q5="rovingFocusGroup.entryFocus",dIe={bubbles:!1,cancelable:!0},hIe=ye({name:"ElRovingFocusGroupImpl",inheritAttrs:!1,props:aIe,emits:[Z5,"entryFocus"],setup(t,{emit:e}){var n;const r=B((n=t.currentTabId||t.defaultCurrentTabId)!=null?n:null),a=B(!1),i=B(!1),o=B(null),{getItems:s}=yt(yV,void 0),l=U(()=>[{outline:"none"},t.style]),u=v=>{e(Z5,v)},c=()=>{a.value=!0},f=Zr(v=>{var g;(g=t.onMousedown)==null||g.call(t,v)},()=>{i.value=!0}),d=Zr(v=>{var g;(g=t.onFocus)==null||g.call(t,v)},v=>{const g=!b(i),{target:y,currentTarget:m}=v;if(y===m&&g&&!b(a)){const S=new Event(Q5,dIe);if(m==null||m.dispatchEvent(S),!S.defaultPrevented){const w=s().filter(M=>M.focusable),C=w.find(M=>M.active),_=w.find(M=>M.id===b(r)),T=[C,_,...w].filter(Boolean).map(M=>M.ref);bV(T)}}i.value=!1}),h=Zr(v=>{var g;(g=t.onBlur)==null||g.call(t,v)},()=>{a.value=!1}),p=(...v)=>{e("entryFocus",...v)};fn(mV,{currentTabbedId:d0(r),loop:Wr(t,"loop"),tabIndex:U(()=>b(a)?-1:0),rovingFocusGroupRef:o,rovingFocusGroupRootStyle:l,orientation:Wr(t,"orientation"),dir:Wr(t,"dir"),onItemFocus:u,onItemShiftTab:c,onBlur:h,onFocus:d,onMousedown:f}),Ke(()=>t.currentTabId,v=>{r.value=v??null}),Or(o,Q5,p)}});function pIe(t,e,n,r,a,i){return Ge(t.$slots,"default")}var vIe=tt(hIe,[["render",pIe],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-group-impl.vue"]]);const gIe=ye({name:"ElRovingFocusGroup",components:{ElFocusGroupCollection:iIe,ElRovingFocusGroupImpl:vIe}});function yIe(t,e,n,r,a,i){const o=$e("el-roving-focus-group-impl"),s=$e("el-focus-group-collection");return G(),Ee(s,null,{default:j(()=>[N(o,rl(eT(t.$attrs)),{default:j(()=>[Ge(t.$slots,"default")]),_:3},16)]),_:3})}var mIe=tt(gIe,[["render",yIe],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-group.vue"]]);const bIe=ye({components:{ElRovingFocusCollectionItem:oIe},props:{focusable:{type:Boolean,default:!0},active:{type:Boolean,default:!1}},emits:["mousedown","focus","keydown"],setup(t,{emit:e}){const{currentTabbedId:n,loop:r,onItemFocus:a,onItemShiftTab:i}=yt(mV,void 0),{getItems:o}=yt(yV,void 0),s=Ts(),l=B(null),u=Zr(h=>{e("mousedown",h)},h=>{t.focusable?a(b(s)):h.preventDefault()}),c=Zr(h=>{e("focus",h)},()=>{a(b(s))}),f=Zr(h=>{e("keydown",h)},h=>{const{key:p,shiftKey:v,target:g,currentTarget:y}=h;if(p===Dt.tab&&v){i();return}if(g!==y)return;const m=cIe(h);if(m){h.preventDefault();let w=o().filter(C=>C.focusable).map(C=>C.ref);switch(m){case"last":{w.reverse();break}case"prev":case"next":{m==="prev"&&w.reverse();const C=w.indexOf(y);w=r.value?fIe(w,C+1):w.slice(C+1);break}}xt(()=>{bV(w)})}}),d=U(()=>n.value===b(s));return fn(OZ,{rovingFocusGroupItemRef:l,tabIndex:U(()=>b(d)?0:-1),handleMousedown:u,handleFocus:c,handleKeydown:f}),{id:s,handleKeydown:f,handleFocus:c,handleMousedown:u}}});function SIe(t,e,n,r,a,i){const o=$e("el-roving-focus-collection-item");return G(),Ee(o,{id:t.id,focusable:t.focusable,active:t.active},{default:j(()=>[Ge(t.$slots,"default")]),_:3},8,["id","focusable","active"])}var wIe=tt(bIe,[["render",SIe],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-item.vue"]]);const a_=nt({trigger:C1.trigger,effect:{...Qa.effect,default:"light"},type:{type:ke(String)},placement:{type:ke(String),default:"bottom"},popperOptions:{type:ke(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:ke([Number,String]),default:0},maxHeight:{type:ke([Number,String]),default:""},popperClass:{type:String,default:""},disabled:{type:Boolean,default:!1},role:{type:String,default:"menu"},buttonProps:{type:ke(Object)},teleported:Qa.teleported}),VZ=nt({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:gr}}),xIe=nt({onKeydown:{type:ke(Function)}}),_Ie=[Dt.down,Dt.pageDown,Dt.home],NZ=[Dt.up,Dt.pageUp,Dt.end],CIe=[..._Ie,...NZ],{ElCollection:TIe,ElCollectionItem:EIe,COLLECTION_INJECTION_KEY:MIe,COLLECTION_ITEM_INJECTION_KEY:DIe}=LZ("Dropdown"),OT=Symbol("elDropdown"),{ButtonGroup:AIe}=ct,kIe=ye({name:"ElDropdown",components:{ElButton:ct,ElButtonGroup:AIe,ElScrollbar:xc,ElDropdownCollection:TIe,ElTooltip:io,ElRovingFocusGroup:mIe,ElOnlyChild:oq,ElIcon:_t,ArrowDown:rd},props:a_,emits:["visible-change","click","command"],setup(t,{emit:e}){const n=Qt(),r=Ye("dropdown"),{t:a}=En(),i=B(),o=B(),s=B(null),l=B(null),u=B(null),c=B(null),f=B(!1),d=[Dt.enter,Dt.space,Dt.down],h=U(()=>({maxHeight:la(t.maxHeight)})),p=U(()=>[r.m(C.value)]),v=U(()=>pp(t.trigger)),g=Ts().value,y=U(()=>t.id||g);Ke([i,v],([$,W],[V])=>{var z,K,Z;(z=V==null?void 0:V.$el)!=null&&z.removeEventListener&&V.$el.removeEventListener("pointerenter",x),(K=$==null?void 0:$.$el)!=null&&K.removeEventListener&&$.$el.removeEventListener("pointerenter",x),(Z=$==null?void 0:$.$el)!=null&&Z.addEventListener&&W.includes("hover")&&$.$el.addEventListener("pointerenter",x)},{immediate:!0}),Sr(()=>{var $,W;(W=($=i.value)==null?void 0:$.$el)!=null&&W.removeEventListener&&i.value.$el.removeEventListener("pointerenter",x)});function m(){S()}function S(){var $;($=s.value)==null||$.onClose()}function w(){var $;($=s.value)==null||$.onOpen()}const C=Aa();function _(...$){e("command",...$)}function x(){var $,W;(W=($=i.value)==null?void 0:$.$el)==null||W.focus()}function T(){}function M(){const $=b(l);v.value.includes("hover")&&($==null||$.focus()),c.value=null}function E($){c.value=$}function A($){f.value||($.preventDefault(),$.stopImmediatePropagation())}function k(){e("visible-change",!0)}function L($){($==null?void 0:$.type)==="keydown"&&l.value.focus()}function I(){e("visible-change",!1)}return fn(OT,{contentRef:l,role:U(()=>t.role),triggerId:y,isUsingKeyboard:f,onItemEnter:T,onItemLeave:M}),fn("elDropdown",{instance:n,dropdownSize:C,handleClick:m,commandHandler:_,trigger:Wr(t,"trigger"),hideOnClick:Wr(t,"hideOnClick")}),{t:a,ns:r,scrollbar:u,wrapStyle:h,dropdownTriggerKls:p,dropdownSize:C,triggerId:y,triggerKeys:d,currentTabId:c,handleCurrentTabIdChange:E,handlerMainButtonClick:$=>{e("click",$)},handleEntryFocus:A,handleClose:S,handleOpen:w,handleBeforeShowTooltip:k,handleShowTooltip:L,handleBeforeHideTooltip:I,onFocusAfterTrapped:$=>{var W,V;$.preventDefault(),(V=(W=l.value)==null?void 0:W.focus)==null||V.call(W,{preventScroll:!0})},popperRef:s,contentRef:l,triggeringElementRef:i,referenceElementRef:o}}});function RIe(t,e,n,r,a,i){var o;const s=$e("el-dropdown-collection"),l=$e("el-roving-focus-group"),u=$e("el-scrollbar"),c=$e("el-only-child"),f=$e("el-tooltip"),d=$e("el-button"),h=$e("arrow-down"),p=$e("el-icon"),v=$e("el-button-group");return G(),re("div",{class:Y([t.ns.b(),t.ns.is("disabled",t.disabled)])},[N(f,{ref:"popperRef",role:t.role,effect:t.effect,"fallback-placements":["bottom","top"],"popper-options":t.popperOptions,"gpu-acceleration":!1,"hide-after":t.trigger==="hover"?t.hideTimeout:0,"manual-mode":!0,placement:t.placement,"popper-class":[t.ns.e("popper"),t.popperClass],"reference-element":(o=t.referenceElementRef)==null?void 0:o.$el,trigger:t.trigger,"trigger-keys":t.triggerKeys,"trigger-target-el":t.contentRef,"show-after":t.trigger==="hover"?t.showTimeout:0,"stop-popper-mouse-event":!1,"virtual-ref":t.triggeringElementRef,"virtual-triggering":t.splitButton,disabled:t.disabled,transition:`${t.ns.namespace.value}-zoom-in-top`,teleported:t.teleported,pure:"",persistent:"",onBeforeShow:t.handleBeforeShowTooltip,onShow:t.handleShowTooltip,onBeforeHide:t.handleBeforeHideTooltip},ic({content:j(()=>[N(u,{ref:"scrollbar","wrap-style":t.wrapStyle,tag:"div","view-class":t.ns.e("list")},{default:j(()=>[N(l,{loop:t.loop,"current-tab-id":t.currentTabId,orientation:"horizontal",onCurrentTabIdChange:t.handleCurrentTabIdChange,onEntryFocus:t.handleEntryFocus},{default:j(()=>[N(s,null,{default:j(()=>[Ge(t.$slots,"dropdown")]),_:3})]),_:3},8,["loop","current-tab-id","onCurrentTabIdChange","onEntryFocus"])]),_:3},8,["wrap-style","view-class"])]),_:2},[t.splitButton?void 0:{name:"default",fn:j(()=>[N(c,{id:t.triggerId,ref:"triggeringElementRef",role:"button",tabindex:t.tabindex},{default:j(()=>[Ge(t.$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"]),t.splitButton?(G(),Ee(v,{key:0},{default:j(()=>[N(d,an({ref:"referenceElementRef"},t.buttonProps,{size:t.dropdownSize,type:t.type,disabled:t.disabled,tabindex:t.tabindex,onClick:t.handlerMainButtonClick}),{default:j(()=>[Ge(t.$slots,"default")]),_:3},16,["size","type","disabled","tabindex","onClick"]),N(d,an({id:t.triggerId,ref:"triggeringElementRef"},t.buttonProps,{role:"button",size:t.dropdownSize,type:t.type,class:t.ns.e("caret-button"),disabled:t.disabled,tabindex:t.tabindex,"aria-label":t.t("el.dropdown.toggleDropdown")}),{default:j(()=>[N(p,{class:Y(t.ns.e("icon"))},{default:j(()=>[N(h)]),_:1},8,["class"])]),_:1},16,["id","size","type","class","disabled","tabindex","aria-label"])]),_:3})):_e("v-if",!0)],2)}var LIe=tt(kIe,[["render",RIe],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown.vue"]]);const OIe=ye({name:"DropdownItemImpl",components:{ElIcon:_t},props:VZ,emits:["pointermove","pointerleave","click","clickimpl"],setup(t,{emit:e}){const n=Ye("dropdown"),{role:r}=yt(OT,void 0),{collectionItemRef:a}=yt(DIe,void 0),{collectionItemRef:i}=yt(sIe,void 0),{rovingFocusGroupItemRef:o,tabIndex:s,handleFocus:l,handleKeydown:u,handleMousedown:c}=yt(OZ,void 0),f=bT(a,i,o),d=U(()=>r.value==="menu"?"menuitem":r.value==="navigation"?"link":"button"),h=Zr(p=>{const{code:v}=p;if(v===Dt.enter||v===Dt.space)return p.preventDefault(),p.stopImmediatePropagation(),e("clickimpl",p),!0},u);return{ns:n,itemRef:f,dataset:{[RZ]:""},role:d,tabIndex:s,handleFocus:l,handleKeydown:h,handleMousedown:c}}}),VIe=["aria-disabled","tabindex","role"];function NIe(t,e,n,r,a,i){const o=$e("el-icon");return G(),re(Ct,null,[t.divided?(G(),re("li",an({key:0,role:"separator",class:t.ns.bem("menu","item","divided")},t.$attrs),null,16)):_e("v-if",!0),R("li",an({ref:t.itemRef},{...t.dataset,...t.$attrs},{"aria-disabled":t.disabled,class:[t.ns.be("menu","item"),t.ns.is("disabled",t.disabled)],tabindex:t.tabIndex,role:t.role,onClick:e[0]||(e[0]=s=>t.$emit("clickimpl",s)),onFocus:e[1]||(e[1]=(...s)=>t.handleFocus&&t.handleFocus(...s)),onKeydown:e[2]||(e[2]=It((...s)=>t.handleKeydown&&t.handleKeydown(...s),["self"])),onMousedown:e[3]||(e[3]=(...s)=>t.handleMousedown&&t.handleMousedown(...s)),onPointermove:e[4]||(e[4]=s=>t.$emit("pointermove",s)),onPointerleave:e[5]||(e[5]=s=>t.$emit("pointerleave",s))}),[t.icon?(G(),Ee(o,{key:0},{default:j(()=>[(G(),Ee(on(t.icon)))]),_:1})):_e("v-if",!0),Ge(t.$slots,"default")],16,VIe)],64)}var IIe=tt(OIe,[["render",NIe],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-item-impl.vue"]]);const IZ=()=>{const t=yt("elDropdown",{}),e=U(()=>t==null?void 0:t.dropdownSize);return{elDropdown:t,_elDropdownSize:e}},BIe=ye({name:"ElDropdownItem",components:{ElDropdownCollectionItem:EIe,ElRovingFocusItem:wIe,ElDropdownItemImpl:IIe},inheritAttrs:!1,props:VZ,emits:["pointermove","pointerleave","click"],setup(t,{emit:e,attrs:n}){const{elDropdown:r}=IZ(),a=Qt(),i=B(null),o=U(()=>{var h,p;return(p=(h=b(i))==null?void 0:h.textContent)!=null?p:""}),{onItemEnter:s,onItemLeave:l}=yt(OT,void 0),u=Zr(h=>(e("pointermove",h),h.defaultPrevented),QP(h=>{if(t.disabled){l(h);return}const p=h.currentTarget;p===document.activeElement||p.contains(document.activeElement)||(s(h),h.defaultPrevented||p==null||p.focus())})),c=Zr(h=>(e("pointerleave",h),h.defaultPrevented),QP(h=>{l(h)})),f=Zr(h=>{if(!t.disabled)return e("click",h),h.type!=="keydown"&&h.defaultPrevented},h=>{var p,v,g;if(t.disabled){h.stopImmediatePropagation();return}(p=r==null?void 0:r.hideOnClick)!=null&&p.value&&((v=r.handleClick)==null||v.call(r)),(g=r.commandHandler)==null||g.call(r,t.command,a,h)}),d=U(()=>({...t,...n}));return{handleClick:f,handlePointerMove:u,handlePointerLeave:c,textContent:o,propsAndAttrs:d}}});function $Ie(t,e,n,r,a,i){var o;const s=$e("el-dropdown-item-impl"),l=$e("el-roving-focus-item"),u=$e("el-dropdown-collection-item");return G(),Ee(u,{disabled:t.disabled,"text-value":(o=t.textValue)!=null?o:t.textContent},{default:j(()=>[N(l,{focusable:!t.disabled},{default:j(()=>[N(s,an(t.propsAndAttrs,{onPointerleave:t.handlePointerLeave,onPointermove:t.handlePointerMove,onClickimpl:t.handleClick}),{default:j(()=>[Ge(t.$slots,"default")]),_:3},16,["onPointerleave","onPointermove","onClickimpl"])]),_:3},8,["focusable"])]),_:3},8,["disabled","text-value"])}var BZ=tt(BIe,[["render",$Ie],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-item.vue"]]);const PIe=ye({name:"ElDropdownMenu",props:xIe,setup(t){const e=Ye("dropdown"),{_elDropdownSize:n}=IZ(),r=n.value,{focusTrapRef:a,onKeydown:i}=yt(oV,void 0),{contentRef:o,role:s,triggerId:l}=yt(OT,void 0),{collectionRef:u,getItems:c}=yt(MIe,void 0),{rovingFocusGroupRef:f,rovingFocusGroupRootStyle:d,tabIndex:h,onBlur:p,onFocus:v,onMousedown:g}=yt(mV,void 0),{collectionRef:y}=yt(yV,void 0),m=U(()=>[e.b("menu"),e.bm("menu",r==null?void 0:r.value)]),S=bT(o,u,a,f,y),w=Zr(_=>{var x;(x=t.onKeydown)==null||x.call(t,_)},_=>{const{currentTarget:x,code:T,target:M}=_;if(x.contains(M),Dt.tab===T&&_.stopImmediatePropagation(),_.preventDefault(),M!==b(o)||!CIe.includes(T))return;const A=c().filter(k=>!k.disabled).map(k=>k.ref);NZ.includes(T)&&A.reverse(),bV(A)});return{size:r,rovingFocusGroupRootStyle:d,tabIndex:h,dropdownKls:m,role:s,triggerId:l,dropdownListWrapperRef:S,handleKeydown:_=>{w(_),i(_)},onBlur:p,onFocus:v,onMousedown:g}}}),FIe=["role","aria-labelledby"];function zIe(t,e,n,r,a,i){return G(),re("ul",{ref:t.dropdownListWrapperRef,class:Y(t.dropdownKls),style:Et(t.rovingFocusGroupRootStyle),tabindex:-1,role:t.role,"aria-labelledby":t.triggerId,onBlur:e[0]||(e[0]=(...o)=>t.onBlur&&t.onBlur(...o)),onFocus:e[1]||(e[1]=(...o)=>t.onFocus&&t.onFocus(...o)),onKeydown:e[2]||(e[2]=It((...o)=>t.handleKeydown&&t.handleKeydown(...o),["self"])),onMousedown:e[3]||(e[3]=It((...o)=>t.onMousedown&&t.onMousedown(...o),["self"]))},[Ge(t.$slots,"default")],46,FIe)}var $Z=tt(PIe,[["render",zIe],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-menu.vue"]]);const UIe=tn(LIe,{DropdownItem:BZ,DropdownMenu:$Z}),GIe=ta(BZ),HIe=ta($Z),WIe={viewBox:"0 0 79 86",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},jIe=["id"],KIe=["stop-color"],YIe=["stop-color"],XIe=["id"],qIe=["stop-color"],ZIe=["stop-color"],QIe=["id"],JIe={id:"Illustrations",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},eBe={id:"B-type",transform:"translate(-1268.000000, -535.000000)"},tBe={id:"Group-2",transform:"translate(1268.000000, 535.000000)"},nBe=["fill"],rBe=["fill"],aBe={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)"},iBe=["fill"],oBe=["fill"],sBe=["fill"],lBe=["fill"],uBe=["fill"],cBe={id:"Rectangle-Copy-17",transform:"translate(53.000000, 45.000000)"},fBe=["fill","xlink:href"],dBe=["fill","mask"],hBe=["fill"],pBe=ye({name:"ImgEmpty"}),vBe=ye({...pBe,setup(t){const e=Ye("empty"),n=Ts();return(r,a)=>(G(),re("svg",WIe,[R("defs",null,[R("linearGradient",{id:`linearGradient-1-${b(n)}`,x1:"38.8503086%",y1:"0%",x2:"61.1496914%",y2:"100%"},[R("stop",{"stop-color":`var(${b(e).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,KIe),R("stop",{"stop-color":`var(${b(e).cssVarBlockName("fill-color-4")})`,offset:"100%"},null,8,YIe)],8,jIe),R("linearGradient",{id:`linearGradient-2-${b(n)}`,x1:"0%",y1:"9.5%",x2:"100%",y2:"90.5%"},[R("stop",{"stop-color":`var(${b(e).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,qIe),R("stop",{"stop-color":`var(${b(e).cssVarBlockName("fill-color-6")})`,offset:"100%"},null,8,ZIe)],8,XIe),R("rect",{id:`path-3-${b(n)}`,x:"0",y:"0",width:"17",height:"36"},null,8,QIe)]),R("g",JIe,[R("g",eBe,[R("g",tBe,[R("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(e).cssVarBlockName("fill-color-3")})`},null,8,nBe),R("polygon",{id:"Rectangle-Copy-14",fill:`var(${b(e).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,rBe),R("g",aBe,[R("polygon",{id:"Rectangle-Copy-10",fill:`var(${b(e).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,iBe),R("polygon",{id:"Rectangle-Copy-11",fill:`var(${b(e).cssVarBlockName("fill-color-5")})`,points:"-3.69149156e-15 7 38 7 38 43 -3.69149156e-15 43"},null,8,oBe),R("rect",{id:"Rectangle-Copy-12",fill:`url(#linearGradient-1-${b(n)})`,transform:"translate(46.500000, 25.000000) scale(-1, 1) translate(-46.500000, -25.000000) ",x:"38",y:"7",width:"17",height:"36"},null,8,sBe),R("polygon",{id:"Rectangle-Copy-13",fill:`var(${b(e).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,lBe)]),R("rect",{id:"Rectangle-Copy-15",fill:`url(#linearGradient-2-${b(n)})`,x:"13",y:"45",width:"40",height:"36"},null,8,uBe),R("g",cBe,[R("use",{id:"Mask",fill:`var(${b(e).cssVarBlockName("fill-color-8")})`,transform:"translate(8.500000, 18.000000) scale(-1, 1) translate(-8.500000, -18.000000) ","xlink:href":`#path-3-${b(n)}`},null,8,fBe),R("polygon",{id:"Rectangle-Copy",fill:`var(${b(e).cssVarBlockName("fill-color-9")})`,mask:`url(#mask-4-${b(n)})`,transform:"translate(12.000000, 9.000000) scale(-1, 1) translate(-12.000000, -9.000000) ",points:"7 0 24 0 20 18 7 16.5"},null,8,dBe)]),R("polygon",{id:"Rectangle-Copy-18",fill:`var(${b(e).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,hBe)])])])]))}});var gBe=tt(vBe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/empty/src/img-empty.vue"]]);const yBe=nt({image:{type:String,default:""},imageSize:Number,description:{type:String,default:""}}),mBe=["src"],bBe={key:1},SBe=ye({name:"ElEmpty"}),wBe=ye({...SBe,props:yBe,setup(t){const e=t,{t:n}=En(),r=Ye("empty"),a=U(()=>e.description||n("el.table.emptyText")),i=U(()=>({width:la(e.imageSize)}));return(o,s)=>(G(),re("div",{class:Y(b(r).b())},[R("div",{class:Y(b(r).e("image")),style:Et(b(i))},[o.image?(G(),re("img",{key:0,src:o.image,ondragstart:"return false"},null,8,mBe)):Ge(o.$slots,"image",{key:1},()=>[N(gBe)])],6),R("div",{class:Y(b(r).e("description"))},[o.$slots.description?Ge(o.$slots,"description",{key:0}):(G(),re("p",bBe,We(b(a)),1))],2),o.$slots.default?(G(),re("div",{key:0,class:Y(b(r).e("bottom"))},[Ge(o.$slots,"default")],2)):_e("v-if",!0)],2))}});var xBe=tt(wBe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/empty/src/empty.vue"]]);const PZ=tn(xBe),_Be=nt({urlList:{type:ke(Array),default:()=>zr([])},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}}),CBe={close:()=>!0,switch:t=>Pt(t),rotate:t=>Pt(t)},TBe=["src"],EBe=ye({name:"ElImageViewer"}),MBe=ye({...EBe,props:_Be,emits:CBe,setup(t,{expose:e,emit:n}){const r=t,a={CONTAIN:{name:"contain",icon:Df(E2e)},ORIGINAL:{name:"original",icon:Df(zCe)}},{t:i}=En(),o=Ye("image-viewer"),{nextZIndex:s}=m0(),l=B(),u=B([]),c=xj(),f=B(!0),d=B(r.initialIndex),h=vr(a.CONTAIN),p=B({scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}),v=U(()=>{const{urlList:V}=r;return V.length<=1}),g=U(()=>d.value===0),y=U(()=>d.value===r.urlList.length-1),m=U(()=>r.urlList[d.value]),S=U(()=>[o.e("btn"),o.e("prev"),o.is("disabled",!r.infinite&&g.value)]),w=U(()=>[o.e("btn"),o.e("next"),o.is("disabled",!r.infinite&&y.value)]),C=U(()=>{const{scale:V,deg:z,offsetX:K,offsetY:Z,enableTransition:oe}=p.value;let ge=K/V,ie=Z/V;switch(z%360){case 90:case-270:[ge,ie]=[ie,-ge];break;case 180:case-180:[ge,ie]=[-ge,-ie];break;case 270:case-90:[ge,ie]=[-ie,ge];break}const Q={transform:`scale(${V}) rotate(${z}deg) translate(${ge}px, ${ie}px)`,transition:oe?"transform .3s":""};return h.value.name===a.CONTAIN.name&&(Q.maxWidth=Q.maxHeight="100%"),Q}),_=U(()=>Pt(r.zIndex)?r.zIndex:s());function x(){M(),n("close")}function T(){const V=Xh(K=>{switch(K.code){case Dt.esc:r.closeOnPressEscape&&x();break;case Dt.space:I();break;case Dt.left:F();break;case Dt.up:W("zoomIn");break;case Dt.right:$();break;case Dt.down:W("zoomOut");break}}),z=Xh(K=>{const Z=K.deltaY||K.deltaX;W(Z<0?"zoomIn":"zoomOut",{zoomRate:r.zoomRate,enableTransition:!1})});c.run(()=>{Or(document,"keydown",V),Or(document,"wheel",z)})}function M(){c.stop()}function E(){f.value=!1}function A(V){f.value=!1,V.target.alt=i("el.image.error")}function k(V){if(f.value||V.button!==0||!l.value)return;p.value.enableTransition=!1;const{offsetX:z,offsetY:K}=p.value,Z=V.pageX,oe=V.pageY,ge=Xh(Q=>{p.value={...p.value,offsetX:z+Q.pageX-Z,offsetY:K+Q.pageY-oe}}),ie=Or(document,"mousemove",ge);Or(document,"mouseup",()=>{ie()}),V.preventDefault()}function L(){p.value={scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}}function I(){if(f.value)return;const V=y1(a),z=Object.values(a),K=h.value.name,oe=(z.findIndex(ge=>ge.name===K)+1)%V.length;h.value=a[V[oe]],L()}function P(V){const z=r.urlList.length;d.value=(V+z)%z}function F(){g.value&&!r.infinite||P(d.value-1)}function $(){y.value&&!r.infinite||P(d.value+1)}function W(V,z={}){if(f.value)return;const{zoomRate:K,rotateDeg:Z,enableTransition:oe}={zoomRate:r.zoomRate,rotateDeg:90,enableTransition:!0,...z};switch(V){case"zoomOut":p.value.scale>.2&&(p.value.scale=Number.parseFloat((p.value.scale/K).toFixed(3)));break;case"zoomIn":p.value.scale<7&&(p.value.scale=Number.parseFloat((p.value.scale*K).toFixed(3)));break;case"clockwise":p.value.deg+=Z,n("rotate",p.value.deg);break;case"anticlockwise":p.value.deg-=Z,n("rotate",p.value.deg);break}p.value.enableTransition=oe}return Ke(m,()=>{xt(()=>{const V=u.value[0];V!=null&&V.complete||(f.value=!0)})}),Ke(d,V=>{L(),n("switch",V)}),Ut(()=>{var V,z;T(),(z=(V=l.value)==null?void 0:V.focus)==null||z.call(V)}),e({setActiveItem:P}),(V,z)=>(G(),Ee(xb,{to:"body",disabled:!V.teleported},[N(da,{name:"viewer-fade",appear:""},{default:j(()=>[R("div",{ref_key:"wrapper",ref:l,tabindex:-1,class:Y(b(o).e("wrapper")),style:Et({zIndex:b(_)})},[R("div",{class:Y(b(o).e("mask")),onClick:z[0]||(z[0]=It(K=>V.hideOnClickModal&&x(),["self"]))},null,2),_e(" CLOSE "),R("span",{class:Y([b(o).e("btn"),b(o).e("close")]),onClick:x},[N(b(_t),null,{default:j(()=>[N(b(yl))]),_:1})],2),_e(" ARROW "),b(v)?_e("v-if",!0):(G(),re(Ct,{key:0},[R("span",{class:Y(b(S)),onClick:F},[N(b(_t),null,{default:j(()=>[N(b(sc))]),_:1})],2),R("span",{class:Y(b(w)),onClick:$},[N(b(_t),null,{default:j(()=>[N(b(Li))]),_:1})],2)],64)),_e(" ACTIONS "),R("div",{class:Y([b(o).e("btn"),b(o).e("actions")])},[R("div",{class:Y(b(o).e("actions__inner"))},[N(b(_t),{onClick:z[1]||(z[1]=K=>W("zoomOut"))},{default:j(()=>[N(b(GTe))]),_:1}),N(b(_t),{onClick:z[2]||(z[2]=K=>W("zoomIn"))},{default:j(()=>[N(b(cX))]),_:1}),R("i",{class:Y(b(o).e("actions__divider"))},null,2),N(b(_t),{onClick:I},{default:j(()=>[(G(),Ee(on(b(h).icon)))]),_:1}),R("i",{class:Y(b(o).e("actions__divider"))},null,2),N(b(_t),{onClick:z[3]||(z[3]=K=>W("anticlockwise"))},{default:j(()=>[N(b(ACe))]),_:1}),N(b(_t),{onClick:z[4]||(z[4]=K=>W("clockwise"))},{default:j(()=>[N(b(NCe))]),_:1})],2)],2),_e(" CANVAS "),R("div",{class:Y(b(o).e("canvas"))},[(G(!0),re(Ct,null,dn(V.urlList,(K,Z)=>Ft((G(),re("img",{ref_for:!0,ref:oe=>u.value[Z]=oe,key:K,src:K,style:Et(b(C)),class:Y(b(o).e("img")),onLoad:E,onError:A,onMousedown:k},null,46,TBe)),[[cn,Z===d.value]])),128))],2),Ge(V.$slots,"default")],6)]),_:3})],8,["disabled"]))}});var DBe=tt(MBe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/image-viewer/src/image-viewer.vue"]]);const FZ=tn(DBe),ABe=nt({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:ke([String,Object])},previewSrcList:{type:ke(Array),default:()=>zr([])},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}}),kBe={load:t=>t instanceof Event,error:t=>t instanceof Event,switch:t=>Pt(t),close:()=>!0,show:()=>!0},RBe=["src","loading"],LBe={key:0},OBe=ye({name:"ElImage",inheritAttrs:!1}),VBe=ye({...OBe,props:ABe,emits:kBe,setup(t,{emit:e}){const n=t;let r="";const{t:a}=En(),i=Ye("image"),o=Dp(),s=z4(),l=B(),u=B(!1),c=B(!0),f=B(!1),d=B(),h=B(),p=_n&&"loading"in HTMLImageElement.prototype;let v,g;const y=U(()=>[i.e("inner"),w.value&&i.e("preview"),c.value&&i.is("loading")]),m=U(()=>o.style),S=U(()=>{const{fit:W}=n;return _n&&W?{objectFit:W}:{}}),w=U(()=>{const{previewSrcList:W}=n;return Array.isArray(W)&&W.length>0}),C=U(()=>{const{previewSrcList:W,initialIndex:V}=n;let z=V;return V>W.length-1&&(z=0),z}),_=U(()=>n.loading==="eager"?!1:!p&&n.loading==="lazy"||n.lazy),x=()=>{_n&&(c.value=!0,u.value=!1,l.value=n.src)};function T(W){c.value=!1,u.value=!1,e("load",W)}function M(W){c.value=!1,u.value=!0,e("error",W)}function E(){cye(d.value,h.value)&&(x(),L())}const A=gY(E,200,!0);async function k(){var W;if(!_n)return;await xt();const{scrollContainer:V}=n;xs(V)?h.value=V:Ht(V)&&V!==""?h.value=(W=document.querySelector(V))!=null?W:void 0:d.value&&(h.value=N4(d.value)),h.value&&(v=Or(h,"scroll",A),setTimeout(()=>E(),100))}function L(){!_n||!h.value||!A||(v==null||v(),h.value=void 0)}function I(W){if(W.ctrlKey){if(W.deltaY<0)return W.preventDefault(),!1;if(W.deltaY>0)return W.preventDefault(),!1}}function P(){w.value&&(g=Or("wheel",I,{passive:!1}),r=document.body.style.overflow,document.body.style.overflow="hidden",f.value=!0,e("show"))}function F(){g==null||g(),document.body.style.overflow=r,f.value=!1,e("close")}function $(W){e("switch",W)}return Ke(()=>n.src,()=>{_.value?(c.value=!0,u.value=!1,L(),k()):x()}),Ut(()=>{_.value?k():x()}),(W,V)=>(G(),re("div",{ref_key:"container",ref:d,class:Y([b(i).b(),W.$attrs.class]),style:Et(b(m))},[u.value?Ge(W.$slots,"error",{key:0},()=>[R("div",{class:Y(b(i).e("error"))},We(b(a)("el.image.error")),3)]):(G(),re(Ct,{key:1},[l.value!==void 0?(G(),re("img",an({key:0},b(s),{src:l.value,loading:W.loading,style:b(S),class:b(y),onClick:P,onLoad:T,onError:M}),null,16,RBe)):_e("v-if",!0),c.value?(G(),re("div",{key:1,class:Y(b(i).e("wrapper"))},[Ge(W.$slots,"placeholder",{},()=>[R("div",{class:Y(b(i).e("placeholder"))},null,2)])],2)):_e("v-if",!0)],64)),b(w)?(G(),re(Ct,{key:2},[f.value?(G(),Ee(b(FZ),{key:0,"z-index":W.zIndex,"initial-index":b(C),infinite:W.infinite,"zoom-rate":W.zoomRate,"url-list":W.previewSrcList,"hide-on-click-modal":W.hideOnClickModal,teleported:W.previewTeleported,"close-on-press-escape":W.closeOnPressEscape,onClose:F,onSwitch:$},{default:j(()=>[W.$slots.viewer?(G(),re("div",LBe,[Ge(W.$slots,"viewer")])):_e("v-if",!0)]),_:3},8,["z-index","initial-index","infinite","zoom-rate","url-list","hide-on-click-modal","teleported","close-on-press-escape"])):_e("v-if",!0)],64)):_e("v-if",!0)],6))}});var NBe=tt(VBe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/image/src/image.vue"]]);const IBe=tn(NBe),BBe=nt({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:yi,controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:"",values:["","right"]},valueOnClear:{type:[String,Number,null],validator:t=>t===null||Pt(t)||["min","max"].includes(t),default:null},name:String,label:String,placeholder:String,precision:{type:Number,validator:t=>t>=0&&t===Number.parseInt(`${t}`,10)},validateEvent:{type:Boolean,default:!0}}),$Be={[Ar]:(t,e)=>e!==t,blur:t=>t instanceof FocusEvent,focus:t=>t instanceof FocusEvent,[Ji]:t=>Pt(t)||Ta(t),[nn]:t=>Pt(t)||Ta(t)},PBe=["aria-label","onKeydown"],FBe=["aria-label","onKeydown"],zBe=ye({name:"ElInputNumber"}),UBe=ye({...zBe,props:BBe,emits:$Be,setup(t,{expose:e,emit:n}){const r=t,{t:a}=En(),i=Ye("input-number"),o=B(),s=Vn({currentValue:r.modelValue,userInput:null}),{formItem:l}=uo(),u=U(()=>Pt(r.modelValue)&&r.modelValue<=r.min),c=U(()=>Pt(r.modelValue)&&r.modelValue>=r.max),f=U(()=>{const L=y(r.step);return Na(r.precision)?Math.max(y(r.modelValue),L):(L>r.precision,r.precision)}),d=U(()=>r.controls&&r.controlsPosition==="right"),h=Aa(),p=Ro(),v=U(()=>{if(s.userInput!==null)return s.userInput;let L=s.currentValue;if(Ta(L))return"";if(Pt(L)){if(Number.isNaN(L))return"";Na(r.precision)||(L=L.toFixed(r.precision))}return L}),g=(L,I)=>{if(Na(I)&&(I=f.value),I===0)return Math.round(L);let P=String(L);const F=P.indexOf(".");if(F===-1||!P.replace(".","").split("")[F+I])return L;const V=P.length;return P.charAt(V-1)==="5"&&(P=`${P.slice(0,Math.max(0,V-1))}6`),Number.parseFloat(Number(P).toFixed(I))},y=L=>{if(Ta(L))return 0;const I=L.toString(),P=I.indexOf(".");let F=0;return P!==-1&&(F=I.length-P-1),F},m=(L,I=1)=>Pt(L)?g(L+r.step*I):s.currentValue,S=()=>{if(r.readonly||p.value||c.value)return;const L=Number(v.value)||0,I=m(L);_(I),n(Ji,s.currentValue)},w=()=>{if(r.readonly||p.value||u.value)return;const L=Number(v.value)||0,I=m(L,-1);_(I),n(Ji,s.currentValue)},C=(L,I)=>{const{max:P,min:F,step:$,precision:W,stepStrictly:V,valueOnClear:z}=r;P<F&&Da("InputNumber","min should not be greater than max.");let K=Number(L);if(Ta(L)||Number.isNaN(K))return null;if(L===""){if(z===null)return null;K=Ht(z)?{min:F,max:P}[z]:z}return V&&(K=g(Math.round(K/$)*$,W)),Na(W)||(K=g(K,W)),(K>P||K<F)&&(K=K>P?P:F,I&&n(nn,K)),K},_=(L,I=!0)=>{var P;const F=s.currentValue,$=C(L);if(!I){n(nn,$);return}F!==$&&(s.userInput=null,n(nn,$),n(Ar,$,F),r.validateEvent&&((P=l==null?void 0:l.validate)==null||P.call(l,"change").catch(W=>void 0)),s.currentValue=$)},x=L=>{s.userInput=L;const I=L===""?null:Number(L);n(Ji,I),_(I,!1)},T=L=>{const I=L!==""?Number(L):"";(Pt(I)&&!Number.isNaN(I)||L==="")&&_(I),s.userInput=null},M=()=>{var L,I;(I=(L=o.value)==null?void 0:L.focus)==null||I.call(L)},E=()=>{var L,I;(I=(L=o.value)==null?void 0:L.blur)==null||I.call(L)},A=L=>{n("focus",L)},k=L=>{var I;n("blur",L),r.validateEvent&&((I=l==null?void 0:l.validate)==null||I.call(l,"blur").catch(P=>void 0))};return Ke(()=>r.modelValue,L=>{const I=C(s.userInput),P=C(L,!0);!Pt(I)&&(!I||I!==P)&&(s.currentValue=P,s.userInput=null)},{immediate:!0}),Ut(()=>{var L;const{min:I,max:P,modelValue:F}=r,$=(L=o.value)==null?void 0:L.input;if($.setAttribute("role","spinbutton"),Number.isFinite(P)?$.setAttribute("aria-valuemax",String(P)):$.removeAttribute("aria-valuemax"),Number.isFinite(I)?$.setAttribute("aria-valuemin",String(I)):$.removeAttribute("aria-valuemin"),$.setAttribute("aria-valuenow",s.currentValue||s.currentValue===0?String(s.currentValue):""),$.setAttribute("aria-disabled",String(p.value)),!Pt(F)&&F!=null){let W=Number(F);Number.isNaN(W)&&(W=null),n(nn,W)}}),bc(()=>{var L,I;const P=(L=o.value)==null?void 0:L.input;P==null||P.setAttribute("aria-valuenow",`${(I=s.currentValue)!=null?I:""}`)}),e({focus:M,blur:E}),(L,I)=>(G(),re("div",{class:Y([b(i).b(),b(i).m(b(h)),b(i).is("disabled",b(p)),b(i).is("without-controls",!L.controls),b(i).is("controls-right",b(d))]),onDragstart:I[1]||(I[1]=It(()=>{},["prevent"]))},[L.controls?Ft((G(),re("span",{key:0,role:"button","aria-label":b(a)("el.inputNumber.decrease"),class:Y([b(i).e("decrease"),b(i).is("disabled",b(u))]),onKeydown:Tn(w,["enter"])},[N(b(_t),null,{default:j(()=>[b(d)?(G(),Ee(b(rd),{key:0})):(G(),Ee(b(X2e),{key:1}))]),_:1})],42,PBe)),[[b(c2),w]]):_e("v-if",!0),L.controls?Ft((G(),re("span",{key:1,role:"button","aria-label":b(a)("el.inputNumber.increase"),class:Y([b(i).e("increase"),b(i).is("disabled",b(c))]),onKeydown:Tn(S,["enter"])},[N(b(_t),null,{default:j(()=>[b(d)?(G(),Ee(b(yT),{key:0})):(G(),Ee(b(lX),{key:1}))]),_:1})],42,FBe)),[[b(c2),S]]):_e("v-if",!0),N(b(Ri),{id:L.id,ref_key:"input",ref:o,type:"number",step:L.step,"model-value":b(v),placeholder:L.placeholder,readonly:L.readonly,disabled:b(p),size:b(h),max:L.max,min:L.min,name:L.name,label:L.label,"validate-event":!1,onWheel:I[0]||(I[0]=It(()=>{},["prevent"])),onKeydown:[Tn(It(S,["prevent"]),["up"]),Tn(It(w,["prevent"]),["down"])],onBlur:k,onFocus:A,onInput:x,onChange:T},null,8,["id","step","model-value","placeholder","readonly","disabled","size","max","min","name","label","onKeydown"])],34))}});var GBe=tt(UBe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/input-number/src/input-number.vue"]]);const zZ=tn(GBe),HBe=nt({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:gr}}),WBe={click:t=>t instanceof MouseEvent},jBe=["href"],KBe=ye({name:"ElLink"}),YBe=ye({...KBe,props:HBe,emits:WBe,setup(t,{emit:e}){const n=t,r=Ye("link"),a=U(()=>[r.b(),r.m(n.type),r.is("disabled",n.disabled),r.is("underline",n.underline&&!n.disabled)]);function i(o){n.disabled||e("click",o)}return(o,s)=>(G(),re("a",{class:Y(b(a)),href:o.disabled||!o.href?void 0:o.href,onClick:i},[o.icon?(G(),Ee(b(_t),{key:0},{default:j(()=>[(G(),Ee(on(o.icon)))]),_:1})):_e("v-if",!0),o.$slots.default?(G(),re("span",{key:1,class:Y(b(r).e("inner"))},[Ge(o.$slots,"default")],2)):_e("v-if",!0),o.$slots.icon?Ge(o.$slots,"icon",{key:2}):_e("v-if",!0)],10,jBe))}});var XBe=tt(YBe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/link/src/link.vue"]]);const qBe=tn(XBe);let ZBe=class{constructor(e,n){this.parent=e,this.domNode=n,this.subIndex=0,this.subIndex=0,this.init()}init(){this.subMenuItems=this.domNode.querySelectorAll("li"),this.addListeners()}gotoSubIndex(e){e===this.subMenuItems.length?e=0:e<0&&(e=this.subMenuItems.length-1),this.subMenuItems[e].focus(),this.subIndex=e}addListeners(){const e=this.parent.domNode;Array.prototype.forEach.call(this.subMenuItems,n=>{n.addEventListener("keydown",r=>{let a=!1;switch(r.code){case Dt.down:{this.gotoSubIndex(this.subIndex+1),a=!0;break}case Dt.up:{this.gotoSubIndex(this.subIndex-1),a=!0;break}case Dt.tab:{Hx(e,"mouseleave");break}case Dt.enter:case Dt.space:{a=!0,r.currentTarget.click();break}}return a&&(r.preventDefault(),r.stopPropagation()),!1})})}},QBe=class{constructor(e,n){this.domNode=e,this.submenu=null,this.submenu=null,this.init(n)}init(e){this.domNode.setAttribute("tabindex","0");const n=this.domNode.querySelector(`.${e}-menu`);n&&(this.submenu=new ZBe(this,n)),this.addListeners()}addListeners(){this.domNode.addEventListener("keydown",e=>{let n=!1;switch(e.code){case Dt.down:{Hx(e.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(0),n=!0;break}case Dt.up:{Hx(e.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(this.submenu.subMenuItems.length-1),n=!0;break}case Dt.tab:{Hx(e.currentTarget,"mouseleave");break}case Dt.enter:case Dt.space:{n=!0,e.currentTarget.click();break}}n&&e.preventDefault()})}},JBe=class{constructor(e,n){this.domNode=e,this.init(n)}init(e){const n=this.domNode.childNodes;Array.from(n).forEach(r=>{r.nodeType===1&&new QBe(r,e)})}};const e$e=ye({name:"ElMenuCollapseTransition",setup(){const t=Ye("menu");return{listeners:{onBeforeEnter:n=>n.style.opacity="0.2",onEnter(n,r){Ql(n,`${t.namespace.value}-opacity-transition`),n.style.opacity="1",r()},onAfterEnter(n){Eo(n,`${t.namespace.value}-opacity-transition`),n.style.opacity=""},onBeforeLeave(n){n.dataset||(n.dataset={}),dl(n,t.m("collapse"))?(Eo(n,t.m("collapse")),n.dataset.oldOverflow=n.style.overflow,n.dataset.scrollWidth=n.clientWidth.toString(),Ql(n,t.m("collapse"))):(Ql(n,t.m("collapse")),n.dataset.oldOverflow=n.style.overflow,n.dataset.scrollWidth=n.clientWidth.toString(),Eo(n,t.m("collapse"))),n.style.width=`${n.scrollWidth}px`,n.style.overflow="hidden"},onLeave(n){Ql(n,"horizontal-collapse-transition"),n.style.width=`${n.dataset.scrollWidth}px`}}}}});function t$e(t,e,n,r,a,i){return G(),Ee(da,an({mode:"out-in"},t.listeners),{default:j(()=>[Ge(t.$slots,"default")]),_:3},16)}var n$e=tt(e$e,[["render",t$e],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-collapse-transition.vue"]]);function UZ(t,e){const n=U(()=>{let a=t.parent;const i=[e.value];for(;a.type.name!=="ElMenu";)a.props.index&&i.unshift(a.props.index),a=a.parent;return i});return{parentMenu:U(()=>{let a=t.parent;for(;a&&!["ElMenu","ElSubMenu"].includes(a.type.name);)a=a.parent;return a}),indexPath:n}}function r$e(t){return U(()=>{const n=t.backgroundColor;return n?new bq(n).shade(20).toString():""})}const GZ=(t,e)=>{const n=Ye("menu");return U(()=>n.cssVarBlock({"text-color":t.textColor||"","hover-text-color":t.textColor||"","bg-color":t.backgroundColor||"","hover-bg-color":r$e(t).value||"","active-color":t.activeTextColor||"",level:`${e}`}))},a$e=nt({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:gr},expandOpenIcon:{type:gr},collapseCloseIcon:{type:gr},collapseOpenIcon:{type:gr}}),YS="ElSubMenu";var SV=ye({name:YS,props:a$e,setup(t,{slots:e,expose:n}){fu({from:"popper-append-to-body",replacement:"teleported",scope:YS,version:"2.3.0",ref:"https://element-plus.org/en-US/component/menu.html#submenu-attributes"},U(()=>t.popperAppendToBody!==void 0));const r=Qt(),{indexPath:a,parentMenu:i}=UZ(r,U(()=>t.index)),o=Ye("menu"),s=Ye("sub-menu"),l=yt("rootMenu");l||Da(YS,"can not inject root menu");const u=yt(`subMenu:${i.value.uid}`);u||Da(YS,"can not inject sub menu");const c=B({}),f=B({});let d;const h=B(!1),p=B(),v=B(null),g=U(()=>A.value==="horizontal"&&m.value?"bottom-start":"right-start"),y=U(()=>A.value==="horizontal"&&m.value||A.value==="vertical"&&!l.props.collapse?t.expandCloseIcon&&t.expandOpenIcon?_.value?t.expandOpenIcon:t.expandCloseIcon:rd:t.collapseCloseIcon&&t.collapseOpenIcon?_.value?t.collapseOpenIcon:t.collapseCloseIcon:Li),m=U(()=>u.level===0),S=U(()=>{var z;const K=(z=t.teleported)!=null?z:t.popperAppendToBody;return K===void 0?m.value:K}),w=U(()=>l.props.collapse?`${o.namespace.value}-zoom-in-left`:`${o.namespace.value}-zoom-in-top`),C=U(()=>A.value==="horizontal"&&m.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"]),_=U(()=>l.openedMenus.includes(t.index)),x=U(()=>{let z=!1;return Object.values(c.value).forEach(K=>{K.active&&(z=!0)}),Object.values(f.value).forEach(K=>{K.active&&(z=!0)}),z}),T=U(()=>l.props.backgroundColor||""),M=U(()=>l.props.activeTextColor||""),E=U(()=>l.props.textColor||""),A=U(()=>l.props.mode),k=Vn({index:t.index,indexPath:a,active:x}),L=GZ(l.props,u.level+1),I=U(()=>A.value!=="horizontal"?{color:E.value}:{borderBottomColor:x.value?l.props.activeTextColor?M.value:"":"transparent",color:x.value?M.value:E.value}),P=()=>{var z,K,Z;return(Z=(K=(z=v.value)==null?void 0:z.popperRef)==null?void 0:K.popperInstanceRef)==null?void 0:Z.destroy()},F=z=>{z||P()},$=()=>{l.props.menuTrigger==="hover"&&l.props.mode==="horizontal"||l.props.collapse&&l.props.mode==="vertical"||t.disabled||l.handleSubMenuClick({index:t.index,indexPath:a.value,active:x.value})},W=(z,K=t.showTimeout)=>{var Z;z.type!=="focus"&&(l.props.menuTrigger==="click"&&l.props.mode==="horizontal"||!l.props.collapse&&l.props.mode==="vertical"||t.disabled||(u.mouseInChild.value=!0,d==null||d(),{stop:d}=dp(()=>{l.openMenu(t.index,a.value)},K),S.value&&((Z=i.value.vnode.el)==null||Z.dispatchEvent(new MouseEvent("mouseenter")))))},V=(z=!1)=>{var K,Z;l.props.menuTrigger==="click"&&l.props.mode==="horizontal"||!l.props.collapse&&l.props.mode==="vertical"||(d==null||d(),u.mouseInChild.value=!1,{stop:d}=dp(()=>!h.value&&l.closeMenu(t.index,a.value),t.hideTimeout),S.value&&z&&((K=r.parent)==null?void 0:K.type.name)==="ElSubMenu"&&((Z=u.handleMouseleave)==null||Z.call(u,!0)))};Ke(()=>l.props.collapse,z=>F(!!z));{const z=Z=>{f.value[Z.index]=Z},K=Z=>{delete f.value[Z.index]};fn(`subMenu:${r.uid}`,{addSubMenu:z,removeSubMenu:K,handleMouseleave:V,mouseInChild:h,level:u.level+1})}return n({opened:_}),Ut(()=>{l.addSubMenu(k),u.addSubMenu(k)}),Sr(()=>{u.removeSubMenu(k),l.removeSubMenu(k)}),()=>{var z;const K=[(z=e.title)==null?void 0:z.call(e),At(_t,{class:s.e("icon-arrow"),style:{transform:_.value?t.expandCloseIcon&&t.expandOpenIcon||t.collapseCloseIcon&&t.collapseOpenIcon&&l.props.collapse?"none":"rotateZ(180deg)":"none"}},{default:()=>Ht(y.value)?At(r.appContext.components[y.value]):At(y.value)})],Z=l.isMenuPopup?At(io,{ref:v,visible:_.value,effect:"light",pure:!0,offset:t.popperOffset,showArrow:!1,persistent:!0,popperClass:t.popperClass,placement:g.value,teleported:S.value,fallbackPlacements:C.value,transition:w.value,gpuAcceleration:!1},{content:()=>{var oe;return At("div",{class:[o.m(A.value),o.m("popup-container"),t.popperClass],onMouseenter:ge=>W(ge,100),onMouseleave:()=>V(!0),onFocus:ge=>W(ge,100)},[At("ul",{class:[o.b(),o.m("popup"),o.m(`popup-${g.value}`)],style:L.value},[(oe=e.default)==null?void 0:oe.call(e)])])},default:()=>At("div",{class:s.e("title"),style:[I.value,{backgroundColor:T.value}],onClick:$},K)}):At(Ct,{},[At("div",{class:s.e("title"),style:[I.value,{backgroundColor:T.value}],ref:p,onClick:$},K),At(LT,{},{default:()=>{var oe;return Ft(At("ul",{role:"menu",class:[o.b(),o.m("inline")],style:L.value},[(oe=e.default)==null?void 0:oe.call(e)]),[[cn,_.value]])}})]);return At("li",{class:[s.b(),s.is("active",x.value),s.is("opened",_.value),s.is("disabled",t.disabled)],role:"menuitem",ariaHaspopup:!0,ariaExpanded:_.value,onMouseenter:W,onMouseleave:()=>V(!0),onFocus:W},[Z])}}});const i$e=nt({mode:{type:String,values:["horizontal","vertical"],default:"vertical"},defaultActive:{type:String,default:""},defaultOpeneds:{type:ke(Array),default:()=>zr([])},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"}}),IM=t=>Array.isArray(t)&&t.every(e=>Ht(e)),o$e={close:(t,e)=>Ht(t)&&IM(e),open:(t,e)=>Ht(t)&&IM(e),select:(t,e,n,r)=>Ht(t)&&IM(e)&&un(n)&&(r===void 0||r instanceof Promise)};var s$e=ye({name:"ElMenu",props:i$e,emits:o$e,setup(t,{emit:e,slots:n,expose:r}){const a=Qt(),i=a.appContext.config.globalProperties.$router,o=B(),s=Ye("menu"),l=Ye("sub-menu"),u=B(-1),c=B(t.defaultOpeneds&&!t.collapse?t.defaultOpeneds.slice(0):[]),f=B(t.defaultActive),d=B({}),h=B({}),p=U(()=>t.mode==="horizontal"||t.mode==="vertical"&&t.collapse),v=()=>{const A=f.value&&d.value[f.value];if(!A||t.mode==="horizontal"||t.collapse)return;A.indexPath.forEach(L=>{const I=h.value[L];I&&g(L,I.indexPath)})},g=(A,k)=>{c.value.includes(A)||(t.uniqueOpened&&(c.value=c.value.filter(L=>k.includes(L))),c.value.push(A),e("open",A,k))},y=A=>{const k=c.value.indexOf(A);k!==-1&&c.value.splice(k,1)},m=(A,k)=>{y(A),e("close",A,k)},S=({index:A,indexPath:k})=>{c.value.includes(A)?m(A,k):g(A,k)},w=A=>{(t.mode==="horizontal"||t.collapse)&&(c.value=[]);const{index:k,indexPath:L}=A;if(!(Ta(k)||Ta(L)))if(t.router&&i){const I=A.route||k,P=i.push(I).then(F=>(F||(f.value=k),F));e("select",k,L,{index:k,indexPath:L,route:I},P)}else f.value=k,e("select",k,L,{index:k,indexPath:L})},C=A=>{const k=d.value,L=k[A]||f.value&&k[f.value]||k[t.defaultActive];L?f.value=L.index:f.value=A},_=()=>{var A,k;if(!o.value)return-1;const L=Array.from((k=(A=o.value)==null?void 0:A.childNodes)!=null?k:[]).filter(z=>z.nodeName!=="#comment"&&(z.nodeName!=="#text"||z.nodeValue)),I=64,P=Number.parseInt(getComputedStyle(o.value).paddingLeft,10),F=Number.parseInt(getComputedStyle(o.value).paddingRight,10),$=o.value.clientWidth-P-F;let W=0,V=0;return L.forEach((z,K)=>{W+=z.offsetWidth||0,W<=$-I&&(V=K+1)}),V===L.length?-1:V},x=(A,k=33.34)=>{let L;return()=>{L&&clearTimeout(L),L=setTimeout(()=>{A()},k)}};let T=!0;const M=()=>{const A=()=>{u.value=-1,xt(()=>{u.value=_()})};T?A():x(A)(),T=!1};Ke(()=>t.defaultActive,A=>{d.value[A]||(f.value=""),C(A)}),Ke(()=>t.collapse,A=>{A&&(c.value=[])}),Ke(d.value,v);let E;Uo(()=>{t.mode==="horizontal"&&t.ellipsis?E=Vi(o,M).stop:E==null||E()});{const A=P=>{h.value[P.index]=P},k=P=>{delete h.value[P.index]};fn("rootMenu",Vn({props:t,openedMenus:c,items:d,subMenus:h,activeIndex:f,isMenuPopup:p,addMenuItem:P=>{d.value[P.index]=P},removeMenuItem:P=>{delete d.value[P.index]},addSubMenu:A,removeSubMenu:k,openMenu:g,closeMenu:m,handleMenuItemClick:w,handleSubMenuClick:S})),fn(`subMenu:${a.uid}`,{addSubMenu:A,removeSubMenu:k,mouseInChild:B(!1),level:0})}return Ut(()=>{t.mode==="horizontal"&&new JBe(a.vnode.el,s.namespace.value)}),r({open:k=>{const{indexPath:L}=h.value[k];L.forEach(I=>g(I,L))},close:y,handleResize:M}),()=>{var A,k;let L=(k=(A=n.default)==null?void 0:A.call(n))!=null?k:[];const I=[];if(t.mode==="horizontal"&&o.value){const $=ig(L),W=u.value===-1?$:$.slice(0,u.value),V=u.value===-1?[]:$.slice(u.value);V!=null&&V.length&&t.ellipsis&&(L=W,I.push(At(SV,{index:"sub-menu-more",class:l.e("hide-arrow")},{title:()=>At(_t,{class:l.e("icon-more")},{default:()=>At(oCe)}),default:()=>V})))}const P=GZ(t,0),F=At("ul",{key:String(t.collapse),role:"menubar",ref:o,style:P.value,class:{[s.b()]:!0,[s.m(t.mode)]:!0,[s.m("collapse")]:t.collapse}},[...L,...I]);return t.collapseTransition&&t.mode==="vertical"?At(n$e,()=>F):F}}});const l$e=nt({index:{type:ke([String,null]),default:null},route:{type:ke([String,Object])},disabled:Boolean}),u$e={click:t=>Ht(t.index)&&Array.isArray(t.indexPath)},BM="ElMenuItem",c$e=ye({name:BM,components:{ElTooltip:io},props:l$e,emits:u$e,setup(t,{emit:e}){const n=Qt(),r=yt("rootMenu"),a=Ye("menu"),i=Ye("menu-item");r||Da(BM,"can not inject root menu");const{parentMenu:o,indexPath:s}=UZ(n,Wr(t,"index")),l=yt(`subMenu:${o.value.uid}`);l||Da(BM,"can not inject sub menu");const u=U(()=>t.index===r.activeIndex),c=Vn({index:t.index,indexPath:s,active:u}),f=()=>{t.disabled||(r.handleMenuItemClick({index:t.index,indexPath:s.value,route:t.route}),e("click",c))};return Ut(()=>{l.addSubMenu(c),r.addMenuItem(c)}),Sr(()=>{l.removeSubMenu(c),r.removeMenuItem(c)}),{parentMenu:o,rootMenu:r,active:u,nsMenu:a,nsMenuItem:i,handleClick:f}}});function f$e(t,e,n,r,a,i){const o=$e("el-tooltip");return G(),re("li",{class:Y([t.nsMenuItem.b(),t.nsMenuItem.is("active",t.active),t.nsMenuItem.is("disabled",t.disabled)]),role:"menuitem",tabindex:"-1",onClick:e[0]||(e[0]=(...s)=>t.handleClick&&t.handleClick(...s))},[t.parentMenu.type.name==="ElMenu"&&t.rootMenu.props.collapse&&t.$slots.title?(G(),Ee(o,{key:0,effect:t.rootMenu.props.popperEffect,placement:"right","fallback-placements":["left"],persistent:""},{content:j(()=>[Ge(t.$slots,"title")]),default:j(()=>[R("div",{class:Y(t.nsMenu.be("tooltip","trigger"))},[Ge(t.$slots,"default")],2)]),_:3},8,["effect"])):(G(),re(Ct,{key:1},[Ge(t.$slots,"default"),Ge(t.$slots,"title")],64))],2)}var HZ=tt(c$e,[["render",f$e],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-item.vue"]]);const d$e={title:String},h$e="ElMenuItemGroup",p$e=ye({name:h$e,props:d$e,setup(){return{ns:Ye("menu-item-group")}}});function v$e(t,e,n,r,a,i){return G(),re("li",{class:Y(t.ns.b())},[R("div",{class:Y(t.ns.e("title"))},[t.$slots.title?Ge(t.$slots,"title",{key:1}):(G(),re(Ct,{key:0},[Be(We(t.title),1)],64))],2),R("ul",null,[Ge(t.$slots,"default")])],2)}var WZ=tt(p$e,[["render",v$e],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-item-group.vue"]]);const g$e=tn(s$e,{MenuItem:HZ,MenuItemGroup:WZ,SubMenu:SV}),y$e=ta(HZ),m$e=ta(WZ),b$e=ta(SV),S$e=nt({icon:{type:gr,default:()=>qxe},title:String,content:{type:String,default:""}}),w$e={back:()=>!0},x$e=["aria-label"],_$e=ye({name:"ElPageHeader"}),C$e=ye({..._$e,props:S$e,emits:w$e,setup(t,{emit:e}){const n=wi(),{t:r}=En(),a=Ye("page-header"),i=U(()=>[a.b(),{[a.m("has-breadcrumb")]:!!n.breadcrumb,[a.m("has-extra")]:!!n.extra,[a.is("contentful")]:!!n.default}]);function o(){e("back")}return(s,l)=>(G(),re("div",{class:Y(b(i))},[s.$slots.breadcrumb?(G(),re("div",{key:0,class:Y(b(a).e("breadcrumb"))},[Ge(s.$slots,"breadcrumb")],2)):_e("v-if",!0),R("div",{class:Y(b(a).e("header"))},[R("div",{class:Y(b(a).e("left"))},[R("div",{class:Y(b(a).e("back")),role:"button",tabindex:"0",onClick:o},[s.icon||s.$slots.icon?(G(),re("div",{key:0,"aria-label":s.title||b(r)("el.pageHeader.title"),class:Y(b(a).e("icon"))},[Ge(s.$slots,"icon",{},()=>[s.icon?(G(),Ee(b(_t),{key:0},{default:j(()=>[(G(),Ee(on(s.icon)))]),_:1})):_e("v-if",!0)])],10,x$e)):_e("v-if",!0),R("div",{class:Y(b(a).e("title"))},[Ge(s.$slots,"title",{},()=>[Be(We(s.title||b(r)("el.pageHeader.title")),1)])],2)],2),N(b(kZ),{direction:"vertical"}),R("div",{class:Y(b(a).e("content"))},[Ge(s.$slots,"content",{},()=>[Be(We(s.content),1)])],2)],2),s.$slots.extra?(G(),re("div",{key:0,class:Y(b(a).e("extra"))},[Ge(s.$slots,"extra")],2)):_e("v-if",!0)],2),s.$slots.default?(G(),re("div",{key:1,class:Y(b(a).e("main"))},[Ge(s.$slots,"default")],2)):_e("v-if",!0)],2))}});var T$e=tt(C$e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/page-header/src/page-header.vue"]]);const E$e=tn(T$e),jZ=Symbol("elPaginationKey"),M$e=nt({disabled:Boolean,currentPage:{type:Number,default:1},prevText:{type:String},prevIcon:{type:gr}}),D$e={click:t=>t instanceof MouseEvent},A$e=["disabled","aria-label","aria-disabled"],k$e={key:0},R$e=ye({name:"ElPaginationPrev"}),L$e=ye({...R$e,props:M$e,emits:D$e,setup(t){const e=t,{t:n}=En(),r=U(()=>e.disabled||e.currentPage<=1);return(a,i)=>(G(),re("button",{type:"button",class:"btn-prev",disabled:b(r),"aria-label":a.prevText||b(n)("el.pagination.prev"),"aria-disabled":b(r),onClick:i[0]||(i[0]=o=>a.$emit("click",o))},[a.prevText?(G(),re("span",k$e,We(a.prevText),1)):(G(),Ee(b(_t),{key:1},{default:j(()=>[(G(),Ee(on(a.prevIcon)))]),_:1}))],8,A$e))}});var O$e=tt(L$e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/prev.vue"]]);const V$e=nt({disabled:Boolean,currentPage:{type:Number,default:1},pageCount:{type:Number,default:50},nextText:{type:String},nextIcon:{type:gr}}),N$e=["disabled","aria-label","aria-disabled"],I$e={key:0},B$e=ye({name:"ElPaginationNext"}),$$e=ye({...B$e,props:V$e,emits:["click"],setup(t){const e=t,{t:n}=En(),r=U(()=>e.disabled||e.currentPage===e.pageCount||e.pageCount===0);return(a,i)=>(G(),re("button",{type:"button",class:"btn-next",disabled:b(r),"aria-label":a.nextText||b(n)("el.pagination.next"),"aria-disabled":b(r),onClick:i[0]||(i[0]=o=>a.$emit("click",o))},[a.nextText?(G(),re("span",I$e,We(a.nextText),1)):(G(),Ee(b(_t),{key:1},{default:j(()=>[(G(),Ee(on(a.nextIcon)))]),_:1}))],8,N$e))}});var P$e=tt($$e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/next.vue"]]);const KZ=Symbol("ElSelectGroup"),Ib=Symbol("ElSelect");function F$e(t,e){const n=yt(Ib),r=yt(KZ,{disabled:!1}),a=U(()=>Object.prototype.toString.call(t.value).toLowerCase()==="[object object]"),i=U(()=>n.props.multiple?f(n.props.modelValue,t.value):d(t.value,n.props.modelValue)),o=U(()=>{if(n.props.multiple){const v=n.props.modelValue||[];return!i.value&&v.length>=n.props.multipleLimit&&n.props.multipleLimit>0}else return!1}),s=U(()=>t.label||(a.value?"":t.value)),l=U(()=>t.value||t.label||""),u=U(()=>t.disabled||e.groupDisabled||o.value),c=Qt(),f=(v=[],g)=>{if(a.value){const y=n.props.valueKey;return v&&v.some(m=>Wn(Fr(m,y))===Fr(g,y))}else return v&&v.includes(g)},d=(v,g)=>{if(a.value){const{valueKey:y}=n.props;return Fr(v,y)===Fr(g,y)}else return v===g},h=()=>{!t.disabled&&!r.disabled&&(n.hoverIndex=n.optionsArray.indexOf(c.proxy))};Ke(()=>s.value,()=>{!t.created&&!n.props.remote&&n.setSelected()}),Ke(()=>t.value,(v,g)=>{const{remote:y,valueKey:m}=n.props;if(Object.is(v,g)||(n.onOptionDestroy(g,c.proxy),n.onOptionCreate(c.proxy)),!t.created&&!y){if(m&&typeof v=="object"&&typeof g=="object"&&v[m]===g[m])return;n.setSelected()}}),Ke(()=>r.disabled,()=>{e.groupDisabled=r.disabled},{immediate:!0});const{queryChange:p}=Wn(n);return Ke(p,v=>{const{query:g}=b(v),y=new RegExp(tX(g),"i");e.visible=y.test(s.value)||t.created,e.visible||n.filteredOptionsCount--},{immediate:!0}),{select:n,currentLabel:s,currentValue:l,itemSelected:i,isDisabled:u,hoverItem:h}}const z$e=ye({name:"ElOption",componentName:"ElOption",props:{value:{required:!0,type:[String,Number,Boolean,Object]},label:[String,Number],created:Boolean,disabled:Boolean},setup(t){const e=Ye("select"),n=U(()=>[e.be("dropdown","item"),e.is("disabled",b(o)),{selected:b(i),hover:b(c)}]),r=Vn({index:-1,groupDisabled:!1,visible:!0,hitState:!1,hover:!1}),{currentLabel:a,itemSelected:i,isDisabled:o,select:s,hoverItem:l}=F$e(t,r),{visible:u,hover:c}=Wa(r),f=Qt().proxy;s.onOptionCreate(f),Sr(()=>{const h=f.value,{selected:p}=s,g=(s.props.multiple?p:[p]).some(y=>y.value===f.value);xt(()=>{s.cachedOptions.get(h)===f&&!g&&s.cachedOptions.delete(h)}),s.onOptionDestroy(h,f)});function d(){t.disabled!==!0&&r.groupDisabled!==!0&&s.handleOptionSelect(f)}return{ns:e,containerKls:n,currentLabel:a,itemSelected:i,isDisabled:o,select:s,hoverItem:l,visible:u,hover:c,selectOptionClick:d,states:r}}});function U$e(t,e,n,r,a,i){return Ft((G(),re("li",{class:Y(t.containerKls),onMouseenter:e[0]||(e[0]=(...o)=>t.hoverItem&&t.hoverItem(...o)),onClick:e[1]||(e[1]=It((...o)=>t.selectOptionClick&&t.selectOptionClick(...o),["stop"]))},[Ge(t.$slots,"default",{},()=>[R("span",null,We(t.currentLabel),1)])],34)),[[cn,t.visible]])}var wV=tt(z$e,[["render",U$e],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/option.vue"]]);const G$e=ye({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const t=yt(Ib),e=Ye("select"),n=U(()=>t.props.popperClass),r=U(()=>t.props.multiple),a=U(()=>t.props.fitInputWidth),i=B("");function o(){var s;i.value=`${(s=t.selectWrapper)==null?void 0:s.offsetWidth}px`}return Ut(()=>{o(),Vi(t.selectWrapper,o)}),{ns:e,minWidth:i,popperClass:n,isMultiple:r,isFitInputWidth:a}}});function H$e(t,e,n,r,a,i){return G(),re("div",{class:Y([t.ns.b("dropdown"),t.ns.is("multiple",t.isMultiple),t.popperClass]),style:Et({[t.isFitInputWidth?"width":"minWidth"]:t.minWidth})},[Ge(t.$slots,"default")],6)}var W$e=tt(G$e,[["render",H$e],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/select-dropdown.vue"]]);function j$e(t){const{t:e}=En();return Vn({options:new Map,cachedOptions:new Map,disabledOptions:new Map,createdLabel:null,createdSelected:!1,selected:t.multiple?[]:{},inputLength:20,inputWidth:0,optionsCount:0,filteredOptionsCount:0,visible:!1,selectedLabel:"",hoverIndex:-1,query:"",previousQuery:null,inputHovering:!1,cachedPlaceHolder:"",currentPlaceholder:e("el.select.placeholder"),menuVisibleOnFocus:!1,isOnComposition:!1,prefixWidth:11,mouseEnter:!1,focused:!1})}const K$e=(t,e,n)=>{const{t:r}=En(),a=Ye("select");fu({from:"suffixTransition",replacement:"override style scheme",version:"2.3.0",scope:"props",ref:"https://element-plus.org/en-US/component/select.html#select-attributes"},U(()=>t.suffixTransition===!1));const i=B(null),o=B(null),s=B(null),l=B(null),u=B(null),c=B(null),f=B(null),d=B(null),h=B(-1),p=vr({query:""}),v=vr(""),g=B([]);let y=0;const{form:m,formItem:S}=uo(),w=U(()=>!t.filterable||t.multiple||!e.visible),C=U(()=>t.disabled||(m==null?void 0:m.disabled)),_=U(()=>{const Ue=t.multiple?Array.isArray(t.modelValue)&&t.modelValue.length>0:t.modelValue!==void 0&&t.modelValue!==null&&t.modelValue!=="";return t.clearable&&!C.value&&e.inputHovering&&Ue}),x=U(()=>t.remote&&t.filterable&&!t.remoteShowSuffix?"":t.suffixIcon),T=U(()=>a.is("reverse",x.value&&e.visible&&t.suffixTransition)),M=U(()=>(m==null?void 0:m.statusIcon)&&(S==null?void 0:S.validateState)&&F4[S==null?void 0:S.validateState]),E=U(()=>t.remote?300:0),A=U(()=>t.loading?t.loadingText||r("el.select.loading"):t.remote&&e.query===""&&e.options.size===0?!1:t.filterable&&e.query&&e.options.size>0&&e.filteredOptionsCount===0?t.noMatchText||r("el.select.noMatch"):e.options.size===0?t.noDataText||r("el.select.noData"):null),k=U(()=>{const Ue=Array.from(e.options.values()),ot=[];return g.value.forEach(Ae=>{const rt=Ue.findIndex(Rt=>Rt.currentLabel===Ae);rt>-1&&ot.push(Ue[rt])}),ot.length>=Ue.length?ot:Ue}),L=U(()=>Array.from(e.cachedOptions.values())),I=U(()=>{const Ue=k.value.filter(ot=>!ot.created).some(ot=>ot.currentLabel===e.query);return t.filterable&&t.allowCreate&&e.query!==""&&!Ue}),P=Aa(),F=U(()=>["small"].includes(P.value)?"small":"default"),$=U({get(){return e.visible&&A.value!==!1},set(Ue){e.visible=Ue}});Ke([()=>C.value,()=>P.value,()=>m==null?void 0:m.size],()=>{xt(()=>{W()})}),Ke(()=>t.placeholder,Ue=>{e.cachedPlaceHolder=e.currentPlaceholder=Ue,t.multiple&&Array.isArray(t.modelValue)&&t.modelValue.length>0&&(e.currentPlaceholder="")}),Ke(()=>t.modelValue,(Ue,ot)=>{t.multiple&&(W(),Ue&&Ue.length>0||o.value&&e.query!==""?e.currentPlaceholder="":e.currentPlaceholder=e.cachedPlaceHolder,t.filterable&&!t.reserveKeyword&&(e.query="",V(e.query))),Z(),t.filterable&&!t.multiple&&(e.inputLength=20),!To(Ue,ot)&&t.validateEvent&&(S==null||S.validate("change").catch(Ae=>void 0))},{flush:"post",deep:!0}),Ke(()=>e.visible,Ue=>{var ot,Ae,rt,Rt,pn;Ue?((Ae=(ot=l.value)==null?void 0:ot.updatePopper)==null||Ae.call(ot),t.filterable&&(e.filteredOptionsCount=e.optionsCount,e.query=t.remote?"":e.selectedLabel,(Rt=(rt=s.value)==null?void 0:rt.focus)==null||Rt.call(rt),t.multiple?(pn=o.value)==null||pn.focus():e.selectedLabel&&(e.currentPlaceholder=`${e.selectedLabel}`,e.selectedLabel=""),V(e.query),!t.multiple&&!t.remote&&(p.value.query="",ey(p),ey(v)))):(t.filterable&&(zt(t.filterMethod)&&t.filterMethod(""),zt(t.remoteMethod)&&t.remoteMethod("")),e.query="",e.previousQuery=null,e.selectedLabel="",e.inputLength=20,e.menuVisibleOnFocus=!1,ge(),xt(()=>{o.value&&o.value.value===""&&e.selected.length===0&&(e.currentPlaceholder=e.cachedPlaceHolder)}),t.multiple||(e.selected&&(t.filterable&&t.allowCreate&&e.createdSelected&&e.createdLabel?e.selectedLabel=e.createdLabel:e.selectedLabel=e.selected.currentLabel,t.filterable&&(e.query=e.selectedLabel)),t.filterable&&(e.currentPlaceholder=e.cachedPlaceHolder))),n.emit("visible-change",Ue)}),Ke(()=>e.options.entries(),()=>{var Ue,ot,Ae;if(!_n)return;(ot=(Ue=l.value)==null?void 0:Ue.updatePopper)==null||ot.call(Ue),t.multiple&&W();const rt=((Ae=f.value)==null?void 0:Ae.querySelectorAll("input"))||[];(!t.filterable&&!t.defaultFirstOption&&!Na(t.modelValue)||!Array.from(rt).includes(document.activeElement))&&Z(),t.defaultFirstOption&&(t.filterable||t.remote)&&e.filteredOptionsCount&&K()},{flush:"post"}),Ke(()=>e.hoverIndex,Ue=>{Pt(Ue)&&Ue>-1?h.value=k.value[Ue]||{}:h.value={},k.value.forEach(ot=>{ot.hover=h.value===ot})});const W=()=>{xt(()=>{var Ue,ot;if(!i.value)return;const Ae=i.value.$el.querySelector("input");y=y||(Ae.clientHeight>0?Ae.clientHeight+2:0);const rt=c.value,Rt=YTe(P.value||(m==null?void 0:m.size)),pn=P.value||Rt===y||y<=0?Rt:y;!(Ae.offsetParent===null)&&(Ae.style.height=`${(e.selected.length===0?pn:Math.max(rt?rt.clientHeight+(rt.clientHeight>pn?6:0):0,pn))-2}px`),e.visible&&A.value!==!1&&((ot=(Ue=l.value)==null?void 0:Ue.updatePopper)==null||ot.call(Ue))})},V=async Ue=>{if(!(e.previousQuery===Ue||e.isOnComposition)){if(e.previousQuery===null&&(zt(t.filterMethod)||zt(t.remoteMethod))){e.previousQuery=Ue;return}e.previousQuery=Ue,xt(()=>{var ot,Ae;e.visible&&((Ae=(ot=l.value)==null?void 0:ot.updatePopper)==null||Ae.call(ot))}),e.hoverIndex=-1,t.multiple&&t.filterable&&xt(()=>{if(!C.value){const ot=o.value.value.length*15+20;e.inputLength=t.collapseTags?Math.min(50,ot):ot,z()}W()}),t.remote&&zt(t.remoteMethod)?(e.hoverIndex=-1,t.remoteMethod(Ue)):zt(t.filterMethod)?(t.filterMethod(Ue),ey(v)):(e.filteredOptionsCount=e.optionsCount,p.value.query=Ue,ey(p),ey(v)),t.defaultFirstOption&&(t.filterable||t.remote)&&e.filteredOptionsCount&&(await xt(),K())}},z=()=>{e.currentPlaceholder!==""&&(e.currentPlaceholder=o.value.value?"":e.cachedPlaceHolder)},K=()=>{const Ue=k.value.filter(rt=>rt.visible&&!rt.disabled&&!rt.states.groupDisabled),ot=Ue.find(rt=>rt.created),Ae=Ue[0];e.hoverIndex=Ne(k.value,ot||Ae)},Z=()=>{var Ue;if(t.multiple)e.selectedLabel="";else{const Ae=oe(t.modelValue);(Ue=Ae.props)!=null&&Ue.created?(e.createdLabel=Ae.props.value,e.createdSelected=!0):e.createdSelected=!1,e.selectedLabel=Ae.currentLabel,e.selected=Ae,t.filterable&&(e.query=e.selectedLabel);return}const ot=[];Array.isArray(t.modelValue)&&t.modelValue.forEach(Ae=>{ot.push(oe(Ae))}),e.selected=ot,xt(()=>{W()})},oe=Ue=>{let ot;const Ae=Vx(Ue).toLowerCase()==="object",rt=Vx(Ue).toLowerCase()==="null",Rt=Vx(Ue).toLowerCase()==="undefined";for(let Ir=e.cachedOptions.size-1;Ir>=0;Ir--){const Br=L.value[Ir];if(Ae?Fr(Br.value,t.valueKey)===Fr(Ue,t.valueKey):Br.value===Ue){ot={value:Ue,currentLabel:Br.currentLabel,isDisabled:Br.isDisabled};break}}if(ot)return ot;const pn=Ae?Ue.label:!rt&&!Rt?Ue:"",Nr={value:Ue,currentLabel:pn};return t.multiple&&(Nr.hitState=!1),Nr},ge=()=>{setTimeout(()=>{const Ue=t.valueKey;t.multiple?e.selected.length>0?e.hoverIndex=Math.min.apply(null,e.selected.map(ot=>k.value.findIndex(Ae=>Fr(Ae,Ue)===Fr(ot,Ue)))):e.hoverIndex=-1:e.hoverIndex=k.value.findIndex(ot=>Pe(ot)===Pe(e.selected))},300)},ie=()=>{var Ue,ot;Q(),(ot=(Ue=l.value)==null?void 0:Ue.updatePopper)==null||ot.call(Ue),t.multiple&&W()},Q=()=>{var Ue;e.inputWidth=(Ue=i.value)==null?void 0:Ue.$el.offsetWidth},ce=()=>{t.filterable&&e.query!==e.selectedLabel&&(e.query=e.selectedLabel,V(e.query))},se=ao(()=>{ce()},E.value),me=ao(Ue=>{V(Ue.target.value)},E.value),ve=Ue=>{To(t.modelValue,Ue)||n.emit(Ar,Ue)},he=Ue=>exe(Ue,ot=>!e.disabledOptions.has(ot)),ee=Ue=>{if(Ue.code!==Dt.delete){if(Ue.target.value.length<=0&&!Ce()){const ot=t.modelValue.slice(),Ae=he(ot);if(Ae<0)return;ot.splice(Ae,1),n.emit(nn,ot),ve(ot)}Ue.target.value.length===1&&t.modelValue.length===0&&(e.currentPlaceholder=e.cachedPlaceHolder)}},ue=(Ue,ot)=>{const Ae=e.selected.indexOf(ot);if(Ae>-1&&!C.value){const rt=t.modelValue.slice();rt.splice(Ae,1),n.emit(nn,rt),ve(rt),n.emit("remove-tag",ot.value)}Ue.stopPropagation(),Xe()},fe=Ue=>{Ue.stopPropagation();const ot=t.multiple?[]:"";if(!Ht(ot))for(const Ae of e.selected)Ae.isDisabled&&ot.push(Ae.value);n.emit(nn,ot),ve(ot),e.hoverIndex=-1,e.visible=!1,n.emit("clear"),Xe()},Re=Ue=>{var ot;if(t.multiple){const Ae=(t.modelValue||[]).slice(),rt=Ne(Ae,Ue.value);rt>-1?Ae.splice(rt,1):(t.multipleLimit<=0||Ae.length<t.multipleLimit)&&Ae.push(Ue.value),n.emit(nn,Ae),ve(Ae),Ue.created&&(e.query="",V(""),e.inputLength=20),t.filterable&&((ot=o.value)==null||ot.focus())}else n.emit(nn,Ue.value),ve(Ue.value),e.visible=!1;De(),!e.visible&&xt(()=>{we(Ue)})},Ne=(Ue=[],ot)=>{if(!un(ot))return Ue.indexOf(ot);const Ae=t.valueKey;let rt=-1;return Ue.some((Rt,pn)=>Wn(Fr(Rt,Ae))===Fr(ot,Ae)?(rt=pn,!0):!1),rt},De=()=>{const Ue=o.value||i.value;Ue&&(Ue==null||Ue.focus())},we=Ue=>{var ot,Ae,rt,Rt,pn;const Nr=Array.isArray(Ue)?Ue[0]:Ue;let Ir=null;if(Nr!=null&&Nr.value){const Br=k.value.filter(lr=>lr.value===Nr.value);Br.length>0&&(Ir=Br[0].$el)}if(l.value&&Ir){const Br=(Rt=(rt=(Ae=(ot=l.value)==null?void 0:ot.popperRef)==null?void 0:Ae.contentRef)==null?void 0:rt.querySelector)==null?void 0:Rt.call(rt,`.${a.be("dropdown","wrap")}`);Br&&aX(Br,Ir)}(pn=d.value)==null||pn.handleScroll()},ae=Ue=>{e.optionsCount++,e.filteredOptionsCount++,e.options.set(Ue.value,Ue),e.cachedOptions.set(Ue.value,Ue),Ue.disabled&&e.disabledOptions.set(Ue.value,Ue)},Ie=(Ue,ot)=>{e.options.get(Ue)===ot&&(e.optionsCount--,e.filteredOptionsCount--,e.options.delete(Ue))},He=Ue=>{Ue.code!==Dt.backspace&&Ce(!1),e.inputLength=o.value.value.length*15+20,W()},Ce=Ue=>{if(!Array.isArray(e.selected))return;const ot=he(e.selected.map(rt=>rt.value)),Ae=e.selected[ot];if(Ae)return Ue===!0||Ue===!1?(Ae.hitState=Ue,Ue):(Ae.hitState=!Ae.hitState,Ae.hitState)},qe=Ue=>{const ot=Ue.target.value;if(Ue.type==="compositionend")e.isOnComposition=!1,xt(()=>V(ot));else{const Ae=ot[ot.length-1]||"";e.isOnComposition=!wT(Ae)}},Ze=()=>{xt(()=>we(e.selected))},de=Ue=>{e.focused||((t.automaticDropdown||t.filterable)&&(t.filterable&&!e.visible&&(e.menuVisibleOnFocus=!0),e.visible=!0),e.focused=!0,n.emit("focus",Ue))},Xe=()=>{var Ue,ot;e.visible?(Ue=o.value||i.value)==null||Ue.focus():(ot=i.value)==null||ot.focus()},mt=()=>{var Ue,ot,Ae;e.visible=!1,(Ue=i.value)==null||Ue.blur(),(Ae=(ot=s.value)==null?void 0:ot.blur)==null||Ae.call(ot)},kt=Ue=>{var ot,Ae,rt;(ot=l.value)!=null&&ot.isFocusInsideContent(Ue)||(Ae=u.value)!=null&&Ae.isFocusInsideContent(Ue)||(rt=f.value)!=null&&rt.contains(Ue.relatedTarget)||(e.visible&&dt(),e.focused=!1,n.emit("blur",Ue))},Vt=Ue=>{fe(Ue)},dt=()=>{e.visible=!1},Oe=Ue=>{e.visible&&(Ue.preventDefault(),Ue.stopPropagation(),e.visible=!1)},be=Ue=>{Ue&&!e.mouseEnter||C.value||(e.menuVisibleOnFocus?e.menuVisibleOnFocus=!1:(!l.value||!l.value.isFocusInsideContent())&&(e.visible=!e.visible),Xe())},xe=()=>{e.visible?k.value[e.hoverIndex]&&Re(k.value[e.hoverIndex]):be()},Pe=Ue=>un(Ue.value)?Fr(Ue.value,t.valueKey):Ue.value,pe=U(()=>k.value.filter(Ue=>Ue.visible).every(Ue=>Ue.disabled)),it=U(()=>t.multiple?e.selected.slice(0,t.maxCollapseTags):[]),Tt=U(()=>t.multiple?e.selected.slice(t.maxCollapseTags):[]),Wt=Ue=>{if(!e.visible){e.visible=!0;return}if(!(e.options.size===0||e.filteredOptionsCount===0)&&!e.isOnComposition&&!pe.value){Ue==="next"?(e.hoverIndex++,e.hoverIndex===e.options.size&&(e.hoverIndex=0)):Ue==="prev"&&(e.hoverIndex--,e.hoverIndex<0&&(e.hoverIndex=e.options.size-1));const ot=k.value[e.hoverIndex];(ot.disabled===!0||ot.states.groupDisabled===!0||!ot.visible)&&Wt(Ue),xt(()=>we(h.value))}},Kn=()=>{e.mouseEnter=!0},Nn=()=>{e.mouseEnter=!1},fr=(Ue,ot)=>{var Ae,rt;ue(Ue,ot),(rt=(Ae=u.value)==null?void 0:Ae.updatePopper)==null||rt.call(Ae)},wr=U(()=>({maxWidth:`${b(e.inputWidth)-32-(M.value?22:0)}px`,width:"100%"}));return{optionList:g,optionsArray:k,selectSize:P,handleResize:ie,debouncedOnInputChange:se,debouncedQueryChange:me,deletePrevTag:ee,deleteTag:ue,deleteSelected:fe,handleOptionSelect:Re,scrollToOption:we,readonly:w,resetInputHeight:W,showClose:_,iconComponent:x,iconReverse:T,showNewOption:I,collapseTagSize:F,setSelected:Z,managePlaceholder:z,selectDisabled:C,emptyText:A,toggleLastOptionHitState:Ce,resetInputState:He,handleComposition:qe,onOptionCreate:ae,onOptionDestroy:Ie,handleMenuEnter:Ze,handleFocus:de,focus:Xe,blur:mt,handleBlur:kt,handleClearClick:Vt,handleClose:dt,handleKeydownEscape:Oe,toggleMenu:be,selectOption:xe,getValueKey:Pe,navigateOptions:Wt,handleDeleteTooltipTag:fr,dropMenuVisible:$,queryChange:p,groupQueryChange:v,showTagList:it,collapseTagList:Tt,selectTagsStyle:wr,reference:i,input:o,iOSInput:s,tooltipRef:l,tagTooltipRef:u,tags:c,selectWrapper:f,scrollbar:d,handleMouseEnter:Kn,handleMouseLeave:Nn}};var Y$e=ye({name:"ElOptions",emits:["update-options"],setup(t,{slots:e,emit:n}){let r=[];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=e.default)==null?void 0:i.call(e),l=[];function u(c){Array.isArray(c)&&c.forEach(f=>{var d,h,p,v;const g=(d=(f==null?void 0:f.type)||{})==null?void 0:d.name;g==="ElOptionGroup"?u(!Ht(f.children)&&!Array.isArray(f.children)&&zt((h=f.children)==null?void 0:h.default)?(p=f.children)==null?void 0:p.default():f.children):g==="ElOption"?l.push((v=f.props)==null?void 0:v.label):Array.isArray(f.children)&&u(f.children)})}return s.length&&u((o=s[0])==null?void 0:o.children),a(l,r)||(r=l,n("update-options",l)),s}}});const J5="ElSelect",X$e=ye({name:J5,componentName:J5,components:{ElInput:Ri,ElSelectMenu:W$e,ElOption:wV,ElOptions:Y$e,ElTag:T1,ElScrollbar:xc,ElTooltip:io,ElIcon:_t},directives:{ClickOutside:Wf},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:ST},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:Qa.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:gr,default:ad},fitInputWidth:Boolean,suffixIcon:{type:gr,default:rd},tagType:{...dV.type,default:"info"},validateEvent:{type:Boolean,default:!0},remoteShowSuffix:Boolean,suffixTransition:{type:Boolean,default:!0},placement:{type:String,values:Lp,default:"bottom-start"},ariaLabel:{type:String,default:void 0}},emits:[nn,Ar,"remove-tag","clear","visible-change","focus","blur"],setup(t,e){const n=Ye("select"),r=Ye("input"),{t:a}=En(),i=j$e(t),{optionList:o,optionsArray:s,selectSize:l,readonly:u,handleResize:c,collapseTagSize:f,debouncedOnInputChange:d,debouncedQueryChange:h,deletePrevTag:p,deleteTag:v,deleteSelected:g,handleOptionSelect:y,scrollToOption:m,setSelected:S,resetInputHeight:w,managePlaceholder:C,showClose:_,selectDisabled:x,iconComponent:T,iconReverse:M,showNewOption:E,emptyText:A,toggleLastOptionHitState:k,resetInputState:L,handleComposition:I,onOptionCreate:P,onOptionDestroy:F,handleMenuEnter:$,handleFocus:W,focus:V,blur:z,handleBlur:K,handleClearClick:Z,handleClose:oe,handleKeydownEscape:ge,toggleMenu:ie,selectOption:Q,getValueKey:ce,navigateOptions:se,handleDeleteTooltipTag:me,dropMenuVisible:ve,reference:he,input:ee,iOSInput:ue,tooltipRef:fe,tagTooltipRef:Re,tags:Ne,selectWrapper:De,scrollbar:we,queryChange:ae,groupQueryChange:Ie,handleMouseEnter:He,handleMouseLeave:Ce,showTagList:qe,collapseTagList:Ze,selectTagsStyle:de}=K$e(t,i,e),{inputWidth:Xe,selected:mt,inputLength:kt,filteredOptionsCount:Vt,visible:dt,selectedLabel:Oe,hoverIndex:be,query:xe,inputHovering:Pe,currentPlaceholder:pe,menuVisibleOnFocus:it,isOnComposition:Tt,options:Wt,cachedOptions:Kn,optionsCount:Nn,prefixWidth:fr}=Wa(i),wr=U(()=>{const lr=[n.b()],wa=b(l);return wa&&lr.push(n.m(wa)),t.disabled&&lr.push(n.m("disabled")),lr}),Ue=U(()=>[n.e("tags"),n.is("disabled",b(x))]),ot=U(()=>[n.b("tags-wrapper"),{"has-prefix":b(fr)&&b(mt).length}]),Ae=U(()=>[n.e("input"),n.is(b(l)),n.is("disabled",b(x))]),rt=U(()=>[n.e("input"),n.is(b(l)),n.em("input","iOS")]),Rt=U(()=>[n.is("empty",!t.allowCreate&&!!b(xe)&&b(Vt)===0)]),pn=U(()=>({maxWidth:`${b(Xe)>123?b(Xe)-123:b(Xe)-75}px`})),Nr=U(()=>({marginLeft:`${b(fr)}px`,flexGrow:1,width:`${b(kt)/(b(Xe)-32)}%`,maxWidth:`${b(Xe)-42}px`}));fn(Ib,Vn({props:t,options:Wt,optionsArray:s,cachedOptions:Kn,optionsCount:Nn,filteredOptionsCount:Vt,hoverIndex:be,handleOptionSelect:y,onOptionCreate:P,onOptionDestroy:F,selectWrapper:De,selected:mt,setSelected:S,queryChange:ae,groupQueryChange:Ie})),Ut(()=>{i.cachedPlaceHolder=pe.value=t.placeholder||(()=>a("el.select.placeholder")),t.multiple&&Array.isArray(t.modelValue)&&t.modelValue.length>0&&(pe.value=""),Vi(De,c),t.remote&&t.multiple&&w(),xt(()=>{const lr=he.value&&he.value.$el;if(lr&&(Xe.value=lr.getBoundingClientRect().width,e.slots.prefix)){const wa=lr.querySelector(`.${r.e("prefix")}`);fr.value=Math.max(wa.getBoundingClientRect().width+11,30)}}),S()}),t.multiple&&!Array.isArray(t.modelValue)&&e.emit(nn,[]),!t.multiple&&Array.isArray(t.modelValue)&&e.emit(nn,"");const Ir=U(()=>{var lr,wa;return(wa=(lr=fe.value)==null?void 0:lr.popperRef)==null?void 0:wa.contentRef});return{isIOS:pY,onOptionsRendered:lr=>{o.value=lr},prefixWidth:fr,selectSize:l,readonly:u,handleResize:c,collapseTagSize:f,debouncedOnInputChange:d,debouncedQueryChange:h,deletePrevTag:p,deleteTag:v,handleDeleteTooltipTag:me,deleteSelected:g,handleOptionSelect:y,scrollToOption:m,inputWidth:Xe,selected:mt,inputLength:kt,filteredOptionsCount:Vt,visible:dt,selectedLabel:Oe,hoverIndex:be,query:xe,inputHovering:Pe,currentPlaceholder:pe,menuVisibleOnFocus:it,isOnComposition:Tt,options:Wt,resetInputHeight:w,managePlaceholder:C,showClose:_,selectDisabled:x,iconComponent:T,iconReverse:M,showNewOption:E,emptyText:A,toggleLastOptionHitState:k,resetInputState:L,handleComposition:I,handleMenuEnter:$,handleFocus:W,focus:V,blur:z,handleBlur:K,handleClearClick:Z,handleClose:oe,handleKeydownEscape:ge,toggleMenu:ie,selectOption:Q,getValueKey:ce,navigateOptions:se,dropMenuVisible:ve,reference:he,input:ee,iOSInput:ue,tooltipRef:fe,popperPaneRef:Ir,tags:Ne,selectWrapper:De,scrollbar:we,wrapperKls:wr,tagsKls:Ue,tagWrapperKls:ot,inputKls:Ae,iOSInputKls:rt,scrollbarKls:Rt,selectTagsStyle:de,nsSelect:n,tagTextStyle:pn,inputStyle:Nr,handleMouseEnter:He,handleMouseLeave:Ce,showTagList:qe,collapseTagList:Ze,tagTooltipRef:Re}}}),q$e=["disabled","autocomplete","aria-label"],Z$e=["disabled"],Q$e={style:{height:"100%",display:"flex","justify-content":"center","align-items":"center"}};function J$e(t,e,n,r,a,i){const o=$e("el-tag"),s=$e("el-tooltip"),l=$e("el-icon"),u=$e("el-input"),c=$e("el-option"),f=$e("el-options"),d=$e("el-scrollbar"),h=$e("el-select-menu"),p=i1("click-outside");return Ft((G(),re("div",{ref:"selectWrapper",class:Y(t.wrapperKls),onMouseenter:e[22]||(e[22]=(...v)=>t.handleMouseEnter&&t.handleMouseEnter(...v)),onMouseleave:e[23]||(e[23]=(...v)=>t.handleMouseLeave&&t.handleMouseLeave(...v)),onClick:e[24]||(e[24]=It((...v)=>t.toggleMenu&&t.toggleMenu(...v),["stop"]))},[N(s,{ref:"tooltipRef",visible:t.dropMenuVisible,placement:t.placement,teleported:t.teleported,"popper-class":[t.nsSelect.e("popper"),t.popperClass],"popper-options":t.popperOptions,"fallback-placements":["bottom-start","top-start","right","left"],effect:t.effect,pure:"",trigger:"click",transition:`${t.nsSelect.namespace.value}-zoom-in-top`,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,persistent:t.persistent,onShow:t.handleMenuEnter},{default:j(()=>[R("div",{class:"select-trigger",onMouseenter:e[20]||(e[20]=v=>t.inputHovering=!0),onMouseleave:e[21]||(e[21]=v=>t.inputHovering=!1)},[t.multiple?(G(),re("div",{key:0,ref:"tags",tabindex:"-1",class:Y(t.tagsKls),style:Et(t.selectTagsStyle),onClick:e[15]||(e[15]=(...v)=>t.focus&&t.focus(...v))},[t.collapseTags&&t.selected.length?(G(),Ee(da,{key:0,onAfterLeave:t.resetInputHeight},{default:j(()=>[R("span",{class:Y(t.tagWrapperKls)},[(G(!0),re(Ct,null,dn(t.showTagList,v=>(G(),Ee(o,{key:t.getValueKey(v),closable:!t.selectDisabled&&!v.isDisabled,size:t.collapseTagSize,hit:v.hitState,type:t.tagType,"disable-transitions":"",onClose:g=>t.deleteTag(g,v)},{default:j(()=>[R("span",{class:Y(t.nsSelect.e("tags-text")),style:Et(t.tagTextStyle)},We(v.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"]))),128)),t.selected.length>t.maxCollapseTags?(G(),Ee(o,{key:0,closable:!1,size:t.collapseTagSize,type:t.tagType,"disable-transitions":""},{default:j(()=>[t.collapseTagsTooltip?(G(),Ee(s,{key:0,ref:"tagTooltipRef",disabled:t.dropMenuVisible,"fallback-placements":["bottom","top","right","left"],effect:t.effect,placement:"bottom",teleported:t.teleported},{default:j(()=>[R("span",{class:Y(t.nsSelect.e("tags-text"))},"+ "+We(t.selected.length-t.maxCollapseTags),3)]),content:j(()=>[R("div",{class:Y(t.nsSelect.e("collapse-tags"))},[(G(!0),re(Ct,null,dn(t.collapseTagList,v=>(G(),re("div",{key:t.getValueKey(v),class:Y(t.nsSelect.e("collapse-tag"))},[N(o,{class:"in-tooltip",closable:!t.selectDisabled&&!v.isDisabled,size:t.collapseTagSize,hit:v.hitState,type:t.tagType,"disable-transitions":"",style:{margin:"2px"},onClose:g=>t.handleDeleteTooltipTag(g,v)},{default:j(()=>[R("span",{class:Y(t.nsSelect.e("tags-text")),style:Et({maxWidth:t.inputWidth-75+"px"})},We(v.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"])],2))),128))],2)]),_:1},8,["disabled","effect","teleported"])):(G(),re("span",{key:1,class:Y(t.nsSelect.e("tags-text"))},"+ "+We(t.selected.length-t.maxCollapseTags),3))]),_:1},8,["size","type"])):_e("v-if",!0)],2)]),_:1},8,["onAfterLeave"])):_e("v-if",!0),t.collapseTags?_e("v-if",!0):(G(),Ee(da,{key:1,onAfterLeave:t.resetInputHeight},{default:j(()=>[R("span",{class:Y(t.tagWrapperKls),style:Et(t.prefixWidth&&t.selected.length?{marginLeft:`${t.prefixWidth}px`}:"")},[(G(!0),re(Ct,null,dn(t.selected,v=>(G(),Ee(o,{key:t.getValueKey(v),closable:!t.selectDisabled&&!v.isDisabled,size:t.collapseTagSize,hit:v.hitState,type:t.tagType,"disable-transitions":"",onClose:g=>t.deleteTag(g,v)},{default:j(()=>[R("span",{class:Y(t.nsSelect.e("tags-text")),style:Et({maxWidth:t.inputWidth-75+"px"})},We(v.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"]))),128))],6)]),_:1},8,["onAfterLeave"])),t.filterable&&!t.selectDisabled?Ft((G(),re("input",{key:2,ref:"input","onUpdate:modelValue":e[0]||(e[0]=v=>t.query=v),type:"text",class:Y(t.inputKls),disabled:t.selectDisabled,autocomplete:t.autocomplete,style:Et(t.inputStyle),"aria-label":t.ariaLabel,onFocus:e[1]||(e[1]=(...v)=>t.handleFocus&&t.handleFocus(...v)),onBlur:e[2]||(e[2]=(...v)=>t.handleBlur&&t.handleBlur(...v)),onKeyup:e[3]||(e[3]=(...v)=>t.managePlaceholder&&t.managePlaceholder(...v)),onKeydown:[e[4]||(e[4]=(...v)=>t.resetInputState&&t.resetInputState(...v)),e[5]||(e[5]=Tn(It(v=>t.navigateOptions("next"),["prevent"]),["down"])),e[6]||(e[6]=Tn(It(v=>t.navigateOptions("prev"),["prevent"]),["up"])),e[7]||(e[7]=Tn((...v)=>t.handleKeydownEscape&&t.handleKeydownEscape(...v),["esc"])),e[8]||(e[8]=Tn(It((...v)=>t.selectOption&&t.selectOption(...v),["stop","prevent"]),["enter"])),e[9]||(e[9]=Tn((...v)=>t.deletePrevTag&&t.deletePrevTag(...v),["delete"])),e[10]||(e[10]=Tn(v=>t.visible=!1,["tab"]))],onCompositionstart:e[11]||(e[11]=(...v)=>t.handleComposition&&t.handleComposition(...v)),onCompositionupdate:e[12]||(e[12]=(...v)=>t.handleComposition&&t.handleComposition(...v)),onCompositionend:e[13]||(e[13]=(...v)=>t.handleComposition&&t.handleComposition(...v)),onInput:e[14]||(e[14]=(...v)=>t.debouncedQueryChange&&t.debouncedQueryChange(...v))},null,46,q$e)),[[u4,t.query]]):_e("v-if",!0)],6)):_e("v-if",!0),_e(" fix: https://github.com/element-plus/element-plus/issues/11415 "),t.isIOS&&!t.multiple&&t.filterable&&t.readonly?(G(),re("input",{key:1,ref:"iOSInput",class:Y(t.iOSInputKls),disabled:t.selectDisabled,type:"text"},null,10,Z$e)):_e("v-if",!0),N(u,{id:t.id,ref:"reference",modelValue:t.selectedLabel,"onUpdate:modelValue":e[16]||(e[16]=v=>t.selectedLabel=v),type:"text",placeholder:typeof t.currentPlaceholder=="function"?t.currentPlaceholder():t.currentPlaceholder,name:t.name,autocomplete:t.autocomplete,size:t.selectSize,disabled:t.selectDisabled,readonly:t.readonly,"validate-event":!1,class:Y([t.nsSelect.is("focus",t.visible)]),tabindex:t.multiple&&t.filterable?-1:void 0,label:t.ariaLabel,onFocus:t.handleFocus,onBlur:t.handleBlur,onInput:t.debouncedOnInputChange,onPaste:t.debouncedOnInputChange,onCompositionstart:t.handleComposition,onCompositionupdate:t.handleComposition,onCompositionend:t.handleComposition,onKeydown:[e[17]||(e[17]=Tn(It(v=>t.navigateOptions("next"),["stop","prevent"]),["down"])),e[18]||(e[18]=Tn(It(v=>t.navigateOptions("prev"),["stop","prevent"]),["up"])),Tn(It(t.selectOption,["stop","prevent"]),["enter"]),Tn(t.handleKeydownEscape,["esc"]),e[19]||(e[19]=Tn(v=>t.visible=!1,["tab"]))]},ic({suffix:j(()=>[t.iconComponent&&!t.showClose?(G(),Ee(l,{key:0,class:Y([t.nsSelect.e("caret"),t.nsSelect.e("icon"),t.iconReverse])},{default:j(()=>[(G(),Ee(on(t.iconComponent)))]),_:1},8,["class"])):_e("v-if",!0),t.showClose&&t.clearIcon?(G(),Ee(l,{key:1,class:Y([t.nsSelect.e("caret"),t.nsSelect.e("icon")]),onClick:t.handleClearClick},{default:j(()=>[(G(),Ee(on(t.clearIcon)))]),_:1},8,["class","onClick"])):_e("v-if",!0)]),_:2},[t.$slots.prefix?{name:"prefix",fn:j(()=>[R("div",Q$e,[Ge(t.$slots,"prefix")])])}:void 0]),1032,["id","modelValue","placeholder","name","autocomplete","size","disabled","readonly","class","tabindex","label","onFocus","onBlur","onInput","onPaste","onCompositionstart","onCompositionupdate","onCompositionend","onKeydown"])],32)]),content:j(()=>[N(h,null,{default:j(()=>[Ft(N(d,{ref:"scrollbar",tag:"ul","wrap-class":t.nsSelect.be("dropdown","wrap"),"view-class":t.nsSelect.be("dropdown","list"),class:Y(t.scrollbarKls)},{default:j(()=>[t.showNewOption?(G(),Ee(c,{key:0,value:t.query,created:!0},null,8,["value"])):_e("v-if",!0),N(f,{onUpdateOptions:t.onOptionsRendered},{default:j(()=>[Ge(t.$slots,"default")]),_:3},8,["onUpdateOptions"])]),_:3},8,["wrap-class","view-class","class"]),[[cn,t.options.size>0&&!t.loading]]),t.emptyText&&(!t.allowCreate||t.loading||t.allowCreate&&t.options.size===0)?(G(),re(Ct,{key:0},[t.$slots.empty?Ge(t.$slots,"empty",{key:0}):(G(),re("p",{key:1,class:Y(t.nsSelect.be("dropdown","empty"))},We(t.emptyText),3))],64)):_e("v-if",!0)]),_:3})]),_:3},8,["visible","placement","teleported","popper-class","popper-options","effect","transition","persistent","onShow"])],34)),[[p,t.handleClose,t.popperPaneRef]])}var ePe=tt(X$e,[["render",J$e],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/select.vue"]]);const tPe=ye({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:Boolean},setup(t){const e=Ye("select"),n=B(!0),r=Qt(),a=B([]);fn(KZ,Vn({...Wa(t)}));const i=yt(Ib);Ut(()=>{a.value=o(r.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}=Wn(i);return Ke(s,()=>{n.value=a.value.some(l=>l.visible===!0)},{flush:"post"}),{visible:n,ns:e}}});function nPe(t,e,n,r,a,i){return Ft((G(),re("ul",{class:Y(t.ns.be("group","wrap"))},[R("li",{class:Y(t.ns.be("group","title"))},We(t.label),3),R("li",null,[R("ul",{class:Y(t.ns.b("group"))},[Ge(t.$slots,"default")],2)])],2)),[[cn,t.visible]])}var YZ=tt(tPe,[["render",nPe],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/option-group.vue"]]);const jf=tn(ePe,{Option:wV,OptionGroup:YZ}),d2=ta(wV),rPe=ta(YZ),xV=()=>yt(jZ,{}),aPe=nt({pageSize:{type:Number,required:!0},pageSizes:{type:ke(Array),default:()=>zr([10,20,30,40,50,100])},popperClass:{type:String},disabled:Boolean,teleported:Boolean,size:{type:String,values:wu}}),iPe=ye({name:"ElPaginationSizes"}),oPe=ye({...iPe,props:aPe,emits:["page-size-change"],setup(t,{emit:e}){const n=t,{t:r}=En(),a=Ye("pagination"),i=xV(),o=B(n.pageSize);Ke(()=>n.pageSizes,(u,c)=>{if(!To(u,c)&&Array.isArray(u)){const f=u.includes(n.pageSize)?n.pageSize:n.pageSizes[0];e("page-size-change",f)}}),Ke(()=>n.pageSize,u=>{o.value=u});const s=U(()=>n.pageSizes);function l(u){var c;u!==o.value&&(o.value=u,(c=i.handleSizeChange)==null||c.call(i,Number(u)))}return(u,c)=>(G(),re("span",{class:Y(b(a).e("sizes"))},[N(b(jf),{"model-value":o.value,disabled:u.disabled,"popper-class":u.popperClass,size:u.size,teleported:u.teleported,"validate-event":!1,onChange:l},{default:j(()=>[(G(!0),re(Ct,null,dn(b(s),f=>(G(),Ee(b(d2),{key:f,value:f,label:f+b(r)("el.pagination.pagesize")},null,8,["value","label"]))),128))]),_:1},8,["model-value","disabled","popper-class","size","teleported"])],2))}});var sPe=tt(oPe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/sizes.vue"]]);const lPe=nt({size:{type:String,values:wu}}),uPe=["disabled"],cPe=ye({name:"ElPaginationJumper"}),fPe=ye({...cPe,props:lPe,setup(t){const{t:e}=En(),n=Ye("pagination"),{pageCount:r,disabled:a,currentPage:i,changeEvent:o}=xV(),s=B(),l=U(()=>{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)=>(G(),re("span",{class:Y(b(n).e("jump")),disabled:b(a)},[R("span",{class:Y([b(n).e("goto")])},We(b(e)("el.pagination.goto")),3),N(b(Ri),{size:f.size,class:Y([b(n).e("editor"),b(n).is("in-pagination")]),min:1,max:b(r),disabled:b(a),"model-value":b(l),"validate-event":!1,label:b(e)("el.pagination.page"),type:"number","onUpdate:modelValue":u,onChange:c},null,8,["size","class","max","disabled","model-value","label"]),R("span",{class:Y([b(n).e("classifier")])},We(b(e)("el.pagination.pageClassifier")),3)],10,uPe))}});var dPe=tt(fPe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/jumper.vue"]]);const hPe=nt({total:{type:Number,default:1e3}}),pPe=["disabled"],vPe=ye({name:"ElPaginationTotal"}),gPe=ye({...vPe,props:hPe,setup(t){const{t:e}=En(),n=Ye("pagination"),{disabled:r}=xV();return(a,i)=>(G(),re("span",{class:Y(b(n).e("total")),disabled:b(r)},We(b(e)("el.pagination.total",{total:a.total})),11,pPe))}});var yPe=tt(gPe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/total.vue"]]);const mPe=nt({currentPage:{type:Number,default:1},pageCount:{type:Number,required:!0},pagerCount:{type:Number,default:7},disabled:Boolean}),bPe=["onKeyup"],SPe=["aria-current","aria-label","tabindex"],wPe=["tabindex","aria-label"],xPe=["aria-current","aria-label","tabindex"],_Pe=["tabindex","aria-label"],CPe=["aria-current","aria-label","tabindex"],TPe=ye({name:"ElPaginationPager"}),EPe=ye({...TPe,props:mPe,emits:["change"],setup(t,{emit:e}){const n=t,r=Ye("pager"),a=Ye("icon"),{t:i}=En(),o=B(!1),s=B(!1),l=B(!1),u=B(!1),c=B(!1),f=B(!1),d=U(()=>{const w=n.pagerCount,C=(w-1)/2,_=Number(n.currentPage),x=Number(n.pageCount);let T=!1,M=!1;x>w&&(_>w-C&&(T=!0),_<x-C&&(M=!0));const E=[];if(T&&!M){const A=x-(w-2);for(let k=A;k<x;k++)E.push(k)}else if(!T&&M)for(let A=2;A<w;A++)E.push(A);else if(T&&M){const A=Math.floor(w/2)-1;for(let k=_-A;k<=_+A;k++)E.push(k)}else for(let A=2;A<x;A++)E.push(A);return E}),h=U(()=>["more","btn-quickprev",a.b(),r.is("disabled",n.disabled)]),p=U(()=>["more","btn-quicknext",a.b(),r.is("disabled",n.disabled)]),v=U(()=>n.disabled?-1:0);Uo(()=>{const w=(n.pagerCount-1)/2;o.value=!1,s.value=!1,n.pageCount>n.pagerCount&&(n.currentPage>n.pagerCount-w&&(o.value=!0),n.currentPage<n.pageCount-w&&(s.value=!0))});function g(w=!1){n.disabled||(w?l.value=!0:u.value=!0)}function y(w=!1){w?c.value=!0:f.value=!0}function m(w){const C=w.target;if(C.tagName.toLowerCase()==="li"&&Array.from(C.classList).includes("number")){const _=Number(C.textContent);_!==n.currentPage&&e("change",_)}else C.tagName.toLowerCase()==="li"&&Array.from(C.classList).includes("more")&&S(w)}function S(w){const C=w.target;if(C.tagName.toLowerCase()==="ul"||n.disabled)return;let _=Number(C.textContent);const x=n.pageCount,T=n.currentPage,M=n.pagerCount-2;C.className.includes("more")&&(C.className.includes("quickprev")?_=T-M:C.className.includes("quicknext")&&(_=T+M)),Number.isNaN(+_)||(_<1&&(_=1),_>x&&(_=x)),_!==T&&e("change",_)}return(w,C)=>(G(),re("ul",{class:Y(b(r).b()),onClick:S,onKeyup:Tn(m,["enter"])},[w.pageCount>0?(G(),re("li",{key:0,class:Y([[b(r).is("active",w.currentPage===1),b(r).is("disabled",w.disabled)],"number"]),"aria-current":w.currentPage===1,"aria-label":b(i)("el.pagination.currentPage",{pager:1}),tabindex:b(v)}," 1 ",10,SPe)):_e("v-if",!0),o.value?(G(),re("li",{key:1,class:Y(b(h)),tabindex:b(v),"aria-label":b(i)("el.pagination.prevPages",{pager:w.pagerCount-2}),onMouseenter:C[0]||(C[0]=_=>g(!0)),onMouseleave:C[1]||(C[1]=_=>l.value=!1),onFocus:C[2]||(C[2]=_=>y(!0)),onBlur:C[3]||(C[3]=_=>c.value=!1)},[(l.value||c.value)&&!w.disabled?(G(),Ee(b(Lg),{key:0})):(G(),Ee(b(GF),{key:1}))],42,wPe)):_e("v-if",!0),(G(!0),re(Ct,null,dn(b(d),_=>(G(),re("li",{key:_,class:Y([[b(r).is("active",w.currentPage===_),b(r).is("disabled",w.disabled)],"number"]),"aria-current":w.currentPage===_,"aria-label":b(i)("el.pagination.currentPage",{pager:_}),tabindex:b(v)},We(_),11,xPe))),128)),s.value?(G(),re("li",{key:2,class:Y(b(p)),tabindex:b(v),"aria-label":b(i)("el.pagination.nextPages",{pager:w.pagerCount-2}),onMouseenter:C[4]||(C[4]=_=>g()),onMouseleave:C[5]||(C[5]=_=>u.value=!1),onFocus:C[6]||(C[6]=_=>y()),onBlur:C[7]||(C[7]=_=>f.value=!1)},[(u.value||f.value)&&!w.disabled?(G(),Ee(b(Og),{key:0})):(G(),Ee(b(GF),{key:1}))],42,_Pe)):_e("v-if",!0),w.pageCount>1?(G(),re("li",{key:3,class:Y([[b(r).is("active",w.currentPage===w.pageCount),b(r).is("disabled",w.disabled)],"number"]),"aria-current":w.currentPage===w.pageCount,"aria-label":b(i)("el.pagination.currentPage",{pager:w.pageCount}),tabindex:b(v)},We(w.pageCount),11,CPe)):_e("v-if",!0)],42,bPe))}});var MPe=tt(EPe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/pager.vue"]]);const Pi=t=>typeof t!="number",DPe=nt({pageSize:Number,defaultPageSize:Number,total:Number,pageCount:Number,pagerCount:{type:Number,validator:t=>Pt(t)&&Math.trunc(t)===t&&t>4&&t<22&&t%2===1,default:7},currentPage:Number,defaultCurrentPage:Number,layout:{type:String,default:["prev","pager","next","jumper","->","total"].join(", ")},pageSizes:{type:ke(Array),default:()=>zr([10,20,30,40,50,100])},popperClass:{type:String,default:""},prevText:{type:String,default:""},prevIcon:{type:gr,default:()=>sc},nextText:{type:String,default:""},nextIcon:{type:gr,default:()=>Li},teleported:{type:Boolean,default:!0},small:Boolean,background:Boolean,disabled:Boolean,hideOnSinglePage:Boolean}),APe={"update:current-page":t=>Pt(t),"update:page-size":t=>Pt(t),"size-change":t=>Pt(t),"current-change":t=>Pt(t),"prev-click":t=>Pt(t),"next-click":t=>Pt(t)},e8="ElPagination";var kPe=ye({name:e8,props:DPe,emits:APe,setup(t,{emit:e,slots:n}){const{t:r}=En(),a=Ye("pagination"),i=Qt().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=U(()=>{if(Pi(t.total)&&Pi(t.pageCount)||!Pi(t.currentPage)&&!o)return!1;if(t.layout.includes("sizes")){if(Pi(t.pageCount)){if(!Pi(t.total)&&!Pi(t.pageSize)&&!s)return!1}else if(!s)return!1}return!0}),u=B(Pi(t.defaultPageSize)?10:t.defaultPageSize),c=B(Pi(t.defaultCurrentPage)?1:t.defaultCurrentPage),f=U({get(){return Pi(t.pageSize)?u.value:t.pageSize},set(S){Pi(t.pageSize)&&(u.value=S),s&&(e("update:page-size",S),e("size-change",S))}}),d=U(()=>{let S=0;return Pi(t.pageCount)?Pi(t.total)||(S=Math.max(1,Math.ceil(t.total/f.value))):S=t.pageCount,S}),h=U({get(){return Pi(t.currentPage)?c.value:t.currentPage},set(S){let w=S;S<1?w=1:S>d.value&&(w=d.value),Pi(t.currentPage)&&(c.value=w),o&&(e("update:current-page",w),e("current-change",w))}});Ke(d,S=>{h.value>S&&(h.value=S)});function p(S){h.value=S}function v(S){f.value=S;const w=d.value;h.value>w&&(h.value=w)}function g(){t.disabled||(h.value-=1,e("prev-click",h.value))}function y(){t.disabled||(h.value+=1,e("next-click",h.value))}function m(S,w){S&&(S.props||(S.props={}),S.props.class=[S.props.class,w].join(" "))}return fn(jZ,{pageCount:d,disabled:U(()=>t.disabled),currentPage:h,changeEvent:p,handleSizeChange:v}),()=>{var S,w;if(!l.value)return r("el.pagination.deprecationWarning"),null;if(!t.layout||t.hideOnSinglePage&&d.value<=1)return null;const C=[],_=[],x=At("div",{class:a.e("rightwrapper")},_),T={prev:At(O$e,{disabled:t.disabled,currentPage:h.value,prevText:t.prevText,prevIcon:t.prevIcon,onClick:g}),jumper:At(dPe,{size:t.small?"small":"default"}),pager:At(MPe,{currentPage:h.value,pageCount:d.value,pagerCount:t.pagerCount,onChange:p,disabled:t.disabled}),next:At(P$e,{disabled:t.disabled,currentPage:h.value,pageCount:d.value,nextText:t.nextText,nextIcon:t.nextIcon,onClick:y}),sizes:At(sPe,{pageSize:f.value,pageSizes:t.pageSizes,popperClass:t.popperClass,disabled:t.disabled,teleported:t.teleported,size:t.small?"small":"default"}),slot:(w=(S=n==null?void 0:n.default)==null?void 0:S.call(n))!=null?w:null,total:At(yPe,{total:Pi(t.total)?0:t.total})},M=t.layout.split(",").map(A=>A.trim());let E=!1;return M.forEach(A=>{if(A==="->"){E=!0;return}E?_.push(T[A]):C.push(T[A])}),m(C[0],a.is("first")),m(C[C.length-1],a.is("last")),E&&_.length>0&&(m(_[0],a.is("first")),m(_[_.length-1],a.is("last")),C.push(x)),At("div",{class:[a.b(),a.is("background",t.background),{[a.m("small")]:t.small}]},C)}}});const RPe=tn(kPe),LPe=nt({title:String,confirmButtonText:String,cancelButtonText:String,confirmButtonType:{type:String,values:OR,default:"primary"},cancelButtonType:{type:String,values:OR,default:"text"},icon:{type:gr,default:()=>_Ce},iconColor:{type:String,default:"#f90"},hideIcon:{type:Boolean,default:!1},hideAfter:{type:Number,default:200},teleported:Qa.teleported,persistent:Qa.persistent,width:{type:[String,Number],default:150}}),OPe={confirm:t=>t instanceof MouseEvent,cancel:t=>t instanceof MouseEvent},VPe=ye({name:"ElPopconfirm"}),NPe=ye({...VPe,props:LPe,emits:OPe,setup(t,{emit:e}){const n=t,{t:r}=En(),a=Ye("popconfirm"),i=B(),o=()=>{var d,h;(h=(d=i.value)==null?void 0:d.onClose)==null||h.call(d)},s=U(()=>({width:la(n.width)})),l=d=>{e("confirm",d),o()},u=d=>{e("cancel",d),o()},c=U(()=>n.confirmButtonText||r("el.popconfirm.confirmButtonText")),f=U(()=>n.cancelButtonText||r("el.popconfirm.cancelButtonText"));return(d,h)=>(G(),Ee(b(io),an({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:j(()=>[R("div",{class:Y(b(a).b())},[R("div",{class:Y(b(a).e("main"))},[!d.hideIcon&&d.icon?(G(),Ee(b(_t),{key:0,class:Y(b(a).e("icon")),style:Et({color:d.iconColor})},{default:j(()=>[(G(),Ee(on(d.icon)))]),_:1},8,["class","style"])):_e("v-if",!0),Be(" "+We(d.title),1)],2),R("div",{class:Y(b(a).e("action"))},[N(b(ct),{size:"small",type:d.cancelButtonType==="text"?"":d.cancelButtonType,text:d.cancelButtonType==="text",onClick:u},{default:j(()=>[Be(We(b(f)),1)]),_:1},8,["type","text"]),N(b(ct),{size:"small",type:d.confirmButtonType==="text"?"":d.confirmButtonType,text:d.confirmButtonType==="text",onClick:l},{default:j(()=>[Be(We(b(c)),1)]),_:1},8,["type","text"])],2)],2)]),default:j(()=>[d.$slots.reference?Ge(d.$slots,"reference",{key:0}):_e("v-if",!0)]),_:3},16,["popper-class","popper-style","teleported","hide-after","persistent"]))}});var IPe=tt(NPe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popconfirm/src/popconfirm.vue"]]);const BPe=tn(IPe),$Pe=nt({trigger:C1.trigger,placement:a_.placement,disabled:C1.disabled,visible:Qa.visible,transition:Qa.transition,popperOptions:a_.popperOptions,tabindex:a_.tabindex,content:Qa.content,popperStyle:Qa.popperStyle,popperClass:Qa.popperClass,enterable:{...Qa.enterable,default:!0},effect:{...Qa.effect,default:"light"},teleported:Qa.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}}),PPe={"update:visible":t=>Ea(t),"before-enter":()=>!0,"before-leave":()=>!0,"after-enter":()=>!0,"after-leave":()=>!0},FPe="onUpdate:visible",zPe=ye({name:"ElPopover"}),UPe=ye({...zPe,props:$Pe,emits:PPe,setup(t,{expose:e,emit:n}){const r=t,a=U(()=>r[FPe]),i=Ye("popover"),o=B(),s=U(()=>{var g;return(g=b(o))==null?void 0:g.popperRef}),l=U(()=>[{width:la(r.width)},r.popperStyle]),u=U(()=>[i.b(),r.popperClass,{[i.m("plain")]:!!r.content}]),c=U(()=>r.transition===`${i.namespace.value}-fade-in-linear`),f=()=>{var g;(g=o.value)==null||g.hide()},d=()=>{n("before-enter")},h=()=>{n("before-leave")},p=()=>{n("after-enter")},v=()=>{n("update:visible",!1),n("after-leave")};return e({popperRef:s,hide:f}),(g,y)=>(G(),Ee(b(io),an({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:p,onHide:v}),{content:j(()=>[g.title?(G(),re("div",{key:0,class:Y(b(i).e("title")),role:"title"},We(g.title),3)):_e("v-if",!0),Ge(g.$slots,"default",{},()=>[Be(We(g.content),1)])]),default:j(()=>[g.$slots.reference?Ge(g.$slots,"reference",{key:0}):_e("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 GPe=tt(UPe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popover/src/popover.vue"]]);const t8=(t,e)=>{const n=e.arg||e.value,r=n==null?void 0:n.popperRef;r&&(r.triggerRef=t)};var HPe={mounted(t,e){t8(t,e)},updated(t,e){t8(t,e)}};const WPe="popover",XZ=WTe(HPe,WPe),jPe=tn(GPe,{directive:XZ}),KPe=nt({type:{type:String,default:"line",values:["line","circle","dashboard"]},percentage:{type:Number,default:0,validator:t=>t>=0&&t<=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:ke(String),default:"round"},textInside:{type:Boolean,default:!1},width:{type:Number,default:126},showText:{type:Boolean,default:!0},color:{type:ke([String,Array,Function]),default:""},striped:Boolean,stripedFlow:Boolean,format:{type:ke(Function),default:t=>`${t}%`}}),YPe=["aria-valuenow"],XPe={viewBox:"0 0 100 100"},qPe=["d","stroke","stroke-linecap","stroke-width"],ZPe=["d","stroke","opacity","stroke-linecap","stroke-width"],QPe={key:0},JPe=ye({name:"ElProgress"}),eFe=ye({...JPe,props:KPe,setup(t){const e=t,n={success:"#13ce66",exception:"#ff4949",warning:"#e6a23c",default:"#20a0ff"},r=Ye("progress"),a=U(()=>({width:`${e.percentage}%`,animationDuration:`${e.duration}s`,backgroundColor:m(e.percentage)})),i=U(()=>(e.strokeWidth/e.width*100).toFixed(1)),o=U(()=>["circle","dashboard"].includes(e.type)?Number.parseInt(`${50-Number.parseFloat(i.value)/2}`,10):0),s=U(()=>{const S=o.value,w=e.type==="dashboard";return`
  56. M 50 50
  57. m 0 ${w?"":"-"}${S}
  58. a ${S} ${S} 0 1 1 0 ${w?"-":""}${S*2}
  59. a ${S} ${S} 0 1 1 0 ${w?"":"-"}${S*2}
  60. `}),l=U(()=>2*Math.PI*o.value),u=U(()=>e.type==="dashboard"?.75:1),c=U(()=>`${-1*l.value*(1-u.value)/2}px`),f=U(()=>({strokeDasharray:`${l.value*u.value}px, ${l.value}px`,strokeDashoffset:c.value})),d=U(()=>({strokeDasharray:`${l.value*u.value*(e.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=U(()=>{let S;return e.color?S=m(e.percentage):S=n[e.status]||n.default,S}),p=U(()=>e.status==="warning"?mT:e.type==="line"?e.status==="success"?I4:ad:e.status==="success"?Rb:yl),v=U(()=>e.type==="line"?12+e.strokeWidth*.4:e.width*.111111+2),g=U(()=>e.format(e.percentage));function y(S){const w=100/S.length;return S.map((_,x)=>Ht(_)?{color:_,percentage:(x+1)*w}:_).sort((_,x)=>_.percentage-x.percentage)}const m=S=>{var w;const{color:C}=e;if(zt(C))return C(S);if(Ht(C))return C;{const _=y(C);for(const x of _)if(x.percentage>S)return x.color;return(w=_[_.length-1])==null?void 0:w.color}};return(S,w)=>(G(),re("div",{class:Y([b(r).b(),b(r).m(S.type),b(r).is(S.status),{[b(r).m("without-text")]:!S.showText,[b(r).m("text-inside")]:S.textInside}]),role:"progressbar","aria-valuenow":S.percentage,"aria-valuemin":"0","aria-valuemax":"100"},[S.type==="line"?(G(),re("div",{key:0,class:Y(b(r).b("bar"))},[R("div",{class:Y(b(r).be("bar","outer")),style:Et({height:`${S.strokeWidth}px`})},[R("div",{class:Y([b(r).be("bar","inner"),{[b(r).bem("bar","inner","indeterminate")]:S.indeterminate},{[b(r).bem("bar","inner","striped")]:S.striped},{[b(r).bem("bar","inner","striped-flow")]:S.stripedFlow}]),style:Et(b(a))},[(S.showText||S.$slots.default)&&S.textInside?(G(),re("div",{key:0,class:Y(b(r).be("bar","innerText"))},[Ge(S.$slots,"default",{percentage:S.percentage},()=>[R("span",null,We(b(g)),1)])],2)):_e("v-if",!0)],6)],6)],2)):(G(),re("div",{key:1,class:Y(b(r).b("circle")),style:Et({height:`${S.width}px`,width:`${S.width}px`})},[(G(),re("svg",XPe,[R("path",{class:Y(b(r).be("circle","track")),d:b(s),stroke:`var(${b(r).cssVarName("fill-color-light")}, #e5e9f2)`,"stroke-linecap":S.strokeLinecap,"stroke-width":b(i),fill:"none",style:Et(b(f))},null,14,qPe),R("path",{class:Y(b(r).be("circle","path")),d:b(s),stroke:b(h),fill:"none",opacity:S.percentage?1:0,"stroke-linecap":S.strokeLinecap,"stroke-width":b(i),style:Et(b(d))},null,14,ZPe)]))],6)),(S.showText||S.$slots.default)&&!S.textInside?(G(),re("div",{key:2,class:Y(b(r).e("text")),style:Et({fontSize:`${b(v)}px`})},[Ge(S.$slots,"default",{percentage:S.percentage},()=>[S.status?(G(),Ee(b(_t),{key:1},{default:j(()=>[(G(),Ee(on(b(p))))]),_:1})):(G(),re("span",QPe,We(b(g)),1))])],6)):_e("v-if",!0)],10,YPe))}});var tFe=tt(eFe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/progress/src/progress.vue"]]);const qZ=tn(tFe),nFe=nt({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:ke([Array,Object]),default:()=>zr(["","",""])},voidColor:{type:String,default:""},disabledVoidColor:{type:String,default:""},icons:{type:ke([Array,Object]),default:()=>[IS,IS,IS]},voidIcon:{type:gr,default:()=>gTe},disabledVoidIcon:{type:gr,default:()=>IS},disabled:Boolean,allowHalf:Boolean,showText:Boolean,showScore:Boolean,textColor:{type:String,default:""},texts:{type:ke(Array),default:()=>zr(["Extremely bad","Disappointed","Fair","Satisfied","Surprise"])},scoreTemplate:{type:String,default:"{value}"},size:yi,label:{type:String,default:void 0},clearable:{type:Boolean,default:!1}}),rFe={[Ar]:t=>Pt(t),[nn]:t=>Pt(t)},aFe=["id","aria-label","aria-labelledby","aria-valuenow","aria-valuetext","aria-valuemax"],iFe=["onMousemove","onClick"],oFe=ye({name:"ElRate"}),sFe=ye({...oFe,props:nFe,emits:rFe,setup(t,{expose:e,emit:n}){const r=t;function a(F,$){const W=K=>un(K),V=Object.keys($).map(K=>+K).filter(K=>{const Z=$[K];return(W(Z)?Z.excluded:!1)?F<K:F<=K}).sort((K,Z)=>K-Z),z=$[V[0]];return W(z)&&z.value||z}const i=yt(Op,void 0),o=yt(pu,void 0),s=Aa(),l=Ye("rate"),{inputId:u,isLabeledByFormItem:c}=ld(r,{formItemContext:o}),f=B(r.modelValue),d=B(-1),h=B(!0),p=U(()=>[l.b(),l.m(s.value)]),v=U(()=>r.disabled||(i==null?void 0:i.disabled)),g=U(()=>l.cssVarBlock({"void-color":r.voidColor,"disabled-void-color":r.disabledVoidColor,"fill-color":w.value})),y=U(()=>{let F="";return r.showScore?F=r.scoreTemplate.replace(/\{\s*value\s*\}/,v.value?`${r.modelValue}`:`${f.value}`):r.showText&&(F=r.texts[Math.ceil(f.value)-1]),F}),m=U(()=>r.modelValue*100-Math.floor(r.modelValue)*100),S=U(()=>gt(r.colors)?{[r.lowThreshold]:r.colors[0],[r.highThreshold]:{value:r.colors[1],excluded:!0},[r.max]:r.colors[2]}:r.colors),w=U(()=>{const F=a(f.value,S.value);return un(F)?"":F}),C=U(()=>{let F="";return v.value?F=`${m.value}%`:r.allowHalf&&(F="50%"),{color:w.value,width:F}}),_=U(()=>{let F=gt(r.icons)?[...r.icons]:{...r.icons};return F=Df(F),gt(F)?{[r.lowThreshold]:F[0],[r.highThreshold]:{value:F[1],excluded:!0},[r.max]:F[2]}:F}),x=U(()=>a(r.modelValue,_.value)),T=U(()=>v.value?Ht(r.disabledVoidIcon)?r.disabledVoidIcon:Df(r.disabledVoidIcon):Ht(r.voidIcon)?r.voidIcon:Df(r.voidIcon)),M=U(()=>a(f.value,_.value));function E(F){const $=v.value&&m.value>0&&F-1<r.modelValue&&F>r.modelValue,W=r.allowHalf&&h.value&&F-.5<=f.value&&F>f.value;return $||W}function A(F){r.clearable&&F===r.modelValue&&(F=0),n(nn,F),r.modelValue!==F&&n("change",F)}function k(F){v.value||(r.allowHalf&&h.value?A(f.value):A(F))}function L(F){if(v.value)return;let $=f.value;const W=F.code;return W===Dt.up||W===Dt.right?(r.allowHalf?$+=.5:$+=1,F.stopPropagation(),F.preventDefault()):(W===Dt.left||W===Dt.down)&&(r.allowHalf?$-=.5:$-=1,F.stopPropagation(),F.preventDefault()),$=$<0?0:$,$=$>r.max?r.max:$,n(nn,$),n("change",$),$}function I(F,$){if(!v.value){if(r.allowHalf&&$){let W=$.target;dl(W,l.e("item"))&&(W=W.querySelector(`.${l.e("icon")}`)),(W.clientWidth===0||dl(W,l.e("decimal")))&&(W=W.parentNode),h.value=$.offsetX*2<=W.clientWidth,f.value=h.value?F-.5:F}else f.value=F;d.value=F}}function P(){v.value||(r.allowHalf&&(h.value=r.modelValue!==Math.floor(r.modelValue)),f.value=r.modelValue,d.value=-1)}return Ke(()=>r.modelValue,F=>{f.value=F,h.value=r.modelValue!==Math.floor(r.modelValue)}),r.modelValue||n(nn,0),e({setCurrentValue:I,resetCurrentValue:P}),(F,$)=>{var W;return G(),re("div",{id:b(u),class:Y([b(p),b(l).is("disabled",b(v))]),role:"slider","aria-label":b(c)?void 0:F.label||"rating","aria-labelledby":b(c)?(W=b(o))==null?void 0:W.labelId:void 0,"aria-valuenow":f.value,"aria-valuetext":b(y)||void 0,"aria-valuemin":"0","aria-valuemax":F.max,tabindex:"0",style:Et(b(g)),onKeydown:L},[(G(!0),re(Ct,null,dn(F.max,(V,z)=>(G(),re("span",{key:z,class:Y(b(l).e("item")),onMousemove:K=>I(V,K),onMouseleave:P,onClick:K=>k(V)},[N(b(_t),{class:Y([b(l).e("icon"),{hover:d.value===V},b(l).is("active",V<=f.value)])},{default:j(()=>[E(V)?_e("v-if",!0):(G(),re(Ct,{key:0},[Ft((G(),Ee(on(b(M)),null,null,512)),[[cn,V<=f.value]]),Ft((G(),Ee(on(b(T)),null,null,512)),[[cn,!(V<=f.value)]])],64)),E(V)?(G(),Ee(b(_t),{key:1,style:Et(b(C)),class:Y([b(l).e("icon"),b(l).e("decimal")])},{default:j(()=>[(G(),Ee(on(b(x))))]),_:1},8,["style","class"])):_e("v-if",!0)]),_:2},1032,["class"])],42,iFe))),128)),F.showText||F.showScore?(G(),re("span",{key:0,class:Y(b(l).e("text")),style:Et({color:F.textColor})},We(b(y)),7)):_e("v-if",!0)],46,aFe)}}});var lFe=tt(sFe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/rate/src/rate.vue"]]);const uFe=tn(lFe),Hv={success:"icon-success",warning:"icon-warning",error:"icon-error",info:"icon-info"},n8={[Hv.success]:C_e,[Hv.warning]:mT,[Hv.error]:B4,[Hv.info]:$4},cFe=nt({title:{type:String,default:""},subTitle:{type:String,default:""},icon:{type:String,values:["success","warning","info","error"],default:"info"}}),fFe=ye({name:"ElResult"}),dFe=ye({...fFe,props:cFe,setup(t){const e=t,n=Ye("result"),r=U(()=>{const a=e.icon,i=a&&Hv[a]?Hv[a]:"icon-info",o=n8[i]||n8["icon-info"];return{class:i,component:o}});return(a,i)=>(G(),re("div",{class:Y(b(n).b())},[R("div",{class:Y(b(n).e("icon"))},[Ge(a.$slots,"icon",{},()=>[b(r).component?(G(),Ee(on(b(r).component),{key:0,class:Y(b(r).class)},null,8,["class"])):_e("v-if",!0)])],2),a.title||a.$slots.title?(G(),re("div",{key:0,class:Y(b(n).e("title"))},[Ge(a.$slots,"title",{},()=>[R("p",null,We(a.title),1)])],2)):_e("v-if",!0),a.subTitle||a.$slots["sub-title"]?(G(),re("div",{key:1,class:Y(b(n).e("subtitle"))},[Ge(a.$slots,"sub-title",{},()=>[R("p",null,We(a.subTitle),1)])],2)):_e("v-if",!0),a.$slots.extra?(G(),re("div",{key:2,class:Y(b(n).e("extra"))},[Ge(a.$slots,"extra")],2)):_e("v-if",!0)],2))}});var hFe=tt(dFe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/result/src/result.vue"]]);const pFe=tn(hFe);var r8=Number.isNaN||function(e){return typeof e=="number"&&e!==e};function vFe(t,e){return!!(t===e||r8(t)&&r8(e))}function gFe(t,e){if(t.length!==e.length)return!1;for(var n=0;n<t.length;n++)if(!vFe(t[n],e[n]))return!1;return!0}function yFe(t,e){e===void 0&&(e=gFe);var n=null;function r(){for(var a=[],i=0;i<arguments.length;i++)a[i]=arguments[i];if(n&&n.lastThis===this&&e(a,n.lastArgs))return n.lastResult;var o=t.apply(this,a);return n={lastResult:o,lastArgs:a,lastThis:this},o}return r.clear=function(){n=null},r}const ZZ=()=>{const e=Qt().proxy.$props;return U(()=>{const n=(r,a,i)=>({});return e.perfMode?pT(n):yFe(n)})},eL=50,h2="itemRendered",p2="scroll",Wv="forward",v2="backward",ps="auto",VT="smart",M1="start",Jl="center",D1="end",zg="horizontal",_V="vertical",mFe="ltr",ug="rtl",A1="negative",CV="positive-ascending",TV="positive-descending",bFe={[zg]:"left",[_V]:"top"},SFe=20,wFe={[zg]:"deltaX",[_V]:"deltaY"},xFe=({atEndEdge:t,atStartEdge:e,layout:n},r)=>{let a,i=0;const o=l=>l<0&&e.value||l>0&&t.value;return{hasReachedEdge:o,onWheel:l=>{xT(a);const u=l[wFe[n.value]];o(i)&&o(i+u)||(i+=u,yY()||l.preventDefault(),a=Vg(()=>{r(i),i=0}))}}},tL=Cl({type:ke([Number,Function]),required:!0}),nL=Cl({type:Number}),rL=Cl({type:Number,default:2}),_Fe=Cl({type:String,values:["ltr","rtl"],default:"ltr"}),aL=Cl({type:Number,default:0}),g2=Cl({type:Number,required:!0}),QZ=Cl({type:String,values:["horizontal","vertical"],default:_V}),JZ=nt({className:{type:String,default:""},containerElement:{type:ke([String,Object]),default:"div"},data:{type:ke(Array),default:()=>zr([])},direction:_Fe,height:{type:[String,Number],required:!0},innerElement:{type:[String,Object],default:"div"},style:{type:ke([Object,String,Array])},useIsScrolling:{type:Boolean,default:!1},width:{type:[Number,String],required:!1},perfMode:{type:Boolean,default:!0},scrollbarAlwaysOn:{type:Boolean,default:!1}}),eQ=nt({cache:rL,estimatedItemSize:nL,layout:QZ,initScrollOffset:aL,total:g2,itemSize:tL,...JZ}),iL={type:Number,default:6},tQ={type:Number,default:0},nQ={type:Number,default:2},Zh=nt({columnCache:rL,columnWidth:tL,estimatedColumnWidth:nL,estimatedRowHeight:nL,initScrollLeft:aL,initScrollTop:aL,itemKey:{type:ke(Function),default:({columnIndex:t,rowIndex:e})=>`${e}:${t}`},rowCache:rL,rowHeight:tL,totalColumn:g2,totalRow:g2,hScrollbarSize:iL,vScrollbarSize:iL,scrollbarStartGap:tQ,scrollbarEndGap:nQ,role:String,...JZ}),rQ=nt({alwaysOn:Boolean,class:String,layout:QZ,total:g2,ratio:{type:Number,required:!0},clientSize:{type:Number,required:!0},scrollFrom:{type:Number,required:!0},scrollbarSize:iL,startGap:tQ,endGap:nQ,visible:Boolean}),Vh=(t,e)=>t<e?Wv:v2,k1=t=>t===mFe||t===ug||t===zg,a8=t=>t===ug;let Jp=null;function y2(t=!1){if(Jp===null||t){const e=document.createElement("div"),n=e.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";const r=document.createElement("div"),a=r.style;return a.width="100px",a.height="100px",e.appendChild(r),document.body.appendChild(e),e.scrollLeft>0?Jp=TV:(e.scrollLeft=1,e.scrollLeft===0?Jp=A1:Jp=CV),document.body.removeChild(e),Jp}return Jp}function CFe({move:t,size:e,bar:n},r){const a={},i=`translate${n.axis}(${t}px)`;return a[n.size]=e,a.transform=i,a.msTransform=i,a.webkitTransform=i,r==="horizontal"?a.height="100%":a.width="100%",a}const oL=ye({name:"ElVirtualScrollBar",props:rQ,emits:["scroll","start-move","stop-move"],setup(t,{emit:e}){const n=U(()=>t.startGap+t.endGap),r=Ye("virtual-scrollbar"),a=Ye("scrollbar"),i=B(),o=B();let s=null,l=null;const u=Vn({isDragging:!1,traveled:0}),c=U(()=>tq[t.layout]),f=U(()=>t.clientSize-b(n)),d=U(()=>({position:"absolute",width:`${zg===t.layout?f.value:t.scrollbarSize}px`,height:`${zg===t.layout?t.scrollbarSize:f.value}px`,[bFe[t.layout]]:"2px",right:"2px",bottom:"2px",borderRadius:"4px"})),h=U(()=>{const _=t.ratio,x=t.clientSize;if(_>=100)return Number.POSITIVE_INFINITY;if(_>=50)return _*x/100;const T=x/3;return Math.floor(Math.min(Math.max(_*x,SFe),T))}),p=U(()=>{if(!Number.isFinite(h.value))return{display:"none"};const _=`${h.value}px`;return CFe({bar:c.value,size:_,move:u.traveled},t.layout)}),v=U(()=>Math.floor(t.clientSize-h.value-b(n))),g=()=>{window.addEventListener("mousemove",w),window.addEventListener("mouseup",S);const _=b(o);_&&(l=document.onselectstart,document.onselectstart=()=>!1,_.addEventListener("touchmove",w),_.addEventListener("touchend",S))},y=()=>{window.removeEventListener("mousemove",w),window.removeEventListener("mouseup",S),document.onselectstart=l,l=null;const _=b(o);_&&(_.removeEventListener("touchmove",w),_.removeEventListener("touchend",S))},m=_=>{_.stopImmediatePropagation(),!(_.ctrlKey||[1,2].includes(_.button))&&(u.isDragging=!0,u[c.value.axis]=_.currentTarget[c.value.offset]-(_[c.value.client]-_.currentTarget.getBoundingClientRect()[c.value.direction]),e("start-move"),g())},S=()=>{u.isDragging=!1,u[c.value.axis]=0,e("stop-move"),y()},w=_=>{const{isDragging:x}=u;if(!x||!o.value||!i.value)return;const T=u[c.value.axis];if(!T)return;xT(s);const M=(i.value.getBoundingClientRect()[c.value.direction]-_[c.value.client])*-1,E=o.value[c.value.offset]-T,A=M-E;s=Vg(()=>{u.traveled=Math.max(t.startGap,Math.min(A,v.value)),e("scroll",A,v.value)})},C=_=>{const x=Math.abs(_.target.getBoundingClientRect()[c.value.direction]-_[c.value.client]),T=o.value[c.value.offset]/2,M=x-T;u.traveled=Math.max(0,Math.min(M,v.value)),e("scroll",M,v.value)};return Ke(()=>t.scrollFrom,_=>{u.isDragging||(u.traveled=Math.ceil(_*v.value))}),Sr(()=>{y()}),()=>At("div",{role:"presentation",ref:i,class:[r.b(),t.class,(t.alwaysOn||u.isDragging)&&"always-on"],style:d.value,onMousedown:It(C,["stop","prevent"]),onTouchstartPrevent:m},At("div",{ref:o,class:a.e("thumb"),style:p.value,onMousedown:m},[]))}}),aQ=({name:t,getOffset:e,getItemSize:n,getItemOffset:r,getEstimatedTotalSize:a,getStartIndexForOffset:i,getStopIndexForStartIndex:o,initCache:s,clearCache:l,validateProps:u})=>ye({name:t??"ElVirtualList",props:eQ,emits:[h2,p2],setup(c,{emit:f,expose:d}){u(c);const h=Qt(),p=Ye("vl"),v=B(s(c,h)),g=ZZ(),y=B(),m=B(),S=B(),w=B({isScrolling:!1,scrollDir:"forward",scrollOffset:Pt(c.initScrollOffset)?c.initScrollOffset:0,updateRequested:!1,isScrollbarDragging:!1,scrollbarAlwaysOn:c.scrollbarAlwaysOn}),C=U(()=>{const{total:oe,cache:ge}=c,{isScrolling:ie,scrollDir:Q,scrollOffset:ce}=b(w);if(oe===0)return[0,0,0,0];const se=i(c,ce,b(v)),me=o(c,se,ce,b(v)),ve=!ie||Q===v2?Math.max(1,ge):1,he=!ie||Q===Wv?Math.max(1,ge):1;return[Math.max(0,se-ve),Math.max(0,Math.min(oe-1,me+he)),se,me]}),_=U(()=>a(c,b(v))),x=U(()=>k1(c.layout)),T=U(()=>[{position:"relative",[`overflow-${x.value?"x":"y"}`]:"scroll",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:c.direction,height:Pt(c.height)?`${c.height}px`:c.height,width:Pt(c.width)?`${c.width}px`:c.width},c.style]),M=U(()=>{const oe=b(_),ge=b(x);return{height:ge?"100%":`${oe}px`,pointerEvents:b(w).isScrolling?"none":void 0,width:ge?`${oe}px`:"100%"}}),E=U(()=>x.value?c.width:c.height),{onWheel:A}=xFe({atStartEdge:U(()=>w.value.scrollOffset<=0),atEndEdge:U(()=>w.value.scrollOffset>=_.value),layout:U(()=>c.layout)},oe=>{var ge,ie;(ie=(ge=S.value).onMouseUp)==null||ie.call(ge),$(Math.min(w.value.scrollOffset+oe,_.value-E.value))}),k=()=>{const{total:oe}=c;if(oe>0){const[ce,se,me,ve]=b(C);f(h2,ce,se,me,ve)}const{scrollDir:ge,scrollOffset:ie,updateRequested:Q}=b(w);f(p2,ge,ie,Q)},L=oe=>{const{clientHeight:ge,scrollHeight:ie,scrollTop:Q}=oe.currentTarget,ce=b(w);if(ce.scrollOffset===Q)return;const se=Math.max(0,Math.min(Q,ie-ge));w.value={...ce,isScrolling:!0,scrollDir:Vh(ce.scrollOffset,se),scrollOffset:se,updateRequested:!1},xt(z)},I=oe=>{const{clientWidth:ge,scrollLeft:ie,scrollWidth:Q}=oe.currentTarget,ce=b(w);if(ce.scrollOffset===ie)return;const{direction:se}=c;let me=ie;if(se===ug)switch(y2()){case A1:{me=-ie;break}case TV:{me=Q-ge-ie;break}}me=Math.max(0,Math.min(me,Q-ge)),w.value={...ce,isScrolling:!0,scrollDir:Vh(ce.scrollOffset,me),scrollOffset:me,updateRequested:!1},xt(z)},P=oe=>{b(x)?I(oe):L(oe),k()},F=(oe,ge)=>{const ie=(_.value-E.value)/ge*oe;$(Math.min(_.value-E.value,ie))},$=oe=>{oe=Math.max(oe,0),oe!==b(w).scrollOffset&&(w.value={...b(w),scrollOffset:oe,scrollDir:Vh(b(w).scrollOffset,oe),updateRequested:!0},xt(z))},W=(oe,ge=ps)=>{const{scrollOffset:ie}=b(w);oe=Math.max(0,Math.min(oe,c.total-1)),$(e(c,oe,ge,ie,b(v)))},V=oe=>{const{direction:ge,itemSize:ie,layout:Q}=c,ce=g.value(l&&ie,l&&Q,l&&ge);let se;if(Sn(ce,String(oe)))se=ce[oe];else{const me=r(c,oe,b(v)),ve=n(c,oe,b(v)),he=b(x),ee=ge===ug,ue=he?me:0;ce[oe]=se={position:"absolute",left:ee?void 0:`${ue}px`,right:ee?`${ue}px`:void 0,top:he?0:`${me}px`,height:he?"100%":`${ve}px`,width:he?`${ve}px`:"100%"}}return se},z=()=>{w.value.isScrolling=!1,xt(()=>{g.value(-1,null,null)})},K=()=>{const oe=y.value;oe&&(oe.scrollTop=0)};Ut(()=>{if(!_n)return;const{initScrollOffset:oe}=c,ge=b(y);Pt(oe)&&ge&&(b(x)?ge.scrollLeft=oe:ge.scrollTop=oe),k()}),bc(()=>{const{direction:oe,layout:ge}=c,{scrollOffset:ie,updateRequested:Q}=b(w),ce=b(y);if(Q&&ce)if(ge===zg)if(oe===ug)switch(y2()){case A1:{ce.scrollLeft=-ie;break}case CV:{ce.scrollLeft=ie;break}default:{const{clientWidth:se,scrollWidth:me}=ce;ce.scrollLeft=me-se-ie;break}}else ce.scrollLeft=ie;else ce.scrollTop=ie});const Z={ns:p,clientSize:E,estimatedTotalSize:_,windowStyle:T,windowRef:y,innerRef:m,innerStyle:M,itemsToRender:C,scrollbarRef:S,states:w,getItemStyle:V,onScroll:P,onScrollbarScroll:F,onWheel:A,scrollTo:$,scrollToItem:W,resetScrollTop:K};return d({windowRef:y,innerRef:m,getItemStyleCache:g,scrollTo:$,scrollToItem:W,resetScrollTop:K,states:w}),Z},render(c){var f;const{$slots:d,className:h,clientSize:p,containerElement:v,data:g,getItemStyle:y,innerElement:m,itemsToRender:S,innerStyle:w,layout:C,total:_,onScroll:x,onScrollbarScroll:T,onWheel:M,states:E,useIsScrolling:A,windowStyle:k,ns:L}=c,[I,P]=S,F=on(v),$=on(m),W=[];if(_>0)for(let Z=I;Z<=P;Z++)W.push((f=d.default)==null?void 0:f.call(d,{data:g,key:Z,index:Z,isScrolling:A?E.isScrolling:void 0,style:y(Z)}));const V=[At($,{style:w,ref:"innerRef"},Ht($)?W:{default:()=>W})],z=At(oL,{ref:"scrollbarRef",clientSize:p,layout:C,onScroll:T,ratio:p*100/this.estimatedTotalSize,scrollFrom:E.scrollOffset/(this.estimatedTotalSize-p),total:_}),K=At(F,{class:[L.e("window"),h],style:k,onScroll:x,onWheel:M,ref:"windowRef",key:0},Ht(F)?[V]:{default:()=>[V]});return At("div",{key:0,class:[L.e("wrapper"),E.scrollbarAlwaysOn?"always-on":""]},[K,z])}}),iQ=aQ({name:"ElFixedSizeList",getItemOffset:({itemSize:t},e)=>e*t,getItemSize:({itemSize:t})=>t,getEstimatedTotalSize:({total:t,itemSize:e})=>e*t,getOffset:({height:t,total:e,itemSize:n,layout:r,width:a},i,o,s)=>{const l=k1(r)?a:t,u=Math.max(0,e*n-l),c=Math.min(u,i*n),f=Math.max(0,(i+1)*n-l);switch(o===VT&&(s>=f-l&&s<=c+l?o=ps:o=Jl),o){case M1:return c;case D1:return f;case Jl:{const d=Math.round(f+(c-f)/2);return d<Math.ceil(l/2)?0:d>u+Math.floor(l/2)?u:d}case ps:default:return s>=f&&s<=c?s:s<f?f:c}},getStartIndexForOffset:({total:t,itemSize:e},n)=>Math.max(0,Math.min(t-1,Math.floor(n/e))),getStopIndexForStartIndex:({height:t,total:e,itemSize:n,layout:r,width:a},i,o)=>{const s=i*n,l=k1(r)?a:t,u=Math.ceil((l+o-s)/n);return Math.max(0,Math.min(e-1,i+u-1))},initCache(){},clearCache:!0,validateProps(){}}),jv=(t,e,n)=>{const{itemSize:r}=t,{items:a,lastVisitedIndex:i}=n;if(e>i){let o=0;if(i>=0){const s=a[i];o=s.offset+s.size}for(let s=i+1;s<=e;s++){const l=r(s);a[s]={offset:o,size:l},o+=l}n.lastVisitedIndex=e}return a[e]},TFe=(t,e,n)=>{const{items:r,lastVisitedIndex:a}=e;return(a>0?r[a].offset:0)>=n?oQ(t,e,0,a,n):EFe(t,e,Math.max(0,a),n)},oQ=(t,e,n,r,a)=>{for(;n<=r;){const i=n+Math.floor((r-n)/2),o=jv(t,i,e).offset;if(o===a)return i;o<a?n=i+1:o>a&&(r=i-1)}return Math.max(0,n-1)},EFe=(t,e,n,r)=>{const{total:a}=t;let i=1;for(;n<a&&jv(t,n,e).offset<r;)n+=i,i*=2;return oQ(t,e,Math.floor(n/2),Math.min(n,a-1),r)},i8=({total:t},{items:e,estimatedItemSize:n,lastVisitedIndex:r})=>{let a=0;if(r>=t&&(r=t-1),r>=0){const s=e[r];a=s.offset+s.size}const o=(t-r-1)*n;return a+o},MFe=aQ({name:"ElDynamicSizeList",getItemOffset:(t,e,n)=>jv(t,e,n).offset,getItemSize:(t,e,{items:n})=>n[e].size,getEstimatedTotalSize:i8,getOffset:(t,e,n,r,a)=>{const{height:i,layout:o,width:s}=t,l=k1(o)?s:i,u=jv(t,e,a),c=i8(t,a),f=Math.max(0,Math.min(c-l,u.offset)),d=Math.max(0,u.offset-l+u.size);switch(n===VT&&(r>=d-l&&r<=f+l?n=ps:n=Jl),n){case M1:return f;case D1:return d;case Jl:return Math.round(d+(f-d)/2);case ps:default:return r>=d&&r<=f?r:r<d?d:f}},getStartIndexForOffset:(t,e,n)=>TFe(t,n,e),getStopIndexForStartIndex:(t,e,n,r)=>{const{height:a,total:i,layout:o,width:s}=t,l=k1(o)?s:a,u=jv(t,e,r),c=n+l;let f=u.offset+u.size,d=e;for(;d<i-1&&f<c;)d++,f+=jv(t,d,r).size;return d},initCache({estimatedItemSize:t=eL},e){const n={items:{},estimatedItemSize:t,lastVisitedIndex:-1};return n.clearCacheAfterIndex=(r,a=!0)=>{var i,o;n.lastVisitedIndex=Math.min(n.lastVisitedIndex,r-1),(i=e.exposed)==null||i.getItemStyleCache(-1),a&&((o=e.proxy)==null||o.$forceUpdate())},n},clearCache:!1,validateProps:({itemSize:t})=>{}}),DFe=({atXEndEdge:t,atXStartEdge:e,atYEndEdge:n,atYStartEdge:r},a)=>{let i=null,o=0,s=0;const l=(c,f)=>{const d=c<=0&&e.value||c>=0&&t.value,h=f<=0&&r.value||f>=0&&n.value;return d&&h};return{hasReachedEdge:l,onWheel:c=>{xT(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=Vg(()=>{a(o,s),o=0,s=0}))}}},sQ=({name:t,clearCache:e,getColumnPosition:n,getColumnStartIndexForOffset:r,getColumnStopIndexForStartIndex:a,getEstimatedTotalHeight:i,getEstimatedTotalWidth:o,getColumnOffset:s,getRowOffset:l,getRowPosition:u,getRowStartIndexForOffset:c,getRowStopIndexForStartIndex:f,initCache:d,injectToInstance:h,validateProps:p})=>ye({name:t??"ElVirtualList",props:Zh,emits:[h2,p2],setup(v,{emit:g,expose:y,slots:m}){const S=Ye("vl");p(v);const w=Qt(),C=B(d(v,w));h==null||h(w,C);const _=B(),x=B(),T=B(),M=B(null),E=B({isScrolling:!1,scrollLeft:Pt(v.initScrollLeft)?v.initScrollLeft:0,scrollTop:Pt(v.initScrollTop)?v.initScrollTop:0,updateRequested:!1,xAxisScrollDir:Wv,yAxisScrollDir:Wv}),A=ZZ(),k=U(()=>Number.parseInt(`${v.height}`,10)),L=U(()=>Number.parseInt(`${v.width}`,10)),I=U(()=>{const{totalColumn:De,totalRow:we,columnCache:ae}=v,{isScrolling:Ie,xAxisScrollDir:He,scrollLeft:Ce}=b(E);if(De===0||we===0)return[0,0,0,0];const qe=r(v,Ce,b(C)),Ze=a(v,qe,Ce,b(C)),de=!Ie||He===v2?Math.max(1,ae):1,Xe=!Ie||He===Wv?Math.max(1,ae):1;return[Math.max(0,qe-de),Math.max(0,Math.min(De-1,Ze+Xe)),qe,Ze]}),P=U(()=>{const{totalColumn:De,totalRow:we,rowCache:ae}=v,{isScrolling:Ie,yAxisScrollDir:He,scrollTop:Ce}=b(E);if(De===0||we===0)return[0,0,0,0];const qe=c(v,Ce,b(C)),Ze=f(v,qe,Ce,b(C)),de=!Ie||He===v2?Math.max(1,ae):1,Xe=!Ie||He===Wv?Math.max(1,ae):1;return[Math.max(0,qe-de),Math.max(0,Math.min(we-1,Ze+Xe)),qe,Ze]}),F=U(()=>i(v,b(C))),$=U(()=>o(v,b(C))),W=U(()=>{var De;return[{position:"relative",overflow:"hidden",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:v.direction,height:Pt(v.height)?`${v.height}px`:v.height,width:Pt(v.width)?`${v.width}px`:v.width},(De=v.style)!=null?De:{}]}),V=U(()=>{const De=`${b($)}px`;return{height:`${b(F)}px`,pointerEvents:b(E).isScrolling?"none":void 0,width:De}}),z=()=>{const{totalColumn:De,totalRow:we}=v;if(De>0&&we>0){const[Ze,de,Xe,mt]=b(I),[kt,Vt,dt,Oe]=b(P);g(h2,{columnCacheStart:Ze,columnCacheEnd:de,rowCacheStart:kt,rowCacheEnd:Vt,columnVisibleStart:Xe,columnVisibleEnd:mt,rowVisibleStart:dt,rowVisibleEnd:Oe})}const{scrollLeft:ae,scrollTop:Ie,updateRequested:He,xAxisScrollDir:Ce,yAxisScrollDir:qe}=b(E);g(p2,{xAxisScrollDir:Ce,scrollLeft:ae,yAxisScrollDir:qe,scrollTop:Ie,updateRequested:He})},K=De=>{const{clientHeight:we,clientWidth:ae,scrollHeight:Ie,scrollLeft:He,scrollTop:Ce,scrollWidth:qe}=De.currentTarget,Ze=b(E);if(Ze.scrollTop===Ce&&Ze.scrollLeft===He)return;let de=He;if(a8(v.direction))switch(y2()){case A1:de=-He;break;case TV:de=qe-ae-He;break}E.value={...Ze,isScrolling:!0,scrollLeft:de,scrollTop:Math.max(0,Math.min(Ce,Ie-we)),updateRequested:!0,xAxisScrollDir:Vh(Ze.scrollLeft,de),yAxisScrollDir:Vh(Ze.scrollTop,Ce)},xt(()=>se()),me(),z()},Z=(De,we)=>{const ae=b(k),Ie=(F.value-ae)/we*De;ie({scrollTop:Math.min(F.value-ae,Ie)})},oe=(De,we)=>{const ae=b(L),Ie=($.value-ae)/we*De;ie({scrollLeft:Math.min($.value-ae,Ie)})},{onWheel:ge}=DFe({atXStartEdge:U(()=>E.value.scrollLeft<=0),atXEndEdge:U(()=>E.value.scrollLeft>=$.value-b(L)),atYStartEdge:U(()=>E.value.scrollTop<=0),atYEndEdge:U(()=>E.value.scrollTop>=F.value-b(k))},(De,we)=>{var ae,Ie,He,Ce;(Ie=(ae=x.value)==null?void 0:ae.onMouseUp)==null||Ie.call(ae),(Ce=(He=T.value)==null?void 0:He.onMouseUp)==null||Ce.call(He);const qe=b(L),Ze=b(k);ie({scrollLeft:Math.min(E.value.scrollLeft+De,$.value-qe),scrollTop:Math.min(E.value.scrollTop+we,F.value-Ze)})}),ie=({scrollLeft:De=E.value.scrollLeft,scrollTop:we=E.value.scrollTop})=>{De=Math.max(De,0),we=Math.max(we,0);const ae=b(E);we===ae.scrollTop&&De===ae.scrollLeft||(E.value={...ae,xAxisScrollDir:Vh(ae.scrollLeft,De),yAxisScrollDir:Vh(ae.scrollTop,we),scrollLeft:De,scrollTop:we,updateRequested:!0},xt(()=>se()),me(),z())},Q=(De=0,we=0,ae=ps)=>{const Ie=b(E);we=Math.max(0,Math.min(we,v.totalColumn-1)),De=Math.max(0,Math.min(De,v.totalRow-1));const He=rX(S.namespace.value),Ce=b(C),qe=i(v,Ce),Ze=o(v,Ce);ie({scrollLeft:s(v,we,ae,Ie.scrollLeft,Ce,Ze>v.width?He:0),scrollTop:l(v,De,ae,Ie.scrollTop,Ce,qe>v.height?He:0)})},ce=(De,we)=>{const{columnWidth:ae,direction:Ie,rowHeight:He}=v,Ce=A.value(e&&ae,e&&He,e&&Ie),qe=`${De},${we}`;if(Sn(Ce,qe))return Ce[qe];{const[,Ze]=n(v,we,b(C)),de=b(C),Xe=a8(Ie),[mt,kt]=u(v,De,de),[Vt]=n(v,we,de);return Ce[qe]={position:"absolute",left:Xe?void 0:`${Ze}px`,right:Xe?`${Ze}px`:void 0,top:`${kt}px`,height:`${mt}px`,width:`${Vt}px`},Ce[qe]}},se=()=>{E.value.isScrolling=!1,xt(()=>{A.value(-1,null,null)})};Ut(()=>{if(!_n)return;const{initScrollLeft:De,initScrollTop:we}=v,ae=b(_);ae&&(Pt(De)&&(ae.scrollLeft=De),Pt(we)&&(ae.scrollTop=we)),z()});const me=()=>{const{direction:De}=v,{scrollLeft:we,scrollTop:ae,updateRequested:Ie}=b(E),He=b(_);if(Ie&&He){if(De===ug)switch(y2()){case A1:{He.scrollLeft=-we;break}case CV:{He.scrollLeft=we;break}default:{const{clientWidth:Ce,scrollWidth:qe}=He;He.scrollLeft=qe-Ce-we;break}}else He.scrollLeft=Math.max(0,we);He.scrollTop=Math.max(0,ae)}},{resetAfterColumnIndex:ve,resetAfterRowIndex:he,resetAfter:ee}=w.proxy;y({windowRef:_,innerRef:M,getItemStyleCache:A,scrollTo:ie,scrollToItem:Q,states:E,resetAfterColumnIndex:ve,resetAfterRowIndex:he,resetAfter:ee});const ue=()=>{const{scrollbarAlwaysOn:De,scrollbarStartGap:we,scrollbarEndGap:ae,totalColumn:Ie,totalRow:He}=v,Ce=b(L),qe=b(k),Ze=b($),de=b(F),{scrollLeft:Xe,scrollTop:mt}=b(E),kt=At(oL,{ref:x,alwaysOn:De,startGap:we,endGap:ae,class:S.e("horizontal"),clientSize:Ce,layout:"horizontal",onScroll:oe,ratio:Ce*100/Ze,scrollFrom:Xe/(Ze-Ce),total:He,visible:!0}),Vt=At(oL,{ref:T,alwaysOn:De,startGap:we,endGap:ae,class:S.e("vertical"),clientSize:qe,layout:"vertical",onScroll:Z,ratio:qe*100/de,scrollFrom:mt/(de-qe),total:Ie,visible:!0});return{horizontalScrollbar:kt,verticalScrollbar:Vt}},fe=()=>{var De;const[we,ae]=b(I),[Ie,He]=b(P),{data:Ce,totalColumn:qe,totalRow:Ze,useIsScrolling:de,itemKey:Xe}=v,mt=[];if(Ze>0&&qe>0)for(let kt=Ie;kt<=He;kt++)for(let Vt=we;Vt<=ae;Vt++)mt.push((De=m.default)==null?void 0:De.call(m,{columnIndex:Vt,data:Ce,key:Xe({columnIndex:Vt,data:Ce,rowIndex:kt}),isScrolling:de?b(E).isScrolling:void 0,style:ce(kt,Vt),rowIndex:kt}));return mt},Re=()=>{const De=on(v.innerElement),we=fe();return[At(De,{style:b(V),ref:M},Ht(De)?we:{default:()=>we})]};return()=>{const De=on(v.containerElement),{horizontalScrollbar:we,verticalScrollbar:ae}=ue(),Ie=Re();return At("div",{key:0,class:S.e("wrapper"),role:v.role},[At(De,{class:v.className,style:b(W),onScroll:K,onWheel:ge,ref:_},Ht(De)?Ie:{default:()=>Ie}),we,ae])}}}),AFe=sQ({name:"ElFixedSizeGrid",getColumnPosition:({columnWidth:t},e)=>[t,e*t],getRowPosition:({rowHeight:t},e)=>[t,e*t],getEstimatedTotalHeight:({totalRow:t,rowHeight:e})=>e*t,getEstimatedTotalWidth:({totalColumn:t,columnWidth:e})=>e*t,getColumnOffset:({totalColumn:t,columnWidth:e,width:n},r,a,i,o,s)=>{n=Number(n);const l=Math.max(0,t*e-n),u=Math.min(l,r*e),c=Math.max(0,r*e-n+s+e);switch(a==="smart"&&(i>=c-n&&i<=u+n?a=ps:a=Jl),a){case M1:return u;case D1:return c;case Jl:{const f=Math.round(c+(u-c)/2);return f<Math.ceil(n/2)?0:f>l+Math.floor(n/2)?l:f}case ps:default:return i>=c&&i<=u?i:c>u||i<c?c:u}},getRowOffset:({rowHeight:t,height:e,totalRow:n},r,a,i,o,s)=>{e=Number(e);const l=Math.max(0,n*t-e),u=Math.min(l,r*t),c=Math.max(0,r*t-e+s+t);switch(a===VT&&(i>=c-e&&i<=u+e?a=ps:a=Jl),a){case M1:return u;case D1:return c;case Jl:{const f=Math.round(c+(u-c)/2);return f<Math.ceil(e/2)?0:f>l+Math.floor(e/2)?l:f}case ps:default:return i>=c&&i<=u?i:c>u||i<c?c:u}},getColumnStartIndexForOffset:({columnWidth:t,totalColumn:e},n)=>Math.max(0,Math.min(e-1,Math.floor(n/t))),getColumnStopIndexForStartIndex:({columnWidth:t,totalColumn:e,width:n},r,a)=>{const i=r*t,o=Math.ceil((n+a-i)/t);return Math.max(0,Math.min(e-1,r+o-1))},getRowStartIndexForOffset:({rowHeight:t,totalRow:e},n)=>Math.max(0,Math.min(e-1,Math.floor(n/t))),getRowStopIndexForStartIndex:({rowHeight:t,totalRow:e,height:n},r,a)=>{const i=r*t,o=Math.ceil((n+a-i)/t);return Math.max(0,Math.min(e-1,r+o-1))},initCache:()=>{},clearCache:!0,validateProps:({columnWidth:t,rowHeight:e})=>{}}),{max:m2,min:lQ,floor:uQ}=Math,kFe={column:"columnWidth",row:"rowHeight"},sL={column:"lastVisitedColumnIndex",row:"lastVisitedRowIndex"},Uu=(t,e,n,r)=>{const[a,i,o]=[n[r],t[kFe[r]],n[sL[r]]];if(e>o){let s=0;if(o>=0){const l=a[o];s=l.offset+l.size}for(let l=o+1;l<=e;l++){const u=i(l);a[l]={offset:s,size:u},s+=u}n[sL[r]]=e}return a[e]},cQ=(t,e,n,r,a,i)=>{for(;n<=r;){const o=n+uQ((r-n)/2),s=Uu(t,o,e,i).offset;if(s===a)return o;s<a?n=o+1:r=o-1}return m2(0,n-1)},RFe=(t,e,n,r,a)=>{const i=a==="column"?t.totalColumn:t.totalRow;let o=1;for(;n<i&&Uu(t,n,e,a).offset<r;)n+=o,o*=2;return cQ(t,e,uQ(n/2),lQ(n,i-1),r,a)},o8=(t,e,n,r)=>{const[a,i]=[e[r],e[sL[r]]];return(i>0?a[i].offset:0)>=n?cQ(t,e,0,i,n,r):RFe(t,e,m2(0,i),n,r)},fQ=({totalRow:t},{estimatedRowHeight:e,lastVisitedRowIndex:n,row:r})=>{let a=0;if(n>=t&&(n=t-1),n>=0){const s=r[n];a=s.offset+s.size}const o=(t-n-1)*e;return a+o},dQ=({totalColumn:t},{column:e,estimatedColumnWidth:n,lastVisitedColumnIndex:r})=>{let a=0;if(r>t&&(r=t-1),r>=0){const s=e[r];a=s.offset+s.size}const o=(t-r-1)*n;return a+o},LFe={column:dQ,row:fQ},s8=(t,e,n,r,a,i,o)=>{const[s,l]=[i==="row"?t.height:t.width,LFe[i]],u=Uu(t,e,a,i),c=l(t,a),f=m2(0,lQ(c-s,u.offset)),d=m2(0,u.offset-s+o+u.size);switch(n===VT&&(r>=d-s&&r<=f+s?n=ps:n=Jl),n){case M1:return f;case D1:return d;case Jl:return Math.round(d+(f-d)/2);case ps:default:return r>=d&&r<=f?r:d>f||r<d?d:f}},OFe=sQ({name:"ElDynamicSizeGrid",getColumnPosition:(t,e,n)=>{const r=Uu(t,e,n,"column");return[r.size,r.offset]},getRowPosition:(t,e,n)=>{const r=Uu(t,e,n,"row");return[r.size,r.offset]},getColumnOffset:(t,e,n,r,a,i)=>s8(t,e,n,r,a,"column",i),getRowOffset:(t,e,n,r,a,i)=>s8(t,e,n,r,a,"row",i),getColumnStartIndexForOffset:(t,e,n)=>o8(t,n,e,"column"),getColumnStopIndexForStartIndex:(t,e,n,r)=>{const a=Uu(t,e,r,"column"),i=n+t.width;let o=a.offset+a.size,s=e;for(;s<t.totalColumn-1&&o<i;)s++,o+=Uu(t,e,r,"column").size;return s},getEstimatedTotalHeight:fQ,getEstimatedTotalWidth:dQ,getRowStartIndexForOffset:(t,e,n)=>o8(t,n,e,"row"),getRowStopIndexForStartIndex:(t,e,n,r)=>{const{totalRow:a,height:i}=t,o=Uu(t,e,r,"row"),s=n+i;let l=o.size+o.offset,u=e;for(;u<a-1&&l<s;)u++,l+=Uu(t,u,r,"row").size;return u},injectToInstance:(t,e)=>{const n=({columnIndex:i,rowIndex:o},s)=>{var l,u;s=Na(s)?!0:s,Pt(i)&&(e.value.lastVisitedColumnIndex=Math.min(e.value.lastVisitedColumnIndex,i-1)),Pt(o)&&(e.value.lastVisitedRowIndex=Math.min(e.value.lastVisitedRowIndex,o-1)),(l=t.exposed)==null||l.getItemStyleCache.value(-1,null,null),s&&((u=t.proxy)==null||u.$forceUpdate())},r=(i,o)=>{n({columnIndex:i},o)},a=(i,o)=>{n({rowIndex:i},o)};Object.assign(t.proxy,{resetAfterColumnIndex:r,resetAfterRowIndex:a,resetAfter:n})},initCache:({estimatedColumnWidth:t=eL,estimatedRowHeight:e=eL})=>({column:{},estimatedColumnWidth:t,estimatedRowHeight:e,lastVisitedColumnIndex:-1,lastVisitedRowIndex:-1,row:{}}),clearCache:!1,validateProps:({columnWidth:t,rowHeight:e})=>{}}),VFe=ye({props:{item:{type:Object,required:!0},style:Object,height:Number},setup(){return{ns:Ye("select")}}});function NFe(t,e,n,r,a,i){return t.item.isTitle?(G(),re("div",{key:0,class:Y(t.ns.be("group","title")),style:Et([t.style,{lineHeight:`${t.height}px`}])},We(t.item.label),7)):(G(),re("div",{key:1,class:Y(t.ns.be("group","split")),style:Et(t.style)},[R("span",{class:Y(t.ns.be("group","split-dash")),style:Et({top:`${t.height/2}px`})},null,6)],6))}var IFe=tt(VFe,[["render",NFe],["__file","/home/runner/work/element-plus/element-plus/packages/components/select-v2/src/group-item.vue"]]);function BFe(t,{emit:e}){return{hoverItem:()=>{t.disabled||e("hover",t.index)},selectOptionClick:()=>{t.disabled||e("select",t.item,t.index)}}}const $Fe={allowCreate:Boolean,autocomplete:{type:String,default:"none"},automaticDropdown:Boolean,clearable:Boolean,clearIcon:{type:[String,Object],default:ad},effect:{type: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:[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:Array,required:!0},placeholder:{type:String},teleported:Qa.teleported,persistent:{type:Boolean,default:!0},popperClass:{type:String,default:""},popperOptions:{type:Object,default:()=>({})},remote:Boolean,size:{type:String,validator:ST},valueKey:{type:String,default:"value"},scrollbarAlwaysOn:{type:Boolean,default:!1},validateEvent:{type:Boolean,default:!0},placement:{type:ke(String),values:Lp,default:"bottom-start"}},PFe={data:Array,disabled:Boolean,hovering:Boolean,item:Object,index:Number,style:Object,selected:Boolean,created:Boolean},FFe=ye({props:PFe,emits:["select","hover"],setup(t,{emit:e}){const n=Ye("select"),{hoverItem:r,selectOptionClick:a}=BFe(t,{emit:e});return{ns:n,hoverItem:r,selectOptionClick:a}}}),zFe=["aria-selected"];function UFe(t,e,n,r,a,i){return G(),re("li",{"aria-selected":t.selected,style:Et(t.style),class:Y([t.ns.be("dropdown","option-item"),t.ns.is("selected",t.selected),t.ns.is("disabled",t.disabled),t.ns.is("created",t.created),{hover:t.hovering}]),onMouseenter:e[0]||(e[0]=(...o)=>t.hoverItem&&t.hoverItem(...o)),onClick:e[1]||(e[1]=It((...o)=>t.selectOptionClick&&t.selectOptionClick(...o),["stop"]))},[Ge(t.$slots,"default",{item:t.item,index:t.index,disabled:t.disabled},()=>[R("span",null,We(t.item.label),1)])],46,zFe)}var GFe=tt(FFe,[["render",UFe],["__file","/home/runner/work/element-plus/element-plus/packages/components/select-v2/src/option-item.vue"]]);const hQ=Symbol("ElSelectV2Injection");var HFe=ye({name:"ElSelectDropdown",props:{data:{type:Array,required:!0},hoveringIndex:Number,width:Number},setup(t,{slots:e,expose:n}){const r=yt(hQ),a=Ye("select"),i=B([]),o=B(),s=U(()=>t.data.length);Ke(()=>s.value,()=>{var T,M;(M=(T=r.popper.value).updatePopper)==null||M.call(T)});const l=U(()=>Na(r.props.estimatedOptionHeight)),u=U(()=>l.value?{itemSize:r.props.itemHeight}:{estimatedSize:r.props.estimatedOptionHeight,itemSize:T=>i.value[T]}),c=(T=[],M)=>{const{props:{valueKey:E}}=r;return un(M)?T&&T.some(A=>Fr(A,E)===Fr(M,E)):T.includes(M)},f=(T,M)=>{if(un(M)){const{valueKey:E}=r.props;return Fr(T,E)===Fr(M,E)}else return T===M},d=(T,M)=>{const{valueKey:E}=r.props;return r.props.multiple?c(T,Fr(M,E)):f(T,Fr(M,E))},h=(T,M)=>{const{disabled:E,multiple:A,multipleLimit:k}=r.props;return E||!M&&(A?k>0&&T.length>=k:!1)},p=T=>t.hoveringIndex===T;n({listRef:o,isSized:l,isItemDisabled:h,isItemHovering:p,isItemSelected:d,scrollToItem:T=>{const M=o.value;M&&M.scrollToItem(T)},resetScrollTop:()=>{const T=o.value;T&&T.resetScrollTop()}});const y=T=>{const{index:M,data:E,style:A}=T,k=b(l),{itemSize:L,estimatedSize:I}=b(u),{modelValue:P}=r.props,{onSelect:F,onHover:$}=r,W=E[M];if(W.type==="Group")return N(IFe,{item:W,style:A,height:k?L:I},null);const V=d(P,W),z=h(P,V),K=p(M);return N(GFe,an(T,{selected:V,disabled:W.disabled||z,created:!!W.created,hovering:K,item:W,onSelect:F,onHover:$}),{default:Z=>{var oe;return((oe=e.default)==null?void 0:oe.call(e,Z))||N("span",null,[W.label])}})},{onKeyboardNavigate:m,onKeyboardSelect:S}=r,w=()=>{m("forward")},C=()=>{m("backward")},_=()=>{r.expanded=!1},x=T=>{const{code:M}=T,{tab:E,esc:A,down:k,up:L,enter:I}=Dt;switch(M!==E&&(T.preventDefault(),T.stopPropagation()),M){case E:case A:{_();break}case k:{w();break}case L:{C();break}case I:{S();break}}};return()=>{var T;const{data:M,width:E}=t,{height:A,multiple:k,scrollbarAlwaysOn:L}=r.props;if(M.length===0)return N("div",{class:a.b("dropdown"),style:{width:`${E}px`}},[(T=e.empty)==null?void 0:T.call(e)]);const I=b(l)?iQ:MFe;return N("div",{class:[a.b("dropdown"),a.is("multiple",k)]},[N(I,an({ref:o},b(u),{className:a.be("dropdown","list"),scrollbarAlwaysOn:L,data:M,height:A,width:E,total:M.length,onKeydown:x}),{default:P=>N(y,P,null)})])}}});function WFe(t,e){const n=B(0),r=B(null),a=U(()=>t.allowCreate&&t.filterable);function i(c){const f=d=>d.value===c;return t.options&&t.options.some(f)||e.createdOptions.some(f)}function o(c){a.value&&(t.multiple&&c.created?n.value++:r.value=c)}function s(c){if(a.value)if(c&&c.length>0&&!i(c)){const f={value:c,label:c,created:!0,disabled:!1};e.createdOptions.length>=n.value?e.createdOptions[n.value]=f:e.createdOptions.push(f)}else if(t.multiple)e.createdOptions.length=n.value;else{const f=r.value;e.createdOptions.length=0,f&&f.created&&e.createdOptions.push(f)}}function l(c){if(!a.value||!c||!c.created||c.created&&t.reserveKeyword&&e.inputValue===c.label)return;const f=e.createdOptions.findIndex(d=>d.value===c.value);~f&&(e.createdOptions.splice(f,1),n.value--)}function u(){a.value&&(e.createdOptions.length=0,n.value=0)}return{createNewOption:s,removeNewOption:l,selectNewOption:o,clearAllNewOption:u}}const jFe=t=>{const e=[];return t.forEach(n=>{gt(n.options)?(e.push({label:n.label,isTitle:!0,type:"Group"}),n.options.forEach(r=>{e.push(r)}),e.push({type:"Group"})):e.push(n)}),e};function KFe(t){const e=B(!1);return{handleCompositionStart:()=>{e.value=!0},handleCompositionUpdate:i=>{const o=i.target.value,s=o[o.length-1]||"";e.value=!wT(s)},handleCompositionEnd:i=>{e.value&&(e.value=!1,zt(t)&&t(i))}}}const l8="",u8=11,YFe={larget:51,default:42,small:33},XFe=(t,e)=>{const{t:n}=En(),r=Ye("select-v2"),a=Ye("input"),{form:i,formItem:o}=uo(),s=Vn({inputValue:l8,displayInputValue:l8,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}),l=B(-1),u=B(-1),c=B(null),f=B(null),d=B(null),h=B(null),p=B(null),v=B(null),g=B(null),y=B(!1),m=U(()=>t.disabled||(i==null?void 0:i.disabled)),S=U(()=>{const Ae=k.value.length*34;return Ae>t.height?t.height:Ae}),w=U(()=>!Ta(t.modelValue)),C=U(()=>{const Ae=t.multiple?Array.isArray(t.modelValue)&&t.modelValue.length>0:w.value;return t.clearable&&!m.value&&s.comboBoxHovering&&Ae}),_=U(()=>t.remote&&t.filterable?"":yT),x=U(()=>_.value&&r.is("reverse",y.value)),T=U(()=>(o==null?void 0:o.validateState)||""),M=U(()=>F4[T.value]),E=U(()=>t.remote?300:0),A=U(()=>{const Ae=k.value;return t.loading?t.loadingText||n("el.select.loading"):t.remote&&s.inputValue===""&&Ae.length===0?!1:t.filterable&&s.inputValue&&Ae.length>0?t.noMatchText||n("el.select.noMatch"):Ae.length===0?t.noDataText||n("el.select.noData"):null}),k=U(()=>{const Ae=rt=>{const Rt=s.inputValue,pn=new RegExp(tX(Rt),"i");return Rt?pn.test(rt.label||""):!0};return t.loading?[]:jFe(t.options.concat(s.createdOptions).map(rt=>{if(gt(rt.options)){const Rt=rt.options.filter(Ae);if(Rt.length>0)return{...rt,options:Rt}}else if(t.remote||Ae(rt))return rt;return null}).filter(rt=>rt!==null))}),L=U(()=>{const Ae=new Map;return k.value.forEach((rt,Rt)=>{Ae.set(Ce(rt),{option:rt,index:Rt})}),Ae}),I=U(()=>k.value.every(Ae=>Ae.disabled)),P=Aa(),F=U(()=>P.value==="small"?"small":"default"),$=U(()=>{const Ae=v.value,rt=F.value||"default",Rt=Ae?Number.parseInt(getComputedStyle(Ae).paddingLeft):0,pn=Ae?Number.parseInt(getComputedStyle(Ae).paddingRight):0;return s.selectWidth-pn-Rt-YFe[rt]}),W=()=>{var Ae;u.value=((Ae=p.value)==null?void 0:Ae.offsetWidth)||200},V=U(()=>({width:`${s.calculatedWidth===0?u8:Math.ceil(s.calculatedWidth)+u8}px`})),z=U(()=>gt(t.modelValue)?t.modelValue.length===0&&!s.displayInputValue:t.filterable?s.displayInputValue.length===0:!0),K=U(()=>{const Ae=t.placeholder||n("el.select.placeholder");return t.multiple||Ta(t.modelValue)?Ae:s.selectedLabel}),Z=U(()=>{var Ae,rt;return(rt=(Ae=h.value)==null?void 0:Ae.popperRef)==null?void 0:rt.contentRef}),oe=U(()=>{if(t.multiple){const Ae=t.modelValue.length;if(t.modelValue.length>0&&L.value.has(t.modelValue[Ae-1])){const{index:rt}=L.value.get(t.modelValue[Ae-1]);return rt}}else if(t.modelValue&&L.value.has(t.modelValue)){const{index:Ae}=L.value.get(t.modelValue);return Ae}return-1}),ge=U({get(){return y.value&&A.value!==!1},set(Ae){y.value=Ae}}),ie=U(()=>s.cachedOptions.slice(0,t.maxCollapseTags)),Q=U(()=>s.cachedOptions.slice(t.maxCollapseTags)),{createNewOption:ce,removeNewOption:se,selectNewOption:me,clearAllNewOption:ve}=WFe(t,s),{handleCompositionStart:he,handleCompositionUpdate:ee,handleCompositionEnd:ue}=KFe(Ae=>Nn(Ae)),fe=()=>{var Ae,rt,Rt;(rt=(Ae=f.value)==null?void 0:Ae.focus)==null||rt.call(Ae),(Rt=h.value)==null||Rt.updatePopper()},Re=()=>{if(!t.automaticDropdown&&!m.value)return s.isComposing&&(s.softFocus=!0),xt(()=>{var Ae,rt;y.value=!y.value,(rt=(Ae=f.value)==null?void 0:Ae.focus)==null||rt.call(Ae)})},Ne=()=>(t.filterable&&s.inputValue!==s.selectedLabel&&(s.query=s.selectedLabel),we(s.inputValue),xt(()=>{ce(s.inputValue)})),De=ao(Ne,E.value),we=Ae=>{s.previousQuery!==Ae&&(s.previousQuery=Ae,t.filterable&&zt(t.filterMethod)?t.filterMethod(Ae):t.filterable&&t.remote&&zt(t.remoteMethod)&&t.remoteMethod(Ae))},ae=Ae=>{To(t.modelValue,Ae)||e(Ar,Ae)},Ie=Ae=>{e(nn,Ae),ae(Ae),s.previousValue=Ae==null?void 0:Ae.toString()},He=(Ae=[],rt)=>{if(!un(rt))return Ae.indexOf(rt);const Rt=t.valueKey;let pn=-1;return Ae.some((Nr,Ir)=>Fr(Nr,Rt)===Fr(rt,Rt)?(pn=Ir,!0):!1),pn},Ce=Ae=>un(Ae)?Fr(Ae,t.valueKey):Ae,qe=Ae=>un(Ae)?Ae.label:Ae,Ze=()=>xt(()=>{var Ae,rt;if(!f.value)return;const Rt=v.value;p.value.height=Rt.offsetHeight,y.value&&A.value!==!1&&((rt=(Ae=h.value)==null?void 0:Ae.updatePopper)==null||rt.call(Ae))}),de=()=>{var Ae,rt;if(Xe(),W(),(rt=(Ae=h.value)==null?void 0:Ae.updatePopper)==null||rt.call(Ae),t.multiple)return Ze()},Xe=()=>{const Ae=v.value;Ae&&(s.selectWidth=Ae.getBoundingClientRect().width)},mt=(Ae,rt,Rt=!0)=>{var pn,Nr;if(t.multiple){let Ir=t.modelValue.slice();const Br=He(Ir,Ce(Ae));Br>-1?(Ir=[...Ir.slice(0,Br),...Ir.slice(Br+1)],s.cachedOptions.splice(Br,1),se(Ae)):(t.multipleLimit<=0||Ir.length<t.multipleLimit)&&(Ir=[...Ir,Ce(Ae)],s.cachedOptions.push(Ae),me(Ae),Tt(rt)),Ie(Ir),Ae.created&&(s.query="",we(""),s.inputLength=20),t.filterable&&!t.reserveKeyword&&((Nr=(pn=f.value).focus)==null||Nr.call(pn),Pe("")),t.filterable&&(s.calculatedWidth=g.value.getBoundingClientRect().width),Ze(),Kn()}else l.value=rt,s.selectedLabel=Ae.label,Ie(Ce(Ae)),y.value=!1,s.isComposing=!1,s.isSilentBlur=Rt,me(Ae),Ae.created||ve(),Tt(rt)},kt=(Ae,rt)=>{const{valueKey:Rt}=t,pn=t.modelValue.indexOf(Fr(rt,Rt));if(pn>-1&&!m.value){const Nr=[...t.modelValue.slice(0,pn),...t.modelValue.slice(pn+1)];return s.cachedOptions.splice(pn,1),Ie(Nr),e("remove-tag",Fr(rt,Rt)),s.softFocus=!0,se(rt),xt(fe)}Ae.stopPropagation()},Vt=Ae=>{const rt=s.isComposing;s.isComposing=!0,s.softFocus?s.softFocus=!1:rt||e("focus",Ae)},dt=Ae=>(s.softFocus=!1,xt(()=>{var rt,Rt;(Rt=(rt=f.value)==null?void 0:rt.blur)==null||Rt.call(rt),g.value&&(s.calculatedWidth=g.value.getBoundingClientRect().width),s.isSilentBlur?s.isSilentBlur=!1:s.isComposing&&e("blur",Ae),s.isComposing=!1})),Oe=()=>{s.displayInputValue.length>0?Pe(""):y.value=!1},be=Ae=>{if(s.displayInputValue.length===0){Ae.preventDefault();const rt=t.modelValue.slice();rt.pop(),se(s.cachedOptions.pop()),Ie(rt)}},xe=()=>{let Ae;return gt(t.modelValue)?Ae=[]:Ae=void 0,s.softFocus=!0,t.multiple?s.cachedOptions=[]:s.selectedLabel="",y.value=!1,Ie(Ae),e("clear"),ve(),xt(fe)},Pe=Ae=>{s.displayInputValue=Ae,s.inputValue=Ae},pe=(Ae,rt=void 0)=>{const Rt=k.value;if(!["forward","backward"].includes(Ae)||m.value||Rt.length<=0||I.value)return;if(!y.value)return Re();rt===void 0&&(rt=s.hoveringIndex);let pn=-1;Ae==="forward"?(pn=rt+1,pn>=Rt.length&&(pn=0)):Ae==="backward"&&(pn=rt-1,(pn<0||pn>=Rt.length)&&(pn=Rt.length-1));const Nr=Rt[pn];if(Nr.disabled||Nr.type==="Group")return pe(Ae,pn);Tt(pn),Ue(pn)},it=()=>{if(y.value)~s.hoveringIndex&&k.value[s.hoveringIndex]&&mt(k.value[s.hoveringIndex],s.hoveringIndex,!1);else return Re()},Tt=Ae=>{s.hoveringIndex=Ae},Wt=()=>{s.hoveringIndex=-1},Kn=()=>{var Ae;const rt=f.value;rt&&((Ae=rt.focus)==null||Ae.call(rt))},Nn=Ae=>{const rt=Ae.target.value;if(Pe(rt),s.displayInputValue.length>0&&!y.value&&(y.value=!0),s.calculatedWidth=g.value.getBoundingClientRect().width,t.multiple&&Ze(),t.remote)De();else return Ne()},fr=()=>(y.value=!1,dt()),wr=()=>(s.inputValue=s.displayInputValue,xt(()=>{~oe.value&&(Tt(oe.value),Ue(s.hoveringIndex))})),Ue=Ae=>{d.value.scrollToItem(Ae)},ot=()=>{if(Wt(),t.multiple)if(t.modelValue.length>0){let Ae=!1;s.cachedOptions.length=0,s.previousValue=t.modelValue.toString();for(const rt of t.modelValue)if(L.value.has(rt)){const{index:Rt,option:pn}=L.value.get(rt);s.cachedOptions.push(pn),Ae||Tt(Rt),Ae=!0}}else s.cachedOptions=[],s.previousValue=void 0;else if(w.value){s.previousValue=t.modelValue;const Ae=k.value,rt=Ae.findIndex(Rt=>Ce(Rt)===Ce(t.modelValue));~rt?(s.selectedLabel=Ae[rt].label,Tt(rt)):s.selectedLabel=`${t.modelValue}`}else s.selectedLabel="",s.previousValue=void 0;ve(),W()};return Ke(y,Ae=>{var rt,Rt;e("visible-change",Ae),Ae?(Rt=(rt=h.value).update)==null||Rt.call(rt):(s.displayInputValue="",s.previousQuery=null,ce(""))}),Ke(()=>t.modelValue,(Ae,rt)=>{var Rt;(!Ae||Ae.toString()!==s.previousValue)&&ot(),!To(Ae,rt)&&t.validateEvent&&((Rt=o==null?void 0:o.validate)==null||Rt.call(o,"change").catch(pn=>void 0))},{deep:!0}),Ke(()=>t.options,()=>{const Ae=f.value;(!Ae||Ae&&document.activeElement!==Ae)&&ot()},{deep:!0}),Ke(k,()=>xt(d.value.resetScrollTop)),Ke(()=>ge.value,Ae=>{Ae||Wt()}),Ut(()=>{ot()}),Vi(p,de),{collapseTagSize:F,currentPlaceholder:K,expanded:y,emptyText:A,popupHeight:S,debounce:E,filteredOptions:k,iconComponent:_,iconReverse:x,inputWrapperStyle:V,popperSize:u,dropdownMenuVisible:ge,hasModelValue:w,shouldShowPlaceholder:z,selectDisabled:m,selectSize:P,showClearBtn:C,states:s,tagMaxWidth:$,nsSelectV2:r,nsInput:a,calculatorRef:g,controlRef:c,inputRef:f,menuRef:d,popper:h,selectRef:p,selectionRef:v,popperRef:Z,validateState:T,validateIcon:M,showTagList:ie,collapseTagList:Q,debouncedOnInputChange:De,deleteTag:kt,getLabel:qe,getValueKey:Ce,handleBlur:dt,handleClear:xe,handleClickOutside:fr,handleDel:be,handleEsc:Oe,handleFocus:Vt,handleMenuEnter:wr,handleResize:de,toggleMenu:Re,scrollTo:Ue,onInput:Nn,onKeyboardNavigate:pe,onKeyboardSelect:it,onSelect:mt,onHover:Tt,onUpdateInputValue:Pe,handleCompositionStart:he,handleCompositionEnd:ue,handleCompositionUpdate:ee}},qFe=ye({name:"ElSelectV2",components:{ElSelectMenu:HFe,ElTag:T1,ElTooltip:io,ElIcon:_t},directives:{ClickOutside:Wf,ModelText:u4},props:$Fe,emits:[nn,Ar,"remove-tag","clear","visible-change","focus","blur"],setup(t,{emit:e}){const n=U(()=>{const{modelValue:a,multiple:i}=t,o=i?[]:void 0;return gt(a)?i?a:o:i?o:a}),r=XFe(Vn({...Wa(t),modelValue:n}),e);return fn(hQ,{props:Vn({...Wa(t),height:r.popupHeight,modelValue:n}),popper:r.popper,onSelect:r.onSelect,onHover:r.onHover,onKeyboardNavigate:r.onKeyboardNavigate,onKeyboardSelect:r.onKeyboardSelect}),{...r,modelValue:n}}}),ZFe={key:0},QFe=["id","autocomplete","aria-expanded","aria-labelledby","disabled","readonly","name","unselectable"],JFe=["textContent"],e5e=["id","aria-labelledby","aria-expanded","autocomplete","disabled","name","readonly","unselectable"],t5e=["textContent"];function n5e(t,e,n,r,a,i){const o=$e("el-tag"),s=$e("el-tooltip"),l=$e("el-icon"),u=$e("el-select-menu"),c=i1("model-text"),f=i1("click-outside");return Ft((G(),re("div",{ref:"selectRef",class:Y([t.nsSelectV2.b(),t.nsSelectV2.m(t.selectSize)]),onClick:e[24]||(e[24]=It((...d)=>t.toggleMenu&&t.toggleMenu(...d),["stop"])),onMouseenter:e[25]||(e[25]=d=>t.states.comboBoxHovering=!0),onMouseleave:e[26]||(e[26]=d=>t.states.comboBoxHovering=!1)},[N(s,{ref:"popper",visible:t.dropdownMenuVisible,teleported:t.teleported,"popper-class":[t.nsSelectV2.e("popper"),t.popperClass],"gpu-acceleration":!1,"stop-popper-mouse-event":!1,"popper-options":t.popperOptions,"fallback-placements":["bottom-start","top-start","right","left"],effect:t.effect,placement:t.placement,pure:"",transition:`${t.nsSelectV2.namespace.value}-zoom-in-top`,trigger:"click",persistent:t.persistent,onBeforeShow:t.handleMenuEnter,onHide:e[23]||(e[23]=d=>t.states.inputValue=t.states.displayInputValue)},{default:j(()=>[R("div",{ref:"selectionRef",class:Y([t.nsSelectV2.e("wrapper"),t.nsSelectV2.is("focused",t.states.isComposing||t.expanded),t.nsSelectV2.is("hovering",t.states.comboBoxHovering),t.nsSelectV2.is("filterable",t.filterable),t.nsSelectV2.is("disabled",t.selectDisabled)])},[t.$slots.prefix?(G(),re("div",ZFe,[Ge(t.$slots,"prefix")])):_e("v-if",!0),t.multiple?(G(),re("div",{key:1,class:Y(t.nsSelectV2.e("selection"))},[t.collapseTags&&t.modelValue.length>0?(G(),re(Ct,{key:0},[(G(!0),re(Ct,null,dn(t.showTagList,d=>(G(),re("div",{key:t.getValueKey(d),class:Y(t.nsSelectV2.e("selected-item"))},[N(o,{closable:!t.selectDisabled&&!(d!=null&&d.disable),size:t.collapseTagSize,type:"info","disable-transitions":"",onClose:h=>t.deleteTag(h,d)},{default:j(()=>[R("span",{class:Y(t.nsSelectV2.e("tags-text")),style:Et({maxWidth:`${t.tagMaxWidth}px`})},We(d==null?void 0:d.label),7)]),_:2},1032,["closable","size","onClose"])],2))),128)),R("div",{class:Y(t.nsSelectV2.e("selected-item"))},[t.modelValue.length>t.maxCollapseTags?(G(),Ee(o,{key:0,closable:!1,size:t.collapseTagSize,type:"info","disable-transitions":""},{default:j(()=>[t.collapseTagsTooltip?(G(),Ee(s,{key:0,disabled:t.dropdownMenuVisible,"fallback-placements":["bottom","top","right","left"],effect:t.effect,placement:"bottom",teleported:!1},{default:j(()=>[R("span",{class:Y(t.nsSelectV2.e("tags-text")),style:Et({maxWidth:`${t.tagMaxWidth}px`})},"+ "+We(t.modelValue.length-t.maxCollapseTags),7)]),content:j(()=>[R("div",{class:Y(t.nsSelectV2.e("selection"))},[(G(!0),re(Ct,null,dn(t.collapseTagList,d=>(G(),re("div",{key:t.getValueKey(d),class:Y(t.nsSelectV2.e("selected-item"))},[N(o,{closable:!t.selectDisabled&&!d.disabled,size:t.collapseTagSize,class:"in-tooltip",type:"info","disable-transitions":"",onClose:h=>t.deleteTag(h,d)},{default:j(()=>[R("span",{class:Y(t.nsSelectV2.e("tags-text")),style:Et({maxWidth:`${t.tagMaxWidth}px`})},We(t.getLabel(d)),7)]),_:2},1032,["closable","size","onClose"])],2))),128))],2)]),_:1},8,["disabled","effect"])):(G(),re("span",{key:1,class:Y(t.nsSelectV2.e("tags-text")),style:Et({maxWidth:`${t.tagMaxWidth}px`})},"+ "+We(t.modelValue.length-t.maxCollapseTags),7))]),_:1},8,["size"])):_e("v-if",!0)],2)],64)):(G(!0),re(Ct,{key:1},dn(t.states.cachedOptions,d=>(G(),re("div",{key:t.getValueKey(d),class:Y(t.nsSelectV2.e("selected-item"))},[N(o,{closable:!t.selectDisabled&&!d.disabled,size:t.collapseTagSize,type:"info","disable-transitions":"",onClose:h=>t.deleteTag(h,d)},{default:j(()=>[R("span",{class:Y(t.nsSelectV2.e("tags-text")),style:Et({maxWidth:`${t.tagMaxWidth}px`})},We(t.getLabel(d)),7)]),_:2},1032,["closable","size","onClose"])],2))),128)),R("div",{class:Y([t.nsSelectV2.e("selected-item"),t.nsSelectV2.e("input-wrapper")]),style:Et(t.inputWrapperStyle)},[Ft(R("input",{id:t.id,ref:"inputRef",autocomplete:t.autocomplete,"aria-autocomplete":"list","aria-haspopup":"listbox",autocapitalize:"off","aria-expanded":t.expanded,"aria-labelledby":t.label,class:Y([t.nsSelectV2.is(t.selectSize),t.nsSelectV2.e("combobox-input")]),disabled:t.disabled,role:"combobox",readonly:!t.filterable,spellcheck:"false",type:"text",name:t.name,unselectable:t.expanded?"on":void 0,"onUpdate:modelValue":e[0]||(e[0]=(...d)=>t.onUpdateInputValue&&t.onUpdateInputValue(...d)),onFocus:e[1]||(e[1]=(...d)=>t.handleFocus&&t.handleFocus(...d)),onBlur:e[2]||(e[2]=(...d)=>t.handleBlur&&t.handleBlur(...d)),onInput:e[3]||(e[3]=(...d)=>t.onInput&&t.onInput(...d)),onCompositionstart:e[4]||(e[4]=(...d)=>t.handleCompositionStart&&t.handleCompositionStart(...d)),onCompositionupdate:e[5]||(e[5]=(...d)=>t.handleCompositionUpdate&&t.handleCompositionUpdate(...d)),onCompositionend:e[6]||(e[6]=(...d)=>t.handleCompositionEnd&&t.handleCompositionEnd(...d)),onKeydown:[e[7]||(e[7]=Tn(It(d=>t.onKeyboardNavigate("backward"),["stop","prevent"]),["up"])),e[8]||(e[8]=Tn(It(d=>t.onKeyboardNavigate("forward"),["stop","prevent"]),["down"])),e[9]||(e[9]=Tn(It((...d)=>t.onKeyboardSelect&&t.onKeyboardSelect(...d),["stop","prevent"]),["enter"])),e[10]||(e[10]=Tn(It((...d)=>t.handleEsc&&t.handleEsc(...d),["stop","prevent"]),["esc"])),e[11]||(e[11]=Tn(It((...d)=>t.handleDel&&t.handleDel(...d),["stop"]),["delete"]))]},null,42,QFe),[[c,t.states.displayInputValue]]),t.filterable?(G(),re("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:Y(t.nsSelectV2.e("input-calculator")),textContent:We(t.states.displayInputValue)},null,10,JFe)):_e("v-if",!0)],6)],2)):(G(),re(Ct,{key:2},[R("div",{class:Y([t.nsSelectV2.e("selected-item"),t.nsSelectV2.e("input-wrapper")])},[Ft(R("input",{id:t.id,ref:"inputRef","aria-autocomplete":"list","aria-haspopup":"listbox","aria-labelledby":t.label,"aria-expanded":t.expanded,autocapitalize:"off",autocomplete:t.autocomplete,class:Y(t.nsSelectV2.e("combobox-input")),disabled:t.disabled,name:t.name,role:"combobox",readonly:!t.filterable,spellcheck:"false",type:"text",unselectable:t.expanded?"on":void 0,onCompositionstart:e[12]||(e[12]=(...d)=>t.handleCompositionStart&&t.handleCompositionStart(...d)),onCompositionupdate:e[13]||(e[13]=(...d)=>t.handleCompositionUpdate&&t.handleCompositionUpdate(...d)),onCompositionend:e[14]||(e[14]=(...d)=>t.handleCompositionEnd&&t.handleCompositionEnd(...d)),onFocus:e[15]||(e[15]=(...d)=>t.handleFocus&&t.handleFocus(...d)),onBlur:e[16]||(e[16]=(...d)=>t.handleBlur&&t.handleBlur(...d)),onInput:e[17]||(e[17]=(...d)=>t.onInput&&t.onInput(...d)),onKeydown:[e[18]||(e[18]=Tn(It(d=>t.onKeyboardNavigate("backward"),["stop","prevent"]),["up"])),e[19]||(e[19]=Tn(It(d=>t.onKeyboardNavigate("forward"),["stop","prevent"]),["down"])),e[20]||(e[20]=Tn(It((...d)=>t.onKeyboardSelect&&t.onKeyboardSelect(...d),["stop","prevent"]),["enter"])),e[21]||(e[21]=Tn(It((...d)=>t.handleEsc&&t.handleEsc(...d),["stop","prevent"]),["esc"]))],"onUpdate:modelValue":e[22]||(e[22]=(...d)=>t.onUpdateInputValue&&t.onUpdateInputValue(...d))},null,42,e5e),[[c,t.states.displayInputValue]])],2),t.filterable?(G(),re("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:Y([t.nsSelectV2.e("selected-item"),t.nsSelectV2.e("input-calculator")]),textContent:We(t.states.displayInputValue)},null,10,t5e)):_e("v-if",!0)],64)),t.shouldShowPlaceholder?(G(),re("span",{key:3,class:Y([t.nsSelectV2.e("placeholder"),t.nsSelectV2.is("transparent",t.multiple?t.modelValue.length===0:!t.hasModelValue)])},We(t.currentPlaceholder),3)):_e("v-if",!0),R("span",{class:Y(t.nsSelectV2.e("suffix"))},[t.iconComponent?Ft((G(),Ee(l,{key:0,class:Y([t.nsSelectV2.e("caret"),t.nsInput.e("icon"),t.iconReverse])},{default:j(()=>[(G(),Ee(on(t.iconComponent)))]),_:1},8,["class"])),[[cn,!t.showClearBtn]]):_e("v-if",!0),t.showClearBtn&&t.clearIcon?(G(),Ee(l,{key:1,class:Y([t.nsSelectV2.e("caret"),t.nsInput.e("icon")]),onClick:It(t.handleClear,["prevent","stop"])},{default:j(()=>[(G(),Ee(on(t.clearIcon)))]),_:1},8,["class","onClick"])):_e("v-if",!0),t.validateState&&t.validateIcon?(G(),Ee(l,{key:2,class:Y([t.nsInput.e("icon"),t.nsInput.e("validateIcon")])},{default:j(()=>[(G(),Ee(on(t.validateIcon)))]),_:1},8,["class"])):_e("v-if",!0)],2)],2)]),content:j(()=>[N(u,{ref:"menuRef",data:t.filteredOptions,width:t.popperSize,"hovering-index":t.states.hoveringIndex,"scrollbar-always-on":t.scrollbarAlwaysOn},{default:j(d=>[Ge(t.$slots,"default",rl(eT(d)))]),empty:j(()=>[Ge(t.$slots,"empty",{},()=>[R("p",{class:Y(t.nsSelectV2.e("empty"))},We(t.emptyText?t.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,t.handleClickOutside,t.popperRef]])}var i_=tt(qFe,[["render",n5e],["__file","/home/runner/work/element-plus/element-plus/packages/components/select-v2/src/select.vue"]]);i_.install=t=>{t.component(i_.name,i_)};const r5e=i_,a5e=r5e,i5e=nt({animated:{type:Boolean,default:!1},count:{type:Number,default:1},rows:{type:Number,default:3},loading:{type:Boolean,default:!0},throttle:{type:Number}}),o5e=nt({variant:{type:String,values:["circle","rect","h1","h3","text","caption","p","image","button"],default:"text"}}),s5e=ye({name:"ElSkeletonItem"}),l5e=ye({...s5e,props:o5e,setup(t){const e=Ye("skeleton");return(n,r)=>(G(),re("div",{class:Y([b(e).e("item"),b(e).e(n.variant)])},[n.variant==="image"?(G(),Ee(b(dCe),{key:0})):_e("v-if",!0)],2))}});var b2=tt(l5e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/skeleton/src/skeleton-item.vue"]]);const u5e=ye({name:"ElSkeleton"}),c5e=ye({...u5e,props:i5e,setup(t,{expose:e}){const n=t,r=Ye("skeleton"),a=fMe(Wr(n,"loading"),n.throttle);return e({uiLoading:a}),(i,o)=>b(a)?(G(),re("div",an({key:0,class:[b(r).b(),b(r).is("animated",i.animated)]},i.$attrs),[(G(!0),re(Ct,null,dn(i.count,s=>(G(),re(Ct,{key:s},[i.loading?Ge(i.$slots,"template",{key:s},()=>[N(b2,{class:Y(b(r).is("first")),variant:"p"},null,8,["class"]),(G(!0),re(Ct,null,dn(i.rows,l=>(G(),Ee(b2,{key:l,class:Y([b(r).e("paragraph"),b(r).is("last",l===i.rows&&i.rows>1)]),variant:"p"},null,8,["class"]))),128))]):_e("v-if",!0)],64))),128))],16)):Ge(i.$slots,"default",rl(an({key:1},i.$attrs)))}});var f5e=tt(c5e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/skeleton/src/skeleton.vue"]]);const d5e=tn(f5e,{SkeletonItem:b2}),h5e=ta(b2),pQ=Symbol("sliderContextKey"),p5e=nt({modelValue:{type:ke([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:yi,inputSize:yi,showStops:Boolean,showTooltip:{type:Boolean,default:!0},formatTooltip:{type:ke(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:ke(Function),default:void 0},tooltipClass:{type:String,default:void 0},placement:{type:String,values:Lp,default:"top"},marks:{type:ke(Object)},validateEvent:{type:Boolean,default:!0}}),$M=t=>Pt(t)||gt(t)&&t.every(Pt),v5e={[nn]:$M,[Ji]:$M,[Ar]:$M},g5e=(t,e,n)=>{const r=B();return Ut(async()=>{t.range?(Array.isArray(t.modelValue)?(e.firstValue=Math.max(t.min,t.modelValue[0]),e.secondValue=Math.min(t.max,t.modelValue[1])):(e.firstValue=t.min,e.secondValue=t.max),e.oldValue=[e.firstValue,e.secondValue]):(typeof t.modelValue!="number"||Number.isNaN(t.modelValue)?e.firstValue=t.min:e.firstValue=Math.min(t.max,Math.max(t.min,t.modelValue)),e.oldValue=e.firstValue),Or(window,"resize",n),await xt(),n()}),{sliderWrapper:r}},y5e=t=>U(()=>t.marks?Object.keys(t.marks).map(Number.parseFloat).sort((n,r)=>n-r).filter(n=>n<=t.max&&n>=t.min).map(n=>({point:n,position:(n-t.min)*100/(t.max-t.min),mark:t.marks[n]})):[]),m5e=(t,e,n)=>{const{form:r,formItem:a}=uo(),i=vr(),o=B(),s=B(),l={firstButton:o,secondButton:s},u=U(()=>t.disabled||(r==null?void 0:r.disabled)||!1),c=U(()=>Math.min(e.firstValue,e.secondValue)),f=U(()=>Math.max(e.firstValue,e.secondValue)),d=U(()=>t.range?`${100*(f.value-c.value)/(t.max-t.min)}%`:`${100*(e.firstValue-t.min)/(t.max-t.min)}%`),h=U(()=>t.range?`${100*(c.value-t.min)/(t.max-t.min)}%`:"0%"),p=U(()=>t.vertical?{height:t.height}:{}),v=U(()=>t.vertical?{height:d.value,bottom:h.value}:{width:d.value,left:h.value}),g=()=>{i.value&&(e.sliderSize=i.value[`client${t.vertical?"Height":"Width"}`])},y=A=>{const k=t.min+A*(t.max-t.min)/100;if(!t.range)return o;let L;return Math.abs(c.value-k)<Math.abs(f.value-k)?L=e.firstValue<e.secondValue?"firstButton":"secondButton":L=e.firstValue>e.secondValue?"firstButton":"secondButton",l[L]},m=A=>{const k=y(A);return k.value.setPosition(A),k},S=A=>{e.firstValue=A,C(t.range?[c.value,f.value]:A)},w=A=>{e.secondValue=A,t.range&&C([c.value,f.value])},C=A=>{n(nn,A),n(Ji,A)},_=async()=>{await xt(),n(Ar,t.range?[c.value,f.value]:t.modelValue)},x=A=>{var k,L,I,P,F,$;if(u.value||e.dragging)return;g();let W=0;if(t.vertical){const V=(I=(L=(k=A.touches)==null?void 0:k.item(0))==null?void 0:L.clientY)!=null?I:A.clientY;W=(i.value.getBoundingClientRect().bottom-V)/e.sliderSize*100}else{const V=($=(F=(P=A.touches)==null?void 0:P.item(0))==null?void 0:F.clientX)!=null?$:A.clientX,z=i.value.getBoundingClientRect().left;W=(V-z)/e.sliderSize*100}if(!(W<0||W>100))return m(W)};return{elFormItem:a,slider:i,firstButton:o,secondButton:s,sliderDisabled:u,minValue:c,maxValue:f,runwayStyle:p,barStyle:v,resetSize:g,setPosition:m,emitChange:_,onSliderWrapperPrevent:A=>{var k,L;((k=l.firstButton.value)!=null&&k.dragging||(L=l.secondButton.value)!=null&&L.dragging)&&A.preventDefault()},onSliderClick:A=>{x(A)&&_()},onSliderDown:async A=>{const k=x(A);k&&(await xt(),k.value.onButtonDown(A))},setFirstValue:S,setSecondValue:w}},{left:b5e,down:S5e,right:w5e,up:x5e,home:_5e,end:C5e,pageUp:T5e,pageDown:E5e}=Dt,M5e=(t,e,n)=>{const r=B(),a=B(!1),i=U(()=>e.value instanceof Function),o=U(()=>i.value&&e.value(t.modelValue)||t.modelValue),s=ao(()=>{n.value&&(a.value=!0)},50),l=ao(()=>{n.value&&(a.value=!1)},50);return{tooltip:r,tooltipVisible:a,formatValue:o,displayTooltip:s,hideTooltip:l}},D5e=(t,e,n)=>{const{disabled:r,min:a,max:i,step:o,showTooltip:s,precision:l,sliderSize:u,formatTooltip:c,emitChange:f,resetSize:d,updateDragging:h}=yt(pQ),{tooltip:p,tooltipVisible:v,formatValue:g,displayTooltip:y,hideTooltip:m}=M5e(t,c,s),S=B(),w=U(()=>`${(t.modelValue-a.value)/(i.value-a.value)*100}%`),C=U(()=>t.vertical?{bottom:w.value}:{left:w.value}),_=()=>{e.hovering=!0,y()},x=()=>{e.hovering=!1,e.dragging||m()},T=Z=>{r.value||(Z.preventDefault(),W(Z),window.addEventListener("mousemove",V),window.addEventListener("touchmove",V),window.addEventListener("mouseup",z),window.addEventListener("touchend",z),window.addEventListener("contextmenu",z),S.value.focus())},M=Z=>{r.value||(e.newPosition=Number.parseFloat(w.value)+Z/(i.value-a.value)*100,K(e.newPosition),f())},E=()=>{M(-o.value)},A=()=>{M(o.value)},k=()=>{M(-o.value*4)},L=()=>{M(o.value*4)},I=()=>{r.value||(K(0),f())},P=()=>{r.value||(K(100),f())},F=Z=>{let oe=!0;[b5e,S5e].includes(Z.key)?E():[w5e,x5e].includes(Z.key)?A():Z.key===_5e?I():Z.key===C5e?P():Z.key===E5e?k():Z.key===T5e?L():oe=!1,oe&&Z.preventDefault()},$=Z=>{let oe,ge;return Z.type.startsWith("touch")?(ge=Z.touches[0].clientY,oe=Z.touches[0].clientX):(ge=Z.clientY,oe=Z.clientX),{clientX:oe,clientY:ge}},W=Z=>{e.dragging=!0,e.isClick=!0;const{clientX:oe,clientY:ge}=$(Z);t.vertical?e.startY=ge:e.startX=oe,e.startPosition=Number.parseFloat(w.value),e.newPosition=e.startPosition},V=Z=>{if(e.dragging){e.isClick=!1,y(),d();let oe;const{clientX:ge,clientY:ie}=$(Z);t.vertical?(e.currentY=ie,oe=(e.startY-e.currentY)/u.value*100):(e.currentX=ge,oe=(e.currentX-e.startX)/u.value*100),e.newPosition=e.startPosition+oe,K(e.newPosition)}},z=()=>{e.dragging&&(setTimeout(()=>{e.dragging=!1,e.hovering||m(),e.isClick||K(e.newPosition),f()},0),window.removeEventListener("mousemove",V),window.removeEventListener("touchmove",V),window.removeEventListener("mouseup",z),window.removeEventListener("touchend",z),window.removeEventListener("contextmenu",z))},K=async Z=>{if(Z===null||Number.isNaN(+Z))return;Z<0?Z=0:Z>100&&(Z=100);const oe=100/((i.value-a.value)/o.value);let ie=Math.round(Z/oe)*oe*(i.value-a.value)*.01+a.value;ie=Number.parseFloat(ie.toFixed(l.value)),ie!==t.modelValue&&n(nn,ie),!e.dragging&&t.modelValue!==e.oldValue&&(e.oldValue=t.modelValue),await xt(),e.dragging&&y(),p.value.updatePopper()};return Ke(()=>e.dragging,Z=>{h(Z)}),{disabled:r,button:S,tooltip:p,tooltipVisible:v,showTooltip:s,wrapperStyle:C,formatValue:g,handleMouseEnter:_,handleMouseLeave:x,onButtonDown:T,onKeyDown:F,setPosition:K}},A5e=(t,e,n,r)=>({stops:U(()=>{if(!t.showStops||t.min>t.max)return[];if(t.step===0)return[];const o=(t.max-t.min)/t.step,s=100*t.step/(t.max-t.min),l=Array.from({length:o-1}).map((u,c)=>(c+1)*s);return t.range?l.filter(u=>u<100*(n.value-t.min)/(t.max-t.min)||u>100*(r.value-t.min)/(t.max-t.min)):l.filter(u=>u>100*(e.firstValue-t.min)/(t.max-t.min))}),getStopStyle:o=>t.vertical?{bottom:`${o}%`}:{left:`${o}%`}}),k5e=(t,e,n,r,a,i)=>{const o=u=>{a(nn,u),a(Ji,u)},s=()=>t.range?![n.value,r.value].every((u,c)=>u===e.oldValue[c]):t.modelValue!==e.oldValue,l=()=>{var u,c;t.min>t.max&&Da("Slider","min should not be greater than max.");const f=t.modelValue;t.range&&Array.isArray(f)?f[1]<t.min?o([t.min,t.min]):f[0]>t.max?o([t.max,t.max]):f[0]<t.min?o([t.min,f[1]]):f[1]>t.max?o([f[0],t.max]):(e.firstValue=f[0],e.secondValue=f[1],s()&&(t.validateEvent&&((u=i==null?void 0:i.validate)==null||u.call(i,"change").catch(d=>void 0)),e.oldValue=f.slice())):!t.range&&typeof f=="number"&&!Number.isNaN(f)&&(f<t.min?o(t.min):f>t.max?o(t.max):(e.firstValue=f,s()&&(t.validateEvent&&((c=i==null?void 0:i.validate)==null||c.call(i,"change").catch(d=>void 0)),e.oldValue=f)))};l(),Ke(()=>e.dragging,u=>{u||l()}),Ke(()=>t.modelValue,(u,c)=>{e.dragging||Array.isArray(u)&&Array.isArray(c)&&u.every((f,d)=>f===c[d])&&e.firstValue===u[0]&&e.secondValue===u[1]||l()},{deep:!0}),Ke(()=>[t.min,t.max],()=>{l()})},R5e=nt({modelValue:{type:Number,default:0},vertical:Boolean,tooltipClass:String,placement:{type:String,values:Lp,default:"top"}}),L5e={[nn]:t=>Pt(t)},O5e=["tabindex"],V5e=ye({name:"ElSliderButton"}),N5e=ye({...V5e,props:R5e,emits:L5e,setup(t,{expose:e,emit:n}){const r=t,a=Ye("slider"),i=Vn({hovering:!1,dragging:!1,isClick:!1,startX:0,currentX:0,startY:0,currentY:0,startPosition:0,newPosition:0,oldValue:r.modelValue}),{disabled:o,button:s,tooltip:l,showTooltip:u,tooltipVisible:c,wrapperStyle:f,formatValue:d,handleMouseEnter:h,handleMouseLeave:p,onButtonDown:v,onKeyDown:g,setPosition:y}=D5e(r,i,n),{hovering:m,dragging:S}=Wa(i);return e({onButtonDown:v,onKeyDown:g,setPosition:y,hovering:m,dragging:S}),(w,C)=>(G(),re("div",{ref_key:"button",ref:s,class:Y([b(a).e("button-wrapper"),{hover:b(m),dragging:b(S)}]),style:Et(b(f)),tabindex:b(o)?-1:0,onMouseenter:C[0]||(C[0]=(..._)=>b(h)&&b(h)(..._)),onMouseleave:C[1]||(C[1]=(..._)=>b(p)&&b(p)(..._)),onMousedown:C[2]||(C[2]=(..._)=>b(v)&&b(v)(..._)),onTouchstart:C[3]||(C[3]=(..._)=>b(v)&&b(v)(..._)),onFocus:C[4]||(C[4]=(..._)=>b(h)&&b(h)(..._)),onBlur:C[5]||(C[5]=(..._)=>b(p)&&b(p)(..._)),onKeydown:C[6]||(C[6]=(..._)=>b(g)&&b(g)(..._))},[N(b(io),{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:j(()=>[R("span",null,We(b(d)),1)]),default:j(()=>[R("div",{class:Y([b(a).e("button"),{hover:b(m),dragging:b(S)}])},null,2)]),_:1},8,["visible","placement","popper-class","disabled"])],46,O5e))}});var c8=tt(N5e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/slider/src/button.vue"]]);const I5e=nt({mark:{type:ke([String,Object]),default:void 0}});var B5e=ye({name:"ElSliderMarker",props:I5e,setup(t){const e=Ye("slider"),n=U(()=>Ht(t.mark)?t.mark:t.mark.label),r=U(()=>Ht(t.mark)?void 0:t.mark.style);return()=>At("div",{class:e.e("marks-text"),style:r.value},n.value)}});const $5e=["id","role","aria-label","aria-labelledby"],P5e={key:1},F5e=ye({name:"ElSlider"}),z5e=ye({...F5e,props:p5e,emits:v5e,setup(t,{expose:e,emit:n}){const r=t,a=Ye("slider"),{t:i}=En(),o=Vn({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:p,barStyle:v,resetSize:g,emitChange:y,onSliderWrapperPrevent:m,onSliderClick:S,onSliderDown:w,setFirstValue:C,setSecondValue:_}=m5e(r,o,n),{stops:x,getStopStyle:T}=A5e(r,o,d,h),{inputId:M,isLabeledByFormItem:E}=ld(r,{formItemContext:s}),A=Aa(),k=U(()=>r.inputSize||A.value),L=U(()=>r.label||i("el.slider.defaultLabel",{min:r.min,max:r.max})),I=U(()=>r.range?r.rangeStartLabel||i("el.slider.defaultRangeStartLabel"):L.value),P=U(()=>r.formatValueText?r.formatValueText(Z.value):`${Z.value}`),F=U(()=>r.rangeEndLabel||i("el.slider.defaultRangeEndLabel")),$=U(()=>r.formatValueText?r.formatValueText(oe.value):`${oe.value}`),W=U(()=>[a.b(),a.m(A.value),a.is("vertical",r.vertical),{[a.m("with-input")]:r.showInput}]),V=y5e(r);k5e(r,o,d,h,n,s);const z=U(()=>{const Q=[r.min,r.max,r.step].map(ce=>{const se=`${ce}`.split(".")[1];return se?se.length:0});return Math.max.apply(null,Q)}),{sliderWrapper:K}=g5e(r,o,g),{firstValue:Z,secondValue:oe,sliderSize:ge}=Wa(o),ie=Q=>{o.dragging=Q};return fn(pQ,{...Wa(r),sliderSize:ge,disabled:f,precision:z,emitChange:y,resetSize:g,updateDragging:ie}),e({onSliderClick:S}),(Q,ce)=>{var se,me;return G(),re("div",{id:Q.range?b(M):void 0,ref_key:"sliderWrapper",ref:K,class:Y(b(W)),role:Q.range?"group":void 0,"aria-label":Q.range&&!b(E)?b(L):void 0,"aria-labelledby":Q.range&&b(E)?(se=b(s))==null?void 0:se.labelId:void 0,onTouchstart:ce[2]||(ce[2]=(...ve)=>b(m)&&b(m)(...ve)),onTouchmove:ce[3]||(ce[3]=(...ve)=>b(m)&&b(m)(...ve))},[R("div",{ref_key:"slider",ref:l,class:Y([b(a).e("runway"),{"show-input":Q.showInput&&!Q.range},b(a).is("disabled",b(f))]),style:Et(b(p)),onMousedown:ce[0]||(ce[0]=(...ve)=>b(w)&&b(w)(...ve)),onTouchstart:ce[1]||(ce[1]=(...ve)=>b(w)&&b(w)(...ve))},[R("div",{class:Y(b(a).e("bar")),style:Et(b(v))},null,6),N(c8,{id:Q.range?void 0:b(M),ref_key:"firstButton",ref:u,"model-value":b(Z),vertical:Q.vertical,"tooltip-class":Q.tooltipClass,placement:Q.placement,role:"slider","aria-label":Q.range||!b(E)?b(I):void 0,"aria-labelledby":!Q.range&&b(E)?(me=b(s))==null?void 0:me.labelId:void 0,"aria-valuemin":Q.min,"aria-valuemax":Q.range?b(oe):Q.max,"aria-valuenow":b(Z),"aria-valuetext":b(P),"aria-orientation":Q.vertical?"vertical":"horizontal","aria-disabled":b(f),"onUpdate:modelValue":b(C)},null,8,["id","model-value","vertical","tooltip-class","placement","aria-label","aria-labelledby","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"]),Q.range?(G(),Ee(c8,{key:0,ref_key:"secondButton",ref:c,"model-value":b(oe),vertical:Q.vertical,"tooltip-class":Q.tooltipClass,placement:Q.placement,role:"slider","aria-label":b(F),"aria-valuemin":b(Z),"aria-valuemax":Q.max,"aria-valuenow":b(oe),"aria-valuetext":b($),"aria-orientation":Q.vertical?"vertical":"horizontal","aria-disabled":b(f),"onUpdate:modelValue":b(_)},null,8,["model-value","vertical","tooltip-class","placement","aria-label","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"])):_e("v-if",!0),Q.showStops?(G(),re("div",P5e,[(G(!0),re(Ct,null,dn(b(x),(ve,he)=>(G(),re("div",{key:he,class:Y(b(a).e("stop")),style:Et(b(T)(ve))},null,6))),128))])):_e("v-if",!0),b(V).length>0?(G(),re(Ct,{key:2},[R("div",null,[(G(!0),re(Ct,null,dn(b(V),(ve,he)=>(G(),re("div",{key:he,style:Et(b(T)(ve.position)),class:Y([b(a).e("stop"),b(a).e("marks-stop")])},null,6))),128))]),R("div",{class:Y(b(a).e("marks"))},[(G(!0),re(Ct,null,dn(b(V),(ve,he)=>(G(),Ee(b(B5e),{key:he,mark:ve.mark,style:Et(b(T)(ve.position))},null,8,["mark","style"]))),128))],2)],64)):_e("v-if",!0)],38),Q.showInput&&!Q.range?(G(),Ee(b(zZ),{key:0,ref:"input","model-value":b(Z),class:Y(b(a).e("input")),step:Q.step,disabled:b(f),controls:Q.showInputControls,min:Q.min,max:Q.max,debounce:Q.debounce,size:b(k),"onUpdate:modelValue":b(C),onChange:b(y)},null,8,["model-value","class","step","disabled","controls","min","max","debounce","size","onUpdate:modelValue","onChange"])):_e("v-if",!0)],42,$5e)}}});var U5e=tt(z5e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/slider/src/slider.vue"]]);const G5e=tn(U5e),H5e=nt({prefixCls:{type:String}}),f8=ye({name:"ElSpaceItem",props:H5e,setup(t,{slots:e}){const n=Ye("space"),r=U(()=>`${t.prefixCls||n.b()}__item`);return()=>At("div",{class:r.value},Ge(e,"default"))}}),d8={small:8,default:12,large:16};function W5e(t){const e=Ye("space"),n=U(()=>[e.b(),e.m(t.direction),t.class]),r=B(0),a=B(0),i=U(()=>{const s=t.wrap||t.fill?{flexWrap:"wrap",marginBottom:`-${a.value}px`}:{},l={alignItems:t.alignment};return[s,l,t.style]}),o=U(()=>{const s={paddingBottom:`${a.value}px`,marginRight:`${r.value}px`},l=t.fill?{flexGrow:1,minWidth:`${t.fillRatio}%`}:{};return[s,l]});return Uo(()=>{const{size:s="small",wrap:l,direction:u,fill:c}=t;if(gt(s)){const[f=0,d=0]=s;r.value=f,a.value=d}else{let f;Pt(s)?f=s:f=d8[s||"small"]||d8.small,(l||c)&&u==="horizontal"?r.value=a.value=f:u==="horizontal"?(r.value=f,a.value=0):(a.value=f,r.value=0)}}),{classes:n,containerStyle:i,itemStyle:o}}const j5e=nt({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},class:{type:ke([String,Object,Array]),default:""},style:{type:ke([String,Array,Object]),default:""},alignment:{type:ke(String),default:"center"},prefixCls:{type:String},spacer:{type:ke([Object,String,Number,Array]),default:null,validator:t=>Gr(t)||Pt(t)||Ht(t)},wrap:Boolean,fill:Boolean,fillRatio:{type:Number,default:100},size:{type:[String,Array,Number],values:wu,validator:t=>Pt(t)||gt(t)&&t.length===2&&t.every(Pt)}}),K5e=ye({name:"ElSpace",props:j5e,setup(t,{slots:e}){const{classes:n,containerStyle:r,itemStyle:a}=W5e(t);function i(o,s="",l=[]){const{prefixCls:u}=t;return o.forEach((c,f)=>{CR(c)?gt(c.children)&&c.children.forEach((d,h)=>{CR(d)&&gt(d.children)?i(d.children,`${s+h}-`,l):l.push(N(f8,{style:a.value,prefixCls:u,key:`nested-${s+h}`},{default:()=>[d]},os.PROPS|os.STYLE,["style","prefixCls"]))}):qTe(c)&&l.push(N(f8,{style:a.value,prefixCls:u,key:`LoopKey${s+f}`},{default:()=>[c]},os.PROPS|os.STYLE,["style","prefixCls"]))}),l}return()=>{var o;const{spacer:s,direction:l}=t,u=Ge(e,"default",{key:0},()=>[]);if(((o=u.children)!=null?o:[]).length===0)return null;if(gt(u.children)){let c=i(u.children);if(s){const f=c.length-1;c=c.reduce((d,h,p)=>{const v=[...d,h];return p!==f&&v.push(N("span",{style:[a.value,l==="vertical"?"width: 100%":null],key:p},[Gr(s)?s:Be(s,os.TEXT)],os.STYLE)),v},[])}return N("div",{class:n.value,style:r.value},c,os.STYLE|os.CLASS)}return u.children}}}),Y5e=tn(K5e),X5e=nt({decimalSeparator:{type:String,default:"."},groupSeparator:{type:String,default:","},precision:{type:Number,default:0},formatter:Function,value:{type:ke([Number,Object]),default:0},prefix:String,suffix:String,title:String,valueStyle:{type:ke([String,Object,Array])}}),q5e=ye({name:"ElStatistic"}),Z5e=ye({...q5e,props:X5e,setup(t,{expose:e}){const n=t,r=Ye("statistic"),a=U(()=>{const{value:i,formatter:o,precision:s,decimalSeparator:l,groupSeparator:u}=n;if(zt(o))return o(i);if(!Pt(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 e({displayValue:a}),(i,o)=>(G(),re("div",{class:Y(b(r).b())},[i.$slots.title||i.title?(G(),re("div",{key:0,class:Y(b(r).e("head"))},[Ge(i.$slots,"title",{},()=>[Be(We(i.title),1)])],2)):_e("v-if",!0),R("div",{class:Y(b(r).e("content"))},[i.$slots.prefix||i.prefix?(G(),re("div",{key:0,class:Y(b(r).e("prefix"))},[Ge(i.$slots,"prefix",{},()=>[R("span",null,We(i.prefix),1)])],2)):_e("v-if",!0),R("span",{class:Y(b(r).e("number")),style:Et(i.valueStyle)},We(b(a)),7),i.$slots.suffix||i.suffix?(G(),re("div",{key:1,class:Y(b(r).e("suffix"))},[Ge(i.$slots,"suffix",{},()=>[R("span",null,We(i.suffix),1)])],2)):_e("v-if",!0)],2)],2))}});var Q5e=tt(Z5e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/statistic/src/statistic.vue"]]);const vQ=tn(Q5e),J5e=nt({format:{type:String,default:"HH:mm:ss"},prefix:String,suffix:String,title:String,value:{type:ke([Number,Object]),default:0},valueStyle:{type:ke([String,Object,Array])}}),e8e={finish:()=>!0,[Ar]:t=>Pt(t)},t8e=[["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]],h8=t=>Pt(t)?new Date(t).getTime():t.valueOf(),p8=(t,e)=>{let n=t;const r=/\[([^\]]*)]/g;return t8e.reduce((i,[o,s])=>{const l=new RegExp(`${o}+(?![^\\[\\]]*\\])`,"g");if(l.test(i)){const u=Math.floor(n/s);return n-=u*s,i.replace(l,c=>String(u).padStart(c.length,"0"))}return i},e).replace(r,"$1")},n8e=ye({name:"ElCountdown"}),r8e=ye({...n8e,props:J5e,emits:e8e,setup(t,{expose:e,emit:n}){const r=t;let a;const i=B(h8(r.value)-Date.now()),o=U(()=>p8(i.value,r.format)),s=c=>p8(c,r.format),l=()=>{a&&(xT(a),a=void 0)},u=()=>{const c=h8(r.value),f=()=>{let d=c-Date.now();n("change",d),d<=0?(d=0,l(),n("finish")):a=Vg(f),i.value=d};a=Vg(f)};return Ke(()=>[r.value,r.format],()=>{l(),u()},{immediate:!0}),Sr(()=>{l()}),e({displayValue:o}),(c,f)=>(G(),Ee(b(vQ),{value:i.value,title:c.title,prefix:c.prefix,suffix:c.suffix,"value-style":c.valueStyle,formatter:s},ic({_:2},[dn(c.$slots,(d,h)=>({name:h,fn:j(()=>[Ge(c.$slots,h)])}))]),1032,["value","title","prefix","suffix","value-style"]))}});var a8e=tt(r8e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/countdown/src/countdown.vue"]]);const i8e=tn(a8e),o8e=nt({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"}}),s8e={[Ar]:(t,e)=>[t,e].every(Pt)},l8e=ye({name:"ElSteps"}),u8e=ye({...l8e,props:o8e,emits:s8e,setup(t,{emit:e}){const n=t,r=Ye("steps"),{children:a,addChild:i,removeChild:o}=rV(Qt(),"ElStep");return Ke(a,()=>{a.value.forEach((s,l)=>{s.setIndex(l)})}),fn("ElSteps",{props:n,steps:a,addStep:i,removeStep:o}),Ke(()=>n.active,(s,l)=>{e(Ar,s,l)}),(s,l)=>(G(),re("div",{class:Y([b(r).b(),b(r).m(s.simple?"simple":s.direction)])},[Ge(s.$slots,"default")],2))}});var c8e=tt(u8e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/steps/src/steps.vue"]]);const f8e=nt({title:{type:String,default:""},icon:{type:gr},description:{type:String,default:""},status:{type:String,values:["","wait","process","finish","error","success"],default:""}}),d8e=ye({name:"ElStep"}),h8e=ye({...d8e,props:f8e,setup(t){const e=t,n=Ye("step"),r=B(-1),a=B({}),i=B(""),o=yt("ElSteps"),s=Qt();Ut(()=>{Ke([()=>o.props.active,()=>o.props.processStatus,()=>o.props.finishStatus],([_])=>{w(_)},{immediate:!0})}),Sr(()=>{o.removeStep(C.uid)});const l=U(()=>e.status||i.value),u=U(()=>{const _=o.steps.value[r.value-1];return _?_.currentStatus:"wait"}),c=U(()=>o.props.alignCenter),f=U(()=>o.props.direction==="vertical"),d=U(()=>o.props.simple),h=U(()=>o.steps.value.length),p=U(()=>{var _;return((_=o.steps.value[h.value-1])==null?void 0:_.uid)===(s==null?void 0:s.uid)}),v=U(()=>d.value?"":o.props.space),g=U(()=>[n.b(),n.is(d.value?"simple":o.props.direction),n.is("flex",p.value&&!v.value&&!c.value),n.is("center",c.value&&!f.value&&!d.value)]),y=U(()=>{const _={flexBasis:Pt(v.value)?`${v.value}px`:v.value?v.value:`${100/(h.value-(c.value?0:1))}%`};return f.value||p.value&&(_.maxWidth=`${100/h.value}%`),_}),m=_=>{r.value=_},S=_=>{const x=_==="wait",T={transitionDelay:`${x?"-":""}${150*r.value}ms`},M=_===o.props.processStatus||x?0:100;T.borderWidth=M&&!d.value?"1px":0,T[o.props.direction==="vertical"?"height":"width"]=`${M}%`,a.value=T},w=_=>{_>r.value?i.value=o.props.finishStatus:_===r.value&&u.value!=="error"?i.value=o.props.processStatus:i.value="wait";const x=o.steps.value[r.value-1];x&&x.calcProgress(i.value)},C=Vn({uid:s.uid,currentStatus:l,setIndex:m,calcProgress:S});return o.addStep(C),(_,x)=>(G(),re("div",{style:Et(b(y)),class:Y(b(g))},[_e(" icon & line "),R("div",{class:Y([b(n).e("head"),b(n).is(b(l))])},[b(d)?_e("v-if",!0):(G(),re("div",{key:0,class:Y(b(n).e("line"))},[R("i",{class:Y(b(n).e("line-inner")),style:Et(a.value)},null,6)],2)),R("div",{class:Y([b(n).e("icon"),b(n).is(_.icon||_.$slots.icon?"icon":"text")])},[Ge(_.$slots,"icon",{},()=>[_.icon?(G(),Ee(b(_t),{key:0,class:Y(b(n).e("icon-inner"))},{default:j(()=>[(G(),Ee(on(_.icon)))]),_:1},8,["class"])):b(l)==="success"?(G(),Ee(b(_t),{key:1,class:Y([b(n).e("icon-inner"),b(n).is("status")])},{default:j(()=>[N(b(Rb))]),_:1},8,["class"])):b(l)==="error"?(G(),Ee(b(_t),{key:2,class:Y([b(n).e("icon-inner"),b(n).is("status")])},{default:j(()=>[N(b(yl))]),_:1},8,["class"])):b(d)?_e("v-if",!0):(G(),re("div",{key:3,class:Y(b(n).e("icon-inner"))},We(r.value+1),3))])],2)],2),_e(" title & description "),R("div",{class:Y(b(n).e("main"))},[R("div",{class:Y([b(n).e("title"),b(n).is(b(l))])},[Ge(_.$slots,"title",{},()=>[Be(We(_.title),1)])],2),b(d)?(G(),re("div",{key:0,class:Y(b(n).e("arrow"))},null,2)):(G(),re("div",{key:1,class:Y([b(n).e("description"),b(n).is(b(l))])},[Ge(_.$slots,"description",{},()=>[Be(We(_.description),1)])],2))],2)],6))}});var gQ=tt(h8e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/steps/src/item.vue"]]);const p8e=tn(c8e,{Step:gQ}),v8e=ta(gQ),g8e=nt({modelValue:{type:[Boolean,String,Number],default:!1},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},size:{type:String,validator:ST},width:{type:[String,Number],default:""},inlinePrompt:{type:Boolean,default:!1},inactiveActionIcon:{type:gr},activeActionIcon:{type:gr},activeIcon:{type:gr},inactiveIcon:{type:gr},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:ke(Function)},id:String,tabindex:{type:[String,Number]},value:{type:[Boolean,String,Number],default:!1}}),y8e={[nn]:t=>Ea(t)||Ht(t)||Pt(t),[Ar]:t=>Ea(t)||Ht(t)||Pt(t),[Ji]:t=>Ea(t)||Ht(t)||Pt(t)},m8e=["onClick"],b8e=["id","aria-checked","aria-disabled","name","true-value","false-value","disabled","tabindex","onKeydown"],S8e=["aria-hidden"],w8e=["aria-hidden"],x8e=["aria-hidden"],lL="ElSwitch",_8e=ye({name:lL}),C8e=ye({..._8e,props:g8e,emits:y8e,setup(t,{expose:e,emit:n}){const r=t,a=Qt(),{formItem:i}=uo(),o=Aa(),s=Ye("switch");(T=>{T.forEach(M=>{fu({from:M[0],replacement:M[1],scope:lL,version:"2.3.0",ref:"https://element-plus.org/en-US/component/switch.html#attributes",type:"Attribute"},U(()=>{var E;return!!((E=a.vnode.props)!=null&&E[M[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}=ld(r,{formItemContext:i}),c=Ro(U(()=>r.loading)),f=B(r.modelValue!==!1),d=B(),h=B(),p=U(()=>[s.b(),s.m(o.value),s.is("disabled",c.value),s.is("checked",S.value)]),v=U(()=>[s.e("label"),s.em("label","left"),s.is("active",!S.value)]),g=U(()=>[s.e("label"),s.em("label","right"),s.is("active",S.value)]),y=U(()=>({width:la(r.width)}));Ke(()=>r.modelValue,()=>{f.value=!0}),Ke(()=>r.value,()=>{f.value=!1});const m=U(()=>f.value?r.modelValue:r.value),S=U(()=>m.value===r.activeValue);[r.activeValue,r.inactiveValue].includes(m.value)||(n(nn,r.inactiveValue),n(Ar,r.inactiveValue),n(Ji,r.inactiveValue)),Ke(S,T=>{var M;d.value.checked=T,r.validateEvent&&((M=i==null?void 0:i.validate)==null||M.call(i,"change").catch(E=>void 0))});const w=()=>{const T=S.value?r.inactiveValue:r.activeValue;n(nn,T),n(Ar,T),n(Ji,T),xt(()=>{d.value.checked=S.value})},C=()=>{if(c.value)return;const{beforeChange:T}=r;if(!T){w();return}const M=T();[Qm(M),Ea(M)].includes(!0)||Da(lL,"beforeChange must return type `Promise<boolean>` or `boolean`"),Qm(M)?M.then(A=>{A&&w()}).catch(A=>{}):M&&w()},_=U(()=>s.cssVarBlock({...r.activeColor?{"on-color":r.activeColor}:null,...r.inactiveColor?{"off-color":r.inactiveColor}:null,...r.borderColor?{"border-color":r.borderColor}:null})),x=()=>{var T,M;(M=(T=d.value)==null?void 0:T.focus)==null||M.call(T)};return Ut(()=>{d.value.checked=S.value}),e({focus:x,checked:S}),(T,M)=>(G(),re("div",{class:Y(b(p)),style:Et(b(_)),onClick:It(C,["prevent"])},[R("input",{id:b(u),ref_key:"input",ref:d,class:Y(b(s).e("input")),type:"checkbox",role:"switch","aria-checked":b(S),"aria-disabled":b(c),name:T.name,"true-value":T.activeValue,"false-value":T.inactiveValue,disabled:b(c),tabindex:T.tabindex,onChange:w,onKeydown:Tn(C,["enter"])},null,42,b8e),!T.inlinePrompt&&(T.inactiveIcon||T.inactiveText)?(G(),re("span",{key:0,class:Y(b(v))},[T.inactiveIcon?(G(),Ee(b(_t),{key:0},{default:j(()=>[(G(),Ee(on(T.inactiveIcon)))]),_:1})):_e("v-if",!0),!T.inactiveIcon&&T.inactiveText?(G(),re("span",{key:1,"aria-hidden":b(S)},We(T.inactiveText),9,S8e)):_e("v-if",!0)],2)):_e("v-if",!0),R("span",{ref_key:"core",ref:h,class:Y(b(s).e("core")),style:Et(b(y))},[T.inlinePrompt?(G(),re("div",{key:0,class:Y(b(s).e("inner"))},[T.activeIcon||T.inactiveIcon?(G(),Ee(b(_t),{key:0,class:Y(b(s).is("icon"))},{default:j(()=>[(G(),Ee(on(b(S)?T.activeIcon:T.inactiveIcon)))]),_:1},8,["class"])):T.activeText||T.inactiveText?(G(),re("span",{key:1,class:Y(b(s).is("text")),"aria-hidden":!b(S)},We(b(S)?T.activeText:T.inactiveText),11,w8e)):_e("v-if",!0)],2)):_e("v-if",!0),R("div",{class:Y(b(s).e("action"))},[T.loading?(G(),Ee(b(_t),{key:0,class:Y(b(s).is("loading"))},{default:j(()=>[N(b(id))]),_:1},8,["class"])):T.activeActionIcon&&b(S)?(G(),Ee(b(_t),{key:1},{default:j(()=>[(G(),Ee(on(T.activeActionIcon)))]),_:1})):T.inactiveActionIcon&&!b(S)?(G(),Ee(b(_t),{key:2},{default:j(()=>[(G(),Ee(on(T.inactiveActionIcon)))]),_:1})):_e("v-if",!0)],2)],6),!T.inlinePrompt&&(T.activeIcon||T.activeText)?(G(),re("span",{key:1,class:Y(b(g))},[T.activeIcon?(G(),Ee(b(_t),{key:0},{default:j(()=>[(G(),Ee(on(T.activeIcon)))]),_:1})):_e("v-if",!0),!T.activeIcon&&T.activeText?(G(),re("span",{key:1,"aria-hidden":!b(S)},We(T.activeText),9,x8e)):_e("v-if",!0)],2)):_e("v-if",!0)],14,m8e))}});var T8e=tt(C8e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/switch/src/switch.vue"]]);const E8e=tn(T8e);/*!
  61. * escape-html
  62. * Copyright(c) 2012-2013 TJ Holowaychuk
  63. * Copyright(c) 2015 Andreas Lubbe
  64. * Copyright(c) 2015 Tiancheng "Timothy" Gu
  65. * MIT Licensed
  66. */var M8e=/["'&<>]/,D8e=A8e;function A8e(t){var e=""+t,n=M8e.exec(e);if(!n)return e;var r,a="",i=0,o=0;for(i=n.index;i<e.length;i++){switch(e.charCodeAt(i)){case 34:r="&quot;";break;case 38:r="&amp;";break;case 39:r="&#39;";break;case 60:r="&lt;";break;case 62:r="&gt;";break;default:continue}o!==i&&(a+=e.substring(o,i)),o=i+1,a+=r}return o!==i?a+e.substring(o,i):a}const k8e=xi(D8e),PM=function(t){var e;return(e=t.target)==null?void 0:e.closest("td")},R8e=function(t,e,n,r,a){if(!e&&!r&&(!a||Array.isArray(a)&&!a.length))return t;typeof n=="string"?n=n==="descending"?-1:1:n=n&&n<0?-1:1;const i=r?null:function(s,l){return a?(Array.isArray(a)||(a=[a]),a.map(u=>typeof u=="string"?Fr(s,u):u(s,l,t))):(e!=="$key"&&un(s)&&"$value"in s&&(s=s.$value),[un(s)?Fr(s,e):s])},o=function(s,l){if(r)return r(s.value,l.value);for(let u=0,c=s.key.length;u<c;u++){if(s.key[u]<l.key[u])return-1;if(s.key[u]>l.key[u])return 1}return 0};return t.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*+n}).map(s=>s.value)},yQ=function(t,e){let n=null;return t.columns.forEach(r=>{r.id===e&&(n=r)}),n},L8e=function(t,e){let n=null;for(let r=0;r<t.columns.length;r++){const a=t.columns[r];if(a.columnKey===e){n=a;break}}return n||Da("ElTable",`No column matching with column-key: ${e}`),n},v8=function(t,e,n){const r=(e.className||"").match(new RegExp(`${n}-table_[^\\s]+`,"gm"));return r?yQ(t,r[0]):null},hi=(t,e)=>{if(!t)throw new Error("Row is required when get row identity");if(typeof e=="string"){if(!e.includes("."))return`${t[e]}`;const n=e.split(".");let r=t;for(const a of n)r=r[a];return`${r}`}else if(typeof e=="function")return e.call(null,t)},Nh=function(t,e){const n={};return(t||[]).forEach((r,a)=>{n[hi(r,e)]={row:r,index:a}}),n};function O8e(t,e){const n={};let r;for(r in t)n[r]=t[r];for(r in e)if(Sn(e,r)){const a=e[r];typeof a<"u"&&(n[r]=a)}return n}function EV(t){return t===""||t!==void 0&&(t=Number.parseInt(t,10),Number.isNaN(t)&&(t="")),t}function mQ(t){return t===""||t!==void 0&&(t=EV(t),Number.isNaN(t)&&(t=80)),t}function V8e(t){return typeof t=="number"?t:typeof t=="string"?/^\d+(?:px)?$/.test(t)?Number.parseInt(t,10):t:null}function N8e(...t){return t.length===0?e=>e:t.length===1?t[0]:t.reduce((e,n)=>(...r)=>e(n(...r)))}function Dm(t,e,n){let r=!1;const a=t.indexOf(e),i=a!==-1,o=s=>{s==="add"?t.push(e):t.splice(a,1),r=!0,gt(e.children)&&e.children.forEach(l=>{Dm(t,l,n??!i)})};return Ea(n)?n&&!i?o("add"):!n&&i&&o("remove"):o(i?"remove":"add"),r}function I8e(t,e,n="children",r="hasChildren"){const a=o=>!(Array.isArray(o)&&o.length);function i(o,s,l){e(o,s,l),s.forEach(u=>{if(u[r]){e(u,null,l+1);return}const c=u[n];a(c)||i(u,c,l+1)})}t.forEach(o=>{if(o[r]){e(o,null,0);return}const s=o[n];a(s)||i(o,s,0)})}let Bu;function B8e(t,e,n,r,a){a=JY({enterable:!0,showArrow:!0},a);const i=t==null?void 0:t.dataset.prefix,o=t==null?void 0:t.querySelector(`.${i}-scrollbar__wrap`);function s(){const g=a.effect==="light",y=document.createElement("div");return y.className=[`${i}-popper`,g?"is-light":"is-dark",a.popperClass||""].join(" "),n=k8e(n),y.innerHTML=n,y.style.zIndex=String(r()),t==null||t.appendChild(y),y}function l(){const g=document.createElement("div");return g.className=`${i}-popper__arrow`,g}function u(){c&&c.update()}Bu==null||Bu(),Bu=()=>{try{c&&c.destroy(),h&&(t==null||t.removeChild(h)),e.removeEventListener("mouseenter",f),e.removeEventListener("mouseleave",d),o==null||o.removeEventListener("scroll",Bu),Bu=void 0}catch{}};let c=null,f=u,d=Bu;a.enterable&&({onOpen:f,onClose:d}=VX({showAfter:a.showAfter,hideAfter:a.hideAfter,open:u,close:Bu}));const h=s();h.onmouseenter=f,h.onmouseleave=d;const p=[];if(a.offset&&p.push({name:"offset",options:{offset:[0,a.offset]}}),a.showArrow){const g=h.appendChild(l());p.push({name:"arrow",options:{element:g,padding:10}})}const v=a.popperOptions||{};return c=RX(e,h,{placement:a.placement||"top",strategy:"fixed",...v,modifiers:v.modifiers?p.concat(v.modifiers):p}),e.addEventListener("mouseenter",f),e.addEventListener("mouseleave",d),o==null||o.addEventListener("scroll",Bu),c}function bQ(t){return t.children?rxe(t.children,bQ):[t]}function g8(t,e){return t+e.colSpan}const SQ=(t,e,n,r)=>{let a=0,i=t;const o=n.states.columns.value;if(r){const l=bQ(r[t]);a=o.slice(0,o.indexOf(l[0])).reduce(g8,0),i=a+l.reduce(g8,0)-1}else a=t;let s;switch(e){case"left":i<n.states.fixedLeafColumnsLength.value&&(s="left");break;case"right":a>=o.length-n.states.rightFixedLeafColumnsLength.value&&(s="right");break;default:i<n.states.fixedLeafColumnsLength.value?s="left":a>=o.length-n.states.rightFixedLeafColumnsLength.value&&(s="right")}return s?{direction:s,start:a,after:i}:{}},MV=(t,e,n,r,a,i=0)=>{const o=[],{direction:s,start:l,after:u}=SQ(e,n,r,a);if(s){const c=s==="left";o.push(`${t}-fixed-column--${s}`),c&&u+i===r.states.fixedLeafColumnsLength.value-1?o.push("is-last-column"):!c&&l-i===r.states.columns.value.length-r.states.rightFixedLeafColumnsLength.value&&o.push("is-first-column")}return o};function y8(t,e){return t+(e.realWidth===null||Number.isNaN(e.realWidth)?Number(e.width):e.realWidth)}const DV=(t,e,n,r)=>{const{direction:a,start:i=0,after:o=0}=SQ(t,e,n,r);if(!a)return;const s={},l=a==="left",u=n.states.columns.value;return l?s.left=u.slice(0,i).reduce(y8,0):s.right=u.slice(o+1).reverse().reduce(y8,0),s},Ug=(t,e)=>{t&&(Number.isNaN(t[e])||(t[e]=`${t[e]}px`))};function $8e(t){const e=Qt(),n=B(!1),r=B([]);return{updateExpandRows:()=>{const l=t.data.value||[],u=t.rowKey.value;if(n.value)r.value=l.slice();else if(u){const c=Nh(r.value,u);r.value=l.reduce((f,d)=>{const h=hi(d,u);return c[h]&&f.push(d),f},[])}else r.value=[]},toggleRowExpansion:(l,u)=>{Dm(r.value,l,u)&&e.emit("expand-change",l,r.value.slice())},setExpandRowKeys:l=>{e.store.assertRowKey();const u=t.data.value||[],c=t.rowKey.value,f=Nh(u,c);r.value=l.reduce((d,h)=>{const p=f[h];return p&&d.push(p.row),d},[])},isRowExpanded:l=>{const u=t.rowKey.value;return u?!!Nh(r.value,u)[hi(l,u)]:r.value.includes(l)},states:{expandRows:r,defaultExpandAll:n}}}function P8e(t){const e=Qt(),n=B(null),r=B(null),a=u=>{e.store.assertRowKey(),n.value=u,o(u)},i=()=>{n.value=null},o=u=>{const{data:c,rowKey:f}=t;let d=null;f.value&&(d=(b(c)||[]).find(h=>hi(h,f.value)===u)),r.value=d,e.emit("current-change",r.value,null)};return{setCurrentRowKey:a,restoreCurrentRowKey:i,setCurrentRowByKey:o,updateCurrentRow:u=>{const c=r.value;if(u&&u!==c){r.value=u,e.emit("current-change",r.value,c);return}!u&&c&&(r.value=null,e.emit("current-change",null,c))},updateCurrentRowData:()=>{const u=t.rowKey.value,c=t.data.value||[],f=r.value;if(!c.includes(f)&&f){if(u){const d=hi(f,u);o(d)}else r.value=null;r.value===null&&e.emit("current-change",null,f)}else n.value&&(o(n.value),i())},states:{_currentRowKey:n,currentRow:r}}}function F8e(t){const e=B([]),n=B({}),r=B(16),a=B(!1),i=B({}),o=B("hasChildren"),s=B("children"),l=Qt(),u=U(()=>{if(!t.rowKey.value)return{};const y=t.data.value||[];return f(y)}),c=U(()=>{const y=t.rowKey.value,m=Object.keys(i.value),S={};return m.length&&m.forEach(w=>{if(i.value[w].length){const C={children:[]};i.value[w].forEach(_=>{const x=hi(_,y);C.children.push(x),_[o.value]&&!S[x]&&(S[x]={children:[]})}),S[w]=C}}),S}),f=y=>{const m=t.rowKey.value,S={};return I8e(y,(w,C,_)=>{const x=hi(w,m);Array.isArray(C)?S[x]={children:C.map(T=>hi(T,m)),level:_}:a.value&&(S[x]={children:[],lazy:!0,level:_})},s.value,o.value),S},d=(y=!1,m=(S=>(S=l.store)==null?void 0:S.states.defaultExpandAll.value)())=>{var S;const w=u.value,C=c.value,_=Object.keys(w),x={};if(_.length){const T=b(n),M=[],E=(k,L)=>{if(y)return e.value?m||e.value.includes(L):!!(m||k!=null&&k.expanded);{const I=m||e.value&&e.value.includes(L);return!!(k!=null&&k.expanded||I)}};_.forEach(k=>{const L=T[k],I={...w[k]};if(I.expanded=E(L,k),I.lazy){const{loaded:P=!1,loading:F=!1}=L||{};I.loaded=!!P,I.loading=!!F,M.push(k)}x[k]=I});const A=Object.keys(C);a.value&&A.length&&M.length&&A.forEach(k=>{const L=T[k],I=C[k].children;if(M.includes(k)){if(x[k].children.length!==0)throw new Error("[ElTable]children must be an empty array.");x[k].children=I}else{const{loaded:P=!1,loading:F=!1}=L||{};x[k]={lazy:!0,loaded:!!P,loading:!!F,expanded:E(L,k),children:I,level:""}}})}n.value=x,(S=l.store)==null||S.updateTableScrollY()};Ke(()=>e.value,()=>{d(!0)}),Ke(()=>u.value,()=>{d()}),Ke(()=>c.value,()=>{d()});const h=y=>{e.value=y,d()},p=(y,m)=>{l.store.assertRowKey();const S=t.rowKey.value,w=hi(y,S),C=w&&n.value[w];if(w&&C&&"expanded"in C){const _=C.expanded;m=typeof m>"u"?!C.expanded:m,n.value[w].expanded=m,_!==m&&l.emit("expand-change",y,m),l.store.updateTableScrollY()}},v=y=>{l.store.assertRowKey();const m=t.rowKey.value,S=hi(y,m),w=n.value[S];a.value&&w&&"loaded"in w&&!w.loaded?g(y,S,w):p(y,void 0)},g=(y,m,S)=>{const{load:w}=l.props;w&&!n.value[m].loaded&&(n.value[m].loading=!0,w(y,S,C=>{if(!Array.isArray(C))throw new TypeError("[ElTable] data must be an array");n.value[m].loading=!1,n.value[m].loaded=!0,n.value[m].expanded=!0,C.length&&(i.value[m]=C),l.emit("expand-change",y,!0)}))};return{loadData:g,loadOrToggle:v,toggleTreeExpansion:p,updateTreeExpandKeys:h,updateTreeData:d,normalize:f,states:{expandRowKeys:e,treeData:n,indent:r,lazy:a,lazyTreeNodeMap:i,lazyColumnIdentifier:o,childrenColumnName:s}}}const z8e=(t,e)=>{const n=e.sortingColumn;return!n||typeof n.sortable=="string"?t:R8e(t,e.sortProp,e.sortOrder,n.sortMethod,n.sortBy)},o_=t=>{const e=[];return t.forEach(n=>{n.children&&n.children.length>0?e.push.apply(e,o_(n.children)):e.push(n)}),e};function U8e(){var t;const e=Qt(),{size:n}=Wa((t=e.proxy)==null?void 0:t.$props),r=B(null),a=B([]),i=B([]),o=B(!1),s=B([]),l=B([]),u=B([]),c=B([]),f=B([]),d=B([]),h=B([]),p=B([]),v=[],g=B(0),y=B(0),m=B(0),S=B(!1),w=B([]),C=B(!1),_=B(!1),x=B(null),T=B({}),M=B(null),E=B(null),A=B(null),k=B(null),L=B(null);Ke(a,()=>e.state&&$(!1),{deep:!0});const I=()=>{if(!r.value)throw new Error("[ElTable] prop row-key is required")},P=dt=>{var Oe;(Oe=dt.children)==null||Oe.forEach(be=>{be.fixed=dt.fixed,P(be)})},F=()=>{s.value.forEach(Pe=>{P(Pe)}),c.value=s.value.filter(Pe=>Pe.fixed===!0||Pe.fixed==="left"),f.value=s.value.filter(Pe=>Pe.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 dt=s.value.filter(Pe=>!Pe.fixed);l.value=[].concat(c.value).concat(dt).concat(f.value);const Oe=o_(dt),be=o_(c.value),xe=o_(f.value);g.value=Oe.length,y.value=be.length,m.value=xe.length,u.value=[].concat(be).concat(Oe).concat(xe),o.value=c.value.length>0||f.value.length>0},$=(dt,Oe=!1)=>{dt&&F(),Oe?e.state.doLayout():e.state.debouncedUpdateLayout()},W=dt=>w.value.includes(dt),V=()=>{S.value=!1,w.value.length&&(w.value=[],e.emit("selection-change",[]))},z=()=>{let dt;if(r.value){dt=[];const Oe=Nh(w.value,r.value),be=Nh(a.value,r.value);for(const xe in Oe)Sn(Oe,xe)&&!be[xe]&&dt.push(Oe[xe].row)}else dt=w.value.filter(Oe=>!a.value.includes(Oe));if(dt.length){const Oe=w.value.filter(be=>!dt.includes(be));w.value=Oe,e.emit("selection-change",Oe.slice())}},K=()=>(w.value||[]).slice(),Z=(dt,Oe=void 0,be=!0)=>{if(Dm(w.value,dt,Oe)){const Pe=(w.value||[]).slice();be&&e.emit("select",Pe,dt),e.emit("selection-change",Pe)}},oe=()=>{var dt,Oe;const be=_.value?!S.value:!(S.value||w.value.length);S.value=be;let xe=!1,Pe=0;const pe=(Oe=(dt=e==null?void 0:e.store)==null?void 0:dt.states)==null?void 0:Oe.rowKey.value;a.value.forEach((it,Tt)=>{const Wt=Tt+Pe;x.value?x.value.call(null,it,Wt)&&Dm(w.value,it,be)&&(xe=!0):Dm(w.value,it,be)&&(xe=!0),Pe+=Q(hi(it,pe))}),xe&&e.emit("selection-change",w.value?w.value.slice():[]),e.emit("select-all",w.value)},ge=()=>{const dt=Nh(w.value,r.value);a.value.forEach(Oe=>{const be=hi(Oe,r.value),xe=dt[be];xe&&(w.value[xe.index]=Oe)})},ie=()=>{var dt,Oe,be;if(((dt=a.value)==null?void 0:dt.length)===0){S.value=!1;return}let xe;r.value&&(xe=Nh(w.value,r.value));const Pe=function(Wt){return xe?!!xe[hi(Wt,r.value)]:w.value.includes(Wt)};let pe=!0,it=0,Tt=0;for(let Wt=0,Kn=(a.value||[]).length;Wt<Kn;Wt++){const Nn=(be=(Oe=e==null?void 0:e.store)==null?void 0:Oe.states)==null?void 0:be.rowKey.value,fr=Wt+Tt,wr=a.value[Wt],Ue=x.value&&x.value.call(null,wr,fr);if(Pe(wr))it++;else if(!x.value||Ue){pe=!1;break}Tt+=Q(hi(wr,Nn))}it===0&&(pe=!1),S.value=pe},Q=dt=>{var Oe;if(!e||!e.store)return 0;const{treeData:be}=e.store.states;let xe=0;const Pe=(Oe=be.value[dt])==null?void 0:Oe.children;return Pe&&(xe+=Pe.length,Pe.forEach(pe=>{xe+=Q(pe)})),xe},ce=(dt,Oe)=>{Array.isArray(dt)||(dt=[dt]);const be={};return dt.forEach(xe=>{T.value[xe.id]=Oe,be[xe.columnKey||xe.id]=Oe}),be},se=(dt,Oe,be)=>{E.value&&E.value!==dt&&(E.value.order=null),E.value=dt,A.value=Oe,k.value=be},me=()=>{let dt=b(i);Object.keys(T.value).forEach(Oe=>{const be=T.value[Oe];if(!be||be.length===0)return;const xe=yQ({columns:u.value},Oe);xe&&xe.filterMethod&&(dt=dt.filter(Pe=>be.some(pe=>xe.filterMethod.call(null,pe,Pe,xe))))}),M.value=dt},ve=()=>{a.value=z8e(M.value,{sortingColumn:E.value,sortProp:A.value,sortOrder:k.value})},he=(dt=void 0)=>{dt&&dt.filter||me(),ve()},ee=dt=>{const{tableHeaderRef:Oe}=e.refs;if(!Oe)return;const be=Object.assign({},Oe.filterPanels),xe=Object.keys(be);if(xe.length)if(typeof dt=="string"&&(dt=[dt]),Array.isArray(dt)){const Pe=dt.map(pe=>L8e({columns:u.value},pe));xe.forEach(pe=>{const it=Pe.find(Tt=>Tt.id===pe);it&&(it.filteredValue=[])}),e.store.commit("filterChange",{column:Pe,values:[],silent:!0,multi:!0})}else xe.forEach(Pe=>{const pe=u.value.find(it=>it.id===Pe);pe&&(pe.filteredValue=[])}),T.value={},e.store.commit("filterChange",{column:{},values:[],silent:!0})},ue=()=>{E.value&&(se(null,null,null),e.store.commit("changeSortCondition",{silent:!0}))},{setExpandRowKeys:fe,toggleRowExpansion:Re,updateExpandRows:Ne,states:De,isRowExpanded:we}=$8e({data:a,rowKey:r}),{updateTreeExpandKeys:ae,toggleTreeExpansion:Ie,updateTreeData:He,loadOrToggle:Ce,states:qe}=F8e({data:a,rowKey:r}),{updateCurrentRowData:Ze,updateCurrentRow:de,setCurrentRowKey:Xe,states:mt}=P8e({data:a,rowKey:r});return{assertRowKey:I,updateColumns:F,scheduleLayout:$,isSelected:W,clearSelection:V,cleanSelection:z,getSelectionRows:K,toggleRowSelection:Z,_toggleAllSelection:oe,toggleAllSelection:null,updateSelectionByRowKey:ge,updateAllSelected:ie,updateFilters:ce,updateCurrentRow:de,updateSort:se,execFilter:me,execSort:ve,execQuery:he,clearFilter:ee,clearSort:ue,toggleRowExpansion:Re,setExpandRowKeysAdapter:dt=>{fe(dt),ae(dt)},setCurrentRowKey:Xe,toggleRowExpansionAdapter:(dt,Oe)=>{u.value.some(({type:xe})=>xe==="expand")?Re(dt,Oe):Ie(dt,Oe)},isRowExpanded:we,updateExpandRows:Ne,updateCurrentRowData:Ze,loadOrToggle:Ce,updateTreeData:He,states:{tableSize:n,rowKey:r,data:a,_data:i,isComplex:o,_columns:s,originColumns:l,columns:u,fixedColumns:c,rightFixedColumns:f,leafColumns:d,fixedLeafColumns:h,rightFixedLeafColumns:p,updateOrderFns:v,leafColumnsLength:g,fixedLeafColumnsLength:y,rightFixedLeafColumnsLength:m,isAllSelected:S,selection:w,reserveSelection:C,selectOnIndeterminate:_,selectable:x,filters:T,filteredData:M,sortingColumn:E,sortProp:A,sortOrder:k,hoverRow:L,...De,...qe,...mt}}}function uL(t,e){return t.map(n=>{var r;return n.id===e.id?e:((r=n.children)!=null&&r.length&&(n.children=uL(n.children,e)),n)})}function cL(t){t.forEach(e=>{var n,r;e.no=(n=e.getColumnIndex)==null?void 0:n.call(e),(r=e.children)!=null&&r.length&&cL(e.children)}),t.sort((e,n)=>e.no-n.no)}function G8e(){const t=Qt(),e=U8e();return{ns:Ye("table"),...e,mutations:{setData(o,s){const l=b(o._data)!==s;o.data.value=s,o._data.value=s,t.store.execQuery(),t.store.updateCurrentRowData(),t.store.updateExpandRows(),t.store.updateTreeData(t.store.states.defaultExpandAll.value),b(o.reserveSelection)?(t.store.assertRowKey(),t.store.updateSelectionByRowKey()):l?t.store.clearSelection():t.store.cleanSelection(),t.store.updateAllSelected(),t.$ready&&t.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=uL(c,l)):(c.push(s),f=c),cL(f),o._columns.value=f,o.updateOrderFns.push(u),s.type==="selection"&&(o.selectable.value=s.selectable,o.reserveSelection.value=s.reserveSelection),t.$ready&&(t.store.updateColumns(),t.store.scheduleLayout())},updateColumnOrder(o,s){var l;((l=s.getColumnIndex)==null?void 0:l.call(s))!==s.no&&(cL(o._columns.value),t.$ready&&t.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),xt(()=>{var d;((d=l.children)==null?void 0:d.length)===0&&delete l.children}),o._columns.value=uL(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),t.$ready&&(t.store.updateColumns(),t.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,t.store.updateSort(f,l,u),t.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 p={filter:!0};t.store.execQuery(p),(!s||!(s.silent||s.init))&&t.emit("sort-change",{column:f,prop:d,order:h}),t.store.updateTableScrollY()},filterChange(o,s){const{column:l,values:u,silent:c}=s,f=t.store.updateFilters(l,u);t.store.execQuery(),c||t.emit("filter-change",f),t.store.updateTableScrollY()},toggleAllSelection(){t.store.toggleAllSelection()},rowSelectedChanged(o,s){t.store.toggleRowSelection(s),t.store.updateAllSelected()},setHoverRow(o,s){o.hoverRow.value=s},setCurrentRow(o,s){t.store.updateCurrentRow(s)}},commit:function(o,...s){const l=t.store.mutations;if(l[o])l[o].apply(t,[t.store.states].concat(s));else throw new Error(`Action not found: ${o}`)},updateTableScrollY:function(){xt(()=>t.layout.updateScrollY.apply(t.layout))}}}const Am={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 H8e(t,e){if(!t)throw new Error("Table is required.");const n=G8e();return n.toggleAllSelection=ao(n._toggleAllSelection,10),Object.keys(Am).forEach(r=>{wQ(xQ(e,r),r,n)}),W8e(n,e),n}function W8e(t,e){Object.keys(Am).forEach(n=>{Ke(()=>xQ(e,n),r=>{wQ(r,n,t)})})}function wQ(t,e,n){let r=t,a=Am[e];typeof Am[e]=="object"&&(a=a.key,r=r||Am[e].default),n.states[a].value=r}function xQ(t,e){if(e.includes(".")){const n=e.split(".");let r=t;return n.forEach(a=>{r=r[a]}),r}else return t[e]}class j8e{constructor(e){this.observers=[],this.table=null,this.store=null,this.columns=[],this.fit=!0,this.showHeader=!0,this.height=B(null),this.scrollX=B(!1),this.scrollY=B(!1),this.bodyWidth=B(null),this.fixedWidth=B(null),this.rightFixedWidth=B(null),this.gutterWidth=0;for(const n in e)Sn(e,n)&&(ft(this[n])?this[n].value=e[n]:this[n]=e[n]);if(!this.table)throw new Error("Table is required for Table Layout");if(!this.store)throw new Error("Store is required for Table Layout")}updateScrollY(){if(this.height.value===null)return!1;const n=this.table.refs.scrollBarRef;if(this.table.vnode.el&&(n!=null&&n.wrapRef)){let r=!0;const a=this.scrollY.value;return r=n.wrapRef.scrollHeight>n.wrapRef.clientHeight,this.scrollY.value=r,a!==r}return!1}setHeight(e,n="height"){if(!_n)return;const r=this.table.vnode.el;if(e=V8e(e),this.height.value=Number(e),!r&&(e||e===0))return xt(()=>this.setHeight(e,n));typeof e=="number"?(r.style[n]=`${e}px`,this.updateElsHeight()):typeof e=="string"&&(r.style[n]=e,this.updateElsHeight())}setMaxHeight(e){this.setHeight(e,"max-height")}getFlattenColumns(){const e=[];return this.table.store.states.columns.value.forEach(r=>{r.isColumnGroup?e.push.apply(e,r.columns):e.push(r)}),e}updateElsHeight(){this.updateScrollY(),this.notifyObservers("scrollable")}headerDisplayNone(e){if(!e)return!0;let n=e;for(;n.tagName!=="DIV";){if(getComputedStyle(n).display==="none")return!0;n=n.parentElement}return!1}updateColumnsWidth(){if(!_n)return;const e=this.fit,n=this.table.vnode.el.clientWidth;let r=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&&e){if(a.forEach(l=>{r+=Number(l.width||l.minWidth||80)}),r<=n){this.scrollX.value=!1;const l=n-r;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 p=Math.floor(Number(d.minWidth||80)*c);f+=p,d.realWidth=Number(d.minWidth||80)+p}),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(r,n),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),r+=l.realWidth}),this.scrollX.value=r>n,this.bodyWidth.value=r;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(e){this.observers.push(e)}removeObserver(e){const n=this.observers.indexOf(e);n!==-1&&this.observers.splice(n,1)}notifyObservers(e){this.observers.forEach(r=>{var a,i;switch(e){case"columns":(a=r.state)==null||a.onColumnsChange(this);break;case"scrollable":(i=r.state)==null||i.onScrollableChange(this);break;default:throw new Error(`Table Layout don't have event ${e}.`)}})}}const{CheckboxGroup:K8e}=Ms,Y8e=ye({name:"ElTableFilterPanel",components:{ElCheckbox:Ms,ElCheckboxGroup:K8e,ElScrollbar:xc,ElTooltip:io,ElIcon:_t,ArrowDown:rd,ArrowUp:yT},directives:{ClickOutside:Wf},props:{placement:{type:String,default:"bottom-start"},store:{type:Object},column:{type:Object},upDataColumn:{type:Function}},setup(t){const e=Qt(),{t:n}=En(),r=Ye("table-filter"),a=e==null?void 0:e.parent;a.filterPanels.value[t.column.id]||(a.filterPanels.value[t.column.id]=e);const i=B(!1),o=B(null),s=U(()=>t.column&&t.column.filters),l=U({get:()=>{var w;return(((w=t.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=U({get(){return t.column?t.column.filteredValue||[]:[]},set(w){t.column&&t.upDataColumn("filteredValue",w)}}),c=U(()=>t.column?t.column.filterMultiple:!0),f=w=>w.value===l.value,d=()=>{i.value=!1},h=w=>{w.stopPropagation(),i.value=!i.value},p=()=>{i.value=!1},v=()=>{m(u.value),d()},g=()=>{u.value=[],m(u.value),d()},y=w=>{l.value=w,m(typeof w<"u"&&w!==null?u.value:[]),d()},m=w=>{t.store.commit("filterChange",{column:t.column,values:w}),t.store.updateAllSelected()};Ke(i,w=>{t.column&&t.upDataColumn("filterOpened",w)},{immediate:!0});const S=U(()=>{var w,C;return(C=(w=o.value)==null?void 0:w.popperRef)==null?void 0:C.contentRef});return{tooltipVisible:i,multiple:c,filteredValue:u,filterValue:l,filters:s,handleConfirm:v,handleReset:g,handleSelect:y,isActive:f,t:n,ns:r,showFilterPanel:h,hideFilterPanel:p,popperPaneRef:S,tooltip:o}}}),X8e={key:0},q8e=["disabled"],Z8e=["label","onClick"];function Q8e(t,e,n,r,a,i){const o=$e("el-checkbox"),s=$e("el-checkbox-group"),l=$e("el-scrollbar"),u=$e("arrow-up"),c=$e("arrow-down"),f=$e("el-icon"),d=$e("el-tooltip"),h=i1("click-outside");return G(),Ee(d,{ref:"tooltip",visible:t.tooltipVisible,offset:0,placement:t.placement,"show-arrow":!1,"stop-popper-mouse-event":!1,teleported:"",effect:"light",pure:"","popper-class":t.ns.b(),persistent:""},{content:j(()=>[t.multiple?(G(),re("div",X8e,[R("div",{class:Y(t.ns.e("content"))},[N(l,{"wrap-class":t.ns.e("wrap")},{default:j(()=>[N(s,{modelValue:t.filteredValue,"onUpdate:modelValue":e[0]||(e[0]=p=>t.filteredValue=p),class:Y(t.ns.e("checkbox-group"))},{default:j(()=>[(G(!0),re(Ct,null,dn(t.filters,p=>(G(),Ee(o,{key:p.value,label:p.value},{default:j(()=>[Be(We(p.text),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue","class"])]),_:1},8,["wrap-class"])],2),R("div",{class:Y(t.ns.e("bottom"))},[R("button",{class:Y({[t.ns.is("disabled")]:t.filteredValue.length===0}),disabled:t.filteredValue.length===0,type:"button",onClick:e[1]||(e[1]=(...p)=>t.handleConfirm&&t.handleConfirm(...p))},We(t.t("el.table.confirmFilter")),11,q8e),R("button",{type:"button",onClick:e[2]||(e[2]=(...p)=>t.handleReset&&t.handleReset(...p))},We(t.t("el.table.resetFilter")),1)],2)])):(G(),re("ul",{key:1,class:Y(t.ns.e("list"))},[R("li",{class:Y([t.ns.e("list-item"),{[t.ns.is("active")]:t.filterValue===void 0||t.filterValue===null}]),onClick:e[3]||(e[3]=p=>t.handleSelect(null))},We(t.t("el.table.clearFilter")),3),(G(!0),re(Ct,null,dn(t.filters,p=>(G(),re("li",{key:p.value,class:Y([t.ns.e("list-item"),t.ns.is("active",t.isActive(p))]),label:p.value,onClick:v=>t.handleSelect(p.value)},We(p.text),11,Z8e))),128))],2))]),default:j(()=>[Ft((G(),re("span",{class:Y([`${t.ns.namespace.value}-table__column-filter-trigger`,`${t.ns.namespace.value}-none-outline`]),onClick:e[4]||(e[4]=(...p)=>t.showFilterPanel&&t.showFilterPanel(...p))},[N(f,null,{default:j(()=>[t.column.filterOpened?(G(),Ee(u,{key:0})):(G(),Ee(c,{key:1}))]),_:1})],2)),[[h,t.hideFilterPanel,t.popperPaneRef]])]),_:1},8,["visible","placement","popper-class"])}var J8e=tt(Y8e,[["render",Q8e],["__file","/home/runner/work/element-plus/element-plus/packages/components/table/src/filter-panel.vue"]]);function _Q(t){const e=Qt();QC(()=>{n.value.addObserver(e)}),Ut(()=>{r(n.value),a(n.value)}),bc(()=>{r(n.value),a(n.value)}),bu(()=>{n.value.removeObserver(e)});const n=U(()=>{const i=t.layout;if(!i)throw new Error("Can not find table layout.");return i}),r=i=>{var o;const s=((o=t.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<f;c++){const d=s[c],h=d.getAttribute("name"),p=u[h];p&&d.setAttribute("width",p.realWidth||p.width)}},a=i=>{var o,s;const l=((o=t.vnode.el)==null?void 0:o.querySelectorAll("colgroup > col[name=gutter]"))||[];for(let c=0,f=l.length;c<f;c++)l[c].setAttribute("width",i.scrollY.value?i.gutterWidth:"0");const u=((s=t.vnode.el)==null?void 0:s.querySelectorAll("th.gutter"))||[];for(let c=0,f=u.length;c<f;c++){const d=u[c];d.style.width=i.scrollY.value?`${i.gutterWidth}px`:"0",d.style.display=i.scrollY.value?"":"none"}};return{tableLayout:n.value,onColumnsChange:r,onScrollableChange:a}}const xu=Symbol("ElTable");function e6e(t,e){const n=Qt(),r=yt(xu),a=v=>{v.stopPropagation()},i=(v,g)=>{!g.filters&&g.sortable?p(v,g,!1):g.filterable&&!g.sortable&&a(v),r==null||r.emit("header-click",g,v)},o=(v,g)=>{r==null||r.emit("header-contextmenu",g,v)},s=B(null),l=B(!1),u=B({}),c=(v,g)=>{if(_n&&!(g.children&&g.children.length>0)&&s.value&&t.border){l.value=!0;const y=r;e("set-drag-visible",!0);const S=(y==null?void 0:y.vnode.el).getBoundingClientRect().left,w=n.vnode.el.querySelector(`th.${g.id}`),C=w.getBoundingClientRect(),_=C.left-S+30;Ql(w,"noclick"),u.value={startMouseLeft:v.clientX,startLeft:C.right-S,startColumnLeft:C.left-S,tableLeft:S};const x=y==null?void 0:y.refs.resizeProxy;x.style.left=`${u.value.startLeft}px`,document.onselectstart=function(){return!1},document.ondragstart=function(){return!1};const T=E=>{const A=E.clientX-u.value.startMouseLeft,k=u.value.startLeft+A;x.style.left=`${Math.max(_,k)}px`},M=()=>{if(l.value){const{startColumnLeft:E,startLeft:A}=u.value,L=Number.parseInt(x.style.left,10)-E;g.width=g.realWidth=L,y==null||y.emit("header-dragend",g.width,A-E,g,v),requestAnimationFrame(()=>{t.store.scheduleLayout(!1,!0)}),document.body.style.cursor="",l.value=!1,s.value=null,u.value={},e("set-drag-visible",!1)}document.removeEventListener("mousemove",T),document.removeEventListener("mouseup",M),document.onselectstart=null,document.ondragstart=null,setTimeout(()=>{Eo(w,"noclick")},0)};document.addEventListener("mousemove",T),document.addEventListener("mouseup",M)}},f=(v,g)=>{if(g.children&&g.children.length>0)return;const y=v.target;if(!xs(y))return;const m=y==null?void 0:y.closest("th");if(!(!g||!g.resizable)&&!l.value&&t.border){const S=m.getBoundingClientRect(),w=document.body.style;S.width>12&&S.right-v.pageX<8?(w.cursor="col-resize",dl(m,"is-sortable")&&(m.style.cursor="col-resize"),s.value=g):l.value||(w.cursor="",dl(m,"is-sortable")&&(m.style.cursor="pointer"),s.value=null)}},d=()=>{_n&&(document.body.style.cursor="")},h=({order:v,sortOrders:g})=>{if(v==="")return g[0];const y=g.indexOf(v||null);return g[y>g.length-2?0:y+1]},p=(v,g,y)=>{var m;v.stopPropagation();const S=g.order===y?null:y||h(g),w=(m=v.target)==null?void 0:m.closest("th");if(w&&dl(w,"noclick")){Eo(w,"noclick");return}if(!g.sortable)return;const C=t.store.states;let _=C.sortProp.value,x;const T=C.sortingColumn.value;(T!==g||T===g&&T.order===null)&&(T&&(T.order=null),C.sortingColumn.value=g,_=g.property),S?x=g.order=S:x=g.order=null,C.sortProp.value=_,C.sortOrder.value=x,r==null||r.store.commit("changeSortCondition")};return{handleHeaderClick:i,handleHeaderContextMenu:o,handleMouseDown:c,handleMouseMove:f,handleMouseOut:d,handleSortClick:p,handleFilterClick:a}}function t6e(t){const e=yt(xu),n=Ye("table");return{getHeaderRowStyle:s=>{const l=e==null?void 0:e.props.headerRowStyle;return typeof l=="function"?l.call(null,{rowIndex:s}):l},getHeaderRowClass:s=>{const l=[],u=e==null?void 0:e.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=e==null?void 0:e.props.headerCellStyle)!=null?f:{};typeof d=="function"&&(d=d.call(null,{rowIndex:s,columnIndex:l,row:u,column:c}));const h=DV(l,c.fixed,t.store,u);return Ug(h,"left"),Ug(h,"right"),Object.assign({},d,h)},getHeaderCellClass:(s,l,u,c)=>{const f=MV(n.b(),l,c.fixed,t.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=e==null?void 0:e.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(n.e("cell")),d.filter(p=>!!p).join(" ")}}}const CQ=t=>{const e=[];return t.forEach(n=>{n.children?(e.push(n),e.push.apply(e,CQ(n.children))):e.push(n)}),e},n6e=t=>{let e=1;const n=(i,o)=>{if(o&&(i.level=o.level+1,e<i.level&&(e=i.level)),i.children){let s=0;i.children.forEach(l=>{n(l,i),s+=l.colSpan}),i.colSpan=s}else i.colSpan=1};t.forEach(i=>{i.level=1,n(i,void 0)});const r=[];for(let i=0;i<e;i++)r.push([]);return CQ(t).forEach(i=>{i.children?(i.rowSpan=1,i.children.forEach(o=>o.isSubColumn=!0)):i.rowSpan=e-i.level+1,r[i.level-1].push(i)}),r};function r6e(t){const e=yt(xu),n=U(()=>n6e(t.store.states.originColumns.value));return{isGroup:U(()=>{const i=n.value.length>1;return i&&e&&(e.state.isGroup.value=!0),i}),toggleAllSelection:i=>{i.stopPropagation(),e==null||e.store.commit("toggleAllSelection")},columnRows:n}}var a6e=ye({name:"ElTableHeader",components:{ElCheckbox:Ms},props:{fixed:{type:String,default:""},store:{required:!0,type:Object},border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})}},setup(t,{emit:e}){const n=Qt(),r=yt(xu),a=Ye("table"),i=B({}),{onColumnsChange:o,onScrollableChange:s}=_Q(r);Ut(async()=>{await xt(),await xt();const{prop:_,order:x}=t.defaultSort;r==null||r.store.commit("sort",{prop:_,order:x,init:!0})});const{handleHeaderClick:l,handleHeaderContextMenu:u,handleMouseDown:c,handleMouseMove:f,handleMouseOut:d,handleSortClick:h,handleFilterClick:p}=e6e(t,e),{getHeaderRowStyle:v,getHeaderRowClass:g,getHeaderCellStyle:y,getHeaderCellClass:m}=t6e(t),{isGroup:S,toggleAllSelection:w,columnRows:C}=r6e(t);return n.state={onColumnsChange:o,onScrollableChange:s},n.filterPanels=i,{ns:a,filterPanels:i,onColumnsChange:o,onScrollableChange:s,columnRows:C,getHeaderRowClass:g,getHeaderRowStyle:v,getHeaderCellClass:m,getHeaderCellStyle:y,handleHeaderClick:l,handleHeaderContextMenu:u,handleMouseDown:c,handleMouseMove:f,handleMouseOut:d,handleSortClick:h,handleFilterClick:p,isGroup:S,toggleAllSelection:w}},render(){const{ns:t,isGroup:e,columnRows:n,getHeaderCellStyle:r,getHeaderCellClass:a,getHeaderRowClass:i,getHeaderRowStyle:o,handleHeaderClick:s,handleHeaderContextMenu:l,handleMouseDown:u,handleMouseMove:c,handleSortClick:f,handleMouseOut:d,store:h,$parent:p}=this;let v=1;return At("thead",{class:{[t.is("group")]:e}},n.map((g,y)=>At("tr",{class:i(y),key:y,style:o(y)},g.map((m,S)=>(m.rowSpan>v&&(v=m.rowSpan),At("th",{class:a(y,S,g,m),colspan:m.colSpan,key:`${m.id}-thead`,rowspan:m.rowSpan,style:r(y,S,g,m),onClick:w=>s(w,m),onContextmenu:w=>l(w,m),onMousedown:w=>u(w,m),onMousemove:w=>c(w,m),onMouseout:d},[At("div",{class:["cell",m.filteredValue&&m.filteredValue.length>0?"highlight":""]},[m.renderHeader?m.renderHeader({column:m,$index:S,store:h,_self:p}):m.label,m.sortable&&At("span",{onClick:w=>f(w,m),class:"caret-wrapper"},[At("i",{onClick:w=>f(w,m,"ascending"),class:"sort-caret ascending"}),At("i",{onClick:w=>f(w,m,"descending"),class:"sort-caret descending"})]),m.filterable&&At(J8e,{store:h,placement:m.filterPlacement||"bottom-start",column:m,upDataColumn:(w,C)=>{m[w]=C}})])]))))))}});function i6e(t){const e=yt(xu),n=B(""),r=B(At("div")),{nextZIndex:a}=m0(),i=(p,v,g)=>{var y;const m=e,S=PM(p);let w;const C=(y=m==null?void 0:m.vnode.el)==null?void 0:y.dataset.prefix;S&&(w=v8({columns:t.store.states.columns.value},S,C),w&&(m==null||m.emit(`cell-${g}`,v,w,S,p))),m==null||m.emit(`row-${g}`,v,w,p)},o=(p,v)=>{i(p,v,"dblclick")},s=(p,v)=>{t.store.commit("setCurrentRow",v),i(p,v,"click")},l=(p,v)=>{i(p,v,"contextmenu")},u=ao(p=>{t.store.commit("setHoverRow",p)},30),c=ao(()=>{t.store.commit("setHoverRow",null)},30),f=p=>{const v=window.getComputedStyle(p,null),g=Number.parseInt(v.paddingLeft,10)||0,y=Number.parseInt(v.paddingRight,10)||0,m=Number.parseInt(v.paddingTop,10)||0,S=Number.parseInt(v.paddingBottom,10)||0;return{left:g,right:y,top:m,bottom:S}};return{handleDoubleClick:o,handleClick:s,handleContextMenu:l,handleMouseEnter:u,handleMouseLeave:c,handleCellMouseEnter:(p,v,g)=>{var y;const m=e,S=PM(p),w=(y=m==null?void 0:m.vnode.el)==null?void 0:y.dataset.prefix;if(S){const $=v8({columns:t.store.states.columns.value},S,w),W=m.hoverState={cell:S,column:$,row:v};m==null||m.emit("cell-mouse-enter",W.row,W.column,W.cell,p)}if(!g)return;const C=p.target.querySelector(".cell");if(!(dl(C,`${w}-tooltip`)&&C.childNodes.length))return;const _=document.createRange();_.setStart(C,0),_.setEnd(C,C.childNodes.length);let x=_.getBoundingClientRect().width,T=_.getBoundingClientRect().height;x-Math.floor(x)<.001&&(x=Math.floor(x)),T-Math.floor(T)<.001&&(T=Math.floor(T));const{top:A,left:k,right:L,bottom:I}=f(C),P=k+L,F=A+I;(x+P>C.offsetWidth||T+F>C.offsetHeight||C.scrollWidth>C.offsetWidth)&&B8e(e==null?void 0:e.refs.tableWrapper,S,S.innerText||S.textContent,a,g)},handleCellMouseLeave:p=>{if(!PM(p))return;const g=e==null?void 0:e.hoverState;e==null||e.emit("cell-mouse-leave",g==null?void 0:g.row,g==null?void 0:g.column,g==null?void 0:g.cell,p)},tooltipContent:n,tooltipTrigger:r}}function o6e(t){const e=yt(xu),n=Ye("table");return{getRowStyle:(u,c)=>{const f=e==null?void 0:e.props.rowStyle;return typeof f=="function"?f.call(null,{row:u,rowIndex:c}):f||null},getRowClass:(u,c)=>{const f=[n.e("row")];e!=null&&e.props.highlightCurrentRow&&u===t.store.states.currentRow.value&&f.push("current-row"),t.stripe&&c%2===1&&f.push(n.em("row","striped"));const d=e==null?void 0:e.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=e==null?void 0:e.props.cellStyle;let p=h??{};typeof h=="function"&&(p=h.call(null,{rowIndex:u,columnIndex:c,row:f,column:d}));const v=DV(c,t==null?void 0:t.fixed,t.store);return Ug(v,"left"),Ug(v,"right"),Object.assign({},p,v)},getCellClass:(u,c,f,d,h)=>{const p=MV(n.b(),c,t==null?void 0:t.fixed,t.store,void 0,h),v=[d.id,d.align,d.className,...p],g=e==null?void 0:e.props.cellClassName;return typeof g=="string"?v.push(g):typeof g=="function"&&v.push(g.call(null,{rowIndex:u,columnIndex:c,row:f,column:d})),v.push(n.e("cell")),v.filter(y=>!!y).join(" ")},getSpan:(u,c,f,d)=>{let h=1,p=1;const v=e==null?void 0:e.props.spanMethod;if(typeof v=="function"){const g=v({row:u,column:c,rowIndex:f,columnIndex:d});Array.isArray(g)?(h=g[0],p=g[1]):typeof g=="object"&&(h=g.rowspan,p=g.colspan)}return{rowspan:h,colspan:p}},getColspanRealWidth:(u,c,f)=>{if(c<1)return u[f].realWidth;const d=u.map(({realWidth:h,width:p})=>h||p).slice(f,f+c);return Number(d.reduce((h,p)=>Number(h)+Number(p),-1))}}}function s6e(t){const e=yt(xu),n=Ye("table"),{handleDoubleClick:r,handleClick:a,handleContextMenu:i,handleMouseEnter:o,handleMouseLeave:s,handleCellMouseEnter:l,handleCellMouseLeave:u,tooltipContent:c,tooltipTrigger:f}=i6e(t),{getRowStyle:d,getRowClass:h,getCellStyle:p,getCellClass:v,getSpan:g,getColspanRealWidth:y}=o6e(t),m=U(()=>t.store.states.columns.value.findIndex(({type:x})=>x==="default")),S=(x,T)=>{const M=e.props.rowKey;return M?hi(x,M):T},w=(x,T,M,E=!1)=>{const{tooltipEffect:A,tooltipOptions:k,store:L}=t,{indent:I,columns:P}=L.states,F=h(x,T);let $=!0;return M&&(F.push(n.em("row",`level-${M.level}`)),$=M.display),At("tr",{style:[$?null:{display:"none"},d(x,T)],class:F,key:S(x,T),onDblclick:V=>r(V,x),onClick:V=>a(V,x),onContextmenu:V=>i(V,x),onMouseenter:()=>o(T),onMouseleave:s},P.value.map((V,z)=>{const{rowspan:K,colspan:Z}=g(x,V,T,z);if(!K||!Z)return null;const oe=Object.assign({},V);oe.realWidth=y(P.value,Z,z);const ge={store:t.store,_self:t.context||e,column:oe,row:x,$index:T,cellIndex:z,expanded:E};z===m.value&&M&&(ge.treeNode={indent:M.level*I.value,level:M.level},typeof M.expanded=="boolean"&&(ge.treeNode.expanded=M.expanded,"loading"in M&&(ge.treeNode.loading=M.loading),"noLazyChildren"in M&&(ge.treeNode.noLazyChildren=M.noLazyChildren)));const ie=`${T},${z}`,Q=oe.columnKey||oe.rawColumnKey||"",ce=C(z,V,ge),se=V.showOverflowTooltip&&JY({effect:A},k,V.showOverflowTooltip);return At("td",{style:p(T,z,x,V),class:v(T,z,x,V,Z-1),key:`${Q}${ie}`,rowspan:K,colspan:Z,onMouseenter:me=>l(me,x,se),onMouseleave:u},[ce])}))},C=(x,T,M)=>T.renderCell(M);return{wrappedRowRender:(x,T)=>{const M=t.store,{isRowExpanded:E,assertRowKey:A}=M,{treeData:k,lazyTreeNodeMap:L,childrenColumnName:I,rowKey:P}=M.states,F=M.states.columns.value;if(F.some(({type:W})=>W==="expand")){const W=E(x),V=w(x,T,void 0,W),z=e.renderExpanded;return W?z?[[V,At("tr",{key:`expanded-row__${V.key}`},[At("td",{colspan:F.length,class:`${n.e("cell")} ${n.e("expanded-cell")}`},[z({row:x,$index:T,store:M,expanded:W})])])]]:(console.error("[Element Error]renderExpanded is required."),V):[[V]]}else if(Object.keys(k.value).length){A();const W=hi(x,P.value);let V=k.value[W],z=null;V&&(z={expanded:V.expanded,level:V.level,display:!0},typeof V.lazy=="boolean"&&(typeof V.loaded=="boolean"&&V.loaded&&(z.noLazyChildren=!(V.children&&V.children.length)),z.loading=V.loading));const K=[w(x,T,z)];if(V){let Z=0;const oe=(ie,Q)=>{ie&&ie.length&&Q&&ie.forEach(ce=>{const se={display:Q.display&&Q.expanded,level:Q.level+1,expanded:!1,noLazyChildren:!1,loading:!1},me=hi(ce,P.value);if(me==null)throw new Error("For nested data item, row-key is required.");if(V={...k.value[me]},V&&(se.expanded=V.expanded,V.level=V.level||se.level,V.display=!!(V.expanded&&se.display),typeof V.lazy=="boolean"&&(typeof V.loaded=="boolean"&&V.loaded&&(se.noLazyChildren=!(V.children&&V.children.length)),se.loading=V.loading)),Z++,K.push(w(ce,T+Z,se)),V){const ve=L.value[me]||ce[I.value];oe(ve,V)}})};V.display=!0;const ge=L.value[W]||x[I.value];oe(ge,V)}return K}else return w(x,T,void 0)},tooltipContent:c,tooltipTrigger:f}}const l6e={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 u6e=ye({name:"ElTableBody",props:l6e,setup(t){const e=Qt(),n=yt(xu),r=Ye("table"),{wrappedRowRender:a,tooltipContent:i,tooltipTrigger:o}=s6e(t),{onColumnsChange:s,onScrollableChange:l}=_Q(n);return Ke(t.store.states.hoverRow,(u,c)=>{!t.store.states.isComplex.value||!_n||Vg(()=>{const f=e==null?void 0:e.vnode.el,d=Array.from((f==null?void 0:f.children)||[]).filter(v=>v==null?void 0:v.classList.contains(`${r.e("row")}`)),h=d[c],p=d[u];h&&Eo(h,"hover-row"),p&&Ql(p,"hover-row")})}),bu(()=>{var u;(u=Bu)==null||u()}),{ns:r,onColumnsChange:s,onScrollableChange:l,wrappedRowRender:a,tooltipContent:i,tooltipTrigger:o}},render(){const{wrappedRowRender:t,store:e}=this,n=e.states.data.value||[];return At("tbody",{tabIndex:-1},[n.reduce((r,a)=>r.concat(t(a,r.length)),[])])}});function AV(t){const e=t.tableLayout==="auto";let n=t.columns||[];e&&n.every(a=>a.width===void 0)&&(n=[]);const r=a=>{const i={key:`${t.tableLayout}_${a.id}`,style:{},name:void 0};return e?i.style={width:`${a.width}px`}:i.name=a.id,i};return At("colgroup",{},n.map(a=>At("col",r(a))))}AV.props=["columns","tableLayout"];function c6e(){const t=yt(xu),e=t==null?void 0:t.store,n=U(()=>e.states.fixedLeafColumnsLength.value),r=U(()=>e.states.rightFixedColumns.value.length),a=U(()=>e.states.columns.value.length),i=U(()=>e.states.fixedColumns.value.length),o=U(()=>e.states.rightFixedColumns.value.length);return{leftFixedLeafCount:n,rightFixedLeafCount:r,columnsCount:a,leftFixedCount:i,rightFixedCount:o,columns:e.states.columns}}function f6e(t){const{columns:e}=c6e(),n=Ye("table");return{getCellClasses:(i,o)=>{const s=i[o],l=[n.e("cell"),s.id,s.align,s.labelClassName,...MV(n.b(),o,s.fixed,t.store)];return s.className&&l.push(s.className),s.children||l.push(n.is("leaf")),l},getCellStyles:(i,o)=>{const s=DV(o,i.fixed,t.store);return Ug(s,"left"),Ug(s,"right"),s},columns:e}}var d6e=ye({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(t){const{getCellClasses:e,getCellStyles:n,columns:r}=f6e(t);return{ns:Ye("table"),getCellClasses:e,getCellStyles:n,columns:r}},render(){const{columns:t,getCellStyles:e,getCellClasses:n,summaryMethod:r,sumText:a,ns:i}=this,o=this.store.states.data.value;let s=[];return r?s=r({columns:t,data:o}):t.forEach((l,u)=>{if(u===0){s[u]=a;return}const c=o.map(p=>Number(p[l.property])),f=[];let d=!0;c.forEach(p=>{if(!Number.isNaN(+p)){d=!1;const v=`${p}`.split(".")[1];f.push(v?v.length:0)}});const h=Math.max.apply(null,f);d?s[u]="":s[u]=c.reduce((p,v)=>{const g=Number(v);return Number.isNaN(+g)?p:Number.parseFloat((p+v).toFixed(Math.min(h,20)))},0)}),At("table",{class:i.e("footer"),cellspacing:"0",cellpadding:"0",border:"0"},[AV({columns:t}),At("tbody",[At("tr",{},[...t.map((l,u)=>At("td",{key:u,colspan:l.colSpan,rowspan:l.rowSpan,class:n(t,u),style:e(l,u)},[At("div",{class:["cell",l.labelClassName]},[s[u]])]))])])])}});function h6e(t){return{setCurrentRow:c=>{t.commit("setCurrentRow",c)},getSelectionRows:()=>t.getSelectionRows(),toggleRowSelection:(c,f)=>{t.toggleRowSelection(c,f,!1),t.updateAllSelected()},clearSelection:()=>{t.clearSelection()},clearFilter:c=>{t.clearFilter(c)},toggleAllSelection:()=>{t.commit("toggleAllSelection")},toggleRowExpansion:(c,f)=>{t.toggleRowExpansionAdapter(c,f)},clearSort:()=>{t.clearSort()},sort:(c,f)=>{t.commit("sort",{prop:c,order:f})}}}function p6e(t,e,n,r){const a=B(!1),i=B(null),o=B(!1),s=V=>{o.value=V},l=B({width:null,height:null,headerHeight:null}),u=B(!1),c={display:"inline-block",verticalAlign:"middle"},f=B(),d=B(0),h=B(0),p=B(0),v=B(0),g=B(0);Uo(()=>{e.setHeight(t.height)}),Uo(()=>{e.setMaxHeight(t.maxHeight)}),Ke(()=>[t.currentRowKey,n.states.rowKey],([V,z])=>{!b(z)||!b(V)||n.setCurrentRowKey(`${V}`)},{immediate:!0}),Ke(()=>t.data,V=>{r.store.commit("setData",V)},{immediate:!0,deep:!0}),Uo(()=>{t.expandRowKeys&&n.setExpandRowKeysAdapter(t.expandRowKeys)});const y=()=>{r.store.commit("setHoverRow",null),r.hoverState&&(r.hoverState=null)},m=(V,z)=>{const{pixelX:K,pixelY:Z}=z;Math.abs(K)>=Math.abs(Z)&&(r.refs.bodyWrapper.scrollLeft+=z.pixelX/5)},S=U(()=>t.height||t.maxHeight||n.states.fixedColumns.value.length>0||n.states.rightFixedColumns.value.length>0),w=U(()=>({width:e.bodyWidth.value?`${e.bodyWidth.value}px`:""})),C=()=>{S.value&&e.updateElsHeight(),e.updateColumnsWidth(),requestAnimationFrame(M)};Ut(async()=>{await xt(),n.updateColumns(),E(),requestAnimationFrame(C);const V=r.vnode.el,z=r.refs.headerWrapper;t.flexible&&V&&V.parentElement&&(V.parentElement.style.minWidth="0"),l.value={width:f.value=V.offsetWidth,height:V.offsetHeight,headerHeight:t.showHeader&&z?z.offsetHeight:null},n.states.columns.value.forEach(K=>{K.filteredValue&&K.filteredValue.length&&r.store.commit("filterChange",{column:K,values:K.filteredValue,silent:!0})}),r.$ready=!0});const _=(V,z)=>{if(!V)return;const K=Array.from(V.classList).filter(Z=>!Z.startsWith("is-scrolling-"));K.push(e.scrollX.value?z:"is-scrolling-none"),V.className=K.join(" ")},x=V=>{const{tableWrapper:z}=r.refs;_(z,V)},T=V=>{const{tableWrapper:z}=r.refs;return!!(z&&z.classList.contains(V))},M=function(){if(!r.refs.scrollBarRef)return;if(!e.scrollX.value){const Q="is-scrolling-none";T(Q)||x(Q);return}const V=r.refs.scrollBarRef.wrapRef;if(!V)return;const{scrollLeft:z,offsetWidth:K,scrollWidth:Z}=V,{headerWrapper:oe,footerWrapper:ge}=r.refs;oe&&(oe.scrollLeft=z),ge&&(ge.scrollLeft=z);const ie=Z-K-1;z>=ie?x("is-scrolling-right"):x(z===0?"is-scrolling-left":"is-scrolling-middle")},E=()=>{r.refs.scrollBarRef&&(r.refs.scrollBarRef.wrapRef&&Or(r.refs.scrollBarRef.wrapRef,"scroll",M,{passive:!0}),t.fit?Vi(r.vnode.el,A):Or(window,"resize",A),Vi(r.refs.bodyWrapper,()=>{var V,z;A(),(z=(V=r.refs)==null?void 0:V.scrollBarRef)==null||z.update()}))},A=()=>{var V,z,K,Z;const oe=r.vnode.el;if(!r.$ready||!oe)return;let ge=!1;const{width:ie,height:Q,headerHeight:ce}=l.value,se=f.value=oe.offsetWidth;ie!==se&&(ge=!0);const me=oe.offsetHeight;(t.height||S.value)&&Q!==me&&(ge=!0);const ve=t.tableLayout==="fixed"?r.refs.headerWrapper:(V=r.refs.tableHeaderRef)==null?void 0:V.$el;t.showHeader&&(ve==null?void 0:ve.offsetHeight)!==ce&&(ge=!0),d.value=((z=r.refs.tableWrapper)==null?void 0:z.scrollHeight)||0,p.value=(ve==null?void 0:ve.scrollHeight)||0,v.value=((K=r.refs.footerWrapper)==null?void 0:K.offsetHeight)||0,g.value=((Z=r.refs.appendWrapper)==null?void 0:Z.offsetHeight)||0,h.value=d.value-p.value-v.value-g.value,ge&&(l.value={width:se,height:me,headerHeight:t.showHeader&&(ve==null?void 0:ve.offsetHeight)||0},C())},k=Aa(),L=U(()=>{const{bodyWidth:V,scrollY:z,gutterWidth:K}=e;return V.value?`${V.value-(z.value?K:0)}px`:""}),I=U(()=>t.maxHeight?"fixed":t.tableLayout),P=U(()=>{if(t.data&&t.data.length)return null;let V="100%";t.height&&h.value&&(V=`${h.value}px`);const z=f.value;return{width:z?`${z}px`:"",height:V}}),F=U(()=>t.height?{height:Number.isNaN(Number(t.height))?t.height:`${t.height}px`}:t.maxHeight?{maxHeight:Number.isNaN(Number(t.maxHeight))?t.maxHeight:`${t.maxHeight}px`}:{}),$=U(()=>t.height?{height:"100%"}:t.maxHeight?Number.isNaN(Number(t.maxHeight))?{maxHeight:`calc(${t.maxHeight} - ${p.value+v.value}px)`}:{maxHeight:`${t.maxHeight-p.value-v.value}px`}:{});return{isHidden:a,renderExpanded:i,setDragVisible:s,isGroup:u,handleMouseLeave:y,handleHeaderFooterMousewheel:m,tableSize:k,emptyBlockStyle:P,handleFixedMousewheel:(V,z)=>{const K=r.refs.bodyWrapper;if(Math.abs(z.spinY)>0){const Z=K.scrollTop;z.pixelY<0&&Z!==0&&V.preventDefault(),z.pixelY>0&&K.scrollHeight-K.clientHeight>Z&&V.preventDefault(),K.scrollTop+=Math.ceil(z.pixelY/5)}else K.scrollLeft+=Math.ceil(z.pixelX/5)},resizeProxyVisible:o,bodyWidth:L,resizeState:l,doLayout:C,tableBodyStyles:w,tableLayout:I,scrollbarViewStyle:c,tableInnerStyle:F,scrollbarStyle:$}}function v6e(t){const e=B(),n=()=>{const a=t.vnode.el.querySelector(".hidden-columns"),i={childList:!0,subtree:!0},o=t.store.states.updateOrderFns;e.value=new MutationObserver(()=>{o.forEach(s=>s())}),e.value.observe(a,i)};Ut(()=>{n()}),bu(()=>{var r;(r=e.value)==null||r.disconnect()})}var g6e={data:{type:Array,default:()=>[]},size:yi,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]};const y6e=()=>{const t=B(),e=(i,o)=>{const s=t.value;s&&s.scrollTo(i,o)},n=(i,o)=>{const s=t.value;s&&Pt(o)&&["Top","Left"].includes(i)&&s[`setScroll${i}`](o)};return{scrollBarRef:t,scrollTo:e,setScrollTop:i=>n("Top",i),setScrollLeft:i=>n("Left",i)}};let m6e=1;const b6e=ye({name:"ElTable",directives:{Mousewheel:aLe},components:{TableHeader:a6e,TableBody:u6e,TableFooter:d6e,ElScrollbar:xc,hColgroup:AV},props:g6e,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(t){const{t:e}=En(),n=Ye("table"),r=Qt();fn(xu,r);const a=H8e(r,t);r.store=a;const i=new j8e({store:r.store,table:r,fit:t.fit,showHeader:t.showHeader});r.layout=i;const o=U(()=>(a.states.data.value||[]).length===0),{setCurrentRow:s,getSelectionRows:l,toggleRowSelection:u,clearSelection:c,clearFilter:f,toggleAllSelection:d,toggleRowExpansion:h,clearSort:p,sort:v}=h6e(a),{isHidden:g,renderExpanded:y,setDragVisible:m,isGroup:S,handleMouseLeave:w,handleHeaderFooterMousewheel:C,tableSize:_,emptyBlockStyle:x,handleFixedMousewheel:T,resizeProxyVisible:M,bodyWidth:E,resizeState:A,doLayout:k,tableBodyStyles:L,tableLayout:I,scrollbarViewStyle:P,tableInnerStyle:F,scrollbarStyle:$}=p6e(t,i,a,r),{scrollBarRef:W,scrollTo:V,setScrollLeft:z,setScrollTop:K}=y6e(),Z=ao(k,50),oe=`${n.namespace.value}-table_${m6e++}`;r.tableId=oe,r.state={isGroup:S,resizeState:A,doLayout:k,debouncedUpdateLayout:Z};const ge=U(()=>t.sumText||e("el.table.sumText")),ie=U(()=>t.emptyText||e("el.table.emptyText"));return v6e(r),{ns:n,layout:i,store:a,handleHeaderFooterMousewheel:C,handleMouseLeave:w,tableId:oe,tableSize:_,isHidden:g,isEmpty:o,renderExpanded:y,resizeProxyVisible:M,resizeState:A,isGroup:S,bodyWidth:E,tableBodyStyles:L,emptyBlockStyle:x,debouncedUpdateLayout:Z,handleFixedMousewheel:T,setCurrentRow:s,getSelectionRows:l,toggleRowSelection:u,clearSelection:c,clearFilter:f,toggleAllSelection:d,toggleRowExpansion:h,clearSort:p,doLayout:k,sort:v,t:e,setDragVisible:m,context:r,computedSumText:ge,computedEmptyText:ie,tableLayout:I,scrollbarViewStyle:P,tableInnerStyle:F,scrollbarStyle:$,scrollBarRef:W,scrollTo:V,setScrollLeft:z,setScrollTop:K}}}),S6e=["data-prefix"],w6e={ref:"hiddenColumns",class:"hidden-columns"};function x6e(t,e,n,r,a,i){const o=$e("hColgroup"),s=$e("table-header"),l=$e("table-body"),u=$e("el-scrollbar"),c=$e("table-footer"),f=i1("mousewheel");return G(),re("div",{ref:"tableWrapper",class:Y([{[t.ns.m("fit")]:t.fit,[t.ns.m("striped")]:t.stripe,[t.ns.m("border")]:t.border||t.isGroup,[t.ns.m("hidden")]:t.isHidden,[t.ns.m("group")]:t.isGroup,[t.ns.m("fluid-height")]:t.maxHeight,[t.ns.m("scrollable-x")]:t.layout.scrollX.value,[t.ns.m("scrollable-y")]:t.layout.scrollY.value,[t.ns.m("enable-row-hover")]:!t.store.states.isComplex.value,[t.ns.m("enable-row-transition")]:(t.store.states.data.value||[]).length!==0&&(t.store.states.data.value||[]).length<100,"has-footer":t.showSummary},t.ns.m(t.tableSize),t.className,t.ns.b(),t.ns.m(`layout-${t.tableLayout}`)]),style:Et(t.style),"data-prefix":t.ns.namespace.value,onMouseleave:e[0]||(e[0]=(...d)=>t.handleMouseLeave&&t.handleMouseLeave(...d))},[R("div",{class:Y(t.ns.e("inner-wrapper")),style:Et(t.tableInnerStyle)},[R("div",w6e,[Ge(t.$slots,"default")],512),t.showHeader&&t.tableLayout==="fixed"?Ft((G(),re("div",{key:0,ref:"headerWrapper",class:Y(t.ns.e("header-wrapper"))},[R("table",{ref:"tableHeader",class:Y(t.ns.e("header")),style:Et(t.tableBodyStyles),border:"0",cellpadding:"0",cellspacing:"0"},[N(o,{columns:t.store.states.columns.value,"table-layout":t.tableLayout},null,8,["columns","table-layout"]),N(s,{ref:"tableHeaderRef",border:t.border,"default-sort":t.defaultSort,store:t.store,onSetDragVisible:t.setDragVisible},null,8,["border","default-sort","store","onSetDragVisible"])],6)],2)),[[f,t.handleHeaderFooterMousewheel]]):_e("v-if",!0),R("div",{ref:"bodyWrapper",class:Y(t.ns.e("body-wrapper"))},[N(u,{ref:"scrollBarRef","view-style":t.scrollbarViewStyle,"wrap-style":t.scrollbarStyle,always:t.scrollbarAlwaysOn},{default:j(()=>[R("table",{ref:"tableBody",class:Y(t.ns.e("body")),cellspacing:"0",cellpadding:"0",border:"0",style:Et({width:t.bodyWidth,tableLayout:t.tableLayout})},[N(o,{columns:t.store.states.columns.value,"table-layout":t.tableLayout},null,8,["columns","table-layout"]),t.showHeader&&t.tableLayout==="auto"?(G(),Ee(s,{key:0,ref:"tableHeaderRef",border:t.border,"default-sort":t.defaultSort,store:t.store,onSetDragVisible:t.setDragVisible},null,8,["border","default-sort","store","onSetDragVisible"])):_e("v-if",!0),N(l,{context:t.context,highlight:t.highlightCurrentRow,"row-class-name":t.rowClassName,"tooltip-effect":t.tooltipEffect,"tooltip-options":t.tooltipOptions,"row-style":t.rowStyle,store:t.store,stripe:t.stripe},null,8,["context","highlight","row-class-name","tooltip-effect","tooltip-options","row-style","store","stripe"])],6),t.isEmpty?(G(),re("div",{key:0,ref:"emptyBlock",style:Et(t.emptyBlockStyle),class:Y(t.ns.e("empty-block"))},[R("span",{class:Y(t.ns.e("empty-text"))},[Ge(t.$slots,"empty",{},()=>[Be(We(t.computedEmptyText),1)])],2)],6)):_e("v-if",!0),t.$slots.append?(G(),re("div",{key:1,ref:"appendWrapper",class:Y(t.ns.e("append-wrapper"))},[Ge(t.$slots,"append")],2)):_e("v-if",!0)]),_:3},8,["view-style","wrap-style","always"])],2),t.showSummary?Ft((G(),re("div",{key:1,ref:"footerWrapper",class:Y(t.ns.e("footer-wrapper"))},[N(c,{border:t.border,"default-sort":t.defaultSort,store:t.store,style:Et(t.tableBodyStyles),"sum-text":t.computedSumText,"summary-method":t.summaryMethod},null,8,["border","default-sort","store","style","sum-text","summary-method"])],2)),[[cn,!t.isEmpty],[f,t.handleHeaderFooterMousewheel]]):_e("v-if",!0),t.border||t.isGroup?(G(),re("div",{key:2,class:Y(t.ns.e("border-left-patch"))},null,2)):_e("v-if",!0)],6),Ft(R("div",{ref:"resizeProxy",class:Y(t.ns.e("column-resize-proxy"))},null,2),[[cn,t.resizeProxyVisible]])],46,S6e)}var _6e=tt(b6e,[["render",x6e],["__file","/home/runner/work/element-plus/element-plus/packages/components/table/src/table.vue"]]);const C6e={selection:"table-column--selection",expand:"table__expand-column"},T6e={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:""}},E6e=t=>C6e[t]||"",M6e={selection:{renderHeader({store:t,column:e}){function n(){return t.states.data.value&&t.states.data.value.length===0}return At(Ms,{disabled:n(),size:t.states.tableSize.value,indeterminate:t.states.selection.value.length>0&&!t.states.isAllSelected.value,"onUpdate:modelValue":t.toggleAllSelection,modelValue:t.states.isAllSelected.value,ariaLabel:e.label})},renderCell({row:t,column:e,store:n,$index:r}){return At(Ms,{disabled:e.selectable?!e.selectable.call(null,t,r):!1,size:n.states.tableSize.value,onChange:()=>{n.commit("rowSelectedChanged",t)},onClick:a=>a.stopPropagation(),modelValue:n.isSelected(t),ariaLabel:e.label})},sortable:!1,resizable:!1},index:{renderHeader({column:t}){return t.label||"#"},renderCell({column:t,$index:e}){let n=e+1;const r=t.index;return typeof r=="number"?n=e+r:typeof r=="function"&&(n=r(e)),At("div",{},[n])},sortable:!1},expand:{renderHeader({column:t}){return t.label||""},renderCell({row:t,store:e,expanded:n}){const{ns:r}=e,a=[r.e("expand-icon")];return n&&a.push(r.em("expand-icon","expanded")),At("div",{class:a,onClick:function(o){o.stopPropagation(),e.toggleRowExpansion(t)}},{default:()=>[At(_t,null,{default:()=>[At(Li)]})]})},sortable:!1,resizable:!1}};function D6e({row:t,column:e,$index:n}){var r;const a=e.property,i=a&&jx(t,a).value;return e&&e.formatter?e.formatter(t,e,i,n):((r=i==null?void 0:i.toString)==null?void 0:r.call(i))||""}function A6e({row:t,treeNode:e,store:n},r=!1){const{ns:a}=n;if(!e)return r?[At("span",{class:a.e("placeholder")})]:null;const i=[],o=function(s){s.stopPropagation(),!e.loading&&n.loadOrToggle(t)};if(e.indent&&i.push(At("span",{class:a.e("indent"),style:{"padding-left":`${e.indent}px`}})),typeof e.expanded=="boolean"&&!e.noLazyChildren){const s=[a.e("expand-icon"),e.expanded?a.em("expand-icon","expanded"):""];let l=Li;e.loading&&(l=id),i.push(At("div",{class:s,onClick:o},{default:()=>[At(_t,{class:{[a.is("loading")]:e.loading}},{default:()=>[At(l)]})]}))}else i.push(At("span",{class:a.e("placeholder")}));return i}function m8(t,e){return t.reduce((n,r)=>(n[r]=r,n),e)}function k6e(t,e){const n=Qt();return{registerComplexWatchers:()=>{const i=["fixed"],o={realWidth:"width",realMinWidth:"minWidth"},s=m8(i,o);Object.keys(s).forEach(l=>{const u=o[l];Sn(e,u)&&Ke(()=>e[u],c=>{let f=c;u==="width"&&l==="realWidth"&&(f=EV(c)),u==="minWidth"&&l==="realMinWidth"&&(f=mQ(c)),n.columnConfig.value[u]=f,n.columnConfig.value[l]=f;const d=u==="fixed";t.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=m8(i,o);Object.keys(s).forEach(l=>{const u=o[l];Sn(e,u)&&Ke(()=>e[u],c=>{n.columnConfig.value[l]=c})})}}}function R6e(t,e,n){const r=Qt(),a=B(""),i=B(!1),o=B(),s=B(),l=Ye("table");Uo(()=>{o.value=t.align?`is-${t.align}`:null,o.value}),Uo(()=>{s.value=t.headerAlign?`is-${t.headerAlign}`:o.value,s.value});const u=U(()=>{let w=r.vnode.vParent||r.parent;for(;w&&!w.tableId&&!w.columnId;)w=w.vnode.vParent||w.parent;return w}),c=U(()=>{const{store:w}=r.parent;if(!w)return!1;const{treeData:C}=w.states,_=C.value;return _&&Object.keys(_).length>0}),f=B(EV(t.width)),d=B(mQ(t.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),p=w=>{const C=w.type,_=M6e[C]||{};Object.keys(_).forEach(T=>{const M=_[T];T!=="className"&&M!==void 0&&(w[T]=M)});const x=E6e(C);if(x){const T=`${b(l.namespace)}-${x}`;w.className=w.className?`${w.className} ${T}`:T}return w},v=w=>{Array.isArray(w)?w.forEach(_=>C(_)):C(w);function C(_){var x;((x=_==null?void 0:_.type)==null?void 0:x.name)==="ElTableColumn"&&(_.vParent=r)}};return{columnId:a,realAlign:o,isSubColumn:i,realHeaderAlign:s,columnOrTableParent:u,setColumnWidth:h,setColumnForcedProps:p,setColumnRenders:w=>{t.renderHeader||w.type!=="selection"&&(w.renderHeader=_=>{r.columnConfig.value.label;const x=e.header;return x?x(_):w.label});let C=w.renderCell;return w.type==="expand"?(w.renderCell=_=>At("div",{class:"cell"},[C(_)]),n.value.renderExpanded=_=>e.default?e.default(_):e.default):(C=C||D6e,w.renderCell=_=>{let x=null;if(e.default){const L=e.default(_);x=L.some(I=>I.type!==Qi)?L:C(_)}else x=C(_);const{columns:T}=n.value.store.states,M=T.value.findIndex(L=>L.type==="default"),E=c.value&&_.cellIndex===M,A=A6e(_,E),k={class:"cell",style:{}};return w.showOverflowTooltip&&(k.class=`${k.class} ${b(l.namespace)}-tooltip`,k.style={width:`${(_.column.realWidth||Number(_.column.width))-1}px`}),v(x),At("div",k,[A,x])}),w},getPropsData:(...w)=>w.reduce((C,_)=>(Array.isArray(_)&&_.forEach(x=>{C[x]=t[x]}),C),{}),getColumnElIndex:(w,C)=>Array.prototype.indexOf.call(w,C),updateColumnOrder:()=>{n.value.store.commit("updateColumnOrder",r.columnConfig.value)}}}var L6e={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:t=>t.every(e=>["ascending","descending",null].includes(e))}};let O6e=1;var TQ=ye({name:"ElTableColumn",components:{ElCheckbox:Ms},props:L6e,setup(t,{slots:e}){const n=Qt(),r=B({}),a=U(()=>{let S=n.parent;for(;S&&!S.tableId;)S=S.parent;return S}),{registerNormalWatchers:i,registerComplexWatchers:o}=k6e(a,t),{columnId:s,isSubColumn:l,realHeaderAlign:u,columnOrTableParent:c,setColumnWidth:f,setColumnForcedProps:d,setColumnRenders:h,getPropsData:p,getColumnElIndex:v,realAlign:g,updateColumnOrder:y}=R6e(t,e,a),m=c.value;s.value=`${m.tableId||m.columnId}_column_${O6e++}`,QC(()=>{l.value=a.value!==m;const S=t.type||"default",w=t.sortable===""?!0:t.sortable,C=Na(t.showOverflowTooltip)?m.props.showOverflowTooltip:t.showOverflowTooltip,_={...T6e[S],id:s.value,type:S,property:t.prop||t.property,align:g,headerAlign:u,showOverflowTooltip:C,filterable:t.filters||t.filterMethod,filteredValue:[],filterPlacement:"",isColumnGroup:!1,isSubColumn:!1,filterOpened:!1,sortable:w,index:t.index,rawColumnKey:n.vnode.key};let A=p(["columnKey","label","className","labelClassName","type","renderHeader","formatter","fixed","resizable"],["sortMethod","sortBy","sortOrders"],["selectable","reserveSelection"],["filterMethod","filters","filterMultiple","filterOpened","filteredValue","filterPlacement"]);A=O8e(_,A),A=N8e(h,f,d)(A),r.value=A,i(),o()}),Ut(()=>{var S;const w=c.value,C=l.value?w.vnode.el.children:(S=w.refs.hiddenColumns)==null?void 0:S.children,_=()=>v(C||[],n.vnode.el);r.value.getColumnIndex=_,_()>-1&&a.value.store.commit("insertColumn",r.value,l.value?w.columnConfig.value:null,y)}),Sr(()=>{a.value.store.commit("removeColumn",r.value,l.value?m.columnConfig.value:null,y)}),n.columnId=s.value,n.columnConfig=r},render(){var t,e,n;try{const r=(e=(t=this.$slots).default)==null?void 0:e.call(t,{row:{},column:{},$index:-1}),a=[];if(Array.isArray(r))for(const o of r)((n=o.type)==null?void 0:n.name)==="ElTableColumn"||o.shapeFlag&2?a.push(o):o.type===Ct&&Array.isArray(o.children)&&o.children.forEach(s=>{(s==null?void 0:s.patchFlag)!==1024&&!Ht(s==null?void 0:s.children)&&a.push(s)});return At("div",a)}catch{return At("div",[])}}});const V6e=tn(_6e,{TableColumn:TQ}),N6e=ta(TQ);var R1=(t=>(t.ASC="asc",t.DESC="desc",t))(R1||{}),L1=(t=>(t.CENTER="center",t.RIGHT="right",t))(L1||{}),EQ=(t=>(t.LEFT="left",t.RIGHT="right",t))(EQ||{});const fL={asc:"desc",desc:"asc"},O1=Symbol("placeholder"),I6e=(t,e,n)=>{var r;const a={flexGrow:0,flexShrink:0,...n?{}:{flexGrow:t.flexGrow||0,flexShrink:t.flexShrink||1}};n||(a.flexShrink=1);const i={...(r=t.style)!=null?r:{},...a,flexBasis:"auto",width:t.width};return e||(t.maxWidth&&(i.maxWidth=t.maxWidth),t.minWidth&&(i.minWidth=t.minWidth)),i};function B6e(t,e,n){const r=U(()=>b(e).filter(v=>!v.hidden)),a=U(()=>b(r).filter(v=>v.fixed==="left"||v.fixed===!0)),i=U(()=>b(r).filter(v=>v.fixed==="right")),o=U(()=>b(r).filter(v=>!v.fixed)),s=U(()=>{const v=[];return b(a).forEach(g=>{v.push({...g,placeholderSign:O1})}),b(o).forEach(g=>{v.push(g)}),b(i).forEach(g=>{v.push({...g,placeholderSign:O1})}),v}),l=U(()=>b(a).length||b(i).length),u=U(()=>b(e).reduce((g,y)=>(g[y.key]=I6e(y,b(n),t.fixed),g),{})),c=U(()=>b(r).reduce((v,g)=>v+g.width,0)),f=v=>b(e).find(g=>g.key===v),d=v=>b(u)[v],h=(v,g)=>{v.width=g};function p(v){var g;const{key:y}=v.currentTarget.dataset;if(!y)return;const{sortState:m,sortBy:S}=t;let w=R1.ASC;un(m)?w=fL[m[y]]:w=fL[S.order],(g=t.onColumnSort)==null||g.call(t,{column:f(y),key:y,order:w})}return{columns:e,columnsStyles:u,columnsTotalWidth:c,fixedColumnsOnLeft:a,fixedColumnsOnRight:i,hasFixedColumns:l,mainColumns:s,normalColumns:o,visibleColumns:r,getColumn:f,getColumnStyle:d,updateColumnWidth:h,onColumnSorted:p}}const $6e=(t,{mainTableRef:e,leftTableRef:n,rightTableRef:r,onMaybeEndReached:a})=>{const i=B({scrollLeft:0,scrollTop:0});function o(h){var p,v,g;const{scrollTop:y}=h;(p=e.value)==null||p.scrollTo(h),(v=n.value)==null||v.scrollToTop(y),(g=r.value)==null||g.scrollToTop(y)}function s(h){i.value=h,o(h)}function l(h){i.value.scrollTop=h,o(b(i))}function u(h){var p,v;i.value.scrollLeft=h,(v=(p=e.value)==null?void 0:p.scrollTo)==null||v.call(p,b(i))}function c(h){var p;s(h),(p=t.onScroll)==null||p.call(t,h)}function f({scrollTop:h}){const{scrollTop:p}=b(i);h!==p&&l(h)}function d(h,p="auto"){var v;(v=e.value)==null||v.scrollToRow(h,p)}return Ke(()=>b(i).scrollTop,(h,p)=>{h>p&&a()}),{scrollPos:i,scrollTo:s,scrollToLeft:u,scrollToTop:l,scrollToRow:d,onScroll:c,onVerticalScroll:f}},P6e=(t,{mainTableRef:e,leftTableRef:n,rightTableRef:r})=>{const a=Qt(),{emit:i}=a,o=vr(!1),s=vr(null),l=B(t.defaultExpandedRowKeys||[]),u=B(-1),c=vr(null),f=B({}),d=B({}),h=vr({}),p=vr({}),v=vr({}),g=U(()=>Pt(t.estimatedRowHeight));function y(T){var M;(M=t.onRowsRendered)==null||M.call(t,T),T.rowCacheEnd>b(u)&&(u.value=T.rowCacheEnd)}function m({hovered:T,rowKey:M}){s.value=T?M:null}function S({expanded:T,rowData:M,rowIndex:E,rowKey:A}){var k,L;const I=[...b(l)],P=I.indexOf(A);T?P===-1&&I.push(A):P>-1&&I.splice(P,1),l.value=I,i("update:expandedRowKeys",I),(k=t.onRowExpand)==null||k.call(t,{expanded:T,rowData:M,rowIndex:E,rowKey:A}),(L=t.onExpandedRowsChange)==null||L.call(t,I)}const w=ao(()=>{var T,M,E,A;o.value=!0,f.value={...b(f),...b(d)},C(b(c),!1),d.value={},c.value=null,(T=e.value)==null||T.forceUpdate(),(M=n.value)==null||M.forceUpdate(),(E=r.value)==null||E.forceUpdate(),(A=a.proxy)==null||A.$forceUpdate(),o.value=!1},0);function C(T,M=!1){b(g)&&[e,n,r].forEach(E=>{const A=b(E);A&&A.resetAfterRowIndex(T,M)})}function _(T,M,E){const A=b(c);(A===null||A>E)&&(c.value=E),d.value[T]=M}function x({rowKey:T,height:M,rowIndex:E},A){A?A===EQ.RIGHT?v.value[T]=M:h.value[T]=M:p.value[T]=M;const k=Math.max(...[h,v,p].map(L=>L.value[T]||0));b(f)[T]!==k&&(_(T,k,E),w())}return{hoveringRowKey:s,expandedRowKeys:l,lastRenderedRowIndex:u,isDynamic:g,isResetting:o,rowHeights:f,resetAfterIndex:C,onRowExpanded:S,onRowHovered:m,onRowsRendered:y,onRowHeightChange:x}},F6e=(t,{expandedRowKeys:e,lastRenderedRowIndex:n,resetAfterIndex:r})=>{const a=B({}),i=U(()=>{const s={},{data:l,rowKey:u}=t,c=b(e);if(!c||!c.length)return l;const f=[],d=new Set;c.forEach(p=>d.add(p));let h=l.slice();for(h.forEach(p=>s[p[u]]=0);h.length>0;){const p=h.shift();f.push(p),d.has(p[u])&&Array.isArray(p.children)&&p.children.length>0&&(h=[...p.children,...h],p.children.forEach(v=>s[v[u]]=s[p[u]]+1))}return a.value=s,f}),o=U(()=>{const{data:s,expandColumnKey:l}=t;return l?b(i):s});return Ke(o,(s,l)=>{s!==l&&(n.value=-1,r(0,!0))}),{data:o,depthMap:a}},z6e=(t,e)=>t+e,s_=t=>gt(t)?t.reduce(z6e,0):t,vp=(t,e,n={})=>zt(t)?t(e):t??n,mf=t=>(["width","maxWidth","minWidth","height"].forEach(e=>{t[e]=la(t[e])}),t),MQ=t=>Gr(t)?e=>At(t,e):t,U6e=(t,{columnsTotalWidth:e,data:n,fixedColumnsOnLeft:r,fixedColumnsOnRight:a})=>{const i=U(()=>{const{fixed:S,width:w,vScrollbarSize:C}=t,_=w-C;return S?Math.max(Math.round(b(e)),_):_}),o=U(()=>b(i)+(t.fixed?t.vScrollbarSize:0)),s=U(()=>{const{height:S=0,maxHeight:w=0,footerHeight:C,hScrollbarSize:_}=t;if(w>0){const x=b(p),T=b(l),E=b(h)+x+T+_;return Math.min(E,w-C)}return S-C}),l=U(()=>{const{rowHeight:S,estimatedRowHeight:w}=t,C=b(n);return Pt(w)?C.length*w:C.length*S}),u=U(()=>{const{maxHeight:S}=t,w=b(s);if(Pt(S)&&S>0)return w;const C=b(l)+b(h)+b(p);return Math.min(w,C)}),c=S=>S.width,f=U(()=>s_(b(r).map(c))),d=U(()=>s_(b(a).map(c))),h=U(()=>s_(t.headerHeight)),p=U(()=>{var S;return(((S=t.fixedData)==null?void 0:S.length)||0)*t.rowHeight}),v=U(()=>b(s)-b(h)-b(p)),g=U(()=>{const{style:S={},height:w,width:C}=t;return mf({...S,height:w,width:C})}),y=U(()=>mf({height:t.footerHeight})),m=U(()=>({top:la(b(h)),bottom:la(t.footerHeight),width:la(t.width)}));return{bodyWidth:i,fixedTableHeight:u,mainTableHeight:s,leftTableWidth:f,rightTableWidth:d,headerWidth:o,rowsHeight:l,windowHeight:v,footerHeight:y,emptyStyle:m,rootStyle:g,headerHeight:h}},G6e=t=>{const e=B(),n=B(0),r=B(0);let a;return Ut(()=>{a=Vi(e,([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,p=Number.parseInt(c)||0,v=Number.parseInt(f)||0;n.value=o-d-h,r.value=s-p-v}).stop}),Sr(()=>{a==null||a()}),Ke([n,r],([i,o])=>{var s;(s=t.onResize)==null||s.call(t,{width:i,height:o})}),{sizer:e,width:n,height:r}};function H6e(t){const e=B(),n=B(),r=B(),{columns:a,columnsStyles:i,columnsTotalWidth:o,fixedColumnsOnLeft:s,fixedColumnsOnRight:l,hasFixedColumns:u,mainColumns:c,onColumnSorted:f}=B6e(t,Wr(t,"columns"),Wr(t,"fixed")),{scrollTo:d,scrollToLeft:h,scrollToTop:p,scrollToRow:v,onScroll:g,onVerticalScroll:y,scrollPos:m}=$6e(t,{mainTableRef:e,leftTableRef:n,rightTableRef:r,onMaybeEndReached:ee}),{expandedRowKeys:S,hoveringRowKey:w,lastRenderedRowIndex:C,isDynamic:_,isResetting:x,rowHeights:T,resetAfterIndex:M,onRowExpanded:E,onRowHeightChange:A,onRowHovered:k,onRowsRendered:L}=P6e(t,{mainTableRef:e,leftTableRef:n,rightTableRef:r}),{data:I,depthMap:P}=F6e(t,{expandedRowKeys:S,lastRenderedRowIndex:C,resetAfterIndex:M}),{bodyWidth:F,fixedTableHeight:$,mainTableHeight:W,leftTableWidth:V,rightTableWidth:z,headerWidth:K,rowsHeight:Z,windowHeight:oe,footerHeight:ge,emptyStyle:ie,rootStyle:Q,headerHeight:ce}=U6e(t,{columnsTotalWidth:o,data:I,fixedColumnsOnLeft:s,fixedColumnsOnRight:l}),se=vr(!1),me=B(),ve=U(()=>{const ue=b(I).length===0;return gt(t.fixedData)?t.fixedData.length===0&&ue:ue});function he(ue){const{estimatedRowHeight:fe,rowHeight:Re,rowKey:Ne}=t;return fe?b(T)[b(I)[ue][Ne]]||fe:Re}function ee(){const{onEndReached:ue}=t;if(!ue)return;const{scrollTop:fe}=b(m),Re=b(Z),Ne=b(oe),De=Re-(fe+Ne)+t.hScrollbarSize;b(C)>=0&&Re===fe+b(W)-b(ce)&&ue(De)}return Ke(()=>t.expandedRowKeys,ue=>S.value=ue,{deep:!0}),{columns:a,containerRef:me,mainTableRef:e,leftTableRef:n,rightTableRef:r,isDynamic:_,isResetting:x,isScrolling:se,hoveringRowKey:w,hasFixedColumns:u,columnsStyles:i,columnsTotalWidth:o,data:I,expandedRowKeys:S,depthMap:P,fixedColumnsOnLeft:s,fixedColumnsOnRight:l,mainColumns:c,bodyWidth:F,emptyStyle:ie,rootStyle:Q,headerWidth:K,footerHeight:ge,mainTableHeight:W,fixedTableHeight:$,leftTableWidth:V,rightTableWidth:z,showEmpty:ve,getRowHeight:he,onColumnSorted:f,onRowHovered:k,onRowExpanded:E,onRowsRendered:L,onRowHeightChange:A,scrollTo:d,scrollToLeft:h,scrollToTop:p,scrollToRow:v,onScroll:g,onVerticalScroll:y}}const kV=Symbol("tableV2"),DQ=String,Bb={type:ke(Array),required:!0},RV={type:ke(Array)},AQ={...RV,required:!0},W6e=String,b8={type:ke(Array),default:()=>zr([])},Sh={type:Number,required:!0},kQ={type:ke([String,Number,Symbol]),default:"id"},S8={type:ke(Object)},Ih=nt({class:String,columns:Bb,columnsStyles:{type:ke(Object),required:!0},depth:Number,expandColumnKey:W6e,estimatedRowHeight:{...Zh.estimatedRowHeight,default:void 0},isScrolling:Boolean,onRowExpand:{type:ke(Function)},onRowHover:{type:ke(Function)},onRowHeightChange:{type:ke(Function)},rowData:{type:ke(Object),required:!0},rowEventHandlers:{type:ke(Object)},rowIndex:{type:Number,required:!0},rowKey:kQ,style:{type:ke(Object)}}),FM={type:Number,required:!0},LV=nt({class:String,columns:Bb,fixedHeaderData:{type:ke(Array)},headerData:{type:ke(Array),required:!0},headerHeight:{type:ke([Number,Array]),default:50},rowWidth:FM,rowHeight:{type:Number,default:50},height:FM,width:FM}),l_=nt({columns:Bb,data:AQ,fixedData:RV,estimatedRowHeight:Ih.estimatedRowHeight,width:Sh,height:Sh,headerWidth:Sh,headerHeight:LV.headerHeight,bodyWidth:Sh,rowHeight:Sh,cache:eQ.cache,useIsScrolling:Boolean,scrollbarAlwaysOn:Zh.scrollbarAlwaysOn,scrollbarStartGap:Zh.scrollbarStartGap,scrollbarEndGap:Zh.scrollbarEndGap,class:DQ,style:S8,containerStyle:S8,getRowHeight:{type:ke(Function),required:!0},rowKey:Ih.rowKey,onRowsRendered:{type:ke(Function)},onScroll:{type:ke(Function)}}),j6e=nt({cache:l_.cache,estimatedRowHeight:Ih.estimatedRowHeight,rowKey:kQ,headerClass:{type:ke([String,Function])},headerProps:{type:ke([Object,Function])},headerCellProps:{type:ke([Object,Function])},headerHeight:LV.headerHeight,footerHeight:{type:Number,default:0},rowClass:{type:ke([String,Function])},rowProps:{type:ke([Object,Function])},rowHeight:{type:Number,default:50},cellProps:{type:ke([Object,Function])},columns:Bb,data:AQ,dataGetter:{type:ke(Function)},fixedData:RV,expandColumnKey:Ih.expandColumnKey,expandedRowKeys:b8,defaultExpandedRowKeys:b8,class:DQ,fixed:Boolean,style:{type:ke(Object)},width:Sh,height:Sh,maxHeight:Number,useIsScrolling:Boolean,indentSize:{type:Number,default:12},iconSize:{type:Number,default:12},hScrollbarSize:Zh.hScrollbarSize,vScrollbarSize:Zh.vScrollbarSize,scrollbarAlwaysOn:rQ.alwaysOn,sortBy:{type:ke(Object),default:()=>({})},sortState:{type:ke(Object),default:void 0},onColumnSort:{type:ke(Function)},onExpandedRowsChange:{type:ke(Function)},onEndReached:{type:ke(Function)},onRowExpand:Ih.onRowExpand,onScroll:l_.onScroll,onRowsRendered:l_.onRowsRendered,rowEventHandlers:Ih.rowEventHandlers}),OV=(t,{slots:e})=>{var n;const{cellData:r,style:a}=t,i=((n=r==null?void 0:r.toString)==null?void 0:n.call(r))||"";return N("div",{class:t.class,title:i,style:a},[e.default?e.default(t):i])};OV.displayName="ElTableV2Cell";OV.inheritAttrs=!1;const VV=(t,{slots:e})=>{var n,r;return e.default?e.default(t):N("div",{class:t.class,title:(n=t.column)==null?void 0:n.title},[(r=t.column)==null?void 0:r.title])};VV.displayName="ElTableV2HeaderCell";VV.inheritAttrs=!1;const K6e=nt({class:String,columns:Bb,columnsStyles:{type:ke(Object),required:!0},headerIndex:Number,style:{type:ke(Object)}}),Y6e=ye({name:"ElTableV2HeaderRow",props:K6e,setup(t,{slots:e}){return()=>{const{columns:n,columnsStyles:r,headerIndex:a,style:i}=t;let o=n.map((s,l)=>e.cell({columns:n,column:s,columnIndex:l,headerIndex:a,style:r[s.key]}));return e.header&&(o=e.header({cells:o.map(s=>gt(s)&&s.length===1?s[0]:s),columns:n,headerIndex:a})),N("div",{class:t.class,style:i,role:"row"},[o])}}}),X6e="ElTableV2Header",q6e=ye({name:X6e,props:LV,setup(t,{slots:e,expose:n}){const r=Ye("table-v2"),a=B(),i=U(()=>mf({width:t.width,height:t.height})),o=U(()=>mf({width:t.rowWidth,height:t.height})),s=U(()=>pp(b(t.headerHeight))),l=f=>{const d=b(a);xt(()=>{d!=null&&d.scroll&&d.scroll({left:f})})},u=()=>{const f=r.e("fixed-header-row"),{columns:d,fixedHeaderData:h,rowHeight:p}=t;return h==null?void 0:h.map((v,g)=>{var y;const m=mf({height:p,width:"100%"});return(y=e.fixed)==null?void 0:y.call(e,{class:f,columns:d,rowData:v,rowIndex:-(g+1),style:m})})},c=()=>{const f=r.e("dynamic-header-row"),{columns:d}=t;return b(s).map((h,p)=>{var v;const g=mf({width:"100%",height:h});return(v=e.dynamic)==null?void 0:v.call(e,{class:f,columns:d,headerIndex:p,style:g})})};return n({scrollToLeft:l}),()=>{if(!(t.height<=0))return N("div",{ref:a,class:t.class,style:b(i),role:"rowgroup"},[N("div",{style:b(o),class:r.e("header")},[c(),u()])])}}}),Z6e=t=>{const{isScrolling:e}=yt(kV),n=B(!1),r=B(),a=U(()=>Pt(t.estimatedRowHeight)&&t.rowIndex>=0),i=(l=!1)=>{const u=b(r);if(!u)return;const{columns:c,onRowHeightChange:f,rowKey:d,rowIndex:h,style:p}=t,{height:v}=u.getBoundingClientRect();n.value=!0,xt(()=>{if(l||v!==Number.parseInt(p.height)){const g=c[0],y=(g==null?void 0:g.placeholderSign)===O1;f==null||f({rowKey:d,height:v,rowIndex:h},g&&!y&&g.fixed)}})},o=U(()=>{const{rowData:l,rowIndex:u,rowKey:c,onRowHover:f}=t,d=t.rowEventHandlers||{},h={};return Object.entries(d).forEach(([p,v])=>{zt(v)&&(h[p]=g=>{v({event:g,rowData:l,rowIndex:u,rowKey:c})})}),f&&[{name:"onMouseleave",hovered:!1},{name:"onMouseenter",hovered:!0}].forEach(({name:p,hovered:v})=>{const g=h[p];h[p]=y=>{f({event:y,hovered:v,rowData:l,rowIndex:u,rowKey:c}),g==null||g(y)}}),h}),s=l=>{const{onRowExpand:u,rowData:c,rowIndex:f,rowKey:d}=t;u==null||u({expanded:l,rowData:c,rowIndex:f,rowKey:d})};return Ut(()=>{b(a)&&i(!0)}),{isScrolling:e,measurable:a,measured:n,rowRef:r,eventHandlers:o,onExpand:s}},Q6e="ElTableV2TableRow",J6e=ye({name:Q6e,props:Ih,setup(t,{expose:e,slots:n,attrs:r}){const{eventHandlers:a,isScrolling:i,measurable:o,measured:s,rowRef:l,onExpand:u}=Z6e(t);return e({onExpand:u}),()=>{const{columns:c,columnsStyles:f,expandColumnKey:d,depth:h,rowData:p,rowIndex:v,style:g}=t;let y=c.map((m,S)=>{const w=gt(p.children)&&p.children.length>0&&m.key===d;return n.cell({column:m,columns:c,columnIndex:S,depth:h,style:f[m.key],rowData:p,rowIndex:v,isScrolling:b(i),expandIconProps:w?{rowData:p,rowIndex:v,onExpand:u}:void 0})});if(n.row&&(y=n.row({cells:y.map(m=>gt(m)&&m.length===1?m[0]:m),style:g,columns:c,depth:h,rowData:p,rowIndex:v,isScrolling:b(i)})),b(o)){const{height:m,...S}=g||{},w=b(s);return N("div",an({ref:l,class:t.class,style:w?g:S,role:"row"},r,b(a)),[y])}return N("div",an(r,{ref:l,class:t.class,style:g,role:"row"},b(a)),[y])}}}),eze=t=>{const{sortOrder:e}=t;return N(_t,{size:14,class:t.class},{default:()=>[e===R1.ASC?N(iTe,null,null):N(JCe,null,null)]})},tze=t=>{const{expanded:e,expandable:n,onExpand:r,style:a,size:i}=t,o={onClick:n?()=>r(!e):void 0,class:t.class};return N(_t,an(o,{size:i,style:a}),{default:()=>[N(Li,null,null)]})},nze="ElTableV2Grid",rze=t=>{const e=B(),n=B(),r=U(()=>{const{data:v,rowHeight:g,estimatedRowHeight:y}=t;if(!y)return v.length*g}),a=U(()=>{const{fixedData:v,rowHeight:g}=t;return((v==null?void 0:v.length)||0)*g}),i=U(()=>s_(t.headerHeight)),o=U(()=>{const{height:v}=t;return Math.max(0,v-b(i)-b(a))}),s=U(()=>b(i)+b(a)>0),l=({data:v,rowIndex:g})=>v[g][t.rowKey];function u({rowCacheStart:v,rowCacheEnd:g,rowVisibleStart:y,rowVisibleEnd:m}){var S;(S=t.onRowsRendered)==null||S.call(t,{rowCacheStart:v,rowCacheEnd:g,rowVisibleStart:y,rowVisibleEnd:m})}function c(v,g){var y;(y=n.value)==null||y.resetAfterRowIndex(v,g)}function f(v,g){const y=b(e),m=b(n);!y||!m||(un(v)?(y.scrollToLeft(v.scrollLeft),m.scrollTo(v)):(y.scrollToLeft(v),m.scrollTo({scrollLeft:v,scrollTop:g})))}function d(v){var g;(g=b(n))==null||g.scrollTo({scrollTop:v})}function h(v,g){var y;(y=b(n))==null||y.scrollToItem(v,1,g)}function p(){var v,g;(v=b(n))==null||v.$forceUpdate(),(g=b(e))==null||g.$forceUpdate()}return{bodyRef:n,forceUpdate:p,fixedRowHeight:a,gridHeight:o,hasHeader:s,headerHeight:i,headerRef:e,totalHeight:r,itemKey:l,onItemRendered:u,resetAfterRowIndex:c,scrollTo:f,scrollToTop:d,scrollToRow:h}},NV=ye({name:nze,props:l_,setup(t,{slots:e,expose:n}){const{ns:r}=yt(kV),{bodyRef:a,fixedRowHeight:i,gridHeight:o,hasHeader:s,headerRef:l,headerHeight:u,totalHeight:c,forceUpdate:f,itemKey:d,onItemRendered:h,resetAfterRowIndex:p,scrollTo:v,scrollToTop:g,scrollToRow:y}=rze(t);n({forceUpdate:f,totalHeight:c,scrollTo:v,scrollToTop:g,scrollToRow:y,resetAfterRowIndex:p});const m=()=>t.bodyWidth;return()=>{const{cache:S,columns:w,data:C,fixedData:_,useIsScrolling:x,scrollbarAlwaysOn:T,scrollbarEndGap:M,scrollbarStartGap:E,style:A,rowHeight:k,bodyWidth:L,estimatedRowHeight:I,headerWidth:P,height:F,width:$,getRowHeight:W,onScroll:V}=t,z=Pt(I),K=z?OFe:AFe,Z=b(u);return N("div",{role:"table",class:[r.e("table"),t.class],style:A},[N(K,{ref:a,data:C,useIsScrolling:x,itemKey:d,columnCache:0,columnWidth:z?m:L,totalColumn:1,totalRow:C.length,rowCache:S,rowHeight:z?W:k,width:$,height:b(o),class:r.e("body"),role:"rowgroup",scrollbarStartGap:E,scrollbarEndGap:M,scrollbarAlwaysOn:T,onScroll:V,onItemRendered:h,perfMode:!1},{default:oe=>{var ge;const ie=C[oe.rowIndex];return(ge=e.row)==null?void 0:ge.call(e,{...oe,columns:w,rowData:ie})}}),b(s)&&N(q6e,{ref:l,class:r.e("header-wrapper"),columns:w,headerData:C,headerHeight:t.headerHeight,fixedHeaderData:_,rowWidth:P,rowHeight:k,width:$,height:Math.min(Z+b(i),F)},{dynamic:e.header,fixed:e.row})])}}});function aze(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!Gr(t)}const ize=(t,{slots:e})=>{const{mainTableRef:n,...r}=t;return N(NV,an({ref:n},r),aze(e)?e:{default:()=>[e]})};function oze(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!Gr(t)}const sze=(t,{slots:e})=>{if(!t.columns.length)return;const{leftTableRef:n,...r}=t;return N(NV,an({ref:n},r),oze(e)?e:{default:()=>[e]})};function lze(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!Gr(t)}const uze=(t,{slots:e})=>{if(!t.columns.length)return;const{rightTableRef:n,...r}=t;return N(NV,an({ref:n},r),lze(e)?e:{default:()=>[e]})};function cze(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!Gr(t)}const fze=(t,{slots:e})=>{const{columns:n,columnsStyles:r,depthMap:a,expandColumnKey:i,expandedRowKeys:o,estimatedRowHeight:s,hasFixedColumns:l,hoveringRowKey:u,rowData:c,rowIndex:f,style:d,isScrolling:h,rowProps:p,rowClass:v,rowKey:g,rowEventHandlers:y,ns:m,onRowHovered:S,onRowExpanded:w}=t,C=vp(v,{columns:n,rowData:c,rowIndex:f},""),_=vp(p,{columns:n,rowData:c,rowIndex:f}),x=c[g],T=a[x]||0,M=!!i,E=f<0,A=[m.e("row"),C,{[m.e(`row-depth-${T}`)]:M&&f>=0,[m.is("expanded")]:M&&o.includes(x),[m.is("hovered")]:!h&&x===u,[m.is("fixed")]:!T&&E,[m.is("customized")]:!!e.row}],k=l?S:void 0,L={..._,columns:n,columnsStyles:r,class:A,depth:T,expandColumnKey:i,estimatedRowHeight:E?void 0:s,isScrolling:h,rowIndex:f,rowData:c,rowKey:x,rowEventHandlers:y,style:d};return N(J6e,an(L,{onRowHover:k,onRowExpand:w}),cze(e)?e:{default:()=>[e]})},dL=({columns:t,column:e,columnIndex:n,depth:r,expandIconProps:a,isScrolling:i,rowData:o,rowIndex:s,style:l,expandedRowKeys:u,ns:c,cellProps:f,expandColumnKey:d,indentSize:h,iconSize:p,rowKey:v},{slots:g})=>{const y=mf(l);if(e.placeholderSign===O1)return N("div",{class:c.em("row-cell","placeholder"),style:y},null);const{cellRenderer:m,dataKey:S,dataGetter:w}=e,_=MQ(m)||g.default||(F=>N(OV,F,null)),x=zt(w)?w({columns:t,column:e,columnIndex:n,rowData:o,rowIndex:s}):Fr(o,S??""),T=vp(f,{cellData:x,columns:t,column:e,columnIndex:n,rowIndex:s,rowData:o}),M={class:c.e("cell-text"),columns:t,column:e,columnIndex:n,cellData:x,isScrolling:i,rowData:o,rowIndex:s},E=_(M),A=[c.e("row-cell"),e.class,e.align===L1.CENTER&&c.is("align-center"),e.align===L1.RIGHT&&c.is("align-right")],k=s>=0&&d&&e.key===d,L=s>=0&&u.includes(o[v]);let I;const P=`margin-inline-start: ${r*h}px;`;return k&&(un(a)?I=N(tze,an(a,{class:[c.e("expand-icon"),c.is("expanded",L)],size:p,expanded:L,style:P,expandable:!0}),null):I=N("div",{style:[P,`width: ${p}px; height: ${p}px;`].join(" ")},null)),N("div",an({class:A,style:y},T,{role:"cell"}),[I,E])};dL.inheritAttrs=!1;function dze(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!Gr(t)}const hze=({columns:t,columnsStyles:e,headerIndex:n,style:r,headerClass:a,headerProps:i,ns:o},{slots:s})=>{const l={columns:t,headerIndex:n},u=[o.e("header-row"),vp(a,l,""),{[o.is("customized")]:!!s.header}],c={...vp(i,l),columnsStyles:e,class:u,columns:t,headerIndex:n,style:r};return N(Y6e,c,dze(s)?s:{default:()=>[s]})},w8=(t,{slots:e})=>{const{column:n,ns:r,style:a,onColumnSorted:i}=t,o=mf(a);if(n.placeholderSign===O1)return N("div",{class:r.em("header-row-cell","placeholder"),style:o},null);const{headerCellRenderer:s,headerClass:l,sortable:u}=n,c={...t,class:r.e("header-cell-text")},d=(MQ(s)||e.default||(w=>N(VV,w,null)))(c),{sortBy:h,sortState:p,headerCellProps:v}=t;let g,y;if(p){const w=p[n.key];g=!!fL[w],y=g?w:R1.ASC}else g=n.key===h.key,y=g?h.order:R1.ASC;const m=[r.e("header-cell"),vp(l,t,""),n.align===L1.CENTER&&r.is("align-center"),n.align===L1.RIGHT&&r.is("align-right"),u&&r.is("sortable")],S={...vp(v,t),onClick:n.sortable?i:void 0,class:m,style:o,"data-key":n.key};return N("div",an(S,{role:"columnheader"}),[d,u&&N(eze,{class:[r.e("sort-icon"),g&&r.is("sorting")],sortOrder:y},null)])},RQ=(t,{slots:e})=>{var n;return N("div",{class:t.class,style:t.style},[(n=e.default)==null?void 0:n.call(e)])};RQ.displayName="ElTableV2Footer";const LQ=(t,{slots:e})=>N("div",{class:t.class,style:t.style},[e.default?e.default():N(PZ,null,null)]);LQ.displayName="ElTableV2Empty";const OQ=(t,{slots:e})=>{var n;return N("div",{class:t.class,style:t.style},[(n=e.default)==null?void 0:n.call(e)])};OQ.displayName="ElTableV2Overlay";function cy(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!Gr(t)}const pze="ElTableV2",vze=ye({name:pze,props:j6e,setup(t,{slots:e,expose:n}){const r=Ye("table-v2"),{columnsStyles:a,fixedColumnsOnLeft:i,fixedColumnsOnRight:o,mainColumns:s,mainTableHeight:l,fixedTableHeight:u,leftTableWidth:c,rightTableWidth:f,data:d,depthMap:h,expandedRowKeys:p,hasFixedColumns:v,hoveringRowKey:g,mainTableRef:y,leftTableRef:m,rightTableRef:S,isDynamic:w,isResetting:C,isScrolling:_,bodyWidth:x,emptyStyle:T,rootStyle:M,headerWidth:E,footerHeight:A,showEmpty:k,scrollTo:L,scrollToLeft:I,scrollToTop:P,scrollToRow:F,getRowHeight:$,onColumnSorted:W,onRowHeightChange:V,onRowHovered:z,onRowExpanded:K,onRowsRendered:Z,onScroll:oe,onVerticalScroll:ge}=H6e(t);return n({scrollTo:L,scrollToLeft:I,scrollToTop:P,scrollToRow:F}),fn(kV,{ns:r,isResetting:C,hoveringRowKey:g,isScrolling:_}),()=>{const{cache:ie,cellProps:Q,estimatedRowHeight:ce,expandColumnKey:se,fixedData:me,headerHeight:ve,headerClass:he,headerProps:ee,headerCellProps:ue,sortBy:fe,sortState:Re,rowHeight:Ne,rowClass:De,rowEventHandlers:we,rowKey:ae,rowProps:Ie,scrollbarAlwaysOn:He,indentSize:Ce,iconSize:qe,useIsScrolling:Ze,vScrollbarSize:de,width:Xe}=t,mt=b(d),kt={cache:ie,class:r.e("main"),columns:b(s),data:mt,fixedData:me,estimatedRowHeight:ce,bodyWidth:b(x)+de,headerHeight:ve,headerWidth:b(E),height:b(l),mainTableRef:y,rowKey:ae,rowHeight:Ne,scrollbarAlwaysOn:He,scrollbarStartGap:2,scrollbarEndGap:de,useIsScrolling:Ze,width:Xe,getRowHeight:$,onRowsRendered:Z,onScroll:oe},Vt=b(c),dt=b(u),Oe={cache:ie,class:r.e("left"),columns:b(i),data:mt,estimatedRowHeight:ce,leftTableRef:m,rowHeight:Ne,bodyWidth:Vt,headerWidth:Vt,headerHeight:ve,height:dt,rowKey:ae,scrollbarAlwaysOn:He,scrollbarStartGap:2,scrollbarEndGap:de,useIsScrolling:Ze,width:Vt,getRowHeight:$,onScroll:ge},xe=b(f)+de,Pe={cache:ie,class:r.e("right"),columns:b(o),data:mt,estimatedRowHeight:ce,rightTableRef:S,rowHeight:Ne,bodyWidth:xe,headerWidth:xe,headerHeight:ve,height:dt,rowKey:ae,scrollbarAlwaysOn:He,scrollbarStartGap:2,scrollbarEndGap:de,width:xe,style:`--${b(r.namespace)}-table-scrollbar-size: ${de}px`,useIsScrolling:Ze,getRowHeight:$,onScroll:ge},pe=b(a),it={ns:r,depthMap:b(h),columnsStyles:pe,expandColumnKey:se,expandedRowKeys:b(p),estimatedRowHeight:ce,hasFixedColumns:b(v),hoveringRowKey:b(g),rowProps:Ie,rowClass:De,rowKey:ae,rowEventHandlers:we,onRowHovered:z,onRowExpanded:K,onRowHeightChange:V},Tt={cellProps:Q,expandColumnKey:se,indentSize:Ce,iconSize:qe,rowKey:ae,expandedRowKeys:b(p),ns:r},Wt={ns:r,headerClass:he,headerProps:ee,columnsStyles:pe},Kn={ns:r,sortBy:fe,sortState:Re,headerCellProps:ue,onColumnSorted:W},Nn={row:Ue=>N(fze,an(Ue,it),{row:e.row,cell:ot=>{let Ae;return e.cell?N(dL,an(ot,Tt,{style:pe[ot.column.key]}),cy(Ae=e.cell(ot))?Ae:{default:()=>[Ae]}):N(dL,an(ot,Tt,{style:pe[ot.column.key]}),null)}}),header:Ue=>N(hze,an(Ue,Wt),{header:e.header,cell:ot=>{let Ae;return e["header-cell"]?N(w8,an(ot,Kn,{style:pe[ot.column.key]}),cy(Ae=e["header-cell"](ot))?Ae:{default:()=>[Ae]}):N(w8,an(ot,Kn,{style:pe[ot.column.key]}),null)}})},fr=[t.class,r.b(),r.e("root"),{[r.is("dynamic")]:b(w)}],wr={class:r.e("footer"),style:b(A)};return N("div",{class:fr,style:b(M)},[N(ize,kt,cy(Nn)?Nn:{default:()=>[Nn]}),N(sze,Oe,cy(Nn)?Nn:{default:()=>[Nn]}),N(uze,Pe,cy(Nn)?Nn:{default:()=>[Nn]}),e.footer&&N(RQ,wr,{default:e.footer}),b(k)&&N(LQ,{class:r.e("empty"),style:b(T)},{default:e.empty}),e.overlay&&N(OQ,{class:r.e("overlay")},{default:e.overlay})])}}}),gze=nt({disableWidth:Boolean,disableHeight:Boolean,onResize:{type:ke(Function)}}),yze=ye({name:"ElAutoResizer",props:gze,setup(t,{slots:e}){const n=Ye("auto-resizer"),{height:r,width:a,sizer:i}=G6e(t),o={width:"100%",height:"100%"};return()=>{var s;return N("div",{ref:i,class:n.b(),style:o},[(s=e.default)==null?void 0:s.call(e,{height:r.value,width:a.value})])}}}),mze=tn(vze),bze=tn(yze),NT=Symbol("tabsRootContextKey"),Sze=nt({tabs:{type:ke(Array),default:()=>zr([])}}),VQ="ElTabBar",wze=ye({name:VQ}),xze=ye({...wze,props:Sze,setup(t,{expose:e}){const n=t,r=Qt(),a=yt(NT);a||Da(VQ,"<el-tabs><el-tab-bar /></el-tabs>");const i=Ye("tabs"),o=B(),s=B(),l=()=>{let c=0,f=0;const d=["top","bottom"].includes(a.props.tabPosition)?"width":"height",h=d==="width"?"x":"y",p=h==="x"?"left":"top";return n.tabs.every(v=>{var g,y;const m=(y=(g=r.parent)==null?void 0:g.refs)==null?void 0:y[`tab-${v.uid}`];if(!m)return!1;if(!v.active)return!0;c=m[`offset${Xl(p)}`],f=m[`client${Xl(d)}`];const S=window.getComputedStyle(m);return d==="width"&&(n.tabs.length>1&&(f-=Number.parseFloat(S.paddingLeft)+Number.parseFloat(S.paddingRight)),c+=Number.parseFloat(S.paddingLeft)),!1}),{[d]:`${f}px`,transform:`translate${Xl(h)}(${c}px)`}},u=()=>s.value=l();return Ke(()=>n.tabs,async()=>{await xt(),u()},{immediate:!0}),Vi(o,()=>u()),e({ref:o,update:u}),(c,f)=>(G(),re("div",{ref_key:"barRef",ref:o,class:Y([b(i).e("active-bar"),b(i).is(b(a).props.tabPosition)]),style:Et(s.value)},null,6))}});var _ze=tt(xze,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tabs/src/tab-bar.vue"]]);const Cze=nt({panes:{type:ke(Array),default:()=>zr([])},currentName:{type:[String,Number],default:""},editable:Boolean,type:{type:String,values:["card","border-card",""],default:""},stretch:Boolean}),Tze={tabClick:(t,e,n)=>n instanceof Event,tabRemove:(t,e)=>e instanceof Event},x8="ElTabNav",Eze=ye({name:x8,props:Cze,emits:Tze,setup(t,{expose:e,emit:n}){const r=Qt(),a=yt(NT);a||Da(x8,"<el-tabs><tab-nav /></el-tabs>");const i=Ye("tabs"),o=Q0e(),s=lye(),l=B(),u=B(),c=B(),f=B(),d=B(!1),h=B(0),p=B(!1),v=B(!0),g=U(()=>["top","bottom"].includes(a.props.tabPosition)?"width":"height"),y=U(()=>({transform:`translate${g.value==="width"?"X":"Y"}(-${h.value}px)`})),m=()=>{if(!l.value)return;const M=l.value[`offset${Xl(g.value)}`],E=h.value;if(!E)return;const A=E>M?E-M:0;h.value=A},S=()=>{if(!l.value||!u.value)return;const M=u.value[`offset${Xl(g.value)}`],E=l.value[`offset${Xl(g.value)}`],A=h.value;if(M-A<=E)return;const k=M-A>E*2?A+E:M-E;h.value=k},w=async()=>{const M=u.value;if(!d.value||!c.value||!l.value||!M)return;await xt();const E=c.value.querySelector(".is-active");if(!E)return;const A=l.value,k=["top","bottom"].includes(a.props.tabPosition),L=E.getBoundingClientRect(),I=A.getBoundingClientRect(),P=k?M.offsetWidth-I.width:M.offsetHeight-I.height,F=h.value;let $=F;k?(L.left<I.left&&($=F-(I.left-L.left)),L.right>I.right&&($=F+L.right-I.right)):(L.top<I.top&&($=F-(I.top-L.top)),L.bottom>I.bottom&&($=F+(L.bottom-I.bottom))),$=Math.max($,0),h.value=Math.min($,P)},C=()=>{var M;if(!u.value||!l.value)return;t.stretch&&((M=f.value)==null||M.update());const E=u.value[`offset${Xl(g.value)}`],A=l.value[`offset${Xl(g.value)}`],k=h.value;A<E?(d.value=d.value||{},d.value.prev=k,d.value.next=k+A<E,E-k<A&&(h.value=E-A)):(d.value=!1,k>0&&(h.value=0))},_=M=>{const E=M.code,{up:A,down:k,left:L,right:I}=Dt;if(![A,k,L,I].includes(E))return;const P=Array.from(M.currentTarget.querySelectorAll("[role=tab]:not(.is-disabled)")),F=P.indexOf(M.target);let $;E===L||E===A?F===0?$=P.length-1:$=F-1:F<P.length-1?$=F+1:$=0,P[$].focus({preventScroll:!0}),P[$].click(),x()},x=()=>{v.value&&(p.value=!0)},T=()=>p.value=!1;return Ke(o,M=>{M==="hidden"?v.value=!1:M==="visible"&&setTimeout(()=>v.value=!0,50)}),Ke(s,M=>{M?setTimeout(()=>v.value=!0,50):v.value=!1}),Vi(c,C),Ut(()=>setTimeout(()=>w(),0)),bc(()=>C()),e({scrollToActiveTab:w,removeFocus:T}),Ke(()=>t.panes,()=>r.update(),{flush:"post",deep:!0}),()=>{const M=d.value?[N("span",{class:[i.e("nav-prev"),i.is("disabled",!d.value.prev)],onClick:m},[N(_t,null,{default:()=>[N(sc,null,null)]})]),N("span",{class:[i.e("nav-next"),i.is("disabled",!d.value.next)],onClick:S},[N(_t,null,{default:()=>[N(Li,null,null)]})])]:null,E=t.panes.map((A,k)=>{var L,I,P,F;const $=A.uid,W=A.props.disabled,V=(I=(L=A.props.name)!=null?L:A.index)!=null?I:`${k}`,z=!W&&(A.isClosable||t.editable);A.index=`${k}`;const K=z?N(_t,{class:"is-icon-close",onClick:ge=>n("tabRemove",A,ge)},{default:()=>[N(yl,null,null)]}):null,Z=((F=(P=A.slots).label)==null?void 0:F.call(P))||A.props.label,oe=!W&&A.active?0:-1;return N("div",{ref:`tab-${$}`,class:[i.e("item"),i.is(a.props.tabPosition),i.is("active",A.active),i.is("disabled",W),i.is("closable",z),i.is("focus",p.value)],id:`tab-${V}`,key:`tab-${$}`,"aria-controls":`pane-${V}`,role:"tab","aria-selected":A.active,tabindex:oe,onFocus:()=>x(),onBlur:()=>T(),onClick:ge=>{T(),n("tabClick",A,V,ge)},onKeydown:ge=>{z&&(ge.code===Dt.delete||ge.code===Dt.backspace)&&n("tabRemove",A,ge)}},[Z,K])});return N("div",{ref:c,class:[i.e("nav-wrap"),i.is("scrollable",!!d.value),i.is(a.props.tabPosition)]},[M,N("div",{class:i.e("nav-scroll"),ref:l},[N("div",{class:[i.e("nav"),i.is(a.props.tabPosition),i.is("stretch",t.stretch&&["top","bottom"].includes(a.props.tabPosition))],ref:u,style:y.value,role:"tablist",onKeydown:_},[t.type?null:N(_ze,{ref:f,tabs:[...t.panes]},null),E])])])}}}),Mze=nt({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:ke(Function),default:()=>!0},stretch:Boolean}),zM=t=>Ht(t)||Pt(t),Dze={[nn]:t=>zM(t),tabClick:(t,e)=>e instanceof Event,tabChange:t=>zM(t),edit:(t,e)=>["remove","add"].includes(e),tabRemove:t=>zM(t),tabAdd:()=>!0};var Aze=ye({name:"ElTabs",props:Mze,emits:Dze,setup(t,{emit:e,slots:n,expose:r}){var a,i;const o=Ye("tabs"),{children:s,addChild:l,removeChild:u}=rV(Qt(),"ElTabPane"),c=B(),f=B((i=(a=t.modelValue)!=null?a:t.activeName)!=null?i:"0"),d=y=>{f.value=y,e(nn,y),e("tabChange",y)},h=async y=>{var m,S,w;if(!(f.value===y||Na(y)))try{await((m=t.beforeLeave)==null?void 0:m.call(t,y,f.value))!==!1&&(d(y),(w=(S=c.value)==null?void 0:S.removeFocus)==null||w.call(S))}catch{}},p=(y,m,S)=>{y.props.disabled||(h(m),e("tabClick",y,S))},v=(y,m)=>{y.props.disabled||Na(y.props.name)||(m.stopPropagation(),e("edit",y.props.name,"remove"),e("tabRemove",y.props.name))},g=()=>{e("edit",void 0,"add"),e("tabAdd")};return fu({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"},U(()=>!!t.activeName)),Ke(()=>t.activeName,y=>h(y)),Ke(()=>t.modelValue,y=>h(y)),Ke(f,async()=>{var y;await xt(),(y=c.value)==null||y.scrollToActiveTab()}),fn(NT,{props:t,currentName:f,registerPane:l,unregisterPane:u}),r({currentName:f}),()=>{const y=t.editable||t.addable?N("span",{class:o.e("new-tab"),tabindex:"0",onClick:g,onKeydown:w=>{w.code===Dt.enter&&g()}},[N(_t,{class:o.is("icon-plus")},{default:()=>[N(lX,null,null)]})]):null,m=N("div",{class:[o.e("header"),o.is(t.tabPosition)]},[y,N(Eze,{ref:c,currentName:f.value,editable:t.editable,type:t.type,panes:s.value,stretch:t.stretch,onTabClick:p,onTabRemove:v},null)]),S=N("div",{class:o.e("content")},[Ge(n,"default")]);return N("div",{class:[o.b(),o.m(t.tabPosition),{[o.m("card")]:t.type==="card",[o.m("border-card")]:t.type==="border-card"}]},[...t.tabPosition!=="bottom"?[m,S]:[S,m]])}}});const kze=nt({label:{type:String,default:""},name:{type:[String,Number]},closable:Boolean,disabled:Boolean,lazy:Boolean}),Rze=["id","aria-hidden","aria-labelledby"],NQ="ElTabPane",Lze=ye({name:NQ}),Oze=ye({...Lze,props:kze,setup(t){const e=t,n=Qt(),r=wi(),a=yt(NT);a||Da(NQ,"usage: <el-tabs><el-tab-pane /></el-tabs/>");const i=Ye("tab-pane"),o=B(),s=U(()=>e.closable||a.props.closable),l=tF(()=>{var h;return a.currentName.value===((h=e.name)!=null?h:o.value)}),u=B(l.value),c=U(()=>{var h;return(h=e.name)!=null?h:o.value}),f=tF(()=>!e.lazy||u.value||l.value);Ke(l,h=>{h&&(u.value=!0)});const d=Vn({uid:n.uid,slots:r,props:e,paneName:c,active:l,index:o,isClosable:s});return Ut(()=>{a.registerPane(d)}),bu(()=>{a.unregisterPane(d.uid)}),(h,p)=>b(f)?Ft((G(),re("div",{key:0,id:`pane-${b(c)}`,class:Y(b(i).b()),role:"tabpanel","aria-hidden":!b(l),"aria-labelledby":`tab-${b(c)}`},[Ge(h.$slots,"default")],10,Rze)),[[cn,b(l)]]):_e("v-if",!0)}});var IQ=tt(Oze,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tabs/src/tab-pane.vue"]]);const Vze=tn(Aze,{TabPane:IQ}),Nze=ta(IQ),Ize=nt({type:{type:String,values:["primary","success","info","warning","danger",""],default:""},size:{type:String,values:wu,default:""},truncated:{type:Boolean},tag:{type:String,default:"span"}}),Bze=ye({name:"ElText"}),$ze=ye({...Bze,props:Ize,setup(t){const e=t,n=Aa(),r=Ye("text"),a=U(()=>[r.b(),r.m(e.type),r.m(n.value),r.is("truncated",e.truncated)]);return(i,o)=>(G(),Ee(on(i.tag),{class:Y(b(a))},{default:j(()=>[Ge(i.$slots,"default")]),_:3},8,["class"]))}});var Pze=tt($ze,[["__file","/home/runner/work/element-plus/element-plus/packages/components/text/src/text.vue"]]);const Fze=tn(Pze),zze=nt({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:yi,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:ke([String,Object]),default:()=>oX},clearIcon:{type:ke([String,Object]),default:()=>ad}}),Hu=t=>{const e=(t||"").split(":");if(e.length>=2){let n=Number.parseInt(e[0],10);const r=Number.parseInt(e[1],10),a=t.toUpperCase();return a.includes("AM")&&n===12?n=0:a.includes("PM")&&n!==12&&(n+=12),{hours:n,minutes:r}}return null},UM=(t,e)=>{const n=Hu(t);if(!n)return-1;const r=Hu(e);if(!r)return-1;const a=n.minutes+n.hours*60,i=r.minutes+r.hours*60;return a===i?0:a>i?1:-1},_8=t=>`${t}`.padStart(2,"0"),Lv=t=>`${_8(t.hours)}:${_8(t.minutes)}`,Uze=(t,e)=>{const n=Hu(t);if(!n)return"";const r=Hu(e);if(!r)return"";const a={hours:n.hours,minutes:n.minutes};return a.minutes+=r.minutes,a.hours+=r.hours,a.hours+=Math.floor(a.minutes/60),a.minutes=a.minutes%60,Lv(a)},Gze=ye({name:"ElTimeSelect"}),Hze=ye({...Gze,props:zze,emits:["change","blur","focus","update:modelValue"],setup(t,{expose:e}){const n=t;Jt.extend(uV);const{Option:r}=jf,a=Ye("input"),i=B(),o=Ro(),s=U(()=>n.modelValue),l=U(()=>{const g=Hu(n.start);return g?Lv(g):null}),u=U(()=>{const g=Hu(n.end);return g?Lv(g):null}),c=U(()=>{const g=Hu(n.step);return g?Lv(g):null}),f=U(()=>{const g=Hu(n.minTime||"");return g?Lv(g):null}),d=U(()=>{const g=Hu(n.maxTime||"");return g?Lv(g):null}),h=U(()=>{const g=[];if(n.start&&n.end&&n.step){let y=l.value,m;for(;y&&u.value&&UM(y,u.value)<=0;)m=Jt(y,"HH:mm").format(n.format),g.push({value:m,disabled:UM(y,f.value||"-1:-1")<=0||UM(y,d.value||"100:100")>=0}),y=Uze(y,c.value)}return g});return e({blur:()=>{var g,y;(y=(g=i.value)==null?void 0:g.blur)==null||y.call(g)},focus:()=>{var g,y;(y=(g=i.value)==null?void 0:g.focus)==null||y.call(g)}}),(g,y)=>(G(),Ee(b(jf),{ref_key:"select",ref:i,"model-value":b(s),disabled:b(o),clearable:g.clearable,"clear-icon":g.clearIcon,size:g.size,effect:g.effect,placeholder:g.placeholder,"default-first-option":"",filterable:g.editable,"onUpdate:modelValue":y[0]||(y[0]=m=>g.$emit("update:modelValue",m)),onChange:y[1]||(y[1]=m=>g.$emit("change",m)),onBlur:y[2]||(y[2]=m=>g.$emit("blur",m)),onFocus:y[3]||(y[3]=m=>g.$emit("focus",m))},{prefix:j(()=>[g.prefixIcon?(G(),Ee(b(_t),{key:0,class:Y(b(a).e("prefix-icon"))},{default:j(()=>[(G(),Ee(on(g.prefixIcon)))]),_:1},8,["class"])):_e("v-if",!0)]),default:j(()=>[(G(!0),re(Ct,null,dn(b(h),m=>(G(),Ee(b(r),{key:m.value,label:m.value,value:m.value,disabled:m.disabled},null,8,["label","value","disabled"]))),128))]),_:1},8,["model-value","disabled","clearable","clear-icon","size","effect","placeholder","filterable"]))}});var u_=tt(Hze,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-select/src/time-select.vue"]]);u_.install=t=>{t.component(u_.name,u_)};const Wze=u_,jze=Wze,Kze=ye({name:"ElTimeline",setup(t,{slots:e}){const n=Ye("timeline");return fn("timeline",e),()=>At("ul",{class:[n.b()]},[Ge(e,"default")])}}),Yze=nt({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:gr},hollow:{type:Boolean,default:!1}}),Xze=ye({name:"ElTimelineItem"}),qze=ye({...Xze,props:Yze,setup(t){const e=t,n=Ye("timeline-item"),r=U(()=>[n.e("node"),n.em("node",e.size||""),n.em("node",e.type||""),n.is("hollow",e.hollow)]);return(a,i)=>(G(),re("li",{class:Y([b(n).b(),{[b(n).e("center")]:a.center}])},[R("div",{class:Y(b(n).e("tail"))},null,2),a.$slots.dot?_e("v-if",!0):(G(),re("div",{key:0,class:Y(b(r)),style:Et({backgroundColor:a.color})},[a.icon?(G(),Ee(b(_t),{key:0,class:Y(b(n).e("icon"))},{default:j(()=>[(G(),Ee(on(a.icon)))]),_:1},8,["class"])):_e("v-if",!0)],6)),a.$slots.dot?(G(),re("div",{key:1,class:Y(b(n).e("dot"))},[Ge(a.$slots,"dot")],2)):_e("v-if",!0),R("div",{class:Y(b(n).e("wrapper"))},[!a.hideTimestamp&&a.placement==="top"?(G(),re("div",{key:0,class:Y([b(n).e("timestamp"),b(n).is("top")])},We(a.timestamp),3)):_e("v-if",!0),R("div",{class:Y(b(n).e("content"))},[Ge(a.$slots,"default")],2),!a.hideTimestamp&&a.placement==="bottom"?(G(),re("div",{key:1,class:Y([b(n).e("timestamp"),b(n).is("bottom")])},We(a.timestamp),3)):_e("v-if",!0)],2)],2))}});var BQ=tt(qze,[["__file","/home/runner/work/element-plus/element-plus/packages/components/timeline/src/timeline-item.vue"]]);const Zze=tn(Kze,{TimelineItem:BQ}),Qze=ta(BQ),$Q=nt({nowrap:Boolean});var PQ=(t=>(t.top="top",t.bottom="bottom",t.left="left",t.right="right",t))(PQ||{});const Jze=Object.values(PQ),IV=nt({width:{type:Number,default:10},height:{type:Number,default:10},style:{type:ke(Object),default:null}}),eUe=nt({side:{type:ke(String),values:Jze,required:!0}}),tUe=["absolute","fixed"],nUe=["top-start","top-end","top","bottom-start","bottom-end","bottom","left-start","left-end","left","right-start","right-end","right"],BV=nt({ariaLabel:String,arrowPadding:{type:ke(Number),default:5},effect:{type:String,default:""},contentClass:String,placement:{type:ke(String),values:nUe,default:"bottom"},reference:{type:ke(Object),default:null},offset:{type:Number,default:8},strategy:{type:ke(String),values:tUe,default:"absolute"},showArrow:{type:Boolean,default:!1}}),$V=nt({delayDuration:{type:Number,default:300},defaultOpen:Boolean,open:{type:Boolean,default:void 0},onOpenChange:{type:ke(Function)},"onUpdate:open":{type:ke(Function)}}),ev={type:ke(Function)},PV=nt({onBlur:ev,onClick:ev,onFocus:ev,onMouseDown:ev,onMouseEnter:ev,onMouseLeave:ev}),rUe=nt({...$V,...IV,...PV,...BV,alwaysOn:Boolean,fullTransition:Boolean,transitionProps:{type:ke(Object),default:null},teleported:Boolean,to:{type:ke(String),default:"body"}}),IT=Symbol("tooltipV2"),FQ=Symbol("tooltipV2Content"),GM="tooltip_v2.open",aUe=ye({name:"ElTooltipV2Root"}),iUe=ye({...aUe,props:$V,setup(t,{expose:e}){const n=t,r=B(n.defaultOpen),a=B(null),i=U({get:()=>bxe(n.open)?r.value:n.open,set:g=>{var y;r.value=g,(y=n["onUpdate:open"])==null||y.call(n,g)}}),o=U(()=>Pt(n.delayDuration)&&n.delayDuration>0),{start:s,stop:l}=dp(()=>{i.value=!0},U(()=>n.delayDuration),{immediate:!1}),u=Ye("tooltip-v2"),c=Ts(),f=()=>{l(),i.value=!0},d=()=>{b(o)?s():f()},h=f,p=()=>{l(),i.value=!1};return Ke(i,g=>{var y;g&&(document.dispatchEvent(new CustomEvent(GM)),h()),(y=n.onOpenChange)==null||y.call(n,g)}),Ut(()=>{document.addEventListener(GM,p)}),Sr(()=>{l(),document.removeEventListener(GM,p)}),fn(IT,{contentId:c,triggerRef:a,ns:u,onClose:p,onDelayOpen:d,onOpen:h}),e({onOpen:h,onClose:p}),(g,y)=>Ge(g.$slots,"default",{open:b(i)})}});var oUe=tt(iUe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/root.vue"]]);const sUe=ye({name:"ElTooltipV2Arrow"}),lUe=ye({...sUe,props:{...IV,...eUe},setup(t){const e=t,{ns:n}=yt(IT),{arrowRef:r}=yt(FQ),a=U(()=>{const{style:i,width:o,height:s}=e,l=n.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)=>(G(),re("span",{ref_key:"arrowRef",ref:r,style:Et(b(a)),class:Y(b(n).e("arrow"))},null,6))}});var C8=tt(lUe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/arrow.vue"]]);const uUe=nt({style:{type:ke([String,Object,Array]),default:()=>({})}}),cUe=ye({name:"ElVisuallyHidden"}),fUe=ye({...cUe,props:uUe,setup(t){const e=t,n=U(()=>[e.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(r,a)=>(G(),re("span",an(r.$attrs,{style:b(n)}),[Ge(r.$slots,"default")],16))}});var dUe=tt(fUe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/visual-hidden/src/visual-hidden.vue"]]);const hUe=["data-side"],pUe=ye({name:"ElTooltipV2Content"}),vUe=ye({...pUe,props:{...BV,...$Q},setup(t){const e=t,{triggerRef:n,contentId:r}=yt(IT),a=B(e.placement),i=B(e.strategy),o=B(null),{referenceRef:s,contentRef:l,middlewareData:u,x:c,y:f,update:d}=WMe({placement:a,strategy:i,middleware:U(()=>{const S=[EMe(e.offset)];return e.showArrow&&S.push(jMe({arrowRef:o})),S})}),h=m0().nextZIndex(),p=Ye("tooltip-v2"),v=U(()=>a.value.split("-")[0]),g=U(()=>({position:b(i),top:`${b(f)||0}px`,left:`${b(c)||0}px`,zIndex:h})),y=U(()=>{if(!e.showArrow)return{};const{arrow:S}=b(u);return{[`--${p.namespace.value}-tooltip-v2-arrow-x`]:`${S==null?void 0:S.x}px`||"",[`--${p.namespace.value}-tooltip-v2-arrow-y`]:`${S==null?void 0:S.y}px`||""}}),m=U(()=>[p.e("content"),p.is("dark",e.effect==="dark"),p.is(b(i)),e.contentClass]);return Ke(o,()=>d()),Ke(()=>e.placement,S=>a.value=S),Ut(()=>{Ke(()=>e.reference||n.value,S=>{s.value=S||void 0},{immediate:!0})}),fn(FQ,{arrowRef:o}),(S,w)=>(G(),re("div",{ref_key:"contentRef",ref:l,style:Et(b(g)),"data-tooltip-v2-root":""},[S.nowrap?_e("v-if",!0):(G(),re("div",{key:0,"data-side":b(v),class:Y(b(m))},[Ge(S.$slots,"default",{contentStyle:b(g),contentClass:b(m)}),N(b(dUe),{id:b(r),role:"tooltip"},{default:j(()=>[S.ariaLabel?(G(),re(Ct,{key:0},[Be(We(S.ariaLabel),1)],64)):Ge(S.$slots,"default",{key:1})]),_:3},8,["id"]),Ge(S.$slots,"arrow",{style:Et(b(y)),side:b(v)})],10,hUe))],4))}});var T8=tt(vUe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/content.vue"]]);const gUe=nt({setRef:{type:ke(Function),required:!0},onlyChild:Boolean});var yUe=ye({props:gUe,setup(t,{slots:e}){const n=B(),r=bT(n,a=>{a?t.setRef(a.nextElementSibling):t.setRef(null)});return()=>{var a;const[i]=((a=e.default)==null?void 0:a.call(e))||[],o=t.onlyChild?QTe(i.children):i.children;return N(Ct,{ref:r},[o])}}});const mUe=ye({name:"ElTooltipV2Trigger"}),bUe=ye({...mUe,props:{...$Q,...PV},setup(t){const e=t,{onClose:n,onOpen:r,onDelayOpen:a,triggerRef:i,contentId:o}=yt(IT);let s=!1;const l=m=>{i.value=m},u=()=>{s=!1},c=Zr(e.onMouseEnter,a),f=Zr(e.onMouseLeave,n),d=Zr(e.onMouseDown,()=>{n(),s=!0,document.addEventListener("mouseup",u,{once:!0})}),h=Zr(e.onFocus,()=>{s||r()}),p=Zr(e.onBlur,n),v=Zr(e.onClick,m=>{m.detail===0&&n()}),g={blur:p,click:v,focus:h,mousedown:d,mouseenter:c,mouseleave:f},y=(m,S,w)=>{m&&Object.entries(S).forEach(([C,_])=>{m[w](C,_)})};return Ke(i,(m,S)=>{y(m,g,"addEventListener"),y(S,g,"removeEventListener"),m&&m.setAttribute("aria-describedby",o.value)}),Sr(()=>{y(i.value,g,"removeEventListener"),document.removeEventListener("mouseup",u)}),(m,S)=>m.nowrap?(G(),Ee(b(yUe),{key:0,"set-ref":l,"only-child":""},{default:j(()=>[Ge(m.$slots,"default")]),_:3})):(G(),re("button",an({key:1,ref_key:"triggerRef",ref:i},m.$attrs),[Ge(m.$slots,"default")],16))}});var SUe=tt(bUe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/trigger.vue"]]);const wUe=ye({name:"ElTooltipV2"}),xUe=ye({...wUe,props:rUe,setup(t){const n=Wa(t),r=Vn(ju(n,Object.keys(IV))),a=Vn(ju(n,Object.keys(BV))),i=Vn(ju(n,Object.keys($V))),o=Vn(ju(n,Object.keys(PV)));return(s,l)=>(G(),Ee(oUe,rl(eT(i)),{default:j(({open:u})=>[N(SUe,an(o,{nowrap:""}),{default:j(()=>[Ge(s.$slots,"trigger")]),_:3},16),(G(),Ee(xb,{to:s.to,disabled:!s.teleported},[s.fullTransition?(G(),Ee(da,rl(an({key:0},s.transitionProps)),{default:j(()=>[s.alwaysOn||u?(G(),Ee(T8,rl(an({key:0},a)),{arrow:j(({style:c,side:f})=>[s.showArrow?(G(),Ee(C8,an({key:0},r,{style:c,side:f}),null,16,["style","side"])):_e("v-if",!0)]),default:j(()=>[Ge(s.$slots,"default")]),_:3},16)):_e("v-if",!0)]),_:2},1040)):(G(),re(Ct,{key:1},[s.alwaysOn||u?(G(),Ee(T8,rl(an({key:0},a)),{arrow:j(({style:c,side:f})=>[s.showArrow?(G(),Ee(C8,an({key:0},r,{style:c,side:f}),null,16,["style","side"])):_e("v-if",!0)]),default:j(()=>[Ge(s.$slots,"default")]),_:3},16)):_e("v-if",!0)],64))],8,["to","disabled"]))]),_:3},16))}});var _Ue=tt(xUe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/tooltip.vue"]]);const CUe=tn(_Ue),zQ="left-check-change",UQ="right-check-change",Ov=nt({data:{type:ke(Array),default:()=>[]},titles:{type:ke(Array),default:()=>[]},buttonTexts:{type:ke(Array),default:()=>[]},filterPlaceholder:String,filterMethod:{type:ke(Function)},leftDefaultChecked:{type:ke(Array),default:()=>[]},rightDefaultChecked:{type:ke(Array),default:()=>[]},renderContent:{type:ke(Function)},modelValue:{type:ke(Array),default:()=>[]},format:{type:ke(Object),default:()=>({})},filterable:Boolean,props:{type:ke(Object),default:()=>zr({label:"label",key:"key",disabled:"disabled"})},targetOrder:{type:String,values:["original","push","unshift"],default:"original"},validateEvent:{type:Boolean,default:!0}}),hL=(t,e)=>[t,e].every(gt)||gt(t)&&Ta(e),TUe={[Ar]:(t,e,n)=>[t,n].every(gt)&&["left","right"].includes(e),[nn]:t=>gt(t),[zQ]:hL,[UQ]:hL},pL="checked-change",EUe=nt({data:Ov.data,optionRender:{type:ke(Function)},placeholder:String,title:String,filterable:Boolean,format:Ov.format,filterMethod:Ov.filterMethod,defaultChecked:Ov.leftDefaultChecked,props:Ov.props}),MUe={[pL]:hL},$b=t=>{const e={label:"label",key:"key",disabled:"disabled"};return U(()=>({...e,...t.props}))},DUe=(t,e,n)=>{const r=$b(t),a=U(()=>t.data.filter(c=>zt(t.filterMethod)?t.filterMethod(e.query,c):String(c[r.value.label]||c[r.value.key]).toLowerCase().includes(e.query.toLowerCase()))),i=U(()=>a.value.filter(c=>!c[r.value.disabled])),o=U(()=>{const c=e.checked.length,f=t.data.length,{noChecked:d,hasChecked:h}=t.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=U(()=>{const c=e.checked.length;return c>0&&c<i.value.length}),l=()=>{const c=i.value.map(f=>f[r.value.key]);e.allChecked=c.length>0&&c.every(f=>e.checked.includes(f))},u=c=>{e.checked=c?i.value.map(f=>f[r.value.key]):[]};return Ke(()=>e.checked,(c,f)=>{if(l(),e.checkChangeByUser){const d=c.concat(f).filter(h=>!c.includes(h)||!f.includes(h));n(pL,c,d)}else n(pL,c),e.checkChangeByUser=!0}),Ke(i,()=>{l()}),Ke(()=>t.data,()=>{const c=[],f=a.value.map(d=>d[r.value.key]);e.checked.forEach(d=>{f.includes(d)&&c.push(d)}),e.checkChangeByUser=!1,e.checked=c}),Ke(()=>t.defaultChecked,(c,f)=>{if(f&&c.length===f.length&&c.every(p=>f.includes(p)))return;const d=[],h=i.value.map(p=>p[r.value.key]);c.forEach(p=>{h.includes(p)&&d.push(p)}),e.checkChangeByUser=!1,e.checked=d},{immediate:!0}),{filteredData:a,checkableData:i,checkedSummary:o,isIndeterminate:s,updateAllChecked:l,handleAllCheckedChange:u}},AUe=(t,e)=>({onSourceCheckedChange:(a,i)=>{t.leftChecked=a,i&&e(zQ,a,i)},onTargetCheckedChange:(a,i)=>{t.rightChecked=a,i&&e(UQ,a,i)}}),kUe=t=>{const e=$b(t),n=U(()=>t.data.reduce((i,o)=>(i[o[e.value.key]]=o)&&i,{})),r=U(()=>t.data.filter(i=>!t.modelValue.includes(i[e.value.key]))),a=U(()=>t.targetOrder==="original"?t.data.filter(i=>t.modelValue.includes(i[e.value.key])):t.modelValue.reduce((i,o)=>{const s=n.value[o];return s&&i.push(s),i},[]));return{sourceData:r,targetData:a}},RUe=(t,e,n)=>{const r=$b(t),a=(s,l,u)=>{n(nn,s),n(Ar,s,l,u)};return{addToLeft:()=>{const s=t.modelValue.slice();e.rightChecked.forEach(l=>{const u=s.indexOf(l);u>-1&&s.splice(u,1)}),a(s,"left",e.rightChecked)},addToRight:()=>{let s=t.modelValue.slice();const l=t.data.filter(u=>{const c=u[r.value.key];return e.leftChecked.includes(c)&&!t.modelValue.includes(c)}).map(u=>u[r.value.key]);s=t.targetOrder==="unshift"?l.concat(s):s.concat(l),t.targetOrder==="original"&&(s=t.data.filter(u=>s.includes(u[r.value.key])).map(u=>u[r.value.key])),a(s,"right",e.leftChecked)}}},LUe=ye({name:"ElTransferPanel"}),OUe=ye({...LUe,props:EUe,emits:MUe,setup(t,{expose:e,emit:n}){const r=t,a=wi(),i=({option:S})=>S,{t:o}=En(),s=Ye("transfer"),l=Vn({checked:[],allChecked:!1,query:"",checkChangeByUser:!0}),u=$b(r),{filteredData:c,checkedSummary:f,isIndeterminate:d,handleAllCheckedChange:h}=DUe(r,l,n),p=U(()=>!ds(l.query)&&ds(c.value)),v=U(()=>!ds(a.default()[0].children)),{checked:g,allChecked:y,query:m}=Wa(l);return e({query:m}),(S,w)=>(G(),re("div",{class:Y(b(s).b("panel"))},[R("p",{class:Y(b(s).be("panel","header"))},[N(b(Ms),{modelValue:b(y),"onUpdate:modelValue":w[0]||(w[0]=C=>ft(y)?y.value=C:null),indeterminate:b(d),"validate-event":!1,onChange:b(h)},{default:j(()=>[Be(We(S.title)+" ",1),R("span",null,We(b(f)),1)]),_:1},8,["modelValue","indeterminate","onChange"])],2),R("div",{class:Y([b(s).be("panel","body"),b(s).is("with-footer",b(v))])},[S.filterable?(G(),Ee(b(Ri),{key:0,modelValue:b(m),"onUpdate:modelValue":w[1]||(w[1]=C=>ft(m)?m.value=C:null),class:Y(b(s).be("panel","filter")),size:"default",placeholder:S.placeholder,"prefix-icon":b(KCe),clearable:"","validate-event":!1},null,8,["modelValue","class","placeholder","prefix-icon"])):_e("v-if",!0),Ft(N(b(Xq),{modelValue:b(g),"onUpdate:modelValue":w[2]||(w[2]=C=>ft(g)?g.value=C:null),"validate-event":!1,class:Y([b(s).is("filterable",S.filterable),b(s).be("panel","list")])},{default:j(()=>[(G(!0),re(Ct,null,dn(b(c),C=>(G(),Ee(b(Ms),{key:C[b(u).key],class:Y(b(s).be("panel","item")),label:C[b(u).key],disabled:C[b(u).disabled],"validate-event":!1},{default:j(()=>{var _;return[N(i,{option:(_=S.optionRender)==null?void 0:_.call(S,C)},null,8,["option"])]}),_:2},1032,["class","label","disabled"]))),128))]),_:1},8,["modelValue","class"]),[[cn,!b(p)&&!b(ds)(S.data)]]),Ft(R("p",{class:Y(b(s).be("panel","empty"))},We(b(p)?b(o)("el.transfer.noMatch"):b(o)("el.transfer.noData")),3),[[cn,b(p)||b(ds)(S.data)]])],2),b(v)?(G(),re("p",{key:0,class:Y(b(s).be("panel","footer"))},[Ge(S.$slots,"default")],2)):_e("v-if",!0)],2))}});var E8=tt(OUe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/transfer/src/transfer-panel.vue"]]);const VUe={key:0},NUe={key:0},IUe=ye({name:"ElTransfer"}),BUe=ye({...IUe,props:Ov,emits:TUe,setup(t,{expose:e,emit:n}){const r=t,a=wi(),{t:i}=En(),o=Ye("transfer"),{formItem:s}=uo(),l=Vn({leftChecked:[],rightChecked:[]}),u=$b(r),{sourceData:c,targetData:f}=kUe(r),{onSourceCheckedChange:d,onTargetCheckedChange:h}=AUe(l,n),{addToLeft:p,addToRight:v}=RUe(r,l,n),g=B(),y=B(),m=T=>{switch(T){case"left":g.value.query="";break;case"right":y.value.query="";break}},S=U(()=>r.buttonTexts.length===2),w=U(()=>r.titles[0]||i("el.transfer.titles.0")),C=U(()=>r.titles[1]||i("el.transfer.titles.1")),_=U(()=>r.filterPlaceholder||i("el.transfer.filterPlaceholder"));Ke(()=>r.modelValue,()=>{var T;r.validateEvent&&((T=s==null?void 0:s.validate)==null||T.call(s,"change").catch(M=>void 0))});const x=U(()=>T=>r.renderContent?r.renderContent(At,T):a.default?a.default({option:T}):At("span",T[u.value.label]||T[u.value.key]));return e({clearQuery:m,leftPanel:g,rightPanel:y}),(T,M)=>(G(),re("div",{class:Y(b(o).b())},[N(E8,{ref_key:"leftPanel",ref:g,data:b(c),"option-render":b(x),placeholder:b(_),title:b(w),filterable:T.filterable,format:T.format,"filter-method":T.filterMethod,"default-checked":T.leftDefaultChecked,props:r.props,onCheckedChange:b(d)},{default:j(()=>[Ge(T.$slots,"left-footer")]),_:3},8,["data","option-render","placeholder","title","filterable","format","filter-method","default-checked","props","onCheckedChange"]),R("div",{class:Y(b(o).e("buttons"))},[N(b(ct),{type:"primary",class:Y([b(o).e("button"),b(o).is("with-texts",b(S))]),disabled:b(ds)(l.rightChecked),onClick:b(p)},{default:j(()=>[N(b(_t),null,{default:j(()=>[N(b(sc))]),_:1}),b(Na)(T.buttonTexts[0])?_e("v-if",!0):(G(),re("span",VUe,We(T.buttonTexts[0]),1))]),_:1},8,["class","disabled","onClick"]),N(b(ct),{type:"primary",class:Y([b(o).e("button"),b(o).is("with-texts",b(S))]),disabled:b(ds)(l.leftChecked),onClick:b(v)},{default:j(()=>[b(Na)(T.buttonTexts[1])?_e("v-if",!0):(G(),re("span",NUe,We(T.buttonTexts[1]),1)),N(b(_t),null,{default:j(()=>[N(b(Li))]),_:1})]),_:1},8,["class","disabled","onClick"])],2),N(E8,{ref_key:"rightPanel",ref:y,data:b(f),"option-render":b(x),placeholder:b(_),filterable:T.filterable,format:T.format,"filter-method":T.filterMethod,title:b(C),"default-checked":T.rightDefaultChecked,props:r.props,onCheckedChange:b(h)},{default:j(()=>[Ge(T.$slots,"right-footer")]),_:3},8,["data","option-render","placeholder","filterable","format","filter-method","title","default-checked","props","onCheckedChange"])],2))}});var $Ue=tt(BUe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/transfer/src/transfer.vue"]]);const PUe=tn($Ue),cg="$treeNodeId",M8=function(t,e){!e||e[cg]||Object.defineProperty(e,cg,{value:t.id,enumerable:!1,configurable:!1,writable:!1})},FV=function(t,e){return t?e[t]:e[cg]},vL=(t,e,n)=>{const r=t.value.currentNode;n();const a=t.value.currentNode;r!==a&&e("current-change",a?a.data:null,a)},gL=t=>{let e=!0,n=!0,r=!0;for(let a=0,i=t.length;a<i;a++){const o=t[a];(o.checked!==!0||o.indeterminate)&&(e=!1,o.disabled||(r=!1)),(o.checked!==!1||o.indeterminate)&&(n=!1)}return{all:e,none:n,allWithoutDisable:r,half:!e&&!n}},c_=function(t){if(t.childNodes.length===0||t.loading)return;const{all:e,none:n,half:r}=gL(t.childNodes);e?(t.checked=!0,t.indeterminate=!1):r?(t.checked=!1,t.indeterminate=!0):n&&(t.checked=!1,t.indeterminate=!1);const a=t.parent;!a||a.level===0||t.store.checkStrictly||c_(a)},XS=function(t,e){const n=t.store.props,r=t.data||{},a=n[e];if(typeof a=="function")return a(r,t);if(typeof a=="string")return r[a];if(typeof a>"u"){const i=r[e];return i===void 0?"":i}};let FUe=0,yL=class f_{constructor(e){this.id=FUe++,this.text=null,this.checked=!1,this.indeterminate=!1,this.data=null,this.expanded=!1,this.parent=null,this.visible=!0,this.isCurrent=!1,this.canFocus=!1;for(const n in e)Sn(e,n)&&(this[n]=e[n]);this.level=0,this.loaded=!1,this.childNodes=[],this.loading=!1,this.parent&&(this.level=this.parent.level+1)}initialize(){const e=this.store;if(!e)throw new Error("[Node]store is required!");e.registerNode(this);const n=e.props;if(n&&typeof n.isLeaf<"u"){const i=XS(this,"isLeaf");typeof i=="boolean"&&(this.isLeafByUser=i)}if(e.lazy!==!0&&this.data?(this.setData(this.data),e.defaultExpandAll&&(this.expanded=!0,this.canFocus=!0)):this.level>0&&e.lazy&&e.defaultExpandAll&&this.expand(),Array.isArray(this.data)||M8(this,this.data),!this.data)return;const r=e.defaultExpandedKeys,a=e.key;a&&r&&r.includes(this.key)&&this.expand(null,e.autoExpandParent),a&&e.currentNodeKey!==void 0&&this.key===e.currentNodeKey&&(e.currentNode=this,e.currentNode.isCurrent=!0),e.lazy&&e._initDefaultCheckedNode(this),this.updateLeafState(),this.parent&&(this.level===1||this.parent.expanded===!0)&&(this.canFocus=!0)}setData(e){Array.isArray(e)||M8(this,e),this.data=e,this.childNodes=[];let n;this.level===0&&Array.isArray(this.data)?n=this.data:n=XS(this,"children")||[];for(let r=0,a=n.length;r<a;r++)this.insertChild({data:n[r]})}get label(){return XS(this,"label")}get key(){const e=this.store.key;return this.data?this.data[e]:null}get disabled(){return XS(this,"disabled")}get nextSibling(){const e=this.parent;if(e){const n=e.childNodes.indexOf(this);if(n>-1)return e.childNodes[n+1]}return null}get previousSibling(){const e=this.parent;if(e){const n=e.childNodes.indexOf(this);if(n>-1)return n>0?e.childNodes[n-1]:null}return null}contains(e,n=!0){return(this.childNodes||[]).some(r=>r===e||n&&r.contains(e))}remove(){const e=this.parent;e&&e.removeChild(this)}insertChild(e,n,r){if(!e)throw new Error("InsertChild error: child is required.");if(!(e instanceof f_)){if(!r){const a=this.getChildren(!0);a.includes(e.data)||(typeof n>"u"||n<0?a.push(e.data):a.splice(n,0,e.data))}Object.assign(e,{parent:this,store:this.store}),e=Vn(new f_(e)),e instanceof f_&&e.initialize()}e.level=this.level+1,typeof n>"u"||n<0?this.childNodes.push(e):this.childNodes.splice(n,0,e),this.updateLeafState()}insertBefore(e,n){let r;n&&(r=this.childNodes.indexOf(n)),this.insertChild(e,r)}insertAfter(e,n){let r;n&&(r=this.childNodes.indexOf(n),r!==-1&&(r+=1)),this.insertChild(e,r)}removeChild(e){const n=this.getChildren()||[],r=n.indexOf(e.data);r>-1&&n.splice(r,1);const a=this.childNodes.indexOf(e);a>-1&&(this.store&&this.store.deregisterNode(e),e.parent=null,this.childNodes.splice(a,1)),this.updateLeafState()}removeChildByData(e){let n=null;for(let r=0;r<this.childNodes.length;r++)if(this.childNodes[r].data===e){n=this.childNodes[r];break}n&&this.removeChild(n)}expand(e,n){const r=()=>{if(n){let a=this.parent;for(;a.level>0;)a.expanded=!0,a=a.parent}this.expanded=!0,e&&e(),this.childNodes.forEach(a=>{a.canFocus=!0})};this.shouldLoadData()?this.loadData(a=>{Array.isArray(a)&&(this.checked?this.setChecked(!0,!0):this.store.checkStrictly||c_(this),r())}):r()}doCreateChildren(e,n={}){e.forEach(r=>{this.insertChild(Object.assign({data:r},n),void 0,!0)})}collapse(){this.expanded=!1,this.childNodes.forEach(e=>{e.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 e=this.childNodes;if(!this.store.lazy||this.store.lazy===!0&&this.loaded===!0){this.isLeaf=!e||e.length===0;return}this.isLeaf=!1}setChecked(e,n,r,a){if(this.indeterminate=e==="half",this.checked=e===!0,this.store.checkStrictly)return;if(!(this.shouldLoadData()&&!this.store.checkDescendants)){const{all:o,allWithoutDisable:s}=gL(this.childNodes);!this.isLeaf&&!o&&s&&(this.checked=!1,e=!1);const l=()=>{if(n){const u=this.childNodes;for(let d=0,h=u.length;d<h;d++){const p=u[d];a=a||e!==!1;const v=p.disabled?p.checked:a;p.setChecked(v,n,!0,a)}const{half:c,all:f}=gL(u);f||(this.checked=f,this.indeterminate=c)}};if(this.shouldLoadData()){this.loadData(()=>{l(),c_(this)},{checked:e!==!1});return}else l()}const i=this.parent;!i||i.level===0||r||c_(i)}getChildren(e=!1){if(this.level===0)return this.data;const n=this.data;if(!n)return null;const r=this.store.props;let a="children";return r&&(a=r.children||"children"),n[a]===void 0&&(n[a]=null),e&&!n[a]&&(n[a]=[]),n[a]}updateChildren(){const e=this.getChildren()||[],n=this.childNodes.map(i=>i.data),r={},a=[];e.forEach((i,o)=>{const s=i[cg];!!s&&n.findIndex(u=>u[cg]===s)>=0?r[s]={index:o,data:i}:a.push({index:o,data:i})}),this.store.lazy||n.forEach(i=>{r[i[cg]]||this.removeChildByData(i)}),a.forEach(({index:i,data:o})=>{this.insertChild({data:o},i)}),this.updateLeafState()}loadData(e,n={}){if(this.store.lazy===!0&&this.store.load&&!this.loaded&&(!this.loading||Object.keys(n).length)){this.loading=!0;const r=a=>{this.childNodes=[],this.doCreateChildren(a,n),this.loaded=!0,this.loading=!1,this.updateLeafState(),e&&e.call(this,a)};this.store.load(this,r)}else e&&e.call(this)}};class zUe{constructor(e){this.currentNode=null,this.currentNodeKey=null;for(const n in e)Sn(e,n)&&(this[n]=e[n]);this.nodesMap={}}initialize(){if(this.root=new yL({data:this.data,store:this}),this.root.initialize(),this.lazy&&this.load){const e=this.load;e(this.root,n=>{this.root.doCreateChildren(n),this._initDefaultCheckedNodes()})}else this._initDefaultCheckedNodes()}filter(e){const n=this.filterNodeMethod,r=this.lazy,a=function(i){const o=i.root?i.root.childNodes:i.childNodes;if(o.forEach(s=>{s.visible=n.call(s,e,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}e&&i.visible&&!i.isLeaf&&!r&&i.expand()};a(this)}setData(e){e!==this.root.data?(this.root.setData(e),this._initDefaultCheckedNodes()):this.root.updateChildren()}getNode(e){if(e instanceof yL)return e;const n=un(e)?FV(this.key,e):e;return this.nodesMap[n]||null}insertBefore(e,n){const r=this.getNode(n);r.parent.insertBefore({data:e},r)}insertAfter(e,n){const r=this.getNode(n);r.parent.insertAfter({data:e},r)}remove(e){const n=this.getNode(e);n&&n.parent&&(n===this.currentNode&&(this.currentNode=null),n.parent.removeChild(n))}append(e,n){const r=n?this.getNode(n):this.root;r&&r.insertChild({data:e})}_initDefaultCheckedNodes(){const e=this.defaultCheckedKeys||[],n=this.nodesMap;e.forEach(r=>{const a=n[r];a&&a.setChecked(!0,!this.checkStrictly)})}_initDefaultCheckedNode(e){(this.defaultCheckedKeys||[]).includes(e.key)&&e.setChecked(!0,!this.checkStrictly)}setDefaultCheckedKey(e){e!==this.defaultCheckedKeys&&(this.defaultCheckedKeys=e,this._initDefaultCheckedNodes())}registerNode(e){const n=this.key;!e||!e.data||(n?e.key!==void 0&&(this.nodesMap[e.key]=e):this.nodesMap[e.id]=e)}deregisterNode(e){!this.key||!e||!e.data||(e.childNodes.forEach(r=>{this.deregisterNode(r)}),delete this.nodesMap[e.key])}getCheckedNodes(e=!1,n=!1){const r=[],a=function(i){(i.root?i.root.childNodes:i.childNodes).forEach(s=>{(s.checked||n&&s.indeterminate)&&(!e||e&&s.isLeaf)&&r.push(s.data),a(s)})};return a(this),r}getCheckedKeys(e=!1){return this.getCheckedNodes(e).map(n=>(n||{})[this.key])}getHalfCheckedNodes(){const e=[],n=function(r){(r.root?r.root.childNodes:r.childNodes).forEach(i=>{i.indeterminate&&e.push(i.data),n(i)})};return n(this),e}getHalfCheckedKeys(){return this.getHalfCheckedNodes().map(e=>(e||{})[this.key])}_getAllNodes(){const e=[],n=this.nodesMap;for(const r in n)Sn(n,r)&&e.push(n[r]);return e}updateChildren(e,n){const r=this.nodesMap[e];if(!r)return;const a=r.childNodes;for(let i=a.length-1;i>=0;i--){const o=a[i];this.remove(o.data)}for(let i=0,o=n.length;i<o;i++){const s=n[i];this.append(s,r.data)}}_setCheckedKeys(e,n=!1,r){const a=this._getAllNodes().sort((s,l)=>l.level-s.level),i=Object.create(null),o=Object.keys(r);a.forEach(s=>s.setChecked(!1,!1));for(let s=0,l=a.length;s<l;s++){const u=a[s],c=u.data[e].toString();if(!o.includes(c)){u.checked&&!i[c]&&u.setChecked(!1,!1);continue}let d=u.parent;for(;d&&d.level>0;)i[d.data[e]]=!0,d=d.parent;if(u.isLeaf||this.checkStrictly){u.setChecked(!0,!1);continue}if(u.setChecked(!0,!0),n){u.setChecked(!1,!1);const h=function(p){p.childNodes.forEach(g=>{g.isLeaf||g.setChecked(!1,!1),h(g)})};h(u)}}}setCheckedNodes(e,n=!1){const r=this.key,a={};e.forEach(i=>{a[(i||{})[r]]=!0}),this._setCheckedKeys(r,n,a)}setCheckedKeys(e,n=!1){this.defaultCheckedKeys=e;const r=this.key,a={};e.forEach(i=>{a[i]=!0}),this._setCheckedKeys(r,n,a)}setDefaultExpandedKeys(e){e=e||[],this.defaultExpandedKeys=e,e.forEach(n=>{const r=this.getNode(n);r&&r.expand(null,this.autoExpandParent)})}setChecked(e,n,r){const a=this.getNode(e);a&&a.setChecked(!!n,r)}getCurrentNode(){return this.currentNode}setCurrentNode(e){const n=this.currentNode;n&&(n.isCurrent=!1),this.currentNode=e,this.currentNode.isCurrent=!0}setUserCurrentNode(e,n=!0){const r=e[this.key],a=this.nodesMap[r];this.setCurrentNode(a),n&&this.currentNode.level>1&&this.currentNode.parent.expand(null,!0)}setCurrentNodeKey(e,n=!0){if(e==null){this.currentNode&&(this.currentNode.isCurrent=!1),this.currentNode=null;return}const r=this.getNode(e);r&&(this.setCurrentNode(r),n&&this.currentNode.level>1&&this.currentNode.parent.expand(null,!0))}}const UUe=ye({name:"ElTreeNodeContent",props:{node:{type:Object,required:!0},renderContent:Function},setup(t){const e=Ye("tree"),n=yt("NodeInstance"),r=yt("RootTree");return()=>{const a=t.node,{data:i,store:o}=a;return t.renderContent?t.renderContent(At,{_self:n,node:a,data:i,store:o}):r.ctx.slots.default?r.ctx.slots.default({node:a,data:i}):At("span",{class:e.be("node","label")},[a.label])}}});var GUe=tt(UUe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree/src/tree-node-content.vue"]]);function GQ(t){const e=yt("TreeNodeMap",null),n={treeNodeExpand:r=>{t.node!==r&&t.node.collapse()},children:[]};return e&&e.children.push(n),fn("TreeNodeMap",n),{broadcastExpanded:r=>{if(t.accordion)for(const a of n.children)a.treeNodeExpand(r)}}}const HQ=Symbol("dragEvents");function HUe({props:t,ctx:e,el$:n,dropIndicator$:r,store:a}){const i=Ye("tree"),o=B({showDropIndicator:!1,draggingNode:null,dropNode:null,allowDrop:!0,dropType:null});return fn(HQ,{treeNodeDragStart:({event:c,treeNode:f})=>{if(typeof t.allowDrag=="function"&&!t.allowDrag(f.node))return c.preventDefault(),!1;c.dataTransfer.effectAllowed="move";try{c.dataTransfer.setData("text/plain","")}catch{}o.value.draggingNode=f,e.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&&Eo(h.$el,i.is("drop-inner"));const p=o.value.draggingNode;if(!p||!d)return;let v=!0,g=!0,y=!0,m=!0;typeof t.allowDrop=="function"&&(v=t.allowDrop(p.node,d.node,"prev"),m=g=t.allowDrop(p.node,d.node,"inner"),y=t.allowDrop(p.node,d.node,"next")),c.dataTransfer.dropEffect=g||v||y?"move":"none",(v||g||y)&&(h==null?void 0:h.node.id)!==d.node.id&&(h&&e.emit("node-drag-leave",p.node,h.node,c),e.emit("node-drag-enter",p.node,d.node,c)),(v||g||y)&&(o.value.dropNode=d),d.node.nextSibling===p.node&&(y=!1),d.node.previousSibling===p.node&&(v=!1),d.node.contains(p.node,!1)&&(g=!1),(p.node===d.node||p.node.contains(d.node))&&(v=!1,g=!1,y=!1);const S=d.$el.querySelector(`.${i.be("node","content")}`).getBoundingClientRect(),w=n.value.getBoundingClientRect();let C;const _=v?g?.25:y?.45:1:-1,x=y?g?.75:v?.55:0:1;let T=-9999;const M=c.clientY-S.top;M<S.height*_?C="before":M>S.height*x?C="after":g?C="inner":C="none";const E=d.$el.querySelector(`.${i.be("node","expand-icon")}`).getBoundingClientRect(),A=r.value;C==="before"?T=E.top-w.top:C==="after"&&(T=E.bottom-w.top),A.style.top=`${T}px`,A.style.left=`${E.right-w.left}px`,C==="inner"?Ql(d.$el,i.is("drop-inner")):Eo(d.$el,i.is("drop-inner")),o.value.showDropIndicator=C==="before"||C==="after",o.value.allowDrop=o.value.showDropIndicator||m,o.value.dropType=C,e.emit("node-drag-over",p.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 p={data:f.node.data};d!=="none"&&f.node.remove(),d==="before"?h.node.parent.insertBefore(p,h.node):d==="after"?h.node.parent.insertAfter(p,h.node):d==="inner"&&h.node.insertChild(p),d!=="none"&&a.value.registerNode(p),Eo(h.$el,i.is("drop-inner")),e.emit("node-drag-end",f.node,h.node,d,c),d!=="none"&&e.emit("node-drop",f.node,h.node,d,c)}f&&!h&&e.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 WUe=ye({name:"ElTreeNode",components:{ElCollapseTransition:LT,ElCheckbox:Ms,NodeContent:GUe,ElIcon:_t,Loading:id},props:{node:{type:yL,default:()=>({})},props:{type:Object,default:()=>({})},accordion:Boolean,renderContent:Function,renderAfterExpand:Boolean,showCheckbox:{type:Boolean,default:!1}},emits:["node-expand"],setup(t,e){const n=Ye("tree"),{broadcastExpanded:r}=GQ(t),a=yt("RootTree"),i=B(!1),o=B(!1),s=B(null),l=B(null),u=B(null),c=yt(HQ),f=Qt();fn("NodeInstance",f),t.node.expanded&&(i.value=!0,o.value=!0);const d=a.props.props.children||"children";Ke(()=>{const M=t.node.data[d];return M&&[...M]},()=>{t.node.updateChildren()}),Ke(()=>t.node.indeterminate,M=>{v(t.node.checked,M)}),Ke(()=>t.node.checked,M=>{v(M,t.node.indeterminate)}),Ke(()=>t.node.expanded,M=>{xt(()=>i.value=M),M&&(o.value=!0)});const h=M=>FV(a.props.nodeKey,M.data),p=M=>{const E=t.props.class;if(!E)return{};let A;if(zt(E)){const{data:k}=M;A=E(k,M)}else A=E;return Ht(A)?{[A]:!0}:A},v=(M,E)=>{(s.value!==M||l.value!==E)&&a.ctx.emit("check-change",t.node.data,M,E),s.value=M,l.value=E},g=M=>{vL(a.store,a.ctx.emit,()=>a.store.value.setCurrentNode(t.node)),a.currentNode.value=t.node,a.props.expandOnClickNode&&m(),a.props.checkOnClickNode&&!t.node.disabled&&S(null,{target:{checked:!t.node.checked}}),a.ctx.emit("node-click",t.node.data,t.node,f,M)},y=M=>{a.instance.vnode.props.onNodeContextmenu&&(M.stopPropagation(),M.preventDefault()),a.ctx.emit("node-contextmenu",M,t.node.data,t.node,f)},m=()=>{t.node.isLeaf||(i.value?(a.ctx.emit("node-collapse",t.node.data,t.node,f),t.node.collapse()):(t.node.expand(),e.emit("node-expand",t.node.data,t.node,f)))},S=(M,E)=>{t.node.setChecked(E.target.checked,!a.props.checkStrictly),xt(()=>{const A=a.store.value;a.ctx.emit("check",t.node.data,{checkedNodes:A.getCheckedNodes(),checkedKeys:A.getCheckedKeys(),halfCheckedNodes:A.getHalfCheckedNodes(),halfCheckedKeys:A.getHalfCheckedKeys()})})};return{ns:n,node$:u,tree:a,expanded:i,childNodeRendered:o,oldChecked:s,oldIndeterminate:l,getNodeKey:h,getNodeClass:p,handleSelectChange:v,handleClick:g,handleContextMenu:y,handleExpandIconClick:m,handleCheckChange:S,handleChildNodeExpand:(M,E,A)=>{r(E),a.ctx.emit("node-expand",M,E,A)},handleDragStart:M=>{a.props.draggable&&c.treeNodeDragStart({event:M,treeNode:t})},handleDragOver:M=>{M.preventDefault(),a.props.draggable&&c.treeNodeDragOver({event:M,treeNode:{$el:u.value,node:t.node}})},handleDrop:M=>{M.preventDefault()},handleDragEnd:M=>{a.props.draggable&&c.treeNodeDragEnd(M)},CaretRight:iX}}}),jUe=["aria-expanded","aria-disabled","aria-checked","draggable","data-key"],KUe=["aria-expanded"];function YUe(t,e,n,r,a,i){const o=$e("el-icon"),s=$e("el-checkbox"),l=$e("loading"),u=$e("node-content"),c=$e("el-tree-node"),f=$e("el-collapse-transition");return Ft((G(),re("div",{ref:"node$",class:Y([t.ns.b("node"),t.ns.is("expanded",t.expanded),t.ns.is("current",t.node.isCurrent),t.ns.is("hidden",!t.node.visible),t.ns.is("focusable",!t.node.disabled),t.ns.is("checked",!t.node.disabled&&t.node.checked),t.getNodeClass(t.node)]),role:"treeitem",tabindex:"-1","aria-expanded":t.expanded,"aria-disabled":t.node.disabled,"aria-checked":t.node.checked,draggable:t.tree.props.draggable,"data-key":t.getNodeKey(t.node),onClick:e[1]||(e[1]=It((...d)=>t.handleClick&&t.handleClick(...d),["stop"])),onContextmenu:e[2]||(e[2]=(...d)=>t.handleContextMenu&&t.handleContextMenu(...d)),onDragstart:e[3]||(e[3]=It((...d)=>t.handleDragStart&&t.handleDragStart(...d),["stop"])),onDragover:e[4]||(e[4]=It((...d)=>t.handleDragOver&&t.handleDragOver(...d),["stop"])),onDragend:e[5]||(e[5]=It((...d)=>t.handleDragEnd&&t.handleDragEnd(...d),["stop"])),onDrop:e[6]||(e[6]=It((...d)=>t.handleDrop&&t.handleDrop(...d),["stop"]))},[R("div",{class:Y(t.ns.be("node","content")),style:Et({paddingLeft:(t.node.level-1)*t.tree.props.indent+"px"})},[t.tree.props.icon||t.CaretRight?(G(),Ee(o,{key:0,class:Y([t.ns.be("node","expand-icon"),t.ns.is("leaf",t.node.isLeaf),{expanded:!t.node.isLeaf&&t.expanded}]),onClick:It(t.handleExpandIconClick,["stop"])},{default:j(()=>[(G(),Ee(on(t.tree.props.icon||t.CaretRight)))]),_:1},8,["class","onClick"])):_e("v-if",!0),t.showCheckbox?(G(),Ee(s,{key:1,"model-value":t.node.checked,indeterminate:t.node.indeterminate,disabled:!!t.node.disabled,onClick:e[0]||(e[0]=It(()=>{},["stop"])),onChange:t.handleCheckChange},null,8,["model-value","indeterminate","disabled","onChange"])):_e("v-if",!0),t.node.loading?(G(),Ee(o,{key:2,class:Y([t.ns.be("node","loading-icon"),t.ns.is("loading")])},{default:j(()=>[N(l)]),_:1},8,["class"])):_e("v-if",!0),N(u,{node:t.node,"render-content":t.renderContent},null,8,["node","render-content"])],6),N(f,null,{default:j(()=>[!t.renderAfterExpand||t.childNodeRendered?Ft((G(),re("div",{key:0,class:Y(t.ns.be("node","children")),role:"group","aria-expanded":t.expanded},[(G(!0),re(Ct,null,dn(t.node.childNodes,d=>(G(),Ee(c,{key:t.getNodeKey(d),"render-content":t.renderContent,"render-after-expand":t.renderAfterExpand,"show-checkbox":t.showCheckbox,node:d,accordion:t.accordion,props:t.props,onNodeExpand:t.handleChildNodeExpand},null,8,["render-content","render-after-expand","show-checkbox","node","accordion","props","onNodeExpand"]))),128))],10,KUe)),[[cn,t.expanded]]):_e("v-if",!0)]),_:1})],42,jUe)),[[cn,t.node.visible]])}var XUe=tt(WUe,[["render",YUe],["__file","/home/runner/work/element-plus/element-plus/packages/components/tree/src/tree-node.vue"]]);function qUe({el$:t},e){const n=Ye("tree"),r=vr([]),a=vr([]);Ut(()=>{o()}),bc(()=>{r.value=Array.from(t.value.querySelectorAll("[role=treeitem]")),a.value=Array.from(t.value.querySelectorAll("input[type=checkbox]"))}),Ke(a,s=>{s.forEach(l=>{l.setAttribute("tabindex","-1")})}),Or(t,"keydown",s=>{const l=s.target;if(!l.className.includes(n.b("node")))return;const u=s.code;r.value=Array.from(t.value.querySelectorAll(`.${n.is("focusable")}[role=treeitem]`));const c=r.value.indexOf(l);let f;if([Dt.up,Dt.down].includes(u)){if(s.preventDefault(),u===Dt.up){f=c===-1?0:c!==0?c-1:r.value.length-1;const h=f;for(;!e.value.getNode(r.value[f].dataset.key).canFocus;){if(f--,f===h){f=-1;break}f<0&&(f=r.value.length-1)}}else{f=c===-1?0:c<r.value.length-1?c+1:0;const h=f;for(;!e.value.getNode(r.value[f].dataset.key).canFocus;){if(f++,f===h){f=-1;break}f>=r.value.length&&(f=0)}}f!==-1&&r.value[f].focus()}[Dt.left,Dt.right].includes(u)&&(s.preventDefault(),l.click());const d=l.querySelector('[type="checkbox"]');[Dt.enter,Dt.space].includes(u)&&d&&(s.preventDefault(),d.click())});const o=()=>{var s;r.value=Array.from(t.value.querySelectorAll(`.${n.is("focusable")}[role=treeitem]`)),a.value=Array.from(t.value.querySelectorAll("input[type=checkbox]"));const l=t.value.querySelectorAll(`.${n.is("checked")}[role=treeitem]`);if(l.length){l[0].setAttribute("tabindex","0");return}(s=r.value[0])==null||s.setAttribute("tabindex","0")}}const ZUe=ye({name:"ElTree",components:{ElTreeNode:XUe},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:gr}},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(t,e){const{t:n}=En(),r=Ye("tree"),a=B(new zUe({key:t.nodeKey,data:t.data,lazy:t.lazy,props:t.props,load:t.load,currentNodeKey:t.currentNodeKey,checkStrictly:t.checkStrictly,checkDescendants:t.checkDescendants,defaultCheckedKeys:t.defaultCheckedKeys,defaultExpandedKeys:t.defaultExpandedKeys,autoExpandParent:t.autoExpandParent,defaultExpandAll:t.defaultExpandAll,filterNodeMethod:t.filterNodeMethod}));a.value.initialize();const i=B(a.value.root),o=B(null),s=B(null),l=B(null),{broadcastExpanded:u}=GQ(t),{dragState:c}=HUe({props:t,ctx:e,el$:s,dropIndicator$:l,store:a});qUe({el$:s},a);const f=U(()=>{const{childNodes:$}=i.value;return!$||$.length===0||$.every(({visible:W})=>!W)});Ke(()=>t.currentNodeKey,$=>{a.value.setCurrentNodeKey($)}),Ke(()=>t.defaultCheckedKeys,$=>{a.value.setDefaultCheckedKey($)}),Ke(()=>t.defaultExpandedKeys,$=>{a.value.setDefaultExpandedKeys($)}),Ke(()=>t.data,$=>{a.value.setData($)},{deep:!0}),Ke(()=>t.checkStrictly,$=>{a.value.checkStrictly=$});const d=$=>{if(!t.filterNodeMethod)throw new Error("[Tree] filterNodeMethod is required when filter");a.value.filter($)},h=$=>FV(t.nodeKey,$.data),p=$=>{if(!t.nodeKey)throw new Error("[Tree] nodeKey is required in getNodePath");const W=a.value.getNode($);if(!W)return[];const V=[W.data];let z=W.parent;for(;z&&z!==i.value;)V.push(z.data),z=z.parent;return V.reverse()},v=($,W)=>a.value.getCheckedNodes($,W),g=$=>a.value.getCheckedKeys($),y=()=>{const $=a.value.getCurrentNode();return $?$.data:null},m=()=>{if(!t.nodeKey)throw new Error("[Tree] nodeKey is required in getCurrentKey");const $=y();return $?$[t.nodeKey]:null},S=($,W)=>{if(!t.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedNodes");a.value.setCheckedNodes($,W)},w=($,W)=>{if(!t.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedKeys");a.value.setCheckedKeys($,W)},C=($,W,V)=>{a.value.setChecked($,W,V)},_=()=>a.value.getHalfCheckedNodes(),x=()=>a.value.getHalfCheckedKeys(),T=($,W=!0)=>{if(!t.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentNode");vL(a,e.emit,()=>a.value.setUserCurrentNode($,W))},M=($,W=!0)=>{if(!t.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentKey");vL(a,e.emit,()=>a.value.setCurrentNodeKey($,W))},E=$=>a.value.getNode($),A=$=>{a.value.remove($)},k=($,W)=>{a.value.append($,W)},L=($,W)=>{a.value.insertBefore($,W)},I=($,W)=>{a.value.insertAfter($,W)},P=($,W,V)=>{u(W),e.emit("node-expand",$,W,V)},F=($,W)=>{if(!t.nodeKey)throw new Error("[Tree] nodeKey is required in updateKeyChild");a.value.updateChildren($,W)};return fn("RootTree",{ctx:e,props:t,store:a,root:i,currentNode:o,instance:Qt()}),fn(pu,void 0),{ns:r,store:a,root:i,currentNode:o,dragState:c,el$:s,dropIndicator$:l,isEmpty:f,filter:d,getNodeKey:h,getNodePath:p,getCheckedNodes:v,getCheckedKeys:g,getCurrentNode:y,getCurrentKey:m,setCheckedNodes:S,setCheckedKeys:w,setChecked:C,getHalfCheckedNodes:_,getHalfCheckedKeys:x,setCurrentNode:T,setCurrentKey:M,t:n,getNode:E,remove:A,append:k,insertBefore:L,insertAfter:I,handleNodeExpand:P,updateKeyChildren:F}}});function QUe(t,e,n,r,a,i){const o=$e("el-tree-node");return G(),re("div",{ref:"el$",class:Y([t.ns.b(),t.ns.is("dragging",!!t.dragState.draggingNode),t.ns.is("drop-not-allow",!t.dragState.allowDrop),t.ns.is("drop-inner",t.dragState.dropType==="inner"),{[t.ns.m("highlight-current")]:t.highlightCurrent}]),role:"tree"},[(G(!0),re(Ct,null,dn(t.root.childNodes,s=>(G(),Ee(o,{key:t.getNodeKey(s),node:s,props:t.props,accordion:t.accordion,"render-after-expand":t.renderAfterExpand,"show-checkbox":t.showCheckbox,"render-content":t.renderContent,onNodeExpand:t.handleNodeExpand},null,8,["node","props","accordion","render-after-expand","show-checkbox","render-content","onNodeExpand"]))),128)),t.isEmpty?(G(),re("div",{key:0,class:Y(t.ns.e("empty-block"))},[Ge(t.$slots,"empty",{},()=>{var s;return[R("span",{class:Y(t.ns.e("empty-text"))},We((s=t.emptyText)!=null?s:t.t("el.tree.emptyText")),3)]})],2)):_e("v-if",!0),Ft(R("div",{ref:"dropIndicator$",class:Y(t.ns.e("drop-indicator"))},null,2),[[cn,t.dragState.showDropIndicator]])],2)}var d_=tt(ZUe,[["render",QUe],["__file","/home/runner/work/element-plus/element-plus/packages/components/tree/src/tree.vue"]]);d_.install=t=>{t.component(d_.name,d_)};const S2=d_,JUe=S2,eGe=(t,{attrs:e},{tree:n,key:r})=>{const a=Ye("tree-select"),i={...ju(Wa(t),Object.keys(jf.props)),...e,valueKey:r,popperClass:U(()=>{const o=[a.e("popper")];return t.popperClass&&o.push(t.popperClass),o.join(" ")}),filterMethod:(o="")=>{t.filterMethod&&t.filterMethod(o),xt(()=>{var s;(s=n.value)==null||s.filter(o)})},onVisibleChange:o=>{var s;(s=e.onVisibleChange)==null||s.call(e,o),t.filterable&&o&&i.filterMethod()}};return i},tGe=ye({extends:d2,setup(t,e){const n=d2.setup(t,e);delete n.selectOptionClick;const r=Qt().proxy;return xt(()=>{n.select.cachedOptions.get(r.value)||n.select.onOptionCreate(r)}),n},methods:{selectOptionClick(){this.$el.parentElement.click()}}});function mL(t){return t||t===0}function zV(t){return Array.isArray(t)&&t.length}function fy(t){return Array.isArray(t)?t:mL(t)?[t]:[]}function h_(t,e,n,r,a){for(let i=0;i<t.length;i++){const o=t[i];if(e(o,i,t,a))return r?r(o,i,t,a):o;{const s=n(o);if(zV(s)){const l=h_(s,e,n,r,o);if(l)return l}}}}function WQ(t,e,n,r){for(let a=0;a<t.length;a++){const i=t[a];e(i,a,t,r);const o=n(i);zV(o)&&WQ(o,e,n,i)}}const nGe=(t,{attrs:e,slots:n,emit:r},{select:a,tree:i,key:o})=>{Ke(()=>t.modelValue,()=>{t.showCheckbox&&xt(()=>{const d=i.value;d&&!To(d.getCheckedKeys(),fy(t.modelValue))&&d.setCheckedKeys(fy(t.modelValue))})},{immediate:!0,deep:!0});const s=U(()=>({value:o.value,label:"label",children:"children",disabled:"disabled",isLeaf:"isLeaf",...t.props})),l=(d,h)=>{var p;const v=s.value[d];return zt(v)?v(h,(p=i.value)==null?void 0:p.getNode(l("value",h))):h[v]},u=fy(t.modelValue).map(d=>h_(t.data||[],h=>l("value",h)===d,h=>l("children",h),(h,p,v,g)=>g&&l("value",g))).filter(d=>mL(d)),c=U(()=>{if(!t.renderAfterExpand&&!t.lazy)return[];const d=[];return WQ(t.data.concat(t.cacheData),h=>{const p=l("value",h);d.push({value:p,currentLabel:l("label",h),isDisabled:l("disabled",h)})},h=>l("children",h)),d}),f=U(()=>c.value.reduce((d,h)=>({...d,[h.value]:h}),{}));return{...ju(Wa(t),Object.keys(S2.props)),...e,nodeKey:o,expandOnClickNode:U(()=>!t.checkStrictly&&t.expandOnClickNode),defaultExpandedKeys:U(()=>t.defaultExpandedKeys?t.defaultExpandedKeys.concat(u):u),renderContent:(d,{node:h,data:p,store:v})=>d(tGe,{value:l("value",p),label:l("label",p),disabled:l("disabled",p)},t.renderContent?()=>t.renderContent(d,{node:h,data:p,store:v}):n.default?()=>n.default({node:h,data:p,store:v}):void 0),filterNodeMethod:(d,h,p)=>{var v;return t.filterNodeMethod?t.filterNodeMethod(d,h,p):d?(v=l("label",h))==null?void 0:v.includes(d):!0},onNodeClick:(d,h,p)=>{var v,g,y;if((v=e.onNodeClick)==null||v.call(e,d,h,p),!(t.showCheckbox&&t.checkOnClickNode))if(!t.showCheckbox&&(t.checkStrictly||h.isLeaf)){if(!l("disabled",d)){const m=(g=a.value)==null?void 0:g.options.get(l("value",d));(y=a.value)==null||y.handleOptionSelect(m)}}else t.expandOnClickNode&&p.proxy.handleExpandIconClick()},onCheck:(d,h)=>{if(!t.showCheckbox)return;const p=l("value",d),v=h.checkedKeys,g=t.multiple?fy(t.modelValue).filter(m=>m in f.value&&!i.value.getNode(m)&&!v.includes(m)):[],y=v.concat(g);if(t.checkStrictly)r(nn,t.multiple?y:y.includes(p)?p:void 0);else if(t.multiple)r(nn,i.value.getCheckedKeys(!0));else{const m=h_([d],C=>!zV(l("children",C))&&!l("disabled",C),C=>l("children",C)),S=m?l("value",m):void 0,w=mL(t.modelValue)&&!!h_([d],C=>l("value",C)===t.modelValue,C=>l("children",C));r(nn,S===t.modelValue||w?void 0:S)}xt(()=>{var m;const S=fy(t.modelValue);i.value.setCheckedKeys(S),(m=e.onCheck)==null||m.call(e,d,{checkedKeys:i.value.getCheckedKeys(),checkedNodes:i.value.getCheckedNodes(),halfCheckedKeys:i.value.getHalfCheckedKeys(),halfCheckedNodes:i.value.getHalfCheckedNodes()})})},cacheOptions:c}};var rGe=ye({props:{data:{type:Array,default:()=>[]}},setup(t){const e=yt(Ib);return Ke(()=>t.data,()=>{var n;t.data.forEach(a=>{e.cachedOptions.has(a.value)||e.cachedOptions.set(a.value,a)});const r=((n=e.selectWrapper)==null?void 0:n.querySelectorAll("input"))||[];Array.from(r).includes(document.activeElement)||e.setSelected()},{flush:"post",immediate:!0}),()=>{}}});const aGe=ye({name:"ElTreeSelect",inheritAttrs:!1,props:{...jf.props,...S2.props,cacheData:{type:Array,default:()=>[]}},setup(t,e){const{slots:n,expose:r}=e,a=B(),i=B(),o=U(()=>t.nodeKey||t.valueKey||"value"),s=eGe(t,e,{select:a,tree:i,key:o}),{cacheOptions:l,...u}=nGe(t,e,{select:a,tree:i,key:o}),c=Vn({});return r(c),Ut(()=>{Object.assign(c,{...ju(i.value,["filter","updateKeyChildren","getCheckedNodes","setCheckedNodes","getCheckedKeys","setCheckedKeys","setChecked","getHalfCheckedNodes","getHalfCheckedKeys","getCurrentKey","getCurrentNode","setCurrentKey","setCurrentNode","getNode","remove","append","insertBefore","insertAfter"]),...ju(a.value,["focus","blur"])})}),()=>At(jf,Vn({...s,ref:f=>a.value=f}),{...n,default:()=>[At(rGe,{data:l.value}),At(S2,Vn({...u,ref:f=>i.value=f}))]})}});var p_=tt(aGe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree-select/src/tree-select.vue"]]);p_.install=t=>{t.component(p_.name,p_)};const iGe=p_,oGe=iGe,UV=Symbol(),sGe={key:-1,level:-1,data:{}};var Yy=(t=>(t.KEY="id",t.LABEL="label",t.CHILDREN="children",t.DISABLED="disabled",t))(Yy||{}),bL=(t=>(t.ADD="add",t.DELETE="delete",t))(bL||{});const jQ={type:Number,default:26},lGe=nt({data:{type:ke(Array),default:()=>zr([])},emptyText:{type:String},height:{type:Number,default:200},props:{type:ke(Object),default:()=>zr({children:"children",label:"label",disabled:"disabled",value:"id"})},highlightCurrent:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},defaultCheckedKeys:{type:ke(Array),default:()=>zr([])},checkStrictly:{type:Boolean,default:!1},defaultExpandedKeys:{type:ke(Array),default:()=>zr([])},indent:{type:Number,default:16},itemSize:jQ,icon:{type:gr},expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:{type:Boolean,default:!1},currentNodeKey:{type:ke([String,Number])},accordion:{type:Boolean,default:!1},filterMethod:{type:ke(Function)},perfMode:{type:Boolean,default:!0}}),uGe=nt({node:{type:ke(Object),default:()=>zr(sGe)},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:jQ}),cGe=nt({node:{type:ke(Object),required:!0}}),KQ="node-click",YQ="node-expand",XQ="node-collapse",qQ="current-change",ZQ="check",QQ="check-change",JQ="node-contextmenu",fGe={[KQ]:(t,e,n)=>t&&e&&n,[YQ]:(t,e)=>t&&e,[XQ]:(t,e)=>t&&e,[qQ]:(t,e)=>t&&e,[ZQ]:(t,e)=>t&&e,[QQ]:(t,e)=>t&&typeof e=="boolean",[JQ]:(t,e,n)=>t&&e&&n},dGe={click:(t,e)=>!!(t&&e),toggle:t=>!!t,check:(t,e)=>t&&typeof e=="boolean"};function hGe(t,e){const n=B(new Set),r=B(new Set),{emit:a}=Qt();Ke([()=>e.value,()=>t.defaultCheckedKeys],()=>xt(()=>{m(t.defaultCheckedKeys)}),{immediate:!0});const i=()=>{if(!e.value||!t.showCheckbox||t.checkStrictly)return;const{levelTreeNodeMap:S,maxLevel:w}=e.value,C=n.value,_=new Set;for(let x=w-1;x>=1;--x){const T=S.get(x);T&&T.forEach(M=>{const E=M.children;if(E){let A=!0,k=!1;for(const L of E){const I=L.key;if(C.has(I))k=!0;else if(_.has(I)){A=!1,k=!0;break}else A=!1}A?C.add(M.key):k?(_.add(M.key),C.delete(M.key)):(C.delete(M.key),_.delete(M.key))}})}r.value=_},o=S=>n.value.has(S.key),s=S=>r.value.has(S.key),l=(S,w,C=!0)=>{const _=n.value,x=(T,M)=>{_[M?bL.ADD:bL.DELETE](T.key);const E=T.children;!t.checkStrictly&&E&&E.forEach(A=>{A.disabled||x(A,M)})};x(S,w),i(),C&&u(S,w)},u=(S,w)=>{const{checkedNodes:C,checkedKeys:_}=p(),{halfCheckedNodes:x,halfCheckedKeys:T}=v();a(ZQ,S.data,{checkedKeys:_,checkedNodes:C,halfCheckedKeys:T,halfCheckedNodes:x}),a(QQ,S.data,w)};function c(S=!1){return p(S).checkedKeys}function f(S=!1){return p(S).checkedNodes}function d(){return v().halfCheckedKeys}function h(){return v().halfCheckedNodes}function p(S=!1){const w=[],C=[];if(e!=null&&e.value&&t.showCheckbox){const{treeNodeMap:_}=e.value;n.value.forEach(x=>{const T=_.get(x);T&&(!S||S&&T.isLeaf)&&(C.push(x),w.push(T.data))})}return{checkedKeys:C,checkedNodes:w}}function v(){const S=[],w=[];if(e!=null&&e.value&&t.showCheckbox){const{treeNodeMap:C}=e.value;r.value.forEach(_=>{const x=C.get(_);x&&(w.push(_),S.push(x.data))})}return{halfCheckedNodes:S,halfCheckedKeys:w}}function g(S){n.value.clear(),r.value.clear(),m(S)}function y(S,w){if(e!=null&&e.value&&t.showCheckbox){const C=e.value.treeNodeMap.get(S);C&&l(C,w,!1)}}function m(S){if(e!=null&&e.value){const{treeNodeMap:w}=e.value;if(t.showCheckbox&&w&&S)for(const C of S){const _=w.get(C);_&&!o(_)&&l(_,!0,!1)}}}return{updateCheckedKeys:i,toggleCheckbox:l,isChecked:o,isIndeterminate:s,getCheckedKeys:c,getCheckedNodes:f,getHalfCheckedKeys:d,getHalfCheckedNodes:h,setChecked:y,setCheckedKeys:g}}function pGe(t,e){const n=B(new Set([])),r=B(new Set([])),a=U(()=>zt(t.filterMethod));function i(s){var l;if(!a.value)return;const u=new Set,c=r.value,f=n.value,d=[],h=((l=e.value)==null?void 0:l.treeNodes)||[],p=t.filterMethod;f.clear();function v(g){g.forEach(y=>{d.push(y),p!=null&&p(s,y.data)?d.forEach(S=>{u.add(S.key)}):y.isLeaf&&f.add(y.key);const m=y.children;if(m&&v(m),!y.isLeaf){if(!u.has(y.key))f.add(y.key);else if(m){let S=!0;for(const w of m)if(!f.has(w.key)){S=!1;break}S?c.add(y.key):c.delete(y.key)}}d.pop()})}return v(h),u}function o(s){return r.value.has(s.key)}return{hiddenExpandIconKeySet:r,hiddenNodeKeySet:n,doFilter:i,isForceHiddenExpandIcon:o}}function vGe(t,e){const n=B(new Set(t.defaultExpandedKeys)),r=B(),a=vr();Ke(()=>t.currentNodeKey,se=>{r.value=se},{immediate:!0}),Ke(()=>t.data,se=>{Q(se)},{immediate:!0});const{isIndeterminate:i,isChecked:o,toggleCheckbox:s,getCheckedKeys:l,getCheckedNodes:u,getHalfCheckedKeys:c,getHalfCheckedNodes:f,setChecked:d,setCheckedKeys:h}=hGe(t,a),{doFilter:p,hiddenNodeKeySet:v,isForceHiddenExpandIcon:g}=pGe(t,a),y=U(()=>{var se;return((se=t.props)==null?void 0:se.value)||Yy.KEY}),m=U(()=>{var se;return((se=t.props)==null?void 0:se.children)||Yy.CHILDREN}),S=U(()=>{var se;return((se=t.props)==null?void 0:se.disabled)||Yy.DISABLED}),w=U(()=>{var se;return((se=t.props)==null?void 0:se.label)||Yy.LABEL}),C=U(()=>{const se=n.value,me=v.value,ve=[],he=a.value&&a.value.treeNodes||[];function ee(){const ue=[];for(let fe=he.length-1;fe>=0;--fe)ue.push(he[fe]);for(;ue.length;){const fe=ue.pop();if(fe&&(me.has(fe.key)||ve.push(fe),se.has(fe.key))){const Re=fe.children;if(Re){const Ne=Re.length;for(let De=Ne-1;De>=0;--De)ue.push(Re[De])}}}}return ee(),ve}),_=U(()=>C.value.length>0);function x(se){const me=new Map,ve=new Map;let he=1;function ee(fe,Re=1,Ne=void 0){var De;const we=[];for(const ae of fe){const Ie=E(ae),He={level:Re,key:Ie,data:ae};He.label=k(ae),He.parent=Ne;const Ce=M(ae);He.disabled=A(ae),He.isLeaf=!Ce||Ce.length===0,Ce&&Ce.length&&(He.children=ee(Ce,Re+1,He)),we.push(He),me.set(Ie,He),ve.has(Re)||ve.set(Re,[]),(De=ve.get(Re))==null||De.push(He)}return Re>he&&(he=Re),we}const ue=ee(se);return{treeNodeMap:me,levelTreeNodeMap:ve,maxLevel:he,treeNodes:ue}}function T(se){const me=p(se);me&&(n.value=me)}function M(se){return se[m.value]}function E(se){return se?se[y.value]:""}function A(se){return se[S.value]}function k(se){return se[w.value]}function L(se){n.value.has(se.key)?V(se):W(se)}function I(se){n.value=new Set(se)}function P(se,me){e(KQ,se.data,se,me),F(se),t.expandOnClickNode&&L(se),t.showCheckbox&&t.checkOnClickNode&&!se.disabled&&s(se,!o(se),!0)}function F(se){Z(se)||(r.value=se.key,e(qQ,se.data,se))}function $(se,me){s(se,me)}function W(se){const me=n.value;if(a.value&&t.accordion){const{treeNodeMap:ve}=a.value;me.forEach(he=>{const ee=ve.get(he);se&&se.level===(ee==null?void 0:ee.level)&&me.delete(he)})}me.add(se.key),e(YQ,se.data,se)}function V(se){n.value.delete(se.key),e(XQ,se.data,se)}function z(se){return n.value.has(se.key)}function K(se){return!!se.disabled}function Z(se){const me=r.value;return me!==void 0&&me===se.key}function oe(){var se,me;if(r.value)return(me=(se=a.value)==null?void 0:se.treeNodeMap.get(r.value))==null?void 0:me.data}function ge(){return r.value}function ie(se){r.value=se}function Q(se){xt(()=>a.value=x(se))}function ce(se){var me;const ve=un(se)?E(se):se;return(me=a.value)==null?void 0:me.treeNodeMap.get(ve)}return{tree:a,flattenTree:C,isNotEmpty:_,getKey:E,getChildren:M,toggleExpand:L,toggleCheckbox:s,isExpanded:z,isChecked:o,isIndeterminate:i,isDisabled:K,isCurrent:Z,isForceHiddenExpandIcon:g,handleNodeClick:P,handleNodeCheck:$,getCurrentNode:oe,getCurrentKey:ge,setCurrentKey:ie,getCheckedKeys:l,getCheckedNodes:u,getHalfCheckedKeys:c,getHalfCheckedNodes:f,setChecked:d,setCheckedKeys:h,filter:T,setData:Q,getNode:ce,expandNode:W,collapseNode:V,setExpandedKeys:I}}var gGe=ye({name:"ElTreeNodeContent",props:cGe,setup(t){const e=yt(UV),n=Ye("tree");return()=>{const r=t.node,{data:a}=r;return e!=null&&e.ctx.slots.default?e.ctx.slots.default({node:r,data:a}):At("span",{class:n.be("node","label")},[r==null?void 0:r.label])}}});const yGe=["aria-expanded","aria-disabled","aria-checked","data-key","onClick"],mGe=ye({name:"ElTreeNode"}),bGe=ye({...mGe,props:uGe,emits:dGe,setup(t,{emit:e}){const n=t,r=yt(UV),a=Ye("tree"),i=U(()=>{var f;return(f=r==null?void 0:r.props.indent)!=null?f:16}),o=U(()=>{var f;return(f=r==null?void 0:r.props.icon)!=null?f:iX}),s=f=>{e("click",n.node,f)},l=()=>{e("toggle",n.node)},u=f=>{e("check",n.node,f)},c=f=>{var d,h,p,v;(p=(h=(d=r==null?void 0:r.instance)==null?void 0:d.vnode)==null?void 0:h.props)!=null&&p.onNodeContextmenu&&(f.stopPropagation(),f.preventDefault()),r==null||r.ctx.emit(JQ,f,(v=n.node)==null?void 0:v.data,n.node)};return(f,d)=>{var h,p,v;return G(),re("div",{ref:"node$",class:Y([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},[R("div",{class:Y(b(a).be("node","content")),style:Et({paddingLeft:`${(f.node.level-1)*b(i)}px`,height:f.itemSize+"px"})},[b(o)?(G(),Ee(b(_t),{key:0,class:Y([b(a).is("leaf",!!((p=f.node)!=null&&p.isLeaf)),b(a).is("hidden",f.hiddenExpandIcon),{expanded:!((v=f.node)!=null&&v.isLeaf)&&f.expanded},b(a).be("node","expand-icon")]),onClick:It(l,["stop"])},{default:j(()=>[(G(),Ee(on(b(o))))]),_:1},8,["class","onClick"])):_e("v-if",!0),f.showCheckbox?(G(),Ee(b(Ms),{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"])):_e("v-if",!0),N(b(gGe),{node:f.node},null,8,["node"])],6)],42,yGe)}}});var SGe=tt(bGe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree-v2/src/tree-node.vue"]]);const wGe=ye({name:"ElTreeV2"}),xGe=ye({...wGe,props:lGe,emits:fGe,setup(t,{expose:e,emit:n}){const r=t,a=wi(),i=U(()=>r.itemSize);fn(UV,{ctx:{emit:n,slots:a},props:r,instance:Qt()}),fn(pu,void 0);const{t:o}=En(),s=Ye("tree"),{flattenTree:l,isNotEmpty:u,toggleExpand:c,isExpanded:f,isIndeterminate:d,isChecked:h,isDisabled:p,isCurrent:v,isForceHiddenExpandIcon:g,handleNodeClick:y,handleNodeCheck:m,toggleCheckbox:S,getCurrentNode:w,getCurrentKey:C,setCurrentKey:_,getCheckedKeys:x,getCheckedNodes:T,getHalfCheckedKeys:M,getHalfCheckedNodes:E,setChecked:A,setCheckedKeys:k,filter:L,setData:I,getNode:P,expandNode:F,collapseNode:$,setExpandedKeys:W}=vGe(r,n);return e({toggleCheckbox:S,getCurrentNode:w,getCurrentKey:C,setCurrentKey:_,getCheckedKeys:x,getCheckedNodes:T,getHalfCheckedKeys:M,getHalfCheckedNodes:E,setChecked:A,setCheckedKeys:k,filter:L,setData:I,getNode:P,expandNode:F,collapseNode:$,setExpandedKeys:W}),(V,z)=>{var K;return G(),re("div",{class:Y([b(s).b(),{[b(s).m("highlight-current")]:V.highlightCurrent}]),role:"tree"},[b(u)?(G(),Ee(b(iQ),{key:0,"class-name":b(s).b("virtual-list"),data:b(l),total:b(l).length,height:V.height,"item-size":b(i),"perf-mode":V.perfMode},{default:j(({data:Z,index:oe,style:ge})=>[(G(),Ee(SGe,{key:Z[oe].key,style:Et(ge),node:Z[oe],expanded:b(f)(Z[oe]),"show-checkbox":V.showCheckbox,checked:b(h)(Z[oe]),indeterminate:b(d)(Z[oe]),"item-size":b(i),disabled:b(p)(Z[oe]),current:b(v)(Z[oe]),"hidden-expand-icon":b(g)(Z[oe]),onClick:b(y),onToggle:b(c),onCheck:b(m)},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"])):(G(),re("div",{key:1,class:Y(b(s).e("empty-block"))},[R("span",{class:Y(b(s).e("empty-text"))},We((K=V.emptyText)!=null?K:b(o)("el.tree.emptyText")),3)],2))],2)}}});var _Ge=tt(xGe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree-v2/src/tree.vue"]]);const CGe=tn(_Ge),eJ=Symbol("uploadContextKey"),TGe="ElUpload";class EGe extends Error{constructor(e,n,r,a){super(e),this.name="UploadAjaxError",this.status=n,this.method=r,this.url=a}}function D8(t,e,n){let r;return n.response?r=`${n.response.error||n.response}`:n.responseText?r=`${n.responseText}`:r=`fail to ${e.method} ${t} ${n.status}`,new EGe(r,n.status,e.method,t)}function MGe(t){const e=t.responseText||t.response;if(!e)return e;try{return JSON.parse(e)}catch{return e}}const DGe=t=>{typeof XMLHttpRequest>"u"&&Da(TGe,"XMLHttpRequest is undefined");const e=new XMLHttpRequest,n=t.action;e.upload&&e.upload.addEventListener("progress",i=>{const o=i;o.percent=i.total>0?i.loaded/i.total*100:0,t.onProgress(o)});const r=new FormData;if(t.data)for(const[i,o]of Object.entries(t.data))gt(o)&&o.length?r.append(i,...o):r.append(i,o);r.append(t.filename,t.file,t.file.name),e.addEventListener("error",()=>{t.onError(D8(n,t,e))}),e.addEventListener("load",()=>{if(e.status<200||e.status>=300)return t.onError(D8(n,t,e));t.onSuccess(MGe(e))}),e.open(t.method,n,!0),t.withCredentials&&"withCredentials"in e&&(e.withCredentials=!0);const a=t.headers||{};if(a instanceof Headers)a.forEach((i,o)=>e.setRequestHeader(o,i));else for(const[i,o]of Object.entries(a))Ta(o)||e.setRequestHeader(i,String(o));return e.send(r),e},tJ=["text","picture","picture-card"];let AGe=1;const SL=()=>Date.now()+AGe++,nJ=nt({action:{type:String,default:"#"},headers:{type:ke(Object)},method:{type:String,default:"post"},data:{type:ke([Object,Function,Promise]),default:()=>zr({})},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:""},type:{type:String,default:"select"},fileList:{type:ke(Array),default:()=>zr([])},autoUpload:{type:Boolean,default:!0},listType:{type:String,values:tJ,default:"text"},httpRequest:{type:ke(Function),default:DGe},disabled:Boolean,limit:Number}),kGe=nt({...nJ,beforeUpload:{type:ke(Function),default:Qn},beforeRemove:{type:ke(Function)},onRemove:{type:ke(Function),default:Qn},onChange:{type:ke(Function),default:Qn},onPreview:{type:ke(Function),default:Qn},onSuccess:{type:ke(Function),default:Qn},onProgress:{type:ke(Function),default:Qn},onError:{type:ke(Function),default:Qn},onExceed:{type:ke(Function),default:Qn}}),RGe=nt({files:{type:ke(Array),default:()=>zr([])},disabled:{type:Boolean,default:!1},handlePreview:{type:ke(Function),default:Qn},listType:{type:String,values:tJ,default:"text"}}),LGe={remove:t=>!!t},OGe=["onKeydown"],VGe=["src"],NGe=["onClick"],IGe=["title"],BGe=["onClick"],$Ge=["onClick"],PGe=ye({name:"ElUploadList"}),FGe=ye({...PGe,props:RGe,emits:LGe,setup(t,{emit:e}){const{t:n}=En(),r=Ye("upload"),a=Ye("icon"),i=Ye("list"),o=Ro(),s=B(!1),l=u=>{e("remove",u)};return(u,c)=>(G(),Ee(_K,{tag:"ul",class:Y([b(r).b("list"),b(r).bm("list",u.listType),b(r).is("disabled",b(o))]),name:b(i).b()},{default:j(()=>[(G(!0),re(Ct,null,dn(u.files,f=>(G(),re("li",{key:f.uid||f.name,class:Y([b(r).be("list","item"),b(r).is(f.status),{focusing:s.value}]),tabindex:"0",onKeydown:Tn(d=>!b(o)&&l(f),["delete"]),onFocus:c[0]||(c[0]=d=>s.value=!0),onBlur:c[1]||(c[1]=d=>s.value=!1),onClick:c[2]||(c[2]=d=>s.value=!1)},[Ge(u.$slots,"default",{file:f},()=>[u.listType==="picture"||f.status!=="uploading"&&u.listType==="picture-card"?(G(),re("img",{key:0,class:Y(b(r).be("list","item-thumbnail")),src:f.url,alt:""},null,10,VGe)):_e("v-if",!0),f.status==="uploading"||u.listType!=="picture-card"?(G(),re("div",{key:1,class:Y(b(r).be("list","item-info"))},[R("a",{class:Y(b(r).be("list","item-name")),onClick:It(d=>u.handlePreview(f),["prevent"])},[N(b(_t),{class:Y(b(a).m("document"))},{default:j(()=>[N(b(S2e))]),_:1},8,["class"]),R("span",{class:Y(b(r).be("list","item-file-name")),title:f.name},We(f.name),11,IGe)],10,NGe),f.status==="uploading"?(G(),Ee(b(qZ),{key:0,type:u.listType==="picture-card"?"circle":"line","stroke-width":u.listType==="picture-card"?6:2,percentage:Number(f.percentage),style:Et(u.listType==="picture-card"?"":"margin-top: 0.5rem")},null,8,["type","stroke-width","percentage","style"])):_e("v-if",!0)],2)):_e("v-if",!0),R("label",{class:Y(b(r).be("list","item-status-label"))},[u.listType==="text"?(G(),Ee(b(_t),{key:0,class:Y([b(a).m("upload-success"),b(a).m("circle-check")])},{default:j(()=>[N(b(I4))]),_:1},8,["class"])):["picture-card","picture"].includes(u.listType)?(G(),Ee(b(_t),{key:1,class:Y([b(a).m("upload-success"),b(a).m("check")])},{default:j(()=>[N(b(Rb))]),_:1},8,["class"])):_e("v-if",!0)],2),b(o)?_e("v-if",!0):(G(),Ee(b(_t),{key:2,class:Y(b(a).m("close")),onClick:d=>l(f)},{default:j(()=>[N(b(yl))]),_:2},1032,["class","onClick"])),_e(" Due to close btn only appears when li gets focused disappears after li gets blurred, thus keyboard navigation can never reach close btn"),_e(" This is a bug which needs to be fixed "),_e(" TODO: Fix the incorrect navigation interaction "),b(o)?_e("v-if",!0):(G(),re("i",{key:3,class:Y(b(a).m("close-tip"))},We(b(n)("el.upload.deleteTip")),3)),u.listType==="picture-card"?(G(),re("span",{key:4,class:Y(b(r).be("list","item-actions"))},[R("span",{class:Y(b(r).be("list","item-preview")),onClick:d=>u.handlePreview(f)},[N(b(_t),{class:Y(b(a).m("zoom-in"))},{default:j(()=>[N(b(cX))]),_:1},8,["class"])],10,BGe),b(o)?_e("v-if",!0):(G(),re("span",{key:0,class:Y(b(r).be("list","item-delete")),onClick:d=>l(f)},[N(b(_t),{class:Y(b(a).m("delete"))},{default:j(()=>[N(b(sX))]),_:1},8,["class"])],10,$Ge))],2)):_e("v-if",!0)])],42,OGe))),128)),Ge(u.$slots,"append")]),_:3},8,["class","name"]))}});var A8=tt(FGe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-list.vue"]]);const zGe=nt({disabled:{type:Boolean,default:!1}}),UGe={file:t=>gt(t)},GGe=["onDrop","onDragover"],rJ="ElUploadDrag",HGe=ye({name:rJ}),WGe=ye({...HGe,props:zGe,emits:UGe,setup(t,{emit:e}){const n=yt(eJ);n||Da(rJ,"usage: <el-upload><el-upload-dragger /></el-upload>");const r=Ye("upload"),a=B(!1),i=Ro(),o=l=>{if(i.value)return;a.value=!1,l.stopPropagation();const u=Array.from(l.dataTransfer.files),c=n.accept.value;if(!c){e("file",u);return}const f=u.filter(d=>{const{type:h,name:p}=d,v=p.includes(".")?`.${p.split(".").pop()}`:"",g=h.replace(/\/.*$/,"");return c.split(",").map(y=>y.trim()).filter(y=>y).some(y=>y.startsWith(".")?v===y:/\/\*$/.test(y)?g===y.replace(/\/\*$/,""):/^[^/]+\/[^/]+$/.test(y)?h===y:!1)});e("file",f)},s=()=>{i.value||(a.value=!0)};return(l,u)=>(G(),re("div",{class:Y([b(r).b("dragger"),b(r).is("dragover",a.value)]),onDrop:It(o,["prevent"]),onDragover:It(s,["prevent"]),onDragleave:u[0]||(u[0]=It(c=>a.value=!1,["prevent"]))},[Ge(l.$slots,"default")],42,GGe))}});var jGe=tt(WGe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-dragger.vue"]]);const KGe=nt({...nJ,beforeUpload:{type:ke(Function),default:Qn},onRemove:{type:ke(Function),default:Qn},onStart:{type:ke(Function),default:Qn},onSuccess:{type:ke(Function),default:Qn},onProgress:{type:ke(Function),default:Qn},onError:{type:ke(Function),default:Qn},onExceed:{type:ke(Function),default:Qn}}),YGe=["onKeydown"],XGe=["name","multiple","accept"],qGe=ye({name:"ElUploadContent",inheritAttrs:!1}),ZGe=ye({...qGe,props:KGe,setup(t,{expose:e}){const n=t,r=Ye("upload"),a=Ro(),i=vr({}),o=vr(),s=v=>{if(v.length===0)return;const{autoUpload:g,limit:y,fileList:m,multiple:S,onStart:w,onExceed:C}=n;if(y&&m.length+v.length>y){C(v,m);return}S||(v=v.slice(0,1));for(const _ of v){const x=_;x.uid=SL(),w(x),g&&l(x)}},l=async v=>{if(o.value.value="",!n.beforeUpload)return c(v);let g,y={};try{const S=n.data,w=n.beforeUpload(v);y=K_(n.data)?i2(n.data):n.data,g=await w,K_(n.data)&&To(S,y)&&(y=i2(n.data))}catch{g=!1}if(g===!1){n.onRemove(v);return}let m=v;g instanceof Blob&&(g instanceof File?m=g:m=new File([g],v.name,{type:v.type})),c(Object.assign(m,{uid:v.uid}),y)},u=async(v,g)=>zt(v)?v(g):v,c=async(v,g)=>{const{headers:y,data:m,method:S,withCredentials:w,name:C,action:_,onProgress:x,onSuccess:T,onError:M,httpRequest:E}=n;try{g=await u(g??m,v)}catch{n.onRemove(v);return}const{uid:A}=v,k={headers:y||{},withCredentials:w,file:v,data:g,method:S,filename:C,action:_,onProgress:I=>{x(I,v)},onSuccess:I=>{T(I,v),delete i.value[A]},onError:I=>{M(I,v),delete i.value[A]}},L=E(k);i.value[A]=L,L instanceof Promise&&L.then(k.onSuccess,k.onError)},f=v=>{const g=v.target.files;g&&s(Array.from(g))},d=()=>{a.value||(o.value.value="",o.value.click())},h=()=>{d()};return e({abort:v=>{wxe(i.value).filter(v?([y])=>String(v.uid)===y:()=>!0).forEach(([y,m])=>{m instanceof XMLHttpRequest&&m.abort(),delete i.value[y]})},upload:l}),(v,g)=>(G(),re("div",{class:Y([b(r).b(),b(r).m(v.listType),b(r).is("drag",v.drag)]),tabindex:"0",onClick:d,onKeydown:Tn(It(h,["self"]),["enter","space"])},[v.drag?(G(),Ee(jGe,{key:0,disabled:b(a),onFile:s},{default:j(()=>[Ge(v.$slots,"default")]),_:3},8,["disabled"])):Ge(v.$slots,"default",{key:1}),R("input",{ref_key:"inputRef",ref:o,class:Y(b(r).e("input")),name:v.name,multiple:v.multiple,accept:v.accept,type:"file",onChange:f,onClick:g[0]||(g[0]=It(()=>{},["stop"]))},null,42,XGe)],42,YGe))}});var k8=tt(ZGe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-content.vue"]]);const R8="ElUpload",L8=t=>{var e;(e=t.url)!=null&&e.startsWith("blob:")&&URL.revokeObjectURL(t.url)},QGe=(t,e)=>{const n=sye(t,"fileList",void 0,{passive:!0}),r=d=>n.value.find(h=>h.uid===d.uid);function a(d){var h;(h=e.value)==null||h.abort(d)}function i(d=["ready","uploading","success","fail"]){n.value=n.value.filter(h=>!d.includes(h.status))}const o=(d,h)=>{const p=r(h);p&&(console.error(d),p.status="fail",n.value.splice(n.value.indexOf(p),1),t.onError(d,p,n.value),t.onChange(p,n.value))},s=(d,h)=>{const p=r(h);p&&(t.onProgress(d,p,n.value),p.status="uploading",p.percentage=Math.round(d.percent))},l=(d,h)=>{const p=r(h);p&&(p.status="success",p.response=d,t.onSuccess(d,p,n.value),t.onChange(p,n.value))},u=d=>{Ta(d.uid)&&(d.uid=SL());const h={name:d.name,percentage:0,status:"ready",size:d.size,raw:d,uid:d.uid};if(t.listType==="picture-card"||t.listType==="picture")try{h.url=URL.createObjectURL(d)}catch(p){p.message,t.onError(p,h,n.value)}n.value=[...n.value,h],t.onChange(h,n.value)},c=async d=>{const h=d instanceof File?r(d):d;h||Da(R8,"file to be removed not found");const p=v=>{a(v);const g=n.value;g.splice(g.indexOf(v),1),t.onRemove(v,g),L8(v)};t.beforeRemove?await t.beforeRemove(h,n.value)!==!1&&p(h):p(h)};function f(){n.value.filter(({status:d})=>d==="ready").forEach(({raw:d})=>{var h;return d&&((h=e.value)==null?void 0:h.upload(d))})}return Ke(()=>t.listType,d=>{d!=="picture-card"&&d!=="picture"||(n.value=n.value.map(h=>{const{raw:p,url:v}=h;if(!v&&p)try{h.url=URL.createObjectURL(p)}catch(g){t.onError(g,h,n.value)}return h}))}),Ke(n,d=>{for(const h of d)h.uid||(h.uid=SL()),h.status||(h.status="success")},{immediate:!0,deep:!0}),{uploadFiles:n,abort:a,clearFiles:i,handleError:o,handleProgress:s,handleStart:u,handleSuccess:l,handleRemove:c,submit:f,revokeFileObjectURL:L8}},JGe=ye({name:"ElUpload"}),eHe=ye({...JGe,props:kGe,setup(t,{expose:e}){const n=t,r=Ro(),a=vr(),{abort:i,submit:o,clearFiles:s,uploadFiles:l,handleStart:u,handleError:c,handleRemove:f,handleSuccess:d,handleProgress:h,revokeFileObjectURL:p}=QGe(n,a),v=U(()=>n.listType==="picture-card"),g=U(()=>({...n,fileList:l.value,onStart:u,onProgress:h,onSuccess:d,onError:c,onRemove:f}));return Sr(()=>{l.value.forEach(p)}),fn(eJ,{accept:Wr(n,"accept")}),e({abort:i,submit:o,clearFiles:s,handleStart:u,handleRemove:f}),(y,m)=>(G(),re("div",null,[b(v)&&y.showFileList?(G(),Ee(A8,{key:0,disabled:b(r),"list-type":y.listType,files:b(l),"handle-preview":y.onPreview,onRemove:b(f)},ic({append:j(()=>[N(k8,an({ref_key:"uploadRef",ref:a},b(g)),{default:j(()=>[y.$slots.trigger?Ge(y.$slots,"trigger",{key:0}):_e("v-if",!0),!y.$slots.trigger&&y.$slots.default?Ge(y.$slots,"default",{key:1}):_e("v-if",!0)]),_:3},16)]),_:2},[y.$slots.file?{name:"default",fn:j(({file:S})=>[Ge(y.$slots,"file",{file:S})])}:void 0]),1032,["disabled","list-type","files","handle-preview","onRemove"])):_e("v-if",!0),!b(v)||b(v)&&!y.showFileList?(G(),Ee(k8,an({key:1,ref_key:"uploadRef",ref:a},b(g)),{default:j(()=>[y.$slots.trigger?Ge(y.$slots,"trigger",{key:0}):_e("v-if",!0),!y.$slots.trigger&&y.$slots.default?Ge(y.$slots,"default",{key:1}):_e("v-if",!0)]),_:3},16)):_e("v-if",!0),y.$slots.trigger?Ge(y.$slots,"default",{key:2}):_e("v-if",!0),Ge(y.$slots,"tip"),!b(v)&&y.showFileList?(G(),Ee(A8,{key:3,disabled:b(r),"list-type":y.listType,files:b(l),"handle-preview":y.onPreview,onRemove:b(f)},ic({_:2},[y.$slots.file?{name:"default",fn:j(({file:S})=>[Ge(y.$slots,"file",{file:S})])}:void 0]),1032,["disabled","list-type","files","handle-preview","onRemove"])):_e("v-if",!0)]))}});var tHe=tt(eHe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload.vue"]]);const nHe=tn(tHe);var rHe=[sDe,mDe,Hke,bze,Zke,aRe,pq,yRe,mRe,ct,wq,BLe,ULe,nOe,rOe,y3e,r3e,_3e,Ms,_Oe,Xq,N3e,J3e,e4e,W3e,A4e,x1,z4e,U4e,G4e,H4e,W4e,fNe,wNe,xNe,Mr,kZ,ZNe,UIe,GIe,HIe,PZ,fAe,dAe,_t,IBe,FZ,Ri,zZ,qBe,g$e,y$e,m$e,b$e,E$e,RPe,BPe,jPe,fq,qZ,nZ,POe,$Oe,uFe,pFe,k3e,xc,jf,d2,rPe,a5e,d5e,h5e,G5e,Y5e,vQ,i8e,p8e,v8e,E8e,V6e,N6e,mze,Vze,Nze,T1,Fze,vLe,jze,Zze,Qze,io,CUe,PUe,JUe,oGe,CGe,nHe];const Qs="ElInfiniteScroll",aHe=50,iHe=200,oHe=0,sHe={delay:{type:Number,default:iHe},distance:{type:Number,default:oHe},disabled:{type:Boolean,default:!1},immediate:{type:Boolean,default:!0}},GV=(t,e)=>Object.entries(sHe).reduce((n,[r,a])=>{var i,o;const{type:s,default:l}=a,u=t.getAttribute(`infinite-scroll-${r}`);let c=(o=(i=e[u])!=null?i:u)!=null?o:l;return c=c==="false"?!1:c,c=s(c),n[r]=Number.isNaN(c)?l:c,n},{}),aJ=t=>{const{observer:e}=t[Qs];e&&(e.disconnect(),delete t[Qs].observer)},lHe=(t,e)=>{const{container:n,containerEl:r,instance:a,observer:i,lastScrollTop:o}=t[Qs],{disabled:s,distance:l}=GV(t,a),{clientHeight:u,scrollHeight:c,scrollTop:f}=r,d=f-o;if(t[Qs].lastScrollTop=f,i||s||d<0)return;let h=!1;if(n===t)h=c-(u+f)<=l;else{const{clientTop:p,scrollHeight:v}=t,g=fye(t,r);h=f+u>=g+p+v-l}h&&e.call(a)};function HM(t,e){const{containerEl:n,instance:r}=t[Qs],{disabled:a}=GV(t,r);a||n.clientHeight===0||(n.scrollHeight<=n.clientHeight?e.call(r):aJ(t))}const uHe={async mounted(t,e){const{instance:n,value:r}=e;zt(r)||Da(Qs,"'v-infinite-scroll' binding value must be a function"),await xt();const{delay:a,immediate:i}=GV(t,n),o=N4(t,!0),s=o===window?document.documentElement:o,l=Xh(lHe.bind(null,t,r),a);if(o){if(t[Qs]={instance:n,container:o,containerEl:s,delay:a,cb:r,onScroll:l,lastScrollTop:s.scrollTop},i){const u=new MutationObserver(Xh(HM.bind(null,t,r),aHe));t[Qs].observer=u,u.observe(t,{childList:!0,subtree:!0}),HM(t,r)}o.addEventListener("scroll",l)}},unmounted(t){const{container:e,onScroll:n}=t[Qs];e==null||e.removeEventListener("scroll",n),aJ(t)},async updated(t){if(!t[Qs])await xt();else{const{containerEl:e,cb:n,observer:r}=t[Qs];e.clientHeight&&r&&HM(t,n)}}},wL=uHe;wL.install=t=>{t.directive("InfiniteScroll",wL)};const cHe=wL;function fHe(t){let e;const n=B(!1),r=Vn({...t,originalPosition:"",originalOverflow:"",visible:!1});function a(d){r.text=d}function i(){const d=r.parent,h=f.ns;if(!d.vLoadingAddClassList){let p=d.getAttribute("loading-number");p=Number.parseInt(p)-1,p?d.setAttribute("loading-number",p.toString()):(Eo(d,h.bm("parent","relative")),d.removeAttribute("loading-number")),Eo(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;t.beforeClose&&!t.beforeClose()||(n.value=!0,clearTimeout(e),e=window.setTimeout(l,400),r.visible=!1,(d=t.closed)==null||d.call(t))}function l(){if(!n.value)return;const d=r.parent;n.value=!1,d.vLoadingAddClassList=void 0,i()}const u=ye({name:"ElLoading",setup(d,{expose:h}){const{ns:p,zIndex:v}=DT("loading");return h({ns:p,zIndex:v}),()=>{const g=r.spinner||r.svg,y=At("svg",{class:"circular",viewBox:r.svgViewBox?r.svgViewBox:"0 0 50 50",...g?{innerHTML:g}:{}},[At("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),m=r.text?At("p",{class:p.b("text")},[r.text]):void 0;return At(da,{name:p.b("fade"),onAfterLeave:l},{default:j(()=>[Ft(N("div",{style:{backgroundColor:r.background||""},class:[p.b("mask"),r.customClass,r.fullscreen?"is-fullscreen":""]},[At("div",{class:p.b("spinner")},[y,m])]),[[cn,r.visible]])])})}}}),c=DK(u),f=c.mount(document.createElement("div"));return{...Wa(r),setText:a,removeElLoadingChild:o,close:s,handleAfterLeave:l,vm:f,get $el(){return f.$el}}}let qS;const xL=function(t={}){if(!_n)return;const e=dHe(t);if(e.fullscreen&&qS)return qS;const n=fHe({...e,closed:()=>{var a;(a=e.closed)==null||a.call(e),e.fullscreen&&(qS=void 0)}});hHe(e,e.parent,n),O8(e,e.parent,n),e.parent.vLoadingAddClassList=()=>O8(e,e.parent,n);let r=e.parent.getAttribute("loading-number");return r?r=`${Number.parseInt(r)+1}`:r="1",e.parent.setAttribute("loading-number",r),e.parent.appendChild(n.$el),xt(()=>n.visible.value=e.visible),e.fullscreen&&(qS=n),n},dHe=t=>{var e,n,r,a;let i;return Ht(t.target)?i=(e=document.querySelector(t.target))!=null?e:document.body:i=t.target||document.body,{parent:i===document.body||t.body?document.body:i,background:t.background||"",svg:t.svg||"",svgViewBox:t.svgViewBox||"",spinner:t.spinner||!1,text:t.text||"",fullscreen:i===document.body&&((n=t.fullscreen)!=null?n:!0),lock:(r=t.lock)!=null?r:!1,customClass:t.customClass||"",visible:(a=t.visible)!=null?a:!0,target:i}},hHe=async(t,e,n)=>{const{nextZIndex:r}=n.vm.zIndex||n.vm._.exposed.zIndex,a={};if(t.fullscreen)n.originalPosition.value=pf(document.body,"position"),n.originalOverflow.value=pf(document.body,"overflow"),a.zIndex=r();else if(t.parent===document.body){n.originalPosition.value=pf(document.body,"position"),await xt();for(const i of["top","left"]){const o=i==="top"?"scrollTop":"scrollLeft";a[i]=`${t.target.getBoundingClientRect()[i]+document.body[o]+document.documentElement[o]-Number.parseInt(pf(document.body,`margin-${i}`),10)}px`}for(const i of["height","width"])a[i]=`${t.target.getBoundingClientRect()[i]}px`}else n.originalPosition.value=pf(e,"position");for(const[i,o]of Object.entries(a))n.$el.style[i]=o},O8=(t,e,n)=>{const r=n.vm.ns||n.vm._.exposed.ns;["absolute","fixed","sticky"].includes(n.originalPosition.value)?Eo(e,r.bm("parent","relative")):Ql(e,r.bm("parent","relative")),t.fullscreen&&t.lock?Ql(e,r.bm("parent","hidden")):Eo(e,r.bm("parent","hidden"))},_L=Symbol("ElLoading"),V8=(t,e)=>{var n,r,a,i;const o=e.instance,s=d=>un(e.value)?e.value[d]:void 0,l=d=>{const h=Ht(d)&&(o==null?void 0:o[d])||d;return h&&B(h)},u=d=>l(s(d)||t.getAttribute(`element-loading-${nd(d)}`)),c=(n=s("fullscreen"))!=null?n:e.modifiers.fullscreen,f={text:u("text"),svg:u("svg"),svgViewBox:u("svgViewBox"),spinner:u("spinner"),background:u("background"),customClass:u("customClass"),fullscreen:c,target:(r=s("target"))!=null?r:c?void 0:t,body:(a=s("body"))!=null?a:e.modifiers.body,lock:(i=s("lock"))!=null?i:e.modifiers.lock};t[_L]={options:f,instance:xL(f)}},pHe=(t,e)=>{for(const n of Object.keys(e))ft(e[n])&&(e[n].value=t[n])},N8={mounted(t,e){e.value&&V8(t,e)},updated(t,e){const n=t[_L];e.oldValue!==e.value&&(e.value&&!e.oldValue?V8(t,e):e.value&&e.oldValue?un(e.value)&&pHe(e.value,n.options):n==null||n.instance.close())},unmounted(t){var e;(e=t[_L])==null||e.instance.close()}},vHe={install(t){t.directive("loading",N8),t.config.globalProperties.$loading=xL},directive:N8,service:xL},iJ=["success","info","warning","error"],mo=zr({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:_n?document.body:void 0}),gHe=nt({customClass:{type:String,default:mo.customClass},center:{type:Boolean,default:mo.center},dangerouslyUseHTMLString:{type:Boolean,default:mo.dangerouslyUseHTMLString},duration:{type:Number,default:mo.duration},icon:{type:gr,default:mo.icon},id:{type:String,default:mo.id},message:{type:ke([String,Object,Function]),default:mo.message},onClose:{type:ke(Function),required:!1},showClose:{type:Boolean,default:mo.showClose},type:{type:String,values:iJ,default:mo.type},offset:{type:Number,default:mo.offset},zIndex:{type:Number,default:mo.zIndex},grouping:{type:Boolean,default:mo.grouping},repeatNum:{type:Number,default:mo.repeatNum}}),yHe={destroy:()=>!0},ol=Nj([]),mHe=t=>{const e=ol.findIndex(a=>a.id===t),n=ol[e];let r;return e>0&&(r=ol[e-1]),{current:n,prev:r}},bHe=t=>{const{prev:e}=mHe(t);return e?e.vm.exposed.bottom.value:0},SHe=(t,e)=>ol.findIndex(r=>r.id===t)>0?20:e,wHe=["id"],xHe=["innerHTML"],_He=ye({name:"ElMessage"}),CHe=ye({..._He,props:gHe,emits:yHe,setup(t,{expose:e}){const n=t,{Close:r}=P4,{ns:a,zIndex:i}=DT("message"),{currentZIndex:o,nextZIndex:s}=i,l=B(),u=B(!1),c=B(0);let f;const d=U(()=>n.type?n.type==="error"?"danger":n.type:"info"),h=U(()=>{const x=n.type;return{[a.bm("icon",x)]:x&&Uf[x]}}),p=U(()=>n.icon||Uf[n.type]||""),v=U(()=>bHe(n.id)),g=U(()=>SHe(n.id,n.offset)+v.value),y=U(()=>c.value+g.value),m=U(()=>({top:`${g.value}px`,zIndex:o.value}));function S(){n.duration!==0&&({stop:f}=dp(()=>{C()},n.duration))}function w(){f==null||f()}function C(){u.value=!1}function _({code:x}){x===Dt.esc&&C()}return Ut(()=>{S(),s(),u.value=!0}),Ke(()=>n.repeatNum,()=>{w(),S()}),Or(document,"keydown",_),Vi(l,()=>{c.value=l.value.getBoundingClientRect().height}),e({visible:u,bottom:y,close:C}),(x,T)=>(G(),Ee(da,{name:b(a).b("fade"),onBeforeLeave:x.onClose,onAfterLeave:T[0]||(T[0]=M=>x.$emit("destroy")),persisted:""},{default:j(()=>[Ft(R("div",{id:x.id,ref_key:"messageRef",ref:l,class:Y([b(a).b(),{[b(a).m(x.type)]:x.type&&!x.icon},b(a).is("center",x.center),b(a).is("closable",x.showClose),x.customClass]),style:Et(b(m)),role:"alert",onMouseenter:w,onMouseleave:S},[x.repeatNum>1?(G(),Ee(b(pq),{key:0,value:x.repeatNum,type:b(d),class:Y(b(a).e("badge"))},null,8,["value","type","class"])):_e("v-if",!0),b(p)?(G(),Ee(b(_t),{key:1,class:Y([b(a).e("icon"),b(h)])},{default:j(()=>[(G(),Ee(on(b(p))))]),_:1},8,["class"])):_e("v-if",!0),Ge(x.$slots,"default",{},()=>[x.dangerouslyUseHTMLString?(G(),re(Ct,{key:1},[_e(" Caution here, message could've been compromised, never use user's input as message "),R("p",{class:Y(b(a).e("content")),innerHTML:x.message},null,10,xHe)],2112)):(G(),re("p",{key:0,class:Y(b(a).e("content"))},We(x.message),3))]),x.showClose?(G(),Ee(b(_t),{key:2,class:Y(b(a).e("closeBtn")),onClick:It(C,["stop"])},{default:j(()=>[N(b(r))]),_:1},8,["class","onClick"])):_e("v-if",!0)],46,wHe),[[cn,u.value]])]),_:3},8,["name","onBeforeLeave"]))}});var THe=tt(CHe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/message/src/message.vue"]]);let EHe=1;const oJ=t=>{const e=!t||Ht(t)||Gr(t)||zt(t)?{message:t}:t,n={...mo,...e};if(!n.appendTo)n.appendTo=document.body;else if(Ht(n.appendTo)){let r=document.querySelector(n.appendTo);xs(r)||(r=document.body),n.appendTo=r}return n},MHe=t=>{const e=ol.indexOf(t);if(e===-1)return;ol.splice(e,1);const{handler:n}=t;n.close()},DHe=({appendTo:t,...e},n)=>{const r=`message_${EHe++}`,a=e.onClose,i=document.createElement("div"),o={...e,id:r,onClose:()=>{a==null||a(),MHe(c)},onDestroy:()=>{Eg(null,i)}},s=N(THe,o,zt(o.message)||Gr(o.message)?{default:zt(o.message)?o.message:()=>o.message}:null);s.appContext=n||Gg._context,Eg(s,i),t.appendChild(i.firstElementChild);const l=s.component,c={id:r,vnode:s,vm:l,handler:{close:()=>{l.exposed.visible.value=!1}},props:s.component.props};return c},Gg=(t={},e)=>{if(!_n)return{close:()=>{}};if(Pt(MR.max)&&ol.length>=MR.max)return{close:()=>{}};const n=oJ(t);if(n.grouping&&ol.length){const a=ol.find(({vnode:i})=>{var o;return((o=i.props)==null?void 0:o.message)===n.message});if(a)return a.props.repeatNum+=1,a.props.type=n.type,a.handler}const r=DHe(n,e);return ol.push(r),r.handler};iJ.forEach(t=>{Gg[t]=(e={},n)=>{const r=oJ(e);return Gg({...r,type:t},n)}});function AHe(t){for(const e of ol)(!t||t===e.props.type)&&e.handler.close()}Gg.closeAll=AHe;Gg._context=null;const wt=hX(Gg,"$message"),kHe=ye({name:"ElMessageBox",directives:{TrapFocus:ZRe},components:{ElButton:ct,ElFocusTrap:kT,ElInput:Ri,ElOverlay:gV,ElIcon:_t,...P4},inheritAttrs:!1,props:{buttonSize:{type:String,validator:ST},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(t,{emit:e}){const{locale:n,zIndex:r,ns:a,size:i}=DT("message-box",U(()=>t.buttonSize)),{t:o}=n,{nextZIndex:s}=r,l=B(!1),u=Vn({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=U(()=>{const P=u.type;return{[a.bm("icon",P)]:P&&Uf[P]}}),f=Ts(),d=Ts(),h=U(()=>u.icon||Uf[u.type]||""),p=U(()=>!!u.message),v=B(),g=B(),y=B(),m=B(),S=B(),w=U(()=>u.confirmButtonClass);Ke(()=>u.inputValue,async P=>{await xt(),t.boxType==="prompt"&&P!==null&&A()},{immediate:!0}),Ke(()=>l.value,P=>{var F,$;P&&(t.boxType!=="prompt"&&(u.autofocus?y.value=($=(F=S.value)==null?void 0:F.$el)!=null?$:v.value:y.value=v.value),u.zIndex=s()),t.boxType==="prompt"&&(P?xt().then(()=>{var W;m.value&&m.value.$el&&(u.autofocus?y.value=(W=k())!=null?W:v.value:y.value=v.value)}):(u.editorErrorMessage="",u.validateError=!1))});const C=U(()=>t.draggable);pX(v,g,C),Ut(async()=>{await xt(),t.closeOnHashChange&&window.addEventListener("hashchange",_)}),Sr(()=>{t.closeOnHashChange&&window.removeEventListener("hashchange",_)});function _(){l.value&&(l.value=!1,xt(()=>{u.action&&e("action",u.action)}))}const x=()=>{t.closeOnClickModal&&E(u.distinguishCancelAndClose?"close":"cancel")},T=Z4(x),M=P=>{if(u.inputType!=="textarea")return P.preventDefault(),E("confirm")},E=P=>{var F;t.boxType==="prompt"&&P==="confirm"&&!A()||(u.action=P,u.beforeClose?(F=u.beforeClose)==null||F.call(u,P,u,_):_())},A=()=>{if(t.boxType==="prompt"){const P=u.inputPattern;if(P&&!P.test(u.inputValue||""))return u.editorErrorMessage=u.inputErrorMessage||o("el.messagebox.error"),u.validateError=!0,!1;const F=u.inputValidator;if(typeof F=="function"){const $=F(u.inputValue);if($===!1)return u.editorErrorMessage=u.inputErrorMessage||o("el.messagebox.error"),u.validateError=!0,!1;if(typeof $=="string")return u.editorErrorMessage=$,u.validateError=!0,!1}}return u.editorErrorMessage="",u.validateError=!1,!0},k=()=>{const P=m.value.$refs;return P.input||P.textarea},L=()=>{E("close")},I=()=>{t.closeOnPressEscape&&L()};return t.lockScroll&&yX(l),{...Wa(u),ns:a,overlayEvent:T,visible:l,hasMessage:p,typeClass:c,contentId:f,inputId:d,btnSize:i,iconComponent:h,confirmButtonClasses:w,rootRef:v,focusStartRef:y,headerRef:g,inputRef:m,confirmRef:S,doClose:_,handleClose:L,onCloseRequested:I,handleWrapperClick:x,handleInputEnter:M,handleAction:E,t:o}}}),RHe=["aria-label","aria-describedby"],LHe=["aria-label"],OHe=["id"];function VHe(t,e,n,r,a,i){const o=$e("el-icon"),s=$e("close"),l=$e("el-input"),u=$e("el-button"),c=$e("el-focus-trap"),f=$e("el-overlay");return G(),Ee(da,{name:"fade-in-linear",onAfterLeave:e[11]||(e[11]=d=>t.$emit("vanish")),persisted:""},{default:j(()=>[Ft(N(f,{"z-index":t.zIndex,"overlay-class":[t.ns.is("message-box"),t.modalClass],mask:t.modal},{default:j(()=>[R("div",{role:"dialog","aria-label":t.title,"aria-modal":"true","aria-describedby":t.showInput?void 0:t.contentId,class:Y(`${t.ns.namespace.value}-overlay-message-box`),onClick:e[8]||(e[8]=(...d)=>t.overlayEvent.onClick&&t.overlayEvent.onClick(...d)),onMousedown:e[9]||(e[9]=(...d)=>t.overlayEvent.onMousedown&&t.overlayEvent.onMousedown(...d)),onMouseup:e[10]||(e[10]=(...d)=>t.overlayEvent.onMouseup&&t.overlayEvent.onMouseup(...d))},[N(c,{loop:"",trapped:t.visible,"focus-trap-el":t.rootRef,"focus-start-el":t.focusStartRef,onReleaseRequested:t.onCloseRequested},{default:j(()=>[R("div",{ref:"rootRef",class:Y([t.ns.b(),t.customClass,t.ns.is("draggable",t.draggable),{[t.ns.m("center")]:t.center}]),style:Et(t.customStyle),tabindex:"-1",onClick:e[7]||(e[7]=It(()=>{},["stop"]))},[t.title!==null&&t.title!==void 0?(G(),re("div",{key:0,ref:"headerRef",class:Y(t.ns.e("header"))},[R("div",{class:Y(t.ns.e("title"))},[t.iconComponent&&t.center?(G(),Ee(o,{key:0,class:Y([t.ns.e("status"),t.typeClass])},{default:j(()=>[(G(),Ee(on(t.iconComponent)))]),_:1},8,["class"])):_e("v-if",!0),R("span",null,We(t.title),1)],2),t.showClose?(G(),re("button",{key:0,type:"button",class:Y(t.ns.e("headerbtn")),"aria-label":t.t("el.messagebox.close"),onClick:e[0]||(e[0]=d=>t.handleAction(t.distinguishCancelAndClose?"close":"cancel")),onKeydown:e[1]||(e[1]=Tn(It(d=>t.handleAction(t.distinguishCancelAndClose?"close":"cancel"),["prevent"]),["enter"]))},[N(o,{class:Y(t.ns.e("close"))},{default:j(()=>[N(s)]),_:1},8,["class"])],42,LHe)):_e("v-if",!0)],2)):_e("v-if",!0),R("div",{id:t.contentId,class:Y(t.ns.e("content"))},[R("div",{class:Y(t.ns.e("container"))},[t.iconComponent&&!t.center&&t.hasMessage?(G(),Ee(o,{key:0,class:Y([t.ns.e("status"),t.typeClass])},{default:j(()=>[(G(),Ee(on(t.iconComponent)))]),_:1},8,["class"])):_e("v-if",!0),t.hasMessage?(G(),re("div",{key:1,class:Y(t.ns.e("message"))},[Ge(t.$slots,"default",{},()=>[t.dangerouslyUseHTMLString?(G(),Ee(on(t.showInput?"label":"p"),{key:1,for:t.showInput?t.inputId:void 0,innerHTML:t.message},null,8,["for","innerHTML"])):(G(),Ee(on(t.showInput?"label":"p"),{key:0,for:t.showInput?t.inputId:void 0},{default:j(()=>[Be(We(t.dangerouslyUseHTMLString?"":t.message),1)]),_:1},8,["for"]))])],2)):_e("v-if",!0)],2),Ft(R("div",{class:Y(t.ns.e("input"))},[N(l,{id:t.inputId,ref:"inputRef",modelValue:t.inputValue,"onUpdate:modelValue":e[2]||(e[2]=d=>t.inputValue=d),type:t.inputType,placeholder:t.inputPlaceholder,"aria-invalid":t.validateError,class:Y({invalid:t.validateError}),onKeydown:Tn(t.handleInputEnter,["enter"])},null,8,["id","modelValue","type","placeholder","aria-invalid","class","onKeydown"]),R("div",{class:Y(t.ns.e("errormsg")),style:Et({visibility:t.editorErrorMessage?"visible":"hidden"})},We(t.editorErrorMessage),7)],2),[[cn,t.showInput]])],10,OHe),R("div",{class:Y(t.ns.e("btns"))},[t.showCancelButton?(G(),Ee(u,{key:0,loading:t.cancelButtonLoading,class:Y([t.cancelButtonClass]),round:t.roundButton,size:t.btnSize,onClick:e[3]||(e[3]=d=>t.handleAction("cancel")),onKeydown:e[4]||(e[4]=Tn(It(d=>t.handleAction("cancel"),["prevent"]),["enter"]))},{default:j(()=>[Be(We(t.cancelButtonText||t.t("el.messagebox.cancel")),1)]),_:1},8,["loading","class","round","size"])):_e("v-if",!0),Ft(N(u,{ref:"confirmRef",type:"primary",loading:t.confirmButtonLoading,class:Y([t.confirmButtonClasses]),round:t.roundButton,disabled:t.confirmButtonDisabled,size:t.btnSize,onClick:e[5]||(e[5]=d=>t.handleAction("confirm")),onKeydown:e[6]||(e[6]=Tn(It(d=>t.handleAction("confirm"),["prevent"]),["enter"]))},{default:j(()=>[Be(We(t.confirmButtonText||t.t("el.messagebox.confirm")),1)]),_:1},8,["loading","class","round","disabled","size"]),[[cn,t.showConfirmButton]])],2)],6)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])],42,RHe)]),_:3},8,["z-index","overlay-class","mask"]),[[cn,t.visible]])]),_:3})}var NHe=tt(kHe,[["render",VHe],["__file","/home/runner/work/element-plus/element-plus/packages/components/message-box/src/index.vue"]]);const V1=new Map,IHe=t=>{let e=document.body;return t.appendTo&&(Ht(t.appendTo)&&(e=document.querySelector(t.appendTo)),xs(t.appendTo)&&(e=t.appendTo),xs(e)||(e=document.body)),e},BHe=(t,e,n=null)=>{const r=N(NHe,t,zt(t.message)||Gr(t.message)?{default:zt(t.message)?t.message:()=>t.message}:null);return r.appContext=n,Eg(r,e),IHe(t).appendChild(e.firstElementChild),r.component},$He=()=>document.createElement("div"),PHe=(t,e)=>{const n=$He();t.onVanish=()=>{Eg(null,n),V1.delete(a)},t.onAction=i=>{const o=V1.get(a);let s;t.showInput?s={value:a.inputValue,action:i}:s=i,t.callback?t.callback(s,r.proxy):i==="cancel"||i==="close"?t.distinguishCancelAndClose&&i!=="cancel"?o.reject("close"):o.reject("cancel"):o.resolve(s)};const r=BHe(t,n,e),a=r.proxy;for(const i in t)Sn(t,i)&&!Sn(a.$props,i)&&(a[i]=t[i]);return a.visible=!0,a};function S0(t,e=null){if(!_n)return Promise.reject();let n;return Ht(t)||Gr(t)?t={message:t}:n=t.callback,new Promise((r,a)=>{const i=PHe(t,e??S0._context);V1.set(i,{options:t,callback:n,resolve:r,reject:a})})}const FHe=["alert","confirm","prompt"],zHe={alert:{closeOnPressEscape:!1,closeOnClickModal:!1},confirm:{showCancelButton:!0},prompt:{showCancelButton:!0,showInput:!0}};FHe.forEach(t=>{S0[t]=UHe(t)});function UHe(t){return(e,n,r,a)=>{let i="";return un(n)?(r=n,i=""):Na(n)?i="":i=n,S0(Object.assign({title:i,message:e,type:"",...zHe[t]},r,{boxType:t}),a)}}S0.close=()=>{V1.forEach((t,e)=>{e.doClose()}),V1.clear()};S0._context=null;const ef=S0;ef.install=t=>{ef._context=t._context,t.config.globalProperties.$msgbox=ef,t.config.globalProperties.$messageBox=ef,t.config.globalProperties.$alert=ef.alert,t.config.globalProperties.$confirm=ef.confirm,t.config.globalProperties.$prompt=ef.prompt};const GHe=ef,sJ=["success","info","warning","error"],HHe=nt({customClass:{type:String,default:""},dangerouslyUseHTMLString:{type:Boolean,default:!1},duration:{type:Number,default:4500},icon:{type:gr},id:{type:String,default:""},message:{type:ke([String,Object]),default:""},offset:{type:Number,default:0},onClick:{type:ke(Function),default:()=>{}},onClose:{type:ke(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:[...sJ,""],default:""},zIndex:Number}),WHe={destroy:()=>!0},jHe=["id"],KHe=["textContent"],YHe={key:0},XHe=["innerHTML"],qHe=ye({name:"ElNotification"}),ZHe=ye({...qHe,props:HHe,emits:WHe,setup(t,{expose:e}){const n=t,{ns:r,zIndex:a}=DT("notification"),{nextZIndex:i,currentZIndex:o}=a,{Close:s}=dX,l=B(!1);let u;const c=U(()=>{const S=n.type;return S&&Uf[n.type]?r.m(S):""}),f=U(()=>n.type&&Uf[n.type]||n.icon),d=U(()=>n.position.endsWith("right")?"right":"left"),h=U(()=>n.position.startsWith("top")?"top":"bottom"),p=U(()=>{var S;return{[h.value]:`${n.offset}px`,zIndex:(S=n.zIndex)!=null?S:o.value}});function v(){n.duration>0&&({stop:u}=dp(()=>{l.value&&y()},n.duration))}function g(){u==null||u()}function y(){l.value=!1}function m({code:S}){S===Dt.delete||S===Dt.backspace?g():S===Dt.esc?l.value&&y():v()}return Ut(()=>{v(),i(),l.value=!0}),Or(document,"keydown",m),e({visible:l,close:y}),(S,w)=>(G(),Ee(da,{name:b(r).b("fade"),onBeforeLeave:S.onClose,onAfterLeave:w[1]||(w[1]=C=>S.$emit("destroy")),persisted:""},{default:j(()=>[Ft(R("div",{id:S.id,class:Y([b(r).b(),S.customClass,b(d)]),style:Et(b(p)),role:"alert",onMouseenter:g,onMouseleave:v,onClick:w[0]||(w[0]=(...C)=>S.onClick&&S.onClick(...C))},[b(f)?(G(),Ee(b(_t),{key:0,class:Y([b(r).e("icon"),b(c)])},{default:j(()=>[(G(),Ee(on(b(f))))]),_:1},8,["class"])):_e("v-if",!0),R("div",{class:Y(b(r).e("group"))},[R("h2",{class:Y(b(r).e("title")),textContent:We(S.title)},null,10,KHe),Ft(R("div",{class:Y(b(r).e("content")),style:Et(S.title?void 0:{margin:0})},[Ge(S.$slots,"default",{},()=>[S.dangerouslyUseHTMLString?(G(),re(Ct,{key:1},[_e(" Caution here, message could've been compromised, never use user's input as message "),R("p",{innerHTML:S.message},null,8,XHe)],2112)):(G(),re("p",YHe,We(S.message),1))])],6),[[cn,S.message]]),S.showClose?(G(),Ee(b(_t),{key:0,class:Y(b(r).e("closeBtn")),onClick:It(y,["stop"])},{default:j(()=>[N(b(s))]),_:1},8,["class","onClick"])):_e("v-if",!0)],2)],46,jHe),[[cn,l.value]])]),_:3},8,["name","onBeforeLeave"]))}});var QHe=tt(ZHe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/notification/src/notification.vue"]]);const w2={"top-left":[],"top-right":[],"bottom-left":[],"bottom-right":[]},CL=16;let JHe=1;const Hg=function(t={},e=null){if(!_n)return{close:()=>{}};(typeof t=="string"||Gr(t))&&(t={message:t});const n=t.position||"top-right";let r=t.offset||0;w2[n].forEach(({vm:c})=>{var f;r+=(((f=c.el)==null?void 0:f.offsetHeight)||0)+CL}),r+=CL;const a=`notification_${JHe++}`,i=t.onClose,o={...t,offset:r,id:a,onClose:()=>{eWe(a,n,i)}};let s=document.body;xs(t.appendTo)?s=t.appendTo:Ht(t.appendTo)&&(s=document.querySelector(t.appendTo)),xs(s)||(s=document.body);const l=document.createElement("div"),u=N(QHe,o,Gr(o.message)?{default:()=>o.message}:null);return u.appContext=e??Hg._context,u.props.onDestroy=()=>{Eg(null,l)},Eg(u,l),w2[n].push({vm:u}),s.appendChild(l.firstElementChild),{close:()=>{u.component.exposed.visible.value=!1}}};sJ.forEach(t=>{Hg[t]=(e={})=>((typeof e=="string"||Gr(e))&&(e={message:e}),Hg({...e,type:t}))});function eWe(t,e,n){const r=w2[e],a=r.findIndex(({vm:u})=>{var c;return((c=u.component)==null?void 0:c.props.id)===t});if(a===-1)return;const{vm:i}=r[a];if(!i)return;n==null||n(i);const o=i.el.offsetHeight,s=e.split("-")[0];r.splice(a,1);const l=r.length;if(!(l<1))for(let u=a;u<l;u++){const{el:c,component:f}=r[u].vm,d=Number.parseInt(c.style[s],10)-o-CL;f.props.offset=d}}function tWe(){for(const t of Object.values(w2))t.forEach(({vm:e})=>{e.component.exposed.visible.value=!1})}Hg.closeAll=tWe;Hg._context=null;const nWe=hX(Hg,"$notify");var rWe=[cHe,vHe,wt,GHe,nWe,XZ],aWe=tDe([...rHe,...rWe]);const vf=[],iWe=Ff.CancelToken;let oWe="000000000"|"0000000";Ff.defaults.timeout=2e4;Ff.defaults.baseURL="/disaster";Ff.defaults.headers.post["Content-Type"]="application/json;charset=UTF-8";Ff.interceptors.request.use(t=>{const e=JSON.stringify(t.url)+(t.data?JSON.stringify(t.data):JSON.stringify(t.params));return t.cancelToken=new iWe(n=>{}),vf.includes(e),vf.push(e),t},t=>Promise.reject(t));Ff.interceptors.response.use(t=>{const e=JSON.stringify(t.config.url)+(t.config.data?JSON.stringify(t.config.data):JSON.stringify(t.config.params));if(vf.splice(vf.findIndex(n=>n===e),1),t.status===200){let{data:n}=t;return n.returnCode==oWe?Promise.resolve(n):n.returnMsg==="用户验证失败!"||n.returnMsg=="系统没有登录或会话超时!"?(console.log("loginflag0:",iy()),(iy()=="1"||iy()==null)&&(wt.error(n.returnMsg),console.log("loginflag:",iy()),T0e("0"),console.log("loginflag1:",iy()),x0e(),C0e(),Pfe.replace({path:"/login"})),new Promise(()=>{})):Promise.reject(n)}else return Promise.reject(t)},t=>{const{res:e}=t;if(e)return vf.length=0,errorHandle(e.status,e.data.message),Promise.reject(e);if(console.log(t),t.message=="取消上传")return Promise.reject("cancel");if(t.message!="取消重复请求"){let n=t.message.indexOf("timeout")!=-1?{returnMsg:"请求超时"}:{returnMsg:"网络通讯异常"};return vf.splice(vf.findIndex(r=>r===Rn),1),Promise.reject(n)}});function sWe(t="service"){let e="";return t=="service"?e="/TransServlet":t=="manager"&&(e="/managersvr/TransServlet"),e}function lWe(t,e){t.clientToken=uY()||c1.token||"03c540b1baf2434b8cffbb69f73b60bf";let n=_0e()||c1.userId||"5f06c8bc77234f969d13e160b54c27e3";return t.userId=n,t.channelNo=e,t}const Rn=(t,e="service",n="post")=>{let r=sWe(e);return t=lWe(t,e),new Promise((a,i)=>{n=="post"?Ff.post(r,t).then(o=>{a(o)}).catch(o=>{i(o)}):n=="get"&&Ff.get(r,{params:t}).then(o=>{a(o)}).catch(o=>{i(o)})})},HFt=t=>{let e=uY()||c1.token||"03c540b1baf2434b8cffbb69f73b60bf";return A0e.encrypt(e,t)};var Wg={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:"取消"}}};const Cr="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA0AAAALCAYAAACksgdhAAAAAXNSR0IArs4c6QAAANZJREFUKFONkKFOw3AQxn/HGqiYQNQsQSCWzC010/AAPMHUEgQVPETfAbMsSzaHYe8wP4UnAVlRUVFRknYfLQHC2n+Wnblc7n733XfGT8xW8rnE/61d+eOVfBtbaU0zetETRgR4xyCJAuPRomddc877seGDnkj+Q2VVMelVZK4FdsGNxFqQHSqJN0HuVDUCg6sOJDHHKJxKYohx14ZKQVQbTV2QRHgGcfe8E77RUdp/MlhM7VvpYaP72sOyvcf1iOTPkwgw+g4otdtY3mjMzkR4wnXNyPILgh9dNRVCDU4AAAAASUVORK5CYII=",uWe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAACJSURBVHgB7daxCYBADAXQHxHB1gXsrB1A0FF0E0fTwhkE57BSUHOIIg6QE/wP7iBVPklxBxD9nbhrV/BAVPioOz09bJR6qrvaTy2MuF7X1AN4dq9gWpAW41rBgOuVRa8Aw7zVEkoNA9oLWXIO3/sKGIABGIABGOA7r2EeC5oEJlyvi/cvGYh+7wBHXibUYky7TgAAAABJRU5ErkJggg==",cWe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAJnSURBVHgBzVe9TttQFP5sUkVI0FpRB6ouHuhMeICqXtn6BjFdOyRvQHmCkEpdSxgrdWBjrPsGZuoAUtyhaqVW1JRKFSXYnHN9HNnIEOfnGj7pw+Re3/t999y/Y+COYZR9MY5jix5N4kviC6JNtKQ6JPrEQ6JnGMZ+yW7HGxDhNrEjgqEIBUJIOZtbk/+5vE/cIzMBpgWJd4i/4wQe0SnRxiH2pc2A6GIaUMPuJMIF7W0xwOhO2nhXGr7BjOA+pK/dsg268xIvMNEd96I7b/ECE52bXkjnbABNoL4/yaK2iiq3xKENTZAdUhxhGX25hTKbiVwUavxn8F/tVfvtz+Hp8y9DFxrx7hf814/hIDm4PGVgGXD+RsDHU6OdWNKHD+ElWo0FLJnqSPdMLqwtYO34PEZVOEq0+D6BMvDIhH1UoYEfQ/WwRwYIFk9BZQYu1GCtrIE7Q2ogXKmVTg1mxlKiGmYNBCsPUBlW62qwh1kDn5/Vq4uAaPlZA/scluaifhPNxdEUeFkD7CbcbOg3sPFQaQRp3qgM0A9eEL11ioDOKPA621hWkntpWXYb7kBzFHpPlVyAJGHNG5AobHMUXA0muM8nyVbfzmbKuYOIKjgKvVcNc64muC/uk/smjX5Os6gBp9X0aL0/idA/me2OyIjzN4J7vf7GYZIJjkb7O53b7W9ReoGUBm+3TRJeTxY1j7wwF7w1zvJRsUW0D/5EODiL4f/DJMJqXcnUYmIDYsKmh0tssZGzKMbxOcD5Q3qD8j3CW2y1TsmNORLuEXdkcWNqA9fMcBbjIP8dmAp+RXK68QHjjxO+N7gCwVxUzgv0f7MAAAAASUVORK5CYII=",fWe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAINSURBVHgBxVe7TsJQGP5aYINInHDrG9DRwURWHkBn3kR8Akh8ANwdxNUFfAJxcpCEbjIYwUtCENPj+ctfqNLW9vQQvuS0B85/v7UFdgwDChBClOWtIVeV/3qQq2sYhoNtghTL1RJrOHJNAr87bNxWlFtyjVhRM6iIz9p8RjQWdII9H7G3dgydzTT3WiMRCHstAW2NaVvQAfbKC3sKnnZSg5MI61H4U/KUORU9ZEEgnA2kBBdqtihI5su03gd4/ShcQwXcWl5vQxFcCxOljqCwswE2FJElhcTcVQ3/HzkTpSgqM27KoTqaRJ2bEUwUdsrbDbKjT7KixrMZweTn3YEeAwg1pDCAiKfy8TpARvAjeoq1U7+Qj+CrvrlwDh9nFjSAZO2ZOEYKA+zbdxeFfCFzFxBI1knZ9IaTjMg0eLaRAr/vBzNow/Brtd0YSGE14BF9utCGp7nwt3YSAyy6PC8EdCHgTKIIaMd4sdpa2IUBxRgtkUfFnNIbeygqhdV2kMSALl3qJWhDvWQkN4D79Jz6trGfPQokg2SRzLAPl0gN/BJ6djV1cfGSviMo76T8dK28GUYX66JvBLVk51XI4SQw/kYsKnK2HhXJawMHeSNW+b8GsBE0PNpyebP8wxUYzpdnfnsVc0vFVGwlcyXyTq6mVN6Pk584yfw8r2E5zfyJZvGd6sbhOxXa9j9UdeEHiBmEG4LR0p8AAAAASUVORK5CYII=",dWe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAIgSURBVHgBzVcxSytBEP427z3koeIJKew8QevEXuHsLC3sTS+I/0ArW0WwNpaChaWd+gtMZ5GAsTKFaMSARGPOmb2JWcN55i576gdfNtztznw7MzubAD8MhZjwfd+hYYmYJ47J42tiSSl1jLTAjokbxHu/i6qwgyuZ48AmyGBejDP2iV7IHI9YNIS4sAFxfi9G833Ov7Iigg0kMdazLnk6jJC6iAmJBGMbSSA5ZWwiIXit2PAQF7TolEOIASAnh+vnNO7CTvgKGBBGFPqvhUFyH2LLiZ1KqV5rXU3S2V8abIbfsLn+WRr+hszXzWar1nbnL1sFWMDeLSZXs/or3yHFLwU02sBJw98IfZsAh/VXrGb/aNu97zIh83OVpg/bqLW0TRd9CMiXUxBQbuohhygBctk4lSaso/QURKC3EHsj4PJH+RnWUe5uykOEAF0kadSAYdNFlIDai33nDD5ZUoi5KAFjtRZSw82LHqYQIcB5bCM1yOYmESFgvPGKb0UG34iRwFsdEQJKM0NIDRNBa39AlIDpIQWmbSyOKswEdovm8w+epEtdEN3d2zaO6naO5LKjsJbVey0RF+gfVD1UgCFih7hyQz1h/85H5ZkYsz1zuOdGFOaHFWb/azcHxHXTeagAQ0iBF8BoHHxJNeSY8miemIl/3ZGLbTTzbvqcuEmOz8L8fJls+V3ILdpD0EY7l4ljfGdUjZF3yeE+I8dV/Ga8ARyylxDY5O1eAAAAAElFTkSuQmCC",hWe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAH/SURBVHgB1VfNTsJAEJ42GGICSWNMxBsH9FwfgASPeMIDd7hrwtUT9ODdR8AnkJPxBvoClqvRwMXojUZJjAKts+vU1Jh2u1vqz5dMtmlnZr9+s+3OAvwyNFCA53kGDjW0It2ymWmaNoY0gRNX0PpeONizIqQBTNymSSZoHTQz8MxEa6GNyKcNy0Rg8i7JH+ZXRDtZKglM1KCEHYkYn0QNkoJkHYEkMOaaYg1QReDtKyAJWrAMrSg/TZCk/+yCuXcz3wcFnG9nzvI6/zx3w3wyghyViycXtIzWBwWw2Lqhm1E+etgD/zOzX0AZt298MKL+DXpEPF88UxeU8TDz/MsiKBD4Efx9ArmUKUalHyclsJXVvuSSIkBbq1PKgjIKHx+5E7VNi97PLmWVWgYOih1G+YgIDJmMKmVgMTurnIANCQj0WCIVFczVz5geqBLA2g1wcKp5eQLlHB/GlEONAOG0nJMrQ2EFoJrnAQORb5y0vAx1I74KAfktka+QAEk4wF0ttgrNNU7gMk6XHFdYK64KDZx8M8P9OhADsQgEVShEdBCs9kSyK1p8UgQITVTBOdoIDzku6JDXuezC2ksTYPW8fwWL/VwO17+X4gDv0b/fSvWE9Dhb8Jb7aup69dHcq97N8XrhybbuiUAnoyAmou43DMo7DfV5/sGDLToH/iPeAecfKtN9V185AAAAAElFTkSuQmCC",pWe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAIvSURBVHgBzVfLMgNBFL0TVKoUZVjFSi9Yyw94LJVVFtgKX8AXGF+AH5BYW8gfGH5ArCliJSuiqFKKZJw7czs6DzKSzHCqTppOd5/TfW/6YVGX8DxPmf9bllWiKAHBRXAfvAAfvfY4lTYq7LhWGGEUOyCXFfASLAo1bFCBaXBB6lxwGytTpG4AYRvMycxuwS2uC9FPgVnpw9gL06/dIHoA59cDfI3jGBNQYTtpcWaaegTGyEjOdDbRJK6oT+CJGCbsnxqeSkNFfYb8ihi57xpkpcEWRQRJZEam+Qu99C5FDFnlxlAYs1cUMYxQ+KswKPXplxrR8k31du7qg6LE/HWVzqcHfE2wkJB6VX73KC6UP3ytKf7QBsZ4BeLCc9Uvxk0D9nOMBspBlBtWYPylSrFBVts2DSAE8eWAiXoI4swBSXhlGvgz/BsDd6nBjpejviE15GuVTAOxYiRQrZgGijNJig2p4AB4Mg2UppOWdhat+BDRTNIPgWsaKPDHxkT0ebA0WtfI1w3g6uyiOFq1E7RiR2ciiwluTviSB/oh06CGM/oERebwoUb5h/7ujIb4EcSzur5lujCRR7F+XKlRDiZ63SE5r1h8zW4Vb2tATDgodu6xZbKJ4qunT7BfCXM4V8HRhC+zC3Gnud23AZfrWZ7kqXX1Fpi4RslHd7vDaxKbGW9o6eHgb8EZ6EieUWgDTUb4/rZIwQEy26HLHQXvRhcsdHo1d5XycqNteWB080T/BF3ljHKSXiV5AAAAAElFTkSuQmCC",vWe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAEFSURBVHgB7VbtDYIwEL0S//ivcQG7gR2BUXQScQLYAFZwAnQSmACZwPoaD20MhpLw8acveSm0d+8evYaUaGUI30BjjMRwBA+gBhUoebkFa+YVvAkhah/dQQMoHGM4g7FT7M7FWp6TbGrPxiwK8OJrpK+wBFPzxgNM2MxQngYLsOLclHdvVHHlCGSjBb4aGWtYLeWbqDmh8vnikXp6KFg5wYomgpcu93zy4n9MyL6AgvulaSbYlnYH83dB80JCM8M5mLE7WdqtoQXgtLq074InTd48KW8MLYHTToAR4SclIloZwUAwEAwEA8FAMBAMBAOb7kFv7S2FFoGt1eFzJaMVYK9ktDZeaZ8A1X1XdQUAAAAASUVORK5CYII=",gWe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAH9SURBVHgB1Ze/TsMwEMa/BBBCoCowlQGpAzt9ABBdYYEFVgovAAwMbPAG8AL8mVlgYqQjG+wgNQMSbA1qRVVoa3zOtRSp1LHTFPhJrqPmfPf5nJwd4JdxYIkQwpNdXrZAtoLjOD4GhQyela0kvijSfxgEHcGLfJ3h61LiIjqCUcv88L+HpJDOzzjlmS73snzvFEnQEeCgh80B2+SQgIAbSrHGxuNn4QZ9Dp7jmeUj2PY/C7z2xYi2RlnQFiJ+4Iq3b8Lfe2qcIwL76aGV5ZRDr+SkLFABYgrIy+503W/ipS4QhdlRByczLl3uSgFHvWxd6Nl4rInIwQmyv6sq+xWdbU8BnP7cdTl68Bb3oYCcrjDpMqBK610VxnSMWUUMAauVZphSUygDNBY8CVsBczbBWzyEYxcRQ0D2IYYAFp+BjYDWhvNYg72Ad9V53TYvrQCw8pc6rCk3vvsyFRCbSlO/fIkKiMKfFuDTT3oY1ky47a0mMBbAx+xgdhTWLEyEwaWve5gKYK6WUq6cCazIjqkMXPay0bk+o+CbU+bfL3k5ZnpYjTuErQCZuoLsjtc8Vzk0Cb41pVwf676YInmVlYwOFdvPHwIXr0KVWKqQvNmoJUqPAPPjDpZS7ZlT8B30CzoZyVYQegomB1LjxeW6Tlss9a3DBr1mPsKP1AD/iU9os2nWLKvVrwAAAABJRU5ErkJggg==",yWe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAGZSURBVHgB7ZZPTsJAFMa/aSCERLRhBXFhFxygrl0IO+JGWeDWPxfAI+ARuAF79m4tJ5ADsKgLo+4gMTFE7PheO60tEYIRWhfzJY9h2mG+35t5pQNkLMEfkoQMJEi5WN+hGCIdHVPUo54M1EVKYq9w1Q1kLA0QFeHdVJ4ejecHSEHkZZ/siSTA66e0DQkbKYi8oP4BdA1oAA2gATSABogAnGZJYCclnOau/yIaxgFuq3mBq7LAtnVJHtWc73MTAdDh1KGm1zYN2MXtQdQKwHXZt+yT58j3Dm/SGdGk5uH5Q1qdJw8vc2xUlTxluG9w9i51DwlgwtejXVcXGrQVLg+s5LAxLZg3QvMEgILgAa0Qolb4+3bYxYR5S3l8e/70I9oOi5p7Cmsw8TCYyF9vCT9RXHDnpp+jiyBzd3Hc0hRVTXQpOlQXGL1LDKYS4xlWijPmQm6bAiXDn77H88SXfS2AGIilQC64zzC8GuOZxJsXjOFsK/QYs7kyZQ2VsbNq/rU3WYHUKc4o+Dsf4U11m7N7pBip6C/L+N/pC9e2fyrKyHHRAAAAAElFTkSuQmCC",mWe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAHxSURBVHgBzVe9TgJBEP6OaGz8uVJjwZlojw9gcnba2djzBvoIPoI+gfQ2vAHX2CramCgJNAidQFA0B7fO7u0FgnFh50D8kskSbr6Zb39uZg9YMBwwIITwaTghy5K5ZA9kRcdxAswTlNgjK4kYb2RlskAMcS19MA/o5FWd+ILMHXt+rkVUx5/NSsC9Tp4z+OS0TwmzBAXM69nlp/A9n9bXRoBc1sDCvyQ5mAVGZu9bcHxbjilYkTMbfRaukRbJ6wVLEKcgRSAN0izlyNblTH4ZmJGQy7BHoEcfKQT4MjmV2BYsQZwaDZLnmfyWYMZGPYR78NTPg4FOhNZ6Jp2AnceeyJIX6zTfvgscr5n73aQtyDb7Alx0B4rrsgQkp7cbgY1mXw2uqTmZVkCRKl9g42XI9cEQkIuD8LegMuR6YAjw5PKn2YIRvgeOgGbIn/1QhGAL2Egz+wSNUA2sQ/gn+NcC2qszkDcphulxeXfFweakYm3A5jKwt6JKcREMAZdktavtDEuETC65MoZJgLFT6HJcaoTCPatHSWmdOvnWkmrj+7o12wsYF3HTFij3xK/lWa7U0bqDU9fBWkYlP6TknMvMDxGevuMpdAaReP6MxN1HbK9hpP4bQTDtJ5rVx6kO6iPuE/J3UmBqiG8/cixwblALwzcEWXElyEe+nAAAAABJRU5ErkJggg==",bWe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAIdSURBVHgBzVc7TiNBEH099gqhtaXRbuJsJ9iNd/YAq53NCJHgAOYGcALgBJARQkKACOAGhhNgciTGEQnCtkBCCGmaqpnCNP60Z7Db5kml9nRX13vuT3U3MGeoIs5a64iKZbLfZCGZL00dsibZJdmpUuosZ8h8AoR4kywSMiaKxSBCWNA/+eb6bRJygElAxD7Zic5wTbbOdWP86+LL2Lf5jyMPjEDrKAjqs2UID4r0NcnbZCE+CO4rMYqJmAb5EBEXuaaDnDZl6JYxJXAsibkzzjEQx11MGRxTYkc2p8aHFk0+Ab5MRcOsV4ZDREVj71Y3D7tJEw6w8d2LVnwV0M//r8mqbLRzAxoPSehpTLz4huGom2DFL/W4GB7mDFMAp1hUSoWOh0KovY13PFJAdcZjMiCgVoYzVDz1jmuoAJeolmAVkKJSgjNUPIsA2pdxn5MzAcQ1egRmjX4BrVrZ4Tb8ksaOYREwc/QLaLtchLLFW7AI6MwzETFabhNRWnRsApxCElEbFgEdPoyWqtPfCau+guywrln/jkluQnxjCS4eNfbvEjQfMRHCRWDtm4c/iynVOVn9NekNCDCE1JG9hIKbZ43jriYhGldPyE0aEuHfrwq/FlIKnnd+KQ3cNa1jLULY0ifXfZKJeEhApe758eLik+7nAicbPtJ7YfkfHyB7Lw497PK+DQNkb79ISv7+YbhwcJ5bvkvGUo4k/VR4Ad8OMXzhx1DQAAAAAElFTkSuQmCC",SWe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAFXSURBVHgB7Ze/SsNQGMXPvbaISLE4SB3ELO5xVtBRXFSws8kTODvZF1E6u9jJWV/AJxDaxX9LrQ4Omub6fTGGWyxt+ic3He4PTsJNhnO+Qwj3Ajkj+KII5IAgCtr6lnQHM+yQdpOV+qUGQ7DXX+sSOWMDJB/hzbs62HoI1mEA8nL3l0RvgNeucqWCCwOQF+I/gP0GbAAbwAawAWYowF5JoFJA5lSKwPai+BfAXy2K1pUzB29ZICuOywIXaxIb86JDyyN+lrjRDsmhW4108vytcPoY4iXAVOCpz1YkNhciuwbJp/1opyeAFsSj2znJuWyHqLcn2zDz1D61WpKRIRs39Pd9+55GG4OmHhpAC+JhjDaGTZ06QBzCQco20k49UgAtiIcBbYwy9dhwG6Q6HyqevkJVbQaq2grU/WcYn23UNamMrOE2SE12/OhG5m+kQ5hEa8PM1FnxA/o+v+QWy9UfAAAAAElFTkSuQmCC",wWe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAHMSURBVHgB7ZexTsJAGMf/JQghwaRxkbGDMtcHMMGRzcXEUZ9AVyfgCYAHIODoxhvI5Fx2DSxGF0MHNTEU6nfkKxrF3ldswcFfcim0/7v733d3X+6ANWNgSXzfL9HD5r9dwzCGWBXUed3/Th2rgDpqc4cNKiYVi0qV37WRJNRBhTuqLvgWmDhHEvBIR2GjpG/XrDERN9Roh0doIdzkwgjFYWAgmeMgCogTteV4ZIcRtCUISEFG0HFPoHWouJ/qhCJKRCqs92NYxwPvUqJvWemzYgYOJacDnTYNGfbNy9Q0UkZFIu6/TlHMpGyJVjsFvKXMRw9iWGuG7RixAXC+v32DmIfx/Kc2H0gXYSSepz7WaiAK/wYkBlRSQT4hq2IDhQ2I2c3O85uj02oN8FHLLUhTFsFal+q6Oq00sM5OVn58ZG1fopUa6KuwStaB0uzlZga04Y9ioKsalkTBzs01XQgQGaC57NHDPd3SG9jPzx5DrhOPAaapQhu2GNVOKW/OmuxBSBQDDSruxfbPVThCauXXELcB3lI1FYWTBVOh3vHom4nekoLTcetp4h8NPL985/lXo0lwO+pgFfCt6CsNLMFvLqcWPg6ejnTV/zneAc25FyGLqucAAAAAAElFTkSuQmCC",xWe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAGgSURBVHgB7ZW/TgJBEMa/OyHGRJILhcHKK+zVBzBSGisabUVfQFor8QmAJ0BbKzpbEh9ArDWKlVZKjIaYCOsMzF1WvcuxhqvYXzIZuNub77s/OwNYLJZZx4EhSimfkifxm47jOD0YkGiABIuUShRrFOsxwjpsoENxQ9EiQ22YGiBRFjmiqIhgTwpy4a5E1J2yQV/ylhzjtW2KUzLTRRIkXqF4VWPa/ATEkBF8DUWJ4kxqcc2TpIuamrCPKcG1NCPNuEU1WVBFSnBt0aghwmGq4ppWXbSK+sGKHPSRMvJtMPyBI6Of3LkfPGzefiFN9h4HuFiZC/+7knl74SBv3JeM2c6FGq3QgDSLxq7nopyiCa59mB9JNoKe8EONtwql/cu3IZovCs9TehuFLHC85GJjYSR3TuLl4Nyf25WdwF3QYyNXHwqdPvA+hBGLdKOr8/xaQ2HunNwN6/q6uFbsU6pi3E75N677CnefCk/0VDhHCRayDpYzLOyMxHNuKNygqEcNKpNhxP2dB9IkwyiYG/8bRgmGPDETJdybaOBYLBaLxjcXiO3b04QFJQAAAABJRU5ErkJggg==",_We="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAJkSURBVHgBxVexTuNAEJ21Up0OyReau85/EP8Bbq86iuNOuuYiKjryB4QvQPwAmJoCOkqCREWT9EQiVKEKFgSiEGQzs54NxnawnXjhSS/rmF3e25nd2Y2AOREEgRX56gkhPNAJFDSRDeQp8jZI4pb/Vo+ZexcijzA2m8gGkp7PkB2mAr23kA6yhuwhXYzKNiwCmgnyime4j7RzjLGRLo9pF4nGLHGiAwXB6Qp4vFl0cFTcgjnB0SCcFh2oQpgZ8hz/S0WikXeAct2EkhDZOdmp4M5XUCJoDeWKAueeUIeSwRNLrAUR60QOd/5e+17/CUqtbP+qYG4sG5SCb9GqWYn1+9UdB9CfYK4EFNs6Gbh4BNhYlo+rSFe9N2L9nPYoAB3ojgGG/tQAJAyoYnP+ANpwcicdrKQagLCOw+VYTwQI7ZFszGhljRqwKf8cJi3ovKbXSTNQ6z+DVtDkOML2GwNcoazOSF/4FbpPsll5Y0A5opWq3UAYAVMdcsqA3PP3GvOv0J9MH62oAfnlZvIRKQhSDcgIDD8gAnEY8MlQBnr08b0C2vH1dcpe1ECLPtbMzEvywvi5NNXoTA3g8djD5mDNNOC3RhP1qgDSQOyyZuI+cITN6t7AB3dQ7o4g8fWqFD9A8bp6n5guXUix+X/o+bA/WPxsoJyT+B8zKZ5qgE00sdnCi4k0QSX6puA5QcKUTlpXS4aU2UbxZrzfzIRzqXSB6zYdImSCSilVzKGfTNGPisCdJMD+Ej4z6KdcE8VbaTp5fhtaEN5iHAirVy1jyDWEK7yFPFaLbRbmWvJ8eibujFliaXgB4IWJmLmrQg4AAAAASUVORK5CYII=",CWe=""+new URL("js-9d913803.png",import.meta.url).href,TWe=""+new URL("js2-8139f2ef.png",import.meta.url).href,EWe=""+new URL("js3-a89bbe83.png",import.meta.url).href;const w0=(t,e)=>{const n=t.__vccOpts||t;for(const[r,a]of e)n[r]=a;return n},lJ=t=>(Sb("data-v-53c2b4b4"),t=t(),wb(),t),MWe={class:"my-header"},DWe=["id"],AWe={class:"demo-input-suffix firsttitle leftbgimg2 my_content1"},kWe={class:"guand_1"},RWe=lJ(()=>R("span",{class:"spantext"},"搜索",-1)),LWe=[RWe],OWe=lJ(()=>R("p",null,"暂无数据",-1)),VWe={class:"demo-pagination-block",style:{"margin-top":"20px"}},NWe={class:"dialog-footer footer_div l_btn"},IWe={class:"footerbtn flex1"},BWe={class:"borderimg"},$We={class:"footerbtn flex1"},PWe={class:"borderimg"},FWe={__name:"NodeLine",props:{},emits:["queding"],setup(t,{expose:e,emit:n}){B({dianadddialog:!1});let r=B(99),a=B(500),i=B([]);const o=B(),s=B([]);let l=B(!1),u=B(1),c=B(""),f=B("");const d=B(1),h=B(5);Ut(()=>{});const p=({row:_,rowIndex:x})=>x%2!=0?"evenRow":"oddRow",v=_=>{g()},g=()=>{const _={transCode:"D00000",count:h.value,page:d.value,searchtag:f.value};Rn(_).then(x=>{i.value=x.rows,u.value=x.total}).catch(x=>{wt.error(x.returnMsg)})};function y(){f.value=c.value,g()}const m=_=>{},S=(_,x)=>{if(_.length>1){o.value.clearSelection(),o.value.toggleRowSelection(x,!0);let T=[];T.push(_[1]),s.value=T;return}_.length==1?s.value=_:_.length==0},w=()=>{d.value=1,s.value.length!=0&&(console.log(s.value[0]),n("queding",s.value[0]))},C=()=>{f.value="",w()};return e({dialogVisiblenode:l,pipelinedata:g,searchtaggd:c}),(_,x)=>{const T=$e("el-image"),M=$e("el-input"),E=$e("el-form-item"),A=$e("el-table-column"),k=$e("el-table"),L=$e("el-pagination");return G(),re("div",null,[N(b(Mr),{modelValue:b(l),"onUpdate:modelValue":x[5]||(x[5]=I=>ft(l)?l.value=I:l=I),width:"700","z-index":9999,"align-center":"","append-to-body":!0,class:"dialog_class bgcolor tianjia asideg asidegbg leftbgimg"},{header:j(({titleId:I,titleClass:P})=>[R("div",MWe,[N(T,{src:b(Cr),fit:"contain"},null,8,["src"]),R("h4",{id:I,class:Y(P)}," 选择节点",10,DWe)])]),default:j(()=>[R("div",AWe,[R("div",kWe,[N(E,{label:"节点选择","label-width":b(r)},{default:j(()=>[N(M,{modelValue:b(c),"onUpdate:modelValue":x[0]||(x[0]=I=>ft(c)?c.value=I:c=I),class:"w-50 m-2",placeholder:"节点"},null,8,["modelValue"])]),_:1},8,["label-width"]),R("div",{class:"asdis_btn"},[R("div",{class:"flex_a",style:{"margin-top":"10px"}},[R("div",{class:"btns",onClick:y},LWe)])])]),N(k,{"row-class-name":p,"max-height":b(a),ref_key:"multipleTableRef",ref:o,data:b(i),style:{width:"100%"},onSelectionChange:m,onSelect:S,"show-header":"false","header-cell-style":{background:"rgba(13, 22, 57, 0.96) "}},{empty:j(()=>[OWe]),default:j(()=>[N(A,{type:"selection",width:"55"}),N(A,{property:"id",label:"节点编号"}),N(A,{property:"name",label:"名称"}),N(A,{property:"x",label:"x"}),N(A,{property:"y",label:"y"}),N(A,{property:"z",label:"z"})]),_:1},8,["max-height","data","header-cell-style"]),R("div",VWe,[N(b(x1),{locale:b(Wg)},{default:j(()=>[N(L,{"current-page":d.value,"onUpdate:currentPage":x[1]||(x[1]=I=>d.value=I),"page-size":h.value,"onUpdate:pageSize":x[2]||(x[2]=I=>h.value=I),small:"",background:"",layout:"prev, total,pager, next, jumpe,",total:parseInt(b(u)),class:"mt-4",onCurrentChange:v},null,8,["current-page","page-size","total"])]),_:1},8,["locale"])]),R("div",NWe,[R("div",IWe,[R("div",BWe,[N(b(ct),{onClick:x[3]||(x[3]=I=>{ft(l)?l.value=!1:l=!1,ft(f)?f.value="":f=""})},{default:j(()=>[Be("取消")]),_:1})])]),R("div",$We,[R("div",PWe,[N(b(ct),{onClick:x[4]||(x[4]=I=>{C(),ft(l)?l.value=!1:l=!1})},{default:j(()=>[Be(" 确定 ")]),_:1})])])])])]),_:1},8,["modelValue"])])}}},uJ=w0(FWe,[["__scopeId","data-v-53c2b4b4"]]);var cJ={exports:{}};/*!
  67. * jQuery JavaScript Library v3.7.1
  68. * https://jquery.com/
  69. *
  70. * Copyright OpenJS Foundation and other contributors
  71. * Released under the MIT license
  72. * https://jquery.org/license
  73. *
  74. * Date: 2023-08-28T13:37Z
  75. */(function(t){(function(e,n){t.exports=e.document?n(e,!0):function(r){if(!r.document)throw new Error("jQuery requires a window with a document");return n(r)}})(typeof window<"u"?window:ya,function(e,n){var r=[],a=Object.getPrototypeOf,i=r.slice,o=r.flat?function(D){return r.flat.call(D)}:function(D){return r.concat.apply([],D)},s=r.push,l=r.indexOf,u={},c=u.toString,f=u.hasOwnProperty,d=f.toString,h=d.call(Object),p={},v=function(O){return typeof O=="function"&&typeof O.nodeType!="number"&&typeof O.item!="function"},g=function(O){return O!=null&&O===O.window},y=e.document,m={type:!0,src:!0,nonce:!0,noModule:!0};function S(D,O,H){H=H||y;var X,te,ne=H.createElement("script");if(ne.text=D,O)for(X in m)te=O[X]||O.getAttribute&&O.getAttribute(X),te&&ne.setAttribute(X,te);H.head.appendChild(ne).parentNode.removeChild(ne)}function w(D){return D==null?D+"":typeof D=="object"||typeof D=="function"?u[c.call(D)]||"object":typeof D}var C="3.7.1",_=/HTML$/i,x=function(D,O){return new x.fn.init(D,O)};x.fn=x.prototype={jquery:C,constructor:x,length:0,toArray:function(){return i.call(this)},get:function(D){return D==null?i.call(this):D<0?this[D+this.length]:this[D]},pushStack:function(D){var O=x.merge(this.constructor(),D);return O.prevObject=this,O},each:function(D){return x.each(this,D)},map:function(D){return this.pushStack(x.map(this,function(O,H){return D.call(O,H,O)}))},slice:function(){return this.pushStack(i.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(x.grep(this,function(D,O){return(O+1)%2}))},odd:function(){return this.pushStack(x.grep(this,function(D,O){return O%2}))},eq:function(D){var O=this.length,H=+D+(D<0?O:0);return this.pushStack(H>=0&&H<O?[this[H]]:[])},end:function(){return this.prevObject||this.constructor()},push:s,sort:r.sort,splice:r.splice},x.extend=x.fn.extend=function(){var D,O,H,X,te,ne,le=arguments[0]||{},Le=1,Me=arguments.length,je=!1;for(typeof le=="boolean"&&(je=le,le=arguments[Le]||{},Le++),typeof le!="object"&&!v(le)&&(le={}),Le===Me&&(le=this,Le--);Le<Me;Le++)if((D=arguments[Le])!=null)for(O in D)X=D[O],!(O==="__proto__"||le===X)&&(je&&X&&(x.isPlainObject(X)||(te=Array.isArray(X)))?(H=le[O],te&&!Array.isArray(H)?ne=[]:!te&&!x.isPlainObject(H)?ne={}:ne=H,te=!1,le[O]=x.extend(je,ne,X)):X!==void 0&&(le[O]=X));return le},x.extend({expando:"jQuery"+(C+Math.random()).replace(/\D/g,""),isReady:!0,error:function(D){throw new Error(D)},noop:function(){},isPlainObject:function(D){var O,H;return!D||c.call(D)!=="[object Object]"?!1:(O=a(D),O?(H=f.call(O,"constructor")&&O.constructor,typeof H=="function"&&d.call(H)===h):!0)},isEmptyObject:function(D){var O;for(O in D)return!1;return!0},globalEval:function(D,O,H){S(D,{nonce:O&&O.nonce},H)},each:function(D,O){var H,X=0;if(T(D))for(H=D.length;X<H&&O.call(D[X],X,D[X])!==!1;X++);else for(X in D)if(O.call(D[X],X,D[X])===!1)break;return D},text:function(D){var O,H="",X=0,te=D.nodeType;if(!te)for(;O=D[X++];)H+=x.text(O);return te===1||te===11?D.textContent:te===9?D.documentElement.textContent:te===3||te===4?D.nodeValue:H},makeArray:function(D,O){var H=O||[];return D!=null&&(T(Object(D))?x.merge(H,typeof D=="string"?[D]:D):s.call(H,D)),H},inArray:function(D,O,H){return O==null?-1:l.call(O,D,H)},isXMLDoc:function(D){var O=D&&D.namespaceURI,H=D&&(D.ownerDocument||D).documentElement;return!_.test(O||H&&H.nodeName||"HTML")},merge:function(D,O){for(var H=+O.length,X=0,te=D.length;X<H;X++)D[te++]=O[X];return D.length=te,D},grep:function(D,O,H){for(var X,te=[],ne=0,le=D.length,Le=!H;ne<le;ne++)X=!O(D[ne],ne),X!==Le&&te.push(D[ne]);return te},map:function(D,O,H){var X,te,ne=0,le=[];if(T(D))for(X=D.length;ne<X;ne++)te=O(D[ne],ne,H),te!=null&&le.push(te);else for(ne in D)te=O(D[ne],ne,H),te!=null&&le.push(te);return o(le)},guid:1,support:p}),typeof Symbol=="function"&&(x.fn[Symbol.iterator]=r[Symbol.iterator]),x.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(D,O){u["[object "+O+"]"]=O.toLowerCase()});function T(D){var O=!!D&&"length"in D&&D.length,H=w(D);return v(D)||g(D)?!1:H==="array"||O===0||typeof O=="number"&&O>0&&O-1 in D}function M(D,O){return D.nodeName&&D.nodeName.toLowerCase()===O.toLowerCase()}var E=r.pop,A=r.sort,k=r.splice,L="[\\x20\\t\\r\\n\\f]",I=new RegExp("^"+L+"+|((?:^|[^\\\\])(?:\\\\.)*)"+L+"+$","g");x.contains=function(D,O){var H=O&&O.parentNode;return D===H||!!(H&&H.nodeType===1&&(D.contains?D.contains(H):D.compareDocumentPosition&&D.compareDocumentPosition(H)&16))};var P=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function F(D,O){return O?D==="\0"?"�":D.slice(0,-1)+"\\"+D.charCodeAt(D.length-1).toString(16)+" ":"\\"+D}x.escapeSelector=function(D){return(D+"").replace(P,F)};var $=y,W=s;(function(){var D,O,H,X,te,ne=W,le,Le,Me,je,lt,pt=x.expando,Je=0,Lt=0,Mn=_S(),cr=_S(),Hn=_S(),ui=_S(),Pa=function(Se,ze){return Se===ze&&(te=!0),0},Dl="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",Al="(?:\\\\[\\da-fA-F]{1,6}"+L+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",Jn="\\["+L+"*("+Al+")(?:"+L+"*([*^$|!~]?=)"+L+`*(?:'((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)"|(`+Al+"))|)"+L+"*\\]",Sd=":("+Al+`)(?:\\((('((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)")|((?:\\\\.|[^\\\\()[\\]]|`+Jn+")*)|.*)\\)|)",dr=new RegExp(L+"+","g"),pa=new RegExp("^"+L+"*,"+L+"*"),Z0=new RegExp("^"+L+"*([>+~]|"+L+")"+L+"*"),JE=new RegExp(L+"|>"),kl=new RegExp(Sd),Q0=new RegExp("^"+Al+"$"),Rl={ID:new RegExp("^#("+Al+")"),CLASS:new RegExp("^\\.("+Al+")"),TAG:new RegExp("^("+Al+"|[*])"),ATTR:new RegExp("^"+Jn),PSEUDO:new RegExp("^"+Sd),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+L+"*(even|odd|(([+-]|)(\\d*)n|)"+L+"*(?:([+-]|)"+L+"*(\\d+)|))"+L+"*\\)|)","i"),bool:new RegExp("^(?:"+Dl+")$","i"),needsContext:new RegExp("^"+L+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+L+"*((?:-\\d)?\\d*)"+L+"*\\)|)(?=[^-]|$)","i")},kc=/^(?:input|select|textarea|button)$/i,Rc=/^h\d$/i,Yo=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,eM=/[+~]/,Du=new RegExp("\\\\[\\da-fA-F]{1,6}"+L+"?|\\\\([^\\r\\n\\f])","g"),Au=function(Se,ze){var Qe="0x"+Se.slice(1)-65536;return ze||(Qe<0?String.fromCharCode(Qe+65536):String.fromCharCode(Qe>>10|55296,Qe&1023|56320))},lde=function(){Lc()},ude=TS(function(Se){return Se.disabled===!0&&M(Se,"fieldset")},{dir:"parentNode",next:"legend"});function cde(){try{return le.activeElement}catch{}}try{ne.apply(r=i.call($.childNodes),$.childNodes),r[$.childNodes.length].nodeType}catch{ne={apply:function(ze,Qe){W.apply(ze,i.call(Qe))},call:function(ze){W.apply(ze,i.call(arguments,1))}}}function Rr(Se,ze,Qe,at){var ht,$t,Kt,rn,Yt,qn,xn,An=ze&&ze.ownerDocument,Zn=ze?ze.nodeType:9;if(Qe=Qe||[],typeof Se!="string"||!Se||Zn!==1&&Zn!==9&&Zn!==11)return Qe;if(!at&&(Lc(ze),ze=ze||le,Me)){if(Zn!==11&&(Yt=Yo.exec(Se)))if(ht=Yt[1]){if(Zn===9)if(Kt=ze.getElementById(ht)){if(Kt.id===ht)return ne.call(Qe,Kt),Qe}else return Qe;else if(An&&(Kt=An.getElementById(ht))&&Rr.contains(ze,Kt)&&Kt.id===ht)return ne.call(Qe,Kt),Qe}else{if(Yt[2])return ne.apply(Qe,ze.getElementsByTagName(Se)),Qe;if((ht=Yt[3])&&ze.getElementsByClassName)return ne.apply(Qe,ze.getElementsByClassName(ht)),Qe}if(!ui[Se+" "]&&(!je||!je.test(Se))){if(xn=Se,An=ze,Zn===1&&(JE.test(Se)||Z0.test(Se))){for(An=eM.test(Se)&&tM(ze.parentNode)||ze,(An!=ze||!p.scope)&&((rn=ze.getAttribute("id"))?rn=x.escapeSelector(rn):ze.setAttribute("id",rn=pt)),qn=J0(Se),$t=qn.length;$t--;)qn[$t]=(rn?"#"+rn:":scope")+" "+CS(qn[$t]);xn=qn.join(",")}try{return ne.apply(Qe,An.querySelectorAll(xn)),Qe}catch{ui(Se,!0)}finally{rn===pt&&ze.removeAttribute("id")}}}return R$(Se.replace(I,"$1"),ze,Qe,at)}function _S(){var Se=[];function ze(Qe,at){return Se.push(Qe+" ")>O.cacheLength&&delete ze[Se.shift()],ze[Qe+" "]=at}return ze}function $s(Se){return Se[pt]=!0,Se}function jp(Se){var ze=le.createElement("fieldset");try{return!!Se(ze)}catch{return!1}finally{ze.parentNode&&ze.parentNode.removeChild(ze),ze=null}}function fde(Se){return function(ze){return M(ze,"input")&&ze.type===Se}}function dde(Se){return function(ze){return(M(ze,"input")||M(ze,"button"))&&ze.type===Se}}function A$(Se){return function(ze){return"form"in ze?ze.parentNode&&ze.disabled===!1?"label"in ze?"label"in ze.parentNode?ze.parentNode.disabled===Se:ze.disabled===Se:ze.isDisabled===Se||ze.isDisabled!==!Se&&ude(ze)===Se:ze.disabled===Se:"label"in ze?ze.disabled===Se:!1}}function wd(Se){return $s(function(ze){return ze=+ze,$s(function(Qe,at){for(var ht,$t=Se([],Qe.length,ze),Kt=$t.length;Kt--;)Qe[ht=$t[Kt]]&&(Qe[ht]=!(at[ht]=Qe[ht]))})})}function tM(Se){return Se&&typeof Se.getElementsByTagName<"u"&&Se}function Lc(Se){var ze,Qe=Se?Se.ownerDocument||Se:$;return Qe==le||Qe.nodeType!==9||!Qe.documentElement||(le=Qe,Le=le.documentElement,Me=!x.isXMLDoc(le),lt=Le.matches||Le.webkitMatchesSelector||Le.msMatchesSelector,Le.msMatchesSelector&&$!=le&&(ze=le.defaultView)&&ze.top!==ze&&ze.addEventListener("unload",lde),p.getById=jp(function(at){return Le.appendChild(at).id=x.expando,!le.getElementsByName||!le.getElementsByName(x.expando).length}),p.disconnectedMatch=jp(function(at){return lt.call(at,"*")}),p.scope=jp(function(){return le.querySelectorAll(":scope")}),p.cssHas=jp(function(){try{return le.querySelector(":has(*,:jqfake)"),!1}catch{return!0}}),p.getById?(O.filter.ID=function(at){var ht=at.replace(Du,Au);return function($t){return $t.getAttribute("id")===ht}},O.find.ID=function(at,ht){if(typeof ht.getElementById<"u"&&Me){var $t=ht.getElementById(at);return $t?[$t]:[]}}):(O.filter.ID=function(at){var ht=at.replace(Du,Au);return function($t){var Kt=typeof $t.getAttributeNode<"u"&&$t.getAttributeNode("id");return Kt&&Kt.value===ht}},O.find.ID=function(at,ht){if(typeof ht.getElementById<"u"&&Me){var $t,Kt,rn,Yt=ht.getElementById(at);if(Yt){if($t=Yt.getAttributeNode("id"),$t&&$t.value===at)return[Yt];for(rn=ht.getElementsByName(at),Kt=0;Yt=rn[Kt++];)if($t=Yt.getAttributeNode("id"),$t&&$t.value===at)return[Yt]}return[]}}),O.find.TAG=function(at,ht){return typeof ht.getElementsByTagName<"u"?ht.getElementsByTagName(at):ht.querySelectorAll(at)},O.find.CLASS=function(at,ht){if(typeof ht.getElementsByClassName<"u"&&Me)return ht.getElementsByClassName(at)},je=[],jp(function(at){var ht;Le.appendChild(at).innerHTML="<a id='"+pt+"' href='' disabled='disabled'></a><select id='"+pt+"-\r\\' disabled='disabled'><option selected=''></option></select>",at.querySelectorAll("[selected]").length||je.push("\\["+L+"*(?:value|"+Dl+")"),at.querySelectorAll("[id~="+pt+"-]").length||je.push("~="),at.querySelectorAll("a#"+pt+"+*").length||je.push(".#.+[+~]"),at.querySelectorAll(":checked").length||je.push(":checked"),ht=le.createElement("input"),ht.setAttribute("type","hidden"),at.appendChild(ht).setAttribute("name","D"),Le.appendChild(at).disabled=!0,at.querySelectorAll(":disabled").length!==2&&je.push(":enabled",":disabled"),ht=le.createElement("input"),ht.setAttribute("name",""),at.appendChild(ht),at.querySelectorAll("[name='']").length||je.push("\\["+L+"*name"+L+"*="+L+`*(?:''|"")`)}),p.cssHas||je.push(":has"),je=je.length&&new RegExp(je.join("|")),Pa=function(at,ht){if(at===ht)return te=!0,0;var $t=!at.compareDocumentPosition-!ht.compareDocumentPosition;return $t||($t=(at.ownerDocument||at)==(ht.ownerDocument||ht)?at.compareDocumentPosition(ht):1,$t&1||!p.sortDetached&&ht.compareDocumentPosition(at)===$t?at===le||at.ownerDocument==$&&Rr.contains($,at)?-1:ht===le||ht.ownerDocument==$&&Rr.contains($,ht)?1:X?l.call(X,at)-l.call(X,ht):0:$t&4?-1:1)}),le}Rr.matches=function(Se,ze){return Rr(Se,null,null,ze)},Rr.matchesSelector=function(Se,ze){if(Lc(Se),Me&&!ui[ze+" "]&&(!je||!je.test(ze)))try{var Qe=lt.call(Se,ze);if(Qe||p.disconnectedMatch||Se.document&&Se.document.nodeType!==11)return Qe}catch{ui(ze,!0)}return Rr(ze,le,null,[Se]).length>0},Rr.contains=function(Se,ze){return(Se.ownerDocument||Se)!=le&&Lc(Se),x.contains(Se,ze)},Rr.attr=function(Se,ze){(Se.ownerDocument||Se)!=le&&Lc(Se);var Qe=O.attrHandle[ze.toLowerCase()],at=Qe&&f.call(O.attrHandle,ze.toLowerCase())?Qe(Se,ze,!Me):void 0;return at!==void 0?at:Se.getAttribute(ze)},Rr.error=function(Se){throw new Error("Syntax error, unrecognized expression: "+Se)},x.uniqueSort=function(Se){var ze,Qe=[],at=0,ht=0;if(te=!p.sortStable,X=!p.sortStable&&i.call(Se,0),A.call(Se,Pa),te){for(;ze=Se[ht++];)ze===Se[ht]&&(at=Qe.push(ht));for(;at--;)k.call(Se,Qe[at],1)}return X=null,Se},x.fn.uniqueSort=function(){return this.pushStack(x.uniqueSort(i.apply(this)))},O=x.expr={cacheLength:50,createPseudo:$s,match:Rl,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(Se){return Se[1]=Se[1].replace(Du,Au),Se[3]=(Se[3]||Se[4]||Se[5]||"").replace(Du,Au),Se[2]==="~="&&(Se[3]=" "+Se[3]+" "),Se.slice(0,4)},CHILD:function(Se){return Se[1]=Se[1].toLowerCase(),Se[1].slice(0,3)==="nth"?(Se[3]||Rr.error(Se[0]),Se[4]=+(Se[4]?Se[5]+(Se[6]||1):2*(Se[3]==="even"||Se[3]==="odd")),Se[5]=+(Se[7]+Se[8]||Se[3]==="odd")):Se[3]&&Rr.error(Se[0]),Se},PSEUDO:function(Se){var ze,Qe=!Se[6]&&Se[2];return Rl.CHILD.test(Se[0])?null:(Se[3]?Se[2]=Se[4]||Se[5]||"":Qe&&kl.test(Qe)&&(ze=J0(Qe,!0))&&(ze=Qe.indexOf(")",Qe.length-ze)-Qe.length)&&(Se[0]=Se[0].slice(0,ze),Se[2]=Qe.slice(0,ze)),Se.slice(0,3))}},filter:{TAG:function(Se){var ze=Se.replace(Du,Au).toLowerCase();return Se==="*"?function(){return!0}:function(Qe){return M(Qe,ze)}},CLASS:function(Se){var ze=Mn[Se+" "];return ze||(ze=new RegExp("(^|"+L+")"+Se+"("+L+"|$)"))&&Mn(Se,function(Qe){return ze.test(typeof Qe.className=="string"&&Qe.className||typeof Qe.getAttribute<"u"&&Qe.getAttribute("class")||"")})},ATTR:function(Se,ze,Qe){return function(at){var ht=Rr.attr(at,Se);return ht==null?ze==="!=":ze?(ht+="",ze==="="?ht===Qe:ze==="!="?ht!==Qe:ze==="^="?Qe&&ht.indexOf(Qe)===0:ze==="*="?Qe&&ht.indexOf(Qe)>-1:ze==="$="?Qe&&ht.slice(-Qe.length)===Qe:ze==="~="?(" "+ht.replace(dr," ")+" ").indexOf(Qe)>-1:ze==="|="?ht===Qe||ht.slice(0,Qe.length+1)===Qe+"-":!1):!0}},CHILD:function(Se,ze,Qe,at,ht){var $t=Se.slice(0,3)!=="nth",Kt=Se.slice(-4)!=="last",rn=ze==="of-type";return at===1&&ht===0?function(Yt){return!!Yt.parentNode}:function(Yt,qn,xn){var An,Zn,mn,Yr,po,Ti=$t!==Kt?"nextSibling":"previousSibling",Xo=Yt.parentNode,Ll=rn&&Yt.nodeName.toLowerCase(),Kp=!xn&&!rn,$i=!1;if(Xo){if($t){for(;Ti;){for(mn=Yt;mn=mn[Ti];)if(rn?M(mn,Ll):mn.nodeType===1)return!1;po=Ti=Se==="only"&&!po&&"nextSibling"}return!0}if(po=[Kt?Xo.firstChild:Xo.lastChild],Kt&&Kp){for(Zn=Xo[pt]||(Xo[pt]={}),An=Zn[Se]||[],Yr=An[0]===Je&&An[1],$i=Yr&&An[2],mn=Yr&&Xo.childNodes[Yr];mn=++Yr&&mn&&mn[Ti]||($i=Yr=0)||po.pop();)if(mn.nodeType===1&&++$i&&mn===Yt){Zn[Se]=[Je,Yr,$i];break}}else if(Kp&&(Zn=Yt[pt]||(Yt[pt]={}),An=Zn[Se]||[],Yr=An[0]===Je&&An[1],$i=Yr),$i===!1)for(;(mn=++Yr&&mn&&mn[Ti]||($i=Yr=0)||po.pop())&&!((rn?M(mn,Ll):mn.nodeType===1)&&++$i&&(Kp&&(Zn=mn[pt]||(mn[pt]={}),Zn[Se]=[Je,$i]),mn===Yt)););return $i-=ht,$i===at||$i%at===0&&$i/at>=0}}},PSEUDO:function(Se,ze){var Qe,at=O.pseudos[Se]||O.setFilters[Se.toLowerCase()]||Rr.error("unsupported pseudo: "+Se);return at[pt]?at(ze):at.length>1?(Qe=[Se,Se,"",ze],O.setFilters.hasOwnProperty(Se.toLowerCase())?$s(function(ht,$t){for(var Kt,rn=at(ht,ze),Yt=rn.length;Yt--;)Kt=l.call(ht,rn[Yt]),ht[Kt]=!($t[Kt]=rn[Yt])}):function(ht){return at(ht,0,Qe)}):at}},pseudos:{not:$s(function(Se){var ze=[],Qe=[],at=iM(Se.replace(I,"$1"));return at[pt]?$s(function(ht,$t,Kt,rn){for(var Yt,qn=at(ht,null,rn,[]),xn=ht.length;xn--;)(Yt=qn[xn])&&(ht[xn]=!($t[xn]=Yt))}):function(ht,$t,Kt){return ze[0]=ht,at(ze,null,Kt,Qe),ze[0]=null,!Qe.pop()}}),has:$s(function(Se){return function(ze){return Rr(Se,ze).length>0}}),contains:$s(function(Se){return Se=Se.replace(Du,Au),function(ze){return(ze.textContent||x.text(ze)).indexOf(Se)>-1}}),lang:$s(function(Se){return Q0.test(Se||"")||Rr.error("unsupported lang: "+Se),Se=Se.replace(Du,Au).toLowerCase(),function(ze){var Qe;do if(Qe=Me?ze.lang:ze.getAttribute("xml:lang")||ze.getAttribute("lang"))return Qe=Qe.toLowerCase(),Qe===Se||Qe.indexOf(Se+"-")===0;while((ze=ze.parentNode)&&ze.nodeType===1);return!1}}),target:function(Se){var ze=e.location&&e.location.hash;return ze&&ze.slice(1)===Se.id},root:function(Se){return Se===Le},focus:function(Se){return Se===cde()&&le.hasFocus()&&!!(Se.type||Se.href||~Se.tabIndex)},enabled:A$(!1),disabled:A$(!0),checked:function(Se){return M(Se,"input")&&!!Se.checked||M(Se,"option")&&!!Se.selected},selected:function(Se){return Se.parentNode&&Se.parentNode.selectedIndex,Se.selected===!0},empty:function(Se){for(Se=Se.firstChild;Se;Se=Se.nextSibling)if(Se.nodeType<6)return!1;return!0},parent:function(Se){return!O.pseudos.empty(Se)},header:function(Se){return Rc.test(Se.nodeName)},input:function(Se){return kc.test(Se.nodeName)},button:function(Se){return M(Se,"input")&&Se.type==="button"||M(Se,"button")},text:function(Se){var ze;return M(Se,"input")&&Se.type==="text"&&((ze=Se.getAttribute("type"))==null||ze.toLowerCase()==="text")},first:wd(function(){return[0]}),last:wd(function(Se,ze){return[ze-1]}),eq:wd(function(Se,ze,Qe){return[Qe<0?Qe+ze:Qe]}),even:wd(function(Se,ze){for(var Qe=0;Qe<ze;Qe+=2)Se.push(Qe);return Se}),odd:wd(function(Se,ze){for(var Qe=1;Qe<ze;Qe+=2)Se.push(Qe);return Se}),lt:wd(function(Se,ze,Qe){var at;for(Qe<0?at=Qe+ze:Qe>ze?at=ze:at=Qe;--at>=0;)Se.push(at);return Se}),gt:wd(function(Se,ze,Qe){for(var at=Qe<0?Qe+ze:Qe;++at<ze;)Se.push(at);return Se})}},O.pseudos.nth=O.pseudos.eq;for(D in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})O.pseudos[D]=fde(D);for(D in{submit:!0,reset:!0})O.pseudos[D]=dde(D);function k$(){}k$.prototype=O.filters=O.pseudos,O.setFilters=new k$;function J0(Se,ze){var Qe,at,ht,$t,Kt,rn,Yt,qn=cr[Se+" "];if(qn)return ze?0:qn.slice(0);for(Kt=Se,rn=[],Yt=O.preFilter;Kt;){(!Qe||(at=pa.exec(Kt)))&&(at&&(Kt=Kt.slice(at[0].length)||Kt),rn.push(ht=[])),Qe=!1,(at=Z0.exec(Kt))&&(Qe=at.shift(),ht.push({value:Qe,type:at[0].replace(I," ")}),Kt=Kt.slice(Qe.length));for($t in O.filter)(at=Rl[$t].exec(Kt))&&(!Yt[$t]||(at=Yt[$t](at)))&&(Qe=at.shift(),ht.push({value:Qe,type:$t,matches:at}),Kt=Kt.slice(Qe.length));if(!Qe)break}return ze?Kt.length:Kt?Rr.error(Se):cr(Se,rn).slice(0)}function CS(Se){for(var ze=0,Qe=Se.length,at="";ze<Qe;ze++)at+=Se[ze].value;return at}function TS(Se,ze,Qe){var at=ze.dir,ht=ze.next,$t=ht||at,Kt=Qe&&$t==="parentNode",rn=Lt++;return ze.first?function(Yt,qn,xn){for(;Yt=Yt[at];)if(Yt.nodeType===1||Kt)return Se(Yt,qn,xn);return!1}:function(Yt,qn,xn){var An,Zn,mn=[Je,rn];if(xn){for(;Yt=Yt[at];)if((Yt.nodeType===1||Kt)&&Se(Yt,qn,xn))return!0}else for(;Yt=Yt[at];)if(Yt.nodeType===1||Kt)if(Zn=Yt[pt]||(Yt[pt]={}),ht&&M(Yt,ht))Yt=Yt[at]||Yt;else{if((An=Zn[$t])&&An[0]===Je&&An[1]===rn)return mn[2]=An[2];if(Zn[$t]=mn,mn[2]=Se(Yt,qn,xn))return!0}return!1}}function nM(Se){return Se.length>1?function(ze,Qe,at){for(var ht=Se.length;ht--;)if(!Se[ht](ze,Qe,at))return!1;return!0}:Se[0]}function hde(Se,ze,Qe){for(var at=0,ht=ze.length;at<ht;at++)Rr(Se,ze[at],Qe);return Qe}function ES(Se,ze,Qe,at,ht){for(var $t,Kt=[],rn=0,Yt=Se.length,qn=ze!=null;rn<Yt;rn++)($t=Se[rn])&&(!Qe||Qe($t,at,ht))&&(Kt.push($t),qn&&ze.push(rn));return Kt}function rM(Se,ze,Qe,at,ht,$t){return at&&!at[pt]&&(at=rM(at)),ht&&!ht[pt]&&(ht=rM(ht,$t)),$s(function(Kt,rn,Yt,qn){var xn,An,Zn,mn,Yr=[],po=[],Ti=rn.length,Xo=Kt||hde(ze||"*",Yt.nodeType?[Yt]:Yt,[]),Ll=Se&&(Kt||!ze)?ES(Xo,Yr,Se,Yt,qn):Xo;if(Qe?(mn=ht||(Kt?Se:Ti||at)?[]:rn,Qe(Ll,mn,Yt,qn)):mn=Ll,at)for(xn=ES(mn,po),at(xn,[],Yt,qn),An=xn.length;An--;)(Zn=xn[An])&&(mn[po[An]]=!(Ll[po[An]]=Zn));if(Kt){if(ht||Se){if(ht){for(xn=[],An=mn.length;An--;)(Zn=mn[An])&&xn.push(Ll[An]=Zn);ht(null,mn=[],xn,qn)}for(An=mn.length;An--;)(Zn=mn[An])&&(xn=ht?l.call(Kt,Zn):Yr[An])>-1&&(Kt[xn]=!(rn[xn]=Zn))}}else mn=ES(mn===rn?mn.splice(Ti,mn.length):mn),ht?ht(null,rn,mn,qn):ne.apply(rn,mn)})}function aM(Se){for(var ze,Qe,at,ht=Se.length,$t=O.relative[Se[0].type],Kt=$t||O.relative[" "],rn=$t?1:0,Yt=TS(function(An){return An===ze},Kt,!0),qn=TS(function(An){return l.call(ze,An)>-1},Kt,!0),xn=[function(An,Zn,mn){var Yr=!$t&&(mn||Zn!=H)||((ze=Zn).nodeType?Yt(An,Zn,mn):qn(An,Zn,mn));return ze=null,Yr}];rn<ht;rn++)if(Qe=O.relative[Se[rn].type])xn=[TS(nM(xn),Qe)];else{if(Qe=O.filter[Se[rn].type].apply(null,Se[rn].matches),Qe[pt]){for(at=++rn;at<ht&&!O.relative[Se[at].type];at++);return rM(rn>1&&nM(xn),rn>1&&CS(Se.slice(0,rn-1).concat({value:Se[rn-2].type===" "?"*":""})).replace(I,"$1"),Qe,rn<at&&aM(Se.slice(rn,at)),at<ht&&aM(Se=Se.slice(at)),at<ht&&CS(Se))}xn.push(Qe)}return nM(xn)}function pde(Se,ze){var Qe=ze.length>0,at=Se.length>0,ht=function($t,Kt,rn,Yt,qn){var xn,An,Zn,mn=0,Yr="0",po=$t&&[],Ti=[],Xo=H,Ll=$t||at&&O.find.TAG("*",qn),Kp=Je+=Xo==null?1:Math.random()||.1,$i=Ll.length;for(qn&&(H=Kt==le||Kt||qn);Yr!==$i&&(xn=Ll[Yr])!=null;Yr++){if(at&&xn){for(An=0,!Kt&&xn.ownerDocument!=le&&(Lc(xn),rn=!Me);Zn=Se[An++];)if(Zn(xn,Kt||le,rn)){ne.call(Yt,xn);break}qn&&(Je=Kp)}Qe&&((xn=!Zn&&xn)&&mn--,$t&&po.push(xn))}if(mn+=Yr,Qe&&Yr!==mn){for(An=0;Zn=ze[An++];)Zn(po,Ti,Kt,rn);if($t){if(mn>0)for(;Yr--;)po[Yr]||Ti[Yr]||(Ti[Yr]=E.call(Yt));Ti=ES(Ti)}ne.apply(Yt,Ti),qn&&!$t&&Ti.length>0&&mn+ze.length>1&&x.uniqueSort(Yt)}return qn&&(Je=Kp,H=Xo),po};return Qe?$s(ht):ht}function iM(Se,ze){var Qe,at=[],ht=[],$t=Hn[Se+" "];if(!$t){for(ze||(ze=J0(Se)),Qe=ze.length;Qe--;)$t=aM(ze[Qe]),$t[pt]?at.push($t):ht.push($t);$t=Hn(Se,pde(ht,at)),$t.selector=Se}return $t}function R$(Se,ze,Qe,at){var ht,$t,Kt,rn,Yt,qn=typeof Se=="function"&&Se,xn=!at&&J0(Se=qn.selector||Se);if(Qe=Qe||[],xn.length===1){if($t=xn[0]=xn[0].slice(0),$t.length>2&&(Kt=$t[0]).type==="ID"&&ze.nodeType===9&&Me&&O.relative[$t[1].type]){if(ze=(O.find.ID(Kt.matches[0].replace(Du,Au),ze)||[])[0],ze)qn&&(ze=ze.parentNode);else return Qe;Se=Se.slice($t.shift().value.length)}for(ht=Rl.needsContext.test(Se)?0:$t.length;ht--&&(Kt=$t[ht],!O.relative[rn=Kt.type]);)if((Yt=O.find[rn])&&(at=Yt(Kt.matches[0].replace(Du,Au),eM.test($t[0].type)&&tM(ze.parentNode)||ze))){if($t.splice(ht,1),Se=at.length&&CS($t),!Se)return ne.apply(Qe,at),Qe;break}}return(qn||iM(Se,xn))(at,ze,!Me,Qe,!ze||eM.test(Se)&&tM(ze.parentNode)||ze),Qe}p.sortStable=pt.split("").sort(Pa).join("")===pt,Lc(),p.sortDetached=jp(function(Se){return Se.compareDocumentPosition(le.createElement("fieldset"))&1}),x.find=Rr,x.expr[":"]=x.expr.pseudos,x.unique=x.uniqueSort,Rr.compile=iM,Rr.select=R$,Rr.setDocument=Lc,Rr.tokenize=J0,Rr.escape=x.escapeSelector,Rr.getText=x.text,Rr.isXML=x.isXMLDoc,Rr.selectors=x.expr,Rr.support=x.support,Rr.uniqueSort=x.uniqueSort})();var V=function(D,O,H){for(var X=[],te=H!==void 0;(D=D[O])&&D.nodeType!==9;)if(D.nodeType===1){if(te&&x(D).is(H))break;X.push(D)}return X},z=function(D,O){for(var H=[];D;D=D.nextSibling)D.nodeType===1&&D!==O&&H.push(D);return H},K=x.expr.match.needsContext,Z=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function oe(D,O,H){return v(O)?x.grep(D,function(X,te){return!!O.call(X,te,X)!==H}):O.nodeType?x.grep(D,function(X){return X===O!==H}):typeof O!="string"?x.grep(D,function(X){return l.call(O,X)>-1!==H}):x.filter(O,D,H)}x.filter=function(D,O,H){var X=O[0];return H&&(D=":not("+D+")"),O.length===1&&X.nodeType===1?x.find.matchesSelector(X,D)?[X]:[]:x.find.matches(D,x.grep(O,function(te){return te.nodeType===1}))},x.fn.extend({find:function(D){var O,H,X=this.length,te=this;if(typeof D!="string")return this.pushStack(x(D).filter(function(){for(O=0;O<X;O++)if(x.contains(te[O],this))return!0}));for(H=this.pushStack([]),O=0;O<X;O++)x.find(D,te[O],H);return X>1?x.uniqueSort(H):H},filter:function(D){return this.pushStack(oe(this,D||[],!1))},not:function(D){return this.pushStack(oe(this,D||[],!0))},is:function(D){return!!oe(this,typeof D=="string"&&K.test(D)?x(D):D||[],!1).length}});var ge,ie=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,Q=x.fn.init=function(D,O,H){var X,te;if(!D)return this;if(H=H||ge,typeof D=="string")if(D[0]==="<"&&D[D.length-1]===">"&&D.length>=3?X=[null,D,null]:X=ie.exec(D),X&&(X[1]||!O))if(X[1]){if(O=O instanceof x?O[0]:O,x.merge(this,x.parseHTML(X[1],O&&O.nodeType?O.ownerDocument||O:y,!0)),Z.test(X[1])&&x.isPlainObject(O))for(X in O)v(this[X])?this[X](O[X]):this.attr(X,O[X]);return this}else return te=y.getElementById(X[2]),te&&(this[0]=te,this.length=1),this;else return!O||O.jquery?(O||H).find(D):this.constructor(O).find(D);else{if(D.nodeType)return this[0]=D,this.length=1,this;if(v(D))return H.ready!==void 0?H.ready(D):D(x)}return x.makeArray(D,this)};Q.prototype=x.fn,ge=x(y);var ce=/^(?:parents|prev(?:Until|All))/,se={children:!0,contents:!0,next:!0,prev:!0};x.fn.extend({has:function(D){var O=x(D,this),H=O.length;return this.filter(function(){for(var X=0;X<H;X++)if(x.contains(this,O[X]))return!0})},closest:function(D,O){var H,X=0,te=this.length,ne=[],le=typeof D!="string"&&x(D);if(!K.test(D)){for(;X<te;X++)for(H=this[X];H&&H!==O;H=H.parentNode)if(H.nodeType<11&&(le?le.index(H)>-1:H.nodeType===1&&x.find.matchesSelector(H,D))){ne.push(H);break}}return this.pushStack(ne.length>1?x.uniqueSort(ne):ne)},index:function(D){return D?typeof D=="string"?l.call(x(D),this[0]):l.call(this,D.jquery?D[0]:D):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(D,O){return this.pushStack(x.uniqueSort(x.merge(this.get(),x(D,O))))},addBack:function(D){return this.add(D==null?this.prevObject:this.prevObject.filter(D))}});function me(D,O){for(;(D=D[O])&&D.nodeType!==1;);return D}x.each({parent:function(D){var O=D.parentNode;return O&&O.nodeType!==11?O:null},parents:function(D){return V(D,"parentNode")},parentsUntil:function(D,O,H){return V(D,"parentNode",H)},next:function(D){return me(D,"nextSibling")},prev:function(D){return me(D,"previousSibling")},nextAll:function(D){return V(D,"nextSibling")},prevAll:function(D){return V(D,"previousSibling")},nextUntil:function(D,O,H){return V(D,"nextSibling",H)},prevUntil:function(D,O,H){return V(D,"previousSibling",H)},siblings:function(D){return z((D.parentNode||{}).firstChild,D)},children:function(D){return z(D.firstChild)},contents:function(D){return D.contentDocument!=null&&a(D.contentDocument)?D.contentDocument:(M(D,"template")&&(D=D.content||D),x.merge([],D.childNodes))}},function(D,O){x.fn[D]=function(H,X){var te=x.map(this,O,H);return D.slice(-5)!=="Until"&&(X=H),X&&typeof X=="string"&&(te=x.filter(X,te)),this.length>1&&(se[D]||x.uniqueSort(te),ce.test(D)&&te.reverse()),this.pushStack(te)}});var ve=/[^\x20\t\r\n\f]+/g;function he(D){var O={};return x.each(D.match(ve)||[],function(H,X){O[X]=!0}),O}x.Callbacks=function(D){D=typeof D=="string"?he(D):x.extend({},D);var O,H,X,te,ne=[],le=[],Le=-1,Me=function(){for(te=te||D.once,X=O=!0;le.length;Le=-1)for(H=le.shift();++Le<ne.length;)ne[Le].apply(H[0],H[1])===!1&&D.stopOnFalse&&(Le=ne.length,H=!1);D.memory||(H=!1),O=!1,te&&(H?ne=[]:ne="")},je={add:function(){return ne&&(H&&!O&&(Le=ne.length-1,le.push(H)),function lt(pt){x.each(pt,function(Je,Lt){v(Lt)?(!D.unique||!je.has(Lt))&&ne.push(Lt):Lt&&Lt.length&&w(Lt)!=="string"&&lt(Lt)})}(arguments),H&&!O&&Me()),this},remove:function(){return x.each(arguments,function(lt,pt){for(var Je;(Je=x.inArray(pt,ne,Je))>-1;)ne.splice(Je,1),Je<=Le&&Le--}),this},has:function(lt){return lt?x.inArray(lt,ne)>-1:ne.length>0},empty:function(){return ne&&(ne=[]),this},disable:function(){return te=le=[],ne=H="",this},disabled:function(){return!ne},lock:function(){return te=le=[],!H&&!O&&(ne=H=""),this},locked:function(){return!!te},fireWith:function(lt,pt){return te||(pt=pt||[],pt=[lt,pt.slice?pt.slice():pt],le.push(pt),O||Me()),this},fire:function(){return je.fireWith(this,arguments),this},fired:function(){return!!X}};return je};function ee(D){return D}function ue(D){throw D}function fe(D,O,H,X){var te;try{D&&v(te=D.promise)?te.call(D).done(O).fail(H):D&&v(te=D.then)?te.call(D,O,H):O.apply(void 0,[D].slice(X))}catch(ne){H.apply(void 0,[ne])}}x.extend({Deferred:function(D){var O=[["notify","progress",x.Callbacks("memory"),x.Callbacks("memory"),2],["resolve","done",x.Callbacks("once memory"),x.Callbacks("once memory"),0,"resolved"],["reject","fail",x.Callbacks("once memory"),x.Callbacks("once memory"),1,"rejected"]],H="pending",X={state:function(){return H},always:function(){return te.done(arguments).fail(arguments),this},catch:function(ne){return X.then(null,ne)},pipe:function(){var ne=arguments;return x.Deferred(function(le){x.each(O,function(Le,Me){var je=v(ne[Me[4]])&&ne[Me[4]];te[Me[1]](function(){var lt=je&&je.apply(this,arguments);lt&&v(lt.promise)?lt.promise().progress(le.notify).done(le.resolve).fail(le.reject):le[Me[0]+"With"](this,je?[lt]:arguments)})}),ne=null}).promise()},then:function(ne,le,Le){var Me=0;function je(lt,pt,Je,Lt){return function(){var Mn=this,cr=arguments,Hn=function(){var Pa,Dl;if(!(lt<Me)){if(Pa=Je.apply(Mn,cr),Pa===pt.promise())throw new TypeError("Thenable self-resolution");Dl=Pa&&(typeof Pa=="object"||typeof Pa=="function")&&Pa.then,v(Dl)?Lt?Dl.call(Pa,je(Me,pt,ee,Lt),je(Me,pt,ue,Lt)):(Me++,Dl.call(Pa,je(Me,pt,ee,Lt),je(Me,pt,ue,Lt),je(Me,pt,ee,pt.notifyWith))):(Je!==ee&&(Mn=void 0,cr=[Pa]),(Lt||pt.resolveWith)(Mn,cr))}},ui=Lt?Hn:function(){try{Hn()}catch(Pa){x.Deferred.exceptionHook&&x.Deferred.exceptionHook(Pa,ui.error),lt+1>=Me&&(Je!==ue&&(Mn=void 0,cr=[Pa]),pt.rejectWith(Mn,cr))}};lt?ui():(x.Deferred.getErrorHook?ui.error=x.Deferred.getErrorHook():x.Deferred.getStackHook&&(ui.error=x.Deferred.getStackHook()),e.setTimeout(ui))}}return x.Deferred(function(lt){O[0][3].add(je(0,lt,v(Le)?Le:ee,lt.notifyWith)),O[1][3].add(je(0,lt,v(ne)?ne:ee)),O[2][3].add(je(0,lt,v(le)?le:ue))}).promise()},promise:function(ne){return ne!=null?x.extend(ne,X):X}},te={};return x.each(O,function(ne,le){var Le=le[2],Me=le[5];X[le[1]]=Le.add,Me&&Le.add(function(){H=Me},O[3-ne][2].disable,O[3-ne][3].disable,O[0][2].lock,O[0][3].lock),Le.add(le[3].fire),te[le[0]]=function(){return te[le[0]+"With"](this===te?void 0:this,arguments),this},te[le[0]+"With"]=Le.fireWith}),X.promise(te),D&&D.call(te,te),te},when:function(D){var O=arguments.length,H=O,X=Array(H),te=i.call(arguments),ne=x.Deferred(),le=function(Le){return function(Me){X[Le]=this,te[Le]=arguments.length>1?i.call(arguments):Me,--O||ne.resolveWith(X,te)}};if(O<=1&&(fe(D,ne.done(le(H)).resolve,ne.reject,!O),ne.state()==="pending"||v(te[H]&&te[H].then)))return ne.then();for(;H--;)fe(te[H],le(H),ne.reject);return ne.promise()}});var Re=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;x.Deferred.exceptionHook=function(D,O){e.console&&e.console.warn&&D&&Re.test(D.name)&&e.console.warn("jQuery.Deferred exception: "+D.message,D.stack,O)},x.readyException=function(D){e.setTimeout(function(){throw D})};var Ne=x.Deferred();x.fn.ready=function(D){return Ne.then(D).catch(function(O){x.readyException(O)}),this},x.extend({isReady:!1,readyWait:1,ready:function(D){(D===!0?--x.readyWait:x.isReady)||(x.isReady=!0,!(D!==!0&&--x.readyWait>0)&&Ne.resolveWith(y,[x]))}}),x.ready.then=Ne.then;function De(){y.removeEventListener("DOMContentLoaded",De),e.removeEventListener("load",De),x.ready()}y.readyState==="complete"||y.readyState!=="loading"&&!y.documentElement.doScroll?e.setTimeout(x.ready):(y.addEventListener("DOMContentLoaded",De),e.addEventListener("load",De));var we=function(D,O,H,X,te,ne,le){var Le=0,Me=D.length,je=H==null;if(w(H)==="object"){te=!0;for(Le in H)we(D,O,Le,H[Le],!0,ne,le)}else if(X!==void 0&&(te=!0,v(X)||(le=!0),je&&(le?(O.call(D,X),O=null):(je=O,O=function(lt,pt,Je){return je.call(x(lt),Je)})),O))for(;Le<Me;Le++)O(D[Le],H,le?X:X.call(D[Le],Le,O(D[Le],H)));return te?D:je?O.call(D):Me?O(D[0],H):ne},ae=/^-ms-/,Ie=/-([a-z])/g;function He(D,O){return O.toUpperCase()}function Ce(D){return D.replace(ae,"ms-").replace(Ie,He)}var qe=function(D){return D.nodeType===1||D.nodeType===9||!+D.nodeType};function Ze(){this.expando=x.expando+Ze.uid++}Ze.uid=1,Ze.prototype={cache:function(D){var O=D[this.expando];return O||(O={},qe(D)&&(D.nodeType?D[this.expando]=O:Object.defineProperty(D,this.expando,{value:O,configurable:!0}))),O},set:function(D,O,H){var X,te=this.cache(D);if(typeof O=="string")te[Ce(O)]=H;else for(X in O)te[Ce(X)]=O[X];return te},get:function(D,O){return O===void 0?this.cache(D):D[this.expando]&&D[this.expando][Ce(O)]},access:function(D,O,H){return O===void 0||O&&typeof O=="string"&&H===void 0?this.get(D,O):(this.set(D,O,H),H!==void 0?H:O)},remove:function(D,O){var H,X=D[this.expando];if(X!==void 0){if(O!==void 0)for(Array.isArray(O)?O=O.map(Ce):(O=Ce(O),O=O in X?[O]:O.match(ve)||[]),H=O.length;H--;)delete X[O[H]];(O===void 0||x.isEmptyObject(X))&&(D.nodeType?D[this.expando]=void 0:delete D[this.expando])}},hasData:function(D){var O=D[this.expando];return O!==void 0&&!x.isEmptyObject(O)}};var de=new Ze,Xe=new Ze,mt=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,kt=/[A-Z]/g;function Vt(D){return D==="true"?!0:D==="false"?!1:D==="null"?null:D===+D+""?+D:mt.test(D)?JSON.parse(D):D}function dt(D,O,H){var X;if(H===void 0&&D.nodeType===1)if(X="data-"+O.replace(kt,"-$&").toLowerCase(),H=D.getAttribute(X),typeof H=="string"){try{H=Vt(H)}catch{}Xe.set(D,O,H)}else H=void 0;return H}x.extend({hasData:function(D){return Xe.hasData(D)||de.hasData(D)},data:function(D,O,H){return Xe.access(D,O,H)},removeData:function(D,O){Xe.remove(D,O)},_data:function(D,O,H){return de.access(D,O,H)},_removeData:function(D,O){de.remove(D,O)}}),x.fn.extend({data:function(D,O){var H,X,te,ne=this[0],le=ne&&ne.attributes;if(D===void 0){if(this.length&&(te=Xe.get(ne),ne.nodeType===1&&!de.get(ne,"hasDataAttrs"))){for(H=le.length;H--;)le[H]&&(X=le[H].name,X.indexOf("data-")===0&&(X=Ce(X.slice(5)),dt(ne,X,te[X])));de.set(ne,"hasDataAttrs",!0)}return te}return typeof D=="object"?this.each(function(){Xe.set(this,D)}):we(this,function(Le){var Me;if(ne&&Le===void 0)return Me=Xe.get(ne,D),Me!==void 0||(Me=dt(ne,D),Me!==void 0)?Me:void 0;this.each(function(){Xe.set(this,D,Le)})},null,O,arguments.length>1,null,!0)},removeData:function(D){return this.each(function(){Xe.remove(this,D)})}}),x.extend({queue:function(D,O,H){var X;if(D)return O=(O||"fx")+"queue",X=de.get(D,O),H&&(!X||Array.isArray(H)?X=de.access(D,O,x.makeArray(H)):X.push(H)),X||[]},dequeue:function(D,O){O=O||"fx";var H=x.queue(D,O),X=H.length,te=H.shift(),ne=x._queueHooks(D,O),le=function(){x.dequeue(D,O)};te==="inprogress"&&(te=H.shift(),X--),te&&(O==="fx"&&H.unshift("inprogress"),delete ne.stop,te.call(D,le,ne)),!X&&ne&&ne.empty.fire()},_queueHooks:function(D,O){var H=O+"queueHooks";return de.get(D,H)||de.access(D,H,{empty:x.Callbacks("once memory").add(function(){de.remove(D,[O+"queue",H])})})}}),x.fn.extend({queue:function(D,O){var H=2;return typeof D!="string"&&(O=D,D="fx",H--),arguments.length<H?x.queue(this[0],D):O===void 0?this:this.each(function(){var X=x.queue(this,D,O);x._queueHooks(this,D),D==="fx"&&X[0]!=="inprogress"&&x.dequeue(this,D)})},dequeue:function(D){return this.each(function(){x.dequeue(this,D)})},clearQueue:function(D){return this.queue(D||"fx",[])},promise:function(D,O){var H,X=1,te=x.Deferred(),ne=this,le=this.length,Le=function(){--X||te.resolveWith(ne,[ne])};for(typeof D!="string"&&(O=D,D=void 0),D=D||"fx";le--;)H=de.get(ne[le],D+"queueHooks"),H&&H.empty&&(X++,H.empty.add(Le));return Le(),te.promise(O)}});var Oe=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,be=new RegExp("^(?:([+-])=|)("+Oe+")([a-z%]*)$","i"),xe=["Top","Right","Bottom","Left"],Pe=y.documentElement,pe=function(D){return x.contains(D.ownerDocument,D)},it={composed:!0};Pe.getRootNode&&(pe=function(D){return x.contains(D.ownerDocument,D)||D.getRootNode(it)===D.ownerDocument});var Tt=function(D,O){return D=O||D,D.style.display==="none"||D.style.display===""&&pe(D)&&x.css(D,"display")==="none"};function Wt(D,O,H,X){var te,ne,le=20,Le=X?function(){return X.cur()}:function(){return x.css(D,O,"")},Me=Le(),je=H&&H[3]||(x.cssNumber[O]?"":"px"),lt=D.nodeType&&(x.cssNumber[O]||je!=="px"&&+Me)&&be.exec(x.css(D,O));if(lt&&lt[3]!==je){for(Me=Me/2,je=je||lt[3],lt=+Me||1;le--;)x.style(D,O,lt+je),(1-ne)*(1-(ne=Le()/Me||.5))<=0&&(le=0),lt=lt/ne;lt=lt*2,x.style(D,O,lt+je),H=H||[]}return H&&(lt=+lt||+Me||0,te=H[1]?lt+(H[1]+1)*H[2]:+H[2],X&&(X.unit=je,X.start=lt,X.end=te)),te}var Kn={};function Nn(D){var O,H=D.ownerDocument,X=D.nodeName,te=Kn[X];return te||(O=H.body.appendChild(H.createElement(X)),te=x.css(O,"display"),O.parentNode.removeChild(O),te==="none"&&(te="block"),Kn[X]=te,te)}function fr(D,O){for(var H,X,te=[],ne=0,le=D.length;ne<le;ne++)X=D[ne],X.style&&(H=X.style.display,O?(H==="none"&&(te[ne]=de.get(X,"display")||null,te[ne]||(X.style.display="")),X.style.display===""&&Tt(X)&&(te[ne]=Nn(X))):H!=="none"&&(te[ne]="none",de.set(X,"display",H)));for(ne=0;ne<le;ne++)te[ne]!=null&&(D[ne].style.display=te[ne]);return D}x.fn.extend({show:function(){return fr(this,!0)},hide:function(){return fr(this)},toggle:function(D){return typeof D=="boolean"?D?this.show():this.hide():this.each(function(){Tt(this)?x(this).show():x(this).hide()})}});var wr=/^(?:checkbox|radio)$/i,Ue=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,ot=/^$|^module$|\/(?:java|ecma)script/i;(function(){var D=y.createDocumentFragment(),O=D.appendChild(y.createElement("div")),H=y.createElement("input");H.setAttribute("type","radio"),H.setAttribute("checked","checked"),H.setAttribute("name","t"),O.appendChild(H),p.checkClone=O.cloneNode(!0).cloneNode(!0).lastChild.checked,O.innerHTML="<textarea>x</textarea>",p.noCloneChecked=!!O.cloneNode(!0).lastChild.defaultValue,O.innerHTML="<option></option>",p.option=!!O.lastChild})();var Ae={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};Ae.tbody=Ae.tfoot=Ae.colgroup=Ae.caption=Ae.thead,Ae.th=Ae.td,p.option||(Ae.optgroup=Ae.option=[1,"<select multiple='multiple'>","</select>"]);function rt(D,O){var H;return typeof D.getElementsByTagName<"u"?H=D.getElementsByTagName(O||"*"):typeof D.querySelectorAll<"u"?H=D.querySelectorAll(O||"*"):H=[],O===void 0||O&&M(D,O)?x.merge([D],H):H}function Rt(D,O){for(var H=0,X=D.length;H<X;H++)de.set(D[H],"globalEval",!O||de.get(O[H],"globalEval"))}var pn=/<|&#?\w+;/;function Nr(D,O,H,X,te){for(var ne,le,Le,Me,je,lt,pt=O.createDocumentFragment(),Je=[],Lt=0,Mn=D.length;Lt<Mn;Lt++)if(ne=D[Lt],ne||ne===0)if(w(ne)==="object")x.merge(Je,ne.nodeType?[ne]:ne);else if(!pn.test(ne))Je.push(O.createTextNode(ne));else{for(le=le||pt.appendChild(O.createElement("div")),Le=(Ue.exec(ne)||["",""])[1].toLowerCase(),Me=Ae[Le]||Ae._default,le.innerHTML=Me[1]+x.htmlPrefilter(ne)+Me[2],lt=Me[0];lt--;)le=le.lastChild;x.merge(Je,le.childNodes),le=pt.firstChild,le.textContent=""}for(pt.textContent="",Lt=0;ne=Je[Lt++];){if(X&&x.inArray(ne,X)>-1){te&&te.push(ne);continue}if(je=pe(ne),le=rt(pt.appendChild(ne),"script"),je&&Rt(le),H)for(lt=0;ne=le[lt++];)ot.test(ne.type||"")&&H.push(ne)}return pt}var Ir=/^([^.]*)(?:\.(.+)|)/;function Br(){return!0}function lr(){return!1}function wa(D,O,H,X,te,ne){var le,Le;if(typeof O=="object"){typeof H!="string"&&(X=X||H,H=void 0);for(Le in O)wa(D,Le,H,X,O[Le],ne);return D}if(X==null&&te==null?(te=H,X=H=void 0):te==null&&(typeof H=="string"?(te=X,X=void 0):(te=X,X=H,H=void 0)),te===!1)te=lr;else if(!te)return D;return ne===1&&(le=te,te=function(Me){return x().off(Me),le.apply(this,arguments)},te.guid=le.guid||(le.guid=x.guid++)),D.each(function(){x.event.add(this,O,te,X,H)})}x.event={global:{},add:function(D,O,H,X,te){var ne,le,Le,Me,je,lt,pt,Je,Lt,Mn,cr,Hn=de.get(D);if(qe(D))for(H.handler&&(ne=H,H=ne.handler,te=ne.selector),te&&x.find.matchesSelector(Pe,te),H.guid||(H.guid=x.guid++),(Me=Hn.events)||(Me=Hn.events=Object.create(null)),(le=Hn.handle)||(le=Hn.handle=function(ui){return typeof x<"u"&&x.event.triggered!==ui.type?x.event.dispatch.apply(D,arguments):void 0}),O=(O||"").match(ve)||[""],je=O.length;je--;)Le=Ir.exec(O[je])||[],Lt=cr=Le[1],Mn=(Le[2]||"").split(".").sort(),Lt&&(pt=x.event.special[Lt]||{},Lt=(te?pt.delegateType:pt.bindType)||Lt,pt=x.event.special[Lt]||{},lt=x.extend({type:Lt,origType:cr,data:X,handler:H,guid:H.guid,selector:te,needsContext:te&&x.expr.match.needsContext.test(te),namespace:Mn.join(".")},ne),(Je=Me[Lt])||(Je=Me[Lt]=[],Je.delegateCount=0,(!pt.setup||pt.setup.call(D,X,Mn,le)===!1)&&D.addEventListener&&D.addEventListener(Lt,le)),pt.add&&(pt.add.call(D,lt),lt.handler.guid||(lt.handler.guid=H.guid)),te?Je.splice(Je.delegateCount++,0,lt):Je.push(lt),x.event.global[Lt]=!0)},remove:function(D,O,H,X,te){var ne,le,Le,Me,je,lt,pt,Je,Lt,Mn,cr,Hn=de.hasData(D)&&de.get(D);if(!(!Hn||!(Me=Hn.events))){for(O=(O||"").match(ve)||[""],je=O.length;je--;){if(Le=Ir.exec(O[je])||[],Lt=cr=Le[1],Mn=(Le[2]||"").split(".").sort(),!Lt){for(Lt in Me)x.event.remove(D,Lt+O[je],H,X,!0);continue}for(pt=x.event.special[Lt]||{},Lt=(X?pt.delegateType:pt.bindType)||Lt,Je=Me[Lt]||[],Le=Le[2]&&new RegExp("(^|\\.)"+Mn.join("\\.(?:.*\\.|)")+"(\\.|$)"),le=ne=Je.length;ne--;)lt=Je[ne],(te||cr===lt.origType)&&(!H||H.guid===lt.guid)&&(!Le||Le.test(lt.namespace))&&(!X||X===lt.selector||X==="**"&&lt.selector)&&(Je.splice(ne,1),lt.selector&&Je.delegateCount--,pt.remove&&pt.remove.call(D,lt));le&&!Je.length&&((!pt.teardown||pt.teardown.call(D,Mn,Hn.handle)===!1)&&x.removeEvent(D,Lt,Hn.handle),delete Me[Lt])}x.isEmptyObject(Me)&&de.remove(D,"handle events")}},dispatch:function(D){var O,H,X,te,ne,le,Le=new Array(arguments.length),Me=x.event.fix(D),je=(de.get(this,"events")||Object.create(null))[Me.type]||[],lt=x.event.special[Me.type]||{};for(Le[0]=Me,O=1;O<arguments.length;O++)Le[O]=arguments[O];if(Me.delegateTarget=this,!(lt.preDispatch&&lt.preDispatch.call(this,Me)===!1)){for(le=x.event.handlers.call(this,Me,je),O=0;(te=le[O++])&&!Me.isPropagationStopped();)for(Me.currentTarget=te.elem,H=0;(ne=te.handlers[H++])&&!Me.isImmediatePropagationStopped();)(!Me.rnamespace||ne.namespace===!1||Me.rnamespace.test(ne.namespace))&&(Me.handleObj=ne,Me.data=ne.data,X=((x.event.special[ne.origType]||{}).handle||ne.handler).apply(te.elem,Le),X!==void 0&&(Me.result=X)===!1&&(Me.preventDefault(),Me.stopPropagation()));return lt.postDispatch&&lt.postDispatch.call(this,Me),Me.result}},handlers:function(D,O){var H,X,te,ne,le,Le=[],Me=O.delegateCount,je=D.target;if(Me&&je.nodeType&&!(D.type==="click"&&D.button>=1)){for(;je!==this;je=je.parentNode||this)if(je.nodeType===1&&!(D.type==="click"&&je.disabled===!0)){for(ne=[],le={},H=0;H<Me;H++)X=O[H],te=X.selector+" ",le[te]===void 0&&(le[te]=X.needsContext?x(te,this).index(je)>-1:x.find(te,this,null,[je]).length),le[te]&&ne.push(X);ne.length&&Le.push({elem:je,handlers:ne})}}return je=this,Me<O.length&&Le.push({elem:je,handlers:O.slice(Me)}),Le},addProp:function(D,O){Object.defineProperty(x.Event.prototype,D,{enumerable:!0,configurable:!0,get:v(O)?function(){if(this.originalEvent)return O(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[D]},set:function(H){Object.defineProperty(this,D,{enumerable:!0,configurable:!0,writable:!0,value:H})}})},fix:function(D){return D[x.expando]?D:new x.Event(D)},special:{load:{noBubble:!0},click:{setup:function(D){var O=this||D;return wr.test(O.type)&&O.click&&M(O,"input")&&Ns(O,"click",!0),!1},trigger:function(D){var O=this||D;return wr.test(O.type)&&O.click&&M(O,"input")&&Ns(O,"click"),!0},_default:function(D){var O=D.target;return wr.test(O.type)&&O.click&&M(O,"input")&&de.get(O,"click")||M(O,"a")}},beforeunload:{postDispatch:function(D){D.result!==void 0&&D.originalEvent&&(D.originalEvent.returnValue=D.result)}}}};function Ns(D,O,H){if(!H){de.get(D,O)===void 0&&x.event.add(D,O,Br);return}de.set(D,O,!1),x.event.add(D,O,{namespace:!1,handler:function(X){var te,ne=de.get(this,O);if(X.isTrigger&1&&this[O]){if(ne)(x.event.special[O]||{}).delegateType&&X.stopPropagation();else if(ne=i.call(arguments),de.set(this,O,ne),this[O](),te=de.get(this,O),de.set(this,O,!1),ne!==te)return X.stopImmediatePropagation(),X.preventDefault(),te}else ne&&(de.set(this,O,x.event.trigger(ne[0],ne.slice(1),this)),X.stopPropagation(),X.isImmediatePropagationStopped=Br)}})}x.removeEvent=function(D,O,H){D.removeEventListener&&D.removeEventListener(O,H)},x.Event=function(D,O){if(!(this instanceof x.Event))return new x.Event(D,O);D&&D.type?(this.originalEvent=D,this.type=D.type,this.isDefaultPrevented=D.defaultPrevented||D.defaultPrevented===void 0&&D.returnValue===!1?Br:lr,this.target=D.target&&D.target.nodeType===3?D.target.parentNode:D.target,this.currentTarget=D.currentTarget,this.relatedTarget=D.relatedTarget):this.type=D,O&&x.extend(this,O),this.timeStamp=D&&D.timeStamp||Date.now(),this[x.expando]=!0},x.Event.prototype={constructor:x.Event,isDefaultPrevented:lr,isPropagationStopped:lr,isImmediatePropagationStopped:lr,isSimulated:!1,preventDefault:function(){var D=this.originalEvent;this.isDefaultPrevented=Br,D&&!this.isSimulated&&D.preventDefault()},stopPropagation:function(){var D=this.originalEvent;this.isPropagationStopped=Br,D&&!this.isSimulated&&D.stopPropagation()},stopImmediatePropagation:function(){var D=this.originalEvent;this.isImmediatePropagationStopped=Br,D&&!this.isSimulated&&D.stopImmediatePropagation(),this.stopPropagation()}},x.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},x.event.addProp),x.each({focus:"focusin",blur:"focusout"},function(D,O){function H(X){if(y.documentMode){var te=de.get(this,"handle"),ne=x.event.fix(X);ne.type=X.type==="focusin"?"focus":"blur",ne.isSimulated=!0,te(X),ne.target===ne.currentTarget&&te(ne)}else x.event.simulate(O,X.target,x.event.fix(X))}x.event.special[D]={setup:function(){var X;if(Ns(this,D,!0),y.documentMode)X=de.get(this,O),X||this.addEventListener(O,H),de.set(this,O,(X||0)+1);else return!1},trigger:function(){return Ns(this,D),!0},teardown:function(){var X;if(y.documentMode)X=de.get(this,O)-1,X?de.set(this,O,X):(this.removeEventListener(O,H),de.remove(this,O));else return!1},_default:function(X){return de.get(X.target,D)},delegateType:O},x.event.special[O]={setup:function(){var X=this.ownerDocument||this.document||this,te=y.documentMode?this:X,ne=de.get(te,O);ne||(y.documentMode?this.addEventListener(O,H):X.addEventListener(D,H,!0)),de.set(te,O,(ne||0)+1)},teardown:function(){var X=this.ownerDocument||this.document||this,te=y.documentMode?this:X,ne=de.get(te,O)-1;ne?de.set(te,O,ne):(y.documentMode?this.removeEventListener(O,H):X.removeEventListener(D,H,!0),de.remove(te,O))}}}),x.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(D,O){x.event.special[D]={delegateType:O,bindType:O,handle:function(H){var X,te=this,ne=H.relatedTarget,le=H.handleObj;return(!ne||ne!==te&&!x.contains(te,ne))&&(H.type=le.origType,X=le.handler.apply(this,arguments),H.type=O),X}}}),x.fn.extend({on:function(D,O,H,X){return wa(this,D,O,H,X)},one:function(D,O,H,X){return wa(this,D,O,H,X,1)},off:function(D,O,H){var X,te;if(D&&D.preventDefault&&D.handleObj)return X=D.handleObj,x(D.delegateTarget).off(X.namespace?X.origType+"."+X.namespace:X.origType,X.selector,X.handler),this;if(typeof D=="object"){for(te in D)this.off(te,O,D[te]);return this}return(O===!1||typeof O=="function")&&(H=O,O=void 0),H===!1&&(H=lr),this.each(function(){x.event.remove(this,D,H,O)})}});var Wp=/<script|<style|<link/i,vd=/checked\s*(?:[^=]|=\s*.checked.)/i,Eu=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function Mu(D,O){return M(D,"table")&&M(O.nodeType!==11?O:O.firstChild,"tr")&&x(D).children("tbody")[0]||D}function Mc(D){return D.type=(D.getAttribute("type")!==null)+"/"+D.type,D}function Dc(D){return(D.type||"").slice(0,5)==="true/"?D.type=D.type.slice(5):D.removeAttribute("type"),D}function gd(D,O){var H,X,te,ne,le,Le,Me;if(O.nodeType===1){if(de.hasData(D)&&(ne=de.get(D),Me=ne.events,Me)){de.remove(O,"handle events");for(te in Me)for(H=0,X=Me[te].length;H<X;H++)x.event.add(O,te,Me[te][H])}Xe.hasData(D)&&(le=Xe.access(D),Le=x.extend({},le),Xe.set(O,Le))}}function yd(D,O){var H=O.nodeName.toLowerCase();H==="input"&&wr.test(D.type)?O.checked=D.checked:(H==="input"||H==="textarea")&&(O.defaultValue=D.defaultValue)}function _i(D,O,H,X){O=o(O);var te,ne,le,Le,Me,je,lt=0,pt=D.length,Je=pt-1,Lt=O[0],Mn=v(Lt);if(Mn||pt>1&&typeof Lt=="string"&&!p.checkClone&&vd.test(Lt))return D.each(function(cr){var Hn=D.eq(cr);Mn&&(O[0]=Lt.call(this,cr,Hn.html())),_i(Hn,O,H,X)});if(pt&&(te=Nr(O,D[0].ownerDocument,!1,D,X),ne=te.firstChild,te.childNodes.length===1&&(te=ne),ne||X)){for(le=x.map(rt(te,"script"),Mc),Le=le.length;lt<pt;lt++)Me=te,lt!==Je&&(Me=x.clone(Me,!0,!0),Le&&x.merge(le,rt(Me,"script"))),H.call(D[lt],Me,lt);if(Le)for(je=le[le.length-1].ownerDocument,x.map(le,Dc),lt=0;lt<Le;lt++)Me=le[lt],ot.test(Me.type||"")&&!de.access(Me,"globalEval")&&x.contains(je,Me)&&(Me.src&&(Me.type||"").toLowerCase()!=="module"?x._evalUrl&&!Me.noModule&&x._evalUrl(Me.src,{nonce:Me.nonce||Me.getAttribute("nonce")},je):S(Me.textContent.replace(Eu,""),Me,je))}return D}function vt(D,O,H){for(var X,te=O?x.filter(O,D):D,ne=0;(X=te[ne])!=null;ne++)!H&&X.nodeType===1&&x.cleanData(rt(X)),X.parentNode&&(H&&pe(X)&&Rt(rt(X,"script")),X.parentNode.removeChild(X));return D}x.extend({htmlPrefilter:function(D){return D},clone:function(D,O,H){var X,te,ne,le,Le=D.cloneNode(!0),Me=pe(D);if(!p.noCloneChecked&&(D.nodeType===1||D.nodeType===11)&&!x.isXMLDoc(D))for(le=rt(Le),ne=rt(D),X=0,te=ne.length;X<te;X++)yd(ne[X],le[X]);if(O)if(H)for(ne=ne||rt(D),le=le||rt(Le),X=0,te=ne.length;X<te;X++)gd(ne[X],le[X]);else gd(D,Le);return le=rt(Le,"script"),le.length>0&&Rt(le,!Me&&rt(D,"script")),Le},cleanData:function(D){for(var O,H,X,te=x.event.special,ne=0;(H=D[ne])!==void 0;ne++)if(qe(H)){if(O=H[de.expando]){if(O.events)for(X in O.events)te[X]?x.event.remove(H,X):x.removeEvent(H,X,O.handle);H[de.expando]=void 0}H[Xe.expando]&&(H[Xe.expando]=void 0)}}}),x.fn.extend({detach:function(D){return vt(this,D,!0)},remove:function(D){return vt(this,D)},text:function(D){return we(this,function(O){return O===void 0?x.text(this):this.empty().each(function(){(this.nodeType===1||this.nodeType===11||this.nodeType===9)&&(this.textContent=O)})},null,D,arguments.length)},append:function(){return _i(this,arguments,function(D){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var O=Mu(this,D);O.appendChild(D)}})},prepend:function(){return _i(this,arguments,function(D){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var O=Mu(this,D);O.insertBefore(D,O.firstChild)}})},before:function(){return _i(this,arguments,function(D){this.parentNode&&this.parentNode.insertBefore(D,this)})},after:function(){return _i(this,arguments,function(D){this.parentNode&&this.parentNode.insertBefore(D,this.nextSibling)})},empty:function(){for(var D,O=0;(D=this[O])!=null;O++)D.nodeType===1&&(x.cleanData(rt(D,!1)),D.textContent="");return this},clone:function(D,O){return D=D??!1,O=O??D,this.map(function(){return x.clone(this,D,O)})},html:function(D){return we(this,function(O){var H=this[0]||{},X=0,te=this.length;if(O===void 0&&H.nodeType===1)return H.innerHTML;if(typeof O=="string"&&!Wp.test(O)&&!Ae[(Ue.exec(O)||["",""])[1].toLowerCase()]){O=x.htmlPrefilter(O);try{for(;X<te;X++)H=this[X]||{},H.nodeType===1&&(x.cleanData(rt(H,!1)),H.innerHTML=O);H=0}catch{}}H&&this.empty().append(O)},null,D,arguments.length)},replaceWith:function(){var D=[];return _i(this,arguments,function(O){var H=this.parentNode;x.inArray(this,D)<0&&(x.cleanData(rt(this)),H&&H.replaceChild(O,this))},D)}}),x.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(D,O){x.fn[D]=function(H){for(var X,te=[],ne=x(H),le=ne.length-1,Le=0;Le<=le;Le++)X=Le===le?this:this.clone(!0),x(ne[Le])[O](X),s.apply(te,X.get());return this.pushStack(te)}});var Te=new RegExp("^("+Oe+")(?!px)[a-z%]+$","i"),kr=/^--/,na=function(D){var O=D.ownerDocument.defaultView;return(!O||!O.opener)&&(O=e),O.getComputedStyle(D)},ho=function(D,O,H){var X,te,ne={};for(te in O)ne[te]=D.style[te],D.style[te]=O[te];X=H.call(D);for(te in O)D.style[te]=ne[te];return X},Lo=new RegExp(xe.join("|"),"i");(function(){function D(){if(je){Me.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",je.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",Pe.appendChild(Me).appendChild(je);var lt=e.getComputedStyle(je);H=lt.top!=="1%",Le=O(lt.marginLeft)===12,je.style.right="60%",ne=O(lt.right)===36,X=O(lt.width)===36,je.style.position="absolute",te=O(je.offsetWidth/3)===12,Pe.removeChild(Me),je=null}}function O(lt){return Math.round(parseFloat(lt))}var H,X,te,ne,le,Le,Me=y.createElement("div"),je=y.createElement("div");je.style&&(je.style.backgroundClip="content-box",je.cloneNode(!0).style.backgroundClip="",p.clearCloneStyle=je.style.backgroundClip==="content-box",x.extend(p,{boxSizingReliable:function(){return D(),X},pixelBoxStyles:function(){return D(),ne},pixelPosition:function(){return D(),H},reliableMarginLeft:function(){return D(),Le},scrollboxSize:function(){return D(),te},reliableTrDimensions:function(){var lt,pt,Je,Lt;return le==null&&(lt=y.createElement("table"),pt=y.createElement("tr"),Je=y.createElement("div"),lt.style.cssText="position:absolute;left:-11111px;border-collapse:separate",pt.style.cssText="box-sizing:content-box;border:1px solid",pt.style.height="1px",Je.style.height="9px",Je.style.display="block",Pe.appendChild(lt).appendChild(pt).appendChild(Je),Lt=e.getComputedStyle(pt),le=parseInt(Lt.height,10)+parseInt(Lt.borderTopWidth,10)+parseInt(Lt.borderBottomWidth,10)===pt.offsetHeight,Pe.removeChild(lt)),le}}))})();function li(D,O,H){var X,te,ne,le,Le=kr.test(O),Me=D.style;return H=H||na(D),H&&(le=H.getPropertyValue(O)||H[O],Le&&le&&(le=le.replace(I,"$1")||void 0),le===""&&!pe(D)&&(le=x.style(D,O)),!p.pixelBoxStyles()&&Te.test(le)&&Lo.test(O)&&(X=Me.width,te=Me.minWidth,ne=Me.maxWidth,Me.minWidth=Me.maxWidth=Me.width=le,le=H.width,Me.width=X,Me.minWidth=te,Me.maxWidth=ne)),le!==void 0?le+"":le}function Oo(D,O){return{get:function(){if(D()){delete this.get;return}return(this.get=O).apply(this,arguments)}}}var Ra=["Webkit","Moz","ms"],La=y.createElement("div").style,ia={};function UE(D){for(var O=D[0].toUpperCase()+D.slice(1),H=Ra.length;H--;)if(D=Ra[H]+O,D in La)return D}function K0(D){var O=x.cssProps[D]||ia[D];return O||(D in La?D:ia[D]=UE(D)||D)}var GE=/^(none|table(?!-c[ea]).+)/,HE={position:"absolute",visibility:"hidden",display:"block"},xr={letterSpacing:"0",fontWeight:"400"};function Ko(D,O,H){var X=be.exec(O);return X?Math.max(0,X[2]-(H||0))+(X[3]||"px"):O}function ur(D,O,H,X,te,ne){var le=O==="width"?1:0,Le=0,Me=0,je=0;if(H===(X?"border":"content"))return 0;for(;le<4;le+=2)H==="margin"&&(je+=x.css(D,H+xe[le],!0,te)),X?(H==="content"&&(Me-=x.css(D,"padding"+xe[le],!0,te)),H!=="margin"&&(Me-=x.css(D,"border"+xe[le]+"Width",!0,te))):(Me+=x.css(D,"padding"+xe[le],!0,te),H!=="padding"?Me+=x.css(D,"border"+xe[le]+"Width",!0,te):Le+=x.css(D,"border"+xe[le]+"Width",!0,te));return!X&&ne>=0&&(Me+=Math.max(0,Math.ceil(D["offset"+O[0].toUpperCase()+O.slice(1)]-ne-Me-Le-.5))||0),Me+je}function wS(D,O,H){var X=na(D),te=!p.boxSizingReliable()||H,ne=te&&x.css(D,"boxSizing",!1,X)==="border-box",le=ne,Le=li(D,O,X),Me="offset"+O[0].toUpperCase()+O.slice(1);if(Te.test(Le)){if(!H)return Le;Le="auto"}return(!p.boxSizingReliable()&&ne||!p.reliableTrDimensions()&&M(D,"tr")||Le==="auto"||!parseFloat(Le)&&x.css(D,"display",!1,X)==="inline")&&D.getClientRects().length&&(ne=x.css(D,"boxSizing",!1,X)==="border-box",le=Me in D,le&&(Le=D[Me])),Le=parseFloat(Le)||0,Le+ur(D,O,H||(ne?"border":"content"),le,X,Le)+"px"}x.extend({cssHooks:{opacity:{get:function(D,O){if(O){var H=li(D,"opacity");return H===""?"1":H}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(D,O,H,X){if(!(!D||D.nodeType===3||D.nodeType===8||!D.style)){var te,ne,le,Le=Ce(O),Me=kr.test(O),je=D.style;if(Me||(O=K0(Le)),le=x.cssHooks[O]||x.cssHooks[Le],H!==void 0){if(ne=typeof H,ne==="string"&&(te=be.exec(H))&&te[1]&&(H=Wt(D,O,te),ne="number"),H==null||H!==H)return;ne==="number"&&!Me&&(H+=te&&te[3]||(x.cssNumber[Le]?"":"px")),!p.clearCloneStyle&&H===""&&O.indexOf("background")===0&&(je[O]="inherit"),(!le||!("set"in le)||(H=le.set(D,H,X))!==void 0)&&(Me?je.setProperty(O,H):je[O]=H)}else return le&&"get"in le&&(te=le.get(D,!1,X))!==void 0?te:je[O]}},css:function(D,O,H,X){var te,ne,le,Le=Ce(O),Me=kr.test(O);return Me||(O=K0(Le)),le=x.cssHooks[O]||x.cssHooks[Le],le&&"get"in le&&(te=le.get(D,!0,H)),te===void 0&&(te=li(D,O,X)),te==="normal"&&O in xr&&(te=xr[O]),H===""||H?(ne=parseFloat(te),H===!0||isFinite(ne)?ne||0:te):te}}),x.each(["height","width"],function(D,O){x.cssHooks[O]={get:function(H,X,te){if(X)return GE.test(x.css(H,"display"))&&(!H.getClientRects().length||!H.getBoundingClientRect().width)?ho(H,HE,function(){return wS(H,O,te)}):wS(H,O,te)},set:function(H,X,te){var ne,le=na(H),Le=!p.scrollboxSize()&&le.position==="absolute",Me=Le||te,je=Me&&x.css(H,"boxSizing",!1,le)==="border-box",lt=te?ur(H,O,te,je,le):0;return je&&Le&&(lt-=Math.ceil(H["offset"+O[0].toUpperCase()+O.slice(1)]-parseFloat(le[O])-ur(H,O,"border",!1,le)-.5)),lt&&(ne=be.exec(X))&&(ne[3]||"px")!=="px"&&(H.style[O]=X,X=x.css(H,O)),Ko(H,X,lt)}}}),x.cssHooks.marginLeft=Oo(p.reliableMarginLeft,function(D,O){if(O)return(parseFloat(li(D,"marginLeft"))||D.getBoundingClientRect().left-ho(D,{marginLeft:0},function(){return D.getBoundingClientRect().left}))+"px"}),x.each({margin:"",padding:"",border:"Width"},function(D,O){x.cssHooks[D+O]={expand:function(H){for(var X=0,te={},ne=typeof H=="string"?H.split(" "):[H];X<4;X++)te[D+xe[X]+O]=ne[X]||ne[X-2]||ne[0];return te}},D!=="margin"&&(x.cssHooks[D+O].set=Ko)}),x.fn.extend({css:function(D,O){return we(this,function(H,X,te){var ne,le,Le={},Me=0;if(Array.isArray(X)){for(ne=na(H),le=X.length;Me<le;Me++)Le[X[Me]]=x.css(H,X[Me],!1,ne);return Le}return te!==void 0?x.style(H,X,te):x.css(H,X)},D,O,arguments.length>1)}});function Ci(D,O,H,X,te){return new Ci.prototype.init(D,O,H,X,te)}x.Tween=Ci,Ci.prototype={constructor:Ci,init:function(D,O,H,X,te,ne){this.elem=D,this.prop=H,this.easing=te||x.easing._default,this.options=O,this.start=this.now=this.cur(),this.end=X,this.unit=ne||(x.cssNumber[H]?"":"px")},cur:function(){var D=Ci.propHooks[this.prop];return D&&D.get?D.get(this):Ci.propHooks._default.get(this)},run:function(D){var O,H=Ci.propHooks[this.prop];return this.options.duration?this.pos=O=x.easing[this.easing](D,this.options.duration*D,0,1,this.options.duration):this.pos=O=D,this.now=(this.end-this.start)*O+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),H&&H.set?H.set(this):Ci.propHooks._default.set(this),this}},Ci.prototype.init.prototype=Ci.prototype,Ci.propHooks={_default:{get:function(D){var O;return D.elem.nodeType!==1||D.elem[D.prop]!=null&&D.elem.style[D.prop]==null?D.elem[D.prop]:(O=x.css(D.elem,D.prop,""),!O||O==="auto"?0:O)},set:function(D){x.fx.step[D.prop]?x.fx.step[D.prop](D):D.elem.nodeType===1&&(x.cssHooks[D.prop]||D.elem.style[K0(D.prop)]!=null)?x.style(D.elem,D.prop,D.now+D.unit):D.elem[D.prop]=D.now}}},Ci.propHooks.scrollTop=Ci.propHooks.scrollLeft={set:function(D){D.elem.nodeType&&D.elem.parentNode&&(D.elem[D.prop]=D.now)}},x.easing={linear:function(D){return D},swing:function(D){return .5-Math.cos(D*Math.PI)/2},_default:"swing"},x.fx=Ci.prototype.init,x.fx.step={};var Ac,Ve,Is=/^(?:toggle|show|hide)$/,Ffe=/queueHooks$/;function WE(){Ve&&(y.hidden===!1&&e.requestAnimationFrame?e.requestAnimationFrame(WE):e.setTimeout(WE,x.fx.interval),x.fx.tick())}function y$(){return e.setTimeout(function(){Ac=void 0}),Ac=Date.now()}function xS(D,O){var H,X=0,te={height:D};for(O=O?1:0;X<4;X+=2-O)H=xe[X],te["margin"+H]=te["padding"+H]=D;return O&&(te.opacity=te.width=D),te}function m$(D,O,H){for(var X,te=(Bs.tweeners[O]||[]).concat(Bs.tweeners["*"]),ne=0,le=te.length;ne<le;ne++)if(X=te[ne].call(H,O,D))return X}function zfe(D,O,H){var X,te,ne,le,Le,Me,je,lt,pt="width"in O||"height"in O,Je=this,Lt={},Mn=D.style,cr=D.nodeType&&Tt(D),Hn=de.get(D,"fxshow");H.queue||(le=x._queueHooks(D,"fx"),le.unqueued==null&&(le.unqueued=0,Le=le.empty.fire,le.empty.fire=function(){le.unqueued||Le()}),le.unqueued++,Je.always(function(){Je.always(function(){le.unqueued--,x.queue(D,"fx").length||le.empty.fire()})}));for(X in O)if(te=O[X],Is.test(te)){if(delete O[X],ne=ne||te==="toggle",te===(cr?"hide":"show"))if(te==="show"&&Hn&&Hn[X]!==void 0)cr=!0;else continue;Lt[X]=Hn&&Hn[X]||x.style(D,X)}if(Me=!x.isEmptyObject(O),!(!Me&&x.isEmptyObject(Lt))){pt&&D.nodeType===1&&(H.overflow=[Mn.overflow,Mn.overflowX,Mn.overflowY],je=Hn&&Hn.display,je==null&&(je=de.get(D,"display")),lt=x.css(D,"display"),lt==="none"&&(je?lt=je:(fr([D],!0),je=D.style.display||je,lt=x.css(D,"display"),fr([D]))),(lt==="inline"||lt==="inline-block"&&je!=null)&&x.css(D,"float")==="none"&&(Me||(Je.done(function(){Mn.display=je}),je==null&&(lt=Mn.display,je=lt==="none"?"":lt)),Mn.display="inline-block")),H.overflow&&(Mn.overflow="hidden",Je.always(function(){Mn.overflow=H.overflow[0],Mn.overflowX=H.overflow[1],Mn.overflowY=H.overflow[2]})),Me=!1;for(X in Lt)Me||(Hn?"hidden"in Hn&&(cr=Hn.hidden):Hn=de.access(D,"fxshow",{display:je}),ne&&(Hn.hidden=!cr),cr&&fr([D],!0),Je.done(function(){cr||fr([D]),de.remove(D,"fxshow");for(X in Lt)x.style(D,X,Lt[X])})),Me=m$(cr?Hn[X]:0,X,Je),X in Hn||(Hn[X]=Me.start,cr&&(Me.end=Me.start,Me.start=0))}}function Ufe(D,O){var H,X,te,ne,le;for(H in D)if(X=Ce(H),te=O[X],ne=D[H],Array.isArray(ne)&&(te=ne[1],ne=D[H]=ne[0]),H!==X&&(D[X]=ne,delete D[H]),le=x.cssHooks[X],le&&"expand"in le){ne=le.expand(ne),delete D[X];for(H in ne)H in D||(D[H]=ne[H],O[H]=te)}else O[X]=te}function Bs(D,O,H){var X,te,ne=0,le=Bs.prefilters.length,Le=x.Deferred().always(function(){delete Me.elem}),Me=function(){if(te)return!1;for(var pt=Ac||y$(),Je=Math.max(0,je.startTime+je.duration-pt),Lt=Je/je.duration||0,Mn=1-Lt,cr=0,Hn=je.tweens.length;cr<Hn;cr++)je.tweens[cr].run(Mn);return Le.notifyWith(D,[je,Mn,Je]),Mn<1&&Hn?Je:(Hn||Le.notifyWith(D,[je,1,0]),Le.resolveWith(D,[je]),!1)},je=Le.promise({elem:D,props:x.extend({},O),opts:x.extend(!0,{specialEasing:{},easing:x.easing._default},H),originalProperties:O,originalOptions:H,startTime:Ac||y$(),duration:H.duration,tweens:[],createTween:function(pt,Je){var Lt=x.Tween(D,je.opts,pt,Je,je.opts.specialEasing[pt]||je.opts.easing);return je.tweens.push(Lt),Lt},stop:function(pt){var Je=0,Lt=pt?je.tweens.length:0;if(te)return this;for(te=!0;Je<Lt;Je++)je.tweens[Je].run(1);return pt?(Le.notifyWith(D,[je,1,0]),Le.resolveWith(D,[je,pt])):Le.rejectWith(D,[je,pt]),this}}),lt=je.props;for(Ufe(lt,je.opts.specialEasing);ne<le;ne++)if(X=Bs.prefilters[ne].call(je,D,lt,je.opts),X)return v(X.stop)&&(x._queueHooks(je.elem,je.opts.queue).stop=X.stop.bind(X)),X;return x.map(lt,m$,je),v(je.opts.start)&&je.opts.start.call(D,je),je.progress(je.opts.progress).done(je.opts.done,je.opts.complete).fail(je.opts.fail).always(je.opts.always),x.fx.timer(x.extend(Me,{elem:D,anim:je,queue:je.opts.queue})),je}x.Animation=x.extend(Bs,{tweeners:{"*":[function(D,O){var H=this.createTween(D,O);return Wt(H.elem,D,be.exec(O),H),H}]},tweener:function(D,O){v(D)?(O=D,D=["*"]):D=D.match(ve);for(var H,X=0,te=D.length;X<te;X++)H=D[X],Bs.tweeners[H]=Bs.tweeners[H]||[],Bs.tweeners[H].unshift(O)},prefilters:[zfe],prefilter:function(D,O){O?Bs.prefilters.unshift(D):Bs.prefilters.push(D)}}),x.speed=function(D,O,H){var X=D&&typeof D=="object"?x.extend({},D):{complete:H||!H&&O||v(D)&&D,duration:D,easing:H&&O||O&&!v(O)&&O};return x.fx.off?X.duration=0:typeof X.duration!="number"&&(X.duration in x.fx.speeds?X.duration=x.fx.speeds[X.duration]:X.duration=x.fx.speeds._default),(X.queue==null||X.queue===!0)&&(X.queue="fx"),X.old=X.complete,X.complete=function(){v(X.old)&&X.old.call(this),X.queue&&x.dequeue(this,X.queue)},X},x.fn.extend({fadeTo:function(D,O,H,X){return this.filter(Tt).css("opacity",0).show().end().animate({opacity:O},D,H,X)},animate:function(D,O,H,X){var te=x.isEmptyObject(D),ne=x.speed(O,H,X),le=function(){var Le=Bs(this,x.extend({},D),ne);(te||de.get(this,"finish"))&&Le.stop(!0)};return le.finish=le,te||ne.queue===!1?this.each(le):this.queue(ne.queue,le)},stop:function(D,O,H){var X=function(te){var ne=te.stop;delete te.stop,ne(H)};return typeof D!="string"&&(H=O,O=D,D=void 0),O&&this.queue(D||"fx",[]),this.each(function(){var te=!0,ne=D!=null&&D+"queueHooks",le=x.timers,Le=de.get(this);if(ne)Le[ne]&&Le[ne].stop&&X(Le[ne]);else for(ne in Le)Le[ne]&&Le[ne].stop&&Ffe.test(ne)&&X(Le[ne]);for(ne=le.length;ne--;)le[ne].elem===this&&(D==null||le[ne].queue===D)&&(le[ne].anim.stop(H),te=!1,le.splice(ne,1));(te||!H)&&x.dequeue(this,D)})},finish:function(D){return D!==!1&&(D=D||"fx"),this.each(function(){var O,H=de.get(this),X=H[D+"queue"],te=H[D+"queueHooks"],ne=x.timers,le=X?X.length:0;for(H.finish=!0,x.queue(this,D,[]),te&&te.stop&&te.stop.call(this,!0),O=ne.length;O--;)ne[O].elem===this&&ne[O].queue===D&&(ne[O].anim.stop(!0),ne.splice(O,1));for(O=0;O<le;O++)X[O]&&X[O].finish&&X[O].finish.call(this);delete H.finish})}}),x.each(["toggle","show","hide"],function(D,O){var H=x.fn[O];x.fn[O]=function(X,te,ne){return X==null||typeof X=="boolean"?H.apply(this,arguments):this.animate(xS(O,!0),X,te,ne)}}),x.each({slideDown:xS("show"),slideUp:xS("hide"),slideToggle:xS("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(D,O){x.fn[D]=function(H,X,te){return this.animate(O,H,X,te)}}),x.timers=[],x.fx.tick=function(){var D,O=0,H=x.timers;for(Ac=Date.now();O<H.length;O++)D=H[O],!D()&&H[O]===D&&H.splice(O--,1);H.length||x.fx.stop(),Ac=void 0},x.fx.timer=function(D){x.timers.push(D),x.fx.start()},x.fx.interval=13,x.fx.start=function(){Ve||(Ve=!0,WE())},x.fx.stop=function(){Ve=null},x.fx.speeds={slow:600,fast:200,_default:400},x.fn.delay=function(D,O){return D=x.fx&&x.fx.speeds[D]||D,O=O||"fx",this.queue(O,function(H,X){var te=e.setTimeout(H,D);X.stop=function(){e.clearTimeout(te)}})},function(){var D=y.createElement("input"),O=y.createElement("select"),H=O.appendChild(y.createElement("option"));D.type="checkbox",p.checkOn=D.value!=="",p.optSelected=H.selected,D=y.createElement("input"),D.value="t",D.type="radio",p.radioValue=D.value==="t"}();var b$,Y0=x.expr.attrHandle;x.fn.extend({attr:function(D,O){return we(this,x.attr,D,O,arguments.length>1)},removeAttr:function(D){return this.each(function(){x.removeAttr(this,D)})}}),x.extend({attr:function(D,O,H){var X,te,ne=D.nodeType;if(!(ne===3||ne===8||ne===2)){if(typeof D.getAttribute>"u")return x.prop(D,O,H);if((ne!==1||!x.isXMLDoc(D))&&(te=x.attrHooks[O.toLowerCase()]||(x.expr.match.bool.test(O)?b$:void 0)),H!==void 0){if(H===null){x.removeAttr(D,O);return}return te&&"set"in te&&(X=te.set(D,H,O))!==void 0?X:(D.setAttribute(O,H+""),H)}return te&&"get"in te&&(X=te.get(D,O))!==null?X:(X=x.find.attr(D,O),X??void 0)}},attrHooks:{type:{set:function(D,O){if(!p.radioValue&&O==="radio"&&M(D,"input")){var H=D.value;return D.setAttribute("type",O),H&&(D.value=H),O}}}},removeAttr:function(D,O){var H,X=0,te=O&&O.match(ve);if(te&&D.nodeType===1)for(;H=te[X++];)D.removeAttribute(H)}}),b$={set:function(D,O,H){return O===!1?x.removeAttr(D,H):D.setAttribute(H,H),H}},x.each(x.expr.match.bool.source.match(/\w+/g),function(D,O){var H=Y0[O]||x.find.attr;Y0[O]=function(X,te,ne){var le,Le,Me=te.toLowerCase();return ne||(Le=Y0[Me],Y0[Me]=le,le=H(X,te,ne)!=null?Me:null,Y0[Me]=Le),le}});var Gfe=/^(?:input|select|textarea|button)$/i,Hfe=/^(?:a|area)$/i;x.fn.extend({prop:function(D,O){return we(this,x.prop,D,O,arguments.length>1)},removeProp:function(D){return this.each(function(){delete this[x.propFix[D]||D]})}}),x.extend({prop:function(D,O,H){var X,te,ne=D.nodeType;if(!(ne===3||ne===8||ne===2))return(ne!==1||!x.isXMLDoc(D))&&(O=x.propFix[O]||O,te=x.propHooks[O]),H!==void 0?te&&"set"in te&&(X=te.set(D,H,O))!==void 0?X:D[O]=H:te&&"get"in te&&(X=te.get(D,O))!==null?X:D[O]},propHooks:{tabIndex:{get:function(D){var O=x.find.attr(D,"tabindex");return O?parseInt(O,10):Gfe.test(D.nodeName)||Hfe.test(D.nodeName)&&D.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),p.optSelected||(x.propHooks.selected={get:function(D){var O=D.parentNode;return O&&O.parentNode&&O.parentNode.selectedIndex,null},set:function(D){var O=D.parentNode;O&&(O.selectedIndex,O.parentNode&&O.parentNode.selectedIndex)}}),x.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){x.propFix[this.toLowerCase()]=this});function md(D){var O=D.match(ve)||[];return O.join(" ")}function bd(D){return D.getAttribute&&D.getAttribute("class")||""}function jE(D){return Array.isArray(D)?D:typeof D=="string"?D.match(ve)||[]:[]}x.fn.extend({addClass:function(D){var O,H,X,te,ne,le;return v(D)?this.each(function(Le){x(this).addClass(D.call(this,Le,bd(this)))}):(O=jE(D),O.length?this.each(function(){if(X=bd(this),H=this.nodeType===1&&" "+md(X)+" ",H){for(ne=0;ne<O.length;ne++)te=O[ne],H.indexOf(" "+te+" ")<0&&(H+=te+" ");le=md(H),X!==le&&this.setAttribute("class",le)}}):this)},removeClass:function(D){var O,H,X,te,ne,le;return v(D)?this.each(function(Le){x(this).removeClass(D.call(this,Le,bd(this)))}):arguments.length?(O=jE(D),O.length?this.each(function(){if(X=bd(this),H=this.nodeType===1&&" "+md(X)+" ",H){for(ne=0;ne<O.length;ne++)for(te=O[ne];H.indexOf(" "+te+" ")>-1;)H=H.replace(" "+te+" "," ");le=md(H),X!==le&&this.setAttribute("class",le)}}):this):this.attr("class","")},toggleClass:function(D,O){var H,X,te,ne,le=typeof D,Le=le==="string"||Array.isArray(D);return v(D)?this.each(function(Me){x(this).toggleClass(D.call(this,Me,bd(this),O),O)}):typeof O=="boolean"&&Le?O?this.addClass(D):this.removeClass(D):(H=jE(D),this.each(function(){if(Le)for(ne=x(this),te=0;te<H.length;te++)X=H[te],ne.hasClass(X)?ne.removeClass(X):ne.addClass(X);else(D===void 0||le==="boolean")&&(X=bd(this),X&&de.set(this,"__className__",X),this.setAttribute&&this.setAttribute("class",X||D===!1?"":de.get(this,"__className__")||""))}))},hasClass:function(D){var O,H,X=0;for(O=" "+D+" ";H=this[X++];)if(H.nodeType===1&&(" "+md(bd(H))+" ").indexOf(O)>-1)return!0;return!1}});var Wfe=/\r/g;x.fn.extend({val:function(D){var O,H,X,te=this[0];return arguments.length?(X=v(D),this.each(function(ne){var le;this.nodeType===1&&(X?le=D.call(this,ne,x(this).val()):le=D,le==null?le="":typeof le=="number"?le+="":Array.isArray(le)&&(le=x.map(le,function(Le){return Le==null?"":Le+""})),O=x.valHooks[this.type]||x.valHooks[this.nodeName.toLowerCase()],(!O||!("set"in O)||O.set(this,le,"value")===void 0)&&(this.value=le))})):te?(O=x.valHooks[te.type]||x.valHooks[te.nodeName.toLowerCase()],O&&"get"in O&&(H=O.get(te,"value"))!==void 0?H:(H=te.value,typeof H=="string"?H.replace(Wfe,""):H??"")):void 0}}),x.extend({valHooks:{option:{get:function(D){var O=x.find.attr(D,"value");return O??md(x.text(D))}},select:{get:function(D){var O,H,X,te=D.options,ne=D.selectedIndex,le=D.type==="select-one",Le=le?null:[],Me=le?ne+1:te.length;for(ne<0?X=Me:X=le?ne:0;X<Me;X++)if(H=te[X],(H.selected||X===ne)&&!H.disabled&&(!H.parentNode.disabled||!M(H.parentNode,"optgroup"))){if(O=x(H).val(),le)return O;Le.push(O)}return Le},set:function(D,O){for(var H,X,te=D.options,ne=x.makeArray(O),le=te.length;le--;)X=te[le],(X.selected=x.inArray(x.valHooks.option.get(X),ne)>-1)&&(H=!0);return H||(D.selectedIndex=-1),ne}}}}),x.each(["radio","checkbox"],function(){x.valHooks[this]={set:function(D,O){if(Array.isArray(O))return D.checked=x.inArray(x(D).val(),O)>-1}},p.checkOn||(x.valHooks[this].get=function(D){return D.getAttribute("value")===null?"on":D.value})});var X0=e.location,S$={guid:Date.now()},KE=/\?/;x.parseXML=function(D){var O,H;if(!D||typeof D!="string")return null;try{O=new e.DOMParser().parseFromString(D,"text/xml")}catch{}return H=O&&O.getElementsByTagName("parsererror")[0],(!O||H)&&x.error("Invalid XML: "+(H?x.map(H.childNodes,function(X){return X.textContent}).join(`
  76. `):D)),O};var w$=/^(?:focusinfocus|focusoutblur)$/,x$=function(D){D.stopPropagation()};x.extend(x.event,{trigger:function(D,O,H,X){var te,ne,le,Le,Me,je,lt,pt,Je=[H||y],Lt=f.call(D,"type")?D.type:D,Mn=f.call(D,"namespace")?D.namespace.split("."):[];if(ne=pt=le=H=H||y,!(H.nodeType===3||H.nodeType===8)&&!w$.test(Lt+x.event.triggered)&&(Lt.indexOf(".")>-1&&(Mn=Lt.split("."),Lt=Mn.shift(),Mn.sort()),Me=Lt.indexOf(":")<0&&"on"+Lt,D=D[x.expando]?D:new x.Event(Lt,typeof D=="object"&&D),D.isTrigger=X?2:3,D.namespace=Mn.join("."),D.rnamespace=D.namespace?new RegExp("(^|\\.)"+Mn.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,D.result=void 0,D.target||(D.target=H),O=O==null?[D]:x.makeArray(O,[D]),lt=x.event.special[Lt]||{},!(!X&&lt.trigger&&lt.trigger.apply(H,O)===!1))){if(!X&&!lt.noBubble&&!g(H)){for(Le=lt.delegateType||Lt,w$.test(Le+Lt)||(ne=ne.parentNode);ne;ne=ne.parentNode)Je.push(ne),le=ne;le===(H.ownerDocument||y)&&Je.push(le.defaultView||le.parentWindow||e)}for(te=0;(ne=Je[te++])&&!D.isPropagationStopped();)pt=ne,D.type=te>1?Le:lt.bindType||Lt,je=(de.get(ne,"events")||Object.create(null))[D.type]&&de.get(ne,"handle"),je&&je.apply(ne,O),je=Me&&ne[Me],je&&je.apply&&qe(ne)&&(D.result=je.apply(ne,O),D.result===!1&&D.preventDefault());return D.type=Lt,!X&&!D.isDefaultPrevented()&&(!lt._default||lt._default.apply(Je.pop(),O)===!1)&&qe(H)&&Me&&v(H[Lt])&&!g(H)&&(le=H[Me],le&&(H[Me]=null),x.event.triggered=Lt,D.isPropagationStopped()&&pt.addEventListener(Lt,x$),H[Lt](),D.isPropagationStopped()&&pt.removeEventListener(Lt,x$),x.event.triggered=void 0,le&&(H[Me]=le)),D.result}},simulate:function(D,O,H){var X=x.extend(new x.Event,H,{type:D,isSimulated:!0});x.event.trigger(X,null,O)}}),x.fn.extend({trigger:function(D,O){return this.each(function(){x.event.trigger(D,O,this)})},triggerHandler:function(D,O){var H=this[0];if(H)return x.event.trigger(D,O,H,!0)}});var jfe=/\[\]$/,_$=/\r?\n/g,Kfe=/^(?:submit|button|image|reset|file)$/i,Yfe=/^(?:input|select|textarea|keygen)/i;function YE(D,O,H,X){var te;if(Array.isArray(O))x.each(O,function(ne,le){H||jfe.test(D)?X(D,le):YE(D+"["+(typeof le=="object"&&le!=null?ne:"")+"]",le,H,X)});else if(!H&&w(O)==="object")for(te in O)YE(D+"["+te+"]",O[te],H,X);else X(D,O)}x.param=function(D,O){var H,X=[],te=function(ne,le){var Le=v(le)?le():le;X[X.length]=encodeURIComponent(ne)+"="+encodeURIComponent(Le??"")};if(D==null)return"";if(Array.isArray(D)||D.jquery&&!x.isPlainObject(D))x.each(D,function(){te(this.name,this.value)});else for(H in D)YE(H,D[H],O,te);return X.join("&")},x.fn.extend({serialize:function(){return x.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var D=x.prop(this,"elements");return D?x.makeArray(D):this}).filter(function(){var D=this.type;return this.name&&!x(this).is(":disabled")&&Yfe.test(this.nodeName)&&!Kfe.test(D)&&(this.checked||!wr.test(D))}).map(function(D,O){var H=x(this).val();return H==null?null:Array.isArray(H)?x.map(H,function(X){return{name:O.name,value:X.replace(_$,`\r
  77. `)}}):{name:O.name,value:H.replace(_$,`\r
  78. `)}}).get()}});var Xfe=/%20/g,qfe=/#.*$/,Zfe=/([?&])_=[^&]*/,Qfe=/^(.*?):[ \t]*([^\r\n]*)$/mg,Jfe=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,ede=/^(?:GET|HEAD)$/,tde=/^\/\//,C$={},XE={},T$="*/".concat("*"),qE=y.createElement("a");qE.href=X0.href;function E$(D){return function(O,H){typeof O!="string"&&(H=O,O="*");var X,te=0,ne=O.toLowerCase().match(ve)||[];if(v(H))for(;X=ne[te++];)X[0]==="+"?(X=X.slice(1)||"*",(D[X]=D[X]||[]).unshift(H)):(D[X]=D[X]||[]).push(H)}}function M$(D,O,H,X){var te={},ne=D===XE;function le(Le){var Me;return te[Le]=!0,x.each(D[Le]||[],function(je,lt){var pt=lt(O,H,X);if(typeof pt=="string"&&!ne&&!te[pt])return O.dataTypes.unshift(pt),le(pt),!1;if(ne)return!(Me=pt)}),Me}return le(O.dataTypes[0])||!te["*"]&&le("*")}function ZE(D,O){var H,X,te=x.ajaxSettings.flatOptions||{};for(H in O)O[H]!==void 0&&((te[H]?D:X||(X={}))[H]=O[H]);return X&&x.extend(!0,D,X),D}function nde(D,O,H){for(var X,te,ne,le,Le=D.contents,Me=D.dataTypes;Me[0]==="*";)Me.shift(),X===void 0&&(X=D.mimeType||O.getResponseHeader("Content-Type"));if(X){for(te in Le)if(Le[te]&&Le[te].test(X)){Me.unshift(te);break}}if(Me[0]in H)ne=Me[0];else{for(te in H){if(!Me[0]||D.converters[te+" "+Me[0]]){ne=te;break}le||(le=te)}ne=ne||le}if(ne)return ne!==Me[0]&&Me.unshift(ne),H[ne]}function rde(D,O,H,X){var te,ne,le,Le,Me,je={},lt=D.dataTypes.slice();if(lt[1])for(le in D.converters)je[le.toLowerCase()]=D.converters[le];for(ne=lt.shift();ne;)if(D.responseFields[ne]&&(H[D.responseFields[ne]]=O),!Me&&X&&D.dataFilter&&(O=D.dataFilter(O,D.dataType)),Me=ne,ne=lt.shift(),ne){if(ne==="*")ne=Me;else if(Me!=="*"&&Me!==ne){if(le=je[Me+" "+ne]||je["* "+ne],!le){for(te in je)if(Le=te.split(" "),Le[1]===ne&&(le=je[Me+" "+Le[0]]||je["* "+Le[0]],le)){le===!0?le=je[te]:je[te]!==!0&&(ne=Le[0],lt.unshift(Le[1]));break}}if(le!==!0)if(le&&D.throws)O=le(O);else try{O=le(O)}catch(pt){return{state:"parsererror",error:le?pt:"No conversion from "+Me+" to "+ne}}}}return{state:"success",data:O}}x.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:X0.href,type:"GET",isLocal:Jfe.test(X0.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":T$,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":x.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(D,O){return O?ZE(ZE(D,x.ajaxSettings),O):ZE(x.ajaxSettings,D)},ajaxPrefilter:E$(C$),ajaxTransport:E$(XE),ajax:function(D,O){typeof D=="object"&&(O=D,D=void 0),O=O||{};var H,X,te,ne,le,Le,Me,je,lt,pt,Je=x.ajaxSetup({},O),Lt=Je.context||Je,Mn=Je.context&&(Lt.nodeType||Lt.jquery)?x(Lt):x.event,cr=x.Deferred(),Hn=x.Callbacks("once memory"),ui=Je.statusCode||{},Pa={},Dl={},Al="canceled",Jn={readyState:0,getResponseHeader:function(dr){var pa;if(Me){if(!ne)for(ne={};pa=Qfe.exec(te);)ne[pa[1].toLowerCase()+" "]=(ne[pa[1].toLowerCase()+" "]||[]).concat(pa[2]);pa=ne[dr.toLowerCase()+" "]}return pa==null?null:pa.join(", ")},getAllResponseHeaders:function(){return Me?te:null},setRequestHeader:function(dr,pa){return Me==null&&(dr=Dl[dr.toLowerCase()]=Dl[dr.toLowerCase()]||dr,Pa[dr]=pa),this},overrideMimeType:function(dr){return Me==null&&(Je.mimeType=dr),this},statusCode:function(dr){var pa;if(dr)if(Me)Jn.always(dr[Jn.status]);else for(pa in dr)ui[pa]=[ui[pa],dr[pa]];return this},abort:function(dr){var pa=dr||Al;return H&&H.abort(pa),Sd(0,pa),this}};if(cr.promise(Jn),Je.url=((D||Je.url||X0.href)+"").replace(tde,X0.protocol+"//"),Je.type=O.method||O.type||Je.method||Je.type,Je.dataTypes=(Je.dataType||"*").toLowerCase().match(ve)||[""],Je.crossDomain==null){Le=y.createElement("a");try{Le.href=Je.url,Le.href=Le.href,Je.crossDomain=qE.protocol+"//"+qE.host!=Le.protocol+"//"+Le.host}catch{Je.crossDomain=!0}}if(Je.data&&Je.processData&&typeof Je.data!="string"&&(Je.data=x.param(Je.data,Je.traditional)),M$(C$,Je,O,Jn),Me)return Jn;je=x.event&&Je.global,je&&x.active++===0&&x.event.trigger("ajaxStart"),Je.type=Je.type.toUpperCase(),Je.hasContent=!ede.test(Je.type),X=Je.url.replace(qfe,""),Je.hasContent?Je.data&&Je.processData&&(Je.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&(Je.data=Je.data.replace(Xfe,"+")):(pt=Je.url.slice(X.length),Je.data&&(Je.processData||typeof Je.data=="string")&&(X+=(KE.test(X)?"&":"?")+Je.data,delete Je.data),Je.cache===!1&&(X=X.replace(Zfe,"$1"),pt=(KE.test(X)?"&":"?")+"_="+S$.guid+++pt),Je.url=X+pt),Je.ifModified&&(x.lastModified[X]&&Jn.setRequestHeader("If-Modified-Since",x.lastModified[X]),x.etag[X]&&Jn.setRequestHeader("If-None-Match",x.etag[X])),(Je.data&&Je.hasContent&&Je.contentType!==!1||O.contentType)&&Jn.setRequestHeader("Content-Type",Je.contentType),Jn.setRequestHeader("Accept",Je.dataTypes[0]&&Je.accepts[Je.dataTypes[0]]?Je.accepts[Je.dataTypes[0]]+(Je.dataTypes[0]!=="*"?", "+T$+"; q=0.01":""):Je.accepts["*"]);for(lt in Je.headers)Jn.setRequestHeader(lt,Je.headers[lt]);if(Je.beforeSend&&(Je.beforeSend.call(Lt,Jn,Je)===!1||Me))return Jn.abort();if(Al="abort",Hn.add(Je.complete),Jn.done(Je.success),Jn.fail(Je.error),H=M$(XE,Je,O,Jn),!H)Sd(-1,"No Transport");else{if(Jn.readyState=1,je&&Mn.trigger("ajaxSend",[Jn,Je]),Me)return Jn;Je.async&&Je.timeout>0&&(le=e.setTimeout(function(){Jn.abort("timeout")},Je.timeout));try{Me=!1,H.send(Pa,Sd)}catch(dr){if(Me)throw dr;Sd(-1,dr)}}function Sd(dr,pa,Z0,JE){var kl,Q0,Rl,kc,Rc,Yo=pa;Me||(Me=!0,le&&e.clearTimeout(le),H=void 0,te=JE||"",Jn.readyState=dr>0?4:0,kl=dr>=200&&dr<300||dr===304,Z0&&(kc=nde(Je,Jn,Z0)),!kl&&x.inArray("script",Je.dataTypes)>-1&&x.inArray("json",Je.dataTypes)<0&&(Je.converters["text script"]=function(){}),kc=rde(Je,kc,Jn,kl),kl?(Je.ifModified&&(Rc=Jn.getResponseHeader("Last-Modified"),Rc&&(x.lastModified[X]=Rc),Rc=Jn.getResponseHeader("etag"),Rc&&(x.etag[X]=Rc)),dr===204||Je.type==="HEAD"?Yo="nocontent":dr===304?Yo="notmodified":(Yo=kc.state,Q0=kc.data,Rl=kc.error,kl=!Rl)):(Rl=Yo,(dr||!Yo)&&(Yo="error",dr<0&&(dr=0))),Jn.status=dr,Jn.statusText=(pa||Yo)+"",kl?cr.resolveWith(Lt,[Q0,Yo,Jn]):cr.rejectWith(Lt,[Jn,Yo,Rl]),Jn.statusCode(ui),ui=void 0,je&&Mn.trigger(kl?"ajaxSuccess":"ajaxError",[Jn,Je,kl?Q0:Rl]),Hn.fireWith(Lt,[Jn,Yo]),je&&(Mn.trigger("ajaxComplete",[Jn,Je]),--x.active||x.event.trigger("ajaxStop")))}return Jn},getJSON:function(D,O,H){return x.get(D,O,H,"json")},getScript:function(D,O){return x.get(D,void 0,O,"script")}}),x.each(["get","post"],function(D,O){x[O]=function(H,X,te,ne){return v(X)&&(ne=ne||te,te=X,X=void 0),x.ajax(x.extend({url:H,type:O,dataType:ne,data:X,success:te},x.isPlainObject(H)&&H))}}),x.ajaxPrefilter(function(D){var O;for(O in D.headers)O.toLowerCase()==="content-type"&&(D.contentType=D.headers[O]||"")}),x._evalUrl=function(D,O,H){return x.ajax({url:D,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(X){x.globalEval(X,O,H)}})},x.fn.extend({wrapAll:function(D){var O;return this[0]&&(v(D)&&(D=D.call(this[0])),O=x(D,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&O.insertBefore(this[0]),O.map(function(){for(var H=this;H.firstElementChild;)H=H.firstElementChild;return H}).append(this)),this},wrapInner:function(D){return v(D)?this.each(function(O){x(this).wrapInner(D.call(this,O))}):this.each(function(){var O=x(this),H=O.contents();H.length?H.wrapAll(D):O.append(D)})},wrap:function(D){var O=v(D);return this.each(function(H){x(this).wrapAll(O?D.call(this,H):D)})},unwrap:function(D){return this.parent(D).not("body").each(function(){x(this).replaceWith(this.childNodes)}),this}}),x.expr.pseudos.hidden=function(D){return!x.expr.pseudos.visible(D)},x.expr.pseudos.visible=function(D){return!!(D.offsetWidth||D.offsetHeight||D.getClientRects().length)},x.ajaxSettings.xhr=function(){try{return new e.XMLHttpRequest}catch{}};var ade={0:200,1223:204},q0=x.ajaxSettings.xhr();p.cors=!!q0&&"withCredentials"in q0,p.ajax=q0=!!q0,x.ajaxTransport(function(D){var O,H;if(p.cors||q0&&!D.crossDomain)return{send:function(X,te){var ne,le=D.xhr();if(le.open(D.type,D.url,D.async,D.username,D.password),D.xhrFields)for(ne in D.xhrFields)le[ne]=D.xhrFields[ne];D.mimeType&&le.overrideMimeType&&le.overrideMimeType(D.mimeType),!D.crossDomain&&!X["X-Requested-With"]&&(X["X-Requested-With"]="XMLHttpRequest");for(ne in X)le.setRequestHeader(ne,X[ne]);O=function(Le){return function(){O&&(O=H=le.onload=le.onerror=le.onabort=le.ontimeout=le.onreadystatechange=null,Le==="abort"?le.abort():Le==="error"?typeof le.status!="number"?te(0,"error"):te(le.status,le.statusText):te(ade[le.status]||le.status,le.statusText,(le.responseType||"text")!=="text"||typeof le.responseText!="string"?{binary:le.response}:{text:le.responseText},le.getAllResponseHeaders()))}},le.onload=O(),H=le.onerror=le.ontimeout=O("error"),le.onabort!==void 0?le.onabort=H:le.onreadystatechange=function(){le.readyState===4&&e.setTimeout(function(){O&&H()})},O=O("abort");try{le.send(D.hasContent&&D.data||null)}catch(Le){if(O)throw Le}},abort:function(){O&&O()}}}),x.ajaxPrefilter(function(D){D.crossDomain&&(D.contents.script=!1)}),x.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(D){return x.globalEval(D),D}}}),x.ajaxPrefilter("script",function(D){D.cache===void 0&&(D.cache=!1),D.crossDomain&&(D.type="GET")}),x.ajaxTransport("script",function(D){if(D.crossDomain||D.scriptAttrs){var O,H;return{send:function(X,te){O=x("<script>").attr(D.scriptAttrs||{}).prop({charset:D.scriptCharset,src:D.url}).on("load error",H=function(ne){O.remove(),H=null,ne&&te(ne.type==="error"?404:200,ne.type)}),y.head.appendChild(O[0])},abort:function(){H&&H()}}}});var D$=[],QE=/(=)\?(?=&|$)|\?\?/;x.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var D=D$.pop()||x.expando+"_"+S$.guid++;return this[D]=!0,D}}),x.ajaxPrefilter("json jsonp",function(D,O,H){var X,te,ne,le=D.jsonp!==!1&&(QE.test(D.url)?"url":typeof D.data=="string"&&(D.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&QE.test(D.data)&&"data");if(le||D.dataTypes[0]==="jsonp")return X=D.jsonpCallback=v(D.jsonpCallback)?D.jsonpCallback():D.jsonpCallback,le?D[le]=D[le].replace(QE,"$1"+X):D.jsonp!==!1&&(D.url+=(KE.test(D.url)?"&":"?")+D.jsonp+"="+X),D.converters["script json"]=function(){return ne||x.error(X+" was not called"),ne[0]},D.dataTypes[0]="json",te=e[X],e[X]=function(){ne=arguments},H.always(function(){te===void 0?x(e).removeProp(X):e[X]=te,D[X]&&(D.jsonpCallback=O.jsonpCallback,D$.push(X)),ne&&v(te)&&te(ne[0]),ne=te=void 0}),"script"}),p.createHTMLDocument=function(){var D=y.implementation.createHTMLDocument("").body;return D.innerHTML="<form></form><form></form>",D.childNodes.length===2}(),x.parseHTML=function(D,O,H){if(typeof D!="string")return[];typeof O=="boolean"&&(H=O,O=!1);var X,te,ne;return O||(p.createHTMLDocument?(O=y.implementation.createHTMLDocument(""),X=O.createElement("base"),X.href=y.location.href,O.head.appendChild(X)):O=y),te=Z.exec(D),ne=!H&&[],te?[O.createElement(te[1])]:(te=Nr([D],O,ne),ne&&ne.length&&x(ne).remove(),x.merge([],te.childNodes))},x.fn.load=function(D,O,H){var X,te,ne,le=this,Le=D.indexOf(" ");return Le>-1&&(X=md(D.slice(Le)),D=D.slice(0,Le)),v(O)?(H=O,O=void 0):O&&typeof O=="object"&&(te="POST"),le.length>0&&x.ajax({url:D,type:te||"GET",dataType:"html",data:O}).done(function(Me){ne=arguments,le.html(X?x("<div>").append(x.parseHTML(Me)).find(X):Me)}).always(H&&function(Me,je){le.each(function(){H.apply(this,ne||[Me.responseText,je,Me])})}),this},x.expr.pseudos.animated=function(D){return x.grep(x.timers,function(O){return D===O.elem}).length},x.offset={setOffset:function(D,O,H){var X,te,ne,le,Le,Me,je,lt=x.css(D,"position"),pt=x(D),Je={};lt==="static"&&(D.style.position="relative"),Le=pt.offset(),ne=x.css(D,"top"),Me=x.css(D,"left"),je=(lt==="absolute"||lt==="fixed")&&(ne+Me).indexOf("auto")>-1,je?(X=pt.position(),le=X.top,te=X.left):(le=parseFloat(ne)||0,te=parseFloat(Me)||0),v(O)&&(O=O.call(D,H,x.extend({},Le))),O.top!=null&&(Je.top=O.top-Le.top+le),O.left!=null&&(Je.left=O.left-Le.left+te),"using"in O?O.using.call(D,Je):pt.css(Je)}},x.fn.extend({offset:function(D){if(arguments.length)return D===void 0?this:this.each(function(te){x.offset.setOffset(this,D,te)});var O,H,X=this[0];if(X)return X.getClientRects().length?(O=X.getBoundingClientRect(),H=X.ownerDocument.defaultView,{top:O.top+H.pageYOffset,left:O.left+H.pageXOffset}):{top:0,left:0}},position:function(){if(this[0]){var D,O,H,X=this[0],te={top:0,left:0};if(x.css(X,"position")==="fixed")O=X.getBoundingClientRect();else{for(O=this.offset(),H=X.ownerDocument,D=X.offsetParent||H.documentElement;D&&(D===H.body||D===H.documentElement)&&x.css(D,"position")==="static";)D=D.parentNode;D&&D!==X&&D.nodeType===1&&(te=x(D).offset(),te.top+=x.css(D,"borderTopWidth",!0),te.left+=x.css(D,"borderLeftWidth",!0))}return{top:O.top-te.top-x.css(X,"marginTop",!0),left:O.left-te.left-x.css(X,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var D=this.offsetParent;D&&x.css(D,"position")==="static";)D=D.offsetParent;return D||Pe})}}),x.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(D,O){var H=O==="pageYOffset";x.fn[D]=function(X){return we(this,function(te,ne,le){var Le;if(g(te)?Le=te:te.nodeType===9&&(Le=te.defaultView),le===void 0)return Le?Le[O]:te[ne];Le?Le.scrollTo(H?Le.pageXOffset:le,H?le:Le.pageYOffset):te[ne]=le},D,X,arguments.length)}}),x.each(["top","left"],function(D,O){x.cssHooks[O]=Oo(p.pixelPosition,function(H,X){if(X)return X=li(H,O),Te.test(X)?x(H).position()[O]+"px":X})}),x.each({Height:"height",Width:"width"},function(D,O){x.each({padding:"inner"+D,content:O,"":"outer"+D},function(H,X){x.fn[X]=function(te,ne){var le=arguments.length&&(H||typeof te!="boolean"),Le=H||(te===!0||ne===!0?"margin":"border");return we(this,function(Me,je,lt){var pt;return g(Me)?X.indexOf("outer")===0?Me["inner"+D]:Me.document.documentElement["client"+D]:Me.nodeType===9?(pt=Me.documentElement,Math.max(Me.body["scroll"+D],pt["scroll"+D],Me.body["offset"+D],pt["offset"+D],pt["client"+D])):lt===void 0?x.css(Me,je,Le):x.style(Me,je,lt,Le)},O,le?te:void 0,le)}})}),x.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(D,O){x.fn[O]=function(H){return this.on(O,H)}}),x.fn.extend({bind:function(D,O,H){return this.on(D,null,O,H)},unbind:function(D,O){return this.off(D,null,O)},delegate:function(D,O,H,X){return this.on(O,D,H,X)},undelegate:function(D,O,H){return arguments.length===1?this.off(D,"**"):this.off(O,D||"**",H)},hover:function(D,O){return this.on("mouseenter",D).on("mouseleave",O||D)}}),x.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(D,O){x.fn[O]=function(H,X){return arguments.length>0?this.on(O,null,H,X):this.trigger(O)}});var ide=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;x.proxy=function(D,O){var H,X,te;if(typeof O=="string"&&(H=D[O],O=D,D=H),!!v(D))return X=i.call(arguments,2),te=function(){return D.apply(O||this,X.concat(i.call(arguments)))},te.guid=D.guid=D.guid||x.guid++,te},x.holdReady=function(D){D?x.readyWait++:x.ready(!0)},x.isArray=Array.isArray,x.parseJSON=JSON.parse,x.nodeName=M,x.isFunction=v,x.isWindow=g,x.camelCase=Ce,x.type=w,x.now=Date.now,x.isNumeric=function(D){var O=x.type(D);return(O==="number"||O==="string")&&!isNaN(D-parseFloat(D))},x.trim=function(D){return D==null?"":(D+"").replace(ide,"$1")};var ode=e.jQuery,sde=e.$;return x.noConflict=function(D){return e.$===x&&(e.$=sde),D&&e.jQuery===x&&(e.jQuery=ode),x},typeof n>"u"&&(e.jQuery=e.$=x),x})})(cJ);var fJ=cJ.exports;const zWe=xi(fJ);/*! WebUploader 0.1.6 */var UWe=fJ,GWe=function(t,e){var n={},r=function(u,c){var f,d,h;if(typeof u=="string")return o(u);for(f=[],d=u.length,h=0;h<d;h++)f.push(o(u[h]));return c.apply(null,f)},a=function(u,c,f){arguments.length===2&&(f=c,c=null),r(c||[],function(){i(u,f,arguments)})},i=function(u,c,f){var d={exports:c},h;typeof c=="function"&&(f.length||(f=[r,d.exports,d]),h=c.apply(null,f),h!==void 0&&(d.exports=h)),n[u]=d.exports},o=function(u){var c=n[u]||t[u];if(!c)throw new Error("`"+u+"` is undefined");return c},s=function(u){var c,f,d,h,p,v;v=function(g){return g&&g.charAt(0).toUpperCase()+g.substr(1)};for(c in n)if(f=u,!!n.hasOwnProperty(c)){for(d=c.split("/"),p=v(d.pop());h=v(d.shift());)f[h]=f[h]||{},f=f[h];f[p]=n[c]}return u},l=function(u){return t.__dollar=u,s(e(t,a,r))};return l(UWe)}(window,function(t,e,n){e("dollar-third",[],function(){var a=t.require,i=t.__dollar||t.jQuery||t.Zepto||a("jquery")||a("zepto");if(!i)throw new Error("jQuery or Zepto not found!");return i}),e("dollar",["dollar-third"],function(a){return a}),e("promise-third",["dollar"],function(a){return{Deferred:a.Deferred,when:a.when,isPromise:function(i){return i&&typeof i.then=="function"}}}),e("promise",["promise-third"],function(a){return a}),e("base",["dollar","promise"],function(a,i){var o=function(){},s=Function.call;function l(f){return function(){return s.apply(f,arguments)}}function u(f,d){return function(){return f.apply(d,arguments)}}function c(f){var d;return Object.create?Object.create(f):(d=function(){},d.prototype=f,new d)}return{version:"0.1.6",$:a,Deferred:i.Deferred,isPromise:i.isPromise,when:i.when,browser:function(f){var d={},h=f.match(/WebKit\/([\d.]+)/),p=f.match(/Chrome\/([\d.]+)/)||f.match(/CriOS\/([\d.]+)/),v=f.match(/MSIE\s([\d\.]+)/)||f.match(/(?:trident)(?:.*rv:([\w.]+))?/i),g=f.match(/Firefox\/([\d.]+)/),y=f.match(/Safari\/([\d.]+)/),m=f.match(/OPR\/([\d.]+)/);return h&&(d.webkit=parseFloat(h[1])),p&&(d.chrome=parseFloat(p[1])),v&&(d.ie=parseFloat(v[1])),g&&(d.firefox=parseFloat(g[1])),y&&(d.safari=parseFloat(y[1])),m&&(d.opera=parseFloat(m[1])),d}(navigator.userAgent),os:function(f){var d={},h=f.match(/(?:Android);?[\s\/]+([\d.]+)?/),p=f.match(/(?:iPad|iPod|iPhone).*OS\s([\d_]+)/);return h&&(d.android=parseFloat(h[1])),p&&(d.ios=parseFloat(p[1].replace(/_/g,"."))),d}(navigator.userAgent),inherits:function(f,d,h){var p;return typeof d=="function"?(p=d,d=null):d&&d.hasOwnProperty("constructor")?p=d.constructor:p=function(){return f.apply(this,arguments)},a.extend(!0,p,f,h||{}),p.__super__=f.prototype,p.prototype=c(f.prototype),d&&a.extend(!0,p.prototype,d),p},noop:o,bindFn:u,log:function(){return t.console?u(console.log,console):o}(),nextTick:function(){return function(f){setTimeout(f,1)}}(),slice:l([].slice),guid:function(){var f=0;return function(d){for(var h=(+new Date).toString(32),p=0;p<5;p++)h+=Math.floor(Math.random()*65535).toString(32);return(d||"wu_")+h+(f++).toString(32)}}(),formatSize:function(f,d,h){var p;for(h=h||["B","K","M","G","TB"];(p=h.shift())&&f>1024;)f=f/1024;return(p==="B"?f:f.toFixed(d||2))+p}}}),e("mediator",["base"],function(a){var i=a.$,o=[].slice,s=/\s+/,l;function u(d,h,p,v){return i.grep(d,function(g){return g&&(!h||g.e===h)&&(!p||g.cb===p||g.cb._cb===p)&&(!v||g.ctx===v)})}function c(d,h,p){i.each((d||"").split(s),function(v,g){p(g,h)})}function f(d,h){for(var p=!1,v=-1,g=d.length,y;++v<g;)if(y=d[v],y.cb.apply(y.ctx2,h)===!1){p=!0;break}return!p}return l={on:function(d,h,p){var v=this,g;return h?(g=this._events||(this._events=[]),c(d,h,function(y,m){var S={e:y};S.cb=m,S.ctx=p,S.ctx2=p||v,S.id=g.length,g.push(S)}),this):this},once:function(d,h,p){var v=this;return h&&c(d,h,function(g,y){var m=function(){return v.off(g,m),y.apply(p||v,arguments)};m._cb=y,v.on(g,m,p)}),v},off:function(d,h,p){var v=this._events;return v?!d&&!h&&!p?(this._events=[],this):(c(d,h,function(g,y){i.each(u(v,g,y,p),function(){delete v[this.id]})}),this):this},trigger:function(d){var h,p,v;return!this._events||!d?this:(h=o.call(arguments,1),p=u(this._events,d),v=u(this._events,"all"),f(p,h)&&f(v,arguments))}},i.extend({installTo:function(d){return i.extend(d,l)}},l)}),e("uploader",["base","mediator"],function(a,i){var o=a.$;function s(l){this.options=o.extend(!0,{},s.options,l),this._init(this.options)}return s.options={},i.installTo(s.prototype),o.each({upload:"start-upload",stop:"stop-upload",getFile:"get-file",getFiles:"get-files",addFile:"add-file",addFiles:"add-file",sort:"sort-files",removeFile:"remove-file",cancelFile:"cancel-file",skipFile:"skip-file",retry:"retry",isInProgress:"is-in-progress",makeThumb:"make-thumb",md5File:"md5-file",getDimension:"get-dimension",addButton:"add-btn",predictRuntimeType:"predict-runtime-type",refresh:"refresh",disable:"disable",enable:"enable",reset:"reset"},function(l,u){s.prototype[l]=function(){return this.request(u,arguments)}}),o.extend(s.prototype,{state:"pending",_init:function(l){var u=this;u.request("init",l,function(){u.state="ready",u.trigger("ready")})},option:function(l,u){var c=this.options;if(arguments.length>1)o.isPlainObject(u)&&o.isPlainObject(c[l])?o.extend(c[l],u):c[l]=u;else return l?c[l]:c},getStats:function(){var l=this.request("get-stats");return l?{successNum:l.numOfSuccess,progressNum:l.numOfProgress,cancelNum:l.numOfCancel,invalidNum:l.numOfInvalid,uploadFailNum:l.numOfUploadFailed,queueNum:l.numOfQueue,interruptNum:l.numofInterrupt}:{}},trigger:function(l){var u=[].slice.call(arguments,1),c=this.options,f="on"+l.substring(0,1).toUpperCase()+l.substring(1);return!(i.trigger.apply(this,arguments)===!1||o.isFunction(c[f])&&c[f].apply(this,u)===!1||o.isFunction(this[f])&&this[f].apply(this,u)===!1||i.trigger.apply(i,[this,l].concat(u))===!1)},destroy:function(){this.request("destroy",arguments),this.off()},request:a.noop}),a.create=s.create=function(l){return new s(l)},a.Uploader=s,s}),e("runtime/runtime",["base","mediator"],function(a,i){var o=a.$,s={},l=function(c){for(var f in c)if(c.hasOwnProperty(f))return f;return null};function u(c){this.options=o.extend({container:document.body},c),this.uid=a.guid("rt_")}return o.extend(u.prototype,{getContainer:function(){var c=this.options,f,d;return this._container?this._container:(f=o(c.container||document.body),d=o(document.createElement("div")),d.attr("id","rt_"+this.uid),d.css({position:"absolute",top:"0px",left:"0px",width:"1px",height:"1px",overflow:"hidden"}),f.append(d),f.addClass("webuploader-container"),this._container=d,this._parent=f,d)},init:a.noop,exec:a.noop,destroy:function(){this._container&&this._container.remove(),this._parent&&this._parent.removeClass("webuploader-container"),this.off()}}),u.orders="html5,flash",u.addRuntime=function(c,f){s[c]=f},u.hasRuntime=function(c){return!!(c?s[c]:l(s))},u.create=function(c,f){var d,h;if(f=f||u.orders,o.each(f.split(/\s*,\s*/g),function(){if(s[this])return d=this,!1}),d=d||l(s),!d)throw new Error("Runtime Error");return h=new s[d](c),h},i.installTo(u.prototype),u}),e("runtime/client",["base","mediator","runtime/runtime"],function(a,i,o){var s;s=function(){var u={};return{add:function(c){u[c.uid]=c},get:function(c,f){var d;if(c)return u[c];for(d in u)if(!(f&&u[d].__standalone))return u[d];return null},remove:function(c){delete u[c.uid]}}}();function l(u,c){var f=a.Deferred(),d;this.uid=a.guid("client_"),this.runtimeReady=function(h){return f.done(h)},this.connectRuntime=function(h,p){if(d)throw new Error("already connected!");return f.done(p),typeof h=="string"&&s.get(h)&&(d=s.get(h)),d=d||s.get(null,c),d?(a.$.extend(d.options,h),d.__promise.then(f.resolve),d.__client++):(d=o.create(h,h.runtimeOrder),d.__promise=f.promise(),d.once("ready",f.resolve),d.init(),s.add(d),d.__client=1),c&&(d.__standalone=c),d},this.getRuntime=function(){return d},this.disconnectRuntime=function(){d&&(d.__client--,d.__client<=0&&(s.remove(d),delete d.__promise,d.destroy()),d=null)},this.exec=function(){if(d){var h=a.slice(arguments);return u&&h.unshift(u),d.exec.apply(this,h)}},this.getRuid=function(){return d&&d.uid},this.destroy=function(h){return function(){h&&h.apply(this,arguments),this.trigger("destroy"),this.off(),this.exec("destroy"),this.disconnectRuntime()}}(this.destroy)}return i.installTo(l.prototype),l}),e("lib/dnd",["base","mediator","runtime/client"],function(a,i,o){var s=a.$;function l(u){u=this.options=s.extend({},l.options,u),u.container=s(u.container),u.container.length&&o.call(this,"DragAndDrop")}return l.options={accept:null,disableGlobalDnd:!1},a.inherits(o,{constructor:l,init:function(){var u=this;u.connectRuntime(u.options,function(){u.exec("init"),u.trigger("ready")})}}),i.installTo(l.prototype),l}),e("widgets/widget",["base","uploader"],function(a,i){var o=a.$,s=i.prototype._init,l=i.prototype.destroy,u={},c=[];function f(h){if(!h)return!1;var p=h.length,v=o.type(h);return h.nodeType===1&&p?!0:v==="array"||v!=="function"&&v!=="string"&&(p===0||typeof p=="number"&&p>0&&p-1 in h)}function d(h){this.owner=h,this.options=h.options}return o.extend(d.prototype,{init:a.noop,invoke:function(h,p){var v=this.responseMap;return!v||!(h in v)||!(v[h]in this)||!o.isFunction(this[v[h]])?u:this[v[h]].apply(this,p)},request:function(){return this.owner.request.apply(this.owner,arguments)}}),o.extend(i.prototype,{_init:function(){var h=this,p=h._widgets=[],v=h.options.disableWidgets||"";return o.each(c,function(g,y){(!v||!~v.indexOf(y._name))&&p.push(new y(h))}),s.apply(h,arguments)},request:function(h,p,v){var g=0,y=this._widgets,m=y&&y.length,S=[],w=[],C,_,x,T;for(p=f(p)?p:[p];g<m;g++)C=y[g],_=C.invoke(h,p),_!==u&&(a.isPromise(_)?w.push(_):S.push(_));return v||w.length?(x=a.when.apply(a,w),T=x.pipe?"pipe":"then",x[T](function(){var M=a.Deferred(),E=arguments;return E.length===1&&(E=E[0]),setTimeout(function(){M.resolve(E)},1),M.promise()})[v?T:"done"](v||a.noop)):S[0]},destroy:function(){l.apply(this,arguments),this._widgets=null}}),i.register=d.register=function(h,p){var v={init:"init",destroy:"destroy",name:"anonymous"},g;return arguments.length===1?(p=h,o.each(p,function(y){if(y[0]==="_"||y==="name"){y==="name"&&(v.name=p.name);return}v[y.replace(/[A-Z]/g,"-$&").toLowerCase()]=y})):v=o.extend(v,h),p.responseMap=v,g=a.inherits(d,p),g._name=v.name,c.push(g),g},i.unRegister=d.unRegister=function(h){if(!(!h||h==="anonymous"))for(var p=c.length;p--;)c[p]._name===h&&c.splice(p,1)},d}),e("widgets/filednd",["base","uploader","lib/dnd","widgets/widget"],function(a,i,o){var s=a.$;return i.options.dnd="",i.register({name:"dnd",init:function(l){if(!(!l.dnd||this.request("predict-runtime-type")!=="html5")){var u=this,c=a.Deferred(),f=s.extend({},{disableGlobalDnd:l.disableGlobalDnd,container:l.dnd,accept:l.accept}),d;return this.dnd=d=new o(f),d.once("ready",c.resolve),d.on("drop",function(h){u.request("add-file",[h])}),d.on("accept",function(h){return u.owner.trigger("dndAccept",h)}),d.init(),c.promise()}},destroy:function(){this.dnd&&this.dnd.destroy()}})}),e("lib/filepaste",["base","mediator","runtime/client"],function(a,i,o){var s=a.$;function l(u){u=this.options=s.extend({},u),u.container=s(u.container||document.body),o.call(this,"FilePaste")}return a.inherits(o,{constructor:l,init:function(){var u=this;u.connectRuntime(u.options,function(){u.exec("init"),u.trigger("ready")})}}),i.installTo(l.prototype),l}),e("widgets/filepaste",["base","uploader","lib/filepaste","widgets/widget"],function(a,i,o){var s=a.$;return i.register({name:"paste",init:function(l){if(!(!l.paste||this.request("predict-runtime-type")!=="html5")){var u=this,c=a.Deferred(),f=s.extend({},{container:l.paste,accept:l.accept}),d;return this.paste=d=new o(f),d.once("ready",c.resolve),d.on("paste",function(h){u.owner.request("add-file",[h])}),d.init(),c.promise()}},destroy:function(){this.paste&&this.paste.destroy()}})}),e("lib/blob",["base","runtime/client"],function(a,i){function o(s,l){var u=this;u.source=l,u.ruid=s,this.size=l.size||0,!l.type&&this.ext&&~"jpg,jpeg,png,gif,bmp".indexOf(this.ext)?this.type="image/"+(this.ext==="jpg"?"jpeg":this.ext):this.type=l.type||"application/octet-stream",i.call(u,"Blob"),this.uid=l.uid||this.uid,s&&u.connectRuntime(s)}return a.inherits(i,{constructor:o,slice:function(s,l){return this.exec("slice",s,l)},getSource:function(){return this.source}}),o}),e("lib/file",["base","lib/blob"],function(a,i){var o=1,s=/\.([^.]+)$/;function l(u,c){var f;this.name=c.name||"untitled"+o++,f=s.exec(c.name)?RegExp.$1.toLowerCase():"",!f&&c.type&&(f=/\/(jpg|jpeg|png|gif|bmp)$/i.exec(c.type)?RegExp.$1.toLowerCase():"",this.name+="."+f),this.ext=f,this.lastModifiedDate=c.lastModifiedDate||new Date().toLocaleString(),i.apply(this,arguments)}return a.inherits(i,l)}),e("lib/filepicker",["base","runtime/client","lib/file"],function(a,i,o){var s=a.$;function l(u){if(u=this.options=s.extend({},l.options,u),u.container=s(u.id),!u.container.length)throw new Error("按钮指定错误");u.innerHTML=u.innerHTML||u.label||u.container.html()||"",u.button=s(u.button||document.createElement("div")),u.button.html(u.innerHTML),u.container.html(u.button),i.call(this,"FilePicker",!0)}return l.options={button:null,container:null,label:null,innerHTML:null,multiple:!0,accept:null,name:"file",style:"webuploader-pick"},a.inherits(i,{constructor:l,init:function(){var u=this,c=u.options,f=c.button,d=c.style;d&&f.addClass("webuploader-pick"),u.on("all",function(h){var p;switch(h){case"mouseenter":d&&f.addClass("webuploader-pick-hover");break;case"mouseleave":d&&f.removeClass("webuploader-pick-hover");break;case"change":p=u.exec("getFiles"),u.trigger("select",s.map(p,function(v){return v=new o(u.getRuid(),v),v._refer=c.container,v}),c.container);break}}),u.connectRuntime(c,function(){u.refresh(),u.exec("init",c),u.trigger("ready")}),this._resizeHandler=a.bindFn(this.refresh,this),s(t).on("resize",this._resizeHandler)},refresh:function(){var u=this.getRuntime().getContainer(),c=this.options.button,f=c.outerWidth?c.outerWidth():c.width(),d=c.outerHeight?c.outerHeight():c.height(),h=c.offset();f&&d&&u.css({bottom:"auto",right:"auto",width:f+"px",height:d+"px"}).offset(h)},enable:function(){var u=this.options.button;u.removeClass("webuploader-pick-disable"),this.refresh()},disable:function(){var u=this.options.button;this.getRuntime().getContainer().css({top:"-99999px"}),u.addClass("webuploader-pick-disable")},destroy:function(){var u=this.options.button;s(t).off("resize",this._resizeHandler),u.removeClass("webuploader-pick-disable webuploader-pick-hover webuploader-pick")}}),l}),e("widgets/filepicker",["base","uploader","lib/filepicker","widgets/widget"],function(a,i,o){var s=a.$;return s.extend(i.options,{pick:null,accept:null}),i.register({name:"picker",init:function(l){return this.pickers=[],l.pick&&this.addBtn(l.pick)},refresh:function(){s.each(this.pickers,function(){this.refresh()})},addBtn:function(l){var u=this,c=u.options,f=c.accept,d=[];if(l)return s.isPlainObject(l)||(l={id:l}),s(l.id).each(function(){var h,p,v;v=a.Deferred(),h=s.extend({},l,{accept:s.isPlainObject(f)?[f]:f,swf:c.swf,runtimeOrder:c.runtimeOrder,id:this}),p=new o(h),p.once("ready",v.resolve),p.on("select",function(g){u.owner.request("add-file",[g])}),p.on("dialogopen",function(){u.owner.trigger("dialogOpen",p.button)}),p.init(),u.pickers.push(p),d.push(v.promise())}),a.when.apply(a,d)},disable:function(){s.each(this.pickers,function(){this.disable()})},enable:function(){s.each(this.pickers,function(){this.enable()})},destroy:function(){s.each(this.pickers,function(){this.destroy()}),this.pickers=null}})}),e("lib/image",["base","runtime/client","lib/blob"],function(a,i,o){var s=a.$;function l(u){this.options=s.extend({},l.options,u),i.call(this,"Image"),this.on("load",function(){this._info=this.exec("info"),this._meta=this.exec("meta")})}return l.options={quality:90,crop:!1,preserveHeaders:!1,allowMagnify:!1},a.inherits(i,{constructor:l,info:function(u){return u?(this._info=u,this):this._info},meta:function(u){return u?(this._meta=u,this):this._meta},loadFromBlob:function(u){var c=this,f=u.getRuid();this.connectRuntime(f,function(){c.exec("init",c.options),c.exec("loadFromBlob",u)})},resize:function(){var u=a.slice(arguments);return this.exec.apply(this,["resize"].concat(u))},crop:function(){var u=a.slice(arguments);return this.exec.apply(this,["crop"].concat(u))},getAsDataUrl:function(u){return this.exec("getAsDataUrl",u)},getAsBlob:function(u){var c=this.exec("getAsBlob",u);return new o(this.getRuid(),c)}}),l}),e("widgets/image",["base","uploader","lib/image","widgets/widget"],function(a,i,o){var s=a.$,l;return l=function(u){var c=0,f=[],d=function(){for(var h;f.length&&c<u;)h=f.shift(),c+=h[0],h[1]()};return function(h,p,v){f.push([p,v]),h.once("destroy",function(){c-=p,setTimeout(d,1)}),setTimeout(d,1)}}(5*1024*1024),s.extend(i.options,{thumb:{width:110,height:110,quality:70,allowMagnify:!0,crop:!0,preserveHeaders:!1,type:"image/jpeg"},compress:{width:1600,height:1600,quality:90,allowMagnify:!1,crop:!1,preserveHeaders:!0}}),i.register({name:"image",makeThumb:function(u,c,f,d){var h,p;if(u=this.request("get-file",u),!u.type.match(/^image/)){c(!0);return}h=s.extend({},this.options.thumb),s.isPlainObject(f)&&(h=s.extend(h,f),f=null),f=f||h.width,d=d||h.height,p=new o(h),p.once("load",function(){u._info=u._info||p.info(),u._meta=u._meta||p.meta(),f<=1&&f>0&&(f=u._info.width*f),d<=1&&d>0&&(d=u._info.height*d),p.resize(f,d)}),p.once("complete",function(){c(!1,p.getAsDataUrl(h.type)),p.destroy()}),p.once("error",function(v){c(v||!0),p.destroy()}),l(p,u.source.size,function(){u._info&&p.info(u._info),u._meta&&p.meta(u._meta),p.loadFromBlob(u.source)})},beforeSendFile:function(u){var c=this.options.compress||this.options.resize,f=c&&c.compressSize||0,d=c&&c.noCompressIfLarger||!1,h,p;if(u=this.request("get-file",u),!(!c||!~"image/jpeg,image/jpg".indexOf(u.type)||u.size<f||u._compressed))return c=s.extend({},c),p=a.Deferred(),h=new o(c),p.always(function(){h.destroy(),h=null}),h.once("error",p.reject),h.once("load",function(){var v=c.width,g=c.height;u._info=u._info||h.info(),u._meta=u._meta||h.meta(),v<=1&&v>0&&(v=u._info.width*v),g<=1&&g>0&&(g=u._info.height*g),h.resize(v,g)}),h.once("complete",function(){var v,g;try{v=h.getAsBlob(c.type),g=u.size,(!d||v.size<g)&&(u.source=v,u.size=v.size,u.trigger("resize",v.size,g)),u._compressed=!0,p.resolve()}catch{p.resolve()}}),u._info&&h.info(u._info),u._meta&&h.meta(u._meta),h.loadFromBlob(u.source),p.promise()}})}),e("file",["base","mediator"],function(a,i){var o=a.$,s="WU_FILE_",l=0,u=/\.([^.]+)$/,c={};function f(){return s+l++}function d(h){this.name=h.name||"Untitled",this.size=h.size||0,this.type=h.type||"application/octet-stream",this.lastModifiedDate=h.lastModifiedDate||new Date*1,this.id=f(),this.ext=u.exec(this.name)?RegExp.$1:"",this.statusText="",c[this.id]=d.Status.INITED,this.source=h,this.loaded=0,this.on("error",function(p){this.setStatus(d.Status.ERROR,p)})}return o.extend(d.prototype,{setStatus:function(h,p){var v=c[this.id];typeof p<"u"&&(this.statusText=p),h!==v&&(c[this.id]=h,this.trigger("statuschange",h,v))},getStatus:function(){return c[this.id]},getSource:function(){return this.source},destroy:function(){this.off(),delete c[this.id]}}),i.installTo(d.prototype),d.Status={INITED:"inited",QUEUED:"queued",PROGRESS:"progress",ERROR:"error",COMPLETE:"complete",CANCELLED:"cancelled",INTERRUPT:"interrupt",INVALID:"invalid"},d}),e("queue",["base","mediator","file"],function(a,i,o){var s=a.$,l=o.Status;function u(){this.stats={numOfQueue:0,numOfSuccess:0,numOfCancel:0,numOfProgress:0,numOfUploadFailed:0,numOfInvalid:0,numofDeleted:0,numofInterrupt:0},this._queue=[],this._map={}}return s.extend(u.prototype,{append:function(c){return this._queue.push(c),this._fileAdded(c),this},prepend:function(c){return this._queue.unshift(c),this._fileAdded(c),this},getFile:function(c){return typeof c!="string"?c:this._map[c]},fetch:function(c){var f=this._queue.length,d,h;for(c=c||l.QUEUED,d=0;d<f;d++)if(h=this._queue[d],c===h.getStatus())return h;return null},sort:function(c){typeof c=="function"&&this._queue.sort(c)},getFiles:function(){for(var c=[].slice.call(arguments,0),f=[],d=0,h=this._queue.length,p;d<h;d++)p=this._queue[d],!(c.length&&!~s.inArray(p.getStatus(),c))&&f.push(p);return f},removeFile:function(c){var f=this._map[c.id];f&&(delete this._map[c.id],c.destroy(),this.stats.numofDeleted++)},_fileAdded:function(c){var f=this,d=this._map[c.id];d||(this._map[c.id]=c,c.on("statuschange",function(h,p){f._onFileStatusChange(h,p)}))},_onFileStatusChange:function(c,f){var d=this.stats;switch(f){case l.PROGRESS:d.numOfProgress--;break;case l.QUEUED:d.numOfQueue--;break;case l.ERROR:d.numOfUploadFailed--;break;case l.INVALID:d.numOfInvalid--;break;case l.INTERRUPT:d.numofInterrupt--;break}switch(c){case l.QUEUED:d.numOfQueue++;break;case l.PROGRESS:d.numOfProgress++;break;case l.ERROR:d.numOfUploadFailed++;break;case l.COMPLETE:d.numOfSuccess++;break;case l.CANCELLED:d.numOfCancel++;break;case l.INVALID:d.numOfInvalid++;break;case l.INTERRUPT:d.numofInterrupt++;break}}}),i.installTo(u.prototype),u}),e("widgets/queue",["base","uploader","queue","file","lib/file","runtime/client","widgets/widget"],function(a,i,o,s,l,u){var c=a.$,f=/\.\w+$/,d=s.Status;return i.register({name:"queue",init:function(h){var p=this,v,g,y,m,S,w,C;if(c.isPlainObject(h.accept)&&(h.accept=[h.accept]),h.accept){for(S=[],y=0,g=h.accept.length;y<g;y++)m=h.accept[y].extensions,m&&S.push(m);S.length&&(w="\\."+S.join(",").replace(/,/g,"$|\\.").replace(/\*/g,".*")+"$"),p.accept=new RegExp(w,"i")}if(p.queue=new o,p.stats=p.queue.stats,this.request("predict-runtime-type")==="html5")return v=a.Deferred(),this.placeholder=C=new u("Placeholder"),C.connectRuntime({runtimeOrder:"html5"},function(){p._ruid=C.getRuid(),v.resolve()}),v.promise()},_wrapFile:function(h){if(!(h instanceof s)){if(!(h instanceof l)){if(!this._ruid)throw new Error("Can't add external files.");h=new l(this._ruid,h)}h=new s(h)}return h},acceptFile:function(h){var p=!h||!h.size||this.accept&&f.exec(h.name)&&!this.accept.test(h.name);return!p},_addFile:function(h){var p=this;if(h=p._wrapFile(h),!!p.owner.trigger("beforeFileQueued",h)){if(!p.acceptFile(h)){p.owner.trigger("error","Q_TYPE_DENIED",h);return}return p.queue.append(h),p.owner.trigger("fileQueued",h),h}},getFile:function(h){return this.queue.getFile(h)},addFile:function(h){var p=this;h.length||(h=[h]),h=c.map(h,function(v){return p._addFile(v)}),h.length&&(p.owner.trigger("filesQueued",h),p.options.auto&&setTimeout(function(){p.request("start-upload")},20))},getStats:function(){return this.stats},removeFile:function(h,p){var v=this;h=h.id?h:v.queue.getFile(h),this.request("cancel-file",h),p&&this.queue.removeFile(h)},getFiles:function(){return this.queue.getFiles.apply(this.queue,arguments)},fetchFile:function(){return this.queue.fetch.apply(this.queue,arguments)},retry:function(h,p){var v=this,g,y,m;if(h){h=h.id?h:v.queue.getFile(h),h.setStatus(d.QUEUED),p||v.request("start-upload");return}for(g=v.queue.getFiles(d.ERROR),y=0,m=g.length;y<m;y++)h=g[y],h.setStatus(d.QUEUED);v.request("start-upload")},sortFiles:function(){return this.queue.sort.apply(this.queue,arguments)},reset:function(){this.owner.trigger("reset"),this.queue=new o,this.stats=this.queue.stats},destroy:function(){this.reset(),this.placeholder&&this.placeholder.destroy()}})}),e("widgets/runtime",["uploader","runtime/runtime","widgets/widget"],function(a,i){return a.support=function(){return i.hasRuntime.apply(i,arguments)},a.register({name:"runtime",init:function(){if(!this.predictRuntimeType())throw Error("Runtime Error")},predictRuntimeType:function(){var o=this.options.runtimeOrder||i.orders,s=this.type,l,u;if(!s){for(o=o.split(/\s*,\s*/g),l=0,u=o.length;l<u;l++)if(i.hasRuntime(o[l])){this.type=s=o[l];break}}return s}})}),e("lib/transport",["base","runtime/client","mediator"],function(a,i,o){var s=a.$;function l(u){var c=this;u=c.options=s.extend(!0,{},l.options,u||{}),i.call(this,"Transport"),this._blob=null,this._formData=u.formData||{},this._headers=u.headers||{},this.on("progress",this._timeout),this.on("load error",function(){c.trigger("progress",1),clearTimeout(c._timer)})}return l.options={server:"",method:"POST",withCredentials:!1,fileVal:"file",timeout:2*60*1e3,formData:{},headers:{},sendAsBinary:!1},s.extend(l.prototype,{appendBlob:function(u,c,f){var d=this,h=d.options;d.getRuid()&&d.disconnectRuntime(),d.connectRuntime(c.ruid,function(){d.exec("init")}),d._blob=c,h.fileVal=u||h.fileVal,h.filename=f||h.filename},append:function(u,c){typeof u=="object"?s.extend(this._formData,u):this._formData[u]=c},setRequestHeader:function(u,c){typeof u=="object"?s.extend(this._headers,u):this._headers[u]=c},send:function(u){this.exec("send",u),this._timeout()},abort:function(){return clearTimeout(this._timer),this.exec("abort")},destroy:function(){this.trigger("destroy"),this.off(),this.exec("destroy"),this.disconnectRuntime()},getResponse:function(){return this.exec("getResponse")},getResponseAsJson:function(){return this.exec("getResponseAsJson")},getStatus:function(){return this.exec("getStatus")},_timeout:function(){var u=this,c=u.options.timeout;c&&(clearTimeout(u._timer),u._timer=setTimeout(function(){u.abort(),u.trigger("error","timeout")},c))}}),o.installTo(l.prototype),l}),e("widgets/upload",["base","uploader","file","lib/transport","widgets/widget"],function(a,i,o,s){var l=a.$,u=a.isPromise,c=o.Status;l.extend(i.options,{prepareNextFile:!1,chunked:!1,chunkSize:5*1024*1024,chunkRetry:2,threads:3,formData:{}});function f(d,h){var p=[],v=d.source,g=v.size,y=h?Math.ceil(g/h):1,m=0,S=0,w,C;for(C={file:d,has:function(){return!!p.length},shift:function(){return p.shift()},unshift:function(_){p.unshift(_)}};S<y;)w=Math.min(h,g-m),p.push({file:d,start:m,end:h?m+w:g,total:g,chunks:y,chunk:S++,cuted:C}),m+=w;return d.blocks=p.concat(),d.remaning=p.length,C}i.register({name:"upload",init:function(){var d=this.owner,h=this;this.runing=!1,this.progress=!1,d.on("startUpload",function(){h.progress=!0}).on("uploadFinished",function(){h.progress=!1}),this.pool=[],this.stack=[],this.pending=[],this.remaning=0,this.__tick=a.bindFn(this._tick,this),d.on("uploadComplete",function(p){p.blocks&&l.each(p.blocks,function(v,g){g.transport&&(g.transport.abort(),g.transport.destroy()),delete g.transport}),delete p.blocks,delete p.remaning})},reset:function(){this.request("stop-upload",!0),this.runing=!1,this.pool=[],this.stack=[],this.pending=[],this.remaning=0,this._trigged=!1,this._promise=null},startUpload:function(d){var h=this;if(l.each(h.request("get-files",c.INVALID),function(){h.request("remove-file",this)}),d?(d=d.id?d:h.request("get-file",d),d.getStatus()===c.INTERRUPT?(d.setStatus(c.QUEUED),l.each(h.pool,function(v,g){g.file===d&&(g.transport&&g.transport.send(),d.setStatus(c.PROGRESS))})):d.getStatus()!==c.PROGRESS&&d.setStatus(c.QUEUED)):l.each(h.request("get-files",[c.INITED]),function(){this.setStatus(c.QUEUED)}),h.runing)return a.nextTick(h.__tick);h.runing=!0;var p=[];d||l.each(h.pool,function(v,g){var y=g.file;y.getStatus()===c.INTERRUPT&&(h._trigged=!1,p.push(y),g.transport&&g.transport.send())}),l.each(p,function(){this.setStatus(c.PROGRESS)}),d||l.each(h.request("get-files",c.INTERRUPT),function(){this.setStatus(c.PROGRESS)}),h._trigged=!1,a.nextTick(h.__tick),h.owner.trigger("startUpload")},stopUpload:function(d,h){var p=this,v;if(d===!0&&(h=d,d=null),p.runing!==!1){if(d)return d=d.id?d:p.request("get-file",d),d.getStatus()!==c.PROGRESS&&d.getStatus()!==c.QUEUED?void 0:(d.setStatus(c.INTERRUPT),l.each(p.pool,function(g,y){if(y.file===d)return v=y,!1}),v.transport&&v.transport.abort(),h&&(p._putback(v),p._popBlock(v)),a.nextTick(p.__tick));p.runing=!1,this._promise&&this._promise.file&&this._promise.file.setStatus(c.INTERRUPT),h&&l.each(p.pool,function(g,y){y.transport&&y.transport.abort(),y.file.setStatus(c.INTERRUPT)}),p.owner.trigger("stopUpload")}},cancelFile:function(d){d=d.id?d:this.request("get-file",d),d.blocks&&l.each(d.blocks,function(h,p){var v=p.transport;v&&(v.abort(),v.destroy(),delete p.transport)}),d.setStatus(c.CANCELLED),this.owner.trigger("fileDequeued",d)},isInProgress:function(){return!!this.progress},_getStats:function(){return this.request("get-stats")},skipFile:function(d,h){d=d.id?d:this.request("get-file",d),d.setStatus(h||c.COMPLETE),d.skipped=!0,d.blocks&&l.each(d.blocks,function(p,v){var g=v.transport;g&&(g.abort(),g.destroy(),delete v.transport)}),this.owner.trigger("uploadSkip",d)},_tick:function(){var d=this,h=d.options,p,v;if(d._promise)return d._promise.always(d.__tick);d.pool.length<h.threads&&(v=d._nextBlock())?(d._trigged=!1,p=function(g){d._promise=null,g&&g.file&&d._startSend(g),a.nextTick(d.__tick)},d._promise=u(v)?v.always(p):p(v)):!d.remaning&&!d._getStats().numOfQueue&&!d._getStats().numofInterrupt&&(d.runing=!1,d._trigged||a.nextTick(function(){d.owner.trigger("uploadFinished")}),d._trigged=!0)},_putback:function(d){var h;d.cuted.unshift(d),h=this.stack.indexOf(d.cuted),~h||this.stack.unshift(d.cuted)},_getStack:function(){for(var d=0,h;h=this.stack[d++];){if(h.has()&&h.file.getStatus()===c.PROGRESS)return h;(!h.has()||h.file.getStatus()!==c.PROGRESS&&h.file.getStatus()!==c.INTERRUPT)&&this.stack.splice(--d,1)}return null},_nextBlock:function(){var d=this,h=d.options,p,v,g,y;if(p=this._getStack())return h.prepareNextFile&&!d.pending.length&&d._prepareNextFile(),p.shift();if(d.runing)return!d.pending.length&&d._getStats().numOfQueue&&d._prepareNextFile(),v=d.pending.shift(),g=function(m){return m?(p=f(m,h.chunked?h.chunkSize:0),d.stack.push(p),p.shift()):null},u(v)?(y=v.file,v=v[v.pipe?"pipe":"then"](g),v.file=y,v):g(v)},_prepareNextFile:function(){var d=this,h=d.request("fetch-file"),p=d.pending,v;h&&(v=d.request("before-send-file",h,function(){return h.getStatus()===c.PROGRESS||h.getStatus()===c.INTERRUPT?h:d._finishFile(h)}),d.owner.trigger("uploadStart",h),h.setStatus(c.PROGRESS),v.file=h,v.done(function(){var g=l.inArray(v,p);~g&&p.splice(g,1,h)}),v.fail(function(g){h.setStatus(c.ERROR,g),d.owner.trigger("uploadError",h,g),d.owner.trigger("uploadComplete",h)}),p.push(v))},_popBlock:function(d){var h=l.inArray(d,this.pool);this.pool.splice(h,1),d.file.remaning--,this.remaning--},_startSend:function(d){var h=this,p=d.file,v;if(p.getStatus()!==c.PROGRESS){p.getStatus()===c.INTERRUPT&&h._putback(d);return}h.pool.push(d),h.remaning++,d.blob=d.chunks===1?p.source:p.source.slice(d.start,d.end),v=h.request("before-send",d,function(){p.getStatus()===c.PROGRESS?h._doSend(d):(h._popBlock(d),a.nextTick(h.__tick))}),v.fail(function(){p.remaning===1?h._finishFile(p).always(function(){d.percentage=1,h._popBlock(d),h.owner.trigger("uploadComplete",p),a.nextTick(h.__tick)}):(d.percentage=1,h.updateFileProgress(p),h._popBlock(d),a.nextTick(h.__tick))})},_doSend:function(d){var h=this,p=h.owner,v=h.options,g=d.file,y=new s(v),m=l.extend({},v.formData),S=l.extend({},v.headers),w,C;d.transport=y,y.on("destroy",function(){delete d.transport,h._popBlock(d),a.nextTick(h.__tick)}),y.on("progress",function(_){d.percentage=_,h.updateFileProgress(g)}),w=function(_){var x;return C=y.getResponseAsJson()||{},C._raw=y.getResponse(),x=function(T){_=T},p.trigger("uploadAccept",d,C,x)||(_=_||"server"),_},y.on("error",function(_,x){d.retried=d.retried||0,d.chunks>1&&~"http,abort".indexOf(_)&&d.retried<v.chunkRetry?(d.retried++,y.send()):(!x&&_==="server"&&(_=w(_)),g.setStatus(c.ERROR,_),p.trigger("uploadError",g,_),p.trigger("uploadComplete",g))}),y.on("load",function(){var _;if(_=w()){y.trigger("error",_,!0);return}g.remaning===1?h._finishFile(g,C):y.destroy()}),m=l.extend(m,{id:g.id,name:g.name,type:g.type,lastModifiedDate:g.lastModifiedDate,size:g.size}),d.chunks>1&&l.extend(m,{chunks:d.chunks,chunk:d.chunk}),p.trigger("uploadBeforeSend",d,m,S),y.appendBlob(v.fileVal,d.blob,g.name),y.append(m),y.setRequestHeader(S),y.send()},_finishFile:function(d,h,p){var v=this.owner;return v.request("after-send-file",arguments,function(){d.setStatus(c.COMPLETE),v.trigger("uploadSuccess",d,h,p)}).fail(function(g){d.getStatus()===c.PROGRESS&&d.setStatus(c.ERROR,g),v.trigger("uploadError",d,g)}).always(function(){v.trigger("uploadComplete",d)})},updateFileProgress:function(d){var h=0,p=0;d.blocks&&(l.each(d.blocks,function(v,g){p+=(g.percentage||0)*(g.end-g.start)}),h=p/d.size,this.owner.trigger("uploadProgress",d,h||0))}})}),e("widgets/validator",["base","uploader","file","widgets/widget"],function(a,i,o){var s=a.$,l={},u;return u={addValidator:function(c,f){l[c]=f},removeValidator:function(c){delete l[c]}},i.register({name:"validator",init:function(){var c=this;a.nextTick(function(){s.each(l,function(){this.call(c.owner)})})}}),u.addValidator("fileNumLimit",function(){var c=this,f=c.options,d=0,h=parseInt(f.fileNumLimit,10),p=!0;h&&(c.on("beforeFileQueued",function(v){return d>=h&&p&&(p=!1,this.trigger("error","Q_EXCEED_NUM_LIMIT",h,v),setTimeout(function(){p=!0},1)),!(d>=h)}),c.on("fileQueued",function(){d++}),c.on("fileDequeued",function(){d--}),c.on("reset",function(){d=0}))}),u.addValidator("fileSizeLimit",function(){var c=this,f=c.options,d=0,h=parseInt(f.fileSizeLimit,10),p=!0;h&&(c.on("beforeFileQueued",function(v){var g=d+v.size>h;return g&&p&&(p=!1,this.trigger("error","Q_EXCEED_SIZE_LIMIT",h,v),setTimeout(function(){p=!0},1)),!g}),c.on("fileQueued",function(v){d+=v.size}),c.on("fileDequeued",function(v){d-=v.size}),c.on("reset",function(){d=0}))}),u.addValidator("fileSingleSizeLimit",function(){var c=this,f=c.options,d=f.fileSingleSizeLimit;d&&c.on("beforeFileQueued",function(h){if(h.size>d)return h.setStatus(o.Status.INVALID,"exceed_size"),this.trigger("error","F_EXCEED_SIZE",d,h),!1})}),u.addValidator("duplicate",function(){var c=this,f=c.options,d={};if(f.duplicate)return;function h(p){for(var v=0,g=0,y=p.length,m;g<y;g++)m=p.charCodeAt(g),v=m+(v<<6)+(v<<16)-v;return v}c.on("beforeFileQueued",function(p){var v=p.__hash||(p.__hash=h(p.name+p.size+p.lastModifiedDate));if(d[v])return this.trigger("error","F_DUPLICATE",p),!1}),c.on("fileQueued",function(p){var v=p.__hash;v&&(d[v]=!0)}),c.on("fileDequeued",function(p){var v=p.__hash;v&&delete d[v]}),c.on("reset",function(){d={}})}),u}),e("lib/md5",["runtime/client","mediator"],function(a,i){function o(){a.call(this,"Md5")}return i.installTo(o.prototype),o.prototype.loadFromBlob=function(s){var l=this;l.getRuid()&&l.disconnectRuntime(),l.connectRuntime(s.ruid,function(){l.exec("init"),l.exec("loadFromBlob",s)})},o.prototype.getResult=function(){return this.exec("getResult")},o}),e("widgets/md5",["base","uploader","lib/md5","lib/blob","widgets/widget"],function(a,i,o,s){return i.register({name:"md5",md5File:function(l,u,c){var f=new o,d=a.Deferred(),h=l instanceof s?l:this.request("get-file",l).source;return f.on("progress load",function(p){p=p||{},d.notify(p.total?p.loaded/p.total:1)}),f.on("complete",function(){d.resolve(f.getResult())}),f.on("error",function(p){d.reject(p)}),arguments.length>1&&(u=u||0,c=c||0,u<0&&(u=h.size+u),c<0&&(c=h.size+c),c=Math.min(c,h.size),h=h.slice(u,c)),f.loadFromBlob(h),d.promise()}})}),e("runtime/compbase",[],function(){function a(i,o){this.owner=i,this.options=i.options,this.getRuntime=function(){return o},this.getRuid=function(){return o.uid},this.trigger=function(){return i.trigger.apply(i,arguments)}}return a}),e("runtime/html5/runtime",["base","runtime/runtime","runtime/compbase"],function(a,i,o){var s="html5",l={};function u(){var c={},f=this,d=this.destroy;i.apply(f,arguments),f.type=s,f.exec=function(h,p){var v=this,g=v.uid,y=a.slice(arguments,2),m;if(l[h]&&(m=c[g]=c[g]||new l[h](v,f),m[p]))return m[p].apply(m,y)},f.destroy=function(){return d&&d.apply(this,arguments)}}return a.inherits(i,{constructor:u,init:function(){var c=this;setTimeout(function(){c.trigger("ready")},1)}}),u.register=function(c,f){var d=l[c]=a.inherits(o,f);return d},t.Blob&&t.FileReader&&t.DataView&&i.addRuntime(s,u),u}),e("runtime/html5/blob",["runtime/html5/runtime","lib/blob"],function(a,i){return a.register("Blob",{slice:function(o,s){var l=this.owner.source,u=l.slice||l.webkitSlice||l.mozSlice;return l=u.call(l,o,s),new i(this.getRuid(),l)}})}),e("runtime/html5/dnd",["base","runtime/html5/runtime","lib/file"],function(a,i,o){var s=a.$,l="webuploader-dnd-";return i.register("DragAndDrop",{init:function(){var u=this.elem=this.options.container;this.dragEnterHandler=a.bindFn(this._dragEnterHandler,this),this.dragOverHandler=a.bindFn(this._dragOverHandler,this),this.dragLeaveHandler=a.bindFn(this._dragLeaveHandler,this),this.dropHandler=a.bindFn(this._dropHandler,this),this.dndOver=!1,u.on("dragenter",this.dragEnterHandler),u.on("dragover",this.dragOverHandler),u.on("dragleave",this.dragLeaveHandler),u.on("drop",this.dropHandler),this.options.disableGlobalDnd&&(s(document).on("dragover",this.dragOverHandler),s(document).on("drop",this.dropHandler))},_dragEnterHandler:function(u){var c=this,f=c._denied||!1,d;return u=u.originalEvent||u,c.dndOver||(c.dndOver=!0,d=u.dataTransfer.items,d&&d.length&&(c._denied=f=!c.trigger("accept",d)),c.elem.addClass(l+"over"),c.elem[f?"addClass":"removeClass"](l+"denied")),u.dataTransfer.dropEffect=f?"none":"copy",!1},_dragOverHandler:function(u){var c=this.elem.parent().get(0);return c&&!s.contains(c,u.currentTarget)||(clearTimeout(this._leaveTimer),this._dragEnterHandler.call(this,u)),!1},_dragLeaveHandler:function(){var u=this,c;return c=function(){u.dndOver=!1,u.elem.removeClass(l+"over "+l+"denied")},clearTimeout(u._leaveTimer),u._leaveTimer=setTimeout(c,100),!1},_dropHandler:function(u){var c=this,f=c.getRuid(),d=c.elem.parent().get(0),h,p;if(d&&!s.contains(d,u.currentTarget))return!1;u=u.originalEvent||u,h=u.dataTransfer;try{p=h.getData("text/html")}catch{}if(c.dndOver=!1,c.elem.removeClass(l+"over"),!p)return c._getTansferFiles(h,function(v){c.trigger("drop",s.map(v,function(g){return new o(f,g)}))}),!1},_getTansferFiles:function(u,c){var f=[],d=[],h,p,v,g,y,m,S;for(h=u.items,p=u.files,S=!!(h&&h[0].webkitGetAsEntry),y=0,m=p.length;y<m;y++)v=p[y],g=h&&h[y],S&&g.webkitGetAsEntry().isDirectory?d.push(this._traverseDirectoryTree(g.webkitGetAsEntry(),f)):f.push(v);a.when.apply(a,d).done(function(){f.length&&c(f)})},_traverseDirectoryTree:function(u,c){var f=a.Deferred(),d=this;return u.isFile?u.file(function(h){c.push(h),f.resolve()}):u.isDirectory&&u.createReader().readEntries(function(h){var p=h.length,v=[],g=[],y;for(y=0;y<p;y++)v.push(d._traverseDirectoryTree(h[y],g));a.when.apply(a,v).then(function(){c.push.apply(c,g),f.resolve()},f.reject)}),f.promise()},destroy:function(){var u=this.elem;u&&(u.off("dragenter",this.dragEnterHandler),u.off("dragover",this.dragOverHandler),u.off("dragleave",this.dragLeaveHandler),u.off("drop",this.dropHandler),this.options.disableGlobalDnd&&(s(document).off("dragover",this.dragOverHandler),s(document).off("drop",this.dropHandler)))}})}),e("runtime/html5/filepaste",["base","runtime/html5/runtime","lib/file"],function(a,i,o){return i.register("FilePaste",{init:function(){var s=this.options,l=this.elem=s.container,u=".*",c,f,d,h;if(s.accept){for(c=[],f=0,d=s.accept.length;f<d;f++)h=s.accept[f].mimeTypes,h&&c.push(h);c.length&&(u=c.join(","),u=u.replace(/,/g,"|").replace(/\*/g,".*"))}this.accept=u=new RegExp(u,"i"),this.hander=a.bindFn(this._pasteHander,this),l.on("paste",this.hander)},_pasteHander:function(s){var l=[],u=this.getRuid(),c,f,d,h,p;for(s=s.originalEvent||s,c=s.clipboardData.items,h=0,p=c.length;h<p;h++)f=c[h],!(f.kind!=="file"||!(d=f.getAsFile()))&&l.push(new o(u,d));l.length&&(s.preventDefault(),s.stopPropagation(),this.trigger("paste",l))},destroy:function(){this.elem.off("paste",this.hander)}})}),e("runtime/html5/filepicker",["base","runtime/html5/runtime"],function(a,i){var o=a.$;return i.register("FilePicker",{init:function(){var s=this.getRuntime().getContainer(),l=this,u=l.owner,c=l.options,f=this.label=o(document.createElement("label")),d=this.input=o(document.createElement("input")),h,p,v,g;if(d.attr("type","file"),d.attr("capture","camera"),d.attr("name",c.name),d.addClass("webuploader-element-invisible"),f.on("click",function(m){d.trigger("click"),m.stopPropagation(),u.trigger("dialogopen")}),f.css({opacity:0,width:"100%",height:"100%",display:"block",cursor:"pointer",background:"#ffffff"}),c.multiple&&d.attr("multiple","multiple"),c.accept&&c.accept.length>0){for(h=[],p=0,v=c.accept.length;p<v;p++)h.push(c.accept[p].mimeTypes);d.attr("accept",h.join(","))}s.append(d),s.append(f),g=function(m){u.trigger(m.type)};var y=function m(S,w){var C;l.files=w.target.files,C=S.cloneNode(!0),C.value=null,S.parentNode.replaceChild(C,S),d.off(),d=o(C).on("change",function(_){m(this,_)}).on("mouseenter mouseleave",g),u.trigger("change")};d.on("change",function(m){y(this,m)}),f.on("mouseenter mouseleave",g)},getFiles:function(){return this.files},destroy:function(){this.input.off(),this.label.off()}})}),e("runtime/html5/util",["base"],function(a){var i=t.createObjectURL&&t||t.URL&&URL.revokeObjectURL&&URL||t.webkitURL,o=a.noop,s=o;return i&&(o=function(){return i.createObjectURL.apply(i,arguments)},s=function(){return i.revokeObjectURL.apply(i,arguments)}),{createObjectURL:o,revokeObjectURL:s,dataURL2Blob:function(l){var u,c,f,d,h,p;for(p=l.split(","),~p[0].indexOf("base64")?u=atob(p[1]):u=decodeURIComponent(p[1]),f=new ArrayBuffer(u.length),c=new Uint8Array(f),d=0;d<u.length;d++)c[d]=u.charCodeAt(d);return h=p[0].split(":")[1].split(";")[0],this.arrayBufferToBlob(f,h)},dataURL2ArrayBuffer:function(l){var u,c,f,d;for(d=l.split(","),~d[0].indexOf("base64")?u=atob(d[1]):u=decodeURIComponent(d[1]),c=new Uint8Array(u.length),f=0;f<u.length;f++)c[f]=u.charCodeAt(f);return c.buffer},arrayBufferToBlob:function(l,u){var c=t.BlobBuilder||t.WebKitBlobBuilder,f;return c?(f=new c,f.append(l),f.getBlob(u)):new Blob([l],u?{type:u}:{})},canvasToDataUrl:function(l,u,c){return l.toDataURL(u,c/100)},parseMeta:function(l,u){u(!1,{})},updateImageHead:function(l){return l}}}),e("runtime/html5/imagemeta",["runtime/html5/util"],function(a){var i;return i={parsers:{65505:[]},maxMetaDataSize:262144,parse:function(o,s){var l=this,u=new FileReader;u.onload=function(){s(!1,l._parse(this.result)),u=u.onload=u.onerror=null},u.onerror=function(c){s(c.message),u=u.onload=u.onerror=null},o=o.slice(0,l.maxMetaDataSize),u.readAsArrayBuffer(o.getSource())},_parse:function(o,s){if(!(o.byteLength<6)){var l=new DataView(o),u=2,c=l.byteLength-4,f=u,d={},h,p,v,g;if(l.getUint16(0)===65496){for(;u<c&&(h=l.getUint16(u),h>=65504&&h<=65519||h===65534);){if(p=l.getUint16(u+2)+2,u+p>l.byteLength)break;if(v=i.parsers[h],!s&&v)for(g=0;g<v.length;g+=1)v[g].call(i,l,u,p,d);u+=p,f=u}f>6&&(o.slice?d.imageHead=o.slice(2,f):d.imageHead=new Uint8Array(o).subarray(2,f))}return d}},updateImageHead:function(o,s){var l=this._parse(o,!0),u,c,f;return f=2,l.imageHead&&(f=2+l.imageHead.byteLength),o.slice?c=o.slice(f):c=new Uint8Array(o).subarray(f),u=new Uint8Array(s.byteLength+2+c.byteLength),u[0]=255,u[1]=216,u.set(new Uint8Array(s),2),u.set(new Uint8Array(c),s.byteLength+2),u.buffer}},a.parseMeta=function(){return i.parse.apply(i,arguments)},a.updateImageHead=function(){return i.updateImageHead.apply(i,arguments)},i}),e("runtime/html5/imagemeta/exif",["base","runtime/html5/imagemeta"],function(a,i){var o={};return o.ExifMap=function(){return this},o.ExifMap.prototype.map={Orientation:274},o.ExifMap.prototype.get=function(s){return this[s]||this[this.map[s]]},o.exifTagTypes={1:{getValue:function(s,l){return s.getUint8(l)},size:1},2:{getValue:function(s,l){return String.fromCharCode(s.getUint8(l))},size:1,ascii:!0},3:{getValue:function(s,l,u){return s.getUint16(l,u)},size:2},4:{getValue:function(s,l,u){return s.getUint32(l,u)},size:4},5:{getValue:function(s,l,u){return s.getUint32(l,u)/s.getUint32(l+4,u)},size:8},9:{getValue:function(s,l,u){return s.getInt32(l,u)},size:4},10:{getValue:function(s,l,u){return s.getInt32(l,u)/s.getInt32(l+4,u)},size:8}},o.exifTagTypes[7]=o.exifTagTypes[1],o.getExifValue=function(s,l,u,c,f,d){var h=o.exifTagTypes[c],p,v,g,y,m,S;if(!h){a.log("Invalid Exif data: Invalid tag type.");return}if(p=h.size*f,v=p>4?l+s.getUint32(u+8,d):u+8,v+p>s.byteLength){a.log("Invalid Exif data: Invalid data offset.");return}if(f===1)return h.getValue(s,v,d);for(g=[],y=0;y<f;y+=1)g[y]=h.getValue(s,v+y*h.size,d);if(h.ascii){for(m="",y=0;y<g.length&&(S=g[y],S!=="\0");y+=1)m+=S;return m}return g},o.parseExifTag=function(s,l,u,c,f){var d=s.getUint16(u,c);f.exif[d]=o.getExifValue(s,l,u,s.getUint16(u+2,c),s.getUint32(u+4,c),c)},o.parseExifTags=function(s,l,u,c,f){var d,h,p;if(u+6>s.byteLength){a.log("Invalid Exif data: Invalid directory offset.");return}if(d=s.getUint16(u,c),h=u+2+12*d,h+4>s.byteLength){a.log("Invalid Exif data: Invalid directory size.");return}for(p=0;p<d;p+=1)this.parseExifTag(s,l,u+2+12*p,c,f);return s.getUint32(h,c)},o.parseExifData=function(s,l,u,c){var f=l+10,d,h;if(s.getUint32(l+4)===1165519206){if(f+8>s.byteLength){a.log("Invalid Exif data: Invalid segment size.");return}if(s.getUint16(l+8)!==0){a.log("Invalid Exif data: Missing byte alignment offset.");return}switch(s.getUint16(f)){case 18761:d=!0;break;case 19789:d=!1;break;default:a.log("Invalid Exif data: Invalid byte alignment marker.");return}if(s.getUint16(f+2,d)!==42){a.log("Invalid Exif data: Missing TIFF marker.");return}h=s.getUint32(f+4,d),c.exif=new o.ExifMap,h=o.parseExifTags(s,f,f+h,d,c)}},i.parsers[65505].push(o.parseExifData),o}),e("runtime/html5/jpegencoder",[],function(a,i,o){function s(l){var u=Math.floor,c=new Array(64),f=new Array(64),d=new Array(64),h=new Array(64),p,v,g,y,m=new Array(65535),S=new Array(65535),w=new Array(64),C=new Array(64),_=[],x=0,T=7,M=new Array(64),E=new Array(64),A=new Array(64),k=new Array(256),L=new Array(2048),I,P=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],F=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],$=[0,1,2,3,4,5,6,7,8,9,10,11],W=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],V=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],z=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],K=[0,1,2,3,4,5,6,7,8,9,10,11],Z=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],oe=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function ge(Ce){for(var qe=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],Ze=0;Ze<64;Ze++){var de=u((qe[Ze]*Ce+50)/100);de<1?de=1:de>255&&(de=255),c[P[Ze]]=de}for(var Xe=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],mt=0;mt<64;mt++){var kt=u((Xe[mt]*Ce+50)/100);kt<1?kt=1:kt>255&&(kt=255),f[P[mt]]=kt}for(var Vt=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],dt=0,Oe=0;Oe<8;Oe++)for(var be=0;be<8;be++)d[dt]=1/(c[P[dt]]*Vt[Oe]*Vt[be]*8),h[dt]=1/(f[P[dt]]*Vt[Oe]*Vt[be]*8),dt++}function ie(Ce,qe){for(var Ze=0,de=0,Xe=new Array,mt=1;mt<=16;mt++){for(var kt=1;kt<=Ce[mt];kt++)Xe[qe[de]]=[],Xe[qe[de]][0]=Ze,Xe[qe[de]][1]=mt,de++,Ze++;Ze*=2}return Xe}function Q(){p=ie(F,$),v=ie(z,K),g=ie(W,V),y=ie(Z,oe)}function ce(){for(var Ce=1,qe=2,Ze=1;Ze<=15;Ze++){for(var de=Ce;de<qe;de++)S[32767+de]=Ze,m[32767+de]=[],m[32767+de][1]=Ze,m[32767+de][0]=de;for(var Xe=-(qe-1);Xe<=-Ce;Xe++)S[32767+Xe]=Ze,m[32767+Xe]=[],m[32767+Xe][1]=Ze,m[32767+Xe][0]=qe-1+Xe;Ce<<=1,qe<<=1}}function se(){for(var Ce=0;Ce<256;Ce++)L[Ce]=19595*Ce,L[Ce+256>>0]=38470*Ce,L[Ce+512>>0]=7471*Ce+32768,L[Ce+768>>0]=-11059*Ce,L[Ce+1024>>0]=-21709*Ce,L[Ce+1280>>0]=32768*Ce+8421375,L[Ce+1536>>0]=-27439*Ce,L[Ce+1792>>0]=-5329*Ce}function me(Ce){for(var qe=Ce[0],Ze=Ce[1]-1;Ze>=0;)qe&1<<Ze&&(x|=1<<T),Ze--,T--,T<0&&(x==255?(ve(255),ve(0)):ve(x),T=7,x=0)}function ve(Ce){_.push(k[Ce])}function he(Ce){ve(Ce>>8&255),ve(Ce&255)}function ee(Ce,qe){var Ze,de,Xe,mt,kt,Vt,dt,Oe,be=0,xe,Pe=8,pe=64;for(xe=0;xe<Pe;++xe){Ze=Ce[be],de=Ce[be+1],Xe=Ce[be+2],mt=Ce[be+3],kt=Ce[be+4],Vt=Ce[be+5],dt=Ce[be+6],Oe=Ce[be+7];var it=Ze+Oe,Tt=Ze-Oe,Wt=de+dt,Kn=de-dt,Nn=Xe+Vt,fr=Xe-Vt,wr=mt+kt,Ue=mt-kt,ot=it+wr,Ae=it-wr,rt=Wt+Nn,Rt=Wt-Nn;Ce[be]=ot+rt,Ce[be+4]=ot-rt;var pn=(Rt+Ae)*.707106781;Ce[be+2]=Ae+pn,Ce[be+6]=Ae-pn,ot=Ue+fr,rt=fr+Kn,Rt=Kn+Tt;var Nr=(ot-Rt)*.382683433,Ir=.5411961*ot+Nr,Br=1.306562965*Rt+Nr,lr=rt*.707106781,wa=Tt+lr,Ns=Tt-lr;Ce[be+5]=Ns+Ir,Ce[be+3]=Ns-Ir,Ce[be+1]=wa+Br,Ce[be+7]=wa-Br,be+=8}for(be=0,xe=0;xe<Pe;++xe){Ze=Ce[be],de=Ce[be+8],Xe=Ce[be+16],mt=Ce[be+24],kt=Ce[be+32],Vt=Ce[be+40],dt=Ce[be+48],Oe=Ce[be+56];var Wp=Ze+Oe,vd=Ze-Oe,Eu=de+dt,Mu=de-dt,Mc=Xe+Vt,Dc=Xe-Vt,gd=mt+kt,yd=mt-kt,_i=Wp+gd,vt=Wp-gd,Te=Eu+Mc,kr=Eu-Mc;Ce[be]=_i+Te,Ce[be+32]=_i-Te;var na=(kr+vt)*.707106781;Ce[be+16]=vt+na,Ce[be+48]=vt-na,_i=yd+Dc,Te=Dc+Mu,kr=Mu+vd;var ho=(_i-kr)*.382683433,Lo=.5411961*_i+ho,li=1.306562965*kr+ho,Oo=Te*.707106781,Ra=vd+Oo,La=vd-Oo;Ce[be+40]=La+Lo,Ce[be+24]=La-Lo,Ce[be+8]=Ra+li,Ce[be+56]=Ra-li,be++}var ia;for(xe=0;xe<pe;++xe)ia=Ce[xe]*qe[xe],w[xe]=ia>0?ia+.5|0:ia-.5|0;return w}function ue(){he(65504),he(16),ve(74),ve(70),ve(73),ve(70),ve(0),ve(1),ve(1),ve(0),he(1),he(1),ve(0),ve(0)}function fe(Ce,qe){he(65472),he(17),ve(8),he(qe),he(Ce),ve(3),ve(1),ve(17),ve(0),ve(2),ve(17),ve(1),ve(3),ve(17),ve(1)}function Re(){he(65499),he(132),ve(0);for(var Ce=0;Ce<64;Ce++)ve(c[Ce]);ve(1);for(var qe=0;qe<64;qe++)ve(f[qe])}function Ne(){he(65476),he(418),ve(0);for(var Ce=0;Ce<16;Ce++)ve(F[Ce+1]);for(var qe=0;qe<=11;qe++)ve($[qe]);ve(16);for(var Ze=0;Ze<16;Ze++)ve(W[Ze+1]);for(var de=0;de<=161;de++)ve(V[de]);ve(1);for(var Xe=0;Xe<16;Xe++)ve(z[Xe+1]);for(var mt=0;mt<=11;mt++)ve(K[mt]);ve(17);for(var kt=0;kt<16;kt++)ve(Z[kt+1]);for(var Vt=0;Vt<=161;Vt++)ve(oe[Vt])}function De(){he(65498),he(12),ve(3),ve(1),ve(0),ve(2),ve(17),ve(3),ve(17),ve(0),ve(63),ve(0)}function we(Ce,qe,Ze,de,Xe){for(var mt=Xe[0],kt=Xe[240],Vt,dt=16,Oe=63,be=64,xe=ee(Ce,qe),Pe=0;Pe<be;++Pe)C[P[Pe]]=xe[Pe];var pe=C[0]-Ze;Ze=C[0],pe==0?me(de[0]):(Vt=32767+pe,me(de[S[Vt]]),me(m[Vt]));for(var it=63;it>0&&C[it]==0;it--);if(it==0)return me(mt),Ze;for(var Tt=1,Wt;Tt<=it;){for(var Kn=Tt;C[Tt]==0&&Tt<=it;++Tt);var Nn=Tt-Kn;if(Nn>=dt){Wt=Nn>>4;for(var fr=1;fr<=Wt;++fr)me(kt);Nn=Nn&15}Vt=32767+C[Tt],me(Xe[(Nn<<4)+S[Vt]]),me(m[Vt]),Tt++}return it!=Oe&&me(mt),Ze}function ae(){for(var Ce=String.fromCharCode,qe=0;qe<256;qe++)k[qe]=Ce(qe)}this.encode=function(Ce,qe){qe&&Ie(qe),_=new Array,x=0,T=7,he(65496),ue(),Re(),fe(Ce.width,Ce.height),Ne(),De();var Ze=0,de=0,Xe=0;x=0,T=7,this.encode.displayName="_encode_";for(var mt=Ce.data,kt=Ce.width,Vt=Ce.height,dt=kt*4,Oe,be=0,xe,Pe,pe,it,Tt,Wt,Kn,Nn;be<Vt;){for(Oe=0;Oe<dt;){for(it=dt*be+Oe,Tt=it,Wt=-1,Kn=0,Nn=0;Nn<64;Nn++)Kn=Nn>>3,Wt=(Nn&7)*4,Tt=it+Kn*dt+Wt,be+Kn>=Vt&&(Tt-=dt*(be+1+Kn-Vt)),Oe+Wt>=dt&&(Tt-=Oe+Wt-dt+4),xe=mt[Tt++],Pe=mt[Tt++],pe=mt[Tt++],M[Nn]=(L[xe]+L[Pe+256>>0]+L[pe+512>>0]>>16)-128,E[Nn]=(L[xe+768>>0]+L[Pe+1024>>0]+L[pe+1280>>0]>>16)-128,A[Nn]=(L[xe+1280>>0]+L[Pe+1536>>0]+L[pe+1792>>0]>>16)-128;Ze=we(M,d,Ze,p,g),de=we(E,h,de,v,y),Xe=we(A,h,Xe,v,y),Oe+=32}be+=8}if(T>=0){var fr=[];fr[1]=T+1,fr[0]=(1<<T+1)-1,me(fr)}he(65497);var wr="data:image/jpeg;base64,"+btoa(_.join(""));return _=[],wr};function Ie(Ce){if(Ce<=0&&(Ce=1),Ce>100&&(Ce=100),I!=Ce){var qe=0;Ce<50?qe=Math.floor(5e3/Ce):qe=Math.floor(200-Ce*2),ge(qe),I=Ce}}function He(){l||(l=50),ae(),Q(),ce(),se(),Ie(l)}He()}return s.encode=function(l,u){var c=new s(u);return c.encode(l)},s}),e("runtime/html5/androidpatch",["runtime/html5/util","runtime/html5/jpegencoder","base"],function(a,i,o){var s=a.canvasToDataUrl,l;a.canvasToDataUrl=function(u,c,f){var d,h,p,v,g;return o.os.android?(c==="image/jpeg"&&typeof l>"u"&&(v=s.apply(null,arguments),g=v.split(","),~g[0].indexOf("base64")?v=atob(g[1]):v=decodeURIComponent(g[1]),v=v.substring(0,2),l=v.charCodeAt(0)===255&&v.charCodeAt(1)===216),c==="image/jpeg"&&!l?(h=u.width,p=u.height,d=u.getContext("2d"),i.encode(d.getImageData(0,0,h,p),f)):s.apply(null,arguments)):s.apply(null,arguments)}}),e("runtime/html5/image",["base","runtime/html5/runtime","runtime/html5/util"],function(a,i,o){var s="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs%3D";return i.register("Image",{modified:!1,init:function(){var l=this,u=new Image;u.onload=function(){l._info={type:l.type,width:this.width,height:this.height},!l._metas&&l.type==="image/jpeg"?o.parseMeta(l._blob,function(c,f){l._metas=f,l.owner.trigger("load")}):l.owner.trigger("load")},u.onerror=function(){l.owner.trigger("error")},l._img=u},loadFromBlob:function(l){var u=this,c=u._img;u._blob=l,u.type=l.type,c.src=o.createObjectURL(l.getSource()),u.owner.once("load",function(){o.revokeObjectURL(c.src)})},resize:function(l,u){var c=this._canvas||(this._canvas=document.createElement("canvas"));this._resize(this._img,c,l,u),this._blob=null,this.modified=!0,this.owner.trigger("complete","resize")},crop:function(l,u,c,f,d){var h=this._canvas||(this._canvas=document.createElement("canvas")),p=this.options,v=this._img,g=v.naturalWidth,y=v.naturalHeight,m=this.getOrientation();d=d||1,h.width=c,h.height=f,p.preserveHeaders||this._rotate2Orientaion(h,m),this._renderImageToCanvas(h,v,-l,-u,g*d,y*d),this._blob=null,this.modified=!0,this.owner.trigger("complete","crop")},getAsBlob:function(l){var u=this._blob,c=this.options,f;if(l=l||this.type,this.modified||this.type!==l){if(f=this._canvas,l==="image/jpeg"){if(u=o.canvasToDataUrl(f,l,c.quality),c.preserveHeaders&&this._metas&&this._metas.imageHead)return u=o.dataURL2ArrayBuffer(u),u=o.updateImageHead(u,this._metas.imageHead),u=o.arrayBufferToBlob(u,l),u}else u=o.canvasToDataUrl(f,l);u=o.dataURL2Blob(u)}return u},getAsDataUrl:function(l){var u=this.options;return l=l||this.type,l==="image/jpeg"?o.canvasToDataUrl(this._canvas,l,u.quality):this._canvas.toDataURL(l)},getOrientation:function(){return this._metas&&this._metas.exif&&this._metas.exif.get("Orientation")||1},info:function(l){return l?(this._info=l,this):this._info},meta:function(l){return l?(this._metas=l,this):this._metas},destroy:function(){var l=this._canvas;this._img.onload=null,l&&(l.getContext("2d").clearRect(0,0,l.width,l.height),l.width=l.height=0,this._canvas=null),this._img.src=s,this._img=this._blob=null},_resize:function(l,u,c,f){var d=this.options,h=l.width,p=l.height,v=this.getOrientation(),g,y,m,S,w;~[5,6,7,8].indexOf(v)&&(c^=f,f^=c,c^=f),g=Math[d.crop?"max":"min"](c/h,f/p),d.allowMagnify||(g=Math.min(1,g)),y=h*g,m=p*g,d.crop?(u.width=c,u.height=f):(u.width=y,u.height=m),S=(u.width-y)/2,w=(u.height-m)/2,d.preserveHeaders||this._rotate2Orientaion(u,v),this._renderImageToCanvas(u,l,S,w,y,m)},_rotate2Orientaion:function(l,u){var c=l.width,f=l.height,d=l.getContext("2d");switch(u){case 5:case 6:case 7:case 8:l.width=f,l.height=c;break}switch(u){case 2:d.translate(c,0),d.scale(-1,1);break;case 3:d.translate(c,f),d.rotate(Math.PI);break;case 4:d.translate(0,f),d.scale(1,-1);break;case 5:d.rotate(.5*Math.PI),d.scale(1,-1);break;case 6:d.rotate(.5*Math.PI),d.translate(0,-f);break;case 7:d.rotate(.5*Math.PI),d.translate(c,-f),d.scale(-1,1);break;case 8:d.rotate(-.5*Math.PI),d.translate(-c,0);break}},_renderImageToCanvas:function(){if(!a.os.ios)return function(c){var f=a.slice(arguments,1),d=c.getContext("2d");d.drawImage.apply(d,f)};function l(c,f,d){var h=document.createElement("canvas"),p=h.getContext("2d"),v=0,g=d,y=d,m,S,w;for(h.width=1,h.height=d,p.drawImage(c,0,0),m=p.getImageData(0,0,1,d).data;y>v;)S=m[(y-1)*4+3],S===0?g=y:v=y,y=g+v>>1;return w=y/d,w===0?1:w}if(a.os.ios>=7)return function(c,f,d,h,p,v){var g=f.naturalWidth,y=f.naturalHeight,m=l(f,g,y);return c.getContext("2d").drawImage(f,0,0,g*m,y*m,d,h,p,v)};function u(c){var f=c.naturalWidth,d=c.naturalHeight,h,p;return f*d>1024*1024?(h=document.createElement("canvas"),h.width=h.height=1,p=h.getContext("2d"),p.drawImage(c,-f+1,0),p.getImageData(0,0,1,1).data[3]===0):!1}return function(c,f,d,h,p,v){var g=f.naturalWidth,y=f.naturalHeight,m=c.getContext("2d"),S=u(f),w=this.type==="image/jpeg",C=1024,_=0,x=0,T,M,E,A,k,L,I;for(S&&(g/=2,y/=2),m.save(),T=document.createElement("canvas"),T.width=T.height=C,M=T.getContext("2d"),E=w?l(f,g,y):1,A=Math.ceil(C*p/g),k=Math.ceil(C*v/y/E);_<y;){for(L=0,I=0;L<g;)M.clearRect(0,0,C,C),M.drawImage(f,-L,-_),m.drawImage(T,0,0,C,C,d+I,h+x,A,k),L+=C,I+=A;_+=C,x+=k}m.restore(),T=M=null}}()})}),e("runtime/html5/transport",["base","runtime/html5/runtime"],function(a,i){var o=a.noop,s=a.$;return i.register("Transport",{init:function(){this._status=0,this._response=null},send:function(){var l=this.owner,u=this.options,c=this._initAjax(),f=l._blob,d=u.server,h,p,v;u.sendAsBinary?(d+=(/\?/.test(d)?"&":"?")+s.param(l._formData),p=f.getSource()):(h=new FormData,s.each(l._formData,function(g,y){h.append(g,y)}),h.append(u.fileVal,f.getSource(),u.filename||l._formData.name||"")),u.withCredentials&&"withCredentials"in c?(c.open(u.method,d,!0),c.withCredentials=!0):c.open(u.method,d),this._setRequestHeader(c,u.headers),p?(c.overrideMimeType&&c.overrideMimeType("application/octet-stream"),a.os.android?(v=new FileReader,v.onload=function(){c.send(this.result),v=v.onload=null},v.readAsArrayBuffer(p)):c.send(p)):c.send(h)},getResponse:function(){return this._response},getResponseAsJson:function(){return this._parseJson(this._response)},getStatus:function(){return this._status},abort:function(){var l=this._xhr;l&&(l.upload.onprogress=o,l.onreadystatechange=o,l.abort(),this._xhr=l=null)},destroy:function(){this.abort()},_initAjax:function(){var l=this,u=new XMLHttpRequest,c=this.options;return c.withCredentials&&!("withCredentials"in u)&&typeof XDomainRequest<"u"&&(u=new XDomainRequest),u.upload.onprogress=function(f){var d=0;return f.lengthComputable&&(d=f.loaded/f.total),l.trigger("progress",d)},u.onreadystatechange=function(){if(u.readyState===4)return u.upload.onprogress=o,u.onreadystatechange=o,l._xhr=null,l._status=u.status,u.status>=200&&u.status<300?(l._response=u.responseText,l.trigger("load")):u.status>=500&&u.status<600?(l._response=u.responseText,l.trigger("error","server")):l.trigger("error",l._status?"http":"abort")},l._xhr=u,u},_setRequestHeader:function(l,u){s.each(u,function(c,f){l.setRequestHeader(c,f)})},_parseJson:function(l){var u;try{u=JSON.parse(l)}catch{u={}}return u}})}),e("runtime/html5/md5",["runtime/html5/runtime"],function(a){var i=function(C,_){return C+_&4294967295},o=function(C,_,x,T,M,E){return _=i(i(_,C),i(T,E)),i(_<<M|_>>>32-M,x)},s=function(C,_,x,T,M,E,A){return o(_&x|~_&T,C,_,M,E,A)},l=function(C,_,x,T,M,E,A){return o(_&T|x&~T,C,_,M,E,A)},u=function(C,_,x,T,M,E,A){return o(_^x^T,C,_,M,E,A)},c=function(C,_,x,T,M,E,A){return o(x^(_|~T),C,_,M,E,A)},f=function(C,_){var x=C[0],T=C[1],M=C[2],E=C[3];x=s(x,T,M,E,_[0],7,-680876936),E=s(E,x,T,M,_[1],12,-389564586),M=s(M,E,x,T,_[2],17,606105819),T=s(T,M,E,x,_[3],22,-1044525330),x=s(x,T,M,E,_[4],7,-176418897),E=s(E,x,T,M,_[5],12,1200080426),M=s(M,E,x,T,_[6],17,-1473231341),T=s(T,M,E,x,_[7],22,-45705983),x=s(x,T,M,E,_[8],7,1770035416),E=s(E,x,T,M,_[9],12,-1958414417),M=s(M,E,x,T,_[10],17,-42063),T=s(T,M,E,x,_[11],22,-1990404162),x=s(x,T,M,E,_[12],7,1804603682),E=s(E,x,T,M,_[13],12,-40341101),M=s(M,E,x,T,_[14],17,-1502002290),T=s(T,M,E,x,_[15],22,1236535329),x=l(x,T,M,E,_[1],5,-165796510),E=l(E,x,T,M,_[6],9,-1069501632),M=l(M,E,x,T,_[11],14,643717713),T=l(T,M,E,x,_[0],20,-373897302),x=l(x,T,M,E,_[5],5,-701558691),E=l(E,x,T,M,_[10],9,38016083),M=l(M,E,x,T,_[15],14,-660478335),T=l(T,M,E,x,_[4],20,-405537848),x=l(x,T,M,E,_[9],5,568446438),E=l(E,x,T,M,_[14],9,-1019803690),M=l(M,E,x,T,_[3],14,-187363961),T=l(T,M,E,x,_[8],20,1163531501),x=l(x,T,M,E,_[13],5,-1444681467),E=l(E,x,T,M,_[2],9,-51403784),M=l(M,E,x,T,_[7],14,1735328473),T=l(T,M,E,x,_[12],20,-1926607734),x=u(x,T,M,E,_[5],4,-378558),E=u(E,x,T,M,_[8],11,-2022574463),M=u(M,E,x,T,_[11],16,1839030562),T=u(T,M,E,x,_[14],23,-35309556),x=u(x,T,M,E,_[1],4,-1530992060),E=u(E,x,T,M,_[4],11,1272893353),M=u(M,E,x,T,_[7],16,-155497632),T=u(T,M,E,x,_[10],23,-1094730640),x=u(x,T,M,E,_[13],4,681279174),E=u(E,x,T,M,_[0],11,-358537222),M=u(M,E,x,T,_[3],16,-722521979),T=u(T,M,E,x,_[6],23,76029189),x=u(x,T,M,E,_[9],4,-640364487),E=u(E,x,T,M,_[12],11,-421815835),M=u(M,E,x,T,_[15],16,530742520),T=u(T,M,E,x,_[2],23,-995338651),x=c(x,T,M,E,_[0],6,-198630844),E=c(E,x,T,M,_[7],10,1126891415),M=c(M,E,x,T,_[14],15,-1416354905),T=c(T,M,E,x,_[5],21,-57434055),x=c(x,T,M,E,_[12],6,1700485571),E=c(E,x,T,M,_[3],10,-1894986606),M=c(M,E,x,T,_[10],15,-1051523),T=c(T,M,E,x,_[1],21,-2054922799),x=c(x,T,M,E,_[8],6,1873313359),E=c(E,x,T,M,_[15],10,-30611744),M=c(M,E,x,T,_[6],15,-1560198380),T=c(T,M,E,x,_[13],21,1309151649),x=c(x,T,M,E,_[4],6,-145523070),E=c(E,x,T,M,_[11],10,-1120210379),M=c(M,E,x,T,_[2],15,718787259),T=c(T,M,E,x,_[9],21,-343485551),C[0]=i(x,C[0]),C[1]=i(T,C[1]),C[2]=i(M,C[2]),C[3]=i(E,C[3])},d=function(C){var _=[],x;for(x=0;x<64;x+=4)_[x>>2]=C.charCodeAt(x)+(C.charCodeAt(x+1)<<8)+(C.charCodeAt(x+2)<<16)+(C.charCodeAt(x+3)<<24);return _},h=function(C){var _=[],x;for(x=0;x<64;x+=4)_[x>>2]=C[x]+(C[x+1]<<8)+(C[x+2]<<16)+(C[x+3]<<24);return _},p=function(C){var _=C.length,x=[1732584193,-271733879,-1732584194,271733878],T,M,E,A,k,L;for(T=64;T<=_;T+=64)f(x,d(C.substring(T-64,T)));for(C=C.substring(T-64),M=C.length,E=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],T=0;T<M;T+=1)E[T>>2]|=C.charCodeAt(T)<<(T%4<<3);if(E[T>>2]|=128<<(T%4<<3),T>55)for(f(x,E),T=0;T<16;T+=1)E[T]=0;return A=_*8,A=A.toString(16).match(/(.*?)(.{0,8})$/),k=parseInt(A[2],16),L=parseInt(A[1],16)||0,E[14]=k,E[15]=L,f(x,E),x},v=function(C){var _=C.length,x=[1732584193,-271733879,-1732584194,271733878],T,M,E,A,k,L;for(T=64;T<=_;T+=64)f(x,h(C.subarray(T-64,T)));for(C=T-64<_?C.subarray(T-64):new Uint8Array(0),M=C.length,E=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],T=0;T<M;T+=1)E[T>>2]|=C[T]<<(T%4<<3);if(E[T>>2]|=128<<(T%4<<3),T>55)for(f(x,E),T=0;T<16;T+=1)E[T]=0;return A=_*8,A=A.toString(16).match(/(.*?)(.{0,8})$/),k=parseInt(A[2],16),L=parseInt(A[1],16)||0,E[14]=k,E[15]=L,f(x,E),x},g=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],y=function(C){var _="",x;for(x=0;x<4;x+=1)_+=g[C>>x*8+4&15]+g[C>>x*8&15];return _},m=function(C){var _;for(_=0;_<C.length;_+=1)C[_]=y(C[_]);return C.join("")},S=function(C){return m(p(C))},w=function(){this.reset()};return S("hello")!=="5d41402abc4b2a76b9719d911017c592"&&(i=function(C,_){var x=(C&65535)+(_&65535),T=(C>>16)+(_>>16)+(x>>16);return T<<16|x&65535}),w.prototype.append=function(C){return/[\u0080-\uFFFF]/.test(C)&&(C=unescape(encodeURIComponent(C))),this.appendBinary(C),this},w.prototype.appendBinary=function(C){this._buff+=C,this._length+=C.length;var _=this._buff.length,x;for(x=64;x<=_;x+=64)f(this._state,d(this._buff.substring(x-64,x)));return this._buff=this._buff.substr(x-64),this},w.prototype.end=function(C){var _=this._buff,x=_.length,T,M=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],E;for(T=0;T<x;T+=1)M[T>>2]|=_.charCodeAt(T)<<(T%4<<3);return this._finish(M,x),E=C?this._state:m(this._state),this.reset(),E},w.prototype._finish=function(C,_){var x=_,T,M,E;if(C[x>>2]|=128<<(x%4<<3),x>55)for(f(this._state,C),x=0;x<16;x+=1)C[x]=0;T=this._length*8,T=T.toString(16).match(/(.*?)(.{0,8})$/),M=parseInt(T[2],16),E=parseInt(T[1],16)||0,C[14]=M,C[15]=E,f(this._state,C)},w.prototype.reset=function(){return this._buff="",this._length=0,this._state=[1732584193,-271733879,-1732584194,271733878],this},w.prototype.destroy=function(){delete this._state,delete this._buff,delete this._length},w.hash=function(C,_){/[\u0080-\uFFFF]/.test(C)&&(C=unescape(encodeURIComponent(C)));var x=p(C);return _?x:m(x)},w.hashBinary=function(C,_){var x=p(C);return _?x:m(x)},w.ArrayBuffer=function(){this.reset()},w.ArrayBuffer.prototype.append=function(C){var _=this._concatArrayBuffer(this._buff,C),x=_.length,T;for(this._length+=C.byteLength,T=64;T<=x;T+=64)f(this._state,h(_.subarray(T-64,T)));return this._buff=T-64<x?_.subarray(T-64):new Uint8Array(0),this},w.ArrayBuffer.prototype.end=function(C){var _=this._buff,x=_.length,T=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],M,E;for(M=0;M<x;M+=1)T[M>>2]|=_[M]<<(M%4<<3);return this._finish(T,x),E=C?this._state:m(this._state),this.reset(),E},w.ArrayBuffer.prototype._finish=w.prototype._finish,w.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._state=[1732584193,-271733879,-1732584194,271733878],this},w.ArrayBuffer.prototype.destroy=w.prototype.destroy,w.ArrayBuffer.prototype._concatArrayBuffer=function(C,_){var x=C.length,T=new Uint8Array(x+_.byteLength);return T.set(C),T.set(new Uint8Array(_),x),T},w.ArrayBuffer.hash=function(C,_){var x=v(new Uint8Array(C));return _?x:m(x)},a.register("Md5",{init:function(){},loadFromBlob:function(C){var _=C.getSource(),x=2*1024*1024,T=Math.ceil(_.size/x),M=0,E=this.owner,A=new w.ArrayBuffer,k=this,L=_.mozSlice||_.webkitSlice||_.slice,I,P;P=new FileReader,I=function(){var F,$;F=M*x,$=Math.min(F+x,_.size),P.onload=function(W){A.append(W.target.result),E.trigger("progress",{total:C.size,loaded:$})},P.onloadend=function(){P.onloadend=P.onload=null,++M<T?setTimeout(I,1):setTimeout(function(){E.trigger("load"),k.result=A.end(),I=C=_=A=null,E.trigger("complete")},50)},P.readAsArrayBuffer(L.call(_,F,$))},I()},getResult:function(){return this.result}})}),e("runtime/flash/runtime",["base","runtime/runtime","runtime/compbase"],function(a,i,o){var s=a.$,l="flash",u={};function c(){var d;try{d=navigator.plugins["Shockwave Flash"],d=d.description}catch{try{d=new ActiveXObject("ShockwaveFlash.ShockwaveFlash").GetVariable("$version")}catch{d="0.0"}}return d=d.match(/\d+/g),parseFloat(d[0]+"."+d[1],10)}function f(){var d={},h={},p=this.destroy,v=this,g=a.guid("webuploader_");i.apply(v,arguments),v.type=l,v.exec=function(m,S){var w=this,C=w.uid,_=a.slice(arguments,2),x;return h[C]=w,u[m]&&(d[C]||(d[C]=new u[m](w,v)),x=d[C],x[S])?x[S].apply(x,_):v.flashExec.apply(w,arguments)};function y(m,S){var w=m.type||m,C,_;C=w.split("::"),_=C[0],w=C[1],w==="Ready"&&_===v.uid?v.trigger("ready"):h[_]&&h[_].trigger(w.toLowerCase(),m,S)}t[g]=function(){var m=arguments;setTimeout(function(){y.apply(null,m)},1)},this.jsreciver=g,this.destroy=function(){return p&&p.apply(this,arguments)},this.flashExec=function(m,S){var w=v.getFlash(),C=a.slice(arguments,2);return w.exec(this.uid,m,S,C)}}return a.inherits(i,{constructor:f,init:function(){var d=this.getContainer(),h=this.options,p;d.css({position:"absolute",top:"-8px",left:"-8px",width:"9px",height:"9px",overflow:"hidden"}),p='<object id="'+this.uid+'" type="application/x-shockwave-flash" data="'+h.swf+'" ',a.browser.ie&&(p+='classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" '),p+='width="100%" height="100%" style="outline:0"><param name="movie" value="'+h.swf+'" /><param name="flashvars" value="uid='+this.uid+"&jsreciver="+this.jsreciver+'" /><param name="wmode" value="transparent" /><param name="allowscriptaccess" value="always" /></object>',d.html(p)},getFlash:function(){return this._flash?this._flash:(this._flash=s("#"+this.uid).get(0),this._flash)}}),f.register=function(d,h){return h=u[d]=a.inherits(o,s.extend({flashExec:function(){var p=this.owner,v=this.getRuntime();return v.flashExec.apply(p,arguments)}},h)),h},c()>=11.4&&i.addRuntime(l,f),f}),e("runtime/flash/filepicker",["base","runtime/flash/runtime"],function(a,i){var o=a.$;return i.register("FilePicker",{init:function(s){var l=o.extend({},s),u,c;for(u=l.accept&&l.accept.length,c=0;c<u;c++)l.accept[c].title||(l.accept[c].title="Files");delete l.button,delete l.id,delete l.container,this.flashExec("FilePicker","init",l)},destroy:function(){this.flashExec("FilePicker","destroy")}})}),e("runtime/flash/image",["runtime/flash/runtime"],function(a){return a.register("Image",{loadFromBlob:function(i){var o=this.owner;o.info()&&this.flashExec("Image","info",o.info()),o.meta()&&this.flashExec("Image","meta",o.meta()),this.flashExec("Image","loadFromBlob",i.uid)}})}),e("runtime/flash/transport",["base","runtime/flash/runtime","runtime/client"],function(a,i,o){var s=a.$;return i.register("Transport",{init:function(){this._status=0,this._response=null,this._responseJson=null},send:function(){var l=this.owner,u=this.options,c=this._initAjax(),f=l._blob,d=u.server,h;c.connectRuntime(f.ruid),u.sendAsBinary?(d+=(/\?/.test(d)?"&":"?")+s.param(l._formData),h=f.uid):(s.each(l._formData,function(p,v){c.exec("append",p,v)}),c.exec("appendBlob",u.fileVal,f.uid,u.filename||l._formData.name||"")),this._setRequestHeader(c,u.headers),c.exec("send",{method:u.method,url:d,forceURLStream:u.forceURLStream,mimeType:"application/octet-stream"},h)},getStatus:function(){return this._status},getResponse:function(){return this._response||""},getResponseAsJson:function(){return this._responseJson},abort:function(){var l=this._xhr;l&&(l.exec("abort"),l.destroy(),this._xhr=l=null)},destroy:function(){this.abort()},_initAjax:function(){var l=this,u=new o("XMLHttpRequest");return u.on("uploadprogress progress",function(c){var f=c.loaded/c.total;return f=Math.min(1,Math.max(0,f)),l.trigger("progress",f)}),u.on("load",function(){var c=u.exec("getStatus"),f=!1,d="",h;return u.off(),l._xhr=null,c>=200&&c<300?f=!0:c>=500&&c<600?(f=!0,d="server"):d="http",f&&(l._response=u.exec("getResponse"),l._response=decodeURIComponent(l._response),h=function(p){try{return t.JSON&&t.JSON.parse?JSON.parse(p):new Function("return "+p).call()}catch{return{}}},l._responseJson=l._response?h(l._response):{}),u.destroy(),u=null,d?l.trigger("error",d):l.trigger("load")}),u.on("error",function(){u.off(),l._xhr=null,l.trigger("error","http")}),l._xhr=u,u},_setRequestHeader:function(l,u){s.each(u,function(c,f){l.exec("setRequestHeader",c,f)})}})}),e("runtime/flash/blob",["runtime/flash/runtime","lib/blob"],function(a,i){return a.register("Blob",{slice:function(o,s){var l=this.flashExec("Blob","slice",o,s);return new i(this.getRuid(),l)}})}),e("runtime/flash/md5",["runtime/flash/runtime"],function(a){return a.register("Md5",{init:function(){},loadFromBlob:function(i){return this.flashExec("Md5","loadFromBlob",i.uid)}})}),e("preset/all",["base","widgets/filednd","widgets/filepaste","widgets/filepicker","widgets/image","widgets/queue","widgets/runtime","widgets/upload","widgets/validator","widgets/md5","runtime/html5/blob","runtime/html5/dnd","runtime/html5/filepaste","runtime/html5/filepicker","runtime/html5/imagemeta/exif","runtime/html5/androidpatch","runtime/html5/image","runtime/html5/transport","runtime/html5/md5","runtime/flash/filepicker","runtime/flash/image","runtime/flash/transport","runtime/flash/blob","runtime/flash/md5"],function(a){return a}),e("widgets/log",["base","uploader","widgets/widget"],function(a,i){var o=a.$,s=" http://static.tieba.baidu.com/tb/pms/img/st.gif??",l=(location.hostname||location.host||"protected").toLowerCase(),u=l&&/baidu/i.exec(l),c;if(!u)return;c={dv:3,master:"webuploader",online:/test/.exec(l)?0:1,module:"",product:l,type:0};function f(d){var h=o.extend({},c,d),p=s.replace(/^(.*)\?/,"$1"+o.param(h)),v=new Image;v.src=p}return i.register({name:"log",init:function(){var d=this.owner,h=0,p=0;d.on("error",function(v){f({type:2,c_error_code:v})}).on("uploadError",function(v,g){f({type:2,c_error_code:"UPLOAD_ERROR",c_reason:""+g})}).on("uploadComplete",function(v){h++,p+=v.size}).on("uploadFinished",function(){f({c_count:h,c_size:p}),h=p=0}),f({c_usage:1})}})}),e("webuploader",["preset/all","widgets/log"],function(a){return a});var r=n;return r("webuploader")});const HWe=xi(GWe);const WWe={class:"webuploader-container"},jWe=["id"],KWe=["id"],YWe={class:"btntext upname wenjian"},I8={__name:"fileuploads",props:{projectId:Number,solverType:String,accept:String,upId:String,name:String,namelist:Array,gfname:String},emits:["Gassaddgfid","Gassaddbfid"],setup(t,{expose:e,emit:n}){const r=t;let a=B(!0),i=B(void 0),o=B(void 0);B("1212");let s=B([]),l=B(""),u=B(""),c=B();B([]);let f=B("");B("");let d=B("");B(""),B([]),Ut(()=>{h()});const h=()=>{v(),d.value=v(),g()},p=()=>{i.value.reset(),console.log(s)},v=()=>"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,function(S){var w=Math.random()*16|0,C=S=="x"?w:w&3|8;return C.toString(16)}),g=()=>{s.value=[],i.value=HWe.create({swf:"./Uploader.swf",server:"/disaster/TransServlet",formData:{},pick:{id:"#picker"+r.upId,multiple:!0},resize:!1,chunked:!0,chunkSize:2*1024*1024,threads:4}),i.value.on("fileQueued",S=>{o.value="",d.value=v(),o.value=S.name,console.log(o.value),console.log(2222);const w=o.value.split(".")[1];if(console.log(w),r.accept.indexOf(w)<0){i.value.reset(),wt.error("只支持"+r.accept+"格式文件!");return}i.value.md5File(S).progress(C=>{console.log("Percentage:",C)}).then(C=>{C.value=C}),s.value.length>0&&(i.value.removeFile(s.value[0].id),s.value=[]),s.value.push({id:S.id,name:S.name,msg:"等待上传...",percentage:0}),i.value.upload()}),i.value.on("uploadBeforeSend",(S,w,C)=>{w.chunk=S.chunk,w.chunks=S.chunks,w.bfid=d.value,w.fileName=o.value,w.channelNo="service",w.clientToken="e47b87eec69545559d1e81e56626da68",w.transCode="B00028",w.userId="5f06c8bc77234f969d13e160b54c27e3",C.Content="multipart",C.Type="form-data"}),i.value.on("uploadProgress",(S,w)=>{let C=Math.floor(w*100);s.value.forEach(_=>{(_.id=S.id)&&(_.msg="上传中"),c.value=_.msg,_.percentage=C})}),i.value.on("uploadSuccess",(S,w)=>{console.log(S.ext),console.log(w),f.value=w.bfid;let C={transCode:"B00029",bfid:w.bfid};Rn(C).then(_=>{console.log(_),s.value.forEach(x=>{(x.id=S.id)&&(x.msg="已上传",c.value=x.msg,a.value=!1),S.ext=="x"?(l.value=w.bfid,n("Gassaddgfid",l.value)):S.ext=="inp"&&(u.value=w.bfid,n("Gassaddbfid",u.value))})}).catch(_=>{})}),i.value.on("uploadAccept",(S,w)=>w.returnCode=="000000000"?!0:(wt.error(w.returnMsg),!1)),i.value.on("uploadError",(S,w)=>{zWe("#"+S.id).text(S.name+"上传出错"),v(),d.value=v()}),i.value.on("uploadComplete",S=>{})},y=()=>{i.value.reset(),percentage.value=0,s.value=[]},m=S=>{console.log(S),v(),d.value=v(),s.value=s.value.filter(w=>(w.id==S&&(console.log(w),w.name=w.name,c.value="",i.value.removeFile(S)),w.id!=S))};return e({gfid:l,bfid:u,initWebUploader:g,files:s,msg:c,uploaderClear:y,clearFiles:p}),(S,w)=>{const C=$e("el-row"),_=$e("el-col"),x=$e("el-progress");return G(),re("div",WWe,[R("div",{id:"uploader"+t.upId},[N(C,null,{default:j(()=>[R("div",{class:"btntext upname",id:"picker"+t.upId},We(t.name),9,KWe),R("div",YWe,We(t.gfname),1)]),_:1}),(G(!0),re(Ct,null,dn(b(s),(T,M)=>(G(),Ee(C,{key:M,class:"disflex"},{default:j(()=>[N(_,{span:6},{default:j(()=>[Be(We(T.name),1)]),_:2},1024),N(_,{span:8},{default:j(()=>[N(x,{percentage:T.percentage},null,8,["percentage"])]),_:2},1024),N(_,{span:5},{default:j(()=>[Be(We(T.msg),1)]),_:2},1024),N(_,{span:5},{default:j(()=>[N(b(ct),{type:"danger",onClick:E=>m(T.id),icon:b(sX),circle:""},null,8,["onClick","icon"])]),_:2},1024)]),_:2},1024))),128))],8,jWe)])}}};const sr=t=>(Sb("data-v-637c024b"),t=t(),wb(),t),XWe={class:"l_Dialog bou tablebk"},qWe={class:"common-layout",style:{margin:"0"}},ZWe={class:"demo-collapse"},QWe={class:"asides_content"},JWe={class:"jc_content tablecolor"},e7e={class:"jc_padding font12"},t7e={class:"xian btncolor tablefocus bmar"},n7e={class:"classtab"},r7e={class:"asides_content"},a7e={class:"jc_content tablecolor jc_content"},i7e={class:"font12 my_content1"},o7e={class:"btncolor tablefocus bmar"},s7e=sr(()=>R("p",null,"暂无数据",-1)),l7e={class:"demo-pagination-block pagination",style:{"margin-top":"20px"}},u7e={class:"dialog-footer footer_div l_btn"},c7e={class:"footerbtn flex1"},f7e={class:"borderimg"},d7e={class:"footerbtn flex1"},h7e={class:"borderimg"},p7e={class:"footerbtn flex1"},v7e={class:"borderimg"},g7e={class:"asides_content"},y7e={class:"jc_content tablecolor jc_content"},m7e={class:"font12 my_content1"},b7e={class:"btncolor tablefocus bmar"},S7e=sr(()=>R("p",null,"暂无数据",-1)),w7e={class:"demo-pagination-block pagination",style:{"margin-top":"20px"}},x7e={class:"dialog-footer footer_div l_btn"},_7e={class:"footerbtn flex1"},C7e={class:"borderimg"},T7e={class:"footerbtn flex1"},E7e={class:"borderimg"},M7e={class:"footerbtn flex1"},D7e={class:"borderimg"},A7e={class:"my-header"},k7e=["id"],R7e={class:"dialog-footer footer_div l_btn"},L7e={class:"footerbtn flex1"},O7e={class:"borderimg"},V7e={class:"footerbtn flex1"},N7e={class:"borderimg"},I7e={class:"my-header"},B7e=["id"],$7e={class:"delecttitle"},P7e={class:"spanclad"},F7e={class:"dialog-footer footer_div l_btn"},z7e={class:"footerbtn flex1"},U7e={class:"borderimg"},G7e={class:"footerbtn flex1"},H7e={class:"borderimg"},W7e={class:"my-header"},j7e=["id"],K7e={class:"demo-input-suffix firsttitle magintop guand_1"},Y7e={class:"btn2"},X7e={class:"demo-input-suffix firsttitle magintop guand_1"},q7e={class:"btn2"},Z7e={class:"treeselect"},Q7e={class:"demo-input-suffix firsttitle magintop guand_1"},J7e={style:{"padding-left":"10px"}},e9e={class:"btncolor tablefocus"},t9e={class:"dialog-footer footer_div l_btn"},n9e={class:"footerbtn flex1"},r9e={class:"borderimg"},a9e={class:"footerbtn flex1"},i9e={class:"borderimg"},o9e={class:"my-header"},s9e=["id"],l9e={class:"delecttitle"},u9e={class:"spanclad"},c9e={class:"dialog-footer footer_div l_btn"},f9e={class:"footerbtn flex1"},d9e={class:"borderimg"},h9e={class:"footerbtn flex1"},p9e={class:"borderimg"},v9e={class:"my-header"},g9e=["id"],y9e={class:"maoconent"},m9e={class:"maopading"},b9e={class:"jisuan"},S9e={class:"radio"},w9e={class:"jisuan"},x9e={class:"radio"},_9e={class:"divshuzhi"},C9e={key:0},T9e={key:0,class:"xizhi yi"},E9e={class:"list"},M9e={class:"jisuan"},D9e={class:"radio"},A9e=sr(()=>R("span",{class:"text"},"顺走向在煤层里挖的巷道(58.8)",-1)),k9e={class:"list"},R9e={class:"jisuan"},L9e={class:"radio"},O9e=sr(()=>R("span",{class:"text"},"交叉走向在煤层里挖的巷道(68.6~78.4)",-1)),V9e={class:"list"},N9e={class:"jisuan"},I9e={class:"radio"},B9e=sr(()=>R("span",{class:"text"},"巷道与地板粗糙度相同的巷道(58.8~78.4)",-1)),$9e={class:"list"},P9e={class:"jisuan"},F9e={class:"radio"},z9e=sr(()=>R("span",{class:"text"},"巷道与地板粗糙度相同,地面阻塞情况下 (98.0~147.0)",-1)),U9e={key:1,class:"xizhi er"},G9e={class:"list"},H9e={class:"jisuan"},W9e={class:"radio"},j9e=sr(()=>R("span",{class:"text"},"混凝土砌碹、外抹灰浆(29.4~39.2)",-1)),K9e={class:"list"},Y9e={class:"jisuan"},X9e={class:"radio"},q9e=sr(()=>R("span",{class:"text"},"混凝土砌碹、外抹灰浆(49.0~68.6))",-1)),Z9e={class:"list"},Q9e={class:"jisuan"},J9e={class:"radio"},eje=sr(()=>R("span",{class:"text"},"砖砌碹、外抹灰浆(24.5~29.4))",-1)),tje={class:"list"},nje={class:"jisuan"},rje={class:"radio"},aje=sr(()=>R("span",{class:"text"},"砖砌碹、不抹灰浆(29.4~39.2)",-1)),ije={class:"list"},oje={class:"jisuan"},sje={class:"radio"},lje=sr(()=>R("span",{class:"text"},"料石(39.2~49.0)",-1)),uje={key:2},cje={class:"xizhi san_1"},fje={class:"list"},dje={class:"jisuan1"},hje=sr(()=>R("div",{class:"radiotext"},"支护间距L(cm):",-1)),pje={class:"list"},vje={class:"jisuan1"},gje=sr(()=>R("div",{class:"radiotext"},"支护圆木直径/方木厚度d(cm):",-1)),yje={class:"list"},mje={class:"jisuan1"},bje=sr(()=>R("div",{class:"radiotext"},"巷道横截面积S(m2):",-1)),Sje={class:"list"},wje={class:"jisuan1"},xje={class:"elimage"},_je=sr(()=>R("div",{class:"list"},[R("div",{class:"jisuan1"},[R("div",{class:"radiotext tishi"},"∆=L/d")])],-1)),Cje={key:3},Tje={class:"xizhi san_2"},Eje={class:"list"},Mje={class:"jisuan1"},Dje=sr(()=>R("div",{class:"radiotext"},"支护间距L(cm):",-1)),Aje={class:"list"},kje={class:"jisuan1"},Rje=sr(()=>R("div",{class:"radiotext"},"支护圆木直径/方木厚度d(cm):",-1)),Lje={class:"list"},Oje={class:"jisuan1"},Vje=sr(()=>R("div",{class:"radiotext"},"巷道横截面积S(m2):",-1)),Nje={class:"list"},Ije={class:"jisuan1"},Bje={class:"elimage"},$je=sr(()=>R("div",{class:"list"},[R("div",{class:"jisuan1"},[R("div",{class:"radiotext tishi"},"∆=L/d")])],-1)),Pje={key:4},Fje={class:"xizhi san_3"},zje={class:"list"},Uje={class:"jisuan1"},Gje=sr(()=>R("div",{class:"radiotext"},"支护间距L(cm):",-1)),Hje={class:"list"},Wje={class:"jisuan1"},jje=sr(()=>R("div",{class:"radiotext"},"支护圆木直径/方木厚度d(cm):",-1)),Kje={class:"list"},Yje={class:"jisuan1"},Xje=sr(()=>R("div",{class:"radiotext"},"巷道横截面积S(m2):",-1)),qje={class:"list"},Zje={class:"jisuan1"},Qje={class:"elimage"},Jje=sr(()=>R("div",{class:"list"},[R("div",{class:"jisuan1"},[R("div",{class:"radiotext tishi"},"∆=L/d")])],-1)),eKe={key:5,class:"xizhi san_4"},tKe={class:"list"},nKe={class:"jisuan"},rKe={class:"radio"},aKe=sr(()=>R("span",{class:"text"},"钢筋混凝土预制支架巷道(88.2~168.2)",-1)),iKe={class:"list"},oKe={class:"jisuan"},sKe={class:"radio"},lKe=sr(()=>R("span",{class:"text"},"锚杆和喷浆巷道(78.4~117.6)",-1)),uKe={key:6,class:"xizhi san_4"},cKe={class:"list"},fKe={class:"jisuan"},dKe={class:"radio"},hKe=sr(()=>R("span",{class:"text"},"推荐值(270~350)",-1)),pKe={class:"list"},vKe={class:"jisuan"},gKe={class:"radio"},yKe=sr(()=>R("span",{class:"text"},"推荐值(300~350)",-1)),mKe={class:"list"},bKe={class:"jisuan"},SKe={class:"radio"},wKe=sr(()=>R("span",{class:"text"},"推荐值(420~500)",-1)),xKe={class:"list"},_Ke={class:"jisuan"},CKe={class:"radio"},TKe=sr(()=>R("span",{class:"text"},"推荐值(450~500)",-1)),EKe={class:"list"},MKe={class:"jisuan"},DKe={class:"radio"},AKe=sr(()=>R("span",{class:"text"},"推荐值(300~420)",-1)),kKe={class:"list"},RKe={class:"jisuan"},LKe={class:"radio"},OKe=sr(()=>R("span",{class:"text"},"推荐值(220~330)",-1)),VKe={class:"list"},NKe={class:"jisuan"},IKe={class:"radio"},BKe=sr(()=>R("span",{class:"text"},"推荐值(320~350)",-1)),$Ke={key:7,class:"xizhi"},PKe={class:"list"},FKe={class:"jisuan"},zKe={class:"radio"},UKe=sr(()=>R("span",{class:"text"},"带有带式传送机的巷道(147~196))",-1)),GKe={class:"list"},HKe={class:"jisuan"},WKe={class:"radio"},jKe=sr(()=>R("span",{class:"text"},"设有水管、风管、木梯台阶的巷道(98))",-1)),KKe={class:"list"},YKe={class:"jisuan"},XKe={class:"radio"},qKe=sr(()=>R("span",{class:"text"},"当巷道严重堵塞时(29.4~98)",-1)),ZKe={class:"dialog-footer footer_div l_btn"},QKe={class:"footerbtn flex1"},JKe={class:"borderimg"},eYe={class:"footerbtn flex1"},tYe={class:"borderimg"},nYe={__name:"MenuMine",setup(t,{expose:e}){B({v1:"截面信息1",v2:"截面信息2",v3:"截面信息3",v4:"截面信息4",v5:"截面信息5"}),B({isshow1:!0,isshow2:!1,isshow3:!1,isshow4:!1,isshow5:!1});let n=B({zidiny:"",jsuan:""}),r=B(58.8),a=B(147),i=B({val1:58.8,val2:68.6,val3:78.4,val4:58.8}),o=B("0"),s=B({val1:29.4,val2:49,val3:24.5,val4:29.4,val5:39.2}),l=B({val1:88.2,val2:78.4}),u=B({val1:29.4,val2:49,val3:49}),c=B({val1:29.4,val2:49,val3:49}),f=B({val1:29.4,val2:49,val3:49}),d=B("1"),h=B("0"),p=B({val1:147,val2:98,val3:29.4}),v=B({gzm:0,val1:98,val2:47.7}),g=B({gzm:0,val1:98,val2:47.7}),y=B({gzm:0,val1:98,val2:47.7,val3:47.7}),m=B("0");const S=B("0"),w=B(),C=B();B(""),B("");let _=B(""),x=B(""),T=B(""),M=B(""),E=B("0"),A=B("0");B(),B();const k=B([{value:"毛壁面",label:"毛壁面"},{value:"砌碹面",label:"砌碹面"},{value:"支护面",label:"支护面",children:[{value:"圆木棚式支护",label:"圆木棚式支护"},{value:"工字梁拱形和梯形支护",label:"工字梁拱形和梯形支护"},{value:"金属梁与柱支护",label:"金属梁与柱支护"},{value:"其它支护",label:"其它支护"}]},{value:"工作面",label:"工作面"}]);let L=B(),I=B(""),P=B(),F=B(!1),$=B([]);B("Fire");let W=B(["1"]),V=B(70),z=B(100);const K=B("first");let Z=B(280),oe=B(1),ge=B("");const ie={halfarch_1:"1-1断面",halfarch_2:"2-2断面",halfarch_3:"3-3断面",halfarch_4:"4-4断面",halfarch_5:"5-5断面",halfarch_6:"6-6断面",halfarch_7:"7-7断面",halfarch_8:"8-8断面",section9:"9-9断面",section10:"10-10断面",halfarch_11:"11-11断面",halfarch_12:"12-12断面",halfarch_13:"13-13断面",halfarch_14:"14-14断面",halfarch_15:"15-15断面",halfarch_16:"16-16断面",halfarch_17:"17-17断面",halfarch_18:"18-18断面",halfarch_19:"19-19断面",halfarch_20:"20-20断面"};let Q=B([{label:"1-1断面",value:"halfarch_1"},{label:"2-2断面",value:"halfarch_2"},{label:"3-3断面",value:"halfarch_3"},{label:"4-4断面",value:"halfarch_4"},{label:"5-5断面",value:"halfarch_5"},{label:"6-6断面",value:"halfarch_6"},{label:"7-7断面",value:"halfarch_7"},{label:"8-8断面",value:"halfarch_8"},{label:"9-9断面",value:"section9"},{label:"10-10断面",value:"section10"},{label:"11-11断面",value:"halfarch_11"},{label:"12-12断面",value:"halfarch_12"},{label:"13-13断面",value:"halfarch_13"},{label:"14-14断面",value:"halfarch_14"},{label:"15-15断面",value:"halfarch_15"},{label:"16-16断面",value:"halfarch_16"},{label:"17-17断面",value:"halfarch_17"},{label:"18-18断面",value:"halfarch_18"},{label:"19-19断面",value:"halfarch_19"},{label:"20-20断面",value:"halfarch_20"}]);B([{label:"圆形",value:"CIRCULAR",image:cWe},{label:"矩形",value:"RECTANGLE",image:uWe},{label:"半椭圆形",value:"SEMICIRCULAR",image:fWe},{label:"半圆形",value:"SEMIELLIPTICAL",image:dWe},{label:"蛋形",value:"EGG",image:hWe},{label:"哥特形",value:"GOTHIC",image:pWe},{label:"更正蓝形",value:"MODBASKETHANDLE",image:vWe},{label:"拱形",value:"ARCH",image:gWe},{label:"弧底矩形",value:"RECT_ROUND",image:yWe},{label:"蓝形",value:"BASKETHANDLE",image:mWe},{label:"马蹄形",value:"HORSESHOE",image:bWe},{label:"三角底矩形",value:"RECT_TRIANGULAR",image:SWe},{label:"竖向椭圆",value:"VERT_ELLIPSE",image:wWe},{label:"水平椭圆",value:"HORZI_ELLIPSE",image:xWe},{label:"悬链式",value:"CATENARY",image:_We}]);const ce=B(1),se=B(4);let me=B(!1),ve=B(!1),he=B({adddialog:!1,dialogsgdelect:!1,gdadddialog:!1,guddialogsgdelect:!1,resistance:!1}),ee=B(""),ue=B(),fe=B(""),Re=B("添加"),Ne=B({}),De=B({}),we=B({name:"",x:"",y:"",z:"",code:""}),ae=B({pid:"",name:"",snId:Number,enId:Number,roughCoe:"",roughCoeName:"毛壁面",sectionType:"halfarch_1",sectionPara1:"",sectionPara2:"",sectionPara3:"",sectionPara4:.1,sectionPara5:"",code:""}),Ie=B({total:1,currentPage4:1,pageSize4:5});const He=({row:vt,rowIndex:Te})=>Te%2!=0?"evenRow":"oddRow";Ut(()=>{de()});const Ce=(vt,Te)=>{switch(vt.props.name){case"first":de();break;case"second":Pe();break}},qe=vt=>{de()},Ze=vt=>{Pe()},de=()=>{const vt={transCode:"D00000",count:se.value,page:ce.value,searchtag:ge.value};Rn(vt).then(Te=>{$.value=Te.rows,oe.value=Te.total,Ne.value={}}).catch(Te=>{wt.error(Te.returnMsg)})},Xe=()=>{Re.value="添加",me.value=!1,he.value.adddialog=!0,we.value.name="",we.value.x="",we.value.y="",we.value.z="",we.value.nid="",we.value.code="",Ne.value={},I.value="保存"},mt=()=>{if(we.value.name==null||we.value.name=="")wt.error("名称不能为空");else if(we.value.code==null||we.value.code=="")wt.error("编号不能为空");else if(we.value.x==null||we.value.x=="")wt.error("X不能为空");else if(we.value.y==null||we.value.y=="")wt.error("Y不能为空");else if(we.value.z==null||we.value.z=="")wt.error("Z不能为空");else if(we.value.name!=""&&we.value.x!=""&&we.value.y!=""&&we.value.z!=""){const vt={transCode:"D10000",nid:we.value.nid,name:we.value.name,x:we.value.x,y:we.value.y,z:we.value.z,code:we.value.code,desc:"",ntype:"mid"};Rn(vt).then(Te=>{he.value.adddialog=!1,de(),wt({message:"节点"+I.value+"成功",type:"success"})}).catch(Te=>{wt.error(Te.returnMsg)})}else wt.error("不能为空")},kt=vt=>{console.log(vt),vt=="halfarch_1"||vt=="halfarch_2"?(ae.value.sectionPara1="3.7",ae.value.sectionPara2="5.0",ae.value.sectionPara3="2.5"):vt=="halfarch_3"?(ae.value.sectionPara1="3.75",ae.value.sectionPara2="4.5",ae.value.sectionPara3="2.25"):vt=="halfarch_4"?(ae.value.sectionPara1="3.25",ae.value.sectionPara2="3.5",ae.value.sectionPara3="1.75"):vt=="halfarch_5"?(ae.value.sectionPara1="4.5",ae.value.sectionPara2="5.7",ae.value.sectionPara3="2.85"):vt=="halfarch_6"?(ae.value.sectionPara1="3.0",ae.value.sectionPara2="3.0",ae.value.sectionPara3="1.5"):vt=="halfarch_7"?(ae.value.sectionPara1="3.2",ae.value.sectionPara2="3.8",ae.value.sectionPara3="1.9"):vt=="halfarch_8"?(ae.value.sectionPara1="2.75",ae.value.sectionPara2="3.5",ae.value.sectionPara3="1.75"):vt=="section9"?(ae.value.sectionPara1="4.663",ae.value.sectionPara2="4.0",ae.value.sectionPara3="3.35"):vt=="section10"?(ae.value.sectionPara1="4.262",ae.value.sectionPara2="4.0",ae.value.sectionPara3="3.35"):vt=="halfarch_11"?(ae.value.sectionPara1="2.75",ae.value.sectionPara2="3.5",ae.value.sectionPara3="1.75"):vt=="halfarch_12"?(ae.value.sectionPara1="3.7",ae.value.sectionPara2="4.8",ae.value.sectionPara3="2.4"):vt=="halfarch_13"?(ae.value.sectionPara1="3.2",ae.value.sectionPara2="3.8",ae.value.sectionPara3="1.9"):vt=="halfarch_14"?(ae.value.sectionPara1="4.0",ae.value.sectionPara2="4.6",ae.value.sectionPara3="2.3"):vt=="halfarch_15"?(ae.value.sectionPara1="4.5",ae.value.sectionPara2="5.0",ae.value.sectionPara3="2.5"):vt=="halfarch_16"?(ae.value.sectionPara1="3.5",ae.value.sectionPara2="4.5",ae.value.sectionPara3="2.25"):vt=="halfarch_17"?(ae.value.sectionPara1="3.3",ae.value.sectionPara2="4.0",ae.value.sectionPara3="2.0"):vt=="halfarch_18"||vt=="halfarch_19"?(ae.value.sectionPara1="4.0",ae.value.sectionPara2="4.6",ae.value.sectionPara3="2.3"):vt=="halfarch_20"&&(ae.value.sectionPara1="3.3",ae.value.sectionPara2="4.0",ae.value.sectionPara3="2.0")},Vt=vt=>{me.value=!0,Ne.value=vt},dt=vt=>{ve.value=!0,De.value=vt,T.value=De.value.gfname,M.value=De.value.bfname},Oe=()=>{console.log(Ne.value),JSON.stringify(Ne.value)=="{}"?wt.error("你还没有选中删除的项目"):(he.value.dialogsgdelect=!0,fe.value=Ne.value.name)},be=()=>{const vt={transCode:"D10001",nid:Ne.value.id};Rn(vt).then(Te=>{de(),wt({message:"节点删除成功",type:"success"})}).catch(Te=>{wt.error(Te.returnMsg)})},xe=()=>{JSON.stringify(Ne.value)=="{}"?wt.error("你还没有选中修改的项目"):(Re.value="修改",I.value=Re.value,he.value.adddialog=!0,we.value.name=Ne.value.name,we.value.x=Ne.value.x,we.value.y=Ne.value.y,we.value.z=Ne.value.z,we.value.nid=Ne.value.id,we.value.code=Ne.value.code)},Pe=()=>{const vt={transCode:"D00001",count:Ie.value.pageSize4,page:Ie.value.currentPage4,searchtag:""};Rn(vt).then(Te=>{ue.value=Te.rows.map(kr=>({...kr,sectionType:ie[kr.sectionType]||"未知"})),Ie.value.total=Te.total}).catch(Te=>{wt.error(Te.returnMsg)})},pe=vt=>{console.log(111),P.value.searchtaggd="",P.value.dialogVisiblenode=!0,P.value.pipelinedata(""),ee.value=vt},it=vt=>{ee.value=="start"?ae.value.snId=vt.id:ae.value.enId=vt.id},Tt=()=>{he.value.gdadddialog=!0,Re.value="添加",I.value="保存",ve.value=!1,ae.value.code="",ae.value.pid="",ae.value.name="",ae.value.snId="",ae.value.enId="",ae.value.roughCoe=1,ae.value.sectionType="halfarch_1",ae.value.sectionPara1="",ae.value.sectionPara2="",ae.value.sectionPara3="",ae.value.sectionPara4="0.1",ae.value.sectionPara5="",kt(ae.value.sectionType),T.value="",M.value="",De.value={},xt(()=>{w.value.files=[],C.value.files=[]})},Wt=()=>{const vt={transCode:"D10002",code:ae.value.code,pid:ae.value.pid,name:ae.value.name,snId:ae.value.snId,enId:ae.value.enId,roughCoe:ae.value.roughCoe,roughCoeName:ae.value.roughCoeName,sectionType:ae.value.sectionType,sectionPara1:ae.value.sectionPara1,sectionPara2:ae.value.sectionPara2,sectionPara3:ae.value.sectionPara3,sectionPara4:ae.value.sectionPara4,sectionPara5:ae.value.sectionPara5,gfid:_.value,bfid:x.value};console.log(vt),Rn(vt).then(Te=>{he.value.gdadddialog=!1,wt({message:"巷道信息"+I.value+"成功",type:"success"}),Pe(),xt(()=>{w.value.clearFiles(),C.value.clearFiles()})}).catch(Te=>{const kr=/字段\d*/g;let na=Te.returnMsg.replace(kr,"");wt.error(na)})},Kn=()=>{console.log(De.value),JSON.stringify(De.value)=="{}"?wt.error("你还没有选中删除的项目"):(he.value.guddialogsgdelect=!0,fe.value=De.value.name)},Nn=()=>{const vt={transCode:"D10003",pid:De.value.id};Rn(vt).then(Te=>{Pe(),wt({message:"巷道信息删除成功",type:"success"}),De.value={}}).catch(Te=>{wt.error(Te.returnMsg)})},fr=()=>{if(JSON.stringify(De.value)=="{}")wt.error("你还没有选中修改的项目");else{Re.value="修改",I.value=Re.value;let vt=De.value.sectionType;switch(he.value.gdadddialog=!0,console.log(De.value),console.log(111111),ae.value.code=De.value.code,ae.value.pid=De.value.id,ae.value.name=De.value.name,ae.value.snId=De.value.snId,ae.value.enId=De.value.enId,ae.value.roughCoe=De.value.roughCoe,n.value.zidiny=De.value.roughCoe,ae.value.roughCoeName=De.value.roughCoeName,ae.value.sectionType=De.value.sectionType,ae.value.sectionPara1=De.value.sectionPara1,ae.value.sectionPara2=De.value.sectionPara2,ae.value.sectionPara3=De.value.sectionPara3,ae.value.sectionPara4=De.value.sectionPara4,ae.value.sectionPara5=De.value.sectionPara5,vt){case"1-1断面":ae.value.sectionType="halfarch_1";break;case"2-2断面":ae.value.sectionType="halfarch_2";break;case"3-3断面":ae.value.sectionType="halfarch_3";break;case"4-4断面":ae.value.sectionType="halfarch_4";break;case"5-5断面":ae.value.sectionType="halfarch_5";break;case"6-6断面":ae.value.sectionType="halfarch_6";break;case"7-7断面":ae.value.sectionType="halfarch_7";break;case"8-8断面":ae.value.sectionType="halfarch_8";break;case"9-9断面":ae.value.sectionType="section9";break;case"10-10断面":ae.value.sectionType="section10";break;case"11-11断面":ae.value.sectionType="halfarch_11";break;case"12-12断面":ae.value.sectionType="halfarch_12";break;case"13-13断面":ae.value.sectionType="halfarch_13";break;case"14-14断面":ae.value.sectionType="halfarch_14";break;case"15-15断面":ae.value.sectionType="halfarch_15";break;case"16-16断面":ae.value.sectionType="halfarch_16";break;case"17-17断面":ae.value.sectionType="halfarch_17";break;case"18-18断面":ae.value.sectionType="halfarch_18";break;case"19-19断面":ae.value.sectionType="halfarch_19";break;case"20-20断面":ae.value.sectionType="halfarch_20";break}kt(ae.value.sectionType),Ue(De.value.gfid),ot(De.value.bfid),xt(()=>{w.value.files=[],C.value.files=[]})}},wr=vt=>{files.value="",files.value=vt},Ue=vt=>{_.value=vt},ot=vt=>{x.value=vt,console.log(11222)},Ae=()=>{console.log(1111888881)},rt=vt=>{let Te=w.value.msg,kr=C.value.msg;console.log(kr),Te=="上传中"||kr=="上传中"?wt.error("上传中不能关闭"):(vt=="cancel"&&(he.value.gdadddialog=!1),(vt=="confirm"&&Te=="已上传"||vt=="confirm"&&kr=="已上传"||vt=="confirm"&&Te==null||vt=="confirm"&&kr==null)&&(ae.value.code==""?wt.error("编号不能为空"):ae.value.name==""?wt.error("名称不能为空"):Wt()))},Rt=vt=>{r.value=vt,d.value=="0"?L.value=="圆木棚式支护"?Mu():L.value=="工字梁拱形和梯形支护"?Mc():L.value=="金属梁与柱支护"?Dc():lr():Eu()},pn=vt=>{a.value=vt,Eu()},Nr=vt=>{switch(E.value=vt,E.value){case"0":r.value=i.value.val1;break;case"1":r.value=i.value.val2;break;case"2":r.value=i.value.val3;break;case"3":r.value=i.value.val4;break}d.value=="0"?lr():wa()},Ir=vt=>{switch(E.value=vt,E.value){case"0":r.value=s.value.val1;break;case"1":r.value=s.value.val2;break;case"2":r.value=s.value.val3;break;case"3":r.value=s.value.val4;break;case"4":r.value=s.value.val5;break}d.value=="0"?lr():wa()},Br=vt=>{switch(h.value=vt,h.value){case"0":a.value=p.value.val1;break;case"1":a.value=p.value.val2;break;case"2":a.value=p.value.val3;break}Eu()},lr=()=>{let vt=parseFloat(r.value);console.log(vt),console.log(44567788),n.value.jsuan=vt/1e4},wa=()=>{let vt=parseFloat(r.value)+parseFloat(a.value);console.log(vt),n.value.jsuan=(vt/1e4).toFixed(6)},Ns=()=>{console.log(S.value),S.value=="0"?(n.value.jsuan=null,r.value=0,n.value.zidiny=ae.value.roughCoe):S.value=="1"&&d.value=="1"?(n.value.zidiny=null,Eu()):d.value=="0"&&(L.value=="毛壁面"||L.value=="砌碹面"||L.value=="其它支护"||L.value=="工作面"?lr():L.value=="圆木棚式支护"?Mu():L.value=="工字梁拱形和梯形支护"?Mc():L.value=="金属梁与柱支护"&&Dc())},Wp=()=>{S.value=="0"?ae.value.roughCoe=n.value.zidiny:S.value=="1"&&(ae.value.roughCoe=n.value.jsuan),wt({message:"系数保存成功",type:"success"}),he.value.resistance=!1},vd=vt=>{let Te=vt.value;Ns(),S.value="0",n.value.jsuan="",n.value.zidiny=ae.value.roughCoe,Te=="毛壁面"?(r.value=i.value.val1,L.value="毛壁面",he.value.resistance=!0):Te=="砌碹面"?(r.value=s.value.val1,L.value="砌碹面",he.value.resistance=!0):Te=="圆木棚式支护"?(L.value="圆木棚式支护",he.value.resistance=!0):Te=="工字梁拱形和梯形支护"?(L.value="工字梁拱形和梯形支护",he.value.resistance=!0):Te=="金属梁与柱支护"?(L.value="金属梁与柱支护",he.value.resistance=!0):Te=="其它支护"?(r.value=l.value.val1,L.value="其它支护",he.value.resistance=!0):Te=="工作面"&&(L.value="工作面",he.value.resistance=!0)},Eu=()=>{let vt=a.value/1e4;L.value=="圆木棚式支护"?(Mu(),n.value.jsuan=(Number(n.value.jsuan)+vt).toFixed(6)):L.value=="工字梁拱形和梯形支护"?(Mc(),n.value.jsuan=(Number(n.value.jsuan)+vt).toFixed(6)):L.value=="金属梁与柱支护"?(Dc(),n.value.jsuan=(Number(n.value.jsuan)+vt).toFixed(6)):wa()},Mu=()=>{let vt=u.value.val1/u.value.val2,kr=-5.21994*Math.pow(vt,2),na=.0136272*Math.pow(u.value.val2,2),ho=.124129*(vt*u.value.val2),Lo=5.21133*vt+1.89758*u.value.val2,li=kr+na+ho+Lo-.42746,Oo=.00605857*Math.pow(u.value.val3,2)+.1104174*u.value.val3+1.29266783,Ra=1e-4*(li*Oo);n.value.jsuan=Ra.toFixed(6)},Mc=()=>{let vt=c.value.val1/c.value.val2,kr=-4.65195*Math.pow(vt,2),na=.209286*Math.pow(c.value.val2,2),ho=3.01*(vt*c.value.val2),Lo=39.13845*vt-4.21*c.value.val2,li=kr+na+ho+Lo+4.006596,Oo=.00470063*Math.pow(c.value.val3,2)-.09314235*c.value.val3+1.307954,Ra=1e-4*(li*Oo);n.value.jsuan=Ra.toFixed(6)},Dc=()=>{let vt=f.value.val1/f.value.val2,kr=-1.05*Math.pow(vt,2),na=41.9947*Math.pow(f.value.val2,2),ho=.49*(vt*f.value.val2),Lo=8.4*vt-3779.52543*f.value.val2,li=kr+na+ho+Lo-83884.594,Oo=.00470063*Math.pow(f.value.val3,2)-.09314235*f.value.val3+1.307954,Ra=1e-4*(li*Oo);n.value.jsuan=Ra.toFixed(6)},gd=vt=>{vt=="0"?r.value=l.value.val1:vt=="1"&&(r.value=l.value.val2);let Te=parseFloat(r.value);n.value.jsuan=Te/1e4,console.log(d.value),d.value=="0"?lr():wa()},yd=vt=>{r.value=0,vt=="0"?(g.value.gzm=null,y.value.gzm=null,console.log(r.value)):vt=="1"?(v.value.gzm=null,y.value.gzm=null):vt=="2"&&(v.value.gzm=null,g.value.gzm=null),d.value=="0"?lr():wa()},_i=vt=>{vt=="1"?r.value=v.value.val1.toFixed(6):vt=="2"?r.value=v.value.val2.toFixed(6):vt=="3"?r.value=g.value.val1.toFixed(6):vt=="4"?r.value=g.value.val2.toFixed(6):vt=="5"?r.value=y.value.val1.toFixed(6):vt=="6"?r.value=y.value.val2.toFixed(6):vt=="7"&&(r.value=y.value.val3.toFixed(6)),d.value=="0"?lr():wa()};return e({dialogVisible:F}),(vt,Te)=>{const kr=$e("el-icon"),na=$e("el-table-column"),ho=$e("el-table"),Lo=$e("el-pagination"),li=$e("el-tab-pane"),Oo=$e("el-tabs"),Ra=$e("el-image"),La=$e("el-input"),ia=$e("el-form-item"),UE=$e("el-form"),K0=$e("el-tree-select"),GE=$e("el-option"),HE=$e("el-row"),xr=$e("el-radio"),Ko=$e("el-radio-group"),ur=$e("el-input-number"),wS=$e("el-collapse-item"),Ci=$e("el-collapse"),Ac=$e("el-aside");return G(),re("div",XWe,[R("div",qWe,[Ft(N(Ac,{width:"480px",class:"L_aside L_aside1 asideg asidegbg leftbgimg1"},{default:j(()=>[R("div",ZWe,[N(Ci,{modelValue:b(W),"onUpdate:modelValue":Te[97]||(Te[97]=Ve=>ft(W)?W.value=Ve:W=Ve),accordion:""},{default:j(()=>[N(wS,{name:"1",class:"btnicon"},{title:j(()=>[N(kr,{class:"iconimg Frame3",fit:"contain"}),Be(" 矿井信息"),N(kr,{class:"header-icon"})]),default:j(()=>[R("div",QWe,[R("div",JWe,[R("div",e7e,[R("div",t7e,[R("div",n7e,[N(Oo,{modelValue:K.value,"onUpdate:modelValue":Te[12]||(Te[12]=Ve=>K.value=Ve),type:"card",class:"demo-tabs",onTabClick:Ce,stretch:!0},{default:j(()=>[N(li,{label:"节点信息",name:"first"},{default:j(()=>[R("div",r7e,[R("div",a7e,[R("div",i7e,[R("div",o7e,[N(ho,{data:b($),style:{width:"480px"},"max-height":b(Z),"highlight-current-row":b(me),"row-class-name":He,onRowClick:Te[0]||(Te[0]=Ve=>Vt(Ve)),"header-cell-style":{background:"rgba(13, 22, 57,0) "}},{empty:j(()=>[s7e]),default:j(()=>[N(na,{prop:"id",label:"序号",width:"80px"}),N(na,{prop:"name",label:"节点名称"}),N(na,{prop:"x",label:"X"},{default:j(Ve=>[R("span",null,We(Number(Ve.row.x).toFixed(2)),1)]),_:1}),N(na,{prop:"y",label:"Y"},{default:j(Ve=>[R("span",null,We(Number(Ve.row.y).toFixed(2)),1)]),_:1}),N(na,{prop:"z",label:"Z"},{default:j(Ve=>[R("span",null,We(Number(Ve.row.z).toFixed(2)),1)]),_:1})]),_:1},8,["data","max-height","highlight-current-row","header-cell-style"]),R("div",l7e,[N(b(x1),{locale:b(Wg)},{default:j(()=>[N(Lo,{"current-page":ce.value,"onUpdate:currentPage":Te[1]||(Te[1]=Ve=>ce.value=Ve),"page-size":se.value,"onUpdate:pageSize":Te[2]||(Te[2]=Ve=>se.value=Ve),small:"",background:"",layout:"prev, total,pager, next, jumpe,",total:parseInt(b(oe)),class:"mt-4",onCurrentChange:qe},null,8,["current-page","page-size","total"])]),_:1},8,["locale"])])])]),R("div",u7e,[R("div",c7e,[R("div",f7e,[N(b(ct),{onClick:Te[3]||(Te[3]=Ve=>{Xe()})},{default:j(()=>[Be("添加")]),_:1})])]),R("div",d7e,[R("div",h7e,[N(b(ct),{onClick:Te[4]||(Te[4]=Ve=>xe())},{default:j(()=>[Be(" 修改 ")]),_:1})])]),R("div",p7e,[R("div",v7e,[N(b(ct),{onClick:Te[5]||(Te[5]=Ve=>Oe())},{default:j(()=>[Be(" 删除 ")]),_:1})])])])])])]),_:1}),N(li,{label:"巷道信息",name:"second"},{default:j(()=>[R("div",g7e,[R("div",y7e,[R("div",m7e,[R("div",b7e,[N(ho,{"row-class-name":He,"max-height":b(Z),ref:"multipleTableRef","highlight-current-row":b(ve),onRowClick:Te[6]||(Te[6]=Ve=>dt(Ve)),data:b(ue),style:{width:"100%"},"header-cell-style":{background:"rgba(13, 22, 57, 0) "}},{empty:j(()=>[S7e]),default:j(()=>[N(na,{property:"id",label:"序号"}),N(na,{property:"name",label:"名称"}),N(na,{property:"sectionType",label:"截面类型",width:"120"}),N(na,{property:"roughCoe",label:"阻力系数",width:"120"})]),_:1},8,["max-height","highlight-current-row","data","header-cell-style"]),R("div",w7e,[N(b(x1),{locale:b(Wg)},{default:j(()=>[N(Lo,{"current-page":b(Ie).currentPage4,"onUpdate:currentPage":Te[7]||(Te[7]=Ve=>b(Ie).currentPage4=Ve),"page-size":b(Ie).pageSize4,"onUpdate:pageSize":Te[8]||(Te[8]=Ve=>b(Ie).pageSize4=Ve),small:"",background:"",layout:"prev, total,pager, next, jumpe,",total:parseInt(b(Ie).total),class:"mt-4",onCurrentChange:Ze},null,8,["current-page","page-size","total"])]),_:1},8,["locale"])])])]),R("div",x7e,[R("div",_7e,[R("div",C7e,[N(b(ct),{onClick:Te[9]||(Te[9]=Ve=>{Tt()})},{default:j(()=>[Be("添加")]),_:1})])]),R("div",T7e,[R("div",E7e,[N(b(ct),{onClick:Te[10]||(Te[10]=Ve=>fr())},{default:j(()=>[Be(" 修改 ")]),_:1})])]),R("div",M7e,[R("div",D7e,[N(b(ct),{onClick:Te[11]||(Te[11]=Ve=>{Kn()})},{default:j(()=>[Be(" 删除 ")]),_:1})])])])])])]),_:1})]),_:1},8,["modelValue"])]),N(b(Mr),{modelValue:b(he).adddialog,"onUpdate:modelValue":Te[20]||(Te[20]=Ve=>b(he).adddialog=Ve),"align-center":"","append-to-body":!0,width:"480",class:"dialog_class bgcolor tianjia"},{header:j(({titleId:Ve,titleClass:Is})=>[R("div",A7e,[N(Ra,{src:b(Cr),fit:"contain"},null,8,["src"]),R("h4",{id:Ve,class:Y(Is)},We(b(Re)),11,k7e)])]),default:j(()=>[R("div",null,[N(UE,null,{default:j(()=>[N(ia,{label:"编号","label-width":b(V)},{default:j(()=>[N(La,{modelValue:b(we).code,"onUpdate:modelValue":Te[13]||(Te[13]=Ve=>b(we).code=Ve),maxlength:"10",oninput:"value=value.replace(/[^\\w\\\\/]/ig,'')",class:"w-50 m-2",placeholder:"请输入"},null,8,["modelValue"])]),_:1},8,["label-width"]),N(ia,{label:"名称","label-width":b(V)},{default:j(()=>[N(La,{modelValue:b(we).name,"onUpdate:modelValue":Te[14]||(Te[14]=Ve=>b(we).name=Ve),maxlength:"18",oninput:"value=value.replace(/[^\\a-\\z\\A-\\Z0-9\\u4E00-\\u9FA5]/g,'')",class:"w-50 m-2",placeholder:"请输入"},null,8,["modelValue"])]),_:1},8,["label-width"]),N(ia,{label:"X","label-width":b(V)},{default:j(()=>[N(La,{modelValue:b(we).x,"onUpdate:modelValue":Te[15]||(Te[15]=Ve=>b(we).x=Ve),maxlength:"15",oninput:"value=value.replace(/[^0-9.]/g,'')",class:"w-50 m-2",placeholder:"请输入"},null,8,["modelValue"])]),_:1},8,["label-width"]),N(ia,{label:"Y","label-width":b(V)},{default:j(()=>[N(La,{modelValue:b(we).y,"onUpdate:modelValue":Te[16]||(Te[16]=Ve=>b(we).y=Ve),maxlength:"15",oninput:"value=value.replace(/[^0-9.]/g,'')",class:"w-50 m-2",placeholder:"请输入"},null,8,["modelValue"])]),_:1},8,["label-width"]),N(ia,{label:"Z","label-width":b(V)},{default:j(()=>[N(La,{modelValue:b(we).z,"onUpdate:modelValue":Te[17]||(Te[17]=Ve=>b(we).z=Ve),maxlength:"15",oninput:"value=value.replace(/[^0-9.]/g,'')",class:"w-50 m-2",placeholder:"请输入"},null,8,["modelValue"])]),_:1},8,["label-width"])]),_:1})]),R("div",R7e,[R("div",L7e,[R("div",O7e,[N(b(ct),{onClick:Te[18]||(Te[18]=Ve=>b(he).adddialog=!1)},{default:j(()=>[Be("取消")]),_:1})])]),R("div",V7e,[R("div",N7e,[N(b(ct),{onClick:Te[19]||(Te[19]=Ve=>mt())},{default:j(()=>[Be(" 确定 ")]),_:1})])])])]),_:1},8,["modelValue"]),N(b(Mr),{modelValue:b(he).dialogsgdelect,"onUpdate:modelValue":Te[23]||(Te[23]=Ve=>b(he).dialogsgdelect=Ve),"align-center":"","append-to-body":!0,width:"400",class:"dialog_class bgcolor tianjia"},{header:j(({titleId:Ve,titleClass:Is})=>[R("div",I7e,[N(Ra,{src:b(Cr),fit:"contain"},null,8,["src"]),R("h4",{id:Ve,class:Y(Is)},"删除框",10,B7e)])]),default:j(()=>[R("h4",$7e,[Be(" 是否确认删除 "),R("span",P7e,We(b(fe)),1)]),R("div",F7e,[R("div",z7e,[R("div",U7e,[N(b(ct),{onClick:Te[21]||(Te[21]=Ve=>b(he).dialogsgdelect=!1)},{default:j(()=>[Be("取消")]),_:1})])]),R("div",G7e,[R("div",H7e,[N(b(ct),{onClick:Te[22]||(Te[22]=Ve=>{be(),b(he).dialogsgdelect=!1})},{default:j(()=>[Be(" 确定 ")]),_:1})])])])]),_:1},8,["modelValue"]),N(b(Mr),{modelValue:b(he).gdadddialog,"onUpdate:modelValue":Te[37]||(Te[37]=Ve=>b(he).gdadddialog=Ve),"align-center":"",modal:!1,"close-on-click-modal":!1,"append-to-body":!0,draggable:"",width:"480",class:"dialog_class bgcolor tianjia"},{header:j(({titleId:Ve,titleClass:Is})=>[R("div",W7e,[N(Ra,{src:b(Cr),fit:"contain"},null,8,["src"]),R("h4",{id:Ve,class:Y(Is)},We(b(Re)),11,j7e)])]),default:j(()=>[R("div",null,[N(ia,{label:"编号","label-width":b(z)},{default:j(()=>[N(La,{modelValue:b(ae).code,"onUpdate:modelValue":Te[24]||(Te[24]=Ve=>b(ae).code=Ve),maxlength:"10",oninput:"value=value.replace(/[^\\w\\\\/]/ig,'')",class:"w-50 m-2",placeholder:"请输入"},null,8,["modelValue"])]),_:1},8,["label-width"]),N(ia,{label:"名称","label-width":b(z)},{default:j(()=>[N(La,{modelValue:b(ae).name,"onUpdate:modelValue":Te[25]||(Te[25]=Ve=>b(ae).name=Ve),maxlength:"18",class:"w-50 m-2",placeholder:"请输入"},null,8,["modelValue"])]),_:1},8,["label-width"]),R("div",K7e,[N(ia,{label:"开始节点","label-width":b(z)},{default:j(()=>[N(La,{modelValue:b(ae).snId,"onUpdate:modelValue":Te[26]||(Te[26]=Ve=>b(ae).snId=Ve),disabled:"",class:"w-50 m-2",oninput:"value=value.replace(/[^0-9.]/g,'')",placeholder:"请选择节点"},null,8,["modelValue"])]),_:1},8,["label-width"]),R("div",Y7e,[N(b(ct),{type:"primary",onClick:Te[27]||(Te[27]=Ve=>{pe("start")})},{default:j(()=>[Be("选择开始节点")]),_:1})])]),R("div",X7e,[N(ia,{label:"结束节点","label-width":b(z)},{default:j(()=>[N(La,{modelValue:b(ae).enId,"onUpdate:modelValue":Te[28]||(Te[28]=Ve=>b(ae).enId=Ve),disabled:"disabled",oninput:"value=value.replace(/[^0-9.]/g,'')",class:"w-50 m-2",placeholder:"请选择节点"},null,8,["modelValue"])]),_:1},8,["label-width"]),R("div",q7e,[N(b(ct),{type:"primary",onClick:Te[29]||(Te[29]=Ve=>{pe("end")})},{default:j(()=>[Be("选择结束节点")]),_:1})])]),R("div",Z7e,[N(ia,{label:"阻力系数","label-width":b(z)},{default:j(()=>[N(K0,{modelValue:b(ae).roughCoeName,"onUpdate:modelValue":Te[30]||(Te[30]=Ve=>b(ae).roughCoeName=Ve),data:k.value,placeholder:"请选择","render-after-expand":!1,style:{width:"240px"},onNodeClick:vd},null,8,["modelValue","data"])]),_:1},8,["label-width"])]),R("div",Q7e,[N(ia,{label:"截面类型","label-width":b(z)},{default:j(()=>[N(b(jf),{modelValue:b(ae).sectionType,"onUpdate:modelValue":Te[31]||(Te[31]=Ve=>b(ae).sectionType=Ve),placeholder:"请选择",onChange:kt},{default:j(()=>[(G(!0),re(Ct,null,dn(b(Q),Ve=>(G(),Ee(GE,{key:Ve.id,label:Ve.label,value:Ve.value},{default:j(()=>[R("span",J7e,We(Ve.label),1)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["label-width"])]),N(ia,{label:"最大深度:","label-width":b(z)},{default:j(()=>[N(La,{modelValue:b(ae).sectionPara1,"onUpdate:modelValue":Te[32]||(Te[32]=Ve=>b(ae).sectionPara1=Ve),maxlength:"15",oninput:"value=value.replace(/[^0-9.]/g,'')",class:"w-50 m-2",placeholder:"请输入"},null,8,["modelValue"])]),_:1},8,["label-width"]),N(ia,{label:"底部宽度:","label-width":b(z)},{default:j(()=>[N(La,{modelValue:b(ae).sectionPara2,"onUpdate:modelValue":Te[33]||(Te[33]=Ve=>b(ae).sectionPara2=Ve),maxlength:"15",oninput:"value=value.replace(/[^0-9.]/g,'')",class:"w-50 m-2",placeholder:"请输入"},null,8,["modelValue"])]),_:1},8,["label-width"]),N(ia,{label:"顶部半径:","label-width":b(z)},{default:j(()=>[N(La,{modelValue:b(ae).sectionPara3,"onUpdate:modelValue":Te[34]||(Te[34]=Ve=>b(ae).sectionPara3=Ve),maxlength:"15",oninput:"value=value.replace(/[^0-9.]/g,'')",class:"w-50 m-2",placeholder:"请输入"},null,8,["modelValue"])]),_:1},8,["label-width"]),R("div",e9e,[N(I8,{ref_key:"gfx",ref:w,accept:".x",upId:"1",gfname:b(T),name:"网格文件上传",onHandfiles:wr,onGassaddgfid:Ue,onClearFiles:Ae,style:{margin:"20px 0 0 0"}},{default:j(()=>[N(HE)]),_:1},8,["accept","gfname"]),N(I8,{ref_key:"inp",ref:C,accept:".inp",name:"边界文件",upId:"2",gfname:b(M),onHandfiles:wr,onGassaddbfid:ot,onClearFiles:Ae,style:{margin:"20px 0 0 0"}},null,8,["accept","gfname"])])]),R("div",t9e,[R("div",n9e,[R("div",r9e,[N(b(ct),{onClick:Te[35]||(Te[35]=Ve=>{rt("cancel")})},{default:j(()=>[Be("取消")]),_:1})])]),R("div",a9e,[R("div",i9e,[N(b(ct),{onClick:Te[36]||(Te[36]=Ve=>{rt("confirm")})},{default:j(()=>[Be(" 确定 ")]),_:1})])])])]),_:1},8,["modelValue"]),N(b(Mr),{modelValue:b(he).guddialogsgdelect,"onUpdate:modelValue":Te[40]||(Te[40]=Ve=>b(he).guddialogsgdelect=Ve),"align-center":"","append-to-body":!0,width:"400",class:"dialog_class bgcolor tianjia"},{header:j(({titleId:Ve,titleClass:Is})=>[R("div",o9e,[N(Ra,{src:b(Cr),fit:"contain"},null,8,["src"]),R("h4",{id:Ve,class:Y(Is)},"删除框",10,s9e)])]),default:j(()=>[R("h4",l9e,[Be(" 是否确认删除 "),R("span",u9e,We(b(fe)),1)]),R("div",c9e,[R("div",f9e,[R("div",d9e,[N(b(ct),{onClick:Te[38]||(Te[38]=Ve=>b(he).guddialogsgdelect=!1)},{default:j(()=>[Be("取消")]),_:1})])]),R("div",h9e,[R("div",p9e,[N(b(ct),{onClick:Te[39]||(Te[39]=Ve=>{Nn(),b(he).guddialogsgdelect=!1})},{default:j(()=>[Be(" 确定 ")]),_:1})])])])]),_:1},8,["modelValue"]),N(b(Mr),{modelValue:b(he).resistance,"onUpdate:modelValue":Te[96]||(Te[96]=Ve=>b(he).resistance=Ve),width:"600","append-to-body":!0,modal:!1,"close-on-click-modal":!1,draggable:"",class:"dialog_class bgcolor tablefocus shigutable"},{header:j(({titleId:Ve,titleClass:Is})=>[R("div",v9e,[N(Ra,{src:b(Cr),fit:"contain"},null,8,["src"]),R("h4",{id:Ve,class:Y(Is)},We(b(L)),11,g9e)])]),default:j(()=>[R("div",y9e,[R("div",m9e,[N(Ko,{modelValue:S.value,"onUpdate:modelValue":Te[43]||(Te[43]=Ve=>S.value=Ve),class:"radio-group",onChange:Ns},{default:j(()=>[R("div",b9e,[R("div",S9e,[N(xr,{label:"0"},{default:j(()=>[Be("自定义阻力系数a:")]),_:1})]),N(La,{modelValue:b(n).zidiny,"onUpdate:modelValue":Te[41]||(Te[41]=Ve=>b(n).zidiny=Ve),maxlength:"15",oninput:"value=value.replace(/[^0-9.]/g,'')",class:"w-50 m-2",placeholder:"请输入"},null,8,["modelValue"])]),R("div",w9e,[R("div",x9e,[N(xr,{label:"1"},{default:j(()=>[Be("计算阻力系数a:")]),_:1})]),N(ia,null,{default:j(()=>[N(La,{modelValue:b(n).jsuan,"onUpdate:modelValue":Te[42]||(Te[42]=Ve=>b(n).jsuan=Ve),maxlength:"15",oninput:"value=value.replace(/[^0-9.]/g,'')",class:"w-50 m-2",placeholder:"请输入"},null,8,["modelValue"])]),_:1})])]),_:1},8,["modelValue"]),R("div",_9e,[S.value=="1"?(G(),re("div",C9e,[b(ae).roughCoeName=="毛壁面"?(G(),re("div",T9e,[N(Ko,{modelValue:b(E),"onUpdate:modelValue":Te[48]||(Te[48]=Ve=>ft(E)?E.value=Ve:E=Ve),class:"ml-4",onChange:Nr},{default:j(()=>[R("div",E9e,[R("div",M9e,[R("div",D9e,[N(xr,{label:"0"},{default:j(()=>[Be("1.阻力因子ɑ×10⁴:")]),_:1})]),N(ur,{modelValue:b(i).val1,"onUpdate:modelValue":Te[44]||(Te[44]=Ve=>b(i).val1=Ve),disabled:b(E)!="0",precision:1,step:.1,onChange:Rt},null,8,["modelValue","disabled"])]),A9e]),R("div",k9e,[R("div",R9e,[R("div",L9e,[N(xr,{label:"1"},{default:j(()=>[Be("2.阻力因子ɑ×10⁴:")]),_:1})]),N(ur,{modelValue:b(i).val2,"onUpdate:modelValue":Te[45]||(Te[45]=Ve=>b(i).val2=Ve),disabled:b(E)!="1",min:68.6,max:78.4,precision:1,step:.1,onChange:Rt},null,8,["modelValue","disabled"])]),O9e]),R("div",V9e,[R("div",N9e,[R("div",I9e,[N(xr,{label:"2"},{default:j(()=>[Be("3.阻力因子ɑ×10⁴:")]),_:1})]),N(ur,{modelValue:b(i).val3,"onUpdate:modelValue":Te[46]||(Te[46]=Ve=>b(i).val3=Ve),disabled:b(E)!="2",min:58.8,max:78.4,precision:1,step:.1,onChange:Rt},null,8,["modelValue","disabled"])]),B9e]),R("div",$9e,[R("div",P9e,[R("div",F9e,[N(xr,{label:"3"},{default:j(()=>[Be("4.阻力因子ɑ×10⁴:")]),_:1})]),N(ur,{modelValue:b(i).val4,"onUpdate:modelValue":Te[47]||(Te[47]=Ve=>b(i).val4=Ve),disabled:b(E)!="3",min:98,max:147,precision:1,step:.1,onChange:Rt},null,8,["modelValue","disabled"])]),z9e])]),_:1},8,["modelValue"])])):_e("",!0),b(ae).roughCoeName=="砌碹面"?(G(),re("div",U9e,[N(Ko,{modelValue:b(E),"onUpdate:modelValue":Te[59]||(Te[59]=Ve=>ft(E)?E.value=Ve:E=Ve),class:"ml-4",onChange:Ir},{default:j(()=>[R("div",G9e,[R("div",H9e,[R("div",W9e,[N(xr,{label:"0",modelValue:b(o),"onUpdate:modelValue":Te[49]||(Te[49]=Ve=>ft(o)?o.value=Ve:o=Ve)},{default:j(()=>[Be("1.阻力因子ɑ×10⁴:")]),_:1},8,["modelValue"])]),N(ur,{modelValue:b(s).val1,"onUpdate:modelValue":Te[50]||(Te[50]=Ve=>b(s).val1=Ve),disabled:b(E)!="0",min:29.4,max:39.2,precision:1,step:.1,onChange:Rt},null,8,["modelValue","disabled"])]),j9e]),R("div",K9e,[R("div",Y9e,[R("div",X9e,[N(xr,{label:"1",modelValue:b(o),"onUpdate:modelValue":Te[51]||(Te[51]=Ve=>ft(o)?o.value=Ve:o=Ve)},{default:j(()=>[Be("2.阻力因子ɑ×10⁴:")]),_:1},8,["modelValue"])]),N(ur,{modelValue:b(s).val2,"onUpdate:modelValue":Te[52]||(Te[52]=Ve=>b(s).val2=Ve),disabled:b(E)!="1",min:49,max:68.6,precision:1,step:.1,onChange:Rt},null,8,["modelValue","disabled"])]),q9e]),R("div",Z9e,[R("div",Q9e,[R("div",J9e,[N(xr,{label:"2",modelValue:b(o),"onUpdate:modelValue":Te[53]||(Te[53]=Ve=>ft(o)?o.value=Ve:o=Ve)},{default:j(()=>[Be("3.阻力因子ɑ×10⁴:")]),_:1},8,["modelValue"])]),N(ur,{modelValue:b(s).val3,"onUpdate:modelValue":Te[54]||(Te[54]=Ve=>b(s).val3=Ve),disabled:b(E)!="2",min:24.5,max:29.4,precision:1,step:.1,onChange:Rt},{"decrease-icon":j(()=>[N(kr,null,{default:j(()=>[N(b(sc))]),_:1})]),"increase-icon":j(()=>[N(kr,null,{default:j(()=>[N(b(Li))]),_:1})]),_:1},8,["modelValue","disabled"])]),eje]),R("div",tje,[R("div",nje,[R("div",rje,[N(xr,{label:"3",modelValue:b(o),"onUpdate:modelValue":Te[55]||(Te[55]=Ve=>ft(o)?o.value=Ve:o=Ve)},{default:j(()=>[Be("4.阻力因子ɑ×10⁴:")]),_:1},8,["modelValue"])]),N(ur,{modelValue:b(s).val4,"onUpdate:modelValue":Te[56]||(Te[56]=Ve=>b(s).val4=Ve),disabled:b(E)!="3",min:29.4,max:39.2,precision:1,step:.1,onChange:Rt},null,8,["modelValue","disabled"])]),aje]),R("div",ije,[R("div",oje,[R("div",sje,[N(xr,{label:"4",modelValue:b(o),"onUpdate:modelValue":Te[57]||(Te[57]=Ve=>ft(o)?o.value=Ve:o=Ve)},{default:j(()=>[Be("5.阻力因子ɑ×10⁴:")]),_:1},8,["modelValue"])]),N(ur,{modelValue:b(s).val5,"onUpdate:modelValue":Te[58]||(Te[58]=Ve=>b(s).val5=Ve),disabled:b(E)!="4",min:39.2,max:49,precision:1,step:.1,onChange:Rt},null,8,["modelValue","disabled"])]),lje])]),_:1},8,["modelValue"])])):_e("",!0),b(ae).roughCoeName=="圆木棚式支护"?(G(),re("div",uje,[R("div",cje,[R("div",fje,[R("div",dje,[hje,N(ur,{modelValue:b(u).val1,"onUpdate:modelValue":Te[60]||(Te[60]=Ve=>b(u).val1=Ve),precision:1,step:.1,onChange:Rt},null,8,["modelValue"])])]),R("div",pje,[R("div",vje,[gje,N(ur,{modelValue:b(u).val2,"onUpdate:modelValue":Te[61]||(Te[61]=Ve=>b(u).val2=Ve),precision:1,step:.1,onChange:Rt},null,8,["modelValue"])])]),R("div",yje,[R("div",mje,[bje,N(ur,{modelValue:b(u).val3,"onUpdate:modelValue":Te[62]||(Te[62]=Ve=>b(u).val3=Ve),precision:1,step:.1,onChange:Rt},null,8,["modelValue"])])])]),R("div",Sje,[R("div",wje,[R("div",xje,[N(Ra,{src:b(CWe),fit:"contain"},null,8,["src"])])])]),_je])):_e("",!0),b(ae).roughCoeName=="工字梁拱形和梯形支护"?(G(),re("div",Cje,[R("div",Tje,[R("div",Eje,[R("div",Mje,[Dje,N(ur,{modelValue:b(c).val1,"onUpdate:modelValue":Te[63]||(Te[63]=Ve=>b(c).val1=Ve),precision:1,step:.1,onChange:Rt},null,8,["modelValue"])])]),R("div",Aje,[R("div",kje,[Rje,N(ur,{modelValue:b(c).val2,"onUpdate:modelValue":Te[64]||(Te[64]=Ve=>b(c).val2=Ve),precision:1,step:.1,onChange:Rt},null,8,["modelValue"])])]),R("div",Lje,[R("div",Oje,[Vje,N(ur,{modelValue:b(c).val3,"onUpdate:modelValue":Te[65]||(Te[65]=Ve=>b(c).val3=Ve),precision:1,step:.1,onChange:Rt},null,8,["modelValue"])])])]),R("div",Nje,[R("div",Ije,[R("div",Bje,[N(Ra,{src:b(TWe),fit:"contain"},null,8,["src"])])])]),$je])):_e("",!0),b(ae).roughCoeName=="金属梁与柱支护"?(G(),re("div",Pje,[R("div",Fje,[R("div",zje,[R("div",Uje,[Gje,N(ur,{modelValue:b(f).val1,"onUpdate:modelValue":Te[66]||(Te[66]=Ve=>b(f).val1=Ve),precision:1,step:.1,onChange:Rt},null,8,["modelValue"])])]),R("div",Hje,[R("div",Wje,[jje,N(ur,{modelValue:b(f).val2,"onUpdate:modelValue":Te[67]||(Te[67]=Ve=>b(f).val2=Ve),precision:1,step:.1,onChange:Rt},null,8,["modelValue"])])]),R("div",Kje,[R("div",Yje,[Xje,N(ur,{modelValue:b(f).val3,"onUpdate:modelValue":Te[68]||(Te[68]=Ve=>b(f).val3=Ve),precision:1,step:.1,onChange:Rt},null,8,["modelValue"])])])]),R("div",qje,[R("div",Zje,[R("div",Qje,[N(Ra,{src:b(EWe),fit:"contain"},null,8,["src"])])])]),Jje])):_e("",!0),b(ae).roughCoeName=="其它支护"?(G(),re("div",eKe,[N(Ko,{modelValue:b(A),"onUpdate:modelValue":Te[73]||(Te[73]=Ve=>ft(A)?A.value=Ve:A=Ve),class:"ml-4",onChange:gd},{default:j(()=>[R("div",tKe,[R("div",nKe,[R("div",rKe,[N(xr,{label:"0",modelValue:b(E),"onUpdate:modelValue":Te[69]||(Te[69]=Ve=>ft(E)?E.value=Ve:E=Ve)},{default:j(()=>[Be("1.阻力因子ɑ×10⁴:")]),_:1},8,["modelValue"])]),N(ur,{modelValue:b(l).val1,"onUpdate:modelValue":Te[70]||(Te[70]=Ve=>b(l).val1=Ve),disabled:b(E)!="0",min:88.2,max:168.2,precision:1,step:.1,onChange:Rt},null,8,["modelValue","disabled"])]),aKe]),R("div",iKe,[R("div",oKe,[R("div",sKe,[N(xr,{label:1,modelValue:b(E),"onUpdate:modelValue":Te[71]||(Te[71]=Ve=>ft(E)?E.value=Ve:E=Ve)},{default:j(()=>[Be("2.阻力因子ɑ×10⁴:")]),_:1},8,["modelValue"])]),N(ur,{modelValue:b(l).val2,"onUpdate:modelValue":Te[72]||(Te[72]=Ve=>b(l).val2=Ve),disabled:b(E)!="1",min:78.4,max:117.6,precision:1,step:.1,onChange:Rt},null,8,["modelValue","disabled"])]),lKe])]),_:1},8,["modelValue"])])):_e("",!0),b(ae).roughCoeName=="工作面"?(G(),re("div",uKe,[N(xr,{label:"0",modelValue:b(m),"onUpdate:modelValue":Te[74]||(Te[74]=Ve=>ft(m)?m.value=Ve:m=Ve),onChange:yd},{default:j(()=>[Be("A.炮开采面因子ɑ×10⁴:")]),_:1},8,["modelValue"]),N(Ko,{modelValue:b(v).gzm,"onUpdate:modelValue":Te[77]||(Te[77]=Ve=>b(v).gzm=Ve),disabled:b(m)!="0",onChange:_i},{default:j(()=>[R("div",cKe,[R("div",fKe,[R("div",dKe,[N(xr,{label:"1"},{default:j(()=>[Be(" 摩擦式金属支柱:")]),_:1})]),N(ur,{modelValue:b(v).val1,"onUpdate:modelValue":Te[75]||(Te[75]=Ve=>b(v).val1=Ve),disabled:b(m)!="0"||b(v).gzm!="1",precision:1,step:.1,onChange:Rt},null,8,["modelValue","disabled"])]),hKe]),R("div",pKe,[R("div",vKe,[R("div",gKe,[N(xr,{label:"2"},{default:j(()=>[Be("采用木支柱:")]),_:1})]),N(ur,{modelValue:b(v).val2,"onUpdate:modelValue":Te[76]||(Te[76]=Ve=>b(v).val2=Ve),disabled:b(m)!="0"||b(v).gzm!="2",precision:1,step:.1,onChange:Rt},null,8,["modelValue","disabled"])]),yKe])]),_:1},8,["modelValue","disabled"]),N(xr,{label:"1",modelValue:b(m),"onUpdate:modelValue":Te[78]||(Te[78]=Ve=>ft(m)?m.value=Ve:m=Ve),onChange:yd},{default:j(()=>[Be("B.普通采面阻力因子ɑ×10⁴:")]),_:1},8,["modelValue"]),N(Ko,{modelValue:b(g).gzm,"onUpdate:modelValue":Te[81]||(Te[81]=Ve=>b(g).gzm=Ve),disabled:b(m)!="1",onChange:_i},{default:j(()=>[R("div",mKe,[R("div",bKe,[R("div",SKe,[N(xr,{label:"3"},{default:j(()=>[Be(" 采用单体液压支柱:")]),_:1})]),N(ur,{modelValue:b(g).val1,"onUpdate:modelValue":Te[79]||(Te[79]=Ve=>b(g).val1=Ve),disabled:b(m)!="1"||b(g).gzm!="3",precision:1,step:.1,onChange:Rt},null,8,["modelValue","disabled"])]),wKe]),R("div",xKe,[R("div",_Ke,[R("div",CKe,[N(xr,{label:"4"},{default:j(()=>[Be("采用摩擦式金属支柱:")]),_:1})]),N(ur,{modelValue:b(g).val2,"onUpdate:modelValue":Te[80]||(Te[80]=Ve=>b(g).val2=Ve),disabled:b(m)!="1"||b(g).gzm!="4",precision:1,step:.1,onChange:Rt},null,8,["modelValue","disabled"])]),TKe])]),_:1},8,["modelValue","disabled"]),N(xr,{label:"2",modelValue:b(m),"onUpdate:modelValue":Te[82]||(Te[82]=Ve=>ft(m)?m.value=Ve:m=Ve),onChange:yd},{default:j(()=>[Be("C.综合采面阻力因子ɑ×10⁴:")]),_:1},8,["modelValue"]),N(Ko,{modelValue:b(y).gzm,"onUpdate:modelValue":Te[86]||(Te[86]=Ve=>b(y).gzm=Ve),disabled:b(m)!="2",onChange:_i},{default:j(()=>[R("div",EKe,[R("div",MKe,[R("div",DKe,[N(xr,{label:"5"},{default:j(()=>[Be(" 采用支撑式液压支架:")]),_:1})]),N(ur,{modelValue:b(y).val1,"onUpdate:modelValue":Te[83]||(Te[83]=Ve=>b(y).val1=Ve),disabled:b(m)!="2"||b(y).gzm!="5",precision:1,step:.1,onChange:Rt},null,8,["modelValue","disabled"])]),AKe]),R("div",kKe,[R("div",RKe,[R("div",LKe,[N(xr,{label:"6"},{default:j(()=>[Be("采用掩护式液压支架:")]),_:1})]),N(ur,{modelValue:b(y).val2,"onUpdate:modelValue":Te[84]||(Te[84]=Ve=>b(y).val2=Ve),disabled:b(m)!="2"||b(y).gzm!="6",precision:1,step:.1,onChange:Rt},null,8,["modelValue","disabled"])]),OKe]),R("div",VKe,[R("div",NKe,[R("div",IKe,[N(xr,{label:"7"},{default:j(()=>[Be("采用支撑掩护式支架:")]),_:1})]),N(ur,{modelValue:b(y).val3,"onUpdate:modelValue":Te[85]||(Te[85]=Ve=>b(y).val3=Ve),disabled:b(m)!="2"||b(y).gzm!="7",precision:1,step:.1,onChange:Rt},null,8,["modelValue","disabled"])]),BKe])]),_:1},8,["modelValue","disabled"])])):_e("",!0),N(ia,{label:" 巷道有障碍物阻力修正:"},{default:j(()=>[N(Ko,{modelValue:b(d),"onUpdate:modelValue":Te[87]||(Te[87]=Ve=>ft(d)?d.value=Ve:d=Ve),onChange:Ns},{default:j(()=>[N(xr,{label:"1"},{default:j(()=>[Be("是")]),_:1}),N(xr,{label:"0"},{default:j(()=>[Be("否")]),_:1})]),_:1},8,["modelValue"])]),_:1}),b(d)=="1"?(G(),re("div",$Ke,[N(Ko,{modelValue:b(h),"onUpdate:modelValue":Te[93]||(Te[93]=Ve=>ft(h)?h.value=Ve:h=Ve),class:"ml-4",onChange:Br},{default:j(()=>[R("div",PKe,[R("div",FKe,[R("div",zKe,[N(xr,{label:"0"},{default:j(()=>[Be("1.阻力因子ɑ×10⁴:")]),_:1})]),N(ur,{modelValue:b(p).val1,"onUpdate:modelValue":Te[88]||(Te[88]=Ve=>b(p).val1=Ve),disabled:b(h)!="0",min:147,max:196,precision:1,step:.1,onChange:pn},null,8,["modelValue","disabled"])]),UKe]),R("div",GKe,[R("div",HKe,[R("div",WKe,[N(xr,{label:"1",modelValue:b(h),"onUpdate:modelValue":Te[89]||(Te[89]=Ve=>ft(h)?h.value=Ve:h=Ve)},{default:j(()=>[Be("2.阻力因子ɑ×10⁴:")]),_:1},8,["modelValue"])]),N(ur,{modelValue:b(p).val2,"onUpdate:modelValue":Te[90]||(Te[90]=Ve=>b(p).val2=Ve),disabled:b(h)!="1",precision:1,step:.1,onChange:pn},null,8,["modelValue","disabled"])]),jKe]),R("div",KKe,[R("div",YKe,[R("div",XKe,[N(xr,{label:"2",modelValue:b(h),"onUpdate:modelValue":Te[91]||(Te[91]=Ve=>ft(h)?h.value=Ve:h=Ve)},{default:j(()=>[Be("3.阻力因子ɑ×10⁴:")]),_:1},8,["modelValue"])]),N(ur,{modelValue:b(p).val3,"onUpdate:modelValue":Te[92]||(Te[92]=Ve=>b(p).val3=Ve),disabled:b(h)!="2",min:29.4,max:98,precision:1,step:.1,onChange:pn},null,8,["modelValue","disabled"])]),qKe])]),_:1},8,["modelValue"])])):_e("",!0)])):_e("",!0)])])]),R("div",ZKe,[R("div",QKe,[R("div",JKe,[N(b(ct),{onClick:Te[94]||(Te[94]=Ve=>b(he).resistance=!1)},{default:j(()=>[Be("取消")]),_:1})])]),R("div",eYe,[R("div",tYe,[N(b(ct),{onClick:Te[95]||(Te[95]=Ve=>{Wp()})},{default:j(()=>[Be(" 确定 ")]),_:1})])])])]),_:1},8,["modelValue"]),N(uJ,{ref_key:"nodeselect",ref:P,onQueding:it},null,512)])])])])]),_:1})]),_:1},8,["modelValue"])])]),_:1},512),[[cn,b(F)]])])])}}},rYe=w0(nYe,[["__scopeId","data-v-637c024b"]]);const dJ=t=>(Sb("data-v-d6e7e49c"),t=t(),wb(),t),aYe={class:"my-header"},iYe=["id"],oYe={class:"demo-input-suffix firsttitle leftbgimg2 my_content1"},sYe={class:"guand_1"},lYe=dJ(()=>R("span",{class:"spantext"},"搜索",-1)),uYe=[lYe],cYe=dJ(()=>R("p",null,"暂无数据",-1)),fYe={class:"demo-pagination-block",style:{"margin-top":"20px"}},dYe={class:"dialog-footer footer_div l_btn"},hYe={class:"footerbtn flex1"},pYe={class:"borderimg"},vYe={class:"footerbtn flex1"},gYe={class:"borderimg"},yYe={__name:"PipeIine",props:{},emits:["pipelineapi"],setup(t,{expose:e,emit:n}){B({dianadddialog:!1});let r=B(99),a=B(530),i=B([]);const o=B(),s=B([]);let l=B(!1),u=B(1),c=B(""),f=B("");const d=B(1),h={halfarch_1:"1-1断面",halfarch_2:"2-2断面",halfarch_3:"3-3断面",halfarch_4:"4-4断面",halfarch_5:"5-5断面",halfarch_6:"6-6断面",halfarch_7:"7-7断面",halfarch_8:"8-8断面",section9:"9-9断面",section10:"10-10断面",halfarch_11:"11-11断面",halfarch_12:"12-12断面",halfarch_13:"13-13断面",halfarch_14:"14-14断面",halfarch_15:"15-15断面",halfarch_16:"16-16断面",halfarch_17:"17-17断面",halfarch_18:"18-18断面",halfarch_19:"19-19断面",halfarch_20:"20-20断面"},p=B(5);Ut(()=>{});const v=({row:_,rowIndex:x})=>x%2!=0?"evenRow":"oddRow";function g(){f.value=c.value,m(c.value)}const y=_=>{m()},m=_=>{const x={transCode:"D00001",count:p.value,page:d.value,searchtag:_};Rn(x).then(T=>{i.value=T.rows.map(M=>({...M,sectionType:h[M.sectionType]||"未知"})),u.value=T.total}).catch(T=>{wt.error(T.returnMsg)})},S=(_,x)=>{if(_.length>1){o.value.clearSelection(),o.value.toggleRowSelection(x,!0);let T=[];T.push(_[1]),s.value=T;return}_.length==1?s.value=_:_.length==0},w=()=>{n("pipelineapi",""),d.value=1,s.value.length!=0&&n("pipelineapi",s.value[0])},C=()=>{w()};return e({dialogVisiblenode:l,pipelinedata:m,searchtaggd:c}),(_,x)=>{const T=$e("el-image"),M=$e("el-input"),E=$e("el-form-item"),A=$e("el-table-column"),k=$e("el-table"),L=$e("el-pagination"),I=$e("el-config-provider");return G(),re("div",null,[N(b(Mr),{modelValue:b(l),"onUpdate:modelValue":x[5]||(x[5]=P=>ft(l)?l.value=P:l=P),"align-center":"","append-to-body":!0,width:"500",class:"log_class bgcolor tianjia asideg asidegbg leftbgimg"},{header:j(({titleId:P,titleClass:F})=>[R("div",aYe,[N(T,{src:b(Cr),fit:"contain"},null,8,["src"]),R("h4",{id:P,class:Y(F)}," 选择巷道",10,iYe)])]),default:j(()=>[R("div",oYe,[R("div",sYe,[N(E,{label:"巷道选择","label-width":b(r)},{default:j(()=>[N(M,{modelValue:b(c),"onUpdate:modelValue":x[0]||(x[0]=P=>ft(c)?c.value=P:c=P),class:"w-50 m-2",placeholder:"巷道"},null,8,["modelValue"])]),_:1},8,["label-width"]),R("div",{class:"asdis_btn"},[R("div",{class:"flex_a"},[R("div",{class:"btns",onClick:g,style:{"margin-top":"10px"}},uYe)])])]),N(k,{"row-class-name":v,"max-height":b(a),ref_key:"multipleTableRef",ref:o,data:b(i),style:{width:"100%"},onSelect:S,"header-cell-style":{background:"rgba(13, 22, 57, 0.96) "}},{empty:j(()=>[cYe]),default:j(()=>[N(A,{type:"selection",width:"55"}),N(A,{property:"id",label:"编号",width:"70"}),N(A,{property:"name",label:"名称",width:"70"}),N(A,{property:"sectionType",label:"截面类型",width:"120"}),N(A,{property:"roughCoe",label:"粗糙系数"})]),_:1},8,["max-height","data","header-cell-style"]),R("div",fYe,[N(I,{locale:b(Wg)},{default:j(()=>[N(L,{"current-page":d.value,"onUpdate:currentPage":x[1]||(x[1]=P=>d.value=P),"page-size":p.value,"onUpdate:pageSize":x[2]||(x[2]=P=>p.value=P),small:"",background:"",layout:"prev, total,pager, next, jumpe,",total:parseInt(b(u)),class:"mt-4",onCurrentChange:y},null,8,["current-page","page-size","total"])]),_:1},8,["locale"])]),R("div",dYe,[R("div",hYe,[R("div",pYe,[N(b(ct),{onClick:x[3]||(x[3]=P=>ft(l)?l.value=!1:l=!1)},{default:j(()=>[Be("取消")]),_:1})])]),R("div",vYe,[R("div",gYe,[N(b(ct),{onClick:x[4]||(x[4]=P=>{C(),ft(l)?l.value=!1:l=!1})},{default:j(()=>[Be(" 确定 ")]),_:1})])])])])]),_:1},8,["modelValue"])])}}},Pb=w0(yYe,[["__scopeId","data-v-d6e7e49c"]]);function v_(t,e){return t==null||e==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function mYe(t,e){return t==null||e==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function hJ(t){let e,n,r;t.length!==2?(e=v_,n=(s,l)=>v_(t(s),l),r=(s,l)=>t(s)-l):(e=t===v_||t===mYe?t:bYe,n=t,r=t);function a(s,l,u=0,c=s.length){if(u<c){if(e(l,l)!==0)return c;do{const f=u+c>>>1;n(s[f],l)<0?u=f+1:c=f}while(u<c)}return u}function i(s,l,u=0,c=s.length){if(u<c){if(e(l,l)!==0)return c;do{const f=u+c>>>1;n(s[f],l)<=0?u=f+1:c=f}while(u<c)}return u}function o(s,l,u=0,c=s.length){const f=a(s,l,u,c-1);return f>u&&r(s[f-1],l)>-r(s[f],l)?f-1:f}return{left:a,center:o,right:i}}function bYe(){return 0}function SYe(t){return t===null?NaN:+t}const wYe=hJ(v_),xYe=wYe.right;hJ(SYe).center;const _Ye=xYe,CYe=Math.sqrt(50),TYe=Math.sqrt(10),EYe=Math.sqrt(2);function x2(t,e,n){const r=(e-t)/Math.max(0,n),a=Math.floor(Math.log10(r)),i=r/Math.pow(10,a),o=i>=CYe?10:i>=TYe?5:i>=EYe?2:1;let s,l,u;return a<0?(u=Math.pow(10,-a)/o,s=Math.round(t*u),l=Math.round(e*u),s/u<t&&++s,l/u>e&&--l,u=-u):(u=Math.pow(10,a)*o,s=Math.round(t/u),l=Math.round(e/u),s*u<t&&++s,l*u>e&&--l),l<s&&.5<=n&&n<2?x2(t,e,n*2):[s,l,u]}function MYe(t,e,n){if(e=+e,t=+t,n=+n,!(n>0))return[];if(t===e)return[t];const r=e<t,[a,i,o]=r?x2(e,t,n):x2(t,e,n);if(!(i>=a))return[];const s=i-a+1,l=new Array(s);if(r)if(o<0)for(let u=0;u<s;++u)l[u]=(i-u)/-o;else for(let u=0;u<s;++u)l[u]=(i-u)*o;else if(o<0)for(let u=0;u<s;++u)l[u]=(a+u)/-o;else for(let u=0;u<s;++u)l[u]=(a+u)*o;return l}function TL(t,e,n){return e=+e,t=+t,n=+n,x2(t,e,n)[2]}function DYe(t,e,n){e=+e,t=+t,n=+n;const r=e<t,a=r?TL(e,t,n):TL(t,e,n);return(r?-1:1)*(a<0?1/-a:a)}function AYe(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t);break}return this}function HV(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function pJ(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function Fb(){}var N1=.7,_2=1/N1,fg="\\s*([+-]?\\d+)\\s*",I1="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",au="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",kYe=/^#([0-9a-f]{3,8})$/,RYe=new RegExp(`^rgb\\(${fg},${fg},${fg}\\)$`),LYe=new RegExp(`^rgb\\(${au},${au},${au}\\)$`),OYe=new RegExp(`^rgba\\(${fg},${fg},${fg},${I1}\\)$`),VYe=new RegExp(`^rgba\\(${au},${au},${au},${I1}\\)$`),NYe=new RegExp(`^hsl\\(${I1},${au},${au}\\)$`),IYe=new RegExp(`^hsla\\(${I1},${au},${au},${I1}\\)$`),B8={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};HV(Fb,B1,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:$8,formatHex:$8,formatHex8:BYe,formatHsl:$Ye,formatRgb:P8,toString:P8});function $8(){return this.rgb().formatHex()}function BYe(){return this.rgb().formatHex8()}function $Ye(){return vJ(this).formatHsl()}function P8(){return this.rgb().formatRgb()}function B1(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=kYe.exec(t))?(n=e[1].length,e=parseInt(e[1],16),n===6?F8(e):n===3?new Co(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):n===8?ZS(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):n===4?ZS(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=RYe.exec(t))?new Co(e[1],e[2],e[3],1):(e=LYe.exec(t))?new Co(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=OYe.exec(t))?ZS(e[1],e[2],e[3],e[4]):(e=VYe.exec(t))?ZS(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=NYe.exec(t))?G8(e[1],e[2]/100,e[3]/100,1):(e=IYe.exec(t))?G8(e[1],e[2]/100,e[3]/100,e[4]):B8.hasOwnProperty(t)?F8(B8[t]):t==="transparent"?new Co(NaN,NaN,NaN,0):null}function F8(t){return new Co(t>>16&255,t>>8&255,t&255,1)}function ZS(t,e,n,r){return r<=0&&(t=e=n=NaN),new Co(t,e,n,r)}function PYe(t){return t instanceof Fb||(t=B1(t)),t?(t=t.rgb(),new Co(t.r,t.g,t.b,t.opacity)):new Co}function EL(t,e,n,r){return arguments.length===1?PYe(t):new Co(t,e,n,r??1)}function Co(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}HV(Co,EL,pJ(Fb,{brighter(t){return t=t==null?_2:Math.pow(_2,t),new Co(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?N1:Math.pow(N1,t),new Co(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new Co(Qh(this.r),Qh(this.g),Qh(this.b),C2(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:z8,formatHex:z8,formatHex8:FYe,formatRgb:U8,toString:U8}));function z8(){return`#${Bh(this.r)}${Bh(this.g)}${Bh(this.b)}`}function FYe(){return`#${Bh(this.r)}${Bh(this.g)}${Bh(this.b)}${Bh((isNaN(this.opacity)?1:this.opacity)*255)}`}function U8(){const t=C2(this.opacity);return`${t===1?"rgb(":"rgba("}${Qh(this.r)}, ${Qh(this.g)}, ${Qh(this.b)}${t===1?")":`, ${t})`}`}function C2(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Qh(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Bh(t){return t=Qh(t),(t<16?"0":"")+t.toString(16)}function G8(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new tl(t,e,n,r)}function vJ(t){if(t instanceof tl)return new tl(t.h,t.s,t.l,t.opacity);if(t instanceof Fb||(t=B1(t)),!t)return new tl;if(t instanceof tl)return t;t=t.rgb();var e=t.r/255,n=t.g/255,r=t.b/255,a=Math.min(e,n,r),i=Math.max(e,n,r),o=NaN,s=i-a,l=(i+a)/2;return s?(e===i?o=(n-r)/s+(n<r)*6:n===i?o=(r-e)/s+2:o=(e-n)/s+4,s/=l<.5?i+a:2-i-a,o*=60):s=l>0&&l<1?0:o,new tl(o,s,l,t.opacity)}function zYe(t,e,n,r){return arguments.length===1?vJ(t):new tl(t,e,n,r??1)}function tl(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}HV(tl,zYe,pJ(Fb,{brighter(t){return t=t==null?_2:Math.pow(_2,t),new tl(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?N1:Math.pow(N1,t),new tl(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,a=2*n-r;return new Co(WM(t>=240?t-240:t+120,a,r),WM(t,a,r),WM(t<120?t+240:t-120,a,r),this.opacity)},clamp(){return new tl(H8(this.h),QS(this.s),QS(this.l),C2(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=C2(this.opacity);return`${t===1?"hsl(":"hsla("}${H8(this.h)}, ${QS(this.s)*100}%, ${QS(this.l)*100}%${t===1?")":`, ${t})`}`}}));function H8(t){return t=(t||0)%360,t<0?t+360:t}function QS(t){return Math.max(0,Math.min(1,t||0))}function WM(t,e,n){return(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)*255}const WV=t=>()=>t;function UYe(t,e){return function(n){return t+n*e}}function GYe(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}function HYe(t){return(t=+t)==1?gJ:function(e,n){return n-e?GYe(e,n,t):WV(isNaN(e)?n:e)}}function gJ(t,e){var n=e-t;return n?UYe(t,n):WV(isNaN(t)?e:t)}const W8=function t(e){var n=HYe(e);function r(a,i){var o=n((a=EL(a)).r,(i=EL(i)).r),s=n(a.g,i.g),l=n(a.b,i.b),u=gJ(a.opacity,i.opacity);return function(c){return a.r=o(c),a.g=s(c),a.b=l(c),a.opacity=u(c),a+""}}return r.gamma=t,r}(1);function WYe(t,e){e||(e=[]);var n=t?Math.min(e.length,t.length):0,r=e.slice(),a;return function(i){for(a=0;a<n;++a)r[a]=t[a]*(1-i)+e[a]*i;return r}}function jYe(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function KYe(t,e){var n=e?e.length:0,r=t?Math.min(n,t.length):0,a=new Array(r),i=new Array(n),o;for(o=0;o<r;++o)a[o]=jV(t[o],e[o]);for(;o<n;++o)i[o]=e[o];return function(s){for(o=0;o<r;++o)i[o]=a[o](s);return i}}function YYe(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}}function T2(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}function XYe(t,e){var n={},r={},a;(t===null||typeof t!="object")&&(t={}),(e===null||typeof e!="object")&&(e={});for(a in e)a in t?n[a]=jV(t[a],e[a]):r[a]=e[a];return function(i){for(a in n)r[a]=n[a](i);return r}}var ML=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,jM=new RegExp(ML.source,"g");function qYe(t){return function(){return t}}function ZYe(t){return function(e){return t(e)+""}}function QYe(t,e){var n=ML.lastIndex=jM.lastIndex=0,r,a,i,o=-1,s=[],l=[];for(t=t+"",e=e+"";(r=ML.exec(t))&&(a=jM.exec(e));)(i=a.index)>n&&(i=e.slice(n,i),s[o]?s[o]+=i:s[++o]=i),(r=r[0])===(a=a[0])?s[o]?s[o]+=a:s[++o]=a:(s[++o]=null,l.push({i:o,x:T2(r,a)})),n=jM.lastIndex;return n<e.length&&(i=e.slice(n),s[o]?s[o]+=i:s[++o]=i),s.length<2?l[0]?ZYe(l[0].x):qYe(e):(e=l.length,function(u){for(var c=0,f;c<e;++c)s[(f=l[c]).i]=f.x(u);return s.join("")})}function jV(t,e){var n=typeof e,r;return e==null||n==="boolean"?WV(e):(n==="number"?T2:n==="string"?(r=B1(e))?(e=r,W8):QYe:e instanceof B1?W8:e instanceof Date?YYe:jYe(e)?WYe:Array.isArray(e)?KYe:typeof e.valueOf!="function"&&typeof e.toString!="function"||isNaN(e)?XYe:T2)(t,e)}function JYe(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}function eXe(t){return function(){return t}}function tXe(t){return+t}var j8=[0,1];function Kv(t){return t}function DL(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:eXe(isNaN(e)?NaN:.5)}function nXe(t,e){var n;return t>e&&(n=t,t=e,e=n),function(r){return Math.max(t,Math.min(e,r))}}function rXe(t,e,n){var r=t[0],a=t[1],i=e[0],o=e[1];return a<r?(r=DL(a,r),i=n(o,i)):(r=DL(r,a),i=n(i,o)),function(s){return i(r(s))}}function aXe(t,e,n){var r=Math.min(t.length,e.length)-1,a=new Array(r),i=new Array(r),o=-1;for(t[r]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++o<r;)a[o]=DL(t[o],t[o+1]),i[o]=n(e[o],e[o+1]);return function(s){var l=_Ye(t,s,1,r)-1;return i[l](a[l](s))}}function iXe(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function oXe(){var t=j8,e=j8,n=jV,r,a,i,o=Kv,s,l,u;function c(){var d=Math.min(t.length,e.length);return o!==Kv&&(o=nXe(t[0],t[d-1])),s=d>2?aXe:rXe,l=u=null,f}function f(d){return d==null||isNaN(d=+d)?i:(l||(l=s(t.map(r),e,n)))(r(o(d)))}return f.invert=function(d){return o(a((u||(u=s(e,t.map(r),T2)))(d)))},f.domain=function(d){return arguments.length?(t=Array.from(d,tXe),c()):t.slice()},f.range=function(d){return arguments.length?(e=Array.from(d),c()):e.slice()},f.rangeRound=function(d){return e=Array.from(d),n=JYe,c()},f.clamp=function(d){return arguments.length?(o=d?!0:Kv,c()):o!==Kv},f.interpolate=function(d){return arguments.length?(n=d,c()):n},f.unknown=function(d){return arguments.length?(i=d,f):i},function(d,h){return r=d,a=h,c()}}function sXe(){return oXe()(Kv,Kv)}function lXe(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function E2(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,r=t.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+t.slice(n+1)]}function jg(t){return t=E2(Math.abs(t)),t?t[1]:NaN}function uXe(t,e){return function(n,r){for(var a=n.length,i=[],o=0,s=t[0],l=0;a>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),i.push(n.substring(a-=s,a+s)),!((l+=s+1)>r));)s=t[o=(o+1)%t.length];return i.reverse().join(e)}}function cXe(t){return function(e){return e.replace(/[0-9]/g,function(n){return t[+n]})}}var fXe=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function M2(t){if(!(e=fXe.exec(t)))throw new Error("invalid format: "+t);var e;return new KV({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}M2.prototype=KV.prototype;function KV(t){this.fill=t.fill===void 0?" ":t.fill+"",this.align=t.align===void 0?">":t.align+"",this.sign=t.sign===void 0?"-":t.sign+"",this.symbol=t.symbol===void 0?"":t.symbol+"",this.zero=!!t.zero,this.width=t.width===void 0?void 0:+t.width,this.comma=!!t.comma,this.precision=t.precision===void 0?void 0:+t.precision,this.trim=!!t.trim,this.type=t.type===void 0?"":t.type+""}KV.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function dXe(t){e:for(var e=t.length,n=1,r=-1,a;n<e;++n)switch(t[n]){case".":r=a=n;break;case"0":r===0&&(r=n),a=n;break;default:if(!+t[n])break e;r>0&&(r=0);break}return r>0?t.slice(0,r)+t.slice(a+1):t}var yJ;function hXe(t,e){var n=E2(t,e);if(!n)return t+"";var r=n[0],a=n[1],i=a-(yJ=Math.max(-8,Math.min(8,Math.floor(a/3)))*3)+1,o=r.length;return i===o?r:i>o?r+new Array(i-o+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+E2(t,Math.max(0,e+i-1))[0]}function K8(t,e){var n=E2(t,e);if(!n)return t+"";var r=n[0],a=n[1];return a<0?"0."+new Array(-a).join("0")+r:r.length>a+1?r.slice(0,a+1)+"."+r.slice(a+1):r+new Array(a-r.length+2).join("0")}const Y8={"%":(t,e)=>(t*100).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:lXe,e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>K8(t*100,e),r:K8,s:hXe,X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function X8(t){return t}var q8=Array.prototype.map,Z8=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function pXe(t){var e=t.grouping===void 0||t.thousands===void 0?X8:uXe(q8.call(t.grouping,Number),t.thousands+""),n=t.currency===void 0?"":t.currency[0]+"",r=t.currency===void 0?"":t.currency[1]+"",a=t.decimal===void 0?".":t.decimal+"",i=t.numerals===void 0?X8:cXe(q8.call(t.numerals,String)),o=t.percent===void 0?"%":t.percent+"",s=t.minus===void 0?"−":t.minus+"",l=t.nan===void 0?"NaN":t.nan+"";function u(f){f=M2(f);var d=f.fill,h=f.align,p=f.sign,v=f.symbol,g=f.zero,y=f.width,m=f.comma,S=f.precision,w=f.trim,C=f.type;C==="n"?(m=!0,C="g"):Y8[C]||(S===void 0&&(S=12),w=!0,C="g"),(g||d==="0"&&h==="=")&&(g=!0,d="0",h="=");var _=v==="$"?n:v==="#"&&/[boxX]/.test(C)?"0"+C.toLowerCase():"",x=v==="$"?r:/[%p]/.test(C)?o:"",T=Y8[C],M=/[defgprs%]/.test(C);S=S===void 0?6:/[gprs]/.test(C)?Math.max(1,Math.min(21,S)):Math.max(0,Math.min(20,S));function E(A){var k=_,L=x,I,P,F;if(C==="c")L=T(A)+L,A="";else{A=+A;var $=A<0||1/A<0;if(A=isNaN(A)?l:T(Math.abs(A),S),w&&(A=dXe(A)),$&&+A==0&&p!=="+"&&($=!1),k=($?p==="("?p:s:p==="-"||p==="("?"":p)+k,L=(C==="s"?Z8[8+yJ/3]:"")+L+($&&p==="("?")":""),M){for(I=-1,P=A.length;++I<P;)if(F=A.charCodeAt(I),48>F||F>57){L=(F===46?a+A.slice(I+1):A.slice(I))+L,A=A.slice(0,I);break}}}m&&!g&&(A=e(A,1/0));var W=k.length+A.length+L.length,V=W<y?new Array(y-W+1).join(d):"";switch(m&&g&&(A=e(V+A,V.length?y-L.length:1/0),V=""),h){case"<":A=k+A+L+V;break;case"=":A=k+V+A+L;break;case"^":A=V.slice(0,W=V.length>>1)+k+A+L+V.slice(W);break;default:A=V+k+A+L;break}return i(A)}return E.toString=function(){return f+""},E}function c(f,d){var h=u((f=M2(f),f.type="f",f)),p=Math.max(-8,Math.min(8,Math.floor(jg(d)/3)))*3,v=Math.pow(10,-p),g=Z8[8+p/3];return function(y){return h(v*y)+g}}return{format:u,formatPrefix:c}}var JS,mJ,bJ;BT({thousands:",",grouping:[3],currency:["$",""]});function BT(t){return JS=pXe(t),mJ=JS.format,bJ=JS.formatPrefix,JS}function vXe(t){return Math.max(0,-jg(Math.abs(t)))}function gXe(t,e){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(jg(e)/3)))*3-jg(Math.abs(t)))}function yXe(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,jg(e)-jg(t))+1}function mXe(t,e,n,r){var a=DYe(t,e,n),i;switch(r=M2(r??",f"),r.type){case"s":{var o=Math.max(Math.abs(t),Math.abs(e));return r.precision==null&&!isNaN(i=gXe(a,o))&&(r.precision=i),bJ(r,o)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(i=yXe(a,Math.max(Math.abs(t),Math.abs(e))))&&(r.precision=i-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(i=vXe(a))&&(r.precision=i-(r.type==="%")*2);break}}return mJ(r)}function bXe(t){var e=t.domain;return t.ticks=function(n){var r=e();return MYe(r[0],r[r.length-1],n??10)},t.tickFormat=function(n,r){var a=e();return mXe(a[0],a[a.length-1],n??10,r)},t.nice=function(n){n==null&&(n=10);var r=e(),a=0,i=r.length-1,o=r[a],s=r[i],l,u,c=10;for(s<o&&(u=o,o=s,s=u,u=a,a=i,i=u);c-- >0;){if(u=TL(o,s,n),u===l)return r[a]=o,r[i]=s,e(r);if(u>0)o=Math.floor(o/u)*u,s=Math.ceil(s/u)*u;else if(u<0)o=Math.ceil(o*u)/u,s=Math.floor(s*u)/u;else break;l=u}return t},t}function x0(){var t=sXe();return t.copy=function(){return iXe(t,x0())},AYe.apply(t,arguments),bXe(t)}var ar=1e-6,ii=typeof Float32Array<"u"?Float32Array:Array,SXe=Math.PI/180;function wXe(t){return t*SXe}Math.hypot||(Math.hypot=function(){for(var t=0,e=arguments.length;e--;)t+=arguments[e]*arguments[e];return Math.sqrt(t)});function SJ(){var t=new ii(9);return ii!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[5]=0,t[6]=0,t[7]=0),t[0]=1,t[4]=1,t[8]=1,t}function YV(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[4],t[4]=e[5],t[5]=e[6],t[6]=e[8],t[7]=e[9],t[8]=e[10],t}function xXe(t){var e=new ii(9);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}function _Xe(t,e){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}function CXe(t,e,n,r,a,i,o,s,l){var u=new ii(9);return u[0]=t,u[1]=e,u[2]=n,u[3]=r,u[4]=a,u[5]=i,u[6]=o,u[7]=s,u[8]=l,u}function TXe(t,e,n,r,a,i,o,s,l,u){return t[0]=e,t[1]=n,t[2]=r,t[3]=a,t[4]=i,t[5]=o,t[6]=s,t[7]=l,t[8]=u,t}function Vp(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t}function wJ(t,e){if(t===e){var n=e[1],r=e[2],a=e[5];t[1]=e[3],t[2]=e[6],t[3]=n,t[5]=e[7],t[6]=r,t[7]=a}else t[0]=e[0],t[1]=e[3],t[2]=e[6],t[3]=e[1],t[4]=e[4],t[5]=e[7],t[6]=e[2],t[7]=e[5],t[8]=e[8];return t}function XV(t,e){var n=e[0],r=e[1],a=e[2],i=e[3],o=e[4],s=e[5],l=e[6],u=e[7],c=e[8],f=c*o-s*u,d=-c*i+s*l,h=u*i-o*l,p=n*f+r*d+a*h;return p?(p=1/p,t[0]=f*p,t[1]=(-c*r+a*u)*p,t[2]=(s*r-a*o)*p,t[3]=d*p,t[4]=(c*n-a*l)*p,t[5]=(-s*n+a*i)*p,t[6]=h*p,t[7]=(-u*n+r*l)*p,t[8]=(o*n-r*i)*p,t):null}function EXe(t,e){var n=e[0],r=e[1],a=e[2],i=e[3],o=e[4],s=e[5],l=e[6],u=e[7],c=e[8];return t[0]=o*c-s*u,t[1]=a*u-r*c,t[2]=r*s-a*o,t[3]=s*l-i*c,t[4]=n*c-a*l,t[5]=a*i-n*s,t[6]=i*u-o*l,t[7]=r*l-n*u,t[8]=n*o-r*i,t}function MXe(t){var e=t[0],n=t[1],r=t[2],a=t[3],i=t[4],o=t[5],s=t[6],l=t[7],u=t[8];return e*(u*i-o*l)+n*(-u*a+o*s)+r*(l*a-i*s)}function xJ(t,e,n){var r=e[0],a=e[1],i=e[2],o=e[3],s=e[4],l=e[5],u=e[6],c=e[7],f=e[8],d=n[0],h=n[1],p=n[2],v=n[3],g=n[4],y=n[5],m=n[6],S=n[7],w=n[8];return t[0]=d*r+h*o+p*u,t[1]=d*a+h*s+p*c,t[2]=d*i+h*l+p*f,t[3]=v*r+g*o+y*u,t[4]=v*a+g*s+y*c,t[5]=v*i+g*l+y*f,t[6]=m*r+S*o+w*u,t[7]=m*a+S*s+w*c,t[8]=m*i+S*l+w*f,t}function DXe(t,e,n){var r=e[0],a=e[1],i=e[2],o=e[3],s=e[4],l=e[5],u=e[6],c=e[7],f=e[8],d=n[0],h=n[1];return t[0]=r,t[1]=a,t[2]=i,t[3]=o,t[4]=s,t[5]=l,t[6]=d*r+h*o+u,t[7]=d*a+h*s+c,t[8]=d*i+h*l+f,t}function AXe(t,e,n){var r=e[0],a=e[1],i=e[2],o=e[3],s=e[4],l=e[5],u=e[6],c=e[7],f=e[8],d=Math.sin(n),h=Math.cos(n);return t[0]=h*r+d*o,t[1]=h*a+d*s,t[2]=h*i+d*l,t[3]=h*o-d*r,t[4]=h*s-d*a,t[5]=h*l-d*i,t[6]=u,t[7]=c,t[8]=f,t}function kXe(t,e,n){var r=n[0],a=n[1];return t[0]=r*e[0],t[1]=r*e[1],t[2]=r*e[2],t[3]=a*e[3],t[4]=a*e[4],t[5]=a*e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t}function RXe(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=e[0],t[7]=e[1],t[8]=1,t}function LXe(t,e){var n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=n,t[2]=0,t[3]=-n,t[4]=r,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t}function OXe(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=e[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t}function VXe(t,e){return t[0]=e[0],t[1]=e[1],t[2]=0,t[3]=e[2],t[4]=e[3],t[5]=0,t[6]=e[4],t[7]=e[5],t[8]=1,t}function NXe(t,e){var n=e[0],r=e[1],a=e[2],i=e[3],o=n+n,s=r+r,l=a+a,u=n*o,c=r*o,f=r*s,d=a*o,h=a*s,p=a*l,v=i*o,g=i*s,y=i*l;return t[0]=1-f-p,t[3]=c-y,t[6]=d+g,t[1]=c+y,t[4]=1-u-p,t[7]=h-v,t[2]=d-g,t[5]=h+v,t[8]=1-u-f,t}function IXe(t,e){var n=e[0],r=e[1],a=e[2],i=e[3],o=e[4],s=e[5],l=e[6],u=e[7],c=e[8],f=e[9],d=e[10],h=e[11],p=e[12],v=e[13],g=e[14],y=e[15],m=n*s-r*o,S=n*l-a*o,w=n*u-i*o,C=r*l-a*s,_=r*u-i*s,x=a*u-i*l,T=c*v-f*p,M=c*g-d*p,E=c*y-h*p,A=f*g-d*v,k=f*y-h*v,L=d*y-h*g,I=m*L-S*k+w*A+C*E-_*M+x*T;return I?(I=1/I,t[0]=(s*L-l*k+u*A)*I,t[1]=(l*E-o*L-u*M)*I,t[2]=(o*k-s*E+u*T)*I,t[3]=(a*k-r*L-i*A)*I,t[4]=(n*L-a*E+i*M)*I,t[5]=(r*E-n*k-i*T)*I,t[6]=(v*x-g*_+y*C)*I,t[7]=(g*w-p*x-y*S)*I,t[8]=(p*_-v*w+y*m)*I,t):null}function BXe(t,e,n){return t[0]=2/e,t[1]=0,t[2]=0,t[3]=0,t[4]=-2/n,t[5]=0,t[6]=-1,t[7]=1,t[8]=1,t}function $Xe(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"}function PXe(t){return Math.hypot(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8])}function FXe(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t[8]=e[8]+n[8],t}function _J(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t[6]=e[6]-n[6],t[7]=e[7]-n[7],t[8]=e[8]-n[8],t}function zXe(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t[8]=e[8]*n,t}function UXe(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t[4]=e[4]+n[4]*r,t[5]=e[5]+n[5]*r,t[6]=e[6]+n[6]*r,t[7]=e[7]+n[7]*r,t[8]=e[8]+n[8]*r,t}function GXe(t,e){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]}function HXe(t,e){var n=t[0],r=t[1],a=t[2],i=t[3],o=t[4],s=t[5],l=t[6],u=t[7],c=t[8],f=e[0],d=e[1],h=e[2],p=e[3],v=e[4],g=e[5],y=e[6],m=e[7],S=e[8];return Math.abs(n-f)<=ar*Math.max(1,Math.abs(n),Math.abs(f))&&Math.abs(r-d)<=ar*Math.max(1,Math.abs(r),Math.abs(d))&&Math.abs(a-h)<=ar*Math.max(1,Math.abs(a),Math.abs(h))&&Math.abs(i-p)<=ar*Math.max(1,Math.abs(i),Math.abs(p))&&Math.abs(o-v)<=ar*Math.max(1,Math.abs(o),Math.abs(v))&&Math.abs(s-g)<=ar*Math.max(1,Math.abs(s),Math.abs(g))&&Math.abs(l-y)<=ar*Math.max(1,Math.abs(l),Math.abs(y))&&Math.abs(u-m)<=ar*Math.max(1,Math.abs(u),Math.abs(m))&&Math.abs(c-S)<=ar*Math.max(1,Math.abs(c),Math.abs(S))}var WXe=xJ,jXe=_J;const KXe=Object.freeze(Object.defineProperty({__proto__:null,add:FXe,adjoint:EXe,clone:xXe,copy:_Xe,create:SJ,determinant:MXe,equals:HXe,exactEquals:GXe,frob:PXe,fromMat2d:VXe,fromMat4:YV,fromQuat:NXe,fromRotation:LXe,fromScaling:OXe,fromTranslation:RXe,fromValues:CXe,identity:Vp,invert:XV,mul:WXe,multiply:xJ,multiplyScalar:zXe,multiplyScalarAndAdd:UXe,normalFromMat4:IXe,projection:BXe,rotate:AXe,scale:kXe,set:TXe,str:$Xe,sub:jXe,subtract:_J,translate:DXe,transpose:wJ},Symbol.toStringTag,{value:"Module"}));function qV(){var t=new ii(16);return ii!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0),t[0]=1,t[5]=1,t[10]=1,t[15]=1,t}function YXe(t){var e=new ii(16);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}function di(t,e){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}function XXe(t,e,n,r,a,i,o,s,l,u,c,f,d,h,p,v){var g=new ii(16);return g[0]=t,g[1]=e,g[2]=n,g[3]=r,g[4]=a,g[5]=i,g[6]=o,g[7]=s,g[8]=l,g[9]=u,g[10]=c,g[11]=f,g[12]=d,g[13]=h,g[14]=p,g[15]=v,g}function qXe(t,e,n,r,a,i,o,s,l,u,c,f,d,h,p,v,g){return t[0]=e,t[1]=n,t[2]=r,t[3]=a,t[4]=i,t[5]=o,t[6]=s,t[7]=l,t[8]=u,t[9]=c,t[10]=f,t[11]=d,t[12]=h,t[13]=p,t[14]=v,t[15]=g,t}function Yn(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function ea(t,e){if(t===e){var n=e[1],r=e[2],a=e[3],i=e[6],o=e[7],s=e[11];t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=n,t[6]=e[9],t[7]=e[13],t[8]=r,t[9]=i,t[11]=e[14],t[12]=a,t[13]=o,t[14]=s}else t[0]=e[0],t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=e[1],t[5]=e[5],t[6]=e[9],t[7]=e[13],t[8]=e[2],t[9]=e[6],t[10]=e[10],t[11]=e[14],t[12]=e[3],t[13]=e[7],t[14]=e[11],t[15]=e[15];return t}function eo(t,e){var n=e[0],r=e[1],a=e[2],i=e[3],o=e[4],s=e[5],l=e[6],u=e[7],c=e[8],f=e[9],d=e[10],h=e[11],p=e[12],v=e[13],g=e[14],y=e[15],m=n*s-r*o,S=n*l-a*o,w=n*u-i*o,C=r*l-a*s,_=r*u-i*s,x=a*u-i*l,T=c*v-f*p,M=c*g-d*p,E=c*y-h*p,A=f*g-d*v,k=f*y-h*v,L=d*y-h*g,I=m*L-S*k+w*A+C*E-_*M+x*T;return I?(I=1/I,t[0]=(s*L-l*k+u*A)*I,t[1]=(a*k-r*L-i*A)*I,t[2]=(v*x-g*_+y*C)*I,t[3]=(d*_-f*x-h*C)*I,t[4]=(l*E-o*L-u*M)*I,t[5]=(n*L-a*E+i*M)*I,t[6]=(g*w-p*x-y*S)*I,t[7]=(c*x-d*w+h*S)*I,t[8]=(o*k-s*E+u*T)*I,t[9]=(r*E-n*k-i*T)*I,t[10]=(p*_-v*w+y*m)*I,t[11]=(f*w-c*_-h*m)*I,t[12]=(s*M-o*A-l*T)*I,t[13]=(n*A-r*M+a*T)*I,t[14]=(v*S-p*C-g*m)*I,t[15]=(c*C-f*S+d*m)*I,t):null}function ZXe(t,e){var n=e[0],r=e[1],a=e[2],i=e[3],o=e[4],s=e[5],l=e[6],u=e[7],c=e[8],f=e[9],d=e[10],h=e[11],p=e[12],v=e[13],g=e[14],y=e[15];return t[0]=s*(d*y-h*g)-f*(l*y-u*g)+v*(l*h-u*d),t[1]=-(r*(d*y-h*g)-f*(a*y-i*g)+v*(a*h-i*d)),t[2]=r*(l*y-u*g)-s*(a*y-i*g)+v*(a*u-i*l),t[3]=-(r*(l*h-u*d)-s*(a*h-i*d)+f*(a*u-i*l)),t[4]=-(o*(d*y-h*g)-c*(l*y-u*g)+p*(l*h-u*d)),t[5]=n*(d*y-h*g)-c*(a*y-i*g)+p*(a*h-i*d),t[6]=-(n*(l*y-u*g)-o*(a*y-i*g)+p*(a*u-i*l)),t[7]=n*(l*h-u*d)-o*(a*h-i*d)+c*(a*u-i*l),t[8]=o*(f*y-h*v)-c*(s*y-u*v)+p*(s*h-u*f),t[9]=-(n*(f*y-h*v)-c*(r*y-i*v)+p*(r*h-i*f)),t[10]=n*(s*y-u*v)-o*(r*y-i*v)+p*(r*u-i*s),t[11]=-(n*(s*h-u*f)-o*(r*h-i*f)+c*(r*u-i*s)),t[12]=-(o*(f*g-d*v)-c*(s*g-l*v)+p*(s*d-l*f)),t[13]=n*(f*g-d*v)-c*(r*g-a*v)+p*(r*d-a*f),t[14]=-(n*(s*g-l*v)-o*(r*g-a*v)+p*(r*l-a*s)),t[15]=n*(s*d-l*f)-o*(r*d-a*f)+c*(r*l-a*s),t}function QXe(t){var e=t[0],n=t[1],r=t[2],a=t[3],i=t[4],o=t[5],s=t[6],l=t[7],u=t[8],c=t[9],f=t[10],d=t[11],h=t[12],p=t[13],v=t[14],g=t[15],y=e*o-n*i,m=e*s-r*i,S=e*l-a*i,w=n*s-r*o,C=n*l-a*o,_=r*l-a*s,x=u*p-c*h,T=u*v-f*h,M=u*g-d*h,E=c*v-f*p,A=c*g-d*p,k=f*g-d*v;return y*k-m*A+S*E+w*M-C*T+_*x}function ri(t,e,n){var r=e[0],a=e[1],i=e[2],o=e[3],s=e[4],l=e[5],u=e[6],c=e[7],f=e[8],d=e[9],h=e[10],p=e[11],v=e[12],g=e[13],y=e[14],m=e[15],S=n[0],w=n[1],C=n[2],_=n[3];return t[0]=S*r+w*s+C*f+_*v,t[1]=S*a+w*l+C*d+_*g,t[2]=S*i+w*u+C*h+_*y,t[3]=S*o+w*c+C*p+_*m,S=n[4],w=n[5],C=n[6],_=n[7],t[4]=S*r+w*s+C*f+_*v,t[5]=S*a+w*l+C*d+_*g,t[6]=S*i+w*u+C*h+_*y,t[7]=S*o+w*c+C*p+_*m,S=n[8],w=n[9],C=n[10],_=n[11],t[8]=S*r+w*s+C*f+_*v,t[9]=S*a+w*l+C*d+_*g,t[10]=S*i+w*u+C*h+_*y,t[11]=S*o+w*c+C*p+_*m,S=n[12],w=n[13],C=n[14],_=n[15],t[12]=S*r+w*s+C*f+_*v,t[13]=S*a+w*l+C*d+_*g,t[14]=S*i+w*u+C*h+_*y,t[15]=S*o+w*c+C*p+_*m,t}function xa(t,e,n){var r=n[0],a=n[1],i=n[2],o,s,l,u,c,f,d,h,p,v,g,y;return e===t?(t[12]=e[0]*r+e[4]*a+e[8]*i+e[12],t[13]=e[1]*r+e[5]*a+e[9]*i+e[13],t[14]=e[2]*r+e[6]*a+e[10]*i+e[14],t[15]=e[3]*r+e[7]*a+e[11]*i+e[15]):(o=e[0],s=e[1],l=e[2],u=e[3],c=e[4],f=e[5],d=e[6],h=e[7],p=e[8],v=e[9],g=e[10],y=e[11],t[0]=o,t[1]=s,t[2]=l,t[3]=u,t[4]=c,t[5]=f,t[6]=d,t[7]=h,t[8]=p,t[9]=v,t[10]=g,t[11]=y,t[12]=o*r+c*a+p*i+e[12],t[13]=s*r+f*a+v*i+e[13],t[14]=l*r+d*a+g*i+e[14],t[15]=u*r+h*a+y*i+e[15]),t}function gp(t,e,n){var r=n[0],a=n[1],i=n[2];return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t[4]=e[4]*a,t[5]=e[5]*a,t[6]=e[6]*a,t[7]=e[7]*a,t[8]=e[8]*i,t[9]=e[9]*i,t[10]=e[10]*i,t[11]=e[11]*i,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function Ws(t,e,n,r){var a=r[0],i=r[1],o=r[2],s=Math.hypot(a,i,o),l,u,c,f,d,h,p,v,g,y,m,S,w,C,_,x,T,M,E,A,k,L,I,P;return s<ar?null:(s=1/s,a*=s,i*=s,o*=s,l=Math.sin(n),u=Math.cos(n),c=1-u,f=e[0],d=e[1],h=e[2],p=e[3],v=e[4],g=e[5],y=e[6],m=e[7],S=e[8],w=e[9],C=e[10],_=e[11],x=a*a*c+u,T=i*a*c+o*l,M=o*a*c-i*l,E=a*i*c-o*l,A=i*i*c+u,k=o*i*c+a*l,L=a*o*c+i*l,I=i*o*c-a*l,P=o*o*c+u,t[0]=f*x+v*T+S*M,t[1]=d*x+g*T+w*M,t[2]=h*x+y*T+C*M,t[3]=p*x+m*T+_*M,t[4]=f*E+v*A+S*k,t[5]=d*E+g*A+w*k,t[6]=h*E+y*A+C*k,t[7]=p*E+m*A+_*k,t[8]=f*L+v*I+S*P,t[9]=d*L+g*I+w*P,t[10]=h*L+y*I+C*P,t[11]=p*L+m*I+_*P,e!==t&&(t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t)}function ZV(t,e,n){var r=Math.sin(n),a=Math.cos(n),i=e[4],o=e[5],s=e[6],l=e[7],u=e[8],c=e[9],f=e[10],d=e[11];return e!==t&&(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[4]=i*a+u*r,t[5]=o*a+c*r,t[6]=s*a+f*r,t[7]=l*a+d*r,t[8]=u*a-i*r,t[9]=c*a-o*r,t[10]=f*a-s*r,t[11]=d*a-l*r,t}function QV(t,e,n){var r=Math.sin(n),a=Math.cos(n),i=e[0],o=e[1],s=e[2],l=e[3],u=e[8],c=e[9],f=e[10],d=e[11];return e!==t&&(t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=i*a-u*r,t[1]=o*a-c*r,t[2]=s*a-f*r,t[3]=l*a-d*r,t[8]=i*r+u*a,t[9]=o*r+c*a,t[10]=s*r+f*a,t[11]=l*r+d*a,t}function JV(t,e,n){var r=Math.sin(n),a=Math.cos(n),i=e[0],o=e[1],s=e[2],l=e[3],u=e[4],c=e[5],f=e[6],d=e[7];return e!==t&&(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[0]=i*a+u*r,t[1]=o*a+c*r,t[2]=s*a+f*r,t[3]=l*a+d*r,t[4]=u*a-i*r,t[5]=c*a-o*r,t[6]=f*a-s*r,t[7]=d*a-l*r,t}function CJ(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=e[0],t[13]=e[1],t[14]=e[2],t[15]=1,t}function TJ(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=e[1],t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=e[2],t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function EJ(t,e,n){var r=n[0],a=n[1],i=n[2],o=Math.hypot(r,a,i),s,l,u;return o<ar?null:(o=1/o,r*=o,a*=o,i*=o,s=Math.sin(e),l=Math.cos(e),u=1-l,t[0]=r*r*u+l,t[1]=a*r*u+i*s,t[2]=i*r*u-a*s,t[3]=0,t[4]=r*a*u-i*s,t[5]=a*a*u+l,t[6]=i*a*u+r*s,t[7]=0,t[8]=r*i*u+a*s,t[9]=a*i*u-r*s,t[10]=i*i*u+l,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t)}function JXe(t,e){var n=Math.sin(e),r=Math.cos(e);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=r,t[6]=n,t[7]=0,t[8]=0,t[9]=-n,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function eqe(t,e){var n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=0,t[2]=-n,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=n,t[9]=0,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function tqe(t,e){var n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=n,t[2]=0,t[3]=0,t[4]=-n,t[5]=r,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function MJ(t,e,n){var r=e[0],a=e[1],i=e[2],o=e[3],s=r+r,l=a+a,u=i+i,c=r*s,f=r*l,d=r*u,h=a*l,p=a*u,v=i*u,g=o*s,y=o*l,m=o*u;return t[0]=1-(h+v),t[1]=f+m,t[2]=d-y,t[3]=0,t[4]=f-m,t[5]=1-(c+v),t[6]=p+g,t[7]=0,t[8]=d+y,t[9]=p-g,t[10]=1-(c+h),t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}function nqe(t,e){var n=new ii(3),r=-e[0],a=-e[1],i=-e[2],o=e[3],s=e[4],l=e[5],u=e[6],c=e[7],f=r*r+a*a+i*i+o*o;return f>0?(n[0]=(s*o+c*r+l*i-u*a)*2/f,n[1]=(l*o+c*a+u*r-s*i)*2/f,n[2]=(u*o+c*i+s*a-l*r)*2/f):(n[0]=(s*o+c*r+l*i-u*a)*2,n[1]=(l*o+c*a+u*r-s*i)*2,n[2]=(u*o+c*i+s*a-l*r)*2),MJ(t,e,n),t}function rqe(t,e){return t[0]=e[12],t[1]=e[13],t[2]=e[14],t}function DJ(t,e){var n=e[0],r=e[1],a=e[2],i=e[4],o=e[5],s=e[6],l=e[8],u=e[9],c=e[10];return t[0]=Math.hypot(n,r,a),t[1]=Math.hypot(i,o,s),t[2]=Math.hypot(l,u,c),t}function AJ(t,e){var n=new ii(3);DJ(n,e);var r=1/n[0],a=1/n[1],i=1/n[2],o=e[0]*r,s=e[1]*a,l=e[2]*i,u=e[4]*r,c=e[5]*a,f=e[6]*i,d=e[8]*r,h=e[9]*a,p=e[10]*i,v=o+c+p,g=0;return v>0?(g=Math.sqrt(v+1)*2,t[3]=.25*g,t[0]=(f-h)/g,t[1]=(d-l)/g,t[2]=(s-u)/g):o>c&&o>p?(g=Math.sqrt(1+o-c-p)*2,t[3]=(f-h)/g,t[0]=.25*g,t[1]=(s+u)/g,t[2]=(d+l)/g):c>p?(g=Math.sqrt(1+c-o-p)*2,t[3]=(d-l)/g,t[0]=(s+u)/g,t[1]=.25*g,t[2]=(f+h)/g):(g=Math.sqrt(1+p-o-c)*2,t[3]=(s-u)/g,t[0]=(d+l)/g,t[1]=(f+h)/g,t[2]=.25*g),t}function kJ(t,e,n,r){var a=e[0],i=e[1],o=e[2],s=e[3],l=a+a,u=i+i,c=o+o,f=a*l,d=a*u,h=a*c,p=i*u,v=i*c,g=o*c,y=s*l,m=s*u,S=s*c,w=r[0],C=r[1],_=r[2];return t[0]=(1-(p+g))*w,t[1]=(d+S)*w,t[2]=(h-m)*w,t[3]=0,t[4]=(d-S)*C,t[5]=(1-(f+g))*C,t[6]=(v+y)*C,t[7]=0,t[8]=(h+m)*_,t[9]=(v-y)*_,t[10]=(1-(f+p))*_,t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}function aqe(t,e,n,r,a){var i=e[0],o=e[1],s=e[2],l=e[3],u=i+i,c=o+o,f=s+s,d=i*u,h=i*c,p=i*f,v=o*c,g=o*f,y=s*f,m=l*u,S=l*c,w=l*f,C=r[0],_=r[1],x=r[2],T=a[0],M=a[1],E=a[2],A=(1-(v+y))*C,k=(h+w)*C,L=(p-S)*C,I=(h-w)*_,P=(1-(d+y))*_,F=(g+m)*_,$=(p+S)*x,W=(g-m)*x,V=(1-(d+v))*x;return t[0]=A,t[1]=k,t[2]=L,t[3]=0,t[4]=I,t[5]=P,t[6]=F,t[7]=0,t[8]=$,t[9]=W,t[10]=V,t[11]=0,t[12]=n[0]+T-(A*T+I*M+$*E),t[13]=n[1]+M-(k*T+P*M+W*E),t[14]=n[2]+E-(L*T+F*M+V*E),t[15]=1,t}function eN(t,e){var n=e[0],r=e[1],a=e[2],i=e[3],o=n+n,s=r+r,l=a+a,u=n*o,c=r*o,f=r*s,d=a*o,h=a*s,p=a*l,v=i*o,g=i*s,y=i*l;return t[0]=1-f-p,t[1]=c+y,t[2]=d-g,t[3]=0,t[4]=c-y,t[5]=1-u-p,t[6]=h+v,t[7]=0,t[8]=d+g,t[9]=h-v,t[10]=1-u-f,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function iqe(t,e,n,r,a,i,o){var s=1/(n-e),l=1/(a-r),u=1/(i-o);return t[0]=i*2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=i*2*l,t[6]=0,t[7]=0,t[8]=(n+e)*s,t[9]=(a+r)*l,t[10]=(o+i)*u,t[11]=-1,t[12]=0,t[13]=0,t[14]=o*i*2*u,t[15]=0,t}function RJ(t,e,n,r,a){var i=1/Math.tan(e/2),o;return t[0]=i/n,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=i,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,a!=null&&a!==1/0?(o=1/(r-a),t[10]=(a+r)*o,t[14]=2*a*r*o):(t[10]=-1,t[14]=-2*r),t}var oqe=RJ;function sqe(t,e,n,r,a){var i=1/Math.tan(e/2),o;return t[0]=i/n,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=i,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,a!=null&&a!==1/0?(o=1/(r-a),t[10]=a*o,t[14]=a*r*o):(t[10]=-1,t[14]=-r),t}function lqe(t,e,n,r){var a=Math.tan(e.upDegrees*Math.PI/180),i=Math.tan(e.downDegrees*Math.PI/180),o=Math.tan(e.leftDegrees*Math.PI/180),s=Math.tan(e.rightDegrees*Math.PI/180),l=2/(o+s),u=2/(a+i);return t[0]=l,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=u,t[6]=0,t[7]=0,t[8]=-((o-s)*l*.5),t[9]=(a-i)*u*.5,t[10]=r/(n-r),t[11]=-1,t[12]=0,t[13]=0,t[14]=r*n/(n-r),t[15]=0,t}function LJ(t,e,n,r,a,i,o){var s=1/(e-n),l=1/(r-a),u=1/(i-o);return t[0]=-2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*l,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*u,t[11]=0,t[12]=(e+n)*s,t[13]=(a+r)*l,t[14]=(o+i)*u,t[15]=1,t}var OJ=LJ;function uqe(t,e,n,r,a,i,o){var s=1/(e-n),l=1/(r-a),u=1/(i-o);return t[0]=-2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*l,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=u,t[11]=0,t[12]=(e+n)*s,t[13]=(a+r)*l,t[14]=i*u,t[15]=1,t}function VJ(t,e,n,r){var a,i,o,s,l,u,c,f,d,h,p=e[0],v=e[1],g=e[2],y=r[0],m=r[1],S=r[2],w=n[0],C=n[1],_=n[2];return Math.abs(p-w)<ar&&Math.abs(v-C)<ar&&Math.abs(g-_)<ar?Yn(t):(c=p-w,f=v-C,d=g-_,h=1/Math.hypot(c,f,d),c*=h,f*=h,d*=h,a=m*d-S*f,i=S*c-y*d,o=y*f-m*c,h=Math.hypot(a,i,o),h?(h=1/h,a*=h,i*=h,o*=h):(a=0,i=0,o=0),s=f*o-d*i,l=d*a-c*o,u=c*i-f*a,h=Math.hypot(s,l,u),h?(h=1/h,s*=h,l*=h,u*=h):(s=0,l=0,u=0),t[0]=a,t[1]=s,t[2]=c,t[3]=0,t[4]=i,t[5]=l,t[6]=f,t[7]=0,t[8]=o,t[9]=u,t[10]=d,t[11]=0,t[12]=-(a*p+i*v+o*g),t[13]=-(s*p+l*v+u*g),t[14]=-(c*p+f*v+d*g),t[15]=1,t)}function cqe(t,e,n,r){var a=e[0],i=e[1],o=e[2],s=r[0],l=r[1],u=r[2],c=a-n[0],f=i-n[1],d=o-n[2],h=c*c+f*f+d*d;h>0&&(h=1/Math.sqrt(h),c*=h,f*=h,d*=h);var p=l*d-u*f,v=u*c-s*d,g=s*f-l*c;return h=p*p+v*v+g*g,h>0&&(h=1/Math.sqrt(h),p*=h,v*=h,g*=h),t[0]=p,t[1]=v,t[2]=g,t[3]=0,t[4]=f*g-d*v,t[5]=d*p-c*g,t[6]=c*v-f*p,t[7]=0,t[8]=c,t[9]=f,t[10]=d,t[11]=0,t[12]=a,t[13]=i,t[14]=o,t[15]=1,t}function fqe(t){return"mat4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+", "+t[9]+", "+t[10]+", "+t[11]+", "+t[12]+", "+t[13]+", "+t[14]+", "+t[15]+")"}function dqe(t){return Math.hypot(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15])}function hqe(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t[8]=e[8]+n[8],t[9]=e[9]+n[9],t[10]=e[10]+n[10],t[11]=e[11]+n[11],t[12]=e[12]+n[12],t[13]=e[13]+n[13],t[14]=e[14]+n[14],t[15]=e[15]+n[15],t}function NJ(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t[6]=e[6]-n[6],t[7]=e[7]-n[7],t[8]=e[8]-n[8],t[9]=e[9]-n[9],t[10]=e[10]-n[10],t[11]=e[11]-n[11],t[12]=e[12]-n[12],t[13]=e[13]-n[13],t[14]=e[14]-n[14],t[15]=e[15]-n[15],t}function pqe(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t[8]=e[8]*n,t[9]=e[9]*n,t[10]=e[10]*n,t[11]=e[11]*n,t[12]=e[12]*n,t[13]=e[13]*n,t[14]=e[14]*n,t[15]=e[15]*n,t}function vqe(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t[4]=e[4]+n[4]*r,t[5]=e[5]+n[5]*r,t[6]=e[6]+n[6]*r,t[7]=e[7]+n[7]*r,t[8]=e[8]+n[8]*r,t[9]=e[9]+n[9]*r,t[10]=e[10]+n[10]*r,t[11]=e[11]+n[11]*r,t[12]=e[12]+n[12]*r,t[13]=e[13]+n[13]*r,t[14]=e[14]+n[14]*r,t[15]=e[15]+n[15]*r,t}function gqe(t,e){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]}function yqe(t,e){var n=t[0],r=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],p=t[12],v=t[13],g=t[14],y=t[15],m=e[0],S=e[1],w=e[2],C=e[3],_=e[4],x=e[5],T=e[6],M=e[7],E=e[8],A=e[9],k=e[10],L=e[11],I=e[12],P=e[13],F=e[14],$=e[15];return Math.abs(n-m)<=ar*Math.max(1,Math.abs(n),Math.abs(m))&&Math.abs(r-S)<=ar*Math.max(1,Math.abs(r),Math.abs(S))&&Math.abs(a-w)<=ar*Math.max(1,Math.abs(a),Math.abs(w))&&Math.abs(i-C)<=ar*Math.max(1,Math.abs(i),Math.abs(C))&&Math.abs(o-_)<=ar*Math.max(1,Math.abs(o),Math.abs(_))&&Math.abs(s-x)<=ar*Math.max(1,Math.abs(s),Math.abs(x))&&Math.abs(l-T)<=ar*Math.max(1,Math.abs(l),Math.abs(T))&&Math.abs(u-M)<=ar*Math.max(1,Math.abs(u),Math.abs(M))&&Math.abs(c-E)<=ar*Math.max(1,Math.abs(c),Math.abs(E))&&Math.abs(f-A)<=ar*Math.max(1,Math.abs(f),Math.abs(A))&&Math.abs(d-k)<=ar*Math.max(1,Math.abs(d),Math.abs(k))&&Math.abs(h-L)<=ar*Math.max(1,Math.abs(h),Math.abs(L))&&Math.abs(p-I)<=ar*Math.max(1,Math.abs(p),Math.abs(I))&&Math.abs(v-P)<=ar*Math.max(1,Math.abs(v),Math.abs(P))&&Math.abs(g-F)<=ar*Math.max(1,Math.abs(g),Math.abs(F))&&Math.abs(y-$)<=ar*Math.max(1,Math.abs(y),Math.abs($))}var AL=ri,mqe=NJ;const kL=Object.freeze(Object.defineProperty({__proto__:null,add:hqe,adjoint:ZXe,clone:YXe,copy:di,create:qV,determinant:QXe,equals:yqe,exactEquals:gqe,frob:dqe,fromQuat:eN,fromQuat2:nqe,fromRotation:EJ,fromRotationTranslation:MJ,fromRotationTranslationScale:kJ,fromRotationTranslationScaleOrigin:aqe,fromScaling:TJ,fromTranslation:CJ,fromValues:XXe,fromXRotation:JXe,fromYRotation:eqe,fromZRotation:tqe,frustum:iqe,getRotation:AJ,getScaling:DJ,getTranslation:rqe,identity:Yn,invert:eo,lookAt:VJ,mul:AL,multiply:ri,multiplyScalar:pqe,multiplyScalarAndAdd:vqe,ortho:OJ,orthoNO:LJ,orthoZO:uqe,perspective:oqe,perspectiveFromFieldOfView:lqe,perspectiveNO:RJ,perspectiveZO:sqe,rotate:Ws,rotateX:ZV,rotateY:QV,rotateZ:JV,scale:gp,set:qXe,str:fqe,sub:mqe,subtract:NJ,targetTo:cqe,translate:xa,transpose:ea},Symbol.toStringTag,{value:"Module"}));function IJ(){var t=new ii(3);return ii!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t}function RL(t){var e=t[0],n=t[1],r=t[2];return Math.hypot(e,n,r)}function Q8(t,e,n){var r=new ii(3);return r[0]=t,r[1]=e,r[2]=n,r}function Kl(t,e,n,r){return t[0]=e,t[1]=n,t[2]=r,t}function Xy(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t}function bf(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function tf(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t}function bqe(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}function Rf(t,e){var n=e[0],r=e[1],a=e[2],i=n*n+r*r+a*a;return i>0&&(i=1/Math.sqrt(i)),t[0]=e[0]*i,t[1]=e[1]*i,t[2]=e[2]*i,t}function tN(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function dg(t,e,n){var r=e[0],a=e[1],i=e[2],o=n[0],s=n[1],l=n[2];return t[0]=a*l-i*s,t[1]=i*o-r*l,t[2]=r*s-a*o,t}function _r(t,e,n){var r=e[0],a=e[1],i=e[2],o=n[3]*r+n[7]*a+n[11]*i+n[15];return o=o||1,t[0]=(n[0]*r+n[4]*a+n[8]*i+n[12])/o,t[1]=(n[1]*r+n[5]*a+n[9]*i+n[13])/o,t[2]=(n[2]*r+n[6]*a+n[10]*i+n[14])/o,t}function WFt(t,e,n){var r=e[0],a=e[1],i=e[2];return t[0]=r*n[0]+a*n[3]+i*n[6],t[1]=r*n[1]+a*n[4]+i*n[7],t[2]=r*n[2]+a*n[5]+i*n[8],t}function J8(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function e6(t,e){var n=t[0],r=t[1],a=t[2],i=e[0],o=e[1],s=e[2];return Math.abs(n-i)<=ar*Math.max(1,Math.abs(n),Math.abs(i))&&Math.abs(r-o)<=ar*Math.max(1,Math.abs(r),Math.abs(o))&&Math.abs(a-s)<=ar*Math.max(1,Math.abs(a),Math.abs(s))}var LL=bf,BJ=RL;(function(){var t=IJ();return function(e,n,r,a,i,o){var s,l;for(n||(n=3),r||(r=0),a?l=Math.min(a*n+r,e.length):l=e.length,s=r;s<l;s+=n)t[0]=e[s],t[1]=e[s+1],t[2]=e[s+2],i(t,t,o),e[s]=t[0],e[s+1]=t[1],e[s+2]=t[2];return e}})();function Sqe(){var t=new ii(4);return ii!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0,t[3]=0),t}function wqe(t,e,n,r){var a=new ii(4);return a[0]=t,a[1]=e,a[2]=n,a[3]=r,a}function xqe(t,e){var n=e[0],r=e[1],a=e[2],i=e[3],o=n*n+r*r+a*a+i*i;return o>0&&(o=1/Math.sqrt(o)),t[0]=n*o,t[1]=r*o,t[2]=a*o,t[3]=i*o,t}function ew(t,e,n){var r=e[0],a=e[1],i=e[2],o=e[3];return t[0]=n[0]*r+n[4]*a+n[8]*i+n[12]*o,t[1]=n[1]*r+n[5]*a+n[9]*i+n[13]*o,t[2]=n[2]*r+n[6]*a+n[10]*i+n[14]*o,t[3]=n[3]*r+n[7]*a+n[11]*i+n[15]*o,t}(function(){var t=Sqe();return function(e,n,r,a,i,o){var s,l;for(n||(n=4),r||(r=0),a?l=Math.min(a*n+r,e.length):l=e.length,s=r;s<l;s+=n)t[0]=e[s],t[1]=e[s+1],t[2]=e[s+2],t[3]=e[s+3],i(t,t,o),e[s]=t[0],e[s+1]=t[1],e[s+2]=t[2],e[s+3]=t[3];return e}})();function yp(){var t=new ii(4);return ii!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t[3]=1,t}function nN(t,e,n){n=n*.5;var r=Math.sin(n);return t[0]=r*e[0],t[1]=r*e[1],t[2]=r*e[2],t[3]=Math.cos(n),t}function _qe(t,e){var n=Math.acos(e[3])*2,r=Math.sin(n/2);return r>ar?(t[0]=e[0]/r,t[1]=e[1]/r,t[2]=e[2]/r):(t[0]=1,t[1]=0,t[2]=0),n}function t6(t,e,n){var r=e[0],a=e[1],i=e[2],o=e[3],s=n[0],l=n[1],u=n[2],c=n[3];return t[0]=r*c+o*s+a*u-i*l,t[1]=a*c+o*l+i*s-r*u,t[2]=i*c+o*u+r*l-a*s,t[3]=o*c-r*s-a*l-i*u,t}function g_(t,e,n,r){var a=e[0],i=e[1],o=e[2],s=e[3],l=n[0],u=n[1],c=n[2],f=n[3],d,h,p,v,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>ar?(d=Math.acos(h),p=Math.sin(d),v=Math.sin((1-r)*d)/p,g=Math.sin(r*d)/p):(v=1-r,g=r),t[0]=v*a+g*l,t[1]=v*i+g*u,t[2]=v*o+g*c,t[3]=v*s+g*f,t}function Cqe(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=e[3],t}function Tqe(t,e){var n=e[0]+e[4]+e[8],r;if(n>0)r=Math.sqrt(n+1),t[3]=.5*r,r=.5/r,t[0]=(e[5]-e[7])*r,t[1]=(e[6]-e[2])*r,t[2]=(e[1]-e[3])*r;else{var a=0;e[4]>e[0]&&(a=1),e[8]>e[a*3+a]&&(a=2);var i=(a+1)%3,o=(a+2)%3;r=Math.sqrt(e[a*3+a]-e[i*3+i]-e[o*3+o]+1),t[a]=.5*r,r=.5/r,t[3]=(e[i*3+o]-e[o*3+i])*r,t[i]=(e[i*3+a]+e[a*3+i])*r,t[o]=(e[o*3+a]+e[a*3+o])*r}return t}var n6=wqe,$J=xqe;(function(){var t=IJ(),e=Q8(1,0,0),n=Q8(0,1,0);return function(r,a,i){var o=tN(a,i);return o<-.999999?(dg(t,e,a),BJ(t)<1e-6&&dg(t,n,a),Rf(t,t),nN(r,t,Math.PI),r):o>.999999?(r[0]=0,r[1]=0,r[2]=0,r[3]=1,r):(dg(t,a,i),r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=1+o,$J(r,r))}})();(function(){var t=yp(),e=yp();return function(n,r,a,i,o,s){return g_(t,r,o,s),g_(e,a,i,s),g_(n,t,e,2*s*(1-s)),n}})();(function(){var t=SJ();return function(e,n,r,a){return t[0]=r[0],t[3]=r[1],t[6]=r[2],t[1]=a[0],t[4]=a[1],t[7]=a[2],t[2]=-n[0],t[5]=-n[1],t[8]=-n[2],$J(e,Tqe(e,t))}})();var Eqe=function t(e,n){if(e===n)return!0;if(e&&n&&typeof e=="object"&&typeof n=="object"){if(e.constructor!==n.constructor)return!1;var r,a,i;if(Array.isArray(e)){if(r=e.length,r!=n.length)return!1;for(a=r;a--!==0;)if(!t(e[a],n[a]))return!1;return!0}if(e.constructor===RegExp)return e.source===n.source&&e.flags===n.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===n.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===n.toString();if(i=Object.keys(e),r=i.length,r!==Object.keys(n).length)return!1;for(a=r;a--!==0;)if(!Object.prototype.hasOwnProperty.call(n,i[a]))return!1;for(a=r;a--!==0;){var o=i[a];if(!t(e[o],n[o]))return!1}return!0}return e!==e&&n!==n};const Mqe=xi(Eqe);var r6=Object.prototype.toString,PJ=function(e){var n=r6.call(e),r=n==="[object Arguments]";return r||(r=n!=="[object Array]"&&e!==null&&typeof e=="object"&&typeof e.length=="number"&&e.length>=0&&r6.call(e.callee)==="[object Function]"),r},KM,a6;function Dqe(){if(a6)return KM;a6=1;var t;if(!Object.keys){var e=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=PJ,a=Object.prototype.propertyIsEnumerable,i=!a.call({toString:null},"toString"),o=a.call(function(){},"prototype"),s=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],l=function(d){var h=d.constructor;return h&&h.prototype===d},u={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},c=function(){if(typeof window>"u")return!1;for(var d in window)try{if(!u["$"+d]&&e.call(window,d)&&window[d]!==null&&typeof window[d]=="object")try{l(window[d])}catch{return!0}}catch{return!0}return!1}(),f=function(d){if(typeof window>"u"||!c)return l(d);try{return l(d)}catch{return!1}};t=function(h){var p=h!==null&&typeof h=="object",v=n.call(h)==="[object Function]",g=r(h),y=p&&n.call(h)==="[object String]",m=[];if(!p&&!v&&!g)throw new TypeError("Object.keys called on a non-object");var S=o&&v;if(y&&h.length>0&&!e.call(h,0))for(var w=0;w<h.length;++w)m.push(String(w));if(g&&h.length>0)for(var C=0;C<h.length;++C)m.push(String(C));else for(var _ in h)!(S&&_==="prototype")&&e.call(h,_)&&m.push(String(_));if(i)for(var x=f(h),T=0;T<s.length;++T)!(x&&s[T]==="constructor")&&e.call(h,s[T])&&m.push(s[T]);return m}}return KM=t,KM}var Aqe=Array.prototype.slice,kqe=PJ,i6=Object.keys,y_=i6?function(e){return i6(e)}:Dqe(),o6=Object.keys;y_.shim=function(){if(Object.keys){var e=function(){var n=Object.keys(arguments);return n&&n.length===arguments.length}(1,2);e||(Object.keys=function(r){return kqe(r)?o6(Aqe.call(r)):o6(r)})}else Object.keys=y_;return Object.keys||y_};var Rqe=y_,Lqe=Error,Oqe=EvalError,Vqe=RangeError,Nqe=ReferenceError,FJ=SyntaxError,zJ=TypeError,Iqe=URIError,Bqe=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},n=Symbol("test"),r=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(r)!=="[object Symbol]")return!1;var a=42;e[n]=a;for(n in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var i=Object.getOwnPropertySymbols(e);if(i.length!==1||i[0]!==n||!Object.prototype.propertyIsEnumerable.call(e,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var o=Object.getOwnPropertyDescriptor(e,n);if(o.value!==a||o.enumerable!==!0)return!1}return!0},s6=typeof Symbol<"u"&&Symbol,$qe=Bqe,Pqe=function(){return typeof s6!="function"||typeof Symbol!="function"||typeof s6("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:$qe()},l6={foo:{}},Fqe=Object,zqe=function(){return{__proto__:l6}.foo===l6.foo&&!({__proto__:null}instanceof Fqe)},Uqe="Function.prototype.bind called on incompatible ",Gqe=Object.prototype.toString,Hqe=Math.max,Wqe="[object Function]",u6=function(e,n){for(var r=[],a=0;a<e.length;a+=1)r[a]=e[a];for(var i=0;i<n.length;i+=1)r[i+e.length]=n[i];return r},jqe=function(e,n){for(var r=[],a=n||0,i=0;a<e.length;a+=1,i+=1)r[i]=e[a];return r},Kqe=function(t,e){for(var n="",r=0;r<t.length;r+=1)n+=t[r],r+1<t.length&&(n+=e);return n},Yqe=function(e){var n=this;if(typeof n!="function"||Gqe.apply(n)!==Wqe)throw new TypeError(Uqe+n);for(var r=jqe(arguments,1),a,i=function(){if(this instanceof a){var c=n.apply(this,u6(r,arguments));return Object(c)===c?c:this}return n.apply(e,u6(r,arguments))},o=Hqe(0,n.length-r.length),s=[],l=0;l<o;l++)s[l]="$"+l;if(a=Function("binder","return function ("+Kqe(s,",")+"){ return binder.apply(this,arguments); }")(i),n.prototype){var u=function(){};u.prototype=n.prototype,a.prototype=new u,u.prototype=null}return a},Xqe=Yqe,UJ=Function.prototype.bind||Xqe,qqe=Function.prototype.call,Zqe=Object.prototype.hasOwnProperty,Qqe=UJ,Jqe=Qqe.call(qqe,Zqe),er,eZe=Lqe,tZe=Oqe,nZe=Vqe,rZe=Nqe,Kg=FJ,hg=zJ,aZe=Iqe,GJ=Function,YM=function(t){try{return GJ('"use strict"; return ('+t+").constructor;")()}catch{}},Jh=Object.getOwnPropertyDescriptor;if(Jh)try{Jh({},"")}catch{Jh=null}var XM=function(){throw new hg},iZe=Jh?function(){try{return arguments.callee,XM}catch{try{return Jh(arguments,"callee").get}catch{return XM}}}():XM,tv=Pqe(),oZe=zqe(),Za=Object.getPrototypeOf||(oZe?function(t){return t.__proto__}:null),Vv={},sZe=typeof Uint8Array>"u"||!Za?er:Za(Uint8Array),ep={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?er:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?er:ArrayBuffer,"%ArrayIteratorPrototype%":tv&&Za?Za([][Symbol.iterator]()):er,"%AsyncFromSyncIteratorPrototype%":er,"%AsyncFunction%":Vv,"%AsyncGenerator%":Vv,"%AsyncGeneratorFunction%":Vv,"%AsyncIteratorPrototype%":Vv,"%Atomics%":typeof Atomics>"u"?er:Atomics,"%BigInt%":typeof BigInt>"u"?er:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?er:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?er:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?er:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":eZe,"%eval%":eval,"%EvalError%":tZe,"%Float32Array%":typeof Float32Array>"u"?er:Float32Array,"%Float64Array%":typeof Float64Array>"u"?er:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?er:FinalizationRegistry,"%Function%":GJ,"%GeneratorFunction%":Vv,"%Int8Array%":typeof Int8Array>"u"?er:Int8Array,"%Int16Array%":typeof Int16Array>"u"?er:Int16Array,"%Int32Array%":typeof Int32Array>"u"?er:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":tv&&Za?Za(Za([][Symbol.iterator]())):er,"%JSON%":typeof JSON=="object"?JSON:er,"%Map%":typeof Map>"u"?er:Map,"%MapIteratorPrototype%":typeof Map>"u"||!tv||!Za?er:Za(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?er:Promise,"%Proxy%":typeof Proxy>"u"?er:Proxy,"%RangeError%":nZe,"%ReferenceError%":rZe,"%Reflect%":typeof Reflect>"u"?er:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?er:Set,"%SetIteratorPrototype%":typeof Set>"u"||!tv||!Za?er:Za(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?er:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":tv&&Za?Za(""[Symbol.iterator]()):er,"%Symbol%":tv?Symbol:er,"%SyntaxError%":Kg,"%ThrowTypeError%":iZe,"%TypedArray%":sZe,"%TypeError%":hg,"%Uint8Array%":typeof Uint8Array>"u"?er:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?er:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?er:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?er:Uint32Array,"%URIError%":aZe,"%WeakMap%":typeof WeakMap>"u"?er:WeakMap,"%WeakRef%":typeof WeakRef>"u"?er:WeakRef,"%WeakSet%":typeof WeakSet>"u"?er:WeakSet};if(Za)try{null.error}catch(t){var lZe=Za(Za(t));ep["%Error.prototype%"]=lZe}var uZe=function t(e){var n;if(e==="%AsyncFunction%")n=YM("async function () {}");else if(e==="%GeneratorFunction%")n=YM("function* () {}");else if(e==="%AsyncGeneratorFunction%")n=YM("async function* () {}");else if(e==="%AsyncGenerator%"){var r=t("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if(e==="%AsyncIteratorPrototype%"){var a=t("%AsyncGenerator%");a&&Za&&(n=Za(a.prototype))}return ep[e]=n,n},c6={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},zb=UJ,D2=Jqe,cZe=zb.call(Function.call,Array.prototype.concat),fZe=zb.call(Function.apply,Array.prototype.splice),f6=zb.call(Function.call,String.prototype.replace),A2=zb.call(Function.call,String.prototype.slice),dZe=zb.call(Function.call,RegExp.prototype.exec),hZe=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,pZe=/\\(\\)?/g,vZe=function(e){var n=A2(e,0,1),r=A2(e,-1);if(n==="%"&&r!=="%")throw new Kg("invalid intrinsic syntax, expected closing `%`");if(r==="%"&&n!=="%")throw new Kg("invalid intrinsic syntax, expected opening `%`");var a=[];return f6(e,hZe,function(i,o,s,l){a[a.length]=s?f6(l,pZe,"$1"):o||i}),a},gZe=function(e,n){var r=e,a;if(D2(c6,r)&&(a=c6[r],r="%"+a[0]+"%"),D2(ep,r)){var i=ep[r];if(i===Vv&&(i=uZe(r)),typeof i>"u"&&!n)throw new hg("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:a,name:r,value:i}}throw new Kg("intrinsic "+e+" does not exist!")},HJ=function(e,n){if(typeof e!="string"||e.length===0)throw new hg("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof n!="boolean")throw new hg('"allowMissing" argument must be a boolean');if(dZe(/^%?[^%]*%?$/,e)===null)throw new Kg("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=vZe(e),a=r.length>0?r[0]:"",i=gZe("%"+a+"%",n),o=i.name,s=i.value,l=!1,u=i.alias;u&&(a=u[0],fZe(r,cZe([0,1],u)));for(var c=1,f=!0;c<r.length;c+=1){var d=r[c],h=A2(d,0,1),p=A2(d,-1);if((h==='"'||h==="'"||h==="`"||p==='"'||p==="'"||p==="`")&&h!==p)throw new Kg("property names with quotes must have matching quotes");if((d==="constructor"||!f)&&(l=!0),a+="."+d,o="%"+a+"%",D2(ep,o))s=ep[o];else if(s!=null){if(!(d in s)){if(!n)throw new hg("base intrinsic for "+e+" exists, but the property is not available.");return}if(Jh&&c+1>=r.length){var v=Jh(s,d);f=!!v,f&&"get"in v&&!("originalValue"in v.get)?s=v.get:s=s[d]}else f=D2(s,d),s=s[d];f&&!l&&(ep[o]=s)}}return s},yZe=HJ,m_=yZe("%Object.defineProperty%",!0)||!1;if(m_)try{m_({},"a",{value:1})}catch{m_=!1}var WJ=m_,mZe=HJ,b_=mZe("%Object.getOwnPropertyDescriptor%",!0);if(b_)try{b_([],"length")}catch{b_=null}var bZe=b_,d6=WJ,SZe=FJ,nv=zJ,h6=bZe,wZe=function(e,n,r){if(!e||typeof e!="object"&&typeof e!="function")throw new nv("`obj` must be an object or a function`");if(typeof n!="string"&&typeof n!="symbol")throw new nv("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new nv("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new nv("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new nv("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new nv("`loose`, if provided, must be a boolean");var a=arguments.length>3?arguments[3]:null,i=arguments.length>4?arguments[4]:null,o=arguments.length>5?arguments[5]:null,s=arguments.length>6?arguments[6]:!1,l=!!h6&&h6(e,n);if(d6)d6(e,n,{configurable:o===null&&l?l.configurable:!o,enumerable:a===null&&l?l.enumerable:!a,value:r,writable:i===null&&l?l.writable:!i});else if(s||!a&&!i&&!o)e[n]=r;else throw new SZe("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},OL=WJ,jJ=function(){return!!OL};jJ.hasArrayLengthDefineBug=function(){if(!OL)return null;try{return OL([],"length",{value:1}).length!==1}catch{return!0}};var xZe=jJ,_Ze=Rqe,CZe=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",TZe=Object.prototype.toString,EZe=Array.prototype.concat,p6=wZe,MZe=function(t){return typeof t=="function"&&TZe.call(t)==="[object Function]"},KJ=xZe(),DZe=function(t,e,n,r){if(e in t){if(r===!0){if(t[e]===n)return}else if(!MZe(r)||!r())return}KJ?p6(t,e,n,!0):p6(t,e,n)},YJ=function(t,e){var n=arguments.length>2?arguments[2]:{},r=_Ze(e);CZe&&(r=EZe.call(r,Object.getOwnPropertySymbols(e)));for(var a=0;a<r.length;a+=1)DZe(t,r[a],e[r[a]],n[r[a]])};YJ.supportsDescriptors=!!KJ;var XJ=YJ,S_={exports:{}};typeof self<"u"?S_.exports=self:typeof window<"u"?S_.exports=window:S_.exports=Function("return this")();var qJ=S_.exports,AZe=qJ,ZJ=function(){return typeof ya!="object"||!ya||ya.Math!==Math||ya.Array!==Array?AZe:ya},kZe=XJ,RZe=ZJ,LZe=function(){var e=RZe();if(kZe.supportsDescriptors){var n=Object.getOwnPropertyDescriptor(e,"globalThis");(!n||n.configurable&&(n.enumerable||!n.writable||globalThis!==e))&&Object.defineProperty(e,"globalThis",{configurable:!0,enumerable:!1,value:e,writable:!0})}else(typeof globalThis!="object"||globalThis!==e)&&(e.globalThis=e);return e},OZe=XJ,VZe=qJ,QJ=ZJ,NZe=LZe,IZe=QJ(),JJ=function(){return IZe};OZe(JJ,{getPolyfill:QJ,implementation:VZe,shim:NZe});var BZe=JJ;const $Ze=xi(BZe),Js=$Ze(),eee={vtkObject:()=>null};function sl(t){if(t==null||t.isA)return t;if(!t.vtkClass)return Js.console&&Js.console.error&&Js.console.error("Invalid VTK object"),null;const e=eee[t.vtkClass];if(!e)return Js.console&&Js.console.error&&Js.console.error(`No vtk class found for Object of type ${t.vtkClass}`),null;const n={...t};Object.keys(n).forEach(a=>{n[a]&&typeof n[a]=="object"&&n[a].vtkClass&&(n[a]=sl(n[a]))});const r=e(n);return r&&r.modified&&r.modified(),r}function PZe(t,e){eee[t]=e}sl.register=PZe;class qM extends Array{push(){for(let e=0;e<arguments.length;e++)this.includes(arguments[e])||super.push(arguments[e]);return this.length}}let VL=0;const tee=Symbol("void");function FZe(){return VL}const nee={};function wh(){}const zZe=["log","debug","info","warn","error","time","timeEnd","group","groupEnd"];zZe.forEach(t=>{nee[t]=wh});Js.console=console.hasOwnProperty("log")?console:nee;const Kf={debug:wh,error:Js.console.error||wh,info:Js.console.info||wh,log:Js.console.log||wh,warn:Js.console.warn||wh};function ree(t,e){Kf[t]&&(Kf[t]=e||wh)}function aee(){Kf.log(...arguments)}function iee(){Kf.info(...arguments)}function k2(){Kf.debug(...arguments)}function Xn(){Kf.error(...arguments)}function rN(){Kf.warn(...arguments)}const v6={};function oee(t){v6[t]||(Kf.error(t),v6[t]=!0)}const Ni=Object.create(null);Ni.Float32Array=Float32Array;Ni.Float64Array=Float64Array;Ni.Uint8Array=Uint8Array;Ni.Int8Array=Int8Array;Ni.Uint16Array=Uint16Array;Ni.Int16Array=Int16Array;Ni.Uint32Array=Uint32Array;Ni.Int32Array=Int32Array;Ni.Uint8ClampedArray=Uint8ClampedArray;try{Ni.BigInt64Array=BigInt64Array,Ni.BigUint64Array=BigUint64Array}catch{}function _0(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return new(Ni[t]||Float64Array)(...n)}function aN(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return(Ni[t]||Float64Array).from(...n)}function $T(t){return t.charAt(0).toUpperCase()+t.slice(1)}function ma(t){return $T(t[0]==="_"?t.slice(1):t)}function see(t){return t.charAt(0).toLowerCase()+t.slice(1)}function lee(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1e3;const r=["TB","GB","MB","KB"];let a=Number(t),i="B";for(;a>n;)a/=n,i=r.pop();return`${a.toFixed(e)} ${i}`}function uee(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:" ";const n=[];let r=t;for(;r>1e3;)n.push(`000${r%1e3}`.slice(-3)),r=Math.floor(r/1e3);return r>0&&n.push(r),n.reverse(),n.join(e)}function cee(t){Object.keys(t).forEach(e=>{Array.isArray(t[e])&&(t[e]=[].concat(t[e]))})}function UZe(t){return Object.values(Ni).some(e=>t instanceof e)}function GZe(t,e){if(t===e)return!0;if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}return!1}function HZe(t,e){return Object.keys(t).find(n=>t[n]===e)}function fee(t){return t&&t.isA?t.getState():t}function iN(t){setTimeout(t,0)}function dee(t,e){const n=performance.now();t.finally(()=>{const r=performance.now()-n;e(r)})}function oi(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};cee(e);const n=[];if(Number.isInteger(e.mtime)||(e.mtime=++VL),!("classHierarchy"in e))e.classHierarchy=new qM("vtkObject");else if(!(e.classHierarchy instanceof qM)){const i=new qM;for(let o=0;o<e.classHierarchy.length;o++)i.push(e.classHierarchy[o]);e.classHierarchy=i}function r(i){n[i]=null}function a(i){function o(){r(i)}return Object.freeze({unsubscribe:o})}return t.isDeleted=()=>!!e.deleted,t.modified=i=>{if(e.deleted){Xn("instance deleted - cannot call any method");return}i&&i<t.getMTime()||(e.mtime=++VL,n.forEach(o=>o&&o(t)))},t.onModified=i=>{if(e.deleted)return Xn("instance deleted - cannot call any method"),null;const o=n.length;return n.push(i),a(o)},t.getMTime=()=>e.mtime,t.isA=i=>{let o=e.classHierarchy.length;for(;o--;)if(e.classHierarchy[o]===i)return!0;return!1},t.getClassName=function(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return e.classHierarchy[e.classHierarchy.length-1-i]},t.set=function(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,l=!1;return Object.keys(i).forEach(u=>{const c=s?null:t[`set${$T(u)}`];c&&Array.isArray(i[u])&&c.length>1?l=c(...i[u])||l:c?l=c(i[u])||l:(["mtime"].indexOf(u)===-1&&!o&&rN(`Warning: Set value to model directly ${u}, ${i[u]}`),l=e[u]!==i[u]||l,e[u]=i[u])}),l},t.get=function(){for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];if(!o.length)return e;const l={};return o.forEach(u=>{l[u]=e[u]}),l},t.getReferenceByName=i=>e[i],t.delete=()=>{Object.keys(e).forEach(i=>delete e[i]),n.forEach((i,o)=>r(o)),e.deleted=!0},t.getState=()=>{if(e.deleted)return null;const i={...e,vtkClass:t.getClassName()};Object.keys(i).forEach(s=>{i[s]===null||i[s]===void 0||s[0]==="_"?delete i[s]:i[s].isA?i[s]=i[s].getState():Array.isArray(i[s])?i[s]=i[s].map(fee):UZe(i[s])&&(i[s]=Array.from(i[s]))});const o={};return Object.keys(i).sort().forEach(s=>{o[s]=i[s]}),o.mtime&&delete o.mtime,o},t.shallowCopy=function(i){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(i.getClassName()!==t.getClassName())throw new Error(`Cannot ShallowCopy ${i.getClassName()} into ${t.getClassName()}`);const s=i.get(),l=Object.keys(e).sort();Object.keys(s).sort().forEach(c=>{const f=l.indexOf(c);f===-1?o&&k2(`add ${c} in shallowCopy`):l.splice(f,1),e[c]=s[c]}),l.length&&o&&k2(`Untouched keys: ${l.join(", ")}`),t.modified()},t.toJSON=function(){return t.getState()},t}const WZe={object(t,e,n){return function(){return{...e[n.name]}}}};function co(t,e,n){n.forEach(r=>{if(typeof r=="object"){const a=WZe[r.type];a?t[`get${ma(r.name)}`]=a(t,e,r):t[`get${ma(r.name)}`]=()=>e[r.name]}else t[`get${ma(r)}`]=()=>e[r]})}const jZe={enum(t,e,n){const r=`_on${ma(n.name)}Changed`;return a=>{var i;if(typeof a=="string"){if(n.enum[a]!==void 0)return e[n.name]!==n.enum[a]?(e[n.name]=n.enum[a],t.modified(),!0):!1;throw Xn(`Set Enum with invalid argument ${n}, ${a}`),new RangeError("Set Enum with invalid string argument")}if(typeof a=="number"){if(e[n.name]!==a){if(Object.keys(n.enum).map(o=>n.enum[o]).indexOf(a)!==-1){const o=e[n.name];return e[n.name]=a,(i=e[r])==null||i.call(e,t,e,a,o),t.modified(),!0}throw Xn(`Set Enum outside numeric range ${n}, ${a}`),new RangeError("Set Enum outside numeric range")}return!1}throw Xn(`Set Enum with invalid argument (String/Number) ${n}, ${a}`),new TypeError("Set Enum with invalid argument (String/Number)")}},object(t,e,n){const r=`_on${ma(n.name)}Changed`;return a=>{var i;if(!Mqe(e[n.name],a)){const o=e[n.name];return e[n.name]=a,(i=e[r])==null||i.call(e,t,e,a,o),t.modified(),!0}return!1}}};function g6(t){if(typeof t=="object"){const e=jZe[t.type];if(e)return(n,r)=>e(n,r,t);throw Xn(`No setter for field ${t}`),new TypeError("No setter for field")}return function(n,r){const a=`_on${ma(t)}Changed`;return function(o){var s;if(r.deleted)return Xn("instance deleted - cannot call any method"),!1;if(r[t]!==o){const l=r[t.name];return r[t]=o,(s=r[a])==null||s.call(r,n,r,o,l),n.modified(),!0}return!1}}}function Ub(t,e,n){n.forEach(r=>{typeof r=="object"?t[`set${ma(r.name)}`]=g6(r)(t,e):t[`set${ma(r)}`]=g6(r)(t,e)})}function Xa(t,e,n){co(t,e,n),Ub(t,e,n)}function C0(t,e,n){n.forEach(r=>{t[`get${ma(r)}`]=()=>e[r]?Array.from(e[r]):e[r],t[`get${ma(r)}ByReference`]=()=>e[r]})}function oN(t,e,n,r){let a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:void 0;n.forEach(i=>{if(e[i]&&r&&e[i].length!==r)throw new RangeError(`Invalid initial number of values for array (${i})`);const o=`_on${ma(i)}Changed`;t[`set${ma(i)}`]=function(){var h;if(e.deleted)return Xn("instance deleted - cannot call any method"),!1;for(var s=arguments.length,l=new Array(s),u=0;u<s;u++)l[u]=arguments[u];let c=l,f,d=!1;if(c.length===1&&(c[0]==null||c[0].length>=0)&&(c=c[0],d=!0),c==null)f=e[i]!==c;else{if(r&&c.length!==r)if(c.length<r&&a!==void 0)for(c=Array.from(c),d=!1;c.length<r;)c.push(a);else throw new RangeError(`Invalid number of values for array setter (${i})`);f=e[i]==null||e[i].length!==c.length;for(let p=0;!f&&p<c.length;++p)f=e[i][p]!==c[p];f&&d&&(c=Array.from(c))}if(f){const p=e[i.name];e[i]=c,(h=e[o])==null||h.call(e,t,e,c,p),t.modified()}return f},t[`set${ma(i)}From`]=s=>{const l=e[i];s.forEach((u,c)=>{l[c]=u})}})}function sN(t,e,n,r){let a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:void 0;C0(t,e,n),oN(t,e,n,r,a)}function Gb(t,e,n){for(let r=0;r<n.length;r++){const a=n[r];e[a]!==void 0&&(e[`_${a}`]=e[a],delete e[a])}}function hee(t,e,n,r){e.inputData?e.inputData=e.inputData.map(sl):e.inputData=[],e.inputConnection?e.inputConnection=e.inputConnection.map(sl):e.inputConnection=[],e.output?e.output=e.output.map(sl):e.output=[],e.inputArrayToProcess?e.inputArrayToProcess=e.inputArrayToProcess.map(sl):e.inputArrayToProcess=[],e.numberOfInputs=n;function a(h){let p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;if(e.deleted){Xn("instance deleted - cannot call any method");return}if(p>=e.numberOfInputs){Xn(`algorithm ${t.getClassName()} only has ${e.numberOfInputs} input ports. To add more input ports, use addInputData()`);return}(e.inputData[p]!==h||e.inputConnection[p])&&(e.inputData[p]=h,e.inputConnection[p]=null,t.modified&&t.modified())}function i(){let h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return e.inputConnection[h]&&(e.inputData[h]=e.inputConnection[h]()),e.inputData[h]}function o(h){let p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;if(e.deleted){Xn("instance deleted - cannot call any method");return}if(p>=e.numberOfInputs){let v=`algorithm ${t.getClassName()} only has `;v+=`${e.numberOfInputs}`,v+=" input ports. To add more input ports, use addInputConnection()",Xn(v);return}e.inputData[p]=null,e.inputConnection[p]=h}function s(){let h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return e.inputConnection[h]}function l(){let h=e.numberOfInputs;for(;h&&!e.inputData[h-1]&&!e.inputConnection[h-1];)h--;return h===e.numberOfInputs&&e.numberOfInputs++,h}function u(h){if(e.deleted){Xn("instance deleted - cannot call any method");return}o(h,l())}function c(h){if(e.deleted){Xn("instance deleted - cannot call any method");return}a(h,l())}function f(){let h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return e.deleted?(Xn("instance deleted - cannot call any method"),null):(t.shouldUpdate()&&t.update(),e.output[h])}t.shouldUpdate=()=>{var g,y;const h=t.getMTime();let p=1/0,v=r;for(;v--;){if(!e.output[v]||e.output[v].isDeleted())return!0;const m=e.output[v].getMTime();if(m<h)return!0;m<p&&(p=m)}for(v=e.numberOfInputs;v--;)if((g=e.inputConnection[v])!=null&&g.filter.shouldUpdate()||((y=t.getInputData(v))==null?void 0:y.getMTime())>p)return!0;return!1};function d(){let h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;const p=()=>f(h);return p.filter=t,p}if(e.numberOfInputs){let h=e.numberOfInputs;for(;h--;)e.inputData.push(null),e.inputConnection.push(null);t.setInputData=a,t.setInputConnection=o,t.addInputData=c,t.addInputConnection=u,t.getInputData=i,t.getInputConnection=s}r&&(t.getOutputData=f,t.getOutputPort=d),t.update=()=>{const h=[];if(e.numberOfInputs){let p=0;for(;p<e.numberOfInputs;)h[p]=t.getInputData(p),p++}t.shouldUpdate()&&t.requestData&&t.requestData(h,e.output)},t.getNumberOfInputPorts=()=>e.numberOfInputs,t.getNumberOfOutputPorts=()=>r||e.output.length,t.getInputArrayToProcess=h=>{const p=e.inputArrayToProcess[h],v=e.inputData[h];return p&&v?v[`get${p.fieldAssociation}`]().getArray(p.arrayName):null},t.setInputArrayToProcess=function(h,p,v){let g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"Scalars";for(;e.inputArrayToProcess.length<h;)e.inputArrayToProcess.push(null);e.inputArrayToProcess[h]={arrayName:p,fieldAssociation:v,attributeType:g}}}const lN=Symbol("Event abort");function pee(t,e,n){const r=[],a=t.delete;let i=1;function o(u){for(let c=0;c<r.length;++c){const[f]=r[c];if(f===u){r.splice(c,1);return}}}function s(u){function c(){o(u)}return Object.freeze({unsubscribe:c})}function l(){if(e.deleted){Xn("instance deleted - cannot call any method");return}const u=r.slice();for(let c=0;c<u.length;++c){const[,f,d]=u[c];if(f){if(d<0)setTimeout(()=>f.apply(t,arguments),1-d);else if(f.apply(t,arguments)===lN)break}}}t[`invoke${ma(n)}`]=l,t[`on${ma(n)}`]=function(u){let c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;if(!u.apply)return console.error(`Invalid callback for event ${n}`),null;if(e.deleted)return Xn("instance deleted - cannot call any method"),null;const f=i++;return r.push([f,u,c]),r.sort((d,h)=>h[2]-d[2]),s(f)},t.delete=()=>{a(),r.forEach(u=>{let[c]=u;return o(c)})}}function Kr(t,e){const n=function(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const a={},i={};return t(i,a,r),Object.freeze(i)};return e&&sl.register(e,n),n}function vee(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return function(){for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return e.filter(o=>!!o).map(o=>o(...a))}}function uN(t){return t&&t.isA&&t.isA("vtkObject")}function R2(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[];if(uN(t)){if(r.indexOf(t)>=0)return n;r.push(t);const a=e(t);a!==void 0&&n.push(a);const i=t.get();Object.keys(i).forEach(o=>{const s=i[o];Array.isArray(s)?s.forEach(l=>{R2(l,e,n,r)}):R2(s,e,n,r)})}return n}function gee(t,e,n){var r=this;let a;const i=function(){for(var o=arguments.length,s=new Array(o),l=0;l<o;l++)s[l]=arguments[l];const u=r,c=()=>{a=null,n||t.apply(u,s)},f=n&&!a;clearTimeout(a),a=setTimeout(c,e),f&&t.apply(u,s)};return i.cancel=()=>clearTimeout(a),i}function cN(t,e){let n=!1,r=null;function a(){n=!1,r!==null&&(i(...r),r=null)}function i(){for(var o=arguments.length,s=new Array(o),l=0;l<o;l++)s[l]=arguments[l];if(n){r=s;return}n=!0,t(...s),setTimeout(a,e)}return i}function fN(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};e.keystore=Object.assign(e.keystore||{},n),t.setKey=(r,a)=>{e.keystore[r]=a},t.getKey=r=>e.keystore[r],t.getAllKeys=()=>Object.keys(e.keystore),t.deleteKey=r=>delete e.keystore[r],t.clearKeystore=()=>t.getAllKeys().forEach(r=>delete e.keystore[r])}let KZe=1;const tw="__root__";function yee(t,e){fN(t,e);const n=t.delete;e.proxyId=`${KZe++}`,e.ui=JSON.parse(JSON.stringify(e.ui||[])),co(t,e,["proxyId","proxyGroup","proxyName"]),Xa(t,e,["proxyManager"]);const r={},a={};function i(u,c){a[c]||(a[c]=[]);const f=a[c];for(let d=0;d<u.length;d++)f.push(u[d].name),r[u[d].name]=u[d],u[d].children&&u[d].children.length&&i(u[d].children,u[d].name)}i(e.ui,tw),t.updateUI=u=>{e.ui=JSON.parse(JSON.stringify(u||[])),Object.keys(r).forEach(c=>delete r[c]),Object.keys(a).forEach(c=>delete a[c]),i(e.ui,tw),t.modified()};function o(){let u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:tw;return a[u]}t.updateProxyProperty=(u,c)=>{const f=r[u];f?Object.assign(f,c):r[u]={...c}},t.activate=()=>{if(e.proxyManager){const u=`setActive${ma(t.getProxyGroup().slice(0,-1))}`;e.proxyManager[u]&&e.proxyManager[u](t)}},e.propertyLinkSubscribers={},t.registerPropertyLinkForGC=(u,c)=>{c in e.propertyLinkSubscribers||(e.propertyLinkSubscribers[c]=[]),e.propertyLinkSubscribers[c].push(u)},t.gcPropertyLinks=u=>{const c=e.propertyLinkSubscribers[u]||[];for(;c.length;)c.pop().unbind(t)},e.propertyLinkMap={},t.getPropertyLink=function(u){let c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(e.propertyLinkMap[u])return e.propertyLinkMap[u];let f=null;const d=[];let h=0,p=!1;function v(w){let C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(p)return null;const _=[];let x=null;for(h=d.length;h--;){const M=d[h];M.instance===w?x=M:_.push(M)}if(!x)return null;const T=x.instance[`get${ma(x.propertyName)}`]();if(!GZe(T,f)||C){for(f=T,p=!0;_.length;){const M=_.pop();M.instance.set({[M.propertyName]:f})}p=!1}return e.propertyLinkMap[u].persistent&&(e.propertyLinkMap[u].value=T),T}function g(w,C){const _=[];for(h=d.length;h--;){const x=d[h];x.instance===w&&(x.propertyName===C||C===void 0)&&(x.subscription.unsubscribe(),_.push(h))}for(;_.length;)d.splice(_.pop(),1)}function y(w,C){let _=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const x=w.onModified(v),T=d[0];return d.push({instance:w,propertyName:C,subscription:x}),_&&(e.propertyLinkMap[u].persistent&&e.propertyLinkMap[u].value!==void 0?w.set({[C]:e.propertyLinkMap[u].value}):T&&v(T.instance,!0)),{unsubscribe:()=>g(w,C)}}function m(){for(;d.length;)d.pop().subscription.unsubscribe()}const S={bind:y,unbind:g,unsubscribe:m,persistent:c};return e.propertyLinkMap[u]=S,S};function s(){let u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:tw;const c=[],f=e.proxyId,d=o(u)||[];for(let h=0;h<d.length;h++){const p=d[h],v=t[`get${ma(p)}`],g=v?v():void 0,y={id:f,name:p,value:g},m=s(p);m.length&&(y.children=m),c.push(y)}return c}t.listPropertyNames=()=>s().map(u=>u.name),t.getPropertyByName=u=>s().find(c=>c.name===u),t.getPropertyDomainByName=u=>(r[u]||{}).domain,t.getProxySection=()=>({id:e.proxyId,name:e.proxyGroup,ui:e.ui,properties:s()}),t.delete=()=>{const u=Object.keys(e.propertyLinkMap);let c=u.length;for(;c--;)e.propertyLinkMap[u[c]].unsubscribe();Object.keys(e.propertyLinkSubscribers).forEach(t.gcPropertyLinks),n()},t.getState=()=>null;function l(){if(e.links)for(let u=0;u<e.links.length;u++){const{link:c,property:f,persistent:d,updateOnBind:h,type:p}=e.links[u];if(p==="application"){const v=e.proxyManager.getPropertyLink(c,d);t.registerPropertyLinkForGC(v,"application"),v.bind(t,f,h)}}}iN(l)}function mee(t,e,n){const r=t.delete,a=[],i=Object.keys(n);let o=i.length;for(;o--;){const s=i[o],{modelKey:l,property:u,modified:c=!0}=n[s],f=ma(u),d=ma(s);t[`get${d}`]=e[l][`get${f}`],t[`set${d}`]=e[l][`set${f}`],c&&a.push(e[l].onModified(t.modified))}t.delete=()=>{for(;a.length;)a.pop().unsubscribe();r()}}function bee(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};e.this=t;function a(s){const l=Object.keys(s);let u=l.length;for(;u--;){const c=l[u];e[c].set(s[c])}}const i=Object.keys(r);let o=i.length;for(;o--;){const s=i[o];e[s]=r[s];const l=n[s];t[`set${ma(s)}`]=u=>{if(u!==e[s]){e[s]=u;const c=l[u];a(c),t.modified()}}}i.length&&co(t,e,i)}const y6=10,m6=40,b6=800;function See(t){let e=0,n=0,r=0,a=0;return"detail"in t&&(n=t.detail),"wheelDelta"in t&&(n=-t.wheelDelta/120),"wheelDeltaY"in t&&(n=-t.wheelDeltaY/120),"wheelDeltaX"in t&&(e=-t.wheelDeltaX/120),"axis"in t&&t.axis===t.HORIZONTAL_AXIS&&(e=n,n=0),r=e*y6,a=n*y6,"deltaY"in t&&(a=t.deltaY),"deltaX"in t&&(r=t.deltaX),(r||a)&&t.deltaMode&&(t.deltaMode===1?(r*=m6,a*=m6):(r*=b6,a*=b6)),r&&!e&&(e=r<1?-1:1),a&&!n&&(n=a<1?-1:1),{spinX:e,spinY:n||e,pixelX:r,pixelY:a||r}}var J={algo:hee,capitalize:$T,chain:vee,debounce:gee,enumToString:HZe,event:pee,EVENT_ABORT:lN,formatBytesToProperUnit:lee,formatNumbersWithThousandSeparator:uee,get:co,getArray:C0,getCurrentGlobalMTime:FZe,getStateArrayMapFunc:fee,isVtkObject:uN,keystore:fN,measurePromiseExecution:dee,moveToProtected:Gb,newInstance:Kr,newTypedArray:_0,newTypedArrayFrom:aN,normalizeWheel:See,obj:oi,proxy:yee,proxyPropertyMapping:mee,proxyPropertyState:bee,safeArrays:cee,set:Ub,setArray:oN,setGet:Xa,setGetArray:sN,setImmediate:iN,setLoggerFunction:ree,throttle:cN,traverseInstanceTree:R2,TYPED_ARRAYS:Ni,uncapitalize:see,VOID:tee,vtkDebugMacro:k2,vtkErrorMacro:Xn,vtkInfoMacro:iee,vtkLogMacro:aee,vtkOnceErrorMacro:oee,vtkWarningMacro:rN},_u=Object.freeze({__proto__:null,VOID:tee,setLoggerFunction:ree,vtkLogMacro:aee,vtkInfoMacro:iee,vtkDebugMacro:k2,vtkErrorMacro:Xn,vtkWarningMacro:rN,vtkOnceErrorMacro:oee,TYPED_ARRAYS:Ni,newTypedArray:_0,newTypedArrayFrom:aN,capitalize:$T,_capitalize:ma,uncapitalize:see,formatBytesToProperUnit:lee,formatNumbersWithThousandSeparator:uee,setImmediateVTK:iN,measurePromiseExecution:dee,obj:oi,get:co,set:Ub,setGet:Xa,getArray:C0,setArray:oN,setGetArray:sN,moveToProtected:Gb,algo:hee,EVENT_ABORT:lN,event:pee,newInstance:Kr,chain:vee,isVtkObject:uN,traverseInstanceTree:R2,debounce:gee,throttle:cN,keystore:fN,proxy:yee,proxyPropertyMapping:mee,proxyPropertyState:bee,normalizeWheel:See,default:J});const{vtkErrorMacro:YZe}=J,XZe=["Build","Render"];function qZe(t,e){e.classHierarchy.push("vtkViewNode"),t.build=r=>{},t.render=r=>{},t.traverse=r=>{const a=r.getTraverseOperation(),i=t[a];if(i){i(r);return}t.apply(r,!0);for(let o=0;o<e.children.length;o++)e.children[o].traverse(r);t.apply(r,!1)},t.apply=(r,a)=>{const i=t[r.getOperation()];i&&i(a,r)},t.getViewNodeFor=r=>{if(e.renderable===r)return t;for(let a=0;a<e.children.length;++a){const o=e.children[a].getViewNodeFor(r);if(o)return o}},t.getFirstAncestorOfType=r=>e._parent?e._parent.isA(r)?e._parent:e._parent.getFirstAncestorOfType(r):null,t.addMissingNode=r=>{if(!r)return;const a=e._renderableChildMap.get(r);if(a!==void 0)a.setVisited(!0);else{const i=t.createViewNode(r);i&&(i.setParent(t),i.setVisited(!0),e._renderableChildMap.set(r,i),e.children.push(i))}},t.addMissingNodes=r=>{if(!(!r||!r.length))for(let a=0;a<r.length;++a){const i=r[a],o=e._renderableChildMap.get(i);if(o!==void 0)o.setVisited(!0);else{const s=t.createViewNode(i);s&&(s.setParent(t),s.setVisited(!0),e._renderableChildMap.set(i,s),e.children.push(s))}}},t.addMissingChildren=r=>{if(!(!r||!r.length))for(let a=0;a<r.length;++a){const i=r[a];e.children.indexOf(i)===-1&&(i.setParent(t),e.children.push(i)),i.setVisited(!0)}},t.prepareNodes=()=>{for(let r=0;r<e.children.length;++r)e.children[r].setVisited(!1)},t.setVisited=r=>{e.visited=r},t.removeUnusedNodes=()=>{let r=0;for(let a=0;a<e.children.length;++a){const i=e.children[a];if(i.getVisited())e.children[r++]=i,i.setVisited(!1);else{const s=i.getRenderable();s&&e._renderableChildMap.delete(s),i.delete()}}e.children.length=r},t.createViewNode=r=>{if(!e.myFactory)return YZe("Cannot create view nodes without my own factory"),null;const a=e.myFactory.createNode(r);return a&&a.setRenderable(r),a};const n=t.delete;t.delete=()=>{for(let r=0;r<e.children.length;r++)e.children[r].delete();n()}}const ZZe={renderable:null,myFactory:null,children:[],visited:!1};function wee(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,ZZe,n),J.obj(t,e),J.event(t,e,"event"),e._renderableChildMap=new Map,J.get(t,e,["visited"]),J.setGet(t,e,["_parent","renderable","myFactory"]),J.getArray(t,e,["children"]),J.moveToProtected(t,e,["parent"]),qZe(t,e)}const QZe=J.newInstance(wee,"vtkViewNode");var Sa={newInstance:QZe,extend:wee,PASS_TYPES:XZe};function JZe(t,e){e.overrides||(e.overrides={}),e.classHierarchy.push("vtkViewNodeFactory"),t.createNode=n=>{if(n.isDeleted())return null;let r=0,a=n.getClassName(r++),i=!1;const o=Object.keys(e.overrides);for(;a&&!i;)o.indexOf(a)!==-1?i=!0:a=n.getClassName(r++);if(!i)return null;const s=e.overrides[a]();return s.setMyFactory(t),s},t.registerOverride=(n,r)=>{e.overrides[n]=r}}const eQe={};function xee(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,eQe,n),J.obj(t,e),JZe(t,e)}const tQe=J.newInstance(xee,"vtkViewNodeFactory");var _ee={newInstance:tQe,extend:xee};const Cee=Object.create(null);function El(t,e){Cee[t]=e}function nQe(t,e){e.classHierarchy.push("vtkOpenGLViewNodeFactory")}const rQe={};function Tee(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,rQe,n),e.overrides=Cee,_ee.extend(t,e,n),nQe(t,e)}const aQe=J.newInstance(Tee,"vtkOpenGLViewNodeFactory");var iQe={newInstance:aQe,extend:Tee};function oQe(t,e){e.classHierarchy.push("vtkOpenGLCamera"),t.buildPass=n=>{n&&(e._openGLRenderer=t.getFirstAncestorOfType("vtkOpenGLRenderer"),e._openGLRenderWindow=e._openGLRenderer.getParent(),e.context=e._openGLRenderWindow.getContext())},t.opaquePass=n=>{if(n){const r=e._openGLRenderer.getTiledSizeAndOrigin();e.context.viewport(r.lowerLeftU,r.lowerLeftV,r.usize,r.vsize),e.context.scissor(r.lowerLeftU,r.lowerLeftV,r.usize,r.vsize)}},t.translucentPass=t.opaquePass,t.zBufferPass=t.opaquePass,t.opaqueZBufferPass=t.opaquePass,t.volumePass=t.opaquePass,t.getKeyMatrices=n=>{if(n!==e.lastRenderer||e._openGLRenderWindow.getMTime()>e.keyMatrixTime.getMTime()||t.getMTime()>e.keyMatrixTime.getMTime()||n.getMTime()>e.keyMatrixTime.getMTime()||e.renderable.getMTime()>e.keyMatrixTime.getMTime()){di(e.keyMatrices.wcvc,e.renderable.getViewMatrix()),YV(e.keyMatrices.normalMatrix,e.keyMatrices.wcvc),XV(e.keyMatrices.normalMatrix,e.keyMatrices.normalMatrix),ea(e.keyMatrices.wcvc,e.keyMatrices.wcvc);const r=e._openGLRenderer.getAspectRatio();di(e.keyMatrices.vcpc,e.renderable.getProjectionMatrix(r,-1,1)),ea(e.keyMatrices.vcpc,e.keyMatrices.vcpc),ri(e.keyMatrices.wcpc,e.keyMatrices.vcpc,e.keyMatrices.wcvc),e.keyMatrixTime.modified(),e.lastRenderer=n}return e.keyMatrices}}const sQe={context:null,lastRenderer:null,keyMatrixTime:null,keyMatrices:null};function lQe(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,sQe,n),Sa.extend(t,e,n),e.keyMatrixTime={},oi(e.keyMatrixTime),e.keyMatrices={normalMatrix:new Float64Array(9),vcpc:new Float64Array(16),wcvc:new Float64Array(16),wcpc:new Float64Array(16)},Xa(t,e,["context","keyMatrixTime"]),oQe(t,e)}const uQe=Kr(lQe);El("vtkCamera",uQe);const{vtkDebugMacro:cQe}=_u;function fQe(t,e){e.classHierarchy.push("vtkOpenGLRenderer"),t.buildPass=n=>{if(n){if(!e.renderable)return;t.updateLights(),t.prepareNodes(),t.addMissingNode(e.renderable.getActiveCamera()),t.addMissingNodes(e.renderable.getViewPropsWithNestedProps()),t.removeUnusedNodes()}},t.updateLights=()=>{let n=0;const r=e.renderable.getLightsByReference();for(let a=0;a<r.length;++a)r[a].getSwitch()>0&&n++;return n||(cQe("No lights are on, creating one."),e.renderable.createLight()),n},t.zBufferPass=n=>{if(n){let r=0;const a=e.context;e.renderable.getTransparent()||(e.context.clearColor(1,0,0,1),r|=a.COLOR_BUFFER_BIT),e.renderable.getPreserveDepthBuffer()||(a.clearDepth(1),r|=a.DEPTH_BUFFER_BIT,e.context.depthMask(!0));const i=t.getTiledSizeAndOrigin();a.enable(a.SCISSOR_TEST),a.scissor(i.lowerLeftU,i.lowerLeftV,i.usize,i.vsize),a.viewport(i.lowerLeftU,i.lowerLeftV,i.usize,i.vsize),a.colorMask(!0,!0,!0,!0),r&&a.clear(r),a.enable(a.DEPTH_TEST)}},t.opaqueZBufferPass=n=>t.zBufferPass(n),t.cameraPass=n=>{n&&t.clear()},t.getAspectRatio=()=>{const n=e._parent.getSizeByReference(),r=e.renderable.getViewportByReference();return n[0]*(r[2]-r[0])/((r[3]-r[1])*n[1])},t.getTiledSizeAndOrigin=()=>{const n=e.renderable.getViewportByReference(),r=[0,0,1,1],a=n[0]-r[0],i=n[1]-r[1],o=e._parent.normalizedDisplayToDisplay(a,i),s=Math.round(o[0]),l=Math.round(o[1]),u=n[2]-r[0],c=n[3]-r[1],f=e._parent.normalizedDisplayToDisplay(u,c);let d=Math.round(f[0])-s,h=Math.round(f[1])-l;return d<0&&(d=0),h<0&&(h=0),{usize:d,vsize:h,lowerLeftU:s,lowerLeftV:l}},t.clear=()=>{let n=0;const r=e.context;if(!e.renderable.getTransparent()){const i=e.renderable.getBackgroundByReference();e.context.clearColor(i[0],i[1],i[2],i[3]),n|=r.COLOR_BUFFER_BIT}e.renderable.getPreserveDepthBuffer()||(r.clearDepth(1),n|=r.DEPTH_BUFFER_BIT,e.context.depthMask(!0)),r.colorMask(!0,!0,!0,!0);const a=t.getTiledSizeAndOrigin();r.enable(r.SCISSOR_TEST),r.scissor(a.lowerLeftU,a.lowerLeftV,a.usize,a.vsize),r.viewport(a.lowerLeftU,a.lowerLeftV,a.usize,a.vsize),n&&r.clear(n),r.enable(r.DEPTH_TEST)},t.releaseGraphicsResources=()=>{e.selector!==null&&e.selector.releaseGraphicsResources(),e.renderable&&e.renderable.getViewProps().forEach(n=>{n.modified()})},t.setOpenGLRenderWindow=n=>{e._openGLRenderWindow!==n&&(t.releaseGraphicsResources(),e._openGLRenderWindow=n,e.context=null,n&&(e.context=e._openGLRenderWindow.getContext()))}}const dQe={context:null,_openGLRenderWindow:null,selector:null};function hQe(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,dQe,n),Sa.extend(t,e,n),co(t,e,["shaderCache"]),Xa(t,e,["selector"]),Gb(t,e,["openGLRenderWindow"]),fQe(t,e)}const pQe=Kr(hQe,"vtkOpenGLRenderer");El("vtkRenderer",pQe);function vQe(t,e){e.classHierarchy.push("vtkOpenGLActor"),t.buildPass=n=>{if(n){e._openGLRenderWindow=t.getFirstAncestorOfType("vtkOpenGLRenderWindow"),e._openGLRenderer=t.getFirstAncestorOfType("vtkOpenGLRenderer"),e.context=e._openGLRenderWindow.getContext(),t.prepareNodes(),t.addMissingNodes(e.renderable.getTextures()),t.addMissingNode(e.renderable.getMapper()),t.removeUnusedNodes(),e.ogltextures=null,e.activeTextures=null;for(let r=0;r<e.children.length;r++){const a=e.children[r];a.isA("vtkOpenGLTexture")?(e.ogltextures||(e.ogltextures=[]),e.ogltextures.push(a)):e.oglmapper=a}}},t.traverseZBufferPass=n=>{!e.renderable||!e.renderable.getNestedVisibility()||e._openGLRenderer.getSelector()&&!e.renderable.getNestedPickable()||(t.apply(n,!0),e.oglmapper.traverse(n),t.apply(n,!1))},t.traverseOpaqueZBufferPass=n=>t.traverseOpaquePass(n),t.traverseOpaquePass=n=>{!e.renderable||!e.renderable.getNestedVisibility()||!e.renderable.getIsOpaque()||e._openGLRenderer.getSelector()&&!e.renderable.getNestedPickable()||(t.apply(n,!0),e.oglmapper.traverse(n),t.apply(n,!1))},t.traverseTranslucentPass=n=>{!e.renderable||!e.renderable.getNestedVisibility()||e.renderable.getIsOpaque()||e._openGLRenderer.getSelector()&&!e.renderable.getNestedPickable()||(t.apply(n,!0),e.oglmapper.traverse(n),t.apply(n,!1))},t.activateTextures=()=>{if(e.ogltextures){e.activeTextures=[];for(let n=0;n<e.ogltextures.length;n++){const r=e.ogltextures[n];r.render(),r.getHandle()&&e.activeTextures.push(r)}}},t.queryPass=(n,r)=>{if(n){if(!e.renderable||!e.renderable.getVisibility())return;e.renderable.getIsOpaque()?r.incrementOpaqueActorCount():r.incrementTranslucentActorCount()}},t.zBufferPass=(n,r)=>t.opaquePass(n,r),t.opaqueZBufferPass=(n,r)=>t.opaquePass(n,r),t.opaquePass=(n,r)=>{if(n)e.context.depthMask(!0),t.activateTextures();else if(e.activeTextures)for(let a=0;a<e.activeTextures.length;a++)e.activeTextures[a].deactivate()},t.translucentPass=(n,r)=>{if(n)e.context.depthMask(!1),t.activateTextures();else if(e.activeTextures)for(let a=0;a<e.activeTextures.length;a++)e.activeTextures[a].deactivate()},t.getKeyMatrices=()=>(e.renderable.getMTime()>e.keyMatrixTime.getMTime()&&(e.renderable.computeMatrix(),di(e.keyMatrices.mcwc,e.renderable.getMatrix()),ea(e.keyMatrices.mcwc,e.keyMatrices.mcwc),e.renderable.getIsIdentity()?Vp(e.keyMatrices.normalMatrix):(YV(e.keyMatrices.normalMatrix,e.keyMatrices.mcwc),XV(e.keyMatrices.normalMatrix,e.keyMatrices.normalMatrix),wJ(e.keyMatrices.normalMatrix,e.keyMatrices.normalMatrix)),e.keyMatrixTime.modified()),e.keyMatrices)}const gQe={context:null,keyMatrixTime:null,keyMatrices:null,activeTextures:null};function yQe(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,gQe,n),Sa.extend(t,e,n),e.keyMatrixTime={},oi(e.keyMatrixTime,{mtime:0}),e.keyMatrices={normalMatrix:Vp(new Float64Array(9)),mcwc:Yn(new Float64Array(16))},Xa(t,e,["context"]),co(t,e,["activeTextures"]),vQe(t,e)}const mQe=Kr(yQe);El("vtkActor",mQe);function bQe(t,e){e.classHierarchy.push("vtkOpenGLActor2D"),t.buildPass=n=>{if(n){if(!e.renderable)return;e._openGLRenderWindow=t.getFirstAncestorOfType("vtkOpenGLRenderWindow"),e._openGLRenderer=t.getFirstAncestorOfType("vtkOpenGLRenderer"),e.context=e._openGLRenderWindow.getContext(),t.prepareNodes(),t.addMissingNodes(e.renderable.getTextures()),t.addMissingNode(e.renderable.getMapper()),t.removeUnusedNodes(),e.ogltextures=null,e.activeTextures=null;for(let r=0;r<e.children.length;r++){const a=e.children[r];a.isA("vtkOpenGLTexture")?(e.ogltextures||(e.ogltextures=[]),e.ogltextures.push(a)):e.oglmapper=a}}},t.queryPass=(n,r)=>{if(n){if(!e.renderable||!e.renderable.getVisibility())return;r.incrementOverlayActorCount()}},t.traverseOpaquePass=n=>{!e.oglmapper||!e.renderable||!e.renderable.getNestedVisibility()||!e.renderable.getIsOpaque()||e._openGLRenderer.getSelector()&&!e.renderable.getNestedPickable()||(t.apply(n,!0),e.oglmapper.traverse(n),t.apply(n,!1))},t.traverseTranslucentPass=n=>{!e.oglmapper||!e.renderable||!e.renderable.getNestedVisibility()||e.renderable.getIsOpaque()||e._openGLRenderer.getSelector()&&!e.renderable.getNestedPickable()||(t.apply(n,!0),e.oglmapper.traverse(n),t.apply(n,!1))},t.traverseOverlayPass=n=>{!e.oglmapper||!e.renderable||!e.renderable.getNestedVisibility()||e._openGLRenderer.getSelector()&&!e.renderable.getNestedPickable||(t.apply(n,!0),e.oglmapper.traverse(n),t.apply(n,!1))},t.activateTextures=()=>{if(e.ogltextures){e.activeTextures=[];for(let n=0;n<e.ogltextures.length;n++){const r=e.ogltextures[n];r.render(),r.getHandle()&&e.activeTextures.push(r)}}},t.opaquePass=(n,r)=>{if(n)e.context.depthMask(!0),t.activateTextures();else if(e.activeTextures)for(let a=0;a<e.activeTextures.length;a++)e.activeTextures[a].deactivate()},t.translucentPass=(n,r)=>{if(n)e.context.depthMask(!1),t.activateTextures();else if(e.activeTextures)for(let a=0;a<e.activeTextures.length;a++)e.activeTextures[a].deactivate()},t.overlayPass=(n,r)=>{if(n)e.context.depthMask(!0),t.activateTextures();else if(e.activeTextures)for(let a=0;a<e.activeTextures.length;a++)e.activeTextures[a].deactivate()}}const SQe={context:null,activeTextures:null};function wQe(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,SQe,n),Sa.extend(t,e,n),Xa(t,e,["context"]),co(t,e,["activeTextures"]),bQe(t,e)}const xQe=Kr(wQe);El("vtkActor2D",xQe);var dN={exports:{}};dN.exports;(function(t){(function(e,n,r){function a(l){var u=this,c=s();u.next=function(){var f=2091639*u.s0+u.c*23283064365386963e-26;return u.s0=u.s1,u.s1=u.s2,u.s2=f-(u.c=f|0)},u.c=1,u.s0=c(" "),u.s1=c(" "),u.s2=c(" "),u.s0-=c(l),u.s0<0&&(u.s0+=1),u.s1-=c(l),u.s1<0&&(u.s1+=1),u.s2-=c(l),u.s2<0&&(u.s2+=1),c=null}function i(l,u){return u.c=l.c,u.s0=l.s0,u.s1=l.s1,u.s2=l.s2,u}function o(l,u){var c=new a(l),f=u&&u.state,d=c.next;return d.int32=function(){return c.next()*4294967296|0},d.double=function(){return d()+(d()*2097152|0)*11102230246251565e-32},d.quick=d,f&&(typeof f=="object"&&i(f,c),d.state=function(){return i(c,{})}),d}function s(){var l=4022871197,u=function(c){c=String(c);for(var f=0;f<c.length;f++){l+=c.charCodeAt(f);var d=.02519603282416938*l;l=d>>>0,d-=l,d*=l,l=d>>>0,d-=l,l+=d*4294967296}return(l>>>0)*23283064365386963e-26};return u}n&&n.exports?n.exports=o:r&&r.amd?r(function(){return o}):this.alea=o})(ya,t,!1)})(dN);var _Qe=dN.exports,hN={exports:{}};hN.exports;(function(t){(function(e,n,r){function a(s){var l=this,u="";l.x=0,l.y=0,l.z=0,l.w=0,l.next=function(){var f=l.x^l.x<<11;return l.x=l.y,l.y=l.z,l.z=l.w,l.w^=l.w>>>19^f^f>>>8},s===(s|0)?l.x=s:u+=s;for(var c=0;c<u.length+64;c++)l.x^=u.charCodeAt(c)|0,l.next()}function i(s,l){return l.x=s.x,l.y=s.y,l.z=s.z,l.w=s.w,l}function o(s,l){var u=new a(s),c=l&&l.state,f=function(){return(u.next()>>>0)/4294967296};return f.double=function(){do var d=u.next()>>>11,h=(u.next()>>>0)/4294967296,p=(d+h)/(1<<21);while(p===0);return p},f.int32=u.next,f.quick=f,c&&(typeof c=="object"&&i(c,u),f.state=function(){return i(u,{})}),f}n&&n.exports?n.exports=o:r&&r.amd?r(function(){return o}):this.xor128=o})(ya,t,!1)})(hN);var CQe=hN.exports,pN={exports:{}};pN.exports;(function(t){(function(e,n,r){function a(s){var l=this,u="";l.next=function(){var f=l.x^l.x>>>2;return l.x=l.y,l.y=l.z,l.z=l.w,l.w=l.v,(l.d=l.d+362437|0)+(l.v=l.v^l.v<<4^(f^f<<1))|0},l.x=0,l.y=0,l.z=0,l.w=0,l.v=0,s===(s|0)?l.x=s:u+=s;for(var c=0;c<u.length+64;c++)l.x^=u.charCodeAt(c)|0,c==u.length&&(l.d=l.x<<10^l.x>>>4),l.next()}function i(s,l){return l.x=s.x,l.y=s.y,l.z=s.z,l.w=s.w,l.v=s.v,l.d=s.d,l}function o(s,l){var u=new a(s),c=l&&l.state,f=function(){return(u.next()>>>0)/4294967296};return f.double=function(){do var d=u.next()>>>11,h=(u.next()>>>0)/4294967296,p=(d+h)/(1<<21);while(p===0);return p},f.int32=u.next,f.quick=f,c&&(typeof c=="object"&&i(c,u),f.state=function(){return i(u,{})}),f}n&&n.exports?n.exports=o:r&&r.amd?r(function(){return o}):this.xorwow=o})(ya,t,!1)})(pN);var TQe=pN.exports,vN={exports:{}};vN.exports;(function(t){(function(e,n,r){function a(s){var l=this;l.next=function(){var c=l.x,f=l.i,d,h;return d=c[f],d^=d>>>7,h=d^d<<24,d=c[f+1&7],h^=d^d>>>10,d=c[f+3&7],h^=d^d>>>3,d=c[f+4&7],h^=d^d<<7,d=c[f+7&7],d=d^d<<13,h^=d^d<<9,c[f]=h,l.i=f+1&7,h};function u(c,f){var d,h=[];if(f===(f|0))h[0]=f;else for(f=""+f,d=0;d<f.length;++d)h[d&7]=h[d&7]<<15^f.charCodeAt(d)+h[d+1&7]<<13;for(;h.length<8;)h.push(0);for(d=0;d<8&&h[d]===0;++d);for(d==8?h[7]=-1:h[d],c.x=h,c.i=0,d=256;d>0;--d)c.next()}u(l,s)}function i(s,l){return l.x=s.x.slice(),l.i=s.i,l}function o(s,l){s==null&&(s=+new Date);var u=new a(s),c=l&&l.state,f=function(){return(u.next()>>>0)/4294967296};return f.double=function(){do var d=u.next()>>>11,h=(u.next()>>>0)/4294967296,p=(d+h)/(1<<21);while(p===0);return p},f.int32=u.next,f.quick=f,c&&(c.x&&i(c,u),f.state=function(){return i(u,{})}),f}n&&n.exports?n.exports=o:r&&r.amd?r(function(){return o}):this.xorshift7=o})(ya,t,!1)})(vN);var EQe=vN.exports,gN={exports:{}};gN.exports;(function(t){(function(e,n,r){function a(s){var l=this;l.next=function(){var c=l.w,f=l.X,d=l.i,h,p;return l.w=c=c+1640531527|0,p=f[d+34&127],h=f[d=d+1&127],p^=p<<13,h^=h<<17,p^=p>>>15,h^=h>>>12,p=f[d]=p^h,l.i=d,p+(c^c>>>16)|0};function u(c,f){var d,h,p,v,g,y=[],m=128;for(f===(f|0)?(h=f,f=null):(f=f+"\0",h=0,m=Math.max(m,f.length)),p=0,v=-32;v<m;++v)f&&(h^=f.charCodeAt((v+32)%f.length)),v===0&&(g=h),h^=h<<10,h^=h>>>15,h^=h<<4,h^=h>>>13,v>=0&&(g=g+1640531527|0,d=y[v&127]^=h+g,p=d==0?p+1:0);for(p>=128&&(y[(f&&f.length||0)&127]=-1),p=127,v=4*128;v>0;--v)h=y[p+34&127],d=y[p=p+1&127],h^=h<<13,d^=d<<17,h^=h>>>15,d^=d>>>12,y[p]=h^d;c.w=g,c.X=y,c.i=p}u(l,s)}function i(s,l){return l.i=s.i,l.w=s.w,l.X=s.X.slice(),l}function o(s,l){s==null&&(s=+new Date);var u=new a(s),c=l&&l.state,f=function(){return(u.next()>>>0)/4294967296};return f.double=function(){do var d=u.next()>>>11,h=(u.next()>>>0)/4294967296,p=(d+h)/(1<<21);while(p===0);return p},f.int32=u.next,f.quick=f,c&&(c.X&&i(c,u),f.state=function(){return i(u,{})}),f}n&&n.exports?n.exports=o:r&&r.amd?r(function(){return o}):this.xor4096=o})(ya,t,!1)})(gN);var MQe=gN.exports,yN={exports:{}};yN.exports;(function(t){(function(e,n,r){function a(s){var l=this,u="";l.next=function(){var f=l.b,d=l.c,h=l.d,p=l.a;return f=f<<25^f>>>7^d,d=d-h|0,h=h<<24^h>>>8^p,p=p-f|0,l.b=f=f<<20^f>>>12^d,l.c=d=d-h|0,l.d=h<<16^d>>>16^p,l.a=p-f|0},l.a=0,l.b=0,l.c=-1640531527,l.d=1367130551,s===Math.floor(s)?(l.a=s/4294967296|0,l.b=s|0):u+=s;for(var c=0;c<u.length+20;c++)l.b^=u.charCodeAt(c)|0,l.next()}function i(s,l){return l.a=s.a,l.b=s.b,l.c=s.c,l.d=s.d,l}function o(s,l){var u=new a(s),c=l&&l.state,f=function(){return(u.next()>>>0)/4294967296};return f.double=function(){do var d=u.next()>>>11,h=(u.next()>>>0)/4294967296,p=(d+h)/(1<<21);while(p===0);return p},f.int32=u.next,f.quick=f,c&&(typeof c=="object"&&i(c,u),f.state=function(){return i(u,{})}),f}n&&n.exports?n.exports=o:r&&r.amd?r(function(){return o}):this.tychei=o})(ya,t,!1)})(yN);var DQe=yN.exports,Eee={exports:{}};const AQe={},kQe=Object.freeze(Object.defineProperty({__proto__:null,default:AQe},Symbol.toStringTag,{value:"Module"})),RQe=m0e(kQe);(function(t){(function(e,n,r){var a=256,i=6,o=52,s="random",l=r.pow(a,i),u=r.pow(2,o),c=u*2,f=a-1,d;function h(w,C,_){var x=[];C=C==!0?{entropy:!0}:C||{};var T=y(g(C.entropy?[w,S(n)]:w??m(),3),x),M=new p(x),E=function(){for(var A=M.g(i),k=l,L=0;A<u;)A=(A+L)*a,k*=a,L=M.g(1);for(;A>=c;)A/=2,k/=2,L>>>=1;return(A+L)/k};return E.int32=function(){return M.g(4)|0},E.quick=function(){return M.g(4)/4294967296},E.double=E,y(S(M.S),n),(C.pass||_||function(A,k,L,I){return I&&(I.S&&v(I,M),A.state=function(){return v(M,{})}),L?(r[s]=A,k):A})(E,T,"global"in C?C.global:this==r,C.state)}function p(w){var C,_=w.length,x=this,T=0,M=x.i=x.j=0,E=x.S=[];for(_||(w=[_++]);T<a;)E[T]=T++;for(T=0;T<a;T++)E[T]=E[M=f&M+w[T%_]+(C=E[T])],E[M]=C;(x.g=function(A){for(var k,L=0,I=x.i,P=x.j,F=x.S;A--;)k=F[I=f&I+1],L=L*a+F[f&(F[I]=F[P=f&P+k])+(F[P]=k)];return x.i=I,x.j=P,L})(a)}function v(w,C){return C.i=w.i,C.j=w.j,C.S=w.S.slice(),C}function g(w,C){var _=[],x=typeof w,T;if(C&&x=="object")for(T in w)try{_.push(g(w[T],C-1))}catch{}return _.length?_:x=="string"?w:w+"\0"}function y(w,C){for(var _=w+"",x,T=0;T<_.length;)C[f&T]=f&(x^=C[f&T]*19)+_.charCodeAt(T++);return S(C)}function m(){try{var w;return d&&(w=d.randomBytes)?w=w(a):(w=new Uint8Array(a),(e.crypto||e.msCrypto).getRandomValues(w)),S(w)}catch{var C=e.navigator,_=C&&C.plugins;return[+new Date,e,_,e.screen,S(n)]}}function S(w){return String.fromCharCode.apply(0,w)}if(y(r.random(),n),t.exports){t.exports=h;try{d=RQe}catch{}}else r["seed"+s]=h})(typeof self<"u"?self:ya,[],Math)})(Eee);var LQe=Eee.exports,OQe=_Qe,VQe=CQe,NQe=TQe,IQe=EQe,BQe=MQe,$Qe=DQe,Np=LQe;Np.alea=OQe;Np.xor128=VQe;Np.xorwow=NQe;Np.xorshift7=IQe;Np.xor4096=BQe;Np.tychei=$Qe;var PQe=Np;const FQe=xi(PQe),Mee=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],zQe=[1,0,0,0,1,0,0,0,1],mN=1e-6,bN=1e-12,{vtkErrorMacro:Dee,vtkWarningMacro:mp}=J;let Aee=0;const S6=20;function Hb(t){return()=>Dee(`vtkMath::${t} - NOT IMPLEMENTED`)}function km(t,e,n,r){let a;for(let i=0;i<e;i++)a=t[n*e+i],t[n*e+i]=t[r*e+i],t[r*e+i]=a}function qy(t,e,n,r){let a;for(let i=0;i<e;i++)a=t[i*e+n],t[i*e+n]=t[i*e+r],t[i*e+r]=a}function Qr(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:3;const e=Array(t);for(let n=0;n<t;++n)e[n]=0;return e}const UQe=()=>Math.PI;function va(t){return t/180*Math.PI}function Yg(t){return t*180/Math.PI}const{round:Zy,floor:kee,ceil:GQe,min:HQe,max:WQe}=Math;function jQe(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,r=1/0;for(let a=e,i=t.length;a<i;a+=n)t[a]<r&&(r=t[a]);return r}function KQe(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,r=-1/0;for(let a=e,i=t.length;a<i;a+=n)r<t[a]&&(r=t[a]);return r}function YQe(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,r=1/0,a=-1/0;for(let i=e,o=t.length;i<o;i+=n)t[i]<r&&(r=t[i]),a<t[i]&&(a=t[i]);return[r,a]}const XQe=Hb("ceilLog2"),qQe=Hb("factorial");function us(t){let e=1;for(;e<t;)e*=2;return e}function Qy(t){return t===us(t)}function ZQe(t,e){let n=1;for(let r=1;r<=e;++r)n*=(t-r+1)/r;return Math.floor(n)}function QQe(t,e){if(t<e)return 0;const n=Qr(e);for(let r=0;r<e;++r)n[r]=r;return n}function JQe(t,e,n){let r=0;for(let a=e-1;a>=0;--a)if(n[a]<t-e+a){let i=n[a]+1;for(;a<e;)n[a++]=i++;r=1;break}return r}function eJe(t){FQe(`${t}`,{global:!0}),Aee=t}function tJe(){return Aee}function nJe(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;const n=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:1)-t;return t+n*Math.random()}const rJe=Hb("gaussian");function L2(t,e,n){return n[0]=t[0]+e[0],n[1]=t[1]+e[1],n[2]=t[2]+e[2],n}function iu(t,e,n){return n[0]=t[0]-e[0],n[1]=t[1]-e[1],n[2]=t[2]-e[2],n}function Ree(t,e){return t[0]*=e,t[1]*=e,t[2]*=e,t}function Lee(t,e){return t[0]*=e,t[1]*=e,t}function NL(t,e,n,r){return r[0]=t[0]+e[0]*n,r[1]=t[1]+e[1]*n,r[2]=t[2]+e[2]*n,r}function aJe(t,e,n,r){return r[0]=t[0]+e[0]*n,r[1]=t[1]+e[1]*n,r}function Ln(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function iJe(t,e,n){n[0]=t[0]*e[0],n[1]=t[0]*e[1],n[2]=t[0]*e[2],n[3]=t[1]*e[0],n[4]=t[1]*e[1],n[5]=t[1]*e[2],n[6]=t[2]*e[0],n[7]=t[2]*e[1],n[8]=t[2]*e[2]}function vu(t,e,n){const r=t[1]*e[2]-t[2]*e[1],a=t[2]*e[0]-t[0]*e[2],i=t[0]*e[1]-t[1]*e[0];return n[0]=r,n[1]=a,n[2]=i,n}function Ku(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:3;switch(e){case 1:return Math.abs(t);case 2:return Math.sqrt(t[0]*t[0]+t[1]*t[1]);case 3:return Math.sqrt(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);default:{let n=0;for(let r=0;r<e;r++)n+=t[r]*t[r];return Math.sqrt(n)}}}function bp(t){const e=Ku(t);return e!==0&&(t[0]/=e,t[1]/=e,t[2]/=e),e}function oJe(t,e,n,r){const a=t[0]*t[0],i=t[1]*t[1],o=t[2]*t[2],s=Math.sqrt(a+i+o);let l,u,c;a>i&&a>o?(l=0,u=1,c=2):i>o?(l=1,u=2,c=0):(l=2,u=0,c=1);const f=t[l]/s,d=t[u]/s,h=t[c]/s,p=Math.sqrt(f*f+h*h);if(r!==0){const v=Math.sin(r),g=Math.cos(r);e&&(e[l]=(h*g-f*d*v)/p,e[u]=v*p,e[c]=(-(f*g)-d*h*v)/p),n&&(n[l]=(-(h*v)-f*d*g)/p,n[u]=g*p,n[c]=(f*v-d*h*g)/p)}else e&&(e[l]=h/p,e[u]=0,e[c]=-f/p),n&&(n[l]=-f*d/p,n[u]=p,n[c]=-d*h/p)}function sJe(t,e,n){const r=Ln(e,e);if(r===0)return n[0]=0,n[1]=0,n[2]=0,!1;const a=Ln(t,e)/r;for(let i=0;i<3;i++)n[i]=e[i];return Ree(n,a),!0}function IL(t,e){return t[0]*e[0]+t[1]*e[1]}function lJe(t,e,n){const r=IL(e,e);if(r===0)return n[0]=0,n[1]=0,!1;const a=IL(t,e)/r;for(let i=0;i<2;i++)n[i]=e[i];return Lee(n,a),!0}function Zs(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])+(t[2]-e[2])*(t[2]-e[2])}function uJe(t,e){const n=[0,0,0];return vu(t,e,n),Math.atan2(Ku(n),Ln(t,e))}function cJe(t,e,n){const r=Math.abs(t-n);return 1/Math.sqrt(2*Math.PI*e)*Math.exp(-(r**2)/(2*e))}function fJe(t,e,n){const r=Math.abs(t-n);return Math.exp(-(r**2)/(2*e))}function dJe(t,e,n){n[0]=t[0]*e[0],n[1]=t[0]*e[1],n[2]=t[1]*e[0],n[3]=t[1]*e[1]}function Oee(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function Vee(t){const e=Oee(t);return e!==0&&(t[0]/=e,t[1]/=e),e}function ca(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.length===2?e[0][0]*e[1][1]-e[1][0]*e[0][1]:e.length===4?e[0]*e[3]-e[1]*e[2]:Number.NaN}function hJe(t,e){let n,r,a;const i=[0,0,0];for(let o=0;o<3;o++)a=Math.abs(t[o*3]),(r=Math.abs(t[o*3+1]))>a&&(a=r),(r=Math.abs(t[o*3+2]))>a&&(a=r),i[o]=1/a;a=i[0]*Math.abs(t[0]),n=0,(r=i[1]*Math.abs(t[3]))>=a&&(a=r,n=1),(r=i[2]*Math.abs(t[6]))>=a&&(n=2),n!==0&&(km(t,3,n,0),i[n]=i[0]),e[0]=n,t[3]/=t[0],t[6]/=t[0],t[4]-=t[3]*t[1],t[7]-=t[6]*t[1],a=i[1]*Math.abs(t[4]),n=1,(r=i[2]*Math.abs(t[7]))>=a&&(n=2,km(t,3,1,2),i[2]=i[1]),e[1]=n,t[7]/=t[4],t[5]-=t[3]*t[2],t[8]-=t[6]*t[2]+t[7]*t[5],e[2]=2}function pJe(t,e,n){let r=n[e[0]];n[e[0]]=n[0],n[0]=r,r=n[e[1]],n[e[1]]=n[1],n[1]=r-t[3]*n[0],r=n[e[2]],n[e[2]]=n[2],n[2]=r-t[6]*n[0]-t[7]*n[1],n[2]/=t[8],n[1]=(n[1]-t[5]*n[2])/t[4],n[0]=(n[0]-t[1]*n[1]-t[2]*n[2])/t[0]}function vJe(t,e,n){const r=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=+ca(s,c,l,f),h=-ca(o,u,l,f),p=+ca(o,u,s,c),v=-ca(a,c,i,f),g=+ca(r,u,i,f),y=-ca(r,u,a,c),m=+ca(a,s,i,l),S=-ca(r,o,i,l),w=+ca(r,o,a,s),C=r*d+a*h+i*p,_=d*e[0]+v*e[1]+m*e[2],x=h*e[0]+g*e[1]+S*e[2],T=p*e[0]+y*e[1]+w*e[2];n[0]=_/C,n[1]=x/C,n[2]=T/C}function gJe(t,e,n){const r=t[0]*e[0]+t[1]*e[1]+t[2]*e[2],a=t[3]*e[0]+t[4]*e[1]+t[5]*e[2],i=t[6]*e[0]+t[7]*e[1]+t[8]*e[2];n[0]=r,n[1]=a,n[2]=i}function BL(t,e,n){const r=[...t],a=[...e];for(let i=0;i<3;i++)n[i]=r[0]*a[i]+r[1]*a[i+3]+r[2]*a[i+6],n[i+3]=r[3]*a[i]+r[4]*a[i+3]+r[5]*a[i+6],n[i+6]=r[6]*a[i]+r[7]*a[i+3]+r[8]*a[i+6]}function yJe(t,e,n,r,a,i,o){r!==a&&Dee("Number of columns of A must match number of rows of B.");const s=[...t],l=[...e];for(let u=0;u<n;u++)for(let c=0;c<i;c++){o[u*i+c]=0;for(let f=0;f<r;f++)o[u*i+c]+=s[u*r+f]*l[c+i*f]}}function pg(t,e){let n;n=t[3],e[3]=t[1],e[1]=n,n=t[6],e[6]=t[2],e[2]=n,n=t[7],e[7]=t[5],e[5]=n,e[0]=t[0],e[4]=t[4],e[8]=t[8]}function mJe(t,e){const n=t[0],r=t[1],a=t[2],i=t[3],o=t[4],s=t[5],l=t[6],u=t[7],c=t[8],f=+ca(o,u,s,c),d=-ca(i,l,s,c),h=+ca(i,l,o,u),p=-ca(r,u,a,c),v=+ca(n,l,a,c),g=-ca(n,l,r,u),y=+ca(r,o,a,s),m=-ca(n,i,a,s),S=+ca(n,i,r,o),w=n*f+r*d+a*h;w===0&&mp("Matrix has 0 determinant"),e[0]=f/w,e[3]=d/w,e[6]=h/w,e[1]=p/w,e[4]=v/w,e[7]=g/w,e[2]=y/w,e[5]=m/w,e[8]=S/w}function PT(t){return t[0]*t[4]*t[8]+t[3]*t[7]*t[2]+t[6]*t[1]*t[5]-t[0]*t[7]*t[5]-t[3]*t[1]*t[8]-t[6]*t[4]*t[2]}function Nee(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:mN;if(t.length!==e.length)return!1;function r(a,i){return Math.abs(a-e[i])<=n}return t.every(r)}const Wb=Nee;function Iee(t){for(let e=0;e<3;e++)t[e*3]=t[e*3+1]=t[e*3+2]=0,t[e*3+e]=1}function Bee(t,e){for(let n=0;n<t;n++){for(let r=0;r<t;r++)e[n*t+r]=0;e[n*t+n]=1}return e}function bJe(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:mN;return Wb(t,Mee,e)}function SJe(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:mN;return Wb(t,zQe,e)}function $ee(t,e){const n=t[0]*t[0],r=t[0]*t[1],a=t[0]*t[2],i=t[0]*t[3],o=t[1]*t[1],s=t[2]*t[2],l=t[3]*t[3],u=t[1]*t[2],c=t[1]*t[3],f=t[2]*t[3],d=o+s+l;let h=1/(n+d);const p=(n-d)*h;h*=2,e[0]=o*h+p,e[3]=(u+i)*h,e[6]=(c-a)*h,e[1]=(u-i)*h,e[4]=s*h+p,e[7]=(f+r)*h,e[2]=(c+a)*h,e[5]=(f-r)*h,e[8]=l*h+p}function w_(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;if(!`${t}`.includes("e"))return+`${Math.round(`${t}e+${e}`)}e-${e}`;const n=`${t}`.split("e");let r="";return+n[1]+e>0&&(r="+"),+`${Math.round(`${+n[0]}e${r}${+n[1]+e}`)}e-${e}`}function $L(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[0,0,0],n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;return e[0]=w_(t[0],n),e[1]=w_(t[1],n),e[2]=w_(t[2],n),e}function jb(t,e,n,r){let a,i,o,s,l,u,c,f,d,h,p,v,g,y,m,S;const w=Qr(e),C=Qr(e),_=(T,M,E)=>{y=T[M],g=T[E],T[M]=y-v*(g+y*h),T[E]=g+v*(y-g*h)};for(Bee(e,r),l=0;l<e;l++)w[l]=n[l]=t[l+l*e],C[l]=0;for(a=0;a<S6;a++){for(p=0,l=0;l<e-1;l++)for(s=l+1;s<e;s++)p+=Math.abs(t[l*e+s]);if(p===0)break;for(a<3?c=.2*p/(e*e):c=0,l=0;l<e-1;l++)for(s=l+1;s<e;s++)if(y=100*Math.abs(t[l*e+s]),a>3&&Math.abs(n[l])+y===Math.abs(n[l])&&Math.abs(n[s])+y===Math.abs(n[s]))t[l*e+s]=0;else if(Math.abs(t[l*e+s])>c){for(g=n[s]-n[l],Math.abs(g)+y===Math.abs(g)?d=t[l*e+s]/g:(f=.5*g/t[l*e+s],d=1/(Math.abs(f)+Math.sqrt(1+f*f)),f<0&&(d=-d)),m=1/Math.sqrt(1+d*d),v=d*m,h=v/(1+m),g=d*t[l*e+s],C[l]-=g,C[s]+=g,n[l]-=g,n[s]+=g,t[l*e+s]=0,i=0;i<=l-1;i++)_(t,i*e+l,i*e+s);for(i=l+1;i<=s-1;i++)_(t,l*e+i,i*e+s);for(i=s+1;i<e;i++)_(t,l*e+i,s*e+i);for(i=0;i<e;i++)_(r,i*e+l,i*e+s)}for(l=0;l<e;l++)w[l]+=C[l],n[l]=w[l],C[l]=0}if(a>=S6)return mp("vtkMath::Jacobi: Error extracting eigenfunctions"),0;for(i=0;i<e-1;i++){for(o=i,S=n[o],a=i+1;a<e;a++)(n[a]>=S||Math.abs(n[a]-S)<bN)&&(o=a,S=n[o]);o!==i&&(n[o]=n[i],n[i]=S,qy(r,e,i,o))}const x=(e>>1)+(e&1);for(u=0,a=0;a<e*e;a++)r[a]>=0&&u++;if(u<x)for(a=0;a<e;a++)r[a*e+i]*=-1;return 1}function Pee(t,e){const n=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];n[0]=t[0]+t[4]+t[8],n[5]=t[0]-t[4]-t[8],n[10]=-t[0]+t[4]-t[8],n[15]=-t[0]-t[4]+t[8],n[1]=n[4]=t[7]-t[5],n[2]=n[8]=t[2]-t[6],n[3]=n[12]=t[3]-t[1],n[6]=n[9]=t[3]+t[1],n[7]=n[13]=t[2]+t[6],n[11]=n[14]=t[7]+t[5];const r=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],a=[0,0,0,0],i=[...n];jb(i,4,a,r),e[0]=r[0],e[1]=r[4],e[2]=r[8],e[3]=r[12]}function wJe(t,e,n){const r=t[0]*e[0],a=t[0]*e[1],i=t[0]*e[2],o=t[0]*e[3],s=t[1]*e[0],l=t[1]*e[1],u=t[1]*e[2],c=t[1]*e[3],f=t[2]*e[0],d=t[2]*e[1],h=t[2]*e[2],p=t[2]*e[3],v=t[3]*e[0],g=t[3]*e[1],y=t[3]*e[2],m=t[3]*e[3];n[0]=r-l-h-m,n[1]=a+s+p-y,n[2]=i-c+f+g,n[3]=o+u-d+v}function Fee(t,e){for(let d=0;d<9;d++)e[d]=t[d];const n=Qr(3),r=Qr(3);let a;for(let d=0;d<3;d++){const h=Math.abs(e[d*3]),p=Math.abs(e[d*3+1]),v=Math.abs(e[d*3+2]);a=p>h?p:h,a=v>a?v:a,n[d]=1,a!==0&&(n[d]/=a)}const i=Math.abs(e[0])*n[0],o=Math.abs(e[3])*n[1],s=Math.abs(e[6])*n[2];r[0]=0,a=i,o>=a&&(a=o,r[0]=1),s>=a&&(r[0]=2),r[0]!==0&&(qy(e,3,r[0],0),n[r[0]]=n[0]);const l=Math.abs(e[4])*n[1],u=Math.abs(e[7])*n[2];r[1]=1,a=l,u>=a&&(r[1]=2,qy(e,3,1,2)),r[2]=2;let c=0;if(PT(e)<0){c=1;for(let d=0;d<9;d++)e[d]=-e[d]}const f=Qr(4);if(Pee(e,f),$ee(f,e),c)for(let d=0;d<9;d++)e[d]=-e[d];r[1]!==1&&qy(e,3,r[1],1),r[0]!==0&&qy(e,3,r[0],0)}function zee(t,e,n){let r,a,i,o,s,l;const u=[...t];if(jb(u,3,e,n),e[0]===e[1]&&e[0]===e[2]){Iee(n);return}for(pg(n,n),r=0;r<3;r++)if(e[(r+1)%3]===e[(r+2)%3]){for(l=Math.abs(n[r*3]),o=0,a=1;a<3;a++)l<(s=Math.abs(n[r*3+a]))&&(l=s,o=a);o!==r&&(s=e[o],e[o]=e[r],e[r]=s,km(n,3,r,o)),n[o*3+o]<0&&(n[o*3]=-n[o*3],n[o*3+1]=-n[o*3+1],n[o*3+2]=-n[o*3+2]),a=(o+1)%3,i=(o+2)%3,n[a*3]=0,n[a*3+1]=0,n[a*3+2]=0,n[a*3+a]=1;const c=vu([n[o*3],n[o*3+1],n[o*3+2]],[n[a*3],n[a*3+1],n[a*3+2]],[]);bp(c);const f=vu(c,[n[o*3],n[o*3+1],n[o*3+2]],[]);for(let d=0;d<3;d++)n[i*3+d]=c[d],n[a*3+d]=f[d];pg(n,n);return}for(l=Math.abs(n[0]),o=0,r=1;r<3;r++)l<(s=Math.abs(n[r*3]))&&(l=s,o=r);if(o!==0){const c=e[o];e[o]=e[0],e[0]=c,km(n,3,o,0)}if(Math.abs(n[4])<Math.abs(n[7])){const c=e[2];e[2]=e[1],e[1]=c,km(n,3,1,2)}for(r=0;r<2;r++)n[r*3+r]<0&&(n[r*3]=-n[r*3],n[r*3+1]=-n[r*3+1],n[r*3+2]=-n[r*3+2]);PT(n)<0&&(n[6]=-n[6],n[7]=-n[7],n[8]=-n[8]),pg(n,n)}function xJe(t,e,n,r){let a;const i=[...t],o=PT(i);if(o<0)for(a=0;a<9;a++)i[a]=-i[a];Fee(i,e),pg(i,i),BL(i,e,r),zee(r,n,r),BL(e,r,e),pg(r,r),o<0&&(n[0]=-n[0],n[1]=-n[1],n[2]=-n[2])}function SN(t,e,n){let r,a,i,o,s=0,l,u,c;const f=Qr(n);for(r=0;r<n;r++){for(o=0,a=0;a<n;a++)(c=Math.abs(t[r*n+a]))>o&&(o=c);if(o===0)return mp("Unable to factor linear system"),0;f[r]=1/o}for(a=0;a<n;a++){for(r=0;r<a;r++){for(l=t[r*n+a],i=0;i<r;i++)l-=t[r*n+i]*t[i*n+a];t[r*n+a]=l}for(o=0,r=a;r<n;r++){for(l=t[r*n+a],i=0;i<a;i++)l-=t[r*n+i]*t[i*n+a];t[r*n+a]=l,(u=f[r]*Math.abs(l))>=o&&(o=u,s=r)}if(a!==s){for(i=0;i<n;i++)u=t[s*n+i],t[s*n+i]=t[a*n+i],t[a*n+i]=u;f[s]=f[a]}if(e[a]=s,Math.abs(t[a*n+a])<=bN)return mp("Unable to factor linear system"),0;if(a!==n-1)for(u=1/t[a*n+a],r=a+1;r<n;r++)t[r*n+a]*=u}return 1}function wN(t,e,n,r){let a,i,o,s,l;for(o=-1,a=0;a<r;a++){if(s=e[a],l=n[s],n[s]=n[a],o>=0)for(i=o;i<=a-1;i++)l-=t[a*r+i]*n[i];else l!==0&&(o=a);n[a]=l}for(a=r-1;a>=0;a--){for(l=n[a],i=a+1;i<r;i++)l-=t[a*r+i]*n[i];n[a]=l/t[a*r+a]}}function Uee(t,e,n){if(n===2){const a=Qr(2),i=ca(t[0],t[1],t[2],t[3]);return i===0?0:(a[0]=(t[3]*e[0]-t[1]*e[1])/i,a[1]=(-(t[2]*e[0])+t[0]*e[1])/i,e[0]=a[0],e[1]=a[1],1)}if(n===1)return t[0]===0?0:(e[0]/=t[0],1);const r=Qr(n);return SN(t,r,n)===0?0:(wN(t,r,e,n),1)}function Gee(t,e,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:null;const i=r||Qr(n),o=a||Qr(n);if(SN(t,i,n)===0)return null;for(let s=0;s<n;s++){for(let l=0;l<n;l++)o[l]=0;o[s]=1,wN(t,i,o,n);for(let l=0;l<n;l++)e[l*n+s]=o[l]}return e}function _Je(t,e){let n=+Number.MAX_VALUE,r=-Number.MAX_VALUE;for(let a=0;a<e;a++)for(let i=a;i<e;i++)Math.abs(t[a*e+i])>r&&(r=Math.abs(t[a*e+i]));for(let a=0;a<e;a++)Math.abs(t[a*e+a])<n&&(n=Math.abs(t[a*e+a]));return n===0?Number.MAX_VALUE:r/n}function CJe(t,e,n){return jb(t,3,e,n)}function PL(t,e,n,r){if(t<n)return mp("Insufficient number of samples. Underdetermined."),0;let a,i,o;const s=Qr(n*n),l=Qr(n),u=Qr(n*n);for(o=0;o<t;o++)for(a=0;a<n;a++)for(i=a;i<n;i++)s[a*n+i]+=e[o*n+a]*e[o*n+i];for(a=0;a<n;a++)for(i=0;i<a;i++)s[a*n+i]=s[i*n+a];for(jb(s,n,l,u),a=0;a<n;a++)r[a]=u[a*n+n-1];return 1}function TJe(t,e,n,r,a,i){let o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:!0;if(t<n||t<a)return mp("Insufficient number of samples. Underdetermined."),0;const s=Qr(a);let l=1,u,c=0,f,d,h,p=0;if(o){for(d=0;d<a;d++)s[d]=1;for(f=0;f<t;f++)for(d=0;d<a;d++)Math.abs(r[f*a+d])>bN&&(l=0,s[d]=0);if(l&&a===1)return mp("Detected homogeneous system (Y=0), calling SolveHomogeneousLeastSquares()"),PL(t,e,n,i);if(l)p=1;else for(d=0;d<a;d++)s[d]&&(p=1)}p&&(u=Qr(n),c=PL(t,e,n,u));const v=Qr(n*n),g=Qr(n*n),y=Qr(n*a);for(h=0;h<t;h++)for(f=0;f<n;f++){for(d=f;d<n;d++)v[f*n+d]+=e[h*n+f]*e[h*n+d];for(d=0;d<a;d++)y[f*a+d]+=e[h*n+f]*r[h*a+d]}for(f=0;f<n;f++)for(d=0;d<f;d++)v[f*n+d]=v[d*n+f];const m=Gee(v,g,n);if(m)for(f=0;f<n;f++)for(d=0;d<a;d++)for(i[f*a+d]=0,h=0;h<n;h++)i[f*a+d]+=g[f*n+h]*y[h*a+d];if(p){for(d=0;d<a;d++)if(s[d])for(f=0;f<n;f++)i[f*a+d]=u[f*a]}return p?c&&m:m}function EJe(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[0,.5,1];switch(t.length){case 3:return e[0]=parseInt(t[0],16)*17/255,e[1]=parseInt(t[1],16)*17/255,e[2]=parseInt(t[2],16)*17/255,e;case 4:return e[0]=parseInt(t[1],16)*17/255,e[1]=parseInt(t[2],16)*17/255,e[2]=parseInt(t[3],16)*17/255,e;case 6:return e[0]=parseInt(t.substr(0,2),16)/255,e[1]=parseInt(t.substr(2,2),16)/255,e[2]=parseInt(t.substr(4,2),16)/255,e;case 7:return e[0]=parseInt(t.substr(1,2),16)/255,e[1]=parseInt(t.substr(3,2),16)/255,e[2]=parseInt(t.substr(5,2),16)/255,e;case 9:return e[0]=parseInt(t.substr(1,2),16)/255,e[1]=parseInt(t.substr(3,2),16)/255,e[2]=parseInt(t.substr(5,2),16)/255,e[3]=parseInt(t.substr(7,2),16)/255,e;default:return e}}function Jy(t,e){let n,r;const[a,i,o]=t,s=1/3,l=1/6,u=2/3;let c=a,f=a;i>c?c=i:i<f&&(f=i),o>c?c=o:o<f&&(f=o);const d=c;d>0?r=(c-f)/c:r=0,r>0?(a===c?n=l*(i-o)/(c-f):i===c?n=s+l*(o-a)/(c-f):n=u+l*(a-i)/(c-f),n<0&&(n+=1)):n=0,e[0]=n,e[1]=r,e[2]=d}function xh(t,e){const[n,r,a]=t,i=1/3,o=1/6,s=2/3,l=5/6;let u,c,f;n>o&&n<=i?(c=1,u=(i-n)/o,f=0):n>i&&n<=.5?(c=1,f=(n-i)/o,u=0):n>.5&&n<=s?(f=1,c=(s-n)/o,u=0):n>s&&n<=l?(f=1,u=(n-s)/o,c=0):n>l&&n<=1?(u=1,f=(1-n)/o,c=0):(u=1,c=n/o,f=0),u=r*u+(1-r),c=r*c+(1-r),f=r*f+(1-r),u*=a,c*=a,f*=a,e[0]=u,e[1]=c,e[2]=f}function Hee(t,e){const[n,r,a]=t;let i=(n+16)/116,o=r/500+i,s=i-a/200;i**3>.008856?i**=3:i=(i-16/116)/7.787,o**3>.008856?o**=3:o=(o-16/116)/7.787,s**3>.008856?s**=3:s=(s-16/116)/7.787;const l=.9505,u=1,c=1.089;e[0]=l*o,e[1]=u*i,e[2]=c*s}function Wee(t,e){const[n,r,a]=t,i=.9505,o=1,s=1.089;let l=n/i,u=r/o,c=a/s;l>.008856?l**=1/3:l=7.787*l+16/116,u>.008856?u**=1/3:u=7.787*u+16/116,c>.008856?c**=1/3:c=7.787*c+16/116,e[0]=116*u-16,e[1]=500*(l-u),e[2]=200*(u-c)}function jee(t,e){const[n,r,a]=t;let i=n*3.2406+r*-1.5372+a*-.4986,o=n*-.9689+r*1.8758+a*.0415,s=n*.0557+r*-.204+a*1.057;i>.0031308?i=1.055*i**(1/2.4)-.055:i*=12.92,o>.0031308?o=1.055*o**(1/2.4)-.055:o*=12.92,s>.0031308?s=1.055*s**(1/2.4)-.055:s*=12.92;let l=i;l<o&&(l=o),l<s&&(l=s),l>1&&(i/=l,o/=l,s/=l),i<0&&(i=0),o<0&&(o=0),s<0&&(s=0),e[0]=i,e[1]=o,e[2]=s}function Kee(t,e){let[n,r,a]=t;n>.04045?n=((n+.055)/1.055)**2.4:n/=12.92,r>.04045?r=((r+.055)/1.055)**2.4:r/=12.92,a>.04045?a=((a+.055)/1.055)**2.4:a/=12.92,e[0]=n*.4124+r*.3576+a*.1805,e[1]=n*.2126+r*.7152+a*.0722,e[2]=n*.0193+r*.1192+a*.9505}function $h(t,e){const n=[0,0,0];Kee(t,n),Wee(n,e)}function O2(t,e){const n=[0,0,0];Hee(t,n),jee(n,e)}function FT(t){return t[0]=1,t[1]=-1,t[2]=1,t[3]=-1,t[4]=1,t[5]=-1,t}function x_(t){return!(t[1]-t[0]<0)}function MJe(t,e,n){return n[0]=Math.min(t[0],e[0]),n[1]=Math.max(t[0],e[0]),n[2]=Math.min(t[1],e[1]),n[3]=Math.max(t[1],e[1]),n[4]=Math.min(t[2],e[2]),n[5]=Math.max(t[2],e[2]),n}function __(t,e,n){return t<e?e:t>n?n:t}function FL(t,e,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[0,0,0];return r[0]=__(t[0],e[0],n[0]),r[1]=__(t[1],e[1],n[1]),r[2]=__(t[2],e[2],n[2]),r}function DJe(t,e){let n=0;return e[0]!==e[1]&&(t<e[0]?n=e[0]:t>e[1]?n=e[1]:n=t,n=(n-e[0])/(e[1]-e[0])),n}const AJe=Hb("GetScalarTypeFittingRange"),kJe=Hb("GetAdjustedScalarRange");function RJe(t,e){if(!t||!e)return 0;for(let n=0;n<6;n+=2)if(t[n]<e[n]||t[n]>e[n+1]||t[n+1]<e[n]||t[n+1]>e[n+1])return 0;return 1}function LJe(t,e,n){if(!t||!e)return 0;for(let r=0;r<6;r+=2)if(t[r]+n[r/2]<e[r]||t[r]-n[r/2]>e[r+1]||t[r+1]+n[r/2]<e[r]||t[r+1]-n[r/2]>e[r+1])return 0;return 1}function OJe(t,e,n){if(!t||!e||!n)return 0;for(let r=0;r<3;r++)if(t[r]+n[r]<e[2*r]||t[r]-n[r]>e[2*r+1])return 0;return 1}function VJe(t,e,n,r){const a=Qr(3),i=Qr(3),o=Qr(3),s=Qr(3),l=Qr(3),u=Qr(3);for(let w=0;w<3;++w)a[w]=t[w]-e[w],i[w]=e[w]-n[w],o[w]=n[w]-t[w],s[w]=-a[w],l[w]=-i[w],u[w]=-o[w];const c=Ku(s),f=Ku(l),d=Ku(o),h=Qr(3);vu(a,i,h);const p=Ku(h),v=c*f*d/(2*p),g=2*p*p,y=f*f*Ln(a,u)/g,m=d*d*Ln(s,i)/g,S=c*c*Ln(o,l)/g;for(let w=0;w<3;++w)r[w]=y*t[w]+m*e[w]+S*n[w];return v}const NJe=1/0,IJe=-1/0,Yee=t=>!Number.isFinite(t),{isFinite:BJe,isNaN:zL}=Number,V2=zL;function zT(){return[].concat([Number.MAX_VALUE,-Number.MAX_VALUE,Number.MAX_VALUE,-Number.MAX_VALUE,Number.MAX_VALUE,-Number.MAX_VALUE])}function $Je(t){let e=-1,n=-1;for(let r=0;r<t.length;r++){const a=Math.abs(t[r]);a>e&&(n=r,e=a)}return n}function PJe(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:3;const n=new Array(e),r=new Array(e);for(let i=0;i<e;++i)n[i]=i,r[i]=i;for(let i=e-1;i>0;i--){let o=-1/0,s=0,l=0;for(let u=0;u<=i;++u){const c=n[u];for(let f=0;f<=i;++f){const d=r[f],h=Math.abs(t[c+e*d]);h>o&&(o=h,s=u,l=f)}}[n[i],n[s]]=[n[s],n[i]],[r[i],r[l]]=[r[l],r[i]]}const a=new Array(e*e).fill(0);for(let i=0;i<e;++i){const o=n[i]+e*r[i];a[o]=t[o]<0?-1:1}return a}function Xee(t){const e=Math.floor(t*255);return e>15?e.toString(16):`0${e.toString(16)}`}function FJe(t){return`${arguments.length>1&&arguments[1]!==void 0?arguments[1]:"#"}${t.map(Xee).join("")}`}function nw(t){return Math.round(t*255)}function zJe(t){return t.length===3?`rgb(${t.map(nw).join(", ")})`:`rgba(${nw(t[0]||0)}, ${nw(t[1]||0)}, ${nw(t[2]||0)}, ${t[3]||0})`}var jFt={Pi:UQe,radiansFromDegrees:va,degreesFromRadians:Yg,round:Zy,floor:kee,ceil:GQe,ceilLog2:XQe,min:HQe,max:WQe,arrayMin:jQe,arrayMax:KQe,arrayRange:YQe,isPowerOfTwo:Qy,nearestPowerOfTwo:us,factorial:qQe,binomial:ZQe,beginCombination:QQe,nextCombination:JQe,randomSeed:eJe,getSeed:tJe,random:nJe,gaussian:rJe,add:L2,subtract:iu,multiplyScalar:Ree,multiplyScalar2D:Lee,multiplyAccumulate:NL,multiplyAccumulate2D:aJe,dot:Ln,outer:iJe,cross:vu,norm:Ku,normalize:bp,perpendiculars:oJe,projectVector:sJe,projectVector2D:lJe,distance2BetweenPoints:Zs,angleBetweenVectors:uJe,gaussianAmplitude:cJe,gaussianWeight:fJe,dot2D:IL,outer2D:dJe,norm2D:Oee,normalize2D:Vee,determinant2x2:ca,LUFactor3x3:hJe,LUSolve3x3:pJe,linearSolve3x3:vJe,multiply3x3_vect3:gJe,multiply3x3_mat3:BL,multiplyMatrix:yJe,transpose3x3:pg,invert3x3:mJe,identity3x3:Iee,identity:Bee,isIdentity:bJe,isIdentity3x3:SJe,determinant3x3:PT,quaternionToMatrix3x3:$ee,areEquals:Nee,areMatricesEqual:Wb,roundNumber:w_,roundVector:$L,matrix3x3ToQuaternion:Pee,multiplyQuaternion:wJe,orthogonalize3x3:Fee,diagonalize3x3:zee,singularValueDecomposition3x3:xJe,solveLinearSystem:Uee,invertMatrix:Gee,luFactorLinearSystem:SN,luSolveLinearSystem:wN,estimateMatrixCondition:_Je,jacobi:CJe,jacobiN:jb,solveHomogeneousLeastSquares:PL,solveLeastSquares:TJe,hex2float:EJe,rgb2hsv:Jy,hsv2rgb:xh,lab2xyz:Hee,xyz2lab:Wee,xyz2rgb:jee,rgb2xyz:Kee,rgb2lab:$h,lab2rgb:O2,uninitializeBounds:FT,areBoundsInitialized:x_,computeBoundsFromPoints:MJe,clampValue:__,clampVector:FL,clampAndNormalizeValue:DJe,getScalarTypeFittingRange:AJe,getAdjustedScalarRange:kJe,extentIsWithinOtherExtent:RJe,boundsIsWithinOtherBounds:LJe,pointIsWithinBounds:OJe,solve3PointCircle:VJe,inf:NJe,negInf:IJe,isInf:Yee,isNan:zL,isNaN:zL,isFinite:BJe,createUninitializedBounds:zT,getMajorAxisIndex:$Je,getSparseOrthogonalMatrix:PJe,floatToHex2:Xee,floatRGB2HexCode:FJe,float2CssRGBA:zJe};const UL=1e-6,qee="coincide",Zee="disjoint";function UJe(t,e,n){return t[0]*(n[0]-e[0])+t[1]*(n[1]-e[1])+t[2]*(n[2]-e[2])}function Qee(t,e,n){const r=n[0]*(t[0]-e[0])+n[1]*(t[1]-e[1])+n[2]*(t[2]-e[2]);return Math.abs(r)}function Jee(t,e,n,r){const a=[];iu(t,e,a);const i=Ln(n,a);r[0]=t[0]-i*n[0],r[1]=t[1]-i*n[1],r[2]=t[2]-i*n[2]}function ete(t,e,n){const r=Ln(t,e);let a=Ln(e,e);return a===0&&(a=1),n[0]=t[0]-r*e[0]/a,n[1]=t[1]-r*e[1]/a,n[2]=t[2]-r*e[2]/a,n}function tte(t,e,n,r){const a=[];iu(t,e,a);const i=Ln(n,a),o=Ln(n,n);o!==0?(r[0]=t[0]-i*n[0]/o,r[1]=t[1]-i*n[1]/o,r[2]=t[2]-i*n[2]/o):(r[0]=t[0],r[1]=t[1],r[2]=t[2])}function nte(t,e,n,r){const a={intersection:!1,betweenPoints:!1,t:Number.MAX_VALUE,x:[]},i=[],o=[];iu(e,t,i),iu(n,t,o);const s=Ln(r,o),l=Ln(r,i);let u,c;return l<0?u=-l:u=l,s<0?c=-s*UL:c=s*UL,u<=c||(a.t=s/l,a.x[0]=t[0]+a.t*i[0],a.x[1]=t[1]+a.t*i[1],a.x[2]=t[2]+a.t*i[2],a.intersection=!0,a.betweenPoints=a.t>=0&&a.t<=1),a}function rte(t,e,n,r){const a={intersection:!1,l0:[],l1:[],error:null},i=[];vu(e,r,i);const o=i.map(f=>Math.abs(f));if(o[0]+o[1]+o[2]<UL){const f=[];return iu(t,n,f),Ln(e,f)===0?a.error=qee:a.error=Zee,a}let s;o[0]>o[1]&&o[0]>o[2]?s="x":o[1]>o[2]?s="y":s="z";const l=[],u=-Ln(e,t),c=-Ln(r,n);switch(s){case"x":l[0]=0,l[1]=(c*e[2]-u*r[2])/i[0],l[2]=(u*r[1]-c*e[1])/i[0];break;case"y":l[0]=(u*r[2]-c*e[2])/i[1],l[1]=0,l[2]=(c*e[0]-u*r[0])/i[1];break;case"z":l[0]=(c*e[1]-u*r[1])/i[2],l[1]=(u*r[0]-c*e[0])/i[2],l[2]=0;break}return a.l0=l,L2(l,i,a.l1),a.intersection=!0,a}const GJe={evaluate:UJe,distanceToPlane:Qee,projectPoint:Jee,projectVector:ete,generalizedProjectPoint:tte,intersectWithLine:nte,intersectWithPlane:rte,DISJOINT:Zee,COINCIDE:qee};function HJe(t,e){e.classHierarchy.push("vtkPlane"),t.distanceToPlane=n=>Qee(n,e.origin,e.normal),t.projectPoint=(n,r)=>{Jee(n,e.origin,e.normal,r)},t.projectVector=(n,r)=>ete(n,e.normal,r),t.push=n=>{if(n!==0)for(let r=0;r<3;r++)e.origin[r]+=n*e.normal[r]},t.generalizedProjectPoint=(n,r)=>{tte(n,e.origin,e.normal,r)},t.evaluateFunction=(n,r,a)=>Array.isArray(n)?e.normal[0]*(n[0]-e.origin[0])+e.normal[1]*(n[1]-e.origin[1])+e.normal[2]*(n[2]-e.origin[2]):e.normal[0]*(n-e.origin[0])+e.normal[1]*(r-e.origin[1])+e.normal[2]*(a-e.origin[2]),t.evaluateGradient=n=>[e.normal[0],e.normal[1],e.normal[2]],t.intersectWithLine=(n,r)=>nte(n,r,e.origin,e.normal),t.intersectWithPlane=(n,r)=>rte(n,r,e.origin,e.normal)}const WJe={normal:[0,0,1],origin:[0,0,0]};function ate(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,WJe,n),J.obj(t,e),J.setGetArray(t,e,["normal","origin"],3),HJe(t,e)}const jJe=J.newInstance(ate,"vtkPlane");var Xg={newInstance:jJe,extend:ate,...GJe};const UT=[Number.MAX_VALUE,-Number.MAX_VALUE,Number.MAX_VALUE,-Number.MAX_VALUE,Number.MAX_VALUE,-Number.MAX_VALUE];function ite(t,e){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]}function cc(t){return(t==null?void 0:t.length)>=6&&t[0]<=t[1]&&t[2]<=t[3]&&t[4]<=t[5]}function xN(t,e){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}function _N(t){return xN(t,UT)}function N2(t,e,n,r){const[a,i,o,s,l,u]=t;return t[0]=a<e?a:e,t[1]=i>e?i:e,t[2]=o<n?o:n,t[3]=s>n?s:n,t[4]=l<r?l:r,t[5]=u>r?u:r,t}function CN(t,e){if(e.length===0)return t;if(Array.isArray(e[0]))for(let n=0;n<e.length;++n)N2(t,...e[n]);else for(let n=0;n<e.length;n+=3)N2(t,...e.slice(n,n+3));return t}function ote(t,e,n,r,a,i,o){const[s,l,u,c,f,d]=t;return o===void 0?(t[0]=Math.min(e[0],s),t[1]=Math.max(e[1],l),t[2]=Math.min(e[2],u),t[3]=Math.max(e[3],c),t[4]=Math.min(e[4],f),t[5]=Math.max(e[5],d)):(t[0]=Math.min(e,s),t[1]=Math.max(n,l),t[2]=Math.min(r,u),t[3]=Math.max(a,c),t[4]=Math.min(i,f),t[5]=Math.max(o,d)),t}function ste(t,e,n,r){const[a,i,o,s,l,u]=t;return t[0]=e,t[1]=e>i?e:i,t[2]=n,t[3]=n>s?n:s,t[4]=r,t[5]=r>u?r:u,a!==e||o!==n||l!==r}function lte(t,e,n,r){const[a,i,o,s,l,u]=t;return t[0]=e<a?e:a,t[1]=e,t[2]=n<o?n:o,t[3]=n,t[4]=r<l?r:l,t[5]=r,i!==e||s!==n||u!==r}function ute(t,e){return t[0]-=e,t[1]+=e,t[2]-=e,t[3]+=e,t[4]-=e,t[5]+=e,t}function TN(t,e,n,r){return cc(t)?(e>=0?(t[0]*=e,t[1]*=e):(t[0]=e*t[1],t[1]=e*t[0]),n>=0?(t[2]*=n,t[3]*=n):(t[2]=n*t[3],t[3]=n*t[2]),r>=0?(t[4]*=r,t[5]*=r):(t[4]=r*t[5],t[5]=r*t[4]),!0):!1}function EN(t){return[.5*(t[0]+t[1]),.5*(t[2]+t[3]),.5*(t[4]+t[5])]}function KJe(t,e,n,r){if(!cc(t))return!1;const a=EN(t);return t[0]-=a[0],t[1]-=a[0],t[2]-=a[1],t[3]-=a[1],t[4]-=a[2],t[5]-=a[2],TN(t,e,n,r),t[0]+=a[0],t[1]+=a[0],t[2]+=a[1],t[3]+=a[1],t[4]+=a[2],t[5]+=a[2],!0}function Rm(t,e){return t[e*2+1]-t[e*2]}function GT(t){return[Rm(t,0),Rm(t,1),Rm(t,2)]}function cte(t){return t.slice(0,2)}function fte(t){return t.slice(2,4)}function dte(t){return t.slice(4,6)}function hte(t){const e=GT(t);return e[0]>e[1]?e[0]>e[2]?e[0]:e[2]:e[1]>e[2]?e[1]:e[2]}function pte(t){if(cc(t)){const e=GT(t);return Math.sqrt(e[0]*e[0]+e[1]*e[1]+e[2]*e[2])}return null}function MN(t){return[t[0],t[2],t[4]]}function DN(t){return[t[1],t[3],t[5]]}function rw(t,e){return t<=0&&e>=0||t>=0&&e<=0}function AN(t,e){let n=0;for(let r=0;r<2;r++)for(let a=2;a<4;a++)for(let i=4;i<6;i++)e[n++]=[t[r],t[a],t[i]];return e}function vte(t,e,n){return e[0]=t[0],e[1]=t[2],e[2]=t[4],n[0]=t[1],n[1]=t[3],n[2]=t[5],e}function gte(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];const r=AN(t,[]);for(let a=0;a<r.length;++a)_r(r[a],r[a],e);return _N(n),CN(n,r)}function yte(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return e[0]=.5*(t[1]-t[0]),e[1]=.5*(t[3]-t[2]),e[2]=.5*(t[5]-t[4]),e}function mte(t,e,n,r){const a=[].concat(UT),i=t.getData();for(let o=0;o<i.length;o+=3){const s=[i[o],i[o+1],i[o+2]],l=Ln(s,e);a[0]=Math.min(l,a[0]),a[1]=Math.max(l,a[1]);const u=Ln(s,n);a[2]=Math.min(u,a[2]),a[3]=Math.max(u,a[3]);const c=Ln(s,r);a[4]=Math.min(c,a[4]),a[5]=Math.max(c,a[5])}return a}function bte(t,e,n,r,a){let i=!0;const o=[];let s=0;const l=[],u=[0,0,0],c=0,f=1,d=2;for(let h=0;h<3;h++)e[h]<t[2*h]?(o[h]=f,u[h]=t[2*h],i=!1):e[h]>t[2*h+1]?(o[h]=c,u[h]=t[2*h+1],i=!1):o[h]=d;if(i)return r[0]=e[0],r[1]=e[1],r[2]=e[2],a[0]=0,1;for(let h=0;h<3;h++)o[h]!==d&&n[h]!==0?l[h]=(u[h]-e[h])/n[h]:l[h]=-1;for(let h=0;h<3;h++)l[s]<l[h]&&(s=h);if(l[s]>1||l[s]<0)return 0;a[0]=l[s];for(let h=0;h<3;h++)if(s!==h){if(r[h]=e[h]+l[s]*n[h],r[h]<t[2*h]||r[h]>t[2*h+1])return 0}else r[h]=u[h];return 1}function Ste(t,e,n){const r=[];let a=0,i=1,o=1;for(let s=4;s<=5;++s){r[2]=t[s];for(let l=2;l<=3;++l){r[1]=t[l];for(let u=0;u<=1;++u)if(r[0]=t[u],a=Xg.evaluate(n,e,r),o&&(i=a>=0?1:-1,o=0),a===0||i>0&&a<0||i<0&&a>0)return 1}}return 0}function wte(t,e){if(!(cc(t)&&cc(e)))return!1;const n=[0,0,0,0,0,0];let r;for(let a=0;a<3;a++)if(r=!1,e[a*2]>=t[a*2]&&e[a*2]<=t[a*2+1]?(r=!0,n[a*2]=e[a*2]):t[a*2]>=e[a*2]&&t[a*2]<=e[a*2+1]&&(r=!0,n[a*2]=t[a*2]),e[a*2+1]>=t[a*2]&&e[a*2+1]<=t[a*2+1]?(r=!0,n[a*2+1]=e[2*a+1]):t[a*2+1]>=e[a*2]&&t[a*2+1]<=e[a*2+1]&&(r=!0,n[a*2+1]=t[a*2+1]),!r)return!1;return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],!0}function I2(t,e){if(!(cc(t)&&cc(e)))return!1;for(let n=0;n<3;n++)if(!(e[n*2]>=t[n*2]&&e[n*2]<=t[n*2+1])&&!(t[n*2]>=e[n*2]&&t[n*2]<=e[n*2+1])&&!(e[n*2+1]>=t[n*2]&&e[n*2+1]<=t[n*2+1])&&!(t[n*2+1]>=e[n*2]&&t[n*2+1]<=e[n*2+1]))return!1;return!0}function B2(t,e,n,r){return!(e<t[0]||e>t[1]||n<t[2]||n>t[3]||r<t[4]||r>t[5])}function YJe(t,e){return!(!I2(t,e)||!B2(t,...MN(e))||!B2(t,...DN(e)))}function xte(t,e,n){const r=[[0,1,2,3,4,5,6,7],[0,1,4,5,2,3,6,7],[0,2,4,6,1,3,5,7]],a=[0,0,0,0,0,0,0,0];let i=0;for(let f=0;f<2;f++)for(let d=2;d<4;d++)for(let h=4;h<6;h++){const p=[t[f],t[d],t[h]];a[i++]=Xg.evaluate(n,e,p)}let o=2;for(;o--&&!(rw(a[r[o][0]],a[r[o][4]])&&rw(a[r[o][1]],a[r[o][5]])&&rw(a[r[o][2]],a[r[o][6]])&&rw(a[r[o][3]],a[r[o][7]])););if(o<0)return!1;const s=Math.sign(n[o]),l=Math.abs((t[o*2+1]-t[o*2])*n[o]);let u=s>0?1:0;for(let f=0;f<4;f++){if(l===0)continue;const d=Math.abs(a[r[o][f]])/l;s>0&&d<u&&(u=d),s<0&&d>u&&(u=d)}const c=(1-u)*t[o*2]+u*t[o*2+1];return s>0?t[o*2]=c:t[o*2+1]=c,!0}class XJe{constructor(e){this.bounds=e,this.bounds||(this.bounds=new Float64Array(UT))}getBounds(){return this.bounds}equals(e){return ite(this.bounds,e)}isValid(){return cc(this.bounds)}setBounds(e){return xN(this.bounds,e)}reset(){return _N(this.bounds)}addPoint(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return N2(this.bounds,...n)}addPoints(e){return CN(this.bounds,e)}addBounds(e,n,r,a,i,o){return ote(this.bounds,e,n,r,a,i,o)}setMinPoint(e,n,r){return ste(this.bounds,e,n,r)}setMaxPoint(e,n,r){return lte(this.bounds,e,n,r)}inflate(e){return ute(this.bounds,e)}scale(e,n,r){return TN(this.bounds,e,n,r)}getCenter(){return EN(this.bounds)}getLength(e){return Rm(this.bounds,e)}getLengths(){return GT(this.bounds)}getMaxLength(){return hte(this.bounds)}getDiagonalLength(){return pte(this.bounds)}getMinPoint(){return MN(this.bounds)}getMaxPoint(){return DN(this.bounds)}getXRange(){return cte(this.bounds)}getYRange(){return fte(this.bounds)}getZRange(){return dte(this.bounds)}getCorners(e){return AN(this.bounds,e)}computeCornerPoints(e,n){return vte(this.bounds,e,n)}computeLocalBounds(e,n,r){return mte(this.bounds,e,n,r)}transformBounds(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return gte(this.bounds,e,n)}computeScale3(e){return yte(this.bounds,e)}cutWithPlane(e,n){return xte(this.bounds,e,n)}intersectBox(e,n,r,a){return bte(this.bounds,e,n,r,a)}intersectPlane(e,n){return Ste(this.bounds,e,n)}intersect(e){return wte(this.bounds,e)}intersects(e){return I2(this.bounds,e)}containsPoint(e,n,r){return B2(this.bounds,e,n,r)}contains(e){return I2(this.bounds,e)}}function qJe(t){const e=t&&t.bounds;return new XJe(e)}const ZJe={equals:ite,isValid:cc,setBounds:xN,reset:_N,addPoint:N2,addPoints:CN,addBounds:ote,setMinPoint:ste,setMaxPoint:lte,inflate:ute,scale:TN,scaleAboutCenter:KJe,getCenter:EN,getLength:Rm,getLengths:GT,getMaxLength:hte,getDiagonalLength:pte,getMinPoint:MN,getMaxPoint:DN,getXRange:cte,getYRange:fte,getZRange:dte,getCorners:AN,computeCornerPoints:vte,computeLocalBounds:mte,transformBounds:gte,computeScale3:yte,cutWithPlane:xte,intersectBox:bte,intersectPlane:Ste,intersect:wte,intersects:I2,containsPoint:B2,contains:YJe,INIT_BOUNDS:UT};var Jr={newInstance:qJe,...ZJe};const QJe={DISPLAY:0,WORLD:1};var _te={CoordinateSystem:QJe};const{CoordinateSystem:GL}=_te;function w6(t){return()=>J.vtkErrorMacro(`vtkProp::${t} - NOT IMPLEMENTED`)}function JJe(t,e){e.classHierarchy.push("vtkProp"),t.getMTime=()=>{let n=e.mtime;for(let r=0;r<e.textures.length;++r){const a=e.textures[r].getMTime();a>n&&(n=a)}return n},t.processSelectorPixelBuffers=(n,r)=>{},t.getNestedProps=()=>null,t.getActors=()=>[],t.getActors2D=()=>[],t.getVolumes=()=>[],t.pick=w6("pick"),t.hasKey=w6("hasKey"),t.getNestedVisibility=()=>e.visibility&&(!e._parentProp||e._parentProp.getNestedVisibility()),t.getNestedPickable=()=>e.pickable&&(!e._parentProp||e._parentProp.getNestedPickable()),t.getNestedDragable=()=>e.dragable&&(!e._parentProp||e._parentProp.getNestedDragable()),t.getRedrawMTime=()=>e.mtime,t.setEstimatedRenderTime=n=>{e.estimatedRenderTime=n,e.savedEstimatedRenderTime=n},t.restoreEstimatedRenderTime=()=>{e.estimatedRenderTime=e.savedEstimatedRenderTime},t.addEstimatedRenderTime=n=>{e.estimatedRenderTime+=n},t.setAllocatedRenderTime=n=>{e.allocatedRenderTime=n,e.savedEstimatedRenderTime=e.estimatedRenderTime,e.estimatedRenderTime=0},t.getSupportsSelection=()=>!1,t.getTextures=()=>e.textures,t.hasTexture=n=>e.textures.indexOf(n)!==-1,t.addTexture=n=>{n&&!t.hasTexture(n)&&(e.textures=e.textures.concat(n),t.modified())},t.removeTexture=n=>{const r=e.textures.filter(a=>a!==n);e.textures.length!==r.length&&(e.textures=r,t.modified())},t.removeAllTextures=()=>{e.textures=[],t.modified()},t.setCoordinateSystemToWorld=()=>t.setCoordinateSystem(GL.WORLD),t.setCoordinateSystemToDisplay=()=>t.setCoordinateSystem(GL.DISPLAY)}const eet={allocatedRenderTime:10,coordinateSystem:GL.WORLD,dragable:!0,estimatedRenderTime:0,paths:null,pickable:!0,renderTimeMultiplier:1,savedEstimatedRenderTime:0,textures:[],useBounds:!0,visibility:!0};function Cte(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,eet,n),J.obj(t,e),J.get(t,e,["estimatedRenderTime","allocatedRenderTime"]),J.setGet(t,e,["_parentProp","coordinateSystem","dragable","pickable","renderTimeMultiplier","useBounds","visibility"]),J.moveToProtected(t,e,["parentProp"]),JJe(t,e)}const tet=J.newInstance(Cte,"vtkProp");var Kb={newInstance:tet,extend:Cte,..._te};function net(t,e){e.classHierarchy.push("vtkProp3D"),t.addPosition=r=>{e.position=e.position.map((a,i)=>a+r[i]),t.modified()},t.getOrientationWXYZ=()=>{const r=yp();AJ(r,e.rotation);const a=new Float64Array(3),i=_qe(a,r);return[Yg(i),a[0],a[1],a[2]]},t.rotateX=r=>{r!==0&&(ZV(e.rotation,e.rotation,va(r)),t.modified())},t.rotateY=r=>{r!==0&&(QV(e.rotation,e.rotation,va(r)),t.modified())},t.rotateZ=r=>{r!==0&&(JV(e.rotation,e.rotation,va(r)),t.modified())},t.rotateWXYZ=(r,a,i,o)=>{if(r===0||a===0&&i===0&&o===0)return;const s=va(r),l=yp();nN(l,[a,i,o],s);const u=new Float64Array(16);eN(u,l),ri(e.rotation,e.rotation,u),t.modified()},t.setOrientation=(r,a,i)=>r===e.orientation[0]&&a===e.orientation[1]&&i===e.orientation[2]?!1:(e.orientation=[r,a,i],Yn(e.rotation),t.rotateZ(i),t.rotateX(r),t.rotateY(a),t.modified(),!0),t.setUserMatrix=r=>Wb(e.userMatrix,r)?!1:(di(e.userMatrix,r),t.modified(),!0),t.getMatrix=()=>(t.computeMatrix(),e.matrix),t.computeMatrix=()=>{if(t.getMTime()>e.matrixMTime.getMTime()){Yn(e.matrix),e.userMatrix&&ri(e.matrix,e.matrix,e.userMatrix),xa(e.matrix,e.matrix,e.origin),xa(e.matrix,e.matrix,e.position),ri(e.matrix,e.matrix,e.rotation),gp(e.matrix,e.matrix,e.scale),xa(e.matrix,e.matrix,[-e.origin[0],-e.origin[1],-e.origin[2]]),ea(e.matrix,e.matrix),e.isIdentity=!0;for(let r=0;r<4;++r)for(let a=0;a<4;++a)(r===a?1:0)!==e.matrix[r+a*4]&&(e.isIdentity=!1);e.matrixMTime.modified()}},t.getCenter=()=>Jr.getCenter(e.bounds),t.getLength=()=>Jr.getLength(e.bounds),t.getXRange=()=>Jr.getXRange(e.bounds),t.getYRange=()=>Jr.getYRange(e.bounds),t.getZRange=()=>Jr.getZRange(e.bounds),t.getUserMatrix=()=>e.userMatrix;function n(){t.computeMatrix()}t.onModified(n)}const ret={origin:[0,0,0],position:[0,0,0],orientation:[0,0,0],rotation:null,scale:[1,1,1],bounds:[1,-1,1,-1,1,-1],userMatrix:null,userMatrixMTime:null,cachedProp3D:null,isIdentity:!0,matrixMTime:null};function Tte(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,ret,n),Kb.extend(t,e,n),e.matrixMTime={},J.obj(e.matrixMTime),J.get(t,e,["bounds","isIdentity"]),J.getArray(t,e,["orientation"]),J.setGetArray(t,e,["origin","position","scale"],3),e.matrix=Yn(new Float64Array(16)),e.rotation=Yn(new Float64Array(16)),e.userMatrix=Yn(new Float64Array(16)),e.transform=null,net(t,e)}const aet=J.newInstance(Tte,"vtkProp3D");var iet={newInstance:aet,extend:Tte};const Ete={FLAT:0,GOURAUD:1,PHONG:2},ni={POINTS:0,WIREFRAME:1,SURFACE:2},oet=Ete;var Mte={Shading:Ete,Representation:ni,Interpolation:oet};const{Representation:em,Interpolation:tm}=Mte;function x6(t){return()=>J.vtkErrorMacro(`vtkProperty::${t} - NOT IMPLEMENTED`)}function set(t,e){e.classHierarchy.push("vtkProperty"),t.setColor=(n,r,a)=>{Array.isArray(n)?(e.color[0]!==n[0]||e.color[1]!==n[1]||e.color[2]!==n[2])&&(e.color[0]=n[0],e.color[1]=n[1],e.color[2]=n[2],t.modified()):(e.color[0]!==n||e.color[1]!==r||e.color[2]!==a)&&(e.color[0]=n,e.color[1]=r,e.color[2]=a,t.modified()),t.setDiffuseColor(e.color),t.setAmbientColor(e.color),t.setSpecularColor(e.color)},t.computeCompositeColor=x6("ComputeCompositeColor"),t.getColor=()=>{let n=0;e.ambient+e.diffuse+e.specular>0&&(n=1/(e.ambient+e.diffuse+e.specular));for(let r=0;r<3;r++)e.color[r]=n*(e.ambient*e.ambientColor[r]+e.diffuse*e.diffuseColor[r]+e.specular*e.specularColor[r]);return[].concat(e.color)},t.setSpecularPower=n=>{const r=1/Math.max(1,n);(e.roughness!==r||e.specularPower!==n)&&(e.specularPower=n,e.roughness=r,t.modified())},t.addShaderVariable=x6("AddShaderVariable"),t.setInterpolationToFlat=()=>t.setInterpolation(tm.FLAT),t.setInterpolationToGouraud=()=>t.setInterpolation(tm.GOURAUD),t.setInterpolationToPhong=()=>t.setInterpolation(tm.PHONG),t.getInterpolationAsString=()=>J.enumToString(tm,e.interpolation),t.setRepresentationToWireframe=()=>t.setRepresentation(em.WIREFRAME),t.setRepresentationToSurface=()=>t.setRepresentation(em.SURFACE),t.setRepresentationToPoints=()=>t.setRepresentation(em.POINTS),t.getRepresentationAsString=()=>J.enumToString(em,e.representation)}const uet={color:[1,1,1],ambientColor:[1,1,1],diffuseColor:[1,1,1],specularColor:[1,1,1],edgeColor:[0,0,0],ambient:0,diffuse:1,metallic:0,roughness:.6,normalStrength:1,emission:1,baseIOR:1.45,specular:0,specularPower:1,opacity:1,interpolation:tm.GOURAUD,representation:em.SURFACE,edgeVisibility:!1,backfaceCulling:!1,frontfaceCulling:!1,pointSize:1,lineWidth:1,lighting:!0,shading:!1,materialName:null};function Dte(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,uet,n),J.obj(t,e),J.setGet(t,e,["lighting","interpolation","ambient","diffuse","metallic","roughness","normalStrength","emission","baseIOR","specular","specularPower","opacity","edgeVisibility","lineWidth","pointSize","backfaceCulling","frontfaceCulling","representation","diffuseTexture","metallicTexture","roughnessTexture","normalTexture","ambientOcclusionTexture","emissionTexture"]),J.setGetArray(t,e,["ambientColor","specularColor","diffuseColor","edgeColor"],3),set(t,e)}const cet=J.newInstance(Dte,"vtkProperty");var T0={newInstance:cet,extend:Dte,...Mte};const{vtkDebugMacro:fet}=J;function det(t,e){e.classHierarchy.push("vtkActor");const n={...t};t.getActors=()=>[t],t.getIsOpaque=()=>{if(e.forceOpaque)return!0;if(e.forceTranslucent)return!1;e.property||t.getProperty();let r=e.property.getOpacity()>=1;return r=r&&(!e.texture||!e.texture.isTranslucent()),r=r&&(!e.mapper||e.mapper.getIsOpaque()),r},t.hasTranslucentPolygonalGeometry=()=>e.mapper===null?!1:(e.property===null&&t.setProperty(t.makeProperty()),!t.getIsOpaque()),t.makeProperty=T0.newInstance,t.getProperty=()=>(e.property===null&&(e.property=t.makeProperty()),e.property),t.getBounds=()=>{if(e.mapper===null)return e.bounds;const r=e.mapper.getBounds();if(!r||r.length!==6)return r;if(r[0]>r[1])return e.mapperBounds=r.concat(),e.bounds=[1,-1,1,-1,1,-1],e.boundsMTime.modified(),r;if(!e.mapperBounds||r[0]!==e.mapperBounds[0]||r[1]!==e.mapperBounds[1]||r[2]!==e.mapperBounds[2]||r[3]!==e.mapperBounds[3]||r[4]!==e.mapperBounds[4]||r[5]!==e.mapperBounds[5]||t.getMTime()>e.boundsMTime.getMTime()){fet("Recomputing bounds..."),e.mapperBounds=r.concat();const a=[];Jr.getCorners(r,a),t.computeMatrix();const i=new Float64Array(16);ea(i,e.matrix),a.forEach(o=>_r(o,o,i)),e.bounds[0]=e.bounds[2]=e.bounds[4]=Number.MAX_VALUE,e.bounds[1]=e.bounds[3]=e.bounds[5]=-Number.MAX_VALUE,e.bounds=e.bounds.map((o,s)=>s%2===0?a.reduce((l,u)=>l>u[s/2]?u[s/2]:l,o):a.reduce((l,u)=>l<u[(s-1)/2]?u[(s-1)/2]:l,o)),e.boundsMTime.modified()}return e.bounds},t.getMTime=()=>{let r=n.getMTime();if(e.property!==null){const a=e.property.getMTime();r=a>r?a:r}if(e.backfaceProperty!==null){const a=e.backfaceProperty.getMTime();r=a>r?a:r}return r},t.getRedrawMTime=()=>{let r=e.mtime;if(e.mapper!==null){let a=e.mapper.getMTime();r=a>r?a:r,e.mapper.getInput()!==null&&(e.mapper.getInputAlgorithm().update(),a=e.mapper.getInput().getMTime(),r=a>r?a:r)}return r},t.getSupportsSelection=()=>e.mapper?e.mapper.getSupportsSelection():!1,t.processSelectorPixelBuffers=(r,a)=>{e.mapper&&e.mapper.processSelectorPixelBuffers&&e.mapper.processSelectorPixelBuffers(r,a)}}const het={mapper:null,property:null,backfaceProperty:null,forceOpaque:!1,forceTranslucent:!1,bounds:[1,-1,1,-1,1,-1]};function Ate(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,het,n),iet.extend(t,e,n),e.boundsMTime={},J.obj(e.boundsMTime),J.set(t,e,["property"]),J.setGet(t,e,["backfaceProperty","forceOpaque","forceTranslucent","mapper"]),det(t,e)}const pet=J.newInstance(Ate,"vtkActor");var $r={newInstance:pet,extend:Ate};const kte={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},Va={VOID:"",CHAR:"Int8Array",SIGNED_CHAR:"Int8Array",UNSIGNED_CHAR:"Uint8Array",SHORT:"Int16Array",UNSIGNED_SHORT:"Uint16Array",INT:"Int32Array",UNSIGNED_INT:"Uint32Array",FLOAT:"Float32Array",DOUBLE:"Float64Array"},vet=Va.FLOAT;var Rte={DefaultDataType:vet,DataTypeByteSize:kte,VtkDataTypes:Va};const{vtkErrorMacro:get}=_u,{DefaultDataType:yet}=Rte,met=1e-6;function HL(t,e,n){const r=t.length;let a=Number.MAX_VALUE,i=-Number.MAX_VALUE,o,s;for(s=e;s<r;s+=n)if(!Number.isNaN(t[s])){a=t[s],i=a;break}for(;s<r;s+=n)o=t[s],o<a?a=o:o>i&&(i=o);return{min:a,max:i}}function bet(){let t=Number.MAX_VALUE,e=-Number.MAX_VALUE,n=0,r=0;return{add(a){t>a&&(t=a),e<a&&(e=a),n++,r+=a},get(){return{min:t,max:e,count:n,sum:r,mean:r/n}},getRange(){return{min:t,max:e}}}}function Lte(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;if(e<0&&n>1){const a=t.length/n,i=new Float64Array(a);for(let o=0,s=0;o<a;++o){for(let l=s+n;s<l;++s)i[o]+=t[s]*t[s];i[o]**=.5}return HL(i,0,1)}return HL(t,e<0?0:e,n)}function _6(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;const n=t||[];for(;n.length<=e;)n.push(null);return n}function kN(t){return Object.prototype.toString.call(t).slice(8,-1)}function wet(t){const e=t.getNumberOfComponents();let n=0;const r=new Array(e);for(let a=0;a<t.getNumberOfTuples();++a){t.getTuple(a,r);const i=Ku(r,e);i>n&&(n=i)}return n}const xet={computeRange:Lte,createRangeHelper:bet,fastComputeRange:HL,getDataType:kN,getMaxNorm:wet};function _et(t,e){e.classHierarchy.push("vtkDataArray");function n(r){if(r<0)return!1;const a=t.getNumberOfComponents(),i=e.values.length/(a>0?a:1);if(r===i)return!0;if(r>i){const o=e.values;return e.values=_0(e.dataType,(r+i)*a),e.values.set(o),!0}return e.size>r*a&&(e.size=r*a,t.dataChange()),!0}t.dataChange=()=>{e.ranges=null,t.modified()},t.resize=r=>{n(r);const a=r*t.getNumberOfComponents();return e.size!==a?(e.size=a,t.dataChange(),!0):!1},t.initialize=()=>{t.resize(0)},t.getElementComponentSize=()=>e.values.BYTES_PER_ELEMENT,t.getComponent=function(r){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return e.values[r*e.numberOfComponents+a]},t.setComponent=(r,a,i)=>{i!==e.values[r*e.numberOfComponents+a]&&(e.values[r*e.numberOfComponents+a]=i,t.dataChange())},t.getValue=r=>{const a=r/e.numberOfComponents,i=r%e.numberOfComponents;return t.getComponent(a,i)},t.setValue=(r,a)=>{const i=r/e.numberOfComponents,o=r%e.numberOfComponents;t.setComponent(i,o,a)},t.getData=()=>e.size===e.values.length?e.values:e.values.subarray(0,e.size),t.getRange=function(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:-1,a=r;a<0&&(a=e.numberOfComponents===1?0:e.numberOfComponents);let i=null;return e.ranges||(e.ranges=_6(e.ranges,e.numberOfComponents)),i=e.ranges[a],i?(e.rangeTuple[0]=i.min,e.rangeTuple[1]=i.max,e.rangeTuple):(i=Lte(t.getData(),r,e.numberOfComponents),e.ranges[a]=i,e.rangeTuple[0]=i.min,e.rangeTuple[1]=i.max,e.rangeTuple)},t.setRange=(r,a)=>{e.ranges||(e.ranges=_6(e.ranges,e.numberOfComponents));const i={min:r.min,max:r.max};return e.ranges[a]=i,e.rangeTuple[0]=i.min,e.rangeTuple[1]=i.max,e.rangeTuple},t.setTuple=(r,a)=>{const i=r*e.numberOfComponents;for(let o=0;o<e.numberOfComponents;o++)e.values[i+o]=a[o]},t.setTuples=(r,a)=>{let i=r*e.numberOfComponents;const o=Math.min(a.length,e.size-i);for(let s=0;s<o;)e.values[i++]=a[s++]},t.insertTuple=(r,a)=>(e.size<=r*e.numberOfComponents&&(e.size=(r+1)*e.numberOfComponents,n(r+1)),t.setTuple(r,a),r),t.insertTuples=(r,a)=>{const i=r+a.length/e.numberOfComponents;return e.size<i*e.numberOfComponents&&(e.size=i*e.numberOfComponents,n(i)),t.setTuples(r,a),i},t.insertNextTuple=r=>{const a=e.size/e.numberOfComponents;return t.insertTuple(a,r)},t.insertNextTuples=r=>{const a=e.size/e.numberOfComponents;return t.insertTuples(a,r)},t.findTuple=function(r){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:met;for(let i=0;i<e.size;i+=e.numberOfComponents)if(Math.abs(r[0]-e.values[i])<=a){let o=!0;for(let s=1;s<e.numberOfComponents;++s)if(Math.abs(r[s]-e.values[i+s])>a){o=!1;break}if(o)return i/e.numberOfComponents}return-1},t.getTuple=function(r){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];const i=e.numberOfComponents||1,o=r*i;switch(i){case 4:a[3]=e.values[o+3];case 3:a[2]=e.values[o+2];case 2:a[1]=e.values[o+1];case 1:a[0]=e.values[o];break;default:for(let s=i-1;s>=0;--s)a[s]=e.values[o+s]}return a},t.getTuples=(r,a)=>{const i=(r??0)*e.numberOfComponents,o=(a??t.getNumberOfTuples())*e.numberOfComponents,s=t.getData().subarray(i,o);return s.length>0?s:null},t.getTupleLocation=function(){return(arguments.length>0&&arguments[0]!==void 0?arguments[0]:1)*e.numberOfComponents},t.getNumberOfComponents=()=>e.numberOfComponents,t.getNumberOfValues=()=>e.size,t.getNumberOfTuples=()=>e.size/e.numberOfComponents,t.getDataType=()=>e.dataType,t.newClone=()=>Vte({empty:!0,name:e.name,dataType:e.dataType,numberOfComponents:e.numberOfComponents}),t.getName=()=>(e.name||(t.modified(),e.name=`vtkDataArray${t.getMTime()}`),e.name),t.setData=(r,a)=>{e.values=r,e.size=r.length,e.dataType=kN(r),a&&(e.numberOfComponents=a),e.size%e.numberOfComponents!==0&&(e.numberOfComponents=1),t.dataChange()},t.getState=()=>{if(e.deleted)return null;const r={...e,vtkClass:t.getClassName()};r.values=Array.from(r.values),delete r.buffer,Object.keys(r).forEach(i=>{r[i]||delete r[i]});const a={};return Object.keys(r).sort().forEach(i=>{a[i]=r[i]}),a.mtime&&delete a.mtime,a},t.deepCopy=r=>{const a=t.getDataType(),i=e.values;t.shallowCopy(r),(i==null?void 0:i.length)>=r.getNumberOfValues()&&a===r.getDataType()?(i.set(r.getData()),e.values=i,t.dataChange()):t.setData(r.getData().slice())},t.interpolateTuple=(r,a,i,o,s,l)=>{const u=e.numberOfComponents||1;(u!==a.getNumberOfComponents()||u!==o.getNumberOfComponents())&&get("numberOfComponents must match");const c=a.getTuple(i),f=o.getTuple(s),d=[];switch(d.length=u,u){case 4:d[3]=c[3]+(f[3]-c[3])*l;case 3:d[2]=c[2]+(f[2]-c[2])*l;case 2:d[1]=c[1]+(f[1]-c[1])*l;case 1:d[0]=c[0]+(f[0]-c[0])*l;break;default:for(let h=0;h<u;h++)d[h]=c[h]+(f[h]-c[h])*l}return t.insertTuple(r,d)}}const Cet={name:"",numberOfComponents:1,dataType:yet,rangeTuple:[0,0]};function Ote(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(Object.assign(e,Cet,n),!e.empty&&!e.values&&!e.size)throw new TypeError("Cannot create vtkDataArray object without: size > 0, values");if(e.values?Array.isArray(e.values)&&(e.values=aN(e.dataType,e.values)):e.values=_0(e.dataType,e.size),e.values&&(e.size=e.size??e.values.length,e.dataType=kN(e.values)),oi(t,e),Ub(t,e,["name","numberOfComponents"]),e.size%e.numberOfComponents!==0)throw new RangeError("model.size is not a multiple of model.numberOfComponents");_et(t,e)}const Vte=Kr(Ote,"vtkDataArray");var zn={newInstance:Vte,extend:Ote,...xet,...Rte};function Tet(t,e){e.classHierarchy.push("vtkAbstractMapper"),t.update=()=>{t.getInputData()},t.addClippingPlane=n=>n.isA("vtkPlane")?e.clippingPlanes.includes(n)?!1:(e.clippingPlanes.push(n),t.modified(),!0):!1,t.getNumberOfClippingPlanes=()=>e.clippingPlanes.length,t.removeAllClippingPlanes=()=>e.clippingPlanes.length===0?!1:(e.clippingPlanes.length=0,t.modified(),!0),t.removeClippingPlane=n=>{const r=e.clippingPlanes.indexOf(n);return r===-1?!1:(e.clippingPlanes.splice(r,1),t.modified(),!0)},t.getClippingPlanes=()=>e.clippingPlanes,t.setClippingPlanes=n=>{if(n)if(!Array.isArray(n))t.addClippingPlane(n);else{const r=n.length;for(let a=0;a<r&&a<6;a++)t.addClippingPlane(n[a])}},t.getClippingPlaneInDataCoords=(n,r,a)=>{const i=e.clippingPlanes,o=n;if(i){const s=i.length;if(r>=0&&r<s){const l=i[r],u=l.getNormal(),c=l.getOrigin(),f=u[0],d=u[1],h=u[2],p=-(f*c[0]+d*c[1]+h*c[2]);a[0]=f*o[0]+d*o[4]+h*o[8]+p*o[12],a[1]=f*o[1]+d*o[5]+h*o[9]+p*o[13],a[2]=f*o[2]+d*o[6]+h*o[10]+p*o[14],a[3]=f*o[3]+d*o[7]+h*o[11]+p*o[15];return}}J.vtkErrorMacro(`Clipping plane index ${r} is out of range.`)}}const Eet={clippingPlanes:[]};function Met(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Eet,n),J.obj(t,e),J.algo(t,e,1,0),e.clippingPlanes||(e.clippingPlanes=[]),Tet(t,e)}var Nte={extend:Met};function Det(t,e){t.getBounds=()=>(J.vtkErrorMacro("vtkAbstractMapper3D.getBounds - NOT IMPLEMENTED"),zT()),t.getCenter=()=>{var r;const n=t.getBounds();return e.center=Jr.isValid(n)?Jr.getCenter(n):null,(r=e.center)==null?void 0:r.slice()},t.getLength=()=>{const n=t.getBounds();return Jr.getDiagonalLength(n)}}const Aet=t=>({bounds:[...Jr.INIT_BOUNDS],center:[0,0,0],viewSpecificProperties:{},...t});function ket(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Aet(n)),Nte.extend(t,e,n),J.setGet(t,e,["viewSpecificProperties"]),Det(t,e)}var Ret={extend:ket};const{vtkErrorMacro:C6,vtkWarningMacro:Let}=J;function Oet(t,e){e.classHierarchy.push("vtkFieldData");const n=t.getState;e.arrays&&(e.arrays=e.arrays.map(r=>({data:sl(r.data)}))),t.initialize=()=>{t.initializeFields(),t.copyAllOn(),t.clearFieldFlags()},t.initializeFields=()=>{e.arrays=[],e.copyFieldFlags={},t.modified()},t.copyStructure=r=>{t.initializeFields(),e.copyFieldFlags=r.getCopyFieldFlags().map(a=>a),e.arrays=r.arrays().map(a=>({array:a}))},t.getNumberOfArrays=()=>e.arrays.length,t.getNumberOfActiveArrays=()=>e.arrays.length,t.addArray=r=>{const a=r.getName(),{array:i,index:o}=t.getArrayWithIndex(a);return i!=null?(e.arrays[o]={data:r},o):(e.arrays=[].concat(e.arrays,{data:r}),e.arrays.length-1)},t.removeAllArrays=()=>{e.arrays=[]},t.removeArray=r=>{const a=e.arrays.findIndex(i=>i.data.getName()===r);return t.removeArrayByIndex(a)},t.removeArrayByIndex=r=>r!==-1&&r<e.arrays.length?(e.arrays.splice(r,1),!0):!1,t.getArrays=()=>e.arrays.map(r=>r.data),t.getArray=r=>typeof r=="number"?t.getArrayByIndex(r):t.getArrayByName(r),t.getArrayByName=r=>e.arrays.reduce((a,i,o)=>i.data.getName()===r?i.data:a,null),t.getArrayWithIndex=r=>{const a=e.arrays.findIndex(i=>i.data.getName()===r);return{array:a!==-1?e.arrays[a].data:null,index:a}},t.getArrayByIndex=r=>r>=0&&r<e.arrays.length?e.arrays[r].data:null,t.hasArray=r=>t.getArrayWithIndex(r).index>=0,t.getArrayName=r=>{const a=e.arrays[r];return a?a.data.getName():""},t.getCopyFieldFlags=()=>e.copyFieldFlags,t.getFlag=r=>e.copyFieldFlags[r],t.passData=function(r){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:-1,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:-1;r.getArrays().forEach(o=>{const s=t.getFlag(o.getName());if(s!==!1&&!(e.doCopyAllOff&&s!==!0)&&o){let l=t.getArrayByName(o.getName());if(l)if(o.getNumberOfComponents()===l.getNumberOfComponents())if(a>-1&&a<o.getNumberOfTuples()){const u=i>-1?i:a;l.insertTuple(u,o.getTuple(a))}else l.insertTuples(0,o.getTuples());else C6("Unhandled case in passData");else if(a<0||a>o.getNumberOfTuples())t.addArray(o),r.getAttributes(o).forEach(u=>{t.setAttribute(o,u)});else{const u=o.getNumberOfComponents();let c=o.getNumberOfValues();const f=i>-1?i:a;c<=f*u&&(c=(f+1)*u),l=zn.newInstance({name:o.getName(),dataType:o.getDataType(),numberOfComponents:u,values:J.newTypedArray(o.getDataType(),c),size:0}),l.insertTuple(f,o.getTuple(a)),t.addArray(l),r.getAttributes(o).forEach(d=>{t.setAttribute(l,d)})}}})},t.interpolateData=function(r){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:-1,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:-1,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:-1,s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:.5;r.getArrays().forEach(l=>{const u=t.getFlag(l.getName());if(u!==!1&&!(e.doCopyAllOff&&u!==!0)&&l){let c=t.getArrayByName(l.getName());if(c)if(l.getNumberOfComponents()===c.getNumberOfComponents())if(a>-1&&a<l.getNumberOfTuples()){const f=o>-1?o:a;c.interpolateTuple(f,l,a,l,i,s),Let("Unexpected case in interpolateData")}else c.insertTuples(l.getTuples());else C6("Unhandled case in interpolateData");else if(a<0||i<0||a>l.getNumberOfTuples())t.addArray(l),r.getAttributes(l).forEach(f=>{t.setAttribute(l,f)});else{const f=l.getNumberOfComponents();let d=l.getNumberOfValues();const h=o>-1?o:a;d<=h*f&&(d=(h+1)*f),c=zn.newInstance({name:l.getName(),dataType:l.getDataType(),numberOfComponents:f,values:J.newTypedArray(l.getDataType(),d),size:0}),c.interpolateTuple(h,l,a,l,i,s),t.addArray(c),r.getAttributes(l).forEach(p=>{t.setAttribute(c,p)})}}})},t.copyFieldOn=r=>{e.copyFieldFlags[r]=!0},t.copyFieldOff=r=>{e.copyFieldFlags[r]=!1},t.copyAllOn=()=>{(!e.doCopyAllOn||e.doCopyAllOff)&&(e.doCopyAllOn=!0,e.doCopyAllOff=!1,t.modified())},t.copyAllOff=()=>{(e.doCopyAllOn||!e.doCopyAllOff)&&(e.doCopyAllOn=!1,e.doCopyAllOff=!0,t.modified())},t.clearFieldFlags=()=>{e.copyFieldFlags={}},t.deepCopy=r=>{e.arrays=r.getArrays().map(a=>{const i=a.newClone();return i.deepCopy(a),{data:i}})},t.copyFlags=r=>r.getCopyFieldFlags().map(a=>a),t.reset=()=>e.arrays.forEach(r=>r.data.reset()),t.getMTime=()=>e.arrays.reduce((r,a)=>a.data.getMTime()>r?a.data.getMTime():r,e.mtime),t.getNumberOfComponents=()=>e.arrays.reduce((r,a)=>r+a.data.getNumberOfComponents(),0),t.getNumberOfTuples=()=>e.arrays.length>0?e.arrays[0].getNumberOfTuples():0,t.getState=()=>{const r=n();return r&&(r.arrays=e.arrays.map(a=>({data:a.data.getState()}))),r}}const Vet={arrays:[],copyFieldFlags:[],doCopyAllOn:!0,doCopyAllOff:!1};function Ite(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Vet,n),J.obj(t,e),Oet(t,e)}const Net=J.newInstance(Ite,"vtkFieldData");var Iet={newInstance:Net,extend:Ite};const Bet={SCALARS:0,VECTORS:1,NORMALS:2,TCOORDS:3,TENSORS:4,GLOBALIDS:5,PEDIGREEIDS:6,EDGEFLAG:7,NUM_ATTRIBUTES:8},$et={MAX:0,EXACT:1,NOLIMIT:2},Pet={DUPLICATECELL:1,HIGHCONNECTIVITYCELL:2,LOWCONNECTIVITYCELL:4,REFINEDCELL:8,EXTERIORCELL:16,HIDDENCELL:32},Fet={DUPLICATEPOINT:1,HIDDENPOINT:2},zet={COPYTUPLE:0,INTERPOLATE:1,PASSDATA:2,ALLCOPY:3},Uet="vtkGhostType",$2={DEFAULT:0,SINGLE:1,DOUBLE:2};var Bte={AttributeCopyOperations:zet,AttributeLimitTypes:$et,AttributeTypes:Bet,CellGhostTypes:Pet,DesiredOutputPrecision:$2,PointGhostTypes:Fet,ghostArrayName:Uet};const{AttributeTypes:Pc,AttributeCopyOperations:Md}=Bte,{vtkWarningMacro:aw}=J;function Get(t,e){const n=["Scalars","Vectors","Normals","TCoords","Tensors","GlobalIds","PedigreeIds"];function r(o){let s=n.find(l=>Pc[l.toUpperCase()]===o||typeof o!="number"&&l.toLowerCase()===o.toLowerCase());return typeof s>"u"&&(s=null),s}e.classHierarchy.push("vtkDataSetAttributes");const a={...t};t.checkNumberOfComponents=o=>!0,t.setAttribute=(o,s)=>{const l=r(s);if(o&&l.toUpperCase()==="PEDIGREEIDS"&&!o.isA("vtkDataArray"))return aw(`Cannot set attribute ${l}. The attribute must be a vtkDataArray.`),-1;if(o&&!t.checkNumberOfComponents(o,l))return aw(`Cannot set attribute ${l}. Incorrect number of components.`),-1;let u=e[`active${l}`];if(u>=0&&u<e.arrays.length){if(e.arrays[u]===o)return u;t.removeArrayByIndex(u)}return o?(u=t.addArray(o),e[`active${l}`]=u):e[`active${l}`]=-1,t.modified(),e[`active${l}`]},t.getAttributes=o=>n.filter(s=>t[`get${s}`]()===o),t.setActiveAttributeByName=(o,s)=>t.setActiveAttributeByIndex(t.getArrayWithIndex(o).index,s),t.setActiveAttributeByIndex=(o,s)=>{const l=r(s);if(o>=0&&o<e.arrays.length){if(l.toUpperCase()!=="PEDIGREEIDS"){const u=t.getArrayByIndex(o);if(!u.isA("vtkDataArray"))return aw(`Cannot set attribute ${l}. Only vtkDataArray subclasses can be set as active attributes.`),-1;if(!t.checkNumberOfComponents(u,l))return aw(`Cannot set attribute ${l}. Incorrect number of components.`),-1}return e[`active${l}`]=o,t.modified(),o}return o===-1&&(e[`active${l}`]=o,t.modified()),-1},t.getActiveAttribute=o=>{const s=r(o);return t[`get${s}`]()},t.removeAllArrays=()=>{n.forEach(o=>{e[`active${o}`]=-1}),a.removeAllArrays()},t.removeArrayByIndex=o=>(o!==-1&&n.forEach(s=>{o===e[`active${s}`]?e[`active${s}`]=-1:o<e[`active${s}`]&&(e[`active${s}`]-=1)}),a.removeArrayByIndex(o)),n.forEach(o=>{const s=`active${o}`;t[`get${o}`]=()=>t.getArrayByIndex(e[s]),t[`set${o}`]=l=>t.setAttribute(l,o),t[`setActive${o}`]=l=>t.setActiveAttributeByIndex(t.getArrayWithIndex(l).index,o),t[`copy${o}Off`]=()=>{const l=o.toUpperCase();e.copyAttributeFlags[Md.PASSDATA][Pc[l]]=!1},t[`copy${o}On`]=()=>{const l=o.toUpperCase();e.copyAttributeFlags[Md.PASSDATA][Pc[l]]=!0}}),t.initializeAttributeCopyFlags=()=>{e.copyAttributeFlags=[],Object.keys(Md).filter(o=>o!=="ALLCOPY").forEach(o=>{e.copyAttributeFlags[Md[o]]=Object.keys(Pc).filter(s=>s!=="NUM_ATTRIBUTES").reduce((s,l)=>(s[Pc[l]]=!0,s),[])}),e.copyAttributeFlags[Md.COPYTUPLE][Pc.GLOBALIDS]=!1,e.copyAttributeFlags[Md.INTERPOLATE][Pc.GLOBALIDS]=!1,e.copyAttributeFlags[Md.COPYTUPLE][Pc.PEDIGREEIDS]=!1},t.initialize=J.chain(t.initialize,t.initializeAttributeCopyFlags),e.dataArrays&&Object.keys(e.dataArrays).length&&Object.keys(e.dataArrays).forEach(o=>{!e.dataArrays[o].ref&&e.dataArrays[o].type==="vtkDataArray"&&t.addArray(zn.newInstance(e.dataArrays[o]))});const i=t.shallowCopy;t.shallowCopy=(o,s)=>{i(o,s),e.arrays=o.getArrays().map(l=>{const u=l.newClone();return u.shallowCopy(l,s),{data:u}})},t.initializeAttributeCopyFlags()}const Het={activeScalars:-1,activeVectors:-1,activeTensors:-1,activeNormals:-1,activeTCoords:-1,activeGlobalIds:-1,activePedigreeIds:-1};function $te(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Het,n),Iet.extend(t,e,n),J.setGet(t,e,["activeScalars","activeNormals","activeTCoords","activeVectors","activeTensors","activeGlobalIds","activePedigreeIds"]),e.arrays||(e.arrays={}),Get(t,e)}const Wet=J.newInstance($te,"vtkDataSetAttributes");var T6={newInstance:Wet,extend:$te,...Bte};const jet={UNIFORM:0,DATA_OBJECT_FIELD:0,COORDINATE:1,POINT_DATA:1,POINT:2,POINT_FIELD_DATA:2,CELL:3,CELL_FIELD_DATA:3,VERTEX:4,VERTEX_FIELD_DATA:4,EDGE:5,EDGE_FIELD_DATA:5,ROW:6,ROW_DATA:6},RN={FIELD_ASSOCIATION_POINTS:0,FIELD_ASSOCIATION_CELLS:1,FIELD_ASSOCIATION_NONE:2,FIELD_ASSOCIATION_POINTS_THEN_CELLS:3,FIELD_ASSOCIATION_VERTICES:4,FIELD_ASSOCIATION_EDGES:5,FIELD_ASSOCIATION_ROWS:6,NUMBER_OF_ASSOCIATIONS:7};var Ket={FieldDataTypes:jet,FieldAssociations:RN};const WL=["pointData","cellData","fieldData"];function Yet(t,e){e.classHierarchy.push("vtkDataSet"),WL.forEach(r=>{e[r]?e[r]=sl(e[r]):e[r]=T6.newInstance()});const n=t.shallowCopy;t.shallowCopy=function(r){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;n(r,a),WL.forEach(i=>{e[i]=T6.newInstance(),e[i].shallowCopy(r.getReferenceByName(i))})}}const Xet={};function Pte(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Xet,n),J.obj(t,e),J.setGet(t,e,WL),Yet(t,e)}const qet=J.newInstance(Pte,"vtkDataSet");var Ip={newInstance:qet,extend:Pte,...Ket};const js={UNCHANGED:0,SINGLE_POINT:1,X_LINE:2,Y_LINE:3,Z_LINE:4,XY_PLANE:5,YZ_PLANE:6,XZ_PLANE:7,XYZ_GRID:8,EMPTY:9};var Fte={StructuredType:js};const{StructuredType:Ru}=Fte;function Zet(t){let e=0;for(let n=0;n<3;++n)t[n*2]<t[n*2+1]&&e++;return t[0]>t[1]||t[2]>t[3]||t[4]>t[5]?Ru.EMPTY:e===3?Ru.XYZ_GRID:e===2?t[0]===t[1]?Ru.YZ_PLANE:t[2]===t[3]?Ru.XZ_PLANE:Ru.XY_PLANE:e===1?t[0]<t[1]?Ru.X_LINE:t[2]<t[3]?Ru.Y_LINE:Ru.Z_LINE:Ru.SINGLE_POINT}var Qet={getDataDescriptionFromExtent:Zet,...Fte};const{vtkErrorMacro:Dd}=J;function Jet(t,e){e.classHierarchy.push("vtkImageData"),t.setExtent=function(){if(e.deleted)return Dd("instance deleted - cannot call any method"),!1;for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];const i=r.length===1?r[0]:r;if(i.length!==6)return!1;const o=e.extent.some((s,l)=>s!==i[l]);return o&&(e.extent=i.slice(),e.dataDescription=Qet.getDataDescriptionFromExtent(e.extent),t.modified()),o},t.setDimensions=function(){let n,r,a;if(e.deleted){Dd("instance deleted - cannot call any method");return}if(arguments.length===1){const i=arguments.length<=0?void 0:arguments[0];n=i[0],r=i[1],a=i[2]}else if(arguments.length===3)n=arguments.length<=0?void 0:arguments[0],r=arguments.length<=1?void 0:arguments[1],a=arguments.length<=2?void 0:arguments[2];else{Dd("Bad dimension specification");return}t.setExtent(0,n-1,0,r-1,0,a-1)},t.getDimensions=()=>[e.extent[1]-e.extent[0]+1,e.extent[3]-e.extent[2]+1,e.extent[5]-e.extent[4]+1],t.getNumberOfCells=()=>{const n=t.getDimensions();let r=1;for(let a=0;a<3;a++){if(n[a]===0)return 0;n[a]>1&&(r*=n[a]-1)}return r},t.getNumberOfPoints=()=>{const n=t.getDimensions();return n[0]*n[1]*n[2]},t.getPoint=n=>{const r=t.getDimensions();if(r[0]===0||r[1]===0||r[2]===0)return Dd("Requesting a point from an empty image."),null;const a=new Float64Array(3);switch(e.dataDescription){case js.EMPTY:return null;case js.SINGLE_POINT:break;case js.X_LINE:a[0]=n;break;case js.Y_LINE:a[1]=n;break;case js.Z_LINE:a[2]=n;break;case js.XY_PLANE:a[0]=n%r[0],a[1]=n/r[0];break;case js.YZ_PLANE:a[1]=n%r[1],a[2]=n/r[1];break;case js.XZ_PLANE:a[0]=n%r[0],a[2]=n/r[0];break;case js.XYZ_GRID:a[0]=n%r[0],a[1]=n/r[0]%r[1],a[2]=n/(r[0]*r[1]);break;default:Dd("Invalid dataDescription");break}const i=[0,0,0];return t.indexToWorld(a,i),i},t.getBounds=()=>t.extentToBounds(t.getSpatialExtent()),t.extentToBounds=n=>Jr.transformBounds(n,e.indexToWorld),t.getSpatialExtent=()=>Jr.inflate([...e.extent],.5),t.computeTransforms=()=>{CJ(e.indexToWorld,e.origin),e.indexToWorld[0]=e.direction[0],e.indexToWorld[1]=e.direction[1],e.indexToWorld[2]=e.direction[2],e.indexToWorld[4]=e.direction[3],e.indexToWorld[5]=e.direction[4],e.indexToWorld[6]=e.direction[5],e.indexToWorld[8]=e.direction[6],e.indexToWorld[9]=e.direction[7],e.indexToWorld[10]=e.direction[8],gp(e.indexToWorld,e.indexToWorld,e.spacing),eo(e.worldToIndex,e.indexToWorld)},t.indexToWorld=function(n){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return _r(r,n,e.indexToWorld),r},t.indexToWorldVec3=t.indexToWorld,t.worldToIndex=function(n){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return _r(r,n,e.worldToIndex),r},t.worldToIndexVec3=t.worldToIndex,t.indexToWorldBounds=function(n){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return Jr.transformBounds(n,e.indexToWorld,r)},t.worldToIndexBounds=function(n){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return Jr.transformBounds(n,e.worldToIndex,r)},t.onModified(t.computeTransforms),t.computeTransforms(),t.getCenter=()=>Jr.getCenter(t.getBounds()),t.computeHistogram=function(n){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;const a=[0,0,0,0,0,0];t.worldToIndexBounds(n,a);const i=[0,0,0],o=[0,0,0];Jr.computeCornerPoints(a,i,o),$L(i,i),$L(o,o);const s=t.getDimensions();FL(i,[0,0,0],[s[0]-1,s[1]-1,s[2]-1],i),FL(o,[0,0,0],[s[0]-1,s[1]-1,s[2]-1],o);const l=s[0],u=s[0]*s[1],c=t.getPointData().getScalars().getData();let f=-1/0,d=1/0,h=0,p=0,v=0;for(let S=i[2];S<=o[2];S++)for(let w=i[1];w<=o[1];w++){let C=i[0]+w*l+S*u;for(let _=i[0];_<=o[0];_++){if(!r||r([_,w,S],a)){const x=c[C];x>f&&(f=x),x<d&&(d=x),h+=x*x,p+=x,v+=1}++C}}const g=v>0?p/v:0,y=v?Math.abs(h/v-g*g):0,m=Math.sqrt(y);return{minimum:d,maximum:f,average:g,variance:y,sigma:m,count:v}},t.computeIncrements=function(n){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;const a=[];let i=r;for(let o=0;o<3;++o)a[o]=i,i*=n[o*2+1]-n[o*2]+1;return a},t.computeOffsetIndex=n=>{let[r,a,i]=n;const o=t.getExtent(),s=t.getPointData().getScalars().getNumberOfComponents(),l=t.computeIncrements(o,s);return Math.floor((Math.round(r)-o[0])*l[0]+(Math.round(a)-o[2])*l[1]+(Math.round(i)-o[4])*l[2])},t.getOffsetIndexFromWorld=n=>{const r=t.getExtent(),a=t.worldToIndex(n);for(let i=0;i<3;++i)if(a[i]<r[i*2]||a[i]>r[i*2+1])return Dd(`GetScalarPointer: Pixel ${a} is not in memory. Current extent = ${r}`),NaN;return t.computeOffsetIndex(a)},t.getScalarValueFromWorld=function(n){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;const a=t.getPointData().getScalars().getNumberOfComponents();if(r<0||r>=a)return Dd(`GetScalarPointer: Scalar Component ${r} is not within bounds. Current Scalar numberOfComponents: ${a}`),NaN;const i=t.getOffsetIndexFromWorld(n);return Number.isNaN(i)?i:t.getPointData().getScalars().getComponent(i,r)}}const ett={direction:null,indexToWorld:null,worldToIndex:null,spacing:[1,1,1],origin:[0,0,0],extent:[0,-1,0,-1,0,-1],dataDescription:js.EMPTY};function zte(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,ett,n),Ip.extend(t,e,n),e.direction?Array.isArray(e.direction)&&(e.direction=new Float64Array(e.direction.slice(0,9))):e.direction=Vp(new Float64Array(9)),e.indexToWorld=new Float64Array(16),e.worldToIndex=new Float64Array(16),J.get(t,e,["indexToWorld","worldToIndex"]),J.setGetArray(t,e,["origin","spacing"],3),J.setGetArray(t,e,["direction"],9),J.getArray(t,e,["extent"],6),Jet(t,e)}const ttt=J.newInstance(zte,"vtkImageData");var Ute={newInstance:ttt,extend:zte};const ntt={MAGNITUDE:0,COMPONENT:1,RGBCOLORS:2},jL={LUMINANCE:1,LUMINANCE_ALPHA:2,RGB:3,RGBA:4};var LN={VectorMode:ntt,ScalarMappingTarget:jL};const rtt={DEFAULT:0,MAP_SCALARS:1,DIRECT_SCALARS:2},att={DEFAULT:0,USE_POINT_DATA:1,USE_CELL_DATA:2,USE_POINT_FIELD_DATA:3,USE_CELL_FIELD_DATA:4,USE_FIELD_DATA:5},itt={BY_ID:0,BY_NAME:1};var HT={ColorMode:rtt,GetArray:itt,ScalarMode:att};const{ScalarMappingTarget:E6,VectorMode:zl}=LN,{VtkDataTypes:Ad}=zn,{ColorMode:iw}=HT,{vtkErrorMacro:M6}=J;function ott(t){return t}function D6(t){return Math.floor(t*255+.5)}function stt(t,e){e.classHierarchy.push("vtkScalarsToColors"),t.setVectorModeToMagnitude=()=>t.setVectorMode(zl.MAGNITUDE),t.setVectorModeToComponent=()=>t.setVectorMode(zl.COMPONENT),t.setVectorModeToRGBColors=()=>t.setVectorMode(zl.RGBCOLORS),t.build=()=>{},t.isOpaque=()=>!0,t.setAnnotations=(n,r)=>{if(!(n&&!r||!n&&r)){if(n&&r&&n.length!==r.length){M6("Values and annotations do not have the same number of tuples so ignoring");return}if(e.annotationArray=[],r&&n){const a=r.length;for(let i=0;i<a;i++)e.annotationArray.push({value:n[i],annotation:String(r[i])})}t.updateAnnotatedValueMap(),t.modified()}},t.setAnnotation=(n,r)=>{let a=t.checkForAnnotatedValue(n),i=!1;return a>=0?e.annotationArray[a].annotation!==r&&(e.annotationArray[a].annotation=r,i=!0):(e.annotationArray.push({value:n,annotation:r}),a=e.annotationArray.length-1,i=!0),i&&(t.updateAnnotatedValueMap(),t.modified()),a},t.getNumberOfAnnotatedValues=()=>e.annotationArray.length,t.getAnnotatedValue=n=>n<0||n>=e.annotationArray.length?null:e.annotationArray[n].value,t.getAnnotation=n=>e.annotationArray[n]===void 0?null:e.annotationArray[n].annotation,t.getAnnotatedValueIndex=n=>e.annotationArray.length?t.checkForAnnotatedValue(n):-1,t.removeAnnotation=n=>{const r=t.checkForAnnotatedValue(n),a=r>=0;return a&&(e.annotationArray.splice(r,1),t.updateAnnotatedValueMap(),t.modified()),a},t.resetAnnotations=()=>{e.annotationArray=[],e.annotatedValueMap=[],t.modified()},t.getAnnotationColor=(n,r)=>{if(e.indexedLookup){const a=t.getAnnotatedValueIndex(n);t.getIndexedColor(a,r)}else t.getColor(parseFloat(n),r),r[3]=1},t.checkForAnnotatedValue=n=>t.getAnnotatedValueIndexInternal(n),t.getAnnotatedValueIndexInternal=n=>{if(e.annotatedValueMap[n]!==void 0){const r=e.annotationArray.length;return e.annotatedValueMap[n]%r}return-1},t.getIndexedColor=(n,r)=>{r[0]=0,r[1]=0,r[2]=0,r[3]=0},t.updateAnnotatedValueMap=()=>{e.annotatedValueMap=[];const n=e.annotationArray.length;for(let r=0;r<n;r++)e.annotatedValueMap[e.annotationArray[r].value]=r},t.mapScalars=(n,r,a)=>{const i=n.getNumberOfComponents();let o=null;if(r===iw.DEFAULT&&n.getDataType()===Ad.UNSIGNED_CHAR||r===iw.DIRECT_SCALARS&&n)o=t.convertToRGBA(n,i,n.getNumberOfTuples());else{const s={type:"vtkDataArray",name:"temp",numberOfComponents:4,dataType:Ad.UNSIGNED_CHAR},l=J.newTypedArray(s.dataType,4*n.getNumberOfTuples());s.values=l,s.size=l.length,o=zn.newInstance(s);let u=a;u<0&&i>1?t.mapVectorsThroughTable(n,o,E6.RGBA,-1,-1):(u<0&&(u=0),u>=i&&(u=i-1),t.mapScalarsThroughTable(n,o,E6.RGBA,u))}return o},t.mapVectorsToMagnitude=(n,r,a)=>{const i=n.getNumberOfTuples(),o=n.getNumberOfComponents(),s=r.getData(),l=n.getData();for(let u=0;u<i;u++){let c=0;for(let f=0;f<a;f++)c+=l[u*o+f]*l[u*o+f];s[u]=Math.sqrt(c)}},t.mapVectorsThroughTable=(n,r,a,i,o)=>{let s=t.getVectorMode(),l=o,u=i;const c=n.getNumberOfComponents();s===zl.COMPONENT?(u===-1&&(u=t.getVectorComponent()),u<0&&(u=0),u>=c&&(u=c-1)):(l===-1&&(l=t.getVectorSize()),l<=0?(u=0,l=c):(u<0&&(u=0),u>=c&&(u=c-1),u+l>c&&(l=c-u)),s===zl.MAGNITUDE&&(c===1||l===1)&&(s=zl.COMPONENT));let f=0;switch(u>0&&(f=u),s){case zl.COMPONENT:{t.mapScalarsThroughTable(n,r,a,f);break}case zl.RGBCOLORS:break;case zl.MAGNITUDE:default:{const d=zn.newInstance({numberOfComponents:1,values:new Float32Array(n.getNumberOfTuples())});t.mapVectorsToMagnitude(n,d,l),t.mapScalarsThroughTable(d,r,a,0);break}}},t.luminanceToRGBA=(n,r,a,i)=>{const o=i(a),s=r.getData(),l=n.getData(),u=s.length,c=0,f=1;let d=0;for(let h=c;h<u;h+=f){const p=i(s[h]);l[d*4]=p,l[d*4+1]=p,l[d*4+2]=p,l[d*4+3]=o,d++}},t.luminanceAlphaToRGBA=(n,r,a,i)=>{const o=r.getData(),s=n.getData(),l=o.length,u=0,c=2;let f=0;for(let d=u;d<l;d+=c){const h=i(o[d]);s[f]=h,s[f+1]=h,s[f+2]=h,s[f+3]=i(o[d+1])*a,f+=4}},t.rGBToRGBA=(n,r,a,i)=>{const o=D6(a),s=r.getData(),l=n.getData(),u=s.length,c=0,f=3;let d=0;for(let h=c;h<u;h+=f)l[d*4]=i(s[h]),l[d*4+1]=i(s[h+1]),l[d*4+2]=i(s[h+2]),l[d*4+3]=o,d++},t.rGBAToRGBA=(n,r,a,i)=>{const o=r.getData(),s=n.getData(),l=o.length,u=0,c=4;let f=0;for(let d=u;d<l;d+=c)s[f*4]=i(o[d]),s[f*4+1]=i(o[d+1]),s[f*4+2]=i(o[d+2]),s[f*4+3]=i(o[d+3])*a,f++},t.convertToRGBA=(n,r,a)=>{let{alpha:i}=e;if(r===4&&i>=1&&n.getDataType()===Ad.UNSIGNED_CHAR)return n;const o=zn.newInstance({numberOfComponents:4,empty:!0,size:4*a,dataType:Ad.UNSIGNED_CHAR});if(a<=0)return o;i=i>0?i:0,i=i<1?i:1;let s=ott;switch((n.getDataType()===Ad.FLOAT||n.getDataType()===Ad.DOUBLE)&&(s=D6),r){case 1:t.luminanceToRGBA(o,n,i,s);break;case 2:t.luminanceAlphaToRGBA(o,n,s);break;case 3:t.rGBToRGBA(o,n,i,s);break;case 4:t.rGBAToRGBA(o,n,i,s);break;default:return M6("Cannot convert colors"),null}return o},t.usingLogScale=()=>!1,t.getNumberOfAvailableColors=()=>256*256*256,t.setRange=(n,r)=>t.setMappingRange(n,r),t.getRange=()=>t.getMappingRange(),t.areScalarsOpaque=(n,r,a)=>{if(!n)return t.isOpaque();const i=n.getNumberOfComponents();return r===iw.DEFAULT&&n.getDataType()===Ad.UNSIGNED_CHAR||r===iw.DIRECT_SCALARS?i===3||i===1?e.alpha>=1:n.getRange(i-1)[0]===255:!0}}const ltt={alpha:1,vectorComponent:0,vectorSize:-1,vectorMode:zl.COMPONENT,mappingRange:null,annotationArray:null,annotatedValueMap:null,indexedLookup:!1};function Gte(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,ltt,n),J.obj(t,e),e.mappingRange=[0,255],e.annotationArray=[],e.annotatedValueMap=[],J.setGet(t,e,["vectorSize","vectorComponent","vectorMode","alpha","indexedLookup"]),J.setArray(t,e,["mappingRange"],2),J.getArray(t,e,["mappingRange"]),stt(t,e)}const utt=J.newInstance(Gte,"vtkScalarsToColors");var WT={newInstance:utt,extend:Gte,...LN};const{vtkErrorMacro:A6}=J,k6=0,R6=1,ZM=2;function ctt(t,e){e.classHierarchy.push("vtkLookupTable"),t.isOpaque=()=>{if(e.opaqueFlagBuildTime.getMTime()<t.getMTime()){let n=!0;e.nanColor[3]<1&&(n=0),e.useBelowRangeColor&&e.belowRangeColor[3]<1&&(n=0),e.useAboveRangeColor&&e.aboveRangeColor[3]<1&&(n=0);for(let r=3;r<e.table.length&&n;r+=4)e.table[r]<255&&(n=!1);e.opaqueFlag=n,e.opaqueFlagBuildTime.modified()}return e.opaqueFlag},t.usingLogScale=()=>!1,t.getNumberOfAvailableColors=()=>e.table.length/4,t.linearIndexLookup=(n,r)=>{let a=0;const i=Number(n);return i<r.range[0]?a=r.maxIndex+k6+1.5:i>r.range[1]?a=r.maxIndex+R6+1.5:(a=(i+r.shift)*r.scale,a=a<r.maxIndex?a:r.maxIndex),Math.floor(a)},t.linearLookup=(n,r,a)=>{let i=0;V2(n)?i=Math.floor(a.maxIndex+1.5+ZM):i=t.linearIndexLookup(n,a);const o=4*i;return r.slice(o,o+4)},t.indexedLookupFunction=(n,r,a)=>{let i=t.getAnnotatedValueIndexInternal(n);i===-1&&(i=e.numberOfColors+ZM);const o=4*i;return[r[o],r[o+1],r[o+2],r[o+3]]},t.lookupShiftAndScale=(n,r)=>{r.shift=-n[0],r.scale=Number.MAX_VALUE,n[1]>n[0]&&(r.scale=(r.maxIndex+1)/(n[1]-n[0]))},t.mapScalarsThroughTable=(n,r,a,i)=>{let o=t.linearLookup;e.indexedLookup&&(o=t.indexedLookupFunction);const s=t.getMappingRange(),l={maxIndex:t.getNumberOfColors()-1,range:s,shift:0,scale:0};t.lookupShiftAndScale(s,l);const u=t.getAlpha(),c=n.getNumberOfTuples(),f=n.getNumberOfComponents(),d=r.getData(),h=n.getData();if(u>=1){if(a===jL.RGBA)for(let p=0;p<c;p++){const v=o(h[p*f+i],e.table,l);d[p*4]=v[0],d[p*4+1]=v[1],d[p*4+2]=v[2],d[p*4+3]=v[3]}}else if(a===jL.RGBA)for(let p=0;p<c;p++){const v=o(h[p*f+i],e.table,l);d[p*4]=v[0],d[p*4+1]=v[1],d[p*4+2]=v[2],d[p*4+3]=Math.floor(v[3]*u+.5)}},t.forceBuild=()=>{let n=0,r=0,a=0,i=0;const o=e.numberOfColors-1;o&&(n=(e.hueRange[1]-e.hueRange[0])/o,r=(e.saturationRange[1]-e.saturationRange[0])/o,a=(e.valueRange[1]-e.valueRange[0])/o,i=(e.alphaRange[1]-e.alphaRange[0])/o),e.table.length=4*o+16;const s=[],l=[];for(let u=0;u<=o;u++)s[0]=e.hueRange[0]+u*n,s[1]=e.saturationRange[0]+u*r,s[2]=e.valueRange[0]+u*a,xh(s,l),l[3]=e.alphaRange[0]+u*i,e.table[u*4]=l[0]*255+.5,e.table[u*4+1]=l[1]*255+.5,e.table[u*4+2]=l[2]*255+.5,e.table[u*4+3]=l[3]*255+.5;t.buildSpecialColors(),e.buildTime.modified()},t.setTable=n=>{if(Array.isArray(n)){const a=n[0].length;e.numberOfColors=n.length;const i=4-a;let o=0;for(let s=0;s<e.numberOfColors;s++)e.table[s*4]=255,e.table[s*4+1]=255,e.table[s*4+2]=255,e.table[s*4+3]=255;for(let s=0;s<n.length;s++){const l=n[s];for(let u=0;u<a;u++)e.table[o++]=l[u];o+=i}return t.buildSpecialColors(),e.insertTime.modified(),t.modified(),!0}if(n.getNumberOfComponents()!==4)return A6("Expected 4 components for RGBA colors"),!1;if(n.getDataType()!==Va.UNSIGNED_CHAR)return A6("Expected unsigned char values for RGBA colors"),!1;e.numberOfColors=n.getNumberOfTuples();const r=n.getData();e.table.length=r.length;for(let a=0;a<r.length;a++)e.table[a]=r[a];return t.buildSpecialColors(),e.insertTime.modified(),t.modified(),!0},t.buildSpecialColors=()=>{const{numberOfColors:n}=e,r=e.table;let a=(n+k6)*4;e.useBelowRangeColor||n===0?(r[a]=e.belowRangeColor[0]*255+.5,r[a+1]=e.belowRangeColor[1]*255+.5,r[a+2]=e.belowRangeColor[2]*255+.5,r[a+3]=e.belowRangeColor[3]*255+.5):(r[a]=r[0],r[a+1]=r[1],r[a+2]=r[2],r[a+3]=r[3]),a=(n+R6)*4,e.useAboveRangeColor||n===0?(r[a]=e.aboveRangeColor[0]*255+.5,r[a+1]=e.aboveRangeColor[1]*255+.5,r[a+2]=e.aboveRangeColor[2]*255+.5,r[a+3]=e.aboveRangeColor[3]*255+.5):(r[a]=r[4*(n-1)+0],r[a+1]=r[4*(n-1)+1],r[a+2]=r[4*(n-1)+2],r[a+3]=r[4*(n-1)+3]),a=(n+ZM)*4,r[a]=e.nanColor[0]*255+.5,r[a+1]=e.nanColor[1]*255+.5,r[a+2]=e.nanColor[2]*255+.5,r[a+3]=e.nanColor[3]*255+.5},t.build=()=>{(e.table.length<1||t.getMTime()>e.buildTime.getMTime()&&e.insertTime.getMTime()<=e.buildTime.getMTime())&&t.forceBuild()},e.table.length>0&&(t.buildSpecialColors(),e.insertTime.modified())}const ftt={numberOfColors:256,hueRange:[0,.66667],saturationRange:[1,1],valueRange:[1,1],alphaRange:[1,1],nanColor:[.5,0,0,1],belowRangeColor:[0,0,0,1],aboveRangeColor:[1,1,1,1],useAboveRangeColor:!1,useBelowRangeColor:!1,alpha:1};function Hte(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,ftt,n),WT.extend(t,e,n),e.table||(e.table=[]),e.buildTime={},J.obj(e.buildTime),e.opaqueFlagBuildTime={},J.obj(e.opaqueFlagBuildTime,{mtime:0}),e.insertTime={},J.obj(e.insertTime,{mtime:0}),J.get(t,e,["buildTime"]),J.setGet(t,e,["numberOfColors","useAboveRangeColor","useBelowRangeColor"]),J.setArray(t,e,["alphaRange","hueRange","saturationRange","valueRange"],2),J.setArray(t,e,["nanColor","belowRangeColor","aboveRangeColor"],4),J.getArray(t,e,["hueRange","saturationRange","valueRange","alphaRange","nanColor","belowRangeColor","aboveRangeColor"]),ctt(t,e)}const dtt=J.newInstance(Hte,"vtkLookupTable");var Yv={newInstance:dtt,extend:Hte};let Wte=1,ON=0;const htt=["VTK_RESOLVE_OFF","VTK_RESOLVE_POLYGON_OFFSET"];function ptt(){return Wte}function vtt(t){Wte=t}function gtt(){return ON}function jT(){ON=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0}function ytt(){jT(0)}function mtt(){jT(0)}function btt(){jT(1)}function Stt(){return htt[ON]}var KL={getResolveCoincidentTopologyAsString:Stt,getResolveCoincidentTopologyPolygonOffsetFaces:ptt,getResolveCoincidentTopology:gtt,setResolveCoincidentTopology:jT,setResolveCoincidentTopologyPolygonOffsetFaces:vtt,setResolveCoincidentTopologyToDefault:ytt,setResolveCoincidentTopologyToOff:mtt,setResolveCoincidentTopologyToPolygonOffset:btt};function jte(t,e,n){n.forEach(r=>{t[`get${r.method}`]=()=>e[r.key],t[`set${r.method}`]=(a,i)=>{e[r.key]={factor:a,offset:i}}})}const VN=["Polygon","Line","Point"],wtt={Polygon:{factor:2,offset:0},Line:{factor:1,offset:-1},Point:{factor:0,offset:-2}},_h={};jte(_h,wtt,VN.map(t=>({key:t,method:`ResolveCoincidentTopology${t}OffsetParameters`})));function xtt(t,e){e.resolveCoincidentTopology===void 0&&(e.resolveCoincidentTopology=!1),J.setGet(t,e,["resolveCoincidentTopology"]),e.topologyOffset={Polygon:{factor:0,offset:0},Line:{factor:0,offset:0},Point:{factor:0,offset:0}},Object.keys(KL).forEach(n=>{t[n]=KL[n]}),Object.keys(_h).forEach(n=>{t[n]=_h[n]}),jte(t,e.topologyOffset,VN.map(n=>({key:n,method:`RelativeCoincidentTopology${n}OffsetParameters`}))),t.getCoincidentTopologyPolygonOffsetParameters=()=>{const n=_h.getResolveCoincidentTopologyPolygonOffsetParameters(),r=t.getRelativeCoincidentTopologyPolygonOffsetParameters();return{factor:n.factor+r.factor,offset:n.offset+r.offset}},t.getCoincidentTopologyLineOffsetParameters=()=>{const n=_h.getResolveCoincidentTopologyLineOffsetParameters(),r=t.getRelativeCoincidentTopologyLineOffsetParameters();return{factor:n.factor+r.factor,offset:n.offset+r.offset}},t.getCoincidentTopologyPointOffsetParameter=()=>{const n=_h.getResolveCoincidentTopologyPointOffsetParameters(),r=t.getRelativeCoincidentTopologyPointOffsetParameters();return{factor:n.factor+r.factor,offset:n.offset+r.offset}}}var Kte={implementCoincidentTopologyMethods:xtt,staticOffsetAPI:_h,otherStaticMethods:KL,CATEGORIES:VN};const Xi={MIN_KNOWN_PASS:0,ACTOR_PASS:0,COMPOSITE_INDEX_PASS:1,ID_LOW24:2,ID_HIGH24:3,MAX_KNOWN_PASS:3};var Yte={PassTypes:Xi};const{FieldAssociations:L6}=Ip,{staticOffsetAPI:_tt,otherStaticMethods:Ctt}=Kte,{ColorMode:QM,ScalarMode:kd,GetArray:JM}=HT,{VectorMode:Ttt}=LN,{VtkDataTypes:Ett}=zn;function dy(t){return()=>J.vtkErrorMacro(`vtkMapper::${t} - NOT IMPLEMENTED`)}function Mtt(t,e){e.classHierarchy.push("vtkMapper"),t.getBounds=()=>{const n=t.getInputData();return n?(e.static||t.update(),e.bounds=n.getBounds()):e.bounds=zT(),e.bounds},t.setForceCompileOnly=n=>{e.forceCompileOnly=n},t.setSelectionWebGLIdsToVTKIds=n=>{e.selectionWebGLIdsToVTKIds=n},t.createDefaultLookupTable=()=>{e.lookupTable=Yv.newInstance()},t.getColorModeAsString=()=>J.enumToString(QM,e.colorMode),t.setColorModeToDefault=()=>t.setColorMode(0),t.setColorModeToMapScalars=()=>t.setColorMode(1),t.setColorModeToDirectScalars=()=>t.setColorMode(2),t.getScalarModeAsString=()=>J.enumToString(kd,e.scalarMode),t.setScalarModeToDefault=()=>t.setScalarMode(0),t.setScalarModeToUsePointData=()=>t.setScalarMode(1),t.setScalarModeToUseCellData=()=>t.setScalarMode(2),t.setScalarModeToUsePointFieldData=()=>t.setScalarMode(3),t.setScalarModeToUseCellFieldData=()=>t.setScalarMode(4),t.setScalarModeToUseFieldData=()=>t.setScalarMode(5),t.getAbstractScalars=(n,r,a,i,o)=>{if(!n||!e.scalarVisibility)return{scalars:null,cellFLag:!1};let s=null,l=!1;if(r===kd.DEFAULT)s=n.getPointData().getScalars(),s||(s=n.getCellData().getScalars(),l=!0);else if(r===kd.USE_POINT_DATA)s=n.getPointData().getScalars();else if(r===kd.USE_CELL_DATA)s=n.getCellData().getScalars(),l=!0;else if(r===kd.USE_POINT_FIELD_DATA){const u=n.getPointData();a===JM.BY_ID?s=u.getArrayByIndex(i):s=u.getArrayByName(o)}else if(r===kd.USE_CELL_FIELD_DATA){const u=n.getCellData();l=!0,a===JM.BY_ID?s=u.getArrayByIndex(i):s=u.getArrayByName(o)}else if(r===kd.USE_FIELD_DATA){const u=n.getFieldData();a===JM.BY_ID?s=u.getArrayByIndex(i):s=u.getArrayByName(o)}return{scalars:s,cellFlag:l}},t.mapScalars=(n,r)=>{const a=t.getAbstractScalars(n,e.scalarMode,e.arrayAccessMode,e.arrayId,e.colorByArrayName).scalars;if(!a){e.colorCoordinates=null,e.colorTextureMap=null,e.colorMapColors=null;return}const i=`${t.getMTime()}${a.getMTime()}${r}`;if(e.colorBuildString!==i){if(e.useLookupTableScalarRange||t.getLookupTable().setRange(e.scalarRange[0],e.scalarRange[1]),t.canUseTextureMapForColoring(n))t.mapScalarsToTexture(a,r);else{e.colorCoordinates=null,e.colorTextureMap=null;const o=t.getLookupTable();o&&(o.build(),e.colorMapColors=o.mapScalars(a,e.colorMode,e.fieldDataTupleId))}e.colorBuildString=`${t.getMTime()}${a.getMTime()}${r}`}},t.scalarToTextureCoordinate=(n,r,a)=>{let i=.5,o=1;return V2(n)||(o=.49,i=(n-r)*a,i>1e3?i=1e3:i<-1e3&&(i=-1e3)),{texCoordS:i,texCoordT:o}},t.createColorTextureCoordinates=(n,r,a,i,o,s,l,u,c)=>{const f=(s[1]-s[0])/u,d=[];d[0]=s[0]-f,d[1]=s[1]+f;const h=1/(d[1]-d[0]),p=r.getData(),v=n.getData();let g=0,y=0;if(o<0||o>=i)for(let m=0;m<a;++m){let S=0;for(let _=0;_<i;++_)S+=v[g]*v[g],g++;let w=Math.sqrt(S);c&&(w=Yv.applyLogScale(w,l,s));const C=t.scalarToTextureCoordinate(w,d[0],h);p[y]=C.texCoordS,p[y+1]=C.texCoordT,y+=2}else{g+=o;for(let m=0;m<a;++m){let S=v[g];c&&(S=Yv.applyLogScale(S,l,s));const w=t.scalarToTextureCoordinate(S,d[0],h);p[y]=w.texCoordS,p[y+1]=w.texCoordT,y+=2,g+=i}}},t.mapScalarsToTexture=(n,r)=>{const a=e.lookupTable.getRange(),i=e.lookupTable.usingLogScale();i&&Yv.getLogRange(a,a);const o=e.lookupTable.getAlpha();if(e.colorMapColors=null,e.colorTextureMap==null||t.getMTime()>e.colorTextureMap.getMTime()||e.lookupTable.getMTime()>e.colorTextureMap.getMTime()||e.lookupTable.getAlpha()!==r){e.lookupTable.setAlpha(r),e.colorTextureMap=null,e.lookupTable.build();let s=e.lookupTable.getNumberOfAvailableColors();s>4094&&(s=4094),s<64&&(s=64),s+=2;const l=(a[1]-a[0])/(s-2),u=new Float64Array(s*2);for(let f=0;f<s;++f)u[f]=a[0]+f*l-l/2,i&&(u[f]=10**u[f]);for(let f=0;f<s;++f)u[f+s]=NaN;e.colorTextureMap=Ute.newInstance(),e.colorTextureMap.setExtent(0,s-1,0,1,0,0);const c=zn.newInstance({numberOfComponents:1,values:u});e.colorTextureMap.getPointData().setScalars(e.lookupTable.mapScalars(c,e.colorMode,0)),e.lookupTable.setAlpha(o)}if(!e.colorCoordinates||t.getMTime()>e.colorCoordinates.getMTime()||t.getInputData(0).getMTime()>e.colorCoordinates.getMTime()||e.lookupTable.getMTime()>e.colorCoordinates.getMTime()){e.colorCoordinates=null;const s=n.getNumberOfComponents(),l=n.getNumberOfTuples();e.colorCoordinates=zn.newInstance({numberOfComponents:2,values:new Float32Array(l*2)});let u=e.lookupTable.getVectorComponent();e.lookupTable.getVectorMode()===Ttt.MAGNITUDE&&n.getNumberOfComponents()>1&&(u=-1),t.createColorTextureCoordinates(n,e.colorCoordinates,l,s,u,a,e.lookupTable.getRange(),e.colorTextureMap.getPointData().getScalars().getNumberOfTuples()/2-2,i)}},t.getIsOpaque=()=>{const n=t.getInputData(),a=t.getAbstractScalars(n,e.scalarMode,e.arrayAccessMode,e.arrayId,e.colorByArrayName).scalars;if(!e.scalarVisibility||a==null)return!0;const i=t.getLookupTable();return i?(i.build(),i.areScalarsOpaque(a,e.colorMode,-1)):!0},t.canUseTextureMapForColoring=n=>{if(!e.interpolateScalarsBeforeMapping||e.lookupTable&&e.lookupTable.getIndexedLookup())return!1;const r=t.getAbstractScalars(n,e.scalarMode,e.arrayAccessMode,e.arrayId,e.colorByArrayName),a=r.scalars;return!(!a||r.cellFlag||e.colorMode===QM.DEFAULT&&a.getDataType()===Ett.UNSIGNED_CHAR||e.colorMode===QM.DIRECT_SCALARS)},t.clearColorArrays=()=>{e.colorMapColors=null,e.colorCoordinates=null,e.colorTextureMap=null},t.getLookupTable=()=>(e.lookupTable||t.createDefaultLookupTable(),e.lookupTable),t.getMTime=()=>{let n=e.mtime;if(e.lookupTable!==null){const r=e.lookupTable.getMTime();n=r>n?r:n}return n},t.getPrimitiveCount=()=>{const n=t.getInputData();return{points:n.getPoints().getNumberOfValues()/3,verts:n.getVerts().getNumberOfValues()-n.getVerts().getNumberOfCells(),lines:n.getLines().getNumberOfValues()-2*n.getLines().getNumberOfCells(),triangles:n.getPolys().getNumberOfValues()-3*n.getPolys().getNumberOfCells()}},t.acquireInvertibleLookupTable=dy("AcquireInvertibleLookupTable"),t.valueToColor=dy("ValueToColor"),t.colorToValue=dy("ColorToValue"),t.useInvertibleColorFor=dy("UseInvertibleColorFor"),t.clearInvertibleColor=dy("ClearInvertibleColor"),t.processSelectorPixelBuffers=(n,r)=>{if(!n||!e.selectionWebGLIdsToVTKIds||!e.populateSelectionSettings)return;const a=n.getRawPixelBuffer(Xi.ID_LOW24),i=n.getRawPixelBuffer(Xi.ID_HIGH24),o=n.getCurrentPass(),s=n.getFieldAssociation();let l=null;s===L6.FIELD_ASSOCIATION_POINTS?l=e.selectionWebGLIdsToVTKIds.points:s===L6.FIELD_ASSOCIATION_CELLS&&(l=e.selectionWebGLIdsToVTKIds.cells),l&&r.forEach(u=>{if(o===Xi.ID_LOW24){let c=0;i&&(c+=i[u],c*=256),c+=a[u+2],c*=256,c+=a[u+1],c*=256,c+=a[u];const f=l[c],d=n.getPixelBuffer(Xi.ID_LOW24);d[u]=f&255,d[u+1]=(f&65280)>>8,d[u+2]=(f&16711680)>>16}else if(o===Xi.ID_HIGH24&&i){let c=0;c+=i[u],c*=256,c+=a[u],c*=256,c+=a[u+1],c*=256,c+=a[u+2];const f=l[c],d=n.getPixelBuffer(Xi.ID_HIGH24);d[u]=(f&4278190080)>>24}})}}const Dtt={colorMapColors:null,static:!1,lookupTable:null,scalarVisibility:!0,scalarRange:[0,1],useLookupTableScalarRange:!1,colorMode:0,scalarMode:0,arrayAccessMode:1,renderTime:0,colorByArrayName:null,fieldDataTupleId:-1,populateSelectionSettings:!0,selectionWebGLIdsToVTKIds:null,interpolateScalarsBeforeMapping:!1,colorCoordinates:null,colorTextureMap:null,forceCompileOnly:0,useInvertibleColors:!1,invertibleScalars:null,customShaderAttributes:[]};function Xte(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Dtt,n),Ret.extend(t,e,n),J.get(t,e,["colorCoordinates","colorMapColors","colorTextureMap","selectionWebGLIdsToVTKIds"]),J.setGet(t,e,["colorByArrayName","arrayAccessMode","colorMode","fieldDataTupleId","interpolateScalarsBeforeMapping","lookupTable","populateSelectionSettings","renderTime","scalarMode","scalarVisibility","static","useLookupTableScalarRange","customShaderAttributes"]),J.setGetArray(t,e,["scalarRange"],2),Kte.implementCoincidentTopologyMethods(t,e),Mtt(t,e)}const Att=J.newInstance(Xte,"vtkMapper");var Pr={newInstance:Att,extend:Xte,..._tt,...Ctt,...HT};function qte(t){let e=0;return t.filter((n,r)=>r===e?(e+=n+1,!0):!1)}function Zte(t){let e=0;for(let n=0;n<t.length;)n+=t[n]+1,e++;return e}const ktt={extractCellSizes:qte,getNumberOfCells:Zte};function Rtt(t,e){e.classHierarchy.push("vtkCellArray");const n={...t};t.getNumberOfCells=r=>(e.numberOfCells!==void 0&&!r||(e.cellSizes?e.numberOfCells=e.cellSizes.length:e.numberOfCells=Zte(t.getData())),e.numberOfCells),t.getCellSizes=r=>(e.cellSizes!==void 0&&!r||(e.cellSizes=qte(t.getData())),e.cellSizes),t.resize=r=>{const a=t.getNumberOfTuples();n.resize(r);const i=t.getNumberOfTuples();i<a&&(i===0?(e.numberOfCells=0,e.cellSizes=[]):(e.numberOfCells=void 0,e.cellSizes=void 0))},t.setData=r=>{n.setData(r,1),e.numberOfCells=void 0,e.cellSizes=void 0},t.getCell=r=>{let a=r;const i=e.values[a++];return e.values.subarray(a,a+i)},t.insertNextCell=r=>{const a=t.getNumberOfCells();return t.insertNextTuples([r.length,...r]),++e.numberOfCells,e.cellSizes!=null&&e.cellSizes.push(r.length),a}}function Ltt(t){return{empty:!0,numberOfComponents:1,dataType:Va.UNSIGNED_INT,...t}}function Qte(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};zn.extend(t,e,Ltt(n)),Rtt(t,e)}const Ott=J.newInstance(Qte,"vtkCellArray");var P2={newInstance:Ott,extend:Qte,...ktt};const{vtkErrorMacro:Vtt}=J,Ntt=[1,-1,1,-1,1,-1];function Itt(t,e){e.classHierarchy.push("vtkPoints"),t.getNumberOfPoints=t.getNumberOfTuples,t.setNumberOfPoints=function(n){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:3;t.getNumberOfPoints()!==n&&(e.size=n*r,e.values=J.newTypedArray(e.dataType,e.size),t.setNumberOfComponents(r),t.modified())},t.setPoint=function(n){for(var r=arguments.length,a=new Array(r>1?r-1:0),i=1;i<r;i++)a[i-1]=arguments[i];t.setTuple(n,a)},t.getPoint=t.getTuple,t.findPoint=t.findTuple,t.insertNextPoint=(n,r,a)=>t.insertNextTuple([n,r,a]),t.getBounds=()=>{if(t.getNumberOfComponents()===3){const a=t.getRange(0);e.bounds[0]=a[0],e.bounds[1]=a[1];const i=t.getRange(1);e.bounds[2]=i[0],e.bounds[3]=i[1];const o=t.getRange(2);return e.bounds[4]=o[0],e.bounds[5]=o[1],e.bounds}if(t.getNumberOfComponents()!==2)return Vtt(`getBounds called on an array with components of
  79. ${t.getNumberOfComponents()}`),Ntt;const n=t.getRange(0);e.bounds[0]=n[0],e.bounds[1]=n[1];const r=t.getRange(1);return e.bounds[2]=r[0],e.bounds[3]=r[1],e.bounds[4]=0,e.bounds[5]=0,e.bounds},t.computeBounds=t.getBounds,t.setNumberOfComponents(e.numberOfComponents<2?3:e.numberOfComponents)}const Btt={empty:!0,numberOfComponents:3,dataType:Va.FLOAT,bounds:[1,-1,1,-1,1,-1]};function Jte(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Btt,n),zn.extend(t,e,n),Itt(t,e)}const $tt=J.newInstance(Jte,"vtkPoints");var $1={newInstance:$tt,extend:Jte};function Ptt(t,e){e.classHierarchy.push("vtkCell"),t.initialize=function(n){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(r){e.pointsIds=r;let a=e.points.getData();a.length!==3*e.pointsIds.length&&(a=J.newTypedArray(n.getDataType(),3*e.pointsIds.length));const i=n.getData();e.pointsIds.forEach((o,s)=>{let l=3*o,u=3*s;a[u]=i[l],a[++u]=i[++l],a[++u]=i[++l]}),e.points.setData(a)}else{e.points=n,e.pointsIds=new Array(n.getNumberOfPoints());for(let a=n.getNumberOfPoints()-1;a>=0;--a)e.pointsIds[a]=a}},t.getBounds=()=>{const n=e.points.getNumberOfPoints(),r=[];if(n){e.points.getPoint(0,r),e.bounds[0]=r[0],e.bounds[1]=r[0],e.bounds[2]=r[1],e.bounds[3]=r[1],e.bounds[4]=r[2],e.bounds[5]=r[2];for(let a=1;a<n;a++)e.points.getPoint(a,r),e.bounds[0]=r[0]<e.bounds[0]?r[0]:e.bounds[0],e.bounds[1]=r[0]>e.bounds[1]?r[0]:e.bounds[1],e.bounds[2]=r[1]<e.bounds[2]?r[1]:e.bounds[2],e.bounds[3]=r[1]>e.bounds[3]?r[1]:e.bounds[3],e.bounds[4]=r[2]<e.bounds[4]?r[2]:e.bounds[4],e.bounds[5]=r[2]>e.bounds[5]?r[2]:e.bounds[5]}else FT(e.bounds);return e.bounds},t.getLength2=()=>{t.getBounds();let n=0,r=0;for(let a=0;a<3;a++)r=e.bounds[2*a+1]-e.bounds[2*a],n+=r*r;return n},t.getParametricDistance=n=>{let r,a=0;for(let i=0;i<3;i++)n[i]<0?r=-n[i]:n[i]>1?r=n[i]-1:r=0,r>a&&(a=r);return a},t.getNumberOfPoints=()=>e.points.getNumberOfPoints(),t.deepCopy=n=>{n.initialize(e.points,e.pointsIds)},t.getCellDimension=()=>{},t.intersectWithLine=(n,r,a,i,o,s,l)=>{},t.evaluatePosition=(n,r,a,i,o,s)=>{J.vtkErrorMacro("vtkCell.evaluatePosition is not implemented.")}}const Ftt={bounds:[-1,-1,-1,-1,-1,-1],pointsIds:[]};function ene(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Ftt,n),J.obj(t,e),e.points||(e.points=$1.newInstance()),J.get(t,e,["points","pointsIds"]),Ptt(t,e)}const ztt=J.newInstance(ene,"vtkCell");var F2={newInstance:ztt,extend:ene};function Utt(t,e){let n=e;for(e>=t.array.length&&(n+=t.array.length);n>t.array.length;)t.array.push({ncells:0,cells:null});t.array.length=n}function Gtt(t,e){e.classHierarchy.push("vtkCellLinks"),t.buildLinks=n=>{const r=n.getPoints().getNumberOfPoints(),a=n.getNumberOfCells(),i=new Uint32Array(r);if(n.isA("vtkPolyData")){for(let o=0;o<a;++o){const{cellPointIds:s}=n.getCellPoints(o);s.forEach(l=>{t.incrementLinkCount(l)})}t.allocateLinks(r),e.maxId=r-1;for(let o=0;o<a;++o){const{cellPointIds:s}=n.getCellPoints(o);s.forEach(l=>{t.insertCellReference(l,i[l]++,o)})}}else{for(let o=0;o<a;o++)F2.newInstance().getPointsIds().forEach(l=>{t.incrementLinkCount(l)});t.allocateLinks(r),e.maxId=r-1;for(let o=0;o<a;++o)F2.newInstance().getPointsIds().forEach(l=>{t.insertCellReference(l,i[l]++,o)})}},t.allocate=function(n){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1e3;e.array=Array(n).fill().map(()=>({ncells:0,cells:null})),e.extend=r,e.maxId=-1},t.initialize=()=>{e.array=null},t.getLink=n=>e.array[n],t.getNcells=n=>e.array[n].ncells,t.getCells=n=>e.array[n].cells,t.insertNextPoint=n=>{e.array.push({ncells:n,cells:Array(n)}),++e.maxId},t.insertNextCellReference=(n,r)=>{e.array[n].cells[e.array[n].ncells++]=r},t.deletePoint=n=>{e.array[n].ncells=0,e.array[n].cells=null},t.removeCellReference=(n,r)=>{e.array[r].cells=e.array[r].cells.filter(a=>a!==n),e.array[r].ncells=e.array[r].cells.length},t.addCellReference=(n,r)=>{e.array[r].cells[e.array[r].ncells++]=n},t.resizeCellList=(n,r)=>{e.array[n].cells.length=r},t.squeeze=()=>{Utt(e,e.maxId+1)},t.reset=()=>{e.maxId=-1},t.deepCopy=n=>{e.array=[...n.array],e.extend=n.extend,e.maxId=n.maxId},t.incrementLinkCount=n=>{++e.array[n].ncells},t.allocateLinks=n=>{for(let r=0;r<n;++r)e.array[r].cells=new Array(e.array[r].ncells)},t.insertCellReference=(n,r,a)=>{e.array[n].cells[r]=a}}const Htt={array:null,maxId:0,extend:0};function tne(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Htt,n),J.obj(t,e),Gtt(t,e)}const Wtt=J.newInstance(tne,"vtkCellLinks");var jtt={newInstance:Wtt,extend:tne};const qr={VTK_EMPTY_CELL:0,VTK_VERTEX:1,VTK_POLY_VERTEX:2,VTK_LINE:3,VTK_POLY_LINE:4,VTK_TRIANGLE:5,VTK_TRIANGLE_STRIP:6,VTK_POLYGON:7,VTK_PIXEL:8,VTK_QUAD:9,VTK_TETRA:10,VTK_VOXEL:11,VTK_HEXAHEDRON:12,VTK_WEDGE:13,VTK_PYRAMID:14,VTK_PENTAGONAL_PRISM:15,VTK_HEXAGONAL_PRISM:16,VTK_QUADRATIC_EDGE:21,VTK_QUADRATIC_TRIANGLE:22,VTK_QUADRATIC_QUAD:23,VTK_QUADRATIC_POLYGON:36,VTK_QUADRATIC_TETRA:24,VTK_QUADRATIC_HEXAHEDRON:25,VTK_QUADRATIC_WEDGE:26,VTK_QUADRATIC_PYRAMID:27,VTK_BIQUADRATIC_QUAD:28,VTK_TRIQUADRATIC_HEXAHEDRON:29,VTK_QUADRATIC_LINEAR_QUAD:30,VTK_QUADRATIC_LINEAR_WEDGE:31,VTK_BIQUADRATIC_QUADRATIC_WEDGE:32,VTK_BIQUADRATIC_QUADRATIC_HEXAHEDRON:33,VTK_BIQUADRATIC_TRIANGLE:34,VTK_CUBIC_LINE:35,VTK_CONVEX_POINT_SET:41,VTK_POLYHEDRON:42,VTK_PARAMETRIC_CURVE:51,VTK_PARAMETRIC_SURFACE:52,VTK_PARAMETRIC_TRI_SURFACE:53,VTK_PARAMETRIC_QUAD_SURFACE:54,VTK_PARAMETRIC_TETRA_REGION:55,VTK_PARAMETRIC_HEX_REGION:56,VTK_HIGHER_ORDER_EDGE:60,VTK_HIGHER_ORDER_TRIANGLE:61,VTK_HIGHER_ORDER_QUAD:62,VTK_HIGHER_ORDER_POLYGON:63,VTK_HIGHER_ORDER_TETRAHEDRON:64,VTK_HIGHER_ORDER_WEDGE:65,VTK_HIGHER_ORDER_PYRAMID:66,VTK_HIGHER_ORDER_HEXAHEDRON:67,VTK_LAGRANGE_CURVE:68,VTK_LAGRANGE_TRIANGLE:69,VTK_LAGRANGE_QUADRILATERAL:70,VTK_LAGRANGE_TETRAHEDRON:71,VTK_LAGRANGE_HEXAHEDRON:72,VTK_LAGRANGE_WEDGE:73,VTK_LAGRANGE_PYRAMID:74,VTK_NUMBER_OF_CELL_TYPES:75},YL=["vtkEmptyCell","vtkVertex","vtkPolyVertex","vtkLine","vtkPolyLine","vtkTriangle","vtkTriangleStrip","vtkPolygon","vtkPixel","vtkQuad","vtkTetra","vtkVoxel","vtkHexahedron","vtkWedge","vtkPyramid","vtkPentagonalPrism","vtkHexagonalPrism","UnknownClass","UnknownClass","UnknownClass","UnknownClass","vtkQuadraticEdge","vtkQuadraticTriangle","vtkQuadraticQuad","vtkQuadraticTetra","vtkQuadraticHexahedron","vtkQuadraticWedge","vtkQuadraticPyramid","vtkBiQuadraticQuad","vtkTriQuadraticHexahedron","vtkQuadraticLinearQuad","vtkQuadraticLinearWedge","vtkBiQuadraticQuadraticWedge","vtkBiQuadraticQuadraticHexahedron","vtkBiQuadraticTriangle","vtkCubicLine","vtkQuadraticPolygon","UnknownClass","UnknownClass","UnknownClass","UnknownClass","vtkConvexPointSet","UnknownClass","UnknownClass","UnknownClass","UnknownClass","UnknownClass","UnknownClass","UnknownClass","UnknownClass","UnknownClass","vtkParametricCurve","vtkParametricSurface","vtkParametricTriSurface","vtkParametricQuadSurface","vtkParametricTetraRegion","vtkParametricHexRegion","UnknownClass","UnknownClass","UnknownClass","vtkHigherOrderEdge","vtkHigherOrderTriangle","vtkHigherOrderQuad","vtkHigherOrderPolygon","vtkHigherOrderTetrahedron","vtkHigherOrderWedge","vtkHigherOrderPyramid","vtkHigherOrderHexahedron"];function Ktt(t){return t<YL.length?YL[t]:"UnknownClass"}function Ytt(t){return YL.findIndex(t)}function Xtt(t){return t<qr.VTK_QUADRATIC_EDGE||t===qr.VTK_CONVEX_POINT_SET||t===qr.VTK_POLYHEDRON}function qtt(t){return t===qr.VTK_TRIANGLE_STRIP||t===qr.VTK_POLY_LINE||t===qr.VTK_POLY_VERTEX}const Ztt={getClassNameFromTypeId:Ktt,getTypeIdFromClassName:Ytt,isLinear:Xtt,hasSubCells:qtt};function Qtt(t,e){e.classHierarchy.push("vtkCellTypes"),t.allocate=function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:512,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1e3;e.size=n>0?n:1,e.extend=r>0?r:1,e.maxId=-1,e.typeArray=new Uint8Array(n),e.locationArray=new Uint32Array(n)},t.insertCell=(n,r,a)=>{e.typeArray[n]=r,e.locationArray[n]=a,n>e.maxId&&(e.maxId=n)},t.insertNextCell=(n,r)=>(t.insertCell(++e.maxId,n,r),e.maxId),t.setCellTypes=(n,r,a)=>{e.size=n,e.typeArray=r,e.locationArray=a,e.maxId=n-1},t.getCellLocation=n=>e.locationArray[n],t.deleteCell=n=>{e.typeArray[n]=qr.VTK_EMPTY_CELL},t.getNumberOfTypes=()=>e.maxId+1,t.isType=n=>{const r=t.getNumberOfTypes();for(let a=0;a<r;++a)if(n===t.getCellType(a))return!0;return!1},t.insertNextType=n=>t.insertNextCell(n,-1),t.getCellType=n=>e.typeArray[n],t.reset=()=>{e.maxId=-1},t.deepCopy=n=>{t.allocate(n.getSize(),n.getExtend()),e.typeArray.set(n.getTypeArray()),e.locationArray.set(n.getLocationArray()),e.maxId=n.getMaxId()}}const Jtt={size:0,maxId:-1,extend:1e3};function nne(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Jtt,n),J.obj(t,e),J.get(t,e,["size","maxId","extend"]),J.getArray(t,e,["typeArray","locationArray"]),Qtt(t,e)}const ent=J.newInstance(nne,"vtkCellTypes");var tnt={newInstance:ent,extend:nne,...Ztt};const nnt={NO_INTERSECTION:0,YES_INTERSECTION:1,ON_LINE:2};var rne={IntersectionState:nnt};const{IntersectionState:C_}=rne;function Xv(t,e,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;const a={t:Number.MIN_VALUE,distance:0},i=[];let o;i[0]=n[0]-e[0],i[1]=n[1]-e[1],i[2]=n[2]-e[2];const s=i[0]*(t[0]-e[0])+i[1]*(t[1]-e[1])+i[2]*(t[2]-e[2]),l=Ln(i,i);let u=1e-5*s;return l!==0&&(a.t=s/l),u<0&&(u=-u),-u<l&&l<u||l<=0||a.t<0?o=e:a.t>1?o=n:(o=i,i[0]=e[0]+a.t*i[0],i[1]=e[1]+a.t*i[1],i[2]=e[2]+a.t*i[2]),r&&(r[0]=o[0],r[1]=o[1],r[2]=o[2]),a.distance=Zs(o,t),a}function ane(t,e,n,r,a,i){const o=[],s=[],l=[];a[0]=0,i[0]=0,iu(e,t,o),iu(r,n,s),iu(n,t,l);const u=[Ln(o,o),-Ln(o,s),-Ln(o,s),Ln(s,s)],c=[];if(c[0]=Ln(o,l),c[1]=-Ln(s,l),Uee(u,c,2)===0){let f=Number.MAX_VALUE;const d=[t,e,n,r],h=[n,n,t,t],p=[r,r,e,e];i[0],i[0],a[0],a[0],a[0],a[0],i[0],i[0];let v;for(let g=0;g<4;g++)v=Xv(d[g],h[g],p[g]),v.distance<f&&(f=v.distance);return C_.ON_LINE}return a[0]=c[0],i[0]=c[1],a[0]>=0&&a[0]<=1&&i[0]>=0&&i[0]<=1?C_.YES_INTERSECTION:C_.NO_INTERSECTION}const rnt={distanceToLine:Xv,intersection:ane};function ant(t,e){e.classHierarchy.push("vtkLine");function n(r){return r>=0&&r<=1}t.getCellDimension=()=>1,t.intersectWithLine=(r,a,i,o,s)=>{const l={intersect:0,t:Number.MAX_VALUE,subId:0,betweenPoints:null};s[1]=0,s[2]=0;const u=[],c=[],f=[];e.points.getPoint(0,c),e.points.getPoint(1,f);const d=[],h=[],p=ane(r,a,c,f,d,h);if(l.t=d[0],l.betweenPoints=n(l.t),s[0]=h[0],p===C_.YES_INTERSECTION){for(let v=0;v<3;v++)o[v]=c[v]+s[0]*(f[v]-c[v]),u[v]=r[v]+l.t*(a[v]-r[v]);if(Zs(o,u)<=i*i)return l.intersect=1,l}else{let v;if(l.t<0)return v=Xv(r,c,f,o),v.distance<=i*i&&(l.t=0,l.intersect=1,l.betweenPoints=!0),l;if(l.t>1)return v=Xv(a,c,f,o),v.distance<=i*i&&(l.t=1,l.intersect=1,l.betweenPoints=!0),l;if(s[0]<0)return s[0]=0,v=Xv(c,r,a,o),l.t=v.t,v.distance<=i*i&&(l.intersect=1),l;if(s[0]>1)return s[0]=1,v=Xv(f,r,a,o),l.t=v.t,v.distance<=i*i&&(l.intersect=1),l}return l},t.evaluateLocation=(r,a,i)=>{const o=[],s=[];e.points.getPoint(0,o),e.points.getPoint(1,s);for(let l=0;l<3;l++)a[l]=o[l]+r[0]*(s[l]-o[l]);i[0]=1-r[0],i[1]=r[0]},t.evaluateOrientation=(r,a,i)=>e.orientations?(g_(a,e.orientations[0],e.orientations[1],r[0]),i[0]=1-r[0],i[1]=r[0],!0):!1}const int={orientations:null};function ine(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,int,n),F2.extend(t,e,n),J.setGet(t,e,["orientations"]),ant(t,e)}const ont=J.newInstance(ine,"vtkLine");var rs={newInstance:ont,extend:ine,...rnt,...rne};function snt(t,e){e.classHierarchy.push("vtkPointSet"),e.points?e.points=sl(e.points):e.points=$1.newInstance(),t.getNumberOfPoints=()=>e.points.getNumberOfPoints(),t.getBounds=()=>e.points.getBounds(),t.computeBounds=()=>{t.getBounds()};const n=t.shallowCopy;t.shallowCopy=function(r){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;n(r,a),e.points=$1.newInstance(),e.points.shallowCopy(r.getPoints())}}const lnt={};function one(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,lnt,n),Ip.extend(t,e,n),J.setGet(t,e,["points"]),snt(t,e)}const unt=J.newInstance(one,"vtkPointSet");var cnt={newInstance:unt,extend:one};function NN(t,e,n,r){const a=n[0]-e[0],i=n[1]-e[1],o=n[2]-e[2],s=t[0]-e[0],l=t[1]-e[1],u=t[2]-e[2];r[0]=i*u-o*l,r[1]=o*s-a*u,r[2]=a*l-i*s}function z2(t,e,n,r){NN(t,e,n,r);const a=Math.sqrt(r[0]*r[0]+r[1]*r[1]+r[2]*r[2]);a!==0&&(r[0]/=a,r[1]/=a,r[2]/=a)}function fnt(t,e,n,r,a,i){let o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:1e-6,s=!1;const l=[],u=[],c=[],f=[],d=[];z2(t,e,n,f),z2(r,a,i,d);const h=-Ln(f,t),p=-Ln(d,r),v=[Ln(d,t)+p,Ln(d,e)+p,Ln(d,n)+p];if(v[0]*v[1]>o&&v[0]*v[2]>o)return{intersect:!1,coplanar:s,pt1:l,pt2:u,surfaceId:c};const g=[Ln(f,r)+h,Ln(f,a)+h,Ln(f,i)+h];if(g[0]*g[1]>o&&g[0]*g[2]>o)return{intersect:!1,coplanar:s,pt1:l,pt2:u,surfaceId:c};if(Math.abs(f[0]-d[0])<1e-9&&Math.abs(f[1]-d[1])<1e-9&&Math.abs(f[2]-d[2])<1e-9&&Math.abs(h-p)<1e-9)return s=!0,{intersect:!1,coplanar:s,pt1:l,pt2:u,surfaceId:c};const y=[t,e,n],m=[r,a,i],S=Ln(f,d),w=(h-p*S)/(S*S-1),C=(p-h*S)/(S*S-1),_=[w*f[0]+C*d[0],w*f[1]+C*d[1],w*f[2]+C*d[2]],x=vu(f,d,[]);bp(x);let T=0,M=0;const E=[],A=[];let k=50,L=50;for(let F=0;F<3;F++){const $=F,W=(F+1)%3,V=Xg.intersectWithLine(y[$],y[W],r,d);V.intersection&&V.t>0-o&&V.t<1+o&&(V.t<1+o&&V.t>1-o&&(k=T),E[T++]=Ln(V.x,x)-Ln(_,x));const z=Xg.intersectWithLine(m[$],m[W],t,f);z.intersection&&z.t>0-o&&z.t<1+o&&(z.t<1+o&&z.t>1-o&&(L=M),A[M++]=Ln(z.x,x)-Ln(_,x))}if(T>2){T--;const F=E[2];E[2]=E[k],E[k]=F}if(M>2){M--;const F=A[2];A[2]=A[L],A[L]=F}if(T!==2||M!==2)return{intersect:!1,coplanar:s,pt1:l,pt2:u,surfaceId:c};if(Number.isNaN(E[0])||Number.isNaN(E[1])||Number.isNaN(A[0])||Number.isNaN(A[1]))return{intersect:!1,coplanar:s,pt1:l,pt2:u,surfaceId:c};if(E[0]>E[1]){const F=E[1];E[1]=E[0],E[0]=F}if(A[0]>A[1]){const F=A[1];A[1]=A[0],A[0]=F}let I,P;return E[1]<A[0]||A[1]<E[0]?{intersect:!1,coplanar:s,pt1:l,pt2:u,surfaceId:c}:(E[0]<A[0]?E[1]<A[1]?(c[0]=2,c[1]=1,I=A[0],P=E[1]):(c[0]=2,c[1]=2,I=A[0],P=A[1]):E[1]<A[1]?(c[0]=1,c[1]=1,I=E[0],P=E[1]):(c[0]=1,c[1]=2,I=E[0],P=A[1]),NL(_,x,I,l),NL(_,x,P,u),{intersect:!0,coplanar:s,pt1:l,pt2:u,surfaceId:c})}const dnt={computeNormalDirection:NN,computeNormal:z2,intersectWithTriangle:fnt};function hnt(t,e){e.classHierarchy.push("vtkTriangle"),t.getCellDimension=()=>2,t.intersectWithLine=(n,r,a,i,o)=>{const s={subId:0,t:Number.MAX_VALUE,intersect:0,betweenPoints:!1};o[2]=0;const l=[],u=a*a,c=[],f=[],d=[];e.points.getPoint(0,c),e.points.getPoint(1,f),e.points.getPoint(2,d);const h=[],p=[];if(z2(c,f,d,h),h[0]!==0||h[1]!==0||h[2]!==0){const S=Xg.intersectWithLine(n,r,c,h);if(s.betweenPoints=S.betweenPoints,s.t=S.t,i[0]=S.x[0],i[1]=S.x[1],i[2]=S.x[2],!S.intersection)return o[0]=0,o[1]=0,s.intersect=0,s;const w=t.evaluatePosition(i,l,o,p);if(w.evaluation>=0)return w.dist2<=u?(s.intersect=1,s):(s.intersect=w.evaluation,s)}const v=Zs(c,f),g=Zs(f,d),y=Zs(d,c);e.line||(e.line=rs.newInstance()),v>g&&v>y?(e.line.getPoints().setPoint(0,c),e.line.getPoints().setPoint(1,f)):g>y&&g>v?(e.line.getPoints().setPoint(0,f),e.line.getPoints().setPoint(1,d)):(e.line.getPoints().setPoint(0,d),e.line.getPoints().setPoint(1,c));const m=e.line.intersectWithLine(n,r,a,i,o);if(s.betweenPoints=m.betweenPoints,s.t=m.t,m.intersect){const S=[],w=[],C=[];for(let _=0;_<3;_++)S[_]=c[_]-d[_],w[_]=f[_]-d[_],C[_]=i[_]-d[_];return o[0]=Ln(C,S)/y,o[1]=Ln(C,w)/g,s.intersect=1,s}return o[0]=0,o[1]=0,s.intersect=0,s},t.evaluatePosition=(n,r,a,i)=>{const o={subId:0,dist2:0,evaluation:-1};let s,l;const u=[],c=[],f=[],d=[];let h;const p=[],v=[],g=[];let y=0,m=0;const S=[];let w,C,_,x=[];const T=[],M=[],E=[];o.subId=0,a[2]=0,e.points.getPoint(1,u),e.points.getPoint(2,c),e.points.getPoint(0,f),NN(u,c,f,d),Xg.generalizedProjectPoint(n,u,d,E);let A=0;for(s=0;s<3;s++)d[s]<0?h=-d[s]:h=d[s],h>A&&(A=h,m=s);for(l=0,s=0;s<3;s++)s!==m&&(S[l++]=s);for(s=0;s<2;s++)p[s]=E[S[s]]-f[S[s]],v[s]=u[S[s]]-f[S[s]],g[s]=c[S[s]]-f[S[s]];if(y=ca(v,g),y===0)return a[0]=0,a[1]=0,o.evaluation=-1,o;if(a[0]=ca(p,g)/y,a[1]=ca(v,p)/y,i[0]=1-(a[0]+a[1]),i[1]=a[0],i[2]=a[1],i[0]>=0&&i[0]<=1&&i[1]>=0&&i[1]<=1&&i[2]>=0&&i[2]<=1)r&&(o.dist2=Zs(E,n),r[0]=E[0],r[1]=E[1],r[2]=E[2]),o.evaluation=1;else{let k;if(r){if(i[1]<0&&i[2]<0)for(w=Zs(n,f),C=rs.distanceToLine(n,u,f,k,T),_=rs.distanceToLine(n,f,c,k,M),w<C?(o.dist2=w,x=f):(o.dist2=C,x=T),_<o.dist2&&(o.dist2=_,x=M),s=0;s<3;s++)r[s]=x[s];else if(i[2]<0&&i[0]<0)for(w=Zs(n,u),C=rs.distanceToLine(n,u,f,k,T),_=rs.distanceToLine(n,u,c,k,M),w<C?(o.dist2=w,x=u):(o.dist2=C,x=T),_<o.dist2&&(o.dist2=_,x=M),s=0;s<3;s++)r[s]=x[s];else if(i[1]<0&&i[0]<0)for(w=Zs(n,c),C=rs.distanceToLine(n,c,f,k,T),_=rs.distanceToLine(n,u,c,k,M),w<C?(o.dist2=w,x=c):(o.dist2=C,x=T),_<o.dist2&&(o.dist2=_,x=M),s=0;s<3;s++)r[s]=x[s];else if(i[0]<0){const L=rs.distanceToLine(n,u,c,r);o.dist2=L.distance}else if(i[1]<0){const L=rs.distanceToLine(n,c,f,r);o.dist2=L.distance}else if(i[2]<0){const L=rs.distanceToLine(n,u,f,r);o.dist2=L.distance}}o.evaluation=0}return o},t.evaluateLocation=(n,r,a)=>{const i=[],o=[],s=[];e.points.getPoint(0,i),e.points.getPoint(1,o),e.points.getPoint(2,s);const l=1-n[0]-n[1];for(let u=0;u<3;u++)r[u]=i[u]*l+o[u]*n[0]+s[u]*n[1];a[0]=l,a[1]=n[0],a[2]=n[1]},t.getParametricDistance=n=>{let r,a=0;const i=[];i[0]=n[0],i[1]=n[1],i[2]=1-n[0]-n[1];for(let o=0;o<3;o++)i[o]<0?r=-i[o]:i[o]>1?r=i[o]-1:r=0,r>a&&(a=r);return a}}const pnt={};function sne(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,pnt,n),F2.extend(t,e,n),hnt(t,e)}const vnt=J.newInstance(sne,"vtkTriangle");var gnt={newInstance:vnt,extend:sne,...dnt};const eD=["verts","lines","polys","strips"],{vtkWarningMacro:O6}=J,ynt={[qr.VTK_LINE]:rs,[qr.VTK_POLY_LINE]:rs,[qr.VTK_TRIANGLE]:gnt};function mnt(t,e){e.classHierarchy.push("vtkPolyData");function n(a){return a.replace(/(?:^\w|[A-Z]|\b\w)/g,i=>i.toUpperCase()).replace(/\s+/g,"")}eD.forEach(a=>{t[`getNumberOf${n(a)}`]=()=>e[a].getNumberOfCells(),e[a]?e[a]=sl(e[a]):e[a]=P2.newInstance()}),t.getNumberOfCells=()=>eD.reduce((a,i)=>a+e[i].getNumberOfCells(),0);const r=t.shallowCopy;t.shallowCopy=function(a){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;r(a,i),eD.forEach(o=>{e[o]=P2.newInstance(),e[o].shallowCopy(a.getReferenceByName(o))})},t.buildCells=()=>{const a=t.getNumberOfVerts(),i=t.getNumberOfLines(),o=t.getNumberOfPolys(),s=t.getNumberOfStrips(),l=a+i+o+s,u=new Uint8Array(l);let c=u;const f=new Uint32Array(l);let d=f;if(a){let h=0;e.verts.getCellSizes().forEach((p,v)=>{d[v]=h,c[v]=p>1?qr.VTK_POLY_VERTEX:qr.VTK_VERTEX,h+=p+1}),d=d.subarray(a),c=c.subarray(a)}if(i){let h=0;e.lines.getCellSizes().forEach((p,v)=>{d[v]=h,c[v]=p>2?qr.VTK_POLY_LINE:qr.VTK_LINE,p===1&&O6("Building VTK_LINE ",v," with only one point, but VTK_LINE needs at least two points. Check the input."),h+=p+1}),d=d.subarray(i),c=c.subarray(i)}if(o){let h=0;e.polys.getCellSizes().forEach((p,v)=>{switch(d[v]=h,p){case 3:c[v]=qr.VTK_TRIANGLE;break;case 4:c[v]=qr.VTK_QUAD;break;default:c[v]=qr.VTK_POLYGON;break}p<3&&O6("Building VTK_TRIANGLE ",v," with less than three points, but VTK_TRIANGLE needs at least three points. Check the input."),h+=p+1}),d+=d.subarray(o),c+=c.subarray(o)}if(s){let h=0;c.fill(qr.VTK_TRIANGLE_STRIP,0,s),e.strips.getCellSizes().forEach((p,v)=>{d[v]=h,h+=p+1})}e.cells=tnt.newInstance(),e.cells.setCellTypes(l,u,f)},t.buildLinks=function(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;e.cells===void 0&&t.buildCells(),e.links=jtt.newInstance(),a>0?e.links.allocate(a):e.links.allocate(t.getPoints().getNumberOfPoints()),e.links.buildLinks(t)},t.getCellType=a=>e.cells.getCellType(a),t.getCellPoints=a=>{const i=t.getCellType(a);let o=null;switch(i){case qr.VTK_VERTEX:case qr.VTK_POLY_VERTEX:o=e.verts;break;case qr.VTK_LINE:case qr.VTK_POLY_LINE:o=e.lines;break;case qr.VTK_TRIANGLE:case qr.VTK_QUAD:case qr.VTK_POLYGON:o=e.polys;break;case qr.VTK_TRIANGLE_STRIP:o=e.strips;break;default:return o=null,{type:0,cellPointIds:null}}const s=e.cells.getCellLocation(a),l=o.getCell(s);return{cellType:i,cellPointIds:l}},t.getPointCells=a=>e.links.getCells(a),t.getCellEdgeNeighbors=(a,i,o)=>{const s=e.links.getLink(i),l=e.links.getLink(o);return s.cells.filter(u=>u!==a&&l.cells.indexOf(u)!==-1)},t.getCell=function(a){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;const o=t.getCellPoints(a),s=i||ynt[o.cellType].newInstance();return s.initialize(t.getPoints(),o.cellPointIds),s}}const bnt={};function lne(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,bnt,n),cnt.extend(t,e,n),J.get(t,e,["cells","links"]),J.setGet(t,e,["verts","lines","polys","strips"]),mnt(t,e)}const Snt=J.newInstance(lne,"vtkPolyData");var $a={newInstance:Snt,extend:lne};function wnt(t,e){e.classHierarchy.push("vtkTexture"),t.imageLoaded=()=>{e.image.removeEventListener("load",t.imageLoaded),e.imageLoaded=!0,t.modified()},t.setJsImageData=n=>{e.jsImageData!==n&&(n!==null&&(t.setInputData(null),t.setInputConnection(null),e.image=null,e.canvas=null),e.jsImageData=n,e.imageLoaded=!0,t.modified())},t.setCanvas=n=>{e.canvas!==n&&(n!==null&&(t.setInputData(null),t.setInputConnection(null),e.image=null,e.jsImageData=null),e.canvas=n,t.modified())},t.setImage=n=>{e.image!==n&&(n!==null&&(t.setInputData(null),t.setInputConnection(null),e.canvas=null,e.jsImageData=null),e.image=n,e.imageLoaded=!1,n.complete?t.imageLoaded():n.addEventListener("load",t.imageLoaded),t.modified())},t.getDimensionality=()=>{let n=0,r=0,a=1;if(t.getInputData()){const o=t.getInputData();n=o.getDimensions()[0],r=o.getDimensions()[1],a=o.getDimensions()[2]}return e.jsImageData&&(n=e.jsImageData.width,r=e.jsImageData.height),e.canvas&&(n=e.canvas.width,r=e.canvas.height),e.image&&(n=e.image.width,r=e.image.height),(n>1)+(r>1)+(a>1)},t.getInputAsJsImageData=()=>{if(!e.imageLoaded||t.getInputData())return null;if(e.jsImageData)return e.jsImageData();if(e.canvas)return e.canvas.getContext("2d").getImageData(0,0,e.canvas.width,e.canvas.height);if(e.image){const n=document.createElement("canvas");n.width=e.image.width,n.height=e.image.height;const r=n.getContext("2d");return r.translate(0,n.height),r.scale(1,-1),r.drawImage(e.image,0,0,e.image.width,e.image.height),r.getImageData(0,0,n.width,n.height)}return null}}const xnt=(t,e,n,r)=>{const a=[1,2,1],i=4,o=a,s=i,l=t.length/(e*n);let u=e,c=n,f=t;const d=[f];for(let h=0;h<r;h++){const p=[...f];u/=2,c/=2,f=new Uint8ClampedArray(u*c*l);const v=l*u;let g=0;for(let m=0;m<f.length;m+=l){m%v===0&&(g+=2*l*u);for(let S=0;S<l;S++){let w=p[g+S];w+=p[g+l+S],w+=p[g-2*v+S],w+=p[g-2*v+l+S],w/=4,f[m+S]=w}g+=2*l}let y=[...f];for(let m=0;m<f.length;m+=l)for(let S=0;S<l;S++){let w=-(o.length-1)/2,C=s,_=0;for(let x=0;x<o.length;x++){let T=m+S+w*l;const M=T%v-(m+S)%v;M>l&&(T+=v),M<-l&&(T-=v),y[T]?_+=y[T]*o[x]:C-=o[x],w+=1}f[m+S]=_/C}y=[...f];for(let m=0;m<f.length;m+=l)for(let S=0;S<l;S++){let w=-(o.length-1)/2,C=s,_=0;for(let x=0;x<o.length;x++){const T=m+S+w*v;y[T]?_+=y[T]*o[x]:C-=o[x],w+=1}f[m+S]=_/C}d.push(f)}return d},_nt={image:null,canvas:null,jsImageData:null,imageLoaded:!1,repeat:!1,interpolate:!1,edgeClamp:!1,mipLevel:0,resizable:!1};function une(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,_nt,n),J.obj(t,e),J.algo(t,e,6,0),J.get(t,e,["canvas","image","jsImageData","imageLoaded","resizable"]),J.setGet(t,e,["repeat","edgeClamp","interpolate","mipLevel"]),wnt(t,e)}const Cnt=J.newInstance(une,"vtkTexture"),Tnt={generateMipmaps:xnt};var Yb={newInstance:Cnt,extend:une,...Tnt};const Ent=[[-1,0,0],[1,0,0],[0,-1,0],[0,1,0],[0,0,-1],[0,0,1]],V6=[[8,7,11,3],[9,1,10,5],[4,9,0,8],[2,11,6,10],[0,3,2,1],[4,5,6,7]],ow=[[0,1],[1,3],[2,3],[0,2],[4,5],[5,7],[6,7],[4,6],[0,4],[1,5],[3,7],[2,6]],N6=[0,1,0,1,0,1,0,1,2,2,2,2],oa=[[1,2],[1,2],[0,2],[0,2],[0,1],[0,1]],kn=new Float64Array(3),sw=new Float64Array(3),Er=new Float64Array(3),Ch=new Float64Array(3),Rd=new Float64Array(3),lw=new Float64Array(3),tD=new Float64Array(16);function nD(t,e){t.strokeStyle=e.strokeColor,t.lineWidth=e.strokeSize,t.fillStyle=e.fontColor,t.font=`${e.fontStyle} ${e.fontSize}px ${e.fontFamily}`}function Mnt(t,e){e.classHierarchy.push("vtkCubeAxesActorHelper"),t.setRenderable=n=>{e.renderable!==n&&(e.renderable=n,e.tmActor.addTexture(e.renderable.getTmTexture()),e.tmActor.setProperty(n.getProperty()),e.tmActor.setParentProp(n),t.modified())},t.createPolyDataForOneLabel=(n,r,a,i,o,s,l)=>{const u=e.renderable.get_tmAtlas().get(n);if(!u)return;const c=e.renderable.getTextPolyData().getPoints().getData(),f=e.lastSize;kn[0]=c[r*3],kn[1]=c[r*3+1],kn[2]=c[r*3+2],_r(Er,kn,a),Er[0]+=.1,_r(sw,Er,i),bf(Rd,sw,kn),Er[0]-=.1,Er[1]+=.1,_r(sw,Er,i),bf(lw,sw,kn);for(let p=0;p<3;p++)Rd[p]/=.5*.1*f[0],lw[p]/=.5*.1*f[1];let d=l.ptIdx,h=l.cellIdx;kn[0]=c[r*3],kn[1]=c[r*3+1],kn[2]=c[r*3+2],o[0]<-.5?tf(Er,Rd,o[0]*s-u.width):o[0]>.5?tf(Er,Rd,o[0]*s):tf(Er,Rd,o[0]*s-u.width/2),Xy(kn,kn,Er),tf(Er,lw,o[1]*s-u.height/2),Xy(kn,kn,Er),l.points[d*3]=kn[0],l.points[d*3+1]=kn[1],l.points[d*3+2]=kn[2],l.tcoords[d*2]=u.tcoords[0],l.tcoords[d*2+1]=u.tcoords[1],d++,tf(Er,Rd,u.width),Xy(kn,kn,Er),l.points[d*3]=kn[0],l.points[d*3+1]=kn[1],l.points[d*3+2]=kn[2],l.tcoords[d*2]=u.tcoords[2],l.tcoords[d*2+1]=u.tcoords[3],d++,tf(Er,lw,u.height),Xy(kn,kn,Er),l.points[d*3]=kn[0],l.points[d*3+1]=kn[1],l.points[d*3+2]=kn[2],l.tcoords[d*2]=u.tcoords[4],l.tcoords[d*2+1]=u.tcoords[5],d++,tf(Er,Rd,u.width),bf(kn,kn,Er),l.points[d*3]=kn[0],l.points[d*3+1]=kn[1],l.points[d*3+2]=kn[2],l.tcoords[d*2]=u.tcoords[6],l.tcoords[d*2+1]=u.tcoords[7],d++,l.polys[h*4]=3,l.polys[h*4+1]=d-4,l.polys[h*4+2]=d-3,l.polys[h*4+3]=d-2,h++,l.polys[h*4]=3,l.polys[h*4+1]=d-4,l.polys[h*4+2]=d-2,l.polys[h*4+3]=d-1,l.ptIdx+=4,l.cellIdx+=2},t.updateTexturePolyData=()=>{const n=e.camera.getCompositeProjectionMatrix(e.lastAspectRatio,-1,1);ea(n,n);const r=e.renderable.getTextValues().length,a=r*4,i=r*2,o=new Float64Array(a*3),s=new Uint16Array(i*4),l=new Float32Array(a*2);eo(tD,n);const u={ptIdx:0,cellIdx:0,polys:s,points:o,tcoords:l};let c=0,f=0,d=0;const h=e.renderable.getTextPolyData().getPoints().getData(),p=e.renderable.getTextValues();for(;c<h.length/3;){kn[0]=h[c*3],kn[1]=h[c*3+1],kn[2]=h[c*3+2],_r(Er,kn,n),kn[0]=h[c*3+3],kn[1]=h[c*3+4],kn[2]=h[c*3+5],_r(Ch,kn,n),bf(Er,Er,Ch);const g=[Er[0],Er[1]];Vee(g),t.createPolyDataForOneLabel(p[f],c,n,tD,g,e.renderable.getAxisTitlePixelOffset(),u),c+=2,f++;for(let y=0;y<e.renderable.getTickCounts()[d];y++)t.createPolyDataForOneLabel(p[f],c,n,tD,g,e.renderable.getTickLabelPixelOffset(),u),c++,f++;d++}const v=zn.newInstance({numberOfComponents:2,values:l,name:"TextureCoordinates"});e.tmPolyData.getPointData().setTCoords(v),e.tmPolyData.getPoints().setData(o,3),e.tmPolyData.getPoints().modified(),e.tmPolyData.getPolys().setData(s,1),e.tmPolyData.getPolys().modified(),e.tmPolyData.modified()},t.updateAPISpecificData=(n,r,a)=>{(e.lastSize[0]!==n[0]||e.lastSize[1]!==n[1])&&(e.lastSize[0]=n[0],e.lastSize[1]=n[1],e.lastAspectRatio=n[0]/n[1],e.forceUpdate=!0),e.camera=r,t.updateTexturePolyData()}}const Dnt=J.newInstance(function(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{renderable:null};Object.assign(e,{},n),J.obj(t,e),e.tmPolyData=$a.newInstance(),e.tmMapper=Pr.newInstance(),e.tmMapper.setInputData(e.tmPolyData),e.tmActor=$r.newInstance({parentProp:t}),e.tmActor.setMapper(e.tmMapper),J.setGet(t,e,["renderable"]),J.get(t,e,["lastSize","lastAspectRatio","axisTextStyle","tickTextStyle","tmActor","ticks"]),e.forceUpdate=!1,e.lastRedrawTime={},J.obj(e.lastRedrawTime,{mtime:0}),e.lastRebuildTime={},J.obj(e.lastRebuildTime,{mtime:0}),e.lastSize=[-1,-1],e.lastTickBounds=[],Mnt(t,e)},"vtkCubeAxesActorHelper");function Ant(t,e){e.classHierarchy.push("vtkCubeAxesActor"),t.setCamera=r=>{e.camera!==r&&(e.cameraModifiedSub&&(e.cameraModifiedSub.unsubscribe(),e.cameraModifiedSub=null),e.camera=r,r&&(e.cameraModifiedSub=r.onModified(t.update)),t.update(),t.modified())},t.computeFacesToDraw=()=>{const r=e.camera.getViewMatrix();ea(r,r);let a=!1;const i=Jr.getDiagonalLength(e.dataBounds),o=Math.sin(e.faceVisibilityAngle*Math.PI/180);for(let s=0;s<6;s++){let l=!1;const u=Math.floor(s/2),c=(u+1)%3,f=(u+2)%3;e.dataBounds[c*2]!==e.dataBounds[c*2+1]&&e.dataBounds[f*2]!==e.dataBounds[f*2+1]&&(kn[u]=e.dataBounds[s]-.1*i*Ent[s][u],kn[c]=.5*(e.dataBounds[c*2]+e.dataBounds[c*2+1]),kn[f]=.5*(e.dataBounds[f*2]+e.dataBounds[f*2+1]),_r(Er,kn,r),kn[u]=e.dataBounds[s],_r(Ch,kn,r),bf(Er,Ch,Er),Rf(Er,Er),l=Er[2]>o,e.camera.getParallelProjection()||(Rf(Ch,Ch),l=tN(Ch,Er)>o)),l!==e.lastFacesToDraw[s]&&(e.lastFacesToDraw[s]=l,a=!0)}return a},t.updatePolyData=(r,a,i)=>{let o=0,s=0;o+=8;let l=0;for(let h=0;h<12;h++)a[h]>0&&l++;if(s+=l,e.gridLines)for(let h=0;h<6;h++)r[h]&&(o+=i[oa[h][0]].length*2+i[oa[h][1]].length*2,s+=i[oa[h][0]].length+i[oa[h][1]].length);const u=new Float64Array(o*3),c=new Uint32Array(s*3);let f=0,d=0;for(let h=0;h<2;h++)for(let p=0;p<2;p++)for(let v=0;v<2;v++)u[f*3]=e.dataBounds[v],u[f*3+1]=e.dataBounds[2+p],u[f*3+2]=e.dataBounds[4+h],f++;for(let h=0;h<12;h++)a[h]>0&&(c[d*3]=2,c[d*3+1]=ow[h][0],c[d*3+2]=ow[h][1],d++);if(e.gridLines){for(let h=0;h<6;h++)if(r[h]){const p=Math.floor(h/2);let v=i[oa[h][0]];for(let g=0;g<v.length;g++)u[f*3+p]=e.dataBounds[h],u[f*3+oa[h][0]]=v[g],u[f*3+oa[h][1]]=e.dataBounds[oa[h][1]*2],f++,u[f*3+p]=e.dataBounds[h],u[f*3+oa[h][0]]=v[g],u[f*3+oa[h][1]]=e.dataBounds[oa[h][1]*2+1],f++,c[d*3]=2,c[d*3+1]=f-2,c[d*3+2]=f-1,d++;v=i[oa[h][1]];for(let g=0;g<v.length;g++)u[f*3+p]=e.dataBounds[h],u[f*3+oa[h][1]]=v[g],u[f*3+oa[h][0]]=e.dataBounds[oa[h][0]*2],f++,u[f*3+p]=e.dataBounds[h],u[f*3+oa[h][1]]=v[g],u[f*3+oa[h][0]]=e.dataBounds[oa[h][0]*2+1],f++,c[d*3]=2,c[d*3+1]=f-2,c[d*3+2]=f-1,d++}}e.polyData.getPoints().setData(u,3),e.polyData.getPoints().modified(),e.polyData.getLines().setData(c,1),e.polyData.getLines().modified(),e.polyData.modified()},t.updateTextData=(r,a,i,o)=>{let s=0;for(let h=0;h<12;h++)a[h]===1&&(s+=2,s+=i[N6[h]].length);const l=e.polyData.getPoints().getData(),u=new Float64Array(s*3);let c=0,f=0,d=0;for(let h=0;h<6;h++)if(r[h])for(let p=0;p<4;p++){const v=V6[h][p];if(a[v]===1){const g=N6[v],y=ow[v][0]*3,m=ow[v][1]*3;u[c*3]=.5*(l[y]+l[m]),u[c*3+1]=.5*(l[y+1]+l[m+1]),u[c*3+2]=.5*(l[y+2]+l[m+2]),c++;const S=Math.floor(h/2);u[c*3+S]=e.dataBounds[h],u[c*3+oa[h][0]]=.5*(e.dataBounds[oa[h][0]*2]+e.dataBounds[oa[h][0]*2+1]),u[c*3+oa[h][1]]=.5*(e.dataBounds[oa[h][1]*2]+e.dataBounds[oa[h][1]*2+1]),c++,e.textValues[f]=e.axisLabels[g],f++;const w=(g+1)%3,C=(g+2)%3,_=i[g],x=o[g];e.tickCounts[d]=_.length;for(let T=0;T<_.length;T++)u[c*3+g]=_[T],u[c*3+w]=l[y+w],u[c*3+C]=l[y+C],c++,e.textValues[f]=x[T],f++;d++}}e.textPolyData.getPoints().setData(u,3),e.textPolyData.modified()},t.update=()=>{if(!e.camera)return;const r=t.computeFacesToDraw(),a=e.lastFacesToDraw;let i=!1;for(let o=0;o<6;o++)e.dataBounds[o]!==e.lastTickBounds[o]&&(i=!0,e.lastTickBounds[o]=e.dataBounds[o]);if(r||i||e.forceUpdate){const o=new Array(12).fill(0);for(let u=0;u<6;u++)if(a[u])for(let c=0;c<4;c++)o[V6[u][c]]++;const s=[],l=[];for(let u=0;u<3;u++){const c=x0().domain([e.dataBounds[u*2],e.dataBounds[u*2+1]]);s[u]=c.ticks(5);const f=c.tickFormat(5);l[u]=s[u].map(f)}t.updatePolyData(a,o,s),t.updateTextData(a,o,s,l),(i||e.forceUpdate)&&t.updateTextureAtlas(l)}e.forceUpdate=!1},t.updateTextureAtlas=r=>{e.tmContext.textBaseline="bottom",e.tmContext.textAlign="left",e._tmAtlas.clear();let a=0,i=1;for(let o=0;o<3;o++){if(!e._tmAtlas.has(e.axisLabels[o])){nD(e.tmContext,e.axisTextStyle);const s=e.tmContext.measureText(e.axisLabels[o]),l={height:s.actualBoundingBoxAscent+2,startingHeight:i,width:s.width+2,textStyle:e.axisTextStyle};e._tmAtlas.set(e.axisLabels[o],l),i+=l.height,a<l.width&&(a=l.width)}nD(e.tmContext,e.tickTextStyle);for(let s=0;s<r[o].length;s++)if(!e._tmAtlas.has(r[o][s])){const l=e.tmContext.measureText(r[o][s]),u={height:l.actualBoundingBoxAscent+2,startingHeight:i,width:l.width+2,textStyle:e.tickTextStyle};e._tmAtlas.set(r[o][s],u),i+=u.height,a<u.width&&(a=u.width)}}a=us(a),i=us(i),e._tmAtlas.forEach(o=>{o.tcoords=[0,(i-o.startingHeight-o.height)/i,o.width/a,(i-o.startingHeight-o.height)/i,o.width/a,(i-o.startingHeight)/i,0,(i-o.startingHeight)/i]}),e.tmCanvas.width=a,e.tmCanvas.height=i,e.tmContext.textBaseline="bottom",e.tmContext.textAlign="left",e.tmContext.clearRect(0,0,a,i),e._tmAtlas.forEach((o,s)=>{nD(e.tmContext,o.textStyle),e.tmContext.fillText(s,1,o.startingHeight+o.height-1)}),e.tmTexture.setCanvas(e.tmCanvas),e.tmTexture.modified()},t.onModified(()=>{e.forceUpdate=!0,t.update()}),t.setTickTextStyle=r=>{e.tickTextStyle={...e.tickTextStyle,...r},t.modified()},t.setAxisTextStyle=r=>{e.axisTextStyle={...e.axisTextStyle,...r},t.modified()},t.get_tmAtlas=()=>e._tmAtlas,t.getBounds=()=>(t.update(),Jr.setBounds(e.bounds,e.gridActor.getBounds()),Jr.scaleAboutCenter(e.bounds,e.boundsScaleFactor,e.boundsScaleFactor,e.boundsScaleFactor),e.bounds);const n=J.chain(t.setProperty,e.gridActor.setProperty);t.setProperty=r=>n(r)[0]}function knt(t){return{boundsScaleFactor:1.3,camera:null,dataBounds:[...Jr.INIT_BOUNDS],faceVisibilityAngle:8,gridLines:!0,axisLabels:null,axisTitlePixelOffset:35,axisTextStyle:{fontColor:"white",fontStyle:"normal",fontSize:18,fontFamily:"serif"},tickLabelPixelOffset:12,tickTextStyle:{fontColor:"white",fontStyle:"normal",fontSize:14,fontFamily:"serif"},...t}}function cne(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,knt(n)),$r.extend(t,e,n),e.lastFacesToDraw=[!1,!1,!1,!1,!1,!1],e.axisLabels=["X-Axis","Y-Axis","Z-Axis"],e.tickCounts=[],e.textValues=[],e.lastTickBounds=[],e.tmCanvas=document.createElement("canvas"),e.tmContext=e.tmCanvas.getContext("2d"),e._tmAtlas=new Map,e.tmTexture=Yb.newInstance(),e.tmTexture.setInterpolate(!1),t.getProperty().setDiffuse(0),t.getProperty().setAmbient(1),e.gridMapper=Pr.newInstance(),e.polyData=$a.newInstance(),e.gridMapper.setInputData(e.polyData),e.gridActor=$r.newInstance(),e.gridActor.setMapper(e.gridMapper),e.gridActor.setProperty(t.getProperty()),e.gridActor.setParentProp(t),e.textPolyData=$a.newInstance(),J.setGet(t,e,["axisTitlePixelOffset","boundsScaleFactor","faceVisibilityAngle","gridLines","tickLabelPixelOffset"]),J.setGetArray(t,e,["dataBounds"],6),J.setGetArray(t,e,["axisLabels"],3),J.get(t,e,["axisTextStyle","tickTextStyle","camera","tmTexture","textValues","textPolyData","tickCounts","gridActor"]),Ant(t,e)}const Rnt=J.newInstance(cne,"vtkCubeAxesActor");var fne={newInstance:Rnt,extend:cne,newCubeAxesActorHelper:Dnt};function Lnt(t,e){e.classHierarchy.push("vtkOpenGLCubeAxesActor"),t.buildPass=n=>{n&&(e._openGLRenderer=t.getFirstAncestorOfType("vtkOpenGLRenderer"),e._openGLRenderWindow=e._openGLRenderer.getParent(),e.CubeAxesActorHelper.getRenderable()||e.CubeAxesActorHelper.setRenderable(e.renderable),t.prepareNodes(),t.addMissingNode(e.CubeAxesActorHelper.getTmActor()),t.addMissingNode(e.renderable.getGridActor()),t.removeUnusedNodes())},t.opaquePass=(n,r)=>{if(n){const a=e._openGLRenderer?e._openGLRenderer.getRenderable().getActiveCamera():null,i=e._openGLRenderer.getTiledSizeAndOrigin();e.CubeAxesActorHelper.updateAPISpecificData([i.usize,i.vsize],a,e._openGLRenderWindow.getRenderable())}}}const Ont={};function Vnt(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Ont,n),Sa.extend(t,e,n),e.CubeAxesActorHelper=fne.newCubeAxesActorHelper(),Lnt(t,e)}const Nnt=Kr(Vnt,"vtkOpenGLCubeAxesActor");El("vtkCubeAxesActor",Nnt);const Lm={ARRAY_BUFFER:0,ELEMENT_ARRAY_BUFFER:1,TEXTURE_BUFFER:2};var dne={ObjectType:Lm};const{ObjectType:T_}=dne,Int={};function Bnt(t,e){e.classHierarchy.push("vtkOpenGLBufferObject");function n(s){switch(s){case T_.ELEMENT_ARRAY_BUFFER:return e.context.ELEMENT_ARRAY_BUFFER;case T_.TEXTURE_BUFFER:if("TEXTURE_BUFFER"in e.context)return e.context.TEXTURE_BUFFER;case T_.ARRAY_BUFFER:default:return e.context.ARRAY_BUFFER}}let r=null,a=null,i=!0,o="";t.getType=()=>r,t.setType=s=>{r=s},t.getHandle=()=>a,t.isReady=()=>i===!1,t.generateBuffer=s=>{const l=n(s);return a===null&&(a=e.context.createBuffer(),r=s),n(r)===l},t.upload=(s,l)=>t.generateBuffer(l)?(e.context.bindBuffer(n(r),a),e.context.bufferData(n(r),s,e.context.STATIC_DRAW),e.allocatedGPUMemoryInBytes=s.length*s.BYTES_PER_ELEMENT,i=!1,!0):(o="Trying to upload array buffer to incompatible buffer.",!1),t.bind=()=>a?(e.context.bindBuffer(n(r),a),!0):!1,t.release=()=>a?(e.context.bindBuffer(n(r),null),!0):!1,t.releaseGraphicsResources=()=>{a!==null&&(e.context.bindBuffer(n(r),null),e.context.deleteBuffer(a),a=null,e.allocatedGPUMemoryInBytes=0)},t.setOpenGLRenderWindow=s=>{e._openGLRenderWindow!==s&&(t.releaseGraphicsResources(),e._openGLRenderWindow=s,e.context=null,s&&(e.context=e._openGLRenderWindow.getContext()))},t.getError=()=>o}const $nt={objectType:T_.ARRAY_BUFFER,context:null,allocatedGPUMemoryInBytes:0};function hne(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,$nt,n),J.obj(t,e),J.get(t,e,["_openGLRenderWindow","allocatedGPUMemoryInBytes"]),J.moveToProtected(t,e,["openGLRenderWindow"]),Bnt(t,e)}const Pnt=J.newInstance(hne);var pne={newInstance:Pnt,extend:hne,...Int,...dne};const{vtkErrorMacro:I6}=J;function Fnt(t,e){const n=new Float64Array(3);bqe(n,e);const r=new Float64Array(16);return kJ(r,yp(),t,n),r}function znt(t,e){return t===null||e===null?!1:!(J8(t,[0,0,0])&&J8(e,[1,1,1]))}function Unt(t,e){e.classHierarchy.push("vtkOpenGLCellArrayBufferObject"),t.setType(Lm.ARRAY_BUFFER),t.createVBO=function(n,r,a,i){let o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:null;if(!n.getData()||!n.getData().length)return e.elementCount=0,0;e.blockSize=3,e.vertexOffset=0,e.normalOffset=0,e.tCoordOffset=0,e.tCoordComponents=0,e.colorComponents=0,e.colorOffset=0,e.customData=[];const s=i.points.getData();let l=null,u=null,c=null;const f=i.colors?i.colors.getNumberOfComponents():0,d=i.tcoords?i.tcoords.getNumberOfComponents():0;i.normals&&(e.normalOffset=4*e.blockSize,e.blockSize+=3,l=i.normals.getData()),i.customAttributes&&i.customAttributes.forEach(V=>{V&&(e.customData.push({data:V.getData(),offset:4*e.blockSize,components:V.getNumberOfComponents(),name:V.getName()}),e.blockSize+=V.getNumberOfComponents())}),i.tcoords&&(e.tCoordOffset=4*e.blockSize,e.tCoordComponents=d,e.blockSize+=d,u=i.tcoords.getData()),i.colors?(e.colorComponents=i.colors.getNumberOfComponents(),e.colorOffset=0,c=i.colors.getData(),e.colorBO||(e.colorBO=pne.newInstance()),e.colorBO.setOpenGLRenderWindow(e._openGLRenderWindow)):e.colorBO=null,e.stride=4*e.blockSize;let h=0,p=0,v=0,g=0,y=0,m=0,S;const w={anythingToPoints(V,z,K){for(let Z=0;Z<V;++Z)S(z[K+Z])},linesToWireframe(V,z,K){for(let Z=0;Z<V-1;++Z)S(z[K+Z]),S(z[K+Z+1])},polysToWireframe(V,z,K){if(V>2)for(let Z=0;Z<V;++Z)S(z[K+Z]),S(z[K+(Z+1)%V])},stripsToWireframe(V,z,K){if(V>2){for(let Z=0;Z<V-1;++Z)S(z[K+Z]),S(z[K+Z+1]);for(let Z=0;Z<V-2;Z++)S(z[K+Z]),S(z[K+Z+2])}},polysToSurface(V,z,K){for(let Z=0;Z<V-2;Z++)S(z[K+0]),S(z[K+Z+1]),S(z[K+Z+2])},stripsToSurface(V,z,K){for(let Z=0;Z<V-2;Z++)S(z[K+Z]),S(z[K+Z+1+Z%2]),S(z[K+Z+1+(Z+1)%2])}},C={anythingToPoints(V,z){return V},linesToWireframe(V,z){return V>1?(V-1)*2:0},polysToWireframe(V,z){return V>2?V*2:0},stripsToWireframe(V,z){return V>2?V*4-6:0},polysToSurface(V,z){return V>2?(V-2)*3:0},stripsToSurface(V,z,K){return V>2?(V-2)*3:0}};let _=null,x=null;a===ni.POINTS||r==="verts"?(_=w.anythingToPoints,x=C.anythingToPoints):a===ni.WIREFRAME||r==="lines"?(_=w[`${r}ToWireframe`],x=C[`${r}ToWireframe`]):(_=w[`${r}ToSurface`],x=C[`${r}ToSurface`]);const T=n.getData(),M=T.length;let E=0;for(let V=0;V<M;)E+=x(T[V],T),V+=T[V]+1;let A=null;const k=new Float32Array(E*e.blockSize);c&&(A=new Uint8Array(E*4));let L=0,I=0,P=0,F=0;for(let V=0;V<3;++V){const z=i.points.getRange(V),K=z[1]-z[0];P+=K*K;const Z=.5*(z[1]+z[0]);F+=Z*Z}if(P>0&&(Math.abs(F)/P>1e6||Math.abs(Math.log10(P))>3||P===0&&F>1e6)){const V=new Float64Array(3),z=new Float64Array(3);for(let K=0;K<3;++K){const Z=i.points.getRange(K),oe=Z[1]-Z[0];V[K]=.5*(Z[1]+Z[0]),z[K]=oe>0?1/oe:1}t.setCoordShiftAndScale(V,z)}else e.coordShiftAndScaleEnabled===!0&&t.setCoordShiftAndScale(null,null);if(o)if(!o.points&&!o.cells)o.points=new Int32Array(E),o.cells=new Int32Array(E);else{const V=new Int32Array(E+o.points.length);V.set(o.points),o.points=V;const z=new Int32Array(E+o.cells.length);z.set(o.cells),o.cells=z}let W=i.vertexOffset;S=function(z){if(o&&(o.points[W]=z,o.cells[W]=m+i.cellOffset),++W,h=z*3,e.coordShiftAndScaleEnabled?(k[L++]=(s[h++]-e.coordShift[0])*e.coordScale[0],k[L++]=(s[h++]-e.coordShift[1])*e.coordScale[1],k[L++]=(s[h++]-e.coordShift[2])*e.coordScale[2]):(k[L++]=s[h++],k[L++]=s[h++],k[L++]=s[h++]),l!==null&&(i.haveCellNormals?p=(m+i.cellOffset)*3:p=z*3,k[L++]=l[p++],k[L++]=l[p++],k[L++]=l[p++]),e.customData.forEach(K=>{y=z*K.components;for(let Z=0;Z<K.components;++Z)k[L++]=K.data[y++]}),u!==null){v=z*d;for(let K=0;K<d;++K)k[L++]=u[v++]}c!==null&&(i.haveCellScalars?g=(m+i.cellOffset)*f:g=z*f,A[I++]=c[g++],A[I++]=c[g++],A[I++]=c[g++],A[I++]=f===4?c[g++]:255)};for(let V=0;V<M;)_(T[V],T,V+1),V+=T[V]+1,m++;return e.elementCount=E,t.upload(k,Lm.ARRAY_BUFFER),e.colorBO&&(e.colorBOStride=4,e.colorBO.upload(A,Lm.ARRAY_BUFFER)),m},t.setCoordShiftAndScale=(n,r)=>{if(n!==null&&(n.constructor!==Float64Array||n.length!==3)){I6("Wrong type for coordShift, expected vec3 or null");return}if(r!==null&&(r.constructor!==Float64Array||r.length!==3)){I6("Wrong type for coordScale, expected vec3 or null");return}(e.coordShift===null||n===null||!e6(n,e.coordShift))&&(e.coordShift=n),(e.coordScale===null||r===null||!e6(r,e.coordScale))&&(e.coordScale=r),e.coordShiftAndScaleEnabled=znt(e.coordShift,e.coordScale),e.coordShiftAndScaleEnabled?e.inverseShiftAndScaleMatrix=Fnt(e.coordShift,e.coordScale):e.inverseShiftAndScaleMatrix=null}}const Gnt={elementCount:0,stride:0,colorBOStride:0,vertexOffset:0,normalOffset:0,tCoordOffset:0,tCoordComponents:0,colorOffset:0,colorComponents:0,tcoordBO:null,customData:[],coordShift:null,coordScale:null,coordShiftAndScaleEnabled:!1,inverseShiftAndScaleMatrix:null};function vne(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Gnt,n),pne.extend(t,e,n),J.setGet(t,e,["colorBO","elementCount","stride","colorBOStride","vertexOffset","normalOffset","tCoordOffset","tCoordComponents","colorOffset","colorComponents","customData"]),J.get(t,e,["coordShift","coordScale","coordShiftAndScaleEnabled","inverseShiftAndScaleMatrix"]),Unt(t,e)}const Hnt=J.newInstance(vne);var Wnt={newInstance:Hnt,extend:vne};const{vtkErrorMacro:jnt}=J;function Knt(t,e){e.classHierarchy.push("vtkShader"),t.compile=()=>{let n=e.context.VERTEX_SHADER;if(!e.source||!e.source.length||e.shaderType==="Unknown")return!1;switch(e.handle!==0&&(e.context.deleteShader(e.handle),e.handle=0),e.shaderType){case"Fragment":n=e.context.FRAGMENT_SHADER;break;case"Vertex":default:n=e.context.VERTEX_SHADER;break}if(e.handle=e.context.createShader(n),e.context.shaderSource(e.handle,e.source),e.context.compileShader(e.handle),!e.context.getShaderParameter(e.handle,e.context.COMPILE_STATUS)){const a=e.context.getShaderInfoLog(e.handle);return jnt(`Error compiling shader '${e.source}': ${a}`),e.context.deleteShader(e.handle),e.handle=0,!1}return!0},t.cleanup=()=>{e.shaderType==="Unknown"||e.handle===0||(e.context.deleteShader(e.handle),e.handle=0,e.dirty=!0)}}const Ynt={shaderType:"Unknown",source:"",error:"",handle:0,dirty:!1,context:null};function gne(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Ynt,n),J.obj(t,e),J.setGet(t,e,["shaderType","source","error","handle","context"]),Knt(t,e)}const Xnt=J.newInstance(gne,"vtkShader");var rD={newInstance:Xnt,extend:gne};const{vtkErrorMacro:Vl}=J;function qnt(t,e,n,r){const a=typeof n=="string"?n:n.join(`
  80. `),i=r===!1?e:new RegExp(e,"g"),o=t.replace(i,a);return{replace:o!==a,result:o}}function Znt(t,e){e.classHierarchy.push("vtkShaderProgram"),t.compileShader=()=>e.vertexShader.compile()?e.fragmentShader.compile()?!t.attachShader(e.vertexShader)||!t.attachShader(e.fragmentShader)?(Vl(e.error),0):t.link()?(t.setCompiled(!0),1):(Vl(`Links failed: ${e.error}`),0):(Vl(e.fragmentShader.getSource().split(`
  81. `).map((n,r)=>`${r}: ${n}`).join(`
  82. `)),Vl(e.fragmentShader.getError()),0):(Vl(e.vertexShader.getSource().split(`
  83. `).map((n,r)=>`${r}: ${n}`).join(`
  84. `)),Vl(e.vertexShader.getError()),0),t.cleanup=()=>{e.shaderType==="Unknown"||e.handle===0||(t.release(),e.vertexShaderHandle!==0&&(e.context.detachShader(e.handle,e.vertexShaderHandle),e.vertexShaderHandle=0),e.fragmentShaderHandle!==0&&(e.context.detachShader(e.handle,e.fragmentShaderHandle),e.fragmentShaderHandle=0),e.context.deleteProgram(e.handle),e.handle=0,t.setCompiled(!1))},t.bind=()=>!e.linked&&!t.link()?!1:(e.context.useProgram(e.handle),t.setBound(!0),!0),t.isBound=()=>!!e.bound,t.release=()=>{e.context.useProgram(null),t.setBound(!1)},t.setContext=n=>{e.vertexShader.setContext(n),e.fragmentShader.setContext(n),e.geometryShader.setContext(n)},t.link=()=>{if(e.linked)return!0;if(e.handle===0)return e.error="Program has not been initialized, and/or does not have shaders.",!1;if(e.uniformLocs={},e.context.linkProgram(e.handle),!e.context.getProgramParameter(e.handle,e.context.LINK_STATUS)){const r=e.context.getProgramInfoLog(e.handle);return Vl(`Error linking shader ${r}`),e.handle=0,!1}return t.setLinked(!0),e.attributeLocs={},!0},t.setUniformMatrix=(n,r)=>{const a=t.findUniform(n);if(a===-1)return e.error=`Could not set uniform ${n} . No such uniform.`,!1;const i=new Float32Array(r);return e.context.uniformMatrix4fv(a,!1,i),!0},t.setUniformMatrix3x3=(n,r)=>{const a=t.findUniform(n);if(a===-1)return e.error=`Could not set uniform ${n} . No such uniform.`,!1;const i=new Float32Array(r);return e.context.uniformMatrix3fv(a,!1,i),!0},t.setUniformf=(n,r)=>{const a=t.findUniform(n);return a===-1?(e.error=`Could not set uniform ${n} . No such uniform.`,!1):(e.context.uniform1f(a,r),!0)},t.setUniformfv=(n,r)=>{const a=t.findUniform(n);return a===-1?(e.error=`Could not set uniform ${n} . No such uniform.`,!1):(e.context.uniform1fv(a,r),!0)},t.setUniformi=(n,r)=>{const a=t.findUniform(n);return a===-1?(e.error=`Could not set uniform ${n} . No such uniform.`,!1):(e.context.uniform1i(a,r),!0)},t.setUniformiv=(n,r)=>{const a=t.findUniform(n);return a===-1?(e.error=`Could not set uniform ${n} . No such uniform.`,!1):(e.context.uniform1iv(a,r),!0)},t.setUniform2f=(n,r,a)=>{const i=t.findUniform(n);if(i===-1)return e.error=`Could not set uniform ${n} . No such uniform.`,!1;if(a===void 0)throw new RangeError("Invalid number of values for array");return e.context.uniform2f(i,r,a),!0},t.setUniform2fv=(n,r)=>{const a=t.findUniform(n);return a===-1?(e.error=`Could not set uniform ${n} . No such uniform.`,!1):(e.context.uniform2fv(a,r),!0)},t.setUniform2i=(n,r,a)=>{const i=t.findUniform(n);if(i===-1)return e.error=`Could not set uniform ${n} . No such uniform.`,!1;if(a===void 0)throw new RangeError("Invalid number of values for array");return e.context.uniform2i(i,r,a),!0},t.setUniform2iv=(n,r)=>{const a=t.findUniform(n);return a===-1?(e.error=`Could not set uniform ${n} . No such uniform.`,!1):(e.context.uniform2iv(a,r),!0)},t.setUniform3f=(n,r,a,i)=>{const o=t.findUniform(n);if(o===-1)return e.error=`Could not set uniform ${n} . No such uniform.`,!1;if(i===void 0)throw new RangeError("Invalid number of values for array");return e.context.uniform3f(o,r,a,i),!0},t.setUniform3fArray=(n,r)=>{const a=t.findUniform(n);if(a===-1)return e.error=`Could not set uniform ${n} . No such uniform.`,!1;if(!Array.isArray(r)||r.length!==3)throw new RangeError("Invalid number of values for array");return e.context.uniform3f(a,r[0],r[1],r[2]),!0},t.setUniform3fv=(n,r)=>{const a=t.findUniform(n);return a===-1?(e.error=`Could not set uniform ${n} . No such uniform.`,!1):(e.context.uniform3fv(a,r),!0)},t.setUniform3i=function(n){const r=t.findUniform(n);if(r===-1)return e.error=`Could not set uniform ${n} . No such uniform.`,!1;for(var a=arguments.length,i=new Array(a>1?a-1:0),o=1;o<a;o++)i[o-1]=arguments[o];let s=i;if(s.length===1&&Array.isArray(s[0])&&(s=s[0]),s.length!==3)throw new RangeError("Invalid number of values for array");return e.context.uniform3i(r,s[0],s[1],s[2]),!0},t.setUniform3iv=(n,r)=>{const a=t.findUniform(n);return a===-1?(e.error=`Could not set uniform ${n} . No such uniform.`,!1):(e.context.uniform3iv(a,r),!0)},t.setUniform4f=function(n){const r=t.findUniform(n);if(r===-1)return e.error=`Could not set uniform ${n} . No such uniform.`,!1;for(var a=arguments.length,i=new Array(a>1?a-1:0),o=1;o<a;o++)i[o-1]=arguments[o];let s=i;if(s.length===1&&Array.isArray(s[0])&&(s=s[0]),s.length!==4)throw new RangeError("Invalid number of values for array");return e.context.uniform4f(r,s[0],s[1],s[2],s[3]),!0},t.setUniform4fv=(n,r)=>{const a=t.findUniform(n);return a===-1?(e.error=`Could not set uniform ${n} . No such uniform.`,!1):(e.context.uniform4fv(a,r),!0)},t.setUniform4i=function(n){const r=t.findUniform(n);if(r===-1)return e.error=`Could not set uniform ${n} . No such uniform.`,!1;for(var a=arguments.length,i=new Array(a>1?a-1:0),o=1;o<a;o++)i[o-1]=arguments[o];let s=i;if(s.length===1&&Array.isArray(s[0])&&(s=s[0]),s.length!==4)throw new RangeError("Invalid number of values for array");return e.context.uniform4i(r,s[0],s[1],s[2],s[3]),!0},t.setUniform4iv=(n,r)=>{const a=t.findUniform(n);return a===-1?(e.error=`Could not set uniform ${n} . No such uniform.`,!1):(e.context.uniform4iv(a,r),!0)},t.findUniform=n=>{if(!n||!e.linked)return-1;let r=e.uniformLocs[n];return r!==void 0?r:(r=e.context.getUniformLocation(e.handle,n),r===null?(e.error=`Uniform ${n} not found in current shader program.`,e.uniformLocs[n]=-1,-1):(e.uniformLocs[n]=r,r))},t.isUniformUsed=n=>{if(!n)return!1;let r=e.uniformLocs[n];return r!==void 0?r!==null:e.linked?(r=e.context.getUniformLocation(e.handle,n),e.uniformLocs[n]=r,r!==null):(Vl("attempt to find uniform when the shader program is not linked"),!1)},t.isAttributeUsed=n=>{if(!n)return!1;if(n in e.attributeLocs)return!0;if(!e.linked)return Vl("attempt to find uniform when the shader program is not linked"),!1;const r=e.context.getAttribLocation(e.handle,n);return r===-1?!1:(e.attributeLocs[n]=r,!0)},t.attachShader=n=>{if(n.getHandle()===0)return e.error="Shader object was not initialized, cannot attach it.",!1;if(n.getShaderType()==="Unknown")return e.error="Shader object is of type Unknown and cannot be used.",!1;if(e.handle===0){const r=e.context.createProgram();if(r===0)return e.error="Could not create shader program.",!1;e.handle=r,e.linked=!1}return n.getShaderType()==="Vertex"&&(e.vertexShaderHandle!==0&&e.context.detachShader(e.handle,e.vertexShaderHandle),e.vertexShaderHandle=n.getHandle()),n.getShaderType()==="Fragment"&&(e.fragmentShaderHandle!==0&&e.context.detachShader(e.handle,e.fragmentShaderHandle),e.fragmentShaderHandle=n.getHandle()),e.context.attachShader(e.handle,n.getHandle()),t.setLinked(!1),!0},t.detachShader=n=>{if(n.getHandle()===0)return e.error="shader object was not initialized, cannot attach it.",!1;if(n.getShaderType()==="Unknown")return e.error="Shader object is of type Unknown and cannot be used.",!1;switch(e.handle===0&&(e.error="This shader program has not been initialized yet."),n.getShaderType()){case"Vertex":return e.vertexShaderHandle!==n.getHandle()?(e.error="The supplied shader was not attached to this program.",!1):(e.context.detachShader(e.handle,n.getHandle()),e.vertexShaderHandle=0,e.linked=!1,!0);case"Fragment":return e.fragmentShaderHandle!==n.getHandle()?(e.error="The supplied shader was not attached to this program.",!1):(e.context.detachShader(e.handle,n.getHandle()),e.fragmentShaderHandle=0,e.linked=!1,!0);default:return!1}},t.setContext=n=>{e.context=n,e.vertexShader.setContext(n),e.fragmentShader.setContext(n),e.geometryShader.setContext(n)},t.setLastCameraMTime=n=>{e.lastCameraMTime=n}}const Qnt={vertexShaderHandle:0,fragmentShaderHandle:0,geometryShaderHandle:0,vertexShader:null,fragmentShader:null,geometryShader:null,linked:!1,bound:!1,compiled:!1,error:"",handle:0,numberOfOutputs:0,attributesLocs:null,uniformLocs:null,md5Hash:0,context:null,lastCameraMTime:null};function yne(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Qnt,n),e.attributesLocs={},e.uniformLocs={},e.vertexShader=rD.newInstance(),e.vertexShader.setShaderType("Vertex"),e.fragmentShader=rD.newInstance(),e.fragmentShader.setShaderType("Fragment"),e.geometryShader=rD.newInstance(),e.geometryShader.setShaderType("Geometry"),J.obj(t,e),J.get(t,e,["lastCameraMTime"]),J.setGet(t,e,["error","handle","compiled","bound","md5Hash","vertexShader","fragmentShader","geometryShader","linked"]),Znt(t,e)}const Jnt=J.newInstance(yne,"vtkShaderProgram");var St={newInstance:Jnt,extend:yne,substitute:qnt};function ert(t,e){e.classHierarchy.push("vtkOpenGLVertexArrayObject"),t.exposedMethod=()=>{},t.initialize=()=>{e.instancingExtension=null,e._openGLRenderWindow.getWebgl2()||(e.instancingExtension=e.context.getExtension("ANGLE_instanced_arrays")),!e.forceEmulation&&e._openGLRenderWindow&&e._openGLRenderWindow.getWebgl2()?(e.extension=null,e.supported=!0,e.handleVAO=e.context.createVertexArray()):(e.extension=e.context.getExtension("OES_vertex_array_object"),!e.forceEmulation&&e.extension?(e.supported=!0,e.handleVAO=e.extension.createVertexArrayOES()):e.supported=!1)},t.isReady=()=>e.handleVAO!==0||e.supported===!1,t.bind=()=>{if(t.isReady()||t.initialize(),t.isReady()&&e.supported)e.extension?e.extension.bindVertexArrayOES(e.handleVAO):e.context.bindVertexArray(e.handleVAO);else if(t.isReady()){const n=e.context;for(let r=0;r<e.buffers.length;++r){const a=e.buffers[r];e.context.bindBuffer(n.ARRAY_BUFFER,a.buffer);for(let i=0;i<a.attributes.length;++i){const o=a.attributes[i],s=o.isMatrix?o.size:1;for(let l=0;l<s;++l)n.enableVertexAttribArray(o.index+l),n.vertexAttribPointer(o.index+l,o.size,o.type,o.normalize,o.stride,o.offset+o.stride*l/o.size),o.divisor>0&&(e.instancingExtension?e.instancingExtension.vertexAttribDivisorANGLE(o.index+l,1):n.vertexAttribDivisor(o.index+l,1))}}}},t.release=()=>{if(t.isReady()&&e.supported)e.extension?e.extension.bindVertexArrayOES(null):e.context.bindVertexArray(null);else if(t.isReady()){const n=e.context;for(let r=0;r<e.buffers.length;++r){const a=e.buffers[r];e.context.bindBuffer(n.ARRAY_BUFFER,a.buffer);for(let i=0;i<a.attributes.length;++i){const o=a.attributes[i],s=o.isMatrix?o.size:1;for(let l=0;l<s;++l)n.enableVertexAttribArray(o.index+l),n.vertexAttribPointer(o.index+l,o.size,o.type,o.normalize,o.stride,o.offset+o.stride*l/o.size),o.divisor>0&&(e.instancingExtension?e.instancingExtension.vertexAttribDivisorANGLE(o.index+l,0):n.vertexAttribDivisor(o.index+l,0)),n.disableVertexAttribArray(o.index+l)}}}},t.shaderProgramChanged=()=>{t.release(),e.handleVAO&&(e.extension?e.extension.deleteVertexArrayOES(e.handleVAO):e.context.deleteVertexArray(e.handleVAO)),e.handleVAO=0,e.handleProgram=0},t.releaseGraphicsResources=()=>{t.shaderProgramChanged(),e.handleVAO&&(e.extension?e.extension.deleteVertexArrayOES(e.handleVAO):e.context.deleteVertexArray(e.handleVAO)),e.handleVAO=0,e.supported=!0,e.handleProgram=0},t.addAttributeArray=(n,r,a,i,o,s,l,u)=>t.addAttributeArrayWithDivisor(n,r,a,i,o,s,l,u,0,!1),t.addAttributeArrayWithDivisor=(n,r,a,i,o,s,l,u,c,f)=>{if(!n||!n.isBound()||r.getHandle()===0||r.getType()!==Lm.ARRAY_BUFFER||(e.handleProgram===0&&(e.handleProgram=n.getHandle()),t.isReady()||t.initialize(),!t.isReady()||e.handleProgram!==n.getHandle()))return!1;const d=e.context,h={};if(h.name=a,h.index=d.getAttribLocation(e.handleProgram,a),h.offset=i,h.stride=o,h.type=s,h.size=l,h.normalize=u,h.isMatrix=f,h.divisor=c,h.Index===-1)return!1;if(r.bind(),d.enableVertexAttribArray(h.index),d.vertexAttribPointer(h.index,h.size,h.type,h.normalize,h.stride,h.offset),c>0&&(e.instancingExtension?e.instancingExtension.vertexAttribDivisorANGLE(h.index,1):d.vertexAttribDivisor(h.index,1)),h.buffer=r.getHandle(),!e.supported){let p=!1;for(let v=0;v<e.buffers.length;++v){const g=e.buffers[v];if(g.buffer===h.buffer){p=!0;let y=!1;for(let m=0;m<g.attributes.length;++m)g.attributes[m].name===a&&(y=!0,g.attributes[m]=h);y||g.attributes.push(h)}}p||e.buffers.push({buffer:h.buffer,attributes:[h]})}return!0},t.addAttributeMatrixWithDivisor=(n,r,a,i,o,s,l,u,c)=>{const f=t.addAttributeArrayWithDivisor(n,r,a,i,o,s,l,u,c,!0);if(!f)return f;const d=e.context,h=d.getAttribLocation(e.handleProgram,a);for(let p=1;p<l;p++)d.enableVertexAttribArray(h+p),d.vertexAttribPointer(h+p,l,s,u,o,i+o*p/l),c>0&&(e.instancingExtension?e.instancingExtension.vertexAttribDivisorANGLE(h+p,1):d.vertexAttribDivisor(h+p,1));return!0},t.removeAttributeArray=n=>{if(!t.isReady()||e.handleProgram===0)return!1;if(!e.supported)for(let r=0;r<e.buffers.length;++r){const a=e.buffers[r];for(let i=0;i<a.attributes.length;++i)if(a.attributes[i].name===n)return a.attributes.splice(i,1),a.attributes.length||e.buffers.splice(r,1),!0}return!0},t.setOpenGLRenderWindow=n=>{e._openGLRenderWindow!==n&&(t.releaseGraphicsResources(),e._openGLRenderWindow=n,e.context=null,n&&(e.context=e._openGLRenderWindow.getContext()))}}const trt={forceEmulation:!1,handleVAO:0,handleProgram:0,supported:!0,buffers:null,context:null};function mne(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,trt,n),e.buffers=[],J.obj(t,e),J.get(t,e,["supported"]),J.setGet(t,e,["forceEmulation"]),ert(t,e)}const nrt=J.newInstance(mne,"vtkOpenGLVertexArrayObject");var bne={newInstance:nrt,extend:mne};const nf={Start:0,Points:0,Lines:1,Tris:2,TriStrips:3,TrisEdges:4,TriStripsEdges:5,End:6};function rrt(t,e){e.classHierarchy.push("vtkOpenGLHelper"),t.setOpenGLRenderWindow=n=>{e.context=n.getContext(),e.program.setContext(e.context),e.VAO.setOpenGLRenderWindow(n),e.CABO.setOpenGLRenderWindow(n)},t.releaseGraphicsResources=n=>{e.VAO.releaseGraphicsResources(),e.CABO.releaseGraphicsResources(),e.CABO.setElementCount(0)},t.drawArrays=(n,r,a,i)=>{if(e.CABO.getElementCount()){const o=t.getOpenGLMode(a),s=t.haveWideLines(n,r),l=e.context,u=l.getParameter(l.DEPTH_WRITEMASK);e.pointPicking&&l.depthMask(!1),o===l.LINES&&s?(t.updateShaders(n,r,i),l.drawArraysInstanced(o,0,e.CABO.getElementCount(),2*Math.ceil(r.getProperty().getLineWidth()))):(l.lineWidth(r.getProperty().getLineWidth()),t.updateShaders(n,r,i),l.drawArrays(o,0,e.CABO.getElementCount()),l.lineWidth(1));const f=(o===l.POINTS?1:0)||(o===l.LINES?2:3);return e.pointPicking&&l.depthMask(u),e.CABO.getElementCount()/f}return 0},t.getOpenGLMode=n=>{if(e.pointPicking)return e.context.POINTS;const r=e.primitiveType;return n===ni.POINTS||r===nf.Points?e.context.POINTS:n===ni.WIREFRAME||r===nf.Lines||r===nf.TrisEdges||r===nf.TriStripsEdges?e.context.LINES:e.context.TRIANGLES},t.haveWideLines=(n,r)=>r.getProperty().getLineWidth()>1?!(e.CABO.getOpenGLRenderWindow()&&e.CABO.getOpenGLRenderWindow().getHardwareMaximumLineWidth()>=r.getProperty().getLineWidth()):!1,t.getNeedToRebuildShaders=(n,r,a)=>!!(a.getNeedToRebuildShaders(t,n,r)||t.getProgram()===0||t.getShaderSourceTime().getMTime()<a.getMTime()||t.getShaderSourceTime().getMTime()<r.getMTime()),t.updateShaders=(n,r,a)=>{if(t.getNeedToRebuildShaders(n,r,a)){const i={Vertex:null,Fragment:null,Geometry:null};a.buildShaders(i,n,r);const o=e.CABO.getOpenGLRenderWindow().getShaderCache().readyShaderProgramArray(i.Vertex,i.Fragment,i.Geometry);o!==t.getProgram()&&(t.setProgram(o),t.getVAO().releaseGraphicsResources()),t.getShaderSourceTime().modified()}else e.CABO.getOpenGLRenderWindow().getShaderCache().readyShaderProgram(t.getProgram());t.getVAO().bind(),a.setMapperShaderParameters(t,n,r),a.setPropertyShaderParameters(t,n,r),a.setCameraShaderParameters(t,n,r),a.setLightingShaderParameters(t,n,r),a.invokeShaderCallbacks(t,n,r)},t.setMapperShaderParameters=(n,r,a)=>{if(t.haveWideLines(n,r)){t.getProgram().setUniform2f("viewportSize",a.usize,a.vsize);const i=parseFloat(r.getProperty().getLineWidth()),o=i/2;t.getProgram().setUniformf("lineWidthStepSize",i/Math.ceil(i)),t.getProgram().setUniformf("halfLineWidth",o)}e.primitiveType===nf.Points||r.getProperty().getRepresentation()===ni.POINTS?t.getProgram().setUniformf("pointSize",r.getProperty().getPointSize()):e.pointPicking&&t.getProgram().setUniformf("pointSize",t.getPointPickingPrimitiveSize())},t.replaceShaderPositionVC=(n,r,a)=>{let i=n.Vertex;i=St.substitute(i,"//VTK::PositionVC::Dec",["//VTK::PositionVC::Dec","uniform float pointSize;"]).result,i=St.substitute(i,"//VTK::PositionVC::Impl",["//VTK::PositionVC::Impl"," gl_PointSize = pointSize;"],!1).result,t.getOpenGLMode(a.getProperty().getRepresentation())===e.context.LINES&&t.haveWideLines(r,a)&&(i=St.substitute(i,"//VTK::PositionVC::Dec",["//VTK::PositionVC::Dec","uniform vec2 viewportSize;","uniform float lineWidthStepSize;","uniform float halfLineWidth;"]).result,i=St.substitute(i,"//VTK::PositionVC::Impl",["//VTK::PositionVC::Impl"," if (halfLineWidth > 0.0)"," {"," float offset = float(gl_InstanceID / 2) * lineWidthStepSize - halfLineWidth;"," vec4 tmpPos = gl_Position;"," vec3 tmpPos2 = tmpPos.xyz / tmpPos.w;"," tmpPos2.x = tmpPos2.x + 2.0 * mod(float(gl_InstanceID), 2.0) * offset / viewportSize[0];"," tmpPos2.y = tmpPos2.y + 2.0 * mod(float(gl_InstanceID + 1), 2.0) * offset / viewportSize[1];"," gl_Position = vec4(tmpPos2.xyz * tmpPos.w, tmpPos.w);"," }"]).result),n.Vertex=i},t.getPointPickingPrimitiveSize=()=>e.primitiveType===nf.Points?2:e.primitiveType===nf.Lines?4:6,t.getAllocatedGPUMemoryInBytes=()=>t.getCABO().getAllocatedGPUMemoryInBytes()}const art={context:null,program:null,shaderSourceTime:null,VAO:null,attributeUpdateTime:null,CABO:null,primitiveType:0,pointPicking:!1};function Sne(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,art,n),J.obj(t,e),e.shaderSourceTime={},J.obj(e.shaderSourceTime),e.attributeUpdateTime={},J.obj(e.attributeUpdateTime),J.setGet(t,e,["program","shaderSourceTime","VAO","attributeUpdateTime","CABO","primitiveType","pointPicking"]),e.program=St.newInstance(),e.VAO=bne.newInstance(),e.CABO=Wnt.newInstance(),rrt(t,e)}const irt=J.newInstance(Sne);var E0={newInstance:irt,extend:Sne,primTypes:nf};const ort={CLAMP_TO_EDGE:0,REPEAT:1,MIRRORED_REPEAT:2},XL={NEAREST:0,LINEAR:1,NEAREST_MIPMAP_NEAREST:2,NEAREST_MIPMAP_LINEAR:3,LINEAR_MIPMAP_NEAREST:4,LINEAR_MIPMAP_LINEAR:5};var wne={Wrap:ort,Filter:XL};const xne=new Float32Array(1),srt=new Int32Array(xne.buffer);function lrt(t){xne[0]=t;const e=srt[0];let n=e>>16&32768,r=e>>12&2047;const a=e>>23&255;return a<103?n:a>142?(n|=31744,n|=(a===255?0:1)&&e&8388607,n):a<113?(r|=2048,n|=(r>>114-a)+(r>>113-a&1),n):(n|=a-112<<10|r>>1,n+=r&1,n)}function urt(t){const e=(t&32768)>>15,n=(t&31744)>>10,r=t&1023;return n===0?(e?-1:1)*2**-14*(r/2**10):n===31?r?NaN:(e?-1:1)*(1/0):(e?-1:1)*2**(n-15)*(1+r/2**10)}var nl={fromHalf:urt,toHalf:lrt};const{Wrap:Gu,Filter:ci}=wne,{VtkDataTypes:rr}=zn,{vtkDebugMacro:aD,vtkErrorMacro:rv,vtkWarningMacro:B6}=_u,{toHalf:crt}=nl;function frt(t,e){e.classHierarchy.push("vtkOpenGLTexture"),t.render=function(){let u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;if(u?e._openGLRenderWindow=u:(e._openGLRenderer=t.getFirstAncestorOfType("vtkOpenGLRenderer"),e._openGLRenderWindow=e._openGLRenderer.getParent()),e.context=e._openGLRenderWindow.getContext(),e.renderable.getInterpolate()?(e.generateMipmap?t.setMinificationFilter(ci.LINEAR_MIPMAP_LINEAR):t.setMinificationFilter(ci.LINEAR),t.setMagnificationFilter(ci.LINEAR)):(t.setMinificationFilter(ci.NEAREST),t.setMagnificationFilter(ci.NEAREST)),e.renderable.getRepeat()&&(t.setWrapR(Gu.REPEAT),t.setWrapS(Gu.REPEAT),t.setWrapT(Gu.REPEAT)),e.renderable.getInputData()&&e.renderable.setImage(null),!e.handle||e.renderable.getMTime()>e.textureBuildTime.getMTime()){if(e.renderable.getImage()!==null&&(e.renderable.getInterpolate()&&(e.generateMipmap=!0,t.setMinificationFilter(ci.LINEAR_MIPMAP_LINEAR)),e.renderable.getImage()&&e.renderable.getImageLoaded()&&(t.create2DFromImage(e.renderable.getImage()),t.activate(),t.sendParameters(),e.textureBuildTime.modified())),e.renderable.getCanvas()!==null){e.renderable.getInterpolate()&&(e.generateMipmap=!0,t.setMinificationFilter(ci.LINEAR_MIPMAP_LINEAR));const f=e.renderable.getCanvas();t.create2DFromRaw(f.width,f.height,4,rr.UNSIGNED_CHAR,f,!0),t.activate(),t.sendParameters(),e.textureBuildTime.modified()}if(e.renderable.getJsImageData()!==null){const f=e.renderable.getJsImageData();e.renderable.getInterpolate()&&(e.generateMipmap=!0,t.setMinificationFilter(ci.LINEAR_MIPMAP_LINEAR)),t.create2DFromRaw(f.width,f.height,4,rr.UNSIGNED_CHAR,f.data,!0),t.activate(),t.sendParameters(),e.textureBuildTime.modified()}const c=e.renderable.getInputData(0);if(c&&c.getPointData().getScalars()){const f=c.getExtent(),d=c.getPointData().getScalars(),h=[];for(let p=0;p<e.renderable.getNumberOfInputPorts();++p){const v=e.renderable.getInputData(p),g=v?v.getPointData().getScalars().getData():null;g&&h.push(g)}e.renderable.getInterpolate()&&d.getNumberOfComponents()===4&&(e.generateMipmap=!0,t.setMinificationFilter(ci.LINEAR_MIPMAP_LINEAR)),h.length%6===0?t.createCubeFromRaw(f[1]-f[0]+1,f[3]-f[2]+1,d.getNumberOfComponents(),d.getDataType(),h):t.create2DFromRaw(f[1]-f[0]+1,f[3]-f[2]+1,d.getNumberOfComponents(),d.getDataType(),d.getData()),t.activate(),t.sendParameters(),e.textureBuildTime.modified()}}e.handle&&t.activate()},t.destroyTexture=()=>{t.deactivate(),e.context&&e.handle&&e.context.deleteTexture(e.handle),e.handle=0,e.numberOfDimensions=0,e.target=0,e.components=0,e.width=0,e.height=0,e.depth=0,t.resetFormatAndType()},t.createTexture=()=>{e.handle||(e.handle=e.context.createTexture(),e.target&&(e.context.bindTexture(e.target,e.handle),e.context.texParameteri(e.target,e.context.TEXTURE_MIN_FILTER,t.getOpenGLFilterMode(e.minificationFilter)),e.context.texParameteri(e.target,e.context.TEXTURE_MAG_FILTER,t.getOpenGLFilterMode(e.magnificationFilter)),e.context.texParameteri(e.target,e.context.TEXTURE_WRAP_S,t.getOpenGLWrapMode(e.wrapS)),e.context.texParameteri(e.target,e.context.TEXTURE_WRAP_T,t.getOpenGLWrapMode(e.wrapT)),e._openGLRenderWindow.getWebgl2()&&e.context.texParameteri(e.target,e.context.TEXTURE_WRAP_R,t.getOpenGLWrapMode(e.wrapR)),e.context.bindTexture(e.target,null)))},t.getTextureUnit=()=>e._openGLRenderWindow?e._openGLRenderWindow.getTextureUnitForTexture(t):-1,t.activate=()=>{e._openGLRenderWindow.activateTexture(t),t.bind()},t.deactivate=()=>{e._openGLRenderWindow&&e._openGLRenderWindow.deactivateTexture(t)},t.releaseGraphicsResources=u=>{u&&e.handle&&(u.activateTexture(t),u.deactivateTexture(t),e.context.deleteTexture(e.handle),e.handle=0,e.numberOfDimensions=0,e.target=0,e.internalFormat=0,e.format=0,e.openGLDataType=0,e.components=0,e.width=0,e.height=0,e.depth=0,e.allocatedGPUMemoryInBytes=0),e.shaderProgram&&(e.shaderProgram.releaseGraphicsResources(u),e.shaderProgram=null)},t.bind=()=>{e.context.bindTexture(e.target,e.handle),e.autoParameters&&t.getMTime()>e.sendParametersTime.getMTime()&&t.sendParameters()},t.isBound=()=>{let u=!1;if(e.context&&e.handle){let c=0;switch(e.target){case e.context.TEXTURE_2D:c=e.context.TEXTURE_BINDING_2D;break;default:B6("impossible case");break}u=e.context.getIntegerv(c)===e.handle}return u},t.sendParameters=()=>{e.context.texParameteri(e.target,e.context.TEXTURE_WRAP_S,t.getOpenGLWrapMode(e.wrapS)),e.context.texParameteri(e.target,e.context.TEXTURE_WRAP_T,t.getOpenGLWrapMode(e.wrapT)),e._openGLRenderWindow.getWebgl2()&&e.context.texParameteri(e.target,e.context.TEXTURE_WRAP_R,t.getOpenGLWrapMode(e.wrapR)),e.context.texParameteri(e.target,e.context.TEXTURE_MIN_FILTER,t.getOpenGLFilterMode(e.minificationFilter)),e.context.texParameteri(e.target,e.context.TEXTURE_MAG_FILTER,t.getOpenGLFilterMode(e.magnificationFilter)),e._openGLRenderWindow.getWebgl2()&&(e.context.texParameteri(e.target,e.context.TEXTURE_BASE_LEVEL,e.baseLevel),e.context.texParameteri(e.target,e.context.TEXTURE_MAX_LEVEL,e.maxLevel)),e.sendParametersTime.modified()},t.getInternalFormat=(u,c)=>(e._forceInternalFormat||(e.internalFormat=t.getDefaultInternalFormat(u,c)),e.internalFormat||aD(`Unable to find suitable internal format for T=${u} NC= ${c}`),[e.context.R32F,e.context.RG32F,e.context.RGB32F,e.context.RGBA32F].includes(e.internalFormat)&&!e.context.getExtension("OES_texture_float_linear")&&B6("Failed to load OES_texture_float_linear. Texture filtering is not available for *32F internal formats."),e.internalFormat),t.getDefaultInternalFormat=(u,c)=>{let f=0;return f=e._openGLRenderWindow.getDefaultTextureInternalFormat(u,c,e.oglNorm16Ext,e.useHalfFloat),f||(f||(aD("Unsupported internal texture type!"),aD(`Unable to find suitable internal format for T=${u} NC= ${c}`)),f)},t.setInternalFormat=u=>{e._forceInternalFormat=!0,u!==e.internalFormat&&(e.internalFormat=u,t.modified())},t.getFormat=(u,c)=>(e.format=t.getDefaultFormat(u,c),e.format),t.getDefaultFormat=(u,c)=>{if(e._openGLRenderWindow.getWebgl2())switch(c){case 1:return e.context.RED;case 2:return e.context.RG;case 3:return e.context.RGB;case 4:return e.context.RGBA;default:return e.context.RGB}else switch(c){case 1:return e.context.LUMINANCE;case 2:return e.context.LUMINANCE_ALPHA;case 3:return e.context.RGB;case 4:return e.context.RGBA;default:return e.context.RGB}},t.resetFormatAndType=()=>{e.format=0,e.internalFormat=0,e._forceInternalFormat=!1,e.openGLDataType=0},t.getDefaultDataType=u=>{if(e._openGLRenderWindow.getWebgl2())switch(u){case rr.UNSIGNED_CHAR:return e.context.UNSIGNED_BYTE;case(e.oglNorm16Ext&&!e.useHalfFloat&&rr.SHORT):return e.context.SHORT;case(e.oglNorm16Ext&&!e.useHalfFloat&&rr.UNSIGNED_SHORT):return e.context.UNSIGNED_SHORT;case(e.useHalfFloat&&rr.SHORT):return e.context.HALF_FLOAT;case(e.useHalfFloat&&rr.UNSIGNED_SHORT):return e.context.HALF_FLOAT;case rr.FLOAT:case rr.VOID:default:return e.context.FLOAT}switch(u){case rr.UNSIGNED_CHAR:return e.context.UNSIGNED_BYTE;case rr.FLOAT:case rr.VOID:default:if(e.context.getExtension("OES_texture_float")&&e.context.getExtension("OES_texture_float_linear"))return e.context.FLOAT;{const c=e.context.getExtension("OES_texture_half_float");if(c&&e.context.getExtension("OES_texture_half_float_linear"))return c.HALF_FLOAT_OES}return e.context.UNSIGNED_BYTE}},t.getOpenGLDataType=function(u){let c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(!e.openGLDataType||c)&&(e.openGLDataType=t.getDefaultDataType(u)),e.openGLDataType},t.getShiftAndScale=()=>{let u=0,c=1;switch(e.openGLDataType){case e.context.BYTE:c=127.5,u=c-128;break;case e.context.UNSIGNED_BYTE:c=255,u=0;break;case e.context.SHORT:c=32767.5,u=c-32768;break;case e.context.UNSIGNED_SHORT:c=65536,u=0;break;case e.context.INT:c=21474836475e-1,u=c-2147483648;break;case e.context.UNSIGNED_INT:c=4294967295,u=0;break;case e.context.FLOAT:}return{shift:u,scale:c}},t.getOpenGLFilterMode=u=>{switch(u){case ci.NEAREST:return e.context.NEAREST;case ci.LINEAR:return e.context.LINEAR;case ci.NEAREST_MIPMAP_NEAREST:return e.context.NEAREST_MIPMAP_NEAREST;case ci.NEAREST_MIPMAP_LINEAR:return e.context.NEAREST_MIPMAP_LINEAR;case ci.LINEAR_MIPMAP_NEAREST:return e.context.LINEAR_MIPMAP_NEAREST;case ci.LINEAR_MIPMAP_LINEAR:return e.context.LINEAR_MIPMAP_LINEAR;default:return e.context.NEAREST}},t.getOpenGLWrapMode=u=>{switch(u){case Gu.CLAMP_TO_EDGE:return e.context.CLAMP_TO_EDGE;case Gu.REPEAT:return e.context.REPEAT;case Gu.MIRRORED_REPEAT:return e.context.MIRRORED_REPEAT;default:return e.context.CLAMP_TO_EDGE}};function n(u,c){let f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const d=[];let h=e.width*e.height*e.components;if(f&&(h*=e.depth),u!==rr.FLOAT&&e.openGLDataType===e.context.FLOAT)for(let v=0;v<c.length;v++)if(c[v]){const g=c[v].length>h?c[v].subarray(0,h):c[v];d.push(new Float32Array(g))}else d.push(null);if(u!==rr.UNSIGNED_CHAR&&e.openGLDataType===e.context.UNSIGNED_BYTE)for(let v=0;v<c.length;v++)if(c[v]){const g=c[v].length>h?c[v].subarray(0,h):c[v];d.push(new Uint8Array(g))}else d.push(null);let p=!1;if(e._openGLRenderWindow.getWebgl2())p=e.openGLDataType===e.context.HALF_FLOAT;else{const v=e.context.getExtension("OES_texture_half_float");p=v&&e.openGLDataType===v.HALF_FLOAT_OES}if(p)for(let v=0;v<c.length;v++)if(c[v]){const g=new Uint16Array(h),y=c[v];for(let m=0;m<h;m++)g[m]=crt(y[m]);d.push(g)}else d.push(null);if(d.length===0)for(let v=0;v<c.length;v++)d.push(c[v]);return d}function r(u){if(e._openGLRenderWindow.getWebgl2())return u;const c=[],f=e.width,d=e.height,h=e.components;if(u&&(!Qy(f)||!Qy(d))){const p=e.context.getExtension("OES_texture_half_float"),v=us(f),g=us(d),y=v*g*e.components;for(let m=0;m<u.length;m++)if(u[m]!==null){let S=null;const w=d/g,C=f/v;let _=!1;e.openGLDataType===e.context.FLOAT?S=new Float32Array(y):p&&e.openGLDataType===p.HALF_FLOAT_OES?(S=new Uint16Array(y),_=!0):S=new Uint8Array(y);for(let x=0;x<g;x++){const T=x*v*h,M=x*w;let E=Math.floor(M),A=Math.ceil(M);A>=d&&(A=d-1);const k=M-E,L=1-k;E=E*f*h,A=A*f*h;for(let I=0;I<v;I++){const P=I*h,F=I*C;let $=Math.floor(F),W=Math.ceil(F);W>=f&&(W=f-1);const V=F-$;$*=h,W*=h;for(let z=0;z<h;z++)_?S[T+P+z]=nl.toHalf(nl.fromHalf(u[m][E+$+z])*L*(1-V)+nl.fromHalf(u[m][E+W+z])*L*V+nl.fromHalf(u[m][A+$+z])*k*(1-V)+nl.fromHalf(u[m][A+W+z])*k*V):S[T+P+z]=u[m][E+$+z]*L*(1-V)+u[m][E+W+z]*L*V+u[m][A+$+z]*k*(1-V)+u[m][A+W+z]*k*V}}c.push(S),e.width=v,e.height=g}else c.push(null)}if(c.length===0)for(let p=0;p<u.length;p++)c.push(u[p]);return c}function a(u){var c;return e._openGLRenderWindow?e.resizable||(c=e.renderable)!=null&&c.getResizable()?!1:e._openGLRenderWindow.getWebgl2()?!(e._openGLRenderWindow.getGLInformations().RENDERER.value.match(/WebKit/gi)&&navigator.platform.match(/Mac/gi)&&e.oglNorm16Ext&&(u===rr.UNSIGNED_SHORT||u===rr.SHORT)):!1:!1}t.create2DFromRaw=function(u,c,f,d,h){let p=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1;if(t.getOpenGLDataType(d,!0),t.getInternalFormat(d,f),t.getFormat(d,f),!e.internalFormat||!e.format||!e.openGLDataType)return rv("Failed to determine texture parameters."),!1;e.target=e.context.TEXTURE_2D,e.components=f,e.width=u,e.height=c,e.depth=1,e.numberOfDimensions=2,e._openGLRenderWindow.activateTexture(t),t.createTexture(),t.bind();const g=n(d,[h]),y=r(g);return e.context.pixelStorei(e.context.UNPACK_FLIP_Y_WEBGL,p),e.context.pixelStorei(e.context.UNPACK_ALIGNMENT,1),a(d)?(e.context.texStorage2D(e.target,1,e.internalFormat,e.width,e.height),y[0]!=null&&e.context.texSubImage2D(e.target,0,0,0,e.width,e.height,e.format,e.openGLDataType,y[0])):e.context.texImage2D(e.target,0,e.internalFormat,e.width,e.height,0,e.format,e.openGLDataType,y[0]),e.generateMipmap&&e.context.generateMipmap(e.target),p&&e.context.pixelStorei(e.context.UNPACK_FLIP_Y_WEBGL,!1),e.allocatedGPUMemoryInBytes=e.width*e.height*e.depth*f*e._openGLRenderWindow.getDefaultTextureByteSize(d,e.oglNorm16Ext,e.useHalfFloat),t.deactivate(),!0},t.createCubeFromRaw=(u,c,f,d,h)=>{if(t.getOpenGLDataType(d),t.getInternalFormat(d,f),t.getFormat(d,f),!e.internalFormat||!e.format||!e.openGLDataType)return rv("Failed to determine texture parameters."),!1;e.target=e.context.TEXTURE_CUBE_MAP,e.components=f,e.width=u,e.height=c,e.depth=1,e.numberOfDimensions=2,e._openGLRenderWindow.activateTexture(t),e.maxLevel=h.length/6-1,t.createTexture(),t.bind();const p=n(d,h),v=r(p),g=[];let y=e.width,m=e.height;for(let S=0;S<v.length;S++){S%6===0&&S!==0&&(y/=2,m/=2),g[S]=_0(d,m*y*e.components);for(let w=0;w<m;++w){const C=w*y*e.components,_=(m-w-1)*y*e.components;g[S].set(v[S].slice(_,_+y*e.components),C)}}e.context.pixelStorei(e.context.UNPACK_ALIGNMENT,1),a(d)&&e.context.texStorage2D(e.target,6,e.internalFormat,e.width,e.height);for(let S=0;S<6;S++){let w=0,C=e.width,_=e.height;for(;C>=1&&_>=1;){let x=null;w<=e.maxLevel&&(x=g[6*w+S]),a(d)?x!=null&&e.context.texSubImage2D(e.context.TEXTURE_CUBE_MAP_POSITIVE_X+S,w,0,0,C,_,e.format,e.openGLDataType,x):e.context.texImage2D(e.context.TEXTURE_CUBE_MAP_POSITIVE_X+S,w,e.internalFormat,C,_,0,e.format,e.openGLDataType,x),w++,C/=2,_/=2}}return e.allocatedGPUMemoryInBytes=e.width*e.height*e.depth*f*e._openGLRenderWindow.getDefaultTextureByteSize(d,e.oglNorm16Ext,e.useHalfFloat),t.deactivate(),!0},t.createDepthFromRaw=(u,c,f,d)=>(t.getOpenGLDataType(f),e.format=e.context.DEPTH_COMPONENT,e._openGLRenderWindow.getWebgl2()?f===rr.FLOAT?e.internalFormat=e.context.DEPTH_COMPONENT32F:e.internalFormat=e.context.DEPTH_COMPONENT16:e.internalFormat=e.context.DEPTH_COMPONENT,!e.internalFormat||!e.format||!e.openGLDataType?(rv("Failed to determine texture parameters."),!1):(e.target=e.context.TEXTURE_2D,e.components=1,e.width=u,e.height=c,e.depth=1,e.numberOfDimensions=2,e._openGLRenderWindow.activateTexture(t),t.createTexture(),t.bind(),e.context.pixelStorei(e.context.UNPACK_ALIGNMENT,1),a(f)?(e.context.texStorage2D(e.target,1,e.internalFormat,e.width,e.height),d!=null&&e.context.texSubImage2D(e.target,0,0,0,e.width,e.height,e.format,e.openGLDataType,d)):e.context.texImage2D(e.target,0,e.internalFormat,e.width,e.height,0,e.format,e.openGLDataType,d),e.generateMipmap&&e.context.generateMipmap(e.target),e.allocatedGPUMemoryInBytes=e.width*e.height*e.depth*e.components*e._openGLRenderWindow.getDefaultTextureByteSize(f,e.oglNorm16Ext,e.useHalfFloat),t.deactivate(),!0)),t.create2DFromImage=u=>{if(t.getOpenGLDataType(rr.UNSIGNED_CHAR),t.getInternalFormat(rr.UNSIGNED_CHAR,4),t.getFormat(rr.UNSIGNED_CHAR,4),!e.internalFormat||!e.format||!e.openGLDataType)return rv("Failed to determine texture parameters."),!1;e.target=e.context.TEXTURE_2D,e.components=4,e.depth=1,e.numberOfDimensions=2,e._openGLRenderWindow.activateTexture(t),t.createTexture(),t.bind(),e.context.pixelStorei(e.context.UNPACK_ALIGNMENT,1);const c=!e._openGLRenderWindow.getWebgl2()&&(!Qy(u.width)||!Qy(u.height)),f=document.createElement("canvas");f.width=c?us(u.width):u.width,f.height=c?us(u.height):u.height,e.width=f.width,e.height=f.height;const d=f.getContext("2d");d.translate(0,f.height),d.scale(1,-1),d.drawImage(u,0,0,u.width,u.height,0,0,f.width,f.height);const h=f;return a(rr.UNSIGNED_CHAR)?(e.context.texStorage2D(e.target,1,e.internalFormat,e.width,e.height),h!=null&&e.context.texSubImage2D(e.target,0,0,0,e.width,e.height,e.format,e.openGLDataType,h)):e.context.texImage2D(e.target,0,e.internalFormat,e.width,e.height,0,e.format,e.openGLDataType,h),e.generateMipmap&&e.context.generateMipmap(e.target),e.allocatedGPUMemoryInBytes=e.width*e.height*e.depth*e.components*e._openGLRenderWindow.getDefaultTextureByteSize(rr.UNSIGNED_CHAR,e.oglNorm16Ext,e.useHalfFloat),t.deactivate(),!0};function i(u,c,f){const d=new Array(f),h=new Array(f);for(let p=0;p<f;++p)d[p]=u[p],h[p]=c[p]-u[p]||1;return{scale:h,offset:d}}function o(u,c){for(let f=0;f<u.length;f++){const d=u[f],h=c[f]+d;if(d<-2048||d>2048||h<-2048||h>2048)return!1}return!0}function s(u,c,f,d){t.getOpenGLDataType(u);let h=!1;if(e._openGLRenderWindow.getWebgl2())h=e.openGLDataType===e.context.HALF_FLOAT;else{const v=e.context.getExtension("OES_texture_half_float");h=v&&e.openGLDataType===v.HALF_FLOAT_OES}const p=h&&(o(c,f)||d);e.useHalfFloat=p}function l(u,c){const f=u.getNumberOfComponents(),d=u.getDataType(),h=u.getData(),p=new Array(f),v=new Array(f);for(let y=0;y<f;++y){const[m,S]=u.getRange(y);p[y]=m,v[y]=S}const g=i(p,v,f);return s(d,g.offset,g.scale,c),e.useHalfFloat||t.getOpenGLDataType(d,!0),{numComps:f,dataType:d,data:h,scaleOffsets:g}}t.create2DFilterableFromRaw=function(u,c,f,d,h){let p=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1;return t.create2DFilterableFromDataArray(u,c,zn.newInstance({numberOfComponents:f,dataType:d,values:h}),p)},t.create2DFilterableFromDataArray=function(u,c,f){let d=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;const{numComps:h,dataType:p,data:v}=l(f,d);t.create2DFromRaw(u,c,h,p,v)},t.create3DFromRaw=(u,c,f,d,h,p)=>{if(t.getOpenGLDataType(h),t.getInternalFormat(h,d),t.getFormat(h,d),!e.internalFormat||!e.format||!e.openGLDataType)return rv("Failed to determine texture parameters."),!1;e.target=e.context.TEXTURE_3D,e.components=d,e.width=u,e.height=c,e.depth=f,e.numberOfDimensions=3,e._openGLRenderWindow.activateTexture(t),t.createTexture(),t.bind();const y=n(h,[p],!0),m=r(y);return e.context.pixelStorei(e.context.UNPACK_ALIGNMENT,1),a(h)?(e.context.texStorage3D(e.target,1,e.internalFormat,e.width,e.height,e.depth),m[0]!=null&&e.context.texSubImage3D(e.target,0,0,0,0,e.width,e.height,e.depth,e.format,e.openGLDataType,m[0])):e.context.texImage3D(e.target,0,e.internalFormat,e.width,e.height,e.depth,0,e.format,e.openGLDataType,m[0]),e.generateMipmap&&e.context.generateMipmap(e.target),e.allocatedGPUMemoryInBytes=e.width*e.height*e.depth*e.components*e._openGLRenderWindow.getDefaultTextureByteSize(h,e.oglNorm16Ext,e.useHalfFloat),t.deactivate(),!0},t.create3DFilterableFromRaw=function(u,c,f,d,h,p){let v=arguments.length>6&&arguments[6]!==void 0?arguments[6]:!1;return t.create3DFilterableFromDataArray(u,c,f,zn.newInstance({numberOfComponents:d,dataType:h,values:p}),v)},t.create3DFilterableFromDataArray=function(u,c,f,d){let h=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;const{numComps:p,dataType:v,data:g,scaleOffsets:y}=l(d,h),m=u*c*f,S=[],w=[];for(let z=0;z<p;++z)S[z]=0,w[z]=1;e.volumeInfo={scale:w,offset:S,dataComputedScale:y.scale,dataComputedOffset:y.offset,width:u,height:c,depth:f};const C=structuredClone(y);if(e._openGLRenderWindow.getWebgl2()){if(e.oglNorm16Ext&&!e.useHalfFloat&&v===rr.SHORT){for(let oe=0;oe<p;++oe)e.volumeInfo.scale[oe]=32767;return t.create3DFromRaw(u,c,f,p,v,g)}if(e.oglNorm16Ext&&!e.useHalfFloat&&v===rr.UNSIGNED_SHORT){for(let oe=0;oe<p;++oe)e.volumeInfo.scale[oe]=65535;return t.create3DFromRaw(u,c,f,p,v,g)}if(v===rr.FLOAT||e.useHalfFloat&&(v===rr.SHORT||v===rr.UNSIGNED_SHORT))return t.create3DFromRaw(u,c,f,p,v,g);if(v===rr.UNSIGNED_CHAR){for(let oe=0;oe<p;++oe)e.volumeInfo.scale[oe]=255;return t.create3DFromRaw(u,c,f,p,v,g)}const z=new Float32Array(m*p);e.volumeInfo.offset=C.offset,e.volumeInfo.scale=C.scale;let K=0;const Z=C.scale.map(oe=>1/oe);for(let oe=0;oe<m;oe++)for(let ge=0;ge<p;ge++)z[K]=(g[K]-C.offset[ge])*Z[ge],K++;return t.create3DFromRaw(u,c,f,p,rr.FLOAT,z)}let _=(z,K,Z,oe,ge)=>{z[K]=Z},x=rr.UNSIGNED_CHAR;if(v===rr.UNSIGNED_CHAR)for(let z=0;z<p;++z)C.offset[z]=0,C.scale[z]=255;else e.context.getExtension("OES_texture_float")&&e.context.getExtension("OES_texture_float_linear")?(x=rr.FLOAT,_=(z,K,Z,oe,ge)=>{z[K]=(Z-oe)/ge}):(x=rr.UNSIGNED_CHAR,_=(z,K,Z,oe,ge)=>{z[K]=255*(Z-oe)/ge});if(t.getOpenGLDataType(x),t.getInternalFormat(x,p),t.getFormat(x,p),!e.internalFormat||!e.format||!e.openGLDataType)return rv("Failed to determine texture parameters."),!1;e.target=e.context.TEXTURE_2D,e.components=p,e.depth=1,e.numberOfDimensions=2;let T=e.context.getParameter(e.context.MAX_TEXTURE_SIZE);T>4096&&(x===rr.FLOAT||p>=3)&&(T=4096);let M=1,E=1;m>T*T&&(M=Math.ceil(Math.sqrt(m/(T*T))),E=M);let A=Math.sqrt(m)/M;A=us(A);const k=Math.floor(A*M/u),L=Math.ceil(f/k),I=us(c*L/E);e.width=A,e.height=I,e._openGLRenderWindow.activateTexture(t),t.createTexture(),t.bind(),e.volumeInfo.xreps=k,e.volumeInfo.yreps=L,e.volumeInfo.xstride=M,e.volumeInfo.ystride=E,e.volumeInfo.offset=C.offset,e.volumeInfo.scale=C.scale;let P;const F=A*I*p;x===rr.FLOAT?P=new Float32Array(F):P=new Uint8Array(F);let $=0;const W=Math.floor(u/M),V=Math.floor(c/E);for(let z=0;z<L;z++){const K=Math.min(k,f-z*k),Z=p*(e.width-K*Math.floor(u/M));for(let oe=0;oe<V;oe++){for(let ge=0;ge<K;ge++){const ie=p*((z*k+ge)*u*c+E*oe*u);for(let Q=0;Q<W;Q++)for(let ce=0;ce<p;ce++)_(P,$,g[ie+M*Q*p+ce],C.offset[ce],C.scale[ce]),$++}$+=Z}}return e.context.pixelStorei(e.context.UNPACK_ALIGNMENT,1),a(x)?(e.context.texStorage2D(e.target,1,e.internalFormat,e.width,e.height),P!=null&&e.context.texSubImage2D(e.target,0,0,0,e.width,e.height,e.format,e.openGLDataType,P)):e.context.texImage2D(e.target,0,e.internalFormat,e.width,e.height,0,e.format,e.openGLDataType,P),t.deactivate(),!0},t.setOpenGLRenderWindow=u=>{e._openGLRenderWindow!==u&&(t.releaseGraphicsResources(),e._openGLRenderWindow=u,e.context=null,u&&(e.context=e._openGLRenderWindow.getContext()))},t.getMaximumTextureSize=u=>u&&u.isCurrent()?u.getIntegerv(u.MAX_TEXTURE_SIZE):-1}const drt={_openGLRenderWindow:null,_forceInternalFormat:!1,context:null,handle:0,sendParametersTime:null,textureBuildTime:null,numberOfDimensions:0,target:0,format:0,openGLDataType:0,components:0,width:0,height:0,depth:0,autoParameters:!0,wrapS:Gu.CLAMP_TO_EDGE,wrapT:Gu.CLAMP_TO_EDGE,wrapR:Gu.CLAMP_TO_EDGE,minificationFilter:ci.NEAREST,magnificationFilter:ci.NEAREST,minLOD:-1e3,maxLOD:1e3,baseLevel:0,maxLevel:1e3,generateMipmap:!1,useHalfFloat:!0,oglNorm16Ext:null,allocatedGPUMemoryInBytes:0};function _ne(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,drt,n),Sa.extend(t,e,n),e.sendParametersTime={},oi(e.sendParametersTime,{mtime:0}),e.textureBuildTime={},oi(e.textureBuildTime,{mtime:0}),Ub(t,e,["format","openGLDataType"]),Xa(t,e,["keyMatrixTime","minificationFilter","magnificationFilter","wrapS","wrapT","wrapR","generateMipmap","oglNorm16Ext"]),co(t,e,["width","height","volumeInfo","components","handle","target","allocatedGPUMemoryInBytes"]),Gb(t,e,["openGLRenderWindow"]),frt(t,e)}const Cne=Kr(_ne,"vtkOpenGLTexture");var tp={newInstance:Cne,extend:_ne,...wne};El("vtkTexture",Cne);var hrt=`//VTK::System::Dec
  85. /*=========================================================================
  86. Program: Visualization Toolkit
  87. Module: vtkPolyDataVS.glsl
  88. Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
  89. All rights reserved.
  90. See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
  91. This software is distributed WITHOUT ANY WARRANTY; without even
  92. the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
  93. PURPOSE. See the above copyright notice for more information.
  94. =========================================================================*/
  95. attribute vec4 vertexMC;
  96. // frag position in VC
  97. //VTK::PositionVC::Dec
  98. // optional normal declaration
  99. //VTK::Normal::Dec
  100. // extra lighting parameters
  101. //VTK::Light::Dec
  102. // Texture coordinates
  103. //VTK::TCoord::Dec
  104. // material property values
  105. //VTK::Color::Dec
  106. // clipping plane vars
  107. //VTK::Clip::Dec
  108. // camera and actor matrix values
  109. //VTK::Camera::Dec
  110. // Apple Bug
  111. //VTK::PrimID::Dec
  112. // picking support
  113. //VTK::Picking::Dec
  114. void main()
  115. {
  116. //VTK::Color::Impl
  117. //VTK::Normal::Impl
  118. //VTK::TCoord::Impl
  119. //VTK::Clip::Impl
  120. //VTK::PrimID::Impl
  121. //VTK::PositionVC::Impl
  122. //VTK::Light::Impl
  123. //VTK::Picking::Impl
  124. }
  125. `,prt=`//VTK::System::Dec
  126. /*=========================================================================
  127. Program: Visualization Toolkit
  128. Module: vtkPolyDataFS.glsl
  129. Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
  130. All rights reserved.
  131. See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
  132. This software is distributed WITHOUT ANY WARRANTY; without even
  133. the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
  134. PURPOSE. See the above copyright notice for more information.
  135. =========================================================================*/
  136. // Template for the polydata mappers fragment shader
  137. uniform int PrimitiveIDOffset;
  138. // VC position of this fragment
  139. //VTK::PositionVC::Dec
  140. // optional color passed in from the vertex shader, vertexColor
  141. //VTK::Color::Dec
  142. // optional surface normal declaration
  143. //VTK::Normal::Dec
  144. // extra lighting parameters
  145. //VTK::Light::Dec
  146. // define vtkImageLabelOutlineOn
  147. //VTK::ImageLabelOutlineOn
  148. // Texture coordinates
  149. //VTK::TCoord::Dec
  150. // picking support
  151. //VTK::Picking::Dec
  152. // Depth Peeling Support
  153. //VTK::DepthPeeling::Dec
  154. // clipping plane vars
  155. //VTK::Clip::Dec
  156. // label outline
  157. //VTK::LabelOutline::Dec
  158. // the output of this shader
  159. //VTK::Output::Dec
  160. // Apple Bug
  161. //VTK::PrimID::Dec
  162. // handle coincident offsets
  163. //VTK::Coincident::Dec
  164. //VTK::ZBuffer::Dec
  165. //VTK::LabelOutlineHelperFunction
  166. void main()
  167. {
  168. // VC position of this fragment. This should not branch/return/discard.
  169. //VTK::PositionVC::Impl
  170. // Place any calls that require uniform flow (e.g. dFdx) here.
  171. //VTK::UniformFlow::Impl
  172. // Set gl_FragDepth here (gl_FragCoord.z by default)
  173. //VTK::Depth::Impl
  174. // Early depth peeling abort:
  175. //VTK::DepthPeeling::PreColor
  176. // Apple Bug
  177. //VTK::PrimID::Impl
  178. //VTK::Clip::Impl
  179. //VTK::Color::Impl
  180. // Generate the normal if we are not passed in one
  181. //VTK::Normal::Impl
  182. //VTK::TCoord::Impl
  183. //VTK::Light::Impl
  184. if (gl_FragData[0].a <= 0.0)
  185. {
  186. discard;
  187. }
  188. //VTK::DepthPeeling::Impl
  189. //VTK::Picking::Impl
  190. // handle coincident offsets
  191. //VTK::Coincident::Impl
  192. //VTK::ZBuffer::Impl
  193. //VTK::RenderPassFragmentShader::Impl
  194. }
  195. `;function vrt(t,e){t.replaceShaderCoincidentOffset=(n,r,a)=>{const i=t.getCoincidentParameters(r,a);if(i&&(i.factor!==0||i.offset!==0)){let o=n.Fragment;o=St.substitute(o,"//VTK::Coincident::Dec",["uniform float cfactor;","uniform float coffset;"]).result,e.context.getExtension("EXT_frag_depth")&&(i.factor!==0?(o=St.substitute(o,"//VTK::UniformFlow::Impl",["float cscale = length(vec2(dFdx(gl_FragCoord.z),dFdy(gl_FragCoord.z)));","//VTK::UniformFlow::Impl"],!1).result,o=St.substitute(o,"//VTK::Depth::Impl","gl_FragDepthEXT = gl_FragCoord.z + cfactor*cscale + 0.000016*coffset;").result):o=St.substitute(o,"//VTK::Depth::Impl","gl_FragDepthEXT = gl_FragCoord.z + 0.000016*coffset;").result),e._openGLRenderWindow.getWebgl2()&&(i.factor!==0?(o=St.substitute(o,"//VTK::UniformFlow::Impl",["float cscale = length(vec2(dFdx(gl_FragCoord.z),dFdy(gl_FragCoord.z)));","//VTK::UniformFlow::Impl"],!1).result,o=St.substitute(o,"//VTK::Depth::Impl","gl_FragDepth = gl_FragCoord.z + cfactor*cscale + 0.000016*coffset;").result):o=St.substitute(o,"//VTK::Depth::Impl","gl_FragDepth = gl_FragCoord.z + 0.000016*coffset;").result),n.Fragment=o}}}function grt(t,e){t.applyShaderReplacements=(n,r,a)=>{let i=null;if(r&&(i=r.ShaderReplacements),i)for(let o=0;o<i.length;o++){const s=i[o];if(a&&s.replaceFirst||!a&&!s.replaceFirst){const l=s.shaderType,u=n[l],c=St.substitute(u,s.originalValue,s.replacementValue,s.replaceAll);n[l]=c.result}}},t.buildShaders=(n,r,a)=>{t.getReplacedShaderTemplate(n,r,a),e.lastRenderPassShaderReplacement=e.currentRenderPass?e.currentRenderPass.getShaderReplacement():null,e.lastRenderPassShaderReplacement&&e.lastRenderPassShaderReplacement(n);const i=e.renderable.getViewSpecificProperties().OpenGL;t.applyShaderReplacements(n,i,!0),t.replaceShaderValues(n,r,a),t.applyShaderReplacements(n,i)},t.getReplacedShaderTemplate=(n,r,a)=>{const i=e.renderable.getViewSpecificProperties().OpenGL;t.getShaderTemplate(n,r,a);let o=n.Vertex;if(i){const u=i.VertexShaderCode;u!==void 0&&u!==""&&(o=u)}n.Vertex=o;let s=n.Fragment;if(i){const u=i.FragmentShaderCode;u!==void 0&&u!==""&&(s=u)}n.Fragment=s;let l=n.Geometry;if(i){const u=i.GeometryShaderCode;u!==void 0&&(l=u)}n.Geometry=l}}var U2={implementReplaceShaderCoincidentOffset:vrt,implementBuildShadersWithReplacements:grt};const{FieldAssociations:iD}=Ip,{primTypes:Fa}=E0,{Representation:av,Shading:$6}=T0,{ScalarMode:uw}=Pr,{Filter:P6,Wrap:F6}=tp,{vtkErrorMacro:Ld}=_u,yrt={type:"StartEvent"},mrt={type:"EndEvent"},{CoordinateSystem:brt}=Kb;function Srt(t){const e=t.getSelector();return e?e.getCurrentPass():Xi.MIN_KNOWN_PASS-1}function wrt(t,e){e.classHierarchy.push("vtkOpenGLPolyDataMapper"),t.buildPass=r=>{r&&(e.currentRenderPass=null,e.openGLActor=t.getFirstAncestorOfType("vtkOpenGLActor"),e._openGLRenderer=e.openGLActor.getFirstAncestorOfType("vtkOpenGLRenderer"),e._openGLRenderWindow=e._openGLRenderer.getParent(),e.openGLCamera=e._openGLRenderer.getViewNodeFor(e._openGLRenderer.getRenderable().getActiveCamera()))},t.translucentPass=(r,a)=>{r&&(e.currentRenderPass=a,t.render())},t.zBufferPass=r=>{r&&(e.haveSeenDepthRequest=!0,e.renderDepth=!0,t.render(),e.renderDepth=!1)},t.opaqueZBufferPass=r=>t.zBufferPass(r),t.opaquePass=r=>{r&&t.render()},t.render=()=>{const r=e._openGLRenderWindow.getContext();if(e.context!==r){e.context=r;for(let o=Fa.Start;o<Fa.End;o++)e.primitives[o].setOpenGLRenderWindow(e._openGLRenderWindow)}const a=e.openGLActor.getRenderable(),i=e._openGLRenderer.getRenderable();t.renderPiece(i,a)},t.getShaderTemplate=(r,a,i)=>{r.Vertex=hrt,r.Fragment=prt,r.Geometry=""},t.replaceShaderColor=(r,a,i)=>{let o=r.Vertex,s=r.Geometry,l=r.Fragment;const u=e.lastBoundBO.getReferenceByName("lastLightComplexity");let c=["uniform float ambient;","uniform float diffuse;","uniform float specular;","uniform float opacityUniform; // the fragment opacity","uniform vec3 ambientColorUniform;","uniform vec3 diffuseColorUniform;"];u&&(c=c.concat(["uniform vec3 specularColorUniform;","uniform float specularPowerUniform;"]));let f=["vec3 ambientColor;"," vec3 diffuseColor;"," float opacity;"];u&&(f=f.concat([" vec3 specularColor;"," float specularPower;"])),f=f.concat([" ambientColor = ambientColorUniform;"," diffuseColor = diffuseColorUniform;"," opacity = opacityUniform;"]),u&&(f=f.concat([" specularColor = specularColorUniform;"," specularPower = specularPowerUniform;"])),e.lastBoundBO.getCABO().getColorComponents()!==0&&!e.drawingEdges&&(c=c.concat(["varying vec4 vertexColorVSOutput;"]),o=St.substitute(o,"//VTK::Color::Dec",["attribute vec4 scalarColor;","varying vec4 vertexColorVSOutput;"]).result,o=St.substitute(o,"//VTK::Color::Impl",["vertexColorVSOutput = scalarColor;"]).result,s=St.substitute(s,"//VTK::Color::Dec",["in vec4 vertexColorVSOutput[];","out vec4 vertexColorGSOutput;"]).result,s=St.substitute(s,"//VTK::Color::Impl",["vertexColorGSOutput = vertexColorVSOutput[i];"]).result),e.lastBoundBO.getCABO().getColorComponents()!==0&&!e.drawingEdges?l=St.substitute(l,"//VTK::Color::Impl",f.concat([" diffuseColor = vertexColorVSOutput.rgb;"," ambientColor = vertexColorVSOutput.rgb;"," opacity = opacity*vertexColorVSOutput.a;"])).result:e.renderable.getInterpolateScalarsBeforeMapping()&&e.renderable.getColorCoordinates()&&!e.drawingEdges?l=St.substitute(l,"//VTK::Color::Impl",f.concat([" vec4 texColor = texture2D(texture1, tcoordVCVSOutput.st);"," diffuseColor = texColor.rgb;"," ambientColor = texColor.rgb;"," opacity = opacity*texColor.a;"])).result:(i.getBackfaceProperty()&&!e.drawingEdges&&(c=c.concat(["uniform float opacityUniformBF; // the fragment opacity","uniform float ambientIntensityBF; // the material ambient","uniform float diffuseIntensityBF; // the material diffuse","uniform vec3 ambientColorUniformBF; // ambient material color","uniform vec3 diffuseColorUniformBF; // diffuse material color"]),u?(c=c.concat(["uniform float specularIntensityBF; // the material specular intensity","uniform vec3 specularColorUniformBF; // intensity weighted color","uniform float specularPowerUniformBF;"]),f=f.concat(["if (gl_FrontFacing == false) {"," ambientColor = ambientIntensityBF * ambientColorUniformBF;"," diffuseColor = diffuseIntensityBF * diffuseColorUniformBF;"," specularColor = specularIntensityBF * specularColorUniformBF;"," specularPower = specularPowerUniformBF;"," opacity = opacityUniformBF; }"])):f=f.concat(["if (gl_FrontFacing == false) {"," ambientColor = ambientIntensityBF * ambientColorUniformBF;"," diffuseColor = diffuseIntensityBF * diffuseColorUniformBF;"," opacity = opacityUniformBF; }"])),e.haveCellScalars&&!e.drawingEdges&&(c=c.concat(["uniform samplerBuffer texture1;"])),l=St.substitute(l,"//VTK::Color::Impl",f).result),l=St.substitute(l,"//VTK::Color::Dec",c).result,r.Vertex=o,r.Geometry=s,r.Fragment=l},t.replaceShaderLight=(r,a,i)=>{let o=r.Fragment;const s="",l=e.lastBoundBO.getReferenceByName("lastLightComplexity"),u=e.lastBoundBO.getReferenceByName("lastLightCount");let c=[];switch(l){case 0:o=St.substitute(o,"//VTK::Light::Impl",[" gl_FragData[0] = vec4(ambientColor * ambient + diffuseColor * diffuse, opacity);"," //VTK::Light::Impl"],!1).result;break;case 1:o=St.substitute(o,"//VTK::Light::Impl",[" float df = max(0.0, normalVCVSOutput.z);"," float sf = pow(df, specularPower);"," vec3 diffuseL = df * diffuseColor;"," vec3 specularL = sf * specularColor;"," gl_FragData[0] = vec4(ambientColor * ambient + diffuseL * diffuse + specularL * specular, opacity);"," //VTK::Light::Impl"],!1).result;break;case 2:for(let f=0;f<u;++f)c=c.concat([`uniform vec3 lightColor${f};`,`uniform vec3 lightDirectionVC${f}; // normalized`,`uniform vec3 lightHalfAngleVC${f}; // normalized`]);o=St.substitute(o,"//VTK::Light::Dec",c).result,c=["vec3 diffuseL = vec3(0,0,0);"," vec3 specularL = vec3(0,0,0);"," float df;"];for(let f=0;f<u;++f)c=c.concat([` df = max(0.0, dot(normalVCVSOutput, -lightDirectionVC${f}));`,` diffuseL += ((df${s}) * lightColor${f});`,` if (dot(normalVCVSOutput, lightDirectionVC${f}) < 0.0)`," {",` float sf = sign(df)*pow(max(1e-5,
  196. dot(reflect(lightDirectionVC${f},normalVCVSOutput),
  197. normalize(-vertexVC.xyz))),
  198. specularPower);`,` specularL += (sf${s} * lightColor${f});`," }"]);c=c.concat([" diffuseL = diffuseL * diffuseColor;"," specularL = specularL * specularColor;"," gl_FragData[0] = vec4(ambientColor * ambient + diffuseL * diffuse + specularL * specular, opacity);"," //VTK::Light::Impl"]),o=St.substitute(o,"//VTK::Light::Impl",c,!1).result;break;case 3:for(let f=0;f<u;++f)c=c.concat([`uniform vec3 lightColor${f};`,`uniform vec3 lightDirectionVC${f}; // normalized`,`uniform vec3 lightHalfAngleVC${f}; // normalized`,`uniform vec3 lightPositionVC${f};`,`uniform vec3 lightAttenuation${f};`,`uniform float lightConeAngle${f};`,`uniform float lightExponent${f};`,`uniform int lightPositional${f};`]);o=St.substitute(o,"//VTK::Light::Dec",c).result,c=["vec3 diffuseL = vec3(0,0,0);"," vec3 specularL = vec3(0,0,0);"," vec3 vertLightDirectionVC;"," float attenuation;"," float df;"];for(let f=0;f<u;++f)c=c.concat([" attenuation = 1.0;",` if (lightPositional${f} == 0)`," {",` vertLightDirectionVC = lightDirectionVC${f};`," }"," else"," {",` vertLightDirectionVC = vertexVC.xyz - lightPositionVC${f};`," float distanceVC = length(vertLightDirectionVC);"," vertLightDirectionVC = normalize(vertLightDirectionVC);"," attenuation = 1.0 /",` (lightAttenuation${f}.x`,` + lightAttenuation${f}.y * distanceVC`,` + lightAttenuation${f}.z * distanceVC * distanceVC);`," // per OpenGL standard cone angle is 90 or less for a spot light",` if (lightConeAngle${f} <= 90.0)`," {",` float coneDot = dot(vertLightDirectionVC, lightDirectionVC${f});`," // if inside the cone",` if (coneDot >= cos(radians(lightConeAngle${f})))`," {",` attenuation = attenuation * pow(coneDot, lightExponent${f});`," }"," else"," {"," attenuation = 0.0;"," }"," }"," }"," df = max(0.0, attenuation*dot(normalVCVSOutput, -vertLightDirectionVC));",` diffuseL += ((df${s}) * lightColor${f});`," if (dot(normalVCVSOutput, vertLightDirectionVC) < 0.0)"," {",` float sf = sign(df)*attenuation*pow(max(1e-5,
  199. dot(reflect(lightDirectionVC${f},
  200. normalVCVSOutput),
  201. normalize(-vertexVC.xyz))),
  202. specularPower);`,` specularL += ((sf${s}) * lightColor${f});`," }"]);c=c.concat([" diffuseL = diffuseL * diffuseColor;"," specularL = specularL * specularColor;"," gl_FragData[0] = vec4(ambientColor * ambient + diffuseL * diffuse + specularL * specular, opacity);"," //VTK::Light::Impl"]),o=St.substitute(o,"//VTK::Light::Impl",c,!1).result;break;default:Ld("bad light complexity")}r.Fragment=o},t.replaceShaderNormal=(r,a,i)=>{if(e.lastBoundBO.getReferenceByName("lastLightComplexity")>0){let s=r.Vertex,l=r.Geometry,u=r.Fragment;e.lastBoundBO.getCABO().getNormalOffset()?(s=St.substitute(s,"//VTK::Normal::Dec",["attribute vec3 normalMC;","uniform mat3 normalMatrix;","varying vec3 normalVCVSOutput;"]).result,s=St.substitute(s,"//VTK::Normal::Impl",["normalVCVSOutput = normalMatrix * normalMC;"]).result,l=St.substitute(l,"//VTK::Normal::Dec",["in vec3 normalVCVSOutput[];","out vec3 normalVCGSOutput;"]).result,l=St.substitute(l,"//VTK::Normal::Impl",["normalVCGSOutput = normalVCVSOutput[i];"]).result,u=St.substitute(u,"//VTK::Normal::Dec",["varying vec3 normalVCVSOutput;"]).result,u=St.substitute(u,"//VTK::Normal::Impl",["vec3 normalVCVSOutput = normalize(normalVCVSOutput);"," if (gl_FrontFacing == false) { normalVCVSOutput = -normalVCVSOutput; }"]).result):e.haveCellNormals?(u=St.substitute(u,"//VTK::Normal::Dec",["uniform mat3 normalMatrix;","uniform samplerBuffer textureN;"]).result,u=St.substitute(u,"//VTK::Normal::Impl",["vec3 normalVCVSOutput = normalize(normalMatrix *"," texelFetchBuffer(textureN, gl_PrimitiveID + PrimitiveIDOffset).xyz);"," if (gl_FrontFacing == false) { normalVCVSOutput = -normalVCVSOutput; }"]).result):e.lastBoundBO.getOpenGLMode(i.getProperty().getRepresentation())===e.context.LINES?(u=St.substitute(u,"//VTK::UniformFlow::Impl",[" vec3 fdx = dFdx(vertexVC.xyz);"," vec3 fdy = dFdy(vertexVC.xyz);"," //VTK::UniformFlow::Impl"]).result,u=St.substitute(u,"//VTK::Normal::Impl",["vec3 normalVCVSOutput;"," if (abs(fdx.x) > 0.0)"," { fdx = normalize(fdx); normalVCVSOutput = normalize(cross(vec3(fdx.y, -fdx.x, 0.0), fdx)); }"," else { fdy = normalize(fdy); normalVCVSOutput = normalize(cross(vec3(fdy.y, -fdy.x, 0.0), fdy));}"]).result):(u=St.substitute(u,"//VTK::Normal::Dec",["uniform int cameraParallel;"]).result,u=St.substitute(u,"//VTK::UniformFlow::Impl",[" vec3 fdx = dFdx(vertexVC.xyz);"," vec3 fdy = dFdy(vertexVC.xyz);"," //VTK::UniformFlow::Impl"]).result,u=St.substitute(u,"//VTK::Normal::Impl",[" fdx = normalize(fdx);"," fdy = normalize(fdy);"," vec3 normalVCVSOutput = normalize(cross(fdx,fdy));"," if (cameraParallel == 1 && normalVCVSOutput.z < 0.0) { normalVCVSOutput = -1.0*normalVCVSOutput; }"," if (cameraParallel == 0 && dot(normalVCVSOutput,vertexVC.xyz) > 0.0) { normalVCVSOutput = -1.0*normalVCVSOutput; }"]).result),r.Vertex=s,r.Geometry=l,r.Fragment=u}},t.replaceShaderPositionVC=(r,a,i)=>{e.lastBoundBO.replaceShaderPositionVC(r,a,i);let o=r.Vertex,s=r.Geometry,l=r.Fragment;e.lastBoundBO.getReferenceByName("lastLightComplexity")>0?(o=St.substitute(o,"//VTK::PositionVC::Dec",["varying vec4 vertexVCVSOutput;"]).result,o=St.substitute(o,"//VTK::PositionVC::Impl",["vertexVCVSOutput = MCVCMatrix * vertexMC;"," gl_Position = MCPCMatrix * vertexMC;"]).result,o=St.substitute(o,"//VTK::Camera::Dec",["uniform mat4 MCPCMatrix;","uniform mat4 MCVCMatrix;"]).result,s=St.substitute(s,"//VTK::PositionVC::Dec",["in vec4 vertexVCVSOutput[];","out vec4 vertexVCGSOutput;"]).result,s=St.substitute(s,"//VTK::PositionVC::Impl",["vertexVCGSOutput = vertexVCVSOutput[i];"]).result,l=St.substitute(l,"//VTK::PositionVC::Dec",["varying vec4 vertexVCVSOutput;"]).result,l=St.substitute(l,"//VTK::PositionVC::Impl",["vec4 vertexVC = vertexVCVSOutput;"]).result):(o=St.substitute(o,"//VTK::Camera::Dec",["uniform mat4 MCPCMatrix;"]).result,o=St.substitute(o,"//VTK::PositionVC::Impl",[" gl_Position = MCPCMatrix * vertexMC;"]).result),r.Vertex=o,r.Geometry=s,r.Fragment=l},t.replaceShaderTCoord=(r,a,i)=>{if(e.lastBoundBO.getCABO().getTCoordOffset()){let o=r.Vertex,s=r.Geometry,l=r.Fragment;if(e.drawingEdges)return;o=St.substitute(o,"//VTK::TCoord::Impl","tcoordVCVSOutput = tcoordMC;").result;const u=e.openGLActor.getActiveTextures();let c=2,f=2;if(u&&u.length>0&&(c=u[0].getComponents(),u[0].getTarget()===e.context.TEXTURE_CUBE_MAP&&(f=3)),e.renderable.getColorTextureMap()&&(c=e.renderable.getColorTextureMap().getPointData().getScalars().getNumberOfComponents(),f=2),f===2){if(o=St.substitute(o,"//VTK::TCoord::Dec","attribute vec2 tcoordMC; varying vec2 tcoordVCVSOutput;").result,s=St.substitute(s,"//VTK::TCoord::Dec",["in vec2 tcoordVCVSOutput[];","out vec2 tcoordVCGSOutput;"]).result,s=St.substitute(s,"//VTK::TCoord::Impl","tcoordVCGSOutput = tcoordVCVSOutput[i];").result,l=St.substitute(l,"//VTK::TCoord::Dec",["varying vec2 tcoordVCVSOutput;","uniform sampler2D texture1;"]).result,u&&u.length>=1)switch(c){case 1:l=St.substitute(l,"//VTK::TCoord::Impl",[" vec4 tcolor = texture2D(texture1, tcoordVCVSOutput);"," ambientColor = ambientColor*tcolor.r;"," diffuseColor = diffuseColor*tcolor.r;"]).result;break;case 2:l=St.substitute(l,"//VTK::TCoord::Impl",[" vec4 tcolor = texture2D(texture1, tcoordVCVSOutput);"," ambientColor = ambientColor*tcolor.r;"," diffuseColor = diffuseColor*tcolor.r;"," opacity = opacity * tcolor.g;"]).result;break;default:l=St.substitute(l,"//VTK::TCoord::Impl",[" vec4 tcolor = texture2D(texture1, tcoordVCVSOutput);"," ambientColor = ambientColor*tcolor.rgb;"," diffuseColor = diffuseColor*tcolor.rgb;"," opacity = opacity * tcolor.a;"]).result}}else switch(o=St.substitute(o,"//VTK::TCoord::Dec","attribute vec3 tcoordMC; varying vec3 tcoordVCVSOutput;").result,s=St.substitute(s,"//VTK::TCoord::Dec",["in vec3 tcoordVCVSOutput[];","out vec3 tcoordVCGSOutput;"]).result,s=St.substitute(s,"//VTK::TCoord::Impl","tcoordVCGSOutput = tcoordVCVSOutput[i];").result,l=St.substitute(l,"//VTK::TCoord::Dec",["varying vec3 tcoordVCVSOutput;","uniform samplerCube texture1;"]).result,c){case 1:l=St.substitute(l,"//VTK::TCoord::Impl",[" vec4 tcolor = textureCube(texture1, tcoordVCVSOutput);"," ambientColor = ambientColor*tcolor.r;"," diffuseColor = diffuseColor*tcolor.r;"]).result;break;case 2:l=St.substitute(l,"//VTK::TCoord::Impl",[" vec4 tcolor = textureCube(texture1, tcoordVCVSOutput);"," ambientColor = ambientColor*tcolor.r;"," diffuseColor = diffuseColor*tcolor.r;"," opacity = opacity * tcolor.g;"]).result;break;default:l=St.substitute(l,"//VTK::TCoord::Impl",[" vec4 tcolor = textureCube(texture1, tcoordVCVSOutput);"," ambientColor = ambientColor*tcolor.rgb;"," diffuseColor = diffuseColor*tcolor.rgb;"," opacity = opacity * tcolor.a;"]).result}r.Vertex=o,r.Geometry=s,r.Fragment=l}},t.replaceShaderClip=(r,a,i)=>{let o=r.Vertex,s=r.Fragment;if(e.renderable.getNumberOfClippingPlanes()){const l=e.renderable.getNumberOfClippingPlanes();o=St.substitute(o,"//VTK::Clip::Dec",["uniform int numClipPlanes;",`uniform vec4 clipPlanes[${l}];`,`varying float clipDistancesVSOutput[${l}];`]).result,o=St.substitute(o,"//VTK::Clip::Impl",[`for (int planeNum = 0; planeNum < ${l}; planeNum++)`," {"," if (planeNum >= numClipPlanes)"," {"," break;"," }"," clipDistancesVSOutput[planeNum] = dot(clipPlanes[planeNum], vertexMC);"," }"]).result,s=St.substitute(s,"//VTK::Clip::Dec",["uniform int numClipPlanes;",`varying float clipDistancesVSOutput[${l}];`]).result,s=St.substitute(s,"//VTK::Clip::Impl",[`for (int planeNum = 0; planeNum < ${l}; planeNum++)`," {"," if (planeNum >= numClipPlanes)"," {"," break;"," }"," if (clipDistancesVSOutput[planeNum] < 0.0) discard;"," }"]).result}r.Vertex=o,r.Fragment=s},t.getCoincidentParameters=(r,a)=>{let i={factor:0,offset:0};const o=a.getProperty();if(e.renderable.getResolveCoincidentTopology()||o.getEdgeVisibility()&&o.getRepresentation()===av.SURFACE){const l=e.lastBoundBO.getPrimitiveType();l===Fa.Points||o.getRepresentation()===av.POINTS?i=e.renderable.getCoincidentTopologyPointOffsetParameter():l===Fa.Lines||o.getRepresentation()===av.WIREFRAME?i=e.renderable.getCoincidentTopologyLineOffsetParameters():(l===Fa.Tris||l===Fa.TriStrips)&&(i=e.renderable.getCoincidentTopologyPolygonOffsetParameters()),(l===Fa.TrisEdges||l===Fa.TriStripsEdges)&&(i=e.renderable.getCoincidentTopologyPolygonOffsetParameters(),i.factor/=2,i.offset/=2)}const s=e._openGLRenderer.getSelector();return s&&s.getFieldAssociation()===iD.FIELD_ASSOCIATION_POINTS&&(i.offset-=2),i},t.replaceShaderPicking=(r,a,i)=>{let o=r.Fragment,s=r.Vertex;if(o=St.substitute(o,"//VTK::Picking::Dec",["uniform int picking;","//VTK::Picking::Dec"]).result,!!e._openGLRenderer.getSelector()){switch((e.lastSelectionState===Xi.ID_LOW24||e.lastSelectionState===Xi.ID_HIGH24)&&(s=St.substitute(s,"//VTK::Picking::Dec",[`flat out int vertexIDVSOutput;
  203. `,`uniform int VertexIDOffset;
  204. `]).result,s=St.substitute(s,"//VTK::Picking::Impl",` vertexIDVSOutput = gl_VertexID + VertexIDOffset;
  205. `).result,o=St.substitute(o,"//VTK::Picking::Dec",`flat in int vertexIDVSOutput;
  206. `).result,o=St.substitute(o,"//VTK::Picking::Impl",[" int idx = vertexIDVSOutput;","//VTK::Picking::Impl"]).result),e.lastSelectionState){case Xi.ID_LOW24:o=St.substitute(o,"//VTK::Picking::Impl"," gl_FragData[0] = vec4(float(idx%256)/255.0, float((idx/256)%256)/255.0, float((idx/65536)%256)/255.0, 1.0);").result;break;case Xi.ID_HIGH24:o=St.substitute(o,"//VTK::Picking::Impl"," gl_FragData[0] = vec4(float(idx)/255.0, 0.0, 0.0, 1.0);").result;break;default:o=St.substitute(o,"//VTK::Picking::Dec","uniform vec3 mapperIndex;").result,o=St.substitute(o,"//VTK::Picking::Impl"," gl_FragData[0] = picking != 0 ? vec4(mapperIndex,1.0) : gl_FragData[0];").result}r.Fragment=o,r.Vertex=s}},t.replaceShaderValues=(r,a,i)=>{if(t.replaceShaderColor(r,a,i),t.replaceShaderNormal(r,a,i),t.replaceShaderLight(r,a,i),t.replaceShaderTCoord(r,a,i),t.replaceShaderPicking(r,a,i),t.replaceShaderClip(r,a,i),t.replaceShaderCoincidentOffset(r,a,i),t.replaceShaderPositionVC(r,a,i),e.haveSeenDepthRequest){let o=r.Fragment;o=St.substitute(o,"//VTK::ZBuffer::Dec","uniform int depthRequest;").result,o=St.substitute(o,"//VTK::ZBuffer::Impl",["if (depthRequest == 1) {","float iz = floor(gl_FragCoord.z*65535.0 + 0.1);","float rf = floor(iz/256.0)/255.0;","float gf = mod(iz,256.0)/255.0;","gl_FragData[0] = vec4(rf, gf, 0.0, 1.0); }"]).result,r.Fragment=o}},t.getNeedToRebuildShaders=(r,a,i)=>{let o=0,s=0;const l=r.getPrimitiveType(),u=e.currentInput;let c=!1;const f=u.getPointData().getNormals(),d=u.getCellData().getNormals(),h=i.getProperty().getInterpolation()===$6.FLAT,p=i.getProperty().getRepresentation(),v=r.getOpenGLMode(p,l);if((v===e.context.TRIANGLES||d&&!f||!h&&f||!h&&v===e.context.LINES)&&(c=!0),i.getProperty().getLighting()&&c){o=0;const S=a.getLightsByReference();for(let w=0;w<S.length;++w){const C=S[w];C.getSwitch()>0&&(s++,o===0&&(o=1)),o===1&&(s>1||C.getIntensity()!==1||!C.lightTypeIsHeadLight())&&(o=2),o<3&&C.getPositional()&&(o=3)}}let g=!1;const y=e.lastBoundBO.getReferenceByName("lastLightComplexity"),m=e.lastBoundBO.getReferenceByName("lastLightCount");return(y!==o||m!==s)&&(e.lastBoundBO.set({lastLightComplexity:o},!0),e.lastBoundBO.set({lastLightCount:s},!0),g=!0),(!e.currentRenderPass&&e.lastRenderPassShaderReplacement||e.currentRenderPass&&e.currentRenderPass.getShaderReplacement()!==e.lastRenderPassShaderReplacement)&&(g=!0),e.lastHaveSeenDepthRequest!==e.haveSeenDepthRequest||r.getShaderSourceTime().getMTime()<e.renderable.getMTime()||r.getShaderSourceTime().getMTime()<e.currentInput.getMTime()||r.getShaderSourceTime().getMTime()<e.selectionStateChanged.getMTime()||g?(e.lastHaveSeenDepthRequest=e.haveSeenDepthRequest,!0):!1},t.invokeShaderCallbacks=(r,a,i)=>{const o=e.renderable.getViewSpecificProperties().ShadersCallbacks;o&&o.forEach(s=>{s.callback(s.userData,r,a,i)})},t.setMapperShaderParameters=(r,a,i)=>{if(r.getProgram().isUniformUsed("PrimitiveIDOffset")&&r.getProgram().setUniformi("PrimitiveIDOffset",e.primitiveIDOffset),r.getProgram().isUniformUsed("VertexIDOffset")&&r.getProgram().setUniformi("VertexIDOffset",e.vertexIDOffset),r.getCABO().getElementCount()&&(e.VBOBuildTime.getMTime()>r.getAttributeUpdateTime().getMTime()||r.getShaderSourceTime().getMTime()>r.getAttributeUpdateTime().getMTime())){const l=e.lastBoundBO.getReferenceByName("lastLightComplexity");r.getProgram().isAttributeUsed("vertexMC")&&(r.getVAO().addAttributeArray(r.getProgram(),r.getCABO(),"vertexMC",r.getCABO().getVertexOffset(),r.getCABO().getStride(),e.context.FLOAT,3,!1)||Ld("Error setting vertexMC in shader VAO.")),r.getProgram().isAttributeUsed("normalMC")&&r.getCABO().getNormalOffset()&&l>0?r.getVAO().addAttributeArray(r.getProgram(),r.getCABO(),"normalMC",r.getCABO().getNormalOffset(),r.getCABO().getStride(),e.context.FLOAT,3,!1)||Ld("Error setting normalMC in shader VAO."):r.getVAO().removeAttributeArray("normalMC"),e.renderable.getCustomShaderAttributes().forEach((u,c)=>{r.getProgram().isAttributeUsed(`${u}MC`)&&(r.getVAO().addAttributeArray(r.getProgram(),r.getCABO(),`${u}MC`,r.getCABO().getCustomData()[c].offset,r.getCABO().getStride(),e.context.FLOAT,r.getCABO().getCustomData()[c].components,!1)||Ld(`Error setting ${u}MC in shader VAO.`))}),r.getProgram().isAttributeUsed("tcoordMC")&&r.getCABO().getTCoordOffset()?r.getVAO().addAttributeArray(r.getProgram(),r.getCABO(),"tcoordMC",r.getCABO().getTCoordOffset(),r.getCABO().getStride(),e.context.FLOAT,r.getCABO().getTCoordComponents(),!1)||Ld("Error setting tcoordMC in shader VAO."):r.getVAO().removeAttributeArray("tcoordMC"),r.getProgram().isAttributeUsed("scalarColor")&&r.getCABO().getColorComponents()?r.getVAO().addAttributeArray(r.getProgram(),r.getCABO().getColorBO(),"scalarColor",r.getCABO().getColorOffset(),r.getCABO().getColorBOStride(),e.context.UNSIGNED_BYTE,4,!0)||Ld("Error setting scalarColor in shader VAO."):r.getVAO().removeAttributeArray("scalarColor"),r.getAttributeUpdateTime().modified()}if(e.renderable.getNumberOfClippingPlanes()){const l=e.renderable.getNumberOfClippingPlanes(),u=[],f=r.getCABO().getCoordShiftAndScaleEnabled()?r.getCABO().getInverseShiftAndScaleMatrix():null,d=f?di(e.tmpMat4,i.getMatrix()):i.getMatrix();f&&(ea(d,d),ri(d,d,f),ea(d,d));for(let h=0;h<l;h++){const p=[];e.renderable.getClippingPlaneInDataCoords(d,h,p);for(let v=0;v<4;v++)u.push(p[v])}r.getProgram().setUniformi("numClipPlanes",l),r.getProgram().setUniform4fv("clipPlanes",u)}e.internalColorTexture&&r.getProgram().isUniformUsed("texture1")&&r.getProgram().setUniformi("texture1",e.internalColorTexture.getTextureUnit());const o=e.openGLActor.getActiveTextures();if(o)for(let l=0;l<o.length;++l){const c=o[l].getTextureUnit(),f=`texture${c+1}`;r.getProgram().isUniformUsed(f)&&r.getProgram().setUniformi(f,c)}if(e.haveSeenDepthRequest&&r.getProgram().setUniformi("depthRequest",e.renderDepth?1:0),r.getProgram().isUniformUsed("coffset")){const l=t.getCoincidentParameters(a,i);r.getProgram().setUniformf("coffset",l.offset),r.getProgram().isUniformUsed("cfactor")&&r.getProgram().setUniformf("cfactor",l.factor)}r.setMapperShaderParameters(a,i,e._openGLRenderer.getTiledSizeAndOrigin());const s=e._openGLRenderer.getSelector();r.getProgram().setUniform3fArray("mapperIndex",s?s.getPropColorValue():[0,0,0]),r.getProgram().setUniformi("picking",s?s.getCurrentPass()+1:0)},t.setLightingShaderParameters=(r,a,i)=>{const o=e.lastBoundBO.getReferenceByName("lastLightComplexity");if(o<2)return;const s=r.getProgram();let l=0;const u=a.getLightsByReference();for(let d=0;d<u.length;++d){const h=u[d];if(h.getSwitch()>0){const v=h.getColorByReference(),g=h.getIntensity();e.lightColor[0]=v[0]*g,e.lightColor[1]=v[1]*g,e.lightColor[2]=v[2]*g;const y=h.getDirection(),m=a.getActiveCamera().getViewMatrix(),S=[...y];h.lightTypeIsSceneLight()&&(S[0]=m[0]*y[0]+m[1]*y[1]+m[2]*y[2],S[1]=m[4]*y[0]+m[5]*y[1]+m[6]*y[2],S[2]=m[8]*y[0]+m[9]*y[1]+m[10]*y[2],bp(S)),e.lightDirection[0]=S[0],e.lightDirection[1]=S[1],e.lightDirection[2]=S[2],bp(e.lightDirection),s.setUniform3fArray(`lightColor${l}`,e.lightColor),s.setUniform3fArray(`lightDirectionVC${l}`,e.lightDirection),l++}}if(o<3)return;const f=a.getActiveCamera().getViewMatrix();ea(f,f),l=0;for(let d=0;d<u.length;++d){const h=u[d];if(h.getSwitch()>0){const v=h.getTransformedPosition(),g=new Float64Array(3);_r(g,v,f),s.setUniform3fArray(`lightAttenuation${l}`,h.getAttenuationValuesByReference()),s.setUniformi(`lightPositional${l}`,h.getPositional()),s.setUniformf(`lightExponent${l}`,h.getExponent()),s.setUniformf(`lightConeAngle${l}`,h.getConeAngle()),s.setUniform3fArray(`lightPositionVC${l}`,[g[0],g[1],g[2]]),l++}}};function n(r,a,i){return a.identity(i),r.reduce((o,s,l)=>l===0?s?a.copy(o,s):a.identity(o):s?a.multiply(o,o,s):o,i)}t.setCameraShaderParameters=(r,a,i)=>{const o=r.getProgram(),s=e.openGLCamera.getKeyMatrices(a),l=a.getActiveCamera(),u=e.openGLCamera.getKeyMatrixTime().getMTime(),c=o.getLastCameraMTime(),d=r.getCABO().getCoordShiftAndScaleEnabled()?r.getCABO().getInverseShiftAndScaleMatrix():null,h=i.getIsIdentity(),p=h?{mcwc:null,normalMatrix:null}:e.openGLActor.getKeyMatrices();if(i.getCoordinateSystem()===brt.DISPLAY){const v=e._openGLRenderer.getTiledSizeAndOrigin();Yn(e.tmpMat4),e.tmpMat4[0]=2/v.usize,e.tmpMat4[12]=-1,e.tmpMat4[5]=2/v.vsize,e.tmpMat4[13]=-1,ri(e.tmpMat4,e.tmpMat4,d),o.setUniformMatrix("MCPCMatrix",e.tmpMat4)}else o.setUniformMatrix("MCPCMatrix",n([s.wcpc,p.mcwc,d],kL,e.tmpMat4));o.isUniformUsed("MCVCMatrix")&&o.setUniformMatrix("MCVCMatrix",n([s.wcvc,p.mcwc,d],kL,e.tmpMat4)),o.isUniformUsed("normalMatrix")&&o.setUniformMatrix3x3("normalMatrix",n([s.normalMatrix,p.normalMatrix],KXe,e.tmpMat3)),c!==u&&(o.isUniformUsed("cameraParallel")&&o.setUniformi("cameraParallel",l.getParallelProjection()),o.setLastCameraMTime(u)),h||o.setLastCameraMTime(0)},t.setPropertyShaderParameters=(r,a,i)=>{const o=r.getProgram();let s=i.getProperty(),l=s.getOpacity(),u=e.drawingEdges?s.getEdgeColorByReference():s.getAmbientColorByReference(),c=e.drawingEdges?s.getEdgeColorByReference():s.getDiffuseColorByReference(),f=e.drawingEdges?1:s.getAmbient(),d=e.drawingEdges?0:s.getDiffuse(),h=e.drawingEdges?0:s.getSpecular();const p=s.getSpecularPower();o.setUniformf("opacityUniform",l),o.setUniform3fArray("ambientColorUniform",u),o.setUniform3fArray("diffuseColorUniform",c),o.setUniformf("ambient",f),o.setUniformf("diffuse",d);const v=e.lastBoundBO.getReferenceByName("lastLightComplexity");if(v<1)return;let g=s.getSpecularColorByReference();if(o.setUniform3fArray("specularColorUniform",g),o.setUniformf("specularPowerUniform",p),o.setUniformf("specular",h),o.isUniformUsed("ambientIntensityBF")){if(s=i.getBackfaceProperty(),l=s.getOpacity(),u=s.getAmbientColor(),f=s.getAmbient(),c=s.getDiffuseColor(),d=s.getDiffuse(),g=s.getSpecularColor(),h=s.getSpecular(),o.setUniformf("ambientIntensityBF",f),o.setUniformf("diffuseIntensityBF",d),o.setUniformf("opacityUniformBF",l),o.setUniform3fArray("ambientColorUniformBF",u),o.setUniform3fArray("diffuseColorUniformBF",c),v<1)return;o.setUniformf("specularIntensityBF",h),o.setUniform3fArray("specularColorUniformBF",g),o.setUniformf("specularPowerUniformBF",p)}},t.updateMaximumPointCellIds=(r,a)=>{var s,l,u,c;const i=e._openGLRenderer.getSelector();if(!i)return;if((l=(s=e.selectionWebGLIdsToVTKIds)==null?void 0:s.points)!=null&&l.length){const f=e.selectionWebGLIdsToVTKIds.points.length;i.setMaximumPointId(f-1)}if((c=(u=e.selectionWebGLIdsToVTKIds)==null?void 0:u.cells)!=null&&c.length){const f=e.selectionWebGLIdsToVTKIds.cells.length;i.setMaximumCellId(f-1)}i.getFieldAssociation()===iD.FIELD_ASSOCIATION_POINTS&&(e.pointPicking=!0)},t.renderPieceStart=(r,a)=>{e.primitiveIDOffset=0,e.vertexIDOffset=0;const i=Srt(e._openGLRenderer);if(e.lastSelectionState!==i&&(e.selectionStateChanged.modified(),e.lastSelectionState=i),e._openGLRenderer.getSelector())switch(i){default:e._openGLRenderer.getSelector().renderProp(a)}t.updateBufferObjects(r,a),e.renderable.getColorTextureMap()&&e.internalColorTexture.activate(),e.lastBoundBO=null},t.renderPieceDraw=(r,a)=>{const i=a.getProperty().getRepresentation(),o=a.getProperty().getEdgeVisibility()&&i===av.SURFACE,s=e._openGLRenderer.getSelector(),l=s&&s.getFieldAssociation()===iD.FIELD_ASSOCIATION_POINTS&&(e.lastSelectionState===Xi.ID_LOW24||e.lastSelectionState===Xi.ID_HIGH24);for(let u=Fa.Start;u<Fa.End;u++)e.primitives[u].setPointPicking(l),e.primitives[u].getCABO().getElementCount()&&(e.drawingEdges=o&&(u===Fa.TrisEdges||u===Fa.TriStripsEdges),(!e.drawingEdges||!(e.renderDepth||e.lastSelectionState>=0))&&(e.lastBoundBO=e.primitives[u],e.primitiveIDOffset+=e.primitives[u].drawArrays(r,a,i,t),e.vertexIDOffset+=e.primitives[u].getCABO().getElementCount()))},t.renderPieceFinish=(r,a)=>{e.LastBoundBO&&e.LastBoundBO.getVAO().release(),e.renderable.getColorTextureMap()&&e.internalColorTexture.deactivate()},t.renderPiece=(r,a)=>{if(t.invokeEvent(yrt),e.renderable.getStatic()||e.renderable.update(),e.currentInput=e.renderable.getInputData(),t.invokeEvent(mrt),!e.currentInput){Ld("No input!");return}if(!e.currentInput.getPoints||!e.currentInput.getPoints().getNumberOfValues())return;const i=e.context,o=a.getProperty().getBackfaceCulling(),s=a.getProperty().getFrontfaceCulling();!o&&!s?e._openGLRenderWindow.disableCullFace():s?(e._openGLRenderWindow.enableCullFace(),i.cullFace(i.FRONT)):(e._openGLRenderWindow.enableCullFace(),i.cullFace(i.BACK)),t.renderPieceStart(r,a),t.renderPieceDraw(r,a),t.renderPieceFinish(r,a)},t.computeBounds=(r,a)=>{if(!t.getInput()){FT(e.bounds);return}e.bounds=t.getInput().getBounds()},t.updateBufferObjects=(r,a)=>{t.getNeedToRebuildBufferObjects(r,a)&&t.buildBufferObjects(r,a)},t.getNeedToRebuildBufferObjects=(r,a)=>{const i=e.VBOBuildTime.getMTime();return i<t.getMTime()||i<e.renderable.getMTime()||i<a.getMTime()||i<e.currentInput.getMTime()},t.buildBufferObjects=(r,a)=>{const i=e.currentInput;if(i===null)return;e.renderable.mapScalars(i,1);const o=e.renderable.getColorMapColors();e.haveCellScalars=!1;const s=e.renderable.getScalarMode();e.renderable.getScalarVisibility()&&(s===uw.USE_CELL_DATA||s===uw.USE_CELL_FIELD_DATA||s===uw.USE_FIELD_DATA||!i.getPointData().getScalars())&&s!==uw.USE_POINT_FIELD_DATA&&o&&(e.haveCellScalars=!0);let l=a.getProperty().getInterpolation()!==$6.FLAT?i.getPointData().getNormals():null;l===null&&i.getCellData().getNormals()&&(e.haveCellNormals=!0,l=i.getCellData().getNormals());const u=a.getProperty().getRepresentation();let c=i.getPointData().getTCoords();if(e.openGLActor.getActiveTextures()||(c=null),e.renderable.getColorCoordinates()){c=e.renderable.getColorCoordinates(),e.internalColorTexture||(e.internalColorTexture=tp.newInstance({resizable:!0}));const d=e.internalColorTexture;d.setMinificationFilter(P6.NEAREST),d.setMagnificationFilter(P6.NEAREST),d.setWrapS(F6.CLAMP_TO_EDGE),d.setWrapT(F6.CLAMP_TO_EDGE),d.setOpenGLRenderWindow(e._openGLRenderWindow);const h=e.renderable.getColorTextureMap(),p=h.getExtent(),v=h.getPointData().getScalars();d.create2DFromRaw(p[1]-p[0]+1,p[3]-p[2]+1,v.getNumberOfComponents(),v.getDataType(),v.getData()),d.activate(),d.sendParameters(),d.deactivate()}const f=`${i.getMTime()}A${u}B${i.getMTime()}C${l?l.getMTime():1}D${o?o.getMTime():1}E${a.getProperty().getEdgeVisibility()}F${c?c.getMTime():1}`;if(e.VBOBuildString!==f){const h={points:i.getPoints(),normals:l,tcoords:c,colors:o,cellOffset:0,vertexOffset:0,haveCellScalars:e.haveCellScalars,haveCellNormals:e.haveCellNormals,customAttributes:e.renderable.getCustomShaderAttributes().map(g=>i.getPointData().getArrayByName(g))};e.renderable.getPopulateSelectionSettings()&&(e.selectionWebGLIdsToVTKIds={points:null,cells:null});const p=[{inRep:"verts",cells:i.getVerts()},{inRep:"lines",cells:i.getLines()},{inRep:"polys",cells:i.getPolys()},{inRep:"strips",cells:i.getStrips()},{inRep:"polys",cells:i.getPolys()},{inRep:"strips",cells:i.getStrips()}],v=a.getProperty().getEdgeVisibility()&&u===av.SURFACE;for(let g=Fa.Start;g<Fa.End;g++)g!==Fa.TrisEdges&&g!==Fa.TriStripsEdges?(h.cellOffset+=e.primitives[g].getCABO().createVBO(p[g].cells,p[g].inRep,u,h,e.selectionWebGLIdsToVTKIds),h.vertexOffset+=e.primitives[g].getCABO().getElementCount()):v?e.primitives[g].getCABO().createVBO(p[g].cells,p[g].inRep,av.WIREFRAME,{...h,tcoords:null,colors:null,haveCellScalars:!1,haveCellNormals:!1}):e.primitives[g].releaseGraphicsResources();e.renderable.getPopulateSelectionSettings()&&(e.renderable.setSelectionWebGLIdsToVTKIds(e.selectionWebGLIdsToVTKIds),t.updateMaximumPointCellIds()),e.VBOBuildTime.modified(),e.VBOBuildString=f}},t.getAllocatedGPUMemoryInBytes=()=>{let r=0;return e.primitives.forEach(a=>{r+=a.getAllocatedGPUMemoryInBytes()}),r}}const xrt={context:null,VBOBuildTime:0,VBOBuildString:null,primitives:null,primTypes:null,shaderRebuildString:null,tmpMat4:null,ambientColor:[],diffuseColor:[],specularColor:[],lightColor:[],lightDirection:[],lastHaveSeenDepthRequest:!1,haveSeenDepthRequest:!1,lastSelectionState:Xi.MIN_KNOWN_PASS-1,selectionStateChanged:null,selectionWebGLIdsToVTKIds:null,pointPicking:!1};function Tne(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,xrt,n),Sa.extend(t,e,n),U2.implementReplaceShaderCoincidentOffset(t,e,n),U2.implementBuildShadersWithReplacements(t,e,n),e.primitives=[],e.primTypes=Fa,e.tmpMat3=Vp(new Float64Array(9)),e.tmpMat4=Yn(new Float64Array(16));for(let r=Fa.Start;r<Fa.End;r++)e.primitives[r]=E0.newInstance(),e.primitives[r].setPrimitiveType(r),e.primitives[r].set({lastLightComplexity:0,lastLightCount:0,lastSelectionPass:!1},!0);Xa(t,e,["context"]),e.VBOBuildTime={},oi(e.VBOBuildTime,{mtime:0}),e.selectionStateChanged={},oi(e.selectionStateChanged,{mtime:0}),wrt(t,e)}const Ene=Kr(Tne,"vtkOpenGLPolyDataMapper");var KFt={newInstance:Ene,extend:Tne};El("vtkMapper",Ene);const{ColorMode:_rt,ScalarMode:Od,GetArray:oD}=HT;function Crt(t,e){e.classHierarchy.push("vtkMapper2D"),t.createDefaultLookupTable=()=>{e.lookupTable=Yv.newInstance()},t.getColorModeAsString=()=>J.enumToString(_rt,e.colorMode),t.setColorModeToDefault=()=>t.setColorMode(0),t.setColorModeToMapScalars=()=>t.setColorMode(1),t.setColorModeToDirectScalars=()=>t.setColorMode(2),t.getScalarModeAsString=()=>J.enumToString(Od,e.scalarMode),t.setScalarModeToDefault=()=>t.setScalarMode(0),t.setScalarModeToUsePointData=()=>t.setScalarMode(1),t.setScalarModeToUseCellData=()=>t.setScalarMode(2),t.setScalarModeToUsePointFieldData=()=>t.setScalarMode(3),t.setScalarModeToUseCellFieldData=()=>t.setScalarMode(4),t.setScalarModeToUseFieldData=()=>t.setScalarMode(5),t.getAbstractScalars=(n,r,a,i,o)=>{if(!n||!e.scalarVisibility)return{scalars:null,cellFLag:!1};let s=null,l=!1;if(r===Od.DEFAULT)s=n.getPointData().getScalars(),s||(s=n.getCellData().getScalars(),l=!0);else if(r===Od.USE_POINT_DATA)s=n.getPointData().getScalars();else if(r===Od.USE_CELL_DATA)s=n.getCellData().getScalars(),l=!0;else if(r===Od.USE_POINT_FIELD_DATA){const u=n.getPointData();a===oD.BY_ID?s=u.getArrayByIndex(i):s=u.getArrayByName(o)}else if(r===Od.USE_CELL_FIELD_DATA){const u=n.getCellData();l=!0,a===oD.BY_ID?s=u.getArrayByIndex(i):s=u.getArrayByName(o)}else if(r===Od.USE_FIELD_DATA){const u=n.getFieldData();a===oD.BY_ID?s=u.getArrayByIndex(i):s=u.getArrayByName(o)}return{scalars:s,cellFlag:l}},t.getLookupTable=()=>(e.lookupTable||t.createDefaultLookupTable(),e.lookupTable),t.getMTime=()=>{let n=e.mtime;if(e.lookupTable!==null){const r=e.lookupTable.getMTime();n=r>n?r:n}return n},t.mapScalars=(n,r)=>{const a=t.getAbstractScalars(n,e.scalarMode,e.arrayAccessMode,e.arrayId,e.colorByArrayName).scalars;if(!a){e.colorMapColors=null;return}const i=`${t.getMTime()}${a.getMTime()}${r}`;if(e.colorBuildString===i)return;e.useLookupTableScalarRange||t.getLookupTable().setRange(e.scalarRange[0],e.scalarRange[1]);const o=t.getLookupTable();o&&(o.build(),e.colorMapColors=o.mapScalars(a,e.colorMode,e.fieldDataTupleId)),e.colorBuildString=`${t.getMTime()}${a.getMTime()}${r}`},t.getPrimitiveCount=()=>{const n=t.getInputData();return{points:n.getPoints().getNumberOfValues()/3,verts:n.getVerts().getNumberOfValues()-n.getVerts().getNumberOfCells(),lines:n.getLines().getNumberOfValues()-2*n.getLines().getNumberOfCells(),triangles:n.getPolys().getNumberOfValues()-3*n.getPolys().getNumberOfCells()}}}const Trt={static:!1,lookupTable:null,scalarVisibility:!1,scalarRange:[0,1],useLookupTableScalarRange:!1,colorMode:0,scalarMode:0,arrayAccessMode:1,renderTime:0,colorByArrayName:null,transformCoordinate:null,viewSpecificProperties:null,customShaderAttributes:[]};function Mne(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Trt,n),Nte.extend(t,e,n),J.get(t,e,["colorMapColors"]),J.setGet(t,e,["arrayAccessMode","colorByArrayName","colorMode","lookupTable","renderTime","scalarMode","scalarVisibility","static","transformCoordinate","useLookupTableScalarRange","viewSpecificProperties","customShaderAttributes"]),J.setGetArray(t,e,["scalarRange"],2),e.viewSpecificProperties||(e.viewSpecificProperties={}),Crt(t,e)}const Ert=J.newInstance(Mne,"vtkMapper2D");var Mrt={newInstance:Ert,extend:Mne},Drt=`//VTK::System::Dec
  207. /*=========================================================================
  208. Program: Visualization Toolkit
  209. Module: vtkPolyData2DFS.glsl
  210. Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
  211. All rights reserved.
  212. See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
  213. This software is distributed WITHOUT ANY WARRANTY; without even
  214. the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
  215. PURPOSE. See the above copyright notice for more information.
  216. =========================================================================*/
  217. uniform int PrimitiveIDOffset;
  218. // Texture coordinates
  219. //VTK::TCoord::Dec
  220. // Scalar coloring
  221. //VTK::Color::Dec
  222. // Depth Peeling
  223. //VTK::DepthPeeling::Dec
  224. // picking support
  225. //VTK::Picking::Dec
  226. // the output of this shader
  227. //VTK::Output::Dec
  228. // Apple Bug
  229. //VTK::PrimID::Dec
  230. void main()
  231. {
  232. // Apple Bug
  233. //VTK::PrimID::Impl
  234. //VTK::Color::Impl
  235. //VTK::TCoord::Impl
  236. //VTK::DepthPeeling::Impl
  237. //VTK::Picking::Impl
  238. if (gl_FragData[0].a <= 0.0)
  239. {
  240. discard;
  241. }
  242. }
  243. `,Art=`//VTK::System::Dec
  244. /*=========================================================================
  245. Program: Visualization Toolkit
  246. Module: vtkPolyData2DVS.glsl
  247. Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
  248. All rights reserved.
  249. See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
  250. This software is distributed WITHOUT ANY WARRANTY; without even
  251. the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
  252. PURPOSE. See the above copyright notice for more information.
  253. =========================================================================*/
  254. // all variables that represent positions or directions have a suffix
  255. // indicating the coordinate system they are in. The possible values are
  256. // MC - Model Coordinates
  257. // WC - WC world coordinates
  258. // VC - View Coordinates
  259. // DC - Display Coordinates
  260. in vec4 vertexWC;
  261. // frag position in VC
  262. //VTK::PositionVC::Dec
  263. // material property values
  264. //VTK::Color::Dec
  265. // Texture coordinates
  266. //VTK::TCoord::Dec
  267. // Apple Bug
  268. //VTK::PrimID::Dec
  269. uniform mat4 WCVCMatrix; // World to view matrix
  270. void main()
  271. {
  272. // Apple Bug
  273. //VTK::PrimID::Impl
  274. gl_Position = WCVCMatrix*vertexWC;
  275. //VTK::TCoord::Impl
  276. //VTK::Color::Impl
  277. //VTK::PositionVC::Impl
  278. }
  279. `;const Dne={BACKGROUND:0,FOREGROUND:1};var Ane={DisplayLocation:Dne};const{primTypes:Xs}=E0,{ScalarMode:cw}=Mrt,{vtkErrorMacro:fw}=_u,krt={type:"StartEvent"},Rrt={type:"EndEvent"};function Lrt(t,e){e.classHierarchy.push("vtkOpenGLPolyDataMapper2D"),t.buildPass=r=>{r&&(e.openGLActor2D=t.getFirstAncestorOfType("vtkOpenGLActor2D"),e._openGLRenderer=e.openGLActor2D.getFirstAncestorOfType("vtkOpenGLRenderer"),e._openGLRenderWindow=e._openGLRenderer.getParent(),e.openGLCamera=e._openGLRenderer.getViewNodeFor(e._openGLRenderer.getRenderable().getActiveCamera()))},t.overlayPass=r=>{r&&t.render()},t.getShaderTemplate=(r,a,i)=>{r.Vertex=Art,r.Fragment=Drt,r.Geometry=""},t.render=()=>{const r=e._openGLRenderWindow.getContext();if(e.context!==r){e.context=r;for(let o=Xs.Start;o<Xs.End;o++)e.primitives[o].setOpenGLRenderWindow(e._openGLRenderWindow)}const a=e.openGLActor2D.getRenderable(),i=e._openGLRenderer.getRenderable();t.renderPiece(i,a)},t.renderPiece=(r,a)=>{if(t.invokeEvent(krt),e.renderable.getStatic()||e.renderable.update(),e.currentInput=e.renderable.getInputData(),t.invokeEvent(Rrt),!e.currentInput){fw("No input!");return}!e.currentInput.getPoints||!e.currentInput.getPoints().getNumberOfValues()||(t.renderPieceStart(r,a),t.renderPieceDraw(r,a),t.renderPieceFinish(r,a))},t.renderPieceStart=(r,a)=>{if(e.primitiveIDOffset=0,e._openGLRenderer.getSelector())switch(e._openGLRenderer.getSelector().getCurrentPass()){default:e._openGLRenderer.getSelector().renderProp(a)}t.updateBufferObjects(r,a),e.lastBoundBO=null},t.getNeedToRebuildShaders=(r,a,i)=>r.getShaderSourceTime().getMTime()<e.renderable.getMTime()||r.getShaderSourceTime().getMTime()<e.currentInput.getMTime(),t.updateBufferObjects=(r,a)=>{t.getNeedToRebuildBufferObjects(r,a)&&t.buildBufferObjects(r,a)},t.getNeedToRebuildBufferObjects=(r,a)=>{const i=e.VBOBuildTime.getMTime();return!!(i<t.getMTime()||i<e._openGLRenderWindow.getMTime()||i<e.renderable.getMTime()||i<a.getMTime()||i<e.currentInput.getMTime()||e.renderable.getTransformCoordinate()&&i<r.getMTime())},t.buildBufferObjects=(r,a)=>{const i=e.currentInput;if(i===null)return;e.renderable.mapScalars(i,a.getProperty().getOpacity());const o=e.renderable.getColorMapColors();e.haveCellScalars=!1;const s=e.renderable.getScalarMode();e.renderable.getScalarVisibility()&&(s===cw.USE_CELL_DATA||s===cw.USE_CELL_FIELD_DATA||s===cw.USE_FIELD_DATA||!i.getPointData().getScalars())&&s!==cw.USE_POINT_FIELD_DATA&&o&&(e.haveCellScalars=!0);const l=a.getProperty().getRepresentation();let u=i.getPointData().getTCoords();e.openGLActor2D.getActiveTextures()||(u=null);const c=e.renderable.getTransformCoordinate(),d=r.getRenderWindow().getViews()[0].getViewportSize(r),h=`${i.getMTime()}A${l}B${i.getMTime()}C${o?o.getMTime():1}D${u?u.getMTime():1}E${c?r.getMTime():1}F${d}`;if(e.VBOBuildString!==h){let p=i.getPoints();if(c){const g=$1.newInstance(),y=p.getNumberOfPoints();g.setNumberOfPoints(y);const m=[];for(let S=0;S<y;++S){p.getPoint(S,m),c.setValue(m);const w=c.getComputedDoubleViewportValue(r);g.setPoint(S,w[0],w[1],0)}p=g}const v={points:p,tcoords:u,colors:o,cellOffset:0,haveCellScalars:e.haveCellSCalars,customAttributes:e.renderable.getCustomShaderAttributes().map(g=>i.getPointData().getArrayByName(g))};v.cellOffset+=e.primitives[Xs.Points].getCABO().createVBO(i.getVerts(),"verts",l,v),v.cellOffset+=e.primitives[Xs.Lines].getCABO().createVBO(i.getLines(),"lines",l,v),v.cellOffset+=e.primitives[Xs.Tris].getCABO().createVBO(i.getPolys(),"polys",l,v),v.cellOffset+=e.primitives[Xs.TriStrips].getCABO().createVBO(i.getStrips(),"strips",l,v),e.VBOBuildTime.modified(),e.VBOBuildString=h}},t.renderPieceDraw=(r,a)=>{const i=a.getProperty().getRepresentation();e.context.depthMask(!0);for(let s=Xs.Start;s<Xs.End;s++)e.primitives[s].getCABO().getElementCount()&&(e.lastBoundBO=e.primitives[s],e.primitiveIDOffset+=e.primitives[s].drawArrays(r,a,i,t))},t.renderPieceFinish=(r,a)=>{e.lastBoundBO&&e.lastBoundBO.getVAO().release()},t.replaceShaderValues=(r,a,i)=>{t.replaceShaderColor(r,a,i),t.replaceShaderTCoord(r,a,i),t.replaceShaderPicking(r,a,i),t.replaceShaderPositionVC(r,a,i)},t.replaceShaderColor=(r,a,i)=>{let o=r.Vertex,s=r.Geometry,l=r.Fragment;e.haveCellScalars&&(l=St.substitute(l,"//VTK::Color::Dec",["uniform samplerBuffer texture1;"]).result,l=St.substitute(l,"//VTK::Color::Impl",["gl_FragData[0] = texelFetchBuffer(texture1, gl_PrimitiveID + PrimitiveIDOffset);"]).result),e.lastBoundBO.getCABO().getColorComponents()!==0?(o=St.substitute(o,"//VTK::Color::Dec",["in vec4 diffuseColor;","out vec4 fcolorVSOutput;"]).result,o=St.substitute(o,"//VTK::Color::Impl",["fcolorVSOutput = diffuseColor;"]).result,s=St.substitute(s,"//VTK::Color::Dec",[`in vec4 fcolorVSOutput[];
  280. `,"out vec4 fcolorGSOutput;"]).result,s=St.substitute(s,"//VTK::Color::Impl",["fcolorGSOutput = fcolorVSOutput[i];"]).result,l=St.substitute(l,"//VTK::Color::Dec",["in vec4 fcolorVSOutput;"]).result,l=St.substitute(l,"//VTK::Color::Impl",["gl_FragData[0] = fcolorVSOutput;"]).result):(l=St.substitute(l,"//VTK::Color::Dec",["uniform vec4 diffuseColor;"]).result,l=St.substitute(l,"//VTK::Color::Impl",["gl_FragData[0] = diffuseColor;"]).result),r.Vertex=o,r.Geometry=s,r.Fragment=l},t.replaceShaderTCoord=(r,a,i)=>{if(e.lastBoundBO.getCABO().getTCoordOffset()){let o=r.Vertex,s=r.Geometry,l=r.Fragment;const u=e.lastBoundBO.getCABO().getTCoordComponents();u===1?(o=St.substitute(o,"//VTK::TCoord::Dec",["in float tcoordMC;","out float tcoordVCVSOutput;"]).result,o=St.substitute(o,"//VTK::TCoord::Impl",["tcoordVCVSOutput = tcoordMC;"]).result,s=St.substitute(s,"//VTK::TCoord::Dec",[`in float tcoordVCVSOutput[];
  281. `,"out float tcoordVCGSOutput;"]).result,s=St.substitute(s,["//VTK::TCoord::Impl","tcoordVCGSOutput = tcoordVCVSOutput[i];"]).result,l=St.substitute(l,"//VTK::TCoord::Dec",["in float tcoordVCVSOutput;","uniform sampler2D texture1;"]).result,l=St.substitute(l,"//VTK::TCoord::Impl",["gl_FragData[0] = gl_FragData[0]*texture2D(texture1, vec2(tcoordVCVSOutput,0));"]).result):u===2&&(o=St.substitute(o,"//VTK::TCoord::Dec",["in vec2 tcoordMC;","out vec2 tcoordVCVSOutput;"]).result,o=St.substitute(o,"//VTK::TCoord::Impl",["tcoordVCVSOutput = tcoordMC;"]).result,s=St.substitute(s,"//VTK::TCoord::Dec",[`in vec2 tcoordVCVSOutput[];
  282. `,"out vec2 tcoordVCGSOutput;"]).result,s=St.substitute(s,"//VTK::TCoord::Impl",["tcoordVCGSOutput = tcoordVCVSOutput[i];"]).result,l=St.substitute(l,"//VTK::TCoord::Dec",["in vec2 tcoordVCVSOutput;","uniform sampler2D texture1;"]).result,l=St.substitute(l,"//VTK::TCoord::Impl",["gl_FragData[0] = gl_FragData[0]*texture2D(texture1, tcoordVCVSOutput.st);"]).result),e.haveCellScalars&&(s=St.substitute(s,"//VTK::PrimID::Impl",["gl_PrimitiveID = gl_PrimitiveIDIn;"]).result),r.Vertex=o,r.Geometry=s,r.Fragment=l}},t.replaceShaderPicking=(r,a,i)=>{let o=r.Fragment;o=St.substitute(o,"//VTK::Picking::Dec",["uniform vec3 mapperIndex;","uniform int picking;"]).result,o=St.substitute(o,"//VTK::Picking::Impl"," gl_FragData[0] = picking != 0 ? vec4(mapperIndex,1.0) : gl_FragData[0];").result,r.Fragment=o},t.replaceShaderPositionVC=(r,a,i)=>{e.lastBoundBO.replaceShaderPositionVC(r,a,i)},t.invokeShaderCallbacks=(r,a,i)=>{const o=e.renderable.getViewSpecificProperties().ShadersCallbacks;o&&o.forEach(s=>{s.callback(s.userData,r,a,i)})},t.setMapperShaderParameters=(r,a,i)=>{if(r.getProgram().isUniformUsed("PrimitiveIDOffset")&&r.getProgram().setUniformi("PrimitiveIDOffset",e.primitiveIDOffset),r.getProgram().isAttributeUsed("vertexWC")&&(r.getVAO().addAttributeArray(r.getProgram(),r.getCABO(),"vertexWC",r.getCABO().getVertexOffset(),r.getCABO().getStride(),e.context.FLOAT,3,!1)||fw("Error setting vertexWC in shader VAO.")),r.getCABO().getElementCount()&&(e.VBOBuildTime.getMTime()>r.getAttributeUpdateTime().getMTime()||r.getShaderSourceTime().getMTime()>r.getAttributeUpdateTime().getMTime())){e.renderable.getCustomShaderAttributes().forEach((l,u)=>{r.getProgram().isAttributeUsed(`${l}MC`)&&(r.getVAO().addAttributeArray(r.getProgram(),r.getCABO(),`${l}MC`,r.getCABO().getCustomData()[u].offset,r.getCABO().getStride(),e.context.FLOAT,r.getCABO().getCustomData()[u].components,!1)||fw(`Error setting ${l}MC in shader VAO.`))}),r.getProgram().isAttributeUsed("tcoordMC")&&r.getCABO().getTCoordOffset()?r.getVAO().addAttributeArray(r.getProgram(),r.getCABO(),"tcoordMC",r.getCABO().getTCoordOffset(),r.getCABO().getStride(),e.context.FLOAT,r.getCABO().getTCoordComponents(),!1)||fw("Error setting tcoordMC in shader VAO."):r.getVAO().removeAttributeArray("tcoordMC"),e.internalColorTexture&&r.getProgram().isUniformUsed("texture1")&&r.getProgram().setUniformi("texture1",e.internalColorTexture.getTextureUnit());const o=e.openGLActor2D.getActiveTextures();if(o)for(let l=0;l<o.length;++l){const c=o[l].getTextureUnit(),f=`texture${c+1}`;r.getProgram().isUniformUsed(f)&&r.getProgram().setUniformi(f,c)}r.setMapperShaderParameters(a,i,e._openGLRenderer.getTiledSizeAndOrigin());const s=e._openGLRenderer.getSelector();r.getProgram().setUniform3fArray("mapperIndex",s?s.getPropColorValue():[0,0,0]),r.getProgram().setUniformi("picking",s?s.getCurrentPass()+1:0)}},t.setPropertyShaderParameters=(r,a,i)=>{const o=e.renderable.getColorMapColors();if(!o||o.getNumberOfComponents()===0){const s=r.getProgram(),l=i.getProperty(),u=l.getOpacity(),c=l.getColor(),f=[c[0],c[1],c[2],u];s.setUniform4f("diffuseColor",f)}},t.setLightingShaderParameters=(r,a,i)=>{};function n(r,a,i){return a.identity(i),r.reduce((o,s,l)=>l===0?s?a.copy(o,s):a.identity(o):s?a.multiply(o,o,s):o,i)}t.setCameraShaderParameters=(r,a,i)=>{const o=r.getProgram(),l=r.getCABO().getCoordShiftAndScaleEnabled()?r.getCABO().getInverseShiftAndScaleMatrix():null,c=a.getRenderWindow().getViews()[0].getViewportSize(a),f=a.getViewport(),d=i.getActualPositionCoordinate().getComputedDoubleViewportValue(a),h=[0,0,1,1],p=[0,0,1,1];if(p[0]=f[0]>=h[0]?f[0]:h[0],p[1]=f[1]>=h[1]?f[1]:h[1],p[2]=f[2]<=h[2]?f[2]:h[2],p[3]=f[3]<=h[3]?f[3]:h[3],p[0]>=p[2]||p[1]>=p[3])return;c[0]=Zy(c[0]*(p[2]-p[0])/(f[2]-f[0])),c[1]=Zy(c[1]*(p[3]-p[1])/(f[3]-f[1]));const v=e._openGLRenderer.getParent().getSize(),g=Zy(d[0]-(p[0]-f[0])*v[0]),y=Zy(d[1]-(p[1]-f[1])*v[1]),m=-g;let S=-g+c[0];const w=-y;let C=-y+c[1];m===S&&(S=m+1),w===C&&(C=w+1);const _=Yn(new Float64Array(16));_[0]=2/(S-m),_[1*4+1]=2/(C-w),_[0*4+3]=-1*(S+m)/(S-m),_[1*4+3]=-1*(C+w)/(C-w),_[2*4+2]=0,_[2*4+3]=i.getProperty().getDisplayLocation()===Dne.FOREGROUND?-1:1,_[3*4+3]=1,ea(_,_),o.setUniformMatrix("WCVCMatrix",n([_,l],kL,e.tmpMat4))},t.getAllocatedGPUMemoryInBytes=()=>{let r=0;return e.primitives.forEach(a=>{r+=a.getAllocatedGPUMemoryInBytes()}),r}}const Ort={context:null,VBOBuildTime:0,VBOBuildString:null,primitives:null,primTypes:null,shaderRebuildString:null};function Vrt(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Ort,n),Sa.extend(t,e,n),U2.implementReplaceShaderCoincidentOffset(t,e,n),U2.implementBuildShadersWithReplacements(t,e,n),e.primitives=[],e.primTypes=Xs,e.tmpMat4=Yn(new Float64Array(16));for(let r=Xs.Start;r<Xs.End;r++)e.primitives[r]=E0.newInstance(),e.primitives[r].setPrimitiveType(r),e.primitives[r].set({lastLightComplexity:0,lastLightCount:0,lastSelectionPass:!1},!0);Xa(t,e,["context"]),e.VBOBuildTime={},oi(e.VBOBuildTime,{mtime:0}),Lrt(t,e)}const Nrt=Kr(Vrt,"vtkOpenGLPolyDataMapper2D");El("vtkMapper2D",Nrt);const{VectorMode:Irt}=WT;function sD(t,e){t.strokeStyle=e.strokeColor,t.lineWidth=e.strokeSize,t.fillStyle=e.fontColor,t.font=`${e.fontStyle} ${e.fontSize}px ${e.fontFamily}`}function kne(t,e){return n=>{const r=n.getLastSize(),a=(r[0]/700)**.8,i=(r[1]/700)**.8,o=Math.min(a,i),s=n.getAxisTextStyle(),l=n.getTickTextStyle();Object.assign(s,e.axisTextStyle),Object.assign(l,e.tickTextStyle),s.fontSize=Math.max(24*o,12),n.getLastAspectRatio()>1?l.fontSize=Math.max(20*o,10):l.fontSize=Math.max(16*o,10);const u=n.updateTextureAtlas();n.setTopTitle(!1);const c=n.getBoxSizeByReference();if(n.getLastAspectRatio()>1)n.setTickLabelPixelOffset(.3*l.fontSize),u.titleWidth<=u.tickWidth+n.getTickLabelPixelOffset()+.8*l.fontSize?(n.setTopTitle(!0),n.setAxisTitlePixelOffset(.2*l.fontSize),c[0]=2*(u.tickWidth+n.getTickLabelPixelOffset()+.8*l.fontSize)/r[0],n.setBoxPosition([.98-c[0],-.92])):(n.setAxisTitlePixelOffset(.2*l.fontSize),c[0]=2*(u.titleHeight+n.getAxisTitlePixelOffset()+u.tickWidth+n.getTickLabelPixelOffset()+.8*l.fontSize)/r[0],n.setBoxPosition([.99-c[0],-.92])),c[1]=Math.max(1.2,Math.min(1.84/i,1.84));else{n.setAxisTitlePixelOffset(1.2*l.fontSize),n.setTickLabelPixelOffset(.1*l.fontSize);const f=2*(.8*l.fontSize+u.titleHeight+n.getAxisTitlePixelOffset())/r[1],d=2*u.tickWidth/r[0];c[0]=Math.min(1.9,Math.max(1.4,1.4*d*(n.getTicks().length+3))),c[1]=f,n.setBoxPosition([-.5*c[0],-.97])}n.recomputeBarSegments(u)}}function Rne(t,e){return n=>{const r=n.getLastTickBounds(),a=x0().domain([r[0],r[1]]),i=a.ticks(5),o=a.tickFormat(5);n.setTicks(i),n.setTickStrings(i.map(o))}}function Brt(t,e){e.classHierarchy.push("vtkScalarBarActorHelper"),t.setRenderable=a=>{e.renderable!==a&&(e.renderable=a,e.barActor.setProperty(a.getProperty()),e.barActor.setParentProp(a),e.barActor.setCoordinateSystemToDisplay(),e.tmActor.setProperty(a.getProperty()),e.tmActor.setParentProp(a),e.tmActor.setCoordinateSystemToDisplay(),e.generateTicks=a.generateTicks,e.axisTextStyle={...a.getAxisTextStyle()},e.tickTextStyle={...a.getTickTextStyle()},t.modified())},t.updateAPISpecificData=(a,i,o)=>{(e.lastSize[0]!==a[0]||e.lastSize[1]!==a[1])&&(e.lastSize[0]=a[0],e.lastSize[1]=a[1],e.lastAspectRatio=a[0]/a[1],e.forceUpdate=!0);const s=e.renderable.getScalarsToColors();if(!(!s||!e.renderable.getVisibility())&&(e.barMapper.setLookupTable(s),e.camera=i,e.renderWindow=o,e.forceUpdate||Math.max(s.getMTime(),t.getMTime(),e.renderable.getMTime())>e.lastRebuildTime.getMTime())){const l=s.getMappingRange();if(e.lastTickBounds=[...l],e.renderable.getGenerateTicks()(t),e.renderable.getAutomated())e.renderable.getAutoLayout()(t);else{e.axisTextStyle={...e.renderable.getAxisTextStyle()},e.tickTextStyle={...e.renderable.getTickTextStyle()},e.barPosition=[...e.renderable.getBarPosition()],e.barSize=[...e.renderable.getBarSize()],e.boxPosition=[...e.renderable.getBoxPosition()],e.boxSize=[...e.renderable.getBoxSize()],e.axisTitlePixelOffset=e.renderable.getAxisTitlePixelOffset(),e.tickLabelPixelOffset=e.renderable.getTickLabelPixelOffset();const u=t.updateTextureAtlas();t.recomputeBarSegments(u)}t.updatePolyDataForLabels(),t.updatePolyDataForBarSegments(),e.lastRebuildTime.modified(),e.forceUpdate=!1}},t.updateTextureAtlas=()=>{e.tmContext.textBaseline="bottom",e.tmContext.textAlign="left";const a={},i=new Map;let o=0,s=1;sD(e.tmContext,e.axisTextStyle);let l=e.tmContext.measureText(e.renderable.getAxisLabel()),u={height:l.actualBoundingBoxAscent+2,startingHeight:s,width:l.width+2,textStyle:e.axisTextStyle};i.set(e.renderable.getAxisLabel(),u),s+=u.height,o=u.width,a.titleWidth=u.width,a.titleHeight=u.height,a.tickWidth=0,a.tickHeight=0,sD(e.tmContext,e.tickTextStyle);const c=[...t.getTickStrings(),"NaN","Below","Above"];for(let f=0;f<c.length;f++)i.has(c[f])||(l=e.tmContext.measureText(c[f]),u={height:l.actualBoundingBoxAscent+2,startingHeight:s,width:l.width+2,textStyle:e.tickTextStyle},i.set(c[f],u),s+=u.height,o<u.width&&(o=u.width),a.tickWidth<u.width&&(a.tickWidth=u.width),a.tickHeight<u.height&&(a.tickHeight=u.height));return o=us(o),s=us(s),i.forEach(f=>{f.tcoords=[0,(s-f.startingHeight-f.height)/s,f.width/o,(s-f.startingHeight-f.height)/s,f.width/o,(s-f.startingHeight)/s,0,(s-f.startingHeight)/s]}),e.tmCanvas.width=o,e.tmCanvas.height=s,e.tmContext.textBaseline="bottom",e.tmContext.textAlign="left",e.tmContext.clearRect(0,0,o,s),i.forEach((f,d)=>{sD(e.tmContext,f.textStyle),e.tmContext.fillText(d,1,f.startingHeight+f.height-1)}),e.tmTexture.setCanvas(e.tmCanvas),e.tmTexture.modified(),e._tmAtlas=i,a},t.computeBarSize=a=>{e.vertical=e.boxSize[1]>e.boxSize[0];const i=2*a.tickHeight/e.lastSize[1],o=[1,1];if(e.vertical){const s=2*(a.tickWidth+e.tickLabelPixelOffset)/e.lastSize[0];if(e.topTitle){const l=2*(a.titleHeight+e.axisTitlePixelOffset)/e.lastSize[1];e.barSize[0]=e.boxSize[0]-s,e.barSize[1]=e.boxSize[1]-l}else{const l=2*(a.titleHeight+e.axisTitlePixelOffset)/e.lastSize[0];e.barSize[0]=e.boxSize[0]-l-s,e.barSize[1]=e.boxSize[1]}e.barPosition[0]=e.boxPosition[0]+s,e.barPosition[1]=e.boxPosition[1],o[1]=i}else{const s=(2*a.tickWidth-8)/e.lastSize[0],l=2*(a.titleHeight+e.axisTitlePixelOffset)/e.lastSize[1];e.barSize[0]=e.boxSize[0],e.barPosition[0]=e.boxPosition[0],e.barSize[1]=e.boxSize[1]-l,e.barPosition[1]=e.boxPosition[1],o[0]=s}return o},t.recomputeBarSegments=a=>{var d,h,p,v;const i=t.computeBarSize(a);e.barSegments=[];const o=[0,0],s=e.vertical?1:0,l=e.vertical?.01:.02;function u(g,y){e.barSegments.push({corners:[[...o],[o[0]+i[0],o[1]],[o[0]+i[0],o[1]+i[1]],[o[0],o[1]+i[1]]],scalars:y,title:g}),o[s]+=i[s]+l}e.renderable.getDrawNanAnnotation()&&e.renderable.getScalarsToColors().getNanColor()&&u("NaN",[NaN,NaN,NaN,NaN]),e.renderable.getDrawBelowRangeSwatch()&&((h=(d=e.renderable.getScalarsToColors()).getUseBelowRangeColor)!=null&&h.call(d))&&u("Below",[-.1,-.1,-.1,-.1]);const c=(v=(p=e.renderable.getScalarsToColors()).getUseAboveRangeColor)==null?void 0:v.call(p);o[s]+=l;const f=i[s];i[s]=c?1-2*l-i[s]-o[s]:1-l-o[s],u("ticks",e.vertical?[0,0,.995,.995]:[0,.995,.995,0]),e.renderable.getDrawAboveRangeSwatch()&&c&&(i[s]=f,o[s]+=l,u("Above",[1.1,1.1,1.1,1.1]))};const n=new Float64Array(3);t.createPolyDataForOneLabel=(a,i,o,s,l,u)=>{const c=e._tmAtlas.get(a);if(!c)return;let f=u.ptIdx,d=u.cellIdx;n[0]=(.5*i[0]+.5)*e.lastSize[0],n[1]=(.5*i[1]+.5)*e.lastSize[1],n[2]=i[2],n[0]+=l[0],n[1]+=l[1];const h=[],p=s==="vertical"?[1,0]:[0,1];s==="vertical"?(h[0]=c.width,h[1]=-c.height,o[0]==="middle"?n[1]-=c.width/2:o[0]==="right"&&(n[1]-=c.width),o[1]==="middle"?n[0]+=c.height/2:o[1]==="top"&&(n[0]+=c.height)):(h[0]=c.width,h[1]=c.height,o[0]==="middle"?n[0]-=c.width/2:o[0]==="right"&&(n[0]-=c.width),o[1]==="middle"?n[1]-=c.height/2:o[1]==="top"&&(n[1]-=c.height)),u.points[f*3]=n[0],u.points[f*3+1]=n[1],u.points[f*3+2]=n[2],u.tcoords[f*2]=c.tcoords[0],u.tcoords[f*2+1]=c.tcoords[1],f++,n[p[0]]+=h[0],u.points[f*3]=n[0],u.points[f*3+1]=n[1],u.points[f*3+2]=n[2],u.tcoords[f*2]=c.tcoords[2],u.tcoords[f*2+1]=c.tcoords[3],f++,n[p[1]]+=h[1],u.points[f*3]=n[0],u.points[f*3+1]=n[1],u.points[f*3+2]=n[2],u.tcoords[f*2]=c.tcoords[4],u.tcoords[f*2+1]=c.tcoords[5],f++,n[p[0]]-=h[0],u.points[f*3]=n[0],u.points[f*3+1]=n[1],u.points[f*3+2]=n[2],u.tcoords[f*2]=c.tcoords[6],u.tcoords[f*2+1]=c.tcoords[7],f++,u.polys[d*4]=3,u.polys[d*4+1]=f-4,u.polys[d*4+2]=f-3,u.polys[d*4+3]=f-2,d++,u.polys[d*4]=3,u.polys[d*4+1]=f-4,u.polys[d*4+2]=f-2,u.polys[d*4+3]=f-1,u.ptIdx+=4,u.cellIdx+=2};const r=new Float64Array(3);t.updatePolyDataForLabels=()=>{const a=t.getTickStrings().length+e.barSegments.length,i=a*4,o=a*2,s=new Float64Array(i*3),l=new Uint16Array(o*4),u=new Float32Array(i*2),c={ptIdx:0,cellIdx:0,polys:l,points:s,tcoords:u},f=e.vertical?0:1,d=e.vertical?1:0;r[2]=-.99;const h=e.vertical?["right","middle"]:["middle","bottom"];let p=[0,1];const v=[0,0];e.vertical?(v[0]=-e.tickLabelPixelOffset,e.topTitle?(r[0]=e.boxPosition[0]+.5*e.boxSize[0],r[1]=e.barPosition[1]+e.barSize[1],t.createPolyDataForOneLabel(e.renderable.getAxisLabel(),r,["middle","bottom"],"horizontal",[0,e.axisTitlePixelOffset],c)):(r[0]=e.barPosition[0]+e.barSize[0],r[1]=e.barPosition[1]+.5*e.barSize[1],t.createPolyDataForOneLabel(e.renderable.getAxisLabel(),r,["middle","top"],"vertical",[e.axisTitlePixelOffset,0],c)),p=[-1,0]):(v[1]=e.tickLabelPixelOffset,r[0]=e.barPosition[0]+.5*e.barSize[0],r[1]=e.barPosition[1]+e.barSize[1],t.createPolyDataForOneLabel(e.renderable.getAxisLabel(),r,["middle","bottom"],"horizontal",[0,e.axisTitlePixelOffset],c)),r[f]=e.barPosition[f]+(.5*p[f]+.5)*e.barSize[f],r[d]=e.barPosition[d]+e.barSize[d]*.5;let g=null;for(let _=0;_<e.barSegments.length;_++){const x=e.barSegments[_];x.title==="ticks"?g=x:(r[d]=e.barPosition[d]+.5*e.barSize[d]*(x.corners[2][d]+x.corners[0][d]),t.createPolyDataForOneLabel(x.title,r,h,"horizontal",v,c))}const y=e.barPosition[d]+e.barSize[d]*g.corners[0][d],m=e.barSize[d]*(g.corners[2][d]-g.corners[0][d]),S=t.getTicks(),w=t.getTickStrings();for(let _=0;_<S.length;_++){const x=(S[_]-e.lastTickBounds[0])/(e.lastTickBounds[1]-e.lastTickBounds[0]);r[d]=y+m*x,t.createPolyDataForOneLabel(w[_],r,h,"horizontal",v,c)}const C=zn.newInstance({numberOfComponents:2,values:u,name:"TextureCoordinates"});e.tmPolyData.getPointData().setTCoords(C),e.tmPolyData.getPoints().setData(s,3),e.tmPolyData.getPoints().modified(),e.tmPolyData.getPolys().setData(l,1),e.tmPolyData.getPolys().modified(),e.tmPolyData.modified()},t.updatePolyDataForBarSegments=()=>{var v,g;const a=e.renderable.getScalarsToColors();let i=0;e.renderable.getDrawNanAnnotation()&&a.getNanColor()&&(i+=1),e.renderable.getDrawBelowRangeSwatch()&&((v=a.getUseBelowRangeColor)!=null&&v.call(a))&&(i+=1),e.renderable.getDrawAboveRangeSwatch()&&((g=a.getUseAboveRangeColor)!=null&&g.call(a))&&(i+=1);const o=4*(1+i),s=o;let l=1;a.getVectorMode()===Irt.COMPONENT&&(l=a.getVectorComponent()+1);const u=new Float64Array(o*3),c=new Uint16Array(s*5),f=new Float32Array(o*l);let d=0,h=0;for(let y=0;y<e.barSegments.length;y++){const m=e.barSegments[y];for(let S=0;S<4;S++){r[0]=e.barPosition[0]+m.corners[S][0]*e.barSize[0],r[1]=e.barPosition[1]+m.corners[S][1]*e.barSize[1],u[d*3]=(.5*r[0]+.5)*e.lastSize[0],u[d*3+1]=(.5*r[1]+.5)*e.lastSize[1],u[d*3+2]=r[2];for(let w=0;w<l;w++)f[d*l+w]=e.lastTickBounds[0]+m.scalars[S]*(e.lastTickBounds[1]-e.lastTickBounds[0]);d++}c[h*5]=4,c[h*5+1]=d-4,c[h*5+2]=d-3,c[h*5+3]=d-2,c[h*5+4]=d-1,h++}const p=zn.newInstance({numberOfComponents:l,values:f,name:"Scalars"});e.polyData.getPointData().setScalars(p),e.polyData.getPoints().setData(u,3),e.polyData.getPoints().modified(),e.polyData.getPolys().setData(c,1),e.polyData.getPolys().modified(),e.polyData.modified()}}const $rt=J.newInstance(function(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{renderable:null};Object.assign(e,{},n),J.obj(t,e),J.setGet(t,e,["axisTitlePixelOffset","tickLabelPixelOffset","renderable","topTitle","ticks","tickStrings"]),J.get(t,e,["lastSize","lastAspectRatio","lastTickBounds","axisTextStyle","tickTextStyle","barActor","tmActor"]),J.getArray(t,e,["boxPosition","boxSize"]),J.setArray(t,e,["boxPosition","boxSize"],2),e.forceUpdate=!1,e.lastRebuildTime={},J.obj(e.lastRebuildTime,{mtime:0}),e.lastSize=[-1,-1],e.tmCanvas=document.createElement("canvas"),e.tmContext=e.tmCanvas.getContext("2d"),e._tmAtlas=new Map,e.barMapper=Pr.newInstance(),e.barMapper.setInterpolateScalarsBeforeMapping(!0),e.barMapper.setUseLookupTableScalarRange(!0),e.polyData=$a.newInstance(),e.barMapper.setInputData(e.polyData),e.barActor=$r.newInstance(),e.barActor.setMapper(e.barMapper),e.tmPolyData=$a.newInstance(),e.tmMapper=Pr.newInstance(),e.tmMapper.setInputData(e.tmPolyData),e.tmTexture=Yb.newInstance({resizable:!0}),e.tmTexture.setInterpolate(!1),e.tmActor=$r.newInstance({parentProp:t}),e.tmActor.setMapper(e.tmMapper),e.tmActor.addTexture(e.tmTexture),e.barPosition=[0,0],e.barSize=[0,0],e.boxPosition=[.88,-.92],e.boxSize=[.1,1.1],e.lastTickBounds=[],Brt(t,e)},"vtkScalarBarActorHelper");function Prt(t,e){e.classHierarchy.push("vtkScalarBarActor"),t.setTickTextStyle=n=>{e.tickTextStyle={...e.tickTextStyle,...n},t.modified()},t.setAxisTextStyle=n=>{e.axisTextStyle={...e.axisTextStyle,...n},t.modified()},t.resetAutoLayoutToDefault=()=>{t.setAutoLayout(kne(t,e))},t.resetGenerateTicksToDefault=()=>{t.setGenerateTicks(Rne())}}function Frt(t){return{automated:!0,autoLayout:null,axisLabel:"Scalar Value",barPosition:[0,0],barSize:[0,0],boxPosition:[.88,-.92],boxSize:[.1,1.1],scalarToColors:null,axisTitlePixelOffset:36,axisTextStyle:{fontColor:"white",fontStyle:"normal",fontSize:18,fontFamily:"serif"},tickLabelPixelOffset:14,tickTextStyle:{fontColor:"white",fontStyle:"normal",fontSize:14,fontFamily:"serif"},generateTicks:null,drawNanAnnotation:!0,drawBelowRangeSwatch:!0,drawAboveRangeSwatch:!0,...t}}function Lne(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Frt(n)),e.autoLayout||(e.autoLayout=kne(t,e)),e.generateTicks||(e.generateTicks=Rne()),$r.extend(t,e,n),t.getProperty().setDiffuse(0),t.getProperty().setAmbient(1),J.setGet(t,e,["automated","autoLayout","axisTitlePixelOffset","axisLabel","scalarsToColors","tickLabelPixelOffset","generateTicks","drawNanAnnotation","drawBelowRangeSwatch","drawAboveRangeSwatch"]),J.get(t,e,["axisTextStyle","tickTextStyle"]),J.getArray(t,e,["barPosition","barSize","boxPosition","boxSize"]),J.setArray(t,e,["barPosition","barSize","boxPosition","boxSize"],2),Prt(t,e)}const zrt=J.newInstance(Lne,"vtkScalarBarActor");var qg={newInstance:zrt,extend:Lne,newScalarBarActorHelper:$rt};function Urt(t,e){e.classHierarchy.push("vtkOpenGLScalarBarActor"),t.buildPass=n=>{n&&(e._openGLRenderer=t.getFirstAncestorOfType("vtkOpenGLRenderer"),e._openGLRenderWindow=e._openGLRenderer.getParent(),e.scalarBarActorHelper.getRenderable()||e.scalarBarActorHelper.setRenderable(e.renderable),t.prepareNodes(),t.addMissingNode(e.scalarBarActorHelper.getBarActor()),t.addMissingNode(e.scalarBarActorHelper.getTmActor()),t.removeUnusedNodes())},t.opaquePass=(n,r)=>{if(n){const a=e._openGLRenderer?e._openGLRenderer.getRenderable().getActiveCamera():null,i=e._openGLRenderer.getTiledSizeAndOrigin();e.scalarBarActorHelper.updateAPISpecificData([i.usize,i.vsize],a,e._openGLRenderWindow.getRenderable())}}}const Grt={};function Hrt(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Grt,n),Sa.extend(t,e,n),e.scalarBarActorHelper=qg.newScalarBarActorHelper(),Urt(t,e)}const Wrt=Kr(Hrt,"vtkOpenGLScalarBarActor");El("vtkScalarBarActor",Wrt);const{vtkErrorMacro:z6}=_u;function jrt(t,e){e.classHierarchy.push("vtkOpenGLSkybox"),t.buildPass=n=>{if(n){e._openGLRenderer=t.getFirstAncestorOfType("vtkOpenGLRenderer"),e._openGLRenderWindow=e._openGLRenderer.getParent(),e.context=e._openGLRenderWindow.getContext(),e.tris.setOpenGLRenderWindow(e._openGLRenderWindow),e.openGLTexture.setOpenGLRenderWindow(e._openGLRenderWindow);const r=e._openGLRenderer.getRenderable();e.openGLCamera=e._openGLRenderer.getViewNodeFor(r.getActiveCamera())}},t.queryPass=(n,r)=>{if(n){if(!e.renderable||!e.renderable.getVisibility())return;r.incrementOpaqueActorCount()}},t.opaquePass=(n,r)=>{if(n&&!e._openGLRenderer.getSelector()){t.updateBufferObjects(),e.context.depthMask(!0),e._openGLRenderWindow.getShaderCache().readyShaderProgram(e.tris.getProgram()),e.openGLTexture.render(e._openGLRenderWindow);const a=e.openGLTexture.getTextureUnit();e.tris.getProgram().setUniformi("sbtexture",a);const i=e._openGLRenderer.getRenderable(),o=e.openGLCamera.getKeyMatrices(i),s=new Float64Array(16);if(eo(s,o.wcpc),e.tris.getProgram().setUniformMatrix("IMCPCMatrix",s),e.lastFormat==="box"){const l=i.getActiveCamera().getPosition();e.tris.getProgram().setUniform3f("camPos",l[0],l[1],l[2])}e.tris.getVAO().bind(),e.context.drawArrays(e.context.TRIANGLES,0,e.tris.getCABO().getElementCount()),e.tris.getVAO().release(),e.openGLTexture.deactivate()}},t.updateBufferObjects=()=>{if(!e.tris.getCABO().getElementCount()){const r=new Float32Array(12);for(let s=0;s<4;s++)r[s*3]=s%2*2-1,r[s*3+1]=s>1?1:-1,r[s*3+2]=1;const a=zn.newInstance({numberOfComponents:3,values:r});a.setName("points");const i=new Uint16Array(8);i[0]=3,i[1]=0,i[2]=1,i[3]=3,i[4]=3,i[5]=0,i[6]=3,i[7]=2;const o=zn.newInstance({numberOfComponents:1,values:i});e.tris.getCABO().createVBO(o,"polys",ni.SURFACE,{points:a,cellOffset:0})}e.renderable.getFormat()!==e.lastFormat&&(e.lastFormat=e.renderable.getFormat(),e.lastFormat==="box"&&e.tris.setProgram(e._openGLRenderWindow.getShaderCache().readyShaderProgramArray(`//VTK::System::Dec
  283. attribute vec3 vertexMC;
  284. uniform mat4 IMCPCMatrix;
  285. varying vec3 TexCoords;
  286. void main () {
  287. gl_Position = vec4(vertexMC.xyz, 1.0);
  288. vec4 wpos = IMCPCMatrix * gl_Position;
  289. TexCoords = wpos.xyz/wpos.w;
  290. }`,`//VTK::System::Dec
  291. //VTK::Output::Dec
  292. varying vec3 TexCoords;
  293. uniform samplerCube sbtexture;
  294. uniform vec3 camPos;
  295. void main () {
  296. // skybox looks from inside out
  297. // which means we have to adjust
  298. // our tcoords. Otherwise text would
  299. // be flipped
  300. vec3 tc = normalize(TexCoords - camPos);
  301. if (abs(tc.z) < max(abs(tc.x),abs(tc.y)))
  302. {
  303. tc = vec3(1.0, 1.0, -1.0) * tc;
  304. }
  305. else
  306. {
  307. tc = vec3(-1.0, 1.0, 1.0) * tc;
  308. }
  309. gl_FragData[0] = textureCube(sbtexture, tc);
  310. }`,"")),e.lastFormat==="background"&&e.tris.setProgram(e._openGLRenderWindow.getShaderCache().readyShaderProgramArray(`//VTK::System::Dec
  311. attribute vec3 vertexMC;
  312. uniform mat4 IMCPCMatrix;
  313. varying vec2 TexCoords;
  314. void main () {
  315. gl_Position = vec4(vertexMC.xyz, 1.0);
  316. vec4 wpos = IMCPCMatrix * gl_Position;
  317. TexCoords = vec2(vertexMC.x, vertexMC.y)*0.5 + 0.5;
  318. }`,`//VTK::System::Dec
  319. //VTK::Output::Dec
  320. varying vec2 TexCoords;
  321. uniform sampler2D sbtexture;
  322. void main () {
  323. gl_FragData[0] = texture2D(sbtexture, TexCoords);
  324. }`,"")),e.tris.getShaderSourceTime().modified(),e.tris.getVAO().bind(),e.tris.getVAO().addAttributeArray(e.tris.getProgram(),e.tris.getCABO(),"vertexMC",e.tris.getCABO().getVertexOffset(),e.tris.getCABO().getStride(),e.context.FLOAT,3,e.context.FALSE)||z6("Error setting vertexMC in shader VAO."));const n=e.renderable.getTextures();n.length||z6("vtkSkybox requires a texture map"),e.openGLTexture.getRenderable()!==n[0]&&(e.openGLTexture.releaseGraphicsResources(e._openGLRenderWindow),e.openGLTexture.setRenderable(n[0]))}}const Krt={context:null};function Yrt(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Krt,n),Sa.extend(t,e,n),e.openGLTexture=tp.newInstance(),e.tris=E0.newInstance(),e.keyMatrixTime={},oi(e.keyMatrixTime,{mtime:0}),e.keyMatrices={normalMatrix:Vp(new Float64Array(9)),mcwc:Yn(new Float64Array(16))},Xa(t,e,["context"]),co(t,e,["activeTextures"]),jrt(t,e)}const Xrt=Kr(Yrt);El("vtkSkybox",Xrt);const{vtkDebugMacro:qrt}=_u;function Zrt(t,e){e.classHierarchy.push("vtkOpenGLPixelSpaceCallbackMapper"),t.opaquePass=(n,r)=>{e._openGLRenderer=t.getFirstAncestorOfType("vtkOpenGLRenderer"),e._openGLRenderWindow=e._openGLRenderer.getParent();const a=e._openGLRenderer.getAspectRatio(),i=e._openGLRenderer?e._openGLRenderer.getRenderable().getActiveCamera():null,o=e._openGLRenderer.getTiledSizeAndOrigin();let s=null;if(e.renderable.getUseZValues()){const l=r.getZBufferTexture(),u=Math.floor(l.getWidth()),c=Math.floor(l.getHeight()),f=e._openGLRenderWindow.getContext();l.bind();const d=r.getFramebuffer();d?d.saveCurrentBindingsAndBuffers():qrt("No framebuffer to save/restore");const h=f.createFramebuffer();f.bindFramebuffer(f.FRAMEBUFFER,h),f.framebufferTexture2D(f.FRAMEBUFFER,f.COLOR_ATTACHMENT0,f.TEXTURE_2D,l.getHandle(),0),f.checkFramebufferStatus(f.FRAMEBUFFER)===f.FRAMEBUFFER_COMPLETE&&(s=new Uint8Array(u*c*4),f.viewport(0,0,u,c),f.readPixels(0,0,u,c,f.RGBA,f.UNSIGNED_BYTE,s)),d&&d.restorePreviousBindingsAndBuffers(),f.deleteFramebuffer(h)}e.renderable.invokeCallback(e.renderable.getInputData(),i,a,o,s)},t.queryPass=(n,r)=>{n&&e.renderable.getUseZValues()&&r.requestDepth()}}const Qrt={};function Jrt(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Qrt,n),Sa.extend(t,e,n),Zrt(t,e)}const eat=Kr(Jrt,"vtkOpenGLPixelSpaceCallbackMapper");El("vtkPixelSpaceCallbackMapper",eat);const One=Object.create(null);function _c(t,e){One[t]=e}function tat(t,e){e.classHierarchy.push("vtkWebGPUViewNodeFactory")}const nat={};function Vne(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,nat,n),e.overrides=One,_ee.extend(t,e,n),tat(t,e)}const rat=J.newInstance(Vne,"vtkWebGPUViewNodeFactory");var aat={newInstance:rat,extend:Vne};function iat(t,e){e.classHierarchy.push("vtkWebGPUCamera"),t.getProjectionMatrix=(n,r,a,i)=>{if(Yn(n),e.renderable.getParallelProjection()){const o=e.renderable.getParallelScale(),s=o*r,l=o,u=(i[0]-1)*s,c=(i[0]+1)*s,f=(i[1]-1)*l,d=(i[1]+1)*l,h=1/(c-u),p=1/(d-f);n[0]=2*h,n[5]=2*p,n[10]=1/(a[1]-a[0]),n[12]=(c+u)*h,n[13]=(d+f)*p,n[14]=a[1]/(a[1]-a[0])}else{const o=Math.tan(Math.PI*e.renderable.getViewAngle()/360);let s,l;e.renderable.getUseHorizontalViewAngle()===!0?(s=a[0]*o,l=a[0]*o/r):(s=a[0]*o*r,l=a[0]*o);const u=(i[0]-1)*s,c=(i[0]+1)*s,f=(i[1]-1)*l,d=(i[1]+1)*l;n[0]=2*a[0]/(c-u),n[5]=2*a[0]/(d-f),n[12]=(u+c)/(c-u),n[13]=(f+d)/(d-f),n[10]=0,n[14]=a[0],n[11]=-1,n[15]=0}},t.convertToOpenGLDepth=n=>{if(e.renderable.getParallelProjection())return 1-n;const r=e.renderable.getClippingRangeByReference();let a=-r[0]/n;return a=(r[0]+r[1])/(r[1]-r[0])+2*r[0]*r[1]/(a*(r[1]-r[0])),.5*a+.5},t.getKeyMatrices=n=>{const r=n.getRenderable(),a=n.getParent();if(Math.max(a.getMTime(),t.getMTime(),r.getMTime(),e.renderable.getMTime(),n.getStabilizedTime())>e.keyMatrixTime.getMTime()){const i=e.renderable.getViewMatrix();di(e.keyMatrices.normalMatrix,i),e.keyMatrices.normalMatrix[3]=0,e.keyMatrices.normalMatrix[7]=0,e.keyMatrices.normalMatrix[11]=0,eo(e.keyMatrices.normalMatrix,e.keyMatrices.normalMatrix),ea(e.keyMatrices.wcvc,i);const o=n.getStabilizedCenterByReference();xa(e.keyMatrices.scvc,e.keyMatrices.wcvc,o);const s=n.getAspectRatio(),l=e.renderable.getClippingRangeByReference();t.getProjectionMatrix(e.keyMatrices.vcpc,s,l,e.renderable.getWindowCenterByReference()),ri(e.keyMatrices.scpc,e.keyMatrices.vcpc,e.keyMatrices.scvc),eo(e.keyMatrices.pcsc,e.keyMatrices.scpc),e.keyMatrixTime.modified()}return e.keyMatrices}}const oat={keyMatrixTime:null,keyMatrices:null};function sat(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,oat,n),Sa.extend(t,e,n),e.keyMatrixTime={},J.obj(e.keyMatrixTime),e.keyMatrices={normalMatrix:new Float64Array(16),vcpc:new Float64Array(16),pcsc:new Float64Array(16),wcvc:new Float64Array(16),scpc:new Float64Array(16),scvc:new Float64Array(16)},J.setGet(t,e,["keyMatrixTime"]),iat(t,e)}const lat=J.newInstance(sat);_c("vtkCamera",lat);function uat(t,e){e.classHierarchy.push("vtkWebGPUBindGroup"),t.setBindables=n=>{if(e.bindables.length===n.length){let r=!0;for(let a=0;a<e.bindables.length;a++)e.bindables[a]!==n[a]&&(r=!1);if(r)return}e.bindables=n,t.modified()},t.getBindGroupLayout=n=>{const r=[];for(let a=0;a<e.bindables.length;a++){const i=e.bindables[a].getBindGroupLayoutEntry();i.binding=a,r.push(i)}return n.getBindGroupLayout({entries:r})},t.getBindGroup=n=>{let r=t.getMTime();for(let i=0;i<e.bindables.length;i++){const o=e.bindables[i].getBindGroupTime().getMTime();r=o>r?o:r}if(r<e.bindGroupTime.getMTime())return e.bindGroup;const a=[];for(let i=0;i<e.bindables.length;i++){const o=e.bindables[i].getBindGroupEntry();o.binding=i,a.push(o)}return e.bindGroup=n.getHandle().createBindGroup({layout:t.getBindGroupLayout(n),entries:a,label:e.label}),e.bindGroupTime.modified(),e.bindGroup},t.getShaderCode=n=>{const r=[],a=n.getBindGroupLayoutCount(e.label);for(let i=0;i<e.bindables.length;i++)r.push(e.bindables[i].getShaderCode(i,a));return r.join(`
  325. `)}}const cat={device:null,handle:null,label:null};function Nne(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,cat,n),J.obj(t,e),e.bindables=[],e.bindGroupTime={},J.obj(e.bindGroupTime,{mtime:0}),J.get(t,e,["bindGroupTime","handle","sizeInBytes","usage"]),J.setGet(t,e,["label","device","arrayInformation"]),uat(t,e)}const fat=J.newInstance(Nne);var Ine={newInstance:fat,extend:Nne};function dat(t,e){e.classHierarchy.push("vtkWebGPUShaderModule"),t.initialize=(n,r)=>{e.device=n,e.handle=e.device.getHandle().createShaderModule({code:r.getCode()})}}const hat={device:null,handle:null};function Bne(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,hat,n),J.obj(t,e),J.get(t,e,["lastCameraMTime"]),J.setGet(t,e,["device","handle"]),dat(t,e)}const pat=J.newInstance(Bne,"vtkWebGPUShaderModule");var vat={newInstance:pat,extend:Bne};function gat(t,e,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0;const a=Array.isArray(n)?n.join(`
  326. `):n;let i=!1;t.search(e)!==-1&&(i=!0);let o="";r&&(o="g");const s=new RegExp(e,o),l=t.replace(s,a);return{replace:i,result:l}}function yat(t,e){e.classHierarchy.push("vtkWebGPUShaderCache"),t.getShaderModule=n=>{const r=n.getType(),a=n.getHash(),i=e._shaderModules.keys();for(let s=0;s<i.length;s++){const l=i[s];if(l.getHash()===a&&l.getType()===r)return e._shaderModules.get(l)}const o=vat.newInstance();return o.initialize(e.device,n),e._shaderModules.set(n,o),o}}const mat={shaderModules:null,device:null,window:null};function $ne(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,mat,n),e._shaderModules=new Map,J.obj(t,e),J.setGet(t,e,["device","window"]),yat(t,e)}const bat=J.newInstance($ne,"vtkWebGPUShaderCache");var In={newInstance:bat,extend:$ne,substitute:gat};function Sat(t,e){e.classHierarchy.push("vtkWebGPUPipeline"),t.getShaderDescriptions=()=>e.shaderDescriptions,t.initialize=(n,r)=>{e.pipelineDescription=e.renderEncoder.getPipelineSettings(),e.pipelineDescription.primitive.topology=e.topology,e.pipelineDescription.vertex=e.vertexState,e.pipelineDescription.label=r;const a=[];for(let i=0;i<e.layouts.length;i++)a.push(e.layouts[i].layout);e.pipelineLayout=n.getHandle().createPipelineLayout({bindGroupLayouts:a}),e.pipelineDescription.layout=e.pipelineLayout;for(let i=0;i<e.shaderDescriptions.length;i++){const o=e.shaderDescriptions[i],s=n.getShaderModule(o);o.getType()==="vertex"&&(e.pipelineDescription.vertex.module=s.getHandle(),e.pipelineDescription.vertex.entryPoint="main"),o.getType()==="fragment"&&(e.pipelineDescription.fragment.module=s.getHandle(),e.pipelineDescription.fragment.entryPoint="main")}e.handle=n.getHandle().createRenderPipeline(e.pipelineDescription)},t.getShaderDescription=n=>{for(let r=0;r<e.shaderDescriptions.length;r++)if(e.shaderDescriptions[r].getType()===n)return e.shaderDescriptions[r];return null},t.addBindGroupLayout=n=>{n&&e.layouts.push({layout:n.getBindGroupLayout(e.device),label:n.getLabel()})},t.getBindGroupLayout=n=>e.layouts[n].layout,t.getBindGroupLayoutCount=n=>{for(let r=0;r<e.layouts.length;r++)if(e.layouts[r].label===n)return r;return 0},t.bindVertexInput=(n,r)=>{r.bindBuffers(n)}}const wat={handle:null,layouts:null,renderEncoder:null,shaderDescriptions:null,vertexState:null,topology:null,pipelineDescription:null};function Pne(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,wat,n),oi(t,e),e.layouts=[],e.shaderDescriptions=[],co(t,e,["handle","pipelineDescription"]),Xa(t,e,["device","renderEncoder","topology","vertexState"]),Sat(t,e)}const xat=Kr(Pne,"vtkWebGPUPipeline");var _at={newInstance:xat,extend:Pne};function Cat(t,e){e.classHierarchy.push("vtkWebGPUShaderDescription"),t.hasOutput=n=>e.outputNames.includes(n),t.addOutput=function(n,r){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;e.outputTypes.push(n),e.outputNames.push(r),e.outputInterpolations.push(a)},t.addBuiltinOutput=(n,r)=>{e.builtinOutputTypes.push(n),e.builtinOutputNames.push(r)},t.addBuiltinInput=(n,r)=>{e.builtinInputTypes.push(n),e.builtinInputNames.push(r)},t.replaceShaderCode=(n,r)=>{const a=[];let i=[];if(r&&a.push(r.getShaderCode()),n||e.builtinInputNames.length){const o=[];if(o.push(`struct ${e.type}Input
  327. {`),n){const s=n.getOutputNamesByReference(),l=n.getOutputTypesByReference(),u=n.getOutputInterpolationsByReference();for(let c=0;c<s.length;c++)u[c]!==void 0?o.push(` @location(${c}) @interpolate(${u[c]}) ${s[c]} : ${l[c]},`):o.push(` @location(${c}) ${s[c]} : ${l[c]},`)}for(let s=0;s<e.builtinInputNames.length;s++)o.push(` ${e.builtinInputNames[s]} : ${e.builtinInputTypes[s]},`);o.length>1&&(o.push("};"),i=o,a[a.length-1]+=",",a.push(`input: ${e.type}Input`))}if(a.length&&(e.code=In.substitute(e.code,"//VTK::IOStructs::Input",a).result),e.outputNames.length+e.builtinOutputNames.length){const o=[`struct ${e.type}Output
  328. {`];for(let s=0;s<e.outputNames.length;s++)e.outputInterpolations[s]!==void 0?o.push(` @location(${s}) @interpolate(${e.outputInterpolations[s]}) ${e.outputNames[s]} : ${e.outputTypes[s]},`):o.push(` @location(${s}) ${e.outputNames[s]} : ${e.outputTypes[s]},`);for(let s=0;s<e.builtinOutputNames.length;s++)o.push(` ${e.builtinOutputNames[s]} : ${e.builtinOutputTypes[s]},`);o.push("};"),i=i.concat(o),e.code=In.substitute(e.code,"//VTK::IOStructs::Output",[`-> ${e.type}Output`]).result}e.code=In.substitute(e.code,"//VTK::IOStructs::Dec",i).result}}const Tat={type:null,hash:null,code:null,outputNames:null,outputTypes:null};function Fne(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Tat,n),e.outputNames=[],e.outputTypes=[],e.outputInterpolations=[],e.builtinOutputNames=[],e.builtinOutputTypes=[],e.builtinInputNames=[],e.builtinInputTypes=[],J.obj(t,e),J.setGet(t,e,["type","hash","code"]),J.getArray(t,e,["outputTypes","outputNames","outputInterpolations"]),Cat(t,e)}const Eat=J.newInstance(Fne,"vtkWebGPUShaderDescription");var U6={newInstance:Eat,extend:Fne};const G6={r8unorm:{numComponents:1,nativeType:Uint8Array,stride:1,elementSize:1,sampleType:"float"},r8snorm:{numComponents:1,nativeType:Int8Array,stride:1,elementSize:1,sampleType:"float"},r8uint:{numComponents:1,nativeType:Uint8Array,stride:1,elementSize:1,sampleType:"uint"},r8sint:{numComponents:1,nativeType:Int8Array,stride:1,elementSize:1,sampleType:"sint"},r16uint:{numComponents:1,nativeType:Uint16Array,stride:2,elementSize:2,sampleType:"uint"},r16sint:{numComponents:1,nativeType:Int16Array,stride:2,elementSize:2,sampleType:"sint"},r16float:{numComponents:1,nativeType:Float32Array,stride:2,elementSize:2,sampleType:"float"},rg8unorm:{numComponents:2,nativeType:Uint8Array,stride:2,elementSize:1,sampleType:"float"},rg8snorm:{numComponents:2,nativeType:Int8Array,stride:2,elementSize:1,sampleType:"float"},rg8uint:{numComponents:2,nativeType:Uint8Array,stride:2,elementSize:1,sampleType:"uint"},rg8sint:{numComponents:2,nativeType:Int8Array,stride:2,elementSize:1,sampleType:"sint"},r32uint:{numComponents:1,nativeType:Uint32Array,stride:4,elementSize:4,sampleType:"uint"},r32sint:{numComponents:1,nativeType:Int32Array,stride:4,elementSize:4,sampleType:"sint"},r32float:{numComponents:1,nativeType:Float32Array,stride:4,elementSize:4,sampleType:"unfilterable-float"},rg16uint:{numComponents:2,nativeType:Uint16Array,stride:4,elementSize:2,sampleType:"uint"},rg16sint:{numComponents:2,nativeType:Int16Array,stride:4,elementSize:2,sampleType:"sint"},rg16float:{numComponents:2,nativeType:Float32Array,stride:4,elementSize:2,sampleType:"float"},rgba8unorm:{numComponents:4,nativeType:Uint8Array,stride:4,elementSize:1,sampleType:"float"},"rgba8unorm-srgb":{numComponents:4,nativeType:Uint8Array,stride:4,elementSize:1,sampleType:"float"},rgba8snorm:{numComponents:4,nativeType:Int8Array,stride:4,elementSize:1,sampleType:"float"},rgba8uint:{numComponents:4,nativeType:Uint8Array,stride:4,elementSize:1,sampleType:"uint"},rgba8sint:{numComponents:4,nativeType:Int8Array,stride:4,elementSize:1,sampleType:"sint"},bgra8unorm:{numComponents:4,nativeType:Uint8Array,stride:4,elementSize:1,sampleType:"float"},"bgra8unorm-srgb":{numComponents:4,nativeType:Uint8Array,stride:4,elementSize:1,sampleType:"float"},rgb9e5ufloat:{numComponents:4,nativeType:Uint32Array,stride:4,sampleType:"float"},rgb10a2unorm:{numComponents:4,nativeType:Uint32Array,stride:4,sampleType:"float"},rg11b10ufloat:{numComponents:4,nativeType:Float32Array,stride:4,sampleType:"float"},rg32uint:{numComponents:2,nativeType:Uint32Array,stride:8,elementSize:4,sampleType:"uint"},rg32sint:{numComponents:2,nativeType:Int32Array,stride:8,elementSize:4,sampleType:"sint"},rg32float:{numComponents:2,nativeType:Float32Array,stride:8,elementSize:4,sampleType:"unfilterable-float"},rgba16uint:{numComponents:4,nativeType:Uint16Array,stride:8,elementSize:2,sampleType:"uint"},rgba16sint:{numComponents:4,nativeType:Int16Array,stride:8,elementSize:2,sampleType:"sint"},rgba16float:{numComponents:4,nativeType:Float32Array,stride:8,elementSize:2,sampleType:"float"},rgba32uint:{numComponents:4,nativeType:Uint32Array,stride:16,elementSize:4,sampleType:"uint"},rgba32sint:{numComponents:4,nativeType:Int32Array,stride:16,elementSize:4,sampleType:"sint"},rgba32float:{numComponents:4,nativeType:Float32Array,stride:16,elementSize:4,sampleType:"unfilterable-float"},stencil8:{numComponents:1,nativeType:Uint8Array,stride:1,elementSize:1,sampleType:"uint"},depth16unorm:{numComponents:1,nativeType:Uint16Array,stride:2,elementSize:2,sampleType:"depth"},depth24plus:{numComponents:1,nativeType:Uint32Array,stride:4,elementSize:3,sampleType:"depth"},"depth24plus-stencil8":{numComponents:2,nativeType:Uint32Array,stride:4,sampleType:"mixed"},depth32float:{numComponents:1,nativeType:Float32Array,stride:4,elementSize:4,sampleType:"depth"}};function Mat(t){return!t||t.length<6?0:t in G6?G6[t]:(Xn(`unknown format ${t}`),null)}function Dat(t){if(!t||t.length<5)return 0;let e=1;t[t.length-2]==="x"&&(e=Number(t[t.length-1]));const n=e===1?t.length-1:t.length-3,r=Number(t[n]);if(Number.isNaN(r))return Xn(`unknown format ${t}`),0;const a=5-r/2;return e*a}function Aat(t){if(!t||t.length<5)return 0;let e=1;return t[t.length-2]==="x"&&(e=Number(t[t.length-1])),e}function kat(t){if(!t||t.length<5)return 0;let e;if(t[0]==="f")e="Float";else if(t[0]==="s")e="Int";else if(t[0]==="u")e="Uint";else{Xn(`unknown format ${t}`);return}const n=t.split("x")[0],r=Number(n[n.length-1]);if(Number.isNaN(r)){Xn(`unknown format ${t}`);return}return e+=8*(5-r/2),e+="Array",e}function Rat(t){let e;if(t[0]==="f"||t[1]==="n")e="f32";else if(t[0]==="s"&&t[1]==="i")e="i32";else if(t[0]==="u"&&t[1]==="i")e="u32";else{Xn(`unknown format ${t}`);return}let n=1;return t[t.length-2]==="x"&&(n=Number(t[t.length-1])),n===4?`vec4<${e}>`:n===3?`vec3<${e}>`:n===2?`vec2<${e}>`:e}function Lat(t){if(!t)return 0;let e=1;return t.substring(0,3)==="vec"?e=Number(t[3]):t.substring(0,3)==="mat"&&(e=t[3]*t[5]),e*4}function Oat(t){if(t){if(t.includes("f32"))return"Float32Array";if(t.includes("i32"))return"Int32Array";if(t.includes("u32"))return"Uint32Array";Xn(`unknown format ${t}`)}}var ti={getDetailsFromTextureFormat:Mat,getByteStrideFromBufferFormat:Dat,getNumberOfComponentsFromBufferFormat:Aat,getNativeTypeFromBufferFormat:kat,getShaderTypeFromBufferFormat:Rat,getByteStrideFromShaderFormat:Lat,getNativeTypeFromShaderFormat:Oat};function Vat(t,e){if(t===e)return!0;if(t==null||e==null||t.length!==e.length)return!1;for(let n=0;n<t.length;++n)if(!e.includes(t[n]))return!1;return!0}function Nat(t,e){e.classHierarchy.push("vtkWebGPUVertexInput"),t.addBuffer=function(n,r){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"vertex",i=r;Array.isArray(i)||(i=[i]);for(let o=0;o<e.inputs.length;o++)if(Vat(e.inputs[o].names,i)){if(e.inputs[o].buffer===n)return;e.inputs[o].buffer=n;return}e.inputs.push({buffer:n,stepMode:a,names:i}),e.inputs=e.inputs.sort((o,s)=>o.names[0]<s.names[0]?-1:o.names[0]>s.names[0]?1:0)},t.removeBufferIfPresent=n=>{for(let r=0;r<e.inputs.length;r++)e.inputs[r].names.includes(n)&&e.inputs.splice(r,1)},t.getBuffer=n=>{for(let r=0;r<e.inputs.length;r++)if(e.inputs[r].names.includes(n))return e.inputs[r].buffer;return null},t.hasAttribute=n=>{for(let r=0;r<e.inputs.length;r++)if(e.inputs[r].names.includes(n))return!0;return!1},t.getAttributeTime=n=>{for(let r=0;r<e.inputs.length;r++)if(e.inputs[r].names.includes(n))return e.inputs[r].buffer.getSourceTime();return 0},t.getShaderCode=()=>{let n="",r=0;for(let a=0;a<e.inputs.length;a++)for(let i=0;i<e.inputs[a].names.length;i++){const o=e.inputs[a].buffer.getArrayInformation()[i],s=ti.getShaderTypeFromBufferFormat(o.format);r>0&&(n+=`,
  329. `),n=`${n} @location(${r}) ${e.inputs[a].names[i]} : ${s}`,r++}return n},t.getVertexInputInformation=()=>{const n={};if(e.inputs.length){const r=[];let a=0;for(let i=0;i<e.inputs.length;i++){const o=e.inputs[i].buffer,s={arrayStride:o.getStrideInBytes(),stepMode:e.inputs[i].stepMode,attributes:[]},l=o.getArrayInformation();for(let u=0;u<e.inputs[i].names.length;u++)s.attributes.push({shaderLocation:a,offset:l[u].offset,format:l[u].format}),a++;r.push(s)}n.buffers=r}return n},t.bindBuffers=n=>{for(let r=0;r<e.inputs.length;r++)n.setVertexBuffer(r,e.inputs[r].buffer.getHandle());e.indexBuffer&&n.setIndexBuffer(e.indexBuffer.getHandle(),e.indexBuffer.getArrayInformation()[0].format)},t.getReady=()=>{},t.releaseGraphicsResources=()=>{e.created&&(e.inputs=[],e.bindingDescriptions=[],e.attributeDescriptions=[])}}const Iat={inputs:null,bindingDescriptions:!1,attributeDescriptions:null,indexBuffer:null};function zne(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Iat,n),oi(t,e),e.bindingDescriptions=[],e.attributeDescriptions=[],e.inputs=[],Xa(t,e,["created","device","handle","indexBuffer"]),Nat(t,e)}const Bat=Kr(zne,"vtkWebGPUVertexInput");var $at={newInstance:Bat,extend:zne};const Pat=`
  330. //VTK::Renderer::Dec
  331. //VTK::Color::Dec
  332. //VTK::Normal::Dec
  333. //VTK::TCoord::Dec
  334. //VTK::Select::Dec
  335. //VTK::Mapper::Dec
  336. //VTK::IOStructs::Dec
  337. @vertex
  338. fn main(
  339. //VTK::IOStructs::Input
  340. )
  341. //VTK::IOStructs::Output
  342. {
  343. var output : vertexOutput;
  344. // var vertex: vec4<f32> = vertexBC;
  345. //VTK::Color::Impl
  346. //VTK::Normal::Impl
  347. //VTK::TCoord::Impl
  348. //VTK::Select::Impl
  349. //VTK::Position::Impl
  350. return output;
  351. }
  352. `,Fat=`
  353. //VTK::Renderer::Dec
  354. //VTK::Color::Dec
  355. //VTK::Normal::Dec
  356. //VTK::TCoord::Dec
  357. //VTK::Select::Dec
  358. //VTK::RenderEncoder::Dec
  359. //VTK::Mapper::Dec
  360. //VTK::IOStructs::Dec
  361. @fragment
  362. fn main(
  363. //VTK::IOStructs::Input
  364. )
  365. //VTK::IOStructs::Output
  366. {
  367. var output : fragmentOutput;
  368. //VTK::Color::Impl
  369. //VTK::Normal::Impl
  370. //VTK::Light::Impl
  371. //VTK::TCoord::Impl
  372. //VTK::Select::Impl
  373. // var computedColor:vec4<f32> = vec4<f32>(1.0,0.5,0.5,1.0);
  374. //VTK::RenderEncoder::Impl
  375. return output;
  376. }
  377. `;function zat(t,e){e.classHierarchy.push("vtkWebGPUSimpleMapper"),t.generateShaderDescriptions=(n,r,a)=>{const i=U6.newInstance({type:"vertex",hash:n,code:e.vertexShaderTemplate}),o=U6.newInstance({type:"fragment",hash:n,code:e.fragmentShaderTemplate}),s=r.getShaderDescriptions();s.push(i),s.push(o);const l=e.vertexShaderTemplate+e.fragmentShaderTemplate,u=new RegExp("//VTK::[^:]*::","g"),f=l.match(u).filter((d,h,p)=>p.indexOf(d)===h).map(d=>`replaceShader${d.substring(7,d.length-2)}`);for(let d=0;d<f.length;d++){const h=f[d];h!=="replaceShaderIOStructs"&&e.shaderReplacements.has(h)&&e.shaderReplacements.get(h)(n,r,a)}t.replaceShaderIOStructs(n,r,a)},t.replaceShaderIOStructs=(n,r,a)=>{const i=r.getShaderDescription("vertex");i.replaceShaderCode(null,a),r.getShaderDescription("fragment").replaceShaderCode(i)},t.replaceShaderRenderEncoder=(n,r,a)=>{e.renderEncoder.replaceShaderCode(r)},e.shaderReplacements.set("replaceShaderRenderEncoder",t.replaceShaderRenderEncoder),t.replaceShaderRenderer=(n,r,a)=>{if(!e.WebGPURenderer)return;const i=e.WebGPURenderer.getBindGroup().getShaderCode(r),o=r.getShaderDescription("vertex");let s=o.getCode();s=In.substitute(s,"//VTK::Renderer::Dec",[i]).result,o.setCode(s);const l=r.getShaderDescription("fragment");s=l.getCode(),s=In.substitute(s,"//VTK::Renderer::Dec",[i]).result,l.setCode(s)},e.shaderReplacements.set("replaceShaderRenderer",t.replaceShaderRenderer),t.replaceShaderMapper=(n,r,a)=>{const i=e.bindGroup.getShaderCode(r),o=r.getShaderDescription("vertex");let s=o.getCode();s=In.substitute(s,"//VTK::Mapper::Dec",[i]).result,o.setCode(s);const l=r.getShaderDescription("fragment");l.addBuiltinInput("bool","@builtin(front_facing) frontFacing"),s=l.getCode(),s=In.substitute(s,"//VTK::Mapper::Dec",[i]).result,l.setCode(s)},e.shaderReplacements.set("replaceShaderMapper",t.replaceShaderMapper),t.replaceShaderPosition=(n,r,a)=>{const i=r.getShaderDescription("vertex");i.addBuiltinOutput("vec4<f32>","@builtin(position) Position");let o=i.getCode();o=In.substitute(o,"//VTK::Position::Impl",[" output.Position = rendererUBO.SCPCMatrix*vertexBC;"]).result,i.setCode(o)},e.shaderReplacements.set("replaceShaderPosition",t.replaceShaderPosition),t.replaceShaderTCoord=(n,r,a)=>{r.getShaderDescription("vertex").addOutput("vec2<f32>","tcoordVS")},e.shaderReplacements.set("replaceShaderTCoord",t.replaceShaderTCoord),t.addTextureView=n=>{e.textureViews.includes(n)||e.textureViews.push(n)},t.prepareToDraw=n=>{e.renderEncoder=n,t.updateInput(),t.updateBuffers(),t.updateBindings(),t.updatePipeline()},t.updateInput=()=>{},t.updateBuffers=()=>{},t.updateBindings=()=>{e.bindGroup.setBindables(t.getBindables())},t.computePipelineHash=()=>{},t.registerDrawCallback=n=>{n.registerDrawCallback(e.pipeline,t.draw)},t.prepareAndDraw=n=>{t.prepareToDraw(n),n.setPipeline(e.pipeline),t.draw(n)},t.draw=n=>{const r=n.getBoundPipeline();n.activateBindGroup(e.bindGroup),e.WebGPURenderer&&e.WebGPURenderer.bindUBO(n),r.bindVertexInput(n,e.vertexInput);const a=e.vertexInput.getIndexBuffer();a?n.drawIndexed(a.getIndexCount(),e.numberOfInstances,0,0,0):n.draw(e.numberOfVertices,e.numberOfInstances,0,0)},t.getBindables=()=>{const n=[...e.additionalBindables];e.UBO&&n.push(e.UBO),e.SSBO&&n.push(e.SSBO);for(let r=0;r<e.textureViews.length;r++){n.push(e.textureViews[r]);const a=e.textureViews[r].getSampler();a&&n.push(a)}return n},t.updatePipeline=()=>{t.computePipelineHash(),e.pipeline=e.device.getPipeline(e.pipelineHash),e.pipeline||(e.pipeline=_at.newInstance(),e.pipeline.setDevice(e.device),e.WebGPURenderer&&e.pipeline.addBindGroupLayout(e.WebGPURenderer.getBindGroup()),e.pipeline.addBindGroupLayout(e.bindGroup),t.generateShaderDescriptions(e.pipelineHash,e.pipeline,e.vertexInput),e.pipeline.setTopology(e.topology),e.pipeline.setRenderEncoder(e.renderEncoder),e.pipeline.setVertexState(e.vertexInput.getVertexInputInformation()),e.device.createPipeline(e.pipelineHash,e.pipeline))}}const Uat={additionalBindables:void 0,bindGroup:null,device:null,fragmentShaderTemplate:null,numberOfInstances:1,numberOfVertices:0,pipelineHash:null,shaderReplacements:null,SSBO:null,textureViews:null,topology:"triangle-list",UBO:null,vertexShaderTemplate:null,WebGPURenderer:null};function Une(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Uat,n),Sa.extend(t,e,n),e.textureViews=[],e.vertexInput=$at.newInstance(),e.bindGroup=Ine.newInstance({label:"mapperBG"}),e.additionalBindables=[],e.fragmentShaderTemplate=e.fragmentShaderTemplate||Fat,e.vertexShaderTemplate=e.vertexShaderTemplate||Pat,e.shaderReplacements=new Map,J.get(t,e,["pipeline","vertexInput"]),J.setGet(t,e,["additionalBindables","device","fragmentShaderTemplate","interpolate","numberOfInstances","numberOfVertices","pipelineHash","shaderReplacements","SSBO","textureViews","topology","UBO","vertexShaderTemplate","WebGPURenderer"]),zat(t,e)}const Gat=J.newInstance(Une,"vtkWebGPUSimpleMapper");var IN={newInstance:Gat,extend:Une};function Hat(t,e){e.classHierarchy.push("vtkWebGPUFullScreenQuad"),t.replaceShaderPosition=(n,r,a)=>{const i=r.getShaderDescription("vertex");i.addBuiltinOutput("vec4<f32>","@builtin(position) Position"),i.addOutput("vec4<f32>","vertexVC");let o=i.getCode();o=In.substitute(o,"//VTK::Position::Impl",["output.tcoordVS = vec2<f32>(vertexBC.x * 0.5 + 0.5, 1.0 - vertexBC.y * 0.5 - 0.5);","output.Position = vec4<f32>(vertexBC, 1.0);","output.vertexVC = vec4<f32>(vertexBC, 1);"]).result,i.setCode(o)},e.shaderReplacements.set("replaceShaderPosition",t.replaceShaderPosition),t.updateBuffers=()=>{const n=e.device.getBufferManager().getFullScreenQuadBuffer();e.vertexInput.addBuffer(n,["vertexBC"]),e.numberOfVertices=6}}const Wat={};function Gne(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Wat,n),IN.extend(t,e,n),Hat(t,e)}const jat=J.newInstance(Gne,"vtkWebGPUFullScreenQuad");var Zg={newInstance:jat,extend:Gne};const Kat={Verts:0,Lines:1,Triangles:2,Strips:3,LinesFromStrips:4,LinesFromTriangles:5,Points:6,UniformArray:7,PointArray:8,NormalsFromPoints:9,Texture:10,RawVertex:11,Storage:12,Index:13},Yat={Start:0,Points:0,Lines:1,Triangles:2,TriangleStrips:3,TriangleEdges:4,TriangleStripEdges:5,End:6};var Xb={BufferUsage:Kat,PrimitiveTypes:Yat};const lD=["getMappedRange","mapAsync","unmap"];function Xat(t,e,n,r){const a=r.byteLength,i=t.createBuffer({size:a,usage:GPUBufferUsage.COPY_SRC,mappedAtCreation:!0}),o=i.getMappedRange(0,a);new Uint8Array(o).set(new Uint8Array(r)),i.unmap();const s=t.createCommandEncoder();s.copyBufferToBuffer(i,0,e,n,a);const l=s.finish();t.queue.submit([l]),i.destroy()}function qat(t,e){e.classHierarchy.push("vtkWebGPUBuffer"),t.create=(n,r)=>{e.handle=e.device.getHandle().createBuffer({size:n,usage:r,label:e.label}),e.sizeInBytes=n,e.usage=r},t.write=n=>{Xat(e.device.getHandle(),e.handle,0,n.buffer)},t.createAndWrite=(n,r)=>{e.handle=e.device.getHandle().createBuffer({size:n.byteLength,usage:r,mappedAtCreation:!0,label:e.label}),e.sizeInBytes=n.byteLength,e.usage=r,new Uint8Array(e.handle.getMappedRange()).set(new Uint8Array(n.buffer)),e.handle.unmap()};for(let n=0;n<lD.length;n++)t[lD[n]]=function(){return e.handle[lD[n]](...arguments)}}const Zat={device:null,handle:null,sizeInBytes:0,strideInBytes:0,arrayInformation:null,usage:null,label:null,sourceTime:null};function Hne(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Zat,n),J.obj(t,e),J.get(t,e,["handle","sizeInBytes","usage"]),J.setGet(t,e,["strideInBytes","device","arrayInformation","label","sourceTime"]),qat(t,e)}const Qat=J.newInstance(Hne);var Qg={newInstance:Qat,extend:Hne,...Xb};const{Representation:H6}=T0,{PrimitiveTypes:uf}=Xb;class Jat{constructor(){this.keys=new Uint32Array(10),this.values=new Uint32Array(10),this.count=0}clear(){this.count=0}has(e){for(let n=0;n<this.count;n++)if(this.keys[n]===e)return!0}get(e){for(let n=0;n<this.count;n++)if(this.keys[n]===e)return this.values[n]}set(e,n){this.count<9&&(this.keys[this.count]=e,this.values[this.count++]=n)}}function eit(t){switch(t){case uf.Points:return"points";case uf.Lines:return"lines";case uf.Triangles:case uf.TriangleEdges:return"polys";case uf.TriangleStripEdges:case uf.TriangleStrips:return"strips";default:return""}}function dw(t,e,n){let r=t.pointIdToFlatId[e];return r<0&&(r=t.flatId,t.pointIdToFlatId[e]=r,t.flatIdToPointId[t.flatId]=e,t.flatIdToCellId[t.flatId]=n,t.flatId++),r}function tit(t,e,n){const r=t.length;for(let o=0;o<r;o++){let s=t[o];if(n.cellProvokedMap.has(s)){n.ibo[n.iboId++]=n.cellProvokedMap.get(s);for(let l=o+1;l<o+r;l++){s=t[l%r];const u=dw(n,s,e);n.ibo[n.iboId++]=u}return}}for(let o=0;o<r;o++){let s=t[o];if(!n.provokedPointIds[s]){let l=dw(n,s,e);n.provokedPointIds[s]=1,n.cellProvokedMap.set(s,l),n.flatIdToCellId[l]=e,n.ibo[n.iboId++]=l;for(let u=o+1;u<o+r;u++)s=t[u%r],l=dw(n,s,e),n.ibo[n.iboId++]=l;return}}let a=t[0],i=n.flatId;n.cellProvokedMap.set(a,i),n.flatIdToPointId[n.flatId]=a,n.flatIdToCellId[n.flatId]=e,n.flatId++,n.ibo[n.iboId++]=i;for(let o=1;o<r;o++)a=t[o],i=dw(n,a,e),n.ibo[n.iboId++]=i}function nit(t,e,n){const r=t.length;n.iboSize+=r;for(let a=0;a<r;a++){const i=t[a];if(n.cellProvokedMap.has(i))return}for(let a=0;a<r;a++){const i=t[a];if(!n.provokedPointIds[i]){n.provokedPointIds[i]=1,n.cellProvokedMap.set(i,1);return}}n.cellProvokedMap.set(t[0],1),n.extraPoints++}let Pu;const W6=new Uint32Array(1),Zo=new Uint32Array(2),Fc=new Uint32Array(3),uD={anythingToPoints(t,e,n,r,a){for(let i=0;i<t;++i)W6[0]=e[n+i],Pu(W6,r,a)},linesToWireframe(t,e,n,r,a){for(let i=0;i<t-1;++i)Zo[0]=e[n+i],Zo[1]=e[n+i+1],Pu(Zo,r,a)},polysToWireframe(t,e,n,r,a){if(t>2)for(let i=0;i<t;++i)Zo[0]=e[n+i],Zo[1]=e[n+(i+1)%t],Pu(Zo,r,a)},stripsToWireframe(t,e,n,r,a){if(t>2){for(let i=0;i<t-1;++i)Zo[0]=e[n+i],Zo[1]=e[n+i+1],Pu(Zo,r,a);for(let i=0;i<t-2;i++)Zo[0]=e[n+i],Zo[1]=e[n+i+2],Pu(Zo,r,a)}},polysToSurface(t,e,n,r,a){for(let i=0;i<t-2;i++)Fc[0]=e[n],Fc[1]=e[n+i+1],Fc[2]=e[n+i+2],Pu(Fc,r,a)},stripsToSurface(t,e,n,r,a){for(let i=0;i<t-2;i++)Fc[0]=e[n+i],Fc[1]=e[n+i+1+i%2],Fc[2]=e[n+i+1+(i+1)%2],Pu(Fc,r,a)}};function rit(t,e){e.classHierarchy.push("vtkWebGPUIndexBuffer"),t.buildIndexBuffer=n=>{const r=n.cells,a=n.primitiveType,i=n.representation,o=n.cellOffset,s=r.getData(),l=s.length,u=eit(a),c=n.numberOfPoints,f={provokedPointIds:new Uint8Array(c),extraPoints:0,iboSize:0,flatId:0,iboId:0,cellProvokedMap:new Jat};let d=null;i===H6.POINTS||a===uf.Points?d=uD.anythingToPoints:i===H6.WIREFRAME||a===uf.Lines?d=uD[`${u}ToWireframe`]:d=uD[`${u}ToSurface`],Pu=nit;let h=o||0;for(let p=0;p<l;)f.cellProvokedMap.clear(),d(s[p],s,p+1,h,f),p+=s[p]+1,h++;c<=65535?f.flatIdToPointId=new Uint16Array(c+f.extraPoints):f.flatIdToPointId=new Uint32Array(c+f.extraPoints),c+f.extraPoints<36863?f.pointIdToFlatId=new Int16Array(c):f.pointIdToFlatId=new Int32Array(c),c+f.extraPoints<=65535?(f.ibo=new Uint16Array(f.iboSize),n.format="uint16"):(f.ibo=new Uint32Array(f.iboSize),n.format="uint32"),h<=65535?f.flatIdToCellId=new Uint16Array(c+f.extraPoints):f.flatIdToCellId=new Uint32Array(c+f.extraPoints),f.pointIdToFlatId.fill(-1),f.provokedPointIds.fill(0),Pu=tit,h=o||0;for(let p=0;p<l;)f.cellProvokedMap.clear(),d(s[p],s,p+1,h,f),p+=s[p]+1,h++;delete f.provokedPointIds,delete f.pointIdToFlatId,n.nativeArray=f.ibo,e.flatIdToPointId=f.flatIdToPointId,e.flatIdToCellId=f.flatIdToCellId,e.flatSize=f.flatId,e.indexCount=f.iboId}}const ait={flatIdToPointId:null,flatIdToCellId:null,flatSize:0,indexCount:0};function Wne(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,ait,n),Qg.extend(t,e,n),J.setGet(t,e,["flatIdToPointId","flatIdToCellId","flatSize","indexCount"]),rit(t,e)}const iit=J.newInstance(Wne);var oit={newInstance:iit,extend:Wne,...Xb};const{BufferUsage:zc}=Xb,{vtkErrorMacro:sit}=_u,{VtkDataTypes:Vd}=zn,lit={};function uit(t){let e;switch(t.getDataType()){case Vd.UNSIGNED_CHAR:e="uint8";break;case Vd.FLOAT:e="float32";break;case Vd.UNSIGNED_INT:e="uint32";break;case Vd.INT:e="sint32";break;case Vd.DOUBLE:e="float32";break;case Vd.UNSIGNED_SHORT:e="uint16";break;case Vd.SHORT:e="sin16";break;default:e="float32";break}switch(t.getNumberOfComponents()){case 2:e+="x2";break;case 3:e.includes("32")||sit(`unsupported x3 type for ${e}`),e+="x3";break;case 4:e+="x4";break}return e}function j6(t,e,n,r,a){const i={},o=t.getFlatSize();if(!o)return i;let s=[0,0,0,0];a.shift&&(a.shift.length?s=a.shift:s.fill(a.shift));let l=[1,1,1,1];a.scale&&(a.scale.length?l=a.scale:l.fill(a.scale));const u=Object.prototype.hasOwnProperty.call(a,"packExtra")?a.packExtra:!1;let c,f=0;const d=n+(u?1:0),h=_0(r,o*d);let p=t.getFlatIdToPointId();a.cellData&&(p=t.getFlatIdToCellId()),n===1?c=function(g){h[f++]=l[0]*e[g]+s[0]}:n===2?c=function(g){h[f++]=l[0]*e[g]+s[0],h[f++]=l[1]*e[g+1]+s[1]}:n===3&&!u?c=function(g){h[f++]=l[0]*e[g]+s[0],h[f++]=l[1]*e[g+1]+s[1],h[f++]=l[2]*e[g+2]+s[2]}:n===3&&u?c=function(g){h[f++]=l[0]*e[g]+s[0],h[f++]=l[1]*e[g+1]+s[1],h[f++]=l[2]*e[g+2]+s[2],h[f++]=l[3]*1+s[3]}:n===4&&(c=function(g){h[f++]=l[0]*e[g]+s[0],h[f++]=l[1]*e[g+1]+s[1],h[f++]=l[2]*e[g+2]+s[2],h[f++]=l[3]*e[g+3]+s[3]});for(let v=0;v<o;v++){const g=n*p[v];c(g)}return i.nativeArray=h,i}function cit(t,e,n,r){const a=[t[r*3]-t[n*3],t[r*3+1]-t[n*3+1],t[r*3+2]-t[n*3+2]],i=[t[e*3]-t[n*3],t[e*3+1]-t[n*3+1],t[e*3+2]-t[n*3+2]],o=[];return vu(a,i,o),bp(o),o}function fit(t,e){const n=e.getData(),r=t.getData();if(!r||!n)return null;const a=new Int8Array(t.getNumberOfCells()*4),i=r.length;let o=0;for(let s=0;s<i;){const l=cit(n,r[s+1],r[s+2],r[s+3]);a[o++]=127*l[0],a[o++]=127*l[1],a[o++]=127*l[2],a[o++]=127,s+=r[s]+1}return a}function dit(t,e){e.classHierarchy.push("vtkWebGPUBufferManager");function n(r){r.dataArray&&!r.nativeArray&&(r.nativeArray=r.dataArray.getData());let a,i;if(r.usage===zc.Index&&(a=oit.newInstance({label:r.label}),a.setDevice(e.device),i=GPUBufferUsage.INDEX|GPUBufferUsage.COPY_DST,a.buildIndexBuffer(r),a.createAndWrite(r.nativeArray,i),a.setArrayInformation([{format:r.format}])),a||(a=Qg.newInstance({label:r.label}),a.setDevice(e.device)),r.usage===zc.UniformArray&&(i=GPUBufferUsage.UNIFORM|GPUBufferUsage.COPY_DST,a.createAndWrite(r.nativeArray,i)),r.usage===zc.Storage&&(i=GPUBufferUsage.STORAGE|GPUBufferUsage.COPY_DST,a.createAndWrite(r.nativeArray,i)),r.usage===zc.Texture&&(i=GPUBufferUsage.COPY_SRC,a.createAndWrite(r.nativeArray,i)),r.usage===zc.PointArray){i=GPUBufferUsage.VERTEX;const o=ti.getNativeTypeFromBufferFormat(r.format),s=j6(r.indexBuffer,r.dataArray.getData(),r.dataArray.getNumberOfComponents(),o,{packExtra:r.packExtra,shift:r.shift,scale:r.scale,cellData:r.cellData,cellOffset:r.cellOffset});a.createAndWrite(s.nativeArray,i),a.setStrideInBytes(ti.getByteStrideFromBufferFormat(r.format)),a.setArrayInformation([{offset:0,format:r.format,interpolation:r.cellData?"flat":"perspective"}])}if(r.usage===zc.NormalsFromPoints){i=GPUBufferUsage.VERTEX;const o=ti.getNativeTypeFromBufferFormat(r.format),s=fit(r.cells,r.dataArray),l=j6(r.indexBuffer,s,4,o,{cellData:!0});a.createAndWrite(l.nativeArray,i),a.setStrideInBytes(ti.getByteStrideFromBufferFormat(r.format)),a.setArrayInformation([{offset:0,format:r.format,interpolation:"flat"}])}return r.usage===zc.RawVertex&&(i=GPUBufferUsage.VERTEX,a.createAndWrite(r.nativeArray,i),a.setStrideInBytes(ti.getByteStrideFromBufferFormat(r.format)),a.setArrayInformation([{offset:0,format:r.format}])),a.setSourceTime(r.time),a}t.hasBuffer=r=>e.device.hasCachedObject(r),t.getBuffer=r=>r.hash?e.device.getCachedObject(r.hash,n,r):n(r),t.getBufferForPointArray=(r,a)=>{const i=uit(r),o={hash:`${r.getMTime()}I${a.getMTime()}${i}`,usage:zc.PointArray,format:i,dataArray:r,indexBuffer:a};return t.getBuffer(o)},t.getFullScreenQuadBuffer=()=>{if(e.fullScreenQuadBuffer)return e.fullScreenQuadBuffer;e.fullScreenQuadBuffer=Qg.newInstance(),e.fullScreenQuadBuffer.setDevice(e.device);const r=new Float32Array([-1,-1,0,1,-1,0,1,1,0,-1,-1,0,1,1,0,-1,1,0]);return e.fullScreenQuadBuffer.createAndWrite(r,GPUBufferUsage.VERTEX),e.fullScreenQuadBuffer.setStrideInBytes(12),e.fullScreenQuadBuffer.setArrayInformation([{offset:0,format:"float32x3"}]),e.fullScreenQuadBuffer}}const hit={device:null,fullScreenQuadBuffer:null};function jne(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,hit,n),oi(t,e),Xa(t,e,["device"]),dit(t,e)}const pit=Kr(jne);var ud={newInstance:pit,extend:jne,...lit,...Xb};const{BufferUsage:vit}=ud,{vtkErrorMacro:iv}=J;function git(t,e){e.classHierarchy.push("vtkWebGPUStorageBuffer"),t.addEntry=(n,r)=>{if(e._bufferEntryNames.has(n)){iv(`entry named ${n} already exists`);return}e._bufferEntryNames.set(n,e.bufferEntries.length);const a=ti.getByteStrideFromShaderFormat(r);e.bufferEntries.push({name:n,type:r,sizeInBytes:a,offset:e.sizeInBytes,nativeType:ti.getNativeTypeFromShaderFormat(r)}),e.sizeInBytes+=a},t.send=n=>{if(!e._buffer){const r={nativeArray:e.Float32Array,usage:vit.Storage,label:e.label};e._buffer=n.getBufferManager().getBuffer(r),e.bindGroupTime.modified(),e._sendTime.modified();return}n.getHandle().queue.writeBuffer(e._buffer.getHandle(),0,e.arrayBuffer,0,e.sizeInBytes*e.numberOfInstances),e._sendTime.modified()},t.createView=n=>{n in e||(e.arrayBuffer||(e.arrayBuffer=new ArrayBuffer(e.sizeInBytes*e.numberOfInstances)),e[n]=J.newTypedArray(n,e.arrayBuffer))},t.setValue=(n,r,a)=>{const i=e._bufferEntryNames.get(n);if(i===void 0){iv(`entry named ${n} not found in UBO`);return}const o=e.bufferEntries[i];t.createView(o.nativeType);const s=e[o.nativeType];s[(o.offset+r*e.sizeInBytes)/s.BYTES_PER_ELEMENT]=a},t.setArray=(n,r,a)=>{const i=e._bufferEntryNames.get(n);if(i===void 0){iv(`entry named ${n} not found in UBO`);return}const o=e.bufferEntries[i];t.createView(o.nativeType);const s=e[o.nativeType],l=(o.offset+r*e.sizeInBytes)/s.BYTES_PER_ELEMENT;for(let u=0;u<a.length;u++)s[l+u]=a[u]},t.setAllInstancesFromArray=(n,r)=>{const a=e._bufferEntryNames.get(n);if(a===void 0){iv(`entry named ${n} not found in UBO`);return}const i=e.bufferEntries[a];t.createView(i.nativeType);const o=e[i.nativeType],s=r.length/e.numberOfInstances;for(let l=0;l<e.numberOfInstances;l++){const u=(i.offset+l*e.sizeInBytes)/o.BYTES_PER_ELEMENT;for(let c=0;c<s;c++)o[u+c]=r[l*s+c]}},t.setAllInstancesFromArrayColorToFloat=(n,r)=>{const a=e._bufferEntryNames.get(n);if(a===void 0){iv(`entry named ${n} not found in UBO`);return}const i=e.bufferEntries[a];t.createView(i.nativeType);const o=e[i.nativeType],s=r.length/e.numberOfInstances;for(let l=0;l<e.numberOfInstances;l++){const u=(i.offset+l*e.sizeInBytes)/o.BYTES_PER_ELEMENT;for(let c=0;c<s;c++)o[u+c]=r[l*s+c]/255}},t.setAllInstancesFromArray3x3To4x4=(n,r)=>{const a=e._bufferEntryNames.get(n);if(a===void 0){iv(`entry named ${n} not found in UBO`);return}const i=e.bufferEntries[a];t.createView(i.nativeType);const o=e[i.nativeType],s=9;for(let l=0;l<e.numberOfInstances;l++){const u=(i.offset+l*e.sizeInBytes)/o.BYTES_PER_ELEMENT;for(let c=0;c<3;c++)for(let f=0;f<3;f++)o[u+c*4+f]=r[l*s+c*3+f]}},t.getSendTime=()=>e._sendTime.getMTime(),t.getShaderCode=(n,r)=>{const a=[`struct ${e.label}StructEntry
  378. {`];for(let i=0;i<e.bufferEntries.length;i++){const o=e.bufferEntries[i];a.push(` ${o.name}: ${o.type},`)}return a.push(`
  379. };
  380. struct ${e.label}Struct
  381. {
  382. values: array<${e.label}StructEntry>,
  383. };
  384. @binding(${n}) @group(${r}) var<storage, read> ${e.label}: ${e.label}Struct;
  385. `),a.join(`
  386. `)},t.getBindGroupEntry=()=>({resource:{buffer:e._buffer.getHandle()}}),t.clearData=()=>{e.numberOfInstances=0,e.sizeInBytes=0,e.bufferEntries=[],e._bufferEntryNames=new Map,e._buffer=null,delete e.arrayBuffer,delete e.Float32Array}}const yit={bufferEntries:null,bufferEntryNames:null,sizeInBytes:0,label:null,numberOfInstances:1};function Kne(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,yit,n),J.obj(t,e),e._bufferEntryNames=new Map,e.bufferEntries=[],e._sendTime={},J.obj(e._sendTime,{mtime:0}),e.bindGroupTime={},J.obj(e.bindGroupTime,{mtime:0}),e.bindGroupLayoutEntry=e.bindGroupLayoutEntry||{buffer:{type:"read-only-storage"}},J.get(t,e,["bindGroupTime"]),J.setGet(t,e,["device","bindGroupLayoutEntry","label","numberOfInstances","sizeInBytes"]),git(t,e)}const mit=J.newInstance(Kne,"vtkWebGPUStorageBuffer");var qL={newInstance:mit,extend:Kne};const{BufferUsage:bit}=ud,{vtkErrorMacro:cD}=J;function Sit(t,e){e.classHierarchy.push("vtkWebGPUUniformBuffer"),t.addEntry=(n,r)=>{if(e._bufferEntryNames.has(n)){cD(`entry named ${n} already exists`);return}e.sortDirty=!0,e._bufferEntryNames.set(n,e.bufferEntries.length),e.bufferEntries.push({name:n,type:r,sizeInBytes:ti.getByteStrideFromShaderFormat(r),offset:-1,nativeType:ti.getNativeTypeFromShaderFormat(r),packed:!1})},t.sortBufferEntries=()=>{if(!e.sortDirty)return;let n=0;const r=[];let a=4;for(let i=0;i<e.bufferEntries.length;i++){const o=e.bufferEntries[i];o.sizeInBytes%16===0&&(a=Math.max(16,a)),o.sizeInBytes%8===0&&(a=Math.max(8,a))}for(let i=0;i<e.bufferEntries.length;i++){const o=e.bufferEntries[i];o.packed===!1&&o.sizeInBytes%16===0&&(o.packed=!0,o.offset=n,r.push(o),n+=o.sizeInBytes)}for(let i=0;i<e.bufferEntries.length;i++){const o=e.bufferEntries[i];if(o.packed===!1&&o.sizeInBytes===12)for(let s=0;s<e.bufferEntries.length;s++){const l=e.bufferEntries[s];if(l.packed===!1&&l.sizeInBytes===4){o.packed=!0,o.offset=n,r.push(o),n+=o.sizeInBytes,l.packed=!0,l.offset=n,r.push(l),n+=l.sizeInBytes;break}}}for(let i=0;i<e.bufferEntries.length;i++){const o=e.bufferEntries[i];if(!o.packed&&o.sizeInBytes%8===0)for(let s=i+1;s<e.bufferEntries.length;s++){const l=e.bufferEntries[s];if(!l.packed&&l.sizeInBytes%8===0){o.packed=!0,o.offset=n,r.push(o),n+=o.sizeInBytes,l.packed=!0,l.offset=n,r.push(l),n+=l.sizeInBytes;break}}}for(let i=0;i<e.bufferEntries.length;i++){const o=e.bufferEntries[i];if(!o.packed&&o.sizeInBytes%8===0){let s=!1;for(let l=0;!s&&l<e.bufferEntries.length;l++){const u=e.bufferEntries[l];if(!u.packed&&u.sizeInBytes===4)for(let c=l+1;c<e.bufferEntries.length;c++){const f=e.bufferEntries[c];if(!f.packed&&f.sizeInBytes===4){o.packed=!0,o.offset=n,r.push(o),n+=o.sizeInBytes,u.packed=!0,u.offset=n,r.push(u),n+=u.sizeInBytes,f.packed=!0,f.offset=n,r.push(f),n+=f.sizeInBytes,s=!0;break}}}}}for(let i=0;i<e.bufferEntries.length;i++){const o=e.bufferEntries[i];!o.packed&&o.sizeInBytes>4&&(o.packed=!0,o.offset=n,r.push(o),n+=o.sizeInBytes)}for(let i=0;i<e.bufferEntries.length;i++){const o=e.bufferEntries[i];o.packed||(o.packed=!0,o.offset=n,r.push(o),n+=o.sizeInBytes)}e.bufferEntries=r,e._bufferEntryNames.clear();for(let i=0;i<e.bufferEntries.length;i++)e._bufferEntryNames.set(e.bufferEntries[i].name,i);e.sizeInBytes=n,e.sizeInBytes=a*Math.ceil(e.sizeInBytes/a),e.sortDirty=!1},t.sendIfNeeded=n=>{if(!e.UBO){const r={nativeArray:e.Float32Array,usage:bit.UniformArray,label:e.label};e.UBO=n.getBufferManager().getBuffer(r),e.bindGroupTime.modified(),e.sendDirty=!1}e.sendDirty&&(n.getHandle().queue.writeBuffer(e.UBO.getHandle(),0,e.arrayBuffer,0,e.sizeInBytes),e.sendDirty=!1),e.sendTime.modified()},t.createView=n=>{n in e||(e.arrayBuffer||(e.arrayBuffer=new ArrayBuffer(e.sizeInBytes)),e[n]=J.newTypedArray(n,e.arrayBuffer))},t.setValue=(n,r)=>{t.sortBufferEntries();const a=e._bufferEntryNames.get(n);if(a===void 0){cD(`entry named ${n} not found in UBO`);return}const i=e.bufferEntries[a];t.createView(i.nativeType);const o=e[i.nativeType];i.lastValue!==r&&(o[i.offset/o.BYTES_PER_ELEMENT]=r,e.sendDirty=!0),i.lastValue=r},t.setArray=(n,r)=>{t.sortBufferEntries();const a=e._bufferEntryNames.get(n);if(a===void 0){cD(`entry named ${n} not found in UBO`);return}const i=e.bufferEntries[a];t.createView(i.nativeType);const o=e[i.nativeType];let s=!1;for(let l=0;l<r.length;l++)(!i.lastValue||i.lastValue[l]!==r[l])&&(o[i.offset/o.BYTES_PER_ELEMENT+l]=r[l],s=!0);s&&(e.sendDirty=!0,i.lastValue=[...r])},t.getBindGroupEntry=()=>({resource:{buffer:e.UBO.getHandle()}}),t.getSendTime=()=>e.sendTime.getMTime(),t.getShaderCode=(n,r)=>{t.sortBufferEntries();const a=[`struct ${e.label}Struct
  387. {`];for(let i=0;i<e.bufferEntries.length;i++){const o=e.bufferEntries[i];a.push(` ${o.name}: ${o.type},`)}return a.push(`};
  388. @binding(${n}) @group(${r}) var<uniform> ${e.label}: ${e.label}Struct;`),a.join(`
  389. `)}}const wit={bufferEntries:null,bufferEntryNames:null,sizeInBytes:0,label:null,bindGroupLayoutEntry:null,bindGroupEntry:null};function Yne(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,wit,n),J.obj(t,e),e._bufferEntryNames=new Map,e.bufferEntries=[],e.bindGroupLayoutEntry=e.bindGroupLayoutEntry||{buffer:{type:"uniform"}},e.sendTime={},J.obj(e.sendTime,{mtime:0}),e.bindGroupTime={},J.obj(e.bindGroupTime,{mtime:0}),e.sendDirty=!0,e.sortDirty=!0,J.get(t,e,["binding","bindGroupTime"]),J.setGet(t,e,["bindGroupLayoutEntry","device","label","sizeInBytes"]),Sit(t,e)}const xit=J.newInstance(Yne,"vtkWebGPUUniformBuffer");var np={newInstance:xit,extend:Yne};const{vtkDebugMacro:_it}=_u,K6=`
  390. //VTK::Renderer::Dec
  391. //VTK::Mapper::Dec
  392. //VTK::TCoord::Dec
  393. //VTK::RenderEncoder::Dec
  394. //VTK::IOStructs::Dec
  395. @fragment
  396. fn main(
  397. //VTK::IOStructs::Input
  398. )
  399. //VTK::IOStructs::Output
  400. {
  401. var output: fragmentOutput;
  402. var computedColor: vec4<f32> = mapperUBO.BackgroundColor;
  403. //VTK::RenderEncoder::Impl
  404. return output;
  405. }
  406. `,Cit=`
  407. fn vecToRectCoord(dir: vec3<f32>) -> vec2<f32> {
  408. var tau: f32 = 6.28318530718;
  409. var pi: f32 = 3.14159265359;
  410. var out: vec2<f32> = vec2<f32>(0.0);
  411. out.x = atan2(dir.z, dir.x) / tau;
  412. out.x += 0.5;
  413. var phix: f32 = length(vec2(dir.x, dir.z));
  414. out.y = atan2(dir.y, phix) / pi + 0.5;
  415. return out;
  416. }
  417. //VTK::Renderer::Dec
  418. //VTK::Mapper::Dec
  419. //VTK::TCoord::Dec
  420. //VTK::RenderEncoder::Dec
  421. //VTK::IOStructs::Dec
  422. @fragment
  423. fn main(
  424. //VTK::IOStructs::Input
  425. )
  426. //VTK::IOStructs::Output
  427. {
  428. var output: fragmentOutput;
  429. var tcoord: vec4<f32> = vec4<f32>(input.vertexVC.xy, -1, 1);
  430. var V: vec4<f32> = normalize(mapperUBO.FSQMatrix * tcoord); // vec2<f32>((input.tcoordVS.x - 0.5) * 2, -(input.tcoordVS.y - 0.5) * 2);
  431. // textureSampleLevel gets rid of some ugly artifacts
  432. var background = textureSampleLevel(EnvironmentTexture, EnvironmentTextureSampler, vecToRectCoord(V.xyz), 0.0);
  433. var computedColor: vec4<f32> = vec4<f32>(background.rgb, 1);
  434. //VTK::RenderEncoder::Impl
  435. return output;
  436. }
  437. `,hw=new Float64Array(16),Y6=new Float64Array(16);function Tit(t){return t.getPositional()?t.getConeAngle()>=90?0:2:1}function Eit(t,e){e.classHierarchy.push("vtkWebGPURenderer"),t.buildPass=n=>{if(n){if(!e.renderable)return;e.camera=e.renderable.getActiveCamera(),t.updateLights(),t.prepareNodes(),t.addMissingNode(e.camera),t.addMissingNodes(e.renderable.getViewPropsWithNestedProps()),t.removeUnusedNodes(),e.webgpuCamera=t.getViewNodeFor(e.camera),t.updateStabilizedMatrix()}},t.updateStabilizedMatrix=()=>{const n=e.camera.getClippingRange(),r=e.camera.getPositionByReference(),a=e.camera.getDirectionOfProjectionByReference(),i=[],o=[];tf(o,a,.5*(n[0]+n[1])),Xy(i,r,o),LL(o,i,e.stabilizedCenter),BJ(o)/(n[1]-n[0])>e.recenterThreshold&&(e.stabilizedCenter=i,e.stabilizedTime.modified())},t.updateLights=()=>{let n=0;const r=e.renderable.getLightsByReference();for(let a=0;a<r.length;++a)r[a].getSwitch()>0&&n++;return n||(_it("No lights are on, creating one."),e.renderable.createLight()),n},t.updateUBO=()=>{var r;const n=e.UBO.getSendTime();if(e._parent.getMTime()>n||t.getMTime()>n||e.camera.getMTime()>n||e.renderable.getMTime()>n){const a=e.webgpuCamera.getKeyMatrices(t);e.UBO.setArray("WCVCMatrix",a.wcvc),e.UBO.setArray("SCPCMatrix",a.scpc),e.UBO.setArray("PCSCMatrix",a.pcsc),e.UBO.setArray("SCVCMatrix",a.scvc),e.UBO.setArray("VCPCMatrix",a.vcpc),e.UBO.setArray("WCVCNormals",a.normalMatrix),e.UBO.setValue("LightCount",e.renderable.getLights().length),e.UBO.setValue("MaxEnvironmentMipLevel",(r=e.renderable.getEnvironmentTexture())==null?void 0:r.getMipLevel()),e.UBO.setValue("BackgroundDiffuseStrength",e.renderable.getEnvironmentTextureDiffuseStrength()),e.UBO.setValue("BackgroundSpecularStrength",e.renderable.getEnvironmentTextureSpecularStrength());const i=t.getYInvertedTiledSizeAndOrigin();e.UBO.setArray("viewportSize",[i.usize,i.vsize]),e.UBO.setValue("cameraParallel",e.camera.getParallelProjection());const o=e._parent.getDevice();e.UBO.sendIfNeeded(o)}},t.updateSSBO=()=>{const n=e.renderable.getLights(),r=e.webgpuCamera.getKeyMatrices(t);let a=`${e.renderable.getMTime()}`;for(let i=0;i<n.length;i++)a+=n[i].getMTime();if(a!==e.lightTimeString){const i=new Float32Array(n.length*4),o=new Float32Array(n.length*4),s=new Float32Array(n.length*4),l=new Float32Array(n.length*4);for(let c=0;c<n.length;c++){const f=c*4,d=n[c].getPosition();_r(d,d,r.wcvc),i[f]=d[0],i[f+1]=d[1],i[f+2]=d[2],i[f+3]=0,o[f]=-n[c].getDirection()[0],o[f+1]=-n[c].getDirection()[1],o[f+2]=-n[c].getDirection()[2],o[f+3]=0,s[f]=n[c].getColor()[0],s[f+1]=n[c].getColor()[1],s[f+2]=n[c].getColor()[2],s[f+3]=n[c].getIntensity()*5,l[f]=Tit(n[c]),l[f+1]=Math.cos(va(n[c].getConeAngle())),l[f+2]=Math.cos(va(n[c].getConeAngle()+n[c].getConeFalloff())),l[f+3]=0}e.SSBO.clearData(),e.SSBO.setNumberOfInstances(n.length),e.SSBO.addEntry("LightPos","vec4<f32>"),e.SSBO.addEntry("LightDir","vec4<f32>"),e.SSBO.addEntry("LightColor","vec4<f32>"),e.SSBO.addEntry("LightData","vec4<f32>"),e.SSBO.setAllInstancesFromArray("LightPos",i),e.SSBO.setAllInstancesFromArray("LightDir",o),e.SSBO.setAllInstancesFromArray("LightColor",s),e.SSBO.setAllInstancesFromArray("LightData",l);const u=e._parent.getDevice();e.SSBO.send(u)}e.lightTimeString=a},t.scissorAndViewport=n=>{const r=t.getYInvertedTiledSizeAndOrigin();n.getHandle().setViewport(r.lowerLeftU,r.lowerLeftV,r.usize,r.vsize,0,1),n.getHandle().setScissorRect(r.lowerLeftU,r.lowerLeftV,r.usize,r.vsize)},t.bindUBO=n=>{n.activateBindGroup(e.bindGroup)},t.opaquePass=n=>{n?(e.renderEncoder.begin(e._parent.getCommandEncoder()),t.updateUBO(),t.updateSSBO()):(t.scissorAndViewport(e.renderEncoder),t.clear(),e.renderEncoder.end())},t.clear=()=>{var i;if(e.renderable.getTransparent()||e.suppressClear)return;const n=e._parent.getDevice();if(!e.clearFSQ){e.clearFSQ=Zg.newInstance(),e.clearFSQ.setDevice(n),e.clearFSQ.setPipelineHash("clearfsq"),e.clearFSQ.setFragmentShaderTemplate(K6);const o=np.newInstance({label:"mapperUBO"});o.addEntry("FSQMatrix","mat4x4<f32>"),o.addEntry("BackgroundColor","vec4<f32>"),e.clearFSQ.setUBO(o),e.backgroundTex=e.renderable.getEnvironmentTexture()}if(e.clearFSQ.getPipelineHash()!=="clearfsqwithtexture"&&e.renderable.getUseEnvironmentTextureAsBackground()&&((i=e.backgroundTex)!=null&&i.getImageLoaded())){e.clearFSQ.setFragmentShaderTemplate(Cit);const o=np.newInstance({label:"mapperUBO"});o.addEntry("FSQMatrix","mat4x4<f32>"),o.addEntry("BackgroundColor","vec4<f32>"),e.clearFSQ.setUBO(o);const s=n.getTextureManager().getTextureForVTKTexture(e.backgroundTex);if(s.getReady()){const l=s.createView("EnvironmentTexture");e.clearFSQ.setTextureViews([l]),e.backgroundTexLoaded=!0;const u=e.backgroundTex.getInterpolate()?"linear":"nearest";l.addSampler(n,{addressModeU:"repeat",addressModeV:"clamp-to-edge",addressModeW:"repeat",minFilter:u,magFilter:u,mipmapFilter:"linear"})}e.clearFSQ.setPipelineHash("clearfsqwithtexture")}else if(e.clearFSQ.getPipelineHash()==="clearfsqwithtexture"&&!e.renderable.getUseEnvironmentTextureAsBackground()){e.clearFSQ=Zg.newInstance(),e.clearFSQ.setDevice(n),e.clearFSQ.setPipelineHash("clearfsq"),e.clearFSQ.setFragmentShaderTemplate(K6);const o=np.newInstance({label:"mapperUBO"});o.addEntry("FSQMatrix","mat4x4<f32>"),o.addEntry("BackgroundColor","vec4<f32>"),e.clearFSQ.setUBO(o)}const r=e.webgpuCamera.getKeyMatrices(t),a=e.renderable.getBackgroundByReference();e.clearFSQ.getUBO().setArray("BackgroundColor",a),ea(Y6,r.normalMatrix),AL(hw,r.scvc,r.pcsc),AL(hw,Y6,hw),e.clearFSQ.getUBO().setArray("FSQMatrix",hw),e.clearFSQ.getUBO().sendIfNeeded(n),e.clearFSQ.prepareAndDraw(e.renderEncoder)},t.translucentPass=n=>{n?e.renderEncoder.begin(e._parent.getCommandEncoder()):(t.scissorAndViewport(e.renderEncoder),e.renderEncoder.end())},t.volumeDepthRangePass=n=>{n?e.renderEncoder.begin(e._parent.getCommandEncoder()):(t.scissorAndViewport(e.renderEncoder),e.renderEncoder.end())},t.getAspectRatio=()=>{const n=e._parent.getSizeByReference(),r=e.renderable.getViewportByReference();return n[0]*(r[2]-r[0])/((r[3]-r[1])*n[1])},t.convertToOpenGLDepth=n=>e.webgpuCamera.convertToOpenGLDepth(n),t.getYInvertedTiledSizeAndOrigin=()=>{const n=t.getTiledSizeAndOrigin(),r=e._parent.getSizeByReference();return n.lowerLeftV=r[1]-n.vsize-n.lowerLeftV,n},t.getTiledSizeAndOrigin=()=>{const n=e.renderable.getViewportByReference(),r=[0,0,1,1],a=n[0]-r[0],i=n[1]-r[1],o=e._parent.normalizedDisplayToDisplay(a,i),s=Math.round(o[0]),l=Math.round(o[1]),u=n[2]-r[0],c=n[3]-r[1],f=e._parent.normalizedDisplayToDisplay(u,c);let d=Math.round(f[0])-s,h=Math.round(f[1])-l;return d<0&&(d=0),h<0&&(h=0),{usize:d,vsize:h,lowerLeftU:s,lowerLeftV:l}},t.getPropFromID=n=>{for(let r=0;r<e.children.length;r++)if((e.children[r].getPropID?e.children[r].getPropID():-1)===n)return e.children[r];return null},t.getStabilizedTime=()=>e.stabilizedTime.getMTime(),t.releaseGraphicsResources=()=>{e.selector!==null&&e.selector.releaseGraphicsResources()}}const Mit={bindGroup:null,selector:null,renderEncoder:null,recenterThreshold:20,suppressClear:!1,stabilizedCenter:[0,0,0]};function Dit(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Mit,n),Sa.extend(t,e,n),e.UBO=np.newInstance({label:"rendererUBO"}),e.UBO.addEntry("WCVCMatrix","mat4x4<f32>"),e.UBO.addEntry("SCPCMatrix","mat4x4<f32>"),e.UBO.addEntry("PCSCMatrix","mat4x4<f32>"),e.UBO.addEntry("SCVCMatrix","mat4x4<f32>"),e.UBO.addEntry("VCPCMatrix","mat4x4<f32>"),e.UBO.addEntry("WCVCNormals","mat4x4<f32>"),e.UBO.addEntry("viewportSize","vec2<f32>"),e.UBO.addEntry("LightCount","i32"),e.UBO.addEntry("MaxEnvironmentMipLevel","f32"),e.UBO.addEntry("BackgroundDiffuseStrength","f32"),e.UBO.addEntry("BackgroundSpecularStrength","f32"),e.UBO.addEntry("cameraParallel","u32"),e.SSBO=qL.newInstance({label:"rendererLightSSBO"}),e.lightTimeString="",e.bindGroup=Ine.newInstance({label:"rendererBG"}),e.bindGroup.setBindables([e.UBO,e.SSBO]),e.tmpMat4=Yn(new Float64Array(16)),e.stabilizedTime={},oi(e.stabilizedTime,{mtime:0}),co(t,e,["bindGroup","stabilizedTime"]),C0(t,e,["stabilizedCenter"]),Xa(t,e,["renderEncoder","selector","suppressClear","UBO"]),Eit(t,e)}const Ait=Kr(Dit,"vtkWebGPURenderer");_c("vtkRenderer",Ait);const{CoordinateSystem:X6}=Kb;function kit(t,e){e.classHierarchy.push("vtkWebGPUActor"),t.buildPass=n=>{n&&(e.WebGPURenderer=t.getFirstAncestorOfType("vtkWebGPURenderer"),e.WebGPURenderWindow=e.WebGPURenderer.getFirstAncestorOfType("vtkWebGPURenderWindow"),e.propID===void 0&&(e.propID=e.WebGPURenderWindow.getUniquePropID()),t.prepareNodes(),t.addMissingNode(e.renderable.getMapper()),t.removeUnusedNodes())},t.traverseOpaquePass=n=>{!e.renderable||!e.renderable.getNestedVisibility()||!e.renderable.getIsOpaque()||e.WebGPURenderer.getSelector()&&!e.renderable.getNestedPickable()||(t.apply(n,!0),e.children[0]&&e.children[0].traverse(n),t.apply(n,!1))},t.traverseTranslucentPass=n=>{!e.renderable||!e.renderable.getNestedVisibility()||e.renderable.getIsOpaque()||e.WebGPURenderer.getSelector()&&!e.renderable.getNestedPickable()||(t.apply(n,!0),e.children[0]&&e.children[0].traverse(n),t.apply(n,!1))},t.queryPass=(n,r)=>{if(n){if(!e.renderable||!e.renderable.getVisibility())return;e.renderable.getIsOpaque()?r.incrementOpaqueActorCount():r.incrementTranslucentActorCount()}},t.getBufferShift=n=>(t.getKeyMatrices(n),e.bufferShift),t.getKeyMatrices=n=>{if(Math.max(e.renderable.getMTime(),n.getStabilizedTime())>e.keyMatricesTime.getMTime()){e.renderable.computeMatrix();const r=e.renderable.getMatrix();e.bufferShift[0]=r[3],e.bufferShift[1]=r[7],e.bufferShift[2]=r[11];const a=n.getStabilizedCenterByReference();e.renderable.getCoordinateSystem()===X6.WORLD&&(e.bufferShift[0]-=a[0],e.bufferShift[1]-=a[1],e.bufferShift[2]-=a[2]),ea(e.keyMatrices.bcwc,r),e.renderable.getIsIdentity()?Yn(e.keyMatrices.normalMatrix):(di(e.keyMatrices.normalMatrix,e.keyMatrices.bcwc),e.keyMatrices.normalMatrix[3]=0,e.keyMatrices.normalMatrix[7]=0,e.keyMatrices.normalMatrix[11]=0,eo(e.keyMatrices.normalMatrix,e.keyMatrices.normalMatrix),ea(e.keyMatrices.normalMatrix,e.keyMatrices.normalMatrix)),xa(e.keyMatrices.bcwc,e.keyMatrices.bcwc,[-e.bufferShift[0],-e.bufferShift[1],-e.bufferShift[2]]),e.renderable.getCoordinateSystem()===X6.WORLD?xa(e.keyMatrices.bcsc,e.keyMatrices.bcwc,[-a[0],-a[1],-a[2]]):di(e.keyMatrices.bcsc,e.keyMatrices.bcwc),e.keyMatricesTime.modified()}return e.keyMatrices}}const Rit={keyMatricesTime:null,keyMatrices:null,propID:void 0,bufferShift:void 0};function Lit(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Rit,n),Sa.extend(t,e,n),e.keyMatricesTime={},J.obj(e.keyMatricesTime,{mtime:0}),e.keyMatrices={normalMatrix:new Float64Array(16),bcwc:new Float64Array(16),bcsc:new Float64Array(16)},J.get(t,e,["propID","keyMatricesTime"]),e.bufferShift=[0,0,0,0],kit(t,e)}const Oit=J.newInstance(Lit);_c("vtkActor",Oit);const{CoordinateSystem:q6}=Kb;function Vit(t,e){e.classHierarchy.push("vtkWebGPUActor2D"),t.buildPass=n=>{n&&(e.WebGPURenderer=t.getFirstAncestorOfType("vtkWebGPURenderer"),e.WebGPURenderWindow=e.WebGPURenderer.getFirstAncestorOfType("vtkWebGPURenderWindow"),e.propID===void 0&&(e.propID=e.WebGPURenderWindow.getUniquePropID()),t.prepareNodes(),t.addMissingNode(e.renderable.getMapper()),t.removeUnusedNodes())},t.traverseOpaquePass=n=>{!e.renderable||!e.renderable.getNestedVisibility()||!e.renderable.getIsOpaque()||e.WebGPURenderer.getSelector()&&!e.renderable.getNestedPickable()||(t.apply(n,!0),e.children[0]&&e.children[0].traverse(n),t.apply(n,!1))},t.traverseTranslucentPass=n=>{!e.renderable||!e.renderable.getNestedVisibility()||e.renderable.getIsOpaque()||e.WebGPURenderer.getSelector()&&!e.renderable.getNestedPickable()||(t.apply(n,!0),e.children[0]&&e.children[0].traverse(n),t.apply(n,!1))},t.queryPass=(n,r)=>{if(n){if(!e.renderable||!e.renderable.getVisibility())return;e.renderable.getIsOpaque()?r.incrementOpaqueActorCount():r.incrementTranslucentActorCount()}},t.getBufferShift=n=>(t.getKeyMatrices(n),e.bufferShift),t.getKeyMatrices=n=>{if(Math.max(e.renderable.getMTime(),n.getStabilizedTime())>e.keyMatricesTime.getMTime()){e.bufferShift[0]=0,e.bufferShift[1]=0,e.bufferShift[2]=0;const r=n.getStabilizedCenterByReference();e.renderable.getCoordinateSystem()===q6.WORLD&&(e.bufferShift[0]-=r[0],e.bufferShift[1]-=r[1],e.bufferShift[2]-=r[2]),Yn(e.keyMatrices.bcwc),Yn(e.keyMatrices.normalMatrix),xa(e.keyMatrices.bcwc,e.keyMatrices.bcwc,[-e.bufferShift[0],-e.bufferShift[1],-e.bufferShift[2]]),e.renderable.getCoordinateSystem()===q6.WORLD?xa(e.keyMatrices.bcsc,e.keyMatrices.bcwc,[-r[0],-r[1],-r[2]]):di(e.keyMatrices.bcsc,e.keyMatrices.bcwc),e.keyMatricesTime.modified()}return e.keyMatrices}}const Nit={keyMatricesTime:null,keyMatrices:null,propID:void 0,bufferShift:void 0};function Iit(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Nit,n),Sa.extend(t,e,n),e.keyMatricesTime={},J.obj(e.keyMatricesTime,{mtime:0}),e.keyMatrices={normalMatrix:new Float64Array(16),bcwc:new Float64Array(16),bcsc:new Float64Array(16)},J.get(t,e,["propID","keyMatricesTime"]),e.bufferShift=[0,0,0,0],Vit(t,e)}const Bit=J.newInstance(Iit);_c("vtkActor2D",Bit);function $it(t,e){e.classHierarchy.push("vtkWebGPUCubeAxesActor"),t.buildPass=n=>{n&&(e.WebGPURenderer=t.getFirstAncestorOfType("vtkWebGPURenderer"),e.WebGPURenderWindow=e.WebGPURenderer.getParent(),e.CubeAxesActorHelper.getRenderable()||e.CubeAxesActorHelper.setRenderable(e.renderable),t.prepareNodes(),t.addMissingNode(e.CubeAxesActorHelper.getTmActor()),t.addMissingNode(e.renderable.getGridActor()),t.removeUnusedNodes())},t.opaquePass=(n,r)=>{if(n){const a=e.WebGPURenderer?e.WebGPURenderer.getRenderable().getActiveCamera():null,i=e.WebGPURenderer.getTiledSizeAndOrigin();e.CubeAxesActorHelper.updateAPISpecificData([i.usize,i.vsize],a,e.WebGPURenderWindow.getRenderable())}}}const Pit={};function Fit(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Pit,n),Sa.extend(t,e,n),e.CubeAxesActorHelper=fne.newCubeAxesActorHelper(),$it(t,e)}const zit=Kr(Fit,"vtkWebGPUCubeAxesActor");_c("vtkCubeAxesActor",zit);const{DisplayLocation:ZL}=Ane;function Uit(t,e){e.classHierarchy.push("vtkProperty2D"),t.setDisplayLocationToBackground=()=>t.setDisplayLocation(ZL.BACKGROUND),t.setDisplayLocationToForeground=()=>t.setDisplayLocation(ZL.FOREGROUND),t.setRepresentationToWireframe=()=>t.setRepresentation(ni.WIREFRAME),t.setRepresentationToSurface=()=>t.setRepresentation(ni.SURFACE),t.setRepresentationToPoints=()=>t.setRepresentation(ni.POINTS),t.getRepresentationAsString=()=>J.enumToString(ni,e.representation)}const Git={color:[1,1,1],opacity:1,pointSize:1,lineWidth:1,representation:ni.SURFACE,displayLocation:ZL.FOREGROUND};function Xne(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Git,n),J.obj(t,e),J.setGet(t,e,["opacity","lineWidth","pointSize","displayLocation","representation"]),J.setGetArray(t,e,["color"],3),Uit(t,e)}const Hit=J.newInstance(Xne,"vtkProperty2D");var Wit={newInstance:Hit,extend:Xne,...Ane};const{BufferUsage:qa,PrimitiveTypes:Fi}=ud,{Representation:pw}=T0,{ScalarMode:vw}=Pr,{CoordinateSystem:jit}=Kb,{DisplayLocation:Kit}=Wit,Yit=`
  438. //VTK::Renderer::Dec
  439. //VTK::Color::Dec
  440. //VTK::Normal::Dec
  441. //VTK::TCoord::Dec
  442. //VTK::Select::Dec
  443. //VTK::Mapper::Dec
  444. //VTK::IOStructs::Dec
  445. @vertex
  446. fn main(
  447. //VTK::IOStructs::Input
  448. )
  449. //VTK::IOStructs::Output
  450. {
  451. var output : vertexOutput;
  452. var vertex: vec4<f32> = vertexBC;
  453. //VTK::Color::Impl
  454. //VTK::Normal::Impl
  455. //VTK::TCoord::Impl
  456. //VTK::Select::Impl
  457. //VTK::Position::Impl
  458. return output;
  459. }
  460. `,Xit=`
  461. struct PBRData {
  462. diffuse: vec3<f32>,
  463. specular: vec3<f32>,
  464. }
  465. // Dot product with the max already in it
  466. fn mdot(a: vec3<f32>, b: vec3<f32>) -> f32 {
  467. return max(0.0, dot(a, b));
  468. }
  469. // Dot product with a max in it that does not allow for negative values
  470. // Physically based rendering is accurate as long as normals are accurate,
  471. // however this is pretty often not the case. In order to prevent negative
  472. // values from ruining light calculations and creating zones of zero light,
  473. // this remapping is used, which smoothly clamps the dot product between
  474. // zero and one while still maintaining a good amount of accuracy.
  475. fn cdot(a: vec3<f32>, b: vec3<f32>) -> f32 {
  476. var d: f32 = max(0.0, dot(a, b));
  477. d = pow((d + 1.0) / 2.0, 2.6);
  478. return d;
  479. }
  480. // Lambertian diffuse model
  481. fn lambertDiffuse(base: vec3<f32>, N: vec3<f32>, L: vec3<f32>) -> vec3<f32> {
  482. var pi: f32 = 3.14159265359;
  483. var NdotL: f32 = mdot(N, L);
  484. NdotL = pow(NdotL, 1.5);
  485. return (base/pi)*NdotL;
  486. }
  487. // Yasuhiro Fujii improvement on the Oren-Nayar model
  488. // https://mimosa-pudica.net/improved-oren-nayar.html
  489. // p is surface color, o is roughness
  490. fn fujiiOrenNayar(p: vec3<f32>, o: f32, N: vec3<f32>, L: vec3<f32>, V: vec3<f32>) -> vec3<f32> {
  491. var invpi: f32 = 0.31830988618; // 1/pi
  492. var o2 = o*o;
  493. var NdotL: f32 = mdot(N, L);
  494. NdotL = pow(NdotL, 1.5); // Less physically accurate, but hides the "seams" between lights better
  495. var NdotV: f32 = mdot(N, V);
  496. var LdotV: f32 = mdot(L, V);
  497. var s: f32 = LdotV - NdotL*NdotV;
  498. var t: f32 = mix(1.0, max(NdotL, NdotV), step(0.0, s)); // Mix with step is the equivalent of an if statement
  499. var A: vec3<f32> = 0.5*(o2 / (o2 + 0.33)) + 0.17*p*(o2 / (o2 + 0.13));
  500. A = invpi*(1 - A);
  501. var B: f32 = 0.45*(o2 / (o2 + 0.09));
  502. B = invpi*B;
  503. return p*NdotL*(A + B*(s/t));
  504. }
  505. // Fresnel portion of BRDF (IOR only, simplified)
  506. fn schlickFresnelIOR(V: vec3<f32>, N: vec3<f32>, ior: f32, k: f32) -> f32 {
  507. var NdotV: f32 = mdot(V, N);
  508. var F0: f32 = (pow((ior - 1.0), 2.0) + k*k) / (pow((ior + 1.0), 2.0) + k*k); // This takes into account the roughness, which the other one does not
  509. return F0 + (1.0 - F0) * pow((1.0-NdotV), 5.0);
  510. }
  511. // Fresnel portion of BRDF (Color ior, better)
  512. fn schlickFresnelRGB(V: vec3<f32>, N: vec3<f32>, F0: vec3<f32>) -> vec3<f32> {
  513. var NdotV: f32 = mdot(V, N);
  514. return F0 + (1.0 - F0) * pow((1-NdotV), 5.0);
  515. }
  516. // Normal portion of BRDF
  517. // https://learnopengl.com/PBR/Theory
  518. // Trowbridge-Reitz GGX functions: normal, halfway, roughness^2
  519. fn trGGX(N: vec3<f32>, H: vec3<f32>, a: f32) -> f32 {
  520. var pi: f32 = 3.14159265359;
  521. var a2: f32 = a*a;
  522. var NdotH = mdot(N, H);
  523. var NdotH2 = NdotH*NdotH;
  524. var denom: f32 = NdotH2 * (a2 - 1.0) + 1.0;
  525. return a2 / max((pi*denom*denom), 0.000001);
  526. }
  527. // A VERY bad approximation of anisotropy. Real anisotropic calculations require tangent and bitangent
  528. fn anisotrophicTrGGX(N: vec3<f32>, H: vec3<f32>, O: vec3<f32>, s: f32, a: f32) -> f32 {
  529. var Op: vec3<f32> = (rendererUBO.WCVCNormals * vec4<f32>(normalize(O) * s, 0.)).xyz;
  530. var ggx1: f32 = trGGX(N + Op*s, H, a);
  531. var ggx2: f32 = trGGX(N - Op*s, H, a);
  532. return (0.5 * ggx1 + 0.5 * ggx2);
  533. }
  534. // Geometry portion of BRDF
  535. fn schlickGGX(N: vec3<f32>, X: vec3<f32>, k: f32) -> f32 {
  536. var NdotX = cdot(N, X);
  537. return NdotX / max(0.000001, (NdotX*(1.0-k) + k));
  538. }
  539. fn smithSurfaceRoughness(N: vec3<f32>, V: vec3<f32>, L: vec3<f32>, k: f32) -> f32 {
  540. var ggx1: f32 = min(1.0, schlickGGX(N, V, k));
  541. var ggx2: f32 = min(1.0, schlickGGX(N, L, k));
  542. return ggx1*ggx2;
  543. }
  544. // BRDF Combination
  545. fn cookTorrance(D: f32, F: f32, G: f32, N: vec3<f32>, V: vec3<f32>, L: vec3<f32>) -> f32 {
  546. var num: f32 = D*F*G;
  547. var denom: f32 = 4*cdot(V, N)*cdot(L, N);
  548. return num / max(denom, 0.000001);
  549. }
  550. // Different lighting calculations for different light sources
  551. fn calcDirectionalLight(N: vec3<f32>, V: vec3<f32>, ior: f32, roughness: f32, metallic: f32, direction: vec3<f32>, color: vec3<f32>, base: vec3<f32>) -> PBRData {
  552. var L: vec3<f32> = normalize(direction); // Light Vector
  553. var H: vec3<f32> = normalize(L + V); // Halfway Vector
  554. var alpha = roughness*roughness;
  555. var k: f32 = alpha*alpha / 2;
  556. var D: f32 = trGGX(N, H, alpha); // Distribution
  557. // var F: f32 = schlickFresnelIOR(V, N, ior, k); // Fresnel
  558. var G: f32 = smithSurfaceRoughness(N, V, L, k); // Geometry
  559. var brdf: f32 = cookTorrance(D, 1.0, G, N, V, L); // Fresnel term is replaced with 1 because it is added later
  560. var incoming: vec3<f32> = color;
  561. var angle: f32 = mdot(L, N);
  562. angle = pow(angle, 1.5);
  563. var specular: vec3<f32> = brdf*incoming*angle;
  564. // Oren-Nayar gives a clay-like effect when fully rough which some people may not want, so it might be better to give a separate
  565. // control property for the diffuse vs specular roughness
  566. var diffuse: vec3<f32> = incoming*fujiiOrenNayar(base, roughness, N, L, V);
  567. // Stores the specular and diffuse separately to allow for finer post processing
  568. var out = PBRData(diffuse, specular);
  569. return out; // Returns angle along with color of light so the final color can be multiplied by angle as well (creates black areas)
  570. }
  571. // TODO: find some way to reduce the number of arguments going in here
  572. fn calcPointLight(N: vec3<f32>, V: vec3<f32>, fragPos: vec3<f32>, ior: f32, roughness: f32, metallic: f32, position: vec3<f32>, color: vec3<f32>, base: vec3<f32>) -> PBRData {
  573. var L: vec3<f32> = normalize(position - fragPos); // Light Vector
  574. var H: vec3<f32> = normalize(L + V); // Halfway Vector
  575. var dist = distance(position, fragPos);
  576. var alpha = roughness*roughness;
  577. var k: f32 = alpha*alpha / 2.0; // could also be pow(alpha + 1.0, 2) / 8
  578. var D: f32 = trGGX(N, H, alpha); // Distribution
  579. // var F: f32 = schlickFresnelIOR(V, N, ior, k); // Fresnel
  580. var G: f32 = smithSurfaceRoughness(N, V, L, k); // Geometry
  581. var brdf: f32 = cookTorrance(D, 1.0, G, N, V, L);
  582. var incoming: vec3<f32> = color * (1.0 / (dist*dist));
  583. var angle: f32 = mdot(L, N);
  584. angle = pow(angle, 1.5); // Smoothing factor makes it less accurate, but reduces ugly "seams" bewteen light sources
  585. var specular: vec3<f32> = brdf*incoming*angle;
  586. var diffuse: vec3<f32> = incoming*fujiiOrenNayar(base, roughness, N, L, V);
  587. // Stores the specular and diffuse separately to allow for finer post processing
  588. // Could also be done (propably more properly) with a struct
  589. var out = PBRData(diffuse, specular);
  590. return out; // Returns angle along with color of light so the final color can be multiplied by angle as well (creates black areas)
  591. }
  592. // For a reason unknown to me, spheres dont seem to behave propperly with head-on spot lights
  593. fn calcSpotLight(N: vec3<f32>, V: vec3<f32>, fragPos: vec3<f32>, ior: f32, roughness: f32, metallic: f32, position: vec3<f32>, direction: vec3<f32>, cones: vec2<f32>, color: vec3<f32>, base: vec3<f32>) -> PBRData {
  594. var L: vec3<f32> = normalize(position - fragPos);
  595. var H: vec3<f32> = normalize(L + V); // Halfway Vector
  596. var dist = distance(position, fragPos);
  597. var alpha = roughness*roughness;
  598. var k: f32 = alpha*alpha / 2.0; // could also be pow(alpha + 1.0, 2) / 8
  599. var D: f32 = trGGX(N, H, alpha); // Distribution
  600. // var F: f32 = schlickFresnelIOR(V, N, ior, k); // Fresnel
  601. var G: f32 = smithSurfaceRoughness(N, V, L, k); // Geometry
  602. var brdf: f32 = cookTorrance(D, 1.0, G, N, V, L);
  603. // Cones.x is the inner phi and cones.y is the outer phi
  604. var theta: f32 = mdot(normalize(direction), L);
  605. var epsilon: f32 = cones.x - cones.y;
  606. var intensity: f32 = (theta - cones.y) / epsilon;
  607. intensity = clamp(intensity, 0.0, 1.0);
  608. intensity /= dist*dist;
  609. var incoming: vec3<f32> = color * intensity;
  610. var angle: f32 = mdot(L, N);
  611. angle = pow(angle, 1.5); // Smoothing factor makes it less accurate, but reduces ugly "seams" bewteen light sources
  612. var specular: vec3<f32> = brdf*incoming*angle;
  613. var diffuse: vec3<f32> = incoming*fujiiOrenNayar(base, roughness, N, L, V);
  614. // Stores the specular and diffuse separately to allow for finer post processing
  615. // Could also be done (propably more properly) with a struct
  616. var out = PBRData(diffuse, specular);
  617. return out; // Returns angle along with color of light so the final color can be multiplied by angle as well (creates black areas)
  618. }
  619. // Environment mapping stuff
  620. // Takes in a vector and converts it to an equivalent coordinate in a rectilinear texture. Should be replaced with cubemaps at some point
  621. fn vecToRectCoord(dir: vec3<f32>) -> vec2<f32> {
  622. var tau: f32 = 6.28318530718;
  623. var pi: f32 = 3.14159265359;
  624. var out: vec2<f32> = vec2<f32>(0.0);
  625. out.x = atan2(dir.z, dir.x) / tau;
  626. out.x += 0.5;
  627. var phix: f32 = length(vec2(dir.x, dir.z));
  628. out.y = atan2(dir.y, phix) / pi + 0.5;
  629. return out;
  630. }
  631. //VTK::Renderer::Dec
  632. //VTK::Color::Dec
  633. //VTK::TCoord::Dec
  634. // optional surface normal declaration
  635. //VTK::Normal::Dec
  636. //VTK::Select::Dec
  637. //VTK::RenderEncoder::Dec
  638. //VTK::Mapper::Dec
  639. //VTK::IOStructs::Dec
  640. @fragment
  641. fn main(
  642. //VTK::IOStructs::Input
  643. )
  644. //VTK::IOStructs::Output
  645. {
  646. var output : fragmentOutput;
  647. // Temporary ambient, diffuse, and opacity
  648. var ambientColor: vec4<f32> = mapperUBO.AmbientColor;
  649. var diffuseColor: vec4<f32> = mapperUBO.DiffuseColor;
  650. var opacity: f32 = mapperUBO.Opacity;
  651. // This should be declared somewhere else
  652. var _diffuseMap: vec4<f32> = vec4<f32>(1.0);
  653. var _roughnessMap: vec4<f32> = vec4<f32>(1.0);
  654. var _metallicMap: vec4<f32> = vec4<f32>(1.0);
  655. var _normalMap: vec4<f32> = vec4<f32>(0.0, 0.0, 1.0, 0.0); // normal map was setting off the normal vector detection in fragment
  656. var _ambientOcclusionMap: vec4<f32> = vec4<f32>(1.);
  657. var _emissionMap: vec4<f32> = vec4<f32>(0.);
  658. //VTK::Color::Impl
  659. //VTK::TCoord::Impl
  660. //VTK::Normal::Impl
  661. var computedColor: vec4<f32> = vec4<f32>(diffuseColor.rgb, 1.0);
  662. //VTK::Light::Impl
  663. //VTK::Select::Impl
  664. if (computedColor.a == 0.0) { discard; };
  665. //VTK::Position::Impl
  666. //VTK::RenderEncoder::Impl
  667. return output;
  668. }
  669. `;function Z6(t){return t.indexOf("edge")>=0}function qit(t,e){e.classHierarchy.push("vtkWebGPUCellArrayMapper"),t.buildPass=n=>{n&&(e.is2D?(e.WebGPUActor=t.getFirstAncestorOfType("vtkWebGPUActor2D"),e.forceZValue=!0):(e.WebGPUActor=t.getFirstAncestorOfType("vtkWebGPUActor"),e.forceZValue=!1),e.coordinateSystem=e.WebGPUActor.getRenderable().getCoordinateSystem(),e.useRendererMatrix=e.coordinateSystem!==jit.DISPLAY,e.WebGPURenderer=e.WebGPUActor.getFirstAncestorOfType("vtkWebGPURenderer"),e.WebGPURenderWindow=e.WebGPURenderer.getParent(),e.device=e.WebGPURenderWindow.getDevice())},t.translucentPass=n=>{n&&(t.prepareToDraw(e.WebGPURenderer.getRenderEncoder()),e.renderEncoder.registerDrawCallback(e.pipeline,t.draw))},t.opaquePass=n=>{n&&(t.prepareToDraw(e.WebGPURenderer.getRenderEncoder()),e.renderEncoder.registerDrawCallback(e.pipeline,t.draw))},t.updateUBO=()=>{var i;const r=e.WebGPUActor.getRenderable().getProperty(),a=e.UBO.getSendTime();if(t.getMTime()>a||r.getMTime()>a||e.renderable.getMTime()>a){const o=e.WebGPUActor.getKeyMatrices(e.WebGPURenderer);if(e.UBO.setArray("BCWCMatrix",o.bcwc),e.UBO.setArray("BCSCMatrix",o.bcsc),e.UBO.setArray("MCWCNormals",o.normalMatrix),e.is2D){e.UBO.setValue("ZValue",e.WebGPUActor.getRenderable().getProperty().getDisplayLocation()===Kit.FOREGROUND?1:0);const u=r.getColorByReference();e.UBO.setValue("AmbientIntensity",1),e.UBO.setArray("DiffuseColor",[u[0],u[1],u[2],1]),e.UBO.setValue("DiffuseIntensity",0),e.UBO.setValue("SpecularIntensity",0)}else{let u=r.getAmbientColorByReference();e.UBO.setValue("AmbientIntensity",r.getAmbient()),e.UBO.setArray("AmbientColor",[u[0],u[1],u[2],1]),e.UBO.setValue("DiffuseIntensity",r.getDiffuse()),u=r.getDiffuseColorByReference(),e.UBO.setArray("DiffuseColor",[u[0],u[1],u[2],1]),e.UBO.setValue("Roughness",r.getRoughness()),e.UBO.setValue("BaseIOR",r.getBaseIOR()),e.UBO.setValue("Metallic",r.getMetallic()),e.UBO.setValue("NormalStrength",r.getNormalStrength()),e.UBO.setValue("Emission",r.getEmission()),e.UBO.setValue("SpecularIntensity",r.getSpecular()),u=r.getSpecularColorByReference(),e.UBO.setArray("SpecularColor",[u[0],u[1],u[2],1])}const s=(i=r.getEdgeColorByReference)==null?void 0:i.call(r);s&&e.UBO.setArray("EdgeColor",[s[0],s[1],s[2],1]),e.UBO.setValue("LineWidth",r.getLineWidth()),e.UBO.setValue("Opacity",r.getOpacity()),e.UBO.setValue("PropID",e.WebGPUActor.getPropID());const l=e.WebGPURenderWindow.getDevice();e.UBO.sendIfNeeded(l)}},t.haveWideLines=()=>{const n=e.WebGPUActor.getRenderable(),r=n.getProperty().getRepresentation();return n.getProperty().getLineWidth()<=1||e.primitiveType===Fi.Verts?!1:e.primitiveType===Fi.Triangles||e.primitiveType===Fi.TriangleStrips?r===pw.WIREFRAME:!0},t.replaceShaderPosition=(n,r,a)=>{const i=r.getShaderDescription("vertex");i.addBuiltinOutput("vec4<f32>","@builtin(position) Position"),i.hasOutput("vertexVC")||i.addOutput("vec4<f32>","vertexVC");let o=i.getCode();e.useRendererMatrix?(o=In.substitute(o,"//VTK::Position::Impl",[" var pCoord: vec4<f32> = rendererUBO.SCPCMatrix*mapperUBO.BCSCMatrix*vertexBC;"," output.vertexVC = rendererUBO.SCVCMatrix * mapperUBO.BCSCMatrix * vec4<f32>(vertexBC.xyz, 1.0);","//VTK::Position::Impl"]).result,e.forceZValue&&(o=In.substitute(o,"//VTK::Position::Impl",["pCoord = vec4<f32>(pCoord.xyz/pCoord.w, 1.0);","pCoord.z = mapperUBO.ZValue;","//VTK::Position::Impl"]).result)):(o=In.substitute(o,"//VTK::Position::Impl",[" var pCoord: vec4<f32> = mapperUBO.BCSCMatrix*vertexBC;"," pCoord.x = 2.0* pCoord.x / rendererUBO.viewportSize.x - 1.0;"," pCoord.y = 2.0* pCoord.y / rendererUBO.viewportSize.y - 1.0;"," pCoord.z = 0.5 - 0.5 * pCoord.z;","//VTK::Position::Impl"]).result,e.forceZValue&&(o=In.substitute(o,"//VTK::Position::Impl",[" pCoord.z = mapperUBO.ZValue;","//VTK::Position::Impl"]).result)),t.haveWideLines()&&(i.addBuiltinInput("u32","@builtin(instance_index) instanceIndex"),o=In.substitute(o,"//VTK::Position::Impl",[" var tmpPos: vec4<f32> = pCoord;"," var numSteps: f32 = ceil(mapperUBO.LineWidth - 1.0);"," var offset: f32 = (mapperUBO.LineWidth - 1.0) * (f32(input.instanceIndex / 2u) - numSteps/2.0) / numSteps;"," var tmpPos2: vec3<f32> = tmpPos.xyz / tmpPos.w;"," tmpPos2.x = tmpPos2.x + 2.0 * (f32(input.instanceIndex) % 2.0) * offset / rendererUBO.viewportSize.x;"," tmpPos2.y = tmpPos2.y + 2.0 * (f32(input.instanceIndex + 1u) % 2.0) * offset / rendererUBO.viewportSize.y;"," tmpPos2.z = min(1.0, tmpPos2.z + 0.00001);"," pCoord = vec4<f32>(tmpPos2.xyz * tmpPos.w, tmpPos.w);","//VTK::Position::Impl"]).result),o=In.substitute(o,"//VTK::Position::Impl",[" output.Position = pCoord;"]).result,i.setCode(o)},e.shaderReplacements.set("replaceShaderPosition",t.replaceShaderPosition),t.replaceShaderNormal=(n,r,a)=>{const i=a.getBuffer("normalMC"),o=e.WebGPUActor.getRenderable();if(i){const s=r.getShaderDescription("vertex");s.hasOutput("normalVC")||s.addOutput("vec3<f32>","normalVC",i.getArrayInformation()[0].interpolation),s.hasOutput("tangentVC")||s.addOutput("vec3<f32>","tangentVC",i.getArrayInformation()[0].interpolation),s.hasOutput("bitangentVC")||s.addOutput("vec3<f32>","bitangentVC",i.getArrayInformation()[0].interpolation);let l=s.getCode();l=In.substitute(l,"//VTK::Normal::Impl",[" output.normalVC = normalize((rendererUBO.WCVCNormals * mapperUBO.MCWCNormals * normalMC).xyz);"," var c1: vec3<f32> = cross(output.normalVC, vec3<f32>(0, 0, 1));"," var c2: vec3<f32> = cross(output.normalVC, vec3<f32>(0, 1, 0));"," var tangent: vec3<f32> = mix(c1, c2, distance(c1, c2));"," output.tangentVC = normalize(tangent);"," output.bitangentVC = normalize(cross(output.normalVC, tangent));"]).result,s.setCode(l);const u=r.getShaderDescription("fragment");l=u.getCode(),o.getProperty().getNormalTexture()?l=In.substitute(l,"//VTK::Normal::Impl",[" var normal: vec3<f32> = input.normalVC;"," if (!input.frontFacing) { normal = -normal; }"," var tangent: vec3<f32> = input.tangentVC;"," var bitangent: vec3<f32> = input.bitangentVC;"," var TCVCMatrix: mat3x3<f32> = mat3x3<f32>("," tangent.x, bitangent.x, normal.x,"," tangent.y, bitangent.y, normal.y,"," tangent.z, bitangent.z, normal.z,"," );"," var mappedNormal: vec3<f32> = TCVCMatrix * (_normalMap.xyz * 2 - 1);"," normal = mix(normal, mappedNormal, mapperUBO.NormalStrength);"," normal = normalize(normal);"]).result:l=In.substitute(l,"//VTK::Normal::Impl",[" var normal: vec3<f32> = input.normalVC;"," if (!input.frontFacing) { normal = -normal; }"," normal = normalize(normal);"]).result,u.setCode(l)}},e.shaderReplacements.set("replaceShaderNormal",t.replaceShaderNormal),t.replaceShaderLight=(n,r,a)=>{var u;if(n.includes("sel"))return;const i=r.getShaderDescription("vertex");i.hasOutput("vertexVC")||i.addOutput("vec4<f32>","vertexVC");const o=e.WebGPURenderer.getRenderable(),s=r.getShaderDescription("fragment");let l=s.getCode();if(l.includes("var normal:")&&e.useRendererMatrix&&!Z6(n)&&!e.is2D&&!n.includes("sel")){const c=[" var pi: f32 = 3.14159265359;"," var fragPos: vec3<f32> = vec3<f32>(input.vertexVC.xyz);"," var V: vec3<f32> = mix(normalize(-fragPos), vec3<f32>(0, 0, 1), f32(rendererUBO.cameraParallel)); // View Vector"," var baseColor: vec3<f32> = _diffuseMap.rgb * diffuseColor.rgb;"," var roughness: f32 = max(0.000001, mapperUBO.Roughness * _roughnessMap.r);"," var metallic: f32 = mapperUBO.Metallic * _metallicMap.r;"," var alpha: f32 = roughness*roughness;"," var ior: f32 = mapperUBO.BaseIOR;"," var k: f32 = alpha*alpha / 2;"," var diffuse: vec3<f32> = vec3<f32>(0.);"," var specular: vec3<f32> = vec3<f32>(0.);"," var emission: vec3<f32> = _emissionMap.rgb * mapperUBO.Emission;"," {"," var i: i32 = 0;"," loop {"," if !(i < rendererUBO.LightCount) { break; }"," switch (i32(rendererLightSSBO.values[i].LightData.x)) {"," // Point Light"," case 0 {"," var color: vec3<f32> = rendererLightSSBO.values[i].LightColor.rgb * rendererLightSSBO.values[i].LightColor.w;"," var pos: vec3<f32> = (rendererLightSSBO.values[i].LightPos).xyz;"," var calculated: PBRData = calcPointLight(normal, V, fragPos, ior, roughness, metallic, pos, color, baseColor);"," diffuse += max(vec3<f32>(0), calculated.diffuse);"," specular += max(vec3<f32>(0), calculated.specular);"," }"," // Directional light"," case 1 {"," var dir: vec3<f32> = (rendererUBO.WCVCNormals * vec4<f32>(normalize(rendererLightSSBO.values[i].LightDir.xyz), 0.)).xyz;"," dir = normalize(dir);"," var color: vec3<f32> = rendererLightSSBO.values[i].LightColor.rgb * rendererLightSSBO.values[i].LightColor.w;"," var calculated: PBRData = calcDirectionalLight(normal, V, ior, roughness, metallic, dir, color, baseColor); // diffuseColor.rgb needs to be fixed with a more dynamic diffuse color"," diffuse += max(vec3<f32>(0), calculated.diffuse);"," specular += max(vec3<f32>(0), calculated.specular);"," }"," // Spot Light"," case 2 {"," var color: vec3<f32> = rendererLightSSBO.values[i].LightColor.rgb * rendererLightSSBO.values[i].LightColor.w;"," var pos: vec3<f32> = (rendererLightSSBO.values[i].LightPos).xyz;"," var dir: vec3<f32> = (rendererUBO.WCVCNormals * vec4<f32>(normalize(rendererLightSSBO.values[i].LightDir.xyz), 0.)).xyz;"," dir = normalize(dir);"," var cones: vec2<f32> = vec2<f32>(rendererLightSSBO.values[i].LightData.y, rendererLightSSBO.values[i].LightData.z);"," var calculated: PBRData = calcSpotLight(normal, V, fragPos, ior, roughness, metallic, pos, dir, cones, color, baseColor);"," diffuse += max(vec3<f32>(0), calculated.diffuse);"," specular += max(vec3<f32>(0), calculated.specular);"," }"," default { continue; }"," }"," continuing { i++; }"," }"," }"," var fresnel: f32 = schlickFresnelIOR(V, normal, ior, k); // Fresnel"," fresnel = min(1.0, fresnel);"," // This could be controlled with its own variable (that isnt base color) for better artistic control"," var fresnelMetallic: vec3<f32> = schlickFresnelRGB(V, normal, baseColor); // Fresnel for metal, takes color into account"," var kS: vec3<f32> = mix(vec3<f32>(fresnel), fresnelMetallic, metallic);"," kS = min(vec3<f32>(1.0), kS);"," var kD: vec3<f32> = (1.0 - kS) * (1.0 - metallic);"," var PBR: vec3<f32> = mapperUBO.DiffuseIntensity*kD*diffuse + kS*specular;"," PBR += emission;"," computedColor = vec4<f32>(PBR, mapperUBO.Opacity);"];(u=o.getEnvironmentTexture())!=null&&u.getImageLoaded()&&c.push(" // To get diffuse IBL, the texture is sampled with normals in worldspace"," var diffuseIBLCoords: vec3<f32> = (transpose(rendererUBO.WCVCNormals) * vec4<f32>(normal, 1.)).xyz;"," var diffuseCoords: vec2<f32> = vecToRectCoord(diffuseIBLCoords);"," // To get specular IBL, the texture is sampled as the worldspace reflection between the normal and view vectors"," // Reflections are first calculated in viewspace, then converted to worldspace to sample the environment"," var VreflN: vec3<f32> = normalize(reflect(-V, normal));"," var reflectionIBLCoords = (transpose(rendererUBO.WCVCNormals) * vec4<f32>(VreflN, 1.)).xyz;"," var specularCoords: vec2<f32> = vecToRectCoord(reflectionIBLCoords);"," var diffuseIBL = textureSampleLevel(EnvironmentTexture, EnvironmentTextureSampler, diffuseCoords, rendererUBO.MaxEnvironmentMipLevel);"," var level = roughness * rendererUBO.MaxEnvironmentMipLevel;"," var specularIBL = textureSampleLevel(EnvironmentTexture, EnvironmentTextureSampler, specularCoords, level);"," var specularIBLContribution: vec3<f32> = specularIBL.rgb*rendererUBO.BackgroundSpecularStrength;"," computedColor += vec4<f32>(specularIBLContribution*kS, 0);"," var diffuseIBLContribution: vec3<f32> = diffuseIBL.rgb*rendererUBO.BackgroundDiffuseStrength;"," diffuseIBLContribution *= baseColor * _ambientOcclusionMap.rgb;"," computedColor += vec4<f32>(diffuseIBLContribution*kD, 0);"),l=In.substitute(l,"//VTK::Light::Impl",c).result,s.setCode(l)}else l=In.substitute(l,"//VTK::Light::Impl",[" var diffuse: vec3<f32> = diffuseColor.rgb;"," var specular: vec3<f32> = mapperUBO.SpecularColor.rgb * mapperUBO.SpecularColor.a;"," computedColor = vec4<f32>(diffuse * _diffuseMap.rgb, mapperUBO.Opacity);"]).result,s.setCode(l)},e.shaderReplacements.set("replaceShaderLight",t.replaceShaderLight),t.replaceShaderColor=(n,r,a)=>{if(Z6(n)){const u=r.getShaderDescription("fragment");let c=u.getCode();c=In.substitute(c,"//VTK::Color::Impl",["ambientColor = mapperUBO.EdgeColor;","diffuseColor = mapperUBO.EdgeColor;"]).result,u.setCode(c);return}const i=a.getBuffer("colorVI");if(!i)return;const o=r.getShaderDescription("vertex");o.addOutput("vec4<f32>","color",i.getArrayInformation()[0].interpolation);let s=o.getCode();s=In.substitute(s,"//VTK::Color::Impl",[" output.color = colorVI;"]).result,o.setCode(s);const l=r.getShaderDescription("fragment");s=l.getCode(),s=In.substitute(s,"//VTK::Color::Impl",["ambientColor = input.color;","diffuseColor = input.color;","opacity = mapperUBO.Opacity * input.color.a;"]).result,l.setCode(s)},e.shaderReplacements.set("replaceShaderColor",t.replaceShaderColor),t.replaceShaderTCoord=(n,r,a)=>{var h,p,v,g,y,m,S,w,C,_,x,T,M,E,A,k,L,I,P,F;if(!a.hasAttribute("tcoord"))return;const i=r.getShaderDescription("vertex"),o=a.getBuffer("tcoord"),s=ti.getNumberOfComponentsFromBufferFormat(o.getArrayInformation()[0].format);let l=i.getCode();i.addOutput(`vec${s}<f32>`,"tcoordVS"),l=In.substitute(l,"//VTK::TCoord::Impl",[" output.tcoordVS = tcoord;"]).result,i.setCode(l);const u=r.getShaderDescription("fragment");l=u.getCode();const c=e.WebGPUActor.getRenderable(),f=$=>$?$.getDimensionality()===s:!1,d=[];((v=(p=(h=c.getProperty()).getDiffuseTexture)==null?void 0:p.call(h))!=null&&v.getImageLoaded()||c.getTextures()[0]||e.colorTexture)&&(f((y=(g=c.getProperty()).getDiffuseTexture)==null?void 0:y.call(g))||f(c.getTextures()[0])||f(e.colorTexture))&&d.push("_diffuseMap = textureSample(DiffuseTexture, DiffuseTextureSampler, input.tcoordVS);"),(w=(S=(m=c.getProperty()).getRoughnessTexture)==null?void 0:S.call(m))!=null&&w.getImageLoaded()&&f(c.getProperty().getRoughnessTexture())&&d.push("_roughnessMap = textureSample(RoughnessTexture, RoughnessTextureSampler, input.tcoordVS);"),(x=(_=(C=c.getProperty()).getMetallicTexture)==null?void 0:_.call(C))!=null&&x.getImageLoaded()&&f(c.getProperty().getMetallicTexture())&&d.push("_metallicMap = textureSample(MetallicTexture, MetallicTextureSampler, input.tcoordVS);"),(E=(M=(T=c.getProperty()).getNormalTexture)==null?void 0:M.call(T))!=null&&E.getImageLoaded()&&f(c.getProperty().getNormalTexture())&&d.push("_normalMap = textureSample(NormalTexture, NormalTextureSampler, input.tcoordVS);"),(L=(k=(A=c.getProperty()).getAmbientOcclusionTexture)==null?void 0:k.call(A))!=null&&L.getImageLoaded()&&f(c.getProperty().getAmbientOcclusionTexture())&&d.push("_ambientOcclusionMap = textureSample(AmbientOcclusionTexture, AmbientOcclusionTextureSampler, input.tcoordVS);"),(F=(P=(I=c.getProperty()).getEmissionTexture)==null?void 0:P.call(I))!=null&&F.getImageLoaded()&&f(c.getProperty().getEmissionTexture())&&d.push("_emissionMap = textureSample(EmissionTexture, EmissionTextureSampler, input.tcoordVS);"),l=In.substitute(l,"//VTK::TCoord::Impl",d).result,u.setCode(l)},e.shaderReplacements.set("replaceShaderTCoord",t.replaceShaderTCoord),t.replaceShaderSelect=(n,r,a)=>{if(n.includes("sel")){const i=r.getShaderDescription("fragment");let o=i.getCode();o=In.substitute(o,"//VTK::Select::Impl",[" var compositeID: u32 = 0u;"]).result,i.setCode(o)}},e.shaderReplacements.set("replaceShaderSelect",t.replaceShaderSelect),t.getUsage=(n,r)=>n===pw.POINTS||r===Fi.Points?qa.Verts:r===Fi.Lines?qa.Lines:n===pw.WIREFRAME?r===Fi.Triangles?qa.LinesFromTriangles:qa.LinesFromStrips:r===Fi.Triangles?qa.Triangles:r===Fi.TriangleStrips?qa.Strips:r===Fi.TriangleEdges?qa.LinesFromTriangles:qa.LinesFromStrips,t.getHashFromUsage=n=>`pt${n}`,t.getTopologyFromUsage=n=>{switch(n){case qa.Triangles:return"triangle-list";case qa.Verts:return"point-list";case qa.Lines:default:return"line-list"}},t.buildVertexInput=()=>{var v,g;const n=e.currentInput,r=e.cellArray,a=e.primitiveType;let o=e.WebGPUActor.getRenderable().getProperty().getRepresentation();const s=e.WebGPURenderWindow.getDevice();let l=!1;a===Fi.TriangleEdges&&(l=!0,o=pw.WIREFRAME);const u=e.vertexInput,c=n.getPoints();let f;if(r){const y={hash:`R${o}P${a}${r.getMTime()}`,usage:qa.Index,cells:r,numberOfPoints:c.getNumberOfPoints(),primitiveType:a,representation:o};f=s.getBufferManager().getBuffer(y),u.setIndexBuffer(f)}else u.setIndexBuffer(null);if(c){const y=e.WebGPUActor.getBufferShift(e.WebGPURenderer),m={hash:`${c.getMTime()}I${f.getMTime()}${y.join()}float32x4`,usage:qa.PointArray,format:"float32x4",dataArray:c,indexBuffer:f,shift:y,packExtra:!0},S=s.getBufferManager().getBuffer(m);u.addBuffer(S,["vertexBC"])}else u.removeBufferIfPresent("vertexBC");const d=t.getUsage(o,a);if(e._usesCellNormals=!1,!e.is2D&&(d===qa.Triangles||d===qa.Strips)){const y=n.getPointData().getNormals(),m={format:"snorm8x4",indexBuffer:f,packExtra:!0,shift:0,scale:127};if(y){m.hash=`${y.getMTime()}I${f.getMTime()}snorm8x4`,m.dataArray=y,m.usage=qa.PointArray;const S=s.getBufferManager().getBuffer(m);u.addBuffer(S,["normalMC"])}else if(a===Fi.Triangles){e._usesCellNormals=!0,m.hash=`PFN${c.getMTime()}I${f.getMTime()}snorm8x4`,m.dataArray=c,m.cells=r,m.usage=qa.NormalsFromPoints;const S=s.getBufferManager().getBuffer(m);u.addBuffer(S,["normalMC"])}else u.removeBufferIfPresent("normalMC")}else u.removeBufferIfPresent("normalMC");let h=!1;if(e.renderable.getScalarVisibility()){const y=e.renderable.getColorMapColors();if(y&&!l){const m=e.renderable.getScalarMode();let S=!1;(m===vw.USE_CELL_DATA||m===vw.USE_CELL_FIELD_DATA||m===vw.USE_FIELD_DATA||!n.getPointData().getScalars())&&m!==vw.USE_POINT_FIELD_DATA&&y&&(S=!0);const w={usage:qa.PointArray,format:"unorm8x4",hash:`${S}${y.getMTime()}I${f.getMTime()}unorm8x4`,dataArray:y,indexBuffer:f,cellData:S,cellOffset:0},C=s.getBufferManager().getBuffer(w);u.addBuffer(C,["colorVI"]),h=!0}}h||u.removeBufferIfPresent("colorVI");let p=null;if((g=(v=e.renderable).getInterpolateScalarsBeforeMapping)!=null&&g.call(v)&&e.renderable.getColorCoordinates()?p=e.renderable.getColorCoordinates():p=n.getPointData().getTCoords(),p&&!l){const y=s.getBufferManager().getBufferForPointArray(p,u.getIndexBuffer());u.addBuffer(y,["tcoord"])}else u.removeBufferIfPresent("tcoord")},t.updateTextures=()=>{var l,u,c,f,d,h,p,v,g,y,m,S,w,C,_;const n=[],r=[],a=(u=(l=e.renderable).getColorTextureMap)==null?void 0:u.call(l);a&&(e.colorTexture||(e.colorTexture=Yb.newInstance({label:"polyDataColor"})),e.colorTexture.setInputData(a),r.push(["Diffuse",e.colorTexture]));const i=e.WebGPUActor.getRenderable(),o=e.WebGPURenderer.getRenderable(),s=[];if((f=(c=i.getProperty()).getDiffuseTexture)!=null&&f.call(c)){const x=["Diffuse",i.getProperty().getDiffuseTexture()];s.push(x)}if(i.getTextures()[0]){const x=["Diffuse",i.getTextures()[0]];s.push(x)}if(e.colorTexture){const x=["Diffuse",e.colorTexture];s.push(x)}if((h=(d=i.getProperty()).getRoughnessTexture)!=null&&h.call(d)){const x=["Roughness",i.getProperty().getRoughnessTexture()];s.push(x)}if((v=(p=i.getProperty()).getMetallicTexture)!=null&&v.call(p)){const x=["Metallic",i.getProperty().getMetallicTexture()];s.push(x)}if((y=(g=i.getProperty()).getNormalTexture)!=null&&y.call(g)){const x=["Normal",i.getProperty().getNormalTexture()];s.push(x)}if((S=(m=i.getProperty()).getAmbientOcclusionTexture)!=null&&S.call(m)){const x=["AmbientOcclusion",i.getProperty().getAmbientOcclusionTexture()];s.push(x)}if((C=(w=i.getProperty()).getEmissionTexture)!=null&&C.call(w)){const x=["Emission",i.getProperty().getEmissionTexture()];s.push(x)}if((_=o.getEnvironmentTexture)!=null&&_.call(o)){const x=["Environment",o.getEnvironmentTexture()];s.push(x)}for(let x=0;x<s.length;x++)(s[x][1].getInputData()||s[x][1].getJsImageData()||s[x][1].getCanvas())&&r.push(s[x]),s[x][1].getImage()&&s[x][1].getImageLoaded()&&r.push(s[x]);for(let x=0;x<r.length;x++){const T=r[x][1],M=r[x][0],E=e.device.getTextureManager().getTextureForVTKTexture(T);if(E.getReady()){let A=!1;for(let k=0;k<e.textures.length;k++)e.textures[k]===E&&(A=!0,n[k]=!0);if(!A){n[e.textures.length]=!0;const k=E.createView(`${M}Texture`);e.textures.push(E),e.textureViews.push(k);const L=T.getInterpolate()?"linear":"nearest";let I=null;!I&&T.getEdgeClamp()&&T.getRepeat()&&(I="mirror-repeat"),!I&&T.getEdgeClamp()&&(I="clamp-to-edge"),!I&&T.getRepeat()&&(I="repeat"),M!=="Environment"?k.addSampler(e.device,{addressModeU:I,addressModeV:I,addressModeW:I,minFilter:L,magFilter:L}):k.addSampler(e.device,{addressModeU:"repeat",addressModeV:"clamp-to-edge",addressModeW:"repeat",minFilter:L,magFilter:L,mipmapFilter:"linear"})}}}for(let x=e.textures.length-1;x>=0;x--)n[x]||(e.textures.splice(x,1),e.textureViews.splice(x,1))},t.computePipelineHash=()=>{let n=`pd${e.useRendererMatrix?"r":""}${e.forceZValue?"z":""}`;if(e.primitiveType===Fi.TriangleEdges||e.primitiveType===Fi.TriangleStripEdges)n+="edge";else{if(e.vertexInput.hasAttribute("normalMC")&&(n+="n"),e.vertexInput.hasAttribute("colorVI")&&(n+="c"),e.vertexInput.hasAttribute("tcoord")){const a=e.vertexInput.getBuffer("tcoord"),i=ti.getNumberOfComponentsFromBufferFormat(a.getArrayInformation()[0].format);n+=`t${i}`}e.textures.length&&(n+=`tx${e.textures.length}`)}e._usesCellNormals&&(n+="cn"),e.SSBO&&(n+="ssbo");const r=t.getHashFromUsage(e.usage);n+=r,n+=e.renderEncoder.getPipelineHash(),e.pipelineHash=n},t.updateBuffers=()=>{e.primitiveType!==Fi.TriangleEdges&&e.primitiveType!==Fi.TriangleStripEdges&&t.updateTextures();const n=e.WebGPUActor.getRenderable(),r=n.getProperty().getRepresentation();e.usage=t.getUsage(r,e.primitiveType),t.buildVertexInput();const a=e.vertexInput.getBuffer("vertexBC");if(t.setNumberOfVertices(a.getSizeInBytes()/a.getStrideInBytes()),t.setTopology(t.getTopologyFromUsage(e.usage)),t.updateUBO(),t.haveWideLines()){const i=n.getProperty();t.setNumberOfInstances(Math.ceil(i.getLineWidth()*2))}else t.setNumberOfInstances(1)}}const Zit={is2D:!1,cellArray:null,currentInput:null,cellOffset:0,primitiveType:0,colorTexture:null,renderEncoder:null,textures:null};function qne(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Zit,n),IN.extend(t,e,n),e.fragmentShaderTemplate=Xit,e.vertexShaderTemplate=Yit,e._tmpMat3=Vp(new Float64Array(9)),e._tmpMat4=Yn(new Float64Array(16)),e.UBO=np.newInstance({label:"mapperUBO"}),e.UBO.addEntry("BCWCMatrix","mat4x4<f32>"),e.UBO.addEntry("BCSCMatrix","mat4x4<f32>"),e.UBO.addEntry("MCWCNormals","mat4x4<f32>"),e.UBO.addEntry("AmbientColor","vec4<f32>"),e.UBO.addEntry("DiffuseColor","vec4<f32>"),e.UBO.addEntry("EdgeColor","vec4<f32>"),e.UBO.addEntry("SpecularColor","vec4<f32>"),e.UBO.addEntry("AmbientIntensity","f32"),e.UBO.addEntry("DiffuseIntensity","f32"),e.UBO.addEntry("Roughness","f32"),e.UBO.addEntry("Metallic","f32"),e.UBO.addEntry("Ambient","f32"),e.UBO.addEntry("Normal","f32"),e.UBO.addEntry("Emission","f32"),e.UBO.addEntry("NormalStrength","f32"),e.UBO.addEntry("BaseIOR","f32"),e.UBO.addEntry("SpecularIntensity","f32"),e.UBO.addEntry("LineWidth","f32"),e.UBO.addEntry("Opacity","f32"),e.UBO.addEntry("ZValue","f32"),e.UBO.addEntry("PropID","u32"),e.UBO.addEntry("ClipNear","f32"),e.UBO.addEntry("ClipFar","f32"),e.UBO.addEntry("Time","u32"),Xa(t,e,["cellArray","currentInput","cellOffset","is2D","primitiveType","renderEncoder"]),e.textures=[],qit(t,e)}const Qit=Kr(qne,"vtkWebGPUCellArrayMapper");var Zne={newInstance:Qit,extend:qne};const{PrimitiveTypes:gw}=ud;function Jit(t,e){e.classHierarchy.push("vtkWebGPUPolyDataMapper"),t.createCellArrayMapper=()=>Zne.newInstance(),t.buildPass=n=>{if(n){e.WebGPUActor=t.getFirstAncestorOfType("vtkWebGPUActor"),e.renderable.getStatic()||e.renderable.update();const r=e.renderable.getInputData();e.renderable.mapScalars(r,1),t.updateCellArrayMappers(r)}},t.updateCellArrayMappers=n=>{const r=[n.getVerts(),n.getLines(),n.getPolys(),n.getStrips()],a=[];let i=0;for(let o=gw.Points;o<=gw.Triangles;o++)if(r[o].getNumberOfValues()>0){e.primitives[o]||(e.primitives[o]=t.createCellArrayMapper());const s=e.primitives[o];s.setCellArray(r[o]),s.setCurrentInput(n),s.setCellOffset(i),s.setPrimitiveType(o),s.setRenderable(e.renderable),i+=r[o].getNumberOfCells(),a.push(s)}else e.primitives[o]=null;if(e.WebGPUActor.getRenderable().getProperty().getEdgeVisibility())for(let o=gw.TriangleEdges;o<=gw.TriangleStripEdges;o++)if(r[o-2].getNumberOfValues()>0){e.primitives[o]||(e.primitives[o]=t.createCellArrayMapper());const s=e.primitives[o];s.setCellArray(r[o-2]),s.setCurrentInput(n),s.setCellOffset(e.primitives[o-2].getCellOffset()),s.setPrimitiveType(o),s.setRenderable(e.renderable),a.push(s)}else e.primitives[o]=null;t.prepareNodes(),t.addMissingChildren(a),t.removeUnusedNodes()}}const eot={primitives:null};function Qne(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,eot,n),Sa.extend(t,e,n),e.primitives=[],Jit(t,e)}const Jne=Kr(Qne,"vtkWebGPUPolyDataMapper");var YFt={newInstance:Jne,extend:Qne};_c("vtkMapper",Jne);const{PrimitiveTypes:Q6}=ud;function tot(t,e){e.classHierarchy.push("vtkWebGPUPolyDataMapper2D"),t.createCellArrayMapper=()=>Zne.newInstance(),t.buildPass=n=>{if(n){e.WebGPUActor=t.getFirstAncestorOfType("vtkWebGPUActor2D"),e.renderable.getStatic()||e.renderable.update();const r=e.renderable.getInputData();e.renderable.mapScalars(r,1),t.updateCellArrayMappers(r)}},t.updateCellArrayMappers=n=>{const r=[n.getVerts(),n.getLines(),n.getPolys(),n.getStrips()],a=[];let i=0;for(let o=Q6.Points;o<=Q6.Triangles;o++)if(r[o].getNumberOfValues()>0){e.primitives[o]||(e.primitives[o]=t.createCellArrayMapper());const s=e.primitives[o];s.setCellArray(r[o]),s.setCurrentInput(n),s.setCellOffset(i),s.setPrimitiveType(o),s.setRenderable(e.renderable),s.setIs2D(!0),i+=r[o].getNumberOfCells(),a.push(s)}else e.primitives[o]=null;t.prepareNodes(),t.addMissingChildren(a),t.removeUnusedNodes()}}function not(t){return{primitives:[],...t}}function rot(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,not(n)),Sa.extend(t,e,n),e.primitives=[],tot(t,e)}const aot=Kr(rot,"vtkWebGPUPolyDataMapper2D");_c("vtkMapper2D",aot);function iot(t,e){e.classHierarchy.push("vtkWebGPUScalarBarActor"),t.buildPass=n=>{n&&(e.WebGPURenderer=t.getFirstAncestorOfType("vtkWebGPURenderer"),e.WebGPURenderWindow=e.WebGPURenderer.getParent(),e.scalarBarActorHelper.getRenderable()||e.scalarBarActorHelper.setRenderable(e.renderable),t.prepareNodes(),t.addMissingNode(e.scalarBarActorHelper.getBarActor()),t.addMissingNode(e.scalarBarActorHelper.getTmActor()),t.removeUnusedNodes())},t.opaquePass=(n,r)=>{if(n){const a=e.WebGPURenderer?e.WebGPURenderer.getRenderable().getActiveCamera():null,i=e.WebGPURenderer.getTiledSizeAndOrigin();e.scalarBarActorHelper.updateAPISpecificData([i.usize,i.vsize],a,e.WebGPURenderWindow.getRenderable())}}}const oot={};function sot(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,oot,n),Sa.extend(t,e,n),e.scalarBarActorHelper=qg.newScalarBarActorHelper(),iot(t,e)}const lot=Kr(sot,"vtkWebGPUScalarBarActor");_c("vtkScalarBarActor",lot);function uot(t,e){e.classHierarchy.push("vtkWebGPUSampler"),t.create=function(n){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};e.device=n,e.options.addressModeU=r.addressModeU?r.addressModeU:"clamp-to-edge",e.options.addressModeV=r.addressModeV?r.addressModeV:"clamp-to-edge",e.options.addressModeW=r.addressModeW?r.addressModeW:"clamp-to-edge",e.options.magFilter=r.magFilter?r.magFilter:"nearest",e.options.minFilter=r.minFilter?r.minFilter:"nearest",e.options.mipmapFilter=r.mipmapFilter?r.mipmapFilter:"nearest",e.options.label=e.label,e.handle=e.device.getHandle().createSampler(e.options),e.bindGroupTime.modified()},t.getShaderCode=(n,r)=>`@binding(${n}) @group(${r}) var ${e.label}: sampler;`,t.getBindGroupEntry=()=>({resource:e.handle})}const cot={device:null,handle:null,label:null,options:null};function ere(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,cot,n),J.obj(t,e),e.options={},e.bindGroupLayoutEntry={visibility:GPUShaderStage.VERTEX|GPUShaderStage.FRAGMENT,sampler:{}},e.bindGroupTime={},J.obj(e.bindGroupTime,{mtime:0}),J.get(t,e,["bindGroupTime","handle","options"]),J.setGet(t,e,["bindGroupLayoutEntry","device","label"]),uot(t,e)}const fot=J.newInstance(ere);var BN={newInstance:fot,extend:ere};function dot(t,e){e.classHierarchy.push("vtkWebGPUTextureView"),t.create=(n,r)=>{e.texture=n,e.options=r,e.options.dimension=e.options.dimension||"2d",e.options.label=e.label,e.textureHandle=n.getHandle(),e.handle=e.textureHandle.createView(e.options),e.bindGroupLayoutEntry.texture.viewDimension=e.options.dimension;const a=ti.getDetailsFromTextureFormat(e.texture.getFormat());e.bindGroupLayoutEntry.texture.sampleType=a.sampleType},t.createFromTextureHandle=(n,r)=>{e.texture=null,e.options=r,e.options.dimension=e.options.dimension||"2d",e.options.label=e.label,e.textureHandle=n,e.handle=e.textureHandle.createView(e.options),e.bindGroupLayoutEntry.texture.viewDimension=e.options.dimension;const a=ti.getDetailsFromTextureFormat(r.format);e.bindGroupLayoutEntry.texture.sampleType=a.sampleType,e.bindGroupTime.modified()},t.getBindGroupEntry=()=>({resource:t.getHandle()}),t.getShaderCode=(n,r)=>{let a="f32";e.bindGroupLayoutEntry.texture.sampleType==="sint"?a="i32":e.bindGroupLayoutEntry.texture.sampleType==="uint"&&(a="u32");let i=`@binding(${n}) @group(${r}) var ${e.label}: texture_${e.options.dimension}<${a}>;`;return e.bindGroupLayoutEntry.texture.sampleType==="depth"&&(i=`@binding(${n}) @group(${r}) var ${e.label}: texture_depth_${e.options.dimension};`),i},t.addSampler=(n,r)=>{const a=BN.newInstance({label:`${e.label}Sampler`});a.create(n,r),t.setSampler(a)},t.getBindGroupTime=()=>(e.texture&&e.texture.getHandle()!==e.textureHandle&&(e.textureHandle=e.texture.getHandle(),e.handle=e.textureHandle.createView(e.options),e.bindGroupTime.modified()),e.bindGroupTime),t.getHandle=()=>(e.texture&&e.texture.getHandle()!==e.textureHandle&&(e.textureHandle=e.texture.getHandle(),e.handle=e.textureHandle.createView(e.options),e.bindGroupTime.modified()),e.handle)}const hot={texture:null,handle:null,sampler:null,label:null};function tre(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,hot,n),J.obj(t,e),e.bindGroupLayoutEntry={visibility:GPUShaderStage.VERTEX|GPUShaderStage.FRAGMENT,texture:{sampleType:"float",viewDimension:"2d"}},e.bindGroupTime={},J.obj(e.bindGroupTime,{mtime:0}),J.get(t,e,["bindGroupTime","texture"]),J.setGet(t,e,["bindGroupLayoutEntry","label","sampler"]),dot(t,e)}const pot=J.newInstance(tre);var nre={newInstance:pot,extend:tre};const{BufferUsage:J6}=ud;function vot(t,e){e.classHierarchy.push("vtkWebGPUTexture"),t.create=(n,r)=>{e.device=n,e.width=r.width,e.height=r.height,e.depth=r.depth?r.depth:1;const a=e.depth===1?"2d":"3d";e.format=r.format?r.format:"rgba8unorm",e.mipLevel=r.mipLevel?r.mipLevel:0,e.usage=r.usage?r.usage:GPUTextureUsage.TEXTURE_BINDING|GPUTextureUsage.COPY_DST,e.handle=e.device.getHandle().createTexture({size:[e.width,e.height,e.depth],format:e.format,usage:e.usage,label:e.label,dimension:a,mipLevelCount:e.mipLevel+1})},t.assignFromHandle=(n,r,a)=>{e.device=n,e.handle=r,e.width=a.width,e.height=a.height,e.depth=a.depth?a.depth:1,e.format=a.format?a.format:"rgba8unorm",e.usage=a.usage?a.usage:GPUTextureUsage.TEXTURE_BINDING|GPUTextureUsage.COPY_DST},t.writeImageData=n=>{let r=[];if(n.canvas){e.device.getHandle().queue.copyExternalImageToTexture({source:n.canvas,flipY:n.flip},{texture:e.handle,premultipliedAlpha:!0},[e.width,e.height,e.depth]),e.ready=!0;return}n.jsImageData&&!n.nativeArray&&(n.width=n.jsImageData.width,n.height=n.jsImageData.height,n.depth=1,n.format="rgba8unorm",n.flip=!0,n.nativeArray=n.jsImageData.data);const a=ti.getDetailsFromTextureFormat(e.format);let i=e.width*a.stride;const o=(l,u,c)=>{const f=l.length/(u*c)*l.BYTES_PER_ELEMENT,d=a.elementSize===2&&a.sampleType==="float";if(d||f%256){const h=l,p=f/h.BYTES_PER_ELEMENT,v=a.elementSize,g=256*Math.floor((p*v+255)/256),y=g/v,m=J.newTypedArray(d?"Uint16Array":h.constructor.name,y*u*c);for(let S=0;S<u*c;S++)if(d)for(let w=0;w<p;w++)m[S*y+w]=nl.toHalf(h[S*p+w]);else m.set(h.subarray(S*p,(S+1)*p),S*y);return[m,g]}return[l,f]};if(n.nativeArray&&(r=n.nativeArray),n.image){const l=document.createElement("canvas");l.width=n.image.width,l.height=n.image.height;const u=l.getContext("2d");u.translate(0,l.height),u.scale(1,-1),u.drawImage(n.image,0,0,n.image.width,n.image.height,0,0,l.width,l.height),r=u.getImageData(0,0,n.image.width,n.image.height).data}const s=e.device.createCommandEncoder();if(t.getDimensionality()!==3){const l=Yb.generateMipmaps(r,e.width,e.height,e.mipLevel);let u=e.width,c=e.height;for(let f=0;f<=e.mipLevel;f++){const d=o(l[f],c,1);i=d[1];const h={dataArray:n.dataArray?n.dataArray:null,nativeArray:d[0],usage:J6.Texture},p=e.device.getBufferManager().getBuffer(h);s.copyBufferToTexture({buffer:p.getHandle(),offset:0,bytesPerRow:i,rowsPerImage:c},{texture:e.handle,mipLevel:f},[u,c,1]),u/=2,c/=2}e.device.submitCommandEncoder(s),e.ready=!0}else{const l=o(r,e.height,e.depth);i=l[1];const u={dataArray:n.dataArray?n.dataArray:null,usage:J6.Texture};u.nativeArray=l[0];const c=e.device.getBufferManager().getBuffer(u);s.copyBufferToTexture({buffer:c.getHandle(),offset:0,bytesPerRow:i,rowsPerImage:e.height},{texture:e.handle},[e.width,e.height,e.depth]),e.device.submitCommandEncoder(s),e.ready=!0}},t.getScale=()=>{const n=ti.getDetailsFromTextureFormat(e.format);return n.elementSize===2&&n.sampleType==="float"?1:255},t.getNumberOfComponents=()=>ti.getDetailsFromTextureFormat(e.format).numComponents,t.getDimensionality=()=>{let n=0;return e.width>1&&n++,e.height>1&&n++,e.depth>1&&n++,n},t.resizeToMatch=n=>{(n.getWidth()!==e.width||n.getHeight()!==e.height||n.getDepth()!==e.depth)&&(e.width=n.getWidth(),e.height=n.getHeight(),e.depth=n.getDepth(),e.handle=e.device.getHandle().createTexture({size:[e.width,e.height,e.depth],format:e.format,usage:e.usage,label:e.label}))},t.resize=function(n,r){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;(n!==e.width||r!==e.height||a!==e.depth)&&(e.width=n,e.height=r,e.depth=a,e.handle=e.device.getHandle().createTexture({size:[e.width,e.height,e.depth],format:e.format,usage:e.usage,label:e.label}))},t.createView=function(n){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};r.dimension||(r.dimension=e.depth===1?"2d":"3d");const a=nre.newInstance({label:n});return a.create(t,r),a}}const got={device:null,handle:null,buffer:null,ready:!1,label:null};function rre(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,got,n),J.obj(t,e),J.get(t,e,["handle","ready","width","height","depth","format","usage"]),J.setGet(t,e,["device","label"]),vot(t,e)}const yot=J.newInstance(rre);var ou={newInstance:yot,extend:rre};function mot(t,e){e.classHierarchy.push("vtkWebGPUPixelSpaceCallbackMapper"),t.opaquePass=(n,r)=>{e.WebGPURenderer=t.getFirstAncestorOfType("vtkWebGPURenderer"),e.WebGPURenderWindow=e.WebGPURenderer.getParent();const a=e.WebGPURenderer.getAspectRatio(),i=e.WebGPURenderer?e.WebGPURenderer.getRenderable().getActiveCamera():null,o=e.WebGPURenderer.getTiledSizeAndOrigin(),s=null;e.renderable.getUseZValues(),e.renderable.invokeCallback(e.renderable.getInputData(),i,a,o,s)}}const bot={};function Sot(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,bot,n),Sa.extend(t,e,n),mot(t,e)}const wot=J.newInstance(Sot,"vtkWebGPUPixelSpaceCallbackMapper");_c("vtkPixelSpaceCallbackMapper",wot);const{vtkDebugMacro:yw}=J;function xot(t,e){e.classHierarchy.push("vtkCamera");const n=new Float64Array(3),r=new Float64Array([0,0,-1]),a=new Float64Array([0,1,0]),i=Yn(new Float64Array(16)),o=Yn(new Float64Array(16)),s=new Float64Array(3),l=new Float64Array(3),u=new Float64Array(3),c=Yn(new Float64Array(16)),f=Yn(new Float64Array(16)),d=new Float64Array(3),h=new Float64Array(3);function p(){e.viewPlaneNormal[0]=-e.directionOfProjection[0],e.viewPlaneNormal[1]=-e.directionOfProjection[1],e.viewPlaneNormal[2]=-e.directionOfProjection[2]}t.orthogonalizeViewUp=()=>{const v=t.getViewMatrix();e.viewUp[0]=v[4],e.viewUp[1]=v[5],e.viewUp[2]=v[6],t.modified()},t.setPosition=(v,g,y)=>{v===e.position[0]&&g===e.position[1]&&y===e.position[2]||(e.position[0]=v,e.position[1]=g,e.position[2]=y,t.computeDistance(),t.modified())},t.setFocalPoint=(v,g,y)=>{v===e.focalPoint[0]&&g===e.focalPoint[1]&&y===e.focalPoint[2]||(e.focalPoint[0]=v,e.focalPoint[1]=g,e.focalPoint[2]=y,t.computeDistance(),t.modified())},t.setDistance=v=>{if(e.distance===v)return;e.distance=v,e.distance<1e-20&&(e.distance=1e-20,yw("Distance is set to minimum."));const g=e.directionOfProjection;e.focalPoint[0]=e.position[0]+g[0]*e.distance,e.focalPoint[1]=e.position[1]+g[1]*e.distance,e.focalPoint[2]=e.position[2]+g[2]*e.distance,t.modified()},t.computeDistance=()=>{const v=e.focalPoint[0]-e.position[0],g=e.focalPoint[1]-e.position[1],y=e.focalPoint[2]-e.position[2];if(e.distance=Math.sqrt(v*v+g*g+y*y),e.distance<1e-20){e.distance=1e-20,yw("Distance is set to minimum.");const m=e.directionOfProjection;e.focalPoint[0]=e.position[0]+m[0]*e.distance,e.focalPoint[1]=e.position[1]+m[1]*e.distance,e.focalPoint[2]=e.position[2]+m[2]*e.distance}e.directionOfProjection[0]=v/e.distance,e.directionOfProjection[1]=g/e.distance,e.directionOfProjection[2]=y/e.distance,p()},t.dolly=v=>{if(v<=0)return;const g=e.distance/v;t.setPosition(e.focalPoint[0]-g*e.directionOfProjection[0],e.focalPoint[1]-g*e.directionOfProjection[1],e.focalPoint[2]-g*e.directionOfProjection[2])},t.roll=v=>{const g=e.position,y=e.focalPoint,m=e.viewUp,S=new Float64Array([m[0],m[1],m[2],0]);Yn(c);const w=new Float64Array([y[0]-g[0],y[1]-g[1],y[2]-g[2]]);Ws(c,c,va(v),w),ew(S,S,c),e.viewUp[0]=S[0],e.viewUp[1]=S[1],e.viewUp[2]=S[2],t.modified()},t.azimuth=v=>{const g=e.focalPoint;Yn(f),xa(f,f,g),Ws(f,f,va(v),e.viewUp),xa(f,f,[-g[0],-g[1],-g[2]]),_r(d,e.position,f),t.setPosition(d[0],d[1],d[2])},t.yaw=v=>{const g=e.position;Yn(f),xa(f,f,g),Ws(f,f,va(v),e.viewUp),xa(f,f,[-g[0],-g[1],-g[2]]),_r(h,e.focalPoint,f),t.setFocalPoint(h[0],h[1],h[2])},t.elevation=v=>{const g=e.focalPoint,y=t.getViewMatrix(),m=[-y[0],-y[1],-y[2]];Yn(f),xa(f,f,g),Ws(f,f,va(v),m),xa(f,f,[-g[0],-g[1],-g[2]]),_r(d,e.position,f),t.setPosition(d[0],d[1],d[2])},t.pitch=v=>{const g=e.position,y=t.getViewMatrix(),m=[y[0],y[1],y[2]];Yn(f),xa(f,f,g),Ws(f,f,va(v),m),xa(f,f,[-g[0],-g[1],-g[2]]),_r(h,e.focalPoint,f),t.setFocalPoint(...h)},t.zoom=v=>{v<=0||(e.parallelProjection?e.parallelScale/=v:e.viewAngle/=v,t.modified())},t.translate=(v,g,y)=>{const m=[v,g,y];L2(e.position,m,e.position),L2(e.focalPoint,m,e.focalPoint),t.computeDistance(),t.modified()},t.applyTransform=v=>{const g=[...e.viewUp,1],y=[],m=[],S=[];g[0]+=e.position[0],g[1]+=e.position[1],g[2]+=e.position[2],ew(y,[...e.position,1],v),ew(m,[...e.focalPoint,1],v),ew(S,g,v),S[0]-=y[0],S[1]-=y[1],S[2]-=y[2],t.setPosition(...y.slice(0,3)),t.setFocalPoint(...m.slice(0,3)),t.setViewUp(...S.slice(0,3))},t.getThickness=()=>e.clippingRange[1]-e.clippingRange[0],t.setThickness=v=>{let g=v;g<1e-20&&(g=1e-20,yw("Thickness is set to minimum.")),t.setClippingRange(e.clippingRange[0],e.clippingRange[0]+g)},t.setThicknessFromFocalPoint=v=>{let g=v;g<1e-20&&(g=1e-20,yw("Thickness is set to minimum.")),t.setClippingRange(e.distance-g/2,e.distance+g/2)},t.setRoll=v=>{},t.getRoll=()=>{},t.setObliqueAngles=(v,g)=>{},t.getOrientation=()=>{},t.getOrientationWXYZ=()=>{},t.getFrustumPlanes=v=>{},t.getCameraLightTransformMatrix=v=>(di(v,e.cameraLightTransform),v),t.computeCameraLightTransform=()=>{di(i,t.getViewMatrix()),eo(i,i),TJ(o,[e.distance,e.distance,e.distance]),ri(i,i,o),Yn(e.cameraLightTransform),xa(e.cameraLightTransform,i,[0,0,-1])},t.deepCopy=v=>{},t.physicalOrientationToWorldDirection=v=>{const g=n6(v[0],v[1],v[2],v[3]),y=yp(),m=n6(0,0,1,0);return Cqe(y,g),t6(m,g,m),t6(m,m,y),[m[0],m[1],m[2]]},t.getPhysicalToWorldMatrix=v=>{t.getWorldToPhysicalMatrix(v),eo(v,v)},t.getWorldToPhysicalMatrix=v=>{Yn(v);const g=[3];vu(e.physicalViewNorth,e.physicalViewUp,g),v[0]=g[0],v[1]=g[1],v[2]=g[2],v[4]=e.physicalViewUp[0],v[5]=e.physicalViewUp[1],v[6]=e.physicalViewUp[2],v[8]=-e.physicalViewNorth[0],v[9]=-e.physicalViewNorth[1],v[10]=-e.physicalViewNorth[2],ea(v,v),Kl(s,1/e.physicalScale,1/e.physicalScale,1/e.physicalScale),gp(v,v,s),xa(v,v,e.physicalTranslation)},t.computeViewParametersFromViewMatrix=v=>{eo(i,v),_r(s,n,i),t.computeDistance();const g=e.distance;t.setPosition(s[0],s[1],s[2]),_r(l,r,i),bf(l,l,s),Rf(l,l),t.setDirectionOfProjection(l[0],l[1],l[2]),_r(u,a,i),bf(u,u,s),Rf(u,u),t.setViewUp(u[0],u[1],u[2]),t.setDistance(g)},t.computeViewParametersFromPhysicalMatrix=v=>{t.getWorldToPhysicalMatrix(i),ri(i,v,i),t.computeViewParametersFromViewMatrix(i)},t.setViewMatrix=v=>{e.viewMatrix=v,e.viewMatrix&&(di(i,e.viewMatrix),t.computeViewParametersFromViewMatrix(i),ea(e.viewMatrix,e.viewMatrix))},t.getViewMatrix=()=>{if(e.viewMatrix)return e.viewMatrix;VJ(i,e.position,e.focalPoint,e.viewUp),ea(i,i);const v=new Float64Array(16);return di(v,i),v},t.setProjectionMatrix=v=>{e.projectionMatrix=v},t.getProjectionMatrix=(v,g,y)=>{const m=new Float64Array(16);if(Yn(m),e.projectionMatrix){const C=1/e.physicalScale;return Kl(s,C,C,C),di(m,e.projectionMatrix),gp(m,m,s),ea(m,m),m}Yn(i);const S=e.clippingRange[1]-e.clippingRange[0],w=[e.clippingRange[0]+(g+1)*S/2,e.clippingRange[0]+(y+1)*S/2];if(e.parallelProjection){const C=e.parallelScale*v,_=e.parallelScale,x=(e.windowCenter[0]-1)*C,T=(e.windowCenter[0]+1)*C,M=(e.windowCenter[1]-1)*_,E=(e.windowCenter[1]+1)*_;OJ(i,x,T,M,E,w[0],w[1]),ea(i,i)}else{if(e.useOffAxisProjection)throw new Error("Off-Axis projection is not supported at this time");{const C=Math.tan(va(e.viewAngle)/2);let _,x;e.useHorizontalViewAngle===!0?(_=e.clippingRange[0]*C,x=e.clippingRange[0]*C/v):(_=e.clippingRange[0]*C*v,x=e.clippingRange[0]*C);const T=(e.windowCenter[0]-1)*_,M=(e.windowCenter[0]+1)*_,E=(e.windowCenter[1]-1)*x,A=(e.windowCenter[1]+1)*x,k=w[0],L=w[1];i[0]=2*k/(M-T),i[5]=2*k/(A-E),i[2]=(T+M)/(M-T),i[6]=(E+A)/(A-E),i[10]=-(k+L)/(L-k),i[14]=-1,i[11]=-2*k*L/(L-k),i[15]=0}}return di(m,i),m},t.getCompositeProjectionMatrix=(v,g,y)=>{const m=t.getViewMatrix(),S=t.getProjectionMatrix(v,g,y);return ri(S,m,S),S},t.setDirectionOfProjection=(v,g,y)=>{if(e.directionOfProjection[0]===v&&e.directionOfProjection[1]===g&&e.directionOfProjection[2]===y)return;e.directionOfProjection[0]=v,e.directionOfProjection[1]=g,e.directionOfProjection[2]=y;const m=e.directionOfProjection;e.focalPoint[0]=e.position[0]+m[0]*e.distance,e.focalPoint[1]=e.position[1]+m[1]*e.distance,e.focalPoint[2]=e.position[2]+m[2]*e.distance,p()},t.setDeviceAngles=(v,g,y,m)=>{const S=[3];vu(e.physicalViewNorth,e.physicalViewUp,S);const w=Yn(new Float64Array(16));Ws(w,w,va(v),e.physicalViewUp),Ws(w,w,va(g),S),Ws(w,w,va(y),e.physicalViewNorth),Ws(w,w,va(-m),e.physicalViewUp);const C=new Float64Array([-e.physicalViewUp[0],-e.physicalViewUp[1],-e.physicalViewUp[2]]),_=new Float64Array(e.physicalViewNorth);_r(C,C,w),_r(_,_,w),t.setDirectionOfProjection(C[0],C[1],C[2]),t.setViewUp(_[0],_[1],_[2]),t.modified()},t.setOrientationWXYZ=(v,g,y,m)=>{const S=Yn(new Float64Array(16));if(v!==0&&(g!==0||y!==0||m!==0)){const _=va(v),x=yp();nN(x,[g,y,m],_),eN(S,x)}const w=new Float64Array(3);_r(w,[0,0,-1],S);const C=new Float64Array(3);_r(C,[0,1,0],S),t.setDirectionOfProjection(...w),t.setViewUp(...C),t.modified()},t.computeClippingRange=v=>{let g=null,y=null;g=e.viewPlaneNormal,y=e.position;const m=-g[0],S=-g[1],w=-g[2],C=-(m*y[0]+S*y[1]+w*y[2]),_=[m*v[0]+S*v[2]+w*v[4]+C,1e-18];for(let x=0;x<2;x++)for(let T=0;T<2;T++)for(let M=0;M<2;M++){const E=m*v[M]+S*v[2+T]+w*v[4+x]+C;_[0]=E<_[0]?E:_[0],_[1]=E>_[1]?E:_[1]}return _}}const _ot={position:[0,0,1],focalPoint:[0,0,0],viewUp:[0,1,0],directionOfProjection:[0,0,-1],parallelProjection:!1,useHorizontalViewAngle:!1,viewAngle:30,parallelScale:1,clippingRange:[.01,1000.01],windowCenter:[0,0],viewPlaneNormal:[0,0,1],useOffAxisProjection:!1,screenBottomLeft:[-.5,-.5,-.5],screenBottomRight:[.5,-.5,-.5],screenTopRight:[.5,.5,-.5],freezeFocalPoint:!1,projectionMatrix:null,viewMatrix:null,cameraLightTransform:qV(),physicalTranslation:[0,0,0],physicalScale:1,physicalViewUp:[0,1,0],physicalViewNorth:[0,0,-1]};function are(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,_ot,n),J.obj(t,e),J.get(t,e,["distance"]),J.setGet(t,e,["parallelProjection","useHorizontalViewAngle","viewAngle","parallelScale","useOffAxisProjection","freezeFocalPoint","physicalScale"]),J.getArray(t,e,["directionOfProjection","viewPlaneNormal","position","focalPoint"]),J.setGetArray(t,e,["clippingRange","windowCenter"],2),J.setGetArray(t,e,["viewUp","screenBottomLeft","screenBottomRight","screenTopRight","physicalTranslation","physicalViewUp","physicalViewNorth"],3),xot(t,e)}const Cot=J.newInstance(are,"vtkCamera");var Tot={newInstance:Cot,extend:are};const Eot=["HeadLight","CameraLight","SceneLight"];function Mot(t,e){e.classHierarchy.push("vtkLight");const n=new Float64Array(3);t.getTransformedPosition=()=>(e.transformMatrix?_r(n,e.position,e.transformMatrix):Kl(n,e.position[0],e.position[1],e.position[2]),n),t.getTransformedFocalPoint=()=>(e.transformMatrix?_r(n,e.focalPoint,e.transformMatrix):Kl(n,e.focalPoint[0],e.focalPoint[1],e.focalPoint[2]),n),t.getDirection=()=>(e.directionMTime<e.mtime&&(LL(e.direction,e.focalPoint,e.position),bp(e.direction),e.directionMTime=e.mtime),e.direction),t.setDirection=r=>{const a=new Float64Array(3);LL(a,e.position,r),e.focalPoint=a},t.setDirectionAngle=(r,a)=>{const i=va(r),o=va(a);t.setPosition(Math.cos(i)*Math.sin(o),Math.sin(i),Math.cos(i)*Math.cos(o)),t.setFocalPoint(0,0,0),t.setPositional(0)},t.setLightTypeToHeadLight=()=>{t.setLightType("HeadLight")},t.setLightTypeToCameraLight=()=>{t.setLightType("CameraLight")},t.setLightTypeToSceneLight=()=>{t.setTransformMatrix(null),t.setLightType("SceneLight")},t.lightTypeIsHeadLight=()=>e.lightType==="HeadLight",t.lightTypeIsSceneLight=()=>e.lightType==="SceneLight",t.lightTypeIsCameraLight=()=>e.lightType==="CameraLight"}const Dot={switch:!0,intensity:1,color:[1,1,1],position:[0,0,1],focalPoint:[0,0,0],positional:!1,exponent:1,coneAngle:30,coneFalloff:5,attenuationValues:[1,0,0],transformMatrix:null,lightType:"SceneLight",shadowAttenuation:1,direction:[0,0,0],directionMTime:0};function ire(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Dot,n),J.obj(t,e),J.setGet(t,e,["intensity","switch","positional","exponent","coneAngle","coneFalloff","transformMatrix","lightType","shadowAttenuation","attenuationValues"]),J.setGetArray(t,e,["color","position","focalPoint","attenuationValues"],3),Mot(t,e)}const Aot=J.newInstance(ire,"vtkLight");var KT={newInstance:Aot,extend:ire,LIGHT_TYPES:Eot};const{vtkErrorMacro:E_}=J;function kot(t){return()=>E_(`vtkViewport::${t} - NOT IMPLEMENTED`)}function Rot(t,e){e.classHierarchy.push("vtkViewport"),t.getViewProps=()=>e.props,t.hasViewProp=r=>e.props.includes(r),t.addViewProp=r=>{r&&!t.hasViewProp(r)&&e.props.push(r)},t.removeViewProp=r=>{const a=e.props.filter(i=>i!==r);e.props.length!==a.length&&(e.props=a)},t.removeAllViewProps=()=>{e.props=[]};function n(r){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];a.push(r);const i=r.getNestedProps();if(i&&i.length)for(let o=0;o<i.length;o++)n(i[o],a);return a}t.getViewPropsWithNestedProps=()=>{const r=[];for(let a=0;a<e.props.length;a++)n(e.props[a],r);return r},t.addActor2D=t.addViewProp,t.removeActor2D=r=>{t.removeViewProp(r)},t.getActors2D=()=>(e.actors2D=[],e.props.forEach(r=>{e.actors2D=e.actors2D.concat(r.getActors2D())}),e.actors2D),t.displayToView=()=>E_("call displayToView on your view instead"),t.viewToDisplay=()=>E_("callviewtodisplay on your view instead"),t.getSize=()=>E_("call getSize on your View instead"),t.normalizedDisplayToProjection=(r,a,i)=>{const o=t.normalizedDisplayToNormalizedViewport(r,a,i);return t.normalizedViewportToProjection(o[0],o[1],o[2])},t.normalizedDisplayToNormalizedViewport=(r,a,i)=>{const o=[e.viewport[2]-e.viewport[0],e.viewport[3]-e.viewport[1]];return[(r-e.viewport[0])/o[0],(a-e.viewport[1])/o[1],i]},t.normalizedViewportToProjection=(r,a,i)=>[r*2-1,a*2-1,i*2-1],t.projectionToNormalizedDisplay=(r,a,i)=>{const o=t.projectionToNormalizedViewport(r,a,i);return t.normalizedViewportToNormalizedDisplay(o[0],o[1],o[2])},t.normalizedViewportToNormalizedDisplay=(r,a,i)=>{const o=[e.viewport[2]-e.viewport[0],e.viewport[3]-e.viewport[1]];return[r*o[0]+e.viewport[0],a*o[1]+e.viewport[1],i]},t.projectionToNormalizedViewport=(r,a,i)=>[(r+1)*.5,(a+1)*.5,(i+1)*.5],t.PickPropFrom=kot("PickPropFrom")}const Lot={background:[0,0,0],background2:[.2,.2,.2],gradientBackground:!1,viewport:[0,0,1,1],aspect:[1,1],pixelAspect:[1,1],props:[],actors2D:[]};function ore(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Lot,n),J.obj(t,e),J.event(t,e,"event"),J.setGetArray(t,e,["viewport"],4),J.setGetArray(t,e,["background","background2"],3),Rot(t,e)}const Oot=J.newInstance(ore,"vtkViewport");var Vot={newInstance:Oot,extend:ore};const{vtkDebugMacro:hy,vtkErrorMacro:rf,vtkWarningMacro:Not}=_u;function ez(t){return()=>rf(`vtkRenderer::${t} - NOT IMPLEMENTED`)}function Iot(t,e){e.classHierarchy.push("vtkRenderer");const n={type:"ComputeVisiblePropBoundsEvent",renderer:t},r={type:"ResetCameraClippingRangeEvent",renderer:t},a={type:"ResetCameraEvent",renderer:t};t.updateCamera=()=>(e.activeCamera||(hy("No cameras are on, creating one."),t.getActiveCameraAndResetIfCreated()),e.activeCamera.render(t),!0),t.updateLightsGeometryToFollowCamera=()=>{const i=t.getActiveCameraAndResetIfCreated();e.lights.forEach(o=>{o.lightTypeIsSceneLight()||(o.lightTypeIsHeadLight()?(o.setPositionFrom(i.getPositionByReference()),o.setFocalPointFrom(i.getFocalPointByReference()),o.modified(i.getMTime())):o.lightTypeIsCameraLight()?o.setTransformMatrix(i.getCameraLightTransformMatrix(qV())):rf("light has unknown light type",o.get()))})},t.updateLightGeometry=()=>e.lightFollowCamera?t.updateLightsGeometryToFollowCamera():!0,t.allocateTime=ez("allocateTime"),t.updateGeometry=ez("updateGeometry"),t.getVTKWindow=()=>e._renderWindow,t.setLayer=i=>{hy(t.getClassName(),t,"setting Layer to ",i),e.layer!==i&&(e.layer=i,t.modified()),t.setPreserveColorBuffer(!!i)},t.setActiveCamera=i=>e.activeCamera===i?!1:(e.activeCamera=i,t.modified(),t.invokeEvent({type:"ActiveCameraEvent",camera:i}),!0),t.makeCamera=()=>{const i=Tot.newInstance();return t.invokeEvent({type:"CreateCameraEvent",camera:i}),i},t.getActiveCamera=()=>(e.activeCamera||(e.activeCamera=t.makeCamera()),e.activeCamera),t.getActiveCameraAndResetIfCreated=()=>(e.activeCamera||(t.getActiveCamera(),t.resetCamera()),e.activeCamera),t.getActors=()=>(e.actors=[],e.props.forEach(i=>{e.actors=e.actors.concat(i.getActors())}),e.actors),t.addActor=t.addViewProp,t.removeActor=i=>{e.actors=e.actors.filter(o=>o!==i),t.removeViewProp(i),t.modified()},t.removeAllActors=()=>{t.getActors().forEach(o=>{t.removeViewProp(o)}),e.actors=[],t.modified()},t.getVolumes=()=>(e.volumes=[],e.props.forEach(i=>{e.volumes=e.volumes.concat(i.getVolumes())}),e.volumes),t.addVolume=t.addViewProp,t.removeVolume=i=>{e.volumes=e.volumes.filter(o=>o!==i),t.removeViewProp(i),t.modified()},t.removeAllVolumes=()=>{t.getVolumes().forEach(o=>{t.removeViewProp(o)}),e.volumes=[],t.modified()},t.hasLight=i=>e.lights.includes(i),t.addLight=i=>{i&&!t.hasLight(i)&&(e.lights.push(i),t.modified())},t.removeLight=i=>{e.lights=e.lights.filter(o=>o!==i),t.modified()},t.removeAllLights=()=>{e.lights=[],t.modified()},t.setLightCollection=i=>{e.lights=i,t.modified()},t.makeLight=KT.newInstance,t.createLight=()=>{e.automaticLightCreation&&(e._createdLight&&(t.removeLight(e._createdLight),e._createdLight.delete(),e._createdLight=null),e._createdLight=t.makeLight(),t.addLight(e._createdLight),e._createdLight.setLightTypeToHeadLight(),e._createdLight.setPosition(t.getActiveCamera().getPosition()),e._createdLight.setFocalPoint(t.getActiveCamera().getFocalPoint()))},t.normalizedDisplayToWorld=(i,o,s,l)=>{let u=t.normalizedDisplayToProjection(i,o,s);return u=t.projectionToView(u[0],u[1],u[2],l),t.viewToWorld(u[0],u[1],u[2])},t.worldToNormalizedDisplay=(i,o,s,l)=>{let u=t.worldToView(i,o,s);return u=t.viewToProjection(u[0],u[1],u[2],l),t.projectionToNormalizedDisplay(u[0],u[1],u[2])},t.viewToWorld=(i,o,s)=>{if(e.activeCamera===null)return rf("ViewToWorld: no active camera, cannot compute view to world, returning 0,0,0"),[0,0,0];const l=e.activeCamera.getViewMatrix();eo(l,l),ea(l,l);const u=new Float64Array([i,o,s]);return _r(u,u,l),u},t.projectionToView=(i,o,s,l)=>{if(e.activeCamera===null)return rf("ProjectionToView: no active camera, cannot compute projection to view, returning 0,0,0"),[0,0,0];const u=e.activeCamera.getProjectionMatrix(l,-1,1);eo(u,u),ea(u,u);const c=new Float64Array([i,o,s]);return _r(c,c,u),c},t.worldToView=(i,o,s)=>{if(e.activeCamera===null)return rf("WorldToView: no active camera, cannot compute view to world, returning 0,0,0"),[0,0,0];const l=e.activeCamera.getViewMatrix();ea(l,l);const u=new Float64Array([i,o,s]);return _r(u,u,l),u},t.viewToProjection=(i,o,s,l)=>{if(e.activeCamera===null)return rf("ViewToProjection: no active camera, cannot compute view to projection, returning 0,0,0"),[0,0,0];const u=e.activeCamera.getProjectionMatrix(l,-1,1);ea(u,u);const c=new Float64Array([i,o,s]);return _r(c,c,u),c},t.computeVisiblePropBounds=()=>{e.allBounds[0]=Jr.INIT_BOUNDS[0],e.allBounds[1]=Jr.INIT_BOUNDS[1],e.allBounds[2]=Jr.INIT_BOUNDS[2],e.allBounds[3]=Jr.INIT_BOUNDS[3],e.allBounds[4]=Jr.INIT_BOUNDS[4],e.allBounds[5]=Jr.INIT_BOUNDS[5];let i=!0;t.invokeEvent(n);for(let o=0;o<e.props.length;++o){const s=e.props[o];if(s.getVisibility()&&s.getUseBounds()){const l=s.getBounds();l&&x_(l)&&(i=!1,l[0]<e.allBounds[0]&&(e.allBounds[0]=l[0]),l[1]>e.allBounds[1]&&(e.allBounds[1]=l[1]),l[2]<e.allBounds[2]&&(e.allBounds[2]=l[2]),l[3]>e.allBounds[3]&&(e.allBounds[3]=l[3]),l[4]<e.allBounds[4]&&(e.allBounds[4]=l[4]),l[5]>e.allBounds[5]&&(e.allBounds[5]=l[5]))}}return i&&(FT(e.allBounds),hy("Can't compute bounds, no 3D props are visible")),e.allBounds},t.resetCamera=function(){const o=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:null)||t.computeVisiblePropBounds(),s=[0,0,0];if(!x_(o))return hy("Cannot reset camera!"),!1;let l=null;if(t.getActiveCamera())l=e.activeCamera.getViewPlaneNormal();else return rf("Trying to reset non-existent camera"),!1;e.activeCamera.setViewAngle(30),s[0]=(o[0]+o[1])/2,s[1]=(o[2]+o[3])/2,s[2]=(o[4]+o[5])/2;let u=o[1]-o[0],c=o[3]-o[2],f=o[5]-o[4];u*=u,c*=c,f*=f;let d=u+c+f;d=d===0?1:d,d=Math.sqrt(d)*.5;const h=va(e.activeCamera.getViewAngle()),p=d,v=d/Math.sin(h*.5),g=e.activeCamera.getViewUp();return Math.abs(Ln(g,l))>.999&&(Not("Resetting view-up since view plane normal is parallel"),e.activeCamera.setViewUp(-g[2],g[0],g[1])),e.activeCamera.setFocalPoint(s[0],s[1],s[2]),e.activeCamera.setPosition(s[0]+v*l[0],s[1]+v*l[1],s[2]+v*l[2]),t.resetCameraClippingRange(o),e.activeCamera.setParallelScale(p),e.activeCamera.setPhysicalScale(d),e.activeCamera.setPhysicalTranslation(-s[0],-s[1],-s[2]),t.invokeEvent(a),!0},t.resetCameraClippingRange=function(){const o=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:null)||t.computeVisiblePropBounds();if(!x_(o))return hy("Cannot reset camera clipping range!"),!1;if(t.getActiveCameraAndResetIfCreated(),!e.activeCamera)return rf("Trying to reset clipping range of non-existent camera"),!1;const s=e.activeCamera.computeClippingRange(o);let l=0;if(e.activeCamera.getParallelProjection())l=.2*e.activeCamera.getParallelScale();else{const u=va(e.activeCamera.getViewAngle());l=.2*Math.tan(u/2)*s[1]}return s[1]-s[0]<l&&(l=l-s[1]+s[0],s[1]+=l/2,s[0]-=l/2),s[0]<0&&(s[0]=0),s[0]=.99*s[0]-(s[1]-s[0])*e.clippingRangeExpansion,s[1]=1.01*s[1]+(s[1]-s[0])*e.clippingRangeExpansion,s[0]=s[0]>=s[1]?.01*s[1]:s[0],e.nearClippingPlaneTolerance||(e.nearClippingPlaneTolerance=.01),s[0]<e.nearClippingPlaneTolerance*s[1]&&(s[0]=e.nearClippingPlaneTolerance*s[1]),e.activeCamera.setClippingRange(s[0],s[1]),t.invokeEvent(r),!1},t.setRenderWindow=i=>{i!==e._renderWindow&&(e._vtkWindow=i,e._renderWindow=i)},t.visibleActorCount=()=>e.props.filter(i=>i.getVisibility()).length,t.visibleVolumeCount=t.visibleActorCount,t.getMTime=()=>{let i=e.mtime;const o=e.activeCamera?e.activeCamera.getMTime():0;o>i&&(i=o);const s=e._createdLight?e._createdLight.getMTime():0;return s>i&&(i=s),i},t.getTransparent=()=>!!e.preserveColorBuffer,t.isActiveCameraCreated=()=>!!e.activeCamera}const Bot={pickedProp:null,activeCamera:null,allBounds:[],ambient:[1,1,1],allocatedRenderTime:100,timeFactor:1,automaticLightCreation:!0,twoSidedLighting:!0,lastRenderTimeInSeconds:-1,renderWindow:null,lights:[],actors:[],volumes:[],lightFollowCamera:!0,numberOfPropsRendered:0,propArray:null,pathArray:null,layer:0,preserveColorBuffer:!1,preserveDepthBuffer:!1,computeVisiblePropBounds:zT(),interactive:!0,nearClippingPlaneTolerance:0,clippingRangeExpansion:.05,erase:!0,draw:!0,useShadows:!1,useDepthPeeling:!1,occlusionRatio:0,maximumNumberOfPeels:4,selector:null,delegate:null,texturedBackground:!1,backgroundTexture:null,environmentTexture:null,environmentTextureDiffuseStrength:1,environmentTextureSpecularStrength:1,useEnvironmentTextureAsBackground:!1,pass:0};function sre(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};for(Object.assign(e,Bot,n),Vot.extend(t,e,n),e.background||(e.background=[0,0,0,1]);e.background.length<3;)e.background.push(0);e.background.length===3&&e.background.push(1),co(t,e,["_renderWindow","allocatedRenderTime","timeFactor","lastRenderTimeInSeconds","numberOfPropsRendered","lastRenderingUsedDepthPeeling","selector"]),Xa(t,e,["twoSidedLighting","lightFollowCamera","automaticLightCreation","erase","draw","nearClippingPlaneTolerance","clippingRangeExpansion","backingStore","interactive","layer","preserveColorBuffer","preserveDepthBuffer","useDepthPeeling","occlusionRatio","maximumNumberOfPeels","delegate","backgroundTexture","texturedBackground","environmentTexture","environmentTextureDiffuseStrength","environmentTextureSpecularStrength","useEnvironmentTextureAsBackground","useShadows","pass"]),C0(t,e,["actors","volumes","lights"]),sN(t,e,["background"],4,1),Gb(t,e,["renderWindow"]),Iot(t,e)}const $ot=Kr(sre,"vtkRenderer");var $N={newInstance:$ot,extend:sre};const Pot="WebGL",G2=Object.create(null);function PN(t,e){G2[t]=e}function Fot(){return Object.keys(G2)}function lre(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return G2[t]&&G2[t](e)}function zot(t,e){e.classHierarchy.push("vtkRenderWindow"),t.addRenderer=n=>{t.hasRenderer(n)||(n.setRenderWindow(t),e.renderers.push(n),t.modified())},t.removeRenderer=n=>{e.renderers=e.renderers.filter(r=>r!==n),t.modified()},t.hasRenderer=n=>e.renderers.indexOf(n)!==-1,t.newAPISpecificView=function(n){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return lre(n||e.defaultViewAPI,r)},t.addView=n=>{t.hasView(n)||(n.setRenderable(t),e._views.push(n),t.modified())},t.removeView=n=>{e._views=e._views.filter(r=>r!==n),t.modified()},t.hasView=n=>e._views.indexOf(n)!==-1,t.preRender=()=>{e.renderers.forEach(n=>{n.isActiveCameraCreated()||n.resetCamera()})},t.render=()=>{t.preRender(),e.interactor?e.interactor.render():e._views.forEach(n=>n.traverseAllPasses())},t.getStatistics=()=>{const n={propCount:0,invisiblePropCount:0,gpuMemoryMB:0};return e._views.forEach(r=>{r.getGraphicsMemoryInfo&&(n.gpuMemoryMB+=r.getGraphicsMemoryInfo()/1e6)}),e.renderers.forEach(r=>{const a=r.getViewProps(),i=e._views[0].getViewNodeFor(r);a.forEach(o=>{if(o.getVisibility()){n.propCount+=1;const s=o.getMapper&&o.getMapper();if(s&&s.getPrimitiveCount){const l=i.getViewNodeFor(s);if(l){l.getAllocatedGPUMemoryInBytes&&(n.gpuMemoryMB+=l.getAllocatedGPUMemoryInBytes()/1e6);const u=s.getPrimitiveCount();Object.keys(u).forEach(c=>{n[c]||(n[c]=0),n[c]+=u[c]})}}}else n.invisiblePropCount+=1})}),n.str=Object.keys(n).map(r=>`${r}: ${n[r]}`).join(`
  670. `),n},t.captureImages=function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"image/png",r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return J.setImmediate(t.render),e._views.map(a=>a.captureNextImage?a.captureNextImage(n,r):void 0).filter(a=>!!a)}}const Uot={defaultViewAPI:Pot,renderers:[],views:[],interactor:null,neverRendered:!0,numberOfLayers:1};function ure(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Uot,n),J.obj(t,e),J.setGet(t,e,["interactor","numberOfLayers","_views","defaultViewAPI"]),J.get(t,e,["neverRendered"]),J.getArray(t,e,["renderers"]),J.moveToProtected(t,e,["views"]),J.event(t,e,"completion"),zot(t,e)}const Got=J.newInstance(ure,"vtkRenderWindow");var cre={newInstance:Got,extend:ure,registerViewConstructor:PN,listViewAPIs:Fot,newAPISpecificView:lre};const QL={Unknown:0,LeftController:1,RightController:2},nm={Unknown:0,Trigger:1,TrackPad:2,Grip:3,Thumbstick:4,A:5,B:6,ApplicationMenu:7},Hot={Unknown:0,TouchpadX:1,TouchpadY:2,ThumbstickX:3,ThumbstickY:4};var fre={Device:QL,Input:nm,Axis:Hot};const{Device:mw,Input:sh}=fre,{vtkWarningMacro:bw,vtkErrorMacro:Sw,normalizeWheel:Wot,vtkOnceErrorMacro:jot}=J,ov={ctrlKey:!1,altKey:!1,shiftKey:!1},fD={"xr-standard":[sh.Trigger,sh.Grip,sh.TrackPad,sh.Thumbstick,sh.A,sh.B]},FN=["StartAnimation","Animation","EndAnimation","PointerEnter","PointerLeave","MouseEnter","MouseLeave","StartMouseMove","MouseMove","EndMouseMove","LeftButtonPress","LeftButtonRelease","MiddleButtonPress","MiddleButtonRelease","RightButtonPress","RightButtonRelease","KeyPress","KeyDown","KeyUp","StartMouseWheel","MouseWheel","EndMouseWheel","StartPinch","Pinch","EndPinch","StartPan","Pan","EndPan","StartRotate","Rotate","EndRotate","Button3D","Move3D","StartPointerLock","EndPointerLock","StartInteraction","Interaction","EndInteraction","AnimationFrameRateUpdate"];function py(t){t.cancelable&&t.preventDefault()}function ww(t){const e=Object.create(null);return t.forEach(n=>{let{pointerId:r,position:a}=n;e[r]=a}),e}function Kot(t,e){e.classHierarchy.push("vtkRenderWindowInteractor");const n={...t},r=new Set,a=new Map;let i=1;t.start=()=>{!e.initialized&&(t.initialize(),!e.initialized)||t.startEventLoop()},t.setRenderWindow=v=>{Sw("you want to call setView(view) instead of setRenderWindow on a vtk.js interactor")},t.setInteractorStyle=v=>{e.interactorStyle!==v&&(e.interactorStyle!=null&&e.interactorStyle.setInteractor(null),e.interactorStyle=v,e.interactorStyle!=null&&e.interactorStyle.getInteractor()!==t&&e.interactorStyle.setInteractor(t))},t.initialize=()=>{e.initialized=!0,t.enable(),t.render()},t.enable=()=>t.setEnabled(!0),t.disable=()=>t.setEnabled(!1),t.startEventLoop=()=>bw("empty event loop");function o(v,g){e._forcedRenderer||(e.currentRenderer=t.findPokedRenderer(v,g))}t.getCurrentRenderer=()=>(e.currentRenderer||o(0,0),e.currentRenderer);function s(v){const g=e._view.getCanvas(),y=g.getBoundingClientRect(),m=g.width/y.width,S=g.height/y.height,w={x:m*(v.clientX-y.left),y:S*(y.height-v.clientY+y.top),z:0};return(a.size<=1||!e.currentRenderer)&&o(w.x,w.y),w}const l=e._getScreenEventPositionFor||s;function u(v){return{controlKey:v.ctrlKey,altKey:v.altKey,shiftKey:v.shiftKey}}function c(v){const g=u(v);return{key:v.key,keyCode:v.charCode,...g}}function f(v){return v.pointerType||""}const d=()=>{if(e.container===null)return;const{container:v}=e;v.addEventListener("contextmenu",py),v.addEventListener("wheel",t.handleWheel),v.addEventListener("DOMMouseScroll",t.handleWheel),v.addEventListener("pointerenter",t.handlePointerEnter),v.addEventListener("pointerleave",t.handlePointerLeave),v.addEventListener("pointermove",t.handlePointerMove,{passive:!1}),v.addEventListener("pointerdown",t.handlePointerDown,{passive:!1}),v.addEventListener("pointerup",t.handlePointerUp),v.addEventListener("pointercancel",t.handlePointerCancel),document.addEventListener("keypress",t.handleKeyPress),document.addEventListener("keydown",t.handleKeyDown),document.addEventListener("keyup",t.handleKeyUp),document.addEventListener("pointerlockchange",t.handlePointerLockChange),v.style.touchAction="none",v.style.userSelect="none",v.style.webkitTapHighlightColor="rgba(0,0,0,0)"};t.bindEvents=v=>{if(v===null)return;n.setContainer(v)&&d()};const h=()=>{clearTimeout(e.moveTimeoutID),clearTimeout(e.wheelTimeoutID),e.moveTimeoutID=0,e.wheelTimeoutID=0,i=1;const{container:v}=e;v&&(v.removeEventListener("contextmenu",py),v.removeEventListener("wheel",t.handleWheel),v.removeEventListener("DOMMouseScroll",t.handleWheel),v.removeEventListener("pointerenter",t.handlePointerEnter),v.removeEventListener("pointerleave",t.handlePointerLeave),v.removeEventListener("pointermove",t.handlePointerMove,{passive:!1}),v.removeEventListener("pointerdown",t.handlePointerDown,{passive:!1}),v.removeEventListener("pointerup",t.handlePointerUp),v.removeEventListener("pointercancel",t.handlePointerCancel)),document.removeEventListener("keypress",t.handleKeyPress),document.removeEventListener("keydown",t.handleKeyDown),document.removeEventListener("keyup",t.handleKeyUp),document.removeEventListener("pointerlockchange",t.handlePointerLockChange),a.clear()};t.unbindEvents=()=>{h(),n.setContainer(null)},t.handleKeyPress=v=>{const g=c(v);t.keyPressEvent(g)},t.handleKeyDown=v=>{const g=c(v);t.keyDownEvent(g)},t.handleKeyUp=v=>{const g=c(v);t.keyUpEvent(g)},t.handlePointerEnter=v=>{const g={...u(v),position:l(v),deviceType:f(v)};t.pointerEnterEvent(g),g.deviceType==="mouse"&&t.mouseEnterEvent(g)},t.handlePointerLeave=v=>{const g={...u(v),position:l(v),deviceType:f(v)};t.pointerLeaveEvent(g),g.deviceType==="mouse"&&t.mouseLeaveEvent(g)},t.handlePointerDown=v=>{if(!(v.button>2||t.isPointerLocked()))switch(e.preventDefaultOnPointerDown&&py(v),v.target.hasPointerCapture(v.pointerId)&&v.target.releasePointerCapture(v.pointerId),e.container.setPointerCapture(v.pointerId),a.has(v.pointerId)&&bw("[RenderWindowInteractor] duplicate pointerId detected"),a.set(v.pointerId,{pointerId:v.pointerId,position:l(v)}),v.pointerType){case"pen":case"touch":t.handleTouchStart(v);break;case"mouse":default:t.handleMouseDown(v);break}},t.handlePointerUp=v=>{if(a.has(v.pointerId))switch(e.preventDefaultOnPointerUp&&py(v),a.delete(v.pointerId),e.container.releasePointerCapture(v.pointerId),v.pointerType){case"pen":case"touch":t.handleTouchEnd(v);break;case"mouse":default:t.handleMouseUp(v);break}},t.handlePointerCancel=v=>{if(a.has(v.pointerId))switch(a.delete(v.pointerId),v.pointerType){case"pen":case"touch":t.handleTouchEnd(v);break;case"mouse":default:t.handleMouseUp(v);break}},t.handlePointerMove=v=>{if(a.has(v.pointerId)){const g=a.get(v.pointerId);g.position=l(v)}switch(v.pointerType){case"pen":case"touch":t.handleTouchMove(v);break;case"mouse":default:t.handleMouseMove(v);break}},t.handleMouseDown=v=>{const g={...u(v),position:l(v),deviceType:f(v)};switch(v.button){case 0:t.leftButtonPressEvent(g);break;case 1:t.middleButtonPressEvent(g);break;case 2:t.rightButtonPressEvent(g);break;default:Sw(`Unknown mouse button pressed: ${v.button}`);break}},t.requestPointerLock=()=>{e.container&&e.container.requestPointerLock()},t.exitPointerLock=()=>{var v;return(v=document.exitPointerLock)==null?void 0:v.call(document)},t.isPointerLocked=()=>!!e.container&&document.pointerLockElement===e.container,t.handlePointerLockChange=()=>{t.isPointerLocked()?t.startPointerLockEvent():t.endPointerLockEvent()};function p(){e._view&&e.enabled&&e.enableRender&&(e.inRender=!0,e._view.traverseAllPasses(),e.inRender=!1),t.invokeRenderEvent()}t.requestAnimation=v=>{if(v===void 0){Sw("undefined requester, can not start animating");return}if(r.has(v)){bw("requester is already registered for animating");return}r.add(v),!e.animationRequest&&r.size===1&&!e.xrAnimation&&(e._animationStartTime=Date.now(),e._animationFrameCount=0,e.animationRequest=requestAnimationFrame(t.handleAnimation),t.startAnimationEvent())},t.extendAnimation=v=>{const g=Date.now()+v;e._animationExtendedEnd=Math.max(e._animationExtendedEnd,g),!e.animationRequest&&r.size===0&&!e.xrAnimation&&(e._animationStartTime=Date.now(),e._animationFrameCount=0,e.animationRequest=requestAnimationFrame(t.handleAnimation),t.startAnimationEvent())},t.isAnimating=()=>e.xrAnimation||e.animationRequest!==null,t.cancelAnimation=function(v){let g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(!r.has(v)){if(!g){const y=v&&v.getClassName?v.getClassName():v;bw(`${y} did not request an animation`)}return}r.delete(v),e.animationRequest&&r.size===0&&Date.now()>e._animationExtendedEnd&&(cancelAnimationFrame(e.animationRequest),e.animationRequest=null,t.endAnimationEvent(),t.render())},t.switchToXRAnimation=()=>{e.animationRequest&&(cancelAnimationFrame(e.animationRequest),e.animationRequest=null),e.xrAnimation=!0},t.returnFromXRAnimation=()=>{e.xrAnimation=!1,r.size!==0&&(e.recentAnimationFrameRate=10,e.animationRequest=requestAnimationFrame(t.handleAnimation))},t.updateXRGamepads=(v,g,y)=>{v.inputSources.forEach(m=>{const S=m.gripSpace==null?null:g.getPose(m.gripSpace,y),w=m.gamepad,C=m.handedness;if(w){w.index in e.lastGamepadValues||(e.lastGamepadValues[w.index]={left:{buttons:{}},right:{buttons:{}},none:{buttons:{}}});for(let _=0;_<w.buttons.length;++_)_ in e.lastGamepadValues[w.index][C].buttons||(e.lastGamepadValues[w.index][C].buttons[_]=!1),e.lastGamepadValues[w.index][C].buttons[_]!==w.buttons[_].pressed&&S!=null&&(t.button3DEvent({gamepad:w,position:S.transform.position,orientation:S.transform.orientation,pressed:w.buttons[_].pressed,device:m.handedness==="left"?mw.LeftController:mw.RightController,input:fD[w.mapping]&&fD[w.mapping][_]?fD[w.mapping][_]:sh.Trigger}),e.lastGamepadValues[w.index][C].buttons[_]=w.buttons[_].pressed),e.lastGamepadValues[w.index][C].buttons[_]&&S!=null&&t.move3DEvent({gamepad:w,position:S.transform.position,orientation:S.transform.orientation,device:m.handedness==="left"?mw.LeftController:mw.RightController})}})},t.handleMouseMove=v=>{const g={...u(v),position:l(v),deviceType:f(v)};e.moveTimeoutID===0?t.startMouseMoveEvent(g):(t.mouseMoveEvent(g),clearTimeout(e.moveTimeoutID)),e.moveTimeoutID=setTimeout(()=>{t.endMouseMoveEvent(),e.moveTimeoutID=0},200)},t.handleAnimation=()=>{const v=Date.now();e._animationFrameCount++,v-e._animationStartTime>1e3&&e._animationFrameCount>1&&(e.recentAnimationFrameRate=1e3*(e._animationFrameCount-1)/(v-e._animationStartTime),e.lastFrameTime=1/e.recentAnimationFrameRate,t.animationFrameRateUpdateEvent(),e._animationStartTime=v,e._animationFrameCount=1),t.animationEvent(),p(),r.size>0||Date.now()<e._animationExtendedEnd?e.animationRequest=requestAnimationFrame(t.handleAnimation):(cancelAnimationFrame(e.animationRequest),e.animationRequest=null,t.endAnimationEvent(),t.render())},t.handleWheel=v=>{py(v);const g={...Wot(v),...u(v),position:l(v),deviceType:f(v)};e.wheelTimeoutID===0&&(Math.abs(g.spinY)>=.3?i=Math.abs(g.spinY):i=1),g.spinY/=i,e.wheelTimeoutID===0?(t.startMouseWheelEvent(g),t.mouseWheelEvent(g)):(t.mouseWheelEvent(g),clearTimeout(e.wheelTimeoutID)),e.mouseScrollDebounceByPass?(t.extendAnimation(600),t.endMouseWheelEvent(),e.wheelTimeoutID=0):e.wheelTimeoutID=setTimeout(()=>{t.extendAnimation(600),t.endMouseWheelEvent(),e.wheelTimeoutID=0},200)},t.handleMouseUp=v=>{const g={...u(v),position:l(v),deviceType:f(v)};switch(v.button){case 0:t.leftButtonReleaseEvent(g);break;case 1:t.middleButtonReleaseEvent(g);break;case 2:t.rightButtonReleaseEvent(g);break;default:Sw(`Unknown mouse button released: ${v.button}`);break}},t.handleTouchStart=v=>{const g=[...a.values()];if(e.recognizeGestures&&g.length>1){const y=ww(a);if(g.length===2){const m={...u(ov),position:g[0].position,deviceType:f(v)};t.leftButtonReleaseEvent(m)}t.recognizeGesture("TouchStart",y)}else if(g.length===1){const y={...u(ov),position:l(v),deviceType:f(v)};t.leftButtonPressEvent(y)}},t.handleTouchMove=v=>{const g=[...a.values()];if(e.recognizeGestures&&g.length>1){const y=ww(a);t.recognizeGesture("TouchMove",y)}else if(g.length===1){const y={...u(ov),position:g[0].position,deviceType:f(v)};t.mouseMoveEvent(y)}},t.handleTouchEnd=v=>{const g=[...a.values()];if(e.recognizeGestures)if(g.length===0){const y={...u(ov),position:l(v),deviceType:f(v)};t.leftButtonReleaseEvent(y)}else if(g.length===1){const y=ww(a);t.recognizeGesture("TouchEnd",y);const m={...u(ov),position:g[0].position,deviceType:f(v)};t.leftButtonPressEvent(m)}else{const y=ww(a);t.recognizeGesture("TouchMove",y)}else if(g.length===1){const y={...u(ov),position:g[0].position,deviceType:f(v)};t.leftButtonReleaseEvent(y)}},t.setView=v=>{e._view!==v&&(e._view=v,e._view.getRenderable().setInteractor(t),t.modified())},t.getFirstRenderer=()=>{var v,g,y;return(y=(g=(v=e._view)==null?void 0:v.getRenderable())==null?void 0:g.getRenderersByReference())==null?void 0:y[0]},t.findPokedRenderer=function(){var _,x;let v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;if(!e._view)return null;const y=(x=(_=e._view)==null?void 0:_.getRenderable())==null?void 0:x.getRenderers();if(!y||y.length===0)return null;y.sort((T,M)=>T.getLayer()-M.getLayer());let m=null,S=null,w=null,C=y.length;for(;C--;){const T=y[C];if(e._view.isInViewport(v,g,T)&&T.getInteractive()){w=T;break}m===null&&T.getInteractive()&&(m=T),S===null&&e._view.isInViewport(v,g,T)&&(S=T)}return w===null&&(w=m),w===null&&(w=S),w==null&&(w=y[0]),w},t.render=()=>{!t.isAnimating()&&!e.inRender&&p()},FN.forEach(v=>{const g=v.charAt(0).toLowerCase()+v.slice(1);t[`${g}Event`]=y=>{if(!e.enabled)return;if(!t.getCurrentRenderer()){jot(`
  671. Can not forward events without a current renderer on the interactor.
  672. `);return}const S={type:v,pokedRenderer:e.currentRenderer,firstRenderer:t.getFirstRenderer(),...y};t[`invoke${v}`](S)}}),t.recognizeGesture=(v,g)=>{if(Object.keys(g).length>2)return;if(e.startingEventPositions||(e.startingEventPositions={}),v==="TouchStart"){Object.keys(g).forEach(E=>{e.startingEventPositions[E]=g[E]}),e.currentGesture="Start";return}if(v==="TouchEnd"){e.currentGesture==="Pinch"&&(t.render(),t.endPinchEvent()),e.currentGesture==="Rotate"&&(t.render(),t.endRotateEvent()),e.currentGesture==="Pan"&&(t.render(),t.endPanEvent()),e.currentGesture="Start",e.startingEventPositions={};return}let y=0;const m=[],S=[];Object.keys(g).forEach(E=>{m[y]=g[E],S[y]=e.startingEventPositions[E],y++});const w=Math.sqrt((S[0].x-S[1].x)*(S[0].x-S[1].x)+(S[0].y-S[1].y)*(S[0].y-S[1].y)),C=Math.sqrt((m[0].x-m[1].x)*(m[0].x-m[1].x)+(m[0].y-m[1].y)*(m[0].y-m[1].y));let _=Yg(Math.atan2(S[1].y-S[0].y,S[1].x-S[0].x)),x=Yg(Math.atan2(m[1].y-m[0].y,m[1].x-m[0].x)),T=x-_;x=x+180>=360?x-180:x+180,_=_+180>=360?_-180:_+180,Math.abs(x-_)<Math.abs(T)&&(T=x-_);const M=[];if(M[0]=(m[0].x-S[0].x+m[1].x-S[1].x)/2,M[1]=(m[0].y-S[0].y+m[1].y-S[1].y)/2,v==="TouchMove")if(e.currentGesture==="Start"){let E=.01*Math.sqrt(e.container.clientWidth*e.container.clientWidth+e.container.clientHeight*e.container.clientHeight);E<15&&(E=15);const A=Math.abs(C-w),k=C*3.1415926*Math.abs(T)/360,L=Math.sqrt(M[0]*M[0]+M[1]*M[1]);if(A>E&&A>k&&A>L){e.currentGesture="Pinch";const I={scale:1,touches:g};t.startPinchEvent(I)}else if(k>E&&k>L){e.currentGesture="Rotate";const I={rotation:0,touches:g};t.startRotateEvent(I)}else if(L>E){e.currentGesture="Pan";const I={translation:[0,0],touches:g};t.startPanEvent(I)}}else{if(e.currentGesture==="Rotate"){const E={rotation:T,touches:g};t.rotateEvent(E)}if(e.currentGesture==="Pinch"){const E={scale:C/w,touches:g};t.pinchEvent(E)}if(e.currentGesture==="Pan"){const E={translation:M,touches:g};t.panEvent(E)}}},t.handleVisibilityChange=()=>{e._animationStartTime=Date.now(),e._animationFrameCount=0},t.setCurrentRenderer=v=>{e._forcedRenderer=!!v,e.currentRenderer=v},t.setContainer=v=>{h();const g=n.setContainer(v??null);return g&&d(),g},t.delete=()=>{for(;r.size;)t.cancelAnimation(r.values().next().value);typeof document.hidden<"u"&&document.removeEventListener("visibilitychange",t.handleVisibilityChange),e.container&&t.setContainer(null),n.delete()},typeof document.hidden<"u"&&document.addEventListener("visibilitychange",t.handleVisibilityChange,!1)}const Yot={renderWindow:null,interactorStyle:null,picker:null,pickingManager:null,initialized:!1,enabled:!1,enableRender:!0,currentRenderer:null,lightFollowCamera:!0,desiredUpdateRate:30,stillUpdateRate:2,container:null,recognizeGestures:!0,currentGesture:"Start",animationRequest:null,lastFrameTime:.1,recentAnimationFrameRate:10,wheelTimeoutID:0,moveTimeoutID:0,lastGamepadValues:{},preventDefaultOnPointerDown:!1,preventDefaultOnPointerUp:!1,mouseScrollDebounceByPass:!1};function dre(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Yot,n),J.obj(t,e),e._animationExtendedEnd=0,J.event(t,e,"RenderEvent"),FN.forEach(r=>J.event(t,e,r)),J.get(t,e,["initialized","interactorStyle","lastFrameTime","recentAnimationFrameRate","_view"]),J.setGet(t,e,["container","lightFollowCamera","enabled","enableRender","recognizeGestures","desiredUpdateRate","stillUpdateRate","picker","preventDefaultOnPointerDown","preventDefaultOnPointerUp","mouseScrollDebounceByPass"]),J.moveToProtected(t,e,["view"]),Kot(t,e)}const Xot=J.newInstance(dre,"vtkRenderWindowInteractor");var zN={newInstance:Xot,extend:dre,handledEvents:FN,...fre};const{vtkErrorMacro:qot,VOID:Zot}=J;function Qot(t,e,n,r){return t.getRenderWindow().getViews()[0].worldToDisplay(e,n,r,t)}function Jot(t,e,n,r){return t.getRenderWindow().getViews()[0].displayToWorld(e,n,r,t)}const est={computeWorldToDisplay:Qot,computeDisplayToWorld:Jot};function tst(t,e){e.classHierarchy.push("vtkInteractorObserver");const n={...t};function r(){for(;e.subscribedEvents.length;)e.subscribedEvents.pop().unsubscribe()}function a(){zN.handledEvents.forEach(i=>{t[`handle${i}`]&&e.subscribedEvents.push(e._interactor[`on${i}`](o=>e.processEvents?t[`handle${i}`](o):Zot,e.priority))})}t.setInteractor=i=>{i!==e._interactor&&(r(),e._interactor=i,i&&e.enabled&&a(),t.modified())},t.setEnabled=i=>{i!==e.enabled&&(r(),i&&(e._interactor?a():qot(`
  673. The interactor must be set before subscribing to events
  674. `)),e.enabled=i,t.modified())},t.computeDisplayToWorld=(i,o,s,l)=>i?e._interactor.getView().displayToWorld(o,s,l,i):null,t.computeWorldToDisplay=(i,o,s,l)=>i?e._interactor.getView().worldToDisplay(o,s,l,i):null,t.setPriority=i=>{n.setPriority(i)&&e._interactor&&(r(),a())}}const nst={enabled:!0,priority:0,processEvents:!0,subscribedEvents:[]};function hre(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,nst,n),J.obj(t,e),J.event(t,e,"InteractionEvent"),J.event(t,e,"StartInteractionEvent"),J.event(t,e,"EndInteractionEvent"),J.get(t,e,["_interactor","enabled"]),J.setGet(t,e,["priority","processEvents"]),J.moveToProtected(t,e,["interactor"]),tst(t,e)}const rst=J.newInstance(hre,"vtkInteractorObserver");var ast={newInstance:rst,extend:hre,...est};const ist={IS_START:0,IS_NONE:0,IS_ROTATE:1,IS_PAN:2,IS_SPIN:3,IS_DOLLY:4,IS_CAMERA_POSE:11,IS_WINDOW_LEVEL:1024,IS_SLICE:1025};var UN={States:ist};const{States:Hl}=UN,dD={Rotate:Hl.IS_ROTATE,Pan:Hl.IS_PAN,Spin:Hl.IS_SPIN,Dolly:Hl.IS_DOLLY,CameraPose:Hl.IS_CAMERA_POSE,WindowLevel:Hl.IS_WINDOW_LEVEL,Slice:Hl.IS_SLICE};function ost(t,e){e.classHierarchy.push("vtkInteractorStyle"),Object.keys(dD).forEach(n=>{J.event(t,e,`Start${n}Event`),t[`start${n}`]=()=>{e.state===Hl.IS_NONE&&(e.state=dD[n],e._interactor.requestAnimation(t),t.invokeStartInteractionEvent({type:"StartInteractionEvent"}),t[`invokeStart${n}Event`]({type:`Start${n}Event`}))},J.event(t,e,`End${n}Event`),t[`end${n}`]=()=>{e.state===dD[n]&&(e.state=Hl.IS_NONE,e._interactor.cancelAnimation(t),t.invokeEndInteractionEvent({type:"EndInteractionEvent"}),t[`invokeEnd${n}Event`]({type:`End${n}Event`}),e._interactor.render())}}),t.handleKeyPress=n=>{const r=e._interactor;let a=null;switch(n.key){case"r":case"R":n.pokedRenderer.resetCamera(),r.render();break;case"w":case"W":a=n.pokedRenderer.getActors(),a.forEach(i=>{const o=i.getProperty();o.setRepresentationToWireframe&&o.setRepresentationToWireframe()}),r.render();break;case"s":case"S":a=n.pokedRenderer.getActors(),a.forEach(i=>{const o=i.getProperty();o.setRepresentationToSurface&&o.setRepresentationToSurface()}),r.render();break;case"v":case"V":a=n.pokedRenderer.getActors(),a.forEach(i=>{const o=i.getProperty();o.setRepresentationToPoints&&o.setRepresentationToPoints()}),r.render();break}}}const sst={state:Hl.IS_NONE,handleObservers:1,autoAdjustCameraClippingRange:1};function pre(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,sst,n),ast.extend(t,e,n),ost(t,e)}const lst=J.newInstance(pre,"vtkInteractorStyle");var ust={newInstance:lst,extend:pre,...UN};const{States:Nl}=UN;function cst(t,e){e.classHierarchy.push("vtkInteractorStyleTrackballCamera"),t.handleMouseMove=n=>{const r=n.position,a=n.pokedRenderer;switch(e.state){case Nl.IS_ROTATE:t.handleMouseRotate(a,r),t.invokeInteractionEvent({type:"InteractionEvent"});break;case Nl.IS_PAN:t.handleMousePan(a,r),t.invokeInteractionEvent({type:"InteractionEvent"});break;case Nl.IS_DOLLY:t.handleMouseDolly(a,r),t.invokeInteractionEvent({type:"InteractionEvent"});break;case Nl.IS_SPIN:t.handleMouseSpin(a,r),t.invokeInteractionEvent({type:"InteractionEvent"});break}e.previousPosition=r},t.handleButton3D=n=>{if(n&&n.pressed&&n.device===QL.RightController&&(n.input===nm.Trigger||n.input===nm.TrackPad)){t.startCameraPose();return}n&&!n.pressed&&n.device===QL.RightController&&(n.input===nm.Trigger||n.input===nm.TrackPad)&&e.state===Nl.IS_CAMERA_POSE&&t.endCameraPose()},t.handleMove3D=n=>{switch(e.state){case Nl.IS_CAMERA_POSE:t.updateCameraPose(n);break}},t.updateCameraPose=n=>{const r=n.pokedRenderer.getActiveCamera(),a=r.getPhysicalTranslation(),o=.5*.05*r.getPhysicalScale(),s=r.physicalOrientationToWorldDirection([n.orientation.x,n.orientation.y,n.orientation.z,n.orientation.w]);r.setPhysicalTranslation(a[0]+s[0]*o,a[1]+s[1]*o,a[2]+s[2]*o)},t.handleLeftButtonPress=n=>{const r=n.position;e.previousPosition=r,n.shiftKey?n.controlKey||n.altKey?t.startDolly():t.startPan():n.controlKey||n.altKey?t.startSpin():t.startRotate()},t.handleLeftButtonRelease=()=>{switch(e.state){case Nl.IS_DOLLY:t.endDolly();break;case Nl.IS_PAN:t.endPan();break;case Nl.IS_SPIN:t.endSpin();break;case Nl.IS_ROTATE:t.endRotate();break}},t.handleStartMouseWheel=()=>{t.startDolly()},t.handleEndMouseWheel=()=>{t.endDolly()},t.handleStartPinch=n=>{e.previousScale=n.scale,t.startDolly()},t.handleEndPinch=()=>{t.endDolly()},t.handleStartRotate=n=>{e.previousRotation=n.rotation,t.startRotate()},t.handleEndRotate=()=>{t.endRotate()},t.handleStartPan=n=>{e.previousTranslation=n.translation,t.startPan()},t.handleEndPan=()=>{t.endPan()},t.handlePinch=n=>{t.dollyByFactor(n.pokedRenderer,n.scale/e.previousScale),e.previousScale=n.scale},t.handlePan=n=>{const r=n.pokedRenderer.getActiveCamera();let a=r.getFocalPoint();a=t.computeWorldToDisplay(n.pokedRenderer,a[0],a[1],a[2]);const i=a[2],o=n.translation,s=e.previousTranslation,l=t.computeDisplayToWorld(n.pokedRenderer,a[0]+o[0]-s[0],a[1]+o[1]-s[1],i),u=t.computeDisplayToWorld(n.pokedRenderer,a[0],a[1],i),c=[];c[0]=u[0]-l[0],c[1]=u[1]-l[1],c[2]=u[2]-l[2],a=r.getFocalPoint();const f=r.getPosition();r.setFocalPoint(c[0]+a[0],c[1]+a[1],c[2]+a[2]),r.setPosition(c[0]+f[0],c[1]+f[1],c[2]+f[2]),e._interactor.getLightFollowCamera()&&n.pokedRenderer.updateLightsGeometryToFollowCamera(),r.orthogonalizeViewUp(),e.previousTranslation=n.translation},t.handleRotate=n=>{const r=n.pokedRenderer.getActiveCamera();r.roll(n.rotation-e.previousRotation),r.orthogonalizeViewUp(),e.previousRotation=n.rotation},t.handleMouseRotate=(n,r)=>{if(!e.previousPosition)return;const a=e._interactor,i=r.x-e.previousPosition.x,o=r.y-e.previousPosition.y,s=a.getView().getViewportSize(n);let l=-.1,u=-.1;s[0]&&s[1]&&(l=-20/s[1],u=-20/s[0]);const c=i*u*e.motionFactor,f=o*l*e.motionFactor,d=n.getActiveCamera();!Number.isNaN(c)&&!Number.isNaN(f)&&(d.azimuth(c),d.elevation(f),d.orthogonalizeViewUp()),e.autoAdjustCameraClippingRange&&n.resetCameraClippingRange(),a.getLightFollowCamera()&&n.updateLightsGeometryToFollowCamera()},t.handleMouseSpin=(n,r)=>{if(!e.previousPosition)return;const a=e._interactor,i=n.getActiveCamera(),o=a.getView().getViewportCenter(n),s=Yg(Math.atan2(e.previousPosition.y-o[1],e.previousPosition.x-o[0])),l=Yg(Math.atan2(r.y-o[1],r.x-o[0]))-s;Number.isNaN(l)||(i.roll(l),i.orthogonalizeViewUp())},t.handleMousePan=(n,r)=>{if(!e.previousPosition)return;const a=n.getActiveCamera();let i=a.getFocalPoint();i=t.computeWorldToDisplay(n,i[0],i[1],i[2]);const o=i[2],s=t.computeDisplayToWorld(n,r.x,r.y,o),l=t.computeDisplayToWorld(n,e.previousPosition.x,e.previousPosition.y,o),u=[];u[0]=l[0]-s[0],u[1]=l[1]-s[1],u[2]=l[2]-s[2],i=a.getFocalPoint();const c=a.getPosition();a.setFocalPoint(u[0]+i[0],u[1]+i[1],u[2]+i[2]),a.setPosition(u[0]+c[0],u[1]+c[1],u[2]+c[2]),e._interactor.getLightFollowCamera()&&n.updateLightsGeometryToFollowCamera()},t.handleMouseDolly=(n,r)=>{if(!e.previousPosition)return;const a=r.y-e.previousPosition.y,o=e._interactor.getView().getViewportCenter(n),s=e.motionFactor*a/o[1];t.dollyByFactor(n,1.1**s)},t.handleMouseWheel=n=>{const r=1-n.spinY/e.zoomFactor;t.dollyByFactor(n.pokedRenderer,r)},t.dollyByFactor=(n,r)=>{if(Number.isNaN(r))return;const a=n.getActiveCamera();a.getParallelProjection()?a.setParallelScale(a.getParallelScale()/r):(a.dolly(r),e.autoAdjustCameraClippingRange&&n.resetCameraClippingRange()),e._interactor.getLightFollowCamera()&&n.updateLightsGeometryToFollowCamera()}}const fst={motionFactor:10,zoomFactor:10};function vre(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,fst,n),ust.extend(t,e,n),J.setGet(t,e,["motionFactor","zoomFactor"]),cst(t,e)}const dst=J.newInstance(vre,"vtkInteractorStyleTrackballCamera");var gre={newInstance:dst,extend:vre};function hst(t){return t}function GN(t){if(t===null||t==="null")return null;if(t==="true")return!0;if(t==="false")return!1;if(!(t===void 0||t==="undefined"))return t[0]==="["&&t[t.length-1]==="]"?t.substring(1,t.length-1).split(",").map(e=>GN(e.trim())):t===""||Number.isNaN(Number(t))?t:Number(t)}function pst(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:window.location.search;const n={},r=t?GN:hst;return(e||"").replace(/#.*/,"").replace("?","").split("&").forEach(i=>{const[o,s]=i.split("=").map(l=>decodeURIComponent(l));o&&(n[o]=s?r(s):!0)}),n}var yre={toNativeType:GN,extractURLParameters:pst};function vst(t,e){e.classHierarchy.push("vtkFramebuffer"),t.getBothMode=()=>e.context.FRAMEBUFFER,t.saveCurrentBindingsAndBuffers=n=>{const r=typeof n<"u"?n:t.getBothMode();t.saveCurrentBindings(r),t.saveCurrentBuffers(r)},t.saveCurrentBindings=n=>{if(!e.context){Xn("you must set the OpenGLRenderWindow before calling saveCurrentBindings");return}const r=e.context;e.previousDrawBinding=r.getParameter(e.context.FRAMEBUFFER_BINDING),e.previousActiveFramebuffer=e._openGLRenderWindow.getActiveFramebuffer()},t.saveCurrentBuffers=n=>{},t.restorePreviousBindingsAndBuffers=n=>{const r=typeof n<"u"?n:t.getBothMode();t.restorePreviousBindings(r),t.restorePreviousBuffers(r)},t.restorePreviousBindings=n=>{if(!e.context){Xn("you must set the OpenGLRenderWindow before calling restorePreviousBindings");return}const r=e.context;r.bindFramebuffer(r.FRAMEBUFFER,e.previousDrawBinding),e._openGLRenderWindow.setActiveFramebuffer(e.previousActiveFramebuffer)},t.restorePreviousBuffers=n=>{},t.bind=function(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;r===null&&(r=e.context.FRAMEBUFFER),e.context.bindFramebuffer(r,e.glFramebuffer);for(let a=0;a<e.colorBuffers.length;a++)e.colorBuffers[a].bind();e._openGLRenderWindow.setActiveFramebuffer(t)},t.create=(n,r)=>{if(!e.context){Xn("you must set the OpenGLRenderWindow before calling create");return}e.glFramebuffer=e.context.createFramebuffer(),e.glFramebuffer.width=n,e.glFramebuffer.height=r},t.setColorBuffer=function(n){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;const a=e.context;if(!a){Xn("you must set the OpenGLRenderWindow before calling setColorBuffer");return}let i=a.COLOR_ATTACHMENT0;if(r>0)if(e._openGLRenderWindow.getWebgl2())i+=r;else{Xn("Using multiple framebuffer attachments requires WebGL 2");return}e.colorBuffers[r]=n,a.framebufferTexture2D(a.FRAMEBUFFER,i,a.TEXTURE_2D,n.getHandle(),0)},t.removeColorBuffer=function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;const r=e.context;if(!r){Xn("you must set the OpenGLRenderWindow before calling removeColorBuffer");return}let a=r.COLOR_ATTACHMENT0;if(n>0)if(e._openGLRenderWindow.getWebgl2())a+=n;else{Xn("Using multiple framebuffer attachments requires WebGL 2");return}r.framebufferTexture2D(r.FRAMEBUFFER,a,r.TEXTURE_2D,null,0),e.colorBuffers=e.colorBuffers.splice(n,1)},t.setDepthBuffer=n=>{if(!e.context){Xn("you must set the OpenGLRenderWindow before calling setDepthBuffer");return}if(e._openGLRenderWindow.getWebgl2()){const r=e.context;r.framebufferTexture2D(r.FRAMEBUFFER,r.DEPTH_ATTACHMENT,r.TEXTURE_2D,n.getHandle(),0)}else Xn("Attaching depth buffer textures to fbo requires WebGL 2")},t.removeDepthBuffer=()=>{if(!e.context){Xn("you must set the OpenGLRenderWindow before calling removeDepthBuffer");return}if(e._openGLRenderWindow.getWebgl2()){const n=e.context;n.framebufferTexture2D(n.FRAMEBUFFER,n.DEPTH_ATTACHMENT,n.TEXTURE_2D,null,0)}else Xn("Attaching depth buffer textures to framebuffers requires WebGL 2")},t.getGLFramebuffer=()=>e.glFramebuffer,t.setOpenGLRenderWindow=n=>{e._openGLRenderWindow!==n&&(t.releaseGraphicsResources(),e._openGLRenderWindow=n,e.context=null,n&&(e.context=e._openGLRenderWindow.getContext()))},t.releaseGraphicsResources=()=>{e.glFramebuffer&&e.context.deleteFramebuffer(e.glFramebuffer)},t.getSize=()=>e.glFramebuffer==null?null:[e.glFramebuffer.width,e.glFramebuffer.height],t.populateFramebuffer=()=>{if(!e.context){Xn("you must set the OpenGLRenderWindow before calling populateFrameBuffer");return}t.bind();const n=e.context,r=tp.newInstance();r.setOpenGLRenderWindow(e._openGLRenderWindow),r.setMinificationFilter(XL.LINEAR),r.setMagnificationFilter(XL.LINEAR),r.create2DFromRaw(e.glFramebuffer.width,e.glFramebuffer.height,4,Va.UNSIGNED_CHAR,null),t.setColorBuffer(r),e.depthTexture=n.createRenderbuffer(),n.bindRenderbuffer(n.RENDERBUFFER,e.depthTexture),n.renderbufferStorage(n.RENDERBUFFER,n.DEPTH_COMPONENT16,e.glFramebuffer.width,e.glFramebuffer.height),n.framebufferRenderbuffer(n.FRAMEBUFFER,n.DEPTH_ATTACHMENT,n.RENDERBUFFER,e.depthTexture)},t.getColorTexture=()=>e.colorBuffers[0]}const gst={glFramebuffer:null,colorBuffers:null,depthTexture:null,previousDrawBinding:0,previousReadBinding:0,previousDrawBuffer:0,previousReadBuffer:0,previousActiveFramebuffer:null};function mre(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,gst,n),oi(t,e),e.colorBuffers&&Xn("you cannot initialize colorBuffers through the constructor. You should call setColorBuffer() instead."),e.colorBuffers=[],C0(t,e,["colorBuffers"]),vst(t,e)}const yst=Kr(mre,"vtkFramebuffer");var HN={newInstance:yst,extend:mre};function mst(t,e){e.classHierarchy.push("vtkRenderPass"),t.getOperation=()=>e.currentOperation,t.setCurrentOperation=n=>{e.currentOperation=n,e.currentTraverseOperation=`traverse${J.capitalize(e.currentOperation)}`},t.getTraverseOperation=()=>e.currentTraverseOperation,t.traverse=function(n){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;e.deleted||(e._currentParent=r,e.preDelegateOperations.forEach(a=>{t.setCurrentOperation(a),n.traverse(t)}),e.delegates.forEach(a=>{a.traverse(n,t)}),e.postDelegateOperations.forEach(a=>{t.setCurrentOperation(a),n.traverse(t)}))}}const bst={delegates:[],currentOperation:null,preDelegateOperations:[],postDelegateOperations:[],currentParent:null};function bre(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,bst,n),J.obj(t,e),J.get(t,e,["currentOperation"]),J.setGet(t,e,["delegates","_currentParent","preDelegateOperations","postDelegateOperations"]),J.moveToProtected(t,e,["currentParent"]),mst(t,e)}const Sst=J.newInstance(bre,"vtkRenderPass");var Cc={newInstance:Sst,extend:bre};const{Representation:wst}=T0,{vtkErrorMacro:tz}=J;function xst(t){const e=St.substitute(t.Fragment,"//VTK::RenderPassFragmentShader::Impl",`
  675. float weight = gl_FragData[0].a * pow(max(1.1 - gl_FragCoord.z, 0.0), 2.0);
  676. gl_FragData[0] = vec4(gl_FragData[0].rgb*weight, gl_FragData[0].a);
  677. gl_FragData[1].r = weight;
  678. `,!1);t.Fragment=e.result}const _st=`//VTK::System::Dec
  679. in vec2 tcoord;
  680. uniform sampler2D translucentRTexture;
  681. uniform sampler2D translucentRGBATexture;
  682. // the output of this shader
  683. //VTK::Output::Dec
  684. void main()
  685. {
  686. vec4 t1Color = texture(translucentRGBATexture, tcoord);
  687. float t2Color = texture(translucentRTexture, tcoord).r;
  688. gl_FragData[0] = vec4(t1Color.rgb/max(t2Color,0.01), 1.0 - t1Color.a);
  689. }
  690. `;function Cst(t,e){e.classHierarchy.push("vtkOpenGLOrderIndependentTranslucentPass"),t.createVertexBuffer=()=>{const n=new Float32Array([-1,-1,-1,1,-1,-1,-1,1,-1,1,1,-1]),r=new Float32Array([0,0,1,0,0,1,1,1]),a=new Uint16Array([4,0,1,3,2]),i=zn.newInstance({numberOfComponents:3,values:n});i.setName("points");const o=zn.newInstance({numberOfComponents:2,values:r});o.setName("tcoords");const s=zn.newInstance({numberOfComponents:1,values:a});e.tris.getCABO().createVBO(s,"polys",wst.SURFACE,{points:i,tcoords:o,cellOffset:0}),e.VBOBuildTime.modified()},t.createFramebuffer=n=>{const r=n.getSize(),a=n.getContext();e.framebuffer=HN.newInstance(),e.framebuffer.setOpenGLRenderWindow(n),e.framebuffer.create(...r),e.framebuffer.saveCurrentBindingsAndBuffers(),e.framebuffer.bind(),e.translucentRGBATexture=tp.newInstance(),e.translucentRGBATexture.setInternalFormat(a.RGBA16F),e.translucentRGBATexture.setFormat(a.RGBA),e.translucentRGBATexture.setOpenGLDataType(a.HALF_FLOAT),e.translucentRGBATexture.setOpenGLRenderWindow(n),e.translucentRGBATexture.create2DFromRaw(r[0],r[1],4,"Float32Array",null),e.translucentRTexture=tp.newInstance(),e.translucentRTexture.setInternalFormat(a.R16F),e.translucentRTexture.setFormat(a.RED),e.translucentRTexture.setOpenGLDataType(a.HALF_FLOAT),e.translucentRTexture.setOpenGLRenderWindow(n),e.translucentRTexture.create2DFromRaw(r[0],r[1],1,"Float32Array",null),e.translucentZTexture=tp.newInstance(),e.translucentZTexture.setOpenGLRenderWindow(n),e.translucentZTexture.createDepthFromRaw(r[0],r[1],"Float32Array",null),e.framebuffer.setColorBuffer(e.translucentRGBATexture,0),e.framebuffer.setColorBuffer(e.translucentRTexture,1),e.framebuffer.setDepthBuffer(e.translucentZTexture)},t.createCopyShader=n=>{e.copyShader=n.getShaderCache().readyShaderProgramArray(["//VTK::System::Dec","attribute vec4 vertexDC;","attribute vec2 tcoordTC;","varying vec2 tcoord;","void main() { tcoord = tcoordTC; gl_Position = vertexDC; }"].join(`
  691. `),_st,"")},t.createVBO=n=>{const r=n.getContext();e.tris.setOpenGLRenderWindow(n),t.createVertexBuffer();const a=e.copyShader;e.tris.getCABO().bind(),e.copyVAO.addAttributeArray(a,e.tris.getCABO(),"vertexDC",e.tris.getCABO().getVertexOffset(),e.tris.getCABO().getStride(),r.FLOAT,3,r.FALSE)||tz("Error setting vertexDC in copy shader VAO."),e.copyVAO.addAttributeArray(a,e.tris.getCABO(),"tcoordTC",e.tris.getCABO().getTCoordOffset(),e.tris.getCABO().getStride(),r.FLOAT,2,r.FALSE)||tz("Error setting vertexDC in copy shader VAO.")},t.traverse=(n,r,a)=>{if(e.deleted)return;const i=n.getSize(),o=n.getContext();if(e._supported=!1,r.getSelector()||!o||!n.getWebgl2()||!o.getExtension("EXT_color_buffer_half_float")&&!o.getExtension("EXT_color_buffer_float")){t.setCurrentOperation("translucentPass"),r.traverse(t);return}if(e._supported=!0,e.framebuffer===null)t.createFramebuffer(n);else{const s=e.framebuffer.getSize();s===null||s[0]!==i[0]||s[1]!==i[1]?(e.framebuffer.releaseGraphicsResources(),e.translucentRGBATexture.releaseGraphicsResources(n),e.translucentRTexture.releaseGraphicsResources(n),e.translucentZTexture.releaseGraphicsResources(n),t.createFramebuffer(n)):(e.framebuffer.saveCurrentBindingsAndBuffers(),e.framebuffer.bind())}o.drawBuffers([o.COLOR_ATTACHMENT0]),o.clearBufferfv(o.COLOR,0,[0,0,0,0]),o.clearBufferfv(o.DEPTH,0,[1]),o.colorMask(!1,!1,!1,!1),a.getOpaqueActorCount()>0&&(a.setCurrentOperation("opaqueZBufferPass"),r.traverse(a)),o.colorMask(!0,!0,!0,!0),o.drawBuffers([o.COLOR_ATTACHMENT0,o.COLOR_ATTACHMENT1]),o.viewport(0,0,i[0],i[1]),o.scissor(0,0,i[0],i[1]),o.clearBufferfv(o.COLOR,0,[0,0,0,1]),o.clearBufferfv(o.COLOR,1,[0,0,0,0]),o.enable(o.DEPTH_TEST),o.enable(o.BLEND),o.blendFuncSeparate(o.ONE,o.ONE,o.ZERO,o.ONE_MINUS_SRC_ALPHA),t.setCurrentOperation("translucentPass"),r.traverse(t),o.drawBuffers([o.NONE]),e.framebuffer.restorePreviousBindingsAndBuffers(),e.copyShader===null?t.createCopyShader(n):n.getShaderCache().readyShaderProgram(e.copyShader),e.copyVAO||(e.copyVAO=bne.newInstance(),e.copyVAO.setOpenGLRenderWindow(n)),e.copyVAO.bind(),e.VBOBuildTime.getMTime()<t.getMTime()&&t.createVBO(n),o.blendFuncSeparate(o.SRC_ALPHA,o.ONE_MINUS_SRC_ALPHA,o.ONE,o.ONE_MINUS_SRC_ALPHA),o.depthMask(!1),o.depthFunc(o.ALWAYS),o.viewport(0,0,i[0],i[1]),o.scissor(0,0,i[0],i[1]),e.translucentRGBATexture.activate(),e.copyShader.setUniformi("translucentRGBATexture",e.translucentRGBATexture.getTextureUnit()),e.translucentRTexture.activate(),e.copyShader.setUniformi("translucentRTexture",e.translucentRTexture.getTextureUnit()),o.drawArrays(o.TRIANGLES,0,e.tris.getCABO().getElementCount()),o.depthMask(!0),o.depthFunc(o.LEQUAL),e.translucentRGBATexture.deactivate(),e.translucentRTexture.deactivate()},t.getShaderReplacement=()=>e._supported?xst:null,t.releaseGraphicsResources=n=>{e.framebuffer&&(e.framebuffer.releaseGraphicsResources(n),e.framebuffer=null),e.translucentRGBATexture&&(e.translucentRGBATexture.releaseGraphicsResources(n),e.translucentRGBATexture=null),e.translucentRTexture&&(e.translucentRTexture.releaseGraphicsResources(n),e.translucentRTexture=null),e.translucentZTexture&&(e.translucentZTexture.releaseGraphicsResources(n),e.translucentZTexture=null),e.copyVAO&&(e.copyVAO.releaseGraphicsResources(n),e.copyVAO=null),e.copyShader&&(e.copyShader.releaseGraphicsResources(n),e.copyShader=null),e.tris&&(e.tris.releaseGraphicsResources(n),e.tris=null),t.modified()}}const Tst={framebuffer:null,copyShader:null,tris:null};function Sre(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Tst,n),Cc.extend(t,e,n),e.VBOBuildTime={},J.obj(e.VBOBuildTime,{mtime:0}),e.tris=E0.newInstance(),J.get(t,e,["framebuffer"]),Cst(t,e)}const Est=J.newInstance(Sre,"vtkOpenGLOrderIndependentTranslucentPass");var Mst={newInstance:Est,extend:Sre};function Dst(t,e){e.classHierarchy.push("vtkForwardPass"),t.traverse=function(n){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(e.deleted)return;e._currentParent=r,t.setCurrentOperation("buildPass"),n.traverse(t);const a=n.getRenderable().getNumberOfLayers(),i=n.getChildren();for(let o=0;o<a;o++)for(let s=0;s<i.length;s++){const l=i[s],u=n.getRenderable().getRenderers()[s];if(u.getDraw()&&u.getLayer()===o){if(e.opaqueActorCount=0,e.translucentActorCount=0,e.volumeCount=0,e.overlayActorCount=0,t.setCurrentOperation("queryPass"),l.traverse(t),(e.opaqueActorCount>0||e.translucentActorCount>0)&&e.volumeCount>0||e.depthRequested){const c=n.getFramebufferSize();e.framebuffer===null&&(e.framebuffer=HN.newInstance()),e.framebuffer.setOpenGLRenderWindow(n),e.framebuffer.saveCurrentBindingsAndBuffers();const f=e.framebuffer.getSize();(f===null||f[0]!==c[0]||f[1]!==c[1])&&(e.framebuffer.create(c[0],c[1]),e.framebuffer.populateFramebuffer()),e.framebuffer.bind(),t.setCurrentOperation("zBufferPass"),l.traverse(t),e.framebuffer.restorePreviousBindingsAndBuffers(),e.depthRequested=!1}t.setCurrentOperation("cameraPass"),l.traverse(t),e.opaqueActorCount>0&&(t.setCurrentOperation("opaquePass"),l.traverse(t)),e.translucentActorCount>0&&(e.translucentPass||(e.translucentPass=Mst.newInstance()),e.translucentPass.traverse(n,l,t)),e.volumeCount>0&&(t.setCurrentOperation("volumePass"),l.traverse(t)),e.overlayActorCount>0&&(t.setCurrentOperation("overlayPass"),l.traverse(t))}}},t.getZBufferTexture=()=>e.framebuffer?e.framebuffer.getColorTexture():null,t.requestDepth=()=>{e.depthRequested=!0},t.incrementOpaqueActorCount=()=>e.opaqueActorCount++,t.incrementTranslucentActorCount=()=>e.translucentActorCount++,t.incrementVolumeCount=()=>e.volumeCount++,t.incrementOverlayActorCount=()=>e.overlayActorCount++}const Ast={opaqueActorCount:0,translucentActorCount:0,volumeCount:0,overlayActorCount:0,framebuffer:null,depthRequested:!1};function wre(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Ast,n),Cc.extend(t,e,n),J.get(t,e,["framebuffer","opaqueActorCount","translucentActorCount","volumeCount"]),Dst(t,e)}const kst=J.newInstance(wre,"vtkForwardPass");var Rst={newInstance:kst,extend:wre};const{FieldAssociations:Lst}=Ip;function Ost(t,e){e.classHierarchy.push("vtkHardwareSelector"),t.getSourceDataAsync=async(n,r,a,i,o)=>{},t.selectAsync=async(n,r,a,i,o)=>{const s=await t.getSourceDataAsync(n,r,a,i,o);return s?s.generateSelection(r,a,i,o):[]}}const Vst={fieldAssociation:Lst.FIELD_ASSOCIATION_CELLS,captureZValues:!1};function xre(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Vst,n),J.obj(t,e),J.setGet(t,e,["fieldAssociation","captureZValues"]),Ost(t,e)}const Nst=J.newInstance(xre,"vtkHardwareSelector");var _re={newInstance:Nst,extend:xre};const Ist={GLOBALIDS:0,PEDIGREEIDS:1,VALUES:2,INDICES:3,FRUSTUM:4,LOCATIONS:5,THRESHOLDS:6,BLOCKS:7,QUERY:8},Bst={CELL:0,POINT:1,FIELD:2,VERTEX:3,EDGE:4,ROW:5};var $st={SelectionContent:Ist,SelectionField:Bst};function Pst(t,e){e.classHierarchy.push("vtkSelectionNode"),t.getBounds=()=>e.points.getBounds()}const Fst={contentType:-1,fieldType:-1,properties:null,selectionList:[]};function Cre(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Fst,n),J.obj(t,e),e.properties={},J.setGet(t,e,["contentType","fieldType","properties","selectionList"]),Pst(t,e)}const zst=J.newInstance(Cre,"vtkSelectionNode");var YT={newInstance:zst,extend:Cre,...$st};const{PassTypes:Oa}=Yte,{SelectionContent:Ust,SelectionField:nz}=YT,{FieldAssociations:Om}=Ip,{vtkErrorMacro:Tre}=J,gf=1;function Ere(t){return`${t.propID} ${t.compositeID}`}function Mre(t,e,n,r){if(!n)return 0;const a=(e*(r[2]-r[0]+1)+t)*4;return n[a+3]}function Wu(t,e,n,r){if(!n)return 0;const a=(e*(r[2]-r[0]+1)+t)*4,i=n[a],o=n[a+1];return(n[a+2]*256+o)*256+i}function Dre(t,e){let n=e;return n<<=24,n|=t,n}function Nv(t,e,n,r){const a=n<0?0:n;if(a===0){if(r[0]=e[0],r[1]=e[1],e[0]<t.area[0]||e[0]>t.area[2]||e[1]<t.area[1]||e[1]>t.area[3])return null;const l=[e[0]-t.area[0],e[1]-t.area[1]],u=Wu(l[0],l[1],t.pixBuffer[Oa.ACTOR_PASS],t.area);if(u<=0||u-gf>=t.props.length)return null;const c={};c.valid=!0,c.propID=u-gf,c.prop=t.props[c.propID];let f=Wu(l[0],l[1],t.pixBuffer[Oa.COMPOSITE_INDEX_PASS],t.area);if((f<0||f>16777215)&&(f=0),c.compositeID=f-gf,t.captureZValues){const p=(l[1]*(t.area[2]-t.area[0]+1)+l[0])*4;c.zValue=(256*t.zBuffer[p]+t.zBuffer[p+1])/65535,c.displayPosition=e}if(t.pixBuffer[Oa.ID_LOW24]&&Mre(l[0],l[1],t.pixBuffer[Oa.ID_LOW24],t.area)===0)return c;const d=Wu(l[0],l[1],t.pixBuffer[Oa.ID_LOW24],t.area),h=Wu(l[0],l[1],t.pixBuffer[Oa.ID_HIGH24],t.area);return c.attributeID=Dre(d,h),c}const i=[e[0],e[1]],o=[0,0];let s=Nv(t,e,0,r);if(s&&s.valid)return s;for(let l=1;l<a;++l){for(let u=i[1]>l?i[1]-l:0;u<=i[1]+l;++u)if(o[1]=u,i[0]>=l&&(o[0]=i[0]-l,s=Nv(t,o,0,r),s&&s.valid)||(o[0]=i[0]+l,s=Nv(t,o,0,r),s&&s.valid))return s;for(let u=i[0]>=l?i[0]-(l-1):0;u<=i[0]+(l-1);++u)if(o[0]=u,i[1]>=l&&(o[1]=i[1]-l,s=Nv(t,o,0,r),s&&s.valid)||(o[1]=i[1]+l,s=Nv(t,o,0,r),s&&s.valid))return s}return r[0]=e[0],r[1]=e[1],null}function Are(t,e,n,r,a){const i=[];let o=0;return e.forEach((s,l)=>{const u=YT.newInstance();switch(u.setContentType(Ust.INDICES),t){case Om.FIELD_ASSOCIATION_CELLS:u.setFieldType(nz.CELL);break;case Om.FIELD_ASSOCIATION_POINTS:u.setFieldType(nz.POINT);break;default:Tre("Unknown field association")}u.getProperties().propID=s.info.propID,u.getProperties().prop=s.info.prop,u.getProperties().compositeID=s.info.compositeID,u.getProperties().attributeID=s.info.attributeID,u.getProperties().pixelCount=s.pixelCount,n&&(u.getProperties().displayPosition=[s.info.displayPosition[0],s.info.displayPosition[1],s.info.zValue],u.getProperties().worldPosition=a.displayToWorld(s.info.displayPosition[0],s.info.displayPosition[1],s.info.zValue,r)),u.setSelectionList(s.attributeIDs),i[o]=u,o++}),i}function Gst(t,e,n,r,a){const i=Math.floor(e),o=Math.floor(n),s=Math.floor(r),l=Math.floor(a),u=new Map,c=[0,0];for(let f=o;f<=l;f++)for(let d=i;d<=s;d++){const p=Nv(t,[d,f],0,c);if(p&&p.valid){const v=Ere(p);if(!u.has(v))u.set(v,{info:p,pixelCount:1,attributeIDs:[p.attributeID]});else{const g=u.get(v);g.pixelCount++,t.captureZValues&&p.zValue<g.info.zValue&&(g.info=p),g.attributeIDs.indexOf(p.attributeID)===-1&&g.attributeIDs.push(p.attributeID)}}}return Are(t.fieldAssociation,u,t.captureZValues,t.renderer,t.openGLRenderWindow)}function Hst(t,e){e.classHierarchy.push("vtkOpenGLHardwareSelector"),t.releasePixBuffers=()=>{e.rawPixBuffer=[],e.pixBuffer=[],e.zBuffer=null},t.beginSelection=()=>{e._openGLRenderer=e._openGLRenderWindow.getViewNodeFor(e._renderer),e.maxAttributeId=0;const r=e._openGLRenderWindow.getSize();if(!e.framebuffer)e.framebuffer=HN.newInstance(),e.framebuffer.setOpenGLRenderWindow(e._openGLRenderWindow),e.framebuffer.saveCurrentBindingsAndBuffers(),e.framebuffer.create(r[0],r[1]),e.framebuffer.populateFramebuffer();else{e.framebuffer.setOpenGLRenderWindow(e._openGLRenderWindow),e.framebuffer.saveCurrentBindingsAndBuffers();const a=e.framebuffer.getSize();!a||a[0]!==r[0]||a[1]!==r[1]?(e.framebuffer.create(r[0],r[1]),e.framebuffer.populateFramebuffer()):e.framebuffer.bind()}if(e._openGLRenderer.clear(),e._openGLRenderer.setSelector(t),e.hitProps={},e.propPixels={},e.props=[],t.releasePixBuffers(),e.fieldAssociation===Om.FIELD_ASSOCIATION_POINTS){const a=e._openGLRenderWindow.getContext(),i=a.isEnabled(a.BLEND);a.disable(a.BLEND),e._openGLRenderWindow.traverseAllPasses(),i&&a.enable(a.BLEND)}},t.endSelection=()=>{e.hitProps={},e._openGLRenderer.setSelector(null),e.framebuffer.restorePreviousBindingsAndBuffers()},t.preCapturePass=()=>{const r=e._openGLRenderWindow.getContext();e.originalBlending=r.isEnabled(r.BLEND),r.disable(r.BLEND)},t.postCapturePass=()=>{const r=e._openGLRenderWindow.getContext();e.originalBlending&&r.enable(r.BLEND)},t.select=()=>{let r=null;return t.captureBuffers()&&(r=t.generateSelection(e.area[0],e.area[1],e.area[2],e.area[3]),t.releasePixBuffers()),r},t.getSourceDataAsync=async(r,a,i,o,s)=>{if(e._renderer=r,a===void 0){const u=e._openGLRenderWindow.getSize();t.setArea(0,0,u[0]-1,u[1]-1)}else t.setArea(a,i,o,s);if(!t.captureBuffers())return!1;const l={area:[...e.area],pixBuffer:[...e.pixBuffer],captureZValues:e.captureZValues,zBuffer:e.zBuffer,props:[...e.props],fieldAssociation:e.fieldAssociation,renderer:r,openGLRenderWindow:e._openGLRenderWindow};return l.generateSelection=function(){for(var u=arguments.length,c=new Array(u),f=0;f<u;f++)c[f]=arguments[f];return Gst(l,...c)},l},t.captureBuffers=()=>{if(!e._renderer||!e._openGLRenderWindow)return Tre("Renderer and view must be set before calling Select."),!1;e._openGLRenderer=e._openGLRenderWindow.getViewNodeFor(e._renderer),e._openGLRenderWindow.getRenderable().preRender(),t.invokeEvent({type:"StartEvent"}),e.originalBackground=e._renderer.getBackgroundByReference(),e._renderer.setBackground(0,0,0,0);const r=e._openGLRenderWindow.getRenderPasses();for(t.beginSelection(),e.currentPass=Oa.MIN_KNOWN_PASS;e.currentPass<=Oa.MAX_KNOWN_PASS;e.currentPass++)t.passRequired(e.currentPass)&&(t.preCapturePass(e.currentPass),e.captureZValues&&e.currentPass===Oa.ACTOR_PASS&&typeof r[0].requestDepth=="function"&&typeof r[0].getFramebuffer=="function"&&r[0].requestDepth(),e._openGLRenderWindow.traverseAllPasses(),t.postCapturePass(e.currentPass),t.savePixelBuffer(e.currentPass),t.processPixelBuffers());return t.endSelection(),e._renderer.setBackground(e.originalBackground),t.invokeEvent({type:"EndEvent"}),!0},t.processPixelBuffers=()=>{e.props.forEach((r,a)=>{t.isPropHit(a)&&r.processSelectorPixelBuffers(t,e.propPixels[a])})},t.passRequired=r=>{if(r===Oa.ID_HIGH24){if(e.fieldAssociation===Om.FIELD_ASSOCIATION_POINTS)return e.maximumPointId>16777215;if(e.fieldAssociation===Om.FIELD_ASSOCIATION_CELLS)return e.maximumCellId>16777215}return!0},t.savePixelBuffer=r=>{if(e.pixBuffer[r]=e._openGLRenderWindow.getPixelData(e.area[0],e.area[1],e.area[2],e.area[3]),!e.rawPixBuffer[r]){const a=(e.area[2]-e.area[0]+1)*(e.area[3]-e.area[1]+1)*4;e.rawPixBuffer[r]=new Uint8Array(a),e.rawPixBuffer[r].set(e.pixBuffer[r])}if(r===Oa.ACTOR_PASS){if(e.captureZValues){const a=e._openGLRenderWindow.getRenderPasses();if(typeof a[0].requestDepth=="function"&&typeof a[0].getFramebuffer=="function"){const i=a[0].getFramebuffer();i.saveCurrentBindingsAndBuffers(),i.bind(),e.zBuffer=e._openGLRenderWindow.getPixelData(e.area[0],e.area[1],e.area[2],e.area[3]),i.restorePreviousBindingsAndBuffers()}}t.buildPropHitList(e.rawPixBuffer[r])}},t.buildPropHitList=r=>{let a=0;for(let i=0;i<=e.area[3]-e.area[1];i++)for(let o=0;o<=e.area[2]-e.area[0];o++){let s=Wu(o,i,r,e.area);s>0&&(s--,s in e.hitProps||(e.hitProps[s]=!0,e.propPixels[s]=[]),e.propPixels[s].push(a*4)),++a}},t.renderProp=r=>{e.currentPass===Oa.ACTOR_PASS&&(t.setPropColorValueFromInt(e.props.length+gf),e.props.push(r))},t.renderCompositeIndex=r=>{e.currentPass===Oa.COMPOSITE_INDEX_PASS&&t.setPropColorValueFromInt(r+gf)},t.renderAttributeId=r=>{r<0||(e.maxAttributeId=r>e.maxAttributeId?r:e.maxAttributeId)},t.passTypeToString=r=>J.enumToString(Oa,r),t.isPropHit=r=>!!e.hitProps[r],t.setPropColorValueFromInt=r=>{e.propColorValue[0]=r%256/255,e.propColorValue[1]=Math.floor(r/256)%256/255,e.propColorValue[2]=Math.floor(r/65536)%256/255},t.getPixelInformation=(r,a,i)=>{const o=a<0?0:a;if(o===0){if(i[0]=r[0],i[1]=r[1],r[0]<e.area[0]||r[0]>e.area[2]||r[1]<e.area[1]||r[1]>e.area[3])return null;const c=[r[0]-e.area[0],r[1]-e.area[1]],f=Wu(c[0],c[1],e.pixBuffer[Oa.ACTOR_PASS],e.area);if(f<=0||f-gf>=e.props.length)return null;const d={};d.valid=!0,d.propID=f-gf,d.prop=e.props[d.propID];let h=Wu(c[0],c[1],e.pixBuffer[Oa.COMPOSITE_INDEX_PASS],e.area);if((h<0||h>16777215)&&(h=0),d.compositeID=h-gf,e.captureZValues){const g=(c[1]*(e.area[2]-e.area[0]+1)+c[0])*4;d.zValue=(256*e.zBuffer[g]+e.zBuffer[g+1])/65535,d.displayPosition=r}if(e.pixBuffer[Oa.ID_LOW24]&&Mre(c[0],c[1],e.pixBuffer[Oa.ID_LOW24],e.area)===0)return d;const p=Wu(c[0],c[1],e.pixBuffer[Oa.ID_LOW24],e.area),v=Wu(c[0],c[1],e.pixBuffer[Oa.ID_HIGH24],e.area);return d.attributeID=Dre(p,v),d}const s=[r[0],r[1]],l=[0,0];let u=t.getPixelInformation(r,0,i);if(u&&u.valid)return u;for(let c=1;c<o;++c){for(let f=s[1]>c?s[1]-c:0;f<=s[1]+c;++f)if(l[1]=f,s[0]>=c&&(l[0]=s[0]-c,u=t.getPixelInformation(l,0,i),u&&u.valid)||(l[0]=s[0]+c,u=t.getPixelInformation(l,0,i),u&&u.valid))return u;for(let f=s[0]>=c?s[0]-(c-1):0;f<=s[0]+(c-1);++f)if(l[0]=f,s[1]>=c&&(l[1]=s[1]-c,u=t.getPixelInformation(l,0,i),u&&u.valid)||(l[1]=s[1]+c,u=t.getPixelInformation(l,0,i),u&&u.valid))return u}return i[0]=r[0],i[1]=r[1],null},t.generateSelection=(r,a,i,o)=>{const s=Math.floor(r),l=Math.floor(a),u=Math.floor(i),c=Math.floor(o),f=new Map,d=[0,0];for(let h=l;h<=c;h++)for(let p=s;p<=u;p++){const v=[p,h],g=t.getPixelInformation(v,0,d);if(g&&g.valid){const y=Ere(g);if(!f.has(y))f.set(y,{info:g,pixelCount:1,attributeIDs:[g.attributeID]});else{const m=f.get(y);m.pixelCount++,e.captureZValues&&g.zValue<m.info.zValue&&(m.info=g),m.attributeIDs.indexOf(g.attributeID)===-1&&m.attributeIDs.push(g.attributeID)}}}return Are(e.fieldAssociation,f,e.captureZValues,e._renderer,e._openGLRenderWindow)},t.getRawPixelBuffer=r=>e.rawPixBuffer[r],t.getPixelBuffer=r=>e.pixBuffer[r],t.attach=(r,a)=>{e._openGLRenderWindow=r,e._renderer=a};const n=t.setArea;t.setArea=function(){return n(...arguments)?(e.area[0]=Math.floor(e.area[0]),e.area[1]=Math.floor(e.area[1]),e.area[2]=Math.floor(e.area[2]),e.area[3]=Math.floor(e.area[3]),!0):!1}}const Wst={area:void 0,currentPass:-1,propColorValue:null,props:null,maximumPointId:0,maximumCellId:0,idOffset:1};function kre(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Wst,n),_re.extend(t,e,n),e.propColorValue=[0,0,0],e.props=[],e.area||(e.area=[0,0,0,0]),J.setGetArray(t,e,["area"],4),J.setGet(t,e,["_renderer","currentPass","_openGLRenderWindow","maximumPointId","maximumCellId"]),J.setGetArray(t,e,["propColorValue"],3),J.moveToProtected(t,e,["renderer","openGLRenderWindow"]),J.event(t,e,"event"),Hst(t,e)}const jst=J.newInstance(kre,"vtkOpenGLHardwareSelector");var Rre={newInstance:jst,extend:kre,...Yte},Lre={exports:{}};(function(t,e){(function(n){t.exports=n()})(function(n){var r=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function a(y,m){var S=y[0],w=y[1],C=y[2],_=y[3];S+=(w&C|~w&_)+m[0]-680876936|0,S=(S<<7|S>>>25)+w|0,_+=(S&w|~S&C)+m[1]-389564586|0,_=(_<<12|_>>>20)+S|0,C+=(_&S|~_&w)+m[2]+606105819|0,C=(C<<17|C>>>15)+_|0,w+=(C&_|~C&S)+m[3]-1044525330|0,w=(w<<22|w>>>10)+C|0,S+=(w&C|~w&_)+m[4]-176418897|0,S=(S<<7|S>>>25)+w|0,_+=(S&w|~S&C)+m[5]+1200080426|0,_=(_<<12|_>>>20)+S|0,C+=(_&S|~_&w)+m[6]-1473231341|0,C=(C<<17|C>>>15)+_|0,w+=(C&_|~C&S)+m[7]-45705983|0,w=(w<<22|w>>>10)+C|0,S+=(w&C|~w&_)+m[8]+1770035416|0,S=(S<<7|S>>>25)+w|0,_+=(S&w|~S&C)+m[9]-1958414417|0,_=(_<<12|_>>>20)+S|0,C+=(_&S|~_&w)+m[10]-42063|0,C=(C<<17|C>>>15)+_|0,w+=(C&_|~C&S)+m[11]-1990404162|0,w=(w<<22|w>>>10)+C|0,S+=(w&C|~w&_)+m[12]+1804603682|0,S=(S<<7|S>>>25)+w|0,_+=(S&w|~S&C)+m[13]-40341101|0,_=(_<<12|_>>>20)+S|0,C+=(_&S|~_&w)+m[14]-1502002290|0,C=(C<<17|C>>>15)+_|0,w+=(C&_|~C&S)+m[15]+1236535329|0,w=(w<<22|w>>>10)+C|0,S+=(w&_|C&~_)+m[1]-165796510|0,S=(S<<5|S>>>27)+w|0,_+=(S&C|w&~C)+m[6]-1069501632|0,_=(_<<9|_>>>23)+S|0,C+=(_&w|S&~w)+m[11]+643717713|0,C=(C<<14|C>>>18)+_|0,w+=(C&S|_&~S)+m[0]-373897302|0,w=(w<<20|w>>>12)+C|0,S+=(w&_|C&~_)+m[5]-701558691|0,S=(S<<5|S>>>27)+w|0,_+=(S&C|w&~C)+m[10]+38016083|0,_=(_<<9|_>>>23)+S|0,C+=(_&w|S&~w)+m[15]-660478335|0,C=(C<<14|C>>>18)+_|0,w+=(C&S|_&~S)+m[4]-405537848|0,w=(w<<20|w>>>12)+C|0,S+=(w&_|C&~_)+m[9]+568446438|0,S=(S<<5|S>>>27)+w|0,_+=(S&C|w&~C)+m[14]-1019803690|0,_=(_<<9|_>>>23)+S|0,C+=(_&w|S&~w)+m[3]-187363961|0,C=(C<<14|C>>>18)+_|0,w+=(C&S|_&~S)+m[8]+1163531501|0,w=(w<<20|w>>>12)+C|0,S+=(w&_|C&~_)+m[13]-1444681467|0,S=(S<<5|S>>>27)+w|0,_+=(S&C|w&~C)+m[2]-51403784|0,_=(_<<9|_>>>23)+S|0,C+=(_&w|S&~w)+m[7]+1735328473|0,C=(C<<14|C>>>18)+_|0,w+=(C&S|_&~S)+m[12]-1926607734|0,w=(w<<20|w>>>12)+C|0,S+=(w^C^_)+m[5]-378558|0,S=(S<<4|S>>>28)+w|0,_+=(S^w^C)+m[8]-2022574463|0,_=(_<<11|_>>>21)+S|0,C+=(_^S^w)+m[11]+1839030562|0,C=(C<<16|C>>>16)+_|0,w+=(C^_^S)+m[14]-35309556|0,w=(w<<23|w>>>9)+C|0,S+=(w^C^_)+m[1]-1530992060|0,S=(S<<4|S>>>28)+w|0,_+=(S^w^C)+m[4]+1272893353|0,_=(_<<11|_>>>21)+S|0,C+=(_^S^w)+m[7]-155497632|0,C=(C<<16|C>>>16)+_|0,w+=(C^_^S)+m[10]-1094730640|0,w=(w<<23|w>>>9)+C|0,S+=(w^C^_)+m[13]+681279174|0,S=(S<<4|S>>>28)+w|0,_+=(S^w^C)+m[0]-358537222|0,_=(_<<11|_>>>21)+S|0,C+=(_^S^w)+m[3]-722521979|0,C=(C<<16|C>>>16)+_|0,w+=(C^_^S)+m[6]+76029189|0,w=(w<<23|w>>>9)+C|0,S+=(w^C^_)+m[9]-640364487|0,S=(S<<4|S>>>28)+w|0,_+=(S^w^C)+m[12]-421815835|0,_=(_<<11|_>>>21)+S|0,C+=(_^S^w)+m[15]+530742520|0,C=(C<<16|C>>>16)+_|0,w+=(C^_^S)+m[2]-995338651|0,w=(w<<23|w>>>9)+C|0,S+=(C^(w|~_))+m[0]-198630844|0,S=(S<<6|S>>>26)+w|0,_+=(w^(S|~C))+m[7]+1126891415|0,_=(_<<10|_>>>22)+S|0,C+=(S^(_|~w))+m[14]-1416354905|0,C=(C<<15|C>>>17)+_|0,w+=(_^(C|~S))+m[5]-57434055|0,w=(w<<21|w>>>11)+C|0,S+=(C^(w|~_))+m[12]+1700485571|0,S=(S<<6|S>>>26)+w|0,_+=(w^(S|~C))+m[3]-1894986606|0,_=(_<<10|_>>>22)+S|0,C+=(S^(_|~w))+m[10]-1051523|0,C=(C<<15|C>>>17)+_|0,w+=(_^(C|~S))+m[1]-2054922799|0,w=(w<<21|w>>>11)+C|0,S+=(C^(w|~_))+m[8]+1873313359|0,S=(S<<6|S>>>26)+w|0,_+=(w^(S|~C))+m[15]-30611744|0,_=(_<<10|_>>>22)+S|0,C+=(S^(_|~w))+m[6]-1560198380|0,C=(C<<15|C>>>17)+_|0,w+=(_^(C|~S))+m[13]+1309151649|0,w=(w<<21|w>>>11)+C|0,S+=(C^(w|~_))+m[4]-145523070|0,S=(S<<6|S>>>26)+w|0,_+=(w^(S|~C))+m[11]-1120210379|0,_=(_<<10|_>>>22)+S|0,C+=(S^(_|~w))+m[2]+718787259|0,C=(C<<15|C>>>17)+_|0,w+=(_^(C|~S))+m[9]-343485551|0,w=(w<<21|w>>>11)+C|0,y[0]=S+y[0]|0,y[1]=w+y[1]|0,y[2]=C+y[2]|0,y[3]=_+y[3]|0}function i(y){var m=[],S;for(S=0;S<64;S+=4)m[S>>2]=y.charCodeAt(S)+(y.charCodeAt(S+1)<<8)+(y.charCodeAt(S+2)<<16)+(y.charCodeAt(S+3)<<24);return m}function o(y){var m=[],S;for(S=0;S<64;S+=4)m[S>>2]=y[S]+(y[S+1]<<8)+(y[S+2]<<16)+(y[S+3]<<24);return m}function s(y){var m=y.length,S=[1732584193,-271733879,-1732584194,271733878],w,C,_,x,T,M;for(w=64;w<=m;w+=64)a(S,i(y.substring(w-64,w)));for(y=y.substring(w-64),C=y.length,_=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],w=0;w<C;w+=1)_[w>>2]|=y.charCodeAt(w)<<(w%4<<3);if(_[w>>2]|=128<<(w%4<<3),w>55)for(a(S,_),w=0;w<16;w+=1)_[w]=0;return x=m*8,x=x.toString(16).match(/(.*?)(.{0,8})$/),T=parseInt(x[2],16),M=parseInt(x[1],16)||0,_[14]=T,_[15]=M,a(S,_),S}function l(y){var m=y.length,S=[1732584193,-271733879,-1732584194,271733878],w,C,_,x,T,M;for(w=64;w<=m;w+=64)a(S,o(y.subarray(w-64,w)));for(y=w-64<m?y.subarray(w-64):new Uint8Array(0),C=y.length,_=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],w=0;w<C;w+=1)_[w>>2]|=y[w]<<(w%4<<3);if(_[w>>2]|=128<<(w%4<<3),w>55)for(a(S,_),w=0;w<16;w+=1)_[w]=0;return x=m*8,x=x.toString(16).match(/(.*?)(.{0,8})$/),T=parseInt(x[2],16),M=parseInt(x[1],16)||0,_[14]=T,_[15]=M,a(S,_),S}function u(y){var m="",S;for(S=0;S<4;S+=1)m+=r[y>>S*8+4&15]+r[y>>S*8&15];return m}function c(y){var m;for(m=0;m<y.length;m+=1)y[m]=u(y[m]);return y.join("")}c(s("hello")),typeof ArrayBuffer<"u"&&!ArrayBuffer.prototype.slice&&function(){function y(m,S){return m=m|0||0,m<0?Math.max(m+S,0):Math.min(m,S)}ArrayBuffer.prototype.slice=function(m,S){var w=this.byteLength,C=y(m,w),_=w,x,T,M,E;return S!==n&&(_=y(S,w)),C>_?new ArrayBuffer(0):(x=_-C,T=new ArrayBuffer(x),M=new Uint8Array(T),E=new Uint8Array(this,C,x),M.set(E),T)}}();function f(y){return/[\u0080-\uFFFF]/.test(y)&&(y=unescape(encodeURIComponent(y))),y}function d(y,m){var S=y.length,w=new ArrayBuffer(S),C=new Uint8Array(w),_;for(_=0;_<S;_+=1)C[_]=y.charCodeAt(_);return m?C:w}function h(y){return String.fromCharCode.apply(null,new Uint8Array(y))}function p(y,m,S){var w=new Uint8Array(y.byteLength+m.byteLength);return w.set(new Uint8Array(y)),w.set(new Uint8Array(m),y.byteLength),S?w:w.buffer}function v(y){var m=[],S=y.length,w;for(w=0;w<S-1;w+=2)m.push(parseInt(y.substr(w,2),16));return String.fromCharCode.apply(String,m)}function g(){this.reset()}return g.prototype.append=function(y){return this.appendBinary(f(y)),this},g.prototype.appendBinary=function(y){this._buff+=y,this._length+=y.length;var m=this._buff.length,S;for(S=64;S<=m;S+=64)a(this._hash,i(this._buff.substring(S-64,S)));return this._buff=this._buff.substring(S-64),this},g.prototype.end=function(y){var m=this._buff,S=m.length,w,C=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],_;for(w=0;w<S;w+=1)C[w>>2]|=m.charCodeAt(w)<<(w%4<<3);return this._finish(C,S),_=c(this._hash),y&&(_=v(_)),this.reset(),_},g.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},g.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},g.prototype.setState=function(y){return this._buff=y.buff,this._length=y.length,this._hash=y.hash,this},g.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},g.prototype._finish=function(y,m){var S=m,w,C,_;if(y[S>>2]|=128<<(S%4<<3),S>55)for(a(this._hash,y),S=0;S<16;S+=1)y[S]=0;w=this._length*8,w=w.toString(16).match(/(.*?)(.{0,8})$/),C=parseInt(w[2],16),_=parseInt(w[1],16)||0,y[14]=C,y[15]=_,a(this._hash,y)},g.hash=function(y,m){return g.hashBinary(f(y),m)},g.hashBinary=function(y,m){var S=s(y),w=c(S);return m?v(w):w},g.ArrayBuffer=function(){this.reset()},g.ArrayBuffer.prototype.append=function(y){var m=p(this._buff.buffer,y,!0),S=m.length,w;for(this._length+=y.byteLength,w=64;w<=S;w+=64)a(this._hash,o(m.subarray(w-64,w)));return this._buff=w-64<S?new Uint8Array(m.buffer.slice(w-64)):new Uint8Array(0),this},g.ArrayBuffer.prototype.end=function(y){var m=this._buff,S=m.length,w=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],C,_;for(C=0;C<S;C+=1)w[C>>2]|=m[C]<<(C%4<<3);return this._finish(w,S),_=c(this._hash),y&&(_=v(_)),this.reset(),_},g.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},g.ArrayBuffer.prototype.getState=function(){var y=g.prototype.getState.call(this);return y.buff=h(y.buff),y},g.ArrayBuffer.prototype.setState=function(y){return y.buff=d(y.buff,!0),g.prototype.setState.call(this,y)},g.ArrayBuffer.prototype.destroy=g.prototype.destroy,g.ArrayBuffer.prototype._finish=g.prototype._finish,g.ArrayBuffer.hash=function(y,m){var S=l(new Uint8Array(y)),w=c(S);return m?v(w):w},g})})(Lre);var Kst=Lre.exports;const Yst=xi(Kst),Xst=["lastShaderProgramBound","context","_openGLRenderWindow"];function qst(t,e){e.classHierarchy.push("vtkShaderCache"),t.replaceShaderValues=(n,r,a)=>{let i=r;a.length>0&&(i=St.substitute(i,"VSOut","GSOut").result);const o=e._openGLRenderWindow.getWebgl2();let s=`
  692. `,l=`#version 100
  693. `;o?l=`#version 300 es
  694. #define attribute in
  695. #define textureCube texture
  696. #define texture2D texture
  697. #define textureCubeLod textureLod
  698. #define texture2DLod textureLod
  699. `:(e.context.getExtension("OES_standard_derivatives"),e.context.getExtension("EXT_frag_depth")&&(s=`#extension GL_EXT_frag_depth : enable
  700. `),e.context.getExtension("EXT_shader_texture_lod")&&(s+=`#extension GL_EXT_shader_texture_lod : enable
  701. #define textureCubeLod textureCubeLodEXT
  702. #define texture2DLod texture2DLodEXT`)),i=St.substitute(i,"//VTK::System::Dec",[`${l}
  703. `,o?"":`#extension GL_OES_standard_derivatives : enable
  704. `,s,"#ifdef GL_FRAGMENT_PRECISION_HIGH","precision highp float;","precision highp int;","#else","precision mediump float;","precision mediump int;","#endif"]).result;let u=St.substitute(n,"//VTK::System::Dec",[`${l}
  705. `,"#ifdef GL_FRAGMENT_PRECISION_HIGH","precision highp float;","precision highp int;","#else","precision mediump float;","precision mediump int;","#endif"]).result;if(o){u=St.substitute(u,"varying","out").result,i=St.substitute(i,"varying","in").result;let f="",d=0;for(;i.includes(`gl_FragData[${d}]`);)i=St.substitute(i,`gl_FragData\\[${d}\\]`,`fragOutput${d}`).result,f+=`layout(location = ${d}) out vec4 fragOutput${d};
  706. `,d++;i=St.substitute(i,"//VTK::Output::Dec",f).result}const c=St.substitute(a,"//VTK::System::Dec",l).result;return{VSSource:u,FSSource:i,GSSource:c}},t.readyShaderProgramArray=(n,r,a)=>{const i=t.replaceShaderValues(n,r,a),o=t.getShaderProgram(i.VSSource,i.FSSource,i.GSSource);return t.readyShaderProgram(o)},t.readyShaderProgram=n=>!n||!n.getCompiled()&&!n.compileShader()||!t.bindShaderProgram(n)?null:n,t.getShaderProgram=(n,r,a)=>{const i=`${n}${r}${a}`,o=Yst.hash(i);if(!(o in e.shaderPrograms)){const s=St.newInstance();return s.setContext(e.context),s.getVertexShader().setSource(n),s.getFragmentShader().setSource(r),a&&s.getGeometryShader().setSource(a),s.setMd5Hash(o),e.shaderPrograms[o]=s,s}return e.shaderPrograms[o]},t.releaseGraphicsResources=n=>{t.releaseCurrentShaderProgram(),Object.keys(e.shaderPrograms).map(r=>e.shaderPrograms[r]).forEach(r=>r.cleanup()),e.shaderPrograms={}},t.releaseCurrentShaderProgram=()=>{e.lastShaderProgramBound&&(e.lastShaderProgramBound.cleanup(),e.lastShaderProgramBound=null)},t.bindShaderProgram=n=>(e.lastShaderProgramBound===n||(e.lastShaderProgramBound&&e.lastShaderProgramBound.release(),n.bind(),e.lastShaderProgramBound=n),1)}const Zst={lastShaderProgramBound:null,shaderPrograms:null,context:null};function Ore(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Zst,n),e.shaderPrograms={},J.obj(t,e),J.setGet(t,e,Xst),J.moveToProtected(t,e,["openGLRenderWindow"]),qst(t,e)}const Qst=J.newInstance(Ore,"vtkShaderCache");var Jst={newInstance:Qst,extend:Ore};const{vtkErrorMacro:elt}=J;function tlt(t,e){e.classHierarchy.push("vtkOpenGLTextureUnitManager"),t.deleteTable=()=>{for(let n=0;n<e.numberOfTextureUnits;++n)e.textureUnits[n]===!0&&elt("some texture units were not properly released");e.textureUnits=[],e.numberOfTextureUnits=0},t.setContext=n=>{if(e.context!==n){if(e.context!==0&&t.deleteTable(),e.context=n,e.context){e.numberOfTextureUnits=n.getParameter(n.MAX_TEXTURE_IMAGE_UNITS);for(let r=0;r<e.numberOfTextureUnits;++r)e.textureUnits[r]=!1}t.modified()}},t.allocate=()=>{for(let n=0;n<e.numberOfTextureUnits;n++)if(!t.isAllocated(n))return e.textureUnits[n]=!0,n;return-1},t.allocateUnit=n=>t.isAllocated(n)?-1:(e.textureUnits[n]=!0,n),t.isAllocated=n=>e.textureUnits[n],t.free=n=>{e.textureUnits[n]=!1},t.freeAll=()=>{for(let n=0;n<e.numberOfTextureUnits;++n)e.textureUnits[n]=!1}}const nlt={context:null,numberOfTextureUnits:0,textureUnits:0};function Vre(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,nlt,n),J.obj(t,e),e.textureUnits=[],J.get(t,e,["numberOfTextureUnits"]),J.setGet(t,e,["context"]),tlt(t,e)}const rlt=J.newInstance(Vre,"vtkOpenGLTextureUnitManager");var alt={newInstance:rlt,extend:Vre};function ilt(t,e){e.classHierarchy.push("vtkRenderWindowViewNode"),t.getViewNodeFactory=()=>null,t.getAspectRatio=()=>e.size[0]/e.size[1],t.getAspectRatioForRenderer=n=>{const r=n.getViewportByReference();return e.size[0]*(r[2]-r[0])/((r[3]-r[1])*e.size[1])},t.isInViewport=(n,r,a)=>{const i=a.getViewportByReference(),o=t.getFramebufferSize();return i[0]*o[0]<=n&&i[2]*o[0]>=n&&i[1]*o[1]<=r&&i[3]*o[1]>=r},t.getViewportSize=n=>{const r=n.getViewportByReference(),a=t.getFramebufferSize();return[(r[2]-r[0])*a[0],(r[3]-r[1])*a[1]]},t.getViewportCenter=n=>{const r=t.getViewportSize(n);return[r[0]*.5,r[1]*.5]},t.displayToNormalizedDisplay=(n,r,a)=>{const i=t.getFramebufferSize();return[n/i[0],r/i[1],a]},t.normalizedDisplayToDisplay=(n,r,a)=>{const i=t.getFramebufferSize();return[n*i[0],r*i[1],a]},t.worldToView=(n,r,a,i)=>i.worldToView(n,r,a),t.viewToWorld=(n,r,a,i)=>i.viewToWorld(n,r,a),t.worldToDisplay=(n,r,a,i)=>{const o=i.worldToView(n,r,a),s=t.getViewportSize(i),l=i.viewToProjection(o[0],o[1],o[2],s[0]/s[1]),u=i.projectionToNormalizedDisplay(l[0],l[1],l[2]);return t.normalizedDisplayToDisplay(u[0],u[1],u[2])},t.displayToWorld=(n,r,a,i)=>{const o=t.displayToNormalizedDisplay(n,r,a),s=i.normalizedDisplayToProjection(o[0],o[1],o[2]),l=t.getViewportSize(i),u=i.projectionToView(s[0],s[1],s[2],l[0]/l[1]);return i.viewToWorld(u[0],u[1],u[2])},t.normalizedDisplayToViewport=(n,r,a,i)=>{let o=i.getViewportByReference();o=t.normalizedDisplayToDisplay(o[0],o[1],0);const s=t.normalizedDisplayToDisplay(n,r,a);return[s[0]-o[0]-.5,s[1]-o[1]-.5,a]},t.viewportToNormalizedViewport=(n,r,a,i)=>{const o=t.getViewportSize(i);return o&&o[0]!==0&&o[1]!==0?[n/(o[0]-1),r/(o[1]-1),a]:[n,r,a]},t.normalizedViewportToViewport=(n,r,a,i)=>{const o=t.getViewportSize(i);return[n*(o[0]-1),r*(o[1]-1),a]},t.displayToLocalDisplay=(n,r,a)=>{const i=t.getFramebufferSize();return[n,i[1]-r-1,a]},t.viewportToNormalizedDisplay=(n,r,a,i)=>{let o=i.getViewportByReference();o=t.normalizedDisplayToDisplay(o[0],o[1],0);const s=n+o[0]+.5,l=r+o[1]+.5;return t.displayToNormalizedDisplay(s,l,a)},t.getComputedDevicePixelRatio=()=>e.size[0]/t.getContainerSize()[0],t.getContainerSize=()=>{J.vtkErrorMacro("not implemented")},t.getPixelData=(n,r,a,i)=>{J.vtkErrorMacro("not implemented")},t.createSelector=()=>{J.vtkErrorMacro("not implemented")}}const olt={size:void 0,selector:void 0};function Nre(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,olt,n),e.size||(e.size=[300,300]),J.getArray(t,e,["size"],2),J.get(t,e,["selector"]),Sa.extend(t,e,n),ilt(t,e)}const slt=J.newInstance(Nre,"vtkRenderWindowViewNode");var Ire={newInstance:slt,extend:Nre};const llt="__getUnderlyingContext";function ult(){const t=new Map,e={apply(a,i,o){return t.has(o[0])?t.get(o[0]):a.apply(i,o)}};function n(a){return{apply(i,o,s){return t.set(a,s[0]),i.apply(o,s)}}}const r=Object.create(null);return r.getParameter=(a,i,o,s)=>new Proxy(s.bind(a),e),r.depthMask=(a,i,o,s)=>new Proxy(s.bind(a),n(a.DEPTH_WRITEMASK)),{get(a,i,o){if(i===llt)return()=>a;let s=Reflect.get(a,i,a);s instanceof Function&&(s=s.bind(a));const l=r[i];return l?l(a,i,o,s):s}}}const{vtkDebugMacro:rz,vtkErrorMacro:az}=J,clt={position:"absolute",top:0,left:0,width:"100%",height:"100%"};function zi(t,e,n){const r=t.createFramebuffer(),a=t.createTexture();t.bindTexture(t.TEXTURE_2D,a),t.texImage2D(t.TEXTURE_2D,0,e,2,2,0,e,n,null),t.bindFramebuffer(t.FRAMEBUFFER,r),t.framebufferTexture2D(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0,t.TEXTURE_2D,a,0);const i=t.checkFramebufferStatus(t.FRAMEBUFFER);return t.bindFramebuffer(t.FRAMEBUFFER,null),t.bindTexture(t.TEXTURE_2D,null),i===t.FRAMEBUFFER_COMPLETE}let H2=0;const Bre=[];function flt(){H2++,Bre.forEach(t=>t(H2))}function dlt(){H2--,Bre.forEach(t=>t(H2))}function iz(t){t.preventDefault()}function hlt(t,e){e.classHierarchy.push("vtkOpenGLRenderWindow");const n=ult();t.getViewNodeFactory=()=>e.myFactory,e.canvas.addEventListener("webglcontextlost",iz,!1),e.canvas.addEventListener("webglcontextrestored",t.restoreContext,!1);const r=[0,0];function a(){e.renderable&&(e.size[0]!==r[0]||e.size[1]!==r[1])&&(r[0]=e.size[0],r[1]=e.size[1],e.canvas.setAttribute("width",e.size[0]),e.canvas.setAttribute("height",e.size[1])),e.viewStream&&e.viewStream.setSize(e.size[0],e.size[1]),e.canvas.style.display=e.useOffScreen?"none":"block",e.el&&(e.el.style.cursor=e.cursorVisibility?e.cursor:"none"),e.containerSize=null}t.onModified(a),t.buildPass=u=>{if(u){if(!e.renderable)return;t.prepareNodes(),t.addMissingNodes(e.renderable.getRenderersByReference()),t.removeUnusedNodes(),t.initialize(),e.children.forEach(c=>{c.setOpenGLRenderWindow(t)})}},t.initialize=()=>{if(!e.initialized){e.context=t.get3DContext(),e.textureUnitManager=alt.newInstance(),e.textureUnitManager.setContext(e.context),e.shaderCache.setContext(e.context);const u=e.context;u.blendFuncSeparate(u.SRC_ALPHA,u.ONE_MINUS_SRC_ALPHA,u.ONE,u.ONE_MINUS_SRC_ALPHA),u.depthFunc(u.LEQUAL),u.enable(u.BLEND),e.initialized=!0}},t.makeCurrent=()=>{e.context.makeCurrent()},t.setContainer=u=>{e.el&&e.el!==u&&(e.canvas.parentNode!==e.el&&az("Error: canvas parent node does not match container"),e.el.removeChild(e.canvas),e.el.contains(e.bgImage)&&e.el.removeChild(e.bgImage)),e.el!==u&&(e.el=u,e.el&&(e.el.appendChild(e.canvas),e.useBackgroundImage&&e.el.appendChild(e.bgImage)),t.modified())},t.getContainer=()=>e.el,t.getContainerSize=()=>{if(!e.containerSize&&e.el){const{width:u,height:c}=e.el.getBoundingClientRect();e.containerSize=[u,c]}return e.containerSize||e.size},t.getFramebufferSize=()=>{var c;return((c=e.activeFramebuffer)==null?void 0:c.getSize())||e.size},t.getPixelData=(u,c,f,d)=>{const h=new Uint8Array((f-u+1)*(d-c+1)*4);return e.context.readPixels(u,c,f-u+1,d-c+1,e.context.RGBA,e.context.UNSIGNED_BYTE,h),h},t.get3DContext=function(){let u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{preserveDrawingBuffer:!1,depth:!0,alpha:!0,powerPreference:"high-performance"},c=null;const f=typeof WebGL2RenderingContext<"u";return e.webgl2=!1,e.defaultToWebgl2&&f&&(c=e.canvas.getContext("webgl2",u),c&&(e.webgl2=!0,rz("using webgl2"))),c||(rz("using webgl1"),c=e.canvas.getContext("webgl",u)||e.canvas.getContext("experimental-webgl",u)),new Proxy(c,n)},t.restoreContext=()=>{const u=Cc.newInstance();u.setCurrentOperation("Release"),u.traverse(t,null)},t.activateTexture=u=>{const c=e._textureResourceIds.get(u);if(c!==void 0){e.context.activeTexture(e.context.TEXTURE0+c);return}const f=t.getTextureUnitManager().allocate();if(f<0){az("Hardware does not support the number of textures defined.");return}e._textureResourceIds.set(u,f),e.context.activeTexture(e.context.TEXTURE0+f)},t.deactivateTexture=u=>{const c=e._textureResourceIds.get(u);c!==void 0&&(t.getTextureUnitManager().free(c),e._textureResourceIds.delete(u))},t.getTextureUnitForTexture=u=>{const c=e._textureResourceIds.get(u);return c!==void 0?c:-1},t.getDefaultTextureByteSize=function(u){let c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(e.webgl2)switch(u){case Va.CHAR:case Va.SIGNED_CHAR:case Va.UNSIGNED_CHAR:return 1;case c:case f:case Va.UNSIGNED_SHORT:case Va.SHORT:case Va.VOID:return 2;default:return 4}return 1},t.getDefaultTextureInternalFormat=function(u,c){let f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,d=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e.webgl2)switch(u){case Va.UNSIGNED_CHAR:switch(c){case 1:return e.context.R8;case 2:return e.context.RG8;case 3:return e.context.RGB8;case 4:default:return e.context.RGBA8}case(f&&!d&&Va.UNSIGNED_SHORT):switch(c){case 1:return f.R16_EXT;case 2:return f.RG16_EXT;case 3:return f.RGB16_EXT;case 4:default:return f.RGBA16_EXT}case(f&&!d&&Va.SHORT):switch(c){case 1:return f.R16_SNORM_EXT;case 2:return f.RG16_SNORM_EXT;case 3:return f.RGB16_SNORM_EXT;case 4:default:return f.RGBA16_SNORM_EXT}case Va.UNSIGNED_SHORT:case Va.SHORT:case Va.FLOAT:default:switch(c){case 1:return d?e.context.R16F:e.context.R32F;case 2:return d?e.context.RG16F:e.context.RG32F;case 3:return d?e.context.RGB16F:e.context.RGB32F;case 4:default:return d?e.context.RGBA16F:e.context.RGBA32F}}switch(c){case 1:return e.context.LUMINANCE;case 2:return e.context.LUMINANCE_ALPHA;case 3:return e.context.RGB;case 4:default:return e.context.RGBA}},t.setBackgroundImage=u=>{e.bgImage.src=u.src},t.setUseBackgroundImage=u=>{e.useBackgroundImage=u,e.useBackgroundImage&&!e.el.contains(e.bgImage)?e.el.appendChild(e.bgImage):!e.useBackgroundImage&&e.el.contains(e.bgImage)&&e.el.removeChild(e.bgImage)};function i(){let u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:e.imageFormat;const c=document.createElement("canvas"),f=c.getContext("2d");c.width=e.canvas.width,c.height=e.canvas.height,f.drawImage(e.canvas,0,0);const d=e.canvas.getBoundingClientRect();e.renderable.getRenderers().forEach(g=>{g.getViewProps().forEach(m=>{if(m.getContainer){const w=m.getContainer().getElementsByTagName("canvas");for(let C=0;C<w.length;C++){const _=w[C],x=_.getBoundingClientRect(),T=x.x-d.x,M=x.y-d.y;f.drawImage(_,T,M)}}})});const v=c.toDataURL(u);c.remove(),t.invokeImageReady(v)}t.captureNextImage=function(){let u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"image/png",{resetCamera:c=!1,size:f=null,scale:d=1}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(e.deleted)return null;e.imageFormat=u;const h=e.notifyStartCaptureImage;return e.notifyStartCaptureImage=!0,e._screenshot={size:f||d!==1?f||e.size.map(p=>p*d):null},new Promise((p,v)=>{const g=t.onImageReady(y=>{if(e._screenshot.size===null)e.notifyStartCaptureImage=h,g.unsubscribe(),e._screenshot.placeHolder&&(e.size=e._screenshot.originalSize,t.modified(),e._screenshot.cameras&&e._screenshot.cameras.forEach(m=>{let{restoreParamsFn:S,arg:w}=m;return S(w)}),t.traverseAllPasses(),e.el.removeChild(e._screenshot.placeHolder),e._screenshot.placeHolder.remove(),e._screenshot=null),p(y);else{const m=document.createElement("img");if(m.style=clt,m.src=y,e._screenshot.placeHolder=e.el.appendChild(m),e.canvas.style.display="none",e._screenshot.originalSize=e.size,e.size=e._screenshot.size,e._screenshot.size=null,t.modified(),c){const S=c!==!0;e._screenshot.cameras=e.renderable.getRenderers().map(w=>{const C=w.getActiveCamera(),_=C.get("focalPoint","position","parallelScale");return{resetCameraArgs:S?{renderer:w}:void 0,resetCameraFn:S?c:w.resetCamera,restoreParamsFn:C.set,arg:JSON.parse(JSON.stringify(_))}}),e._screenshot.cameras.forEach(w=>{let{resetCameraFn:C,resetCameraArgs:_}=w;return C(_)})}t.traverseAllPasses()}})})};let o;t.getHardwareMaximumLineWidth=()=>{if(o!=null)return o;const u=t.get3DContext(),c=u.getParameter(u.ALIASED_LINE_WIDTH_RANGE);return o=c[1],c[1]},t.getGLInformations=()=>{if(e._glInformation)return e._glInformation;const u=t.get3DContext(),c=u.getExtension("OES_texture_float"),f=u.getExtension("OES_texture_half_float"),d=u.getExtension("WEBGL_debug_renderer_info"),h=u.getExtension("WEBGL_draw_buffers"),p=u.getExtension("EXT_texture_filter_anisotropic")||u.getExtension("WEBKIT_EXT_texture_filter_anisotropic"),v=[["Max Vertex Attributes","MAX_VERTEX_ATTRIBS",u.getParameter(u.MAX_VERTEX_ATTRIBS)],["Max Varying Vectors","MAX_VARYING_VECTORS",u.getParameter(u.MAX_VARYING_VECTORS)],["Max Vertex Uniform Vectors","MAX_VERTEX_UNIFORM_VECTORS",u.getParameter(u.MAX_VERTEX_UNIFORM_VECTORS)],["Max Fragment Uniform Vectors","MAX_FRAGMENT_UNIFORM_VECTORS",u.getParameter(u.MAX_FRAGMENT_UNIFORM_VECTORS)],["Max Fragment Texture Image Units","MAX_TEXTURE_IMAGE_UNITS",u.getParameter(u.MAX_TEXTURE_IMAGE_UNITS)],["Max Vertex Texture Image Units","MAX_VERTEX_TEXTURE_IMAGE_UNITS",u.getParameter(u.MAX_VERTEX_TEXTURE_IMAGE_UNITS)],["Max Combined Texture Image Units","MAX_COMBINED_TEXTURE_IMAGE_UNITS",u.getParameter(u.MAX_COMBINED_TEXTURE_IMAGE_UNITS)],["Max 2D Texture Size","MAX_TEXTURE_SIZE",u.getParameter(u.MAX_TEXTURE_SIZE)],["Max Cube Texture Size","MAX_CUBE_MAP_TEXTURE_SIZE",u.getParameter(u.MAX_CUBE_MAP_TEXTURE_SIZE)],["Max Texture Anisotropy","MAX_TEXTURE_MAX_ANISOTROPY_EXT",p&&u.getParameter(p.MAX_TEXTURE_MAX_ANISOTROPY_EXT)],["Point Size Range","ALIASED_POINT_SIZE_RANGE",u.getParameter(u.ALIASED_POINT_SIZE_RANGE).join(" - ")],["Line Width Range","ALIASED_LINE_WIDTH_RANGE",u.getParameter(u.ALIASED_LINE_WIDTH_RANGE).join(" - ")],["Max Viewport Dimensions","MAX_VIEWPORT_DIMS",u.getParameter(u.MAX_VIEWPORT_DIMS).join(" - ")],["Max Renderbuffer Size","MAX_RENDERBUFFER_SIZE",u.getParameter(u.MAX_RENDERBUFFER_SIZE)],["Framebuffer Red Bits","RED_BITS",u.getParameter(u.RED_BITS)],["Framebuffer Green Bits","GREEN_BITS",u.getParameter(u.GREEN_BITS)],["Framebuffer Blue Bits","BLUE_BITS",u.getParameter(u.BLUE_BITS)],["Framebuffer Alpha Bits","ALPHA_BITS",u.getParameter(u.ALPHA_BITS)],["Framebuffer Depth Bits","DEPTH_BITS",u.getParameter(u.DEPTH_BITS)],["Framebuffer Stencil Bits","STENCIL_BITS",u.getParameter(u.STENCIL_BITS)],["Framebuffer Subpixel Bits","SUBPIXEL_BITS",u.getParameter(u.SUBPIXEL_BITS)],["MSAA Samples","SAMPLES",u.getParameter(u.SAMPLES)],["MSAA Sample Buffers","SAMPLE_BUFFERS",u.getParameter(u.SAMPLE_BUFFERS)],["Supported Formats for UByte Render Targets ","UNSIGNED_BYTE RENDER TARGET FORMATS",[c&&zi(u,u.RGBA,u.UNSIGNED_BYTE)?"RGBA":"",c&&zi(u,u.RGB,u.UNSIGNED_BYTE)?"RGB":"",c&&zi(u,u.LUMINANCE,u.UNSIGNED_BYTE)?"LUMINANCE":"",c&&zi(u,u.ALPHA,u.UNSIGNED_BYTE)?"ALPHA":"",c&&zi(u,u.LUMINANCE_ALPHA,u.UNSIGNED_BYTE)?"LUMINANCE_ALPHA":""].join(" ")],["Supported Formats for Half Float Render Targets","HALF FLOAT RENDER TARGET FORMATS",[f&&zi(u,u.RGBA,f.HALF_FLOAT_OES)?"RGBA":"",f&&zi(u,u.RGB,f.HALF_FLOAT_OES)?"RGB":"",f&&zi(u,u.LUMINANCE,f.HALF_FLOAT_OES)?"LUMINANCE":"",f&&zi(u,u.ALPHA,f.HALF_FLOAT_OES)?"ALPHA":"",f&&zi(u,u.LUMINANCE_ALPHA,f.HALF_FLOAT_OES)?"LUMINANCE_ALPHA":""].join(" ")],["Supported Formats for Full Float Render Targets","FLOAT RENDER TARGET FORMATS",[c&&zi(u,u.RGBA,u.FLOAT)?"RGBA":"",c&&zi(u,u.RGB,u.FLOAT)?"RGB":"",c&&zi(u,u.LUMINANCE,u.FLOAT)?"LUMINANCE":"",c&&zi(u,u.ALPHA,u.FLOAT)?"ALPHA":"",c&&zi(u,u.LUMINANCE_ALPHA,u.FLOAT)?"LUMINANCE_ALPHA":""].join(" ")],["Max Multiple Render Targets Buffers","MAX_DRAW_BUFFERS_WEBGL",h?u.getParameter(h.MAX_DRAW_BUFFERS_WEBGL):0],["High Float Precision in Vertex Shader","HIGH_FLOAT VERTEX_SHADER",[u.getShaderPrecisionFormat(u.VERTEX_SHADER,u.HIGH_FLOAT).precision," (-2<sup>",u.getShaderPrecisionFormat(u.VERTEX_SHADER,u.HIGH_FLOAT).rangeMin,"</sup> - 2<sup>",u.getShaderPrecisionFormat(u.VERTEX_SHADER,u.HIGH_FLOAT).rangeMax,"</sup>)"].join("")],["Medium Float Precision in Vertex Shader","MEDIUM_FLOAT VERTEX_SHADER",[u.getShaderPrecisionFormat(u.VERTEX_SHADER,u.MEDIUM_FLOAT).precision," (-2<sup>",u.getShaderPrecisionFormat(u.VERTEX_SHADER,u.MEDIUM_FLOAT).rangeMin,"</sup> - 2<sup>",u.getShaderPrecisionFormat(u.VERTEX_SHADER,u.MEDIUM_FLOAT).rangeMax,"</sup>)"].join("")],["Low Float Precision in Vertex Shader","LOW_FLOAT VERTEX_SHADER",[u.getShaderPrecisionFormat(u.VERTEX_SHADER,u.LOW_FLOAT).precision," (-2<sup>",u.getShaderPrecisionFormat(u.VERTEX_SHADER,u.LOW_FLOAT).rangeMin,"</sup> - 2<sup>",u.getShaderPrecisionFormat(u.VERTEX_SHADER,u.LOW_FLOAT).rangeMax,"</sup>)"].join("")],["High Float Precision in Fragment Shader","HIGH_FLOAT FRAGMENT_SHADER",[u.getShaderPrecisionFormat(u.FRAGMENT_SHADER,u.HIGH_FLOAT).precision," (-2<sup>",u.getShaderPrecisionFormat(u.FRAGMENT_SHADER,u.HIGH_FLOAT).rangeMin,"</sup> - 2<sup>",u.getShaderPrecisionFormat(u.FRAGMENT_SHADER,u.HIGH_FLOAT).rangeMax,"</sup>)"].join("")],["Medium Float Precision in Fragment Shader","MEDIUM_FLOAT FRAGMENT_SHADER",[u.getShaderPrecisionFormat(u.FRAGMENT_SHADER,u.MEDIUM_FLOAT).precision," (-2<sup>",u.getShaderPrecisionFormat(u.FRAGMENT_SHADER,u.MEDIUM_FLOAT).rangeMin,"</sup> - 2<sup>",u.getShaderPrecisionFormat(u.FRAGMENT_SHADER,u.MEDIUM_FLOAT).rangeMax,"</sup>)"].join("")],["Low Float Precision in Fragment Shader","LOW_FLOAT FRAGMENT_SHADER",[u.getShaderPrecisionFormat(u.FRAGMENT_SHADER,u.LOW_FLOAT).precision," (-2<sup>",u.getShaderPrecisionFormat(u.FRAGMENT_SHADER,u.LOW_FLOAT).rangeMin,"</sup> - 2<sup>",u.getShaderPrecisionFormat(u.FRAGMENT_SHADER,u.LOW_FLOAT).rangeMax,"</sup>)"].join("")],["High Int Precision in Vertex Shader","HIGH_INT VERTEX_SHADER",[u.getShaderPrecisionFormat(u.VERTEX_SHADER,u.HIGH_INT).precision," (-2<sup>",u.getShaderPrecisionFormat(u.VERTEX_SHADER,u.HIGH_INT).rangeMin,"</sup> - 2<sup>",u.getShaderPrecisionFormat(u.VERTEX_SHADER,u.HIGH_INT).rangeMax,"</sup>)"].join("")],["Medium Int Precision in Vertex Shader","MEDIUM_INT VERTEX_SHADER",[u.getShaderPrecisionFormat(u.VERTEX_SHADER,u.MEDIUM_INT).precision," (-2<sup>",u.getShaderPrecisionFormat(u.VERTEX_SHADER,u.MEDIUM_INT).rangeMin,"</sup> - 2<sup>",u.getShaderPrecisionFormat(u.VERTEX_SHADER,u.MEDIUM_INT).rangeMax,"</sup>)"].join("")],["Low Int Precision in Vertex Shader","LOW_INT VERTEX_SHADER",[u.getShaderPrecisionFormat(u.VERTEX_SHADER,u.LOW_INT).precision," (-2<sup>",u.getShaderPrecisionFormat(u.VERTEX_SHADER,u.LOW_INT).rangeMin,"</sup> - 2<sup>",u.getShaderPrecisionFormat(u.VERTEX_SHADER,u.LOW_INT).rangeMax,"</sup>)"].join("")],["High Int Precision in Fragment Shader","HIGH_INT FRAGMENT_SHADER",[u.getShaderPrecisionFormat(u.FRAGMENT_SHADER,u.HIGH_INT).precision," (-2<sup>",u.getShaderPrecisionFormat(u.FRAGMENT_SHADER,u.HIGH_INT).rangeMin,"</sup> - 2<sup>",u.getShaderPrecisionFormat(u.FRAGMENT_SHADER,u.HIGH_INT).rangeMax,"</sup>)"].join("")],["Medium Int Precision in Fragment Shader","MEDIUM_INT FRAGMENT_SHADER",[u.getShaderPrecisionFormat(u.FRAGMENT_SHADER,u.MEDIUM_INT).precision," (-2<sup>",u.getShaderPrecisionFormat(u.FRAGMENT_SHADER,u.MEDIUM_INT).rangeMin,"</sup> - 2<sup>",u.getShaderPrecisionFormat(u.FRAGMENT_SHADER,u.MEDIUM_INT).rangeMax,"</sup>)"].join("")],["Low Int Precision in Fragment Shader","LOW_INT FRAGMENT_SHADER",[u.getShaderPrecisionFormat(u.FRAGMENT_SHADER,u.LOW_INT).precision," (-2<sup>",u.getShaderPrecisionFormat(u.FRAGMENT_SHADER,u.LOW_INT).rangeMin,"</sup> - 2<sup>",u.getShaderPrecisionFormat(u.FRAGMENT_SHADER,u.LOW_INT).rangeMax,"</sup>)"].join("")],["Supported Extensions","EXTENSIONS",u.getSupportedExtensions().join("<br/> ")],["WebGL Renderer","RENDERER",u.getParameter(u.RENDERER)],["WebGL Vendor","VENDOR",u.getParameter(u.VENDOR)],["WebGL Version","VERSION",u.getParameter(u.VERSION)],["Shading Language Version","SHADING_LANGUAGE_VERSION",u.getParameter(u.SHADING_LANGUAGE_VERSION)],["Unmasked Renderer","UNMASKED_RENDERER",d&&u.getParameter(d.UNMASKED_RENDERER_WEBGL)],["Unmasked Vendor","UNMASKED_VENDOR",d&&u.getParameter(d.UNMASKED_VENDOR_WEBGL)],["WebGL Version","WEBGL_VERSION",e.webgl2?2:1]],g={};for(;v.length;){const[y,m,S]=v.pop();m&&(g[m]={label:y,value:S})}return e._glInformation=g,g},t.traverseAllPasses=()=>{if(e.renderPasses)for(let u=0;u<e.renderPasses.length;++u)e.renderPasses[u].traverse(t,null);e.notifyStartCaptureImage&&i()},t.disableCullFace=()=>{e.cullFaceEnabled&&(e.context.disable(e.context.CULL_FACE),e.cullFaceEnabled=!1)},t.enableCullFace=()=>{e.cullFaceEnabled||(e.context.enable(e.context.CULL_FACE),e.cullFaceEnabled=!0)},t.setViewStream=u=>{if(e.viewStream===u)return!1;if(e.subscription&&(e.subscription.unsubscribe(),e.subscription=null),e.viewStream=u,e.viewStream){const c=e.renderable.getRenderers()[0];c.getBackgroundByReference()[3]=0,t.setUseBackgroundImage(!0),e.subscription=e.viewStream.onImageReady(f=>t.setBackgroundImage(f.image)),e.viewStream.setSize(e.size[0],e.size[1]),e.viewStream.invalidateCache(),e.viewStream.render(),t.modified()}return!0},t.createSelector=()=>{const u=Rre.newInstance();return u.setOpenGLRenderWindow(t),u};function s(){e.canvas.removeEventListener("webglcontextlost",iz),e.canvas.removeEventListener("webglcontextrestored",t.restoreContext)}t.delete=J.chain(s,t.delete,t.setViewStream,dlt),t.setActiveFramebuffer=u=>{e.activeFramebuffer=u};const l=t.setSize;t.setSize=(u,c)=>{const f=l(u,c);return f&&t.invokeWindowResizeEvent({width:u,height:c}),f},t.getGraphicsResourceForObject=u=>{if(!u)return null;const c=e._graphicsResources.get(u),f=e._graphicsResourceHash.get(u);return{vtkObj:c,hash:f}},t.setGraphicsResourceForObject=(u,c,f)=>{u&&(e._graphicsResources.set(u,c),e._graphicsResourceHash.set(u,f))},t.getGraphicsMemoryInfo=()=>{let u=0;return e._graphicsResources.forEach((c,f)=>{u+=c.getAllocatedGPUMemoryInBytes()}),u},t.releaseGraphicsResourcesForObject=u=>{var c;return u?((c=e._graphicsResources.get(u))==null||c.releaseGraphicsResources(t),e._graphicsResources.delete(u)&&e._graphicsResourceHash.delete(u)):!1},t.releaseGraphicsResources=()=>{e.shaderCache!==null&&e.shaderCache.releaseGraphicsResources(t),e._graphicsResources.forEach((u,c)=>{u.releaseGraphicsResources(t)}),e._graphicsResources.clear(),e._graphicsResourceHash.clear(),e.textureUnitManager!==null&&e.textureUnitManager.freeAll(),e.renderable.getRenderersByReference().forEach(u=>{const c=t.getViewNodeFor(u);c==null||c.releaseGraphicsResources()})}}const plt={cullFaceEnabled:!1,shaderCache:null,initialized:!1,context:null,canvas:null,cursorVisibility:!0,cursor:"pointer",textureUnitManager:null,textureResourceIds:null,containerSize:null,renderPasses:[],notifyStartCaptureImage:!1,webgl2:!1,defaultToWebgl2:!0,activeFramebuffer:null,imageFormat:"image/png",useOffScreen:!1,useBackgroundImage:!1};function vlt(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,plt,n),Ire.extend(t,e,n),e.canvas=document.createElement("canvas"),e.canvas.style.width="100%",flt(),e.selector||(e.selector=Rre.newInstance(),e.selector.setOpenGLRenderWindow(t)),e.bgImage=new Image,e.bgImage.style.position="absolute",e.bgImage.style.left="0",e.bgImage.style.top="0",e.bgImage.style.width="100%",e.bgImage.style.height="100%",e.bgImage.style.zIndex="-1",e._textureResourceIds=new Map,e._graphicsResources=new Map,e._graphicsResourceHash=new Map,e._glInformation=null,e.myFactory=iQe.newInstance(),e.myFactory.registerOverride("vtkRenderWindow",$re),e.shaderCache=Jst.newInstance(),e.shaderCache.setOpenGLRenderWindow(t),e.renderPasses[0]=Rst.newInstance(),J.event(t,e,"imageReady"),J.get(t,e,["shaderCache","textureUnitManager","webgl2","useBackgroundImage","activeFramebuffer"]),J.setGet(t,e,["initialized","context","canvas","renderPasses","notifyStartCaptureImage","defaultToWebgl2","cursor","useOffScreen"]),J.setGetArray(t,e,["size"],2),J.event(t,e,"windowResizeEvent"),hlt(t,e)}const $re=J.newInstance(vlt,"vtkOpenGLRenderWindow");PN("WebGL",$re);const hD=["setBindGroup","setIndexBuffer","setVertexBuffer","draw","drawIndexed"];function glt(t,e){e.classHierarchy.push("vtkWebGPURenderEncoder"),t.begin=n=>{e.drawCallbacks=[],e.handle=n.beginRenderPass(e.description),e.label&&e.handle.pushDebugGroup(e.label)},t.end=()=>{for(let n=0;n<e.drawCallbacks.length;n++){const r=e.drawCallbacks[n],a=r.pipeline;t.setPipeline(a);for(let i=0;i<r.callbacks.length;i++)r.callbacks[i](t)}e.label&&e.handle.popDebugGroup(),e.handle.end(),e.boundPipeline=null},t.setPipeline=n=>{var a,i;if(e.boundPipeline===n)return;e.handle.setPipeline(n.getHandle());const r=n.getPipelineDescription();if(e.colorTextureViews.length!==r.fragment.targets.length)console.log(`mismatched attachment counts on pipeline ${r.fragment.targets.length} while encoder has ${e.colorTextureViews.length}`),console.trace();else for(let o=0;o<e.colorTextureViews.length;o++){const s=(a=e.colorTextureViews[o].getTexture())==null?void 0:a.getFormat();s&&s!==r.fragment.targets[o].format&&(console.log(`mismatched attachments for attachment ${o} on pipeline ${r.fragment.targets[o].format} while encoder has ${s}`),console.trace())}if(!e.depthTextureView!=!("depthStencil"in r))console.log("mismatched depth attachments"),console.trace();else if(e.depthTextureView){const o=(i=e.depthTextureView.getTexture())==null?void 0:i.getFormat();o&&o!==r.depthStencil.format&&(console.log(`mismatched depth attachments on pipeline ${r.depthStencil.format} while encoder has ${o}`),console.trace())}e.boundPipeline=n},t.replaceShaderCode=n=>{e.replaceShaderCodeFunction(n)},t.setColorTextureView=(n,r)=>{e.colorTextureViews[n]!==r&&(e.colorTextureViews[n]=r)},t.activateBindGroup=n=>{const r=e.boundPipeline.getDevice(),a=e.boundPipeline.getBindGroupLayoutCount(n.getLabel());e.handle.setBindGroup(a,n.getBindGroup(r));const i=r.getBindGroupLayoutDescription(n.getBindGroupLayout(r)),o=r.getBindGroupLayoutDescription(e.boundPipeline.getBindGroupLayout(a));i!==o&&(console.log(`renderEncoder ${e.pipelineHash} mismatched bind group layouts bind group has
  707. ${i}
  708. versus pipeline
  709. ${o}
  710. `),console.trace())},t.attachTextureViews=()=>{for(let n=0;n<e.colorTextureViews.length;n++)e.description.colorAttachments[n]?e.description.colorAttachments[n].view=e.colorTextureViews[n].getHandle():e.description.colorAttachments[n]={view:e.colorTextureViews[n].getHandle()};e.depthTextureView&&(e.description.depthStencilAttachment.view=e.depthTextureView.getHandle())},t.registerDrawCallback=(n,r)=>{for(let a=0;a<e.drawCallbacks.length;a++)if(e.drawCallbacks[a].pipeline===n){e.drawCallbacks[a].callbacks.push(r);return}e.drawCallbacks.push({pipeline:n,callbacks:[r]})};for(let n=0;n<hD.length;n++)t[hD[n]]=function(){return e.handle[hD[n]](...arguments)}}const ylt={description:null,handle:null,boundPipeline:null,pipelineHash:null,pipelineSettings:null,replaceShaderCodeFunction:null,depthTextureView:null,label:null};function Pre(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,ylt,n),oi(t,e),e.description={colorAttachments:[{view:void 0,loadOp:"load",storeOp:"store"}],depthStencilAttachment:{view:void 0,depthLoadOp:"clear",depthClearValue:0,depthStoreOp:"store"}},e.replaceShaderCodeFunction=r=>{const a=r.getShaderDescription("fragment");a.addOutput("vec4<f32>","outColor");let i=a.getCode();i=In.substitute(i,"//VTK::RenderEncoder::Impl",["output.outColor = computedColor;"]).result,a.setCode(i)},e.pipelineSettings={primitive:{cullMode:"none"},depthStencil:{depthWriteEnabled:!0,depthCompare:"greater-equal",format:"depth32float"},fragment:{targets:[{format:"rgba16float",blend:{color:{srcFactor:"src-alpha",dstFactor:"one-minus-src-alpha"},alpha:{srcfactor:"one",dstFactor:"one-minus-src-alpha"}}}]}},e.colorTextureViews=[],co(t,e,["boundPipeline","colorTextureViews"]),Xa(t,e,["depthTextureView","description","handle","label","pipelineHash","pipelineSettings","replaceShaderCodeFunction"]),glt(t,e)}const mlt=Kr(Pre,"vtkWebGPURenderEncoder");var Yu={newInstance:mlt,extend:Pre};function blt(t,e){e.classHierarchy.push("vtkWebGPUOpaquePass"),t.traverse=(n,r)=>{if(e.deleted)return;e._currentParent=r;const a=r.getDevice();if(e.renderEncoder)e.colorTexture.resize(r.getCanvas().width,r.getCanvas().height),e.depthTexture.resize(r.getCanvas().width,r.getCanvas().height);else{t.createRenderEncoder(),e.colorTexture=ou.newInstance({label:"opaquePassColor"}),e.colorTexture.create(a,{width:r.getCanvas().width,height:r.getCanvas().height,format:"rgba16float",usage:GPUTextureUsage.RENDER_ATTACHMENT|GPUTextureUsage.TEXTURE_BINDING|GPUTextureUsage.COPY_SRC});const i=e.colorTexture.createView("opaquePassColorTexture");e.renderEncoder.setColorTextureView(0,i),e.depthFormat="depth32float",e.depthTexture=ou.newInstance({label:"opaquePassDepth"}),e.depthTexture.create(a,{width:r.getCanvas().width,height:r.getCanvas().height,format:e.depthFormat,usage:GPUTextureUsage.RENDER_ATTACHMENT|GPUTextureUsage.TEXTURE_BINDING|GPUTextureUsage.COPY_SRC});const o=e.depthTexture.createView("opaquePassDepthTexture");e.renderEncoder.setDepthTextureView(o)}e.renderEncoder.attachTextureViews(),t.setCurrentOperation("opaquePass"),n.setRenderEncoder(e.renderEncoder),n.traverse(t)},t.getColorTextureView=()=>e.renderEncoder.getColorTextureViews()[0],t.getDepthTextureView=()=>e.renderEncoder.getDepthTextureView(),t.createRenderEncoder=()=>{e.renderEncoder=Yu.newInstance({label:"OpaquePass"}),e.renderEncoder.setPipelineHash("op")}}const Slt={renderEncoder:null,colorTexture:null,depthTexture:null};function Fre(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Slt,n),Cc.extend(t,e,n),J.get(t,e,["colorTexture","depthTexture"]),blt(t,e)}const wlt=J.newInstance(Fre,"vtkWebGPUOpaquePass");var xlt={newInstance:wlt,extend:Fre};const _lt=`
  711. //VTK::Mapper::Dec
  712. //VTK::TCoord::Dec
  713. //VTK::RenderEncoder::Dec
  714. //VTK::IOStructs::Dec
  715. @fragment
  716. fn main(
  717. //VTK::IOStructs::Input
  718. )
  719. //VTK::IOStructs::Output
  720. {
  721. var output: fragmentOutput;
  722. var tcoord: vec2<i32> = vec2<i32>(i32(input.fragPos.x), i32(input.fragPos.y));
  723. var reveal: f32 = textureLoad(oitpAccumTexture, tcoord, 0).r;
  724. if (reveal == 1.0) { discard; }
  725. var tcolor: vec4<f32> = textureLoad(oitpColorTexture, tcoord, 0);
  726. var total: f32 = max(tcolor.a, 0.01);
  727. var computedColor: vec4<f32> = vec4<f32>(tcolor.r/total, tcolor.g/total, tcolor.b/total, 1.0 - reveal);
  728. //VTK::RenderEncoder::Impl
  729. return output;
  730. }
  731. `;function Clt(t,e){e.classHierarchy.push("vtkWebGPUOrderIndependentTranslucentPass"),t.traverse=(n,r)=>{if(e.deleted)return;e._currentParent=r;const a=r.getDevice();if(e.translucentRenderEncoder)e.translucentColorTexture.resizeToMatch(e.colorTextureView.getTexture()),e.translucentAccumulateTexture.resizeToMatch(e.colorTextureView.getTexture());else{t.createRenderEncoder(),t.createFinalEncoder(),e.translucentColorTexture=ou.newInstance({label:"translucentPassColor"}),e.translucentColorTexture.create(a,{width:r.getCanvas().width,height:r.getCanvas().height,format:"rgba16float",usage:GPUTextureUsage.RENDER_ATTACHMENT|GPUTextureUsage.TEXTURE_BINDING});const i=e.translucentColorTexture.createView("oitpColorTexture");e.translucentRenderEncoder.setColorTextureView(0,i),e.translucentAccumulateTexture=ou.newInstance({label:"translucentPassAccumulate"}),e.translucentAccumulateTexture.create(a,{width:r.getCanvas().width,height:r.getCanvas().height,format:"r16float",usage:GPUTextureUsage.RENDER_ATTACHMENT|GPUTextureUsage.TEXTURE_BINDING});const o=e.translucentAccumulateTexture.createView("oitpAccumTexture");e.translucentRenderEncoder.setColorTextureView(1,o),e.fullScreenQuad=Zg.newInstance(),e.fullScreenQuad.setDevice(r.getDevice()),e.fullScreenQuad.setPipelineHash("oitpfsq"),e.fullScreenQuad.setTextureViews(e.translucentRenderEncoder.getColorTextureViews()),e.fullScreenQuad.setFragmentShaderTemplate(_lt)}e.translucentRenderEncoder.setDepthTextureView(e.depthTextureView),e.translucentRenderEncoder.attachTextureViews(),t.setCurrentOperation("translucentPass"),n.setRenderEncoder(e.translucentRenderEncoder),n.traverse(t),t.finalPass(r,n)},t.finalPass=(n,r)=>{e.translucentFinalEncoder.setColorTextureView(0,e.colorTextureView),e.translucentFinalEncoder.attachTextureViews(),e.translucentFinalEncoder.begin(n.getCommandEncoder()),r.scissorAndViewport(e.translucentFinalEncoder),e.fullScreenQuad.prepareAndDraw(e.translucentFinalEncoder),e.translucentFinalEncoder.end()},t.getTextures=()=>[e.translucentColorTexture,e.translucentAccumulateTexture],t.createRenderEncoder=()=>{e.translucentRenderEncoder=Yu.newInstance({label:"translucentRender"});const n=e.translucentRenderEncoder.getDescription();n.colorAttachments=[{view:void 0,clearValue:[0,0,0,0],loadOp:"clear",storeOp:"store"},{view:void 0,clearValue:[1,0,0,0],loadOp:"clear",storeOp:"store"}],n.depthStencilAttachment={view:void 0,depthLoadOp:"load",depthStoreOp:"store"},e.translucentRenderEncoder.setReplaceShaderCodeFunction(r=>{const a=r.getShaderDescription("fragment");a.addOutput("vec4<f32>","outColor"),a.addOutput("f32","outAccum"),a.addBuiltinInput("vec4<f32>","@builtin(position) fragPos");let i=a.getCode();i=In.substitute(i,"//VTK::RenderEncoder::Impl",["var w: f32 = computedColor.a * pow(0.1 + input.fragPos.z, 2.0);","output.outColor = vec4<f32>(computedColor.rgb*w, w);","output.outAccum = computedColor.a;"]).result,a.setCode(i)}),e.translucentRenderEncoder.setPipelineHash("oitpr"),e.translucentRenderEncoder.setPipelineSettings({primitive:{cullMode:"none"},depthStencil:{depthWriteEnabled:!1,depthCompare:"greater",format:"depth32float"},fragment:{targets:[{format:"rgba16float",blend:{color:{srcFactor:"one",dstFactor:"one"},alpha:{srcfactor:"one",dstFactor:"one"}}},{format:"r16float",blend:{color:{srcFactor:"zero",dstFactor:"one-minus-src"},alpha:{srcfactor:"one",dstFactor:"one-minus-src-alpha"}}}]}})},t.createFinalEncoder=()=>{e.translucentFinalEncoder=Yu.newInstance({label:"translucentFinal"}),e.translucentFinalEncoder.setDescription({colorAttachments:[{view:null,loadOp:"load",storeOp:"store"}]}),e.translucentFinalEncoder.setReplaceShaderCodeFunction(n=>{const r=n.getShaderDescription("fragment");r.addOutput("vec4<f32>","outColor"),r.addBuiltinInput("vec4<f32>","@builtin(position) fragPos");let a=r.getCode();a=In.substitute(a,"//VTK::RenderEncoder::Impl",["output.outColor = vec4<f32>(computedColor.rgb, computedColor.a);"]).result,r.setCode(a)}),e.translucentFinalEncoder.setPipelineHash("oitpf"),e.translucentFinalEncoder.setPipelineSettings({primitive:{cullMode:"none"},fragment:{targets:[{format:"rgba16float",blend:{color:{srcFactor:"src-alpha",dstFactor:"one-minus-src-alpha"},alpha:{srcfactor:"one",dstFactor:"one-minus-src-alpha"}}}]}})}}const Tlt={colorTextureView:null,depthTextureView:null};function zre(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Tlt,n),Cc.extend(t,e,n),J.setGet(t,e,["colorTextureView","depthTextureView"]),Clt(t,e)}const Elt=J.newInstance(zre,"vtkWebGPUOrderIndependentTranslucentPass");var Mlt={newInstance:Elt,extend:zre};const sv={COMPOSITE_BLEND:0,MAXIMUM_INTENSITY_BLEND:1,MINIMUM_INTENSITY_BLEND:2,AVERAGE_INTENSITY_BLEND:3,ADDITIVE_INTENSITY_BLEND:4,RADON_TRANSFORM_BLEND:5},Dlt=`
  732. //VTK::Renderer::Dec
  733. //VTK::Mapper::Dec
  734. //VTK::TCoord::Dec
  735. //VTK::Volume::TraverseDec
  736. //VTK::RenderEncoder::Dec
  737. //VTK::IOStructs::Dec
  738. fn getTextureValue(vTex: texture_3d<f32>, tpos: vec4<f32>) -> f32
  739. {
  740. // todo multicomponent support
  741. return textureSampleLevel(vTex, clampSampler, tpos.xyz, 0.0).r;
  742. }
  743. fn getGradient(vTex: texture_3d<f32>, tpos: vec4<f32>, vNum: i32, scalar: f32) -> vec4<f32>
  744. {
  745. var result: vec4<f32>;
  746. var tstep: vec4<f32> = volumeSSBO.values[vNum].tstep;
  747. result.x = getTextureValue(vTex, tpos + vec4<f32>(tstep.x, 0.0, 0.0, 1.0)) - scalar;
  748. result.y = getTextureValue(vTex, tpos + vec4<f32>(0.0, tstep.y, 0.0, 1.0)) - scalar;
  749. result.z = getTextureValue(vTex, tpos + vec4<f32>(0.0, 0.0, tstep.z, 1.0)) - scalar;
  750. result.w = 0.0;
  751. // divide by spacing as that is our delta
  752. result = result / volumeSSBO.values[vNum].spacing;
  753. // now we have a gradient in unit tcoords
  754. var grad: f32 = length(result.xyz);
  755. if (grad > 0.0)
  756. {
  757. // rotate to View Coords, needed for lighting and shading
  758. var nMat: mat4x4<f32> = rendererUBO.SCVCMatrix * volumeSSBO.values[vNum].planeNormals;
  759. result = nMat * result;
  760. result = result / length(result);
  761. }
  762. // store gradient magnitude in .w
  763. result.w = grad;
  764. return result;
  765. }
  766. fn processVolume(vTex: texture_3d<f32>, vNum: i32, cNum: i32, posSC: vec4<f32>, tfunRows: f32) -> vec4<f32>
  767. {
  768. var outColor: vec4<f32> = vec4<f32>(0.0, 0.0, 0.0, 0.0);
  769. // convert to tcoords and reject if outside the volume
  770. var tpos: vec4<f32> = volumeSSBO.values[vNum].SCTCMatrix*posSC;
  771. if (tpos.x < 0.0 || tpos.y < 0.0 || tpos.z < 0.0 ||
  772. tpos.x > 1.0 || tpos.y > 1.0 || tpos.z > 1.0) { return outColor; }
  773. var scalar: f32 = getTextureValue(vTex, tpos);
  774. var coord: vec2<f32> =
  775. vec2<f32>(scalar * componentSSBO.values[cNum].cScale + componentSSBO.values[cNum].cShift,
  776. (0.5 + 2.0 * f32(vNum)) / tfunRows);
  777. var color: vec4<f32> = textureSampleLevel(tfunTexture, clampSampler, coord, 0.0);
  778. var gofactor: f32 = 1.0;
  779. var normal: vec4<f32> = vec4<f32>(0.0,0.0,0.0,0.0);
  780. if (componentSSBO.values[cNum].gomin < 1.0 || volumeSSBO.values[vNum].shade[0] > 0.0)
  781. {
  782. normal = getGradient(vTex, tpos, vNum, scalar);
  783. if (componentSSBO.values[cNum].gomin < 1.0)
  784. {
  785. gofactor = clamp(normal.a*componentSSBO.values[cNum].goScale + componentSSBO.values[cNum].goShift,
  786. componentSSBO.values[cNum].gomin, componentSSBO.values[cNum].gomax);
  787. }
  788. }
  789. coord.x = (scalar * componentSSBO.values[cNum].oScale + componentSSBO.values[cNum].oShift);
  790. var opacity: f32 = textureSampleLevel(ofunTexture, clampSampler, coord, 0.0).r;
  791. if (volumeSSBO.values[vNum].shade[0] > 0.0)
  792. {
  793. color = color*abs(normal.z);
  794. }
  795. outColor = vec4<f32>(color.rgb, gofactor * opacity);
  796. return outColor;
  797. }
  798. // adjust the start and end point of a raycast such that it intersects the unit cube.
  799. // This function is used to take a raycast starting point and step vector
  800. // and numSteps and return the startijng and ending steps for intersecting the
  801. // unit cube. Recall for a 3D texture, the unit cube is the range of texture coordsinates
  802. // that have valid values. So this funtion can be used to take a ray in texture coordinates
  803. // and bound it to intersecting the texture.
  804. //
  805. fn adjustBounds(tpos: vec4<f32>, tstep: vec4<f32>, numSteps: f32) -> vec2<f32>
  806. {
  807. var result: vec2<f32> = vec2<f32>(0.0, numSteps);
  808. var tpos2: vec4<f32> = tpos + tstep*numSteps;
  809. // move tpos to the start of the volume
  810. var adjust: f32 =
  811. min(
  812. max(tpos.x/tstep.x, (tpos.x - 1.0)/tstep.x),
  813. min(
  814. max((tpos.y - 1.0)/tstep.y, tpos.y/tstep.y),
  815. max((tpos.z - 1.0)/tstep.z, tpos.z/tstep.z)));
  816. if (adjust < 0.0)
  817. {
  818. result.x = result.x - adjust;
  819. }
  820. // adjust length to the end
  821. adjust =
  822. max(
  823. min(tpos2.x/tstep.x, (tpos2.x - 1.0)/tstep.x),
  824. max(
  825. min((tpos2.y - 1.0)/tstep.y, tpos2.y/tstep.y),
  826. min((tpos2.z - 1.0)/tstep.z, tpos2.z/tstep.z)));
  827. if (adjust > 0.0)
  828. {
  829. result.y = result.y - adjust;
  830. }
  831. return result;
  832. }
  833. fn getSimpleColor(scalar: f32, vNum: i32, cNum: i32) -> vec4<f32>
  834. {
  835. // how many rows (tfuns) do we have in our tfunTexture
  836. var tfunRows: f32 = f32(textureDimensions(tfunTexture).y);
  837. var coord: vec2<f32> =
  838. vec2<f32>(scalar * componentSSBO.values[cNum].cScale + componentSSBO.values[cNum].cShift,
  839. (0.5 + 2.0 * f32(vNum)) / tfunRows);
  840. var color: vec4<f32> = textureSampleLevel(tfunTexture, clampSampler, coord, 0.0);
  841. coord.x = (scalar * componentSSBO.values[cNum].oScale + componentSSBO.values[cNum].oShift);
  842. var opacity: f32 = textureSampleLevel(ofunTexture, clampSampler, coord, 0.0).r;
  843. return vec4<f32>(color.rgb, opacity);
  844. }
  845. fn traverseMax(vTex: texture_3d<f32>, vNum: i32, cNum: i32, rayLengthSC: f32, minPosSC: vec4<f32>, rayStepSC: vec4<f32>)
  846. {
  847. // convert to tcoords and reject if outside the volume
  848. var numSteps: f32 = rayLengthSC/mapperUBO.SampleDistance;
  849. var tpos: vec4<f32> = volumeSSBO.values[vNum].SCTCMatrix*minPosSC;
  850. var tpos2: vec4<f32> = volumeSSBO.values[vNum].SCTCMatrix*(minPosSC + rayStepSC);
  851. var tstep: vec4<f32> = tpos2 - tpos;
  852. var rayBounds: vec2<f32> = adjustBounds(tpos, tstep, numSteps);
  853. // did we hit anything
  854. if (rayBounds.x >= rayBounds.y)
  855. {
  856. traverseVals[vNum] = vec4<f32>(0.0,0.0,0.0,0.0);
  857. return;
  858. }
  859. tpos = tpos + tstep*rayBounds.x;
  860. var curDist: f32 = rayBounds.x;
  861. var maxVal: f32 = -1.0e37;
  862. loop
  863. {
  864. var scalar: f32 = getTextureValue(vTex, tpos);
  865. if (scalar > maxVal)
  866. {
  867. maxVal = scalar;
  868. }
  869. // increment position
  870. curDist = curDist + 1.0;
  871. tpos = tpos + tstep;
  872. // check if we have reached a terminating condition
  873. if (curDist > rayBounds.y) { break; }
  874. }
  875. // process to get the color and opacity
  876. traverseVals[vNum] = getSimpleColor(maxVal, vNum, cNum);
  877. }
  878. fn traverseMin(vTex: texture_3d<f32>, vNum: i32, cNum: i32, rayLengthSC: f32, minPosSC: vec4<f32>, rayStepSC: vec4<f32>)
  879. {
  880. // convert to tcoords and reject if outside the volume
  881. var numSteps: f32 = rayLengthSC/mapperUBO.SampleDistance;
  882. var tpos: vec4<f32> = volumeSSBO.values[vNum].SCTCMatrix*minPosSC;
  883. var tpos2: vec4<f32> = volumeSSBO.values[vNum].SCTCMatrix*(minPosSC + rayStepSC);
  884. var tstep: vec4<f32> = tpos2 - tpos;
  885. var rayBounds: vec2<f32> = adjustBounds(tpos, tstep, numSteps);
  886. // did we hit anything
  887. if (rayBounds.x >= rayBounds.y)
  888. {
  889. traverseVals[vNum] = vec4<f32>(0.0,0.0,0.0,0.0);
  890. return;
  891. }
  892. tpos = tpos + tstep*rayBounds.x;
  893. var curDist: f32 = rayBounds.x;
  894. var minVal: f32 = 1.0e37;
  895. loop
  896. {
  897. var scalar: f32 = getTextureValue(vTex, tpos);
  898. if (scalar < minVal)
  899. {
  900. minVal = scalar;
  901. }
  902. // increment position
  903. curDist = curDist + 1.0;
  904. tpos = tpos + tstep;
  905. // check if we have reached a terminating condition
  906. if (curDist > rayBounds.y) { break; }
  907. }
  908. // process to get the color and opacity
  909. traverseVals[vNum] = getSimpleColor(minVal, vNum, cNum);
  910. }
  911. fn traverseAverage(vTex: texture_3d<f32>, vNum: i32, cNum: i32, rayLengthSC: f32, minPosSC: vec4<f32>, rayStepSC: vec4<f32>)
  912. {
  913. // convert to tcoords and reject if outside the volume
  914. var numSteps: f32 = rayLengthSC/mapperUBO.SampleDistance;
  915. var tpos: vec4<f32> = volumeSSBO.values[vNum].SCTCMatrix*minPosSC;
  916. var tpos2: vec4<f32> = volumeSSBO.values[vNum].SCTCMatrix*(minPosSC + rayStepSC);
  917. var tstep: vec4<f32> = tpos2 - tpos;
  918. var rayBounds: vec2<f32> = adjustBounds(tpos, tstep, numSteps);
  919. // did we hit anything
  920. if (rayBounds.x >= rayBounds.y)
  921. {
  922. traverseVals[vNum] = vec4<f32>(0.0,0.0,0.0,0.0);
  923. return;
  924. }
  925. let ipRange: vec4<f32> = volumeSSBO.values[vNum].ipScalarRange;
  926. tpos = tpos + tstep*rayBounds.x;
  927. var curDist: f32 = rayBounds.x;
  928. var avgVal: f32 = 0.0;
  929. var sampleCount: f32 = 0.0;
  930. loop
  931. {
  932. var sample: f32 = getTextureValue(vTex, tpos);
  933. // right now leave filtering off until WebGL changes get merged
  934. // if (ipRange.z == 0.0 || sample >= ipRange.x && sample <= ipRange.y)
  935. // {
  936. avgVal = avgVal + sample;
  937. sampleCount = sampleCount + 1.0;
  938. // }
  939. // increment position
  940. curDist = curDist + 1.0;
  941. tpos = tpos + tstep;
  942. // check if we have reached a terminating condition
  943. if (curDist > rayBounds.y) { break; }
  944. }
  945. if (sampleCount <= 0.0)
  946. {
  947. traverseVals[vNum] = vec4<f32>(0.0,0.0,0.0,0.0);
  948. }
  949. // process to get the color and opacity
  950. traverseVals[vNum] = getSimpleColor(avgVal/sampleCount, vNum, cNum);
  951. }
  952. fn traverseAdditive(vTex: texture_3d<f32>, vNum: i32, cNum: i32, rayLengthSC: f32, minPosSC: vec4<f32>, rayStepSC: vec4<f32>)
  953. {
  954. // convert to tcoords and reject if outside the volume
  955. var numSteps: f32 = rayLengthSC/mapperUBO.SampleDistance;
  956. var tpos: vec4<f32> = volumeSSBO.values[vNum].SCTCMatrix*minPosSC;
  957. var tpos2: vec4<f32> = volumeSSBO.values[vNum].SCTCMatrix*(minPosSC + rayStepSC);
  958. var tstep: vec4<f32> = tpos2 - tpos;
  959. var rayBounds: vec2<f32> = adjustBounds(tpos, tstep, numSteps);
  960. // did we hit anything
  961. if (rayBounds.x >= rayBounds.y)
  962. {
  963. traverseVals[vNum] = vec4<f32>(0.0,0.0,0.0,0.0);
  964. return;
  965. }
  966. let ipRange: vec4<f32> = volumeSSBO.values[vNum].ipScalarRange;
  967. tpos = tpos + tstep*rayBounds.x;
  968. var curDist: f32 = rayBounds.x;
  969. var sumVal: f32 = 0.0;
  970. loop
  971. {
  972. var sample: f32 = getTextureValue(vTex, tpos);
  973. // right now leave filtering off until WebGL changes get merged
  974. // if (ipRange.z == 0.0 || sample >= ipRange.x && sample <= ipRange.y)
  975. // {
  976. sumVal = sumVal + sample;
  977. // }
  978. // increment position
  979. curDist = curDist + 1.0;
  980. tpos = tpos + tstep;
  981. // check if we have reached a terminating condition
  982. if (curDist > rayBounds.y) { break; }
  983. }
  984. // process to get the color and opacity
  985. traverseVals[vNum] = getSimpleColor(sumVal, vNum, cNum);
  986. }
  987. fn composite(rayLengthSC: f32, minPosSC: vec4<f32>, rayStepSC: vec4<f32>) -> vec4<f32>
  988. {
  989. // initial ray position is at the beginning
  990. var rayPosSC: vec4<f32> = minPosSC;
  991. // how many rows (tfuns) do we have in our tfunTexture
  992. var tfunRows: f32 = f32(textureDimensions(tfunTexture).y);
  993. var curDist: f32 = 0.0;
  994. var computedColor: vec4<f32> = vec4<f32>(0.0, 0.0, 0.0, 0.0);
  995. var sampleColor: vec4<f32>;
  996. //VTK::Volume::TraverseCalls
  997. loop
  998. {
  999. // for each volume, sample and accumulate color
  1000. //VTK::Volume::CompositeCalls
  1001. // increment position
  1002. curDist = curDist + mapperUBO.SampleDistance;
  1003. rayPosSC = rayPosSC + rayStepSC;
  1004. // check if we have reached a terminating condition
  1005. if (curDist > rayLengthSC) { break; }
  1006. if (computedColor.a > 0.98) { break; }
  1007. }
  1008. return computedColor;
  1009. }
  1010. @fragment
  1011. fn main(
  1012. //VTK::IOStructs::Input
  1013. )
  1014. //VTK::IOStructs::Output
  1015. {
  1016. var output: fragmentOutput;
  1017. var rayMax: f32 = textureSampleLevel(maxTexture, clampSampler, input.tcoordVS, 0.0).r;
  1018. var rayMin: f32 = textureSampleLevel(minTexture, clampSampler, input.tcoordVS, 0.0).r;
  1019. // discard empty rays
  1020. if (rayMax <= rayMin) { discard; }
  1021. else
  1022. {
  1023. // compute start and end ray positions in view coordinates
  1024. var minPosSC: vec4<f32> = rendererUBO.PCSCMatrix*vec4<f32>(2.0 * input.tcoordVS.x - 1.0, 1.0 - 2.0 * input.tcoordVS.y, rayMax, 1.0);
  1025. minPosSC = minPosSC * (1.0 / minPosSC.w);
  1026. var maxPosSC: vec4<f32> = rendererUBO.PCSCMatrix*vec4<f32>(2.0 * input.tcoordVS.x - 1.0, 1.0 - 2.0 * input.tcoordVS.y, rayMin, 1.0);
  1027. maxPosSC = maxPosSC * (1.0 / maxPosSC.w);
  1028. var rayLengthSC: f32 = distance(minPosSC.xyz, maxPosSC.xyz);
  1029. var rayStepSC: vec4<f32> = (maxPosSC - minPosSC)*(mapperUBO.SampleDistance/rayLengthSC);
  1030. rayStepSC.w = 0.0;
  1031. var computedColor: vec4<f32>;
  1032. //VTK::Volume::Loop
  1033. //VTK::RenderEncoder::Impl
  1034. }
  1035. return output;
  1036. }
  1037. `,Ui=new Float64Array(16),Uc=new Float64Array(16);function Alt(t,e){e.classHierarchy.push("vtkWebGPUVolumePassFSQ"),t.replaceShaderPosition=(a,i,o)=>{const s=i.getShaderDescription("vertex");s.addBuiltinOutput("vec4<f32>","@builtin(position) Position");let l=s.getCode();l=In.substitute(l,"//VTK::Position::Impl",["output.tcoordVS = vec2<f32>(vertexBC.x * 0.5 + 0.5, 1.0 - vertexBC.y * 0.5 - 0.5);","output.Position = vec4<f32>(vertexBC, 1.0);"]).result,s.setCode(l),i.getShaderDescription("fragment").addBuiltinInput("vec4<f32>","@builtin(position) fragPos")},e.shaderReplacements.set("replaceShaderPosition",t.replaceShaderPosition),t.replaceShaderVolume=(a,i,o)=>{const s=i.getShaderDescription("fragment");let l=s.getCode();const u=[],c=[];for(let d=0;d<e.volumes.length;d++)e.volumes[d].getRenderable().getMapper().getBlendMode()===sv.COMPOSITE_BLEND?(u.push(` sampleColor = processVolume(volTexture${d}, ${d}, ${e.rowStarts[d]}, rayPosSC, tfunRows);`),u.push(` computedColor = vec4<f32>(
  1038. sampleColor.a * sampleColor.rgb * (1.0 - computedColor.a) + computedColor.rgb,
  1039. (1.0 - computedColor.a)*sampleColor.a + computedColor.a);`)):(c.push(` sampleColor = traverseVals[${d}];`),c.push(` computedColor = vec4<f32>(
  1040. sampleColor.a * sampleColor.rgb * (1.0 - computedColor.a) + computedColor.rgb,
  1041. (1.0 - computedColor.a)*sampleColor.a + computedColor.a);`));l=In.substitute(l,"//VTK::Volume::CompositeCalls",u).result,l=In.substitute(l,"//VTK::Volume::TraverseCalls",c).result,l=In.substitute(l,"//VTK::Volume::TraverseDec",[`var<private> traverseVals: array<vec4<f32>,${e.volumes.length}>;`]).result;let f=!1;for(let d=0;d<e.volumes.length;d++){const h=e.volumes[d].getRenderable().getMapper().getBlendMode();h===sv.COMPOSITE_BLEND?f=!0:h===sv.MAXIMUM_INTENSITY_BLEND?l=In.substitute(l,"//VTK::Volume::Loop",[` traverseMax(volTexture${d}, ${d}, ${d}, rayLengthSC, minPosSC, rayStepSC);`,` computedColor = traverseVals[${d}];`,"//VTK::Volume::Loop"]).result:h===sv.MINIMUM_INTENSITY_BLEND?l=In.substitute(l,"//VTK::Volume::Loop",[` traverseMin(volTexture${d}, ${d}, ${d}, rayLengthSC, minPosSC, rayStepSC);`,` computedColor = traverseVals[${d}];`,"//VTK::Volume::Loop"]).result:h===sv.AVERAGE_INTENSITY_BLEND?l=In.substitute(l,"//VTK::Volume::Loop",[` traverseAverage(volTexture${d}, ${d}, ${d}, rayLengthSC, minPosSC, rayStepSC);`,` computedColor = traverseVals[${d}];`,"//VTK::Volume::Loop"]).result:h===sv.ADDITIVE_INTENSITY_BLEND&&(l=In.substitute(l,"//VTK::Volume::Loop",[` traverseAdditive(volTexture${d}, ${d}, ${d}, rayLengthSC, minPosSC, rayStepSC);`,` computedColor = traverseVals[${d}];`,"//VTK::Volume::Loop"]).result)}f&&(l=In.substitute(l,"//VTK::Volume::Loop",[" computedColor = composite(rayLengthSC, minPosSC, rayStepSC);"]).result),s.setCode(l)},e.shaderReplacements.set("replaceShaderVolume",t.replaceShaderVolume),t.updateLUTImage=a=>{let i=t.getMTime();for(let f=0;f<e.volumes.length;f++){const d=e.volumes[f].getRenderable(),h=d.getMapper().getInputData();i=Math.max(i,d.getMTime(),h.getMTime())}if(i<e.lutBuildTime.getMTime())return;e.numRows=0,e.rowStarts=[];for(let f=0;f<e.volumes.length;f++){e.rowStarts.push(e.numRows);const h=e.volumes[f].getRenderable(),p=h.getMapper(),v=h.getProperty(),g=p.getInputData(),m=(g.getPointData()&&g.getPointData().getScalars()).getNumberOfComponents(),w=v.getIndependentComponents()?m:1;e.numRows+=w}const o=new Uint8ClampedArray(e.numRows*2*e.rowLength*4),s=new Float32Array(e.numRows*2*e.rowLength);let l=0;const u=new Float32Array(e.rowLength*3),c=e.rowLength;for(let f=0;f<e.volumes.length;f++){const h=e.volumes[f].getRenderable(),p=h.getMapper(),v=h.getProperty(),g=p.getInputData(),m=(g.getPointData()&&g.getPointData().getScalars()).getNumberOfComponents(),w=v.getIndependentComponents()?m:1;for(let C=0;C<w;++C){const _=v.getRGBTransferFunction(C),x=_.getRange();_.getTable(x[0],x[1],c,u,1);let T=l*c*4;for(let k=0;k<c;++k){o[T+k*4]=255*u[k*3],o[T+k*4+1]=255*u[k*3+1],o[T+k*4+2]=255*u[k*3+2],o[T+k*4+3]=255;for(let L=0;L<4;L++)o[T+(c+k)*4+L]=o[T+k*4+L]}const M=v.getScalarOpacity(C),E=e.sampleDist/v.getScalarOpacityUnitDistance(C),A=M.getRange();M.getTable(A[0],A[1],c,u,1),T=l*c;for(let k=0;k<c;++k)s[T+k]=1-(1-u[k])**E,s[T+k+c]=s[T+k];l+=2}}{const f={nativeArray:o,width:e.rowLength,height:e.numRows*2,depth:1,format:"rgba8unorm"},h=a.getTextureManager().getTexture(f).createView("tfunTexture");e.textureViews[2]=h}{const f={nativeArray:s,width:e.rowLength,height:e.numRows*2,depth:1,format:"r16float"},h=a.getTextureManager().getTexture(f).createView("ofunTexture");e.textureViews[3]=h}e.lutBuildTime.modified()},t.updateSSBO=a=>{let i=Math.max(t.getMTime(),e.WebGPURenderer.getStabilizedTime());for(let _=0;_<e.volumes.length;_++){const x=e.volumes[_].getRenderable(),T=x.getMapper(),M=T.getInputData();i=Math.max(i,x.getMTime(),M.getMTime(),T.getMTime())}if(i<e.SSBO.getSendTime())return;const o=e.WebGPURenderer.getStabilizedCenterByReference();e.SSBO.clearData(),e.SSBO.setNumberOfInstances(e.volumes.length);const s=new Float64Array(e.volumes.length*16),l=new Float64Array(e.volumes.length*16),u=new Float64Array(e.volumes.length*4),c=new Float64Array(e.volumes.length*4),f=new Float64Array(e.volumes.length*4),d=new Float64Array(e.volumes.length*4);for(let _=0;_<e.volumes.length;_++){const T=e.volumes[_].getRenderable(),M=T.getMapper(),E=M.getInputData();Yn(Ui),xa(Ui,Ui,o);const A=T.getMatrix();ea(Uc,A),eo(Uc,Uc),ri(Ui,Uc,Ui);const k=E.getWorldToIndex();ri(Ui,k,Ui);const L=E.getDimensions();Yn(Uc),gp(Uc,Uc,[1/L[0],1/L[1],1/L[2]]),ri(Ui,Uc,Ui);for(let $=0;$<16;$++)s[_*16+$]=Ui[$];eo(Ui,Ui);for(let $=0;$<4;$++)l[_*16+$*4]=Ui[$*4],l[_*16+$*4+1]=Ui[$*4+1],l[_*16+$*4+2]=Ui[$*4+2],l[_*16+$*4+3]=0;u[_*4]=1/L[0],u[_*4+1]=1/L[1],u[_*4+2]=1/L[2],u[_*4+3]=1,c[_*4]=T.getProperty().getShade()?1:0;const I=E.getSpacing();f[_*4]=I[0],f[_*4+1]=I[1],f[_*4+2]=I[2],f[_*4+3]=1;const P=e.textureViews[_+4].getTexture().getScale(),F=M.getIpScalarRange();d[_*4]=F[0]/P,d[_*4+1]=F[1]/P,d[_*4+2]=M.getFilterMode()}e.SSBO.addEntry("SCTCMatrix","mat4x4<f32>"),e.SSBO.addEntry("planeNormals","mat4x4<f32>"),e.SSBO.addEntry("shade","vec4<f32>"),e.SSBO.addEntry("tstep","vec4<f32>"),e.SSBO.addEntry("spacing","vec4<f32>"),e.SSBO.addEntry("ipScalarRange","vec4<f32>"),e.SSBO.setAllInstancesFromArray("SCTCMatrix",s),e.SSBO.setAllInstancesFromArray("planeNormals",l),e.SSBO.setAllInstancesFromArray("shade",c),e.SSBO.setAllInstancesFromArray("tstep",u),e.SSBO.setAllInstancesFromArray("spacing",f),e.SSBO.setAllInstancesFromArray("ipScalarRange",d),e.SSBO.send(a),e.componentSSBO.clearData(),e.componentSSBO.setNumberOfInstances(e.numRows);const h=new Float64Array(e.numRows),p=new Float64Array(e.numRows),v=new Float64Array(e.numRows),g=new Float64Array(e.numRows),y=new Float64Array(e.numRows),m=new Float64Array(e.numRows),S=new Float64Array(e.numRows),w=new Float64Array(e.numRows);let C=0;for(let _=0;_<e.volumes.length;_++){const T=e.volumes[_].getRenderable(),M=T.getMapper(),E=T.getProperty(),A=M.getInputData(),L=(A.getPointData()&&A.getPointData().getScalars()).getNumberOfComponents(),I=E.getIndependentComponents(),P=e.textureViews[_+4].getTexture().getFormat(),F=ti.getDetailsFromTextureFormat(P),$=F.elementSize===2&&F.sampleType==="float",W={scale:[255],offset:[0]};$&&(W.scale[0]=1);for(let V=0;V<L;V++){const z=I?V:0,K=W.scale[V],oe=E.getScalarOpacity(z).getRange(),ge=K/(oe[1]-oe[0]),ie=(W.offset[V]-oe[0])/(oe[1]-oe[0]);g[C]=ie,v[C]=ge;const ce=E.getRGBTransferFunction(z).getRange();if(p[C]=(W.offset[V]-ce[0])/(ce[1]-ce[0]),h[C]=K/(ce[1]-ce[0]),E.getUseGradientOpacity(z)){const me=E.getGradientOpacityMinimumOpacity(z),ve=E.getGradientOpacityMaximumOpacity(z);y[C]=me,m[C]=ve;const he=[E.getGradientOpacityMinimumValue(z),E.getGradientOpacityMaximumValue(z)];w[C]=K*(ve-me)/(he[1]-he[0]),S[C]=-he[0]*(ve-me)/(he[1]-he[0])+me}else y[C]=1,m[C]=1,w[C]=0,S[C]=1;C++}}e.componentSSBO.addEntry("cScale","f32"),e.componentSSBO.addEntry("cShift","f32"),e.componentSSBO.addEntry("oScale","f32"),e.componentSSBO.addEntry("oShift","f32"),e.componentSSBO.addEntry("goShift","f32"),e.componentSSBO.addEntry("goScale","f32"),e.componentSSBO.addEntry("gomin","f32"),e.componentSSBO.addEntry("gomax","f32"),e.componentSSBO.setAllInstancesFromArray("cScale",h),e.componentSSBO.setAllInstancesFromArray("cShift",p),e.componentSSBO.setAllInstancesFromArray("oScale",v),e.componentSSBO.setAllInstancesFromArray("oShift",g),e.componentSSBO.setAllInstancesFromArray("goScale",w),e.componentSSBO.setAllInstancesFromArray("goShift",S),e.componentSSBO.setAllInstancesFromArray("gomin",y),e.componentSSBO.setAllInstancesFromArray("gomax",m),e.componentSSBO.send(a)};const n=t.updateBuffers;t.updateBuffers=()=>{n();let a=e.volumes[0].getRenderable().getMapper().getSampleDistance();for(let i=0;i<e.volumes.length;i++){const l=e.volumes[i].getRenderable().getMapper().getSampleDistance();l<a&&(a=l)}e.sampleDist!==a&&(e.sampleDist=a,e.UBO.setValue("SampleDistance",a),e.UBO.sendIfNeeded(e.device));for(let i=0;i<e.volumes.length;i++){const u=e.volumes[i].getRenderable().getMapper().getInputData(),c=e.device.getTextureManager().getTextureForImageData(u);if(!e.textureViews[i+4]||e.textureViews[i+4].getTexture()!==c){const f=c.createView(`volTexture${i}`);e.textureViews[i+4]=f}}if(e.volumes.length<e.lastVolumeLength)for(let i=e.volumes.length;i<e.lastVolumeLength;i++)e.textureViews.pop();e.lastVolumeLength=e.volumes.length,t.updateLUTImage(e.device),t.updateSSBO(e.device),e.clampSampler||(e.clampSampler=BN.newInstance({label:"clampSampler"}),e.clampSampler.create(e.device,{minFilter:"linear",magFilter:"linear"}))},t.computePipelineHash=()=>{e.pipelineHash="volfsq";for(let a=0;a<e.volumes.length;a++){const i=e.volumes[a].getRenderable().getMapper().getBlendMode();e.pipelineHash+=`${i}`}},t.setVolumes=a=>{if(!e.volumes||e.volumes.length!==a.length){e.volumes=[...a],t.modified();return}for(let i=0;i<a.length;i++)if(a[i]!==e.volumes[i]){e.volumes=[...a],t.modified();return}};const r=t.getBindables;t.getBindables=()=>{const a=r();return a.push(e.componentSSBO),a.push(e.clampSampler),a}}const klt={volumes:null,rowLength:1024,lastVolumeLength:0};function Ure(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,klt,n),Zg.extend(t,e,n),e.fragmentShaderTemplate=Dlt,e.UBO=np.newInstance({label:"mapperUBO"}),e.UBO.addEntry("SampleDistance","f32"),e.SSBO=qL.newInstance({label:"volumeSSBO"}),e.componentSSBO=qL.newInstance({label:"componentSSBO"}),e.lutBuildTime={},J.obj(e.lutBuildTime,{mtime:0}),Alt(t,e)}const Rlt=J.newInstance(Ure,"vtkWebGPUVolumePassFSQ");var Llt={newInstance:Rlt,extend:Ure};const{Representation:Olt}=T0,{BufferUsage:oz,PrimitiveTypes:Vlt}=ud,pD=[[0,4,6],[0,6,2],[1,3,7],[1,7,5],[0,5,4],[0,1,5],[2,6,7],[2,7,3],[0,3,1],[0,2,3],[4,5,7],[4,7,6]],Nlt=`
  1042. //VTK::Renderer::Dec
  1043. //VTK::Select::Dec
  1044. //VTK::VolumePass::Dec
  1045. //VTK::TCoord::Dec
  1046. //VTK::RenderEncoder::Dec
  1047. //VTK::Mapper::Dec
  1048. //VTK::IOStructs::Dec
  1049. @fragment
  1050. fn main(
  1051. //VTK::IOStructs::Input
  1052. )
  1053. //VTK::IOStructs::Output
  1054. {
  1055. var output : fragmentOutput;
  1056. //VTK::Select::Impl
  1057. //VTK::TCoord::Impl
  1058. //VTK::VolumePass::Impl
  1059. // use the maximum (closest) of the current value and the zbuffer
  1060. // the blend func will then take the min to find the farthest stop value
  1061. var stopval: f32 = max(input.fragPos.z, textureLoad(opaquePassDepthTexture, vec2<i32>(i32(input.fragPos.x), i32(input.fragPos.y)), 0));
  1062. //VTK::RenderEncoder::Impl
  1063. return output;
  1064. }
  1065. `,Ilt=`
  1066. //VTK::Renderer::Dec
  1067. //VTK::Mapper::Dec
  1068. //VTK::TCoord::Dec
  1069. //VTK::RenderEncoder::Dec
  1070. //VTK::IOStructs::Dec
  1071. @fragment
  1072. fn main(
  1073. //VTK::IOStructs::Input
  1074. )
  1075. //VTK::IOStructs::Output
  1076. {
  1077. var output: fragmentOutput;
  1078. var computedColor: vec4<f32> = textureSample(volumePassColorTexture,
  1079. volumePassColorTextureSampler, mapperUBO.tscale*input.tcoordVS);
  1080. //VTK::RenderEncoder::Impl
  1081. return output;
  1082. }
  1083. `;function Blt(t,e){e.classHierarchy.push("vtkWebGPUVolumePass"),t.initialize=n=>{e._clearEncoder||t.createClearEncoder(n),e._mergeEncoder||t.createMergeEncoder(n),e._copyEncoder||t.createCopyEncoder(n),e._depthRangeEncoder||t.createDepthRangeEncoder(n),e.fullScreenQuad||(e.fullScreenQuad=Llt.newInstance(),e.fullScreenQuad.setDevice(n.getDevice()),e.fullScreenQuad.setTextureViews([...e._depthRangeEncoder.getColorTextureViews()])),e._volumeCopyQuad||(e._volumeCopyQuad=Zg.newInstance(),e._volumeCopyQuad.setPipelineHash("volpassfsq"),e._volumeCopyQuad.setDevice(n.getDevice()),e._volumeCopyQuad.setFragmentShaderTemplate(Ilt),e._copyUBO=np.newInstance({label:"mapperUBO"}),e._copyUBO.addEntry("tscale","vec2<f32>"),e._volumeCopyQuad.setUBO(e._copyUBO),e._volumeCopyQuad.setTextureViews([e._colorTextureView]))},t.traverse=(n,r)=>{if(e.deleted)return;e._currentParent=r,t.initialize(r),t.computeTiming(r),t.renderDepthBounds(n,r),e._firstGroup=!0;const a=r.getDevice(),i=a.getHandle().limits.maxSampledTexturesPerShaderStage-4;if(e.volumes.length>i){const o=n.getRenderable().getActiveCamera().getPosition(),s=[];for(let f=0;f<e.volumes.length;f++){const d=e.volumes[f].getRenderable().getBounds(),h=[.5*(d[1]+d[0]),.5*(d[3]+d[2]),.5*(d[5]+d[4])];s[f]=Zs(h,o)}const l=[...Array(e.volumes.length).keys()];l.sort((f,d)=>s[d]-s[f]);let u=[],c=l.length%i;for(let f=0;f<l.length;f++)u.push(e.volumes[l[f]]),u.length>=c&&(t.rayCastPass(r,n,u),u=[],c=i,e._firstGroup=!1)}else t.rayCastPass(r,n,e.volumes);if(e._volumeCopyQuad.setWebGPURenderer(n),e._useSmallViewport){const o=e._colorTextureView.getTexture().getWidth(),s=e._colorTextureView.getTexture().getHeight();e._copyUBO.setArray("tscale",[e._smallViewportWidth/o,e._smallViewportHeight/s])}else e._copyUBO.setArray("tscale",[1,1]);e._copyUBO.sendIfNeeded(a),e._copyEncoder.setColorTextureView(0,e.colorTextureView),e._copyEncoder.attachTextureViews(),e._copyEncoder.begin(r.getCommandEncoder()),n.scissorAndViewport(e._copyEncoder),e._volumeCopyQuad.prepareAndDraw(e._copyEncoder),e._copyEncoder.end()},t.delete=J.chain(()=>{e._animationRateSubscription&&(e._animationRateSubscription.unsubscribe(),e._animationRateSubscription=null)},t.delete),t.computeTiming=n=>{const r=n.getRenderable().getInteractor();if(e._lastScale==null){const a=e.volumes[0].getRenderable().getMapper();e._lastScale=a.getInitialInteractionScale()||1}e._useSmallViewport=!1,r.isAnimating()&&e._lastScale>1.5&&(e._useSmallViewport=!0),e._colorTexture.resize(n.getCanvas().width,n.getCanvas().height),e._animationRateSubscription||(e._animationRateSubscription=r.onAnimationFrameRateUpdate(()=>{const a=e.volumes[0].getRenderable().getMapper();if(a.getAutoAdjustSampleDistances()){const i=r.getRecentAnimationFrameRate(),o=e._lastScale*r.getDesiredUpdateRate()/i;e._lastScale=o,e._lastScale>400&&(e._lastScale=400)}else e._lastScale=a.getImageSampleDistance()*a.getImageSampleDistance();e._lastScale<1.5&&(e._lastScale=1.5)}))},t.rayCastPass=(n,r,a)=>{const i=e._firstGroup?e._clearEncoder:e._mergeEncoder;i.attachTextureViews(),i.begin(n.getCommandEncoder());let o=e._colorTextureView.getTexture().getWidth(),s=e._colorTextureView.getTexture().getHeight();if(e._useSmallViewport){const l=n.getCanvas(),u=1/Math.sqrt(e._lastScale);e._smallViewportWidth=Math.ceil(u*l.width),e._smallViewportHeight=Math.ceil(u*l.height),o=e._smallViewportWidth,s=e._smallViewportHeight}i.getHandle().setViewport(0,0,o,s,0,1),i.getHandle().setScissorRect(0,0,o,s),e.fullScreenQuad.setWebGPURenderer(r),e.fullScreenQuad.setVolumes(a),e.fullScreenQuad.prepareAndDraw(i),i.end()},t.renderDepthBounds=(n,r)=>{t.updateDepthPolyData(n);const a=e._boundsPoly,i=a.getPoints(),o=a.getPolys();let s={hash:`vp${o.getMTime()}`,usage:oz.Index,cells:o,numberOfPoints:i.getNumberOfPoints(),primitiveType:Vlt.Triangles,representation:Olt.SURFACE};const l=r.getDevice().getBufferManager().getBuffer(s);e._mapper.getVertexInput().setIndexBuffer(l),s={usage:oz.PointArray,format:"float32x4",hash:`vp${i.getMTime()}${o.getMTime()}`,dataArray:i,indexBuffer:l,packExtra:!0};const u=r.getDevice().getBufferManager().getBuffer(s);e._mapper.getVertexInput().addBuffer(u,["vertexBC"]),e._mapper.setNumberOfVertices(u.getSizeInBytes()/u.getStrideInBytes()),t.drawDepthRange(n,r)},t.updateDepthPolyData=n=>{let r=!1;for(let c=0;c<e.volumes.length;c++){const f=e.volumes[c].getMTime();(!e._lastMTimes[c]||f!==e._lastMTimes[c])&&(r=!0,e._lastMTimes[c]=f)}const a=n.getStabilizedTime();if((e._lastMTimes.length<=e.volumes.length||a!==e._lastMTimes[e.volumes.length])&&(r=!0,e._lastMTimes[e.volumes.length]=a),!r)return;const i=n.getStabilizedCenterByReference(),o=e.volumes.length*8,s=new Float64Array(o*3),l=e.volumes.length*12,u=new Uint16Array(l*4);for(let c=0;c<e.volumes.length;c++){e.volumes[c].getBoundingCubePoints(s,c*24);let f=c*12*4;const d=c*8;for(let h=0;h<12;h++)u[f++]=3,u[f++]=d+pD[h][0],u[f++]=d+pD[h][1],u[f++]=d+pD[h][2]}for(let c=0;c<s.length;c+=3)s[c]-=i[0],s[c+1]-=i[1],s[c+2]-=i[2];e._boundsPoly.getPoints().setData(s,3),e._boundsPoly.getPoints().modified(),e._boundsPoly.getPolys().setData(u,1),e._boundsPoly.getPolys().modified(),e._boundsPoly.modified()},t.drawDepthRange=(n,r)=>{e._depthRangeTexture.resizeToMatch(e.colorTextureView.getTexture()),e._depthRangeTexture2.resizeToMatch(e.colorTextureView.getTexture()),e._depthRangeEncoder.attachTextureViews(),t.setCurrentOperation("volumeDepthRangePass"),n.setRenderEncoder(e._depthRangeEncoder),n.volumeDepthRangePass(!0),e._mapper.setWebGPURenderer(n),e._mapper.prepareToDraw(e._depthRangeEncoder),e._mapper.registerDrawCallback(e._depthRangeEncoder),n.volumeDepthRangePass(!1)},t.createDepthRangeEncoder=n=>{const r=n.getDevice();e._depthRangeEncoder=Yu.newInstance({label:"VolumePass DepthRange"}),e._depthRangeEncoder.setPipelineHash("volr"),e._depthRangeEncoder.setReplaceShaderCodeFunction(o=>{const s=o.getShaderDescription("fragment");s.addOutput("vec4<f32>","outColor1"),s.addOutput("vec4<f32>","outColor2");let l=s.getCode();l=In.substitute(l,"//VTK::RenderEncoder::Impl",["output.outColor1 = vec4<f32>(input.fragPos.z, 0.0, 0.0, 0.0);","output.outColor2 = vec4<f32>(stopval, 0.0, 0.0, 0.0);"]).result,s.setCode(l)}),e._depthRangeEncoder.setDescription({colorAttachments:[{view:null,clearValue:[0,0,0,0],loadOp:"clear",storeOp:"store"},{view:null,clearValue:[1,1,1,1],loadOp:"clear",storeOp:"store"}]}),e._depthRangeEncoder.setPipelineSettings({primitive:{cullMode:"none"},fragment:{targets:[{format:"r16float",blend:{color:{srcFactor:"one",dstFactor:"one",operation:"max"},alpha:{srcfactor:"one",dstFactor:"one",operation:"max"}}},{format:"r16float",blend:{color:{srcFactor:"one",dstFactor:"one",operation:"min"},alpha:{srcfactor:"one",dstFactor:"one",operation:"min"}}}]}}),e._depthRangeTexture=ou.newInstance({label:"volumePassMaxDepth"}),e._depthRangeTexture.create(r,{width:n.getCanvas().width,height:n.getCanvas().height,format:"r16float",usage:GPUTextureUsage.RENDER_ATTACHMENT|GPUTextureUsage.TEXTURE_BINDING});const a=e._depthRangeTexture.createView("maxTexture");e._depthRangeEncoder.setColorTextureView(0,a),e._depthRangeTexture2=ou.newInstance({label:"volumePassDepthMin"}),e._depthRangeTexture2.create(r,{width:n.getCanvas().width,height:n.getCanvas().height,format:"r16float",usage:GPUTextureUsage.RENDER_ATTACHMENT|GPUTextureUsage.TEXTURE_BINDING});const i=e._depthRangeTexture2.createView("minTexture");e._depthRangeEncoder.setColorTextureView(1,i),e._mapper.setDevice(n.getDevice()),e._mapper.setTextureViews([e.depthTextureView])},t.createClearEncoder=n=>{e._colorTexture=ou.newInstance({label:"volumePassColor"}),e._colorTexture.create(n.getDevice(),{width:n.getCanvas().width,height:n.getCanvas().height,format:"bgra8unorm",usage:GPUTextureUsage.RENDER_ATTACHMENT|GPUTextureUsage.TEXTURE_BINDING|GPUTextureUsage.COPY_SRC}),e._colorTextureView=e._colorTexture.createView("volumePassColorTexture"),e._colorTextureView.addSampler(n.getDevice(),{minFilter:"linear",magFilter:"linear"}),e._clearEncoder=Yu.newInstance({label:"VolumePass Clear"}),e._clearEncoder.setColorTextureView(0,e._colorTextureView),e._clearEncoder.setDescription({colorAttachments:[{view:null,clearValue:[0,0,0,0],loadOp:"clear",storeOp:"store"}]}),e._clearEncoder.setPipelineHash("volpf"),e._clearEncoder.setPipelineSettings({primitive:{cullMode:"none"},fragment:{targets:[{format:"bgra8unorm",blend:{color:{srcFactor:"src-alpha",dstFactor:"one-minus-src-alpha"},alpha:{srcfactor:"one",dstFactor:"one-minus-src-alpha"}}}]}})},t.createCopyEncoder=n=>{e._copyEncoder=Yu.newInstance({label:"volumePassCopy"}),e._copyEncoder.setDescription({colorAttachments:[{view:null,loadOp:"load",storeOp:"store"}]}),e._copyEncoder.setPipelineHash("volcopypf"),e._copyEncoder.setPipelineSettings({primitive:{cullMode:"none"},fragment:{targets:[{format:"rgba16float",blend:{color:{srcFactor:"one",dstFactor:"one-minus-src-alpha"},alpha:{srcfactor:"one",dstFactor:"one-minus-src-alpha"}}}]}})},t.createMergeEncoder=n=>{e._mergeEncoder=Yu.newInstance({label:"volumePassMerge"}),e._mergeEncoder.setColorTextureView(0,e._colorTextureView),e._mergeEncoder.setDescription({colorAttachments:[{view:null,loadOp:"load",storeOp:"store"}]}),e._mergeEncoder.setReplaceShaderCodeFunction(r=>{const a=r.getShaderDescription("fragment");a.addOutput("vec4<f32>","outColor");let i=a.getCode();i=In.substitute(i,"//VTK::RenderEncoder::Impl",["output.outColor = vec4<f32>(computedColor.rgb, computedColor.a);"]).result,a.setCode(i)}),e._mergeEncoder.setPipelineHash("volpf"),e._mergeEncoder.setPipelineSettings({primitive:{cullMode:"none"},fragment:{targets:[{format:"bgra8unorm",blend:{color:{srcFactor:"src-alpha",dstFactor:"one-minus-src-alpha"},alpha:{srcfactor:"one",dstFactor:"one-minus-src-alpha"}}}]}})},t.setVolumes=n=>{if(!e.volumes||e.volumes.length!==n.length){e.volumes=[...n],t.modified();return}for(let r=0;r<n.length;r++)if(n[r]!==e.volumes[r]){e.volumes=[...n],t.modified();return}}}const $lt={colorTextureView:null,depthTextureView:null,volumes:null};function Gre(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,$lt,n),Cc.extend(t,e,n),e._mapper=IN.newInstance(),e._mapper.setFragmentShaderTemplate(Nlt),e._mapper.getShaderReplacements().set("replaceShaderVolumePass",(r,a,i)=>{a.getShaderDescription("fragment").addBuiltinInput("vec4<f32>","@builtin(position) fragPos")}),e._boundsPoly=$a.newInstance(),e._lastMTimes=[],J.setGet(t,e,["colorTextureView","depthTextureView"]),Blt(t,e)}const Plt=J.newInstance(Gre,"vtkWebGPUVolumePass");var Flt={newInstance:Plt,extend:Gre};const zlt=`
  1084. //VTK::Mapper::Dec
  1085. //VTK::TCoord::Dec
  1086. //VTK::RenderEncoder::Dec
  1087. //VTK::IOStructs::Dec
  1088. @fragment
  1089. fn main(
  1090. //VTK::IOStructs::Input
  1091. )
  1092. //VTK::IOStructs::Output
  1093. {
  1094. var output: fragmentOutput;
  1095. var computedColor: vec4<f32> = clamp(textureSampleLevel(opaquePassColorTexture, finalPassSampler, input.tcoordVS, 0.0),vec4<f32>(0.0),vec4<f32>(1.0));
  1096. //VTK::RenderEncoder::Impl
  1097. return output;
  1098. }
  1099. `;function Ult(t,e){e.classHierarchy.push("vtkForwardPass"),t.traverse=function(n){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(e.deleted)return;e._currentParent=r,t.setCurrentOperation("buildPass"),n.traverse(t),e.opaquePass||(e.opaquePass=xlt.newInstance());const a=n.getRenderable().getNumberOfLayers(),i=n.getChildren();for(let o=0;o<a;o++)for(let s=0;s<i.length;s++){const l=i[s],u=n.getRenderable().getRenderers()[s];u.getDraw()&&u.getLayer()===o&&(e.opaqueActorCount=0,e.translucentActorCount=0,e.volumes=[],t.setCurrentOperation("queryPass"),l.traverse(t),t.setCurrentOperation("cameraPass"),l.traverse(t),e.opaquePass.traverse(l,n),e.translucentActorCount>0&&(e.translucentPass||(e.translucentPass=Mlt.newInstance()),e.translucentPass.setColorTextureView(e.opaquePass.getColorTextureView()),e.translucentPass.setDepthTextureView(e.opaquePass.getDepthTextureView()),e.translucentPass.traverse(l,n)),e.volumes.length>0&&(e.volumePass||(e.volumePass=Flt.newInstance()),e.volumePass.setColorTextureView(e.opaquePass.getColorTextureView()),e.volumePass.setDepthTextureView(e.opaquePass.getDepthTextureView()),e.volumePass.setVolumes(e.volumes),e.volumePass.traverse(l,n)),t.finalPass(n,l))}},t.finalPass=(n,r)=>{e._finalBlitEncoder||t.createFinalBlitEncoder(n),e._finalBlitOutputTextureView.createFromTextureHandle(n.getCurrentTexture(),{depth:1,format:n.getPresentationFormat()}),e._finalBlitEncoder.attachTextureViews(),e._finalBlitEncoder.begin(n.getCommandEncoder()),r.scissorAndViewport(e._finalBlitEncoder),e._fullScreenQuad.prepareAndDraw(e._finalBlitEncoder),e._finalBlitEncoder.end()},t.createFinalBlitEncoder=n=>{e._finalBlitEncoder=Yu.newInstance({label:"forwardPassBlit"}),e._finalBlitEncoder.setDescription({colorAttachments:[{view:null,loadOp:"load",storeOp:"store"}]}),e._finalBlitEncoder.setPipelineHash("fpf"),e._finalBlitEncoder.setPipelineSettings({primitive:{cullMode:"none"},fragment:{targets:[{format:n.getPresentationFormat(),blend:{color:{srcFactor:"src-alpha",dstFactor:"one-minus-src-alpha"},alpha:{srcfactor:"one",dstFactor:"one-minus-src-alpha"}}}]}}),e._fsqSampler=BN.newInstance({label:"finalPassSampler"}),e._fsqSampler.create(n.getDevice(),{minFilter:"linear",magFilter:"linear"}),e._fullScreenQuad=Zg.newInstance(),e._fullScreenQuad.setDevice(n.getDevice()),e._fullScreenQuad.setPipelineHash("fpfsq"),e._fullScreenQuad.setTextureViews([e.opaquePass.getColorTextureView()]),e._fullScreenQuad.setAdditionalBindables([e._fsqSampler]),e._fullScreenQuad.setFragmentShaderTemplate(zlt),e._finalBlitOutputTextureView=nre.newInstance(),e._finalBlitEncoder.setColorTextureView(0,e._finalBlitOutputTextureView)},t.incrementOpaqueActorCount=()=>e.opaqueActorCount++,t.incrementTranslucentActorCount=()=>e.translucentActorCount++,t.addVolume=n=>{e.volumes.push(n)}}const Glt={opaqueActorCount:0,translucentActorCount:0,volumes:null,opaqueRenderEncoder:null,translucentPass:null,volumePass:null};function Hre(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Glt,n),Cc.extend(t,e,n),J.setGet(t,e,["opaquePass","translucentPass","volumePass"]),Ult(t,e)}const Hlt=J.newInstance(Hre,"vtkForwardPass");var Wlt={newInstance:Hlt,extend:Hre};const{VtkDataTypes:Nd}=zn;function jlt(t,e){e.classHierarchy.push("vtkWebGPUTextureManager");function n(a){if(a.imageData){a.dataArray=a.imageData.getPointData().getScalars(),a.time=a.dataArray.getMTime(),a.nativeArray=a.dataArray.getData();const i=a.imageData.getDimensions();switch(a.width=i[0],a.height=i[1],a.depth=i[2],a.dataArray.getNumberOfComponents()){case 1:a.format="r";break;case 2:a.format="rg";break;case 3:case 4:default:a.format="rgba";break}switch(a.dataArray.getDataType()){case Nd.UNSIGNED_CHAR:a.format+="8unorm";break;case Nd.FLOAT:case Nd.UNSIGNED_INT:case Nd.INT:case Nd.DOUBLE:case Nd.UNSIGNED_SHORT:case Nd.SHORT:default:a.format+="16float";break}}a.image&&(a.width=a.image.width,a.height=a.image.height,a.depth=1,a.format="rgba8unorm"),a.jsImageData&&(a.width=a.jsImageData.width,a.height=a.jsImageData.height,a.depth=1,a.format="rgba8unorm",a.flip=!0,a.nativeArray=a.jsImageData.data),a.canvas&&(a.width=a.canvas.width,a.height=a.canvas.height,a.depth=1,a.format="rgba8unorm",a.flip=!0,a.usage=GPUTextureUsage.TEXTURE_BINDING|GPUTextureUsage.COPY_DST|GPUTextureUsage.RENDER_ATTACHMENT)}function r(a){const i=ou.newInstance();return i.create(e.device,{width:a.width,height:a.height,depth:a.depth,format:a.format,usage:a.usage,mipLevel:a.mipLevel}),(a.nativeArray||a.image||a.canvas)&&i.writeImageData(a),i}t.getTexture=a=>a.hash?e.device.getCachedObject(a.hash,r,a):r(a),t.getTextureForImageData=a=>{const i={time:a.getMTime()};return i.imageData=a,n(i),i.hash=i.time+i.format+i.mipLevel,e.device.getTextureManager().getTexture(i)},t.getTextureForVTKTexture=a=>{const i={time:a.getMTime()};return a.getInputData()?i.imageData=a.getInputData():a.getImage()?i.image=a.getImage():a.getJsImageData()?i.jsImageData=a.getJsImageData():a.getCanvas()&&(i.canvas=a.getCanvas()),n(i),i.mipLevel=a.getMipLevel(),i.hash=i.time+i.format+i.mipLevel,e.device.getTextureManager().getTexture(i)}}const Klt={handle:null,device:null};function Wre(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Klt,n),J.obj(t,e),J.setGet(t,e,["device"]),jlt(t,e)}const Ylt=J.newInstance(Wre);var Xlt={newInstance:Ylt,extend:Wre};class qlt extends Map{constructor(){super(),this.registry=new FinalizationRegistry(e=>{const n=super.get(e);n&&n.deref&&n.deref()===void 0&&super.delete(e)})}getValue(e){const n=super.get(e);if(n){const r=n.deref();if(r!==void 0)return r;super.delete(e)}}setValue(e,n){let r;return n&&typeof n=="object"&&(r=new WeakRef(n),this.registry.register(n,e),super.set(e,r)),r}}function Zlt(t,e){e.classHierarchy.push("vtkWebGPUDevice"),t.initialize=n=>{e.handle=n},t.createCommandEncoder=()=>e.handle.createCommandEncoder(),t.submitCommandEncoder=n=>{e.handle.queue.submit([n.finish()])},t.getShaderModule=n=>e.shaderCache.getShaderModule(n),t.getBindGroupLayout=n=>{if(!n.entries)return null;for(let i=0;i<n.entries.length;i++){const o=n.entries[i];o.binding=o.binding||0,o.visibility=o.visibility||GPUShaderStage.VERTEX|GPUShaderStage.FRAGMENT}const r=JSON.stringify(n);for(let i=0;i<e.bindGroupLayouts.length;i++)if(e.bindGroupLayouts[i].sval===r)return e.bindGroupLayouts[i].layout;const a=e.handle.createBindGroupLayout(n);return e.bindGroupLayouts.push({sval:r,layout:a}),a},t.getBindGroupLayoutDescription=n=>{for(let r=0;r<e.bindGroupLayouts.length;r++)if(e.bindGroupLayouts[r].layout===n)return e.bindGroupLayouts[r].sval;return vtkErrorMacro("layout not found"),console.trace(),null},t.getPipeline=n=>n in e.pipelines?e.pipelines[n]:null,t.createPipeline=(n,r)=>{r.initialize(t,n),e.pipelines[n]=r},t.onSubmittedWorkDone=()=>e.handle.queue.onSubmittedWorkDone(),t.hasCachedObject=n=>e.objectCache.getValue(n),t.getCachedObject=function(n,r){if(!n)return vtkErrorMacro("attempt to cache an object without a hash"),null;const a=e.objectCache.getValue(n);if(a)return a;for(var i=arguments.length,o=new Array(i>2?i-2:0),s=2;s<i;s++)o[s-2]=arguments[s];const l=r(...o);return e.objectCache.setValue(n,l),l}}const Qlt={handle:null,pipelines:null,shaderCache:null,bindGroupLayouts:null,bufferManager:null,textureManager:null};function jre(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Qlt,n),oi(t,e),Xa(t,e,["handle"]),co(t,e,["bufferManager","shaderCache","textureManager"]),e.objectCache=new qlt,e.shaderCache=In.newInstance(),e.shaderCache.setDevice(t),e.bindGroupLayouts=[],e.bufferManager=ud.newInstance(),e.bufferManager.setDevice(t),e.textureManager=Xlt.newInstance(),e.textureManager.setDevice(t),e.pipelines={},Zlt(t,e)}const Jlt=Kr(jre,"vtkWebGPUDevice");var eut={newInstance:Jlt,extend:jre};function tut(t,e){e.classHierarchy.push("vtkWebGPUHardwareSelectionPass"),t.traverse=(n,r)=>{if(e.deleted)return;e._currentParent=null,t.setCurrentOperation("buildPass"),n.traverse(t);const a=n.getDevice();if(e.selectionRenderEncoder)e.colorTexture.resize(n.getCanvas().width,n.getCanvas().height),e.depthTexture.resizeToMatch(e.colorTexture);else{t.createRenderEncoder(),e.colorTexture=ou.newInstance({label:"hardwareSelectorColor"}),e.colorTexture.create(a,{width:n.getCanvas().width,height:n.getCanvas().height,format:"rgba32uint",usage:GPUTextureUsage.RENDER_ATTACHMENT|GPUTextureUsage.COPY_SRC});const i=e.colorTexture.createView("hardwareSelectColorTexture");e.selectionRenderEncoder.setColorTextureView(0,i),e.depthTexture=ou.newInstance({label:"hardwareSelectorDepth"}),e.depthTexture.create(a,{width:n.getCanvas().width,height:n.getCanvas().height,format:"depth32float",usage:GPUTextureUsage.RENDER_ATTACHMENT|GPUTextureUsage.COPY_SRC});const o=e.depthTexture.createView("hardwareSelectDepthTexture");e.selectionRenderEncoder.setDepthTextureView(o)}e.selectionRenderEncoder.attachTextureViews(),r.setRenderEncoder(e.selectionRenderEncoder),t.setCurrentOperation("cameraPass"),r.traverse(t),t.setCurrentOperation("opaquePass"),r.traverse(t)},t.createRenderEncoder=()=>{e.selectionRenderEncoder=Yu.newInstance({label:"HardwareSelectionPass"}),e.selectionRenderEncoder.setPipelineHash("sel"),e.selectionRenderEncoder.setReplaceShaderCodeFunction(r=>{const a=r.getShaderDescription("fragment");a.addOutput("vec4<u32>","outColor");let i=a.getCode();i=In.substitute(i,"//VTK::RenderEncoder::Impl",["output.outColor = vec4<u32>(mapperUBO.PropID, compositeID, 0u, 0u);"]).result,a.setCode(i)});const n=e.selectionRenderEncoder.getDescription();n.colorAttachments[0].clearValue=[0,0,0,0],e.selectionRenderEncoder.setPipelineSettings({primitive:{cullMode:"none"},depthStencil:{depthWriteEnabled:!0,depthCompare:"greater",format:"depth32float"},fragment:{targets:[{format:"rgba32uint",blend:void 0}]}})}}const nut={selectionRenderEncoder:null,colorTexture:null,depthTexture:null};function Kre(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,nut,n),Cc.extend(t,e,n),J.get(t,e,["colorTexture","depthTexture"]),tut(t,e)}const rut=J.newInstance(Kre,"vtkWebGPUHardwareSelectionPass");var aut={newInstance:rut,extend:Kre};const{SelectionContent:iut,SelectionField:sz}=YT,{FieldAssociations:lz}=Ip,{vtkErrorMacro:Yre}=J;function out(t){return`${t.propID} ${t.compositeID}`}function uz(t,e,n,r){const a=((n.height-e-1)*n.colorBufferWidth+t)*4+r;return n.colorValues[a]}function Iv(t,e,n,r){const a=n<0?0:n;if(a===0){if(r[0]=e[0],r[1]=e[1],e[0]<0||e[0]>=t.width||e[1]<0||e[1]>=t.height)return null;const l=uz(e[0],e[1],t,0);if(l<=0)return null;const u={};u.propID=l;let c=uz(e[0],e[1],t,1);if((c<0||c>16777215)&&(c=0),u.compositeID=c,t.captureZValues){const f=(t.height-e[1]-1)*t.zbufferBufferWidth+e[0];u.zValue=t.depthValues[f],u.zValue=t.webGPURenderer.convertToOpenGLDepth(u.zValue),u.displayPosition=e}return u}const i=[e[0],e[1]],o=[0,0];let s=Iv(t,e,0,r);if(s)return s;for(let l=1;l<a;++l){for(let u=i[1]>l?i[1]-l:0;u<=i[1]+l;++u)if(o[1]=u,i[0]>=l&&(o[0]=i[0]-l,s=Iv(t,o,0,r),s)||(o[0]=i[0]+l,s=Iv(t,o,0,r),s))return s;for(let u=i[0]>=l?i[0]-(l-1):0;u<=i[0]+(l-1);++u)if(o[0]=u,i[1]>=l&&(o[1]=i[1]-l,s=Iv(t,o,0,r),s)||(o[1]=i[1]+l,s=Iv(t,o,0,r),s))return s}return r[0]=e[0],r[1]=e[1],null}function sut(t,e,n){const r=[];let a=0;return e.forEach((i,o)=>{const s=YT.newInstance();switch(s.setContentType(iut.INDICES),t){case lz.FIELD_ASSOCIATION_CELLS:s.setFieldType(sz.CELL);break;case lz.FIELD_ASSOCIATION_POINTS:s.setFieldType(sz.POINT);break;default:Yre("Unknown field association")}s.getProperties().propID=i.info.propID;const l=n.webGPURenderer.getPropFromID(i.info.propID);s.getProperties().prop=l.getRenderable(),s.getProperties().compositeID=i.info.compositeID,s.getProperties().pixelCount=i.pixelCount,n.captureZValues&&(s.getProperties().displayPosition=[i.info.displayPosition[0],i.info.displayPosition[1],i.info.zValue],s.getProperties().worldPosition=n.webGPURenderWindow.displayToWorld(i.info.displayPosition[0],i.info.displayPosition[1],i.info.zValue,n.renderer)),s.setSelectionList(i.attributeIDs),r[a]=s,a++}),r}function lut(t,e,n,r,a){const i=Math.floor(e),o=Math.floor(n),s=Math.floor(r),l=Math.floor(a),u=new Map,c=[0,0];for(let f=o;f<=l;f++)for(let d=i;d<=s;d++){const p=Iv(t,[d,f],0,c);if(p){const v=out(p);if(!u.has(v))u.set(v,{info:p,pixelCount:1,attributeIDs:[p.attributeID]});else{const g=u.get(v);g.pixelCount++,t.captureZValues&&p.zValue<g.info.zValue&&(g.info=p),g.attributeIDs.indexOf(p.attributeID)===-1&&g.attributeIDs.push(p.attributeID)}}}return sut(t.fieldAssociation,u,t)}function uut(t,e){e.classHierarchy.push("vtkWebGPUHardwareSelector"),t.endSelection=()=>{e.WebGPURenderer.setSelector(null)},t.getSourceDataAsync=async n=>{if(!n||!e._WebGPURenderWindow)return Yre("Renderer and view must be set before calling Select."),!1;e._WebGPURenderWindow.getRenderable().preRender(),e._WebGPURenderWindow.getInitialized()||(e._WebGPURenderWindow.initialize(),await new Promise(h=>{e._WebGPURenderWindow.onInitialized(h)}));const r=e._WebGPURenderWindow.getViewNodeFor(n);if(!r)return!1;const a=r.getSuppressClear();r.setSuppressClear(!0),e._selectionPass.traverse(e._WebGPURenderWindow,r),r.setSuppressClear(a);const i=e._WebGPURenderWindow.getDevice(),o=e._selectionPass.getColorTexture(),s=e._selectionPass.getDepthTexture(),l={area:[0,0,o.getWidth()-1,o.getHeight()-1],captureZValues:e.captureZValues,fieldAssociation:e.fieldAssociation,renderer:n,webGPURenderer:r,webGPURenderWindow:e._WebGPURenderWindow,width:o.getWidth(),height:o.getHeight()};l.colorBufferWidth=16*Math.floor((l.width+15)/16),l.colorBufferSizeInBytes=l.colorBufferWidth*l.height*4*4;const u=Qg.newInstance({label:"hardwareSelectColorBuffer"});u.setDevice(i),u.create(l.colorBufferSizeInBytes,GPUBufferUsage.MAP_READ|GPUBufferUsage.COPY_DST);const c=e._WebGPURenderWindow.getCommandEncoder();c.copyTextureToBuffer({texture:o.getHandle()},{buffer:u.getHandle(),bytesPerRow:16*l.colorBufferWidth,rowsPerImage:l.height},{width:l.width,height:l.height,depthOrArrayLayers:1});let f;e.captureZValues&&(l.zbufferBufferWidth=64*Math.floor((l.width+63)/64),f=Qg.newInstance({label:"hardwareSelectDepthBuffer"}),f.setDevice(i),l.zbufferSizeInBytes=l.height*l.zbufferBufferWidth*4,f.create(l.zbufferSizeInBytes,GPUBufferUsage.MAP_READ|GPUBufferUsage.COPY_DST),c.copyTextureToBuffer({texture:s.getHandle(),aspect:"depth-only"},{buffer:f.getHandle(),bytesPerRow:4*l.zbufferBufferWidth,rowsPerImage:l.height},{width:l.width,height:l.height,depthOrArrayLayers:1})),i.submitCommandEncoder(c);const d=u.mapAsync(GPUMapMode.READ);if(e.captureZValues){const h=f.mapAsync(GPUMapMode.READ);await Promise.all([d,h]),l.depthValues=new Float32Array(f.getMappedRange().slice()),f.unmap()}else await d;return l.colorValues=new Uint32Array(u.getMappedRange().slice()),u.unmap(),l.generateSelection=(h,p,v,g)=>lut(l,h,p,v,g),l}}const cut={};function Xre(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,cut,n),_re.extend(t,e,n),e._selectionPass=aut.newInstance(),J.setGet(t,e,["_WebGPURenderWindow"]),J.moveToProtected(t,e,["WebGPURenderWindow"]),uut(t,e)}const fut=J.newInstance(Xre,"vtkWebGPUHardwareSelector");var qre={newInstance:fut,extend:Xre};const{vtkErrorMacro:cz}=J,dut={position:"absolute",top:0,left:0,width:"100%",height:"100%"};function hut(t,e){e.classHierarchy.push("vtkWebGPURenderWindow"),t.getViewNodeFactory=()=>e.myFactory;const n=[0,0];function r(){e.renderable&&(e.size[0]!==n[0]||e.size[1]!==n[1])&&(n[0]=e.size[0],n[1]=e.size[1],e.canvas.setAttribute("width",e.size[0]),e.canvas.setAttribute("height",e.size[1]),t.recreateSwapChain()),e.viewStream&&e.viewStream.setSize(e.size[0],e.size[1]),e.canvas.style.display=e.useOffScreen?"none":"block",e.el&&(e.el.style.cursor=e.cursorVisibility?e.cursor:"none"),e.containerSize=null}t.onModified(r),t.recreateSwapChain=()=>{e.context&&(e.context.unconfigure(),e.presentationFormat=navigator.gpu.getPreferredCanvasFormat(e.adapter),e.context.configure({device:e.device.getHandle(),format:e.presentationFormat,alphaMode:"premultiplied",usage:GPUTextureUsage.RENDER_ATTACHMENT|GPUTextureUsage.COPY_DST,width:e.size[0],height:e.size[1]}),e._configured=!0)},t.getCurrentTexture=()=>e.context.getCurrentTexture(),t.buildPass=o=>{if(o){if(!e.renderable)return;t.prepareNodes(),t.addMissingNodes(e.renderable.getRenderersByReference()),t.removeUnusedNodes(),t.initialize()}else e.initialized&&(e._configured||t.recreateSwapChain(),e.commandEncoder=e.device.createCommandEncoder())},t.initialize=()=>{if(!e.initializing){if(e.initializing=!0,!navigator.gpu){cz("WebGPU is not enabled.");return}t.create3DContextAsync().then(()=>{e.initialized=!0,!e.deleted&&t.invokeInitialized()})}},t.setContainer=o=>{e.el&&e.el!==o&&(e.canvas.parentNode!==e.el&&cz("Error: canvas parent node does not match container"),e.el.removeChild(e.canvas),e.el.contains(e.bgImage)&&e.el.removeChild(e.bgImage)),e.el!==o&&(e.el=o,e.el&&(e.el.appendChild(e.canvas),e.useBackgroundImage&&e.el.appendChild(e.bgImage)),t.modified())},t.getContainer=()=>e.el,t.getContainerSize=()=>{if(!e.containerSize&&e.el){const{width:o,height:s}=e.el.getBoundingClientRect();e.containerSize=[o,s]}return e.containerSize||e.size},t.getFramebufferSize=()=>e.size,t.create3DContextAsync=async()=>{if(e.adapter=await navigator.gpu.requestAdapter({powerPreference:"high-performance"}),!e.deleted){if(e.device=eut.newInstance(),e.device.initialize(await e.adapter.requestDevice()),e.deleted){e.device=null;return}e.context=e.canvas.getContext("webgpu")}},t.releaseGraphicsResources=()=>{const o=Cc.newInstance();o.setCurrentOperation("Release"),o.traverse(t,null),e.adapter=null,e.device=null,e.context=null,e.initialized=!1,e.initializing=!1},t.setBackgroundImage=o=>{e.bgImage.src=o.src},t.setUseBackgroundImage=o=>{e.useBackgroundImage=o,e.useBackgroundImage&&!e.el.contains(e.bgImage)?e.el.appendChild(e.bgImage):!e.useBackgroundImage&&e.el.contains(e.bgImage)&&e.el.removeChild(e.bgImage)};async function a(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:e.imageFormat;const s=document.createElement("canvas"),l=s.getContext("2d");s.width=e.canvas.width,s.height=e.canvas.height;const u=await t.getPixelsAsync(),c=new ImageData(u.colorValues,u.width,u.height);l.putImageData(c,0,0);const f=e.canvas.getBoundingClientRect();e.renderable.getRenderers().forEach(v=>{v.getViewProps().forEach(y=>{if(y.getContainer){const S=y.getContainer().getElementsByTagName("canvas");for(let w=0;w<S.length;w++){const C=S[w],_=C.getBoundingClientRect(),x=_.x-f.x,T=_.y-f.y;l.drawImage(C,x,T)}}})});const p=s.toDataURL(o);s.remove(),t.invokeImageReady(p)}t.captureNextImage=function(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"image/png",{resetCamera:s=!1,size:l=null,scale:u=1}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(e.deleted)return null;e.imageFormat=o;const c=e.notifyStartCaptureImage;return e.notifyStartCaptureImage=!0,e._screenshot={size:l||u!==1?l||e.size.map(f=>f*u):null},new Promise((f,d)=>{const h=t.onImageReady(p=>{if(e._screenshot.size===null)e.notifyStartCaptureImage=c,h.unsubscribe(),e._screenshot.placeHolder&&(e.size=e._screenshot.originalSize,t.modified(),e._screenshot.cameras&&e._screenshot.cameras.forEach(v=>{let{restoreParamsFn:g,arg:y}=v;return g(y)}),t.traverseAllPasses(),e.el.removeChild(e._screenshot.placeHolder),e._screenshot.placeHolder.remove(),e._screenshot=null),f(p);else{const v=document.createElement("img");if(v.style=dut,v.src=p,e._screenshot.placeHolder=e.el.appendChild(v),e.canvas.style.display="none",e._screenshot.originalSize=e.size,e.size=e._screenshot.size,e._screenshot.size=null,t.modified(),s){const g=s!==!0;e._screenshot.cameras=e.renderable.getRenderers().map(y=>{const m=y.getActiveCamera(),S=m.get("focalPoint","position","parallelScale");return{resetCameraArgs:g?{renderer:y}:void 0,resetCameraFn:g?s:y.resetCamera,restoreParamsFn:m.set,arg:JSON.parse(JSON.stringify(S))}}),e._screenshot.cameras.forEach(y=>{let{resetCameraFn:m,resetCameraArgs:S}=y;return m(S)})}t.traverseAllPasses()}})})},t.traverseAllPasses=()=>{if(!e.deleted)if(e.initialized){if(e.renderPasses)for(let o=0;o<e.renderPasses.length;++o)e.renderPasses[o].traverse(t,null);e.commandEncoder&&(e.device.submitCommandEncoder(e.commandEncoder),e.commandEncoder=null,e.notifyStartCaptureImage&&e.device.onSubmittedWorkDone().then(()=>{a()}))}else{t.initialize();const o=t.onInitialized(()=>{o.unsubscribe(),t.traverseAllPasses()})}},t.setViewStream=o=>{if(e.viewStream===o)return!1;if(e.subscription&&(e.subscription.unsubscribe(),e.subscription=null),e.viewStream=o,e.viewStream){const s=e.renderable.getRenderers()[0];s.getBackgroundByReference()[3]=0,t.setUseBackgroundImage(!0),e.subscription=e.viewStream.onImageReady(l=>t.setBackgroundImage(l.image)),e.viewStream.setSize(e.size[0],e.size[1]),e.viewStream.invalidateCache(),e.viewStream.render(),t.modified()}return!0},t.getUniquePropID=()=>e.nextPropID++,t.getPropFromID=o=>{for(let s=0;s<e.children.length;s++){const l=e.children[s].getPropFromID(o);if(l!==null)return l}return null},t.getPixelsAsync=async()=>{const o=e.device,s=e.renderPasses[0].getOpaquePass().getColorTexture(),l={width:s.getWidth(),height:s.getHeight()};l.colorBufferWidth=32*Math.floor((l.width+31)/32),l.colorBufferSizeInBytes=l.colorBufferWidth*l.height*8;const u=Qg.newInstance();u.setDevice(o),u.create(l.colorBufferSizeInBytes,GPUBufferUsage.MAP_READ|GPUBufferUsage.COPY_DST);const c=e.device.createCommandEncoder();c.copyTextureToBuffer({texture:s.getHandle()},{buffer:u.getHandle(),bytesPerRow:8*l.colorBufferWidth,rowsPerImage:l.height},{width:l.width,height:l.height,depthOrArrayLayers:1}),o.submitCommandEncoder(c),await u.mapAsync(GPUMapMode.READ),l.colorValues=new Uint16Array(u.getMappedRange().slice()),u.unmap();const d=new Uint8ClampedArray(l.height*l.width*4);for(let h=0;h<l.height;h++)for(let p=0;p<l.width;p++){const v=(h*l.width+p)*4,g=(h*l.colorBufferWidth+p)*4;d[v]=255*nl.fromHalf(l.colorValues[g]),d[v+1]=255*nl.fromHalf(l.colorValues[g+1]),d[v+2]=255*nl.fromHalf(l.colorValues[g+2]),d[v+3]=255*nl.fromHalf(l.colorValues[g+3])}return l.colorValues=d,l},t.createSelector=()=>{const o=qre.newInstance();return o.setWebGPURenderWindow(t),o};const i=t.setSize;t.setSize=(o,s)=>{const l=i(o,s);return l&&t.invokeWindowResizeEvent({width:o,height:s}),l},t.delete=J.chain(t.delete,t.setViewStream)}const put={initialized:!1,context:null,adapter:null,device:null,canvas:null,cursorVisibility:!0,cursor:"pointer",containerSize:null,renderPasses:[],notifyStartCaptureImage:!1,imageFormat:"image/png",useOffScreen:!1,useBackgroundImage:!1,nextPropID:1,xrSupported:!1,presentationFormat:null};function vut(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,put,n),e.canvas=document.createElement("canvas"),e.canvas.style.width="100%",e.bgImage=new Image,e.bgImage.style.position="absolute",e.bgImage.style.left="0",e.bgImage.style.top="0",e.bgImage.style.width="100%",e.bgImage.style.height="100%",e.bgImage.style.zIndex="-1",Ire.extend(t,e,n),e.myFactory=aat.newInstance(),e.myFactory.registerOverride("vtkRenderWindow",Zre),e.renderPasses[0]=Wlt.newInstance(),e.selector||(e.selector=qre.newInstance(),e.selector.setWebGPURenderWindow(t)),J.event(t,e,"imageReady"),J.event(t,e,"initialized"),J.get(t,e,["commandEncoder","device","presentationFormat","useBackgroundImage","xrSupported"]),J.setGet(t,e,["initialized","context","canvas","device","renderPasses","notifyStartCaptureImage","cursor","useOffScreen"]),J.setGetArray(t,e,["size"],2),J.event(t,e,"windowResizeEvent"),hut(t,e)}const Zre=J.newInstance(vut,"vtkWebGPURenderWindow");PN("WebGPU",Zre);const gut=yre.extractURLParameters(),yut={margin:"0",padding:"0",position:"absolute",top:"0",left:"0",width:"100%",height:"100%",overflow:"hidden"},mut={position:"absolute",left:"25px",top:"25px",backgroundColor:"white",borderRadius:"5px",listStyle:"none",padding:"5px 10px",margin:"0",display:"block",border:"solid 1px black",maxWidth:"calc(100% - 70px)",maxHeight:"calc(100% - 60px)",overflow:"auto"};function fz(t,e){Object.keys(e).forEach(n=>{t.style[n]=e[n]})}function but(t,e){e.classHierarchy.push("vtkFullScreenRenderWindow");const n=document.querySelector("body");e.rootContainer||(e.rootContainer=n),e.container||(e.container=document.createElement("div"),fz(e.container,e.containerStyle||yut),e.rootContainer.appendChild(e.container)),e.rootContainer===n&&(document.documentElement.style.height="100%",n.style.height="100%",n.style.padding="0",n.style.margin="0"),e.renderWindow=cre.newInstance(),e.renderer=$N.newInstance(),e.renderWindow.addRenderer(e.renderer),e.apiSpecificRenderWindow=e.renderWindow.newAPISpecificView(gut.viewAPI??e.defaultViewAPI),e.apiSpecificRenderWindow.setContainer(e.container),e.renderWindow.addView(e.apiSpecificRenderWindow),e.interactor=zN.newInstance(),e.interactor.setInteractorStyle(gre.newInstance()),e.interactor.setView(e.apiSpecificRenderWindow),e.interactor.initialize(),e.interactor.bindEvents(e.container),t.setBackground=e.renderer.setBackground,t.removeController=()=>{const r=e.controlContainer;r&&r.parentNode.removeChild(r)},t.setControllerVisibility=r=>{e.controllerVisibility=r,e.controlContainer&&(r?e.controlContainer.style.display="block":e.controlContainer.style.display="none")},t.toggleControllerVisibility=()=>{t.setControllerVisibility(!e.controllerVisibility)},t.addController=r=>{e.controlContainer=document.createElement("div"),fz(e.controlContainer,e.controlPanelStyle||mut),e.rootContainer.appendChild(e.controlContainer),e.controlContainer.innerHTML=r,t.setControllerVisibility(e.controllerVisibility),e.rootContainer.addEventListener("keypress",a=>{String.fromCharCode(a.charCode)==="c"&&t.toggleControllerVisibility()})},t.setBackground(...e.background),t.addRepresentation=r=>{r.getActors().forEach(a=>{e.renderer.addActor(a)})},t.removeRepresentation=r=>{r.getActors().forEach(a=>e.renderer.removeActor(a))},t.delete=J.chain(t.setContainer,e.apiSpecificRenderWindow.delete,t.delete),t.resize=()=>{const r=e.container.getBoundingClientRect(),a=window.devicePixelRatio||1;e.apiSpecificRenderWindow.setSize(Math.floor(r.width*a),Math.floor(r.height*a)),e.resizeCallback&&e.resizeCallback(r),e.renderWindow.render()},t.setResizeCallback=r=>{e.resizeCallback=r,t.resize()},e.listenWindowResize&&window.addEventListener("resize",t.resize),t.resize()}const Sut={background:[.32,.34,.43],containerStyle:null,controlPanelStyle:null,listenWindowResize:!0,resizeCallback:null,controllerVisibility:!0};function Qre(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Sut,n),J.obj(t,e),J.get(t,e,["renderWindow","renderer","apiSpecificRenderWindow","interactor","rootContainer","container","controlContainer"]),but(t,e)}const wut=J.newInstance(Qre);var XFt={newInstance:wut,extend:Qre};const xut=yre.extractURLParameters();function _ut(t,e){const n=t.invokeResize;delete t.invokeResize,e.renderWindow=cre.newInstance(),e.renderer=$N.newInstance(),e.renderWindow.addRenderer(e.renderer),e._apiSpecificRenderWindow=e.renderWindow.newAPISpecificView(xut.viewAPI??e.defaultViewAPI),e.renderWindow.addView(e._apiSpecificRenderWindow),e.interactor=zN.newInstance(),e.interactor.setInteractorStyle(gre.newInstance()),e.interactor.setView(e._apiSpecificRenderWindow),e.interactor.initialize(),t.setBackground=e.renderer.setBackground,t.setBackground(...e.background),t.resize=()=>{if(e.container){const r=e.container.getBoundingClientRect(),a=window.devicePixelRatio||1;e._apiSpecificRenderWindow.setSize(Math.floor(r.width*a),Math.floor(r.height*a)),n(),e.renderWindow.render()}},t.setContainer=r=>{e.container&&e.interactor.unbindEvents(e.container),e.container=r,e._apiSpecificRenderWindow.setContainer(e.container),e.container&&e.interactor.bindEvents(e.container)},t.delete=J.chain(t.setContainer,e._apiSpecificRenderWindow.delete,t.delete),e.listenWindowResize&&window.addEventListener("resize",t.resize),t.resize()}const Cut={background:[.32,.34,.43],listenWindowResize:!0,container:null};function Jre(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Cut,n),J.obj(t,e),J.get(t,e,["renderWindow","renderer","_apiSpecificRenderWindow","interactor","container"]),J.moveToProtected(t,e,["_apiSpecificRenderWindow"]),J.event(t,e,"resize"),_ut(t,e)}const Tut=J.newInstance(Jre);var XT={newInstance:Tut,extend:Jre};const Eut={RGB:0,HSV:1,LAB:2,DIVERGING:3},Mut={LINEAR:0,LOG10:1};var eae={ColorSpace:Eut,Scale:Mut};const{ColorSpace:Gs,Scale:tae}=eae,{ScalarMappingTarget:xw}=WT,{vtkDebugMacro:Dut,vtkErrorMacro:Lu,vtkWarningMacro:Aut}=J;function dz(t,e){const n=t[0],r=t[1],a=t[2],i=Math.sqrt(n*n+r*r+a*a),o=i>.001?Math.acos(n/i):0,s=o>.001?Math.atan2(a,r):0;e[0]=i,e[1]=o,e[2]=s}function kut(t,e){const n=t[0],r=t[1],a=t[2];e[0]=n*Math.cos(r),e[1]=n*Math.sin(r)*Math.cos(a),e[2]=n*Math.sin(r)*Math.sin(a)}function hz(t,e){if(t[0]>=e-.1)return t[2];const n=t[1]*Math.sqrt(e*e-t[0]*t[0])/(t[0]*Math.sin(t[1]));return t[2]>-.3*Math.PI?t[2]+n:t[2]-n}function Rut(t,e){let n=t-e;for(n<0&&(n=-n);n>=2*Math.PI;)n-=2*Math.PI;return n>Math.PI&&(n=2*Math.PI-n),n}function pz(t,e,n,r){const a=[],i=[];$h(e,a),$h(n,i);const o=[],s=[];dz(a,o),dz(i,s);let l=t;if(o[1]>.05&&s[1]>.05&&Rut(o[2],s[2])>.33*Math.PI){let f=Math.max(o[0],s[0]);f=Math.max(88,f),t<.5?(s[0]=f,s[1]=0,s[2]=0,l*=2):(o[0]=f,o[1]=0,o[2]=0,l=2*l-1)}o[1]<.05&&s[1]>.05?o[2]=hz(s,o[0]):s[1]<.05&&o[1]>.05&&(s[2]=hz(o,s[0]));const u=[];u[0]=(1-l)*o[0]+l*s[0],u[1]=(1-l)*o[1]+l*s[1],u[2]=(1-l)*o[2]+l*s[2];const c=[];kut(u,c),O2(c,r)}function Lut(t,e){e.classHierarchy.push("vtkColorTransferFunction"),t.getSize=()=>e.nodes.length,t.addRGBPoint=(n,r,a,i)=>t.addRGBPointLong(n,r,a,i,.5,0),t.addRGBPointLong=function(n,r,a,i){let o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:.5,s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0;if(o<0||o>1)return Lu("Midpoint outside range [0.0, 1.0]"),-1;if(s<0||s>1)return Lu("Sharpness outside range [0.0, 1.0]"),-1;e.allowDuplicateScalars||t.removePoint(n);const l={x:n,r,g:a,b:i,midpoint:o,sharpness:s};e.nodes.push(l),t.sortAndUpdateRange();let u=0;for(;u<e.nodes.length&&e.nodes[u].x!==n;u++);return u<e.nodes.length?u:-1},t.addHSVPoint=(n,r,a,i)=>t.addHSVPointLong(n,r,a,i,.5,0),t.addHSVPointLong=function(n,r,a,i){let o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:.5,s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0;const l=[];return xh([r,a,i],l),t.addRGBPoint(n,l[0],l[1],l[2],o,s)},t.setNodes=n=>{if(e.nodes!==n){const r=JSON.stringify(e.nodes);e.nodes=n;const a=JSON.stringify(e.nodes);if(t.sortAndUpdateRange()||r!==a)return t.modified(),!0}return!1},t.sortAndUpdateRange=()=>{const n=JSON.stringify(e.nodes);e.nodes.sort((i,o)=>i.x-o.x);const r=JSON.stringify(e.nodes),a=t.updateRange();return!a&&n!==r?(t.modified(),!0):a},t.updateRange=()=>{const n=[2];n[0]=e.mappingRange[0],n[1]=e.mappingRange[1];const r=e.nodes.length;return r?(e.mappingRange[0]=e.nodes[0].x,e.mappingRange[1]=e.nodes[r-1].x):(e.mappingRange[0]=0,e.mappingRange[1]=0),n[0]===e.mappingRange[0]&&n[1]===e.mappingRange[1]?!1:(t.modified(),!0)},t.removePoint=n=>{let r=0;for(;r<e.nodes.length&&e.nodes[r].x!==n;r++);const a=r;if(r>=e.nodes.length)return-1;let i=!1;return e.nodes.splice(r,1),(r===0||r===e.nodes.length)&&(i=t.updateRange()),i||t.modified(),a},t.movePoint=(n,r)=>{if(n!==r){t.removePoint(r);for(let a=0;a<e.nodes.length;a++)if(e.nodes[a].x===n){e.nodes[a].x=r,t.sortAndUpdateRange();break}}},t.removeAllPoints=()=>{e.nodes=[],t.sortAndUpdateRange()},t.addRGBSegment=(n,r,a,i,o,s,l,u)=>{t.sortAndUpdateRange();for(let c=0;c<e.nodes.length;)e.nodes[c].x>=n&&e.nodes[c].x<=o?e.nodes.splice(c,1):c++;t.addRGBPointLong(n,r,a,i,.5,0),t.addRGBPointLong(o,s,l,u,.5,0),t.modified()},t.addHSVSegment=(n,r,a,i,o,s,l,u)=>{const c=[r,a,i],f=[s,l,u],d=[],h=[];xh(c,d),xh(f,h),t.addRGBSegment(n,d[0],d[1],d[2],o,h[0],h[1],h[2])},t.mapValue=n=>{const r=[];return t.getColor(n,r),[Math.floor(255*r[0]+.5),Math.floor(255*r[1]+.5),Math.floor(255*r[2]+.5),255]},t.getColor=(n,r)=>{if(e.indexedLookup){const a=t.getSize(),i=t.getAnnotatedValueIndexInternal(n);if(i<0||a===0){const o=t.getNanColorByReference();r[0]=o[0],r[1]=o[1],r[2]=o[2]}else{const o=[];t.getNodeValue(i%a,o),r[0]=o[1],r[1]=o[2],r[2]=o[3]}return}t.getTable(n,n,1,r)},t.getRedValue=n=>{const r=[];return t.getColor(n,r),r[0]},t.getGreenValue=n=>{const r=[];return t.getColor(n,r),r[1]},t.getBlueValue=n=>{const r=[];return t.getColor(n,r),r[2]},t.getTable=(n,r,a,i)=>{const o=Number(n),s=Number(r);if(V2(o)||V2(s)){for(let M=0;M<a;M++)i[M*3+0]=e.nanColor[0],i[M*3+1]=e.nanColor[1],i[M*3+2]=e.nanColor[2];return}let l=0;const u=e.nodes.length;let c=0,f=0,d=0;u!==0&&(c=e.nodes[u-1].r,f=e.nodes[u-1].g,d=e.nodes[u-1].b);let h=0,p=0,v=0;const g=[0,0,0],y=[0,0,0];let m=0,S=0;const w=[];let C=e.scale===tae.LOG10;C&&(C=e.mappingRange[0]>0);let _=0,x=0,T=0;C&&(_=Math.log10(o),x=Math.log10(s));for(let M=0;M<a;M++){const E=3*M;if(a>1?C?(T=_+M/(a-1)*(x-_),h=10**T):h=o+M/(a-1)*(s-o):C?(T=.5*(_+x),h=10**T):h=.5*(o+s),e.discretize){const A=e.mappingRange;if(h>=A[0]&&h<=A[1]){const k=e.numberOfValues,L=A[1]-A[0];if(k<=1)h=A[0]+L/2;else{const I=(h-A[0])/L,P=kee(k*I);h=A[0]+P/(k-1)*L}}}for(;l<u&&h>e.nodes[l].x;)l++,l<u&&(p=e.nodes[l-1].x,v=e.nodes[l].x,C&&(p=Math.log10(p),v=Math.log10(v)),g[0]=e.nodes[l-1].r,y[0]=e.nodes[l].r,g[1]=e.nodes[l-1].g,y[1]=e.nodes[l].g,g[2]=e.nodes[l-1].b,y[2]=e.nodes[l].b,m=e.nodes[l-1].midpoint,S=e.nodes[l-1].sharpness,m<1e-5&&(m=1e-5),m>.99999&&(m=.99999));if(h>e.mappingRange[1])i[E]=0,i[E+1]=0,i[E+2]=0,e.clamping&&(t.getUseAboveRangeColor()?(i[E]=e.aboveRangeColor[0],i[E+1]=e.aboveRangeColor[1],i[E+2]=e.aboveRangeColor[2]):(i[E]=c,i[E+1]=f,i[E+2]=d));else if(h<e.mappingRange[0]||Yee(h)&&h<0)i[E]=0,i[E+1]=0,i[E+2]=0,e.clamping&&(t.getUseBelowRangeColor()?(i[E]=e.belowRangeColor[0],i[E+1]=e.belowRangeColor[1],i[E+2]=e.belowRangeColor[2]):u>0&&(i[E]=e.nodes[0].r,i[E+1]=e.nodes[0].g,i[E+2]=e.nodes[0].b));else if(l===0&&(Math.abs(h-o)<1e-6||e.discretize))u>0?(i[E]=e.nodes[0].r,i[E+1]=e.nodes[0].g,i[E+2]=e.nodes[0].b):(i[E]=0,i[E+1]=0,i[E+2]=0);else{let A=0;if(C?A=(T-p)/(v-p):A=(h-p)/(v-p),A<m?A=.5*A/m:A=.5+.5*(A-m)/(1-m),S>.99)if(A<.5){i[E]=g[0],i[E+1]=g[1],i[E+2]=g[2];continue}else{i[E]=y[0],i[E+1]=y[1],i[E+2]=y[2];continue}if(S<.01){if(e.colorSpace===Gs.RGB)i[E]=(1-A)*g[0]+A*y[0],i[E+1]=(1-A)*g[1]+A*y[1],i[E+2]=(1-A)*g[2]+A*y[2];else if(e.colorSpace===Gs.HSV){const z=[],K=[];Jy(g,z),Jy(y,K),e.hSVWrap&&(z[0]-K[0]>.5||K[0]-z[0]>.5)&&(z[0]>K[0]?z[0]-=1:K[0]-=1);const Z=[];Z[0]=(1-A)*z[0]+A*K[0],Z[0]<0&&(Z[0]+=1),Z[1]=(1-A)*z[1]+A*K[1],Z[2]=(1-A)*z[2]+A*K[2],xh(Z,w),i[E]=w[0],i[E+1]=w[1],i[E+2]=w[2]}else if(e.colorSpace===Gs.LAB){const z=[],K=[];$h(g,z),$h(y,K);const Z=[];Z[0]=(1-A)*z[0]+A*K[0],Z[1]=(1-A)*z[1]+A*K[1],Z[2]=(1-A)*z[2]+A*K[2],O2(Z,w),i[E]=w[0],i[E+1]=w[1],i[E+2]=w[2]}else e.colorSpace===Gs.DIVERGING?(pz(A,g,y,w),i[E]=w[0],i[E+1]=w[1],i[E+2]=w[2]):Lu("ColorSpace set to invalid value.",e.colorSpace);continue}A<.5?A=.5*(A*2)**(1+10*S):A>.5&&(A=1-.5*((1-A)*2)**(1+10*S));const k=A*A,L=k*A,I=2*L-3*k+1,P=-2*L+3*k,F=L-2*k+A,$=L-k;let W,V;if(e.colorSpace===Gs.RGB)for(let z=0;z<3;z++)W=y[z]-g[z],V=(1-S)*W,i[E+z]=I*g[z]+P*y[z]+F*V+$*V;else if(e.colorSpace===Gs.HSV){const z=[],K=[];Jy(g,z),Jy(y,K),e.hSVWrap&&(z[0]-K[0]>.5||K[0]-z[0]>.5)&&(z[0]>K[0]?z[0]-=1:K[0]-=1);const Z=[];for(let oe=0;oe<3;oe++)W=K[oe]-z[oe],V=(1-S)*W,Z[oe]=I*z[oe]+P*K[oe]+F*V+$*V,oe===0&&Z[oe]<0&&(Z[oe]+=1);xh(Z,w),i[E]=w[0],i[E+1]=w[1],i[E+2]=w[2]}else if(e.colorSpace===Gs.LAB){const z=[],K=[];$h(g,z),$h(y,K);const Z=[];for(let oe=0;oe<3;oe++)W=K[oe]-z[oe],V=(1-S)*W,Z[oe]=I*z[oe]+P*K[oe]+F*V+$*V;O2(Z,w),i[E]=w[0],i[E+1]=w[1],i[E+2]=w[2]}else e.colorSpace===Gs.DIVERGING?(pz(A,g,y,w),i[E]=w[0],i[E+1]=w[1],i[E+2]=w[2]):Lu("ColorSpace set to invalid value.");for(let z=0;z<3;z++)i[E+z]=i[E+z]<0?0:i[E+z],i[E+z]=i[E+z]>1?1:i[E+z]}}},t.getUint8Table=function(n,r,a){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(t.getMTime()<=e.buildTime&&e.tableSize===a&&e.tableWithAlpha!==i)return e.table;if(e.nodes.length===0)return Lu("Attempting to lookup a value with no points in the function"),e.table;const o=i?4:3;(e.tableSize!==a||e.tableWithAlpha!==i)&&(e.table=new Uint8Array(a*o),e.tableSize=a,e.tableWithAlpha=i);const s=[];t.getTable(n,r,a,s);for(let l=0;l<a;l++)e.table[l*o+0]=Math.floor(s[l*3+0]*255+.5),e.table[l*o+1]=Math.floor(s[l*3+1]*255+.5),e.table[l*o+2]=Math.floor(s[l*3+2]*255+.5),i&&(e.table[l*o+3]=255);return e.buildTime.modified(),e.table},t.buildFunctionFromArray=n=>{t.removeAllPoints();const r=n.getNumberOfComponents();for(let a=0;a<n.getNumberOfTuples();a++)switch(r){case 3:{e.nodes.push({x:a,r:n.getComponent(a,0),g:n.getComponent(a,1),b:n.getComponent(a,2),midpoint:.5,sharpness:0});break}case 4:{e.nodes.push({x:n.getComponent(a,0),r:n.getComponent(a,1),g:n.getComponent(a,2),b:n.getComponent(a,3),midpoint:.5,sharpness:0});break}case 5:{e.nodes.push({x:a,r:n.getComponent(a,0),g:n.getComponent(a,1),b:n.getComponent(a,2),midpoint:n.getComponent(a,4),sharpness:n.getComponent(a,5)});break}case 6:{e.nodes.push({x:n.getComponent(a,0),r:n.getComponent(a,1),g:n.getComponent(a,2),b:n.getComponent(a,3),midpoint:n.getComponent(a,4),sharpness:n.getComponent(a,5)});break}}t.sortAndUpdateRange()},t.buildFunctionFromTable=(n,r,a,i)=>{let o=0;t.removeAllPoints(),a>1&&(o=(r-n)/(a-1));for(let s=0;s<a;s++){const l={x:n+o*s,r:i[s*3],g:i[s*3+1],b:i[s*3+2],sharpness:0,midpoint:.5};e.nodes.push(l)}t.sortAndUpdateRange()},t.getNodeValue=(n,r)=>n<0||n>=e.nodes.length?(Lu("Index out of range!"),-1):(r[0]=e.nodes[n].x,r[1]=e.nodes[n].r,r[2]=e.nodes[n].g,r[3]=e.nodes[n].b,r[4]=e.nodes[n].midpoint,r[5]=e.nodes[n].sharpness,1),t.setNodeValue=(n,r)=>{if(n<0||n>=e.nodes.length)return Lu("Index out of range!"),-1;const a=e.nodes[n].x;return e.nodes[n].x=r[0],e.nodes[n].r=r[1],e.nodes[n].g=r[2],e.nodes[n].b=r[3],e.nodes[n].midpoint=r[4],e.nodes[n].sharpness=r[5],a!==r[0]?t.sortAndUpdateRange():t.modified(),1},t.getNumberOfAvailableColors=()=>e.indexedLookup&&t.getSize()?t.getSize():e.tableSize?e.tableSize:16777216,t.getIndexedColor=(n,r)=>{const a=t.getSize();if(a>0&&n>=0){const o=[];t.getNodeValue(n%a,o);for(let s=0;s<3;++s)r[s]=o[s+1];r[3]=1;return}const i=t.getNanColorByReference();r[0]=i[0],r[1]=i[1],r[2]=i[2],r[3]=1},t.fillFromDataPointer=(n,r)=>{if(!(n<=0||!r)){t.removeAllPoints();for(let a=0;a<n;a++)t.addRGBPoint(r[a*4],r[a*4+1],r[a*4+2],r[a*4+3])}},t.setMappingRange=(n,r)=>{const a=[n,r],i=t.getRange();if(i[1]===a[1]&&i[0]===a[0])return;if(a[1]===a[0]){Lu("attempt to set zero width color range");return}const o=(a[1]-a[0])/(i[1]-i[0]),s=a[0]-i[0]*o;for(let l=0;l<e.nodes.length;++l)e.nodes[l].x=e.nodes[l].x*o+s;e.mappingRange[0]=a[0],e.mappingRange[1]=a[1],t.modified()},t.adjustRange=n=>{const r=t.getRange(),a=[];r[0]<n[0]?(t.getColor(n[0],a),t.addRGBPoint(n[0],a[0],a[1],a[2])):(t.getColor(r[0],a),t.addRGBPoint(n[0],a[0],a[1],a[2])),r[1]>n[1]?(t.getColor(n[1],a),t.addRGBPoint(n[1],a[0],a[1],a[2])):(t.getColor(r[1],a),t.addRGBPoint(n[1],a[0],a[1],a[2])),t.sortAndUpdateRange();for(let i=0;i<e.nodes.length;)e.nodes[i].x>=n[0]&&e.nodes[i].x<=n[1]?e.nodes.splice(i,1):++i;return 1},t.estimateMinNumberOfSamples=(n,r)=>{const a=t.findMinimumXDistance();return Math.ceil((r-n)/a)},t.findMinimumXDistance=()=>{if(e.nodes.length<2)return-1;let n=Number.MAX_VALUE;for(let r=0;r<e.nodes.length-1;r++){const a=e.nodes[r+1].x-e.nodes[r].x;a<n&&(n=a)}return n},t.mapScalarsThroughTable=(n,r,a,i)=>{if(t.getSize()===0){Dut("Transfer Function Has No Points!");return}e.indexedLookup?t.mapDataIndexed(n,r,a,i):t.mapData(n,r,a,i)},t.mapData=(n,r,a,i)=>{if(t.getSize()===0){Aut("Transfer Function Has No Points!");return}const o=Math.floor(t.getAlpha()*255+.5),s=n.getNumberOfTuples(),l=n.getNumberOfComponents(),u=r.getData(),c=n.getData(),f=[];if(a===xw.RGBA)for(let d=0;d<s;d++){const h=c[d*l+i];t.getColor(h,f),u[d*4]=Math.floor(f[0]*255+.5),u[d*4+1]=Math.floor(f[1]*255+.5),u[d*4+2]=Math.floor(f[2]*255+.5),u[d*4+3]=o}if(a===xw.RGB)for(let d=0;d<s;d++){const h=c[d*l+i];t.getColor(h,f),u[d*3]=Math.floor(f[0]*255+.5),u[d*3+1]=Math.floor(f[1]*255+.5),u[d*3+2]=Math.floor(f[2]*255+.5)}if(a===xw.LUMINANCE)for(let d=0;d<s;d++){const h=c[d*l+i];t.getColor(h,f),u[d]=Math.floor(f[0]*76.5+f[1]*150.45+f[2]*28.05+.5)}if(a===xw.LUMINANCE_ALPHA)for(let d=0;d<s;d++){const h=c[d*l+i];t.getColor(h,f),u[d*2]=Math.floor(f[0]*76.5+f[1]*150.45+f[2]*28.05+.5),u[d*2+1]=o}},t.applyColorMap=n=>{const r=JSON.stringify(e.colorSpace);n.ColorSpace&&(e.colorSpace=Gs[n.ColorSpace.toUpperCase()],e.colorSpace===void 0&&(Lu(`ColorSpace ${n.ColorSpace} not supported, using RGB instead`),e.colorSpace=Gs.RGB));let a=r!==JSON.stringify(e.colorSpace);const i=a||JSON.stringify(e.nanColor);if(n.NanColor)for(e.nanColor=[].concat(n.NanColor);e.nanColor.length<4;)e.nanColor.push(1);a=a||i!==JSON.stringify(e.nanColor);const o=a||JSON.stringify(e.nodes);if(n.RGBPoints){const u=n.RGBPoints.length;e.nodes=[];const c=.5,f=0;for(let d=0;d<u;d+=4)e.nodes.push({x:n.RGBPoints[d],r:n.RGBPoints[d+1],g:n.RGBPoints[d+2],b:n.RGBPoints[d+3],midpoint:c,sharpness:f})}const s=t.sortAndUpdateRange(),l=!s&&(a||o!==JSON.stringify(e.nodes));return l&&t.modified(),s||l}}const Out={clamping:!0,colorSpace:Gs.RGB,hSVWrap:!0,scale:tae.LINEAR,nanColor:null,belowRangeColor:null,aboveRangeColor:null,useAboveRangeColor:!1,useBelowRangeColor:!1,allowDuplicateScalars:!1,table:null,tableSize:0,buildTime:null,nodes:null,discretize:!1,numberOfValues:256};function nae(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Out,n),WT.extend(t,e,n),e.table=[],e.nodes=[],e.nanColor=[.5,0,0,1],e.belowRangeColor=[0,0,0,1],e.aboveRangeColor=[1,1,1,1],e.buildTime={},J.obj(e.buildTime),J.get(t,e,["buildTime","mappingRange"]),J.setGet(t,e,["useAboveRangeColor","useBelowRangeColor","colorSpace","discretize","numberOfValues"]),J.setArray(t,e,["nanColor","belowRangeColor","aboveRangeColor"],4),J.getArray(t,e,["nanColor","belowRangeColor","aboveRangeColor"]),Lut(t,e)}const Vut=J.newInstance(nae,"vtkColorTransferFunction");var WN={newInstance:Vut,extend:nae,...eae};function Nut(t,e){e.classHierarchy.push("vtkSphereSource"),t.requestData=(n,r)=>{if(e.deleted)return;let a=r[0];const i=a?a.getPoints().getDataType():e.pointType;a=$a.newInstance();let o=0,{thetaResolution:s}=e,l=e.startTheta<e.endTheta?e.startTheta:e.endTheta;l*=Math.PI/180;let u=e.endTheta>e.startTheta?e.endTheta:e.startTheta;u*=Math.PI/180;let c=e.startPhi<e.endPhi?e.startPhi:e.endPhi;c*=Math.PI/180;let f=e.endPhi>e.startPhi?e.endPhi:e.startPhi;f*=Math.PI/180,Math.abs(l-u)<2*Math.PI&&++s;const d=(u-l)/e.thetaResolution,h=e.startPhi<=0?1:0,p=e.phiResolution+(e.endPhi>=180?-1:0),v=e.phiResolution*s+2,g=e.phiResolution*2*e.thetaResolution;let y=0,m=J.newTypedArray(i,v*3),S=new Float32Array(v*3),w=0,C=new Uint32Array(g*5);e.startPhi<=0&&(m[y*3+0]=e.center[0],m[y*3+1]=e.center[1],m[y*3+2]=e.center[2]+e.radius,S[y*3+0]=0,S[y*3+1]=0,S[y*3+2]=1,y++,o++),e.endPhi>=180&&(m[y*3+0]=e.center[0],m[y*3+1]=e.center[1],m[y*3+2]=e.center[2]-e.radius,S[y*3+0]=0,S[y*3+1]=0,S[y*3+2]=-1,y++,o++);const _=e.phiResolution-o,x=(f-c)/(e.phiResolution-1);for(let E=0;E<s;E++){const A=l+E*d;for(let k=h;k<p;k++){const L=c+k*x,I=e.radius*Math.sin(L);S[y*3+0]=I*Math.cos(A),S[y*3+1]=I*Math.sin(A),S[y*3+2]=e.radius*Math.cos(L),m[y*3+0]=S[y*3+0]+e.center[0],m[y*3+1]=S[y*3+1]+e.center[1],m[y*3+2]=S[y*3+2]+e.center[2];let P=Math.sqrt(S[y*3+0]*S[y*3+0]+S[y*3+1]*S[y*3+1]+S[y*3+2]*S[y*3+2]);P=P===0?1:P,S[y*3+0]/=P,S[y*3+1]/=P,S[y*3+2]/=P,y++}}const T=_*s;if(Math.abs(l-u)<2*Math.PI&&--s,e.startPhi<=0)for(let E=0;E<s;E++)C[w++]=3,C[w++]=_*E+o,C[w++]=_*(E+1)%T+o,C[w++]=0;if(e.endPhi>=180){const E=_-1+o;for(let A=0;A<s;A++)C[w++]=3,C[w++]=_*A+E,C[w++]=o-1,C[w++]=_*(A+1)%T+E}for(let E=0;E<s;E++)for(let A=0;A<_-1;A++){const k=_*E+A+o,L=k+1,I=(_*(E+1)+A)%T+o+1;e.latLongTessellation?(C[w++]=4,C[w++]=k,C[w++]=L,C[w++]=I,C[w++]=I-1):(C[w++]=3,C[w++]=k,C[w++]=L,C[w++]=I,C[w++]=3,C[w++]=k,C[w++]=I,C[w++]=I-1)}m=m.subarray(0,y*3),a.getPoints().setData(m,3),S=S.subarray(0,y*3);const M=zn.newInstance({name:"Normals",values:S,numberOfComponents:3});a.getPointData().setNormals(M),C=C.subarray(0,w),a.getPolys().setData(C,1),r[0]=a}}const Iut={radius:.5,latLongTessellation:!1,thetaResolution:8,startTheta:0,endTheta:360,phiResolution:8,startPhi:0,endPhi:180,center:[0,0,0],pointType:"Float64Array"};function rae(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Iut,n),J.obj(t,e),J.setGet(t,e,["radius","latLongTessellation","thetaResolution","startTheta","endTheta","phiResolution","startPhi","endPhi"]),J.setGetArray(t,e,["center"],3),J.algo(t,e,0,1),Nut(t,e)}const But=J.newInstance(rae,"vtkSphereSource");var vD={newInstance:But,extend:rae};const{vtkWarningMacro:$ut}=J;function Put(t,e){e.classHierarchy.push("vtkLineSource"),t.requestData=(n,r)=>{if(e.deleted)return;const a=r[0],i=a?a.getPoints().getDataType():e.pointType,o=$a.newInstance(),s=[];if(iu(e.point2,e.point1,s),Ku(s)<=0){$ut("Zero-length line definition");return}const l=e.resolution,u=l+1,c=J.newTypedArray(i,u*3);o.getPoints().setData(c,3);const f=new Uint32Array(u+1);o.getLines().setData(f,1);let d=0,h=0;for(let p=0;p<l+1;p++)h=p/l,c[d*3]=e.point1[0]+h*s[0],c[d*3+1]=e.point1[1]+h*s[1],c[d*3+2]=e.point1[2]+h*s[2],d++;d=0,f[0]=u;for(let p=0;p<u;p++)f[p+1]=p;r[0]=o}}const Fut={resolution:10,point1:[-1,0,0],point2:[1,0,0],pointType:"Float64Array"};function aae(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Fut,n),J.obj(t,e),J.setGet(t,e,["resolution"]),J.setGetArray(t,e,["point1","point2"],3),J.algo(t,e,0,1),Put(t,e)}const zut=J.newInstance(aae,"vtkLineSource");var gD={newInstance:zut,extend:aae};function Uut(t,e){e.classHierarchy.push("vtkSphereMapper")}const Gut={scaleArray:null,radius:.05,scaleFactor:1};function Hut(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Gut,n),Pr.extend(t,e,n),J.setGet(t,e,["radius","scaleArray","scaleFactor"]),Uut(t,e)}J.newInstance(Hut,"vtkSphereMapper");const Wut=t=>t,vz=1e-6;class iae{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;this.matrix=Yn(new Float64Array(16)),this.tmp=new Float64Array(3),this.angleConv=e?wXe:Wut}rotateFromDirections(e,n){const r=new Float64Array(3),a=new Float64Array(3),i=new Float64Array(16);Kl(r,e[0],e[1],e[2]),Kl(a,n[0],n[1],n[2]),Rf(r,r),Rf(a,a);const o=tN(r,a);return o>=1?this:(dg(this.tmp,r,a),RL(this.tmp)<vz&&(dg(this.tmp,[1,0,0],e),RL(this.tmp)<vz&&dg(this.tmp,[0,1,0],e)),EJ(i,Math.acos(o),this.tmp),ri(this.matrix,this.matrix,i),this)}rotate(e,n){return Kl(this.tmp,...n),Rf(this.tmp,this.tmp),Ws(this.matrix,this.matrix,this.angleConv(e),this.tmp),this}rotateX(e){return ZV(this.matrix,this.matrix,this.angleConv(e)),this}rotateY(e){return QV(this.matrix,this.matrix,this.angleConv(e)),this}rotateZ(e){return JV(this.matrix,this.matrix,this.angleConv(e)),this}translate(e,n,r){return Kl(this.tmp,e,n,r),xa(this.matrix,this.matrix,this.tmp),this}scale(e,n,r){return Kl(this.tmp,e,n,r),gp(this.matrix,this.matrix,this.tmp),this}multiply(e){return ri(this.matrix,this.matrix,e),this}multiply3x3(e){return ri(this.matrix,this.matrix,[e[0],e[1],e[2],0,e[3],e[4],e[5],0,e[6],e[7],e[8],0,0,0,0,1]),this}invert(){return eo(this.matrix,this.matrix),this}identity(){return Yn(this.matrix),this}apply(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:-1;if(Wb(Mee,this.matrix))return this;const a=r===-1?e.length:n+r*3;for(let i=n;i<a;i+=3)Kl(this.tmp,e[i],e[i+1],e[i+2]),_r(this.tmp,this.tmp,this.matrix),e[i]=this.tmp[0],e[i+1]=this.tmp[1],e[i+2]=this.tmp[2];return this}getMatrix(){return this.matrix}setMatrix(e){return e&&e.length===16&&di(this.matrix,e),this}}function jut(){return new iae(!0)}function Kut(){return new iae(!1)}var xo={buildFromDegree:jut,buildFromRadian:Kut};const Yut={TRIANGLE:"triangle",STAR:"star",ARROW_4:"arrow4points",ARROW_6:"arrow6points"};var Xut={ShapeType:Yut};const{ShapeType:_w}=Xut;function qut(t,e){const n=$a.newInstance(),r=J.newTypedArray(e.pointType,10*3),a=new Uint32Array(11);a[0]=10;for(let i=0;i<10;i++){const o=i%2===1?e.height:e.height*.4;r[3*i+0]=o*Math.cos((2*i-1)*Math.PI/10),r[3*i+1]=o*Math.sin((2*i-1)*Math.PI/10),r[3*i+2]=0,a[1+i]=i}return n.getPoints().setData(r,3),n.getPolys().setData(a,1),n}function Zut(t,e){const n=$a.newInstance(),r=J.newTypedArray(e.pointType,6*3),a=e.height*.5*e.thickness,i=e.height*.5-a,o=(e.height*.9+a-i-(e.height*.5-a-i))*(1-e.base);r[0]=e.width/2*-1-a,r[1]=e.height/4-i-o,r[2]=0,r[3]=0,r[4]=e.height*.9+a-i-o,r[5]=0,r[6]=e.width/2+a,r[7]=e.height/4-i-o,r[8]=0,r[9]=e.width/3,r[10]=e.height*.1-a-i-o,r[11]=0,r[12]=0,r[13]=e.height*.5-a-i-o,r[14]=0,r[15]=e.width/3*-1,r[16]=e.height*.1-a-i-o,r[17]=0;const s=Uint8Array.from([3,0,1,5,3,1,4,5,3,1,4,3,3,1,2,3]);return n.getPoints().setData(r,3),n.getPolys().setData(s,1),n}function Qut(t,e){const n=$a.newInstance(),r=J.newTypedArray(e.pointType,4*3),a=e.height/3*e.thickness,i=e.height/3-a,o=(e.height-i-(e.height/3-a-i))*(1-e.base);r[0]=e.width/2*-1,r[1]=0-i-o,r[2]=0,r[3]=0,r[4]=e.height-i-o,r[5]=0,r[6]=e.width/2,r[7]=0-i-o,r[8]=0,r[9]=0,r[10]=e.height/3-a-i-o,r[11]=0;const s=Uint8Array.from([3,0,1,3,3,1,2,3]);return n.getPoints().setData(r,3),n.getPolys().setData(s,1),n}function Jut(t,e){const n=$a.newInstance(),r=J.newTypedArray(e.pointType,3*3),a=e.height*(1-e.base);r[0]=e.width/2*-1,r[1]=0-a,r[2]=0,r[3]=0,r[4]=e.height-a,r[5]=0,r[6]=e.width/2,r[7]=0-a,r[8]=0;const i=Uint8Array.from([3,0,1,2]);return n.getPoints().setData(r,3),n.getPolys().setData(i,1),n}function ect(t,e){const n={[_w.TRIANGLE]:Jut,[_w.STAR]:qut,[_w.ARROW_4]:Qut,[_w.ARROW_6]:Zut};t.requestData=(r,a)=>{a[0]=n[e.shape](t,e),xo.buildFromRadian().translate(...e.center).rotateFromDirections([1,0,0],e.direction).apply(a[0].getPoints().getData())}}function tct(t){return{base:0,center:[0,0,0],height:1,direction:[1,0,0],pointType:"Float64Array",thickness:0,width:1,...t}}function oae(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,tct(n)),J.obj(t,e),J.setGet(t,e,["height","width","thickness","base"]),J.setGetArray(t,e,["center","direction"],3),J.algo(t,e,0,1),ect(t,e)}const nct=J.newInstance(oae,"vtkArrow2DSource");var qFt={newInstance:nct,extend:oae};const{vtkErrorMacro:rct}=J;function act(t,e){let n=0;return t.map((r,a)=>a===n?(n+=r+1,r):r+e)}function Cw(t,e,n,r){t.set(act(e,n),r)}function ict(t,e){e.classHierarchy.push("vtkAppendPolyData"),t.requestData=(n,r)=>{const a=t.getNumberOfInputPorts();if(!a){rct("No input specified.");return}if(a===1){r[0]=n[0];return}const i=$a.newInstance();let o=0,s=0,l=1,u=1,c=0,f=0,d=0,h=0,p=!0,v=!0,g=!0;for(let A=0;A<a;A++){const k=n[A];if(!k)continue;const L=k.getPoints().getNumberOfPoints();o+=L,c+=k.getVerts().getNumberOfValues(),f+=k.getLines().getNumberOfValues(),d+=k.getStrips().getNumberOfValues(),h+=k.getPolys().getNumberOfValues(),L&&(u&&(u=0,s=k.getPoints().getDataType()),l=k.getPoints().getDataType(),s=s>l?s:l);const I=k.getPointData();I?(p=p&&I.getNormals()!==null,v=v&&I.getTCoords()!==null,g=g&&I.getScalars()!==null):(p=!1,v=!1,g=!1)}e.outputPointsPrecision===$2.SINGLE?s=Va.FLOAT:e.outputPointsPrecision===$2.DOUBLE&&(s=Va.DOUBLE);const y=$1.newInstance({dataType:s});y.setNumberOfPoints(o);const m=y.getData(),S=new Uint32Array(c),w=new Uint32Array(f),C=new Uint32Array(d),_=new Uint32Array(h);let x=null,T=null,M=null;const E=n[a-1];if(p){const A=E.getPointData().getNormals();x=zn.newInstance({numberOfComponents:3,numberOfTuples:o,size:3*o,dataType:A.getDataType(),name:A.getName()})}if(v){const A=E.getPointData().getTCoords();T=zn.newInstance({numberOfComponents:2,numberOfTuples:o,size:2*o,dataType:A.getDataType(),name:A.getName()})}if(g){const A=E.getPointData().getScalars();M=zn.newInstance({numberOfComponents:A.getNumberOfComponents(),numberOfTuples:o,size:o*A.getNumberOfComponents(),dataType:A.getDataType(),name:A.getName()})}o=0,c=0,f=0,d=0,h=0;for(let A=0;A<a;A++){const k=n[A];m.set(k.getPoints().getData(),o*3),Cw(S,k.getVerts().getData(),o,c),c+=k.getVerts().getNumberOfValues(),Cw(w,k.getLines().getData(),o,f),f+=k.getLines().getNumberOfValues(),Cw(C,k.getStrips().getData(),o,d),d+=k.getStrips().getNumberOfValues(),Cw(_,k.getPolys().getData(),o,h),h+=k.getPolys().getNumberOfValues();const L=k.getPointData();if(p){const I=L.getNormals();x.getData().set(I.getData(),o*3)}if(v){const I=L.getTCoords();T.getData().set(I.getData(),o*2)}if(g){const I=L.getScalars();M.getData().set(I.getData(),o*M.getNumberOfComponents())}o+=k.getPoints().getNumberOfPoints()}i.setPoints(y),i.getVerts().setData(S),i.getLines().setData(w),i.getStrips().setData(C),i.getPolys().setData(_),x&&i.getPointData().setNormals(x),T&&i.getPointData().setTCoords(T),M&&i.getPointData().setScalars(M),r[0]=i}}const oct={outputPointsPrecision:$2.DEFAULT};function sae(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,oct,n),J.setGet(t,e,["outputPointsPrecision"]),J.obj(t,e),J.algo(t,e,1,1),ict(t,e)}const sct=J.newInstance(sae,"vtkAppendPolyData");var lae={newInstance:sct,extend:sae};function lct(t,e){e.classHierarchy.push("vtkConeSource");function n(r,a){if(e.deleted)return;let i=a[0];const o=2*Math.PI/e.resolution,s=-e.height/2,l=e.resolution+1,u=4*e.resolution+1+e.resolution;let c=0;const f=J.newTypedArray(e.pointType,l*3);let d=0;const h=new Uint32Array(u);f[0]=e.height/2,f[1]=0,f[2]=0,e.capping&&(h[d++]=e.resolution);for(let p=0;p<e.resolution;p++)c++,f[c*3+0]=s,f[c*3+1]=e.radius*Math.cos(p*o),f[c*3+2]=e.radius*Math.sin(p*o),e.capping&&(h[e.resolution-d+++1]=c);for(let p=0;p<e.resolution;p++)h[d++]=3,h[d++]=0,h[d++]=p+1,h[d++]=p+2>e.resolution?1:p+2;xo.buildFromRadian().translate(...e.center).rotateFromDirections([1,0,0],e.direction).apply(f),i=$a.newInstance(),i.getPoints().setData(f,3),i.getPolys().setData(h,1),a[0]=i}t.requestData=n}const uct={height:1,radius:.5,resolution:6,center:[0,0,0],direction:[1,0,0],capping:!0,pointType:"Float64Array"};function uae(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,uct,n),J.obj(t,e),J.setGet(t,e,["height","radius","resolution","capping"]),J.setGetArray(t,e,["center","direction"],3),J.algo(t,e,0,1),lct(t,e)}const cct=J.newInstance(uae,"vtkConeSource");var M_={newInstance:cct,extend:uae};function fct(t,e){e.classHierarchy.push("vtkCylinderSource");function n(r,a){if(e.deleted)return;let i=a[0];const o=2*Math.PI/e.resolution;let s=2*e.resolution,l=5*e.resolution;e.capping&&(s=4*e.resolution,l=7*e.resolution+2);const u=J.newTypedArray(e.pointType,s*3);let c=0;const f=new Uint32Array(l),d=new Float32Array(s*3),h=zn.newInstance({numberOfComponents:3,values:d,name:"Normals"}),p=new Float32Array(s*2),v=zn.newInstance({numberOfComponents:2,values:p,name:"TCoords"}),g=[0,0,0],y=[0,0,0],m=[0,0,0],S=[0,0,0],w=[0,0],C=[0,0],_=e.otherRadius==null?e.radius:e.otherRadius;for(let x=0;x<e.resolution;x++){g[0]=Math.cos(x*o+e.initAngle),y[0]=g[0],m[0]=e.radius*g[0]+e.center[0],S[0]=m[0],w[0]=Math.abs(2*x/e.resolution-1),C[0]=w[0],m[1]=.5*e.height+e.center[1],S[1]=-.5*e.height+e.center[1],w[1]=0,C[1]=1,g[2]=-Math.sin(x*o+e.initAngle),y[2]=g[2],m[2]=_*g[2]+e.center[2],S[2]=m[2];const T=2*x;for(let M=0;M<3;M++)d[T*3+M]=g[M],d[(T+1)*3+M]=y[M],u[T*3+M]=m[M],u[(T+1)*3+M]=S[M],M<2&&(p[T*2+M]=w[M],p[(T+1)*2+M]=C[M])}for(let x=0;x<e.resolution;x++){f[c++]=4,f[c++]=2*x,f[c++]=2*x+1;const T=(2*x+3)%(2*e.resolution);f[c++]=T,f[c++]=T-1}if(e.capping){for(let x=0;x<e.resolution;x++){m[0]=e.radius*Math.cos(x*o+e.initAngle),S[0]=m[0],w[0]=m[0],C[0]=m[0],m[0]+=e.center[0],S[0]+=e.center[0],g[1]=1,y[1]=-1,m[1]=.5*e.height+e.center[1],S[1]=-.5*e.height+e.center[1],m[2]=-_*Math.sin(x*o+e.initAngle),S[2]=m[2],w[1]=m[2],C[1]=m[2],m[2]+=e.center[2],S[2]+=e.center[2];const T=2*e.resolution+x,M=3*e.resolution+e.resolution-x-1;for(let E=0;E<3;E++)d[3*T+E]=g[E],d[3*M+E]=y[E],u[3*T+E]=m[E],u[3*M+E]=S[E],E<2&&(p[2*T+E]=w[E],p[2*M+E]=C[E])}f[c++]=e.resolution;for(let x=0;x<e.resolution;x++)f[c++]=2*e.resolution+x;f[c++]=e.resolution;for(let x=0;x<e.resolution;x++)f[c++]=3*e.resolution+x}xo.buildFromRadian().translate(...e.center).rotateFromDirections([0,1,0],e.direction).translate(...e.center.map(x=>x*-1)).apply(u),i=$a.newInstance(),i.getPoints().setData(u,3),i.getPolys().setData(f,1),i.getPointData().setNormals(h),i.getPointData().setTCoords(v),a[0]=i}t.requestData=n}const dct={height:1,initAngle:0,radius:1,resolution:6,center:[0,0,0],direction:[0,1,0],capping:!0,pointType:"Float64Array"};function cae(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,dct,n),J.obj(t,e),J.setGet(t,e,["height","initAngle","otherRadius","radius","resolution","capping"]),J.setGetArray(t,e,["center","direction"],3),J.algo(t,e,0,1),fct(t,e)}const hct=J.newInstance(cae,"vtkCylinderSource");var pct={newInstance:hct,extend:cae};function vct(t,e){e.classHierarchy.push("vtkArrowSource");function n(r,a){if(e.deleted)return;const i=pct.newInstance({capping:!0});i.setResolution(e.shaftResolution),i.setRadius(e.shaftRadius),i.setHeight(1-e.tipLength),i.setCenter(0,(1-e.tipLength)*.5,0);const o=i.getOutputData(),s=o.getPoints().getData(),l=o.getPointData().getNormals().getData();xo.buildFromDegree().rotateZ(-90).apply(s).apply(l);const u=M_.newInstance();u.setResolution(e.tipResolution),u.setHeight(e.tipLength),u.setRadius(e.tipRadius);const c=u.getOutputData(),f=c.getPoints().getData();xo.buildFromRadian().translate(1-e.tipLength*.5,0,0).apply(f);const d=lae.newInstance();d.setInputData(o),d.addInputData(c);const h=d.getOutputData(),p=h.getPoints().getData();xo.buildFromRadian().translate(-.5+e.tipLength*.5,0,0).apply(p),e.invert?(xo.buildFromRadian().rotateFromDirections([1,0,0],e.direction).scale(-1,-1,-1).apply(p),a[0]=h):(xo.buildFromRadian().rotateFromDirections([1,0,0],e.direction).scale(1,1,1).apply(p),a[0]=d.getOutputData())}t.requestData=n}const gct={tipResolution:6,tipRadius:.1,tipLength:.35,shaftResolution:6,shaftRadius:.03,invert:!1,direction:[1,0,0],pointType:"Float64Array"};function fae(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,gct,n),J.obj(t,e),J.setGet(t,e,["tipResolution","tipRadius","tipLength","shaftResolution","shaftRadius","invert"]),J.setGetArray(t,e,["direction"],3),J.algo(t,e,0,1),vct(t,e)}const yct=J.newInstance(fae,"vtkArrowSource");var yD={newInstance:yct,extend:fae};function mD(t){const e=t.getPoints().getBounds(),n=[-(e[0]+e[1])*.5,-(e[2]+e[3])*.5,-(e[4]+e[5])*.5];xo.buildFromDegree().translate(...n).apply(t.getPoints().getData())}function bD(t,e){const n=t.getPoints().getBounds(),r=[0,0,0];r[e]=-n[e*2],xo.buildFromDegree().translate(...r).apply(t.getPoints().getData())}function SD(t,e,n,r){const a=t.getPoints().getData().length,i=new Uint8ClampedArray(a);let o=0;for(;o<a;)i[o++]=e,i[o++]=n,i[o++]=r;t.getPointData().setScalars(zn.newInstance({name:"color",numberOfComponents:3,values:i}))}function mct(t,e){e.classHierarchy.push("vtkAxesActor");const n=Pr.newInstance();t.setMapper(n),t.update=()=>{const l=yD.newInstance({direction:[1,0,0],...e.config}).getOutputData();e.config.recenter?mD(l):bD(l,0),SD(l,...e.xAxisColor);const u=yD.newInstance({direction:[0,1,0],...e.config}).getOutputData();e.config.recenter?mD(u):bD(u,1),SD(u,...e.yAxisColor);const c=yD.newInstance({direction:[0,0,1],...e.config}).getOutputData();e.config.recenter?mD(c):bD(c,2),SD(c,...e.zAxisColor);const f=lae.newInstance();f.setInputData(l),f.addInputData(u),f.addInputData(c),n.setInputConnection(f.getOutputPort())},t.update();const r=J.debounce(t.update,0),{setConfig:a,setXAxisColor:i,setYAxisColor:o,setZAxisColor:s}=t;t.setConfig=l=>a(l)?(r(),!0):!1,t.setXAxisColor=l=>i(l)?(r(),!0):!1,t.setYAxisColor=l=>o(l)?(r(),!0):!1,t.setZAxisColor=l=>s(l)?(r(),!0):!1}const bct={config:{recenter:!0,tipResolution:60,tipRadius:.1,tipLength:.2,shaftResolution:60,shaftRadius:.03,invert:!1},xAxisColor:[255,0,0],yAxisColor:[255,255,0],zAxisColor:[0,128,0]};function Sct(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,bct,n),$r.extend(t,e,n),J.setGet(t,e,["config"]),J.setGetArray(t,e,["xAxisColor","yAxisColor","zAxisColor"],3,255),mct(t,e)}J.newInstance(Sct,"vtkAxesActor");const wct=[2,0,1,2,2,3,2,4,5,2,6,7,2,0,2,2,1,3,2,4,6,2,5,7,2,0,4,2,1,5,2,2,6,2,3,7],xct=[4,0,1,3,2,4,4,6,7,5,4,8,10,11,9,4,12,13,15,14,4,16,18,19,17,4,20,21,23,22];function _ct(t,e){e.classHierarchy.push("vtkCubeSource");function n(r,a){if(e.deleted)return;const i=$a.newInstance();a[0]=i;const o=24,s=J.newTypedArray(e.pointType,o*3);i.getPoints().setData(s,3);const l=J.newTypedArray(e.pointType,o*3),u=zn.newInstance({name:"Normals",values:l,numberOfComponents:3});i.getPointData().setNormals(u);let c=2;e.generate3DTextureCoordinates===!0&&(c=3);const f=J.newTypedArray(e.pointType,o*c),d=zn.newInstance({name:"TextureCoordinates",values:f,numberOfComponents:c});i.getPointData().setTCoords(d);const h=[0,0,0],p=[0,0,0],v=[0,0];let g=0;h[0]=-e.xLength/2,p[0]=-1,p[1]=0,p[2]=0;for(let y=0;y<2;y++){h[1]=-e.yLength/2;for(let m=0;m<2;m++){v[1]=h[1]+.5,h[2]=-e.zLength/2;for(let S=0;S<2;S++)v[0]=(h[2]+.5)*(1-2*y),s[g*3]=h[0],s[g*3+1]=h[1],s[g*3+2]=h[2],l[g*3]=p[0],l[g*3+1]=p[1],l[g*3+2]=p[2],c===2?(f[g*c]=v[0],f[g*c+1]=v[1]):(f[g*c]=2*y-1,f[g*c+1]=2*m-1,f[g*c+2]=2*S-1),g++,h[2]+=e.zLength;h[1]+=e.yLength}h[0]+=e.xLength,p[0]+=2}h[1]=-e.yLength/2,p[1]=-1,p[0]=0,p[2]=0;for(let y=0;y<2;y++){h[0]=-e.xLength/2;for(let m=0;m<2;m++){v[0]=(h[0]+.5)*(2*y-1),h[2]=-e.zLength/2;for(let S=0;S<2;S++)v[1]=(h[2]+.5)*-1,s[g*3]=h[0],s[g*3+1]=h[1],s[g*3+2]=h[2],l[g*3]=p[0],l[g*3+1]=p[1],l[g*3+2]=p[2],c===2?(f[g*c]=v[0],f[g*c+1]=v[1]):(f[g*c]=2*m-1,f[g*c+1]=2*y-1,f[g*c+2]=2*S-1),g++,h[2]+=e.zLength;h[0]+=e.xLength}h[1]+=e.yLength,p[1]+=2}h[2]=-e.zLength/2,p[2]=-1,p[0]=0,p[1]=0;for(let y=0;y<2;y++){h[1]=-e.yLength/2;for(let m=0;m<2;m++){v[1]=h[1]+.5,h[0]=-e.xLength/2;for(let S=0;S<2;S++)v[0]=(h[0]+.5)*(2*y-1),s[g*3]=h[0],s[g*3+1]=h[1],s[g*3+2]=h[2],l[g*3]=p[0],l[g*3+1]=p[1],l[g*3+2]=p[2],c===2?(f[g*c]=v[0],f[g*c+1]=v[1]):(f[g*c]=2*S-1,f[g*c+1]=2*m-1,f[g*c+2]=2*y-1),g++,h[0]+=e.xLength;h[1]+=e.yLength}h[2]+=e.zLength,p[2]+=2}if(e.rotations&&xo.buildFromDegree().rotateX(e.rotations[0]).rotateY(e.rotations[1]).rotateZ(e.rotations[2]).apply(s).apply(l),e.center&&xo.buildFromRadian().translate(...e.center).apply(s),e.matrix){xo.buildFromRadian().setMatrix(e.matrix).apply(s);const y=[e.matrix[0],e.matrix[1],e.matrix[2],0,e.matrix[4],e.matrix[5],e.matrix[6],0,e.matrix[8],e.matrix[9],e.matrix[10],0,0,0,0,1];xo.buildFromRadian().setMatrix(y).apply(l)}e.generateFaces?i.getPolys().deepCopy(e._polys):i.getPolys().initialize(),e.generateLines?(i.getLines().deepCopy(e._lineCells),i.getPointData().setNormals(null)):i.getLines().initialize(),i.modified()}t.setBounds=function(){let r=[];if(Array.isArray(arguments.length<=0?void 0:arguments[0]))r=arguments.length<=0?void 0:arguments[0];else for(let a=0;a<arguments.length;a++)r.push(a<0||arguments.length<=a?void 0:arguments[a]);r.length===6&&(t.setXLength(r[1]-r[0]),t.setYLength(r[3]-r[2]),t.setZLength(r[5]-r[4]),t.setCenter([(r[0]+r[1])/2,(r[2]+r[3])/2,(r[4]+r[5])/2]))},t.requestData=n}const Cct={xLength:1,yLength:1,zLength:1,pointType:"Float64Array",generate3DTextureCoordinates:!1,generateFaces:!0,generateLines:!1};function dae(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Cct,n),J.obj(t,e),J.setGet(t,e,["xLength","yLength","zLength","generate3DTextureCoordinates","generateFaces","generateLines"]),J.setGetArray(t,e,["center","rotations"],3),J.setGetArray(t,e,["matrix"],16),e._polys=P2.newInstance({values:Uint16Array.from(xct)}),e._lineCells=P2.newInstance({values:Uint16Array.from(wct)}),J.moveToProtected(t,e,["polys","lineCells"]),J.algo(t,e,0,1),_ct(t,e)}const Tct=J.newInstance(dae,"vtkCubeSource");var Ect={newInstance:Tct,extend:dae};function hae(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[0,0,0,0];const[n,r,a,i]=e,s=t.getContext("2d").getImageData(n,r,a||t.width,i||t.height),l=Ute.newInstance({type:"vtkImageData"});l.setOrigin(0,0,0),l.setSpacing(1,1,1),l.setExtent(0,(a||t.width)-1,0,(i||t.height)-1,0,0);const u=zn.newInstance({numberOfComponents:4,values:new Uint8Array(s.data.buffer)});return u.setName("scalars"),l.getPointData().setScalars(u),l}function Mct(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{flipX:!1,flipY:!1,rotate:0};const n=document.createElement("canvas");n.width=t.width,n.height=t.height;const r=n.getContext("2d"),{flipX:a,flipY:i,rotate:o}=e;return r.translate(n.width/2,n.height/2),r.scale(a?-1:1,i?-1:1),r.rotate(o*Math.PI/180),r.drawImage(t,-t.width/2,-t.height/2),hae(n)}var Dct={canvasToImageData:hae,imageToImageData:Mct};const Act={xPlus:0,xMinus:1,yPlus:2,yMinus:3,zPlus:4,zMinus:5};function kct(t,e){e.classHierarchy.push("vtkAnnotatedCubeActor"),e.xPlusFaceProperty={...e.xPlusFaceProperty},e.xMinusFaceProperty={...e.xMinusFaceProperty},e.yPlusFaceProperty={...e.yPlusFaceProperty},e.yMinusFaceProperty={...e.yMinusFaceProperty},e.zPlusFaceProperty={...e.zPlusFaceProperty},e.zMinusFaceProperty={...e.zMinusFaceProperty};let n=null;const r=document.createElement("canvas"),a=Pr.newInstance(),i=Yb.newInstance();i.setInterpolate(!0);function o(l){let u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;u&&Object.assign(e[`${l}FaceProperty`],u);const c={...e.defaultStyle,...e[`${l}FaceProperty`]};r.width=c.resolution,r.height=c.resolution;const f=r.getContext("2d");f.fillStyle=c.faceColor,f.fillRect(0,0,r.width,r.height),c.edgeThickness>0&&(f.strokeStyle=c.edgeColor,f.lineWidth=c.edgeThickness*r.width,f.strokeRect(0,0,r.width,r.height)),f.save(),f.translate(0,r.height),f.scale(1,-1),f.translate(r.width/2,r.height/2),f.rotate(-Math.PI*(c.faceRotation/180));const d=c.fontSizeScale(c.resolution);f.fillStyle=c.fontColor,f.textAlign="center",f.textBaseline="middle",f.font=`${c.fontStyle} ${d}px "${c.fontFamily}"`,f.fillText(c.text,0,0),f.restore();const h=Dct.canvasToImageData(r);i.setInputData(h,Act[l]),t.modified()}function s(){n=Ect.newInstance({generate3DTextureCoordinates:!0}),a.setInputConnection(n.getOutputPort()),o("xPlus"),o("xMinus"),o("yPlus"),o("yMinus"),o("zPlus"),o("zMinus")}t.setDefaultStyle=l=>{e.defaultStyle={...e.defaultStyle,...l},s()},t.setXPlusFaceProperty=l=>o("xPlus",l),t.setXMinusFaceProperty=l=>o("xMinus",l),t.setYPlusFaceProperty=l=>o("yPlus",l),t.setYMinusFaceProperty=l=>o("yMinus",l),t.setZPlusFaceProperty=l=>o("zPlus",l),t.setZMinusFaceProperty=l=>o("zMinus",l),s(),a.setInputConnection(n.getOutputPort()),t.setMapper(a),t.addTexture(i)}const Rct={defaultStyle:{text:"",faceColor:"white",faceRotation:0,fontFamily:"Arial",fontColor:"black",fontStyle:"normal",fontSizeScale:t=>t/1.8,edgeThickness:.1,edgeColor:"black",resolution:200}};function Lct(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Rct,n),$r.extend(t,e,n),J.get(t,e,["defaultStyle","xPlusFaceProperty","xMinusFaceProperty","yPlusFaceProperty","yMinusFaceProperty","zPlusFaceProperty","zMinusFaceProperty"]),kct(t,e)}J.newInstance(Lct,"vtkAnnotatedCubeActor");const Oct={TOP_LEFT:"TOP_LEFT",TOP_RIGHT:"TOP_RIGHT",BOTTOM_LEFT:"BOTTOM_LEFT",BOTTOM_RIGHT:"BOTTOM_RIGHT"};var pae={Corners:Oct};const{vtkErrorMacro:wD}=J,{Corners:Tw}=pae;function Vct(t,e){e.classHierarchy.push("vtkOrientationMarkerWidget");const n={...t},r=[],a=$N.newInstance(),i=new ResizeObserver(d=>{t.updateViewport()});let o=null,s=null,l=null,u=null,c=null;function f(){e._interactor.isAnimating()||t.updateMarkerOrientation()}e._onParentRendererChanged=()=>t.updateViewport(),t.computeViewport=()=>{const d=e.parentRenderer||e._interactor.getCurrentRenderer(),[h,p,v,g]=d.getViewport(),y=e._interactor.getView(),m=y.getSize(),[S,w]=y.getViewportSize(d),C=Math.min(S,w);let _=e.viewportSize*C;_=Math.max(Math.min(e.minPixelSize,C),Math.min(e.maxPixelSize,_));const x=_/m[0],T=_/m[1];switch(e.viewportCorner){case Tw.TOP_LEFT:return[h,g-T,h+x,g];case Tw.TOP_RIGHT:return[v-x,g-T,v,g];case Tw.BOTTOM_LEFT:return[h,p,h+x,p+T];case Tw.BOTTOM_RIGHT:return[v-x,p,v,p+T];default:return wD("Invalid widget corner"),null}},t.updateViewport=()=>{e.enabled&&(a.setViewport(...t.computeViewport()),e._interactor.render())},t.updateMarkerOrientation=()=>{const h=(e.parentRenderer||e._interactor.getCurrentRenderer()).getActiveCamera();if(!h)return;const p=h.getReferenceByName("position"),v=h.getReferenceByName("focalPoint"),g=h.getReferenceByName("viewUp");if(r[0]!==p[0]||r[1]!==p[1]||r[2]!==p[2]||r[3]!==v[0]||r[4]!==v[1]||r[5]!==v[2]||r[6]!==g[0]||r[7]!==g[1]||r[8]!==g[2]){r[0]=p[0],r[1]=p[1],r[2]=p[2],r[3]=v[0],r[4]=v[1],r[5]=v[2],r[6]=g[0],r[7]=g[1],r[8]=g[2];const y=a.getActiveCamera();y.setPosition(p[0],p[1],p[2]),y.setFocalPoint(v[0],v[1],v[2]),y.setViewUp(g[0],g[1],g[2]),a.resetCamera()}},t.setEnabled=d=>{var h,p;if(d){if(e.enabled)return;if(!e.actor){wD("Must set actor before enabling orientation marker.");return}if(!e._interactor){wD("Must set interactor before enabling orientation marker.");return}const v=e.parentRenderer||e._interactor.getCurrentRenderer(),g=v.getRenderWindow();g.addRenderer(a),g.getNumberOfLayers()<2&&g.setNumberOfLayers(2),a.setLayer(g.getNumberOfLayers()-1),a.setInteractive(!1),a.addViewProp(e.actor),e.actor.setVisibility(!0),o=v.onEvent(y=>{y.type==="ActiveCameraEvent"&&(s&&s.unsubscribe(),s=y.camera.onModified(f))}),s=v.getActiveCamera().onModified(f),l=e._interactor.onAnimation(t.updateMarkerOrientation),u=e._interactor.onEndAnimation(t.updateMarkerOrientation),i.observe(e._interactor.getView().getCanvas()),t.updateViewport(),t.updateMarkerOrientation(),e.enabled=!0}else{if(!e.enabled)return;e.enabled=!1,i.disconnect(),o.unsubscribe(),o=null,s.unsubscribe(),s=null,l.unsubscribe(),l=null,u.unsubscribe(),u=null,e.actor.setVisibility(!1),a.removeViewProp(e.actor);const v=(p=(h=e._interactor)==null?void 0:h.findPokedRenderer())==null?void 0:p.getRenderWindow();v&&v.removeRenderer(a)}t.modified()},t.setViewportCorner=d=>{d!==e.viewportCorner&&(e.viewportCorner=d,t.updateViewport())},t.setViewportSize=d=>{const h=Math.min(1,Math.max(0,d));h!==e.viewportSize&&(e.viewportSize=h,t.updateViewport())},t.setActor=d=>{const h=e.enabled;t.setEnabled(!1),e.actor=d,t.setEnabled(h)},t.getRenderer=()=>a,t.delete=()=>{n.delete(),c&&(c.unsubscribe(),c=null),o&&(o.unsubscribe(),o=null),s&&(s.unsubscribe(),s=null),l&&(l.unsubscribe(),l=null),u&&(u.unsubscribe(),u=null),i.disconnect()},c=t.onModified(t.updateViewport)}const Nct={viewportCorner:pae.Corners.BOTTOM_LEFT,viewportSize:.2,minPixelSize:50,maxPixelSize:200,parentRenderer:null};function Ict(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Nct,n),J.obj(t,e),J.get(t,e,["enabled","viewportCorner","viewportSize"]),J.setGet(t,e,["_interactor","minPixelSize","maxPixelSize","parentRenderer"]),J.get(t,e,["actor"]),J.moveToProtected(t,e,["interactor"]),Vct(t,e)}J.newInstance(Ict,"vtkOrientationMarkerWidget");function vae(t){return new TextDecoder("latin1").decode(t)}function Bct(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;const r=vae(t),a=e.exec(r);if(!a)return{text:r};const i=a.index+a[0].length,o=r.substring(0,i);let s=null;const l=n?n.exec(r):null;if(l){const u=r.substr(l.index);s={text:o+u,binaryBuffer:t.slice(i,l.index)}}else s={text:o,binaryBuffer:t.slice(i)};return s}var gz={arrayBufferToString:vae,extractBinary:Bct};const jN={};function gae(t){return!!jN[t]}function $ct(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"http",e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return jN[t](e)}function yae(t,e){jN[t]=e}var KN={get:$ct,has:gae,registerType:yae};function mae(){const t=new ArrayBuffer(4),e=new Uint8Array(t),n=new Uint32Array(t);return e[0]=161,e[1]=178,e[2]=195,e[3]=212,n[0]===3569595041?"LittleEndian":n[0]===2712847316?"BigEndian":null}const Pct=mae();function Fct(t,e){if(e<2)return;const n=new Int8Array(t),r=n.length,a=[];for(let i=0;i<r;i+=e){for(let o=0;o<e;o++)a.push(n[i+o]);for(let o=0;o<e;o++)n[i+o]=a.pop()}}var xD={ENDIANNESS:Pct,getEndianness:mae,swapBytes:Fct};const{vtkErrorMacro:bae,vtkDebugMacro:zct}=J,YN=()=>(bae("LiteHttpDataAccessHelper does not support compression. Need to register HttpDataAccessHelper instead."),Promise.reject(new Error("LiteHttpDataAccessHelper does not support compression. Need to register HttpDataAccessHelper instead.")));let Jg=0;function qT(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const r=new XMLHttpRequest;return r.open(t,e,!0),n.headers&&Object.entries(n.headers).forEach(a=>{let[i,o]=a;return r.setRequestHeader(i,o)}),n.progressCallback&&r.addEventListener("progress",n.progressCallback),r}function Uct(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return new Promise((n,r)=>{const a=qT("GET",t,e);a.onreadystatechange=i=>{a.readyState===4&&(a.status===200||a.status===0?n(a.response):r({xhr:a,e:i}))},a.responseType="arraybuffer",a.send()})}function Gct(t,e,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return r&&r.compression?YN():n.ref&&!n.ref.pending?new Promise((a,i)=>{const o=[e,n.ref.basepath,n.ref.id].join("/"),s=qT("GET",o,r);s.onreadystatechange=l=>{s.readyState===1&&(n.ref.pending=!0,++Jg===1&&(t!=null&&t.invokeBusy)&&t.invokeBusy(!0)),s.readyState===4&&(n.ref.pending=!1,s.status===200||s.status===0?(n.buffer=s.response,n.ref.encode==="JSON"?n.values=JSON.parse(n.buffer):(xD.ENDIANNESS!==n.ref.encode&&xD.ENDIANNESS&&(zct(`Swap bytes of ${n.name}`),xD.swapBytes(n.buffer,kte[n.dataType])),n.values=J.newTypedArray(n.dataType,n.buffer)),n.values.length!==n.size&&bae(`Error in FetchArray: ${n.name}, does not have the proper array size. Got ${n.values.length}, instead of ${n.size}`),delete n.ref,--Jg===0&&(t!=null&&t.invokeBusy)&&t.invokeBusy(!1),t!=null&&t.modified&&t.modified(),a(n)):i({xhr:s,e:l}))},s.responseType=n.dataType!=="string"?"arraybuffer":"text",s.send()}):Promise.resolve(n)}function Hct(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return n&&n.compression?YN():new Promise((r,a)=>{const i=qT("GET",e,n);i.onreadystatechange=o=>{i.readyState===1&&++Jg===1&&t!=null&&t.invokeBusy&&t.invokeBusy(!0),i.readyState===4&&(--Jg===0&&(t!=null&&t.invokeBusy)&&t.invokeBusy(!1),i.status===200||i.status===0?r(JSON.parse(i.responseText)):a({xhr:i,e:o}))},i.responseType="text",i.send()})}function Wct(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return n&&n.compression?YN():new Promise((r,a)=>{const i=qT("GET",e,n);i.onreadystatechange=o=>{i.readyState===1&&++Jg===1&&t!=null&&t.invokeBusy&&t.invokeBusy(!0),i.readyState===4&&(--Jg===0&&(t!=null&&t.invokeBusy)&&t.invokeBusy(!1),i.status===200||i.status===0?r(i.responseText):a({xhr:i,e:o}))},i.responseType="text",i.send()})}function jct(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return new Promise((r,a)=>{const i=new Image;n.crossOrigin&&(i.crossOrigin=n.crossOrigin),i.onload=()=>r(i),i.onerror=a,i.src=e})}const Kct={fetchArray:Gct,fetchJSON:Hct,fetchText:Wct,fetchBinary:Uct,fetchImage:jct};gae("http")||yae("http",t=>Kct);const _D={ASCII:"ascii",BINARY_BIG_ENDIAN:"binary_big_endian",BINARY_LITTLE_ENDIAN:"binary_little_endian"},yz={diffuse_red:"red",diffuse_green:"green",diffuse_blue:"blue"},Sae={patternHeader:/ply([\s\S]*)end_header\r?\n/,patternBody:/end_header\s([\s\S]*)$/};function mz(t){let e="",n=0;const r=Sae.patternHeader.exec(t);r!==null&&(e=r[1],n=r[0].length);const a={comments:[],elements:[],headerLength:n},i=e.split(`
  1100. `);let o,s,l;for(let u=0;u<i.length;u++){let c=i[u];if(c=c.trim(),c!==""){let f;switch(l=c.split(/\s+/),s=l.shift(),c=l.join(" "),s){case"format":a.format=l[0],a.version=l[1];break;case"comment":a.comments.push(c);break;case"element":o!==void 0&&a.elements.push(o),o={},o.name=l[0],o.count=parseInt(l[1],10),o.properties=[];break;case"property":f={type:l[0]},f.type==="list"?(f.name=l[3],f.countType=l[1],f.itemType=l[2]):f.name=l[1],f.name in yz&&(f.name=yz[f.name]),o.properties.push(f);break;case"obj_info":a.objInfo=c;break;default:console.warn("unhandled",s,l);break}}}return o!==void 0&&a.elements.push(o),a}function bz(t,e){const n=e.find(v=>v.name==="vertex"),r=e.find(v=>v.name==="face");let a=0,i=0;n&&(a=n.count),r&&(i=r.count);const o=new Float32Array(a*3),s=new Uint8Array(a*3),l=new Float32Array(a*2),u=new Float32Array(a*3),c=t.colors.length>0,f=t.uvs.length>0,d=t.normals.length>0,h=t.faceVertexUvs.length>0;for(let v=0;v<a;v++){let g=v*3+0,y=v*3+1;const m=v*3+2;o[g]=t.vertices[g],o[y]=t.vertices[y],o[m]=t.vertices[m],c&&(s[g]=t.colors[g],s[y]=t.colors[y],s[m]=t.colors[m]),f&&(g=v*2+0,y=v*2+1,l[g]=t.uvs[g],l[y]=t.uvs[y]),d&&(u[g]=t.normals[g],u[y]=t.normals[y],u[m]=t.normals[m])}if(!f&&h){let v=0,g=0;for(let y=0;y<i;++y){const m=t.indices[v++],S=t.faceVertexUvs[g++];if(S&&m*2===S.length)for(let w=0;w<m;++w){const C=t.indices[v++];l[C*2+0]=S[w*2+0],l[C*2+1]=S[w*2+1]}else v+=m}}const p=$a.newInstance();if(p.getPoints().setData(o,3),c&&p.getPointData().setScalars(zn.newInstance({numberOfComponents:3,values:s,name:"Scalars"})),f||h){const v=zn.newInstance({numberOfComponents:2,values:l,name:"TextureCoordinates"}),g=p.getPointData();g.addArray(v),g.setActiveTCoords(v.getName())}return d&&p.getPointData().setNormals(zn.newInstance({numberOfComponents:3,name:"Normals",values:u})),p.getPolys().setData(Uint32Array.from(t.indices)),p}function CD(t,e){let n;switch(e){case"char":case"uchar":case"short":case"ushort":case"int":case"uint":case"int8":case"uint8":case"int16":case"uint16":case"int32":case"uint32":n=parseInt(t,10);break;case"float":case"double":case"float32":case"float64":n=parseFloat(t);break;default:console.log("Unsupported type");break}return n}function Yct(t,e){const n=e.split(/\s+/),r={};for(let a=0;a<t.length;a++)if(t[a].type==="list"){const i=[],o=CD(n.shift(),t[a].countType);for(let s=0;s<o;s++)i.push(CD(n.shift(),t[a].itemType));r[t[a].name]=i}else r[t[a].name]=CD(n.shift(),t[a].type);return r}function Sz(t,e,n){if(e==="vertex")t.vertices.push(n.x,n.y,n.z),"nx"in n&&"ny"in n&&"nz"in n&&t.normals.push(n.nx,n.ny,n.nz),"s"in n&&"t"in n?t.uvs.push(n.s,n.t):"u"in n&&"v"in n?t.uvs.push(n.u,n.v):"texture_u"in n&&"texture_v"in n&&t.uvs.push(n.texture_u,n.texture_v),"red"in n&&"green"in n&&"blue"in n&&t.colors.push(n.red,n.green,n.blue);else if(e==="face"){const r=n.vertex_indices||n.vertex_index,a=n.texcoord;r&&r.length>0&&(t.indices.push(r.length),r.forEach((i,o)=>{t.indices.push(i)})),t.faceVertexUvs.push(a)}}function TD(t,e,n,r){let a;switch(n){case"int8":case"char":a=[t.getInt8(e),1];break;case"uint8":case"uchar":a=[t.getUint8(e),1];break;case"int16":case"short":a=[t.getInt16(e,r),2];break;case"uint16":case"ushort":a=[t.getUint16(e,r),2];break;case"int32":case"int":a=[t.getInt32(e,r),4];break;case"uint32":case"uint":a=[t.getUint32(e,r),4];break;case"float32":case"float":a=[t.getFloat32(e,r),4];break;case"float64":case"double":a=[t.getFloat64(e,r),8];break;default:console.log("Unsupported type");break}return a}function Xct(t,e,n,r){const a={};let i,o=0;for(let s=0;s<n.length;s++)if(n[s].type==="list"){const l=[];i=TD(t,e+o,n[s].countType,r);const u=i[0];o+=i[1];for(let c=0;c<u;c++)i=TD(t,e+o,n[s].itemType,r),l.push(i[0]),o+=i[1];a[n[s].name]=l}else i=TD(t,e+o,n[s].type,r),a[n[s].name]=i[0],o+=i[1];return[a,o]}function qct(t,e){e.classHierarchy.push("vtkPLYReader"),e.dataAccessHelper||(e.dataAccessHelper=KN.get("http"));function n(r){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{compression:i,progressCallback:o}=e;return a.binary?e.dataAccessHelper.fetchBinary(r,{compression:i,progressCallback:o}):e.dataAccessHelper.fetchText(t,r,{compression:i,progressCallback:o})}t.setUrl=function(r){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{binary:!0};e.url=r;const i=r.split("/");return i.pop(),e.baseURL=i.join("/"),e.compression=a.compression,t.loadData({progressCallback:a.progressCallback,binary:!!a.binary})},t.loadData=function(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const a=n(e.url,r);return a.then(t.parse),a},t.parse=r=>{typeof r=="string"?t.parseAsText(r):t.parseAsArrayBuffer(r)},t.parseAsArrayBuffer=r=>{if(!r)return;if(r!==e.parseData)t.modified();else return;const a=gz.arrayBufferToString(r),i=mz(a);if(!(i.format!==_D.ASCII)){t.parseAsText(r);return}e.parseData=r;const s={indices:[],vertices:[],normals:[],uvs:[],faceVertexUvs:[],colors:[]},l=i.format===_D.BINARY_LITTLE_ENDIAN,u=r instanceof ArrayBuffer?r:r.buffer,c=new DataView(u,i.headerLength);let f,d=0;for(let p=0;p<i.elements.length;p++)for(let v=0;v<i.elements[p].count;v++){f=Xct(c,d,i.elements[p].properties,l),d+=f[1];const g=f[0];Sz(s,i.elements[p].name,g)}const h=bz(s,i.elements);e.output[0]=h},t.parseAsText=r=>{if(!r)return;if(r!==e.parseData)t.modified();else return;e.parseData=r;const a=gz.arrayBufferToString(r),i=mz(a);if(i.format!==_D.ASCII){t.parseAsArrayBuffer(r);return}const s={indices:[],vertices:[],normals:[],uvs:[],faceVertexUvs:[],colors:[]},l=Sae.patternBody.exec(a);let u="";l!==null&&(u=l[1]);const c=u.split(`
  1101. `);let f=0,d=0;for(let p=0;p<c.length;p++){let v=c[p];if(v=v.trim(),v!==""){d>=i.elements[f].count&&(f++,d=0);const g=Yct(i.elements[f].properties,v);Sz(s,i.elements[f].name,g),d++}}const h=bz(s,i.elements);e.output[0]=h},t.requestData=(r,a)=>{t.parse(e.parseData)}}const Zct={};function wae(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Zct,n),J.obj(t,e),J.get(t,e,["url","baseURL"]),J.setGet(t,e,["dataAccessHelper"]),J.algo(t,e,0,1),qct(t,e),e.compression||(e.compression=null),e.progressCallback||(e.progressCallback=null)}const Qct=J.newInstance(wae,"vtkPLYReader");var Ew={extend:wae,newInstance:Qct};class Jct{constructor(){this.isJg=!1,this.isSelectNode=!1,this.isSelectPipe=!1,this.selectObj=null,this.epageX=null,this.epageY=null,this.selectJgPointId=0,this.validNodes=[],this.pipes=[],this.renderWindowWith=null,this.renderer=null,this.renderWindow=null,this.lastActor=null,this.nodeActors=[],this.pipeActors=[],this.interactor=null,this.apiSpecificRenderWindow=null,this.hardwareSelector=null,this.polyData=$a.newInstance(),this.mapper=Pr.newInstance(),this.actor=$r.newInstance(),this.actor.getProperty().setRepresentation(ni.SURFACE),this.actor.getProperty().setColor(lh),this.mapper.setInputData(this.polyData),this.actor.setMapper(this.mapper),this.actor2=$r.newInstance(),this.actor2.getProperty().setRepresentation(ni.POINTS),this.actor2.getProperty().setColor(lh),this.actor2.getProperty().setPointSize(2),this.actor2.setMapper(this.mapper),this.jgActor=$r.newInstance(),this.jgMapper=Pr.newInstance(),this.jgActor.getProperty().setRepresentation(ni.SURFACE),this.scalarBarActor=qg.newInstance(),this.scalarBarActor.setGenerateTicks(this.generateTicks(10)),this.scalarBarActor.setDrawAboveRangeSwatch(!0),this.scalarBarActor.setDrawNanAnnotation(!1),this.scalarBarActor.setDrawAboveRangeSwatch(!1),this.scalarBarActor.setBoxPosition([1,0]);const e=WN.newInstance();e.addRGBPoint(0,0,1,154/255),e.addRGBPoint(1,1,165/255,0),e.addRGBPoint(2,230/255,0,92/225),this.jgMapper.setLookupTable(e),this.jgActor.setMapper(this.jgMapper);const n=this.jgMapper.getLookupTable();this.scalarBarActor.setScalarsToColors(n),this.gjActor=$r.newInstance(),this.gjMapper=Pr.newInstance(),this.gjActor.getProperty().setRepresentation(ni.SURFACE),this.gjscalarBarActor=qg.newInstance(),this.gjscalarBarActor.setGenerateTicks(this.generateTicks(2)),this.gjscalarBarActor.setDrawAboveRangeSwatch(!0),this.gjscalarBarActor.setDrawNanAnnotation(!1),this.gjscalarBarActor.setDrawAboveRangeSwatch(!1),this.gjscalarBarActor.setBoxPosition([1,0]),this.gjMapper.setLookupTable(Yv.newInstance());const r=this.gjMapper.getLookupTable();r.setNumberOfColors(parseInt(2,10)),r.setAlphaRange([1,1]),r.setValueRange([.5,1]),r.setHueRange([.3375,0]),this.gjMapper.setInterpolateScalarsBeforeMapping(!0),this.gjActor.setMapper(this.gjMapper),this.ways=[],this.wayActors=[],this.wayspath=[],this.wayspathActors=[],this.sensorobj={},this.actorpipsites=[],this.jcdActors=[],this.jcreader=Ew.newInstance(),Mw("static/3d/jiancd.ply").then(a=>{this.jcreader.parseAsArrayBuffer(a)}),this.pnameActors=[],this.soureActors=[],this.soureReader=Ew.newInstance(),Mw("static/3d/fire.ply").then(a=>{this.soureReader.parseAsArrayBuffer(a)}),this.pmpActors=[],this.cgqActors=[],this.cgqreader=Ew.newInstance(),Mw("static/3d/cgq.ply").then(a=>{this.cgqreader.parseAsArrayBuffer(a)})}xyz_back(){let e=this.renderer.getActiveCamera();e.setViewUp([0,1,0]),e.setPosition(495544.15625,540355425e-2,9989.55990464236),this.renderer.resetCamera(),e.setFocalPoint(495544.15625,540355425e-2,467.62999725341797),this.renderWindow.render()}x_up(){let e=this.renderer.getActiveCamera();e.setViewUp([0,0,1]),e.setPosition(495544.15625+5e3,540355425e-2,467.62999725341797),this.renderer.resetCamera(),e.setFocalPoint(495544.15625,540355425e-2,467.62999725341797),this.renderWindow.render()}x_down(){let e=this.renderer.getActiveCamera();e.setViewUp([0,0,1]),e.setPosition(495544.15625+-5e3,540355425e-2,467.62999725341797),this.renderer.resetCamera(),e.setFocalPoint(495544.15625,540355425e-2,467.62999725341797),this.renderWindow.render()}y_up(){let e=this.renderer.getActiveCamera();e.setViewUp([0,0,1]),e.setPosition(495544.15625,540355425e-2+5e3,467.62999725341797),this.renderer.resetCamera(),e.setFocalPoint(495544.15625,540355425e-2,467.62999725341797),this.renderWindow.render()}y_down(){let e=this.renderer.getActiveCamera();e.setViewUp([0,0,1]),e.setPosition(495544.15625,540355425e-2-5e3,467.62999725341797),this.renderer.resetCamera(),e.setFocalPoint(495544.15625,540355425e-2,467.62999725341797),this.renderWindow.render()}z_up(){let e=this.renderer.getActiveCamera();e.setViewUp([0,1,0]),e.setPosition(495544.15625,540355425e-2,467.62999725341797+5e3),this.renderer.resetCamera(),e.setFocalPoint(495544.15625,540355425e-2,467.62999725341797),this.renderWindow.render()}z_down(){let e=this.renderer.getActiveCamera();e.setViewUp([0,1,0]),e.setPosition(495544.15625,540355425e-2,467.62999725341797-5e3),this.renderer.resetCamera(),e.setFocalPoint(495544.15625,540355425e-2,467.62999725341797),this.renderWindow.render()}initPname(){fetch("static//3d/pipname.json").then(e=>e.json()).then(e=>{e.forEach(r=>{let a=Ew.newInstance();Mw("static//3d/"+r.name+".ply").then(s=>{a.parseAsArrayBuffer(s)});const i=Pr.newInstance();i.setInputConnection(a.getOutputPort());const o=$r.newInstance();o.setPosition(r.x,r.y,r.z),o.getProperty().setColor(aft),o.setMapper(i),o.setScale(20,20,20),this.pnameActors.push(o)})}).catch(e=>{console.error("Error fetching JSON:",e)})}showPname(){this.pnameActors.forEach(e=>{this.renderer.addActor(e)}),this.renderWindow.render()}removePname(){this.pnameActors.forEach(e=>{this.renderer.removeActor(e)}),this.renderWindow.render()}delSoures(){this.removeSoure(),this.soureActors=[]}addpump(e,n){let r=this.pipeByPid(e,n),a=this.pointByPipeNodeId(r.snId),i=this.pointByPipeNodeId(r.enId),o=n/(1-n),s=[(a[0]+o*i[0])/(1+o),(a[1]+o*i[1])/(1+o),(a[2]+o*i[2])/(1+o)];console.log(s);const l=Pr.newInstance();l.setInputConnection(this.cgqreader.getOutputPort());const u=$r.newInstance();u.setPosition(s[0],s[1],s[2]),u.getProperty().setColor(wz),u.setMapper(l),u.setScale(.3,.3,.3),this.pmpActors.push(u),this.pmpActors.forEach(c=>{this.renderer.addActor(c)}),this.renderWindow.render()}showpump(){this.pmpActors.forEach(e=>{this.renderer.addActor(e)}),this.renderWindow.render()}removepump(){this.pmpActors.forEach(e=>{this.renderer.removeActor(e)}),this.renderWindow.render()}delpump(){this.removepump(),this.pmpActors=[]}addSensor(e,n){let r=this.pipeByPid(e,n),a=this.pointByPipeNodeId(r.snId),i=this.pointByPipeNodeId(r.enId),o=n/(1-n),s=[(a[0]+o*i[0])/(1+o),(a[1]+o*i[1])/(1+o),(a[2]+o*i[2])/(1+o)];const l=Pr.newInstance();l.setInputConnection(this.cgqreader.getOutputPort());const u=$r.newInstance();u.setPosition(s[0],s[1],s[2]),u.getProperty().setColor(wz),u.setMapper(l),u.setScale(.1,.1,.1),this.cgqActors.push(u)}showSensor(){this.cgqActors.forEach(e=>{this.renderer.addActor(e)}),console.log("看看谁先执行"),this.renderWindow.render()}removeSensor(){this.cgqActors.forEach(e=>{this.renderer.removeActor(e)}),this.renderWindow.render()}delSensor(){this.removeSensor(),this.cgqActors=[]}addSoures(e,n){let r=this.pipeByPid(e),a=this.pointByPipeNodeId(r.snId),i=this.pointByPipeNodeId(r.enId),o=n/(1-n),s=[(a[0]+o*i[0])/(1+o),(a[1]+o*i[1])/(1+o),(a[2]+o*i[2])/(1+o)];this.initSoure(s[0],s[1],s[2])}initSoure(e,n,r){const a=Pr.newInstance();a.setInputConnection(this.soureReader.getOutputPort());const i=$r.newInstance();i.setPosition(e,n,r),i.getProperty().setColor(Dw),i.setMapper(a),i.rotateZ(180),i.setScale(.3,.3,.3),this.soureActors.push(i)}showSoure(){this.soureActors.forEach(e=>{this.renderer.addActor(e)}),this.renderWindow.render()}removeSoure(){this.soureActors.forEach(e=>{this.renderer.removeActor(e)}),this.renderWindow.render()}initCheckNodes(e){e.forEach(n=>{let r=this.pipeByPid(n.pid),a=n.site,i=this.pointByPipeNodeId(r.snId),o=this.pointByPipeNodeId(r.enId),s=a/(1-a),l=[(i[0]+s*o[0])/(1+s),(i[1]+s*o[1])/(1+s),(i[2]+s*o[2])/(1+s)];this.initjc(l[0],l[1],l[2])})}initjc(e,n,r){const a=Pr.newInstance();a.setInputConnection(this.jcreader.getOutputPort());const i=$r.newInstance();i.setPosition(e,n,r),i.getProperty().setColor(rft),i.setMapper(a),i.setScale(.2,.2,.2),this.jcdActors.push(i)}showjc(){this.jcdActors.forEach(e=>{this.renderer.addActor(e)}),this.renderWindow.render()}removejc(){this.jcdActors.forEach(e=>{this.renderer.removeActor(e)}),this.renderWindow.render()}addpipsite(e,n){console.log(1111);let r=this.pipeByPid(e);if(this.actorpipsites.length==0){const u=$r.newInstance(),c=vD.newInstance({center:[0,0,0],radius:4}),f=Pr.newInstance();f.setInputConnection(c.getOutputPort()),u.setMapper(f),u.getProperty().setColor(lh),this.actorpipsites.push(u)}const a=this.actorpipsites[0];let i=this.pointByPipeNodeId(r.snId),o=this.pointByPipeNodeId(r.enId),s=n/(1-n),l=[(i[0]+s*o[0])/(1+s),(i[1]+s*o[1])/(1+s),(i[2]+s*o[2])/(1+s)];a.setPosition(l),this.renderer.addActor(a),this.renderWindow.render()}addpipsite2(e,n){let r=this.pipeByPid(e);if(this.actorpipsites.length==0&&addpipsite(e,n),this.actorpipsites.length==1){const u=$r.newInstance(),c=vD.newInstance({center:[0,0,0],radius:4}),f=Pr.newInstance();f.setInputConnection(c.getOutputPort()),u.setMapper(f),u.getProperty().setColor(lh),this.actorpipsites.push(u)}const a=this.actorpipsites[1];let i=this.pointByPipeNodeId(r.snId),o=this.pointByPipeNodeId(r.enId),s=n/(1-n),l=[(i[0]+s*o[0])/(1+s),(i[1]+s*o[1])/(1+s),(i[2]+s*o[2])/(1+s)];a.setPosition(l),this.renderer.addActor(a),this.renderWindow.render()}clearpipsite(){this.actorpipsites.forEach(e=>{this.renderer.removeActor(e)})}safetypath(e){this.renderWindowWith.resize(),this.wayspath=e;let n=[],r=[];this.wayspathActors=[];for(let a=0;a<this.wayspath.length-1;a++)n.push(this.wayspath[a]);for(let a=1;a<this.wayspath.length;a++)r.push(this.wayspath[a]);for(let a=0;a<r.length;a++){const i=gD.newInstance();let o=n[a],s=r[a],l=this.pointByPipeNodeId(o.nid),u=this.pointByPipeNodeId(s.nid),c=[parseFloat(l[0]),parseFloat(l[1]),parseFloat(l[2])],f=[parseFloat(u[0]),parseFloat(u[1]),parseFloat(u[2])];i.setPoint1(c),i.setPoint2(f),i.setResolution(12);const d=$r.newInstance(),h=Pr.newInstance();d.setMapper(h),d.getProperty().setLineWidth(3),d.getProperty().setColor(cf);const p={base:0,center:f,height:9,radius:5,resolution:8,direction:[f[0]-c[0],f[1]-c[1],f[2]-c[2]]},v=M_.newInstance(p),g=Pr.newInstance();g.setInputConnection(v.getOutputPort());const y=$r.newInstance();y.setMapper(g),y.getProperty().setColor(cf),this.wayspathActors.push(y),h.setInputConnection(i.getOutputPort()),this.wayspathActors.push(d)}this.wayspathActors.forEach(a=>{this.renderer.addActor(a)}),this.renderWindow.render()}safetypathremove(){this.wayspathActors.forEach(e=>{this.renderer.removeActor(e)}),this.renderWindow.render()}waysInit(e){this.renderWindowWith.resize(),this.ways=e,this.ways.forEach(n=>{let r=[],a=[];for(let i=0;i<n.nrows.length-1;i++)r.push(n.nrows[i]);for(let i=1;i<n.nrows.length;i++)a.push(n.nrows[i]);for(let i=0;i<a.length;i++){const o=gD.newInstance();let s=r[i],l=a[i],u=[parseFloat(s.x),parseFloat(s.y),parseFloat(s.z)],c=[parseFloat(l.x),parseFloat(l.y),parseFloat(l.z)];o.setPoint1(u),o.setPoint2(c),o.setResolution(12);const f=$r.newInstance(),d=Pr.newInstance();f.setMapper(d),f.getProperty().setLineWidth(3),n.safety=="safety"?f.getProperty().setColor(cf):n.safety=="danger"&&f.getProperty().setColor(Dw);const h={base:0,center:c,height:9,radius:5,resolution:8,direction:[c[0]-u[0],c[1]-u[1],c[2]-u[2]]},p=M_.newInstance(h),v=Pr.newInstance();v.setInputConnection(p.getOutputPort());const g=$r.newInstance();g.setMapper(v),n.safety=="safety"?g.getProperty().setColor(cf):n.safety=="danger"&&g.getProperty().setColor(Dw),this.wayActors.push(g),d.setInputConnection(o.getOutputPort()),this.wayActors.push(f)}}),this.wayActors.forEach(n=>{this.renderer.addActor(n)}),hr.renderWindow.render()}initMode(e){this.renderWindowWith=XT.newInstance(),this.renderWindowWith.setContainer(e),this.renderer=this.renderWindowWith.getRenderer(),this.renderer.setBackground(0,0,0,0),this.renderWindow=this.renderWindowWith.getRenderWindow(),this.lastActor=null,this.nodeActors=[],this.pipeActors=[],this.interactor=this.renderer.getRenderWindow().getInteractor(),this.apiSpecificRenderWindow=this.interactor.getView(),this.hardwareSelector=this.apiSpecificRenderWindow.getSelector(),this.hardwareSelector.setCaptureZValues(!0),this.hardwareSelector.setFieldAssociation(RN.FIELD_ASSOCIATION_CELLS),document.addEventListener("contextmenu",vy,function(n){n.preventDefault()}),this.arrowActors=[]}generateTicks(e){return n=>{const r=n.getLastTickBounds(),a=x0().domain([0,1]).range([r[0],r[1]]),o=a.ticks(e).map(u=>a(u));BT({minus:"-"});const s=a.tickFormat(o[0],o[o.length-1],e),l=o.map(s).map(u=>Number(parseFloat(u).toPrecision(12)).toPrecision());n.setTicks(o),n.setTickStrings(l)}}addArrow(e){this.clearArrow(),this.arrowActors=[],e.forEach(n=>{n.points.forEach(r=>{const a={center:[r.x,r.y,r.z],height:10,radius:2,resolution:6,direction:[n.vector[0],n.vector[1],n.vector[2]],capping:!0},i=M_.newInstance(a),o=Pr.newInstance();o.setInputConnection(i.getOutputPort());const s=$r.newInstance();s.setMapper(o),s.getProperty().setColor(Dw),this.arrowActors.push(s)})});for(let n=0;n<this.arrowActors.length;n=n+30){let r=this.arrowActors[n];this.renderer.addActor(r)}this.renderWindow.render()}clearArrow(){this.arrowActors&&this.arrowActors.forEach(e=>{this.renderer.removeActor(e)})}modelInit(e,n){this.renderWindowWith.resize(),this.validNodes=e,this.pipes=n,this.modelCreate()}modelCreate(){console.log("modelInit..");const e=this.polyData.getPoints(),n=this.polyData.getLines();this.validNodes.forEach(s=>{e.insertNextPoint(parseFloat(s.x),parseFloat(s.y),parseFloat(s.z))}),this.pipes.forEach(s=>{let l=this.indexIdByPipeNodeId(s.snId),u=this.indexIdByPipeNodeId(s.enId);n.insertNextCell([l,u])});const r=vD.newInstance({center:[0,0,0],radius:4}),a=Pr.newInstance();a.setInputConnection(r.getOutputPort()),this.validNodes.forEach(s=>{const l=$r.newInstance();l.setMapper(a),l.setPosition(parseFloat(s.x),parseFloat(s.y),parseFloat(s.z)),l.getProperty().setColor(lh);const u={};u.node=s,u.actor=l,this.nodeActors.push(u)}),this.pipes.forEach(s=>{const l=gD.newInstance();let u=this.pointByPipeNodeId(s.snId),c=this.pointByPipeNodeId(s.enId);l.setPoint1(u),l.setPoint2(c),l.setResolution(12);const f=$r.newInstance(),d=Pr.newInstance();f.setMapper(d),f.getProperty().setLineWidth(3),f.getProperty().setColor(lh),d.setInputConnection(l.getOutputPort());const h={};h.pipe=s,h.actor=f,this.pipeActors.push(h)}),this.modelShow(),this.renderer.resetCamera();const i=this.renderer.getActiveCamera();console.log("透视或平行相机",i.getParallelProjection()),console.log("水平视角使用",i.getUseHorizontalViewAngle()),console.log("平行位置投影比例",i.getParallelScale()),console.log("窗口中心位置",i.getWindowCenter()),console.log("相机视角",i.getViewAngle()),console.log("摄像头位置",i.getPosition()),console.log("相机焦点",i.getFocalPoint()),i.setFocalPoint(495544.15625,540355425e-2,467.62999725341797),console.log("相机方向",i.getViewUp()),console.log("近远平面",i.getClippingRange());const o=KT.newInstance();o.setColor(1,1,1),o.setIntensity(3),this.renderer.addLight(o)}modelClearShow(){this.renderer.removeActor(this.actor),this.renderer.removeActor(this.actor2),this.nodeActors.forEach(e=>{this.renderer.removeActor(e.actor)}),this.pipeActors.forEach(e=>{this.renderer.removeActor(e.actor)})}wayClearShow(){this.wayActors.forEach(e=>{this.renderer.removeActor(e)})}modelShow(){this.modelClearShow(),this.isSelectNode||this.renderer.addActor(this.actor2),this.isSelectPipe||this.renderer.addActor(this.actor),this.isSelectNode&&this.nodeActors.forEach(e=>{this.renderer.addActor(e.actor)}),this.isSelectPipe&&this.pipeActors.forEach(e=>{this.renderer.addActor(e.actor)}),this.initPname(),this.renderer.addActor(this.axesActor)}selectNodes(){this.isSelectNode=!0,this.isSelectPipe=!1,this.modelShow(),document.addEventListener("mousemove",vy),this.renderWindow.render()}selectPipes(){this.isSelectNode=!1,this.isSelectPipe=!0,document.addEventListener("mousemove",vy),this.modelShow(),this.renderWindow.render()}selectNoting(){this.isSelectNode=!1,this.isSelectPipe=!1,this.modelShow(),this.renderWindow.render()}indexIdByPipeNodeId(e){for(let n=0;n<this.validNodes.length;n++)if(this.validNodes[n].id==e)return n;return 0}pipeByPid(e){console.log("pipeByPid",this.pipes.length);for(let n=0;n<this.pipes.length;n++){const r=this.pipes[n];if(r.id==e)return r}}pointByPipeNodeId(e){for(let n=0;n<this.validNodes.length;n++){const r=this.validNodes[n];if(r.id==e)return[parseFloat(r.x),parseFloat(r.y),parseFloat(r.z)]}return 0}clearAllShowGj(){this.renderer.addActor(this.gjActor),this.renderer.addActor(this.gjscalarBarActor),this.renderer.removeActor(this.jgActor),this.renderer.removeActor(this.scalarBarActor),this.isSelectNode=!1,this.isSelectPipe=!1,this.wayClearShow(),this.modelClearShow(),this.isJg=!0,document.removeEventListener("mousemove",vy)}clearModeAddJg(){this.renderer.addActor(this.jgActor),this.renderer.addActor(this.scalarBarActor),this.isSelectNode=!1,this.isSelectPipe=!1,this.renderer.removeActor(this.gjActor),this.renderer.removeActor(this.gjscalarBarActor),this.wayClearShow(),this.modelClearShow(),this.isJg=!0,document.removeEventListener("mousemove",vy)}clearJgAddMode(){this.renderer.removeActor(this.scalarBarActor),this.renderer.removeActor(this.jgActor),this.renderer.removeActor(this.gjActor),this.renderer.removeActor(this.gjscalarBarActor),this.clearArrow(),this.modelShow(),this.wayClearShow(),this.isJg=!1}clearAll(){this.renderer.removeActor(this.jgActor),this.renderer.removeActor(this.scalarBarActor),this.renderer.removeActor(this.gjActor),this.renderer.removeActor(this.gjscalarBarActor),this.clearArrow(),this.modelClearShow(),this.wayClearShow(),this.renderWindow.render()}selectByNodeId(e){console.log("selectByNodeId",e),this.lastActor!=null&&this.renderer.removeActor(this.lastActor),this.nodeActors.forEach(n=>{if(e==n.node.id){n.actor.getProperty().setColor(cf),this.lastActor=n.actor,this.selectObj=n.node,this.renderer.addActor(this.lastActor),this.renderWindow.render();return}})}selectByPipeId(e){console.log("selectByPipeId",e),this.lastActor!=null&&this.renderer.removeActor(this.lastActor),this.pipeActors.forEach(n=>{if(e==n.pipe.id){n.actor.getProperty().setColor(cf),this.lastActor=n.actor,this.selectObj=n.pipe,this.renderer.addActor(this.lastActor),this.renderWindow.render();return}})}}function eft(t){if(hr.interactor.isAnimating())return;const[e,n]=tft(t);hr.hardwareSelector.getSourceDataAsync(hr.renderer,e,n,e,n).then(r=>{r&&nft(r.generateSelection(e,n,e,n))})}function tft(t){var e=t.pageX,n=t.pageY;hr.epageX=e,hr.epageY=n;const{clientX:r,clientY:a}=t,[i,o]=hr.apiSpecificRenderWindow.getSize(),s=Math.round(i*r/window.innerWidth),l=Math.round(o*(1-a/window.innerHeight));return[s,l]}function nft(t){if(!t||t.length===0){hr.lastActor==null;return}const{worldPosition:e,compositeID:n,prop:r,propID:a,attributeID:i}=t[0].getProperties();if(hr.lastActor!=null&&(hr.lastActor.getProperty().setColor(lh),hr.renderWindow.render()),hr.nodeActors.forEach(o=>{r==o.actor&&(hr.selectObj=o.node,r.getProperty().setColor(cf),hr.lastActor=r)}),hr.pipeActors.forEach(o=>{r==o.actor&&(hr.selectObj=o.pipe,r.getProperty().setColor(cf),hr.lastActor=r)}),hr.isJg){if(hr.hardwareSelector.getFieldAssociation()!==RN.FIELD_ASSOCIATION_POINTS){const o=r.getMapper().getInputData();o.getCells()||o.buildCells();const s=o.getCellPoints(i);if(s){const l=s.cellPointIds;Array.from(l).map(c=>o.getPoints().getPoint(c));const u=o.getPointData().getScalars().getData();console.log(u[l[0]]),hr.selectJgPointId=l[0]}}}else hr.renderWindow.render()}async function Mw(t){try{const e=await fetch(t,{method:"GET",responseType:"arraybuffer"});if(!e.ok)throw new Error(`HTTP error! status: ${e.status}`);const n=await e.arrayBuffer(),a=new TextDecoder().decode(n);return n}catch(e){throw console.error("Error fetching the file:",e),e}}const vy=cN(eft,20),lh=[1,.2,1],cf=[.1,.8,.1],Dw=[1,0,0],rft=[.5,.2,.1],wz=[.2,.5,0],aft=[1,1,1],hr=new Jct;function ift(t){return{all:t=t||new Map,on:function(e,n){var r=t.get(e);r?r.push(n):t.set(e,[n])},off:function(e,n){var r=t.get(e);r&&(n?r.splice(r.indexOf(n)>>>0,1):t.set(e,[]))},emit:function(e,n){var r=t.get(e);r&&r.slice().map(function(a){a(n)}),(r=t.get("*"))&&r.slice().map(function(a){a(e,n)})}}}const W2=ift(),oft={class:"l_Dialog bou tablebk"},sft={class:"common-layout",style:{margin:"0"}},lft={class:"demo-collapse"},uft={class:"l_Dialog"},cft={class:"classtab"},fft={class:"asides_content"},dft={class:"jc_content tablecolor jc_content"},hft={class:"font12 my_content1"},pft={class:"btncolor tablefocus bmar"},vft=R("p",null,"暂无数据",-1),gft={class:"dialog-footer footer_div l_btn"},yft={class:"footerbtn flex1"},mft={class:"borderimg"},bft={class:"footerbtn flex1"},Sft={class:"borderimg"},wft={class:"footerbtn flex1"},xft={class:"borderimg"},_ft={class:"my-header"},Cft=["id"],Tft={class:"demo-input-suffix firsttitle magintop guand_1"},Eft={class:"btn2"},Mft={class:"input"},Dft={class:"dialog-footer footer_div l_btn"},Aft={class:"footerbtn flex1"},kft={class:"borderimg"},Rft={class:"footerbtn flex1"},Lft={class:"borderimg"},Oft={class:"my-header"},Vft=["id"],Nft={class:"delecttitle"},Ift={class:"spanclad"},Bft={class:"dialog-footer footer_div l_btn"},$ft={class:"footerbtn flex1"},Pft={class:"borderimg"},Fft={class:"footerbtn flex1"},zft={class:"borderimg"},Uft={__name:"MenuSensor",setup(t,{expose:e}){let n=B(),r=B(!0),a=B(!1),i=B(!1),o=B(!1);B("Fire");const s=B(100);let l=B(["1","2"]),u=B("");B("first");let c=B(200),f=B([]),d=B({}),h=B(),p=B(),v=B({pid:0,seid:0,site:0,type:"温度传感器",senobj:""}),g=B({selectstr:"",site:""});B("");const y=({row:k,rowIndex:L})=>L%2!=0?"evenRow":"oddRow",m=k=>{d.value=k,r.value=!0,console.log(k)},S=()=>{JSON.stringify(d.value)=="{}"?wt.error("你还没有选中删除的项目"):(o.value=!0,h.value=d.value.pname)},w=()=>{const k={transCode:"D10012",seid:d.value.seid};Rn(k).then(L=>{wt({message:"传感器信息删除成功",type:"success"}),_()}).catch(L=>{wt.error(L.returnMsg)})};Ut(()=>{C()});const C=()=>{Rn({transCode:"D10010",type:"Fire"}).then(L=>{f.value=L.rows,d.value={}}).catch(L=>{wt.error(L.returnMsg)})},_=()=>{hr.delSensor(),Rn({transCode:"D10010",type:"Fire"}).then(L=>{f.value=L.rows,d.value={},console.log(L.rows),L.rows.forEach(I=>{console.log(1111),hr.addSensor(I.pid,I.site)}),hr.showSensor()}).catch(L=>{wt.error(L.returnMsg)})},x=()=>{u.value="添加",p.value=u.value,r.value=!1,i.value=!0,v.value.seid="",v.value.pid="",v.value.type="",v.value.site=0,g.value.selectstr="",d.value={},W2.emit("myaddsg",!0)},T=()=>{const k={transCode:"D10011",seid:v.value.seid,pid:v.value.pid,site:v.value.site,type:v.value.type};Rn(k).then(L=>{wt({message:"传感器信息"+p.value+"成功",type:"success"}),i.value=!1,_()}).catch(L=>{const I=/字段\d*/g;let P=L.returnMsg.replace(I,"");wt.error(P)})},M=()=>{u.value="修改",p.value=u.value,JSON.stringify(d.value)=="{}"?wt.error("你还没有选中修改的项目"):(v.value.seid=d.value.seid,v.value.pid=d.value.pid,v.value.site=d.value.site,v.value.type=d.value.type,g.value.selectstr=d.value.pname,i.value=!0,W2.emit("myaddsg",!0))},E=()=>{n.value.searchtaggd="",n.value.dialogVisiblenode=!0,n.value.pipelinedata("")},A=k=>{v.value.pid=k.id,g.value.selectstr=k.name,d.value.pid=k.id};return e({sendialogVisible:a}),(k,L)=>{const I=$e("el-icon"),P=$e("el-table-column"),F=$e("el-table"),$=$e("el-collapse-item"),W=$e("el-collapse"),V=$e("el-image"),z=$e("el-input"),K=$e("el-form-item"),Z=$e("el-input-number"),oe=$e("el-form"),ge=$e("el-aside");return G(),re("div",oft,[R("div",sft,[Ft(N(ge,{width:"480px",class:"L_aside L_aside1 asideg asidegbg leftbgimg1"},{default:j(()=>[R("div",lft,[N(W,{modelValue:b(l),"onUpdate:modelValue":L[4]||(L[4]=ie=>ft(l)?l.value=ie:l=ie),accordion:""},{default:j(()=>[N($,{name:"1",class:"imgneon"},{title:j(()=>[N(I,{class:"iconimg Frame3",fit:"contain"}),Be(" 传感器信息"),N(I,{class:"header-icon"})]),default:j(()=>[R("div",uft,[R("div",cft,[R("div",fft,[R("div",dft,[R("div",hft,[R("div",pft,[N(F,{data:b(f),style:{width:"480px"},"max-height":b(c),"highlight-current-row":b(r),"row-class-name":y,onRowClick:L[0]||(L[0]=ie=>m(ie)),"header-cell-style":{background:"rgba(13, 22, 57, 0) "}},{empty:j(()=>[vft]),default:j(()=>[N(P,{type:"index",label:"编号",width:"70"}),N(P,{prop:"type",label:"类型"}),N(P,{prop:"pname",label:"所在巷道"}),N(P,{prop:"site",label:"位置"})]),_:1},8,["data","max-height","highlight-current-row","header-cell-style"])])]),R("div",gft,[R("div",yft,[R("div",mft,[N(b(ct),{onClick:L[1]||(L[1]=ie=>{x()})},{default:j(()=>[Be("添加")]),_:1})])]),R("div",bft,[R("div",Sft,[N(b(ct),{onClick:L[2]||(L[2]=ie=>M())},{default:j(()=>[Be(" 修改 ")]),_:1})])]),R("div",wft,[R("div",xft,[N(b(ct),{onClick:L[3]||(L[3]=ie=>S())},{default:j(()=>[Be(" 删除 ")]),_:1})])])])])])])])]),_:1})]),_:1},8,["modelValue"]),N(b(Mr),{modelValue:b(i),"onUpdate:modelValue":L[11]||(L[11]=ie=>ft(i)?i.value=ie:i=ie),"align-center":"","append-to-body":!0,width:"400",class:"dialog_class bgcolor tianjia foter_l tianjia"},{header:j(({titleId:ie,titleClass:Q})=>[R("div",_ft,[N(V,{src:b(Cr),fit:"contain"},null,8,["src"]),R("h4",{id:ie,class:Y(Q)},We(b(u)),11,Cft)])]),default:j(()=>[N(oe,{class:"demo-form-inline",inline:!0,model:b(v)},{default:j(()=>[N(K,{label:"类型","label-width":s.value},{default:j(()=>[N(z,{modelValue:b(v).type,"onUpdate:modelValue":L[5]||(L[5]=ie=>b(v).type=ie),maxlength:"15",class:"w-50 m-2",placeholder:"请输入"},null,8,["modelValue"])]),_:1},8,["label-width"]),R("div",Tft,[N(K,{label:"巷道名称","label-width":s.value},{default:j(()=>[N(z,{modelValue:b(g).selectstr,"onUpdate:modelValue":L[6]||(L[6]=ie=>b(g).selectstr=ie),disabled:"",class:"w-50 m-2",placeholder:"巷道名称"},null,8,["modelValue"])]),_:1},8,["label-width"]),R("div",Eft,[N(b(ct),{type:"primary",onClick:L[7]||(L[7]=ie=>{E()})},{default:j(()=>[Be("选择巷道")]),_:1})])]),R("div",Mft,[N(K,{label:"位置","label-width":s.value},{default:j(()=>[N(Z,{modelValue:b(v).site,"onUpdate:modelValue":L[8]||(L[8]=ie=>b(v).site=ie),min:0,max:1,precision:2,step:.1,"controls-position":"right",class:"w-50 m-2",placeholder:"位置"},null,8,["modelValue"])]),_:1},8,["label-width"])])]),_:1},8,["model"]),R("div",Dft,[R("div",Aft,[R("div",kft,[N(b(ct),{onClick:L[9]||(L[9]=ie=>ft(i)?i.value=!1:i=!1)},{default:j(()=>[Be("取消")]),_:1})])]),R("div",Rft,[R("div",Lft,[N(b(ct),{onClick:L[10]||(L[10]=ie=>{T()})},{default:j(()=>[Be(" 确定 ")]),_:1})])])])]),_:1},8,["modelValue"]),N(b(Mr),{modelValue:b(o),"onUpdate:modelValue":L[14]||(L[14]=ie=>ft(o)?o.value=ie:o=ie),"align-center":"","append-to-body":!0,width:"400",class:"dialog_class bgcolor tianjia"},{header:j(({titleId:ie,titleClass:Q})=>[R("div",Oft,[N(V,{src:b(Cr),fit:"contain"},null,8,["src"]),R("h4",{id:ie,class:Y(Q)},"删除框",10,Vft)])]),default:j(()=>[R("h4",Nft,[Be(" 是否确认删除: "),R("span",Ift,We(b(h)),1)]),R("div",Bft,[R("div",$ft,[R("div",Pft,[N(b(ct),{onClick:L[12]||(L[12]=ie=>ft(o)?o.value=!1:o=!1)},{default:j(()=>[Be("取消")]),_:1})])]),R("div",Fft,[R("div",zft,[N(b(ct),{onClick:L[13]||(L[13]=ie=>{w(),ft(o)?o.value=!1:o=!1})},{default:j(()=>[Be(" 确定 ")]),_:1})])])])]),_:1},8,["modelValue"]),N(Pb,{ref_key:"pipeline",ref:n,selectstr:b(g).selectstr,onPipelineapi:A},null,8,["selectstr"])])]),_:1},512),[[cn,b(a)]])])])}}},ED="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAAUCAYAAADC1B7dAAAAAXNSR0IArs4c6QAACLhJREFUWEd1V3twVNUZ/74bsnmBSRCS8EiACCIWKIzQ4uC0yCgWKELLqExbB3AGsQMEC1apdpo4tdPOVLH8UbWCVqY+WhnEYspjJAXE8CahAZKQQHazSchmN7t7N7t7797H3q9zzn3s3UTvzs4599zv+873Pr+D8A1PiG5tFiCnQgABwPqzGZvbP3tuspur3zbqhgqSLoGkSiDpCWtkcwlSfD3h+s7WkyDbaw6fBCkXXUqXfFc3+/cPVx+HLwSpY14irTSfSVwnBAQiQAAEAdF5F1Agtm6OhIyO0TgjCpwWTF7SDA11QwMtrYJm6KAbGqlpBTVDAz2tARs1QyfNUEBLa+w7slEzNMbLaFA1VNLSXA5paRUHvG16Qoot8NaI/3PbMMKgQbp96J+Dp9c0xJuIuJrmw+dMd/Yg/2QpzIn4OxmAFoXJZK2bhlkPW2PvfGTUZNIREw/kEFqOdPay+S3eiP8W+FvOn/bWiA9/q0EsOnFdaf61bx9okCa+mdsqgylibZlR1lSdGUnsK9OKzc2paQwxRbnCIzKcrzgyTVKTj62bck0RlpMYLQEYBJ1nDqOajD/StT3WkPGXawcWnY8GTq85Ll5hqWS6mynEZAnAlswX4vlnbUl8Lx4986MdUmQ8zOeWT7jWJrcruramlkxObelsh9nyKnJetpW1STzUA3eav7rRFRXnQx3oLtcAsOgMKPHmXbf3g0Z6JqWGp43tseGuttMos+44AlhkBTOdWFo6qTgsjbJEMmKTNkPlnloO7G06gVI0uMG3XeQNwiEfJO/Jt/xHl5wWr9nBMevCqhVOiEAby1fhp6ETkDRkx+is3AeAteOXQmvSC22Sl6tgZ21RToG1pSuPLUekKQ0pQ4GHSxfClXgbxPSEWYYEuK5sGfjVIDXF2ziNzc1GZWgQ+pu+7DOi4gxfHaS4nlHq+WFPKnhqR9vfQQMrOpYho3MKYfm4B027iHBO0T2QJgPaZB/vcCFVhNNik50dtHHCKsjHXJxeUAl/9n8IAS1MLB1ZXe2b+QpeTXQ45WC7MwcEuCX3wpFII22oWInHIuepQMiHHBBYzdKGihV4LHKBqvLK8OPgccuRVn0R4GDnOUqGul/1bRNf5QZFyHfyL13/WdIQaTHTwmrCrDIneMbBlsq1cDBwEsfm3gUziirhQuwGq1deuM9MXInbbr4JBUIe1FQ9AYOaSO/fqYcKz9340pSfQ/1gI5yIXuGVtOfeHfi3vs9pcckc2Nt3mDthaekDWJlfTvv7j8Akz3hcP3E5XBxqpUKhAD2Yy2lWjFsER8PneeYcCDXwfbmlSNxZeioOwatHxJSqz0AWHb8cOrX12j7SjLSVhHb5AXggF8fnlVCfEoIXp/4MDwe/hvZkN+9n7JlRWAmFggd3TF0Hl2Pt8LV4jRcu248p9PTEZSinFXi54114c9Y22NK6m56qWIqzx1TTgYFTsGHCctzV8Q6opFF14STYOGk5XBTbsNQzhsaOGoPtkp8WFX8H6m69j4tL51IjO3Yyzd3pG3FfM8oDN9/BCPlfOTPY9trvbx60G6jTTRj14+UPwUOlc6Asr5SlAPQrYS7k3qJK6E0FQUorsLennkQ9Ad8vnsW/PTpuAV6KtVNUjeMdJQydyV5I6BK8PWcHPHd9N9/nFxMfxeemrIYnm2rhjhI2Wz4Cbar8MdaHztGmyatwt/dTeLZqFY3NHYP1wXMwpaAC/hVoIPu8y7RUAFXsw0RX43WMkrfEIMG7/vJbxX1yxO6xmfPCOhT3z98Fv+v4gLqlAHiEXNg7dyduanmD1LTOe3tZfilV5ZfxsD05cQk0hJsprA7xBL4s3uSGvjt3Jz7b8gbNueseeH7aWvwicBZWViyiXa17MazFuFGbp66CLwLnoKb6pzSkSagYKuTneGhC3ljcceNtUA0tc2A7XQ8gcfNL1OTwGq5AjPpqj/ZfrftD+yEzO+1zjbdG80RbUDwTn5j0A4hocarMH4/v+Y9Rc6zTETm9aDLcP2YKI8cflS+E89E2ELUEbwCHB85yZd+b/wIcCjTSyrLv4W/bPgBmxOLS2bi1ejU83fQn0ikNL81YB4U5eXCw7wz2yEGYPnoSLBp7P8V1CVpiXdge7wHJSGU1Bj3qQ7Xv0vnbNbEHrS7nLQHyeJ86u6e4Vw6bR58DUUyD7htdhUvL5sHCkpkQ1RLA2uwnvaeoKdqJOYJA5Z5S58zYUv04UwgCqSivScXQKKzG4OMFv8GD/Y00oIig6IpzZJR6RkNfKkL3jZ6Md3uK4Ua8m1aUL0BRS5IAAk4rqoA7KTPVX+88QCzNM0d0mpTOI2iklXkM1zlC4xSqre+9Uld7/YCNrbgybLM93/0l9kghqg9chHPhVo4ephVV0ObqFfBZbyP65SA9M3UZbwQmysl+upNB+Kj3JD1W9gAWjsq3vMsgToaeOenUYIsFecw0ycNcfG32eqht/Qetr3oEZxdPha3NfzXBhykFDbGDjFDLv7tqYj/hC/bWrJYEo8i7+qvXi3ukwQx0cgERG8K4IUimzWcDFg6ZHLjknKcObLHhj13YvDOaaeGGRhmAbANcE9gTRxHskO05njJSynzfC/H2LIPYS5LCtZ/7r9S9fPUTVksWIswCVsOdn427+Klv6exG1DY6N51qY1Wr5dqo0yXackYWlB0Ordj1RWwhGurc46sZ+pXNnZUeUYqWjDLI+1jDH4u7EyErfBmDRsA113XCDaNtZGBj0JFwzDQqg3Htu5OllhUo+4rhACUb/BIipuM0auC/MZKVWb4Xk4FvNIgtyhSr/az7Uu3OSx+aSNslZMScQ32OGDKA083jON2lsPs+5I53Ft+IMhxx98qLXEBM9T/v2y7ucYsZwcmiVAi53riqlPCbqn21RoHSRhplXQZZl0DW2N81t9dc31O6TOyaLWsSmvQSOPzsmq3JIGnsGi6Dmlaz09mCNVYDMC+C7jIlLUCR2DQGSN2M/wem4lEkToLqMQAAAABJRU5ErkJggg==",Gft="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAAUCAYAAADC1B7dAAAAAXNSR0IArs4c6QAACMFJREFUWEd1VwtwVFcZ/v67r4SE7DYQCCmR0KE4PBSsShDrILWA2A5SHCtTHR/jYKFaZUQ71rYTHKojtR2GcTqFxE7r9Cl9YKCp0A4NtCMIVJdXgABhkxCSJa/dzb7v7r2/nnPu3XsD9c7cufec/z/n/O//O4RPeNbv6/5uwEeTy70aAh4Pyr1AwKch4NVQ7vEg4AXKPRoE3ecDyr0elHsg6RN8GvyahoDPgwkWnwEgnTeRyhtI54tI5U2k8waycg5I6+JbQLpgIpU11FfwyHnF56xXtIzOfYkdd7x1o/h048QP2yIL/Uxh02R4NZKvz2N9S2ONvcRkz0seQfNYX2ss5zTigsmkF03ki4yCwchb/2JOL7J8xZxuqH85lv+CrtbZtLzBrBdN6urLFceS+hw8v+SyW4ebFHqwrXtPJm+uSRdMBgOQHASwGKgRSFIAtsekxiaTNaPOIGueTbKXMsByIPaQ61nxyX+ydhRciq10lnWwnCfizp4sOi6nD6C5cdX/VWh9W2ShBxTujxXAUhglZ+lhJqGROtumS2UtAR0hhGhsC01gYia1p6WrpZE9UrsSWCgv+Zx9be3dvMK+HxyPUybLX0XLosPOvi55H3q3d08sXVgTzxosFkjhbSVIyKdUtIWzx9IZNwgslCQi5VdJV94QSkk3S/mlY5TrbX1KCrvs6D7T8pCgXhvScbozfQwtjV+6SaGH2iILibTwxYGcEFq53rRCwyWAPHrcY0WtsKxGJUPIyBKia2C5j/jKfaQX7WBVFrKFLFnMOsDhUhJIzVX0q82Jj3ckaSxpfg8ti16xyGrxL/b37umP6WsGk0UuHWALLoVQOREs82AsW3TCx2Uxm13wJLKGnTaWWx0r+DWC36shpRuOMjcZiVFT4UMiWyDdvDH2SwojnjJw6kKyC5eyc3BoWVEKuqktstDQtHA4ki6FgGNNV3ID2Lqijp49OsQDyYIMM9t00rhWOP1h5a302wPX3IaR5J8vmULPHh3EytlBFsF38HKStyyvo1f+M4KOwVzJ8xsXT8Fz/xqE4H+3M4HLI3mnCIk0s0JQFROmjq4M4knjN2hp3CYF+uX7V/d0X8+t6Rst3BBOwJdnVmLdgmoaTBWkjh4iGFZmeDVNCrblwDXHvkT81D3TafuHUQyMFbB8dhDnB3Msyu7vVtRh+0fXsW5hNY73pujKqM7lXqI7Z07k/Z0JdI3kaOltE/GdBdX428lRrJ4Xwsd9Ge4f02Wh6IvlqWtUt2S0QpeZcrqJ05cyceiZmbTpvchCmJ7wRxeSbJrjs0OMZk3yU2XAy7dNCuD2yQHa1h7lJQ2V8jBh2WlVfmR1g9bMD8mmenE4z/VBH3UO5dAd1/nuWUE8/o+rNKnCi3vnhuQBq+eGsO9cQmWIKCYACgb41fAInlv7KdrbkYAIxpWzq+jMQAb9Vhp0jeh8bjArs/hGy/cO5GgkUfgjPXKw77FoTN8qwq1UKtUS6T3hoW8vqEZrR5zbLyex7Z7p9PbZGM+bWkaTJvikTE8disr9V88NUjxn8trPhCjg1TiaLNCT7/ezIfqT9dQF/fzM6np6PTxSsl6Rids6YrR+cQ2G00W8fTYuFzyyrJbEuReu56wiYIW/K6ftVjmWKlLPQO4C/bo9UltB/vOt/44Hs3nD1TjVr/DK/Npyu4bjR401eOH4MH+xvoJOXE1zWjfpvQsJWTCa759BD7/Zi6fX1GPnkUE8/JWpvOGN7lI/Fvs9+rVamlVTht0nY9wzmie/V+PNS6fSD16L8AQv0X0LqnlebZk8fEHdBERG8kjmDemRVz8ewdlo1mnYroDqvpajXIHXyYXbjg40Xe7Pbfng3JjVIe0qwjSjOsC3TymTBSBU4eXHl9fR3rNxPtyVlOGSzJt8rCeNBz5fLfPrpRPDtPP+Bt74Rjc9uGQKTwxo9Kf2qGw4tVU+PPPNevzsrR5s/cat2Nzax00rp1HrmQSO9aallyv8Gjyaaqq/uqsWe8/EcHFY5Y3AdobpBJvd+9KZIkVHCifR3Pg5qdD29kjIVzEh8pfDw8FYumA1PVVBbOgR8BD9+Vsz8Nfjw/j+osl4pyOOfR0JybN4ZiVvWFJDP34tAsMEmtc14CevC88AT6ysg8ifzX+/ys3rGujpgwM4H83zqnlBPLZiGr18Yhg7jww7PcpGIP/LraZV03l3eBTno1lVTUUFEkGuAWwySLRmBvcP6VQ0cTd2LTpYiu3nw0NNZ3ozW3YfH7UrsQyV+mo/7p0XxIpPV9GOw4N86NIYAl6iR1fUYV5tOdrOxdF5Pc/dIzmqrvTxZ6eV0YY7p2Dpjk67Ggk+Wj4nyHFhyWSBvz4nhHIf0UsnRnjtgltocoWXW0/HyO8jNDZMZIlOiHh2TYBEpRRRYEfXpjd7VGNWZYHSWZMTqWIrmhvvkxM24wvhSKjcWxXZuq8/OJhQJVqQ59eVUcOkMt7fEUdR7ivwnCaLRk2Vj2dNDuDIlbRM2llTyviO+gqcupZBZzTrKkaEMi8JRE0PfKEaH15Jcd+oLoEQoHH9LX7Uh3x0NJJSKEUJ5oKDFky10LLFI2HJaKKYM4HF2NV4apxCYtDaGWs6eim1ZVf7kAta2kjbAeYWNLZ1dtVQJaBC0BYetczprJaYqoS+VSQp+O08km6jSRv0O9BRQGRmyuSZ83ljF1oaN9pr3btgTzgWqqzSIj99uSfYP6q7/GcXiXEFS3rLYlJXDcdEpcuBksYNY62CaXnHsYZT2h0byBalrhhKYQfrMjidMfIoZGbixWXRT1RITP6zJ9l08PxY0+/f6bcFdoWAOxxkdEhLuoNahaSDsh2r2wKrHiehtmUB5XHRYN3Xi9KFwka1lvEVT7HIZBjmk2hZ/ITLteP8LOfbI7FQld8XSWSMkLhSB7yEgEfkgEfC52xBXn+R0U2BEOTXfhXNPWa2+EjNC35GpmAgkxfrTWSsNeKWOl4wu7mrr0TYLl8xEBVQBy8uy7nX/Rdr8RbRdENQYQAAAABJRU5ErkJggg==",MD="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAAUCAYAAADC1B7dAAAAAXNSR0IArs4c6QAAB+hJREFUWEeVV1lsXFcZ/s4dz3i8xYmVxTUmrZsmbWhCgiWrVLR1SyktMaikIOANikAIJBRR8UBVEFULyDwQRThB5aEilVB4KGVtCAipHtPYCSRxTTZnsT3jZbyMM5595t65954fneXeuR4XJO7DzFn+c/7/+/fDUPdRfDiK9p1xGEYnmAEwBvkPMdZzb2yIdb3v0wTnDDAYuFOFaxXhVEtwrRJc/S/mvFqCI9eK/t46On9fnC3Ks3p/6tzFwt6XY3CCENgGQLnpI5RbPcbnJ0iCIY9CDAS5WiCxy0DiX60xsUBEnIn/II3YI5D4gSFoxIxIIFeXq1GNk95T96zn6x14790TWElefvHTQ/jpfwUkrbPl7rh9M9YJqyC4aloFRAovmPsCC6EkFMnY21eIpXHFrw/GE1wqwxDg9XmhGC6u1fcIRXJSvMRNAcUKxQi6cjGFsb8O5qy823P4JLIeqHUWolz8iJtZOObMjPlQtAKlnjwBxJrStLaZEMy3ltrjpBiLM1JQSaMs592pcftGEMKIc97d/tmACXwfIWBy/Ldsaf7C4MDP8eIGQJ51zKund/Dymn9FTYs1Yd6PUf3a+80lkHrrBubeXn0YKPetUxCAqlnAhdhxq2Ka+5/9BaaCioKwjp1OHDMn/6ZcRdhauoF2PGLSs4K+HmSs3EjGlI40dVKuiXsM7U76Tt86aiD5BEJU+ZpcUU7kieHReGxmb59lc1NnTw4M4XkfEMXjUWp348XxUzt4JaMDPuB1pNSovEz6Vp1bgFhkEwtv3U1OJgEWbqo5FrfhFpdhRLcgtOkDYNF2ZkSayUlPgZfTCHUeYM7s2UC0EsLdfaguXED4roPgZp65mZl1ruojJ8B1bVw6+ytmm+WPDpzAPyV8ysV/aC1efbl84y/+QWVmpZ7mfYeJhcIbzC6AWdMxuKVVNO97DtXkRWLhZjQ9eJhV588TWAML73gQhdFjCLVspejupxk5FlhDmNzMHIzWbWBNHQyuDW6XYV59i0LtH0TzgS+xamKUGrY/wLhVgJtdgLCwvXqb8XJKK7WWZe8s36Dp68Mjh47jCUaZ+GaCG8+OvbaZl9Mq3QYzAYDQpi6AhVRGk0lLZjtJ5hZTCLXexcLb94K4A15KUfSex1h+bAjR3U+BymmyFscR3vYAi+76ONz8IrmZBBq275XCGo1tYEYYpcuniFyHbXrkBZiJd0GujUjXAZBZhL02LWPPyc4xcZ/WupcfmPDpKxf/gGo59wyjbOIlK3Xt1dz4r5WbBNO+9mOVfgOfR6OXGnd+jDV2fUTO8ueOU8fAUZaL/YRae7/CBEhzZhh2JoHW/V8ANzMy47GGKJVvnUFb39elosrX3iJhvWjPE8xKXpKKi3T3MTLzZN+5qb2FYK9eFwpd/zEgm06yqcl/TDAqzPc7xdXYnXd+TCILyGSi6qWf0nWGrsWFV3NkMSVioQja+r7Biu+9QWSb2PLUK6yavETFq2+irferrDwzDOFWjV0HwSsZinT1slBzB7iZhb2WkGvhbXuYOXcO4S33yGCVad77vPQvgN88rYu54u2RLMxeZqml6ddUDBUWhjOX3ugvJ0ZV2DNR1mWplAD97GHIpYAZVYYSgrbcPwCnsITK3Hm07PkkwDnKt85Q6/4vsrXYq2REWhDu2IXIjv3rap9wJTs7z6qpa+SW0qyx80PUdN/TWpuKVDDlVh65i68HCrYu2WBwbBOTV0Ys7rg9ClBlqd/JrsSWznyXhCDB1Khjxiv8G9shzbqhtRONXb3MaGyHW1lDNXUdnc+9jpW3j8BenZR6CjVvQ8u9j+kOQWhYuAIxJzdPZvKCFLZlzzMgq4DS7GgtZgFsP3QUqdMv1Hu+dKf52essm1n+0cAQfuBri4rLw+nzx/sL0+/4dUH43aZ9n6fmnsc39HzezW45jcr8GIXaupi5OIHNvV9GOvYKdTz6PWavzSDa3Yf0yCDstdvU2PlhRLsfYtzM+YJJpEYI+Su/kV1N2/2fIpEoKslxVZt0tu145DtY+dO3NmRhyyrT9O2JlVQRPc+fhFkDVFntt3OLsfnffQ0gty7vK/61tkMW2XUNqADfdt+T5LoOa931CRRu/Blm8l8U6diF1r3PsrXRo1Ixzd0PkZ1fWNdGRTbfjdWRQRkTLfc+yRo7D4jaVWubADTtfJgtv/1tHRE1oMmFKSqW8t8cGMIv/dDw1EWVO8OpkcH+/K0zsggp/9XNgmwQVUzJGA00EevpVIhJOkM21n5TreLR60h1x+41trrnVu2FPu8JoefeXUoSsFKxgMWluYlUEQ8L62wEZGf6q2sLscSpzxFx1297gllbc9NCyobYD1zVCEs4KpnIl4KnEP+R4RdsZXbVfXhJSHW5ddrSbmcEBOGcWHIpCcu0PjtwAn/0E2JdRgeZ2eHFv3//8dzk7+uzfT2pL1itTilzeAIFmdRfVqOpnallaV03VAPnwwjGVLFUonQmO3poCI8GBdv4wLML/dVsMrY2flJZQT3LIDQt/Ycc4o7NiFfJdRwGsuWcuzbAbXIdmwkaUenV2CZybIjYEmvEFb0ciz3x79jg3NWy1DcCvriynzSU2ZErVpjN+cHPDOHf/xOQjAe78hJAWyUQ75ltGIKpfCZzWzyby3DNAhxbPY25VVJjs6z31ZNaPZeLmk48ucvqyW2Js2pM4ikuFPL/fQuHhvCz+iP/AW4IU6nN1I/hAAAAAElFTkSuQmCC",DD="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAAUCAYAAADC1B7dAAAAAXNSR0IArs4c6QAAB7JJREFUWEd9V21oFOcWfs5sdrP5TjShgd5KC/bHNr1BaIX8KXrBe21iw421lAr+sdz2Z1VSWsRitJhS8EepcOmHXLg2IFx/VJBCE7wQ7w+VpNFqSgyoycZ8mNnNx66bnc1md2ZOed+Zd3Z2ktuBYd55P885zznPOS9hi4enp3tB9CdoGkAE+RVPRYXTFn3iEW3RJ55QyPlXr+hz19qWBcswYBsGzPV1WLkcTMOAtb5e1ifHDQNF0Z/LyXE5T6wVbdFX2uPx3x4+/GdQfFeyUjc/fLiLC4Vfce8eC4EYkHNI05x/ZhJt0S+/zCQF971EVFpLxGyaZBeLYNNUL1vFInGgT4zbhQJs01RjYi1sMdc05RqYJov/mYkJGKurHQcSiRG/UpsVmpq6al6/3sOTkywGuWy2Aw2x0Adgcv8B2SGVddETUzSxnAi2UFoCRnKSNIZQWhiLWViMbcckcks1Qx4tLebI4Y7JeU/jcTwYHf1fp67/5f8qxPH4Hntl5Ubh0iWQZTlCy1OdR6ElhfPpKgV0lHIEd9ubvkJSb6a7q6OeJ5PaS50njRdc4+iJkevXaT2TebMzmRxSG5QhxNPTwxs//bTXHh+XFnctI00prK3Q8h+qNgr2bTHHhQTS4i4iymaOHZTwwcBw/ktAubKkkkmMj45Ojep67AxgqkmO9efm9li6fiP3zTcg01ToSNv40fEj4z/Xh5JniCBantUDnryVgf7II/z7jI+NUWZl5R+dicS/yhWamRnOXbmyt3j3bsnHFSbC4V1fV7EjEWOWbih9X5iwsRGcTpfHnecLBKquBlVWgqJR2IkEYFlAayshkXCDUsYTEImACwVo27eDBSFkMtKom2IagJHNYvzOnUR+fT12MJ1Oy/UCHXN29kbmwgWJjoO8w2hCXEUCHiIq8EvhhfDu3Qg1NTFsW7TJzmSkqkKw3PffI/zKKxx+7TWipiZQXR3MiQnYKyuo3LcPxdFRCPbaGBwE1dSg5sQJyvb3c+WBA2QvLaE4MlJiTYd5FAFJ408/esTLyeTZTl0/6yg0M/Nr5uLFXYXx8TJSC7qU+FexVGatSITqPv4YuStXoFVVcbS7mzJffIHwq68i0t7OucuXQZEI6o4dw8adO/JMrb4eoZ07YT5+DK26mgu3b6MYj1P1oUNynZ1OI7RjB1jkoJUVYWBeHxoic3KyLByEQhv5PCYePEhbhUKMeHb27+bc3NXVzz8PMpoXCwFG81hPRXTNkSMUfv55RmMjZc6d48b+fkr19nL9yZNUvHePN0ZGKPTSS4ju2YPio0ewl5cRicXYuHwZNe+/T8IFM+fPsxaJoP70aUp/9plkyqqDB8lOJnnj5k3PtbfmC2B+cZH0ZPLfQqFTuVu3zj377rtS4lQUTITqri6EX3zRoRkndzgk4uYW0c5eusTR/fvJisd54+5dtAwMUHZggK1EAlX791P+5k2It+bQIcAwuKKtjSgUQnFyElpzM+xUCtq2bbB0HdGODnmO2F9raJBxZmeznh6p06eVz5WljvTaGs3Mz48Rx+ONrGnxRG9vg6nrXvCrBKm1thLV1jqolPzXiQ+VSCsrse2TT5C/fRu54WHUHz0KFIu82teH7efPY/XkSYR37hRxpKhbxpGILyoUpPBs2zB+/BGhhgbWWlocdlVniMRbKJA5O+t4kZvYVRIWv1MLC5TL53scORcW+rLDw2dWL1woi6FNSc5Pt76EGBKWrK0VAczhWIyqOjpQfPIEdW+/jezPP8O4elXOjrz8MuoPH3bKJRdx0c7/8gtyg4Py7Nq33kK4vZ2KU1M+DiIW/YtHjij3cLzEqUt4NZslPZX6b+fi4l8dhQRK4XB84cMPG4pPn3oMGcgPXhIOVgk1b7zBVfv2OcFeV4f0t99yqLmZms+eRWZgAJkffpDCCtetfecdWfb4XXbjt99gDA1J49d1d7O9tobsjRteDhT9rRcvQv/ggzL6lpUJM08tL4tacdebyeR9T0heWurLDA6eSX75ZTlNq7LDF41B5ARdW2trVLN7N9e9+y4V5+YQfuEFJE+d4u0ffSTihJY+/ZSr9u6laHu7YDOZF6RaAFW2tWGpv1/GRG1PD9X39MBcWPBISmgRbWvDXE+P8guP6dL5PC/lcv/p0vXDCgkHPoFSdXX8yXvvNRTm571CR8Lq+qxbc0nGFoKo5Kqq8orGRhZlfyQWo/z9+w7FM6OipQXm8jLCO3ZQRWsrVKJ0az8ONTXBuHVLOlDFc8+xbVkkmNCrjZkRff11Wh8bk/lRyGMTkWXbmM3l8nnm2EFdnylTSK5OpfrS166d0QWTuBXAJpoU1YHYNDDg1dC+UslxLMfP/dODRa5K5B6DBs92zizbR+yxapqcMc2vuxKJE2pteXGaSjWybcenuroaNmZnN+kS7PBX14ExiaJXTQavIW7lrkomefXwVR1bVOvK/TxXMwHWmROmYfy5e21NwrkJIYnSs2fH0teufTV3/HhZMtuK8fzXBoWCd68JIhi4WiiFt0LFf2Xxj0uB3chbraigHHD8QCLxtf+ozRe8eDyKlpY4NK3Vu067V2mRK8T1WV6h3a/6V33y6vwH49589wrurSsUSrcoadmgubz6Usk/k9D12FEg71fod9B/86+fB+YiAAAAAElFTkSuQmCC",Hft="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADUAAAAVCAYAAADmSqZGAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAjTSURBVHgBlVh7jJRXFf+debOzL/bBLsujswZKSx+wVEGg6oIpARMT0Qj9x7L4DkYDthr710LjH02Mrf5TbYuy1dgao6WtaUmIke0fpVRKlxSsSGhn9sXCdh+zMzuv73U9997v++ab3TXRm3xzX+eee97n3CEs0frOpFN1Dnpj0TAS4RDqQkA0xuMokAyHEQ2FquMwkEjwF9KwCXWG52EJr+F4inIZyJkOiqaNQtlG0XBUn1dzoCD3eF7gebHs7tk2n3OQk/C8njMYT9FRZ+R52wm9kv1FT3Yh/ZGlmIrbdMoU6BWGgBN2YIQJMdtCwSDkQoKZYiZ5LRqyEGNGwnneD9uIhLjnT+2pfd0LR6Bi88dIy0y8YTsoWwImf2UmrsLziqX3DYv3GN7gOwyHYEWJhcLCixAaYnx3nBC3QpicNXF7zkgxuccX0k8LF77713QvKHRussC3CEEg4h+GExpaCBE4TT5MFaEgD4RIHdMzD457Unjc/SC+QJPnWCZU3ZZ3CPLGrFX6+8W5rFGIdGOgVluLNEUR6s/O27AsoW+WRCrGRJUxVInT10uCXXCPWXW1I9c1ZwqHo0/4cHxQIQtIlzRKec4OckgKXOFh1ZPUXKor3nw9U3yaIQ7X8BCcHHk93ScQOpWZqmhafJHXSkpLWS878LQkQFUggqjeoPkS/rmlW5U1pV0lNFpq24dhwdPgpTlYhr0LJ7cPens1moqEw/0TWYNtHUqqWtzyAkU+VbGHfKtye1rqbnJ/lHA0X1RrRguaUoU6FririmuBoSqYT3QlcH243M/DwZoN2b5/ZqTPEeLU1bFSjaR905M3SuktINxjXJqRr1FlVbUXVC1Tm29DjChvOAFfhGsFQuNwlZrkwFCoCNfsPcEI74S698KVPEdJy9dWyEMaCYf6x6cNWKYgU0UmB6ate4MjFvck/eyh9U3iyxubOYIJ4cIICS/nCs50aD/vP9LTyn7p4RDKR+/tSODeFcsUziceWqXu2n/3cnpkcyuZ6qyG3bE2Se3LImjj73vbOqo4GN6yJS5A9e583RrOKRTu93iRKQRHz4z12cLuuzZe5ujLzDsAO6lwbEGOI6inK8k5AZjjfLG+NU4y9P57skwd9VH0dNVRerpCT+5bTVvXJPGZ7ga01EXQ0RDFtrVJPJiqx4FNreLi6Dx9c2s73p8oic6GGFbWR+jaZFlkZiuMYxkVTUfkShaVTeCJPatw5VZJrG9LYF1bjKbmLbGC4RmnGJ81JU1wmB6pZ6ZLxDh35IpWyrjv8DDe+81l5VPRKPo/HJO+5JmX8J1fRrKRWYMe6+3Ao6+NKeakGXA+oa9vbcNr/8yq3HLtdhnPXphUYXrL6qRo5IR17qO8wvOdbW2ULdr4x0gBm7vq8MCqOrqZM7FvQ5MypbmSg56VSZpjmL0bknh3tIAVdRFKcI6r52Tenowqf8hVpOadoI8JdyI6W2PIF+x+HB16JXL07NhmTqap8RlDmYtn+G4Elb80MlPBO8NFHNy83OOVHt7UgtFZA+9k5hX8367P4SCv/eHSNJgequOkKc1jQ0dCjHLwmSk64ncXp2Suwm8PpljTJUWk54MXmZF8xRH9e5rpwAsfqku6muOsrTi9/P6M9laiQLRw4MdS/k3EuQgIUcrOG73hC79/6tbnv/FYL5ta6mbWEtLcWLWkVMsfrys1Xx4rqgphJ5tXqiXOTORx+kpWwqgzk/O2OLCpRWYedDVFsO+uZlzI5HHss5303PmPUTJsiRcrGyK0+84mtLKJvnkjz1qy6GufbMMHt8q4MVWm9JSBIzvbsWtdI3ava6D7WbN3tid43IjOhigNjRWUHdluGlX3s5vM5i3k5+03cXLbT5T5xaN0YvMdyd6rI0Wq2FoVwtesmzuhNdbVGGOtzcNmrbKT+tFIRsafnp3Ap9iPdq9rYiJLeGB1Ej96dZQ1YGsbYfAjD3aIH786Sj/4XAckvkYuFKXG3/poXmE6n56nYV6XbXVzDIfYxH85eNtTD5ufJMchV3VupCXxMfuaCDt9fvR7fPvKwaZ4ZHDLHfU66kmCTZXcVHRjs1RB4ckvrsGjp0dwkiX/+J4u5RuGydGPL7KY7ul5C3etiDNhefz83G2x//7lqGPblvsyen3pvuWYLdiU4Sh7/MxNhe+Zr6Zw4o1xFfksN+pmZgyRma5AfqxJPZ+Sa4aOkKbGZ6pIDUxlDY6CGMCvt2c8f1PtV0MTKbLC6Z+9MSFKhp9YSUryWzvasb27Hkf/MoIx9g9p26ubovjh7k4F9fS5W9i7sVl8OpUkljQzPaWUu4Yl/dRX1mI8a4rnz0/SiS+swrGXR3CgpwX3rFyGtxm2gfHL8QUeX50o4cCWFjc+kWhMhGhjp4bzIsOfhqZ5XvA1Z7P9zeRsmI7VvYgp2V66Oj1w9kru0OuXZxFIcdh7dxPOfJCrKVo9B93BzEpGvr1zBV56d1qbmlv5gTSchGHzQuOyiNjZnST5lHiLz3i1RVM8jH33NOGPl2aCRa7KuDpmVWsJhVRnYRU38nlHlCznBTy79XCVvkA7/a/ZFKeL9LEXh/k94wiiBVW8rhsQLHPcaluRp+tN/PfqTpHjkK7eq0WynDucHIlCWFQMwRWQdmtfUFpLzFTRynBo2+VpaRFTsp29MTfw50szh158e1pr3EdELtaA0LA0A14Bu4god+wVgAFUtBiHn4REoFiuaRV2E9NwTnDEO77wbE07ly6lbMdIP/zMDZU3iPQDIcCQfkh4R4PF4BIcu8RTtQasiloz7jOLIAzgv7u0MZNXj2qDkOOK6WTw3LZuLCGQRe298cIA15qHZKSJ87slLl++8uNnPNd4/LTmp3dFPqkFSjwu8etVPq95LOReiZNqoWKTgvPmHCVL3pqhz8izbOYocegqmcIrZjVbyre8Ktd/U7qC0K9HNtnDeH77wP/E1FBaNCcS5Wb134P8IL+Eu1tGtqz/c1A93L4s18tqXs7KOlHuaVj4sDzPun0lgMM993+3gB8F238AbCmI0loerasAAAAASUVORK5CYII=",Wft="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADUAAAAVCAYAAADmSqZGAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAjVSURBVHgBlVhrbFTHFf7OPq+9NjYYe/1KWBIe4tEGEwIhaRJTNSi0itSqbZI/AfOnamkbEVWq1F8GpKptfrRpfyRNGopppTRKK0JVRURECi4SIRXhkYDKo6Rrg22KgbV317t79+69d3pm5t6718aVmpFmZ+bOOWfO+8wsYZ42cCSbaXTRn4hHYUQjaIwA8QTP40AqGkU8EqnPo4BhcI9oWEPh8Doq4TUcL2GaQKHmolxzUDIdlC1XjUW1Bkpyj9clXpdNb89xGM9FQcLz94LFdMquwpH4jhs5PP1y3/Rc/mPzCZV06EBNoF9YAm7UhRUlJBwbJYtQiAgWioXkb/GIjQQLEi3yftRBLMIjd7Wn9vUoXIGqw52Jmsy85bgwbYEad5OZq/K6aut9y+Y9hrf4DMsl2HFipbDyYoTmBJ+dJCTtCCanariZtzLM7p65/NPcD9/9W7YfFDk2WeJThCAQ8Q/DCQ0thAhhUwBTJyjIByFSaHrlw/FIio63H6YXahKPdUL1bXmGIH/OVqUPTuWnrVJsKYZmW+suS1GMBqdnHNi20CdLJpVgoi4Y6szp4yXDHrgvrDrald+1ZIqGqzECOEZUxELaJU1S4jlhCUmBKzpsepKWy3QnW6+MlH/FEDtnyRBe7Ho3OyAQOTByu6p5CVQ+W1Nay/qzC99KAlQHIoj6CVouEeDN3+qiKesqpdF82wEMK56GT+dhW84WvLF52N+bZalYNDp4Y9piX4fSqla3PECxT3XqkcCrvJHmO5u8H6UcLRfNdqM5TZlCoYXOqtOa46gK5r5uA1dGzUGeDs/akO2HR64NuEIcuDBWmaXpwPXkiVJ7cxj3BZdu1JSMYMYSSstizgF1z9Tu25wgKlpuKBbheYGiLjxQpDgxlKrCc3tfMcLHUOd+dL7IWdIOrBXxicaikcHxOxbsmqCaykwuao4e17Y34MllzZRpTeB7D7dje18bnvf69r5FKotZjhC7NnWgVnOprTGKXQxnBzSEitG1aQNrOxoUzX1P9qizvrFqIW1f10aMx7ga9pF7U9TeEMNi7t/flK7TYHjbkbQANXrrZfdwTaHooC+LLCHYfWRswBHOwKVxk7MvC+8CHKTCdQSlm2K0vqdJcFxSZ1NCxcVEvoYi148i149lbWz+SZPSzTFazQwvW5xEimvVw/emsK67EY9lmvD40mYxbdr03ANt+PRGRXQ2J9DFdC9NmmJkqoq+7gYq11xRqNhk1oB9W3tw/j8VsXyxwfQSdHvGFh0Mn26Oi/GpGrlsYJd5lHbmaiASXDsKZTtjfWHnKM7sP6diKh7H4GdjMpZ89xJB8NscWvcvSijXuHyris7muCI4UbSwoSelCmOubOPbX2xXexKzj4X5+HqZewkfj5dljle+cv8iQwn6YE8jTRRq2LayRblSvuKirytF+bKDp1amFF5HY4wMrnFNrKD2VFzFQ6EqLe+GY0x4C9HZlkCx5Axi99nDsd1Hx9ZxMc2M5yzlLr7jexkUUyWblOfzwmUTSi2taE96o4EPrhaUK/xjtIRUIoJXT9xCd0scD7GlvraqFet7Uwr3j6dz4g+nbstahd8/m8HlyYpiEl55OMWCFKuuGNzaSs8c/Eyx3N2aZGsl6dCnOZ1ziELZwkWQS/nX4HiORijjFK3+2Mtbe8/tOT4xvDyd7P/kWkUX0xB+bqaGQ5/k0Mx3n1XpBmVy3/RCzQU6UjEcvVwQWzjuRqcsjLJLPcjCvH8pj4u3TBX2TEcx0NMSU0paz1Y+eOq2YukHj6VxTeLlZuhn79/Avqe6Fa8L2FQrOwxe9yjLXLxpEivGL+peQtXpP19ywOHyd+zfdFi5XzJOe9ctSfVfuFamqqPdTgSWJaxgwl9ZsQA/PXoDv3i6F785PskHRjCWr+LPZ6cwnrdYYIM23JNCmgUc55iTwnYtiGOK40QylONDC6aNXV9Kix//9Tq98AQLkqtKxnGdBTrx7xmV1z7MztAof5etlxPTjo2L8evhm7552P0kYy55pvMyLYlbHGsi6g6opCd/frK5a/iVU7eG1y9p6j9+ueCFk4JVdXNlu0E/euc6dven8ctjN7F5aUod+PaZKTy/oY2tVBRrOg3a994Efs5Cf+etEWlJ0ZiIUldzUilphDPrl5cvZHd2SM73HJnA688uUXS++uoVlfkoot18JGcpZqVb5yu2Xrtaw16060rjlYHpGYthMYTXNo8EQimhY/bOR5c3ZT/8V1FULKHDkHuLESEZm1m+ZUgNbuRYGeX4ky74EFtmuuJg9I5Ju5/owLf2X1UMWJxyHc6crHWc5C7jRtL55gML8eKha3jh8Q6s6WrAe//MK7d+6ev34CO20IUbFTyzfpEqZNwEewOt7mzAS0/3kp8Z3j57h05mS/ATGZ+DckXWMWdvIAtC7U8X7gwdPV/Y8e65KYRKHHoXJsV1FkS2td0GbVvdgrdO5zDGtw8faIERU1r1q/Mj9zWpOJEwuhYLWtAQE48uTZHMmCdYWP9u0ZKMYtsaTTN0yVUVV+es+l1CuY8OJBX3xaIrKrZ7EK9t3DmvUO9cnMpwuci++OYov2dcoQmGmnJJPQk+6du2Yk/fN/G/b3eKHZd0oNcvyXItMytp/5sH0xPfDwmv8XMLxbI9Isjdgt9q17tLKNmOXs0P/eV0bsebJ+9oiweEyKMaUhrmF8C/wN7FlDf3L4AhUnQ3jaAIidBleVarcpjULHcv3ti0Zy7urHYsW8k4rpV97pWrqm4Q6QdCSCD9kPBRw5fBeST2mKf6HbCuai14ICzCMEDw7tLXS/Lvo9oh5Lxac0fw+qalmEchd7Uz46UhvmvukBkpyfejpHz5ys7PeEsGpnx6V+WTWqDC8wq/XuXzmudC7lW4qJaqDik4f10TouJ/szSOxGU3R4VTV6Um/MssvEyhXduTXgS103ts6cvATvxu89D/JdTZrGg1DLNV/fcgO2Q3vF0T06b+z0GN8EZTfjfV2uR3aF7taVgEsLye9sZqiIaH97lbKI7C7b/NOkaaxSR4TwAAAABJRU5ErkJggg==",jft={class:"l_Dialog bou tablebk"},Kft={class:"common-layout",style:{margin:"0"}},Yft={class:"demo-collapse"},Xft={class:"asides_content"},qft={class:"jc_content tablecolor"},Zft={class:"jc_padding font12"},Qft={class:"xian btncolor tablefocus bmar"},Jft={class:"classtab"},edt={class:"asides_content"},tdt={class:"jc_content tablecolor jc_content"},ndt={class:"font12 my_content1"},rdt={class:"btncolor tablefocus bmar"},adt=R("p",null,"暂无数据",-1),idt={class:"dialog-footer footer_div l_btn"},odt={class:"footerbtn flex1"},sdt={class:"borderimg"},ldt={class:"asides_content"},udt={class:"jc_content tablecolor jc_content"},cdt={class:"font12 my_content1"},fdt={class:"btncolor tablefocus bmar"},ddt=R("p",null,"暂无数据",-1),hdt={class:"dialog-footer footer_div l_btn"},pdt={class:"footerbtn flex1"},vdt={class:"borderimg"},gdt={class:"asides_content"},ydt={class:"jc_content tablecolor jc_content"},mdt={class:"font12 my_content1"},bdt={class:"btncolor tablefocus bmar"},Sdt=R("p",null,"暂无数据",-1),wdt={class:"dialog-footer footer_div l_btn"},xdt={class:"footerbtn flex1"},_dt={class:"borderimg"},Cdt={class:"my-header"},Tdt=["id"],Edt={key:0},Mdt={key:1},Ddt={class:"dialog-footer footer_div l_btn"},Adt={class:"footerbtn flex1"},kdt={class:"borderimg"},Rdt={class:"footerbtn flex1"},Ldt={class:"borderimg"},Odt={__name:"Menudisaster",setup(t,{expose:e}){let n=B(!1),r=B(!1),a=B(120),i=B(!1);const o=B("Water");let s=B(["1","2"]),l=B({region:"",height:"",add:"",temperature:"",co2:"",so2:"",ch4:""}),u=B({id:null,height:null,temperature:null,co2:null,ch4:null,so2:null});B(),B();let c=B(280),f=B(!1);const d=B([]);Ut(()=>{u.value={},p()});const h=(m,S)=>{u.value={},f.value=!1,o.value=m.props.name,p()},p=()=>{const m={transCode:"D10028",stype:o.value};Rn(m).then(S=>{d.value=S.rows,console.log(d)}).catch(S=>{wt.error(S.returnMsg)})},v=m=>{u.value=m,f.value=!0},g=()=>{f.value==!1?wt.error("你还没有选中修改的项目"):(o.value=="Water"?(l.value.add="突水",l.value.height=u.value.height,l.value.so2=null,l.value.co2=null,l.value.temperature=null,l.value.ch4=null):o.value=="Fire"?(l.value.add="火灾",console.log(u.value),l.value.so2=u.value.so2,l.value.co2=u.value.co2,l.value.temperature=u.value.temperature,l.value.height=null,l.value.ch4=null):(l.value.add="瓦斯",l.value.so2=u.value.so2,l.value.co2=u.value.co2,l.value.temperature=u.value.temperature,l.value.height=null,l.value.ch4=u.value.ch4),i.value=!0)},y=()=>{const m={transCode:"D10029",id:u.value.id,height:l.value.height,temperature:l.value.temperature,co2:l.value.co2,ch4:l.value.ch4,so2:l.value.so2};Rn(m).then(S=>{p(),f.value=!1}).catch(S=>{wt.error(S.returnMsg)})};return e({dialogVisible:n}),(m,S)=>{const w=$e("el-icon"),C=$e("el-image"),_=$e("el-table-column"),x=$e("el-table"),T=$e("el-tab-pane"),M=$e("el-tabs"),E=$e("el-collapse-item"),A=$e("el-collapse"),k=$e("el-aside"),L=$e("el-input-number"),I=$e("el-form-item"),P=$e("el-input"),F=$e("el-form");return G(),re(Ct,null,[Ft(R("div",jft,[R("div",Kft,[Ft(N(k,{width:"480px",class:"L_aside L_aside1 asideg asidegbg leftbgimg1"},{default:j(()=>[R("div",Yft,[N(A,{modelValue:b(s),"onUpdate:modelValue":S[7]||(S[7]=$=>ft(s)?s.value=$:s=$),accordion:""},{default:j(()=>[N(E,{name:"1",class:"imgneon"},{title:j(()=>[N(w,{class:"iconimg Frame3 imgneon",fit:"contain"}),Be(" 报警设置 ")]),default:j(()=>[R("div",Xft,[R("div",qft,[R("div",Zft,[R("div",Qft,[R("div",Jft,[N(M,{modelValue:o.value,"onUpdate:modelValue":S[6]||(S[6]=$=>o.value=$),type:"card",class:"demo-tabs",onTabClick:h,stretch:!0},{default:j(()=>[N(T,{label:"突水",name:"Water"},{default:j(()=>[R("div",edt,[R("div",tdt,[R("div",ndt,[R("div",rdt,[N(x,{data:d.value,style:{width:"480px"},"max-height":b(c),"highlight-current-row":b(f),onRowClick:S[0]||(S[0]=$=>v($)),"header-cell-style":{background:"rgba(13, 22, 57,0) "}},{empty:j(()=>[adt]),default:j(()=>[N(_,{prop:"grade",label:"预警"},{default:j($=>[$.row.grade=="1"?(G(),Ee(C,{key:0,style:{height:"100%"},src:b(ED),fit:"contain"},null,8,["src"])):_e("",!0),$.row.grade=="2"?(G(),Ee(C,{key:1,style:{height:"100%"},src:b(Gft),fit:"contain"},null,8,["src"])):_e("",!0),$.row.grade=="3"?(G(),Ee(C,{key:2,style:{height:"100%"},src:b(MD),fit:"contain"},null,8,["src"])):_e("",!0),$.row.grade=="4"?(G(),Ee(C,{key:3,style:{height:"100%"},src:b(DD),fit:"contain"},null,8,["src"])):_e("",!0)]),_:1}),N(_,{prop:"height",label:"水位"})]),_:1},8,["data","max-height","highlight-current-row","header-cell-style"])])]),R("div",idt,[R("div",odt,[R("div",sdt,[N(b(ct),{onClick:S[1]||(S[1]=$=>g())},{default:j(()=>[Be(" 修改 ")]),_:1})])])])])])]),_:1}),N(T,{label:"火灾",name:"Fire"},{default:j(()=>[R("div",ldt,[R("div",udt,[R("div",cdt,[R("div",fdt,[N(x,{data:d.value,style:{width:"480px"},"max-height":b(c),"highlight-current-row":b(f),onRowClick:S[2]||(S[2]=$=>v($)),"header-cell-style":{background:"rgba(13, 22, 57,0) "}},{empty:j(()=>[ddt]),default:j(()=>[N(_,{prop:"grade",label:"预警"},{default:j($=>[$.row.grade=="1"?(G(),Ee(C,{key:0,style:{height:"100%"},src:b(ED),fit:"contain"},null,8,["src"])):_e("",!0),$.row.grade=="2"?(G(),Ee(C,{key:1,style:{height:"100%"},src:b(Hft),fit:"contain"},null,8,["src"])):_e("",!0),$.row.grade=="3"?(G(),Ee(C,{key:2,style:{height:"100%"},src:b(MD),fit:"contain"},null,8,["src"])):_e("",!0),$.row.grade=="4"?(G(),Ee(C,{key:3,style:{height:"100%"},src:b(DD),fit:"contain"},null,8,["src"])):_e("",!0)]),_:1}),N(_,{prop:"temperature",label:"温度"}),N(_,{prop:"co2",label:"co2"}),N(_,{prop:"so2",label:"so2"})]),_:1},8,["data","max-height","highlight-current-row","header-cell-style"])])]),R("div",hdt,[R("div",pdt,[R("div",vdt,[N(b(ct),{onClick:S[3]||(S[3]=$=>g())},{default:j(()=>[Be(" 修改 ")]),_:1})])])])])])]),_:1}),N(T,{label:"瓦斯",name:"Gass"},{default:j(()=>[R("div",gdt,[R("div",ydt,[R("div",mdt,[R("div",bdt,[N(x,{data:d.value,style:{width:"480px"},"max-height":b(c),"highlight-current-row":b(f),onRowClick:S[4]||(S[4]=$=>v($)),"header-cell-style":{background:"rgba(13, 22, 57,0) "}},{empty:j(()=>[Sdt]),default:j(()=>[N(_,{prop:"grade",label:"预警"},{default:j($=>[$.row.grade=="1"?(G(),Ee(C,{key:0,style:{height:"100%"},src:b(ED),fit:"contain"},null,8,["src"])):_e("",!0),$.row.grade=="2"?(G(),Ee(C,{key:1,style:{height:"100%"},src:b(Wft),fit:"contain"},null,8,["src"])):_e("",!0),$.row.grade=="3"?(G(),Ee(C,{key:2,style:{height:"100%"},src:b(MD),fit:"contain"},null,8,["src"])):_e("",!0),$.row.grade=="4"?(G(),Ee(C,{key:3,style:{height:"100%"},src:b(DD),fit:"contain"},null,8,["src"])):_e("",!0)]),_:1}),N(_,{prop:"temperature",label:"温度"}),N(_,{prop:"co2",label:"co2"}),N(_,{prop:"ch4",label:"ch4"})]),_:1},8,["data","max-height","highlight-current-row","header-cell-style"])])]),R("div",wdt,[R("div",xdt,[R("div",_dt,[N(b(ct),{onClick:S[5]||(S[5]=$=>g())},{default:j(()=>[Be(" 修改 ")]),_:1})])])])])])]),_:1})]),_:1},8,["modelValue"])])])])])])]),_:1})]),_:1},8,["modelValue"])])]),_:1},512),[[cn,b(n)]])])],512),[[cn,b(r)]]),N(b(Mr),{modelValue:b(i),"onUpdate:modelValue":S[15]||(S[15]=$=>ft(i)?i.value=$:i=$),"align-center":"","append-to-body":!0,width:"400",class:"dialog_class bgcolor tianjia foter_l tianjia"},{header:j(({titleId:$,titleClass:W})=>[R("div",Cdt,[N(C,{src:b(Cr),fit:"contain"},null,8,["src"]),R("h4",{id:$,class:Y(W)},We(b(l).add),11,Tdt)])]),default:j(()=>[N(F,{class:"demo-form-inline inputnuber",inline:!0,model:b(l)},{default:j(()=>[o.value=="Water"?(G(),re("div",Edt,[N(I,{label:"水位","label-width":b(a)},{default:j(()=>[N(L,{modelValue:b(l).height,"onUpdate:modelValue":S[8]||(S[8]=$=>b(l).height=$),modelModifiers:{number:!0},precision:1,step:.1,max:10,maxlength:"15",class:"w-50 m-2",placeholder:"请输入"},null,8,["modelValue"])]),_:1},8,["label-width"])])):_e("",!0),o.value=="Fire"||o.value=="Gass"?(G(),re("div",Mdt,[N(I,{label:"温度","label-width":b(a)},{default:j(()=>[N(L,{modelValue:b(l).temperature,"onUpdate:modelValue":S[9]||(S[9]=$=>b(l).temperature=$),maxlength:"15",oninput:"value=value.replace(/[^0-9.]/g,'')",class:"w-50 m-2",placeholder:"请输入"},null,8,["modelValue"])]),_:1},8,["label-width"]),N(I,{label:"co2","label-width":b(a)},{default:j(()=>[N(P,{modelValue:b(l).co2,"onUpdate:modelValue":S[10]||(S[10]=$=>b(l).co2=$),oninput:"value=value.replace(/[^0-9.]/g,'')",maxlength:"15",class:"w-50 m-2",placeholder:"请输入"},null,8,["modelValue"])]),_:1},8,["label-width"]),o.value=="Fire"?(G(),Ee(I,{key:0,label:"so2","label-width":b(a)},{default:j(()=>[N(P,{modelValue:b(l).so2,"onUpdate:modelValue":S[11]||(S[11]=$=>b(l).so2=$),oninput:"value=value.replace(/[^0-9.]/g,'')",maxlength:"15",class:"w-50 m-2",placeholder:"请输入"},null,8,["modelValue"])]),_:1},8,["label-width"])):_e("",!0),o.value=="Gass"?(G(),Ee(I,{key:1,label:"ch4","label-width":b(a)},{default:j(()=>[N(P,{modelValue:b(l).ch4,"onUpdate:modelValue":S[12]||(S[12]=$=>b(l).ch4=$),oninput:"value=value.replace(/[^0-9.]/g,'')",maxlength:"15",class:"w-50 m-2",placeholder:"请输入"},null,8,["modelValue"])]),_:1},8,["label-width"])):_e("",!0)])):_e("",!0)]),_:1},8,["model"]),R("div",Ddt,[R("div",Adt,[R("div",kdt,[N(b(ct),{onClick:S[13]||(S[13]=$=>ft(i)?i.value=!1:i=!1)},{default:j(()=>[Be("取消")]),_:1})])]),R("div",Rdt,[R("div",Ldt,[N(b(ct),{onClick:S[14]||(S[14]=$=>{y(),ft(i)?i.value=!1:i=!1})},{default:j(()=>[Be(" 确定 ")]),_:1})])])])]),_:1},8,["modelValue"])],64)}}},Vdt={class:"bou tablebk"},Ndt={class:"common-layout",style:{margin:"0"}},Idt={class:"demo-collapse"},Bdt={class:"l_Dialog"},$dt={class:"classtab"},Pdt={class:"asides_content"},Fdt={class:"jc_content tablecolor jc_content"},zdt={class:"font12 my_content1"},Udt={class:"btncolor tablefocus bmar"},Gdt=R("p",null,"暂无数据",-1),Hdt={class:"dialog-footer footer_div l_btn"},Wdt={class:"footerbtn flex1"},jdt={class:"borderimg"},Kdt={class:"footerbtn flex1"},Ydt={class:"borderimg"},Xdt={class:"footerbtn flex1"},qdt={class:"borderimg"},Zdt={class:"my-header"},Qdt=["id"],Jdt={class:"delecttitle"},eht={class:"spanclad"},tht={class:"dialog-footer footer_div l_btn"},nht={class:"footerbtn flex1"},rht={class:"borderimg"},aht={class:"footerbtn flex1"},iht={class:"borderimg"},oht={class:"my-header"},sht=["id"],lht={class:"demo-input-suffix firsttitle magintop guand_1"},uht={class:"btn2"},cht={class:"input"},fht={class:"dialog-footer footer_div l_btn"},dht={class:"footerbtn flex1"},hht={class:"borderimg"},pht={class:"footerbtn flex1"},vht={class:"borderimg"},ght={class:"my-header"},yht=["id"],mht={class:"demo-input-suffix firsttitle leftbgimg2 my_content1"},bht={class:"guand_1"},Sht=R("span",{class:"spantext"},"搜索",-1),wht=[Sht],xht=R("p",null,"暂无数据",-1),_ht={class:"demo-pagination-block",style:{"margin-top":"20px"}},Cht={class:"dialog-footer footer_div l_btn"},Tht={class:"footerbtn flex1"},Eht={class:"borderimg"},Mht={class:"footerbtn flex1"},Dht={class:"borderimg"},Aht={__name:"MenuCheck",setup(t,{expose:e}){let n=B(!1),r=B(!0),a=B(!1),i=B(!1);B("Fire"),B(100);const o=B(90),s=B(),l=B([]);let u=B(),c=B(""),f=B([]),d=B({dianadddialog:!1,dialogVisiblenode:!1});const h={halfarch_1:"1-1断面",halfarch_2:"2-2断面",halfarch_3:"3-3断面",halfarch_4:"4-4断面",halfarch_5:"5-5断面",halfarch_6:"6-6断面",halfarch_7:"7-7断面",halfarch_8:"8-8断面",section9:"9-9断面",section10:"10-10断面",halfarch_11:"11-11断面",halfarch_12:"12-12断面",halfarch_13:"13-13断面",halfarch_14:"14-14断面",halfarch_15:"15-15断面",halfarch_16:"16-16断面",halfarch_17:"17-17断面",halfarch_18:"18-18断面",halfarch_19:"19-19断面",halfarch_20:"20-20断面"};let p=B(["1","2"]),v=B(1),g=B("");const y=B(1),m=B(5);let S=B(""),w=B({selectstr:"",site:0,chname:"",chcode:""}),C=B("");B("first");let _=B(200),x=B([]),T=B({}),M=B();B({pid:0,seid:0,site:0,type:"温度传感器"});const E=({row:ie,rowIndex:Q})=>Q%2!=0?"evenRow":"oddRow",A=ie=>{r.value=!0,T.value=ie,S.value=ie.cid,console.log(T.value)},k=()=>{JSON.stringify(T.value)=="{}"?wt.error("你还没有选中删除的项目"):(M.value=T.value.pname,i.value=!0)},L=()=>{const ie={transCode:"D10006",cid:S.value};Rn(ie).then(Q=>{wt({message:"删除监测点成功",type:"success"}),I()}).catch(Q=>{wt.error(Q.returnMsg)})};Ut(()=>{I()});const I=()=>{Rn({transCode:"D10004"}).then(Q=>{x.value=Q.rows,T.value={}}).catch(Q=>{wt.error(Q.returnMsg)})},P=()=>{c.value="添加",u.value=c.value,a.value=!0,r.value=!1,w.value.selectstr="",w.value.site=0,w.value.chname="",w.value.chcode="",C.value="",S.value="",T.value={}},F=()=>{const ie={transCode:"D10005",cid:S.value,pid:C.value,site:w.value.site,chname:w.value.chname,chcode:w.value.chcode};Rn(ie).then(Q=>{d.value.dianadddialog=!1,wt({message:u.value+"监测点成功",type:"success"}),x.value=Q.rows,I()}).catch(Q=>{const ce=/字段\d*/g;let se=Q.returnMsg.replace(ce,"");wt.error(se)})},$=()=>{c.value="修改",u.value=c.value,JSON.stringify(T.value)=="{}"?wt.error("你还没有选中修改的项目"):(d.value.dianadddialog=!0,S.value=T.value.cid,w.value.chname=T.value.chname,w.value.chcode=T.value.chcode,w.value.site=T.value.site,w.value.selectstr=T.value.pname,C.value=T.value.pid)},W=()=>{g.value="",K("")};function V(){K(g.value)}const z=ie=>{K(g.value)},K=ie=>{const Q={transCode:"D00001",count:m.value,page:y.value,searchtag:ie};Rn(Q).then(ce=>{f.value=ce.rows.map(se=>({...se,sectionType:h[se.sectionType]||"未知"})),v.value=ce.total}).catch(ce=>{wt.error(ce.returnMsg)})},Z=(ie,Q)=>{if(ie.length>1){s.value.clearSelection(),s.value.toggleRowSelection(Q,!0);let ce=[];ce.push(ie[1]),l.value=ce;return}ie.length==1?l.value=ie:ie.length==0},oe=()=>{w.value.selectstr="",y.value=1,console.log(),l.value.length!=0&&(C.value=l.value[0].id,w.value.selectstr=l.value[0].name,console.log(l.value[0]))},ge=()=>{oe()};return e({sendialogVisible:n}),(ie,Q)=>{const ce=$e("el-icon"),se=$e("el-table-column"),me=$e("el-table"),ve=$e("el-collapse-item"),he=$e("el-collapse"),ee=$e("el-image"),ue=$e("el-input"),fe=$e("el-form-item"),Re=$e("el-input-number"),Ne=$e("el-pagination"),De=$e("el-aside");return G(),re("div",Vdt,[R("div",Ndt,[Ft(N(De,{width:"357px",class:"L_aside L_aside1 asideg asidegbg leftbgimg1"},{default:j(()=>[R("div",Idt,[N(he,{modelValue:b(p),"onUpdate:modelValue":Q[4]||(Q[4]=we=>ft(p)?p.value=we:p=we),accordion:""},{default:j(()=>[N(ve,{name:"1",class:"imgneon"},{title:j(()=>[N(ce,{class:"iconimg Frame3",fit:"contain"}),Be(" 监测点"),N(ce,{class:"header-icon"})]),default:j(()=>[R("div",Bdt,[R("div",$dt,[R("div",Pdt,[R("div",Fdt,[R("div",zdt,[R("div",Udt,[N(me,{data:b(x),style:{width:"480px"},"max-height":b(_),"highlight-current-row":b(r),"row-class-name":E,onRowClick:Q[0]||(Q[0]=we=>A(we)),"header-cell-style":{background:"rgba(13, 22, 57, 0) "}},{empty:j(()=>[Gdt]),default:j(()=>[N(se,{type:"index",label:"编号",width:"70"}),N(se,{prop:"chname",label:"监测点名称"}),N(se,{prop:"pname",label:"所在巷道"}),N(se,{prop:"site",label:"位置"})]),_:1},8,["data","max-height","highlight-current-row","header-cell-style"])])]),R("div",Hdt,[R("div",Wdt,[R("div",jdt,[N(b(ct),{onClick:Q[1]||(Q[1]=we=>{P(),b(d).dianadddialog=!0})},{default:j(()=>[Be("添加")]),_:1})])]),R("div",Kdt,[R("div",Ydt,[N(b(ct),{onClick:Q[2]||(Q[2]=we=>$())},{default:j(()=>[Be(" 修改 ")]),_:1})])]),R("div",Xdt,[R("div",qdt,[N(b(ct),{onClick:Q[3]||(Q[3]=we=>k())},{default:j(()=>[Be(" 删除 ")]),_:1})])])])])])])])]),_:1})]),_:1},8,["modelValue"]),N(b(Mr),{modelValue:b(i),"onUpdate:modelValue":Q[7]||(Q[7]=we=>ft(i)?i.value=we:i=we),"align-center":"","append-to-body":!0,width:"400",class:"dialog_class bgcolor tianjia"},{header:j(({titleId:we,titleClass:ae})=>[R("div",Zdt,[N(ee,{src:b(Cr),fit:"contain"},null,8,["src"]),R("h4",{id:we,class:Y(ae)},"删除框",10,Qdt)])]),default:j(()=>[R("h4",Jdt,[Be(" 是否确认删除 "),R("span",eht,We(b(M)),1)]),R("div",tht,[R("div",nht,[R("div",rht,[N(b(ct),{onClick:Q[5]||(Q[5]=we=>ft(i)?i.value=!1:i=!1)},{default:j(()=>[Be("取消")]),_:1})])]),R("div",aht,[R("div",iht,[N(b(ct),{onClick:Q[6]||(Q[6]=we=>{L(),ft(i)?i.value=!1:i=!1})},{default:j(()=>[Be(" 确定 ")]),_:1})])])])]),_:1},8,["modelValue"]),N(b(Mr),{modelValue:b(d).dianadddialog,"onUpdate:modelValue":Q[15]||(Q[15]=we=>b(d).dianadddialog=we),"align-center":"","append-to-body":!0,width:"500px",class:"dialog_class bgcolor tianjia"},{header:j(({titleId:we,titleClass:ae})=>[R("div",oht,[N(ee,{src:b(Cr),fit:"contain"},null,8,["src"]),R("h4",{id:we,class:Y(ae)},We(b(c)),11,sht)])]),default:j(()=>[N(fe,{label:"监测点编号:","label-width":o.value},{default:j(()=>[N(ue,{modelValue:b(w).chcode,"onUpdate:modelValue":Q[8]||(Q[8]=we=>b(w).chcode=we),maxlength:"10",oninput:"value=value.replace(/[^\\w\\\\/]/ig,'')",class:"w-50 m-2",placeholder:"请输入"},null,8,["modelValue"])]),_:1},8,["label-width"]),N(fe,{label:"监测点名称:","label-width":o.value},{default:j(()=>[N(ue,{modelValue:b(w).chname,"onUpdate:modelValue":Q[9]||(Q[9]=we=>b(w).chname=we),maxlength:"10",class:"w-50 m-2",placeholder:"请输入"},null,8,["modelValue"])]),_:1},8,["label-width"]),R("div",lht,[N(fe,{label:"巷道名称","label-width":o.value},{default:j(()=>[N(ue,{modelValue:b(w).selectstr,"onUpdate:modelValue":Q[10]||(Q[10]=we=>b(w).selectstr=we),disabled:"",class:"w-50 m-2 text-disabled",placeholder:"请选择巷道"},null,8,["modelValue"])]),_:1},8,["label-width"]),R("div",uht,[N(b(ct),{type:"primary",onClick:Q[11]||(Q[11]=we=>{W(),b(d).dialogVisiblenode=!0})},{default:j(()=>[Be("选择巷道")]),_:1})])]),R("div",cht,[N(fe,{label:"位置","label-width":o.value},{default:j(()=>[N(Re,{modelValue:b(w).site,"onUpdate:modelValue":Q[12]||(Q[12]=we=>b(w).site=we),min:0,max:10,precision:2,step:.1,"controls-position":"right",class:"w-50 m-2",placeholder:"位置"},null,8,["modelValue"])]),_:1},8,["label-width"])]),R("div",fht,[R("div",dht,[R("div",hht,[N(b(ct),{onClick:Q[13]||(Q[13]=we=>b(d).dianadddialog=!1)},{default:j(()=>[Be("取消")]),_:1})])]),R("div",pht,[R("div",vht,[N(b(ct),{onClick:Q[14]||(Q[14]=we=>{F()})},{default:j(()=>[Be(" 确定 ")]),_:1})])])])]),_:1},8,["modelValue"]),N(b(Mr),{modelValue:b(d).dialogVisiblenode,"onUpdate:modelValue":Q[21]||(Q[21]=we=>b(d).dialogVisiblenode=we),"align-center":"","append-to-body":!0,width:"600",class:"dialog_class bgcolor tianjia asideg asidegbg leftbgimg"},{header:j(({titleId:we,titleClass:ae})=>[R("div",ght,[N(ee,{src:b(Cr),fit:"contain"},null,8,["src"]),R("h4",{id:we,class:Y(ae)}," 选择巷道",10,yht)])]),default:j(()=>[R("div",mht,[R("div",bht,[N(fe,{label:"巷道选择","label-width":o.value},{default:j(()=>[N(ue,{modelValue:b(g),"onUpdate:modelValue":Q[16]||(Q[16]=we=>ft(g)?g.value=we:g=we),class:"w-50 m-2",placeholder:"巷道"},null,8,["modelValue"])]),_:1},8,["label-width"]),R("div",{class:"asdis_btn"},[R("div",{class:"flex_a"},[R("div",{class:"btns",onClick:V},wht)])])]),N(me,{"row-class-name":E,"max-height":b(_),ref_key:"multipleTableRef",ref:s,data:b(f),style:{width:"100%"},onSelect:Z,"header-cell-style":{background:"rgba(13, 22, 57, 0) "}},{empty:j(()=>[xht]),default:j(()=>[N(se,{type:"selection",width:"55"}),N(se,{property:"id",label:"编号",width:"70"}),N(se,{property:"name",label:"名称",width:"70"}),N(se,{property:"sectionType",label:"截面类型",width:"120"}),N(se,{property:"roughCoe",label:"粗糙系数"})]),_:1},8,["max-height","data","header-cell-style"]),R("div",_ht,[N(b(x1),{locale:b(Wg)},{default:j(()=>[N(Ne,{"current-page":y.value,"onUpdate:currentPage":Q[17]||(Q[17]=we=>y.value=we),"page-size":m.value,"onUpdate:pageSize":Q[18]||(Q[18]=we=>m.value=we),small:"",background:"",layout:"prev, total,pager, next, jumpe,",total:parseInt(b(v)),class:"mt-4",onCurrentChange:z},null,8,["current-page","page-size","total"])]),_:1},8,["locale"])]),R("div",Cht,[R("div",Tht,[R("div",Eht,[N(b(ct),{onClick:Q[19]||(Q[19]=we=>b(d).dialogVisiblenode=!1)},{default:j(()=>[Be("取消")]),_:1})])]),R("div",Mht,[R("div",Dht,[N(b(ct),{onClick:Q[20]||(Q[20]=we=>{ge(),b(d).dialogVisiblenode=!1})},{default:j(()=>[Be(" 确定 ")]),_:1})])])])])]),_:1},8,["modelValue"])])]),_:1},512),[[cn,b(n)]])])])}}},kht={class:"bou tablebk"},Rht={class:"common-layout",style:{margin:"0"}},Lht={class:"demo-collapse"},Oht={class:"l_Dialog"},Vht={class:"classtab"},Nht={class:"asides_content"},Iht={class:"jc_content tablecolor jc_content"},Bht={class:"font12 my_content1"},$ht={class:"btncolor tablefocus bmar"},Pht=R("p",null,"暂无数据",-1),Fht=R("span",null,"密度",-1),zht=R("br",null,null,-1),Uht=R("span",null,"(kg/m3)",-1),Ght=R("span",null,"扩散系数",-1),Hht=R("br",null,null,-1),Wht=R("span",null,"(m2/s)",-1),jht=R("span",null,"比热",-1),Kht=R("br",null,null,-1),Yht=R("span",null,"J/(kg*K)",-1),Xht={class:"dialog-footer footer_div l_btn"},qht={class:"footerbtn flex1"},Zht={class:"borderimg"},Qht={class:"footerbtn flex1"},Jht={class:"borderimg"},ept={class:"footerbtn flex1"},tpt={class:"borderimg"},npt={class:"my-header"},rpt=["id"],apt={class:"dialog-footer footer_div l_btn"},ipt={class:"footerbtn flex1"},opt={class:"borderimg"},spt={class:"footerbtn flex1"},lpt={class:"borderimg"},upt={class:"my-header"},cpt=["id"],fpt={class:"delecttitle"},dpt={class:"spanclad"},hpt={class:"dialog-footer footer_div l_btn"},ppt={class:"footerbtn flex1"},vpt={class:"borderimg"},gpt={class:"footerbtn flex1"},ypt={class:"borderimg"},mpt={__name:"MenuPhysics",setup(t,{expose:e}){B();let n=B(!1),r=B(!0),a=B(!1),i=B(!1);B("Fire");const o=B(120);let s=B("");B("first");let l=B(["1","2"]),u=B(200),c=B([]),f=B({}),d=B(),h=B(),p=B({coid:"",code:"",name:"",density:"",diffcoe:"",speheat:""});B({selectstr:"",site:""}),B("");const v=({row:x,rowIndex:T})=>T%2!=0?"evenRow":"oddRow",g=x=>{r.value=!0,f.value=x,console.log(f.value)},y=()=>{JSON.stringify(f.value)=="{}"?wt.error("你还没有选中删除的项目"):(i.value=!0,d.value=f.value.name)},m=()=>{console.log(d.value);const x={transCode:"D10015",coid:f.value.coid};Rn(x).then(T=>{S(),wt({message:"删除物理属性成功",type:"success"})}).catch(T=>{wt.error(T.returnMsg)})};Ut(()=>{S()});const S=()=>{Rn({transCode:"D10013"}).then(T=>{c.value=T.rows,f.value={}}).catch(T=>{wt.error(T.returnMsg)})},w=()=>{s.value="添加",h.value=s.value,r.value=!1,a.value=!0,p.value.coid="",p.value.code="",p.value.name="",p.value.density=null,p.value.diffcoe=null,p.value.speheat=null,f.value={}},C=()=>{const x={transCode:"D10014",coid:p.value.coid,code:p.value.code,name:p.value.name,density:p.value.density,diffcoe:p.value.diffcoe,speheat:p.value.speheat};Rn(x).then(T=>{c.value=T.rows,S(),wt({message:h.value+"物理属性成功",type:"success"}),a.value=!1}).catch(T=>{const M=/字段\d*/g;let E=T.returnMsg.replace(M,"");wt.error(E)})},_=()=>{s.value="修改",h.value=s.value,JSON.stringify(f.value)=="{}"?wt.error("你还没有选中修改的项目"):(a.value=!0,p.value.coid=f.value.coid,p.value.code=f.value.code,p.value.name=f.value.name,p.value.density=f.value.density,p.value.diffcoe=f.value.diffcoe,p.value.speheat=f.value.speheat)};return e({sendialogVisible:n}),(x,T)=>{const M=$e("el-icon"),E=$e("el-table-column"),A=$e("el-table"),k=$e("el-collapse-item"),L=$e("el-collapse"),I=$e("el-image"),P=$e("el-input"),F=$e("el-form-item"),$=$e("el-input-number"),W=$e("el-form"),V=$e("el-aside");return G(),re("div",kht,[R("div",Rht,[Ft(N(V,{width:"357px",class:"L_aside L_aside1 asideg asidegbg leftbgimg1"},{default:j(()=>[R("div",Lht,[N(L,{modelValue:b(l),"onUpdate:modelValue":T[4]||(T[4]=z=>ft(l)?l.value=z:l=z),accordion:""},{default:j(()=>[N(k,{name:"1",class:"imgneon"},{title:j(()=>[N(M,{class:"iconimg Frame3",fit:"contain"}),Be(" 物理属性"),N(M,{class:"header-icon"})]),default:j(()=>[R("div",Oht,[R("div",Vht,[R("div",Nht,[R("div",Iht,[R("div",Bht,[R("div",$ht,[N(A,{data:b(c),style:{width:"480px"},"max-height":b(u),"highlight-current-row":b(r),"row-class-name":v,onRowClick:T[0]||(T[0]=z=>g(z)),"header-cell-style":{background:"rgba(13, 22, 57, 0) "}},{empty:j(()=>[Pht]),default:j(()=>[N(E,{prop:"name",label:"名称"}),N(E,{prop:"density"},{header:j(()=>[Fht,zht,Uht]),_:1}),N(E,{prop:"diffcoe"},{header:j(()=>[Ght,Hht,Wht]),_:1}),N(E,{prop:"speheat",label:"比热"},{header:j(()=>[jht,Kht,Yht]),_:1})]),_:1},8,["data","max-height","highlight-current-row","header-cell-style"])])]),R("div",Xht,[R("div",qht,[R("div",Zht,[N(b(ct),{onClick:T[1]||(T[1]=z=>{w()})},{default:j(()=>[Be("添加")]),_:1})])]),R("div",Qht,[R("div",Jht,[N(b(ct),{onClick:T[2]||(T[2]=z=>_())},{default:j(()=>[Be(" 修改 ")]),_:1})])]),R("div",ept,[R("div",tpt,[N(b(ct),{onClick:T[3]||(T[3]=z=>y())},{default:j(()=>[Be(" 删除 ")]),_:1})])])])])])])])]),_:1})]),_:1},8,["modelValue"]),N(b(Mr),{modelValue:b(a),"onUpdate:modelValue":T[12]||(T[12]=z=>ft(a)?a.value=z:a=z),width:"400","align-center":"","append-to-body":!0,class:"dialog_class bgcolor tianjia foter_l tianjia"},{header:j(({titleId:z,titleClass:K})=>[R("div",npt,[N(I,{src:b(Cr),fit:"contain"},null,8,["src"]),R("h4",{id:z,class:Y(K)},We(b(s)),11,rpt)])]),default:j(()=>[N(W,{class:"demo-form-inline inputnuber",inline:!0,model:b(p)},{default:j(()=>[N(F,{label:"编号","label-width":o.value,width:"70"},{default:j(()=>[N(P,{modelValue:b(p).code,"onUpdate:modelValue":T[5]||(T[5]=z=>b(p).code=z),maxlength:"10",oninput:"value=value.replace(/[^\\w\\\\/]/ig,'')",class:"w-50 m-2",placeholder:"请输入"},null,8,["modelValue"])]),_:1},8,["label-width"]),N(F,{label:"名称","label-width":o.value},{default:j(()=>[N(P,{modelValue:b(p).name,"onUpdate:modelValue":T[6]||(T[6]=z=>b(p).name=z),maxlength:"18",class:"w-50 m-2",placeholder:"请输入"},null,8,["modelValue"])]),_:1},8,["label-width"]),N(F,{label:"密度(kg/m3) ","label-width":o.value},{default:j(()=>[N($,{modelValue:b(p).density,"onUpdate:modelValue":T[7]||(T[7]=z=>b(p).density=z),modelModifiers:{number:!0},min:-10,max:1e9,class:"w-50 m-2",placeholder:"请输入"},null,8,["modelValue"])]),_:1},8,["label-width"]),N(F,{label:"扩散系数(m2/s)","label-width":o.value},{default:j(()=>[N($,{min:-10,max:1e9,modelValue:b(p).diffcoe,"onUpdate:modelValue":T[8]||(T[8]=z=>b(p).diffcoe=z),modelModifiers:{number:!0},maxlength:"10",class:"w-50 m-2",placeholder:"请输入"},null,8,["modelValue"])]),_:1},8,["label-width"]),N(F,{label:"比热J/(kg*K)","label-width":o.value},{default:j(()=>[N($,{min:-10,max:1e9,modelValue:b(p).speheat,"onUpdate:modelValue":T[9]||(T[9]=z=>b(p).speheat=z),modelModifiers:{number:!0},maxlength:"10",class:"w-50 m-2",placeholder:"请输入"},null,8,["modelValue"])]),_:1},8,["label-width"])]),_:1},8,["model"]),R("div",apt,[R("div",ipt,[R("div",opt,[N(b(ct),{onClick:T[10]||(T[10]=z=>ft(a)?a.value=!1:a=!1)},{default:j(()=>[Be("取消")]),_:1})])]),R("div",spt,[R("div",lpt,[N(b(ct),{onClick:T[11]||(T[11]=z=>{C()})},{default:j(()=>[Be(" 确定 ")]),_:1})])])])]),_:1},8,["modelValue"]),N(b(Mr),{modelValue:b(i),"onUpdate:modelValue":T[15]||(T[15]=z=>ft(i)?i.value=z:i=z),"align-center":"","append-to-body":!0,width:"400",class:"dialog_class bgcolor tianjia"},{header:j(({titleId:z,titleClass:K})=>[R("div",upt,[N(I,{src:b(Cr),fit:"contain"},null,8,["src"]),R("h4",{id:z,class:Y(K)},"删除框",10,cpt)])]),default:j(()=>[R("h4",fpt,[Be(" 是否确认删除名称 "),R("span",dpt,We(b(d)),1)]),R("div",hpt,[R("div",ppt,[R("div",vpt,[N(b(ct),{onClick:T[13]||(T[13]=z=>ft(i)?i.value=!1:i=!1)},{default:j(()=>[Be("取消")]),_:1})])]),R("div",gpt,[R("div",ypt,[N(b(ct),{onClick:T[14]||(T[14]=z=>{m(),ft(i)?i.value=!1:i=!1})},{default:j(()=>[Be(" 确定 ")]),_:1})])])])]),_:1},8,["modelValue"])])]),_:1},512),[[cn,b(n)]])])])}}};const qb=t=>(Sb("data-v-3725d47a"),t=t(),wb(),t),bpt={class:"my-header"},Spt=["id"],wpt={class:"mgstamkuang"},xpt=qb(()=>R("span",null,"节点编号:",-1)),_pt=qb(()=>R("span",null,"名称:",-1)),Cpt=qb(()=>R("span",null,"X:",-1)),Tpt=qb(()=>R("span",null,"y:",-1)),Ept=qb(()=>R("span",null,"Z:",-1)),Mpt={class:"dialog-footer footer_div l_btn"},Dpt={class:"footerbtn flex1"},Apt={class:"borderimg"},kpt={class:"footerbtn flex1"},Rpt={class:"borderimg"},Lpt={__name:"SetNode",emits:["Dtext"],setup(t,{expose:e,emit:n}){let r=B(!1),a=B("节点信息"),i=B({id:"",name:"",x:"",y:"",z:""}),o=B();e({dialoglog:r,jgSelect:f});let s=B(null),l=B(null);const u=()=>{n("Dtext",l.value),o.value=sessionStorage.getItem("state"),hr.selectNoting(),hr.selectByNodeId(l.value.id),clearInterval(s.value)},c=()=>{o.value=sessionStorage.getItem("state"),console.log(o.value),hr.selectNoting(),clearInterval(s.value)};Sr(()=>{clearInterval(s.value)}),Ut(()=>{}),bu(()=>{clearInterval(s.value)});function f(){s.value=setInterval(()=>{l.value=hr.selectObj,l.value==null||(i.value=l.value)},200)}return(d,h)=>{const p=$e("el-image");return G(),re("div",null,[N(b(Mr),{width:"300px",modelValue:b(r),"onUpdate:modelValue":h[2]||(h[2]=v=>ft(r)?r.value=v:r=v),modal:!1,"close-on-click-modal":!1,"append-to-body":!0,draggable:"",fullscreen:!1,"modal-append-to-body":!1,"modal-class":"summary-dlg","show-close":!1,class:"right log_class bgcolor tianjia asideg asidegbg leftbgimg"},{header:j(({titleId:v,titleClass:g})=>[R("div",bpt,[N(p,{src:b(Cr),fit:"contain"},null,8,["src"]),R("h4",{id:v,class:Y(g)},We(b(a)),11,Spt)])]),default:j(()=>[R("div",wpt,[R("ul",null,[R("li",null,[xpt,Be(We(b(i).id),1)]),R("li",null,[_pt,Be(We(b(i).name),1)]),R("li",null,[Cpt,Be(We(b(i).x),1)]),R("li",null,[Tpt,Be(We(b(i).y),1)]),R("li",null,[Ept,Be(We(b(i).z),1)])])]),R("div",Mpt,[R("div",Dpt,[R("div",Apt,[N(b(ct),{onClick:h[0]||(h[0]=v=>{c(),ft(r)?r.value=!1:r=!1})},{default:j(()=>[Be("取消")]),_:1})])]),R("div",kpt,[R("div",Rpt,[N(b(ct),{onClick:h[1]||(h[1]=v=>{u(),ft(r)?r.value=!1:r=!1})},{default:j(()=>[Be(" 确定 ")]),_:1})])])])]),_:1},8,["modelValue"])])}}},Opt=w0(Lpt,[["__scopeId","data-v-3725d47a"]]);const XN=t=>(Sb("data-v-eebf5265"),t=t(),wb(),t),Vpt={class:"bou tablebk"},Npt={class:"common-layout",style:{margin:"0"}},Ipt={class:"demo-collapse"},Bpt={class:"l_Dialog"},$pt={class:"classtab"},Ppt={class:"asides_content"},Fpt={class:"jc_content tablecolor jc_content"},zpt={class:"font12 my_content1"},Upt={class:"btncolor tablefocus bmar"},Gpt=XN(()=>R("p",null,"暂无数据",-1)),Hpt={class:"dialog-footer footer_div l_btn"},Wpt={class:"footerbtn flex1"},jpt={class:"borderimg"},Kpt={class:"footerbtn flex1"},Ypt={class:"borderimg"},Xpt={class:"footerbtn flex1"},qpt={class:"borderimg"},Zpt={class:"xian tablefocus",style:{"margin-top":"20px"}},Qpt={class:"header_l header_z headerimg"},Jpt=XN(()=>R("h4",{class:"tianjia"},"预设路径节点",-1)),evt=XN(()=>R("p",null,"暂无数据",-1)),tvt={class:"dialog-footer footer_div l_btn"},nvt={class:"footerbtn flex1"},rvt={class:"borderimg"},avt={class:"footerbtn flex1"},ivt={class:"borderimg"},ovt={class:"footerbtn flex1"},svt={class:"borderimg"},lvt={class:"footerbtn flex1"},uvt={class:"borderimg"},cvt={class:"my-header"},fvt=["id"],dvt={class:"dialog-footer footer_div l_btn"},hvt={class:"footerbtn flex1"},pvt={class:"borderimg"},vvt={class:"footerbtn flex1"},gvt={class:"borderimg"},yvt={class:"my-header"},mvt=["id"],bvt={class:"demo-input-suffix firsttitle magintop"},Svt={class:"btn2"},wvt={class:"btn2",style:{"padding-left":"10px"}},xvt={class:"dialog-footer footer_div l_btn"},_vt={class:"footerbtn flex1"},Cvt={class:"borderimg"},Tvt={class:"footerbtn flex1"},Evt={class:"borderimg"},Mvt={class:"my-header"},Dvt=["id"],Avt={class:"delecttitle"},kvt={class:"spanclad"},Rvt={class:"dialog-footer footer_div l_btn"},Lvt={class:"footerbtn flex1"},Ovt={class:"borderimg"},Vvt={class:"footerbtn flex1"},Nvt={class:"borderimg"},Ivt={__name:"Menupath",setup(t,{expose:e}){let n=B(!1);B();let r=B(),a=B(""),i=B(""),o=B(),s=B(),l=B(!1),u=B(!0),c=B(!1),f=B(),d=B(!1),h=B(!1),p=B(!1),v=B(),g=B();B("Fire");const y=B(100);let m=B(""),S=B();B("first");let w=B(["1","2"]),C=B(200),_=B([]),x=B({}),T=B(),M=B(),E=B([]),A=B({wid:"",code:"",name:"",density:"",diffcoe:"",speheat:""}),k=B([]);B({selectstr:"",site:""}),B("");const L=({row:ue,rowIndex:fe})=>fe%2!=0?"evenRow":"oddRow",I=ue=>{u.value=!0,x.value=ue,V(ue)},P=ue=>{S.value=ue,ue=="1"?JSON.stringify(x.value)=="{}"?wt.error("你还没有选中删除的项目"):(h.value=!0,M.value=x.value.name):JSON.stringify(g.value)=="{}"?wt.error("你还没有选中删除的项目"):(h.value=!0,M.value=g.value.nname)},F=()=>{S.value=="1"?$():W()},$=()=>{const ue={transCode:"D10032",wid:x.value.wid};Rn(ue).then(fe=>{p.value=!1,K(),wt({message:"删除路径成功",type:"success"})}).catch(fe=>{wt.error(fe.returnMsg)})},W=()=>{const ue={transCode:"D10035",wnid:g.value.wnid};Rn(ue).then(fe=>{wt({message:"预设路径节点删除成功",type:"success"}),z()}).catch(fe=>{wt.error(fe.returnMsg)})},V=ue=>{E.value=ue,p.value=!0,z()},z=()=>{hr.safetypathremove();const ue={transCode:"D10033",wid:E.value.wid};Rn(ue).then(fe=>{k.value=fe.rows,g.value={},fe.rows.length==0?wt({message:"无路径数据!",type:"error"}):hr.safetypath(fe.rows)}).catch(fe=>{})};W2.on("handleSelect",ue=>{hr.safetypathremove()}),bu(()=>{W2.off("handleSelect")}),Ut(()=>{K()});const K=()=>{Rn({transCode:"D10030"}).then(fe=>{_.value=fe.rows,x.value={}}).catch(fe=>{wt.error(fe.returnMsg)})},Z=()=>{m.value="添加",f.value=m.value,u.value=!1,d.value=!0,A.value.wid="",A.value.code="",A.value.name="",x.value={}},oe=()=>{const ue={transCode:"D10031",wid:A.value.wid,code:A.value.code,name:A.value.name};Rn(ue).then(fe=>{_.value=fe.rows,u.value=!1,d.value=!1,K(),wt({message:f.value+"路径成功",type:"success"})}).catch(fe=>{const Re=/字段\d*/g;let Ne=fe.returnMsg.replace(Re,"");wt.error(Ne)})},ge=()=>{m.value="修改",f.value=m.value,JSON.stringify(x.value)=="{}"?wt.error("你还没有选中修改的项目"):(d.value=!0,A.value.wid=x.value.wid,A.value.code=x.value.code,A.value.name=x.value.name)},ie=()=>{r.value.dialoglog=!0,hr.clearJgAddMode(),hr.selectNodes(),r.value.jgSelect()},Q=()=>{s.value.dialogVisiblenode=!0,s.value.pipelinedata()},ce=ue=>{v.value=ue.id,a.value=ue.name},se=ue=>{console.log(ue),console.log(223333),a.value=ue.name,v.value=ue.id},me=()=>{i.value="添加",f.value=i.value,v.value=null,a.value=null,T.value="",o.value="",g.value={}},ve=ue=>{const fe={transCode:"D10034",wid:E.value.wid,wnid:T.value,nid:v.value,seq:o.value};console.log(o.value),console.log(fe),Rn(fe).then(Re=>{n.value=!1,wt({message:"预设路径节点"+f.value+"成功",type:"success"}),z(),c.value=!1}).catch(Re=>{wt.error(Re.returnMsg)})},he=()=>{JSON.stringify(g.value)=="{}"?wt.error("你还没有选中修改的项目"):(i.value="修改",f.value=i.value,n.value=!0,a.value=g.value.nname,v.value=g.value.nid,T.value=g.value.wnid,A.value.wid=g.value.wid,o.value=g.value.seq)},ee=ue=>{g.value=ue,console.log(g.value),c.value=!0};return e({sendialogVisible:l}),(ue,fe)=>{const Re=$e("el-icon"),Ne=$e("el-table-column"),De=$e("el-table"),we=$e("el-image"),ae=$e("el-collapse-item"),Ie=$e("el-collapse"),He=$e("el-input"),Ce=$e("el-form-item"),qe=$e("el-form"),Ze=$e("el-aside");return G(),re(Ct,null,[R("div",Vpt,[R("div",Npt,[Ft(N(Ze,{width:"357px",class:"L_aside L_aside1 asideg asidegbg leftbgimg1"},{default:j(()=>[R("div",Ipt,[N(Ie,{modelValue:b(w),"onUpdate:modelValue":fe[10]||(fe[10]=de=>ft(w)?w.value=de:w=de),accordion:""},{default:j(()=>[N(ae,{name:"1",class:"imgneon"},{title:j(()=>[N(Re,{class:"iconimg Frame3",fit:"contain"}),Be(" 路径预设"),N(Re,{class:"header-icon"})]),default:j(()=>[R("div",Bpt,[R("div",$pt,[R("div",Ppt,[R("div",Fpt,[R("div",zpt,[R("div",Upt,[N(De,{data:b(_),style:{width:"480px"},"max-height":b(C),"highlight-current-row":b(u),"row-class-name":L,onRowClick:fe[0]||(fe[0]=de=>I(de)),"header-cell-style":{background:"rgba(13, 22, 57, 0) "}},{empty:j(()=>[Gpt]),default:j(()=>[N(Ne,{prop:"name",label:"路径名称"})]),_:1},8,["data","max-height","highlight-current-row","header-cell-style"])])]),R("div",Hpt,[R("div",Wpt,[R("div",jpt,[N(b(ct),{onClick:fe[1]||(fe[1]=de=>{Z()})},{default:j(()=>[Be("添加")]),_:1})])]),R("div",Kpt,[R("div",Ypt,[N(b(ct),{onClick:fe[2]||(fe[2]=de=>ge())},{default:j(()=>[Be(" 修改 ")]),_:1})])]),R("div",Xpt,[R("div",qpt,[N(b(ct),{onClick:fe[3]||(fe[3]=de=>P("1"))},{default:j(()=>[Be(" 删除 ")]),_:1})])])])])])])]),Ft(R("div",Zpt,[R("div",Qpt,[N(we,{src:b(Cr),fit:"contain"},null,8,["src"]),Jpt,R("div",{class:"closeimg",onClick:fe[4]||(fe[4]=de=>ft(p)?p.value=!1:p=!1)})]),N(De,{data:b(k),style:{width:"100%"},"max-height":b(C),"row-class-name":L,"header-cell-style":{background:"rgba(13, 22, 57, 0) "},onRowClick:fe[5]||(fe[5]=de=>ee(de)),"highlight-current-row":b(c)},{empty:j(()=>[evt]),default:j(()=>[N(Ne,{prop:"nname",label:"节点名称"}),N(Ne,{prop:"seq",label:"排序"})]),_:1},8,["data","max-height","header-cell-style","highlight-current-row"]),R("div",tvt,[R("div",nvt,[R("div",rvt,[N(b(ct),{onClick:fe[6]||(fe[6]=de=>{me(),ft(n)?n.value=!0:n=!0})},{default:j(()=>[Be("添加")]),_:1})])]),R("div",avt,[R("div",ivt,[N(b(ct),{onClick:fe[7]||(fe[7]=de=>he())},{default:j(()=>[Be(" 修改 ")]),_:1})])]),R("div",ovt,[R("div",svt,[N(b(ct),{onClick:fe[8]||(fe[8]=de=>P("2"))},{default:j(()=>[Be(" 删除 ")]),_:1})])]),R("div",lvt,[R("div",uvt,[N(b(ct),{onClick:fe[9]||(fe[9]=de=>ft(p)?p.value=!1:p=!1)},{default:j(()=>[Be(" 关闭 ")]),_:1})])])])],512),[[cn,b(p)]])]),_:1})]),_:1},8,["modelValue"]),N(b(Mr),{"append-to-body":!0,"align-center":"","z-index":1e3,modelValue:b(d),"onUpdate:modelValue":fe[15]||(fe[15]=de=>ft(d)?d.value=de:d=de),width:"400",class:"dialog_class bgcolor tianjia foter_l tianjia"},{header:j(({titleId:de,titleClass:Xe})=>[R("div",cvt,[N(we,{src:b(Cr),fit:"contain"},null,8,["src"]),R("h4",{id:de,class:Y(Xe)},We(b(m)),11,fvt)])]),default:j(()=>[N(qe,{class:"demo-form-inline"},{default:j(()=>[N(Ce,{label:"编号","label-width":y.value},{default:j(()=>[N(He,{modelValue:b(A).code,"onUpdate:modelValue":fe[11]||(fe[11]=de=>b(A).code=de),maxlength:"10",oninput:"value=value.replace(/[^\\w\\\\/]/ig,'')",class:"w-50 m-2",placeholder:"请输入"},null,8,["modelValue"])]),_:1},8,["label-width"]),N(Ce,{label:"名称","label-width":y.value},{default:j(()=>[N(He,{modelValue:b(A).name,"onUpdate:modelValue":fe[12]||(fe[12]=de=>b(A).name=de),maxlength:"18",class:"w-50 m-2",placeholder:"请输入"},null,8,["modelValue"])]),_:1},8,["label-width"])]),_:1}),R("div",dvt,[R("div",hvt,[R("div",pvt,[N(b(ct),{onClick:fe[13]||(fe[13]=de=>ft(d)?d.value=!1:d=!1)},{default:j(()=>[Be("取消")]),_:1})])]),R("div",vvt,[R("div",gvt,[N(b(ct),{onClick:fe[14]||(fe[14]=de=>{oe()})},{default:j(()=>[Be(" 确定 ")]),_:1})])])])]),_:1},8,["modelValue"]),N(b(Mr),{"append-to-body":!0,"align-center":"",modal:!1,"lock-scroll":!1,"close-on-click-modal":!1,"modal-class":"summary-dlg",draggable:"",fullscreen:!1,"modal-append-to-body":!1,"z-index":1e3,modelValue:b(n),"onUpdate:modelValue":fe[22]||(fe[22]=de=>ft(n)?n.value=de:n=de),width:"400",class:"dialog_class bgcolor tianjia foter_l tianjia"},{header:j(({titleId:de,titleClass:Xe})=>[R("div",yvt,[N(we,{src:b(Cr),fit:"contain"},null,8,["src"]),R("h4",{id:de,class:Y(Xe)},We(b(i)),11,mvt)])]),default:j(()=>[R("div",bvt,[N(Ce,{label:"节点选择","label-width":y.value},{default:j(()=>[N(He,{modelValue:b(a),"onUpdate:modelValue":fe[16]||(fe[16]=de=>ft(a)?a.value=de:a=de),disabled:"",class:"w-50 m-2",placeholder:"节点选择"},null,8,["modelValue"])]),_:1},8,["label-width"]),R("div",Svt,[N(b(ct),{type:"primary",onClick:fe[17]||(fe[17]=de=>{Q()})},{default:j(()=>[Be("选择节点")]),_:1})]),R("div",wvt,[N(b(ct),{type:"primary",onClick:fe[18]||(fe[18]=de=>ie())},{default:j(()=>[Be("3D节点选择")]),_:1})])]),N(Ce,{label:"排序","label-width":y.value},{default:j(()=>[N(He,{modelValue:b(o),"onUpdate:modelValue":fe[19]||(fe[19]=de=>ft(o)?o.value=de:o=de),oninput:"value=value.replace(/[^0-9]/g,'')",maxlength:"10",class:"w-50 m-2",placeholder:"请输入"},null,8,["modelValue"])]),_:1},8,["label-width"]),R("div",xvt,[R("div",_vt,[R("div",Cvt,[N(b(ct),{onClick:fe[20]||(fe[20]=de=>ft(n)?n.value=!1:n=!1)},{default:j(()=>[Be("取消")]),_:1})])]),R("div",Tvt,[R("div",Evt,[N(b(ct),{onClick:fe[21]||(fe[21]=de=>{ve()})},{default:j(()=>[Be(" 确定 ")]),_:1})])])])]),_:1},8,["modelValue"]),N(b(Mr),{modelValue:b(h),"onUpdate:modelValue":fe[25]||(fe[25]=de=>ft(h)?h.value=de:h=de),"align-center":"","append-to-body":!0,width:"400",class:"dialog_class bgcolor tianjia"},{header:j(({titleId:de,titleClass:Xe})=>[R("div",Mvt,[N(we,{src:b(Cr),fit:"contain"},null,8,["src"]),R("h4",{id:de,class:Y(Xe)},"删除框",10,Dvt)])]),default:j(()=>[R("h4",Avt,[Be(" 是否确认删除 "),R("span",kvt,We(b(M)),1)]),R("div",Rvt,[R("div",Lvt,[R("div",Ovt,[N(b(ct),{onClick:fe[23]||(fe[23]=de=>ft(h)?h.value=!1:h=!1)},{default:j(()=>[Be("取消")]),_:1})])]),R("div",Vvt,[R("div",Nvt,[N(b(ct),{onClick:fe[24]||(fe[24]=de=>{F(),ft(h)?h.value=!1:h=!1})},{default:j(()=>[Be(" 确定 ")]),_:1})])])])]),_:1},8,["modelValue"])])]),_:1},512),[[cn,b(l)]])])]),N(uJ,{ref_key:"NodeSelectref",ref:s,onQueding:se},null,512),N(Opt,{ref_key:"dialogtrue",ref:r,onDtext:ce},null,512)],64)}}},Bvt=w0(Ivt,[["__scopeId","data-v-eebf5265"]]),$vt={class:"l_Dialog bou tablebk"},Pvt={class:"common-layout",style:{margin:"0"}},Fvt={class:"demo-collapse"},zvt={class:"l_Dialog"},Uvt={class:"classtab"},Gvt={class:"asides_content"},Hvt={class:"jc_content tablecolor jc_content"},Wvt={class:"font12 my_content1"},jvt={class:"btncolor tablefocus bmar"},Kvt=R("p",null,"暂无数据",-1),Yvt={class:"demo-pagination-block pagination",style:{"margin-top":"20px"}},Xvt={class:"dialog-footer footer_div l_btn"},qvt={class:"footerbtn flex1"},Zvt={class:"borderimg"},Qvt={class:"footerbtn flex1"},Jvt={class:"borderimg"},egt={class:"footerbtn flex1"},tgt={class:"borderimg"},ngt={class:"my-header"},rgt=["id"],agt={class:"demo-input-suffix firsttitle magintop guand_1"},igt={class:"btn2"},ogt={class:"dialog-footer footer_div l_btn"},sgt={class:"footerbtn flex1"},lgt={class:"borderimg"},ugt={class:"footerbtn flex1"},cgt={class:"borderimg"},fgt={class:"my-header"},dgt=["id"],hgt={class:"delecttitle"},pgt={class:"spanclad"},vgt={class:"dialog-footer footer_div l_btn"},ggt={class:"footerbtn flex1"},ygt={class:"borderimg"},mgt={class:"footerbtn flex1"},bgt={class:"borderimg"},Sgt={__name:"Menumap",setup(t,{expose:e}){const n=B(1),r=B(4);let a=B(1),i=B(),o=B(!0),s=B(!1),l=B(!1),u=B(!1);B("Fire");const c=B(100);let f=B(["1","2"]),d=B("");B("first");let h=B(200),p=B([]),v=B({}),g=B(),y=B(),m=B({ptcode:"",ptid:null,pid:null,pcode:"",pname:""}),S=B({selectstr:""});B("");const w=({row:P,rowIndex:F})=>F%2!=0?"evenRow":"oddRow",C=P=>{M()},_=P=>{v.value=P,o.value=!0,console.log(P)},x=()=>{JSON.stringify(v.value)=="{}"?wt.error("你还没有选中删除的项目"):(u.value=!0,g.value=v.value.pname)},T=()=>{const P={transCode:"M00008",ptid:v.value.ptid};Rn(P).then(F=>{wt({message:"平台管道映射删除成功",type:"success"}),M()}).catch(F=>{wt.error(F.returnMsg)})};Ut(()=>{M()});const M=()=>{const P={transCode:"M00006",count:r.value,page:n.value};Rn(P).then(F=>{p.value=F.rows,a.value=F.total,v.value={}}).catch(F=>{wt.error(F.returnMsg)})},E=()=>{d.value="添加",y.value=d.value,o.value=!1,l.value=!0,m.value.ptid=null,m.value.ptcode="",m.value.pid=null,m.value.pcode=null,S.value.selectstr="",v.value={}},A=()=>{if(m.value.ptcode==""){wt.error("平台编号不能为空");return}if(S.value.selectstr==""){wt.error("请选择巷道");return}const P={transCode:"M00007",ptid:m.value.ptid,ptcode:m.value.ptcode,pid:m.value.pid,pcode:m.value.pcode,pname:S.value.selectstr};console.log(P),Rn(P).then(F=>{wt({message:"平台管道映射"+y.value+"成功",type:"success"}),l.value=!1,M()}).catch(F=>{const $=/字段\d*/g;let W=F.returnMsg.replace($,"");wt.error(W)})},k=()=>{d.value="修改",y.value=d.value,JSON.stringify(v.value)=="{}"?wt.error("你还没有选中修改的项目"):(m.value.ptid=v.value.ptid,m.value.ptcode=v.value.ptcode,m.value.pid=v.value.pid,m.value.pcode=v.value.pcode,S.value.selectstr=v.value.pname,l.value=!0)},L=()=>{i.value.searchtaggd="",i.value.dialogVisiblenode=!0,i.value.pipelinedata("")},I=P=>{m.value.pid=P.id,m.value.pcode=P.code,S.value.selectstr=P.name,v.value.pid=P.id};return e({sendialogVisible:s}),(P,F)=>{const $=$e("el-icon"),W=$e("el-table-column"),V=$e("el-table"),z=$e("el-pagination"),K=$e("el-config-provider"),Z=$e("el-collapse-item"),oe=$e("el-collapse"),ge=$e("el-image"),ie=$e("el-input"),Q=$e("el-form-item"),ce=$e("el-form"),se=$e("el-aside");return G(),re("div",$vt,[R("div",Pvt,[Ft(N(se,{width:"480px",class:"L_aside L_aside1 asideg asidegbg leftbgimg1"},{default:j(()=>[R("div",Fvt,[N(oe,{modelValue:b(f),"onUpdate:modelValue":F[6]||(F[6]=me=>ft(f)?f.value=me:f=me),accordion:""},{default:j(()=>[N(Z,{name:"1",class:"btnicon"},{title:j(()=>[N($,{class:"iconimg Frame3",fit:"contain"}),Be(" 平台管道映射"),N($,{class:"header-icon"})]),default:j(()=>[R("div",zvt,[R("div",Uvt,[R("div",Gvt,[R("div",Hvt,[R("div",Wvt,[R("div",jvt,[N(V,{data:b(p),style:{width:"480px"},"max-height":b(h),"highlight-current-row":b(o),"row-class-name":w,onRowClick:F[0]||(F[0]=me=>_(me)),"header-cell-style":{background:"rgba(13, 22, 57, 0) "}},{empty:j(()=>[Kvt]),default:j(()=>[N(W,{type:"index",label:"编号",width:"70"}),N(W,{prop:"ptcode",label:"平台code"}),N(W,{prop:"ptid",label:"映射编号"}),N(W,{prop:"pname",label:"所在巷道"})]),_:1},8,["data","max-height","highlight-current-row","header-cell-style"]),R("div",Yvt,[N(K,{locale:b(Wg)},{default:j(()=>[N(z,{"current-page":n.value,"onUpdate:currentPage":F[1]||(F[1]=me=>n.value=me),"page-size":r.value,"onUpdate:pageSize":F[2]||(F[2]=me=>r.value=me),small:"",background:"",layout:"prev, total,pager, next, jumpe,",total:parseInt(b(a)),class:"mt-4",onCurrentChange:C},null,8,["current-page","page-size","total"])]),_:1},8,["locale"])])])]),R("div",Xvt,[R("div",qvt,[R("div",Zvt,[N(b(ct),{onClick:F[3]||(F[3]=me=>{E()})},{default:j(()=>[Be("添加")]),_:1})])]),R("div",Qvt,[R("div",Jvt,[N(b(ct),{onClick:F[4]||(F[4]=me=>k())},{default:j(()=>[Be(" 修改 ")]),_:1})])]),R("div",egt,[R("div",tgt,[N(b(ct),{onClick:F[5]||(F[5]=me=>x())},{default:j(()=>[Be(" 删除 ")]),_:1})])])])])])])])]),_:1})]),_:1},8,["modelValue"]),N(b(Mr),{modelValue:b(l),"onUpdate:modelValue":F[12]||(F[12]=me=>ft(l)?l.value=me:l=me),"align-center":"","append-to-body":!0,width:"400",class:"dialog_class bgcolor tianjia foter_l tianjia"},{header:j(({titleId:me,titleClass:ve})=>[R("div",ngt,[N(ge,{src:b(Cr),fit:"contain"},null,8,["src"]),R("h4",{id:me,class:Y(ve)},We(b(d)),11,rgt)])]),default:j(()=>[N(ce,{class:"demo-form-inline",inline:!0,model:b(m)},{default:j(()=>[N(Q,{label:"平台编号","label-width":c.value},{default:j(()=>[N(ie,{modelValue:b(m).ptcode,"onUpdate:modelValue":F[7]||(F[7]=me=>b(m).ptcode=me),maxlength:"15",class:"w-50 m-2",placeholder:"请输入"},null,8,["modelValue"])]),_:1},8,["label-width"]),R("div",agt,[N(Q,{label:"巷道名称","label-width":c.value},{default:j(()=>[N(ie,{modelValue:b(S).selectstr,"onUpdate:modelValue":F[8]||(F[8]=me=>b(S).selectstr=me),disabled:"",class:"w-50 m-2",placeholder:"巷道名称"},null,8,["modelValue"])]),_:1},8,["label-width"]),R("div",igt,[N(b(ct),{type:"primary",onClick:F[9]||(F[9]=me=>{L()})},{default:j(()=>[Be("选择巷道")]),_:1})])])]),_:1},8,["model"]),R("div",ogt,[R("div",sgt,[R("div",lgt,[N(b(ct),{onClick:F[10]||(F[10]=me=>ft(l)?l.value=!1:l=!1)},{default:j(()=>[Be("取消")]),_:1})])]),R("div",ugt,[R("div",cgt,[N(b(ct),{onClick:F[11]||(F[11]=me=>{A()})},{default:j(()=>[Be(" 确定 ")]),_:1})])])])]),_:1},8,["modelValue"]),N(b(Mr),{modelValue:b(u),"onUpdate:modelValue":F[15]||(F[15]=me=>ft(u)?u.value=me:u=me),"align-center":"","append-to-body":!0,width:"400",class:"dialog_class bgcolor tianjia"},{header:j(({titleId:me,titleClass:ve})=>[R("div",fgt,[N(ge,{src:b(Cr),fit:"contain"},null,8,["src"]),R("h4",{id:me,class:Y(ve)},"删除框",10,dgt)])]),default:j(()=>[R("h4",hgt,[Be(" 是否确认删除: "),R("span",pgt,We(b(g)),1)]),R("div",vgt,[R("div",ggt,[R("div",ygt,[N(b(ct),{onClick:F[13]||(F[13]=me=>ft(u)?u.value=!1:u=!1)},{default:j(()=>[Be("取消")]),_:1})])]),R("div",mgt,[R("div",bgt,[N(b(ct),{onClick:F[14]||(F[14]=me=>{T(),ft(u)?u.value=!1:u=!1})},{default:j(()=>[Be(" 确定 ")]),_:1})])])])]),_:1},8,["modelValue"]),N(Pb,{ref_key:"pipeline",ref:i,selectstr:b(S).selectstr,onPipelineapi:I},null,8,["selectstr"])])]),_:1},512),[[cn,b(s)]])])])}}},wgt={class:"l_Dialog bou tablebk"},xgt={class:"common-layout",style:{margin:"0"}},_gt={class:"demo-collapse"},Cgt={class:"asides_content"},Tgt={class:"jc_content tablecolor"},Egt={class:"jc_padding font12"},Mgt={class:"xian btncolor tablefocus bmar"},Dgt=R("p",null,"暂无数据",-1),Agt={class:"dialog-footer footer_div l_btn"},kgt={class:"footerbtn flex1"},Rgt={class:"borderimg"},Lgt={class:"footerbtn flex1"},Ogt={class:"borderimg"},Vgt={class:"footerbtn flex1"},Ngt={class:"borderimg"},Igt={class:"my-header"},Bgt=["id"],$gt={class:"demo-input-suffix firsttitle magintop"},Pgt={class:"btn2"},Fgt={class:"input"},zgt={style:{display:"flex"}},Ugt=R("span",{class:"switchppm"},"开启状态",-1),Ggt={class:"dialog-footer footer_div l_btn"},Hgt={class:"footerbtn flex1"},Wgt={class:"borderimg"},jgt={class:"footerbtn flex1"},Kgt={class:"borderimg"},Ygt={class:"my-header"},Xgt=["id"],qgt={class:"delecttitle"},Zgt={class:"spanclad"},Qgt={class:"dialog-footer footer_div l_btn"},Jgt={class:"footerbtn flex1"},e0t={class:"borderimg"},t0t={class:"footerbtn flex1"},n0t={class:"borderimg"},r0t={__name:"Menuventdoor",setup(t,{expose:e}){let n=B(200);const r=B(100);let a=B();const i=({row:x,rowIndex:T})=>T%2!=0?"evenRow":"oddRow";let o=B(!1),s=B(!1),l=B(!1),u=B([]),c=B({}),f=B();const d=x=>{c.value=x,o.value=!0},h=()=>{JSON.stringify(c.value)=="{}"?wt.error("你还没有选中修改的项目"):(f.value="修改",l.value=!0)},p=()=>{f.value="添加",c.value={},o.value=!1,l.value=!0},v=()=>{const x={transCode:"D50011",doorbaseid:c.value.doorbaseid,doorcode:c.value.doorcode,pid:c.value.pid,doorname:c.value.doorname,site:c.value.site,dragcoe:parseFloat(c.value.dragcoe),onoff:c.value.onoff};Rn(x).then(T=>{w(),l.value=!1,wt({message:"风门"+f.value+"成功",type:"success"})}).catch(T=>{wt.error(T.returnMsg)})};let g=B(!1),y=B("");const m=()=>{JSON.stringify(c.value)=="{}"?wt.error("你还没有选中删除的项目"):(g.value=!0,y.value=c.value.doorname)},S=()=>{if(JSON.stringify(c.value)=="{}")wt.error("你还没有选中删除的项目");else{const x={transCode:"D50012",doorbaseid:c.value.doorbaseid};Rn(x).then(T=>{w(),wt.success("风门删除成功")}).catch(T=>{wt.error(T.returnMsg)})}},w=()=>{Rn({transCode:"D50010"}).then(T=>{u.value=T.rows}).catch(T=>{wt.error(T.returnMsg)})};Ut(()=>{w()});const C=()=>{a.value.searchtaggd="",a.value.dialogVisiblenode=!0,a.value.pipelinedata("")},_=x=>{c.value.pid=x.id,c.value.pcode=x.code,c.value.pname=x.name};return e({sendialogVisible:s}),(x,T)=>{const M=$e("el-icon"),E=$e("el-table-column"),A=$e("el-table"),k=$e("el-collapse-item"),L=$e("el-collapse"),I=$e("el-image"),P=$e("el-input"),F=$e("el-form-item"),$=$e("el-input-number"),W=$e("el-switch"),V=$e("el-form"),z=$e("el-aside");return G(),re("div",wgt,[R("div",xgt,[Ft(N(z,{width:"480px",class:"L_aside L_aside1 asideg asidegbg leftbgimg1"},{default:j(()=>[R("div",_gt,[N(L,{accordion:""},{default:j(()=>[N(k,{name:"1",class:"btnicon"},{title:j(()=>[N(M,{class:"iconimg Frame3",fit:"contain"}),Be(" 风门"),N(M,{class:"header-icon"})]),default:j(()=>[R("div",Cgt,[R("div",Tgt,[R("div",Egt,[R("div",Mgt,[N(A,{data:b(u),style:{width:"100%"},"max-height":b(n),"highlight-current-row":b(o),"row-class-name":i,onRowClick:T[0]||(T[0]=K=>d(K)),"header-cell-style":{background:"rgba(13, 22, 57, 0) "}},{empty:j(()=>[Dgt]),default:j(()=>[N(E,{prop:"doorname",label:"风门名称"}),N(E,{prop:"pname",label:"巷道名称"}),N(E,{prop:"site",label:"相对位置"}),N(E,{prop:"dragcoe",label:"阻力系数"}),N(E,{prop:"onoff",label:"开启状态"},{default:j(K=>[Be(We(K.row.onoff==0?"否":(K.row.onoff==1,"是")),1)]),_:1})]),_:1},8,["data","max-height","highlight-current-row","header-cell-style"]),R("div",Agt,[R("div",kgt,[R("div",Rgt,[N(b(ct),{onClick:T[1]||(T[1]=K=>{p()})},{default:j(()=>[Be("添加")]),_:1})])]),R("div",Lgt,[R("div",Ogt,[N(b(ct),{onClick:T[2]||(T[2]=K=>{h()})},{default:j(()=>[Be("修改")]),_:1})])]),R("div",Vgt,[R("div",Ngt,[N(b(ct),{onClick:T[3]||(T[3]=K=>{m()})},{default:j(()=>[Be("删除")]),_:1})])])])])])])])]),_:1})]),_:1}),N(b(Mr),{modelValue:b(l),"onUpdate:modelValue":T[13]||(T[13]=K=>ft(l)?l.value=K:l=K),"align-center":"","append-to-body":!0,width:"400",class:"dialog_class bgcolor tianjia foter_l tianjia"},{header:j(({titleId:K,titleClass:Z})=>[R("div",Igt,[N(I,{src:b(Cr),fit:"contain"},null,8,["src"]),R("h4",{id:K,class:Y(Z)},We(b(f)),11,Bgt)])]),default:j(()=>[N(V,null,{default:j(()=>[N(F,{label:"编码","label-width":r.value},{default:j(()=>[N(P,{modelValue:b(c).doorcode,"onUpdate:modelValue":T[4]||(T[4]=K=>b(c).doorcode=K),maxlength:"18",oninput:"value=value.replace(/[^\\w\\\\/]/ig,'')",class:"w-50 m-2",placeholder:"请输入"},null,8,["modelValue"])]),_:1},8,["label-width"]),N(F,{label:"风门名称","label-width":r.value},{default:j(()=>[N(P,{modelValue:b(c).doorname,"onUpdate:modelValue":T[5]||(T[5]=K=>b(c).doorname=K),maxlength:"18",oninput:"value=value.replace(/[^\\a-\\z\\A-\\Z0-9\\u4E00-\\u9FA5]/g,'')",class:"w-50 m-2",placeholder:"请输入"},null,8,["modelValue"])]),_:1},8,["label-width"]),R("div",$gt,[N(F,{label:"巷道名称","label-width":r.value},{default:j(()=>[N(P,{modelValue:b(c).pname,"onUpdate:modelValue":T[6]||(T[6]=K=>b(c).pname=K),disabled:"",class:"w-50 m-2",placeholder:"巷道名称"},null,8,["modelValue"])]),_:1},8,["label-width"]),R("div",Pgt,[N(b(ct),{type:"primary",onClick:T[7]||(T[7]=K=>C())},{default:j(()=>[Be("选择巷道")]),_:1})])]),R("div",Fgt,[N(F,{label:"位置","label-width":r.value},{default:j(()=>[N($,{modelValue:b(c).site,"onUpdate:modelValue":T[8]||(T[8]=K=>b(c).site=K),min:0,max:1,precision:2,step:.1,"controls-position":"right",class:"w-50 m-2",placeholder:"位置"},null,8,["modelValue"])]),_:1},8,["label-width"])]),R("div",zgt,[Ugt,N(W,{modelValue:b(c).onoff,"onUpdate:modelValue":T[9]||(T[9]=K=>b(c).onoff=K),"inline-prompt":"","active-text":"是","inactive-text":"否","active-value":1,"inactive-value":0},null,8,["modelValue"])]),N(F,{label:"阻力系数","label-width":r.value},{default:j(()=>[N(P,{modelValue:b(c).dragcoe,"onUpdate:modelValue":T[10]||(T[10]=K=>b(c).dragcoe=K),maxlength:"10",oninput:"value=value.replace(/[^0-9.]/g,'')",class:"w-50 m-2",placeholder:"请输入"},null,8,["modelValue"])]),_:1},8,["label-width"])]),_:1}),R("div",Ggt,[R("div",Hgt,[R("div",Wgt,[N(b(ct),{onClick:T[11]||(T[11]=K=>ft(l)?l.value=!1:l=!1)},{default:j(()=>[Be("取消")]),_:1})])]),R("div",jgt,[R("div",Kgt,[N(b(ct),{onClick:T[12]||(T[12]=K=>v())},{default:j(()=>[Be(" 确定 ")]),_:1})])])])]),_:1},8,["modelValue"]),N(b(Mr),{modelValue:b(g),"onUpdate:modelValue":T[16]||(T[16]=K=>ft(g)?g.value=K:g=K),"align-center":"","append-to-body":!0,width:"400",class:"dialog_class bgcolor tianjia"},{header:j(({titleId:K,titleClass:Z})=>[R("div",Ygt,[N(I,{src:b(Cr),fit:"contain"},null,8,["src"]),R("h4",{id:K,class:Y(Z)},"删除框",10,Xgt)])]),default:j(()=>[R("h4",qgt,[Be(" 是否确认删除: "),R("span",Zgt,We(b(y)),1)]),R("div",Qgt,[R("div",Jgt,[R("div",e0t,[N(b(ct),{onClick:T[14]||(T[14]=K=>ft(g)?g.value=!1:g=!1)},{default:j(()=>[Be("取消")]),_:1})])]),R("div",t0t,[R("div",n0t,[N(b(ct),{onClick:T[15]||(T[15]=K=>{S(),ft(g)?g.value=!1:g=!1})},{default:j(()=>[Be(" 确定 ")]),_:1})])])])]),_:1},8,["modelValue"]),N(Pb,{ref_key:"pipeline",ref:a,selectstr:b(c).pname,onPipelineapi:_},null,8,["selectstr"])])]),_:1},512),[[cn,b(s)]])])])}}},a0t={class:"l_Dialog bou tablebk"},i0t={class:"common-layout",style:{margin:"0"}},o0t={class:"demo-collapse"},s0t={class:"asides_content"},l0t={class:"jc_content tablecolor"},u0t={class:"jc_padding font12"},c0t={class:"xian btncolor tablefocus bmar"},f0t=R("p",null,"暂无数据",-1),d0t=R("span",null,"增压",-1),h0t=R("br",null,null,-1),p0t=R("span",null,"(kpa)",-1),v0t={class:"dialog-footer footer_div l_btn"},g0t={class:"footerbtn flex1"},y0t={class:"borderimg"},m0t={class:"footerbtn flex1"},b0t={class:"borderimg"},S0t={class:"footerbtn flex1"},w0t={class:"borderimg"},x0t={class:"my-header"},_0t=["id"],C0t={class:"delecttitle"},T0t={class:"spanclad"},E0t={class:"dialog-footer footer_div l_btn"},M0t={class:"footerbtn flex1"},D0t={class:"borderimg"},A0t={class:"footerbtn flex1"},k0t={class:"borderimg"},R0t={class:"my-header"},L0t=["id"],O0t={class:"demo-input-suffix firsttitle magintop"},V0t={class:"btn2"},N0t={class:"input"},I0t={style:{display:"flex"}},B0t=R("span",{class:"switchppm"},"开启状态",-1),$0t={class:"dialog-footer footer_div l_btn"},P0t={class:"footerbtn flex1"},F0t={class:"borderimg"},z0t={class:"footerbtn flex1"},U0t={class:"borderimg"},G0t={__name:"Menuventfan",setup(t,{expose:e}){let n=B(200);const r=B(100);let a=B();const i=({row:x,rowIndex:T})=>T%2!=0?"evenRow":"oddRow";let o=B(!1),s=B(!1),l=B(!1),u=B([]),c=B({}),f=B();const d=x=>{c.value=x,o.value=!0},h=()=>{JSON.stringify(c.value)=="{}"?wt.error("你还没有选中修改的项目"):(f.value="修改",l.value=!0)},p=()=>{f.value="添加",c.value={},o.value=!1,l.value=!0},v=()=>{if(c.value.fanname==""||c.value.fanname==null){wt.error("风机名称不能为空");return}if(c.value.fancode==""||c.value.fancode==null){wt.error("风机编码不能为空");return}const x={transCode:"D50008",fanbaseid:c.value.fanbaseid,fancode:c.value.fancode,pid:c.value.pid,fanname:c.value.fanname,site:c.value.site,pa:parseFloat(c.value.pa),onoff:c.value.onoff};Rn(x).then(T=>{w(),l.value=!1,wt({message:"风机"+f.value+"成功",type:"success"})}).catch(T=>{wt.error(T.returnMsg)})};let g=B(!1),y=B("");const m=()=>{JSON.stringify(c.value)=="{}"?wt.error("你还没有选中删除的项目"):(g.value=!0,y.value=c.value.fanname)},S=()=>{if(JSON.stringify(c.value)=="{}")wt.error("你还没有选中删除的项目");else{const x={transCode:"D50009",fanbaseid:c.value.fanbaseid};Rn(x).then(T=>{w(),wt.success("风机删除成功")}).catch(T=>{wt.error(T.returnMsg)})}},w=()=>{Rn({transCode:"D50007"}).then(T=>{u.value=T.rows}).catch(T=>{wt.error(T.returnMsg)})};Ut(()=>{w()});const C=()=>{a.value.searchtaggd="",a.value.dialogVisiblenode=!0,a.value.pipelinedata("")},_=x=>{c.value.pid=x.id,c.value.pcode=x.code,c.value.pname=x.name};return e({sendialogVisible:s}),(x,T)=>{const M=$e("el-icon"),E=$e("el-table-column"),A=$e("el-table"),k=$e("el-collapse-item"),L=$e("el-collapse"),I=$e("el-image"),P=$e("el-input"),F=$e("el-form-item"),$=$e("el-input-number"),W=$e("el-switch"),V=$e("el-form"),z=$e("el-aside");return G(),re("div",a0t,[R("div",i0t,[Ft(N(z,{width:"480px",class:"L_aside L_aside1 asideg asidegbg leftbgimg1"},{default:j(()=>[R("div",o0t,[N(L,{accordion:""},{default:j(()=>[N(k,{name:"1",class:"btnicon"},{title:j(()=>[N(M,{class:"iconimg Frame3",fit:"contain"}),Be(" 风机"),N(M,{class:"header-icon"})]),default:j(()=>[R("div",s0t,[R("div",l0t,[R("div",u0t,[R("div",c0t,[N(A,{data:b(u),style:{width:"100%"},"max-height":b(n),"highlight-current-row":b(o),"row-class-name":i,onRowClick:T[0]||(T[0]=K=>d(K)),"header-cell-style":{background:"rgba(13, 22, 57, 0) "}},{empty:j(()=>[f0t]),default:j(()=>[N(E,{prop:"fanname",label:"风机名称"}),N(E,{prop:"pname",label:"巷道名称"}),N(E,{prop:"site",label:"相对位置"}),N(E,{prop:"pa"},{header:j(()=>[d0t,h0t,p0t]),_:1}),N(E,{prop:"onoff",label:"开启状态"},{default:j(K=>[Be(We(K.row.onoff=="0"?"否":(K.row.onoff=="1","是")),1)]),_:1})]),_:1},8,["data","max-height","highlight-current-row","header-cell-style"]),R("div",v0t,[R("div",g0t,[R("div",y0t,[N(b(ct),{onClick:T[1]||(T[1]=K=>{p()})},{default:j(()=>[Be("添加")]),_:1})])]),R("div",m0t,[R("div",b0t,[N(b(ct),{onClick:T[2]||(T[2]=K=>h())},{default:j(()=>[Be("修改")]),_:1})])]),R("div",S0t,[R("div",w0t,[N(b(ct),{onClick:T[3]||(T[3]=K=>m())},{default:j(()=>[Be("删除")]),_:1})])])])])])])])]),_:1})]),_:1}),N(b(Mr),{modelValue:b(g),"onUpdate:modelValue":T[6]||(T[6]=K=>ft(g)?g.value=K:g=K),"align-center":"","append-to-body":!0,width:"400",class:"dialog_class bgcolor tianjia"},{header:j(({titleId:K,titleClass:Z})=>[R("div",x0t,[N(I,{src:b(Cr),fit:"contain"},null,8,["src"]),R("h4",{id:K,class:Y(Z)},"删除框",10,_0t)])]),default:j(()=>[R("h4",C0t,[Be(" 是否确认删除: "),R("span",T0t,We(b(y)),1)]),R("div",E0t,[R("div",M0t,[R("div",D0t,[N(b(ct),{onClick:T[4]||(T[4]=K=>ft(g)?g.value=!1:g=!1)},{default:j(()=>[Be("取消")]),_:1})])]),R("div",A0t,[R("div",k0t,[N(b(ct),{onClick:T[5]||(T[5]=K=>{S(),ft(g)?g.value=!1:g=!1})},{default:j(()=>[Be(" 确定 ")]),_:1})])])])]),_:1},8,["modelValue"]),N(b(Mr),{modelValue:b(l),"onUpdate:modelValue":T[16]||(T[16]=K=>ft(l)?l.value=K:l=K),"align-center":"","append-to-body":!0,width:"400",class:"dialog_class bgcolor tianjia foter_l tianjia"},{header:j(({titleId:K,titleClass:Z})=>[R("div",R0t,[N(I,{src:b(Cr),fit:"contain"},null,8,["src"]),R("h4",{id:K,class:Y(Z)},We(b(f)),11,L0t)])]),default:j(()=>[N(V,null,{default:j(()=>[N(F,{label:"编码","label-width":r.value},{default:j(()=>[N(P,{modelValue:b(c).fancode,"onUpdate:modelValue":T[7]||(T[7]=K=>b(c).fancode=K),maxlength:"18",oninput:"value=value.replace(/[^\\w\\\\/]/ig,'')",class:"w-50 m-2",placeholder:"请输入"},null,8,["modelValue"])]),_:1},8,["label-width"]),N(F,{label:"风机名称","label-width":r.value},{default:j(()=>[N(P,{modelValue:b(c).fanname,"onUpdate:modelValue":T[8]||(T[8]=K=>b(c).fanname=K),maxlength:"18",oninput:"value=value.replace(/[^\\a-\\z\\A-\\Z0-9\\u4E00-\\u9FA5]/g,'')",class:"w-50 m-2",placeholder:"请输入"},null,8,["modelValue"])]),_:1},8,["label-width"]),R("div",O0t,[N(F,{label:"巷道名称","label-width":r.value},{default:j(()=>[N(P,{modelValue:b(c).pname,"onUpdate:modelValue":T[9]||(T[9]=K=>b(c).pname=K),disabled:"",class:"w-50 m-2",placeholder:"巷道名称"},null,8,["modelValue"])]),_:1},8,["label-width"]),R("div",V0t,[N(b(ct),{type:"primary",onClick:T[10]||(T[10]=K=>C())},{default:j(()=>[Be("选择巷道")]),_:1})])]),R("div",N0t,[N(F,{label:"位置","label-width":r.value},{default:j(()=>[N($,{modelValue:b(c).site,"onUpdate:modelValue":T[11]||(T[11]=K=>b(c).site=K),min:0,max:1,precision:2,step:.1,"controls-position":"right",class:"w-50 m-2",placeholder:"位置"},null,8,["modelValue"])]),_:1},8,["label-width"])]),R("div",I0t,[B0t,N(W,{modelValue:b(c).onoff,"onUpdate:modelValue":T[12]||(T[12]=K=>b(c).onoff=K),"inline-prompt":"","active-text":"是","inactive-text":"否","active-value":1,"inactive-value":0},null,8,["modelValue"])]),N(F,{label:"增压(kpa)","label-width":r.value},{default:j(()=>[N(P,{modelValue:b(c).pa,"onUpdate:modelValue":T[13]||(T[13]=K=>b(c).pa=K),maxlength:"10",oninput:"value=value.replace(/[^0-9.]/g,'')",class:"w-50 m-2",placeholder:"请输入"},null,8,["modelValue"])]),_:1},8,["label-width"])]),_:1}),R("div",$0t,[R("div",P0t,[R("div",F0t,[N(b(ct),{onClick:T[14]||(T[14]=K=>ft(l)?l.value=!1:l=!1)},{default:j(()=>[Be("取消")]),_:1})])]),R("div",z0t,[R("div",U0t,[N(b(ct),{onClick:T[15]||(T[15]=K=>v())},{default:j(()=>[Be(" 确定 ")]),_:1})])])])]),_:1},8,["modelValue"]),N(Pb,{ref_key:"pipeline",ref:a,selectstr:b(c).pname,onPipelineapi:_},null,8,["selectstr"])])]),_:1},512),[[cn,b(s)]])])])}}},H0t="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAAXNSR0IArs4c6QAAAIpJREFUKFNjzFjz352RgUFiegjjQgYsIGPd/2iGfwxvGMGM/wxL/v9nKJgZwjgRWW36mv/5jIwMExgZGRIYQRIwAWTF6GJgheiKQXyQScga4QqRFYPY6E4hXSGym3BaTZRnMtf8j//PyLAAX/AwMDLEMGZs+O/O8I9BZEYQ41JsAZ657n/8fyaGFwCSUmao4tQfEwAAAABJRU5ErkJggg==",W0t={class:"l_Dialog bou tablebk"},j0t={class:"common-layout",style:{margin:"0"}},K0t={class:"demo-collapse"},Y0t={class:"l_Dialog"},X0t={class:"classtab"},q0t={class:"asides_content"},Z0t={class:"jc_content tablecolor jc_content"},Q0t={class:"font12 my_content1"},J0t={class:"btncolor tablefocus bmar"},eyt=R("p",null,"暂无数据",-1),tyt=R("span",null,"开起高度",-1),nyt=R("br",null,null,-1),ryt=R("span",null,"(m)",-1),ayt=R("span",null,"关闭高度",-1),iyt=R("br",null,null,-1),oyt=R("span",null,"(m)",-1),syt={class:"dialog-footer footer_div l_btn"},lyt={class:"footerbtn flex1"},uyt={class:"borderimg"},cyt={class:"footerbtn flex1"},fyt={class:"borderimg"},dyt={class:"footerbtn flex1"},hyt={class:"borderimg"},pyt={class:"xian tablefocus",style:{"margin-top":"20px"}},vyt={class:"header_l header_z headerimg"},gyt=R("h4",{class:"tianjia"},"性能曲线",-1),yyt=R("p",null,"暂无数据",-1),myt=R("span",null,"水位高度",-1),byt=R("span",null,"(m)",-1),Syt=R("span",null,"流量",-1),wyt=R("span",null," (m³/s)",-1),xyt={class:"dialog-footer footer_div l_btn"},_yt={class:"footerbtn flex1"},Cyt={class:"borderimg"},Tyt={class:"footerbtn flex1"},Eyt={class:"borderimg"},Myt={class:"footerbtn flex1"},Dyt={class:"borderimg"},Ayt={class:"footerbtn flex1"},kyt={class:"borderimg"},Ryt={class:"my-header"},Lyt=["id"],Oyt={class:"dialog-footer footer_div l_btn"},Vyt={class:"footerbtn flex1"},Nyt={class:"borderimg"},Iyt={class:"footerbtn flex1"},Byt={class:"borderimg"},$yt={class:"my-header"},Pyt=["id"],Fyt={class:"demo-input-suffix firsttitle magintop guand_1"},zyt={class:"btn2"},Uyt={class:"input"},Gyt={style:{display:"flex"}},Hyt=R("span",{class:"switchppm"},"开启状态",-1),Wyt={class:"dialog-footer footer_div l_btn"},jyt={class:"footerbtn flex1"},Kyt={class:"borderimg"},Yyt={class:"footerbtn flex1"},Xyt={class:"borderimg"},qyt={class:"my-header"},Zyt=["id"],Qyt={class:"delecttitle"},Jyt={class:"spanclad"},emt={class:"dialog-footer footer_div l_btn"},tmt={class:"footerbtn flex1"},nmt={class:"borderimg"},rmt={class:"footerbtn flex1"},amt={class:"borderimg"},imt={class:"my-header"},omt=["id"],smt={class:"delecttitle"},lmt={class:"spanclad"},umt={class:"dialog-footer footer_div l_btn"},cmt={class:"footerbtn flex1"},fmt={class:"borderimg"},dmt={class:"footerbtn flex1"},hmt={class:"borderimg"},pmt={__name:"Menupump",setup(t,{expose:e}){let n=B(),r=B(!0),a=B(!0),i=B(!1),o=B(!1),s=B(!1),l=B(!1);B("Fire");const u=B(100);let c=B(["1","2"]),f=B("");B("first");let d=B(200),h=B([]),p=B({}),v=B(),g=B({}),y=B(),m=B(),S=B({}),w=B([]),C=B({}),_=B(!1),x=B(!1);const T=({row:ie,rowIndex:Q})=>Q%2!=0?"evenRow":"oddRow",M=ie=>{p.value=ie,r.value=!0,F(),_.value=!0},E=ie=>{C.value=ie,a.value=!0},A=()=>{JSON.stringify(C.value)=="{}"?wt.error("你还没有选中修改的项目"):(m.value="修改",x.value=!0)},k=()=>{m.value="添加",C.value={},a.value=!1,x.value=!0},L=()=>{const ie={transCode:"D50005",pumphfbaseid:C.value.pumphfbaseid,pumpbaseid:p.value.pumpbaseid,hight:parseFloat(C.value.hight),flow:parseFloat(C.value.flow)};Rn(ie).then(Q=>{F(),x.value=!1,wt({message:"水位"+m.value+"成功",type:"success"})}).catch(Q=>{wt.error(Q.returnMsg)})},I=()=>{JSON.stringify(C.value)=="{}"?wt.error("你还没有选中删除的项目"):(l.value=!0,g.value.hight=C.value.hight,g.value.flow=C.value.flow)},P=()=>{if(JSON.stringify(C.value)=="{}")wt.error("你还没有选中删除的项目");else{const ie={transCode:"D50006",pumphfbaseid:C.value.pumphfbaseid};Rn(ie).then(Q=>{F(),wt({message:"水位删除成功",type:"success"})}).catch(Q=>{wt.error(Q.returnMsg)})}},F=()=>{const ie={transCode:"D50004",pumpbaseid:p.value.pumpbaseid};Rn(ie).then(Q=>{w.value=Q.rows}).catch(Q=>{wt.error(Q.returnMsg)})},$=()=>{JSON.stringify(p.value)=="{}"?wt.error("你还没有选中删除的项目"):(s.value=!0,v.value=p.value.pumpname)},W=()=>{const ie={transCode:"D50003",pumpbaseid:p.value.pumpbaseid};Rn(ie).then(Q=>{wt({message:"水泵删除成功",type:"success"}),V()}).catch(Q=>{wt.error(Q.returnMsg)})};Ut(()=>{V()});const V=()=>{Rn({transCode:"D50001"}).then(Q=>{h.value=Q.rows,p.value={}}).catch(Q=>{wt.error(Q.returnMsg)})},z=()=>{f.value="添加",y.value=f.value,r.value=!1,o.value=!0,p.value={}},K=()=>{const ie={transCode:"D50002",pumpbaseid:S.value.pumpbaseid,pumpcode:S.value.pumpcode,pumpname:S.value.pumpname,openhig:parseFloat(S.value.openhig),closehig:parseFloat(S.value.closehig),pid:S.value.pid,site:S.value.site,onoff:S.value.onoff};console.log(ie),Rn(ie).then(Q=>{wt({message:"水泵"+y.value+"成功",type:"success"}),o.value=!1,V()}).catch(Q=>{const ce=/字段\d*/g;let se=Q.returnMsg.replace(ce,"");wt.error(se)})},Z=()=>{f.value="修改",y.value=f.value,JSON.stringify(p.value)=="{}"?wt.error("你还没有选中修改的项目"):(S.value=p.value,o.value=!0)},oe=()=>{n.value.searchtaggd="",n.value.dialogVisiblenode=!0,n.value.pipelinedata("")},ge=ie=>{S.value.pid=ie.id,S.value.pcode=ie.code,S.value.pname=ie.name,p.value.pid=ie.id};return e({sendialogVisible:i}),(ie,Q)=>{const ce=$e("el-icon"),se=$e("el-table-column"),me=$e("el-table"),ve=$e("el-image"),he=$e("el-collapse-item"),ee=$e("el-collapse"),ue=$e("el-input"),fe=$e("el-form-item"),Re=$e("el-form"),Ne=$e("el-input-number"),De=$e("el-switch"),we=$e("el-aside");return G(),re("div",W0t,[R("div",j0t,[Ft(N(we,{width:"480px",class:"L_aside L_aside1 asideg asidegbg leftbgimg1"},{default:j(()=>[R("div",K0t,[N(ee,{modelValue:b(c),"onUpdate:modelValue":Q[10]||(Q[10]=ae=>ft(c)?c.value=ae:c=ae),accordion:""},{default:j(()=>[N(he,{name:"1",class:"btnicon"},{title:j(()=>[N(ce,{class:"iconimg Frame3",fit:"contain"}),Be(" 水泵"),N(ce,{class:"header-icon"})]),default:j(()=>[R("div",Y0t,[R("div",X0t,[R("div",q0t,[R("div",Z0t,[R("div",Q0t,[R("div",J0t,[N(me,{data:b(h),style:{width:"480px"},"max-height":b(d),"highlight-current-row":b(r),"row-class-name":T,onRowClick:Q[0]||(Q[0]=ae=>M(ae)),"header-cell-style":{background:"rgba(13, 22, 57, 0) "}},{empty:j(()=>[eyt]),default:j(()=>[N(se,{type:"index",label:"编号",width:"70"}),N(se,{prop:"pumpname",label:"水泵名称"}),N(se,{prop:"pname",label:"巷道名称"}),N(se,{prop:"site",label:"位置"}),N(se,{prop:"onoff",label:"开启状态"},{default:j(ae=>[Be(We(ae.row.onoff=="0"?"否":(ae.row.onoff=="1","是")),1)]),_:1}),N(se,{prop:"openhig"},{header:j(()=>[tyt,nyt,ryt]),_:1}),N(se,{prop:"closehig"},{header:j(()=>[ayt,iyt,oyt]),_:1})]),_:1},8,["data","max-height","highlight-current-row","header-cell-style"])])]),R("div",syt,[R("div",lyt,[R("div",uyt,[N(b(ct),{onClick:Q[1]||(Q[1]=ae=>z())},{default:j(()=>[Be("添加")]),_:1})])]),R("div",cyt,[R("div",fyt,[N(b(ct),{onClick:Q[2]||(Q[2]=ae=>Z())},{default:j(()=>[Be(" 修改 ")]),_:1})])]),R("div",dyt,[R("div",hyt,[N(b(ct),{onClick:Q[3]||(Q[3]=ae=>$())},{default:j(()=>[Be(" 删除 ")]),_:1})])])]),Ft(R("div",pyt,[R("div",vyt,[N(ve,{src:b(Cr),fit:"contain"},null,8,["src"]),gyt,R("div",{class:"closeimg",onClick:Q[4]||(Q[4]=ae=>ft(_)?_.value=!1:_=!1)},[N(ve,{src:b(H0t),fit:"contain"},null,8,["src"])])]),N(me,{data:b(w),style:{width:"100%"},"max-height":b(d),"row-class-name":T,"header-cell-style":{background:"rgba(13, 22, 57, 0) "},onRowClick:Q[5]||(Q[5]=ae=>E(ae)),"highlight-current-row":b(a)},{empty:j(()=>[yyt]),default:j(()=>[N(se,{prop:"hight"},{header:j(()=>[myt,byt]),_:1}),N(se,{prop:"flow"},{header:j(()=>[Syt,wyt]),_:1})]),_:1},8,["data","max-height","header-cell-style","highlight-current-row"]),R("div",xyt,[R("div",_yt,[R("div",Cyt,[N(b(ct),{onClick:Q[6]||(Q[6]=ae=>{k()})},{default:j(()=>[Be("添加")]),_:1})])]),R("div",Tyt,[R("div",Eyt,[N(b(ct),{onClick:Q[7]||(Q[7]=ae=>{A()})},{default:j(()=>[Be(" 修改 ")]),_:1})])]),R("div",Myt,[R("div",Dyt,[N(b(ct),{onClick:Q[8]||(Q[8]=ae=>{I()})},{default:j(()=>[Be(" 删除 ")]),_:1})])]),R("div",Ayt,[R("div",kyt,[N(b(ct),{onClick:Q[9]||(Q[9]=ae=>ft(_)?_.value=!1:_=!1)},{default:j(()=>[Be(" 确定 ")]),_:1})])])])],512),[[cn,b(_)]])])])])])]),_:1})]),_:1},8,["modelValue"]),N(b(Mr),{modelValue:b(x),"onUpdate:modelValue":Q[15]||(Q[15]=ae=>ft(x)?x.value=ae:x=ae),"append-to-body":!0,width:"400","align-center":"",class:"dialog_class bgcolor tianjia"},{header:j(({titleId:ae,titleClass:Ie})=>[R("div",Ryt,[N(ve,{src:b(Cr),fit:"contain"},null,8,["src"]),R("h4",{id:ae,class:Y(Ie)},We(b(m)),11,Lyt)])]),default:j(()=>[R("div",null,[N(Re,{class:"demo-form-inline inputnuber"},{default:j(()=>[N(fe,{label:"水位高度(m)","label-width":u.value},{default:j(()=>[N(ue,{modelValue:b(C).hight,"onUpdate:modelValue":Q[11]||(Q[11]=ae=>b(C).hight=ae),maxlength:"10",oninput:"value=value.replace(/[^0-9.]/g,'')",class:"w-50 m-2",placeholder:"请输入"},null,8,["modelValue"])]),_:1},8,["label-width"]),N(fe,{label:"流量(m³/s)","label-width":u.value},{default:j(()=>[N(ue,{modelValue:b(C).flow,"onUpdate:modelValue":Q[12]||(Q[12]=ae=>b(C).flow=ae),maxlength:"10",oninput:"value=value.replace(/[^0-9.]/g,'')",class:"w-50 m-2",placeholder:"请输入"},null,8,["modelValue"])]),_:1},8,["label-width"])]),_:1})]),R("div",Oyt,[R("div",Vyt,[R("div",Nyt,[N(b(ct),{onClick:Q[13]||(Q[13]=ae=>ft(x)?x.value=!1:x=!1)},{default:j(()=>[Be("取消")]),_:1})])]),R("div",Iyt,[R("div",Byt,[N(b(ct),{onClick:Q[14]||(Q[14]=ae=>L())},{default:j(()=>[Be(" 确定 ")]),_:1})])])])]),_:1},8,["modelValue"]),N(b(Mr),{modelValue:b(o),"onUpdate:modelValue":Q[26]||(Q[26]=ae=>ft(o)?o.value=ae:o=ae),"align-center":"","append-to-body":!0,width:"400",class:"dialog_class bgcolor tianjia foter_l tianjia"},{header:j(({titleId:ae,titleClass:Ie})=>[R("div",$yt,[N(ve,{src:b(Cr),fit:"contain"},null,8,["src"]),R("h4",{id:ae,class:Y(Ie)},We(b(f)),11,Pyt)])]),default:j(()=>[N(Re,{class:"demo-form-inline",inline:!0,model:b(S)},{default:j(()=>[N(fe,{label:"编码","label-width":u.value},{default:j(()=>[N(ue,{modelValue:b(S).pumpcode,"onUpdate:modelValue":Q[16]||(Q[16]=ae=>b(S).pumpcode=ae),maxlength:"15",class:"w-50 m-2",placeholder:"请输入"},null,8,["modelValue"])]),_:1},8,["label-width"]),N(fe,{label:"水泵名称","label-width":u.value},{default:j(()=>[N(ue,{modelValue:b(S).pumpname,"onUpdate:modelValue":Q[17]||(Q[17]=ae=>b(S).pumpname=ae),maxlength:"18",oninput:"value=value.replace(/[^\\a-\\z\\A-\\Z0-9\\u4E00-\\u9FA5]/g,'')",class:"w-50 m-2",placeholder:"请输入"},null,8,["modelValue"])]),_:1},8,["label-width"]),R("div",Fyt,[N(fe,{label:"巷道名称","label-width":u.value},{default:j(()=>[N(ue,{modelValue:b(S).pname,"onUpdate:modelValue":Q[18]||(Q[18]=ae=>b(S).pname=ae),disabled:"",class:"w-50 m-2",placeholder:"巷道名称"},null,8,["modelValue"])]),_:1},8,["label-width"]),R("div",zyt,[N(b(ct),{type:"primary",onClick:Q[19]||(Q[19]=ae=>oe())},{default:j(()=>[Be("选择巷道")]),_:1})])]),R("div",Uyt,[N(fe,{label:"位置","label-width":u.value},{default:j(()=>[N(Ne,{modelValue:b(S).site,"onUpdate:modelValue":Q[20]||(Q[20]=ae=>b(S).site=ae),min:0,max:1,precision:2,step:.1,"controls-position":"right",class:"w-50 m-2",placeholder:"位置"},null,8,["modelValue"])]),_:1},8,["label-width"])]),R("div",Gyt,[Hyt,N(De,{modelValue:b(S).onoff,"onUpdate:modelValue":Q[21]||(Q[21]=ae=>b(S).onoff=ae),"inline-prompt":"","active-text":"是","inactive-text":"否","active-value":1,"inactive-value":0},null,8,["modelValue"])]),N(fe,{label:"开启高度(m)","label-width":u.value},{default:j(()=>[N(ue,{modelValue:b(S).openhig,"onUpdate:modelValue":Q[22]||(Q[22]=ae=>b(S).openhig=ae),maxlength:"10",oninput:"value=value.replace(/[^0-9.]/g,'')",class:"w-50 m-2",placeholder:"请输入"},null,8,["modelValue"])]),_:1},8,["label-width"]),N(fe,{label:"关闭高度(m)","label-width":u.value},{default:j(()=>[N(ue,{modelValue:b(S).closehig,"onUpdate:modelValue":Q[23]||(Q[23]=ae=>b(S).closehig=ae),maxlength:"10",oninput:"value=value.replace(/[^0-9.]/g,'')",class:"w-50 m-2",placeholder:"请输入"},null,8,["modelValue"])]),_:1},8,["label-width"])]),_:1},8,["model"]),R("div",Wyt,[R("div",jyt,[R("div",Kyt,[N(b(ct),{onClick:Q[24]||(Q[24]=ae=>ft(o)?o.value=!1:o=!1)},{default:j(()=>[Be("取消")]),_:1})])]),R("div",Yyt,[R("div",Xyt,[N(b(ct),{onClick:Q[25]||(Q[25]=ae=>K())},{default:j(()=>[Be(" 确定 ")]),_:1})])])])]),_:1},8,["modelValue"]),N(b(Mr),{modelValue:b(s),"onUpdate:modelValue":Q[29]||(Q[29]=ae=>ft(s)?s.value=ae:s=ae),"align-center":"","append-to-body":!0,width:"400",class:"dialog_class bgcolor tianjia"},{header:j(({titleId:ae,titleClass:Ie})=>[R("div",qyt,[N(ve,{src:b(Cr),fit:"contain"},null,8,["src"]),R("h4",{id:ae,class:Y(Ie)},"删除框",10,Zyt)])]),default:j(()=>[R("h4",Qyt,[Be(" 是否确认删除: "),R("span",Jyt,We(b(v)),1)]),R("div",emt,[R("div",tmt,[R("div",nmt,[N(b(ct),{onClick:Q[27]||(Q[27]=ae=>ft(s)?s.value=!1:s=!1)},{default:j(()=>[Be("取消")]),_:1})])]),R("div",rmt,[R("div",amt,[N(b(ct),{onClick:Q[28]||(Q[28]=ae=>{W(),ft(s)?s.value=!1:s=!1})},{default:j(()=>[Be(" 确定 ")]),_:1})])])])]),_:1},8,["modelValue"]),N(b(Mr),{modelValue:b(l),"onUpdate:modelValue":Q[32]||(Q[32]=ae=>ft(l)?l.value=ae:l=ae),"align-center":"","append-to-body":!0,width:"400",class:"dialog_class bgcolor tianjia"},{header:j(({titleId:ae,titleClass:Ie})=>[R("div",imt,[N(ve,{src:b(Cr),fit:"contain"},null,8,["src"]),R("h4",{id:ae,class:Y(Ie)},"删除框",10,omt)])]),default:j(()=>[R("h4",smt,[Be(" 是否确认删除: "),R("span",lmt,"水位高度:"+We(b(g).hight)+" 流速:"+We(b(g).flow),1)]),R("div",umt,[R("div",cmt,[R("div",fmt,[N(b(ct),{onClick:Q[30]||(Q[30]=ae=>ft(l)?l.value=!1:l=!1)},{default:j(()=>[Be("取消")]),_:1})])]),R("div",dmt,[R("div",hmt,[N(b(ct),{onClick:Q[31]||(Q[31]=ae=>{P(),ft(l)?l.value=!1:l=!1})},{default:j(()=>[Be(" 确定 ")]),_:1})])])])]),_:1},8,["modelValue"]),N(Pb,{ref_key:"pipeline",ref:n,pname:b(S).pname,onPipelineapi:ge},null,8,["pname"])])]),_:1},512),[[cn,b(i)]])])])}}};const vmt={class:"appmian"},gmt={class:"lfetflex"},ymt={class:"rightflex"},mmt={class:"hie"},bmt={__name:"configurator",setup(t,{expose:e}){B(""),Ut(()=>{}),Kve();let n=B(),r=B(),a=B(),i=B(),o=B(),s=B(),l=B(),u=B(),c=B(),f=B();return e({showmenum:()=>{n.value.dialogVisible=!0,r.value.sendialogVisible=!0,f.value.dialogVisible=!0,a.value.sendialogVisible=!0,i.value.sendialogVisible=!0,o.value.sendialogVisible=!0,s.value.sendialogVisible=!0,l.value.sendialogVisible=!0,u.value.sendialogVisible=!0,c.value.sendialogVisible=!0},menumfalse:()=>{n.value.dialogVisible=!1,r.value.sendialogVisible=!1,f.value.dialogVisible=!1,a.value.sendialogVisible=!1,i.value.sendialogVisible=!1,o.value.sendialogVisible=!1,s.value.sendialogVisible=!1,l.value.sendialogVisible=!1,u.value.sendialogVisible=!1,c.value.sendialogVisible=!1}}),(p,v)=>(G(),re("div",vmt,[R("div",gmt,[N(rYe,{ref_key:"menumine",ref:n},null,512),N(Uft,{ref_key:"menusen",ref:r},null,512),N(Sgt,{ref_key:"Menumapref",ref:s},null,512),N(G0t,{ref_key:"Menuventfanpref",ref:u},null,512),N(r0t,{ref_key:"Menuventdoorpref",ref:c},null,512),N(pmt,{ref_key:"Menupumppref",ref:l},null,512),N(Odt,{ref_key:"Menudisasterref",ref:f},null,512)]),R("div",ymt,[R("div",mmt,[N(Aht,{ref_key:"menucheck",ref:a},null,512),N(mpt,{ref_key:"menuphysics",ref:i},null,512),N(Bvt,{ref_key:"menupath",ref:o},null,512)])])]))}},Smt=w0(bmt,[["__scopeId","data-v-9a7a2604"]]);function wmt(t,e){e===void 0&&(e={});var n=e.insertAt;if(!(!t||typeof document>"u")){var r=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css",n==="top"&&r.firstChild?r.insertBefore(a,r.firstChild):r.appendChild(a),a.styleSheet?a.styleSheet.cssText=t:a.appendChild(document.createTextNode(t))}}var xmt=`.RenderWindowWithControlBar-module_rootContainer__1xqVd {
  1102. position: relative;
  1103. }
  1104. .RenderWindowWithControlBar-module_renderWindow__2mz6Z {
  1105. position: absolute;
  1106. top: 0;
  1107. left: 0;
  1108. right: 0;
  1109. bottom: 0;
  1110. }
  1111. .RenderWindowWithControlBar-module_control__38_dI {
  1112. z-index: 1;
  1113. position: absolute;
  1114. }
  1115. `,Aw={rootContainer:"RenderWindowWithControlBar-module_rootContainer__1xqVd",renderWindow:"RenderWindowWithControlBar-module_renderWindow__2mz6Z",control:"RenderWindowWithControlBar-module_control__38_dI"};wmt(xmt);const _mt={left(t){return{top:"0",left:"0",bottom:"0",right:"unset",height:"unset",width:`${t}px`}},right(t){return{top:"0",right:"0",bottom:"0",left:"unset",height:"unset",width:`${t}px`}},top(t){return{top:"0",left:"0",right:"0",bottom:"unset",width:"unset",height:`${t}px`}},bottom(t){return{bottom:"0",left:"0",right:"0",top:"unset",width:"unset",height:`${t}px`}}};function Cmt(t,e,n){const r=_mt[e](n);Object.keys(r).forEach(a=>{t.style[a]=r[a]})}function Tmt(t,e){const n={...t};function r(i){e.renderWindowContainer.style[i]="0px"}function a(){["left","right","top","bottom"].forEach(r),e.renderWindowContainer.style[e.controlPosition]=`${e.controlSize}px`,Cmt(e.controlContainer,e.controlPosition,e.controlSize)}e.renderWindowContainer=document.createElement("div"),e.renderWindowContainer.classList.add(Aw.renderWindow),n.setContainer(e.renderWindowContainer),e.controlContainer=document.createElement("div"),e.controlContainer.classList.add(Aw.control),t.setContainer=i=>{e.rootContainer&&(e.rootContainer.removeChild(e.container),e.rootContainer.removeChild(e.controlContainer),e.rootContainer.classList.remove(Aw.rootContainer)),e.rootContainer=i,e.rootContainer&&(e.rootContainer.appendChild(e.container),e.rootContainer.appendChild(e.controlContainer),e.rootContainer.classList.add(Aw.rootContainer),a(),t.resize())},t.setControlSize=i=>{e.controlSize=i,a(),t.modified()},t.setControlPosition=i=>{e.controlPosition=i,a(),t.modified()},e.listenWindowResize&&window.addEventListener("resize",t.resize),a(),t.resize()}const Emt={rootContainer:null,controlPosition:"left",controlSize:10};function Mmt(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Emt,n),XT.extend(t,e),J.get(t,e,["rootContainer","controlContainer","renderWindowContainer"]),Tmt(t,e)}J.newInstance(Mmt,"vtkRenderWindowWithControlBar");const Dmt={bit:Uint8Array,unsigned_char:Uint8Array,char:Int8Array,unsigned_short:Uint16Array,short:Int16Array,unsigned_int:Uint32Array,int:Int32Array,unsigned_long:Uint32Array,long:Int32Array,float:Float32Array,double:Float64Array};function AD(t,e,n){let r=0;function a(i){return i.split(" ").forEach(o=>{o.length&&(t[r++]=Number(o))}),r<t.length?!0:(e(t,n),!1)}return a}const Amt={DATASET:{init(t,e){const n=t.split(" ")[1];switch(n){case"UNSTRUCTURED_GRID":e.dataset=$a.newInstance();break;default:console.error(`Dataset of type ${n} not supported`)}return!1},parse(t,e){return!1}},POINTS:{init(t,e){const[n,r,a]=t.split(" "),i=a==="float"?new Float32Array(3*Number(r)):new Float64Array(3*Number(r)),o=e.dataset.getPoints();return o.setName(n),e.arrayHandler=AD(i,o.setData,3),!0},parse(t,e){return e.arrayHandler(t)}},CELLS:{init(t,e){const[n,r,a]=t.split(" "),i=e.dataset.getPolys();return i.set({numberOfCells:Number(r)},!0),e.arrayHandler=AD(new Uint32Array(Number(a)),i.setData,1),!0},parse(t,e){return e.arrayHandler(t)}},POINT_DATA:{init(t,e){return e.POINT_DATA=Number(t.split(" ")[1]),e.activeFieldLocation="POINT_DATA",!1},parse(t,e){return!1}},SCALARS:{init(t,e){e.scalars||(e.scalars=new Map);const[n,r,a]=t.split(" "),i=1,o=new Dmt[a](e.POINT_DATA),s=zn.newInstance({name:r,size:e.POINT_DATA});return e.scalars.set(r,o),e.arrayHandler=AD(o,s.setData,i),!0},parse(t,e){return t.split(" ")[0]==="LOOKUP_TABLE"?!0:e.arrayHandler(t)}}};function kmt(t,e){const n=t.split(" ");return Amt[n[0]]}function Rmt(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=null;const a=/\r?\n/.exec(t),i=a!==null?a[0]:null;return t.split(i).forEach((o,s)=>{if(!(s<0)){if(!n){if(n=kmt(o),!n)return;n=n.init(o,e)?n:null;return}n&&!n.parse(o,e)&&(n=null)}}),e}var Lmt={parseLegacyASCII:Rmt};function Omt(t,e){e.classHierarchy.push("vtkUnstructuredDataReader"),e.dataAccessHelper||(e.dataAccessHelper=KN.get("http"));function n(r){const{compression:a,progressCallback:i}=e;return e.dataAccessHelper.fetchText(t,r,{compression:a,progressCallback:i})}t.setUrl=function(r){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};e.url=r;const i=r.split("/");return i.pop(),e.baseURL=i.join("/"),e.compression=a.compression,t.loadData({progressCallback:a.progressCallback})},t.loadData=function(){const r=n(e.url);return r.then(t.parseAsText),r},t.parseAsText=r=>{if(r){if(r!==e.parseData)t.modified();else return;e.parseData=r,e.dataModel=Lmt.parseLegacyASCII(e.parseData),e.output[0]=e.dataModel.dataset,e.output[1]=e.dataModel.scalars}},t.requestData=(r,a)=>{t.parseAsText(e.parseData)}}const Vmt={};function xae(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Vmt,n),J.obj(t,e),J.get(t,e,["url","baseURL"]),J.setGet(t,e,["dataAccessHelper"]),J.algo(t,e,0,1),Omt(t,e),e.compression||(e.compression=null),e.progressCallback||(e.progressCallback=null)}const Nmt=J.newInstance(xae,"vtkUnstructuredDataReader");var Imt={newInstance:Nmt,extend:xae};/*! *****************************************************************************
  1116. Copyright (c) Microsoft Corporation.
  1117. Permission to use, copy, modify, and/or distribute this software for any
  1118. purpose with or without fee is hereby granted.
  1119. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  1120. REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  1121. AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  1122. INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  1123. LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  1124. OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  1125. PERFORMANCE OF THIS SOFTWARE.
  1126. ***************************************************************************** */var JL=function(t,e){return JL=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(n[a]=r[a])},JL(t,e)};function Fe(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");JL(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var Bmt=function(){function t(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return t}(),$mt=function(){function t(){this.browser=new Bmt,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 t}(),uh=new $mt;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(uh.wxa=!0,uh.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?uh.worker=!0:typeof navigator>"u"?(uh.node=!0,uh.svgSupported=!0):Pmt(navigator.userAgent,uh);function Pmt(t,e){var n=e.browser,r=t.match(/Firefox\/([\d.]+)/),a=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),i=t.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(t);r&&(n.firefox=!0,n.version=r[1]),a&&(n.ie=!0,n.version=a[1]),i&&(n.edge=!0,n.version=i[1],n.newEdge=+i[1].split(".")[0]>18),o&&(n.weChat=!0),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,e.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),e.domSupported=typeof document<"u";var s=document.documentElement.style;e.transform3dSupported=(n.ie&&"transition"in s||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||n.ie&&+n.version>=9}const Fn=uh;var qN=12,_ae="sans-serif",Yf=qN+"px "+_ae,Fmt=20,zmt=100,Umt="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function Gmt(t){var e={};if(typeof JSON>"u")return e;for(var n=0;n<t.length;n++){var r=String.fromCharCode(n+32),a=(t.charCodeAt(n)-Fmt)/zmt;e[r]=a}return e}var Hmt=Gmt(Umt),ml={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var t,e;return function(n,r){if(!t){var a=ml.createCanvas();t=a&&a.getContext("2d")}if(t)return e!==r&&(e=t.font=r||Yf),t.measureText(n);n=n||"",r=r||Yf;var i=/(\d+)px/.exec(r),o=i&&+i[1]||qN,s=0;if(r.indexOf("mono")>=0)s=o*n.length;else for(var l=0;l<n.length;l++){var u=Hmt[n[l]];s+=u==null?o:u*o}return{width:s}}}(),loadImage:function(t,e,n){var r=new Image;return r.onload=e,r.onerror=n,r.src=t,r}};function Cae(t){for(var e in ml)t[e]&&(ml[e]=t[e])}var Tae=Ds(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(t,e){return t["[object "+e+"]"]=!0,t},{}),Eae=Ds(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(t,e){return t["[object "+e+"Array]"]=!0,t},{}),M0=Object.prototype.toString,ZT=Array.prototype,Wmt=ZT.forEach,jmt=ZT.filter,ZN=ZT.slice,Kmt=ZT.map,xz=(function(){}).constructor,kw=xz?xz.prototype:null,QN="__proto__",Ymt=2311;function JN(){return Ymt++}function QT(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];typeof console<"u"&&console.error.apply(console,t)}function Zt(t){if(t==null||typeof t!="object")return t;var e=t,n=M0.call(t);if(n==="[object Array]"){if(!vg(t)){e=[];for(var r=0,a=t.length;r<a;r++)e[r]=Zt(t[r])}}else if(Eae[n]){if(!vg(t)){var i=t.constructor;if(i.from)e=i.from(t);else{e=new i(t.length);for(var r=0,a=t.length;r<a;r++)e[r]=t[r]}}}else if(!Tae[n]&&!vg(t)&&!e0(t)){e={};for(var o in t)t.hasOwnProperty(o)&&o!==QN&&(e[o]=Zt(t[o]))}return e}function hn(t,e,n){if(!qt(e)||!qt(t))return n?Zt(e):t;for(var r in e)if(e.hasOwnProperty(r)&&r!==QN){var a=t[r],i=e[r];qt(i)&&qt(a)&&!st(i)&&!st(a)&&!e0(i)&&!e0(a)&&!eO(i)&&!eO(a)&&!vg(i)&&!vg(a)?hn(a,i,n):(n||!(r in t))&&(t[r]=Zt(e[r]))}return t}function JT(t,e){for(var n=t[0],r=1,a=t.length;r<a;r++)n=hn(n,t[r],e);return n}function et(t,e){if(Object.assign)Object.assign(t,e);else for(var n in e)e.hasOwnProperty(n)&&n!==QN&&(t[n]=e[n]);return t}function Xt(t,e,n){for(var r=Dn(e),a=0;a<r.length;a++){var i=r[a];(n?e[i]!=null:t[i]==null)&&(t[i]=e[i])}return t}var Xmt=ml.createCanvas;function bn(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var n=0,r=t.length;n<r;n++)if(t[n]===e)return n}return-1}function eI(t,e){var n=t.prototype;function r(){}r.prototype=e.prototype,t.prototype=new r;for(var a in n)n.hasOwnProperty(a)&&(t.prototype[a]=n[a]);t.prototype.constructor=t,t.superClass=e}function ha(t,e,n){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var r=Object.getOwnPropertyNames(e),a=0;a<r.length;a++){var i=r[a];i!=="constructor"&&(n?e[i]!=null:t[i]==null)&&(t[i]=e[i])}else Xt(t,e,n)}function mi(t){return!t||typeof t=="string"?!1:typeof t.length=="number"}function q(t,e,n){if(t&&e)if(t.forEach&&t.forEach===Wmt)t.forEach(e,n);else if(t.length===+t.length)for(var r=0,a=t.length;r<a;r++)e.call(n,t[r],r,t);else for(var i in t)t.hasOwnProperty(i)&&e.call(n,t[i],i,t)}function ut(t,e,n){if(!t)return[];if(!e)return eE(t);if(t.map&&t.map===Kmt)return t.map(e,n);for(var r=[],a=0,i=t.length;a<i;a++)r.push(e.call(n,t[a],a,t));return r}function Ds(t,e,n,r){if(t&&e){for(var a=0,i=t.length;a<i;a++)n=e.call(r,n,t[a],a,t);return n}}function or(t,e,n){if(!t)return[];if(!e)return eE(t);if(t.filter&&t.filter===jmt)return t.filter(e,n);for(var r=[],a=0,i=t.length;a<i;a++)e.call(n,t[a],a,t)&&r.push(t[a]);return r}function Mae(t,e,n){if(t&&e){for(var r=0,a=t.length;r<a;r++)if(e.call(n,t[r],r,t))return t[r]}}function Dn(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(n);return e}function qmt(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return function(){return t.apply(e,n.concat(ZN.call(arguments)))}}var Nt=kw&&jt(kw.bind)?kw.call.bind(kw.bind):qmt;function sn(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return function(){return t.apply(this,e.concat(ZN.call(arguments)))}}function st(t){return Array.isArray?Array.isArray(t):M0.call(t)==="[object Array]"}function jt(t){return typeof t=="function"}function Ot(t){return typeof t=="string"}function j2(t){return M0.call(t)==="[object String]"}function Un(t){return typeof t=="number"}function qt(t){var e=typeof t;return e==="function"||!!t&&e==="object"}function eO(t){return!!Tae[M0.call(t)]}function ko(t){return!!Eae[M0.call(t)]}function e0(t){return typeof t=="object"&&typeof t.nodeType=="number"&&typeof t.ownerDocument=="object"}function Zb(t){return t.colorStops!=null}function Dae(t){return t.image!=null}function Aae(t){return M0.call(t)==="[object RegExp]"}function t0(t){return t!==t}function Ua(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=0,r=t.length;n<r;n++)if(t[n]!=null)return t[n]}function gn(t,e){return t??e}function hl(t,e,n){return t??e??n}function eE(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return ZN.apply(t,e)}function tE(t){if(typeof t=="number")return[t,t,t,t];var e=t.length;return e===2?[t[0],t[1],t[0],t[1]]:e===3?[t[0],t[1],t[2],t[1]]:t}function Ii(t,e){if(!t)throw new Error(e)}function vs(t){return t==null?null:typeof t.trim=="function"?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var kae="__ec_primitive__";function P1(t){t[kae]=!0}function vg(t){return t[kae]}var Zmt=function(){function t(){this.data={}}return t.prototype.delete=function(e){var n=this.has(e);return n&&delete this.data[e],n},t.prototype.has=function(e){return this.data.hasOwnProperty(e)},t.prototype.get=function(e){return this.data[e]},t.prototype.set=function(e,n){return this.data[e]=n,this},t.prototype.keys=function(){return Dn(this.data)},t.prototype.forEach=function(e){var n=this.data;for(var r in n)n.hasOwnProperty(r)&&e(n[r],r)},t}(),Rae=typeof Map=="function";function Qmt(){return Rae?new Map:new Zmt}var Lae=function(){function t(e){var n=st(e);this.data=Qmt();var r=this;e instanceof t?e.each(a):e&&q(e,a);function a(i,o){n?r.set(i,o):r.set(o,i)}}return t.prototype.hasKey=function(e){return this.data.has(e)},t.prototype.get=function(e){return this.data.get(e)},t.prototype.set=function(e,n){return this.data.set(e,n),n},t.prototype.each=function(e,n){this.data.forEach(function(r,a){e.call(n,r,a)})},t.prototype.keys=function(){var e=this.data.keys();return Rae?Array.from(e):e},t.prototype.removeKey=function(e){this.data.delete(e)},t}();function Gt(t){return new Lae(t)}function F1(t,e){for(var n=new t.constructor(t.length+e.length),r=0;r<t.length;r++)n[r]=t[r];for(var a=t.length,r=0;r<e.length;r++)n[r+a]=e[r];return n}function Qb(t,e){var n;if(Object.create)n=Object.create(t);else{var r=function(){};r.prototype=t,n=new r}return e&&et(n,e),n}function tI(t){var e=t.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function Bt(t,e){return t.hasOwnProperty(e)}function fa(){}var Vm=180/Math.PI;const Jmt=Object.freeze(Object.defineProperty({__proto__:null,HashMap:Lae,RADIAN_TO_DEGREE:Vm,assert:Ii,bind:Nt,clone:Zt,concatArray:F1,createCanvas:Xmt,createHashMap:Gt,createObject:Qb,curry:sn,defaults:Xt,disableUserSelect:tI,each:q,eqNaN:t0,extend:et,filter:or,find:Mae,guid:JN,hasOwn:Bt,indexOf:bn,inherits:eI,isArray:st,isArrayLike:mi,isBuiltInObject:eO,isDom:e0,isFunction:jt,isGradientObject:Zb,isImagePatternObject:Dae,isNumber:Un,isObject:qt,isPrimitive:vg,isRegExp:Aae,isString:Ot,isStringSafe:j2,isTypedArray:ko,keys:Dn,logError:QT,map:ut,merge:hn,mergeAll:JT,mixin:ha,noop:fa,normalizeCssArray:tE,reduce:Ds,retrieve:Ua,retrieve2:gn,retrieve3:hl,setAsPrimitive:P1,slice:eE,trim:vs},Symbol.toStringTag,{value:"Module"}));function cd(t,e){return t==null&&(t=0),e==null&&(e=0),[t,e]}function Di(t,e){return t[0]=e[0],t[1]=e[1],t}function su(t){return[t[0],t[1]]}function Oae(t,e,n){return t[0]=e,t[1]=n,t}function tO(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function K2(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t}function Sf(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function z1(t){return Math.sqrt(nI(t))}var e1t=z1;function nI(t){return t[0]*t[0]+t[1]*t[1]}var t1t=nI;function n1t(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t}function r1t(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t}function a1t(t,e){return t[0]*e[0]+t[1]*e[1]}function Nm(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function Bp(t,e){var n=z1(e);return n===0?(t[0]=0,t[1]=0):(t[0]=e[0]/n,t[1]=e[1]/n),t}function Y2(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var Xu=Y2;function Vae(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var Lf=Vae;function i1t(t,e){return t[0]=-e[0],t[1]=-e[1],t}function Im(t,e,n,r){return t[0]=e[0]+r*(n[0]-e[0]),t[1]=e[1]+r*(n[1]-e[1]),t}function ai(t,e,n){var r=e[0],a=e[1];return t[0]=n[0]*r+n[2]*a+n[4],t[1]=n[1]*r+n[3]*a+n[5],t}function qu(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function Zu(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}const o1t=Object.freeze(Object.defineProperty({__proto__:null,add:tO,applyTransform:ai,clone:su,copy:Di,create:cd,dist:Xu,distSquare:Lf,distance:Y2,distanceSquare:Vae,div:r1t,dot:a1t,len:z1,lenSquare:nI,length:e1t,lengthSquare:t1t,lerp:Im,max:Zu,min:qu,mul:n1t,negate:i1t,normalize:Bp,scale:Nm,scaleAndAdd:K2,set:Oae,sub:Sf},Symbol.toStringTag,{value:"Module"}));var lv=function(){function t(e,n){this.target=e,this.topTarget=n&&n.topTarget}return t}(),s1t=function(){function t(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return t.prototype._dragStart=function(e){for(var n=e.target;n&&!n.draggable;)n=n.parent||n.__hostTarget;n&&(this._draggingTarget=n,n.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new lv(n,e),"dragstart",e.event))},t.prototype._drag=function(e){var n=this._draggingTarget;if(n){var r=e.offsetX,a=e.offsetY,i=r-this._x,o=a-this._y;this._x=r,this._y=a,n.drift(i,o,e),this.handler.dispatchToElement(new lv(n,e),"drag",e.event);var s=this.handler.findHover(r,a,n).target,l=this._dropTarget;this._dropTarget=s,n!==s&&(l&&s!==l&&this.handler.dispatchToElement(new lv(l,e),"dragleave",e.event),s&&s!==l&&this.handler.dispatchToElement(new lv(s,e),"dragenter",e.event))}},t.prototype._dragEnd=function(e){var n=this._draggingTarget;n&&(n.dragging=!1),this.handler.dispatchToElement(new lv(n,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new lv(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},t}();const l1t=s1t;var u1t=function(){function t(e){e&&(this._$eventProcessor=e)}return t.prototype.on=function(e,n,r,a){this._$handlers||(this._$handlers={});var i=this._$handlers;if(typeof n=="function"&&(a=r,r=n,n=null),!r||!e)return this;var o=this._$eventProcessor;n!=null&&o&&o.normalizeQuery&&(n=o.normalizeQuery(n)),i[e]||(i[e]=[]);for(var s=0;s<i[e].length;s++)if(i[e][s].h===r)return this;var l={h:r,query:n,ctx:a||this,callAtLast:r.zrEventfulCallAtLast},u=i[e].length-1,c=i[e][u];return c&&c.callAtLast?i[e].splice(u,0,l):i[e].push(l),this},t.prototype.isSilent=function(e){var n=this._$handlers;return!n||!n[e]||!n[e].length},t.prototype.off=function(e,n){var r=this._$handlers;if(!r)return this;if(!e)return this._$handlers={},this;if(n){if(r[e]){for(var a=[],i=0,o=r[e].length;i<o;i++)r[e][i].h!==n&&a.push(r[e][i]);r[e]=a}r[e]&&r[e].length===0&&delete r[e]}else delete r[e];return this},t.prototype.trigger=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];if(!this._$handlers)return this;var a=this._$handlers[e],i=this._$eventProcessor;if(a)for(var o=n.length,s=a.length,l=0;l<s;l++){var u=a[l];if(!(i&&i.filter&&u.query!=null&&!i.filter(e,u.query)))switch(o){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,n[0]);break;case 2:u.h.call(u.ctx,n[0],n[1]);break;default:u.h.apply(u.ctx,n);break}}return i&&i.afterTrigger&&i.afterTrigger(e),this},t.prototype.triggerWithContext=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];if(!this._$handlers)return this;var a=this._$handlers[e],i=this._$eventProcessor;if(a)for(var o=n.length,s=n[o-1],l=a.length,u=0;u<l;u++){var c=a[u];if(!(i&&i.filter&&c.query!=null&&!i.filter(e,c.query)))switch(o){case 0:c.h.call(s);break;case 1:c.h.call(s,n[0]);break;case 2:c.h.call(s,n[0],n[1]);break;default:c.h.apply(s,n.slice(1,o-1));break}}return i&&i.afterTrigger&&i.afterTrigger(e),this},t}();const ks=u1t;var c1t=Math.log(2);function nO(t,e,n,r,a,i){var o=r+"-"+a,s=t.length;if(i.hasOwnProperty(o))return i[o];if(e===1){var l=Math.round(Math.log((1<<s)-1&~a)/c1t);return t[n][l]}for(var u=r|1<<n,c=n+1;r&1<<c;)c++;for(var f=0,d=0,h=0;d<s;d++){var p=1<<d;p&a||(f+=(h%2?-1:1)*t[n][d]*nO(t,e-1,c,u,a|p,i),h++)}return i[o]=f,f}function _z(t,e){var n=[[t[0],t[1],1,0,0,0,-e[0]*t[0],-e[0]*t[1]],[0,0,0,t[0],t[1],1,-e[1]*t[0],-e[1]*t[1]],[t[2],t[3],1,0,0,0,-e[2]*t[2],-e[2]*t[3]],[0,0,0,t[2],t[3],1,-e[3]*t[2],-e[3]*t[3]],[t[4],t[5],1,0,0,0,-e[4]*t[4],-e[4]*t[5]],[0,0,0,t[4],t[5],1,-e[5]*t[4],-e[5]*t[5]],[t[6],t[7],1,0,0,0,-e[6]*t[6],-e[6]*t[7]],[0,0,0,t[6],t[7],1,-e[7]*t[6],-e[7]*t[7]]],r={},a=nO(n,8,0,0,0,r);if(a!==0){for(var i=[],o=0;o<8;o++)for(var s=0;s<8;s++)i[s]==null&&(i[s]=0),i[s]+=((o+s)%2?-1:1)*nO(n,7,o===0?1:0,1<<o,1<<s,r)/a*e[o];return function(l,u,c){var f=u*i[6]+c*i[7]+1;l[0]=(u*i[0]+c*i[1]+i[2])/f,l[1]=(u*i[3]+c*i[4]+i[5])/f}}}var Cz="___zrEVENTSAVED",kD=[];function f1t(t,e,n,r,a){return rO(kD,e,r,a,!0)&&rO(t,n,kD[0],kD[1])}function rO(t,e,n,r,a){if(e.getBoundingClientRect&&Fn.domSupported&&!Nae(e)){var i=e[Cz]||(e[Cz]={}),o=d1t(e,i),s=h1t(o,i,a);if(s)return s(t,n,r),!0}return!1}function d1t(t,e){var n=e.markers;if(n)return n;n=e.markers=[];for(var r=["left","right"],a=["top","bottom"],i=0;i<4;i++){var o=document.createElement("div"),s=o.style,l=i%2,u=(i>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",r[l]+":0",a[u]+":0",r[1-l]+":auto",a[1-u]+":auto",""].join("!important;"),t.appendChild(o),n.push(o)}return n}function h1t(t,e,n){for(var r=n?"invTrans":"trans",a=e[r],i=e.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var c=t[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(t[u].offsetLeft,t[u].offsetTop)}return l&&a?a:(e.srcCoords=o,e[r]=n?_z(s,o):_z(o,s))}function Nae(t){return t.nodeName.toUpperCase()==="CANVAS"}var p1t=/([&<>"'])/g,v1t={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function qi(t){return t==null?"":(t+"").replace(p1t,function(e,n){return v1t[n]})}var g1t=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,RD=[],y1t=Fn.browser.firefox&&+Fn.browser.version.split(".")[0]<39;function aO(t,e,n,r){return n=n||{},r?Tz(t,e,n):y1t&&e.layerX!=null&&e.layerX!==e.offsetX?(n.zrX=e.layerX,n.zrY=e.layerY):e.offsetX!=null?(n.zrX=e.offsetX,n.zrY=e.offsetY):Tz(t,e,n),n}function Tz(t,e,n){if(Fn.domSupported&&t.getBoundingClientRect){var r=e.clientX,a=e.clientY;if(Nae(t)){var i=t.getBoundingClientRect();n.zrX=r-i.left,n.zrY=a-i.top;return}else if(rO(RD,t,r,a)){n.zrX=RD[0],n.zrY=RD[1];return}}n.zrX=n.zrY=0}function rI(t){return t||window.event}function as(t,e,n){if(e=rI(e),e.zrX!=null)return e;var r=e.type,a=r&&r.indexOf("touch")>=0;if(a){var o=r!=="touchend"?e.targetTouches[0]:e.changedTouches[0];o&&aO(t,o,e,n)}else{aO(t,e,e,n);var i=m1t(e);e.zrDelta=i?i/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&g1t.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function m1t(t){var e=t.wheelDelta;if(e)return e;var n=t.deltaX,r=t.deltaY;if(n==null||r==null)return e;var a=Math.abs(r!==0?r:n),i=r>0?-1:r<0?1:n>0?-1:1;return 3*a*i}function iO(t,e,n,r){t.addEventListener(e,n,r)}function b1t(t,e,n,r){t.removeEventListener(e,n,r)}var fc=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0};function Ez(t){return t.which===2||t.which===3}var S1t=function(){function t(){this._track=[]}return t.prototype.recognize=function(e,n,r){return this._doTrack(e,n,r),this._recognize(e)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(e,n,r){var a=e.touches;if(a){for(var i={points:[],touches:[],target:n,event:e},o=0,s=a.length;o<s;o++){var l=a[o],u=aO(r,l,{});i.points.push([u.zrX,u.zrY]),i.touches.push(l)}this._track.push(i)}},t.prototype._recognize=function(e){for(var n in LD)if(LD.hasOwnProperty(n)){var r=LD[n](this._track,e);if(r)return r}},t}();function Mz(t){var e=t[1][0]-t[0][0],n=t[1][1]-t[0][1];return Math.sqrt(e*e+n*n)}function w1t(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}var LD={pinch:function(t,e){var n=t.length;if(n){var r=(t[n-1]||{}).points,a=(t[n-2]||{}).points||r;if(a&&a.length>1&&r&&r.length>1){var i=Mz(r)/Mz(a);!isFinite(i)&&(i=1),e.pinchScale=i;var o=w1t(r);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:t[0].target,event:e}}}}};function Wo(){return[1,0,0,1,0,0]}function Jb(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function nE(t,e){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}function lu(t,e,n){var r=e[0]*n[0]+e[2]*n[1],a=e[1]*n[0]+e[3]*n[1],i=e[0]*n[2]+e[2]*n[3],o=e[1]*n[2]+e[3]*n[3],s=e[0]*n[4]+e[2]*n[5]+e[4],l=e[1]*n[4]+e[3]*n[5]+e[5];return t[0]=r,t[1]=a,t[2]=i,t[3]=o,t[4]=s,t[5]=l,t}function bl(t,e,n){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+n[0],t[5]=e[5]+n[1],t}function fd(t,e,n){var r=e[0],a=e[2],i=e[4],o=e[1],s=e[3],l=e[5],u=Math.sin(n),c=Math.cos(n);return t[0]=r*c+o*u,t[1]=-r*u+o*c,t[2]=a*c+s*u,t[3]=-a*u+c*s,t[4]=c*i+u*l,t[5]=c*l-u*i,t}function rE(t,e,n){var r=n[0],a=n[1];return t[0]=e[0]*r,t[1]=e[1]*a,t[2]=e[2]*r,t[3]=e[3]*a,t[4]=e[4]*r,t[5]=e[5]*a,t}function $p(t,e){var n=e[0],r=e[2],a=e[4],i=e[1],o=e[3],s=e[5],l=n*o-i*r;return l?(l=1/l,t[0]=o*l,t[1]=-i*l,t[2]=-r*l,t[3]=n*l,t[4]=(r*s-o*a)*l,t[5]=(i*a-n*s)*l,t):null}function Iae(t){var e=Wo();return nE(e,t),e}const x1t=Object.freeze(Object.defineProperty({__proto__:null,clone:Iae,copy:nE,create:Wo,identity:Jb,invert:$p,mul:lu,rotate:fd,scale:rE,translate:bl},Symbol.toStringTag,{value:"Module"}));var _1t=function(){function t(e,n){this.x=e||0,this.y=n||0}return t.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(e,n){return this.x=e,this.y=n,this},t.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},t.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},t.prototype.scale=function(e){this.x*=e,this.y*=e},t.prototype.scaleAndAdd=function(e,n){this.x+=e.x*n,this.y+=e.y*n},t.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},t.prototype.dot=function(e){return this.x*e.x+this.y*e.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},t.prototype.distance=function(e){var n=this.x-e.x,r=this.y-e.y;return Math.sqrt(n*n+r*r)},t.prototype.distanceSquare=function(e){var n=this.x-e.x,r=this.y-e.y;return n*n+r*r},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(e){if(e){var n=this.x,r=this.y;return this.x=e[0]*n+e[2]*r+e[4],this.y=e[1]*n+e[3]*r+e[5],this}},t.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},t.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},t.set=function(e,n,r){e.x=n,e.y=r},t.copy=function(e,n){e.x=n.x,e.y=n.y},t.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},t.lenSquare=function(e){return e.x*e.x+e.y*e.y},t.dot=function(e,n){return e.x*n.x+e.y*n.y},t.add=function(e,n,r){e.x=n.x+r.x,e.y=n.y+r.y},t.sub=function(e,n,r){e.x=n.x-r.x,e.y=n.y-r.y},t.scale=function(e,n,r){e.x=n.x*r,e.y=n.y*r},t.scaleAndAdd=function(e,n,r,a){e.x=n.x+r.x*a,e.y=n.y+r.y*a},t.lerp=function(e,n,r,a){var i=1-a;e.x=i*n.x+a*r.x,e.y=i*n.y+a*r.y},t}();const vn=_1t;var Rw=Math.min,Lw=Math.max,Id=new vn,Bd=new vn,$d=new vn,Pd=new vn,gy=new vn,yy=new vn,C1t=function(){function t(e,n,r,a){r<0&&(e=e+r,r=-r),a<0&&(n=n+a,a=-a),this.x=e,this.y=n,this.width=r,this.height=a}return t.prototype.union=function(e){var n=Rw(e.x,this.x),r=Rw(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Lw(e.x+e.width,this.x+this.width)-n:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=Lw(e.y+e.height,this.y+this.height)-r:this.height=e.height,this.x=n,this.y=r},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(e){var n=this,r=e.width/n.width,a=e.height/n.height,i=Wo();return bl(i,i,[-n.x,-n.y]),rE(i,i,[r,a]),bl(i,i,[e.x,e.y]),i},t.prototype.intersect=function(e,n){if(!e)return!1;e instanceof t||(e=t.create(e));var r=this,a=r.x,i=r.x+r.width,o=r.y,s=r.y+r.height,l=e.x,u=e.x+e.width,c=e.y,f=e.y+e.height,d=!(i<l||u<a||s<c||f<o);if(n){var h=1/0,p=0,v=Math.abs(i-l),g=Math.abs(u-a),y=Math.abs(s-c),m=Math.abs(f-o),S=Math.min(v,g),w=Math.min(y,m);i<l||u<a?S>p&&(p=S,v<g?vn.set(yy,-v,0):vn.set(yy,g,0)):S<h&&(h=S,v<g?vn.set(gy,v,0):vn.set(gy,-g,0)),s<c||f<o?w>p&&(p=w,y<m?vn.set(yy,0,-y):vn.set(yy,0,m)):S<h&&(h=S,y<m?vn.set(gy,0,y):vn.set(gy,0,-m))}return n&&vn.copy(n,d?gy:yy),d},t.prototype.contain=function(e,n){var r=this;return e>=r.x&&e<=r.x+r.width&&n>=r.y&&n<=r.y+r.height},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){t.copy(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return this.width===0||this.height===0},t.create=function(e){return new t(e.x,e.y,e.width,e.height)},t.copy=function(e,n){e.x=n.x,e.y=n.y,e.width=n.width,e.height=n.height},t.applyTransform=function(e,n,r){if(!r){e!==n&&t.copy(e,n);return}if(r[1]<1e-5&&r[1]>-1e-5&&r[2]<1e-5&&r[2]>-1e-5){var a=r[0],i=r[3],o=r[4],s=r[5];e.x=n.x*a+o,e.y=n.y*i+s,e.width=n.width*a,e.height=n.height*i,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}Id.x=$d.x=n.x,Id.y=Pd.y=n.y,Bd.x=Pd.x=n.x+n.width,Bd.y=$d.y=n.y+n.height,Id.transform(r),Pd.transform(r),Bd.transform(r),$d.transform(r),e.x=Rw(Id.x,Bd.x,$d.x,Pd.x),e.y=Rw(Id.y,Bd.y,$d.y,Pd.y);var l=Lw(Id.x,Bd.x,$d.x,Pd.x),u=Lw(Id.y,Bd.y,$d.y,Pd.y);e.width=l-e.x,e.height=u-e.y},t}();const yn=C1t;var Bae="silent";function T1t(t,e,n){return{type:t,event:n,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:E1t}}function E1t(){fc(this.event)}var M1t=function(t){Fe(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.handler=null,n}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(ks),my=function(){function t(e,n){this.x=e,this.y=n}return t}(),D1t=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],OD=new yn(0,0,0,0),$ae=function(t){Fe(e,t);function e(n,r,a,i,o){var s=t.call(this)||this;return s._hovered=new my(0,0),s.storage=n,s.painter=r,s.painterRoot=i,s._pointerSize=o,a=a||new M1t,s.proxy=null,s.setHandlerProxy(a),s._draggingMgr=new l1t(s),s}return e.prototype.setHandlerProxy=function(n){this.proxy&&this.proxy.dispose(),n&&(q(D1t,function(r){n.on&&n.on(r,this[r],this)},this),n.handler=this),this.proxy=n},e.prototype.mousemove=function(n){var r=n.zrX,a=n.zrY,i=Pae(this,r,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 my(r,a):this.findHover(r,a),u=l.target,c=this.proxy;c.setCursor&&c.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",n),this.dispatchToElement(l,"mousemove",n),u&&u!==s&&this.dispatchToElement(l,"mouseover",n)},e.prototype.mouseout=function(n){var r=n.zrEventControl;r!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",n),r!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:n})},e.prototype.resize=function(){this._hovered=new my(0,0)},e.prototype.dispatch=function(n,r){var a=this[n];a&&a.call(this,r)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(n){var r=this.proxy;r.setCursor&&r.setCursor(n)},e.prototype.dispatchToElement=function(n,r,a){n=n||{};var i=n.target;if(!(i&&i.silent)){for(var o="on"+r,s=T1t(r,n,a);i&&(i[o]&&(s.cancelBubble=!!i[o].call(i,s)),i.trigger(r,s),i=i.__hostTarget?i.__hostTarget:i.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(r,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(r,s)}))}},e.prototype.findHover=function(n,r,a){var i=this.storage.getDisplayList(),o=new my(n,r);if(Dz(i,o,n,r,a),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,c=new yn(n-u,r-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)&&(OD.copy(d.getBoundingRect()),d.transform&&OD.applyTransform(d.transform),OD.intersect(c)&&s.push(d))}if(s.length)for(var h=4,p=Math.PI/12,v=Math.PI*2,g=0;g<u;g+=h)for(var y=0;y<v;y+=p){var m=n+g*Math.cos(y),S=r+g*Math.sin(y);if(Dz(s,o,m,S,a),o.target)return o}}return o},e.prototype.processGesture=function(n,r){this._gestureMgr||(this._gestureMgr=new S1t);var a=this._gestureMgr;r==="start"&&a.clear();var i=a.recognize(n,this.findHover(n.zrX,n.zrY,null).target,this.proxy.dom);if(r==="end"&&a.clear(),i){var o=i.type;n.gestureEvent=o;var s=new my;s.target=i.target,this.dispatchToElement(s,o,i.event)}},e}(ks);q(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){$ae.prototype[t]=function(e){var n=e.zrX,r=e.zrY,a=Pae(this,n,r),i,o;if((t!=="mouseup"||!a)&&(i=this.findHover(n,r),o=i.target),t==="mousedown")this._downEl=o,this._downPoint=[e.zrX,e.zrY],this._upEl=o;else if(t==="mouseup")this._upEl=o;else if(t==="click"){if(this._downEl!==this._upEl||!this._downPoint||Xu(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(i,t,e)}});function A1t(t,e,n){if(t[t.rectHover?"rectContain":"contain"](e,n)){for(var r=t,a=void 0,i=!1;r;){if(r.ignoreClip&&(i=!0),!i){var o=r.getClipPath();if(o&&!o.contain(e,n))return!1;r.silent&&(a=!0)}var s=r.__hostTarget;r=s||r.parent}return a?Bae:!0}return!1}function Dz(t,e,n,r,a){for(var i=t.length-1;i>=0;i--){var o=t[i],s=void 0;if(o!==a&&!o.ignore&&(s=A1t(o,n,r))&&(!e.topTarget&&(e.topTarget=o),s!==Bae)){e.target=o;break}}}function Pae(t,e,n){var r=t.painter;return e<0||e>r.getWidth()||n<0||n>r.getHeight()}const k1t=$ae;var Fae=32,by=7;function R1t(t){for(var e=0;t>=Fae;)e|=t&1,t>>=1;return t+e}function Az(t,e,n,r){var a=e+1;if(a===n)return 1;if(r(t[a++],t[e])<0){for(;a<n&&r(t[a],t[a-1])<0;)a++;L1t(t,e,a)}else for(;a<n&&r(t[a],t[a-1])>=0;)a++;return a-e}function L1t(t,e,n){for(n--;e<n;){var r=t[e];t[e++]=t[n],t[n--]=r}}function kz(t,e,n,r,a){for(r===e&&r++;r<n;r++){for(var i=t[r],o=e,s=r,l;o<s;)l=o+s>>>1,a(i,t[l])<0?s=l:o=l+1;var u=r-o;switch(u){case 3:t[o+3]=t[o+2];case 2:t[o+2]=t[o+1];case 1:t[o+1]=t[o];break;default:for(;u>0;)t[o+u]=t[o+u-1],u--}t[o]=i}}function VD(t,e,n,r,a,i){var o=0,s=0,l=1;if(i(t,e[n+a])>0){for(s=r-a;l<s&&i(t,e[n+a+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}else{for(s=a+1;l<s&&i(t,e[n+a-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=a-l,l=a-u}for(o++;o<l;){var c=o+(l-o>>>1);i(t,e[n+c])>0?o=c+1:l=c}return l}function ND(t,e,n,r,a,i){var o=0,s=0,l=1;if(i(t,e[n+a])<0){for(s=a+1;l<s&&i(t,e[n+a-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=a-l,l=a-u}else{for(s=r-a;l<s&&i(t,e[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<l;){var c=o+(l-o>>>1);i(t,e[n+c])<0?l=c:o=c+1}return l}function O1t(t,e){var n=by,r,a,i=0;t.length;var o=[];r=[],a=[];function s(h,p){r[i]=h,a[i]=p,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]&&h--;else if(a[h]>a[h+1])break;c(h)}}function u(){for(;i>1;){var h=i-2;h>0&&a[h-1]<a[h+1]&&h--,c(h)}}function c(h){var p=r[h],v=a[h],g=r[h+1],y=a[h+1];a[h]=v+y,h===i-3&&(r[h+1]=r[h+2],a[h+1]=a[h+2]),i--;var m=ND(t[g],t,p,v,0,e);p+=m,v-=m,v!==0&&(y=VD(t[p+v-1],t,g,y,y-1,e),y!==0&&(v<=y?f(p,v,g,y):d(p,v,g,y)))}function f(h,p,v,g){var y=0;for(y=0;y<p;y++)o[y]=t[h+y];var m=0,S=v,w=h;if(t[w++]=t[S++],--g===0){for(y=0;y<p;y++)t[w+y]=o[m+y];return}if(p===1){for(y=0;y<g;y++)t[w+y]=t[S+y];t[w+g]=o[m];return}for(var C=n,_,x,T;;){_=0,x=0,T=!1;do if(e(t[S],o[m])<0){if(t[w++]=t[S++],x++,_=0,--g===0){T=!0;break}}else if(t[w++]=o[m++],_++,x=0,--p===1){T=!0;break}while((_|x)<C);if(T)break;do{if(_=ND(t[S],o,m,p,0,e),_!==0){for(y=0;y<_;y++)t[w+y]=o[m+y];if(w+=_,m+=_,p-=_,p<=1){T=!0;break}}if(t[w++]=t[S++],--g===0){T=!0;break}if(x=VD(o[m],t,S,g,0,e),x!==0){for(y=0;y<x;y++)t[w+y]=t[S+y];if(w+=x,S+=x,g-=x,g===0){T=!0;break}}if(t[w++]=o[m++],--p===1){T=!0;break}C--}while(_>=by||x>=by);if(T)break;C<0&&(C=0),C+=2}if(n=C,n<1&&(n=1),p===1){for(y=0;y<g;y++)t[w+y]=t[S+y];t[w+g]=o[m]}else{if(p===0)throw new Error;for(y=0;y<p;y++)t[w+y]=o[m+y]}}function d(h,p,v,g){var y=0;for(y=0;y<g;y++)o[y]=t[v+y];var m=h+p-1,S=g-1,w=v+g-1,C=0,_=0;if(t[w--]=t[m--],--p===0){for(C=w-(g-1),y=0;y<g;y++)t[C+y]=o[y];return}if(g===1){for(w-=p,m-=p,_=w+1,C=m+1,y=p-1;y>=0;y--)t[_+y]=t[C+y];t[w]=o[S];return}for(var x=n;;){var T=0,M=0,E=!1;do if(e(o[S],t[m])<0){if(t[w--]=t[m--],T++,M=0,--p===0){E=!0;break}}else if(t[w--]=o[S--],M++,T=0,--g===1){E=!0;break}while((T|M)<x);if(E)break;do{if(T=p-ND(o[S],t,h,p,p-1,e),T!==0){for(w-=T,m-=T,p-=T,_=w+1,C=m+1,y=T-1;y>=0;y--)t[_+y]=t[C+y];if(p===0){E=!0;break}}if(t[w--]=o[S--],--g===1){E=!0;break}if(M=g-VD(t[m],o,0,g,g-1,e),M!==0){for(w-=M,S-=M,g-=M,_=w+1,C=S+1,y=0;y<M;y++)t[_+y]=o[C+y];if(g<=1){E=!0;break}}if(t[w--]=t[m--],--p===0){E=!0;break}x--}while(T>=by||M>=by);if(E)break;x<0&&(x=0),x+=2}if(n=x,n<1&&(n=1),g===1){for(w-=p,m-=p,_=w+1,C=m+1,y=p-1;y>=0;y--)t[_+y]=t[C+y];t[w]=o[S]}else{if(g===0)throw new Error;for(C=w-(g-1),y=0;y<g;y++)t[C+y]=o[y]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function D_(t,e,n,r){n||(n=0),r||(r=t.length);var a=r-n;if(!(a<2)){var i=0;if(a<Fae){i=Az(t,n,r,e),kz(t,n,r,n+i,e);return}var o=O1t(t,e),s=R1t(a);do{if(i=Az(t,n,r,e),i<s){var l=a;l>s&&(l=s),kz(t,n,n+l,n+i,e),i=l}o.pushRun(n,i),o.mergeRuns(),a-=i,n+=i}while(a!==0);o.forceMergeRuns()}}var Bo=1,rm=2,Bv=4,Rz=!1;function ID(){Rz||(Rz=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Lz(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var V1t=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Lz}return t.prototype.traverse=function(e,n){for(var r=0;r<this._roots.length;r++)this._roots[r].traverse(e,n)},t.prototype.getDisplayList=function(e,n){n=n||!1;var r=this._displayList;return(e||!r.length)&&this.updateDisplayList(n),r},t.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var n=this._roots,r=this._displayList,a=0,i=n.length;a<i;a++)this._updateAndAddDisplayable(n[a],null,e);r.length=this._displayListLen,D_(r,Lz)},t.prototype._updateAndAddDisplayable=function(e,n,r){if(!(e.ignore&&!r)){e.beforeUpdate(),e.update(),e.afterUpdate();var a=e.getClipPath();if(e.ignoreClip)n=null;else if(a){n?n=n.slice():n=[];for(var i=a,o=e;i;)i.parent=o,i.updateTransform(),n.push(i),o=i,i=i.getClipPath()}if(e.childrenRef){for(var s=e.childrenRef(),l=0;l<s.length;l++){var u=s[l];e.__dirty&&(u.__dirty|=Bo),this._updateAndAddDisplayable(u,n,r)}e.__dirty=0}else{var c=e;n&&n.length?c.__clipPaths=n:c.__clipPaths&&c.__clipPaths.length>0&&(c.__clipPaths=[]),isNaN(c.z)&&(ID(),c.z=0),isNaN(c.z2)&&(ID(),c.z2=0),isNaN(c.zlevel)&&(ID(),c.zlevel=0),this._displayList[this._displayListLen++]=c}var f=e.getDecalElement&&e.getDecalElement();f&&this._updateAndAddDisplayable(f,n,r);var d=e.getTextGuideLine();d&&this._updateAndAddDisplayable(d,n,r);var h=e.getTextContent();h&&this._updateAndAddDisplayable(h,n,r)}},t.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},t.prototype.delRoot=function(e){if(e instanceof Array){for(var n=0,r=e.length;n<r;n++)this.delRoot(e[n]);return}var a=bn(this._roots,e);a>=0&&this._roots.splice(a,1)},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t}();const N1t=V1t;var zae;zae=Fn.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};const oO=zae;var A_={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return .5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return t===0?0:Math.pow(1024,t-1)},exponentialOut:function(t){return t===1?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return t===0?0:t===1?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(-Math.pow(2,-10*(t-1))+2)},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,n=.1,r=.4;return t===0?0:t===1?1:(!n||n<1?(n=1,e=r/4):e=r*Math.asin(1/n)/(2*Math.PI),-(n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/r)))},elasticOut:function(t){var e,n=.1,r=.4;return t===0?0:t===1?1:(!n||n<1?(n=1,e=r/4):e=r*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/r)+1)},elasticInOut:function(t){var e,n=.1,r=.4;return t===0?0:t===1?1:(!n||n<1?(n=1,e=r/4):e=r*Math.asin(1/n)/(2*Math.PI),(t*=2)<1?-.5*(n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/r)):n*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/r)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?.5*(t*t*((e+1)*t-e)):.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-A_.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?A_.bounceIn(t*2)*.5:A_.bounceOut(t*2-1)*.5+.5}};const Uae=A_;var Ow=Math.pow,Of=Math.sqrt,X2=1e-8,Gae=1e-4,Oz=Of(3),Vw=1/3,ql=cd(),cs=cd(),gg=cd();function wf(t){return t>-X2&&t<X2}function Hae(t){return t>X2||t<-X2}function za(t,e,n,r,a){var i=1-a;return i*i*(i*t+3*a*e)+a*a*(a*r+3*i*n)}function Vz(t,e,n,r,a){var i=1-a;return 3*(((e-t)*i+2*(n-e)*a)*i+(r-n)*a*a)}function q2(t,e,n,r,a,i){var o=r+3*(e-n)-t,s=3*(n-e*2+t),l=3*(e-t),u=t-a,c=s*s-3*o*l,f=s*l-9*o*u,d=l*l-3*s*u,h=0;if(wf(c)&&wf(f))if(wf(s))i[0]=0;else{var p=-l/s;p>=0&&p<=1&&(i[h++]=p)}else{var v=f*f-4*c*d;if(wf(v)){var g=f/c,p=-s/o+g,y=-g/2;p>=0&&p<=1&&(i[h++]=p),y>=0&&y<=1&&(i[h++]=y)}else if(v>0){var m=Of(v),S=c*s+1.5*o*(-f+m),w=c*s+1.5*o*(-f-m);S<0?S=-Ow(-S,Vw):S=Ow(S,Vw),w<0?w=-Ow(-w,Vw):w=Ow(w,Vw);var p=(-s-(S+w))/(3*o);p>=0&&p<=1&&(i[h++]=p)}else{var C=(2*c*s-3*o*f)/(2*Of(c*c*c)),_=Math.acos(C)/3,x=Of(c),T=Math.cos(_),p=(-s-2*x*T)/(3*o),y=(-s+x*(T+Oz*Math.sin(_)))/(3*o),M=(-s+x*(T-Oz*Math.sin(_)))/(3*o);p>=0&&p<=1&&(i[h++]=p),y>=0&&y<=1&&(i[h++]=y),M>=0&&M<=1&&(i[h++]=M)}}return h}function Wae(t,e,n,r,a){var i=6*n-12*e+6*t,o=9*e+3*r-3*t-9*n,s=3*e-3*t,l=0;if(wf(o)){if(Hae(i)){var u=-s/i;u>=0&&u<=1&&(a[l++]=u)}}else{var c=i*i-4*o*s;if(wf(c))a[0]=-i/(2*o);else if(c>0){var f=Of(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 Xf(t,e,n,r,a,i){var o=(e-t)*a+t,s=(n-e)*a+e,l=(r-n)*a+n,u=(s-o)*a+o,c=(l-s)*a+s,f=(c-u)*a+u;i[0]=t,i[1]=o,i[2]=u,i[3]=f,i[4]=f,i[5]=c,i[6]=l,i[7]=r}function jae(t,e,n,r,a,i,o,s,l,u,c){var f,d=.005,h=1/0,p,v,g,y;ql[0]=l,ql[1]=u;for(var m=0;m<1;m+=.05)cs[0]=za(t,n,a,o,m),cs[1]=za(e,r,i,s,m),g=Lf(ql,cs),g<h&&(f=m,h=g);h=1/0;for(var S=0;S<32&&!(d<Gae);S++)p=f-d,v=f+d,cs[0]=za(t,n,a,o,p),cs[1]=za(e,r,i,s,p),g=Lf(cs,ql),p>=0&&g<h?(f=p,h=g):(gg[0]=za(t,n,a,o,v),gg[1]=za(e,r,i,s,v),y=Lf(gg,ql),v<=1&&y<h?(f=v,h=y):d*=.5);return c&&(c[0]=za(t,n,a,o,f),c[1]=za(e,r,i,s,f)),Of(h)}function I1t(t,e,n,r,a,i,o,s,l){for(var u=t,c=e,f=0,d=1/l,h=1;h<=l;h++){var p=h*d,v=za(t,n,a,o,p),g=za(e,r,i,s,p),y=v-u,m=g-c;f+=Math.sqrt(y*y+m*m),u=v,c=g}return f}function Ja(t,e,n,r){var a=1-r;return a*(a*t+2*r*e)+r*r*n}function sO(t,e,n,r){return 2*((1-r)*(e-t)+r*(n-e))}function B1t(t,e,n,r,a){var i=t-2*e+n,o=2*(e-t),s=t-r,l=0;if(wf(i)){if(Hae(o)){var u=-s/o;u>=0&&u<=1&&(a[l++]=u)}}else{var c=o*o-4*i*s;if(wf(c)){var u=-o/(2*i);u>=0&&u<=1&&(a[l++]=u)}else if(c>0){var f=Of(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 Kae(t,e,n){var r=t+n-2*e;return r===0?.5:(t-e)/r}function U1(t,e,n,r,a){var i=(e-t)*r+t,o=(n-e)*r+e,s=(o-i)*r+i;a[0]=t,a[1]=i,a[2]=s,a[3]=s,a[4]=o,a[5]=n}function Yae(t,e,n,r,a,i,o,s,l){var u,c=.005,f=1/0;ql[0]=o,ql[1]=s;for(var d=0;d<1;d+=.05){cs[0]=Ja(t,n,a,d),cs[1]=Ja(e,r,i,d);var h=Lf(ql,cs);h<f&&(u=d,f=h)}f=1/0;for(var p=0;p<32&&!(c<Gae);p++){var v=u-c,g=u+c;cs[0]=Ja(t,n,a,v),cs[1]=Ja(e,r,i,v);var h=Lf(cs,ql);if(v>=0&&h<f)u=v,f=h;else{gg[0]=Ja(t,n,a,g),gg[1]=Ja(e,r,i,g);var y=Lf(gg,ql);g<=1&&y<f?(u=g,f=y):c*=.5}}return l&&(l[0]=Ja(t,n,a,u),l[1]=Ja(e,r,i,u)),Of(f)}function $1t(t,e,n,r,a,i,o){for(var s=t,l=e,u=0,c=1/o,f=1;f<=o;f++){var d=f*c,h=Ja(t,n,a,d),p=Ja(e,r,i,d),v=h-s,g=p-l;u+=Math.sqrt(v*v+g*g),s=h,l=p}return u}var P1t=/cubic-bezier\(([0-9,\.e ]+)\)/;function aI(t){var e=t&&P1t.exec(t);if(e){var n=e[1].split(","),r=+vs(n[0]),a=+vs(n[1]),i=+vs(n[2]),o=+vs(n[3]);if(isNaN(r+a+i+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:q2(0,r,i,1,l,s)&&za(0,a,o,1,s[0])}}}var F1t=function(){function t(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||fa,this.ondestroy=e.ondestroy||fa,this.onrestart=e.onrestart||fa,e.easing&&this.setEasing(e.easing)}return t.prototype.step=function(e,n){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=n;return}var r=this._life,a=e-this._startTime-this._pausedTime,i=a/r;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%r;this._startTime=e-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(e){this.easing=e,this.easingFunc=jt(e)?e:Uae[e]||aI(e)},t}();const z1t=F1t;var Xae=function(){function t(e){this.value=e}return t}(),U1t=function(){function t(){this._len=0}return t.prototype.insert=function(e){var n=new Xae(e);return this.insertEntry(n),n},t.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},t.prototype.remove=function(e){var n=e.prev,r=e.next;n?n.next=r:this.head=r,r?r.prev=n:this.tail=n,e.next=e.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t}(),G1t=function(){function t(e){this._list=new U1t,this._maxSize=10,this._map={},this._maxSize=e}return t.prototype.put=function(e,n){var r=this._list,a=this._map,i=null;if(a[e]==null){var o=r.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=r.head;r.remove(l),delete a[l.key],i=l.value,this._lastRemovedEntry=l}s?s.value=n:s=new Xae(n),s.key=e,r.insertEntry(s),a[e]=s}return i},t.prototype.get=function(e){var n=this._map[e],r=this._list;if(n!=null)return n!==r.tail&&(r.remove(n),r.insertEntry(n)),n.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}();const eS=G1t;var Nz={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 pl(t){return t=Math.round(t),t<0?0:t>255?255:t}function H1t(t){return t=Math.round(t),t<0?0:t>360?360:t}function G1(t){return t<0?0:t>1?1:t}function BD(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?pl(parseFloat(e)/100*255):pl(parseInt(e,10))}function rp(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?G1(parseFloat(e)/100):G1(parseFloat(e))}function $D(t,e,n){return n<0?n+=1:n>1&&(n-=1),n*6<1?t+(e-t)*n*6:n*2<1?e:n*3<2?t+(e-t)*(2/3-n)*6:t}function xf(t,e,n){return t+(e-t)*n}function ns(t,e,n,r,a){return t[0]=e,t[1]=n,t[2]=r,t[3]=a,t}function lO(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var qae=new eS(20),Nw=null;function uv(t,e){Nw&&lO(Nw,e),Nw=qae.put(t,Nw||e.slice())}function to(t,e){if(t){e=e||[];var n=qae.get(t);if(n)return lO(e,n);t=t+"";var r=t.replace(/ /g,"").toLowerCase();if(r in Nz)return lO(e,Nz[r]),uv(t,e),e;var a=r.length;if(r.charAt(0)==="#"){if(a===4||a===5){var i=parseInt(r.slice(1,4),16);if(!(i>=0&&i<=4095)){ns(e,0,0,0,1);return}return ns(e,(i&3840)>>4|(i&3840)>>8,i&240|(i&240)>>4,i&15|(i&15)<<4,a===5?parseInt(r.slice(4),16)/15:1),uv(t,e),e}else if(a===7||a===9){var i=parseInt(r.slice(1,7),16);if(!(i>=0&&i<=16777215)){ns(e,0,0,0,1);return}return ns(e,(i&16711680)>>16,(i&65280)>>8,i&255,a===9?parseInt(r.slice(7),16)/255:1),uv(t,e),e}return}var o=r.indexOf("("),s=r.indexOf(")");if(o!==-1&&s+1===a){var l=r.substr(0,o),u=r.substr(o+1,s-(o+1)).split(","),c=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?ns(e,+u[0],+u[1],+u[2],1):ns(e,0,0,0,1);c=rp(u.pop());case"rgb":if(u.length>=3)return ns(e,BD(u[0]),BD(u[1]),BD(u[2]),u.length===3?c:rp(u[3])),uv(t,e),e;ns(e,0,0,0,1);return;case"hsla":if(u.length!==4){ns(e,0,0,0,1);return}return u[3]=rp(u[3]),uO(u,e),uv(t,e),e;case"hsl":if(u.length!==3){ns(e,0,0,0,1);return}return uO(u,e),uv(t,e),e;default:return}}ns(e,0,0,0,1)}}function uO(t,e){var n=(parseFloat(t[0])%360+360)%360/360,r=rp(t[1]),a=rp(t[2]),i=a<=.5?a*(r+1):a+r-a*r,o=a*2-i;return e=e||[],ns(e,pl($D(o,i,n+1/3)*255),pl($D(o,i,n)*255),pl($D(o,i,n-1/3)*255),1),t.length===4&&(e[3]=t[3]),e}function W1t(t){if(t){var e=t[0]/255,n=t[1]/255,r=t[2]/255,a=Math.min(e,n,r),i=Math.max(e,n,r),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-e)/6+o/2)/o,f=((i-n)/6+o/2)/o,d=((i-r)/6+o/2)/o;e===i?l=d-f:n===i?l=1/3+c-d:r===i&&(l=2/3+f-c),l<0&&(l+=1),l>1&&(l-=1)}var h=[l*360,u,s];return t[3]!=null&&h.push(t[3]),h}}function Z2(t,e){var n=to(t);if(n){for(var r=0;r<3;r++)e<0?n[r]=n[r]*(1-e)|0:n[r]=(255-n[r])*e+n[r]|0,n[r]>255?n[r]=255:n[r]<0&&(n[r]=0);return vl(n,n.length===4?"rgba":"rgb")}}function j1t(t){var e=to(t);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)}function Bm(t,e,n){if(!(!(e&&e.length)||!(t>=0&&t<=1))){n=n||[];var r=t*(e.length-1),a=Math.floor(r),i=Math.ceil(r),o=e[a],s=e[i],l=r-a;return n[0]=pl(xf(o[0],s[0],l)),n[1]=pl(xf(o[1],s[1],l)),n[2]=pl(xf(o[2],s[2],l)),n[3]=G1(xf(o[3],s[3],l)),n}}var K1t=Bm;function iI(t,e,n){if(!(!(e&&e.length)||!(t>=0&&t<=1))){var r=t*(e.length-1),a=Math.floor(r),i=Math.ceil(r),o=to(e[a]),s=to(e[i]),l=r-a,u=vl([pl(xf(o[0],s[0],l)),pl(xf(o[1],s[1],l)),pl(xf(o[2],s[2],l)),G1(xf(o[3],s[3],l))],"rgba");return n?{color:u,leftIndex:a,rightIndex:i,value:r}:u}}var Y1t=iI;function yg(t,e,n,r){var a=to(t);if(t)return a=W1t(a),e!=null&&(a[0]=H1t(e)),n!=null&&(a[1]=rp(n)),r!=null&&(a[2]=rp(r)),vl(uO(a),"rgba")}function H1(t,e){var n=to(t);if(n&&e!=null)return n[3]=G1(e),vl(n,"rgba")}function vl(t,e){if(!(!t||!t.length)){var n=t[0]+","+t[1]+","+t[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(n+=","+t[3]),e+"("+n+")"}}function W1(t,e){var n=to(t);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*e:0}function X1t(){return vl([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],"rgb")}const q1t=Object.freeze(Object.defineProperty({__proto__:null,fastLerp:Bm,fastMapToColor:K1t,lerp:iI,lift:Z2,lum:W1,mapToColor:Y1t,modifyAlpha:H1,modifyHSL:yg,parse:to,random:X1t,stringify:vl,toHex:j1t},Symbol.toStringTag,{value:"Module"}));var Q2=Math.round;function j1(t){var e;if(!t||t==="transparent")t="none";else if(typeof t=="string"&&t.indexOf("rgba")>-1){var n=to(t);n&&(t="rgb("+n[0]+","+n[1]+","+n[2]+")",e=n[3])}return{color:t,opacity:e??1}}var Iz=1e-4;function _f(t){return t<Iz&&t>-Iz}function Iw(t){return Q2(t*1e3)/1e3}function cO(t){return Q2(t*1e4)/1e4}function Z1t(t){return"matrix("+Iw(t[0])+","+Iw(t[1])+","+Iw(t[2])+","+Iw(t[3])+","+cO(t[4])+","+cO(t[5])+")"}var Q1t={left:"start",right:"end",center:"middle",middle:"middle"};function J1t(t,e,n){return n==="top"?t+=e/2:n==="bottom"&&(t-=e/2),t}function ebt(t){return t&&(t.shadowBlur||t.shadowOffsetX||t.shadowOffsetY)}function tbt(t){var e=t.style,n=t.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),n[0],n[1]].join(",")}function Zae(t){return t&&!!t.image}function nbt(t){return t&&!!t.svgElement}function oI(t){return Zae(t)||nbt(t)}function Qae(t){return t.type==="linear"}function Jae(t){return t.type==="radial"}function eie(t){return t&&(t.type==="linear"||t.type==="radial")}function aE(t){return"url(#"+t+")"}function tie(t){var e=t.getGlobalScale(),n=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(n)/Math.log(10)),1)}function nie(t){var e=t.x||0,n=t.y||0,r=(t.rotation||0)*Vm,a=gn(t.scaleX,1),i=gn(t.scaleY,1),o=t.skewX||0,s=t.skewY||0,l=[];return(e||n)&&l.push("translate("+e+"px,"+n+"px)"),r&&l.push("rotate("+r+")"),(a!==1||i!==1)&&l.push("scale("+a+","+i+")"),(o||s)&&l.push("skew("+Q2(o*Vm)+"deg, "+Q2(s*Vm)+"deg)"),l.join(" ")}var rbt=function(){return Fn.hasGlobalWindow&&jt(window.btoa)?function(t){return window.btoa(unescape(encodeURIComponent(t)))}:typeof Buffer<"u"?function(t){return Buffer.from(t).toString("base64")}:function(t){return null}}(),fO=Array.prototype.slice;function Fu(t,e,n){return(e-t)*n+t}function PD(t,e,n,r){for(var a=e.length,i=0;i<a;i++)t[i]=Fu(e[i],n[i],r);return t}function abt(t,e,n,r){for(var a=e.length,i=a&&e[0].length,o=0;o<a;o++){t[o]||(t[o]=[]);for(var s=0;s<i;s++)t[o][s]=Fu(e[o][s],n[o][s],r)}return t}function Bw(t,e,n,r){for(var a=e.length,i=0;i<a;i++)t[i]=e[i]+n[i]*r;return t}function Bz(t,e,n,r){for(var a=e.length,i=a&&e[0].length,o=0;o<a;o++){t[o]||(t[o]=[]);for(var s=0;s<i;s++)t[o][s]=e[o][s]+n[o][s]*r}return t}function ibt(t,e){for(var n=t.length,r=e.length,a=n>r?e:t,i=Math.min(n,r),o=a[i-1]||{color:[0,0,0,0],offset:0},s=i;s<Math.max(n,r);s++)a.push({offset:o.offset,color:o.color.slice()})}function obt(t,e,n){var r=t,a=e;if(!(!r.push||!a.push)){var i=r.length,o=a.length;if(i!==o){var s=i>o;if(s)r.length=o;else for(var l=i;l<o;l++)r.push(n===1?a[l]:fO.call(a[l]))}for(var u=r[0]&&r[0].length,l=0;l<r.length;l++)if(n===1)isNaN(r[l])&&(r[l]=a[l]);else for(var c=0;c<u;c++)isNaN(r[l][c])&&(r[l][c]=a[l][c])}}function $m(t){if(mi(t)){var e=t.length;if(mi(t[0])){for(var n=[],r=0;r<e;r++)n.push(fO.call(t[r]));return n}return fO.call(t)}return t}function k_(t){return t[0]=Math.floor(t[0])||0,t[1]=Math.floor(t[1])||0,t[2]=Math.floor(t[2])||0,t[3]=t[3]==null?1:t[3],"rgba("+t.join(",")+")"}function sbt(t){return mi(t&&t[0])?2:1}var $w=0,R_=1,rie=2,am=3,dO=4,hO=5,$z=6;function Pz(t){return t===dO||t===hO}function Pw(t){return t===R_||t===rie}var Sy=[0,0,0,0],lbt=function(){function t(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return t.prototype.isFinished=function(){return this._finished},t.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},t.prototype.needsAnimate=function(){return this.keyframes.length>=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(e,n,r){this._needsSort=!0;var a=this.keyframes,i=a.length,o=!1,s=$z,l=n;if(mi(n)){var u=sbt(n);s=u,(u===1&&!Un(n[0])||u===2&&!Un(n[0][0]))&&(o=!0)}else if(Un(n)&&!t0(n))s=$w;else if(Ot(n))if(!isNaN(+n))s=$w;else{var c=to(n);c&&(l=c,s=am)}else if(Zb(n)){var f=et({},l);f.colorStops=ut(n.colorStops,function(h){return{offset:h.offset,color:to(h.color)}}),Qae(n)?s=dO:Jae(n)&&(s=hO),l=f}i===0?this.valType=s:(s!==this.valType||s===$z)&&(o=!0),this.discrete=this.discrete||o;var d={time:e,value:l,rawValue:n,percent:0};return r&&(d.easing=r,d.easingFunc=jt(r)?r:Uae[r]||aI(r)),a.push(d),d},t.prototype.prepare=function(e,n){var r=this.keyframes;this._needsSort&&r.sort(function(v,g){return v.time-g.time});for(var a=this.valType,i=r.length,o=r[i-1],s=this.discrete,l=Pw(a),u=Pz(a),c=0;c<i;c++){var f=r[c],d=f.value,h=o.value;f.percent=f.time/e,s||(l&&c!==i-1?obt(d,h,a):u&&ibt(d.colorStops,h.colorStops))}if(!s&&a!==hO&&n&&this.needsAnimate()&&n.needsAnimate()&&a===n.valType&&!n._finished){this._additiveTrack=n;for(var p=r[0].value,c=0;c<i;c++)a===$w?r[c].additiveValue=r[c].value-p:a===am?r[c].additiveValue=Bw([],r[c].value,p,-1):Pw(a)&&(r[c].additiveValue=a===R_?Bw([],r[c].value,p,-1):Bz([],r[c].value,p,-1))}},t.prototype.step=function(e,n){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var r=this._additiveTrack!=null,a=r?"additiveValue":"value",i=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=i===am,c,f=this._lastFr,d=Math.min,h,p;if(s===1)h=p=o[0];else{if(n<0)c=0;else if(n<this._lastFrP){var v=d(f+1,s-1);for(c=v;c>=0&&!(o[c].percent<=n);c--);c=d(c,s-2)}else{for(c=f;c<s&&!(o[c].percent>n);c++);c=d(c-1,s-2)}p=o[c+1],h=o[c]}if(h&&p){this._lastFr=c,this._lastFrP=n;var g=p.percent-h.percent,y=g===0?1:d((n-h.percent)/g,1);p.easingFunc&&(y=p.easingFunc(y));var m=r?this._additiveValue:u?Sy:e[l];if((Pw(i)||u)&&!m&&(m=this._additiveValue=[]),this.discrete)e[l]=y<1?h.rawValue:p.rawValue;else if(Pw(i))i===R_?PD(m,h[a],p[a],y):abt(m,h[a],p[a],y);else if(Pz(i)){var S=h[a],w=p[a],C=i===dO;e[l]={type:C?"linear":"radial",x:Fu(S.x,w.x,y),y:Fu(S.y,w.y,y),colorStops:ut(S.colorStops,function(x,T){var M=w.colorStops[T];return{offset:Fu(x.offset,M.offset,y),color:k_(PD([],x.color,M.color,y))}}),global:w.global},C?(e[l].x2=Fu(S.x2,w.x2,y),e[l].y2=Fu(S.y2,w.y2,y)):e[l].r=Fu(S.r,w.r,y)}else if(u)PD(m,h[a],p[a],y),r||(e[l]=k_(m));else{var _=Fu(h[a],p[a],y);r?this._additiveValue=_:e[l]=_}r&&this._addToTarget(e)}}},t.prototype._addToTarget=function(e){var n=this.valType,r=this.propName,a=this._additiveValue;n===$w?e[r]=e[r]+a:n===am?(to(e[r],Sy),Bw(Sy,Sy,a,1),e[r]=k_(Sy)):n===R_?Bw(e[r],e[r],a,1):n===rie&&Bz(e[r],e[r],a,1)},t}(),ubt=function(){function t(e,n,r,a){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=n,n&&a){QT("Can' use additive animation on looped animation.");return}this._additiveAnimators=a,this._allowDiscrete=r}return t.prototype.getMaxTime=function(){return this._maxTime},t.prototype.getDelay=function(){return this._delay},t.prototype.getLoop=function(){return this._loop},t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(e){this._target=e},t.prototype.when=function(e,n,r){return this.whenWithKeys(e,n,Dn(n),r)},t.prototype.whenWithKeys=function(e,n,r,a){for(var i=this._tracks,o=0;o<r.length;o++){var s=r[o],l=i[s];if(!l){l=i[s]=new lbt(s);var u=void 0,c=this._getAdditiveTrack(s);if(c){var f=c.keyframes,d=f[f.length-1];u=d&&d.value,c.valType===am&&u&&(u=k_(u))}else u=this._target[s];if(u==null)continue;e>0&&l.addKeyframe(0,$m(u),a),this._trackKeys.push(s)}l.addKeyframe(e,$m(n[s]),a)}return this._maxTime=Math.max(this._maxTime,e),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var n=e.length,r=0;r<n;r++)e[r].call(this)},t.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,n=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,n)for(var r=0;r<n.length;r++)n[r].call(this)},t.prototype._setTracksFinished=function(){for(var e=this._tracks,n=this._trackKeys,r=0;r<n.length;r++)e[n[r]].setFinished()},t.prototype._getAdditiveTrack=function(e){var n,r=this._additiveAnimators;if(r)for(var a=0;a<r.length;a++){var i=r[a].getTrack(e);i&&(n=i)}return n},t.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var n=this,r=[],a=this._maxTime||0,i=0;i<this._trackKeys.length;i++){var o=this._trackKeys[i],s=this._tracks[o],l=this._getAdditiveTrack(o),u=s.keyframes,c=u.length;if(s.prepare(a,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var f=u[c-1];f&&(n._target[s.propName]=f.rawValue),s.setFinished()}else r.push(s)}if(r.length||this._force){var d=new z1t({life:a,loop:this._loop,delay:this._delay||0,onframe:function(h){n._started=2;var p=n._additiveAnimators;if(p){for(var v=!1,g=0;g<p.length;g++)if(p[g]._clip){v=!0;break}v||(n._additiveAnimators=null)}for(var g=0;g<r.length;g++)r[g].step(n._target,h);var y=n._onframeCbs;if(y)for(var g=0;g<y.length;g++)y[g](n._target,h)},ondestroy:function(){n._doneCallback()}});this._clip=d,this.animation&&this.animation.addClip(d),e&&d.setEasing(e)}else this._doneCallback();return this}},t.prototype.stop=function(e){if(this._clip){var n=this._clip;e&&n.onframe(1),this._abortedCallback()}},t.prototype.delay=function(e){return this._delay=e,this},t.prototype.during=function(e){return e&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(e)),this},t.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},t.prototype.aborted=function(e){return e&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(e)),this},t.prototype.getClip=function(){return this._clip},t.prototype.getTrack=function(e){return this._tracks[e]},t.prototype.getTracks=function(){var e=this;return ut(this._trackKeys,function(n){return e._tracks[n]})},t.prototype.stopTracks=function(e,n){if(!e.length||!this._clip)return!0;for(var r=this._tracks,a=this._trackKeys,i=0;i<e.length;i++){var o=r[e[i]];o&&!o.isFinished()&&(n?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,i=0;i<a.length;i++)if(!r[a[i]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},t.prototype.saveTo=function(e,n,r){if(e){n=n||this._trackKeys;for(var a=0;a<n.length;a++){var i=n[a],o=this._tracks[i];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[r?0:s.length-1];l&&(e[i]=$m(l.rawValue))}}}},t.prototype.__changeFinalValue=function(e,n){n=n||Dn(e);for(var r=0;r<n.length;r++){var a=n[r],i=this._tracks[a];if(i){var o=i.keyframes;if(o.length>1){var s=o.pop();i.addKeyframe(s.time,e[a]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},t}();const sI=ubt;function qv(){return new Date().getTime()}var cbt=function(t){Fe(e,t);function e(n){var r=t.call(this)||this;return r._running=!1,r._time=0,r._pausedTime=0,r._pauseStart=0,r._paused=!1,n=n||{},r.stage=n.stage||{},r}return e.prototype.addClip=function(n){n.animation&&this.removeClip(n),this._head?(this._tail.next=n,n.prev=this._tail,n.next=null,this._tail=n):this._head=this._tail=n,n.animation=this},e.prototype.addAnimator=function(n){n.animation=this;var r=n.getClip();r&&this.addClip(r)},e.prototype.removeClip=function(n){if(n.animation){var r=n.prev,a=n.next;r?r.next=a:this._head=a,a?a.prev=r:this._tail=r,n.next=n.prev=n.animation=null}},e.prototype.removeAnimator=function(n){var r=n.getClip();r&&this.removeClip(r),n.animation=null},e.prototype.update=function(n){for(var r=qv()-this._pausedTime,a=r-this._time,i=this._head;i;){var o=i.next,s=i.step(r,a);s&&(i.ondestroy(),this.removeClip(i)),i=o}this._time=r,n||(this.trigger("frame",a),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var n=this;this._running=!0;function r(){n._running&&(oO(r),!n._paused&&n.update())}oO(r)},e.prototype.start=function(){this._running||(this._time=qv(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=qv(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=qv()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var n=this._head;n;){var r=n.next;n.prev=n.next=n.animation=null,n=r}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(n,r){r=r||{},this.start();var a=new sI(n,r.loop);return this.addAnimator(a),a},e}(ks);const fbt=cbt;var dbt=300,FD=Fn.domSupported,zD=function(){var t=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],n={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},r=ut(t,function(a){var i=a.replace("mouse","pointer");return n.hasOwnProperty(i)?i:a});return{mouse:t,touch:e,pointer:r}}(),Fz={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},zz=!1;function pO(t){var e=t.pointerType;return e==="pen"||e==="touch"}function hbt(t){t.touching=!0,t.touchTimer!=null&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout(function(){t.touching=!1,t.touchTimer=null},700)}function UD(t){t&&(t.zrByTouch=!0)}function pbt(t,e){return as(t.dom,new vbt(t,e),!0)}function aie(t,e){for(var n=e,r=!1;n&&n.nodeType!==9&&!(r=n.domBelongToZr||n!==e&&n===t.painterRoot);)n=n.parentNode;return r}var vbt=function(){function t(e,n){this.stopPropagation=fa,this.stopImmediatePropagation=fa,this.preventDefault=fa,this.type=n.type,this.target=this.currentTarget=e.dom,this.pointerType=n.pointerType,this.clientX=n.clientX,this.clientY=n.clientY}return t}(),Ks={mousedown:function(t){t=as(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=as(this.dom,t);var e=this.__mayPointerCapture;e&&(t.zrX!==e[0]||t.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=as(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){t=as(this.dom,t);var e=t.toElement||t.relatedTarget;aie(this,e)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){zz=!0,t=as(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){zz||(t=as(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){t=as(this.dom,t),UD(t),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),Ks.mousemove.call(this,t),Ks.mousedown.call(this,t)},touchmove:function(t){t=as(this.dom,t),UD(t),this.handler.processGesture(t,"change"),Ks.mousemove.call(this,t)},touchend:function(t){t=as(this.dom,t),UD(t),this.handler.processGesture(t,"end"),Ks.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<dbt&&Ks.click.call(this,t)},pointerdown:function(t){Ks.mousedown.call(this,t)},pointermove:function(t){pO(t)||Ks.mousemove.call(this,t)},pointerup:function(t){Ks.mouseup.call(this,t)},pointerout:function(t){pO(t)||Ks.mouseout.call(this,t)}};q(["click","dblclick","contextmenu"],function(t){Ks[t]=function(e){e=as(this.dom,e),this.trigger(t,e)}});var vO={pointermove:function(t){pO(t)||vO.mousemove.call(this,t)},pointerup:function(t){vO.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}};function gbt(t,e){var n=e.domHandlers;Fn.pointerEventsSupported?q(zD.pointer,function(r){L_(e,r,function(a){n[r].call(t,a)})}):(Fn.touchEventsSupported&&q(zD.touch,function(r){L_(e,r,function(a){n[r].call(t,a),hbt(e)})}),q(zD.mouse,function(r){L_(e,r,function(a){a=rI(a),e.touching||n[r].call(t,a)})}))}function ybt(t,e){Fn.pointerEventsSupported?q(Fz.pointer,n):Fn.touchEventsSupported||q(Fz.mouse,n);function n(r){function a(i){i=rI(i),aie(t,i.target)||(i=pbt(t,i),e.domHandlers[r].call(t,i))}L_(e,r,a,{capture:!0})}}function L_(t,e,n,r){t.mounted[e]=n,t.listenerOpts[e]=r,iO(t.domTarget,e,n,r)}function GD(t){var e=t.mounted;for(var n in e)e.hasOwnProperty(n)&&b1t(t.domTarget,n,e[n],t.listenerOpts[n]);t.mounted={}}var Uz=function(){function t(e,n){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=n}return t}(),mbt=function(t){Fe(e,t);function e(n,r){var a=t.call(this)||this;return a.__pointerCapturing=!1,a.dom=n,a.painterRoot=r,a._localHandlerScope=new Uz(n,Ks),FD&&(a._globalHandlerScope=new Uz(document,vO)),gbt(a,a._localHandlerScope),a}return e.prototype.dispose=function(){GD(this._localHandlerScope),FD&&GD(this._globalHandlerScope)},e.prototype.setCursor=function(n){this.dom.style&&(this.dom.style.cursor=n||"default")},e.prototype.__togglePointerCapture=function(n){if(this.__mayPointerCapture=null,FD&&+this.__pointerCapturing^+n){this.__pointerCapturing=n;var r=this._globalHandlerScope;n?ybt(this,r):GD(r)}},e}(ks);const bbt=mbt;var iie=1;Fn.hasGlobalWindow&&(iie=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var J2=iie,gO=.4,yO="#333",mO="#ccc",Sbt="#eee",Gz=Jb,Hz=5e-5;function Fd(t){return t>Hz||t<-Hz}var zd=[],cv=[],HD=Wo(),WD=Math.abs,wbt=function(){function t(){}return t.prototype.getLocalTransform=function(e){return t.getLocalTransform(this,e)},t.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},t.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},t.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},t.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},t.prototype.needLocalTransform=function(){return Fd(this.rotation)||Fd(this.x)||Fd(this.y)||Fd(this.scaleX-1)||Fd(this.scaleY-1)||Fd(this.skewX)||Fd(this.skewY)},t.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,n=this.needLocalTransform(),r=this.transform;if(!(n||e)){r&&(Gz(r),this.invTransform=null);return}r=r||Wo(),n?this.getLocalTransform(r):Gz(r),e&&(n?lu(r,e,r):nE(r,e)),this.transform=r,this._resolveGlobalScaleRatio(r)},t.prototype._resolveGlobalScaleRatio=function(e){var n=this.globalScaleRatio;if(n!=null&&n!==1){this.getGlobalScale(zd);var r=zd[0]<0?-1:1,a=zd[1]<0?-1:1,i=((zd[0]-r)*n+r)/zd[0]||0,o=((zd[1]-a)*n+a)/zd[1]||0;e[0]*=i,e[1]*=i,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||Wo(),$p(this.invTransform,e)},t.prototype.getComputedTransform=function(){for(var e=this,n=[];e;)n.push(e),e=e.parent;for(;e=n.pop();)e.updateTransform();return this.transform},t.prototype.setLocalTransform=function(e){if(e){var n=e[0]*e[0]+e[1]*e[1],r=e[2]*e[2]+e[3]*e[3],a=Math.atan2(e[1],e[0]),i=Math.PI/2+a-Math.atan2(e[3],e[2]);r=Math.sqrt(r)*Math.cos(i),n=Math.sqrt(n),this.skewX=i,this.skewY=0,this.rotation=-a,this.x=+e[4],this.y=+e[5],this.scaleX=n,this.scaleY=r,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,n=this.transform;e&&e.transform&&(lu(cv,e.invTransform,n),n=cv);var r=this.originX,a=this.originY;(r||a)&&(HD[4]=r,HD[5]=a,lu(cv,n,HD),cv[4]-=r,cv[5]-=a,n=cv),this.setLocalTransform(n)}},t.prototype.getGlobalScale=function(e){var n=this.transform;return e=e||[],n?(e[0]=Math.sqrt(n[0]*n[0]+n[1]*n[1]),e[1]=Math.sqrt(n[2]*n[2]+n[3]*n[3]),n[0]<0&&(e[0]=-e[0]),n[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},t.prototype.transformCoordToLocal=function(e,n){var r=[e,n],a=this.invTransform;return a&&ai(r,r,a),r},t.prototype.transformCoordToGlobal=function(e,n){var r=[e,n],a=this.transform;return a&&ai(r,r,a),r},t.prototype.getLineScale=function(){var e=this.transform;return e&&WD(e[0]-1)>1e-10&&WD(e[3]-1)>1e-10?Math.sqrt(WD(e[0]*e[3]-e[2]*e[1])):1},t.prototype.copyTransform=function(e){oie(this,e)},t.getLocalTransform=function(e,n){n=n||[];var r=e.originX||0,a=e.originY||0,i=e.scaleX,o=e.scaleY,s=e.anchorX,l=e.anchorY,u=e.rotation||0,c=e.x,f=e.y,d=e.skewX?Math.tan(e.skewX):0,h=e.skewY?Math.tan(-e.skewY):0;if(r||a||s||l){var p=r+s,v=a+l;n[4]=-p*i-d*v*o,n[5]=-v*o-h*p*i}else n[4]=n[5]=0;return n[0]=i,n[3]=o,n[1]=h*i,n[2]=d*o,u&&fd(n,n,u),n[4]+=r+c,n[5]+=a+f,n},t.initDefaultProps=function(){var e=t.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0}(),t}(),gu=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function oie(t,e){for(var n=0;n<gu.length;n++){var r=gu[n];t[r]=e[r]}}const Qu=wbt;var Wz={};function Ho(t,e){e=e||Yf;var n=Wz[e];n||(n=Wz[e]=new eS(500));var r=n.get(t);return r==null&&(r=ml.measureText(t,e).width,n.put(t,r)),r}function jz(t,e,n,r){var a=Ho(t,e),i=iE(e),o=im(0,a,n),s=$v(0,i,r),l=new yn(o,s,a,i);return l}function tS(t,e,n,r){var a=((t||"")+"").split(`
  1127. `),i=a.length;if(i===1)return jz(a[0],e,n,r);for(var o=new yn(0,0,0,0),s=0;s<a.length;s++){var l=jz(a[s],e,n,r);s===0?o.copy(l):o.union(l)}return o}function im(t,e,n){return n==="right"?t-=e:n==="center"&&(t-=e/2),t}function $v(t,e,n){return n==="middle"?t-=e/2:n==="bottom"&&(t-=e),t}function iE(t){return Ho("国",t)}function Sl(t,e){return typeof t=="string"?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function eC(t,e,n){var r=e.position||"inside",a=e.distance!=null?e.distance:5,i=n.height,o=n.width,s=i/2,l=n.x,u=n.y,c="left",f="top";if(r instanceof Array)l+=Sl(r[0],n.width),u+=Sl(r[1],n.height),c=null,f=null;else switch(r){case"left":l-=a,u+=s,c="right",f="middle";break;case"right":l+=a+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 t=t||{},t.x=l,t.y=u,t.align=c,t.verticalAlign=f,t}var jD="__zr_normal__",KD=gu.concat(["ignore"]),xbt=Ds(gu,function(t,e){return t[e]=!0,t},{ignore:!1}),fv={},_bt=new yn(0,0,0,0),lI=function(){function t(e){this.id=JN(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return t.prototype._init=function(e){this.attr(e)},t.prototype.drift=function(e,n,r){switch(this.draggable){case"horizontal":n=0;break;case"vertical":e=0;break}var a=this.transform;a||(a=this.transform=[1,0,0,1,0,0]),a[4]+=e,a[5]+=n,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(e){var n=this._textContent;if(n&&(!n.ignore||e)){this.textConfig||(this.textConfig={});var r=this.textConfig,a=r.local,i=n.innerTransformable,o=void 0,s=void 0,l=!1;i.parent=a?this:null;var u=!1;if(i.copyTransform(n),r.position!=null){var c=_bt;r.layoutRect?c.copy(r.layoutRect):c.copy(this.getBoundingRect()),a||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(fv,r,c):eC(fv,r,c),i.x=fv.x,i.y=fv.y,o=fv.align,s=fv.verticalAlign;var f=r.origin;if(f&&r.rotation!=null){var d=void 0,h=void 0;f==="center"?(d=c.width*.5,h=c.height*.5):(d=Sl(f[0],c.width),h=Sl(f[1],c.height)),u=!0,i.originX=-i.x+d+(a?0:c.x),i.originY=-i.y+h+(a?0:c.y)}}r.rotation!=null&&(i.rotation=r.rotation);var p=r.offset;p&&(i.x+=p[0],i.y+=p[1],u||(i.originX=-p[0],i.originY=-p[1]));var v=r.inside==null?typeof r.position=="string"&&r.position.indexOf("inside")>=0:r.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),y=void 0,m=void 0,S=void 0;v&&this.canBeInsideText()?(y=r.insideFill,m=r.insideStroke,(y==null||y==="auto")&&(y=this.getInsideTextFill()),(m==null||m==="auto")&&(m=this.getInsideTextStroke(y),S=!0)):(y=r.outsideFill,m=r.outsideStroke,(y==null||y==="auto")&&(y=this.getOutsideFill()),(m==null||m==="auto")&&(m=this.getOutsideStroke(y),S=!0)),y=y||"#000",(y!==g.fill||m!==g.stroke||S!==g.autoStroke||o!==g.align||s!==g.verticalAlign)&&(l=!0,g.fill=y,g.stroke=m,g.autoStroke=S,g.align=o,g.verticalAlign=s,n.setDefaultTextStyle(g)),n.__dirty|=Bo,l&&n.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(e){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?mO:yO},t.prototype.getOutsideStroke=function(e){var n=this.__zr&&this.__zr.getBackgroundColor(),r=typeof n=="string"&&to(n);r||(r=[255,255,255,1]);for(var a=r[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)r[o]=r[o]*a+(i?0:255)*(1-a);return r[3]=1,vl(r,"rgba")},t.prototype.traverse=function(e,n){},t.prototype.attrKV=function(e,n){e==="textConfig"?this.setTextConfig(n):e==="textContent"?this.setTextContent(n):e==="clipPath"?this.setClipPath(n):e==="extra"?(this.extra=this.extra||{},et(this.extra,n)):this[e]=n},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(e,n){if(typeof e=="string")this.attrKV(e,n);else if(qt(e))for(var r=e,a=Dn(r),i=0;i<a.length;i++){var o=a[i];this.attrKV(o,e[o])}return this.markRedraw(),this},t.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var n=this._normalState,r=0;r<this.animators.length;r++){var a=this.animators[r],i=a.__fromStateTransition;if(!(a.getLoop()||i&&i!==jD)){var o=a.targetName,s=o?n[o]:n;a.saveTo(s)}}},t.prototype._innerSaveToNormal=function(e){var n=this._normalState;n||(n=this._normalState={}),e.textConfig&&!n.textConfig&&(n.textConfig=this.textConfig),this._savePrimaryToNormal(e,n,KD)},t.prototype._savePrimaryToNormal=function(e,n,r){for(var a=0;a<r.length;a++){var i=r[a];e[i]!=null&&!(i in n)&&(n[i]=this[i])}},t.prototype.hasState=function(){return this.currentStates.length>0},t.prototype.getState=function(e){return this.states[e]},t.prototype.ensureState=function(e){var n=this.states;return n[e]||(n[e]={}),n[e]},t.prototype.clearStates=function(e){this.useState(jD,!1,e)},t.prototype.useState=function(e,n,r,a){var i=e===jD,o=this.hasState();if(!(!o&&i)){var s=this.currentStates,l=this.stateTransition;if(!(bn(s,e)>=0&&(n||s.length===1))){var u;if(this.stateProxy&&!i&&(u=this.stateProxy(e)),u||(u=this.states&&this.states[e]),!u&&!i){QT("State "+e+" not exists.");return}i||this.saveCurrentToNormalState(u);var c=!!(u&&u.hoverLayer||a);c&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,u,this._normalState,n,!r&&!this.__inHover&&l&&l.duration>0,l);var f=this._textContent,d=this._textGuide;return f&&f.useState(e,n,r,c),d&&d.useState(e,n,r,c),i?(this.currentStates=[],this._normalState={}):n?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Bo),u}}},t.prototype.useStates=function(e,n,r){if(!e.length)this.clearStates();else{var a=[],i=this.currentStates,o=e.length,s=o===i.length;if(s){for(var l=0;l<o;l++)if(e[l]!==i[l]){s=!1;break}}if(s)return;for(var l=0;l<o;l++){var u=e[l],c=void 0;this.stateProxy&&(c=this.stateProxy(u,e)),c||(c=this.states[u]),c&&a.push(c)}var f=a[o-1],d=!!(f&&f.hoverLayer||r);d&&this._toggleHoverLayerFlag(!0);var h=this._mergeStates(a),p=this.stateTransition;this.saveCurrentToNormalState(h),this._applyStateObj(e.join(","),h,this._normalState,!1,!n&&!this.__inHover&&p&&p.duration>0,p);var v=this._textContent,g=this._textGuide;v&&v.useStates(e,n,d),g&&g.useStates(e,n,d),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!d&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Bo)}},t.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var n=this.animators[e];n.targetName&&n.changeTarget(this[n.targetName])}},t.prototype.removeState=function(e){var n=bn(this.currentStates,e);if(n>=0){var r=this.currentStates.slice();r.splice(n,1),this.useStates(r)}},t.prototype.replaceState=function(e,n,r){var a=this.currentStates.slice(),i=bn(a,e),o=bn(a,n)>=0;i>=0?o?a.splice(i,1):a[i]=n:r&&!o&&a.push(n),this.useStates(a)},t.prototype.toggleState=function(e,n){n?this.useState(e,!0):this.removeState(e)},t.prototype._mergeStates=function(e){for(var n={},r,a=0;a<e.length;a++){var i=e[a];et(n,i),i.textConfig&&(r=r||{},et(r,i.textConfig))}return r&&(n.textConfig=r),n},t.prototype._applyStateObj=function(e,n,r,a,i,o){var s=!(n&&a);n&&n.textConfig?(this.textConfig=et({},a?this.textConfig:r.textConfig),et(this.textConfig,n.textConfig)):s&&r.textConfig&&(this.textConfig=r.textConfig);for(var l={},u=!1,c=0;c<KD.length;c++){var f=KD[c],d=i&&xbt[f];n&&n[f]!=null?d?(u=!0,l[f]=n[f]):this[f]=n[f]:s&&r[f]!=null&&(d?(u=!0,l[f]=r[f]):this[f]=r[f])}if(!i)for(var c=0;c<this.animators.length;c++){var h=this.animators[c],p=h.targetName;h.getLoop()||h.__changeFinalValue(p?(n||r)[p]:n||r)}u&&this._transitionState(e,l,o)},t.prototype._attachComponent=function(e){if(!(e.__zr&&!e.__hostTarget)&&e!==this){var n=this.__zr;n&&e.addSelfToZr(n),e.__zr=n,e.__hostTarget=this}},t.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},t.prototype.getClipPath=function(){return this._clipPath},t.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},t.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},t.prototype.getTextContent=function(){return this._textContent},t.prototype.setTextContent=function(e){var n=this._textContent;n!==e&&(n&&n!==e&&this.removeTextContent(),e.innerTransformable=new Qu,this._attachComponent(e),this._textContent=e,this.markRedraw())},t.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),et(this.textConfig,e),this.markRedraw()},t.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},t.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},t.prototype.getTextGuideLine=function(){return this._textGuide},t.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},t.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},t.prototype.markRedraw=function(){this.__dirty|=Bo;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},t.prototype.dirty=function(){this.markRedraw()},t.prototype._toggleHoverLayerFlag=function(e){this.__inHover=e;var n=this._textContent,r=this._textGuide;n&&(n.__inHover=e),r&&(r.__inHover=e)},t.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var n=this.animators;if(n)for(var r=0;r<n.length;r++)e.animation.addAnimator(n[r]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},t.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var n=this.animators;if(n)for(var r=0;r<n.length;r++)e.animation.removeAnimator(n[r]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},t.prototype.animate=function(e,n,r){var a=e?this[e]:this,i=new sI(a,n,r);return e&&(i.targetName=e),this.addAnimator(i,e),i},t.prototype.addAnimator=function(e,n){var r=this.__zr,a=this;e.during(function(){a.updateDuringAnimation(n)}).done(function(){var i=a.animators,o=bn(i,e);o>=0&&i.splice(o,1)}),this.animators.push(e),r&&r.animation.addAnimator(e),r&&r.wakeUp()},t.prototype.updateDuringAnimation=function(e){this.markRedraw()},t.prototype.stopAnimation=function(e,n){for(var r=this.animators,a=r.length,i=[],o=0;o<a;o++){var s=r[o];!e||e===s.scope?s.stop(n):i.push(s)}return this.animators=i,this},t.prototype.animateTo=function(e,n,r){YD(this,e,n,r)},t.prototype.animateFrom=function(e,n,r){YD(this,e,n,r,!0)},t.prototype._transitionState=function(e,n,r,a){for(var i=YD(this,n,r,a),o=0;o<i.length;o++)i[o].__fromStateTransition=e},t.prototype.getBoundingRect=function(){return null},t.prototype.getPaintRect=function(){return null},t.initDefaultProps=function(){var e=t.prototype;e.type="element",e.name="",e.ignore=e.silent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=e.__inHover=!1,e.__dirty=Bo;function n(r,a,i,o){Object.defineProperty(e,r,{get:function(){if(!this[a]){var l=this[a]=[];s(this,l)}return this[a]},set:function(l){this[i]=l[0],this[o]=l[1],this[a]=l,s(this,l)}});function s(l,u){Object.defineProperty(u,0,{get:function(){return l[i]},set:function(c){l[i]=c}}),Object.defineProperty(u,1,{get:function(){return l[o]},set:function(c){l[o]=c}})}}Object.defineProperty&&(n("position","_legacyPos","x","y"),n("scale","_legacyScale","scaleX","scaleY"),n("origin","_legacyOrigin","originX","originY"))}(),t}();ha(lI,ks);ha(lI,Qu);function YD(t,e,n,r,a){n=n||{};var i=[];sie(t,"",t,e,n,r,i,a);var o=i.length,s=!1,l=n.done,u=n.aborted,c=function(){s=!0,o--,o<=0&&(s?l&&l():u&&u())},f=function(){o--,o<=0&&(s?l&&l():u&&u())};o||l&&l(),i.length>0&&n.during&&i[0].during(function(p,v){n.during(v)});for(var d=0;d<i.length;d++){var h=i[d];c&&h.done(c),f&&h.aborted(f),n.force&&h.duration(n.duration),h.start(n.easing)}return i}function XD(t,e,n){for(var r=0;r<n;r++)t[r]=e[r]}function Cbt(t){return mi(t[0])}function Tbt(t,e,n){if(mi(e[n]))if(mi(t[n])||(t[n]=[]),ko(e[n])){var r=e[n].length;t[n].length!==r&&(t[n]=new e[n].constructor(r),XD(t[n],e[n],r))}else{var a=e[n],i=t[n],o=a.length;if(Cbt(a))for(var s=a[0].length,l=0;l<o;l++)i[l]?XD(i[l],a[l],s):i[l]=Array.prototype.slice.call(a[l]);else XD(i,a,o);i.length=a.length}else t[n]=e[n]}function Ebt(t,e){return t===e||mi(t)&&mi(e)&&Mbt(t,e)}function Mbt(t,e){var n=t.length;if(n!==e.length)return!1;for(var r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function sie(t,e,n,r,a,i,o,s){for(var l=Dn(r),u=a.duration,c=a.delay,f=a.additive,d=a.setToFinal,h=!qt(i),p=t.animators,v=[],g=0;g<l.length;g++){var y=l[g],m=r[y];if(m!=null&&n[y]!=null&&(h||i[y]))if(qt(m)&&!mi(m)&&!Zb(m)){if(e){s||(n[y]=m,t.updateDuringAnimation(e));continue}sie(t,y,n[y],m,a,i&&i[y],o,s)}else v.push(y);else s||(n[y]=m,t.updateDuringAnimation(e),v.push(y))}var S=v.length;if(!f&&S)for(var w=0;w<p.length;w++){var C=p[w];if(C.targetName===e){var _=C.stopTracks(v);if(_){var x=bn(p,C);p.splice(x,1)}}}if(a.force||(v=or(v,function(A){return!Ebt(r[A],n[A])}),S=v.length),S>0||a.force&&!o.length){var T=void 0,M=void 0,E=void 0;if(s){M={},d&&(T={});for(var w=0;w<S;w++){var y=v[w];M[y]=n[y],d?T[y]=r[y]:n[y]=r[y]}}else if(d){E={};for(var w=0;w<S;w++){var y=v[w];E[y]=$m(n[y]),Tbt(n,r,y)}}var C=new sI(n,!1,!1,f?or(p,function(k){return k.targetName===e}):null);C.targetName=e,a.scope&&(C.scope=a.scope),d&&T&&C.whenWithKeys(0,T,v),E&&C.whenWithKeys(0,E,v),C.whenWithKeys(u??500,s?M:r,v).delay(c||0),t.addAnimator(C,e),o.push(C)}}const lie=lI;var uie=function(t){Fe(e,t);function e(n){var r=t.call(this)||this;return r.isGroup=!0,r._children=[],r.attr(n),r}return e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(n){return this._children[n]},e.prototype.childOfName=function(n){for(var r=this._children,a=0;a<r.length;a++)if(r[a].name===n)return r[a]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(n){return n&&n!==this&&n.parent!==this&&(this._children.push(n),this._doAdd(n)),this},e.prototype.addBefore=function(n,r){if(n&&n!==this&&n.parent!==this&&r&&r.parent===this){var a=this._children,i=a.indexOf(r);i>=0&&(a.splice(i,0,n),this._doAdd(n))}return this},e.prototype.replace=function(n,r){var a=bn(this._children,n);return a>=0&&this.replaceAt(r,a),this},e.prototype.replaceAt=function(n,r){var a=this._children,i=a[r];if(n&&n!==this&&n.parent!==this&&n!==i){a[r]=n,i.parent=null;var o=this.__zr;o&&i.removeSelfFromZr(o),this._doAdd(n)}return this},e.prototype._doAdd=function(n){n.parent&&n.parent.remove(n),n.parent=this;var r=this.__zr;r&&r!==n.__zr&&n.addSelfToZr(r),r&&r.refresh()},e.prototype.remove=function(n){var r=this.__zr,a=this._children,i=bn(a,n);return i<0?this:(a.splice(i,1),n.parent=null,r&&n.removeSelfFromZr(r),r&&r.refresh(),this)},e.prototype.removeAll=function(){for(var n=this._children,r=this.__zr,a=0;a<n.length;a++){var i=n[a];r&&i.removeSelfFromZr(r),i.parent=null}return n.length=0,this},e.prototype.eachChild=function(n,r){for(var a=this._children,i=0;i<a.length;i++){var o=a[i];n.call(r,o,i)}return this},e.prototype.traverse=function(n,r){for(var a=0;a<this._children.length;a++){var i=this._children[a],o=n.call(r,i);i.isGroup&&!o&&i.traverse(n,r)}return this},e.prototype.addSelfToZr=function(n){t.prototype.addSelfToZr.call(this,n);for(var r=0;r<this._children.length;r++){var a=this._children[r];a.addSelfToZr(n)}},e.prototype.removeSelfFromZr=function(n){t.prototype.removeSelfFromZr.call(this,n);for(var r=0;r<this._children.length;r++){var a=this._children[r];a.removeSelfFromZr(n)}},e.prototype.getBoundingRect=function(n){for(var r=new yn(0,0,0,0),a=n||this._children,i=[],o=null,s=0;s<a.length;s++){var l=a[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),c=l.getLocalTransform(i);c?(yn.applyTransform(r,u,c),o=o||r.clone(),o.union(r)):(o=o||u.clone(),o.union(u))}}return o||r},e}(lie);uie.prototype.type="group";const en=uie;/*!
  1128. * ZRender, a high performance 2d drawing library.
  1129. *
  1130. * Copyright (c) 2013, Baidu Inc.
  1131. * All rights reserved.
  1132. *
  1133. * LICENSE
  1134. * https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
  1135. */var O_={},Ph={};function Dbt(t){delete Ph[t]}function Abt(t){if(!t)return!1;if(typeof t=="string")return W1(t,1)<gO;if(t.colorStops){for(var e=t.colorStops,n=0,r=e.length,a=0;a<r;a++)n+=W1(e[a].color,1);return n/=r,n<gO}return!1}var kbt=function(){function t(e,n,r){var a=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,r=r||{},this.dom=n,this.id=e;var i=new N1t,o=r.renderer||"canvas";O_[o]||(o=Dn(O_)[0]),r.useDirtyRect=r.useDirtyRect==null?!1:r.useDirtyRect;var s=new O_[o](n,i,r,e),l=r.ssr||s.ssrOnly;this.storage=i,this.painter=s;var u=!Fn.node&&!Fn.worker&&!l?new bbt(s.getViewportRoot(),s.root):null,c=r.useCoarsePointer,f=c==null||c==="auto"?Fn.touchEventsSupported:!!c,d=44,h;f&&(h=gn(r.pointerSize,d)),this.handler=new k1t(i,s,u,s.root,h),this.animation=new fbt({stage:{update:l?null:function(){return a._flush(!0)}}}),l||this.animation.start()}return t.prototype.add=function(e){e&&(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},t.prototype.remove=function(e){e&&(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},t.prototype.configLayer=function(e,n){this.painter.configLayer&&this.painter.configLayer(e,n),this.refresh()},t.prototype.setBackgroundColor=function(e){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=Abt(e)},t.prototype.getBackgroundColor=function(){return this._backgroundColor},t.prototype.setDarkMode=function(e){this._darkMode=e},t.prototype.isDarkMode=function(){return this._darkMode},t.prototype.refreshImmediately=function(e){e||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1},t.prototype.refresh=function(){this._needsRefresh=!0,this.animation.start()},t.prototype.flush=function(){this._flush(!1)},t.prototype._flush=function(e){var n,r=qv();this._needsRefresh&&(n=!0,this.refreshImmediately(e)),this._needsRefreshHover&&(n=!0,this.refreshHoverImmediately());var a=qv();n?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:a-r})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},t.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover()},t.prototype.resize=function(e){e=e||{},this.painter.resize(e.width,e.height),this.handler.resize()},t.prototype.clearAnimation=function(){this.animation.clear()},t.prototype.getWidth=function(){return this.painter.getWidth()},t.prototype.getHeight=function(){return this.painter.getHeight()},t.prototype.setCursorStyle=function(e){this.handler.setCursorStyle(e)},t.prototype.findHover=function(e,n){return this.handler.findHover(e,n)},t.prototype.on=function(e,n,r){return this.handler.on(e,n,r),this},t.prototype.off=function(e,n){this.handler.off(e,n)},t.prototype.trigger=function(e,n){this.handler.trigger(e,n)},t.prototype.clear=function(){for(var e=this.storage.getRoots(),n=0;n<e.length;n++)e[n]instanceof en&&e[n].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()},t.prototype.dispose=function(){this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,Dbt(this.id)},t}();function bO(t,e){var n=new kbt(JN(),t,e);return Ph[n.id]=n,n}function Rbt(t){t.dispose()}function Lbt(){for(var t in Ph)Ph.hasOwnProperty(t)&&Ph[t].dispose();Ph={}}function Obt(t){return Ph[t]}function cie(t,e){O_[t]=e}var Vbt="5.4.4";const Nbt=Object.freeze(Object.defineProperty({__proto__:null,dispose:Rbt,disposeAll:Lbt,getInstance:Obt,init:bO,registerPainter:cie,version:Vbt},Symbol.toStringTag,{value:"Module"}));var Kz=1e-4,fie=20;function Ibt(t){return t.replace(/^\s+|\s+$/g,"")}function ir(t,e,n,r){var a=e[0],i=e[1],o=n[0],s=n[1],l=i-a,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(r)if(l>0){if(t<=a)return o;if(t>=i)return s}else{if(t>=a)return o;if(t<=i)return s}else{if(t===a)return o;if(t===i)return s}return(t-a)/l*u+o}function Mt(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%";break}return Ot(t)?Ibt(t).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):t==null?NaN:+t}function sa(t,e,n){return e==null&&(e=10),e=Math.min(Math.max(0,e),fie),t=(+t).toFixed(e),n?t:+t}function zo(t){return t.sort(function(e,n){return e-n}),t}function ll(t){if(t=+t,isNaN(t))return 0;if(t>1e-14){for(var e=1,n=0;n<15;n++,e*=10)if(Math.round(t*e)/e===t)return n}return die(t)}function die(t){var e=t.toString().toLowerCase(),n=e.indexOf("e"),r=n>0?+e.slice(n+1):0,a=n>0?n:e.length,i=e.indexOf("."),o=i<0?0:a-1-i;return Math.max(0,o-r)}function uI(t,e){var n=Math.log,r=Math.LN10,a=Math.floor(n(t[1]-t[0])/r),i=Math.round(n(Math.abs(e[1]-e[0]))/r),o=Math.min(Math.max(-a+i,0),20);return isFinite(o)?o:20}function Bbt(t,e,n){if(!t[e])return 0;var r=hie(t,n);return r[e]||0}function hie(t,e){var n=Ds(t,function(h,p){return h+(isNaN(p)?0:p)},0);if(n===0)return[];for(var r=Math.pow(10,e),a=ut(t,function(h){return(isNaN(h)?0:h)/n*r*100}),i=r*100,o=ut(a,function(h){return Math.floor(h)}),s=Ds(o,function(h,p){return h+p},0),l=ut(a,function(h,p){return h-o[p]});s<i;){for(var u=Number.NEGATIVE_INFINITY,c=null,f=0,d=l.length;f<d;++f)l[f]>u&&(u=l[f],c=f);++o[c],l[c]=0,++s}return ut(o,function(h){return h/r})}function $bt(t,e){var n=Math.max(ll(t),ll(e)),r=t+e;return n>fie?r:sa(r,n)}var SO=9007199254740991;function cI(t){var e=Math.PI*2;return(t%e+e)%e}function K1(t){return t>-Kz&&t<Kz}var Pbt=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function jo(t){if(t instanceof Date)return t;if(Ot(t)){var e=Pbt.exec(t);if(!e)return new Date(NaN);if(e[8]){var n=+e[4]||0;return e[8].toUpperCase()!=="Z"&&(n-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,n,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}else return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0)}else if(t==null)return new Date(NaN);return new Date(Math.round(t))}function pie(t){return Math.pow(10,oE(t))}function oE(t){if(t===0)return 0;var e=Math.floor(Math.log(t)/Math.LN10);return t/Math.pow(10,e)>=10&&e++,e}function fI(t,e){var n=oE(t),r=Math.pow(10,n),a=t/r,i;return e?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,t=i*r,n>=-20?+t.toFixed(n<0?-n:0):t}function V_(t,e){var n=(t.length-1)*e+1,r=Math.floor(n),a=+t[r-1],i=n-r;return i?a+i*(t[r]-a):a}function wO(t){t.sort(function(l,u){return s(l,u,0)?-1:1});for(var e=-1/0,n=1,r=0;r<t.length;){for(var a=t[r].interval,i=t[r].close,o=0;o<2;o++)a[o]<=e&&(a[o]=e,i[o]=o?1:1-n),e=a[o],n=i[o];a[0]===a[1]&&i[0]*i[1]!==1?t.splice(r,1):r++}return t;function s(l,u,c){return l.interval[c]<u.interval[c]||l.interval[c]===u.interval[c]&&(l.close[c]-u.close[c]===(c?-1:1)||!c&&s(l,u,1))}}function yu(t){var e=parseFloat(t);return e==t&&(e!==0||!Ot(t)||t.indexOf("x")<=0)?e:NaN}function dI(t){return!isNaN(yu(t))}function vie(){return Math.round(Math.random()*9)}function gie(t,e){return e===0?t:gie(e,t%e)}function Yz(t,e){return t==null?e:e==null?t:t*e/gie(t,e)}function tr(t){throw new Error(t)}function Xz(t,e,n){return(e-t)*n+t}var yie="series\0",mie="\0_ec_\0";function mr(t){return t instanceof Array?t:t==null?[]:[t]}function Sp(t,e,n){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var r=0,a=n.length;r<a;r++){var i=n[r];!t.emphasis[e].hasOwnProperty(i)&&t[e].hasOwnProperty(i)&&(t.emphasis[e][i]=t[e][i])}}}var qz=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function D0(t){return qt(t)&&!st(t)&&!(t instanceof Date)?t.value:t}function Fbt(t){return qt(t)&&!(t instanceof Array)}function bie(t,e,n){var r=n==="normalMerge",a=n==="replaceMerge",i=n==="replaceAll";t=t||[],e=(e||[]).slice();var o=Gt();q(e,function(l,u){if(!qt(l)){e[u]=null;return}});var s=zbt(t,o,n);return(r||a)&&Ubt(s,t,o,e),r&&Gbt(s,e),r||a?Hbt(s,e,a):i&&Wbt(s,e),jbt(s),s}function zbt(t,e,n){var r=[];if(n==="replaceAll")return r;for(var a=0;a<t.length;a++){var i=t[a];i&&i.id!=null&&e.set(i.id,a),r.push({existing:n==="replaceMerge"||Y1(i)?null:i,newOption:null,keyInfo:null,brandNew:null})}return r}function Ubt(t,e,n,r){q(r,function(a,i){if(!(!a||a.id==null)){var o=Pm(a.id),s=n.get(o);if(s!=null){var l=t[s];Ii(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=a,l.existing=e[s],r[i]=null}}})}function Gbt(t,e){q(e,function(n,r){if(!(!n||n.name==null))for(var a=0;a<t.length;a++){var i=t[a].existing;if(!t[a].newOption&&i&&(i.id==null||n.id==null)&&!Y1(n)&&!Y1(i)&&Sie("name",i,n)){t[a].newOption=n,e[r]=null;return}}})}function Hbt(t,e,n){q(e,function(r){if(r){for(var a,i=0;(a=t[i])&&(a.newOption||Y1(a.existing)||a.existing&&r.id!=null&&!Sie("id",r,a.existing));)i++;a?(a.newOption=r,a.brandNew=n):t.push({newOption:r,brandNew:n,existing:null,keyInfo:null}),i++}})}function Wbt(t,e){q(e,function(n){t.push({newOption:n,brandNew:!0,existing:null,keyInfo:null})})}function jbt(t){var e=Gt();q(t,function(n){var r=n.existing;r&&e.set(r.id,n)}),q(t,function(n){var r=n.newOption;Ii(!r||r.id==null||!e.get(r.id)||e.get(r.id)===n,"id duplicates: "+(r&&r.id)),r&&r.id!=null&&e.set(r.id,n),!n.keyInfo&&(n.keyInfo={})}),q(t,function(n,r){var a=n.existing,i=n.newOption,o=n.keyInfo;if(qt(i)){if(o.name=i.name!=null?Pm(i.name):a?a.name:yie+r,a)o.id=Pm(a.id);else if(i.id!=null)o.id=Pm(i.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(e.get(o.id))}e.set(o.id,n)}})}function Sie(t,e,n){var r=Ia(e[t],null),a=Ia(n[t],null);return r!=null&&a!=null&&r===a}function Pm(t){return Ia(t,"")}function Ia(t,e){return t==null?e:Ot(t)?t:Un(t)||j2(t)?t+"":e}function hI(t){var e=t.name;return!!(e&&e.indexOf(yie))}function Y1(t){return t&&t.id!=null&&Pm(t.id).indexOf(mie)===0}function Kbt(t){return mie+t}function Ybt(t,e,n){q(t,function(r){var a=r.newOption;qt(a)&&(r.keyInfo.mainType=e,r.keyInfo.subType=Xbt(e,a,r.existing,n))})}function Xbt(t,e,n,r){var a=e.type?e.type:n?n.subType:r.determineSubType(t,e);return a}function qbt(t,e){var n={},r={};return a(t||[],n),a(e||[],r,n),[i(n),i(r)];function a(o,s,l){for(var u=0,c=o.length;u<c;u++){var f=Ia(o[u].seriesId,null);if(f==null)return;for(var d=mr(o[u].dataIndex),h=l&&l[f],p=0,v=d.length;p<v;p++){var g=d[p];h&&h[g]?h[g]=null:(s[f]||(s[f]={}))[g]=1}}}function i(o,s){var l=[];for(var u in o)if(o.hasOwnProperty(u)&&o[u]!=null)if(s)l.push(+u);else{var c=i(o[u],!0);c.length&&l.push({seriesId:u,dataIndex:c})}return l}}function wp(t,e){if(e.dataIndexInside!=null)return e.dataIndexInside;if(e.dataIndex!=null)return st(e.dataIndex)?ut(e.dataIndex,function(n){return t.indexOfRawIndex(n)}):t.indexOfRawIndex(e.dataIndex);if(e.name!=null)return st(e.name)?ut(e.name,function(n){return t.indexOfName(n)}):t.indexOfName(e.name)}function Gn(){var t="__ec_inner_"+Zbt++;return function(e){return e[t]||(e[t]={})}}var Zbt=vie();function Fm(t,e,n){var r=pI(e,n),a=r.mainTypeSpecified,i=r.queryOptionMap,o=r.others,s=o,l=n?n.defaultMainType:null;return!a&&l&&i.set(l,{}),i.each(function(u,c){var f=nS(t,c,u,{useDefault:l===c,enableAll:n&&n.enableAll!=null?n.enableAll:!0,enableNone:n&&n.enableNone!=null?n.enableNone:!0});s[c+"Models"]=f.models,s[c+"Model"]=f.models[0]}),s}function pI(t,e){var n;if(Ot(t)){var r={};r[t+"Index"]=0,n=r}else n=t;var a=Gt(),i={},o=!1;return q(n,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){i[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],c=u[1],f=(u[2]||"").toLowerCase();if(!(!c||!f||e&&e.includeMainTypes&&bn(e.includeMainTypes,c)<0)){o=o||!!c;var d=a.get(c)||a.set(c,{});d[f]=s}}),{mainTypeSpecified:o,queryOptionMap:a,others:i}}var Ca={useDefault:!0,enableAll:!1,enableNone:!1},Qbt={useDefault:!1,enableAll:!0,enableNone:!0};function nS(t,e,n,r){r=r||Ca;var a=n.index,i=n.id,o=n.name,s={models:null,specified:a!=null||i!=null||o!=null};if(!s.specified){var l=void 0;return s.models=r.useDefault&&(l=t.getComponent(e))?[l]:[],s}return a==="none"||a===!1?(Ii(r.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(a==="all"&&(Ii(r.enableAll,'`"all"` is not a valid value on index option.'),a=i=o=null),s.models=t.queryComponents({mainType:e,index:a,id:i,name:o}),s)}function wie(t,e,n){t.setAttribute?t.setAttribute(e,n):t[e]=n}function Jbt(t,e){return t.getAttribute?t.getAttribute(e):t[e]}function eSt(t){return t==="auto"?Fn.domSupported?"html":"richText":t||"html"}function xO(t,e){var n=Gt(),r=[];return q(t,function(a){var i=e(a);(n.get(i)||(r.push(i),n.set(i,[]))).push(a)}),{keys:r,buckets:n}}function xie(t,e,n,r,a){var i=e==null||e==="auto";if(r==null)return r;if(Un(r)){var o=Xz(n||0,r,a);return sa(o,i?Math.max(ll(n||0),ll(r)):e)}else{if(Ot(r))return a<1?n:r;for(var s=[],l=n,u=r,c=Math.max(l?l.length:0,u.length),f=0;f<c;++f){var d=t.getDimensionInfo(f);if(d&&d.type==="ordinal")s[f]=(a<1&&l?l:u)[f];else{var h=l&&l[f]?l[f]:0,p=u[f],o=Xz(h,p,a);s[f]=sa(o,i?Math.max(ll(h),ll(p)):e)}}return s}}var tSt=".",Ud="___EC__COMPONENT__CONTAINER___",_ie="___EC__EXTENDED_CLASS___";function eu(t){var e={main:"",sub:""};if(t){var n=t.split(tSt);e.main=n[0]||"",e.sub=n[1]||""}return e}function nSt(t){Ii(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}function rSt(t){return!!(t&&t[_ie])}function vI(t,e){t.$constructor=t,t.extend=function(n){var r=this,a;return aSt(r)?a=function(i){Fe(o,i);function o(){return i.apply(this,arguments)||this}return o}(r):(a=function(){(n.$constructor||r).apply(this,arguments)},eI(a,this)),et(a.prototype,n),a[_ie]=!0,a.extend=this.extend,a.superCall=sSt,a.superApply=lSt,a.superClass=r,a}}function aSt(t){return jt(t)&&/^class\s/.test(Function.prototype.toString.call(t))}function Cie(t,e){t.extend=e.extend}var iSt=Math.round(Math.random()*10);function oSt(t){var e=["__\0is_clz",iSt++].join("_");t.prototype[e]=!0,t.isInstance=function(n){return!!(n&&n[e])}}function sSt(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return this.superClass.prototype[e].apply(t,n)}function lSt(t,e,n){return this.superClass.prototype[e].apply(t,n)}function sE(t){var e={};t.registerClass=function(r){var a=r.type||r.prototype.type;if(a){nSt(a),r.prototype.type=a;var i=eu(a);if(!i.sub)e[i.main]=r;else if(i.sub!==Ud){var o=n(i);o[i.sub]=r}}return r},t.getClass=function(r,a,i){var o=e[r];if(o&&o[Ud]&&(o=a?o[a]:null),i&&!o)throw new Error(a?"Component "+r+"."+(a||"")+" is used but not imported.":r+".type should be specified.");return o},t.getClassesByMainType=function(r){var a=eu(r),i=[],o=e[a.main];return o&&o[Ud]?q(o,function(s,l){l!==Ud&&i.push(s)}):i.push(o),i},t.hasClass=function(r){var a=eu(r);return!!e[a.main]},t.getAllClassMainTypes=function(){var r=[];return q(e,function(a,i){r.push(i)}),r},t.hasSubTypes=function(r){var a=eu(r),i=e[a.main];return i&&i[Ud]};function n(r){var a=e[r.main];return(!a||!a[Ud])&&(a=e[r.main]={},a[Ud]=!0),a}}function xp(t,e){for(var n=0;n<t.length;n++)t[n][1]||(t[n][1]=t[n][0]);return e=e||!1,function(r,a,i){for(var o={},s=0;s<t.length;s++){var l=t[s][1];if(!(a&&bn(a,l)>=0||i&&bn(i,l)<0)){var u=r.getShallow(l,e);u!=null&&(o[t[s][0]]=u)}}return o}}var uSt=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],cSt=xp(uSt),fSt=function(){function t(){}return t.prototype.getAreaStyle=function(e,n){return cSt(this,e,n)},t}(),_O=new eS(50);function dSt(t){if(typeof t=="string"){var e=_O.get(t);return e&&e.image}else return t}function gI(t,e,n,r,a){if(t)if(typeof t=="string"){if(e&&e.__zrImageSrc===t||!n)return e;var i=_O.get(t),o={hostEl:n,cb:r,cbPayload:a};return i?(e=i.image,!lE(e)&&i.pending.push(o)):(e=ml.loadImage(t,Zz,Zz),e.__zrImageSrc=t,_O.put(t,e.__cachedImgObj={image:e,pending:[o]})),e}else return t;else return e}function Zz(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<t.pending.length;e++){var n=t.pending[e],r=n.cb;r&&r(this,n.cbPayload),n.hostEl.dirty()}t.pending.length=0}function lE(t){return t&&t.width&&t.height}var qD=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function Tie(t,e,n,r,a){if(!e)return"";var i=(t+"").split(`
  1136. `);a=Eie(e,n,r,a);for(var o=0,s=i.length;o<s;o++)i[o]=Mie(i[o],a);return i.join(`
  1137. `)}function Eie(t,e,n,r){r=r||{};var a=et({},r);a.font=e,n=gn(n,"..."),a.maxIterations=gn(r.maxIterations,2);var i=a.minChar=gn(r.minChar,0);a.cnCharWidth=Ho("国",e);var o=a.ascCharWidth=Ho("a",e);a.placeholder=gn(r.placeholder,"");for(var s=t=Math.max(0,t-1),l=0;l<i&&s>=o;l++)s-=o;var u=Ho(n,e);return u>s&&(n="",u=0),s=t-u,a.ellipsis=n,a.ellipsisWidth=u,a.contentWidth=s,a.containerWidth=t,a}function Mie(t,e){var n=e.containerWidth,r=e.font,a=e.contentWidth;if(!n)return"";var i=Ho(t,r);if(i<=n)return t;for(var o=0;;o++){if(i<=a||o>=e.maxIterations){t+=e.ellipsis;break}var s=o===0?hSt(t,a,e.ascCharWidth,e.cnCharWidth):i>0?Math.floor(t.length*a/i):0;t=t.substr(0,s),i=Ho(t,r)}return t===""&&(t=e.placeholder),t}function hSt(t,e,n,r){for(var a=0,i=0,o=t.length;i<o&&a<e;i++){var s=t.charCodeAt(i);a+=0<=s&&s<=127?n:r}return i}function pSt(t,e){t!=null&&(t+="");var n=e.overflow,r=e.padding,a=e.font,i=n==="truncate",o=iE(a),s=gn(e.lineHeight,o),l=!!e.backgroundColor,u=e.lineOverflow==="truncate",c=e.width,f;c!=null&&(n==="break"||n==="breakAll")?f=t?Die(t,e.font,c,n==="breakAll",0).lines:[]:f=t?t.split(`
  1138. `):[];var d=f.length*s,h=gn(e.height,d);if(d>h&&u){var p=Math.floor(h/s);f=f.slice(0,p)}if(t&&i&&c!=null)for(var v=Eie(c,a,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),g=0;g<f.length;g++)f[g]=Mie(f[g],v);for(var y=h,m=0,g=0;g<f.length;g++)m=Math.max(Ho(f[g],a),m);c==null&&(c=m);var S=m;return r&&(y+=r[0]+r[2],S+=r[1]+r[3],c+=r[1]+r[3]),l&&(S=c),{lines:f,height:h,outerWidth:S,outerHeight:y,lineHeight:s,calculatedLineHeight:o,contentWidth:m,contentHeight:d,width:c}}var vSt=function(){function t(){}return t}(),Qz=function(){function t(e){this.tokens=[],e&&(this.tokens=e)}return t}(),gSt=function(){function t(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]}return t}();function ySt(t,e){var n=new gSt;if(t!=null&&(t+=""),!t)return n;for(var r=e.width,a=e.height,i=e.overflow,o=(i==="break"||i==="breakAll")&&r!=null?{width:r,accumWidth:0,breakAll:i==="breakAll"}:null,s=qD.lastIndex=0,l;(l=qD.exec(t))!=null;){var u=l.index;u>s&&ZD(n,t.substring(s,u),e,o),ZD(n,l[2],e,o,l[1]),s=qD.lastIndex}s<t.length&&ZD(n,t.substring(s,t.length),e,o);var c=[],f=0,d=0,h=e.padding,p=i==="truncate",v=e.lineOverflow==="truncate";function g(W,V,z){W.width=V,W.lineHeight=z,f+=z,d=Math.max(d,V)}e:for(var y=0;y<n.lines.length;y++){for(var m=n.lines[y],S=0,w=0,C=0;C<m.tokens.length;C++){var _=m.tokens[C],x=_.styleName&&e.rich[_.styleName]||{},T=_.textPadding=x.padding,M=T?T[1]+T[3]:0,E=_.font=x.font||e.font;_.contentHeight=iE(E);var A=gn(x.height,_.contentHeight);if(_.innerHeight=A,T&&(A+=T[0]+T[2]),_.height=A,_.lineHeight=hl(x.lineHeight,e.lineHeight,A),_.align=x&&x.align||e.align,_.verticalAlign=x&&x.verticalAlign||"middle",v&&a!=null&&f+_.lineHeight>a){C>0?(m.tokens=m.tokens.slice(0,C),g(m,w,S),n.lines=n.lines.slice(0,y+1)):n.lines=n.lines.slice(0,y);break e}var k=x.width,L=k==null||k==="auto";if(typeof k=="string"&&k.charAt(k.length-1)==="%")_.percentWidth=k,c.push(_),_.contentWidth=Ho(_.text,E);else{if(L){var I=x.backgroundColor,P=I&&I.image;P&&(P=dSt(P),lE(P)&&(_.width=Math.max(_.width,P.width*A/P.height)))}var F=p&&r!=null?r-w:null;F!=null&&F<_.width?!L||F<M?(_.text="",_.width=_.contentWidth=0):(_.text=Tie(_.text,F-M,E,e.ellipsis,{minChar:e.truncateMinChar}),_.width=_.contentWidth=Ho(_.text,E)):_.contentWidth=Ho(_.text,E)}_.width+=M,w+=_.width,x&&(S=Math.max(S,_.lineHeight))}g(m,w,S)}n.outerWidth=n.width=gn(r,d),n.outerHeight=n.height=gn(a,f),n.contentHeight=f,n.contentWidth=d,h&&(n.outerWidth+=h[1]+h[3],n.outerHeight+=h[0]+h[2]);for(var y=0;y<c.length;y++){var _=c[y],$=_.percentWidth;_.width=parseInt($,10)/100*n.width}return n}function ZD(t,e,n,r,a){var i=e==="",o=a&&n.rich[a]||{},s=t.lines,l=o.font||n.font,u=!1,c,f;if(r){var d=o.padding,h=d?d[1]+d[3]:0;if(o.width!=null&&o.width!=="auto"){var p=Sl(o.width,r.width)+h;s.length>0&&p+r.accumWidth>r.width&&(c=e.split(`
  1139. `),u=!0),r.accumWidth=p}else{var v=Die(e,l,r.width,r.breakAll,r.accumWidth);r.accumWidth=v.accumWidth+h,f=v.linesWidths,c=v.lines}}else c=e.split(`
  1140. `);for(var g=0;g<c.length;g++){var y=c[g],m=new vSt;if(m.styleName=a,m.text=y,m.isLineHolder=!y&&!i,typeof o.width=="number"?m.width=o.width:m.width=f?f[g]:Ho(y,l),!g&&!u){var S=(s[s.length-1]||(s[0]=new Qz)).tokens,w=S.length;w===1&&S[0].isLineHolder?S[0]=m:(y||!w||i)&&S.push(m)}else s.push(new Qz([m]))}}function mSt(t){var e=t.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var bSt=Ds(",&?/;] ".split(""),function(t,e){return t[e]=!0,t},{});function SSt(t){return mSt(t)?!!bSt[t]:!0}function Die(t,e,n,r,a){for(var i=[],o=[],s="",l="",u=0,c=0,f=0;f<t.length;f++){var d=t.charAt(f);if(d===`
  1141. `){l&&(s+=l,c+=u),i.push(s),o.push(c),s="",l="",u=0,c=0;continue}var h=Ho(d,e),p=r?!1:!SSt(d);if(i.length?c+h>n:a+c+h>n){c?(s||l)&&(p?(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)):p?(i.push(l),o.push(u),l=d,u=h):(i.push(d),o.push(h));continue}c+=h,p?(l+=d,u+=h):(l&&(s+=l,l="",u=0),s+=d)}return!i.length&&!s&&(s=t,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 CO="__zr_style_"+Math.round(Math.random()*10),ap={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},uE={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};ap[CO]=!0;var Jz=["z","z2","invisible"],wSt=["invisible"],xSt=function(t){Fe(e,t);function e(n){return t.call(this,n)||this}return e.prototype._init=function(n){for(var r=Dn(n),a=0;a<r.length;a++){var i=r[a];i==="style"?this.useStyle(n[i]):t.prototype.attrKV.call(this,i,n[i])}this.style||this.useStyle({})},e.prototype.beforeBrush=function(){},e.prototype.afterBrush=function(){},e.prototype.innerBeforeBrush=function(){},e.prototype.innerAfterBrush=function(){},e.prototype.shouldBePainted=function(n,r,a,i){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&_St(this,n,r)||o&&!o[0]&&!o[3])return!1;if(a&&this.__clipPaths){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(i&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},e.prototype.contain=function(n,r){return this.rectContain(n,r)},e.prototype.traverse=function(n,r){n.call(r,this)},e.prototype.rectContain=function(n,r){var a=this.transformCoordToLocal(n,r),i=this.getBoundingRect();return i.contain(a[0],a[1])},e.prototype.getPaintRect=function(){var n=this._paintRect;if(!this._paintRect||this.__dirty){var r=this.transform,a=this.getBoundingRect(),i=this.style,o=i.shadowBlur||0,s=i.shadowOffsetX||0,l=i.shadowOffsetY||0;n=this._paintRect||(this._paintRect=new yn(0,0,0,0)),r?yn.applyTransform(n,a,r):n.copy(a),(o||s||l)&&(n.width+=o*2+Math.abs(s),n.height+=o*2+Math.abs(l),n.x=Math.min(n.x,n.x+s-o),n.y=Math.min(n.y,n.y+l-o));var u=this.dirtyRectTolerance;n.isZero()||(n.x=Math.floor(n.x-u),n.y=Math.floor(n.y-u),n.width=Math.ceil(n.width+1+u*2),n.height=Math.ceil(n.height+1+u*2))}return n},e.prototype.setPrevPaintRect=function(n){n?(this._prevPaintRect=this._prevPaintRect||new yn(0,0,0,0),this._prevPaintRect.copy(n)):this._prevPaintRect=null},e.prototype.getPrevPaintRect=function(){return this._prevPaintRect},e.prototype.animateStyle=function(n){return this.animate("style",n)},e.prototype.updateDuringAnimation=function(n){n==="style"?this.dirtyStyle():this.markRedraw()},e.prototype.attrKV=function(n,r){n!=="style"?t.prototype.attrKV.call(this,n,r):this.style?this.setStyle(r):this.useStyle(r)},e.prototype.setStyle=function(n,r){return typeof n=="string"?this.style[n]=r:et(this.style,n),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(n){n||this.markRedraw(),this.__dirty|=rm,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(this.__dirty&rm)},e.prototype.styleUpdated=function(){this.__dirty&=~rm},e.prototype.createStyle=function(n){return Qb(ap,n)},e.prototype.useStyle=function(n){n[CO]||(n=this.createStyle(n)),this.__inHover?this.__hoverStyle=n:this.style=n,this.dirtyStyle()},e.prototype.isStyleObject=function(n){return n[CO]},e.prototype._innerSaveToNormal=function(n){t.prototype._innerSaveToNormal.call(this,n);var r=this._normalState;n.style&&!r.style&&(r.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(n,r,Jz)},e.prototype._applyStateObj=function(n,r,a,i,o,s){t.prototype._applyStateObj.call(this,n,r,a,i,o,s);var l=!(r&&i),u;if(r&&r.style?o?i?u=r.style:(u=this._mergeStyle(this.createStyle(),a.style),this._mergeStyle(u,r.style)):(u=this._mergeStyle(this.createStyle(),i?this.style:a.style),this._mergeStyle(u,r.style)):l&&(u=a.style),u)if(o){var c=this.style;if(this.style=this.createStyle(l?{}:c),l)for(var f=Dn(c),d=0;d<f.length;d++){var h=f[d];h in u&&(u[h]=u[h],this.style[h]=c[h])}for(var p=Dn(u),d=0;d<p.length;d++){var h=p[d];this.style[h]=this.style[h]}this._transitionState(n,{style:u},s,this.getAnimationStyleProps())}else this.useStyle(u);for(var v=this.__inHover?wSt:Jz,d=0;d<v.length;d++){var h=v[d];r&&r[h]!=null?this[h]=r[h]:l&&a[h]!=null&&(this[h]=a[h])}},e.prototype._mergeStates=function(n){for(var r=t.prototype._mergeStates.call(this,n),a,i=0;i<n.length;i++){var o=n[i];o.style&&(a=a||{},this._mergeStyle(a,o.style))}return a&&(r.style=a),r},e.prototype._mergeStyle=function(n,r){return et(n,r),n},e.prototype.getAnimationStyleProps=function(){return uE},e.initDefaultProps=function(){var n=e.prototype;n.type="displayable",n.invisible=!1,n.z=0,n.z2=0,n.zlevel=0,n.culling=!1,n.cursor="pointer",n.rectHover=!1,n.incremental=!1,n._rect=null,n.dirtyRectTolerance=0,n.__dirty=Bo|rm}(),e}(lie),QD=new yn(0,0,0,0),JD=new yn(0,0,0,0);function _St(t,e,n){return QD.copy(t.getBoundingRect()),t.transform&&QD.applyTransform(t.transform),JD.width=e,JD.height=n,!QD.intersect(JD)}const As=xSt;var So=Math.min,wo=Math.max,eA=Math.sin,tA=Math.cos,Gd=Math.PI*2,Fw=cd(),zw=cd(),Uw=cd();function cE(t,e,n){if(t.length!==0){for(var r=t[0],a=r[0],i=r[0],o=r[1],s=r[1],l=1;l<t.length;l++)r=t[l],a=So(a,r[0]),i=wo(i,r[0]),o=So(o,r[1]),s=wo(s,r[1]);e[0]=a,e[1]=o,n[0]=i,n[1]=s}}function eU(t,e,n,r,a,i){a[0]=So(t,n),a[1]=So(e,r),i[0]=wo(t,n),i[1]=wo(e,r)}var tU=[],nU=[];function CSt(t,e,n,r,a,i,o,s,l,u){var c=Wae,f=za,d=c(t,n,a,o,tU);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var h=0;h<d;h++){var p=f(t,n,a,o,tU[h]);l[0]=So(p,l[0]),u[0]=wo(p,u[0])}d=c(e,r,i,s,nU);for(var h=0;h<d;h++){var v=f(e,r,i,s,nU[h]);l[1]=So(v,l[1]),u[1]=wo(v,u[1])}l[0]=So(t,l[0]),u[0]=wo(t,u[0]),l[0]=So(o,l[0]),u[0]=wo(o,u[0]),l[1]=So(e,l[1]),u[1]=wo(e,u[1]),l[1]=So(s,l[1]),u[1]=wo(s,u[1])}function TSt(t,e,n,r,a,i,o,s){var l=Kae,u=Ja,c=wo(So(l(t,n,a),1),0),f=wo(So(l(e,r,i),1),0),d=u(t,n,a,c),h=u(e,r,i,f);o[0]=So(t,a,d),o[1]=So(e,i,h),s[0]=wo(t,a,d),s[1]=wo(e,i,h)}function ESt(t,e,n,r,a,i,o,s,l){var u=qu,c=Zu,f=Math.abs(a-i);if(f%Gd<1e-4&&f>1e-4){s[0]=t-n,s[1]=e-r,l[0]=t+n,l[1]=e+r;return}if(Fw[0]=tA(a)*n+t,Fw[1]=eA(a)*r+e,zw[0]=tA(i)*n+t,zw[1]=eA(i)*r+e,u(s,Fw,zw),c(l,Fw,zw),a=a%Gd,a<0&&(a=a+Gd),i=i%Gd,i<0&&(i=i+Gd),a>i&&!o?i+=Gd:a<i&&o&&(a+=Gd),o){var d=i;i=a,a=d}for(var h=0;h<i;h+=Math.PI/2)h>a&&(Uw[0]=tA(h)*n+t,Uw[1]=eA(h)*r+e,u(s,Uw,s),c(l,Uw,l))}var Tr={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Hd=[],Wd=[],Il=[],Gc=[],Bl=[],$l=[],nA=Math.min,rA=Math.max,jd=Math.cos,Kd=Math.sin,Ou=Math.abs,TO=Math.PI,af=TO*2,aA=typeof Float32Array<"u",wy=[];function iA(t){var e=Math.round(t/TO*1e8)/1e8;return e%2*TO}function Aie(t,e){var n=iA(t[0]);n<0&&(n+=af);var r=n-t[0],a=t[1];a+=r,!e&&a-n>=af?a=n+af:e&&n-a>=af?a=n-af:!e&&n>a?a=n+(af-iA(n-a)):e&&n<a&&(a=n-(af-iA(a-n))),t[0]=n,t[1]=a}var MSt=function(){function t(e){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,e&&(this._saveData=!1),this._saveData&&(this.data=[])}return t.prototype.increaseVersion=function(){this._version++},t.prototype.getVersion=function(){return this._version},t.prototype.setScale=function(e,n,r){r=r||0,r>0&&(this._ux=Ou(r/J2/e)||0,this._uy=Ou(r/J2/n)||0)},t.prototype.setDPR=function(e){this.dpr=e},t.prototype.setContext=function(e){this._ctx=e},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(e,n){return this._drawPendingPt(),this.addData(Tr.M,e,n),this._ctx&&this._ctx.moveTo(e,n),this._x0=e,this._y0=n,this._xi=e,this._yi=n,this},t.prototype.lineTo=function(e,n){var r=Ou(e-this._xi),a=Ou(n-this._yi),i=r>this._ux||a>this._uy;if(this.addData(Tr.L,e,n),this._ctx&&i&&this._ctx.lineTo(e,n),i)this._xi=e,this._yi=n,this._pendingPtDist=0;else{var o=r*r+a*a;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=n,this._pendingPtDist=o)}return this},t.prototype.bezierCurveTo=function(e,n,r,a,i,o){return this._drawPendingPt(),this.addData(Tr.C,e,n,r,a,i,o),this._ctx&&this._ctx.bezierCurveTo(e,n,r,a,i,o),this._xi=i,this._yi=o,this},t.prototype.quadraticCurveTo=function(e,n,r,a){return this._drawPendingPt(),this.addData(Tr.Q,e,n,r,a),this._ctx&&this._ctx.quadraticCurveTo(e,n,r,a),this._xi=r,this._yi=a,this},t.prototype.arc=function(e,n,r,a,i,o){this._drawPendingPt(),wy[0]=a,wy[1]=i,Aie(wy,o),a=wy[0],i=wy[1];var s=i-a;return this.addData(Tr.A,e,n,r,r,a,s,0,o?0:1),this._ctx&&this._ctx.arc(e,n,r,a,i,o),this._xi=jd(i)*r+e,this._yi=Kd(i)*r+n,this},t.prototype.arcTo=function(e,n,r,a,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,n,r,a,i),this},t.prototype.rect=function(e,n,r,a){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,n,r,a),this.addData(Tr.R,e,n,r,a),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(Tr.Z);var e=this._ctx,n=this._x0,r=this._y0;return e&&e.closePath(),this._xi=n,this._yi=r,this},t.prototype.fill=function(e){e&&e.fill(),this.toStatic()},t.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(e){var n=e.length;!(this.data&&this.data.length===n)&&aA&&(this.data=new Float32Array(n));for(var r=0;r<n;r++)this.data[r]=e[r];this._len=n},t.prototype.appendPath=function(e){e instanceof Array||(e=[e]);for(var n=e.length,r=0,a=this._len,i=0;i<n;i++)r+=e[i].len();aA&&this.data instanceof Float32Array&&(this.data=new Float32Array(a+r));for(var i=0;i<n;i++)for(var o=e[i].data,s=0;s<o.length;s++)this.data[a++]=o[s];this._len=a},t.prototype.addData=function(e,n,r,a,i,o,s,l,u){if(this._saveData){var c=this.data;this._len+arguments.length>c.length&&(this._expandData(),c=this.data);for(var f=0;f<arguments.length;f++)c[this._len++]=arguments[f]}},t.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],n=0;n<this._len;n++)e[n]=this.data[n];this.data=e}},t.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,aA&&this._len>11&&(this.data=new Float32Array(e)))}},t.prototype.getBoundingRect=function(){Il[0]=Il[1]=Bl[0]=Bl[1]=Number.MAX_VALUE,Gc[0]=Gc[1]=$l[0]=$l[1]=-Number.MAX_VALUE;var e=this.data,n=0,r=0,a=0,i=0,o;for(o=0;o<this._len;){var s=e[o++],l=o===1;switch(l&&(n=e[o],r=e[o+1],a=n,i=r),s){case Tr.M:n=a=e[o++],r=i=e[o++],Bl[0]=a,Bl[1]=i,$l[0]=a,$l[1]=i;break;case Tr.L:eU(n,r,e[o],e[o+1],Bl,$l),n=e[o++],r=e[o++];break;case Tr.C:CSt(n,r,e[o++],e[o++],e[o++],e[o++],e[o],e[o+1],Bl,$l),n=e[o++],r=e[o++];break;case Tr.Q:TSt(n,r,e[o++],e[o++],e[o],e[o+1],Bl,$l),n=e[o++],r=e[o++];break;case Tr.A:var u=e[o++],c=e[o++],f=e[o++],d=e[o++],h=e[o++],p=e[o++]+h;o+=1;var v=!e[o++];l&&(a=jd(h)*f+u,i=Kd(h)*d+c),ESt(u,c,f,d,h,p,v,Bl,$l),n=jd(p)*f+u,r=Kd(p)*d+c;break;case Tr.R:a=n=e[o++],i=r=e[o++];var g=e[o++],y=e[o++];eU(a,i,a+g,i+y,Bl,$l);break;case Tr.Z:n=a,r=i;break}qu(Il,Il,Bl),Zu(Gc,Gc,$l)}return o===0&&(Il[0]=Il[1]=Gc[0]=Gc[1]=0),new yn(Il[0],Il[1],Gc[0]-Il[0],Gc[1]-Il[1])},t.prototype._calculateLength=function(){var e=this.data,n=this._len,r=this._ux,a=this._uy,i=0,o=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,c=0,f=0,d=0;d<n;){var h=e[d++],p=d===1;p&&(i=e[d],o=e[d+1],s=i,l=o);var v=-1;switch(h){case Tr.M:i=s=e[d++],o=l=e[d++];break;case Tr.L:{var g=e[d++],y=e[d++],m=g-i,S=y-o;(Ou(m)>r||Ou(S)>a||d===n-1)&&(v=Math.sqrt(m*m+S*S),i=g,o=y);break}case Tr.C:{var w=e[d++],C=e[d++],g=e[d++],y=e[d++],_=e[d++],x=e[d++];v=I1t(i,o,w,C,g,y,_,x,10),i=_,o=x;break}case Tr.Q:{var w=e[d++],C=e[d++],g=e[d++],y=e[d++];v=$1t(i,o,w,C,g,y,10),i=g,o=y;break}case Tr.A:var T=e[d++],M=e[d++],E=e[d++],A=e[d++],k=e[d++],L=e[d++],I=L+k;d+=1,e[d++],p&&(s=jd(k)*E+T,l=Kd(k)*A+M),v=rA(E,A)*nA(af,Math.abs(L)),i=jd(I)*E+T,o=Kd(I)*A+M;break;case Tr.R:{s=i=e[d++],l=o=e[d++];var P=e[d++],F=e[d++];v=P*2+F*2;break}case Tr.Z:{var m=s-i,S=l-o;v=Math.sqrt(m*m+S*S),i=s,o=l;break}}v>=0&&(u[f++]=v,c+=v)}return this._pathLen=c,c},t.prototype.rebuildPath=function(e,n){var r=this.data,a=this._ux,i=this._uy,o=this._len,s,l,u,c,f,d,h=n<1,p,v,g=0,y=0,m,S=0,w,C;if(!(h&&(this._pathSegLen||this._calculateLength(),p=this._pathSegLen,v=this._pathLen,m=n*v,!m)))e:for(var _=0;_<o;){var x=r[_++],T=_===1;switch(T&&(u=r[_],c=r[_+1],s=u,l=c),x!==Tr.L&&S>0&&(e.lineTo(w,C),S=0),x){case Tr.M:s=u=r[_++],l=c=r[_++],e.moveTo(u,c);break;case Tr.L:{f=r[_++],d=r[_++];var M=Ou(f-u),E=Ou(d-c);if(M>a||E>i){if(h){var A=p[y++];if(g+A>m){var k=(m-g)/A;e.lineTo(u*(1-k)+f*k,c*(1-k)+d*k);break e}g+=A}e.lineTo(f,d),u=f,c=d,S=0}else{var L=M*M+E*E;L>S&&(w=f,C=d,S=L)}break}case Tr.C:{var I=r[_++],P=r[_++],F=r[_++],$=r[_++],W=r[_++],V=r[_++];if(h){var A=p[y++];if(g+A>m){var k=(m-g)/A;Xf(u,I,F,W,k,Hd),Xf(c,P,$,V,k,Wd),e.bezierCurveTo(Hd[1],Wd[1],Hd[2],Wd[2],Hd[3],Wd[3]);break e}g+=A}e.bezierCurveTo(I,P,F,$,W,V),u=W,c=V;break}case Tr.Q:{var I=r[_++],P=r[_++],F=r[_++],$=r[_++];if(h){var A=p[y++];if(g+A>m){var k=(m-g)/A;U1(u,I,F,k,Hd),U1(c,P,$,k,Wd),e.quadraticCurveTo(Hd[1],Wd[1],Hd[2],Wd[2]);break e}g+=A}e.quadraticCurveTo(I,P,F,$),u=F,c=$;break}case Tr.A:var z=r[_++],K=r[_++],Z=r[_++],oe=r[_++],ge=r[_++],ie=r[_++],Q=r[_++],ce=!r[_++],se=Z>oe?Z:oe,me=Ou(Z-oe)>.001,ve=ge+ie,he=!1;if(h){var A=p[y++];g+A>m&&(ve=ge+ie*(m-g)/A,he=!0),g+=A}if(me&&e.ellipse?e.ellipse(z,K,Z,oe,Q,ge,ve,ce):e.arc(z,K,se,ge,ve,ce),he)break e;T&&(s=jd(ge)*Z+z,l=Kd(ge)*oe+K),u=jd(ve)*Z+z,c=Kd(ve)*oe+K;break;case Tr.R:s=u=r[_],l=c=r[_+1],f=r[_++],d=r[_++];var ee=r[_++],ue=r[_++];if(h){var A=p[y++];if(g+A>m){var fe=m-g;e.moveTo(f,d),e.lineTo(f+nA(fe,ee),d),fe-=ee,fe>0&&e.lineTo(f+ee,d+nA(fe,ue)),fe-=ue,fe>0&&e.lineTo(f+rA(ee-fe,0),d+ue),fe-=ee,fe>0&&e.lineTo(f,d+rA(ue-fe,0));break e}g+=A}e.rect(f,d,ee,ue);break;case Tr.Z:if(h){var A=p[y++];if(g+A>m){var k=(m-g)/A;e.lineTo(u*(1-k)+s*k,c*(1-k)+l*k);break e}g+=A}e.closePath(),u=s,c=l}}},t.prototype.clone=function(){var e=new t,n=this.data;return e.data=n.slice?n.slice():Array.prototype.slice.call(n),e._len=this._len,e},t.CMD=Tr,t.initDefaultProps=function(){var e=t.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),t}();const mu=MSt;function ff(t,e,n,r,a,i,o){if(a===0)return!1;var s=a,l=0,u=t;if(o>e+s&&o>r+s||o<e-s&&o<r-s||i>t+s&&i>n+s||i<t-s&&i<n-s)return!1;if(t!==n)l=(e-r)/(t-n),u=(t*r-n*e)/(t-n);else return Math.abs(i-t)<=s/2;var c=l*i-o+u,f=c*c/(l*l+1);return f<=s/2*s/2}function DSt(t,e,n,r,a,i,o,s,l,u,c){if(l===0)return!1;var f=l;if(c>e+f&&c>r+f&&c>i+f&&c>s+f||c<e-f&&c<r-f&&c<i-f&&c<s-f||u>t+f&&u>n+f&&u>a+f&&u>o+f||u<t-f&&u<n-f&&u<a-f&&u<o-f)return!1;var d=jae(t,e,n,r,a,i,o,s,u,c,null);return d<=f/2}function kie(t,e,n,r,a,i,o,s,l){if(o===0)return!1;var u=o;if(l>e+u&&l>r+u&&l>i+u||l<e-u&&l<r-u&&l<i-u||s>t+u&&s>n+u&&s>a+u||s<t-u&&s<n-u&&s<a-u)return!1;var c=Yae(t,e,n,r,a,i,s,l,null);return c<=u/2}var rU=Math.PI*2;function ul(t){return t%=rU,t<0&&(t+=rU),t}var xy=Math.PI*2;function ASt(t,e,n,r,a,i,o,s,l){if(o===0)return!1;var u=o;s-=t,l-=e;var c=Math.sqrt(s*s+l*l);if(c-u>n||c+u<n)return!1;if(Math.abs(r-a)%xy<1e-4)return!0;if(i){var f=r;r=ul(a),a=ul(f)}else r=ul(r),a=ul(a);r>a&&(a+=xy);var d=Math.atan2(l,s);return d<0&&(d+=xy),d>=r&&d<=a||d+xy>=r&&d+xy<=a}function zu(t,e,n,r,a,i){if(i>e&&i>r||i<e&&i<r||r===e)return 0;var o=(i-e)/(r-e),s=r<e?1:-1;(o===1||o===0)&&(s=r<e?.5:-.5);var l=o*(n-t)+t;return l===a?1/0:l>a?s:0}var Hc=mu.CMD,Yd=Math.PI*2,kSt=1e-4;function RSt(t,e){return Math.abs(t-e)<kSt}var ji=[-1,-1,-1],ss=[-1,-1];function LSt(){var t=ss[0];ss[0]=ss[1],ss[1]=t}function OSt(t,e,n,r,a,i,o,s,l,u){if(u>e&&u>r&&u>i&&u>s||u<e&&u<r&&u<i&&u<s)return 0;var c=q2(e,r,i,s,u,ji);if(c===0)return 0;for(var f=0,d=-1,h=void 0,p=void 0,v=0;v<c;v++){var g=ji[v],y=g===0||g===1?.5:1,m=za(t,n,a,o,g);m<l||(d<0&&(d=Wae(e,r,i,s,ss),ss[1]<ss[0]&&d>1&&LSt(),h=za(e,r,i,s,ss[0]),d>1&&(p=za(e,r,i,s,ss[1]))),d===2?g<ss[0]?f+=h<e?y:-y:g<ss[1]?f+=p<h?y:-y:f+=s<p?y:-y:g<ss[0]?f+=h<e?y:-y:f+=s<h?y:-y)}return f}function VSt(t,e,n,r,a,i,o,s){if(s>e&&s>r&&s>i||s<e&&s<r&&s<i)return 0;var l=B1t(e,r,i,s,ji);if(l===0)return 0;var u=Kae(e,r,i);if(u>=0&&u<=1){for(var c=0,f=Ja(e,r,i,u),d=0;d<l;d++){var h=ji[d]===0||ji[d]===1?.5:1,p=Ja(t,n,a,ji[d]);p<o||(ji[d]<u?c+=f<e?h:-h:c+=i<f?h:-h)}return c}else{var h=ji[0]===0||ji[0]===1?.5:1,p=Ja(t,n,a,ji[0]);return p<o?0:i<e?h:-h}}function NSt(t,e,n,r,a,i,o,s){if(s-=e,s>n||s<-n)return 0;var l=Math.sqrt(n*n-s*s);ji[0]=-l,ji[1]=l;var u=Math.abs(r-a);if(u<1e-4)return 0;if(u>=Yd-1e-4){r=0,a=Yd;var c=i?1:-1;return o>=ji[0]+t&&o<=ji[1]+t?c:0}if(r>a){var f=r;r=a,a=f}r<0&&(r+=Yd,a+=Yd);for(var d=0,h=0;h<2;h++){var p=ji[h];if(p+t>o){var v=Math.atan2(s,p),c=i?1:-1;v<0&&(v=Yd+v),(v>=r&&v<=a||v+Yd>=r&&v+Yd<=a)&&(v>Math.PI/2&&v<Math.PI*1.5&&(c=-c),d+=c)}}return d}function Rie(t,e,n,r,a){for(var i=t.data,o=t.len(),s=0,l=0,u=0,c=0,f=0,d,h,p=0;p<o;){var v=i[p++],g=p===1;switch(v===Hc.M&&p>1&&(n||(s+=zu(l,u,c,f,r,a))),g&&(l=i[p],u=i[p+1],c=l,f=u),v){case Hc.M:c=i[p++],f=i[p++],l=c,u=f;break;case Hc.L:if(n){if(ff(l,u,i[p],i[p+1],e,r,a))return!0}else s+=zu(l,u,i[p],i[p+1],r,a)||0;l=i[p++],u=i[p++];break;case Hc.C:if(n){if(DSt(l,u,i[p++],i[p++],i[p++],i[p++],i[p],i[p+1],e,r,a))return!0}else s+=OSt(l,u,i[p++],i[p++],i[p++],i[p++],i[p],i[p+1],r,a)||0;l=i[p++],u=i[p++];break;case Hc.Q:if(n){if(kie(l,u,i[p++],i[p++],i[p],i[p+1],e,r,a))return!0}else s+=VSt(l,u,i[p++],i[p++],i[p],i[p+1],r,a)||0;l=i[p++],u=i[p++];break;case Hc.A:var y=i[p++],m=i[p++],S=i[p++],w=i[p++],C=i[p++],_=i[p++];p+=1;var x=!!(1-i[p++]);d=Math.cos(C)*S+y,h=Math.sin(C)*w+m,g?(c=d,f=h):s+=zu(l,u,d,h,r,a);var T=(r-y)*w/S+y;if(n){if(ASt(y,m,w,C,C+_,x,e,T,a))return!0}else s+=NSt(y,m,w,C,C+_,x,T,a);l=Math.cos(C+_)*S+y,u=Math.sin(C+_)*w+m;break;case Hc.R:c=l=i[p++],f=u=i[p++];var M=i[p++],E=i[p++];if(d=c+M,h=f+E,n){if(ff(c,f,d,f,e,r,a)||ff(d,f,d,h,e,r,a)||ff(d,h,c,h,e,r,a)||ff(c,h,c,f,e,r,a))return!0}else s+=zu(d,f,d,h,r,a),s+=zu(c,h,c,f,r,a);break;case Hc.Z:if(n){if(ff(l,u,c,f,e,r,a))return!0}else s+=zu(l,u,c,f,r,a);l=c,u=f;break}}return!n&&!RSt(u,f)&&(s+=zu(l,u,c,f,r,a)||0),s!==0}function ISt(t,e,n){return Rie(t,0,!1,e,n)}function BSt(t,e,n,r){return Rie(t,e,!0,n,r)}var tC=Xt({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},ap),$St={style:Xt({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},uE.style)},oA=gu.concat(["invisible","culling","z","z2","zlevel","parent"]),PSt=function(t){Fe(e,t);function e(n){return t.call(this,n)||this}return e.prototype.update=function(){var n=this;t.prototype.update.call(this);var r=this.style;if(r.decal){var a=this._decalEl=this._decalEl||new e;a.buildPath===e.prototype.buildPath&&(a.buildPath=function(l){n.buildPath(l,n.shape)}),a.silent=!0;var i=a.style;for(var o in r)i[o]!==r[o]&&(i[o]=r[o]);i.fill=r.fill?r.decal:null,i.decal=null,i.shadowColor=null,r.strokeFirst&&(i.stroke=null);for(var s=0;s<oA.length;++s)a[oA[s]]=this[oA[s]];a.__dirty|=Bo}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(n){var r=Dn(n);this.shape=this.getDefaultShape();var a=this.getDefaultStyle();a&&this.useStyle(a);for(var i=0;i<r.length;i++){var o=r[i],s=n[o];o==="style"?this.style?et(this.style,s):this.useStyle(s):o==="shape"?et(this.shape,s):t.prototype.attrKV.call(this,o,s)}this.style||this.useStyle({})},e.prototype.getDefaultStyle=function(){return null},e.prototype.getDefaultShape=function(){return{}},e.prototype.canBeInsideText=function(){return this.hasFill()},e.prototype.getInsideTextFill=function(){var n=this.style.fill;if(n!=="none"){if(Ot(n)){var r=W1(n,0);return r>.5?yO:r>.2?Sbt:mO}else if(n)return mO}return yO},e.prototype.getInsideTextStroke=function(n){var r=this.style.fill;if(Ot(r)){var a=this.__zr,i=!!(a&&a.isDarkMode()),o=W1(n,0)<gO;if(i===o)return r}},e.prototype.buildPath=function(n,r,a){},e.prototype.pathUpdated=function(){this.__dirty&=~Bv},e.prototype.getUpdatedPathProxy=function(n){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,n),this.path},e.prototype.createPathProxy=function(){this.path=new mu(!1)},e.prototype.hasStroke=function(){var n=this.style,r=n.stroke;return!(r==null||r==="none"||!(n.lineWidth>0))},e.prototype.hasFill=function(){var n=this.style,r=n.fill;return r!=null&&r!=="none"},e.prototype.getBoundingRect=function(){var n=this._rect,r=this.style,a=!n;if(a){var i=!1;this.path||(i=!0,this.createPathProxy());var o=this.path;(i||this.__dirty&Bv)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),n=o.getBoundingRect()}if(this._rect=n,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=n.clone());if(this.__dirty||a){s.copy(n);var l=r.strokeNoScale?this.getLineScale():1,u=r.lineWidth;if(!this.hasFill()){var c=this.strokeContainThreshold;u=Math.max(u,c??4)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return n},e.prototype.contain=function(n,r){var a=this.transformCoordToLocal(n,r),i=this.getBoundingRect(),o=this.style;if(n=a[0],r=a[1],i.contain(n,r)){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)),BSt(s,l/u,n,r)))return!0}if(this.hasFill())return ISt(s,n,r)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=Bv,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(n){return this.animate("shape",n)},e.prototype.updateDuringAnimation=function(n){n==="style"?this.dirtyStyle():n==="shape"?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(n,r){n==="shape"?this.setShape(r):t.prototype.attrKV.call(this,n,r)},e.prototype.setShape=function(n,r){var a=this.shape;return a||(a=this.shape={}),typeof n=="string"?a[n]=r:et(a,n),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&Bv)},e.prototype.createStyle=function(n){return Qb(tC,n)},e.prototype._innerSaveToNormal=function(n){t.prototype._innerSaveToNormal.call(this,n);var r=this._normalState;n.shape&&!r.shape&&(r.shape=et({},this.shape))},e.prototype._applyStateObj=function(n,r,a,i,o,s){t.prototype._applyStateObj.call(this,n,r,a,i,o,s);var l=!(r&&i),u;if(r&&r.shape?o?i?u=r.shape:(u=et({},a.shape),et(u,r.shape)):(u=et({},i?this.shape:a.shape),et(u,r.shape)):l&&(u=a.shape),u)if(o){this.shape=et({},this.shape);for(var c={},f=Dn(u),d=0;d<f.length;d++){var h=f[d];typeof u[h]=="object"?this.shape[h]=u[h]:c[h]=u[h]}this._transitionState(n,{shape:c},s)}else this.shape=u,this.dirtyShape()},e.prototype._mergeStates=function(n){for(var r=t.prototype._mergeStates.call(this,n),a,i=0;i<n.length;i++){var o=n[i];o.shape&&(a=a||{},this._mergeStyle(a,o.shape))}return a&&(r.shape=a),r},e.prototype.getAnimationStyleProps=function(){return $St},e.prototype.isZeroArea=function(){return!1},e.extend=function(n){var r=function(i){Fe(o,i);function o(s){var l=i.call(this,s)||this;return n.init&&n.init.call(l,s),l}return o.prototype.getDefaultStyle=function(){return Zt(n.style)},o.prototype.getDefaultShape=function(){return Zt(n.shape)},o}(e);for(var a in n)typeof n[a]=="function"&&(r.prototype[a]=n[a]);return r},e.initDefaultProps=function(){var n=e.prototype;n.type="path",n.strokeContainThreshold=5,n.segmentIgnoreThreshold=0,n.subPixelOptimize=!1,n.autoBatch=!1,n.__dirty=Bo|rm|Bv}(),e}(As);const Cn=PSt;var FSt=Xt({strokeFirst:!0,font:Yf,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},tC),Lie=function(t){Fe(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.hasStroke=function(){var n=this.style,r=n.stroke;return r!=null&&r!=="none"&&n.lineWidth>0},e.prototype.hasFill=function(){var n=this.style,r=n.fill;return r!=null&&r!=="none"},e.prototype.createStyle=function(n){return Qb(FSt,n)},e.prototype.setBoundingRect=function(n){this._rect=n},e.prototype.getBoundingRect=function(){var n=this.style;if(!this._rect){var r=n.text;r!=null?r+="":r="";var a=tS(r,n.font,n.textAlign,n.textBaseline);if(a.x+=n.x||0,a.y+=n.y||0,this.hasStroke()){var i=n.lineWidth;a.x-=i/2,a.y-=i/2,a.width+=i,a.height+=i}this._rect=a}return this._rect},e.initDefaultProps=function(){var n=e.prototype;n.dirtyRectTolerance=10}(),e}(As);Lie.prototype.type="tspan";const X1=Lie;var zSt=Xt({x:0,y:0},ap),USt={style:Xt({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},uE.style)};function GSt(t){return!!(t&&typeof t!="string"&&t.width&&t.height)}var Oie=function(t){Fe(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.createStyle=function(n){return Qb(zSt,n)},e.prototype._getSize=function(n){var r=this.style,a=r[n];if(a!=null)return a;var i=GSt(r.image)?r.image:this.__image;if(!i)return 0;var o=n==="width"?"height":"width",s=r[o];return s==null?i[n]:i[n]/i[o]*s},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return USt},e.prototype.getBoundingRect=function(){var n=this.style;return this._rect||(this._rect=new yn(n.x||0,n.y||0,this.getWidth(),this.getHeight())),this._rect},e}(As);Oie.prototype.type="image";const si=Oie;function HSt(t,e){var n=e.x,r=e.y,a=e.width,i=e.height,o=e.r,s,l,u,c;a<0&&(n=n+a,a=-a),i<0&&(r=r+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),t.moveTo(n+s,r),t.lineTo(n+a-l,r),l!==0&&t.arc(n+a-l,r+l,l,-Math.PI/2,0),t.lineTo(n+a,r+i-u),u!==0&&t.arc(n+a-u,r+i-u,u,0,Math.PI/2),t.lineTo(n+c,r+i),c!==0&&t.arc(n+c,r+i-c,c,Math.PI/2,Math.PI),t.lineTo(n,r+s),s!==0&&t.arc(n+s,r+s,s,Math.PI,Math.PI*1.5)}var Zv=Math.round;function Vie(t,e,n){if(e){var r=e.x1,a=e.x2,i=e.y1,o=e.y2;t.x1=r,t.x2=a,t.y1=i,t.y2=o;var s=n&&n.lineWidth;return s&&(Zv(r*2)===Zv(a*2)&&(t.x1=t.x2=Fh(r,s,!0)),Zv(i*2)===Zv(o*2)&&(t.y1=t.y2=Fh(i,s,!0))),t}}function Nie(t,e,n){if(e){var r=e.x,a=e.y,i=e.width,o=e.height;t.x=r,t.y=a,t.width=i,t.height=o;var s=n&&n.lineWidth;return s&&(t.x=Fh(r,s,!0),t.y=Fh(a,s,!0),t.width=Math.max(Fh(r+i,s,!1)-t.x,i===0?0:1),t.height=Math.max(Fh(a+o,s,!1)-t.y,o===0?0:1)),t}}function Fh(t,e,n){if(!e)return t;var r=Zv(t*2);return(r+Zv(e))%2===0?r/2:(r+(n?1:-1))/2}var WSt=function(){function t(){this.x=0,this.y=0,this.width=0,this.height=0}return t}(),jSt={},Iie=function(t){Fe(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultShape=function(){return new WSt},e.prototype.buildPath=function(n,r){var a,i,o,s;if(this.subPixelOptimize){var l=Nie(jSt,r,this.style);a=l.x,i=l.y,o=l.width,s=l.height,l.r=r.r,r=l}else a=r.x,i=r.y,o=r.width,s=r.height;r.r?HSt(n,r):n.rect(a,i,o,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(Cn);Iie.prototype.type="rect";const $n=Iie;var aU={fill:"#000"},iU=2,KSt={style:Xt({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},uE.style)},Bie=function(t){Fe(e,t);function e(n){var r=t.call(this)||this;return r.type="text",r._children=[],r._defaultStyle=aU,r.attr(n),r}return e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){t.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var n=0;n<this._children.length;n++){var r=this._children[n];r.zlevel=this.zlevel,r.z=this.z,r.z2=this.z2,r.culling=this.culling,r.cursor=this.cursor,r.invisible=this.invisible}},e.prototype.updateTransform=function(){var n=this.innerTransformable;n?(n.updateTransform(),n.transform&&(this.transform=n.transform)):t.prototype.updateTransform.call(this)},e.prototype.getLocalTransform=function(n){var r=this.innerTransformable;return r?r.getLocalTransform(n):t.prototype.getLocalTransform.call(this,n)},e.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),t.prototype.getComputedTransform.call(this)},e.prototype._updateSubTexts=function(){this._childCursor=0,qSt(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},e.prototype.addSelfToZr=function(n){t.prototype.addSelfToZr.call(this,n);for(var r=0;r<this._children.length;r++)this._children[r].__zr=n},e.prototype.removeSelfFromZr=function(n){t.prototype.removeSelfFromZr.call(this,n);for(var r=0;r<this._children.length;r++)this._children[r].__zr=null},e.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var n=new yn(0,0,0,0),r=this._children,a=[],i=null,o=0;o<r.length;o++){var s=r[o],l=s.getBoundingRect(),u=s.getLocalTransform(a);u?(n.copy(l),n.applyTransform(u),i=i||n.clone(),i.union(n)):(i=i||l.clone(),i.union(l))}this._rect=i||n}return this._rect},e.prototype.setDefaultTextStyle=function(n){this._defaultStyle=n||aU},e.prototype.setTextContent=function(n){},e.prototype._mergeStyle=function(n,r){if(!r)return n;var a=r.rich,i=n.rich||a&&{};return et(n,r),a&&i?(this._mergeRich(i,a),n.rich=i):i&&(n.rich=i),n},e.prototype._mergeRich=function(n,r){for(var a=Dn(r),i=0;i<a.length;i++){var o=a[i];n[o]=n[o]||{},et(n[o],r[o])}},e.prototype.getAnimationStyleProps=function(){return KSt},e.prototype._getOrCreateChild=function(n){var r=this._children[this._childCursor];return(!r||!(r instanceof n))&&(r=new n),this._children[this._childCursor++]=r,r.__zr=this.__zr,r.parent=this,r},e.prototype._updatePlainTexts=function(){var n=this.style,r=n.font||Yf,a=n.padding,i=dU(n),o=pSt(i,n),s=sA(n),l=!!n.backgroundColor,u=o.outerHeight,c=o.outerWidth,f=o.contentWidth,d=o.lines,h=o.lineHeight,p=this._defaultStyle,v=n.x||0,g=n.y||0,y=n.align||p.align||"left",m=n.verticalAlign||p.verticalAlign||"top",S=v,w=$v(g,o.contentHeight,m);if(s||a){var C=im(v,c,y),_=$v(g,u,m);s&&this._renderBackground(n,n,C,_,c,u)}w+=h/2,a&&(S=fU(v,y,a),m==="top"?w+=a[0]:m==="bottom"&&(w-=a[2]));for(var x=0,T=!1,M=cU("fill"in n?n.fill:(T=!0,p.fill)),E=uU("stroke"in n?n.stroke:!l&&(!p.autoStroke||T)?(x=iU,p.stroke):null),A=n.textShadowBlur>0,k=n.width!=null&&(n.overflow==="truncate"||n.overflow==="break"||n.overflow==="breakAll"),L=o.calculatedLineHeight,I=0;I<d.length;I++){var P=this._getOrCreateChild(X1),F=P.createStyle();P.useStyle(F),F.text=d[I],F.x=S,F.y=w,y&&(F.textAlign=y),F.textBaseline="middle",F.opacity=n.opacity,F.strokeFirst=!0,A&&(F.shadowBlur=n.textShadowBlur||0,F.shadowColor=n.textShadowColor||"transparent",F.shadowOffsetX=n.textShadowOffsetX||0,F.shadowOffsetY=n.textShadowOffsetY||0),F.stroke=E,F.fill=M,E&&(F.lineWidth=n.lineWidth||x,F.lineDash=n.lineDash,F.lineDashOffset=n.lineDashOffset||0),F.font=r,sU(F,n),w+=h,k&&P.setBoundingRect(new yn(im(F.x,n.width,F.textAlign),$v(F.y,L,F.textBaseline),f,L))}},e.prototype._updateRichTexts=function(){var n=this.style,r=dU(n),a=ySt(r,n),i=a.width,o=a.outerWidth,s=a.outerHeight,l=n.padding,u=n.x||0,c=n.y||0,f=this._defaultStyle,d=n.align||f.align,h=n.verticalAlign||f.verticalAlign,p=im(u,o,d),v=$v(c,s,h),g=p,y=v;l&&(g+=l[3],y+=l[0]);var m=g+i;sA(n)&&this._renderBackground(n,n,p,v,o,s);for(var S=!!n.backgroundColor,w=0;w<a.lines.length;w++){for(var C=a.lines[w],_=C.tokens,x=_.length,T=C.lineHeight,M=C.width,E=0,A=g,k=m,L=x-1,I=void 0;E<x&&(I=_[E],!I.align||I.align==="left");)this._placeToken(I,n,T,y,A,"left",S),M-=I.width,A+=I.width,E++;for(;L>=0&&(I=_[L],I.align==="right");)this._placeToken(I,n,T,y,k,"right",S),M-=I.width,k-=I.width,L--;for(A+=(i-(A-g)-(m-k)-M)/2;E<=L;)I=_[E],this._placeToken(I,n,T,y,A+I.width/2,"center",S),A+=I.width,E++;y+=T}},e.prototype._placeToken=function(n,r,a,i,o,s,l){var u=r.rich[n.styleName]||{};u.text=n.text;var c=n.verticalAlign,f=i+a/2;c==="top"?f=i+n.height/2:c==="bottom"&&(f=i+a-n.height/2);var d=!n.isLineHolder&&sA(u);d&&this._renderBackground(u,r,s==="right"?o-n.width:s==="center"?o-n.width/2:o,f-n.height/2,n.width,n.height);var h=!!u.backgroundColor,p=n.textPadding;p&&(o=fU(o,s,p),f-=n.height/2-p[0]-n.innerHeight/2);var v=this._getOrCreateChild(X1),g=v.createStyle();v.useStyle(g);var y=this._defaultStyle,m=!1,S=0,w=cU("fill"in u?u.fill:"fill"in r?r.fill:(m=!0,y.fill)),C=uU("stroke"in u?u.stroke:"stroke"in r?r.stroke:!h&&!l&&(!y.autoStroke||m)?(S=iU,y.stroke):null),_=u.textShadowBlur>0||r.textShadowBlur>0;g.text=n.text,g.x=o,g.y=f,_&&(g.shadowBlur=u.textShadowBlur||r.textShadowBlur||0,g.shadowColor=u.textShadowColor||r.textShadowColor||"transparent",g.shadowOffsetX=u.textShadowOffsetX||r.textShadowOffsetX||0,g.shadowOffsetY=u.textShadowOffsetY||r.textShadowOffsetY||0),g.textAlign=s,g.textBaseline="middle",g.font=n.font||Yf,g.opacity=hl(u.opacity,r.opacity,1),sU(g,u),C&&(g.lineWidth=hl(u.lineWidth,r.lineWidth,S),g.lineDash=gn(u.lineDash,r.lineDash),g.lineDashOffset=r.lineDashOffset||0,g.stroke=C),w&&(g.fill=w);var x=n.contentWidth,T=n.contentHeight;v.setBoundingRect(new yn(im(g.x,x,g.textAlign),$v(g.y,T,g.textBaseline),x,T))},e.prototype._renderBackground=function(n,r,a,i,o,s){var l=n.backgroundColor,u=n.borderWidth,c=n.borderColor,f=l&&l.image,d=l&&!f,h=n.borderRadius,p=this,v,g;if(d||n.lineHeight||u&&c){v=this._getOrCreateChild($n),v.useStyle(v.createStyle()),v.style.fill=null;var y=v.shape;y.x=a,y.y=i,y.width=o,y.height=s,y.r=h,v.dirtyShape()}if(d){var m=v.style;m.fill=l||null,m.fillOpacity=gn(n.fillOpacity,1)}else if(f){g=this._getOrCreateChild(si),g.onload=function(){p.dirtyStyle()};var S=g.style;S.image=l.image,S.x=a,S.y=i,S.width=o,S.height=s}if(u&&c){var m=v.style;m.lineWidth=u,m.stroke=c,m.strokeOpacity=gn(n.strokeOpacity,1),m.lineDash=n.borderDash,m.lineDashOffset=n.borderDashOffset||0,v.strokeContainThreshold=0,v.hasFill()&&v.hasStroke()&&(m.strokeFirst=!0,m.lineWidth*=2)}var w=(v||g).style;w.shadowBlur=n.shadowBlur||0,w.shadowColor=n.shadowColor||"transparent",w.shadowOffsetX=n.shadowOffsetX||0,w.shadowOffsetY=n.shadowOffsetY||0,w.opacity=hl(n.opacity,r.opacity,1)},e.makeFont=function(n){var r="";return Pie(n)&&(r=[n.fontStyle,n.fontWeight,$ie(n.fontSize),n.fontFamily||"sans-serif"].join(" ")),r&&vs(r)||n.textFont||n.font},e}(As),YSt={left:!0,right:1,center:1},XSt={top:1,bottom:1,middle:1},oU=["fontStyle","fontWeight","fontSize","fontFamily"];function $ie(t){return typeof t=="string"&&(t.indexOf("px")!==-1||t.indexOf("rem")!==-1||t.indexOf("em")!==-1)?t:isNaN(+t)?qN+"px":t+"px"}function sU(t,e){for(var n=0;n<oU.length;n++){var r=oU[n],a=e[r];a!=null&&(t[r]=a)}}function Pie(t){return t.fontSize!=null||t.fontFamily||t.fontWeight}function qSt(t){return lU(t),q(t.rich,lU),t}function lU(t){if(t){t.font=Bie.makeFont(t);var e=t.align;e==="middle"&&(e="center"),t.align=e==null||YSt[e]?e:"left";var n=t.verticalAlign;n==="center"&&(n="middle"),t.verticalAlign=n==null||XSt[n]?n:"top";var r=t.padding;r&&(t.padding=tE(t.padding))}}function uU(t,e){return t==null||e<=0||t==="transparent"||t==="none"?null:t.image||t.colorStops?"#000":t}function cU(t){return t==null||t==="none"?null:t.image||t.colorStops?"#000":t}function fU(t,e,n){return e==="right"?t-n[1]:e==="center"?t+n[3]/2-n[1]/2:t+n[3]}function dU(t){var e=t.text;return e!=null&&(e+=""),e}function sA(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}const Bn=Bie;var ln=Gn(),EO=function(t,e,n,r){if(r){var a=ln(r);a.dataIndex=n,a.dataType=e,a.seriesIndex=t,r.type==="group"&&r.traverse(function(i){var o=ln(i);o.seriesIndex=t,o.dataIndex=n,o.dataType=e})}},hU=1,pU={},Fie=Gn(),yI=Gn(),mI=0,rS=1,fE=2,oo=["emphasis","blur","select"],q1=["normal","emphasis","blur","select"],A0=10,ZSt=9,ip="highlight",N_="downplay",zm="select",I_="unselect",Um="toggleSelect";function dv(t){return t!=null&&t!=="none"}var vU=new eS(100);function gU(t){if(Ot(t)){var e=vU.get(t);return e||(e=Z2(t,-.1),vU.put(t,e)),e}else if(Zb(t)){var n=et({},t);return n.colorStops=ut(t.colorStops,function(r){return{offset:r.offset,color:Z2(r.color,-.1)}}),n}return t}function dE(t,e,n){t.onHoverStateChange&&(t.hoverState||0)!==n&&t.onHoverStateChange(e),t.hoverState=n}function zie(t){dE(t,"emphasis",fE)}function Uie(t){t.hoverState===fE&&dE(t,"normal",mI)}function bI(t){dE(t,"blur",rS)}function Gie(t){t.hoverState===rS&&dE(t,"normal",mI)}function QSt(t){t.selected=!0}function JSt(t){t.selected=!1}function yU(t,e,n){e(t,n)}function Tc(t,e,n){yU(t,e,n),t.isGroup&&t.traverse(function(r){yU(r,e,n)})}function nC(t,e){switch(e){case"emphasis":t.hoverState=fE;break;case"normal":t.hoverState=mI;break;case"blur":t.hoverState=rS;break;case"select":t.selected=!0}}function ewt(t,e,n,r){for(var a=t.style,i={},o=0;o<e.length;o++){var s=e[o],l=a[s];i[s]=l??(r&&r[s])}for(var o=0;o<t.animators.length;o++){var u=t.animators[o];u.__fromStateTransition&&u.__fromStateTransition.indexOf(n)<0&&u.targetName==="style"&&u.saveTo(i,e)}return i}function twt(t,e,n,r){var a=n&&bn(n,"select")>=0,i=!1;if(t instanceof Cn){var o=Fie(t),s=a&&o.selectFill||o.normalFill,l=a&&o.selectStroke||o.normalStroke;if(dv(s)||dv(l)){r=r||{};var u=r.style||{};u.fill==="inherit"?(i=!0,r=et({},r),u=et({},u),u.fill=s):!dv(u.fill)&&dv(s)?(i=!0,r=et({},r),u=et({},u),u.fill=gU(s)):!dv(u.stroke)&&dv(l)&&(i||(r=et({},r),u=et({},u)),u.stroke=gU(l)),r.style=u}}if(r&&r.z2==null){i||(r=et({},r));var c=t.z2EmphasisLift;r.z2=t.z2+(c??A0)}return r}function nwt(t,e,n){if(n&&n.z2==null){n=et({},n);var r=t.z2SelectLift;n.z2=t.z2+(r??ZSt)}return n}function rwt(t,e,n){var r=bn(t.currentStates,e)>=0,a=t.style.opacity,i=r?null:ewt(t,["opacity"],e,{opacity:1});n=n||{};var o=n.style||{};return o.opacity==null&&(n=et({},n),o=et({opacity:r?a:i.opacity*.1},o),n.style=o),n}function lA(t,e){var n=this.states[t];if(this.style){if(t==="emphasis")return twt(this,t,e,n);if(t==="blur")return rwt(this,t,n);if(t==="select")return nwt(this,t,n)}return n}function _p(t){t.stateProxy=lA;var e=t.getTextContent(),n=t.getTextGuideLine();e&&(e.stateProxy=lA),n&&(n.stateProxy=lA)}function mU(t,e){!Kie(t,e)&&!t.__highByOuter&&Tc(t,zie)}function bU(t,e){!Kie(t,e)&&!t.__highByOuter&&Tc(t,Uie)}function dc(t,e){t.__highByOuter|=1<<(e||0),Tc(t,zie)}function hc(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&Tc(t,Uie)}function Hie(t){Tc(t,bI)}function SI(t){Tc(t,Gie)}function Wie(t){Tc(t,QSt)}function jie(t){Tc(t,JSt)}function Kie(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function Yie(t){var e=t.getModel(),n=[],r=[];e.eachComponent(function(a,i){var o=yI(i),s=a==="series",l=s?t.getViewOfSeriesModel(i):t.getViewOfComponentModel(i);!s&&r.push(l),o.isBlured&&(l.group.traverse(function(u){Gie(u)}),s&&n.push(i)),o.isBlured=!1}),q(r,function(a){a&&a.toggleBlurSeries&&a.toggleBlurSeries(n,!1,e)})}function MO(t,e,n,r){var a=r.getModel();n=n||"coordinateSystem";function i(u,c){for(var f=0;f<c.length;f++){var d=u.getItemGraphicEl(c[f]);d&&SI(d)}}if(t!=null&&!(!e||e==="none")){var o=a.getSeriesByIndex(t),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];a.eachSeries(function(u){var c=o===u,f=u.coordinateSystem;f&&f.master&&(f=f.master);var d=f&&s?f===s:c;if(!(n==="series"&&!c||n==="coordinateSystem"&&!d||e==="series"&&c)){var h=r.getViewOfSeriesModel(u);if(h.group.traverse(function(g){g.__highByOuter&&c&&e==="self"||bI(g)}),mi(e))i(u.getData(),e);else if(qt(e))for(var p=Dn(e),v=0;v<p.length;v++)i(u.getData(p[v]),e[p[v]]);l.push(u),yI(u).isBlured=!0}}),a.eachComponent(function(u,c){if(u!=="series"){var f=r.getViewOfComponentModel(c);f&&f.toggleBlurSeries&&f.toggleBlurSeries(l,!0,a)}})}}function DO(t,e,n){if(!(t==null||e==null)){var r=n.getModel().getComponent(t,e);if(r){yI(r).isBlured=!0;var a=n.getViewOfComponentModel(r);!a||!a.focusBlurEnabled||a.group.traverse(function(i){bI(i)})}}}function awt(t,e,n){var r=t.seriesIndex,a=t.getData(e.dataType);if(a){var i=wp(a,e);i=(st(i)?i[0]:i)||0;var o=a.getItemGraphicEl(i);if(!o)for(var s=a.count(),l=0;!o&&l<s;)o=a.getItemGraphicEl(l++);if(o){var u=ln(o);MO(r,u.focus,u.blurScope,n)}else{var c=t.get(["emphasis","focus"]),f=t.get(["emphasis","blurScope"]);c!=null&&MO(r,c,f,n)}}}function wI(t,e,n,r){var a={focusSelf:!1,dispatchers:null};if(t==null||t==="series"||e==null||n==null)return a;var i=r.getModel().getComponent(t,e);if(!i)return a;var o=r.getViewOfComponentModel(i);if(!o||!o.findHighDownDispatchers)return a;for(var s=o.findHighDownDispatchers(n),l,u=0;u<s.length;u++)if(ln(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function iwt(t,e,n){var r=ln(t),a=wI(r.componentMainType,r.componentIndex,r.componentHighDownName,n),i=a.dispatchers,o=a.focusSelf;i?(o&&DO(r.componentMainType,r.componentIndex,n),q(i,function(s){return mU(s,e)})):(MO(r.seriesIndex,r.focus,r.blurScope,n),r.focus==="self"&&DO(r.componentMainType,r.componentIndex,n),mU(t,e))}function owt(t,e,n){Yie(n);var r=ln(t),a=wI(r.componentMainType,r.componentIndex,r.componentHighDownName,n).dispatchers;a?q(a,function(i){return bU(i,e)}):bU(t,e)}function swt(t,e,n){if(kO(e)){var r=e.dataType,a=t.getData(r),i=wp(a,e);st(i)||(i=[i]),t[e.type===Um?"toggleSelect":e.type===zm?"select":"unselect"](i,r)}}function SU(t){var e=t.getAllData();q(e,function(n){var r=n.data,a=n.type;r.eachItemGraphicEl(function(i,o){t.isSelected(o,a)?Wie(i):jie(i)})})}function lwt(t){var e=[];return t.eachSeries(function(n){var r=n.getAllData();q(r,function(a){a.data;var i=a.type,o=n.getSelectedDataIndices();if(o.length>0){var s={dataIndex:o,seriesIndex:n.seriesIndex};i!=null&&(s.dataType=i),e.push(s)}})}),e}function Vf(t,e,n){zh(t,!0),Tc(t,_p),AO(t,e,n)}function uwt(t){zh(t,!1)}function ua(t,e,n,r){r?uwt(t):Vf(t,e,n)}function AO(t,e,n){var r=ln(t);e!=null?(r.focus=e,r.blurScope=n):r.focus&&(r.focus=null)}var wU=["emphasis","blur","select"],cwt={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function bi(t,e,n,r){n=n||"itemStyle";for(var a=0;a<wU.length;a++){var i=wU[a],o=e.getModel([i,n]),s=t.ensureState(i);s.style=r?r(o):o[cwt[n]]()}}function zh(t,e){var n=e===!1,r=t;t.highDownSilentOnTouch&&(r.__highDownSilentOnTouch=t.highDownSilentOnTouch),(!n||r.__highDownDispatcher)&&(r.__highByOuter=r.__highByOuter||0,r.__highDownDispatcher=!n)}function Z1(t){return!!(t&&t.__highDownDispatcher)}function fwt(t,e,n){var r=ln(t);r.componentMainType=e.mainType,r.componentIndex=e.componentIndex,r.componentHighDownName=n}function dwt(t){var e=pU[t];return e==null&&hU<=32&&(e=pU[t]=hU++),e}function kO(t){var e=t.type;return e===zm||e===I_||e===Um}function xU(t){var e=t.type;return e===ip||e===N_}function hwt(t){var e=Fie(t);e.normalFill=t.style.fill,e.normalStroke=t.style.stroke;var n=t.states.select||{};e.selectFill=n.style&&n.style.fill||null,e.selectStroke=n.style&&n.style.stroke||null}var hv=mu.CMD,pwt=[[],[],[]],_U=Math.sqrt,vwt=Math.atan2;function Xie(t,e){if(e){var n=t.data,r=t.len(),a,i,o,s,l,u,c=hv.M,f=hv.C,d=hv.L,h=hv.R,p=hv.A,v=hv.Q;for(o=0,s=0;o<r;){switch(a=n[o++],s=o,i=0,a){case c:i=1;break;case d:i=1;break;case f:i=3;break;case v:i=2;break;case p:var g=e[4],y=e[5],m=_U(e[0]*e[0]+e[1]*e[1]),S=_U(e[2]*e[2]+e[3]*e[3]),w=vwt(-e[1]/S,e[0]/m);n[o]*=m,n[o++]+=g,n[o]*=S,n[o++]+=y,n[o++]*=m,n[o++]*=S,n[o++]+=w,n[o++]+=w,o+=2,s=o;break;case h:u[0]=n[o++],u[1]=n[o++],ai(u,u,e),n[s++]=u[0],n[s++]=u[1],u[0]+=n[o++],u[1]+=n[o++],ai(u,u,e),n[s++]=u[0],n[s++]=u[1]}for(l=0;l<i;l++){var C=pwt[l];C[0]=n[o++],C[1]=n[o++],ai(C,C,e),n[s++]=C[0],n[s++]=C[1]}}t.increaseVersion()}}var uA=Math.sqrt,Gw=Math.sin,Hw=Math.cos,_y=Math.PI;function CU(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function RO(t,e){return(t[0]*e[0]+t[1]*e[1])/(CU(t)*CU(e))}function TU(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(RO(t,e))}function EU(t,e,n,r,a,i,o,s,l,u,c){var f=l*(_y/180),d=Hw(f)*(t-n)/2+Gw(f)*(e-r)/2,h=-1*Gw(f)*(t-n)/2+Hw(f)*(e-r)/2,p=d*d/(o*o)+h*h/(s*s);p>1&&(o*=uA(p),s*=uA(p));var v=(a===i?-1:1)*uA((o*o*(s*s)-o*o*(h*h)-s*s*(d*d))/(o*o*(h*h)+s*s*(d*d)))||0,g=v*o*h/s,y=v*-s*d/o,m=(t+n)/2+Hw(f)*g-Gw(f)*y,S=(e+r)/2+Gw(f)*g+Hw(f)*y,w=TU([1,0],[(d-g)/o,(h-y)/s]),C=[(d-g)/o,(h-y)/s],_=[(-1*d-g)/o,(-1*h-y)/s],x=TU(C,_);if(RO(C,_)<=-1&&(x=_y),RO(C,_)>=1&&(x=0),x<0){var T=Math.round(x/_y*1e6)/1e6;x=_y*2+T%2*_y}c.addData(u,m,S,o,s,w,x,f,i)}var gwt=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,ywt=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function mwt(t){var e=new mu;if(!t)return e;var n=0,r=0,a=n,i=r,o,s=mu.CMD,l=t.match(gwt);if(!l)return e;for(var u=0;u<l.length;u++){for(var c=l[u],f=c.charAt(0),d=void 0,h=c.match(ywt)||[],p=h.length,v=0;v<p;v++)h[v]=parseFloat(h[v]);for(var g=0;g<p;){var y=void 0,m=void 0,S=void 0,w=void 0,C=void 0,_=void 0,x=void 0,T=n,M=r,E=void 0,A=void 0;switch(f){case"l":n+=h[g++],r+=h[g++],d=s.L,e.addData(d,n,r);break;case"L":n=h[g++],r=h[g++],d=s.L,e.addData(d,n,r);break;case"m":n+=h[g++],r+=h[g++],d=s.M,e.addData(d,n,r),a=n,i=r,f="l";break;case"M":n=h[g++],r=h[g++],d=s.M,e.addData(d,n,r),a=n,i=r,f="L";break;case"h":n+=h[g++],d=s.L,e.addData(d,n,r);break;case"H":n=h[g++],d=s.L,e.addData(d,n,r);break;case"v":r+=h[g++],d=s.L,e.addData(d,n,r);break;case"V":r=h[g++],d=s.L,e.addData(d,n,r);break;case"C":d=s.C,e.addData(d,h[g++],h[g++],h[g++],h[g++],h[g++],h[g++]),n=h[g-2],r=h[g-1];break;case"c":d=s.C,e.addData(d,h[g++]+n,h[g++]+r,h[g++]+n,h[g++]+r,h[g++]+n,h[g++]+r),n+=h[g-2],r+=h[g-1];break;case"S":y=n,m=r,E=e.len(),A=e.data,o===s.C&&(y+=n-A[E-4],m+=r-A[E-3]),d=s.C,T=h[g++],M=h[g++],n=h[g++],r=h[g++],e.addData(d,y,m,T,M,n,r);break;case"s":y=n,m=r,E=e.len(),A=e.data,o===s.C&&(y+=n-A[E-4],m+=r-A[E-3]),d=s.C,T=n+h[g++],M=r+h[g++],n+=h[g++],r+=h[g++],e.addData(d,y,m,T,M,n,r);break;case"Q":T=h[g++],M=h[g++],n=h[g++],r=h[g++],d=s.Q,e.addData(d,T,M,n,r);break;case"q":T=h[g++]+n,M=h[g++]+r,n+=h[g++],r+=h[g++],d=s.Q,e.addData(d,T,M,n,r);break;case"T":y=n,m=r,E=e.len(),A=e.data,o===s.Q&&(y+=n-A[E-4],m+=r-A[E-3]),n=h[g++],r=h[g++],d=s.Q,e.addData(d,y,m,n,r);break;case"t":y=n,m=r,E=e.len(),A=e.data,o===s.Q&&(y+=n-A[E-4],m+=r-A[E-3]),n+=h[g++],r+=h[g++],d=s.Q,e.addData(d,y,m,n,r);break;case"A":S=h[g++],w=h[g++],C=h[g++],_=h[g++],x=h[g++],T=n,M=r,n=h[g++],r=h[g++],d=s.A,EU(T,M,n,r,_,x,S,w,C,d,e);break;case"a":S=h[g++],w=h[g++],C=h[g++],_=h[g++],x=h[g++],T=n,M=r,n+=h[g++],r+=h[g++],d=s.A,EU(T,M,n,r,_,x,S,w,C,d,e);break}}(f==="z"||f==="Z")&&(d=s.Z,e.addData(d),n=a,r=i),o=d}return e.toStatic(),e}var qie=function(t){Fe(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.applyTransform=function(n){},e}(Cn);function Zie(t){return t.setData!=null}function Qie(t,e){var n=mwt(t),r=et({},e);return r.buildPath=function(a){if(Zie(a)){a.setData(n.data);var i=a.getContext();i&&a.rebuildPath(i,1)}else{var i=a;n.rebuildPath(i,1)}},r.applyTransform=function(a){Xie(n,a),this.dirtyShape()},r}function Jie(t,e){return new qie(Qie(t,e))}function bwt(t,e){var n=Qie(t,e),r=function(a){Fe(i,a);function i(o){var s=a.call(this,o)||this;return s.applyTransform=n.applyTransform,s.buildPath=n.buildPath,s}return i}(qie);return r}function Swt(t,e){for(var n=[],r=t.length,a=0;a<r;a++){var i=t[a];n.push(i.getUpdatedPathProxy(!0))}var o=new Cn(e);return o.createPathProxy(),o.buildPath=function(s){if(Zie(s)){s.appendPath(n);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}function xI(t,e){e=e||{};var n=new Cn;return t.shape&&n.setShape(t.shape),n.setStyle(t.style),e.bakeTransform?Xie(n.path,t.getComputedTransform()):e.toLocal?n.setLocalTransform(t.getComputedTransform()):n.copyTransform(t),n.buildPath=t.buildPath,n.applyTransform=n.applyTransform,n.z=t.z,n.z2=t.z2,n.zlevel=t.zlevel,n}var wwt=function(){function t(){this.cx=0,this.cy=0,this.r=0}return t}(),eoe=function(t){Fe(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultShape=function(){return new wwt},e.prototype.buildPath=function(n,r){n.moveTo(r.cx+r.r,r.cy),n.arc(r.cx,r.cy,r.r,0,Math.PI*2)},e}(Cn);eoe.prototype.type="circle";const wl=eoe;var xwt=function(){function t(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return t}(),toe=function(t){Fe(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultShape=function(){return new xwt},e.prototype.buildPath=function(n,r){var a=.5522848,i=r.cx,o=r.cy,s=r.rx,l=r.ry,u=s*a,c=l*a;n.moveTo(i-s,o),n.bezierCurveTo(i-s,o-c,i-u,o-l,i,o-l),n.bezierCurveTo(i+u,o-l,i+s,o-c,i+s,o),n.bezierCurveTo(i+s,o+c,i+u,o+l,i,o+l),n.bezierCurveTo(i-u,o+l,i-s,o+c,i-s,o),n.closePath()},e}(Cn);toe.prototype.type="ellipse";const hE=toe;var noe=Math.PI,cA=noe*2,Xd=Math.sin,pv=Math.cos,_wt=Math.acos,Ei=Math.atan2,MU=Math.abs,Gm=Math.sqrt,om=Math.max,Pl=Math.min,Hs=1e-4;function Cwt(t,e,n,r,a,i,o,s){var l=n-t,u=r-e,c=o-a,f=s-i,d=f*l-c*u;if(!(d*d<Hs))return d=(c*(e-i)-f*(t-a))/d,[t+d*l,e+d*u]}function Ww(t,e,n,r,a,i,o){var s=t-n,l=e-r,u=(o?i:-i)/Gm(s*s+l*l),c=u*l,f=-u*s,d=t+c,h=e+f,p=n+c,v=r+f,g=(d+p)/2,y=(h+v)/2,m=p-d,S=v-h,w=m*m+S*S,C=a-i,_=d*v-p*h,x=(S<0?-1:1)*Gm(om(0,C*C*w-_*_)),T=(_*S-m*x)/w,M=(-_*m-S*x)/w,E=(_*S+m*x)/w,A=(-_*m+S*x)/w,k=T-g,L=M-y,I=E-g,P=A-y;return k*k+L*L>I*I+P*P&&(T=E,M=A),{cx:T,cy:M,x0:-c,y0:-f,x1:T*(a/C-1),y1:M*(a/C-1)}}function Twt(t){var e;if(st(t)){var n=t.length;if(!n)return t;n===1?e=[t[0],t[0],0,0]:n===2?e=[t[0],t[0],t[1],t[1]]:n===3?e=t.concat(t[2]):e=t}else e=[t,t,t,t];return e}function Ewt(t,e){var n,r=om(e.r,0),a=om(e.r0||0,0),i=r>0,o=a>0;if(!(!i&&!o)){if(i||(r=a,a=0),a>r){var s=r;r=a,a=s}var l=e.startAngle,u=e.endAngle;if(!(isNaN(l)||isNaN(u))){var c=e.cx,f=e.cy,d=!!e.clockwise,h=MU(u-l),p=h>cA&&h%cA;if(p>Hs&&(h=p),!(r>Hs))t.moveTo(c,f);else if(h>cA-Hs)t.moveTo(c+r*pv(l),f+r*Xd(l)),t.arc(c,f,r,l,u,!d),a>Hs&&(t.moveTo(c+a*pv(u),f+a*Xd(u)),t.arc(c,f,a,u,l,d));else{var v=void 0,g=void 0,y=void 0,m=void 0,S=void 0,w=void 0,C=void 0,_=void 0,x=void 0,T=void 0,M=void 0,E=void 0,A=void 0,k=void 0,L=void 0,I=void 0,P=r*pv(l),F=r*Xd(l),$=a*pv(u),W=a*Xd(u),V=h>Hs;if(V){var z=e.cornerRadius;z&&(n=Twt(z),v=n[0],g=n[1],y=n[2],m=n[3]);var K=MU(r-a)/2;if(S=Pl(K,y),w=Pl(K,m),C=Pl(K,v),_=Pl(K,g),M=x=om(S,w),E=T=om(C,_),(x>Hs||T>Hs)&&(A=r*pv(u),k=r*Xd(u),L=a*pv(l),I=a*Xd(l),h<noe)){var Z=Cwt(P,F,L,I,A,k,$,W);if(Z){var oe=P-Z[0],ge=F-Z[1],ie=A-Z[0],Q=k-Z[1],ce=1/Xd(_wt((oe*ie+ge*Q)/(Gm(oe*oe+ge*ge)*Gm(ie*ie+Q*Q)))/2),se=Gm(Z[0]*Z[0]+Z[1]*Z[1]);M=Pl(x,(r-se)/(ce+1)),E=Pl(T,(a-se)/(ce-1))}}}if(!V)t.moveTo(c+P,f+F);else if(M>Hs){var me=Pl(y,M),ve=Pl(m,M),he=Ww(L,I,P,F,r,me,d),ee=Ww(A,k,$,W,r,ve,d);t.moveTo(c+he.cx+he.x0,f+he.cy+he.y0),M<x&&me===ve?t.arc(c+he.cx,f+he.cy,M,Ei(he.y0,he.x0),Ei(ee.y0,ee.x0),!d):(me>0&&t.arc(c+he.cx,f+he.cy,me,Ei(he.y0,he.x0),Ei(he.y1,he.x1),!d),t.arc(c,f,r,Ei(he.cy+he.y1,he.cx+he.x1),Ei(ee.cy+ee.y1,ee.cx+ee.x1),!d),ve>0&&t.arc(c+ee.cx,f+ee.cy,ve,Ei(ee.y1,ee.x1),Ei(ee.y0,ee.x0),!d))}else t.moveTo(c+P,f+F),t.arc(c,f,r,l,u,!d);if(!(a>Hs)||!V)t.lineTo(c+$,f+W);else if(E>Hs){var me=Pl(v,E),ve=Pl(g,E),he=Ww($,W,A,k,a,-ve,d),ee=Ww(P,F,L,I,a,-me,d);t.lineTo(c+he.cx+he.x0,f+he.cy+he.y0),E<T&&me===ve?t.arc(c+he.cx,f+he.cy,E,Ei(he.y0,he.x0),Ei(ee.y0,ee.x0),!d):(ve>0&&t.arc(c+he.cx,f+he.cy,ve,Ei(he.y0,he.x0),Ei(he.y1,he.x1),!d),t.arc(c,f,a,Ei(he.cy+he.y1,he.cx+he.x1),Ei(ee.cy+ee.y1,ee.cx+ee.x1),d),me>0&&t.arc(c+ee.cx,f+ee.cy,me,Ei(ee.y1,ee.x1),Ei(ee.y0,ee.x0),!d))}else t.lineTo(c+$,f+W),t.arc(c,f,a,u,l,d)}t.closePath()}}}var Mwt=function(){function t(){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 t}(),roe=function(t){Fe(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultShape=function(){return new Mwt},e.prototype.buildPath=function(n,r){Ewt(n,r)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(Cn);roe.prototype.type="sector";const so=roe;var Dwt=function(){function t(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return t}(),aoe=function(t){Fe(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultShape=function(){return new Dwt},e.prototype.buildPath=function(n,r){var a=r.cx,i=r.cy,o=Math.PI*2;n.moveTo(a+r.r,i),n.arc(a,i,r.r,0,o,!1),n.moveTo(a+r.r0,i),n.arc(a,i,r.r0,0,o,!0)},e}(Cn);aoe.prototype.type="ring";const aS=aoe;function Awt(t,e,n,r){var a=[],i=[],o=[],s=[],l,u,c,f;if(r){c=[1/0,1/0],f=[-1/0,-1/0];for(var d=0,h=t.length;d<h;d++)qu(c,c,t[d]),Zu(f,f,t[d]);qu(c,c,r[0]),Zu(f,f,r[1])}for(var d=0,h=t.length;d<h;d++){var p=t[d];if(n)l=t[d?d-1:h-1],u=t[(d+1)%h];else if(d===0||d===h-1){a.push(su(t[d]));continue}else l=t[d-1],u=t[d+1];Sf(i,u,l),Nm(i,i,e);var v=Y2(p,l),g=Y2(p,u),y=v+g;y!==0&&(v/=y,g/=y),Nm(o,i,-v),Nm(s,i,g);var m=tO([],p,o),S=tO([],p,s);r&&(Zu(m,m,c),qu(m,m,f),Zu(S,S,c),qu(S,S,f)),a.push(m),a.push(S)}return n&&a.push(a.shift()),a}function ioe(t,e,n){var r=e.smooth,a=e.points;if(a&&a.length>=2){if(r){var i=Awt(a,r,n,e.smoothConstraint);t.moveTo(a[0][0],a[0][1]);for(var o=a.length,s=0;s<(n?o:o-1);s++){var l=i[s*2],u=i[s*2+1],c=a[(s+1)%o];t.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{t.moveTo(a[0][0],a[0][1]);for(var s=1,f=a.length;s<f;s++)t.lineTo(a[s][0],a[s][1])}n&&t.closePath()}}var kwt=function(){function t(){this.points=null,this.smooth=0,this.smoothConstraint=null}return t}(),ooe=function(t){Fe(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultShape=function(){return new kwt},e.prototype.buildPath=function(n,r){ioe(n,r,!0)},e}(Cn);ooe.prototype.type="polygon";const lo=ooe;var Rwt=function(){function t(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return t}(),soe=function(t){Fe(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Rwt},e.prototype.buildPath=function(n,r){ioe(n,r,!1)},e}(Cn);soe.prototype.type="polyline";const fo=soe;var Lwt={},Owt=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return t}(),loe=function(t){Fe(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Owt},e.prototype.buildPath=function(n,r){var a,i,o,s;if(this.subPixelOptimize){var l=Vie(Lwt,r,this.style);a=l.x1,i=l.y1,o=l.x2,s=l.y2}else a=r.x1,i=r.y1,o=r.x2,s=r.y2;var u=r.percent;u!==0&&(n.moveTo(a,i),u<1&&(o=a*(1-u)+o*u,s=i*(1-u)+s*u),n.lineTo(o,s))},e.prototype.pointAt=function(n){var r=this.shape;return[r.x1*(1-n)+r.x2*n,r.y1*(1-n)+r.y2*n]},e}(Cn);loe.prototype.type="line";const Ga=loe;var go=[],Vwt=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return t}();function DU(t,e,n){var r=t.cpx2,a=t.cpy2;return r!=null||a!=null?[(n?Vz:za)(t.x1,t.cpx1,t.cpx2,t.x2,e),(n?Vz:za)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(n?sO:Ja)(t.x1,t.cpx1,t.x2,e),(n?sO:Ja)(t.y1,t.cpy1,t.y2,e)]}var uoe=function(t){Fe(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Vwt},e.prototype.buildPath=function(n,r){var a=r.x1,i=r.y1,o=r.x2,s=r.y2,l=r.cpx1,u=r.cpy1,c=r.cpx2,f=r.cpy2,d=r.percent;d!==0&&(n.moveTo(a,i),c==null||f==null?(d<1&&(U1(a,l,o,d,go),l=go[1],o=go[2],U1(i,u,s,d,go),u=go[1],s=go[2]),n.quadraticCurveTo(l,u,o,s)):(d<1&&(Xf(a,l,c,o,d,go),l=go[1],c=go[2],o=go[3],Xf(i,u,f,s,d,go),u=go[1],f=go[2],s=go[3]),n.bezierCurveTo(l,u,c,f,o,s)))},e.prototype.pointAt=function(n){return DU(this.shape,n,!1)},e.prototype.tangentAt=function(n){var r=DU(this.shape,n,!0);return Bp(r,r)},e}(Cn);uoe.prototype.type="bezier-curve";const iS=uoe;var Nwt=function(){function t(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return t}(),coe=function(t){Fe(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Nwt},e.prototype.buildPath=function(n,r){var a=r.cx,i=r.cy,o=Math.max(r.r,0),s=r.startAngle,l=r.endAngle,u=r.clockwise,c=Math.cos(s),f=Math.sin(s);n.moveTo(c*o+a,f*o+i),n.arc(a,i,o,s,l,!u)},e}(Cn);coe.prototype.type="arc";const pE=coe;var Iwt=function(t){Fe(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="compound",n}return e.prototype._updatePathDirty=function(){for(var n=this.shape.paths,r=this.shapeChanged(),a=0;a<n.length;a++)r=r||n[a].shapeChanged();r&&this.dirtyShape()},e.prototype.beforeBrush=function(){this._updatePathDirty();for(var n=this.shape.paths||[],r=this.getGlobalScale(),a=0;a<n.length;a++)n[a].path||n[a].createPathProxy(),n[a].path.setScale(r[0],r[1],n[a].segmentIgnoreThreshold)},e.prototype.buildPath=function(n,r){for(var a=r.paths||[],i=0;i<a.length;i++)a[i].buildPath(n,a[i].shape,!0)},e.prototype.afterBrush=function(){for(var n=this.shape.paths||[],r=0;r<n.length;r++)n[r].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),Cn.prototype.getBoundingRect.call(this)},e}(Cn);const vE=Iwt;var Bwt=function(){function t(e){this.colorStops=e||[]}return t.prototype.addColorStop=function(e,n){this.colorStops.push({offset:e,color:n})},t}();const foe=Bwt;var $wt=function(t){Fe(e,t);function e(n,r,a,i,o,s){var l=t.call(this,o)||this;return l.x=n??0,l.y=r??0,l.x2=a??1,l.y2=i??0,l.type="linear",l.global=s||!1,l}return e}(foe);const k0=$wt;var Pwt=function(t){Fe(e,t);function e(n,r,a,i,o){var s=t.call(this,i)||this;return s.x=n??.5,s.y=r??.5,s.r=a??.5,s.type="radial",s.global=o||!1,s}return e}(foe);const _I=Pwt;var qd=[0,0],Zd=[0,0],jw=new vn,Kw=new vn,Fwt=function(){function t(e,n){this._corners=[],this._axes=[],this._origin=[0,0];for(var r=0;r<4;r++)this._corners[r]=new vn;for(var r=0;r<2;r++)this._axes[r]=new vn;e&&this.fromBoundingRect(e,n)}return t.prototype.fromBoundingRect=function(e,n){var r=this._corners,a=this._axes,i=e.x,o=e.y,s=i+e.width,l=o+e.height;if(r[0].set(i,o),r[1].set(s,o),r[2].set(s,l),r[3].set(i,l),n)for(var u=0;u<4;u++)r[u].transform(n);vn.sub(a[0],r[1],r[0]),vn.sub(a[1],r[3],r[0]),a[0].normalize(),a[1].normalize();for(var u=0;u<2;u++)this._origin[u]=a[u].dot(r[0])},t.prototype.intersect=function(e,n){var r=!0,a=!n;return jw.set(1/0,1/0),Kw.set(0,0),!this._intersectCheckOneSide(this,e,jw,Kw,a,1)&&(r=!1,a)||!this._intersectCheckOneSide(e,this,jw,Kw,a,-1)&&(r=!1,a)||a||vn.copy(n,r?jw:Kw),r},t.prototype._intersectCheckOneSide=function(e,n,r,a,i,o){for(var s=!0,l=0;l<2;l++){var u=this._axes[l];if(this._getProjMinMaxOnAxis(l,e._corners,qd),this._getProjMinMaxOnAxis(l,n._corners,Zd),qd[1]<Zd[0]||qd[0]>Zd[1]){if(s=!1,i)return s;var c=Math.abs(Zd[0]-qd[1]),f=Math.abs(qd[0]-Zd[1]);Math.min(c,f)>a.len()&&(c<f?vn.scale(a,u,-c*o):vn.scale(a,u,f*o))}else if(r){var c=Math.abs(Zd[0]-qd[1]),f=Math.abs(qd[0]-Zd[1]);Math.min(c,f)<r.len()&&(c<f?vn.scale(r,u,c*o):vn.scale(r,u,-f*o))}}return s},t.prototype._getProjMinMaxOnAxis=function(e,n,r){for(var a=this._axes[e],i=this._origin,o=n[0].dot(a)+i[e],s=o,l=o,u=1;u<n.length;u++){var c=n[u].dot(a)+i[e];s=Math.min(c,s),l=Math.max(c,l)}r[0]=s,r[1]=l},t}();const rC=Fwt;var zwt=[],Uwt=function(t){Fe(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.notClear=!0,n.incremental=!0,n._displayables=[],n._temporaryDisplayables=[],n._cursor=0,n}return e.prototype.traverse=function(n,r){n.call(r,this)},e.prototype.useStyle=function(){this.style={}},e.prototype.getCursor=function(){return this._cursor},e.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},e.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},e.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},e.prototype.addDisplayable=function(n,r){r?this._temporaryDisplayables.push(n):this._displayables.push(n),this.markRedraw()},e.prototype.addDisplayables=function(n,r){r=r||!1;for(var a=0;a<n.length;a++)this.addDisplayable(n[a],r)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.prototype.eachPendingDisplayable=function(n){for(var r=this._cursor;r<this._displayables.length;r++)n&&n(this._displayables[r]);for(var r=0;r<this._temporaryDisplayables.length;r++)n&&n(this._temporaryDisplayables[r])},e.prototype.update=function(){this.updateTransform();for(var n=this._cursor;n<this._displayables.length;n++){var r=this._displayables[n];r.parent=this,r.update(),r.parent=null}for(var n=0;n<this._temporaryDisplayables.length;n++){var r=this._temporaryDisplayables[n];r.parent=this,r.update(),r.parent=null}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var n=new yn(1/0,1/0,-1/0,-1/0),r=0;r<this._displayables.length;r++){var a=this._displayables[r],i=a.getBoundingRect().clone();a.needLocalTransform()&&i.applyTransform(a.getLocalTransform(zwt)),n.union(i)}this._rect=n}return this._rect},e.prototype.contain=function(n,r){var a=this.transformCoordToLocal(n,r),i=this.getBoundingRect();if(i.contain(a[0],a[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(n,r))return!0}return!1},e}(As);const doe=Uwt;var hoe=Gn();function R0(t,e,n,r,a){var i;if(e&&e.ecModel){var o=e.ecModel.getUpdatePayload();i=o&&o.animation}var s=e&&e.isAnimationEnabled(),l=t==="update";if(s){var u=void 0,c=void 0,f=void 0;r?(u=gn(r.duration,200),c=gn(r.easing,"cubicOut"),f=0):(u=e.getShallow(l?"animationDurationUpdate":"animationDuration"),c=e.getShallow(l?"animationEasingUpdate":"animationEasing"),f=e.getShallow(l?"animationDelayUpdate":"animationDelay")),i&&(i.duration!=null&&(u=i.duration),i.easing!=null&&(c=i.easing),i.delay!=null&&(f=i.delay)),jt(f)&&(f=f(n,a)),jt(u)&&(u=u(n));var d={duration:u||0,delay:f,easing:c};return d}else return null}function CI(t,e,n,r,a,i,o){var s=!1,l;jt(a)?(o=i,i=a,a=null):qt(a)&&(i=a.cb,o=a.during,s=a.isFrom,l=a.removeOpt,a=a.dataIndex);var u=t==="leave";u||e.stopAnimation("leave");var c=R0(t,r,a,u?l||{}:null,r&&r.getAnimationDelayParams?r.getAnimationDelayParams(e,a):null);if(c&&c.duration>0){var f=c.duration,d=c.delay,h=c.easing,p={duration:f,delay:d||0,easing:h,done:i,force:!!i||!!o,setToFinal:!u,scope:t,during:o};s?e.animateFrom(n,p):e.animateTo(n,p)}else e.stopAnimation(),!s&&e.attr(n),o&&o(1),i&&i()}function jn(t,e,n,r,a,i){CI("update",t,e,n,r,a,i)}function Ur(t,e,n,r,a,i){CI("enter",t,e,n,r,a,i)}function mg(t){if(!t.__zr)return!0;for(var e=0;e<t.animators.length;e++){var n=t.animators[e];if(n.scope==="leave")return!0}return!1}function qf(t,e,n,r,a,i){mg(t)||CI("leave",t,e,n,r,a,i)}function AU(t,e,n,r){t.removeTextContent(),t.removeTextGuideLine(),qf(t,{style:{opacity:0}},e,n,r)}function Q1(t,e,n){function r(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse(function(a){a.isGroup||AU(a,e,n,r)}):AU(t,e,n,r)}function xl(t){hoe(t).oldStyle=t.style}function Gwt(t){return hoe(t).oldStyle}var aC=Math.max,iC=Math.min,LO={};function poe(t){return Cn.extend(t)}var Hwt=bwt;function voe(t,e){return Hwt(t,e)}function Rs(t,e){LO[t]=e}function gE(t){if(LO.hasOwnProperty(t))return LO[t]}function oS(t,e,n,r){var a=Jie(t,e);return n&&(r==="center"&&(n=goe(n,a.getBoundingRect())),EI(a,n)),a}function TI(t,e,n){var r=new si({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(a){if(n==="center"){var i={width:a.width,height:a.height};r.setStyle(goe(e,i))}}});return r}function goe(t,e){var n=e.width/e.height,r=t.height*n,a;r<=t.width?a=t.height:(r=t.width,a=r/n);var i=t.x+t.width/2,o=t.y+t.height/2;return{x:i-r/2,y:o-a/2,width:r,height:a}}var $o=Swt;function EI(t,e){if(t.applyTransform){var n=t.getBoundingRect(),r=n.calculateTransform(e);t.applyTransform(r)}}function n0(t,e){return Vie(t,t,{lineWidth:e}),t}function Wwt(t){return Nie(t.shape,t.shape,t.style),t}var B_=Fh;function Nf(t,e){for(var n=Jb([]);t&&t!==e;)lu(n,t.getLocalTransform(),n),t=t.parent;return n}function gl(t,e,n){return e&&!mi(e)&&(e=Qu.getLocalTransform(e)),n&&(e=$p([],e)),ai([],t,e)}function yE(t,e,n){var r=e[4]===0||e[5]===0||e[0]===0?1:Math.abs(2*e[4]/e[0]),a=e[4]===0||e[5]===0||e[2]===0?1:Math.abs(2*e[4]/e[2]),i=[t==="left"?-r:t==="right"?r:0,t==="top"?-a:t==="bottom"?a:0];return i=gl(i,e,n),Math.abs(i[0])>Math.abs(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function kU(t){return!t.isGroup}function jwt(t){return t.shape!=null}function sS(t,e,n){if(!t||!e)return;function r(o){var s={};return o.traverse(function(l){kU(l)&&l.anid&&(s[l.anid]=l)}),s}function a(o){var s={x:o.x,y:o.y,rotation:o.rotation};return jwt(o)&&(s.shape=et({},o.shape)),s}var i=r(t);e.traverse(function(o){if(kU(o)&&o.anid){var s=i[o.anid];if(s){var l=a(o);o.attr(a(s)),jn(o,l,n,ln(o).dataIndex)}}})}function MI(t,e){return ut(t,function(n){var r=n[0];r=aC(r,e.x),r=iC(r,e.x+e.width);var a=n[1];return a=aC(a,e.y),a=iC(a,e.y+e.height),[r,a]})}function yoe(t,e){var n=aC(t.x,e.x),r=iC(t.x+t.width,e.x+e.width),a=aC(t.y,e.y),i=iC(t.y+t.height,e.y+e.height);if(r>=n&&i>=a)return{x:n,y:a,width:r-n,height:i-a}}function L0(t,e,n){var r=et({rectHover:!0},e),a=r.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},t)return t.indexOf("image://")===0?(a.image=t.slice(8),Xt(a,n),new si(r)):oS(t.replace("path://",""),r,n,"center")}function sm(t,e,n,r,a){for(var i=0,o=a[a.length-1];i<a.length;i++){var s=a[i];if(moe(t,e,n,r,s[0],s[1],o[0],o[1]))return!0;o=s}}function moe(t,e,n,r,a,i,o,s){var l=n-t,u=r-e,c=o-a,f=s-i,d=fA(c,f,l,u);if(Kwt(d))return!1;var h=t-a,p=e-i,v=fA(h,p,l,u)/d;if(v<0||v>1)return!1;var g=fA(h,p,c,f)/d;return!(g<0||g>1)}function fA(t,e,n,r){return t*r-n*e}function Kwt(t){return t<=1e-6&&t>=-1e-6}function O0(t){var e=t.itemTooltipOption,n=t.componentModel,r=t.itemName,a=Ot(e)?{formatter:e}:e,i=n.mainType,o=n.componentIndex,s={componentType:i,name:r,$vars:["name"]};s[i+"Index"]=o;var l=t.formatterParamsExtra;l&&q(Dn(l),function(c){Bt(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=ln(t.el);u.componentMainType=i,u.componentIndex=o,u.tooltipConfig={name:r,option:Xt({content:r,formatterParams:s},a)}}function RU(t,e){var n;t.isGroup&&(n=e(t)),n||t.traverse(e)}function dd(t,e){if(t)if(st(t))for(var n=0;n<t.length;n++)RU(t[n],e);else RU(t,e)}Rs("circle",wl);Rs("ellipse",hE);Rs("sector",so);Rs("ring",aS);Rs("polygon",lo);Rs("polyline",fo);Rs("rect",$n);Rs("line",Ga);Rs("bezierCurve",iS);Rs("arc",pE);const lS=Object.freeze(Object.defineProperty({__proto__:null,Arc:pE,BezierCurve:iS,BoundingRect:yn,Circle:wl,CompoundPath:vE,Ellipse:hE,Group:en,Image:si,IncrementalDisplayable:doe,Line:Ga,LinearGradient:k0,OrientedBoundingRect:rC,Path:Cn,Point:vn,Polygon:lo,Polyline:fo,RadialGradient:_I,Rect:$n,Ring:aS,Sector:so,Text:Bn,applyTransform:gl,clipPointsByRect:MI,clipRectByRect:yoe,createIcon:L0,extendPath:voe,extendShape:poe,getShapeClass:gE,getTransform:Nf,groupTransition:sS,initProps:Ur,isElementRemoved:mg,lineLineIntersect:moe,linePolygonIntersect:sm,makeImage:TI,makePath:oS,mergePath:$o,registerShape:Rs,removeElement:qf,removeElementWithFadeOut:Q1,resizePath:EI,setTooltipConfig:O0,subPixelOptimize:B_,subPixelOptimizeLine:n0,subPixelOptimizeRect:Wwt,transformDirection:yE,traverseElements:dd,updateProps:jn},Symbol.toStringTag,{value:"Module"}));var mE={};function boe(t,e){for(var n=0;n<oo.length;n++){var r=oo[n],a=e[r],i=t.ensureState(r);i.style=i.style||{},i.style.text=a}var o=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(o,!0)}function OO(t,e,n){var r=t.labelFetcher,a=t.labelDataIndex,i=t.labelDimIndex,o=e.normal,s;r&&(s=r.getFormattedLabel(a,"normal",null,i,o&&o.get("formatter"),n!=null?{interpolatedValue:n}:null)),s==null&&(s=jt(t.defaultText)?t.defaultText(a,t,n):t.defaultText);for(var l={normal:s},u=0;u<oo.length;u++){var c=oo[u],f=e[c];l[c]=gn(r?r.getFormattedLabel(a,c,null,i,f&&f.get("formatter")):null,s)}return l}function Si(t,e,n,r){n=n||mE;for(var a=t instanceof Bn,i=!1,o=0;o<q1.length;o++){var s=e[q1[o]];if(s&&s.getShallow("show")){i=!0;break}}var l=a?t:t.getTextContent();if(i){a||(l||(l=new Bn,t.setTextContent(l)),t.stateProxy&&(l.stateProxy=t.stateProxy));var u=OO(n,e),c=e.normal,f=!!c.getShallow("show"),d=Dr(c,r&&r.normal,n,!1,!a);d.text=u.normal,a||t.setTextConfig(oC(c,n,!1));for(var o=0;o<oo.length;o++){var h=oo[o],s=e[h];if(s){var p=l.ensureState(h),v=!!gn(s.getShallow("show"),f);if(v!==f&&(p.ignore=!v),p.style=Dr(s,r&&r[h],n,!0,!a),p.style.text=u[h],!a){var g=t.ensureState(h);g.textConfig=oC(s,n,!0)}}}l.silent=!!c.getShallow("silent"),l.style.x!=null&&(d.x=l.style.x),l.style.y!=null&&(d.y=l.style.y),l.ignore=!f,l.useStyle(d),l.dirty(),n.enableTextSetter&&(V0(l).setLabelText=function(y){var m=OO(n,e,y);boe(l,m)})}else l&&(l.ignore=!0);t.dirty()}function Ka(t,e){e=e||"label";for(var n={normal:t.getModel(e)},r=0;r<oo.length;r++){var a=oo[r];n[a]=t.getModel([a,e])}return n}function Dr(t,e,n,r,a){var i={};return Ywt(i,t,n,r,a),e&&et(i,e),i}function oC(t,e,n){e=e||{};var r={},a,i=t.getShallow("rotate"),o=gn(t.getShallow("distance"),n?null:5),s=t.getShallow("offset");return a=t.getShallow("position")||(n?null:"inside"),a==="outside"&&(a=e.defaultOutsidePosition||"top"),a!=null&&(r.position=a),s!=null&&(r.offset=s),i!=null&&(i*=Math.PI/180,r.rotation=i),o!=null&&(r.distance=o),r.outsideFill=t.get("color")==="inherit"?e.inheritColor||null:"auto",r}function Ywt(t,e,n,r,a){n=n||mE;var i=e.ecModel,o=i&&i.option.textStyle,s=Xwt(e),l;if(s){l={};for(var u in s)if(s.hasOwnProperty(u)){var c=e.getModel(["rich",u]);NU(l[u]={},c,o,n,r,a,!1,!0)}}l&&(t.rich=l);var f=e.get("overflow");f&&(t.overflow=f);var d=e.get("minMargin");d!=null&&(t.margin=d),NU(t,e,o,n,r,a,!0,!1)}function Xwt(t){for(var e;t&&t!==t.ecModel;){var n=(t.option||mE).rich;if(n){e=e||{};for(var r=Dn(n),a=0;a<r.length;a++){var i=r[a];e[i]=1}}t=t.parentModel}return e}var LU=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],OU=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],VU=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function NU(t,e,n,r,a,i,o,s){n=!a&&n||mE;var l=r&&r.inheritColor,u=e.getShallow("color"),c=e.getShallow("textBorderColor"),f=gn(e.getShallow("opacity"),n.opacity);(u==="inherit"||u==="auto")&&(l?u=l:u=null),(c==="inherit"||c==="auto")&&(l?c=l:c=null),i||(u=u||n.color,c=c||n.textBorderColor),u!=null&&(t.fill=u),c!=null&&(t.stroke=c);var d=gn(e.getShallow("textBorderWidth"),n.textBorderWidth);d!=null&&(t.lineWidth=d);var h=gn(e.getShallow("textBorderType"),n.textBorderType);h!=null&&(t.lineDash=h);var p=gn(e.getShallow("textBorderDashOffset"),n.textBorderDashOffset);p!=null&&(t.lineDashOffset=p),!a&&f==null&&!s&&(f=r&&r.defaultOpacity),f!=null&&(t.opacity=f),!a&&!i&&t.fill==null&&r.inheritColor&&(t.fill=r.inheritColor);for(var v=0;v<LU.length;v++){var g=LU[v],y=gn(e.getShallow(g),n[g]);y!=null&&(t[g]=y)}for(var v=0;v<OU.length;v++){var g=OU[v],y=e.getShallow(g);y!=null&&(t[g]=y)}if(t.verticalAlign==null){var m=e.getShallow("baseline");m!=null&&(t.verticalAlign=m)}if(!o||!r.disableBox){for(var v=0;v<VU.length;v++){var g=VU[v],y=e.getShallow(g);y!=null&&(t[g]=y)}var S=e.getShallow("borderType");S!=null&&(t.borderDash=S),(t.backgroundColor==="auto"||t.backgroundColor==="inherit")&&l&&(t.backgroundColor=l),(t.borderColor==="auto"||t.borderColor==="inherit")&&l&&(t.borderColor=l)}}function Soe(t,e){var n=e&&e.getModel("textStyle");return vs([t.fontStyle||n&&n.getShallow("fontStyle")||"",t.fontWeight||n&&n.getShallow("fontWeight")||"",(t.fontSize||n&&n.getShallow("fontSize")||12)+"px",t.fontFamily||n&&n.getShallow("fontFamily")||"sans-serif"].join(" "))}var V0=Gn();function woe(t,e,n,r){if(t){var a=V0(t);a.prevValue=a.value,a.value=n;var i=e.normal;a.valueAnimation=i.get("valueAnimation"),a.valueAnimation&&(a.precision=i.get("precision"),a.defaultInterpolatedText=r,a.statesModels=e)}}function xoe(t,e,n,r,a){var i=V0(t);if(!i.valueAnimation||i.prevValue===i.value)return;var o=i.defaultInterpolatedText,s=gn(i.interpolatedValue,i.prevValue),l=i.value;function u(c){var f=xie(n,i.precision,s,l,c);i.interpolatedValue=c===1?null:f;var d=OO({labelDataIndex:e,labelFetcher:a,defaultText:o?o(f):f+""},i.statesModels,f);boe(t,d)}t.percent=0,(i.prevValue==null?Ur:jn)(t,{percent:1},r,e,null,u)}var qwt=["textStyle","color"],dA=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],hA=new Bn,Zwt=function(){function t(){}return t.prototype.getTextColor=function(e){var n=this.ecModel;return this.getShallow("color")||(!e&&n?n.get(qwt):null)},t.prototype.getFont=function(){return Soe({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},t.prototype.getTextRect=function(e){for(var n={text:e,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},r=0;r<dA.length;r++)n[dA[r]]=this.getShallow(dA[r]);return hA.useStyle(n),hA.update(),hA.getBoundingRect()},t}();const Qwt=Zwt;var _oe=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],Jwt=xp(_oe),ext=function(){function t(){}return t.prototype.getLineStyle=function(e){return Jwt(this,e)},t}(),Coe=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],txt=xp(Coe),nxt=function(){function t(){}return t.prototype.getItemStyle=function(e,n){return txt(this,e,n)},t}(),Pp=function(){function t(e,n,r){this.parentModel=n,this.ecModel=r,this.option=e}return t.prototype.init=function(e,n,r){},t.prototype.mergeOption=function(e,n){hn(this.option,e,!0)},t.prototype.get=function(e,n){return e==null?this.option:this._doGet(this.parsePath(e),!n&&this.parentModel)},t.prototype.getShallow=function(e,n){var r=this.option,a=r==null?r:r[e];if(a==null&&!n){var i=this.parentModel;i&&(a=i.getShallow(e))}return a},t.prototype.getModel=function(e,n){var r=e!=null,a=r?this.parsePath(e):null,i=r?this._doGet(a):this.option;return n=n||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(a)),new t(i,n,this.ecModel)},t.prototype.isEmpty=function(){return this.option==null},t.prototype.restoreData=function(){},t.prototype.clone=function(){var e=this.constructor;return new e(Zt(this.option))},t.prototype.parsePath=function(e){return typeof e=="string"?e.split("."):e},t.prototype.resolveParentPath=function(e){return e},t.prototype.isAnimationEnabled=function(){if(!Fn.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},t.prototype._doGet=function(e,n){var r=this.option;if(!e)return r;for(var a=0;a<e.length&&!(e[a]&&(r=r&&typeof r=="object"?r[e[a]]:null,r==null));a++);return r==null&&n&&(r=n._doGet(this.resolveParentPath(e),n.parentModel)),r},t}();vI(Pp);oSt(Pp);ha(Pp,ext);ha(Pp,nxt);ha(Pp,fSt);ha(Pp,Qwt);const yr=Pp;var rxt=Math.round(Math.random()*10);function N0(t){return[t||"",rxt++].join("_")}function axt(t){var e={};t.registerSubTypeDefaulter=function(n,r){var a=eu(n);e[a.main]=r},t.determineSubType=function(n,r){var a=r.type;if(!a){var i=eu(n).main;t.hasSubTypes(n)&&e[i]&&(a=e[i](r))}return a}}function ixt(t,e){t.topologicalTravel=function(i,o,s,l){if(!i.length)return;var u=n(o),c=u.graph,f=u.noEntryList,d={};for(q(i,function(m){d[m]=!0});f.length;){var h=f.pop(),p=c[h],v=!!d[h];v&&(s.call(l,h,p.originalDeps.slice()),delete d[h]),q(p.successor,v?y:g)}q(d,function(){var m="";throw new Error(m)});function g(m){c[m].entryCount--,c[m].entryCount===0&&f.push(m)}function y(m){d[m]=!0,g(m)}};function n(i){var o={},s=[];return q(i,function(l){var u=r(o,l),c=u.originalDeps=e(l),f=a(c,i);u.entryCount=f.length,u.entryCount===0&&s.push(l),q(f,function(d){bn(u.predecessor,d)<0&&u.predecessor.push(d);var h=r(o,d);bn(h.successor,d)<0&&h.successor.push(l)})}),{graph:o,noEntryList:s}}function r(i,o){return i[o]||(i[o]={predecessor:[],successor:[]}),i[o]}function a(i,o){var s=[];return q(i,function(l){bn(o,l)>=0&&s.push(l)}),s}}function hd(t,e){return hn(hn({},t,!0),e,!0)}const oxt={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:". "}}}},sxt={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 sC="ZH",DI="EN",J1=DI,$_={},AI={},Toe=Fn.domSupported?function(){var t=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return t.indexOf(sC)>-1?sC:J1}():J1;function kI(t,e){t=t.toUpperCase(),AI[t]=new yr(e),$_[t]=e}function lxt(t){if(Ot(t)){var e=$_[t.toUpperCase()]||{};return t===sC||t===DI?Zt(e):hn(Zt(e),Zt($_[J1]),!1)}else return hn(Zt(t),Zt($_[J1]),!1)}function VO(t){return AI[t]}function uxt(){return AI[J1]}kI(DI,oxt);kI(sC,sxt);var RI=1e3,LI=RI*60,Hm=LI*60,hs=Hm*24,IU=hs*365,lm={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}"},Yw="{yyyy}-{MM}-{dd}",BU={year:"{yyyy}",month:"{yyyy}-{MM}",day:Yw,hour:Yw+" "+lm.hour,minute:Yw+" "+lm.minute,second:Yw+" "+lm.second,millisecond:lm.none},pA=["year","month","day","hour","minute","second","millisecond"],Eoe=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Ki(t,e){return t+="","0000".substr(0,e-t.length)+t}function bg(t){switch(t){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return t}}function cxt(t){return t===bg(t)}function fxt(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function uS(t,e,n,r){var a=jo(t),i=a[OI(n)](),o=a[Sg(n)]()+1,s=Math.floor((o-1)/3)+1,l=a[bE(n)](),u=a["get"+(n?"UTC":"")+"Day"](),c=a[eb(n)](),f=(c-1)%12+1,d=a[SE(n)](),h=a[wE(n)](),p=a[xE(n)](),v=r instanceof yr?r:VO(r||Toe)||uxt(),g=v.getModel("time"),y=g.get("month"),m=g.get("monthAbbr"),S=g.get("dayOfWeek"),w=g.get("dayOfWeekAbbr");return(e||"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,Ki(i%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,y[o-1]).replace(/{MMM}/g,m[o-1]).replace(/{MM}/g,Ki(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Ki(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,S[u]).replace(/{ee}/g,w[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Ki(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,Ki(f+"",2)).replace(/{h}/g,f+"").replace(/{mm}/g,Ki(d,2)).replace(/{m}/g,d+"").replace(/{ss}/g,Ki(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,Ki(p,3)).replace(/{S}/g,p+"")}function dxt(t,e,n,r,a){var i=null;if(Ot(n))i=n;else if(jt(n))i=n(t.value,e,{level:t.level});else{var o=et({},lm);if(t.level>0)for(var s=0;s<pA.length;++s)o[pA[s]]="{primary|"+o[pA[s]]+"}";var l=n?n.inherit===!1?n:Xt(n,o):o,u=Moe(t.value,a);if(l[u])i=l[u];else if(l.inherit){for(var c=Eoe.indexOf(u),s=c-1;s>=0;--s)if(l[u]){i=l[u];break}i=i||o.none}if(st(i)){var f=t.level==null?0:t.level>=0?t.level:i.length+t.level;f=Math.min(f,i.length-1),i=i[f]}}return uS(new Date(t.value),i,a,r)}function Moe(t,e){var n=jo(t),r=n[Sg(e)]()+1,a=n[bE(e)](),i=n[eb(e)](),o=n[SE(e)](),s=n[wE(e)](),l=n[xE(e)](),u=l===0,c=u&&s===0,f=c&&o===0,d=f&&i===0,h=d&&a===1,p=h&&r===1;return p?"year":h?"month":d?"day":f?"hour":c?"minute":u?"second":"millisecond"}function $U(t,e,n){var r=Un(t)?jo(t):t;switch(e=e||Moe(t,n),e){case"year":return r[OI(n)]();case"half-year":return r[Sg(n)]()>=6?1:0;case"quarter":return Math.floor((r[Sg(n)]()+1)/4);case"month":return r[Sg(n)]();case"day":return r[bE(n)]();case"half-day":return r[eb(n)]()/24;case"hour":return r[eb(n)]();case"minute":return r[SE(n)]();case"second":return r[wE(n)]();case"millisecond":return r[xE(n)]()}}function OI(t){return t?"getUTCFullYear":"getFullYear"}function Sg(t){return t?"getUTCMonth":"getMonth"}function bE(t){return t?"getUTCDate":"getDate"}function eb(t){return t?"getUTCHours":"getHours"}function SE(t){return t?"getUTCMinutes":"getMinutes"}function wE(t){return t?"getUTCSeconds":"getSeconds"}function xE(t){return t?"getUTCMilliseconds":"getMilliseconds"}function hxt(t){return t?"setUTCFullYear":"setFullYear"}function Doe(t){return t?"setUTCMonth":"setMonth"}function Aoe(t){return t?"setUTCDate":"setDate"}function koe(t){return t?"setUTCHours":"setHours"}function Roe(t){return t?"setUTCMinutes":"setMinutes"}function Loe(t){return t?"setUTCSeconds":"setSeconds"}function Ooe(t){return t?"setUTCMilliseconds":"setMilliseconds"}function pxt(t,e,n,r,a,i,o,s){var l=new Bn({style:{text:t,font:e,align:n,verticalAlign:r,padding:a,rich:i,overflow:o?"truncate":null,lineHeight:s}});return l.getBoundingRect()}function VI(t){if(!dI(t))return Ot(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function NI(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,function(n,r){return r.toUpperCase()}),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}var Fp=tE;function NO(t,e,n){var r="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function a(c){return c&&vs(c)?c:"-"}function i(c){return!!(c!=null&&!isNaN(c)&&isFinite(c))}var o=e==="time",s=t instanceof Date;if(o||s){var l=o?jo(t):t;if(isNaN(+l)){if(s)return"-"}else return uS(l,r,n)}if(e==="ordinal")return j2(t)?a(t):Un(t)&&i(t)?t+"":"-";var u=yu(t);return i(u)?VI(u):j2(t)?a(t):typeof t=="boolean"?t+"":"-"}var PU=["a","b","c","d","e","f","g"],vA=function(t,e){return"{"+t+(e??"")+"}"};function II(t,e,n){st(e)||(e=[e]);var r=e.length;if(!r)return"";for(var a=e[0].$vars||[],i=0;i<a.length;i++){var o=PU[i];t=t.replace(vA(o),vA(o,0))}for(var s=0;s<r;s++)for(var l=0;l<a.length;l++){var u=e[s][a[l]];t=t.replace(vA(PU[l],s),n?qi(u):u)}return t}function vxt(t,e,n){return q(e,function(r,a){t=t.replace("{"+a+"}",n?qi(r):r)}),t}function Voe(t,e){var n=Ot(t)?{color:t,extraCssText:e}:t||{},r=n.color,a=n.type;e=n.extraCssText;var i=n.renderMode||"html";if(!r)return"";if(i==="html")return a==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+qi(r)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+qi(r)+";"+(e||"")+'"></span>';var o=n.markerId||"markerX";return{renderMode:i,content:"{"+o+"|} ",style:a==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}}function gxt(t,e,n){(t==="week"||t==="month"||t==="quarter"||t==="half-year"||t==="year")&&(t=`MM-dd
  1142. yyyy`);var r=jo(e),a=n?"getUTC":"get",i=r[a+"FullYear"](),o=r[a+"Month"]()+1,s=r[a+"Date"](),l=r[a+"Hours"](),u=r[a+"Minutes"](),c=r[a+"Seconds"](),f=r[a+"Milliseconds"]();return t=t.replace("MM",Ki(o,2)).replace("M",o).replace("yyyy",i).replace("yy",Ki(i%100+"",2)).replace("dd",Ki(s,2)).replace("d",s).replace("hh",Ki(l,2)).replace("h",l).replace("mm",Ki(u,2)).replace("m",u).replace("ss",Ki(c,2)).replace("s",c).replace("SSS",Ki(f,3)),t}function yxt(t){return t&&t.charAt(0).toUpperCase()+t.substr(1)}function Cp(t,e){return e=e||"transparent",Ot(t)?t:qt(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function lC(t,e){if(e==="_blank"||e==="blank"){var n=window.open();n.opener=null,n.location.href=t}else window.open(t,e)}var P_=q,Noe=["left","right","top","bottom","width","height"],Uh=[["width","left","right"],["height","top","bottom"]];function BI(t,e,n,r,a){var i=0,o=0;r==null&&(r=1/0),a==null&&(a=1/0);var s=0;e.eachChild(function(l,u){var c=l.getBoundingRect(),f=e.childAt(u+1),d=f&&f.getBoundingRect(),h,p;if(t==="horizontal"){var v=c.width+(d?-d.x+c.x:0);h=i+v,h>r||l.newline?(i=0,h=v,o+=s+n,s=c.height):s=Math.max(s,c.height)}else{var g=c.height+(d?-d.y+c.y:0);p=o+g,p>a||l.newline?(i+=s+n,o=0,p=g,s=c.width):s=Math.max(s,c.width)}l.newline||(l.x=i,l.y=o,l.markRedraw(),t==="horizontal"?i=h+n:o=p+n)})}var op=BI;sn(BI,"vertical");sn(BI,"horizontal");function mxt(t,e,n){var r=e.width,a=e.height,i=Mt(t.left,r),o=Mt(t.top,a),s=Mt(t.right,r),l=Mt(t.bottom,a);return(isNaN(i)||isNaN(parseFloat(t.left)))&&(i=0),(isNaN(s)||isNaN(parseFloat(t.right)))&&(s=r),(isNaN(o)||isNaN(parseFloat(t.top)))&&(o=0),(isNaN(l)||isNaN(parseFloat(t.bottom)))&&(l=a),n=Fp(n||0),{width:Math.max(s-i-n[1]-n[3],0),height:Math.max(l-o-n[0]-n[2],0)}}function ka(t,e,n){n=Fp(n||0);var r=e.width,a=e.height,i=Mt(t.left,r),o=Mt(t.top,a),s=Mt(t.right,r),l=Mt(t.bottom,a),u=Mt(t.width,r),c=Mt(t.height,a),f=n[2]+n[0],d=n[1]+n[3],h=t.aspect;switch(isNaN(u)&&(u=r-s-d-i),isNaN(c)&&(c=a-l-f-o),h!=null&&(isNaN(u)&&isNaN(c)&&(h>r/a?u=r*.8:c=a*.8),isNaN(u)&&(u=h*c),isNaN(c)&&(c=u/h)),isNaN(i)&&(i=r-s-u-d),isNaN(o)&&(o=a-l-c-f),t.left||t.right){case"center":i=r/2-u/2-n[3];break;case"right":i=r-u-d;break}switch(t.top||t.bottom){case"middle":case"center":o=a/2-c/2-n[0];break;case"bottom":o=a-c-f;break}i=i||0,o=o||0,isNaN(u)&&(u=r-d-i-(s||0)),isNaN(c)&&(c=a-f-o-(l||0));var p=new yn(i+n[3],o+n[0],u,c);return p.margin=n,p}function _E(t,e,n,r,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||t,i.x=t.x,i.y=t.y,!o&&!s)return!1;var u;if(l==="raw")u=t.type==="group"?new yn(0,0,+e.width||0,+e.height||0):t.getBoundingRect();else if(u=t.getBoundingRect(),t.needLocalTransform()){var c=t.getLocalTransform();u=u.clone(),u.applyTransform(c)}var f=ka(Xt({width:u.width,height:u.height},e),n,r),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===t&&t.markRedraw(),!0}function bxt(t,e){return t[Uh[e][0]]!=null||t[Uh[e][1]]!=null&&t[Uh[e][2]]!=null}function tb(t){var e=t.layoutMode||t.constructor.layoutMode;return qt(e)?e:e?{type:e}:null}function Zf(t,e,n){var r=n&&n.ignoreSize;!st(r)&&(r=[r,r]);var a=o(Uh[0],0),i=o(Uh[1],1);u(Uh[0],t,a),u(Uh[1],t,i);function o(c,f){var d={},h=0,p={},v=0,g=2;if(P_(c,function(S){p[S]=t[S]}),P_(c,function(S){s(e,S)&&(d[S]=p[S]=e[S]),l(d,S)&&h++,l(p,S)&&v++}),r[f])return l(e,c[1])?p[c[2]]=null:l(e,c[2])&&(p[c[1]]=null),p;if(v===g||!h)return p;if(h>=g)return d;for(var y=0;y<c.length;y++){var m=c[y];if(!s(d,m)&&s(t,m)){d[m]=t[m];break}}return d}function s(c,f){return c.hasOwnProperty(f)}function l(c,f){return c[f]!=null&&c[f]!=="auto"}function u(c,f,d){P_(c,function(h){f[h]=d[h]})}}function I0(t){return Ioe({},t)}function Ioe(t,e){return e&&t&&P_(Noe,function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t}var Sxt=Gn(),B0=function(t){Fe(e,t);function e(n,r,a){var i=t.call(this,n,r,a)||this;return i.uid=N0("ec_cpt_model"),i}return e.prototype.init=function(n,r,a){this.mergeDefaultAndTheme(n,a)},e.prototype.mergeDefaultAndTheme=function(n,r){var a=tb(this),i=a?I0(n):{},o=r.getTheme();hn(n,o.get(this.mainType)),hn(n,this.getDefaultOption()),a&&Zf(n,i,a)},e.prototype.mergeOption=function(n,r){hn(this.option,n,!0);var a=tb(this);a&&Zf(this.option,n,a)},e.prototype.optionUpdated=function(n,r){},e.prototype.getDefaultOption=function(){var n=this.constructor;if(!rSt(n))return n.defaultOption;var r=Sxt(this);if(!r.defaultOption){for(var a=[],i=n;i;){var o=i.prototype.defaultOption;o&&a.push(o),i=i.superClass}for(var s={},l=a.length-1;l>=0;l--)s=hn(s,a[l],!0);r.defaultOption=s}return r.defaultOption},e.prototype.getReferringComponents=function(n,r){var a=n+"Index",i=n+"Id";return nS(this.ecModel,n,{index:this.get(a,!0),id:this.get(i,!0)},r)},e.prototype.getBoxLayoutParams=function(){var n=this;return{left:n.get("left"),top:n.get("top"),right:n.get("right"),bottom:n.get("bottom"),width:n.get("width"),height:n.get("height")}},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(n){this.option.zlevel=n},e.protoInitialize=function(){var n=e.prototype;n.type="component",n.id="",n.name="",n.mainType="",n.subType="",n.componentIndex=0}(),e}(yr);Cie(B0,yr);sE(B0);axt(B0);ixt(B0,wxt);function wxt(t){var e=[];return q(B0.getClassesByMainType(t),function(n){e=e.concat(n.dependencies||n.prototype.dependencies||[])}),e=ut(e,function(n){return eu(n).main}),t!=="dataset"&&bn(e,"dataset")<=0&&e.unshift("dataset"),e}const On=B0;var Boe="";typeof navigator<"u"&&(Boe=navigator.platform||"");var vv="rgba(0, 0, 0, 0.2)";const xxt={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:vv,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:vv,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:vv,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:vv,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:vv,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:vv,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Boe.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 $oe=Gt(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),Ls="original",Bi="arrayRows",Os="objectRows",Cu="keyedColumns",If="typedArray",Poe="unknown",uu="column",$0="row",fi={Must:1,Might:2,Not:3},Foe=Gn();function _xt(t){Foe(t).datasetMap=Gt()}function zoe(t,e,n){var r={},a=PI(e);if(!a||!t)return r;var i=[],o=[],s=e.ecModel,l=Foe(s).datasetMap,u=a.uid+"_"+n.seriesLayoutBy,c,f;t=t.slice(),q(t,function(v,g){var y=qt(v)?v:t[g]={name:v};y.type==="ordinal"&&c==null&&(c=g,f=p(y)),r[y.name]=[]});var d=l.get(u)||l.set(u,{categoryWayDim:f,valueWayDim:0});q(t,function(v,g){var y=v.name,m=p(v);if(c==null){var S=d.valueWayDim;h(r[y],S,m),h(o,S,m),d.valueWayDim+=m}else if(c===g)h(r[y],0,m),h(i,0,m);else{var S=d.categoryWayDim;h(r[y],S,m),h(o,S,m),d.categoryWayDim+=m}});function h(v,g,y){for(var m=0;m<y;m++)v.push(g+m)}function p(v){var g=v.dimsDef;return g?g.length:1}return i.length&&(r.itemName=i),o.length&&(r.seriesName=o),r}function $I(t,e,n){var r={},a=PI(t);if(!a)return r;var i=e.sourceFormat,o=e.dimensionsDefine,s;(i===Os||i===Cu)&&q(o,function(c,f){(qt(c)?c.name:c)==="name"&&(s=f)});var l=function(){for(var c={},f={},d=[],h=0,p=Math.min(5,n);h<p;h++){var v=Goe(e.data,i,e.seriesLayoutBy,o,e.startIndex,h);d.push(v);var g=v===fi.Not;if(g&&c.v==null&&h!==s&&(c.v=h),(c.n==null||c.n===c.v||!g&&d[c.n]===fi.Not)&&(c.n=h),y(c)&&d[c.n]!==fi.Not)return c;g||(v===fi.Might&&f.v==null&&h!==s&&(f.v=h),(f.n==null||f.n===f.v)&&(f.n=h))}function y(m){return m.v!=null&&m.n!=null}return y(c)?c:y(f)?f:null}();if(l){r.value=[l.v];var u=s??l.n;r.itemName=[u],r.seriesName=[u]}return r}function PI(t){var e=t.get("data",!0);if(!e)return nS(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},Ca).models[0]}function Cxt(t){return!t.get("transform",!0)&&!t.get("fromTransformResult",!0)?[]:nS(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},Ca).models}function Uoe(t,e){return Goe(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function Goe(t,e,n,r,a,i){var o,s=5;if(ko(t))return fi.Not;var l,u;if(r){var c=r[i];qt(c)?(l=c.name,u=c.type):Ot(c)&&(l=c)}if(u!=null)return u==="ordinal"?fi.Must:fi.Not;if(e===Bi){var f=t;if(n===$0){for(var d=f[i],h=0;h<(d||[]).length&&h<s;h++)if((o=w(d[a+h]))!=null)return o}else for(var h=0;h<f.length&&h<s;h++){var p=f[a+h];if(p&&(o=w(p[i]))!=null)return o}}else if(e===Os){var v=t;if(!l)return fi.Not;for(var h=0;h<v.length&&h<s;h++){var g=v[h];if(g&&(o=w(g[l]))!=null)return o}}else if(e===Cu){var y=t;if(!l)return fi.Not;var d=y[l];if(!d||ko(d))return fi.Not;for(var h=0;h<d.length&&h<s;h++)if((o=w(d[h]))!=null)return o}else if(e===Ls)for(var m=t,h=0;h<m.length&&h<s;h++){var g=m[h],S=D0(g);if(!st(S))return fi.Not;if((o=w(S[i]))!=null)return o}function w(C){var _=Ot(C);if(C!=null&&isFinite(C)&&C!=="")return _?fi.Might:fi.Not;if(_&&C!=="-")return fi.Must}return fi.Not}var IO=Gt();function Txt(t,e){Ii(IO.get(t)==null&&e),IO.set(t,e)}function Ext(t,e,n){var r=IO.get(e);if(!r)return n;var a=r(t);return a?n.concat(a):n}var FU=Gn(),Mxt=Gn(),FI=function(){function t(){}return t.prototype.getColorFromPalette=function(e,n,r){var a=mr(this.get("color",!0)),i=this.get("colorLayer",!0);return Hoe(this,FU,a,i,e,n,r)},t.prototype.clearColorPalette=function(){Axt(this,FU)},t}();function BO(t,e,n,r){var a=mr(t.get(["aria","decal","decals"]));return Hoe(t,Mxt,a,null,e,n,r)}function Dxt(t,e){for(var n=t.length,r=0;r<n;r++)if(t[r].length>e)return t[r];return t[n-1]}function Hoe(t,e,n,r,a,i,o){i=i||t;var s=e(i),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(a))return u[a];var c=o==null||!r?n:Dxt(r,o);if(c=c||n,!(!c||!c.length)){var f=c[l];return a&&(u[a]=f),s.paletteIdx=(l+1)%c.length,f}}function Axt(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}var Xw,Cy,zU,UU="\0_ec_inner",kxt=1,Woe=function(t){Fe(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(n,r,a,i,o,s){i=i||{},this.option=null,this._theme=new yr(i),this._locale=new yr(o),this._optionManager=s},e.prototype.setOption=function(n,r,a){var i=WU(r);this._optionManager.setOption(n,a,i),this._resetOption(null,i)},e.prototype.resetOption=function(n,r){return this._resetOption(n,WU(r))},e.prototype._resetOption=function(n,r){var a=!1,i=this._optionManager;if(!n||n==="recreate"){var o=i.mountOption(n==="recreate");!this.option||n==="recreate"?zU(this,o):(this.restoreData(),this._mergeOption(o,r)),a=!0}if((n==="timeline"||n==="media")&&this.restoreData(),!n||n==="recreate"||n==="timeline"){var s=i.getTimelineOption(this);s&&(a=!0,this._mergeOption(s,r))}if(!n||n==="recreate"||n==="media"){var l=i.getMediaOption(this);l.length&&q(l,function(u){a=!0,this._mergeOption(u,r)},this)}return a},e.prototype.mergeOption=function(n){this._mergeOption(n,null)},e.prototype._mergeOption=function(n,r){var a=this.option,i=this._componentsMap,o=this._componentsCount,s=[],l=Gt(),u=r&&r.replaceMergeMainTypeMap;_xt(this),q(n,function(f,d){f!=null&&(On.hasClass(d)?d&&(s.push(d),l.set(d,!0)):a[d]=a[d]==null?Zt(f):hn(a[d],f,!0))}),u&&u.each(function(f,d){On.hasClass(d)&&!l.get(d)&&(s.push(d),l.set(d,!0))}),On.topologicalTravel(s,On.getAllClassMainTypes(),c,this);function c(f){var d=Ext(this,f,mr(n[f])),h=i.get(f),p=h?u&&u.get(f)?"replaceMerge":"normalMerge":"replaceAll",v=bie(h,d,p);Ybt(v,f,On),a[f]=null,i.set(f,null),o.set(f,0);var g=[],y=[],m=0,S;q(v,function(w,C){var _=w.existing,x=w.newOption;if(!x)_&&(_.mergeOption({},this),_.optionUpdated({},!1));else{var T=f==="series",M=On.getClass(f,w.keyInfo.subType,!T);if(!M)return;if(f==="tooltip"){if(S)return;S=!0}if(_&&_.constructor===M)_.name=w.keyInfo.name,_.mergeOption(x,this),_.optionUpdated(x,!1);else{var E=et({componentIndex:C},w.keyInfo);_=new M(x,this,this,E),et(_,E),w.brandNew&&(_.__requireNewView=!0),_.init(x,this,this),_.optionUpdated(null,!0)}}_?(g.push(_.option),y.push(_),m++):(g.push(void 0),y.push(void 0))},this),a[f]=g,i.set(f,y),o.set(f,m),f==="series"&&Xw(this)}this._seriesIndices||Xw(this)},e.prototype.getOption=function(){var n=Zt(this.option);return q(n,function(r,a){if(On.hasClass(a)){for(var i=mr(r),o=i.length,s=!1,l=o-1;l>=0;l--)i[l]&&!Y1(i[l])?s=!0:(i[l]=null,!s&&o--);i.length=o,n[a]=i}}),delete n[UU],n},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(n){this._payload=n},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(n,r){var a=this._componentsMap.get(n);if(a){var i=a[r||0];if(i)return i;if(r==null){for(var o=0;o<a.length;o++)if(a[o])return a[o]}}},e.prototype.queryComponents=function(n){var r=n.mainType;if(!r)return[];var a=n.index,i=n.id,o=n.name,s=this._componentsMap.get(r);if(!s||!s.length)return[];var l;return a!=null?(l=[],q(mr(a),function(u){s[u]&&l.push(s[u])})):i!=null?l=GU("id",i,s):o!=null?l=GU("name",o,s):l=or(s,function(u){return!!u}),HU(l,n)},e.prototype.findComponents=function(n){var r=n.query,a=n.mainType,i=s(r),o=i?this.queryComponents(i):or(this._componentsMap.get(a),function(u){return!!u});return l(HU(o,n));function s(u){var c=a+"Index",f=a+"Id",d=a+"Name";return u&&(u[c]!=null||u[f]!=null||u[d]!=null)?{mainType:a,index:u[c],id:u[f],name:u[d]}:null}function l(u){return n.filter?or(u,n.filter):u}},e.prototype.eachComponent=function(n,r,a){var i=this._componentsMap;if(jt(n)){var o=r,s=n;i.each(function(f,d){for(var h=0;f&&h<f.length;h++){var p=f[h];p&&s.call(o,d,p,p.componentIndex)}})}else for(var l=Ot(n)?i.get(n):qt(n)?this.findComponents(n):null,u=0;l&&u<l.length;u++){var c=l[u];c&&r.call(a,c,c.componentIndex)}},e.prototype.getSeriesByName=function(n){var r=Ia(n,null);return or(this._componentsMap.get("series"),function(a){return!!a&&r!=null&&a.name===r})},e.prototype.getSeriesByIndex=function(n){return this._componentsMap.get("series")[n]},e.prototype.getSeriesByType=function(n){return or(this._componentsMap.get("series"),function(r){return!!r&&r.subType===n})},e.prototype.getSeries=function(){return or(this._componentsMap.get("series"),function(n){return!!n})},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(n,r){Cy(this),q(this._seriesIndices,function(a){var i=this._componentsMap.get("series")[a];n.call(r,i,a)},this)},e.prototype.eachRawSeries=function(n,r){q(this._componentsMap.get("series"),function(a){a&&n.call(r,a,a.componentIndex)})},e.prototype.eachSeriesByType=function(n,r,a){Cy(this),q(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];o.subType===n&&r.call(a,o,i)},this)},e.prototype.eachRawSeriesByType=function(n,r,a){return q(this.getSeriesByType(n),r,a)},e.prototype.isSeriesFiltered=function(n){return Cy(this),this._seriesIndicesMap.get(n.componentIndex)==null},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(n,r){Cy(this);var a=[];q(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];n.call(r,o,i)&&a.push(i)},this),this._seriesIndices=a,this._seriesIndicesMap=Gt(a)},e.prototype.restoreData=function(n){Xw(this);var r=this._componentsMap,a=[];r.each(function(i,o){On.hasClass(o)&&a.push(o)}),On.topologicalTravel(a,On.getAllClassMainTypes(),function(i){q(r.get(i),function(o){o&&(i!=="series"||!Rxt(o,n))&&o.restoreData()})})},e.internalField=function(){Xw=function(n){var r=n._seriesIndices=[];q(n._componentsMap.get("series"),function(a){a&&r.push(a.componentIndex)}),n._seriesIndicesMap=Gt(r)},Cy=function(n){},zU=function(n,r){n.option={},n.option[UU]=kxt,n._componentsMap=Gt({series:[]}),n._componentsCount=Gt();var a=r.aria;qt(a)&&a.enabled==null&&(a.enabled=!0),Lxt(r,n._theme.option),hn(r,xxt,!1),n._mergeOption(r,null)}}(),e}(yr);function Rxt(t,e){if(e){var n=e.seriesIndex,r=e.seriesId,a=e.seriesName;return n!=null&&t.componentIndex!==n||r!=null&&t.id!==r||a!=null&&t.name!==a}}function Lxt(t,e){var n=t.color&&!t.colorLayer;q(e,function(r,a){a==="colorLayer"&&n||On.hasClass(a)||(typeof r=="object"?t[a]=t[a]?hn(t[a],r,!1):Zt(r):t[a]==null&&(t[a]=r))})}function GU(t,e,n){if(st(e)){var r=Gt();return q(e,function(i){if(i!=null){var o=Ia(i,null);o!=null&&r.set(i,!0)}}),or(n,function(i){return i&&r.get(i[t])})}else{var a=Ia(e,null);return or(n,function(i){return i&&a!=null&&i[t]===a})}}function HU(t,e){return e.hasOwnProperty("subType")?or(t,function(n){return n&&n.subType===e.subType}):t}function WU(t){var e=Gt();return t&&q(mr(t.replaceMerge),function(n){e.set(n,!0)}),{replaceMergeMainTypeMap:e}}ha(Woe,FI);const joe=Woe;var Oxt=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],Vxt=function(){function t(e){q(Oxt,function(n){this[n]=Nt(e[n],e)},this)}return t}();const Koe=Vxt;var gA={},Nxt=function(){function t(){this._coordinateSystems=[]}return t.prototype.create=function(e,n){var r=[];q(gA,function(a,i){var o=a.create(e,n);r=r.concat(o||[])}),this._coordinateSystems=r},t.prototype.update=function(e,n){q(this._coordinateSystems,function(r){r.update&&r.update(e,n)})},t.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},t.register=function(e,n){gA[e]=n},t.get=function(e){return gA[e]},t}();const P0=Nxt;var Ixt=/^(min|max)?(.+)$/,Bxt=function(){function t(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return t.prototype.setOption=function(e,n,r){e&&(q(mr(e.series),function(o){o&&o.data&&ko(o.data)&&P1(o.data)}),q(mr(e.dataset),function(o){o&&o.source&&ko(o.source)&&P1(o.source)})),e=Zt(e);var a=this._optionBackup,i=$xt(e,n,!a);this._newBaseOption=i.baseOption,a?(i.timelineOptions.length&&(a.timelineOptions=i.timelineOptions),i.mediaList.length&&(a.mediaList=i.mediaList),i.mediaDefault&&(a.mediaDefault=i.mediaDefault)):this._optionBackup=i},t.prototype.mountOption=function(e){var n=this._optionBackup;return this._timelineOptions=n.timelineOptions,this._mediaList=n.mediaList,this._mediaDefault=n.mediaDefault,this._currentMediaIndices=[],Zt(e?n.baseOption:this._newBaseOption)},t.prototype.getTimelineOption=function(e){var n,r=this._timelineOptions;if(r.length){var a=e.getComponent("timeline");a&&(n=Zt(r[a.getCurrentIndex()]))}return n},t.prototype.getMediaOption=function(e){var n=this._api.getWidth(),r=this._api.getHeight(),a=this._mediaList,i=this._mediaDefault,o=[],s=[];if(!a.length&&!i)return s;for(var l=0,u=a.length;l<u;l++)Pxt(a[l].query,n,r)&&o.push(l);return!o.length&&i&&(o=[-1]),o.length&&!zxt(o,this._currentMediaIndices)&&(s=ut(o,function(c){return Zt(c===-1?i.option:a[c].option)})),this._currentMediaIndices=o,s},t}();function $xt(t,e,n){var r=[],a,i,o=t.baseOption,s=t.timeline,l=t.options,u=t.media,c=!!t.media,f=!!(l||s||o&&o.timeline);o?(i=o,i.timeline||(i.timeline=s)):((f||c)&&(t.options=t.media=null),i=t),c&&st(u)&&q(u,function(h){h&&h.option&&(h.query?r.push(h):a||(a=h))}),d(i),q(l,function(h){return d(h)}),q(r,function(h){return d(h.option)});function d(h){q(e,function(p){p(h,n)})}return{baseOption:i,timelineOptions:l||[],mediaDefault:a,mediaList:r}}function Pxt(t,e,n){var r={width:e,height:n,aspectratio:e/n},a=!0;return q(t,function(i,o){var s=o.match(Ixt);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();Fxt(r[u],i,l)||(a=!1)}}),a}function Fxt(t,e,n){return n==="min"?t>=e:n==="max"?t<=e:t===e}function zxt(t,e){return t.join(",")===e.join(",")}const Uxt=Bxt;var Fs=q,nb=qt,jU=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function yA(t){var e=t&&t.itemStyle;if(e)for(var n=0,r=jU.length;n<r;n++){var a=jU[n],i=e.normal,o=e.emphasis;i&&i[a]&&(t[a]=t[a]||{},t[a].normal?hn(t[a].normal,i[a]):t[a].normal=i[a],i[a]=null),o&&o[a]&&(t[a]=t[a]||{},t[a].emphasis?hn(t[a].emphasis,o[a]):t[a].emphasis=o[a],o[a]=null)}}function Ai(t,e,n){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var r=t[e].normal,a=t[e].emphasis;r&&(n?(t[e].normal=t[e].emphasis=null,Xt(t[e],r)):t[e]=r),a&&(t.emphasis=t.emphasis||{},t.emphasis[e]=a,a.focus&&(t.emphasis.focus=a.focus),a.blurScope&&(t.emphasis.blurScope=a.blurScope))}}function um(t){Ai(t,"itemStyle"),Ai(t,"lineStyle"),Ai(t,"areaStyle"),Ai(t,"label"),Ai(t,"labelLine"),Ai(t,"upperLabel"),Ai(t,"edgeLabel")}function _a(t,e){var n=nb(t)&&t[e],r=nb(n)&&n.textStyle;if(r)for(var a=0,i=qz.length;a<i;a++){var o=qz[a];r.hasOwnProperty(o)&&(n[o]=r[o])}}function is(t){t&&(um(t),_a(t,"label"),t.emphasis&&_a(t.emphasis,"label"))}function Gxt(t){if(nb(t)){yA(t),um(t),_a(t,"label"),_a(t,"upperLabel"),_a(t,"edgeLabel"),t.emphasis&&(_a(t.emphasis,"label"),_a(t.emphasis,"upperLabel"),_a(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(yA(e),is(e));var n=t.markLine;n&&(yA(n),is(n));var r=t.markArea;r&&is(r);var a=t.data;if(t.type==="graph"){a=a||t.nodes;var i=t.links||t.edges;if(i&&!ko(i))for(var o=0;o<i.length;o++)is(i[o]);q(t.categories,function(u){um(u)})}if(a&&!ko(a))for(var o=0;o<a.length;o++)is(a[o]);if(e=t.markPoint,e&&e.data)for(var s=e.data,o=0;o<s.length;o++)is(s[o]);if(n=t.markLine,n&&n.data)for(var l=n.data,o=0;o<l.length;o++)st(l[o])?(is(l[o][0]),is(l[o][1])):is(l[o]);t.type==="gauge"?(_a(t,"axisLabel"),_a(t,"title"),_a(t,"detail")):t.type==="treemap"?(Ai(t.breadcrumb,"itemStyle"),q(t.levels,function(u){um(u)})):t.type==="tree"&&um(t.leaves)}}function Vu(t){return st(t)?t:t?[t]:[]}function KU(t){return(st(t)?t[0]:t)||{}}function Hxt(t,e){Fs(Vu(t.series),function(r){nb(r)&&Gxt(r)});var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),Fs(n,function(r){Fs(Vu(t[r]),function(a){a&&(_a(a,"axisLabel"),_a(a.axisPointer,"label"))})}),Fs(Vu(t.parallel),function(r){var a=r&&r.parallelAxisDefault;_a(a,"axisLabel"),_a(a&&a.axisPointer,"label")}),Fs(Vu(t.calendar),function(r){Ai(r,"itemStyle"),_a(r,"dayLabel"),_a(r,"monthLabel"),_a(r,"yearLabel")}),Fs(Vu(t.radar),function(r){_a(r,"name"),r.name&&r.axisName==null&&(r.axisName=r.name,delete r.name),r.nameGap!=null&&r.axisNameGap==null&&(r.axisNameGap=r.nameGap,delete r.nameGap)}),Fs(Vu(t.geo),function(r){nb(r)&&(is(r),Fs(Vu(r.regions),function(a){is(a)}))}),Fs(Vu(t.timeline),function(r){is(r),Ai(r,"label"),Ai(r,"itemStyle"),Ai(r,"controlStyle",!0);var a=r.data;st(a)&&q(a,function(i){qt(i)&&(Ai(i,"label"),Ai(i,"itemStyle"))})}),Fs(Vu(t.toolbox),function(r){Ai(r,"iconStyle"),Fs(r.feature,function(a){Ai(a,"iconStyle")})}),_a(KU(t.axisPointer),"label"),_a(KU(t.tooltip).axisPointer,"label")}function Wxt(t,e){for(var n=e.split(","),r=t,a=0;a<n.length&&(r=r&&r[n[a]],r!=null);a++);return r}function jxt(t,e,n,r){for(var a=e.split(","),i=t,o,s=0;s<a.length-1;s++)o=a[s],i[o]==null&&(i[o]={}),i=i[o];(r||i[a[s]]==null)&&(i[a[s]]=n)}function YU(t){t&&q(Kxt,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}var Kxt=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],Yxt=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],mA=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Ty(t){var e=t&&t.itemStyle;if(e)for(var n=0;n<mA.length;n++){var r=mA[n][1],a=mA[n][0];e[r]!=null&&(e[a]=e[r])}}function XU(t){t&&t.alignTo==="edge"&&t.margin!=null&&t.edgeDistance==null&&(t.edgeDistance=t.margin)}function qU(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function Xxt(t){t&&t.focusNodeAdjacency!=null&&(t.emphasis=t.emphasis||{},t.emphasis.focus==null&&(t.emphasis.focus="adjacency"))}function Yoe(t,e){if(t)for(var n=0;n<t.length;n++)e(t[n]),t[n]&&Yoe(t[n].children,e)}function Xoe(t,e){Hxt(t,e),t.series=mr(t.series),q(t.series,function(n){if(qt(n)){var r=n.type;if(r==="line")n.clipOverflow!=null&&(n.clip=n.clipOverflow);else if(r==="pie"||r==="gauge"){n.clockWise!=null&&(n.clockwise=n.clockWise),XU(n.label);var a=n.data;if(a&&!ko(a))for(var i=0;i<a.length;i++)XU(a[i]);n.hoverOffset!=null&&(n.emphasis=n.emphasis||{},(n.emphasis.scaleSize=null)&&(n.emphasis.scaleSize=n.hoverOffset))}else if(r==="gauge"){var o=Wxt(n,"pointer.color");o!=null&&jxt(n,"itemStyle.color",o)}else if(r==="bar"){Ty(n),Ty(n.backgroundStyle),Ty(n.emphasis);var a=n.data;if(a&&!ko(a))for(var i=0;i<a.length;i++)typeof a[i]=="object"&&(Ty(a[i]),Ty(a[i]&&a[i].emphasis))}else if(r==="sunburst"){var s=n.highlightPolicy;s&&(n.emphasis=n.emphasis||{},n.emphasis.focus||(n.emphasis.focus=s)),qU(n),Yoe(n.data,qU)}else r==="graph"||r==="sankey"?Xxt(n):r==="map"&&(n.mapType&&!n.map&&(n.map=n.mapType),n.mapLocation&&Xt(n,n.mapLocation));n.hoverAnimation!=null&&(n.emphasis=n.emphasis||{},n.emphasis&&n.emphasis.scale==null&&(n.emphasis.scale=n.hoverAnimation)),YU(n)}}),t.dataRange&&(t.visualMap=t.dataRange),q(Yxt,function(n){var r=t[n];r&&(st(r)||(r=[r]),q(r,function(a){YU(a)}))})}function qxt(t){var e=Gt();t.eachSeries(function(n){var r=n.get("stack");if(r){var a=e.get(r)||e.set(r,[]),i=n.getData(),o={stackResultDimension:i.getCalculationInfo("stackResultDimension"),stackedOverDimension:i.getCalculationInfo("stackedOverDimension"),stackedDimension:i.getCalculationInfo("stackedDimension"),stackedByDimension:i.getCalculationInfo("stackedByDimension"),isStackedByIndex:i.getCalculationInfo("isStackedByIndex"),data:i,seriesModel:n};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;a.length&&i.setCalculationInfo("stackedOnSeries",a[a.length-1].seriesModel),a.push(o)}}),e.each(Zxt)}function Zxt(t){q(t,function(e,n){var r=[],a=[NaN,NaN],i=[e.stackResultDimension,e.stackedOverDimension],o=e.data,s=e.isStackedByIndex,l=e.seriesModel.get("stackStrategy")||"samesign";o.modify(i,function(u,c,f){var d=o.get(e.stackedDimension,f);if(isNaN(d))return a;var h,p;s?p=o.getRawIndex(f):h=o.get(e.stackedByDimension,f);for(var v=NaN,g=n-1;g>=0;g--){var y=t[g];if(s||(p=y.data.rawIndexOf(y.stackedByDimension,h)),p>=0){var m=y.data.getByRawIndex(y.stackResultDimension,p);if(l==="all"||l==="positive"&&m>0||l==="negative"&&m<0||l==="samesign"&&d>=0&&m>0||l==="samesign"&&d<=0&&m<0){d=$bt(d,m),v=m;break}}}return r[0]=d,r[1]=v,r})})}var CE=function(){function t(e){this.data=e.data||(e.sourceFormat===Cu?{}:[]),this.sourceFormat=e.sourceFormat||Poe,this.seriesLayoutBy=e.seriesLayoutBy||uu,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var n=this.dimensionsDefine=e.dimensionsDefine;if(n)for(var r=0;r<n.length;r++){var a=n[r];a.type==null&&Uoe(this,r)===fi.Must&&(a.type="ordinal")}}return t}();function zI(t){return t instanceof CE}function $O(t,e,n){n=n||qoe(t);var r=e.seriesLayoutBy,a=Jxt(t,n,r,e.sourceHeader,e.dimensions),i=new CE({data:t,sourceFormat:n,seriesLayoutBy:r,dimensionsDefine:a.dimensionsDefine,startIndex:a.startIndex,dimensionsDetectedCount:a.dimensionsDetectedCount,metaRawOption:Zt(e)});return i}function UI(t){return new CE({data:t,sourceFormat:ko(t)?If:Ls})}function Qxt(t){return new CE({data:t.data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:Zt(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})}function qoe(t){var e=Poe;if(ko(t))e=If;else if(st(t)){t.length===0&&(e=Bi);for(var n=0,r=t.length;n<r;n++){var a=t[n];if(a!=null){if(st(a)){e=Bi;break}else if(qt(a)){e=Os;break}}}}else if(qt(t)){for(var i in t)if(Bt(t,i)&&mi(t[i])){e=Cu;break}}return e}function Jxt(t,e,n,r,a){var i,o;if(!t)return{dimensionsDefine:ZU(a),startIndex:o,dimensionsDetectedCount:i};if(e===Bi){var s=t;r==="auto"||r==null?QU(function(u){u!=null&&u!=="-"&&(Ot(u)?o==null&&(o=1):o=0)},n,s,10):o=Un(r)?r:r?1:0,!a&&o===1&&(a=[],QU(function(u,c){a[c]=u!=null?u+"":""},n,s,1/0)),i=a?a.length:n===$0?s.length:s[0]?s[0].length:null}else if(e===Os)a||(a=e_t(t));else if(e===Cu)a||(a=[],q(t,function(u,c){a.push(c)}));else if(e===Ls){var l=D0(t[0]);i=st(l)&&l.length||1}return{startIndex:o,dimensionsDefine:ZU(a),dimensionsDetectedCount:i}}function e_t(t){for(var e=0,n;e<t.length&&!(n=t[e++]););if(n)return Dn(n)}function ZU(t){if(t){var e=Gt();return ut(t,function(n,r){n=qt(n)?n:{name:n};var a={name:n.name,displayName:n.displayName,type:n.type};if(a.name==null)return a;a.name+="",a.displayName==null&&(a.displayName=a.name);var i=e.get(a.name);return i?a.name+="-"+i.count++:e.set(a.name,{count:1}),a})}}function QU(t,e,n,r){if(e===$0)for(var a=0;a<n.length&&a<r;a++)t(n[a]?n[a][0]:null,a);else for(var i=n[0]||[],a=0;a<i.length&&a<r;a++)t(i[a],a)}function Zoe(t){var e=t.sourceFormat;return e===Os||e===Cu}var Qd,Jd,eh,JU,eG,Qoe=function(){function t(e,n){var r=zI(e)?e:UI(e);this._source=r;var a=this._data=r.data;r.sourceFormat===If&&(this._offset=0,this._dimSize=n,this._data=a),eG(this,a,r)}return t.prototype.getSource=function(){return this._source},t.prototype.count=function(){return 0},t.prototype.getItem=function(e,n){},t.prototype.appendData=function(e){},t.prototype.clean=function(){},t.protoInitialize=function(){var e=t.prototype;e.pure=!1,e.persistent=!0}(),t.internalField=function(){var e;eG=function(o,s,l){var u=l.sourceFormat,c=l.seriesLayoutBy,f=l.startIndex,d=l.dimensionsDefine,h=JU[GI(u,c)];if(et(o,h),u===If)o.getItem=n,o.count=a,o.fillStorage=r;else{var p=Joe(u,c);o.getItem=Nt(p,null,s,f,d);var v=ese(u,c);o.count=Nt(v,null,s,f,d)}};var n=function(o,s){o=o-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,c=u*o,f=0;f<u;f++)s[f]=l[c+f];return s},r=function(o,s,l,u){for(var c=this._data,f=this._dimSize,d=0;d<f;d++){for(var h=u[d],p=h[0]==null?1/0:h[0],v=h[1]==null?-1/0:h[1],g=s-o,y=l[d],m=0;m<g;m++){var S=c[m*f+d];y[o+m]=S,S<p&&(p=S),S>v&&(v=S)}h[0]=p,h[1]=v}},a=function(){return this._data?this._data.length/this._dimSize:0};JU=(e={},e[Bi+"_"+uu]={pure:!0,appendData:i},e[Bi+"_"+$0]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[Os]={pure:!0,appendData:i},e[Cu]={pure:!0,appendData:function(o){var s=this._data;q(o,function(l,u){for(var c=s[u]||(s[u]=[]),f=0;f<(l||[]).length;f++)c.push(l[f])})}},e[Ls]={appendData:i},e[If]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},e);function i(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}}(),t}(),tG=function(t,e,n,r){return t[r]},t_t=(Qd={},Qd[Bi+"_"+uu]=function(t,e,n,r){return t[r+e]},Qd[Bi+"_"+$0]=function(t,e,n,r,a){r+=e;for(var i=a||[],o=t,s=0;s<o.length;s++){var l=o[s];i[s]=l?l[r]:null}return i},Qd[Os]=tG,Qd[Cu]=function(t,e,n,r,a){for(var i=a||[],o=0;o<n.length;o++){var s=n[o].name,l=t[s];i[o]=l?l[r]:null}return i},Qd[Ls]=tG,Qd);function Joe(t,e){var n=t_t[GI(t,e)];return n}var nG=function(t,e,n){return t.length},n_t=(Jd={},Jd[Bi+"_"+uu]=function(t,e,n){return Math.max(0,t.length-e)},Jd[Bi+"_"+$0]=function(t,e,n){var r=t[0];return r?Math.max(0,r.length-e):0},Jd[Os]=nG,Jd[Cu]=function(t,e,n){var r=n[0].name,a=t[r];return a?a.length:0},Jd[Ls]=nG,Jd);function ese(t,e){var n=n_t[GI(t,e)];return n}var bA=function(t,e,n){return t[e]},r_t=(eh={},eh[Bi]=bA,eh[Os]=function(t,e,n){return t[n]},eh[Cu]=bA,eh[Ls]=function(t,e,n){var r=D0(t);return r instanceof Array?r[e]:r},eh[If]=bA,eh);function tse(t){var e=r_t[t];return e}function GI(t,e){return t===Bi?t+"_"+e:t}function r0(t,e,n){if(t){var r=t.getRawDataItem(e);if(r!=null){var a=t.getStore(),i=a.getSource().sourceFormat;if(n!=null){var o=t.getDimensionIndex(n),s=a.getDimensionProperty(o);return tse(i)(r,o,s)}else{var l=r;return i===Ls&&(l=D0(r)),l}}}}var a_t=/\{@(.+?)\}/g,HI=function(){function t(){}return t.prototype.getDataParams=function(e,n){var r=this.getData(n),a=this.getRawValue(e,n),i=r.getRawIndex(e),o=r.getName(e),s=r.getRawDataItem(e),l=r.getItemVisual(e,"style"),u=l&&l[r.getItemVisual(e,"drawType")||"fill"],c=l&&l.stroke,f=this.mainType,d=f==="series",h=r.userOutput&&r.userOutput.get();return{componentType:f,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:d?this.subType:null,seriesIndex:this.seriesIndex,seriesId:d?this.id:null,seriesName:d?this.name:null,name:o,dataIndex:i,data:s,dataType:n,value:a,color:u,borderColor:c,dimensionNames:h?h.fullDimensions:null,encode:h?h.encode:null,$vars:["seriesName","name","value"]}},t.prototype.getFormattedLabel=function(e,n,r,a,i,o){n=n||"normal";var s=this.getData(r),l=this.getDataParams(e,r);if(o&&(l.value=o.interpolatedValue),a!=null&&st(l.value)&&(l.value=l.value[a]),!i){var u=s.getItemModel(e);i=u.get(n==="normal"?["label","formatter"]:[n,"label","formatter"])}if(jt(i))return l.status=n,l.dimensionIndex=a,i(l);if(Ot(i)){var c=II(i,l);return c.replace(a_t,function(f,d){var h=d.length,p=d;p.charAt(0)==="["&&p.charAt(h-1)==="]"&&(p=+p.slice(1,h-1));var v=r0(s,e,p);if(o&&st(o.interpolatedValue)){var g=s.getDimensionIndex(p);g>=0&&(v=o.interpolatedValue[g])}return v!=null?v+"":""})}},t.prototype.getRawValue=function(e,n){return r0(this.getData(n),e)},t.prototype.formatTooltip=function(e,n,r){},t}();function rG(t){var e,n;return qt(t)?t.type&&(n=t):e=t,{text:e,frag:n}}function Wm(t){return new i_t(t)}var i_t=function(){function t(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return t.prototype.perform=function(e){var n=this._upstream,r=e&&e.skip;if(this._dirty&&n){var a=this.context;a.data=a.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!r&&(i=this._plan(this.context));var o=c(this._modBy),s=this._modDataCount||0,l=c(e&&e.modBy),u=e&&e.modDataCount||0;(o!==l||s!==u)&&(i="reset");function c(m){return!(m>=1)&&(m=1),m}var f;(this._dirty||i==="reset")&&(this._dirty=!1,f=this._doReset(r)),this._modBy=l,this._modDataCount=u;var d=e&&e.step;if(n?this._dueEnd=n._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var h=this._dueIndex,p=Math.min(d!=null?this._dueIndex+d:1/0,this._dueEnd);if(!r&&(f||h<p)){var v=this._progress;if(st(v))for(var g=0;g<v.length;g++)this._doProgress(v[g],h,p,l,u);else this._doProgress(v,h,p,l,u)}this._dueIndex=p;var y=this._settedOutputEnd!=null?this._settedOutputEnd:p;this._outputDueEnd=y}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},t.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},t.prototype._doProgress=function(e,n,r,a,i){aG.reset(n,r,a,i),this._callingProgress=e,this._callingProgress({start:n,end:r,count:r-n,next:aG.next},this.context)},t.prototype._doReset=function(e){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var n,r;!e&&this._reset&&(n=this._reset(this.context),n&&n.progress&&(r=n.forceFirstProgress,n=n.progress),st(n)&&!n.length&&(n=null)),this._progress=n,this._modBy=this._modDataCount=null;var a=this._downstream;return a&&a.dirty(),r},t.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},t.prototype.pipe=function(e){(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},t.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},t.prototype.getUpstream=function(){return this._upstream},t.prototype.getDownstream=function(){return this._downstream},t.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},t}(),aG=function(){var t,e,n,r,a,i={reset:function(l,u,c,f){e=l,t=u,n=c,r=f,a=Math.ceil(r/n),i.next=n>1&&r>0?s:o}};return i;function o(){return e<t?e++:null}function s(){var l=e%a*n+Math.ceil(e/a),u=e>=t?null:l<r?l:e;return e++,u}}();function Bf(t,e){var n=e&&e.type;return n==="ordinal"?t:(n==="time"&&!Un(t)&&t!=null&&t!=="-"&&(t=+jo(t)),t==null||t===""?NaN:+t)}var o_t=Gt({number:function(t){return parseFloat(t)},time:function(t){return+jo(t)},trim:function(t){return Ot(t)?vs(t):t}});function nse(t){return o_t.get(t)}var rse={lt:function(t,e){return t<e},lte:function(t,e){return t<=e},gt:function(t,e){return t>e},gte:function(t,e){return t>=e}},s_t=function(){function t(e,n){if(!Un(n)){var r="";tr(r)}this._opFn=rse[e],this._rvalFloat=yu(n)}return t.prototype.evaluate=function(e){return Un(e)?this._opFn(e,this._rvalFloat):this._opFn(yu(e),this._rvalFloat)},t}(),ase=function(){function t(e,n){var r=e==="desc";this._resultLT=r?1:-1,n==null&&(n=r?"min":"max"),this._incomparable=n==="min"?-1/0:1/0}return t.prototype.evaluate=function(e,n){var r=Un(e)?e:yu(e),a=Un(n)?n:yu(n),i=isNaN(r),o=isNaN(a);if(i&&(r=this._incomparable),o&&(a=this._incomparable),i&&o){var s=Ot(e),l=Ot(n);s&&(r=l?e:0),l&&(a=s?n:0)}return r<a?this._resultLT:r>a?-this._resultLT:0},t}(),l_t=function(){function t(e,n){this._rval=n,this._isEQ=e,this._rvalTypeof=typeof n,this._rvalFloat=yu(n)}return t.prototype.evaluate=function(e){var n=e===this._rval;if(!n){var r=typeof e;r!==this._rvalTypeof&&(r==="number"||this._rvalTypeof==="number")&&(n=yu(e)===this._rvalFloat)}return this._isEQ?n:!n},t}();function u_t(t,e){return t==="eq"||t==="ne"?new l_t(t==="eq",e):Bt(rse,t)?new s_t(t,e):null}var c_t=function(){function t(){}return t.prototype.getRawData=function(){throw new Error("not supported")},t.prototype.getRawDataItem=function(e){throw new Error("not supported")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(e){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(e,n){},t.prototype.retrieveValueFromItem=function(e,n){},t.prototype.convertValue=function(e,n){return Bf(e,n)},t}();function f_t(t,e){var n=new c_t,r=t.data,a=n.sourceFormat=t.sourceFormat,i=t.startIndex,o="";t.seriesLayoutBy!==uu&&tr(o);var s=[],l={},u=t.dimensionsDefine;if(u)q(u,function(v,g){var y=v.name,m={index:g,name:y,displayName:v.displayName};if(s.push(m),y!=null){var S="";Bt(l,y)&&tr(S),l[y]=m}});else for(var c=0;c<t.dimensionsDetectedCount;c++)s.push({index:c});var f=Joe(a,uu);e.__isBuiltIn&&(n.getRawDataItem=function(v){return f(r,i,s,v)},n.getRawData=Nt(d_t,null,t)),n.cloneRawData=Nt(h_t,null,t);var d=ese(a,uu);n.count=Nt(d,null,r,i,s);var h=tse(a);n.retrieveValue=function(v,g){var y=f(r,i,s,v);return p(y,g)};var p=n.retrieveValueFromItem=function(v,g){if(v!=null){var y=s[g];if(y)return h(v,g,y.name)}};return n.getDimensionInfo=Nt(p_t,null,s,l),n.cloneAllDimensionInfo=Nt(v_t,null,s),n}function d_t(t){var e=t.sourceFormat;if(!WI(e)){var n="";tr(n)}return t.data}function h_t(t){var e=t.sourceFormat,n=t.data;if(!WI(e)){var r="";tr(r)}if(e===Bi){for(var a=[],i=0,o=n.length;i<o;i++)a.push(n[i].slice());return a}else if(e===Os){for(var a=[],i=0,o=n.length;i<o;i++)a.push(et({},n[i]));return a}}function p_t(t,e,n){if(n!=null){if(Un(n)||!isNaN(n)&&!Bt(e,n))return t[n];if(Bt(e,n))return e[n]}}function v_t(t){return Zt(t)}var ise=Gt();function g_t(t){t=Zt(t);var e=t.type,n="";e||tr(n);var r=e.split(":");r.length!==2&&tr(n);var a=!1;r[0]==="echarts"&&(e=r[1],a=!0),t.__isBuiltIn=a,ise.set(e,t)}function y_t(t,e,n){var r=mr(t),a=r.length,i="";a||tr(i);for(var o=0,s=a;o<s;o++){var l=r[o];e=m_t(l,e),o!==s-1&&(e.length=Math.max(e.length,1))}return e}function m_t(t,e,n,r){var a="";e.length||tr(a),qt(t)||tr(a);var i=t.type,o=ise.get(i);o||tr(a);var s=ut(e,function(u){return f_t(u,o)}),l=mr(o.transform({upstream:s[0],upstreamList:s,config:Zt(t.config)}));return ut(l,function(u,c){var f="";qt(u)||tr(f),u.data||tr(f);var d=qoe(u.data);WI(d)||tr(f);var h,p=e[0];if(p&&c===0&&!u.dimensions){var v=p.startIndex;v&&(u.data=p.data.slice(0,v).concat(u.data)),h={seriesLayoutBy:uu,sourceHeader:v,dimensions:p.metaRawOption.dimensions}}else h={seriesLayoutBy:uu,sourceHeader:0,dimensions:u.dimensions};return $O(u.data,h,null)})}function WI(t){return t===Bi||t===Os}var TE="undefined",b_t=typeof Uint32Array===TE?Array:Uint32Array,S_t=typeof Uint16Array===TE?Array:Uint16Array,ose=typeof Int32Array===TE?Array:Int32Array,iG=typeof Float64Array===TE?Array:Float64Array,sse={float:iG,int:ose,ordinal:Array,number:Array,time:iG},SA;function Ey(t){return t>65535?b_t:S_t}function gv(){return[1/0,-1/0]}function w_t(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function oG(t,e,n,r,a){var i=sse[n||"float"];if(a){var o=t[e],s=o&&o.length;if(s!==r){for(var l=new i(r),u=0;u<s;u++)l[u]=o[u];t[e]=l}}else t[e]=new i(r)}var x_t=function(){function t(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=Gt()}return t.prototype.initData=function(e,n,r){this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var a=e.getSource(),i=this.defaultDimValueGetter=SA[a.sourceFormat];this._dimValueGetter=r||i,this._rawExtent=[],Zoe(a),this._dimensions=ut(n,function(o){return{type:o.type,property:o.property}}),this._initDataFromProvider(0,e.count())},t.prototype.getProvider=function(){return this._provider},t.prototype.getSource=function(){return this._provider.getSource()},t.prototype.ensureCalculationDimension=function(e,n){var r=this._calcDimNameToIdx,a=this._dimensions,i=r.get(e);if(i!=null){if(a[i].type===n)return i}else i=a.length;return a[i]={type:n},r.set(e,i),this._chunks[i]=new sse[n||"float"](this._rawCount),this._rawExtent[i]=gv(),i},t.prototype.collectOrdinalMeta=function(e,n){var r=this._chunks[e],a=this._dimensions[e],i=this._rawExtent,o=a.ordinalOffset||0,s=r.length;o===0&&(i[e]=gv());for(var l=i[e],u=o;u<s;u++){var c=r[u]=n.parseAndCollect(r[u]);isNaN(c)||(l[0]=Math.min(c,l[0]),l[1]=Math.max(c,l[1]))}a.ordinalMeta=n,a.ordinalOffset=s,a.type="ordinal"},t.prototype.getOrdinalMeta=function(e){var n=this._dimensions[e],r=n.ordinalMeta;return r},t.prototype.getDimensionProperty=function(e){var n=this._dimensions[e];return n&&n.property},t.prototype.appendData=function(e){var n=this._provider,r=this.count();n.appendData(e);var a=n.count();return n.persistent||(a+=r),r<a&&this._initDataFromProvider(r,a,!0),[r,a]},t.prototype.appendValues=function(e,n){for(var r=this._chunks,a=this._dimensions,i=a.length,o=this._rawExtent,s=this.count(),l=s+Math.max(e.length,n||0),u=0;u<i;u++){var c=a[u];oG(r,u,c.type,l,!0)}for(var f=[],d=s;d<l;d++)for(var h=d-s,p=0;p<i;p++){var c=a[p],v=SA.arrayRows.call(this,e[h]||f,c.property,h,p);r[p][d]=v;var g=o[p];v<g[0]&&(g[0]=v),v>g[1]&&(g[1]=v)}return this._rawCount=this._count=l,{start:s,end:l}},t.prototype._initDataFromProvider=function(e,n,r){for(var a=this._provider,i=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=ut(o,function(m){return m.property}),c=0;c<s;c++){var f=o[c];l[c]||(l[c]=gv()),oG(i,c,f.type,n,r)}if(a.fillStorage)a.fillStorage(e,n,i,l);else for(var d=[],h=e;h<n;h++){d=a.getItem(h,d);for(var p=0;p<s;p++){var v=i[p],g=this._dimValueGetter(d,u[p],h,p);v[h]=g;var y=l[p];g<y[0]&&(y[0]=g),g>y[1]&&(y[1]=g)}}!a.persistent&&a.clean&&a.clean(),this._rawCount=this._count=n,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(e,n){if(!(n>=0&&n<this._count))return NaN;var r=this._chunks[e];return r?r[this.getRawIndex(n)]:NaN},t.prototype.getValues=function(e,n){var r=[],a=[];if(n==null){n=e,e=[];for(var i=0;i<this._dimensions.length;i++)a.push(i)}else a=e;for(var i=0,o=a.length;i<o;i++)r.push(this.get(a[i],n));return r},t.prototype.getByRawIndex=function(e,n){if(!(n>=0&&n<this._rawCount))return NaN;var r=this._chunks[e];return r?r[n]:NaN},t.prototype.getSum=function(e){var n=this._chunks[e],r=0;if(n)for(var a=0,i=this.count();a<i;a++){var o=this.get(e,a);isNaN(o)||(r+=o)}return r},t.prototype.getMedian=function(e){var n=[];this.each([e],function(i){isNaN(i)||n.push(i)});var r=n.sort(function(i,o){return i-o}),a=this.count();return a===0?0:a%2===1?r[(a-1)/2]:(r[a/2]+r[a/2-1])/2},t.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var n=this._indices,r=n[e];if(r!=null&&r<this._count&&r===e)return e;for(var a=0,i=this._count-1;a<=i;){var o=(a+i)/2|0;if(n[o]<e)a=o+1;else if(n[o]>e)i=o-1;else return o}return-1},t.prototype.indicesOfNearest=function(e,n,r){var a=this._chunks,i=a[e],o=[];if(!i)return o;r==null&&(r=1/0);for(var s=1/0,l=-1,u=0,c=0,f=this.count();c<f;c++){var d=this.getRawIndex(c),h=n-i[d],p=Math.abs(h);p<=r&&((p<s||p===s&&h>=0&&l<0)&&(s=p,l=h,u=0),h===l&&(o[u++]=c))}return o.length=u,o},t.prototype.getIndices=function(){var e,n=this._indices;if(n){var r=n.constructor,a=this._count;if(r===Array){e=new r(a);for(var i=0;i<a;i++)e[i]=n[i]}else e=new r(n.buffer,0,a)}else{var r=Ey(this._rawCount);e=new r(this.count());for(var i=0;i<e.length;i++)e[i]=i}return e},t.prototype.filter=function(e,n){if(!this._count)return this;for(var r=this.clone(),a=r.count(),i=Ey(r._rawCount),o=new i(a),s=[],l=e.length,u=0,c=e[0],f=r._chunks,d=0;d<a;d++){var h=void 0,p=r.getRawIndex(d);if(l===0)h=n(d);else if(l===1){var v=f[c][p];h=n(v,d)}else{for(var g=0;g<l;g++)s[g]=f[e[g]][p];s[g]=d,h=n.apply(null,s)}h&&(o[u++]=p)}return u<a&&(r._indices=o),r._count=u,r._extent=[],r._updateGetRawIdx(),r},t.prototype.selectRange=function(e){var n=this.clone(),r=n._count;if(!r)return this;var a=Dn(e),i=a.length;if(!i)return this;var o=n.count(),s=Ey(n._rawCount),l=new s(o),u=0,c=a[0],f=e[c][0],d=e[c][1],h=n._chunks,p=!1;if(!n._indices){var v=0;if(i===1){for(var g=h[a[0]],y=0;y<r;y++){var m=g[y];(m>=f&&m<=d||isNaN(m))&&(l[u++]=v),v++}p=!0}else if(i===2){for(var g=h[a[0]],S=h[a[1]],w=e[a[1]][0],C=e[a[1]][1],y=0;y<r;y++){var m=g[y],_=S[y];(m>=f&&m<=d||isNaN(m))&&(_>=w&&_<=C||isNaN(_))&&(l[u++]=v),v++}p=!0}}if(!p)if(i===1)for(var y=0;y<o;y++){var x=n.getRawIndex(y),m=h[a[0]][x];(m>=f&&m<=d||isNaN(m))&&(l[u++]=x)}else for(var y=0;y<o;y++){for(var T=!0,x=n.getRawIndex(y),M=0;M<i;M++){var E=a[M],m=h[E][x];(m<e[E][0]||m>e[E][1])&&(T=!1)}T&&(l[u++]=n.getRawIndex(y))}return u<o&&(n._indices=l),n._count=u,n._extent=[],n._updateGetRawIdx(),n},t.prototype.map=function(e,n){var r=this.clone(e);return this._updateDims(r,e,n),r},t.prototype.modify=function(e,n){this._updateDims(this,e,n)},t.prototype._updateDims=function(e,n,r){for(var a=e._chunks,i=[],o=n.length,s=e.count(),l=[],u=e._rawExtent,c=0;c<n.length;c++)u[n[c]]=gv();for(var f=0;f<s;f++){for(var d=e.getRawIndex(f),h=0;h<o;h++)l[h]=a[n[h]][d];l[o]=f;var p=r&&r.apply(null,l);if(p!=null){typeof p!="object"&&(i[0]=p,p=i);for(var c=0;c<p.length;c++){var v=n[c],g=p[c],y=u[v],m=a[v];m&&(m[d]=g),g<y[0]&&(y[0]=g),g>y[1]&&(y[1]=g)}}}},t.prototype.lttbDownSample=function(e,n){var r=this.clone([e],!0),a=r._chunks,i=a[e],o=this.count(),s=0,l=Math.floor(1/n),u=this.getRawIndex(0),c,f,d,h=new(Ey(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));h[s++]=u;for(var p=1;p<o-1;p+=l){for(var v=Math.min(p+l,o-1),g=Math.min(p+l*2,o),y=(g+v)/2,m=0,S=v;S<g;S++){var w=this.getRawIndex(S),C=i[w];isNaN(C)||(m+=C)}m/=g-v;var _=p,x=Math.min(p+l,o),T=p-1,M=i[u];c=-1,d=_;for(var E=-1,A=0,S=_;S<x;S++){var w=this.getRawIndex(S),C=i[w];if(isNaN(C)){A++,E<0&&(E=w);continue}f=Math.abs((T-y)*(C-M)-(T-S)*(m-M)),f>c&&(c=f,d=w)}A>0&&A<x-_&&(h[s++]=Math.min(E,d),d=Math.max(E,d)),h[s++]=d,u=d}return h[s++]=this.getRawIndex(o-1),r._count=s,r._indices=h,r.getRawIndex=this._getRawIdx,r},t.prototype.downSample=function(e,n,r,a){for(var i=this.clone([e],!0),o=i._chunks,s=[],l=Math.floor(1/n),u=o[e],c=this.count(),f=i._rawExtent[e]=gv(),d=new(Ey(this._rawCount))(Math.ceil(c/l)),h=0,p=0;p<c;p+=l){l>c-p&&(l=c-p,s.length=l);for(var v=0;v<l;v++){var g=this.getRawIndex(p+v);s[v]=u[g]}var y=r(s),m=this.getRawIndex(Math.min(p+a(s,y)||0,c-1));u[m]=y,y<f[0]&&(f[0]=y),y>f[1]&&(f[1]=y),d[h++]=m}return i._count=h,i._indices=d,i._updateGetRawIdx(),i},t.prototype.each=function(e,n){if(this._count)for(var r=e.length,a=this._chunks,i=0,o=this.count();i<o;i++){var s=this.getRawIndex(i);switch(r){case 0:n(i);break;case 1:n(a[e[0]][s],i);break;case 2:n(a[e[0]][s],a[e[1]][s],i);break;default:for(var l=0,u=[];l<r;l++)u[l]=a[e[l]][s];u[l]=i,n.apply(null,u)}}},t.prototype.getDataExtent=function(e){var n=this._chunks[e],r=gv();if(!n)return r;var a=this.count(),i=!this._indices,o;if(i)return this._rawExtent[e].slice();if(o=this._extent[e],o)return o.slice();o=r;for(var s=o[0],l=o[1],u=0;u<a;u++){var c=this.getRawIndex(u),f=n[c];f<s&&(s=f),f>l&&(l=f)}return o=[s,l],this._extent[e]=o,o},t.prototype.getRawDataItem=function(e){var n=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(n);for(var r=[],a=this._chunks,i=0;i<a.length;i++)r.push(a[i][n]);return r},t.prototype.clone=function(e,n){var r=new t,a=this._chunks,i=e&&Ds(e,function(s,l){return s[l]=!0,s},{});if(i)for(var o=0;o<a.length;o++)r._chunks[o]=i[o]?w_t(a[o]):a[o];else r._chunks=a;return this._copyCommonProps(r),n||(r._indices=this._cloneIndices()),r._updateGetRawIdx(),r},t.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=Zt(this._extent),e._rawExtent=Zt(this._rawExtent)},t.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,n=void 0;if(e===Array){var r=this._indices.length;n=new e(r);for(var a=0;a<r;a++)n[a]=this._indices[a]}else n=new e(this._indices);return n}return null},t.prototype._getRawIdxIdentity=function(e){return e},t.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=function(){function e(n,r,a,i){return Bf(n[i],this._dimensions[i])}SA={arrayRows:e,objectRows:function(n,r,a,i){return Bf(n[r],this._dimensions[i])},keyedColumns:e,original:function(n,r,a,i){var o=n&&(n.value==null?n:n.value);return Bf(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(n,r,a,i){return n[i]}}}(),t}();const PO=x_t;var lse=function(){function t(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return t.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},t.prototype._setLocalSource=function(e,n){this._sourceList=e,this._upstreamSignList=n,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},t.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,n=this._getUpstreamSourceManagers(),r=!!n.length,a,i;if(qw(e)){var o=e,s=void 0,l=void 0,u=void 0;if(r){var c=n[0];c.prepareSource(),u=c.getSource(),s=u.data,l=u.sourceFormat,i=[c._getVersionSign()]}else s=o.get("data",!0),l=ko(s)?If:Ls,i=[];var f=this._getSourceMetaRawOption()||{},d=u&&u.metaRawOption||{},h=gn(f.seriesLayoutBy,d.seriesLayoutBy)||null,p=gn(f.sourceHeader,d.sourceHeader),v=gn(f.dimensions,d.dimensions),g=h!==d.seriesLayoutBy||!!p!=!!d.sourceHeader||v;a=g?[$O(s,{seriesLayoutBy:h,sourceHeader:p,dimensions:v},l)]:[]}else{var y=e;if(r){var m=this._applyTransform(n);a=m.sourceList,i=m.upstreamSignList}else{var S=y.get("source",!0);a=[$O(S,this._getSourceMetaRawOption(),null)],i=[]}}this._setLocalSource(a,i)},t.prototype._applyTransform=function(e){var n=this._sourceHost,r=n.get("transform",!0),a=n.get("fromTransformResult",!0);if(a!=null){var i="";e.length!==1&&lG(i)}var o,s=[],l=[];return q(e,function(u){u.prepareSource();var c=u.getSource(a||0),f="";a!=null&&!c&&lG(f),s.push(c),l.push(u._getVersionSign())}),r?o=y_t(r,s,{datasetIndex:n.componentIndex}):a!=null&&(o=[Qxt(s[0])]),{sourceList:o,upstreamSignList:l}},t.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),n=0;n<e.length;n++){var r=e[n];if(r._isDirty()||this._upstreamSignList[n]!==r._getVersionSign())return!0}},t.prototype.getSource=function(e){e=e||0;var n=this._sourceList[e];if(!n){var r=this._getUpstreamSourceManagers();return r[0]&&r[0].getSource(e)}return n},t.prototype.getSharedDataStore=function(e){var n=e.makeStoreSchema();return this._innerGetDataStore(n.dimensions,e.source,n.hash)},t.prototype._innerGetDataStore=function(e,n,r){var a=0,i=this._storeList,o=i[a];o||(o=i[a]={});var s=o[r];if(!s){var l=this._getUpstreamSourceManagers()[0];qw(this._sourceHost)&&l?s=l._innerGetDataStore(e,n,r):(s=new PO,s.initData(new Qoe(n,e.length),e)),o[r]=s}return s},t.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(qw(e)){var n=PI(e);return n?[n.getSourceManager()]:[]}else return ut(Cxt(e),function(r){return r.getSourceManager()})},t.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,n,r,a;if(qw(e))n=e.get("seriesLayoutBy",!0),r=e.get("sourceHeader",!0),a=e.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var i=e;n=i.get("seriesLayoutBy",!0),r=i.get("sourceHeader",!0),a=i.get("dimensions",!0)}return{seriesLayoutBy:n,sourceHeader:r,dimensions:a}},t}();function sG(t){var e=t.option.transform;e&&P1(t.option.transform)}function qw(t){return t.mainType==="series"}function lG(t){throw new Error(t)}var use="line-height:1";function cse(t,e){var n=t.color||"#6e7079",r=t.fontSize||12,a=t.fontWeight||"400",i=t.color||"#464646",o=t.fontSize||14,s=t.fontWeight||"900";return e==="html"?{nameStyle:"font-size:"+qi(r+"")+"px;color:"+qi(n)+";font-weight:"+qi(a+""),valueStyle:"font-size:"+qi(o+"")+"px;color:"+qi(i)+";font-weight:"+qi(s+"")}:{nameStyle:{fontSize:r,fill:n,fontWeight:a},valueStyle:{fontSize:o,fill:i,fontWeight:s}}}var __t=[0,10,20,30],C_t=["",`
  1143. `,`
  1144. `,`
  1145. `];function Ya(t,e){return e.type=t,e}function FO(t){return t.type==="section"}function fse(t){return FO(t)?T_t:E_t}function dse(t){if(FO(t)){var e=0,n=t.blocks.length,r=n>1||n>0&&!t.noHeader;return q(t.blocks,function(a){var i=dse(a);i>=e&&(e=i+ +(r&&(!i||FO(a)&&!a.noHeader)))}),e}return 0}function T_t(t,e,n,r){var a=e.noHeader,i=M_t(dse(e)),o=[],s=e.blocks||[];Ii(!s||st(s)),s=s||[];var l=t.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Bt(u,l)){var c=new ase(u[l],null);s.sort(function(p,v){return c.evaluate(p.sortParam,v.sortParam)})}else l==="seriesDesc"&&s.reverse()}q(s,function(p,v){var g=e.valueFormatter,y=fse(p)(g?et(et({},t),{valueFormatter:g}):t,p,v>0?i.html:0,r);y!=null&&o.push(y)});var f=t.renderMode==="richText"?o.join(i.richText):zO(o.join(""),a?n:i.html);if(a)return f;var d=NO(e.header,"ordinal",t.useUTC),h=cse(r,t.renderMode).nameStyle;return t.renderMode==="richText"?hse(t,d,h)+i.richText+f:zO('<div style="'+h+";"+use+';">'+qi(d)+"</div>"+f,n)}function E_t(t,e,n,r){var a=t.renderMode,i=e.noName,o=e.noValue,s=!e.markerType,l=e.name,u=t.useUTC,c=e.valueFormatter||t.valueFormatter||function(w){return w=st(w)?w:[w],ut(w,function(C,_){return NO(C,st(h)?h[_]:h,u)})};if(!(i&&o)){var f=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",a),d=i?"":NO(l,"ordinal",u),h=e.valueType,p=o?[]:c(e.value),v=!s||!i,g=!s&&i,y=cse(r,a),m=y.nameStyle,S=y.valueStyle;return a==="richText"?(s?"":f)+(i?"":hse(t,d,m))+(o?"":k_t(t,p,v,g,S)):zO((s?"":f)+(i?"":D_t(d,!s,m))+(o?"":A_t(p,v,g,S)),n)}}function uG(t,e,n,r,a,i){if(t){var o=fse(t),s={useUTC:a,renderMode:n,orderMode:r,markupStyleCreator:e,valueFormatter:t.valueFormatter};return o(s,t,0,i)}}function M_t(t){return{html:__t[t],richText:C_t[t]}}function zO(t,e){var n='<div style="clear:both"></div>',r="margin: "+e+"px 0 0";return'<div style="'+r+";"+use+';">'+t+n+"</div>"}function D_t(t,e,n){var r=e?"margin-left:2px":"";return'<span style="'+n+";"+r+'">'+qi(t)+"</span>"}function A_t(t,e,n,r){var a=n?"10px":"20px",i=e?"float:right;margin-left:"+a:"";return t=st(t)?t:[t],'<span style="'+i+";"+r+'">'+ut(t,function(o){return qi(o)}).join("&nbsp;&nbsp;")+"</span>"}function hse(t,e,n){return t.markupStyleCreator.wrapRichTextStyle(e,n)}function k_t(t,e,n,r,a){var i=[a],o=r?10:20;return n&&i.push({padding:[0,0,0,o],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(st(e)?e.join(" "):e,i)}function pse(t,e){var n=t.getData().getItemVisual(e,"style"),r=n[t.visualDrawType];return Cp(r)}function vse(t,e){var n=t.get("padding");return n??(e==="richText"?[8,10]:10)}var wA=function(){function t(){this.richTextStyles={},this._nextStyleNameId=vie()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(e,n,r){var a=r==="richText"?this._generateStyleName():null,i=Voe({color:n,type:e,renderMode:r,markerId:a});return Ot(i)?i:(this.richTextStyles[a]=i.style,i.content)},t.prototype.wrapRichTextStyle=function(e,n){var r={};st(n)?q(n,function(i){return et(r,i)}):et(r,n);var a=this._generateStyleName();return this.richTextStyles[a]=r,"{"+a+"|"+e+"}"},t}();function gse(t){var e=t.series,n=t.dataIndex,r=t.multipleSeries,a=e.getData(),i=a.mapDimensionsAll("defaultedTooltip"),o=i.length,s=e.getRawValue(n),l=st(s),u=pse(e,n),c,f,d,h;if(o>1||l&&!o){var p=R_t(s,e,n,i,u);c=p.inlineValues,f=p.inlineValueTypes,d=p.blocks,h=p.inlineValues[0]}else if(o){var v=a.getDimensionInfo(i[0]);h=c=r0(a,n,i[0]),f=v.type}else h=c=l?s[0]:s;var g=hI(e),y=g&&e.name||"",m=a.getName(n),S=r?y:m;return Ya("section",{header:y,noHeader:r||!g,sortParam:h,blocks:[Ya("nameValue",{markerType:"item",markerColor:u,name:S,noName:!vs(S),value:c,valueType:f})].concat(d||[])})}function R_t(t,e,n,r,a){var i=e.getData(),o=Ds(t,function(f,d,h){var p=i.getDimensionInfo(h);return f=f||p&&p.tooltip!==!1&&p.displayName!=null},!1),s=[],l=[],u=[];r.length?q(r,function(f){c(r0(i,n,f),f)}):q(t,c);function c(f,d){var h=i.getDimensionInfo(d);!h||h.otherDims.tooltip===!1||(o?u.push(Ya("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 Wc=Gn();function Zw(t,e){return t.getName(e)||t.getId(e)}var F_="__universalTransitionEnabled",EE=function(t){Fe(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n._selectedDataIndicesMap={},n}return e.prototype.init=function(n,r,a){this.seriesIndex=this.componentIndex,this.dataTask=Wm({count:O_t,reset:V_t}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(n,a);var i=Wc(this).sourceManager=new lse(this);i.prepareSource();var o=this.getInitialData(n,a);fG(o,this),this.dataTask.context.data=o,Wc(this).dataBeforeProcessed=o,cG(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(n,r){var a=tb(this),i=a?I0(n):{},o=this.subType;On.hasClass(o)&&(o+="Series"),hn(n,r.getTheme().get(this.subType)),hn(n,this.getDefaultOption()),Sp(n,"label",["show"]),this.fillDataTextStyle(n.data),a&&Zf(n,i,a)},e.prototype.mergeOption=function(n,r){n=hn(this.option,n,!0),this.fillDataTextStyle(n.data);var a=tb(this);a&&Zf(this.option,n,a);var i=Wc(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(n,r);fG(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Wc(this).dataBeforeProcessed=o,cG(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(n){if(n&&!ko(n))for(var r=["show"],a=0;a<n.length;a++)n[a]&&n[a].label&&Sp(n[a],"label",r)},e.prototype.getInitialData=function(n,r){},e.prototype.appendData=function(n){var r=this.getRawData();r.appendData(n.data)},e.prototype.getData=function(n){var r=UO(this);if(r){var a=r.context.data;return n==null?a:a.getLinkedData(n)}else return Wc(this).data},e.prototype.getAllData=function(){var n=this.getData();return n&&n.getLinkedDataAll?n.getLinkedDataAll():[{data:n}]},e.prototype.setData=function(n){var r=UO(this);if(r){var a=r.context;a.outputData=n,r!==this.dataTask&&(a.data=n)}Wc(this).data=n},e.prototype.getEncode=function(){var n=this.get("encode",!0);if(n)return Gt(n)},e.prototype.getSourceManager=function(){return Wc(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return Wc(this).dataBeforeProcessed},e.prototype.getColorBy=function(){var n=this.get("colorBy");return n||"series"},e.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},e.prototype.getBaseAxis=function(){var n=this.coordinateSystem;return n&&n.getBaseAxis&&n.getBaseAxis()},e.prototype.formatTooltip=function(n,r,a){return gse({series:this,dataIndex:n,multipleSeries:r})},e.prototype.isAnimationEnabled=function(){var n=this.ecModel;if(Fn.node&&!(n&&n.ssr))return!1;var r=this.getShallow("animation");return r&&this.getData().count()>this.getShallow("animationThreshold")&&(r=!1),!!r},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(n,r,a){var i=this.ecModel,o=FI.prototype.getColorFromPalette.call(this,n,r,a);return o||(o=i.getColorFromPalette(n,r,a)),o},e.prototype.coordDimToDataDim=function(n){return this.getRawData().mapDimensionsAll(n)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(n,r){this._innerSelect(this.getData(r),n)},e.prototype.unselect=function(n,r){var a=this.option.selectedMap;if(a){var i=this.option.selectedMode,o=this.getData(r);if(i==="series"||a==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<n.length;s++){var l=n[s],u=Zw(o,l);a[u]=!1,this._selectedDataIndicesMap[u]=-1}}},e.prototype.toggleSelect=function(n,r){for(var a=[],i=0;i<n.length;i++)a[0]=n[i],this.isSelected(n[i],r)?this.unselect(a,r):this.select(a,r)},e.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var n=this._selectedDataIndicesMap,r=Dn(n),a=[],i=0;i<r.length;i++){var o=n[r[i]];o>=0&&a.push(o)}return a},e.prototype.isSelected=function(n,r){var a=this.option.selectedMap;if(!a)return!1;var i=this.getData(r);return(a==="all"||a[Zw(i,n)])&&!i.getItemModel(n).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[F_])return!0;var n=this.option.universalTransition;return n?n===!0?!0:n&&n.enabled:!1},e.prototype._innerSelect=function(n,r){var a,i,o=this.option,s=o.selectedMode,l=r.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){qt(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,c=0;c<l;c++){var f=r[c],d=Zw(n,f);u[d]=!0,this._selectedDataIndicesMap[d]=n.getRawIndex(f)}}else if(s==="single"||s===!0){var h=r[l-1],d=Zw(n,h);o.selectedMap=(a={},a[d]=!0,a),this._selectedDataIndicesMap=(i={},i[d]=n.getRawIndex(h),i)}}},e.prototype._initSelectedMapFromData=function(n){if(!this.option.selectedMap){var r=[];n.hasItemOption&&n.each(function(a){var i=n.getRawDataItem(a);i&&i.selected&&r.push(a)}),r.length>0&&this._innerSelect(n,r)}},e.registerClass=function(n){return On.registerClass(n)},e.protoInitialize=function(){var n=e.prototype;n.type="series.__base__",n.seriesIndex=0,n.ignoreStyleOnData=!1,n.hasSymbolVisual=!1,n.defaultSymbol="circle",n.visualStyleAccessPath="itemStyle",n.visualDrawType="fill"}(),e}(On);ha(EE,HI);ha(EE,FI);Cie(EE,On);function cG(t){var e=t.name;hI(t)||(t.name=L_t(t)||e)}function L_t(t){var e=t.getRawData(),n=e.mapDimensionsAll("seriesName"),r=[];return q(n,function(a){var i=e.getDimensionInfo(a);i.displayName&&r.push(i.displayName)}),r.join(" ")}function O_t(t){return t.model.getRawData().count()}function V_t(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),N_t}function N_t(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function fG(t,e){q(F1(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),function(n){t.wrapMethod(n,sn(I_t,e))})}function I_t(t,e){var n=UO(t);return n&&n.setOutputEnd((e||this).count()),e}function UO(t){var e=(t.ecModel||{}).scheduler,n=e&&e.getPipeline(t.uid);if(n){var r=n.currentTask;if(r){var a=r.agentStubMap;a&&(r=a.get(t.uid))}return r}}const Vr=EE;var jI=function(){function t(){this.group=new en,this.uid=N0("viewComponent")}return t.prototype.init=function(e,n){},t.prototype.render=function(e,n,r,a){},t.prototype.dispose=function(e,n){},t.prototype.updateView=function(e,n,r,a){},t.prototype.updateLayout=function(e,n,r,a){},t.prototype.updateVisual=function(e,n,r,a){},t.prototype.toggleBlurSeries=function(e,n,r){},t.prototype.eachRendered=function(e){var n=this.group;n&&n.traverse(e)},t}();vI(jI);sE(jI);const jr=jI;function F0(){var t=Gn();return function(e){var n=t(e),r=e.pipelineContext,a=!!n.large,i=!!n.progressiveRender,o=n.large=!!(r&&r.large),s=n.progressiveRender=!!(r&&r.progressiveRender);return(a!==o||i!==s)&&"reset"}}var yse=Gn(),B_t=F0(),KI=function(){function t(){this.group=new en,this.uid=N0("viewChart"),this.renderTask=Wm({plan:$_t,reset:P_t}),this.renderTask.context={view:this}}return t.prototype.init=function(e,n){},t.prototype.render=function(e,n,r,a){},t.prototype.highlight=function(e,n,r,a){var i=e.getData(a&&a.dataType);i&&hG(i,a,"emphasis")},t.prototype.downplay=function(e,n,r,a){var i=e.getData(a&&a.dataType);i&&hG(i,a,"normal")},t.prototype.remove=function(e,n){this.group.removeAll()},t.prototype.dispose=function(e,n){},t.prototype.updateView=function(e,n,r,a){this.render(e,n,r,a)},t.prototype.updateLayout=function(e,n,r,a){this.render(e,n,r,a)},t.prototype.updateVisual=function(e,n,r,a){this.render(e,n,r,a)},t.prototype.eachRendered=function(e){dd(this.group,e)},t.markUpdateMethod=function(e,n){yse(e).updateMethod=n},t.protoInitialize=function(){var e=t.prototype;e.type="chart"}(),t}();function dG(t,e,n){t&&Z1(t)&&(e==="emphasis"?dc:hc)(t,n)}function hG(t,e,n){var r=wp(t,e),a=e&&e.highlightKey!=null?dwt(e.highlightKey):null;r!=null?q(mr(r),function(i){dG(t.getItemGraphicEl(i),n,a)}):t.eachItemGraphicEl(function(i){dG(i,n,a)})}vI(KI);sE(KI);function $_t(t){return B_t(t.model)}function P_t(t){var e=t.model,n=t.ecModel,r=t.api,a=t.payload,i=e.pipelineContext.progressiveRender,o=t.view,s=a&&yse(a).updateMethod,l=i?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](e,n,r,a),F_t[l]}var F_t={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}};const br=KI;var uC="\0__throttleOriginMethod",pG="\0__throttleRate",vG="\0__throttleType";function ME(t,e,n){var r,a=0,i=0,o=null,s,l,u,c;e=e||0;function f(){i=new Date().getTime(),o=null,t.apply(l,u||[])}var d=function(){for(var h=[],p=0;p<arguments.length;p++)h[p]=arguments[p];r=new Date().getTime(),l=this,u=h;var v=c||e,g=c||n;c=null,s=r-(g?a:i)-v,clearTimeout(o),g?o=setTimeout(f,v):s>=0?f():o=setTimeout(f,-s),a=r};return d.clear=function(){o&&(clearTimeout(o),o=null)},d.debounceNextCall=function(h){c=h},d}function z0(t,e,n,r){var a=t[e];if(a){var i=a[uC]||a,o=a[vG],s=a[pG];if(s!==n||o!==r){if(n==null||!r)return t[e]=i;a=t[e]=ME(i,n,r==="debounce"),a[uC]=i,a[vG]=r,a[pG]=n}return a}}function rb(t,e){var n=t[e];n&&n[uC]&&(n.clear&&n.clear(),t[e]=n[uC])}var gG=Gn(),yG={itemStyle:xp(Coe,!0),lineStyle:xp(_oe,!0)},z_t={lineStyle:"stroke",itemStyle:"fill"};function mse(t,e){var n=t.visualStyleMapper||yG[e];return n||(console.warn("Unknown style type '"+e+"'."),yG.itemStyle)}function bse(t,e){var n=t.visualDrawType||z_t[e];return n||(console.warn("Unknown style type '"+e+"'."),"fill")}var U_t={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData(),r=t.visualStyleAccessPath||"itemStyle",a=t.getModel(r),i=mse(t,r),o=i(a),s=a.getShallow("decal");s&&(n.setVisual("decal",s),s.dirty=!0);var l=bse(t,r),u=o[l],c=jt(u)?u:null,f=o.fill==="auto"||o.stroke==="auto";if(!o[l]||c||f){var d=t.getColorFromPalette(t.name,null,e.getSeriesCount());o[l]||(o[l]=d,n.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||jt(o.fill)?d:o.fill,o.stroke=o.stroke==="auto"||jt(o.stroke)?d:o.stroke}if(n.setVisual("style",o),n.setVisual("drawType",l),!e.isSeriesFiltered(t)&&c)return n.setVisual("colorFromPalette",!1),{dataEach:function(h,p){var v=t.getDataParams(p),g=et({},o);g[l]=c(v),h.setItemVisual(p,"style",g)}}}},My=new yr,G_t={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!(t.ignoreStyleOnData||e.isSeriesFiltered(t))){var n=t.getData(),r=t.visualStyleAccessPath||"itemStyle",a=mse(t,r),i=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[r]){My.option=l[r];var u=a(My),c=o.ensureUniqueItemVisual(s,"style");et(c,u),My.option.decal&&(o.setItemVisual(s,"decal",My.option.decal),My.option.decal.dirty=!0),i in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},H_t={performRawSeries:!0,overallReset:function(t){var e=Gt();t.eachSeries(function(n){var r=n.getColorBy();if(!n.isColorBySeries()){var a=n.type+"-"+r,i=e.get(a);i||(i={},e.set(a,i)),gG(n).scope=i}}),t.eachSeries(function(n){if(!(n.isColorBySeries()||t.isSeriesFiltered(n))){var r=n.getRawData(),a={},i=n.getData(),o=gG(n).scope,s=n.visualStyleAccessPath||"itemStyle",l=bse(n,s);i.each(function(u){var c=i.getRawIndex(u);a[c]=u}),r.each(function(u){var c=a[u],f=i.getItemVisual(c,"colorFromPalette");if(f){var d=i.ensureUniqueItemVisual(c,"style"),h=r.getName(u)||u+"",p=r.count();d[l]=n.getColorFromPalette(h,o,p)}})}})}},Qw=Math.PI;function W_t(t,e){e=e||{},Xt(e,{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 n=new en,r=new $n({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});n.add(r);var a=new Bn({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),i=new $n({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});n.add(i);var o;return e.showSpinner&&(o=new pE({shape:{startAngle:-Qw/2,endAngle:-Qw/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:Qw*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Qw*3/2}).delay(300).start("circularInOut"),n.add(o)),n.resize=function(){var s=a.getBoundingRect().width,l=e.showSpinner?e.spinnerRadius:0,u=(t.getWidth()-l*2-(e.showSpinner&&s?10:0)-s)/2-(e.showSpinner&&s?0:5+s/2)+(e.showSpinner?0:s/2)+(s?0:l),c=t.getHeight()/2;e.showSpinner&&o.setShape({cx:u,cy:c}),i.setShape({x:u-l,y:c-l,width:l*2,height:l*2}),r.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},n.resize(),n}var j_t=function(){function t(e,n,r,a){this._stageTaskMap=Gt(),this.ecInstance=e,this.api=n,r=this._dataProcessorHandlers=r.slice(),a=this._visualHandlers=a.slice(),this._allHandlers=r.concat(a)}return t.prototype.restoreData=function(e,n){e.restoreData(n),this._stageTaskMap.each(function(r){var a=r.overallTask;a&&a.dirty()})},t.prototype.getPerformArgs=function(e,n){if(e.__pipeline){var r=this._pipelineMap.get(e.__pipeline.id),a=r.context,i=!n&&r.progressiveEnabled&&(!a||a.progressiveRender)&&e.__idxInPipeline>r.blockIndex,o=i?r.step:null,s=a&&a.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},t.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},t.prototype.updateStreamModes=function(e,n){var r=this._pipelineMap.get(e.uid),a=e.getData(),i=a.count(),o=r.progressiveEnabled&&n.incrementalPrepareRender&&i>=r.threshold,s=e.get("large")&&i>=e.get("largeThreshold"),l=e.get("progressiveChunkMode")==="mod"?i:null;e.pipelineContext=r.context={progressiveRender:o,modDataCount:l,large:s}},t.prototype.restorePipelines=function(e){var n=this,r=n._pipelineMap=Gt();e.eachSeries(function(a){var i=a.getProgressive(),o=a.uid;r.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}),n._pipe(a,a.dataTask)})},t.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,n=this.api.getModel(),r=this.api;q(this._allHandlers,function(a){var i=e.get(a.uid)||e.set(a.uid,{}),o="";Ii(!(a.reset&&a.overallReset),o),a.reset&&this._createSeriesStageTask(a,i,n,r),a.overallReset&&this._createOverallStageTask(a,i,n,r)},this)},t.prototype.prepareView=function(e,n,r,a){var i=e.renderTask,o=i.context;o.model=n,o.ecModel=r,o.api=a,i.__block=!e.incrementalPrepareRender,this._pipe(n,i)},t.prototype.performDataProcessorTasks=function(e,n){this._performStageTasks(this._dataProcessorHandlers,e,n,{block:!0})},t.prototype.performVisualTasks=function(e,n,r){this._performStageTasks(this._visualHandlers,e,n,r)},t.prototype._performStageTasks=function(e,n,r,a){a=a||{};var i=!1,o=this;q(e,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,p=d.agentStubMap;p.each(function(g){s(a,g)&&(g.dirty(),h=!0)}),h&&d.dirty(),o.updatePayload(d,r);var v=o.getPerformArgs(d,a.block);p.each(function(g){g.perform(v)}),d.perform(v)&&(i=!0)}else f&&f.each(function(g,y){s(a,g)&&g.dirty();var m=o.getPerformArgs(g,a.block);m.skip=!l.performRawSeries&&n.isSeriesFiltered(g.context.model),o.updatePayload(g,r),g.perform(m)&&(i=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=i||this.unfinished},t.prototype.performSeriesTasks=function(e){var n;e.eachSeries(function(r){n=r.dataTask.perform()||n}),this.unfinished=n||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each(function(e){var n=e.tail;do{if(n.__block){e.blockIndex=n.__idxInPipeline;break}n=n.getUpstream()}while(n)})},t.prototype.updatePayload=function(e,n){n!=="remain"&&(e.context.payload=n)},t.prototype._createSeriesStageTask=function(e,n,r,a){var i=this,o=n.seriesTaskMap,s=n.seriesTaskMap=Gt(),l=e.seriesType,u=e.getTargetSeries;e.createOnAllSeries?r.eachRawSeries(c):l?r.eachRawSeriesByType(l,c):u&&u(r,a).each(c);function c(f){var d=f.uid,h=s.set(d,o&&o.get(d)||Wm({plan:Z_t,reset:Q_t,count:e2t}));h.context={model:f,ecModel:r,api:a,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:i},i._pipe(f,h)}},t.prototype._createOverallStageTask=function(e,n,r,a){var i=this,o=n.overallTask=n.overallTask||Wm({reset:K_t});o.context={ecModel:r,api:a,overallReset:e.overallReset,scheduler:i};var s=o.agentStubMap,l=o.agentStubMap=Gt(),u=e.seriesType,c=e.getTargetSeries,f=!0,d=!1,h="";Ii(!e.createOnAllSeries,h),u?r.eachRawSeriesByType(u,p):c?c(r,a).each(p):(f=!1,q(r.getSeries(),p));function p(v){var g=v.uid,y=l.set(g,s&&s.get(g)||(d=!0,Wm({reset:Y_t,onDirty:q_t})));y.context={model:v,overallProgress:f},y.agent=o,y.__block=f,i._pipe(v,y)}d&&o.dirty()},t.prototype._pipe=function(e,n){var r=e.uid,a=this._pipelineMap.get(r);!a.head&&(a.head=n),a.tail&&a.tail.pipe(n),a.tail=n,n.__idxInPipeline=a.count++,n.__pipeline=a},t.wrapStageHandler=function(e,n){return jt(e)&&(e={overallReset:e,seriesType:t2t(e)}),e.uid=N0("stageHandler"),n&&(e.visualType=n),e},t}();function K_t(t){t.overallReset(t.ecModel,t.api,t.payload)}function Y_t(t){return t.overallProgress&&X_t}function X_t(){this.agent.dirty(),this.getDownstream().dirty()}function q_t(){this.agent&&this.agent.dirty()}function Z_t(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function Q_t(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=mr(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?ut(e,function(n,r){return Sse(r)}):J_t}var J_t=Sse(0);function Sse(t){return function(e,n){var r=n.data,a=n.resetDefines[t];if(a&&a.dataEach)for(var i=e.start;i<e.end;i++)a.dataEach(r,i);else a&&a.progress&&a.progress(e,r)}}function e2t(t){return t.data.count()}function t2t(t){cC=null;try{t(ab,wse)}catch{}return cC}var ab={},wse={},cC;xse(ab,joe);xse(wse,Koe);ab.eachSeriesByType=ab.eachRawSeriesByType=function(t){cC=t};ab.eachComponent=function(t){t.mainType==="series"&&t.subType&&(cC=t.subType)};function xse(t,e){for(var n in e.prototype)t[n]=fa}const _se=j_t;var mG=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const n2t={color:mG,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],mG]};var Wi="#B9B8CE",bG="#100C2A",Jw=function(){return{axisLine:{lineStyle:{color:Wi}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},SG=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],Cse={darkMode:!0,color:SG,backgroundColor:bG,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:Wi}},textStyle:{color:Wi},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:Wi}},dataZoom:{borderColor:"#71708A",textStyle:{color:Wi},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:Wi}},timeline:{lineStyle:{color:Wi},label:{color:Wi},controlStyle:{color:Wi,borderColor:Wi}},calendar:{itemStyle:{color:bG},dayLabel:{color:Wi},monthLabel:{color:Wi},yearLabel:{color:Wi}},timeAxis:Jw(),logAxis:Jw(),valueAxis:Jw(),categoryAxis:Jw(),line:{symbol:"circle"},graph:{color:SG},gauge:{title:{color:Wi},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:Wi},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};Cse.categoryAxis.splitLine.show=!1;const r2t=Cse;var a2t=function(){function t(){}return t.prototype.normalizeQuery=function(e){var n={},r={},a={};if(Ot(e)){var i=eu(e);n.mainType=i.main||null,n.subType=i.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};q(e,function(l,u){for(var c=!1,f=0;f<o.length;f++){var d=o[f],h=u.lastIndexOf(d);if(h>0&&h===u.length-d.length){var p=u.slice(0,h);p!=="data"&&(n.mainType=p,n[d.toLowerCase()]=l,c=!0)}}s.hasOwnProperty(u)&&(r[u]=l,c=!0),c||(a[u]=l)})}return{cptQuery:n,dataQuery:r,otherQuery:a}},t.prototype.filter=function(e,n){var r=this.eventInfo;if(!r)return!0;var a=r.targetEl,i=r.packedEvent,o=r.model,s=r.view;if(!o||!s)return!0;var l=n.cptQuery,u=n.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(e,n.otherQuery,a,i));function c(f,d,h,p){return f[h]==null||d[p||h]===f[h]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t}(),GO=["symbol","symbolSize","symbolRotate","symbolOffset"],wG=GO.concat(["symbolKeepAspect"]),i2t={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData();if(t.legendIcon&&n.setVisual("legendIcon",t.legendIcon),!t.hasSymbolVisual)return;for(var r={},a={},i=!1,o=0;o<GO.length;o++){var s=GO[o],l=t.get(s);jt(l)?(i=!0,a[s]=l):r[s]=l}if(r.symbol=r.symbol||t.defaultSymbol,n.setVisual(et({legendIcon:t.legendIcon||r.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},r)),e.isSeriesFiltered(t))return;var u=Dn(a);function c(f,d){for(var h=t.getRawValue(d),p=t.getDataParams(d),v=0;v<u.length;v++){var g=u[v];f.setItemVisual(d,g,a[g](h,p))}}return{dataEach:i?c:null}}},o2t={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.hasSymbolVisual||e.isSeriesFiltered(t))return;var n=t.getData();function r(a,i){for(var o=a.getItemModel(i),s=0;s<wG.length;s++){var l=wG[s],u=o.getShallow(l,!0);u!=null&&a.setItemVisual(i,l,u)}}return{dataEach:n.hasItemOption?r:null}}};function YI(t,e,n){switch(n){case"color":var r=t.getItemVisual(e,"style");return r[t.getVisual("drawType")];case"opacity":return t.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getItemVisual(e,n)}}function cS(t,e){switch(e){case"color":var n=t.getVisual("style");return n[t.getVisual("drawType")];case"opacity":return t.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getVisual(e)}}function Tse(t,e,n,r){switch(n){case"color":var a=t.ensureUniqueItemVisual(e,"style");a[t.getVisual("drawType")]=r,t.setItemVisual(e,"colorFromPalette",!1);break;case"opacity":t.ensureUniqueItemVisual(e,"style").opacity=r;break;case"symbol":case"symbolSize":case"liftZ":t.setItemVisual(e,n,r);break}}function Ese(t,e){function n(r,a){var i=[];return r.eachComponent({mainType:"series",subType:t,query:a},function(o){i.push(o.seriesIndex)}),i}q([[t+"ToggleSelect","toggleSelect"],[t+"Select","select"],[t+"UnSelect","unselect"]],function(r){e(r[0],function(a,i,o){a=et({},a),o.dispatchAction(et(a,{type:r[1],seriesIndex:n(i,a)}))})})}function yv(t,e,n,r,a){var i=t+e;n.isSilent(i)||r.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,u=a.selected,c=0;c<u.length;c++)if(u[c].seriesIndex===s){var f=o.getData(),d=wp(f,a.fromActionPayload);n.trigger(i,{type:i,seriesId:o.id,name:st(d)?f.getName(d[0]):f.getName(d),selected:Ot(l)?l:et({},l)})}})}function s2t(t,e,n){t.on("selectchanged",function(r){var a=n.getModel();r.isFromClick?(yv("map","selectchanged",e,a,r),yv("pie","selectchanged",e,a,r)):r.fromAction==="select"?(yv("map","selected",e,a,r),yv("pie","selected",e,a,r)):r.fromAction==="unselect"&&(yv("map","unselected",e,a,r),yv("pie","unselected",e,a,r))})}function Gh(t,e,n){for(var r;t&&!(e(t)&&(r=t,n));)t=t.__hostTarget||t.parent;return r}var l2t=Math.round(Math.random()*9),u2t=typeof Object.defineProperty=="function",c2t=function(){function t(){this._id="__ec_inner_"+l2t++}return t.prototype.get=function(e){return this._guard(e)[this._id]},t.prototype.set=function(e,n){var r=this._guard(e);return u2t?Object.defineProperty(r,this._id,{value:n,enumerable:!1,configurable:!0}):r[this._id]=n,this},t.prototype.delete=function(e){return this.has(e)?(delete this._guard(e)[this._id],!0):!1},t.prototype.has=function(e){return!!this._guard(e)[this._id]},t.prototype._guard=function(e){if(e!==Object(e))throw TypeError("Value of WeakMap is not a non-null object.");return e},t}();const f2t=c2t;var d2t=Cn.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,r=e.cy,a=e.width/2,i=e.height/2;t.moveTo(n,r-i),t.lineTo(n+a,r+i),t.lineTo(n-a,r+i),t.closePath()}}),h2t=Cn.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,r=e.cy,a=e.width/2,i=e.height/2;t.moveTo(n,r-i),t.lineTo(n+a,r),t.lineTo(n,r+i),t.lineTo(n-a,r),t.closePath()}}),p2t=Cn.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.x,r=e.y,a=e.width/5*3,i=Math.max(a,e.height),o=a/2,s=o*o/(i-o),l=r-i+o+s,u=Math.asin(s/o),c=Math.cos(u)*o,f=Math.sin(u),d=Math.cos(u),h=o*.6,p=o*.7;t.moveTo(n-c,l+s),t.arc(n,l,o,Math.PI-u,Math.PI*2+u),t.bezierCurveTo(n+c-f*h,l+s+d*h,n,r-p,n,r),t.bezierCurveTo(n,r-p,n-c+f*h,l+s+d*h,n-c,l+s),t.closePath()}}),v2t=Cn.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.height,r=e.width,a=e.x,i=e.y,o=r/3*2;t.moveTo(a,i),t.lineTo(a+o,i+n),t.lineTo(a,i+n/4*3),t.lineTo(a-o,i+n),t.lineTo(a,i),t.closePath()}}),g2t={line:Ga,rect:$n,roundRect:$n,square:$n,circle:wl,diamond:h2t,pin:p2t,arrow:v2t,triangle:d2t},y2t={line:function(t,e,n,r,a){a.x1=t,a.y1=e+r/2,a.x2=t+n,a.y2=e+r/2},rect:function(t,e,n,r,a){a.x=t,a.y=e,a.width=n,a.height=r},roundRect:function(t,e,n,r,a){a.x=t,a.y=e,a.width=n,a.height=r,a.r=Math.min(n,r)/4},square:function(t,e,n,r,a){var i=Math.min(n,r);a.x=t,a.y=e,a.width=i,a.height=i},circle:function(t,e,n,r,a){a.cx=t+n/2,a.cy=e+r/2,a.r=Math.min(n,r)/2},diamond:function(t,e,n,r,a){a.cx=t+n/2,a.cy=e+r/2,a.width=n,a.height=r},pin:function(t,e,n,r,a){a.x=t+n/2,a.y=e+r/2,a.width=n,a.height=r},arrow:function(t,e,n,r,a){a.x=t+n/2,a.y=e+r/2,a.width=n,a.height=r},triangle:function(t,e,n,r,a){a.cx=t+n/2,a.cy=e+r/2,a.width=n,a.height=r}},fC={};q(g2t,function(t,e){fC[e]=new t});var m2t=Cn.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,n){var r=eC(t,e,n),a=this.shape;return a&&a.symbolType==="pin"&&e.position==="inside"&&(r.y=n.y+n.height*.4),r},buildPath:function(t,e,n){var r=e.symbolType;if(r!=="none"){var a=fC[r];a||(r="rect",a=fC[r]),y2t[r](e.x,e.y,e.width,e.height,a.shape),a.buildPath(t,a.shape,n)}}});function b2t(t,e){if(this.type!=="image"){var n=this.style;this.__isEmptyBrush?(n.stroke=t,n.fill=e||"#fff",n.lineWidth=2):this.shape.symbolType==="line"?n.stroke=t:n.fill=t,this.markRedraw()}}function ba(t,e,n,r,a,i,o){var s=t.indexOf("empty")===0;s&&(t=t.substr(5,1).toLowerCase()+t.substr(6));var l;return t.indexOf("image://")===0?l=TI(t.slice(8),new yn(e,n,r,a),o?"center":"cover"):t.indexOf("path://")===0?l=oS(t.slice(7),{},new yn(e,n,r,a),o?"center":"cover"):l=new m2t({shape:{symbolType:t,x:e,y:n,width:r,height:a}}),l.__isEmptyBrush=s,l.setColor=b2t,i&&l.setColor(i),l}function U0(t){return st(t)||(t=[+t,+t]),[t[0]||0,t[1]||0]}function zp(t,e){if(t!=null)return st(t)||(t=[t,t]),[Mt(t[0],e[0])||0,Mt(gn(t[1],t[0]),e[1])||0]}function Hh(t){return isFinite(t)}function S2t(t,e,n){var r=e.x==null?0:e.x,a=e.x2==null?1:e.x2,i=e.y==null?0:e.y,o=e.y2==null?0:e.y2;e.global||(r=r*n.width+n.x,a=a*n.width+n.x,i=i*n.height+n.y,o=o*n.height+n.y),r=Hh(r)?r:0,a=Hh(a)?a:1,i=Hh(i)?i:0,o=Hh(o)?o:0;var s=t.createLinearGradient(r,i,a,o);return s}function w2t(t,e,n){var r=n.width,a=n.height,i=Math.min(r,a),o=e.x==null?.5:e.x,s=e.y==null?.5:e.y,l=e.r==null?.5:e.r;e.global||(o=o*r+n.x,s=s*a+n.y,l=l*i),o=Hh(o)?o:.5,s=Hh(s)?s:.5,l=l>=0&&Hh(l)?l:.5;var u=t.createRadialGradient(o,s,0,o,s,l);return u}function HO(t,e,n){for(var r=e.type==="radial"?w2t(t,e,n):S2t(t,e,n),a=e.colorStops,i=0;i<a.length;i++)r.addColorStop(a[i].offset,a[i].color);return r}function x2t(t,e){if(t===e||!t&&!e)return!1;if(!t||!e||t.length!==e.length)return!0;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return!0;return!1}function ex(t){return parseInt(t,10)}function Qv(t,e,n){var r=["width","height"][e],a=["clientWidth","clientHeight"][e],i=["paddingLeft","paddingTop"][e],o=["paddingRight","paddingBottom"][e];if(n[r]!=null&&n[r]!=="auto")return parseFloat(n[r]);var s=document.defaultView.getComputedStyle(t);return(t[a]||ex(s[r])||ex(t.style[r]))-(ex(s[i])||0)-(ex(s[o])||0)|0}function _2t(t,e){return!t||t==="solid"||!(e>0)?null:t==="dashed"?[4*e,2*e]:t==="dotted"?[e]:Un(t)?[t]:st(t)?t:null}function XI(t){var e=t.style,n=e.lineDash&&e.lineWidth>0&&_2t(e.lineDash,e.lineWidth),r=e.lineDashOffset;if(n){var a=e.strokeNoScale&&t.getLineScale?t.getLineScale():1;a&&a!==1&&(n=ut(n,function(i){return i/a}),r/=a)}return[n,r]}var C2t=new mu(!0);function dC(t){var e=t.stroke;return!(e==null||e==="none"||!(t.lineWidth>0))}function xG(t){return typeof t=="string"&&t!=="none"}function hC(t){var e=t.fill;return e!=null&&e!=="none"}function _G(t,e){if(e.fillOpacity!=null&&e.fillOpacity!==1){var n=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=n}else t.fill()}function CG(t,e){if(e.strokeOpacity!=null&&e.strokeOpacity!==1){var n=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=n}else t.stroke()}function WO(t,e,n){var r=gI(e.image,e.__image,n);if(lE(r)){var a=t.createPattern(r,e.repeat||"repeat");if(typeof DOMMatrix=="function"&&a&&a.setTransform){var i=new DOMMatrix;i.translateSelf(e.x||0,e.y||0),i.rotateSelf(0,0,(e.rotation||0)*Vm),i.scaleSelf(e.scaleX||1,e.scaleY||1),a.setTransform(i)}return a}}function T2t(t,e,n,r){var a,i=dC(n),o=hC(n),s=n.strokePercent,l=s<1,u=!e.path;(!e.silent||l)&&u&&e.createPathProxy();var c=e.path||C2t,f=e.__dirty;if(!r){var d=n.fill,h=n.stroke,p=o&&!!d.colorStops,v=i&&!!h.colorStops,g=o&&!!d.image,y=i&&!!h.image,m=void 0,S=void 0,w=void 0,C=void 0,_=void 0;(p||v)&&(_=e.getBoundingRect()),p&&(m=f?HO(t,d,_):e.__canvasFillGradient,e.__canvasFillGradient=m),v&&(S=f?HO(t,h,_):e.__canvasStrokeGradient,e.__canvasStrokeGradient=S),g&&(w=f||!e.__canvasFillPattern?WO(t,d,e):e.__canvasFillPattern,e.__canvasFillPattern=w),y&&(C=f||!e.__canvasStrokePattern?WO(t,h,e):e.__canvasStrokePattern,e.__canvasStrokePattern=w),p?t.fillStyle=m:g&&(w?t.fillStyle=w:o=!1),v?t.strokeStyle=S:y&&(C?t.strokeStyle=C:i=!1)}var x=e.getGlobalScale();c.setScale(x[0],x[1],e.segmentIgnoreThreshold);var T,M;t.setLineDash&&n.lineDash&&(a=XI(e),T=a[0],M=a[1]);var E=!0;(u||f&Bv)&&(c.setDPR(t.dpr),l?c.setContext(null):(c.setContext(t),E=!1),c.reset(),e.buildPath(c,e.shape,r),c.toStatic(),e.pathUpdated()),E&&c.rebuildPath(t,l?s:1),T&&(t.setLineDash(T),t.lineDashOffset=M),r||(n.strokeFirst?(i&&CG(t,n),o&&_G(t,n)):(o&&_G(t,n),i&&CG(t,n))),T&&t.setLineDash([])}function E2t(t,e,n){var r=e.__image=gI(n.image,e.__image,e,e.onload);if(!(!r||!lE(r))){var a=n.x||0,i=n.y||0,o=e.getWidth(),s=e.getHeight(),l=r.width/r.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=r.width,s=r.height),n.sWidth&&n.sHeight){var u=n.sx||0,c=n.sy||0;t.drawImage(r,u,c,n.sWidth,n.sHeight,a,i,o,s)}else if(n.sx&&n.sy){var u=n.sx,c=n.sy,f=o-u,d=s-c;t.drawImage(r,u,c,f,d,a,i,o,s)}else t.drawImage(r,a,i,o,s)}}function M2t(t,e,n){var r,a=n.text;if(a!=null&&(a+=""),a){t.font=n.font||Yf,t.textAlign=n.textAlign,t.textBaseline=n.textBaseline;var i=void 0,o=void 0;t.setLineDash&&n.lineDash&&(r=XI(e),i=r[0],o=r[1]),i&&(t.setLineDash(i),t.lineDashOffset=o),n.strokeFirst?(dC(n)&&t.strokeText(a,n.x,n.y),hC(n)&&t.fillText(a,n.x,n.y)):(hC(n)&&t.fillText(a,n.x,n.y),dC(n)&&t.strokeText(a,n.x,n.y)),i&&t.setLineDash([])}}var TG=["shadowBlur","shadowOffsetX","shadowOffsetY"],EG=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function Mse(t,e,n,r,a){var i=!1;if(!r&&(n=n||{},e===n))return!1;if(r||e.opacity!==n.opacity){_o(t,a),i=!0;var o=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(o)?ap.opacity:o}(r||e.blend!==n.blend)&&(i||(_o(t,a),i=!0),t.globalCompositeOperation=e.blend||ap.blend);for(var s=0;s<TG.length;s++){var l=TG[s];(r||e[l]!==n[l])&&(i||(_o(t,a),i=!0),t[l]=t.dpr*(e[l]||0))}return(r||e.shadowColor!==n.shadowColor)&&(i||(_o(t,a),i=!0),t.shadowColor=e.shadowColor||ap.shadowColor),i}function MG(t,e,n,r,a){var i=ib(e,a.inHover),o=r?null:n&&ib(n,a.inHover)||{};if(i===o)return!1;var s=Mse(t,i,o,r,a);if((r||i.fill!==o.fill)&&(s||(_o(t,a),s=!0),xG(i.fill)&&(t.fillStyle=i.fill)),(r||i.stroke!==o.stroke)&&(s||(_o(t,a),s=!0),xG(i.stroke)&&(t.strokeStyle=i.stroke)),(r||i.opacity!==o.opacity)&&(s||(_o(t,a),s=!0),t.globalAlpha=i.opacity==null?1:i.opacity),e.hasStroke()){var l=i.lineWidth,u=l/(i.strokeNoScale&&e.getLineScale?e.getLineScale():1);t.lineWidth!==u&&(s||(_o(t,a),s=!0),t.lineWidth=u)}for(var c=0;c<EG.length;c++){var f=EG[c],d=f[0];(r||i[d]!==o[d])&&(s||(_o(t,a),s=!0),t[d]=i[d]||f[1])}return s}function D2t(t,e,n,r,a){return Mse(t,ib(e,a.inHover),n&&ib(n,a.inHover),r,a)}function Dse(t,e){var n=e.transform,r=t.dpr||1;n?t.setTransform(r*n[0],r*n[1],r*n[2],r*n[3],r*n[4],r*n[5]):t.setTransform(r,0,0,r,0,0)}function A2t(t,e,n){for(var r=!1,a=0;a<t.length;a++){var i=t[a];r=r||i.isZeroArea(),Dse(e,i),e.beginPath(),i.buildPath(e,i.shape),e.clip()}n.allClipped=r}function k2t(t,e){return t&&e?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&&!e)}var DG=1,AG=2,kG=3,RG=4;function R2t(t){var e=hC(t),n=dC(t);return!(t.lineDash||!(+e^+n)||e&&typeof t.fill!="string"||n&&typeof t.stroke!="string"||t.strokePercent<1||t.strokeOpacity<1||t.fillOpacity<1)}function _o(t,e){e.batchFill&&t.fill(),e.batchStroke&&t.stroke(),e.batchFill="",e.batchStroke=""}function ib(t,e){return e&&t.__hoverStyle||t.style}function qI(t,e){Wh(t,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function Wh(t,e,n,r){var a=e.transform;if(!e.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1)){e.__dirty&=~Bo,e.__isRendered=!1;return}var i=e.__clipPaths,o=n.prevElClipPaths,s=!1,l=!1;if((!o||x2t(i,o))&&(o&&o.length&&(_o(t,n),t.restore(),l=s=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),i&&i.length&&(_o(t,n),t.save(),A2t(i,t,n),s=!0),n.prevElClipPaths=i),n.allClipped){e.__isRendered=!1;return}e.beforeBrush&&e.beforeBrush(),e.innerBeforeBrush();var u=n.prevEl;u||(l=s=!0);var c=e instanceof Cn&&e.autoBatch&&R2t(e.style);s||k2t(a,u.transform)?(_o(t,n),Dse(t,e)):c||_o(t,n);var f=ib(e,n.inHover);e instanceof Cn?(n.lastDrawType!==DG&&(l=!0,n.lastDrawType=DG),MG(t,e,u,l,n),(!c||!n.batchFill&&!n.batchStroke)&&t.beginPath(),T2t(t,e,f,c),c&&(n.batchFill=f.fill||"",n.batchStroke=f.stroke||"")):e instanceof X1?(n.lastDrawType!==kG&&(l=!0,n.lastDrawType=kG),MG(t,e,u,l,n),M2t(t,e,f)):e instanceof si?(n.lastDrawType!==AG&&(l=!0,n.lastDrawType=AG),D2t(t,e,u,l,n),E2t(t,e,f)):e.getTemporalDisplayables&&(n.lastDrawType!==RG&&(l=!0,n.lastDrawType=RG),L2t(t,e,n)),c&&r&&_o(t,n),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),n.prevEl=e,e.__dirty=0,e.__isRendered=!0}function L2t(t,e,n){var r=e.getDisplayables(),a=e.getTemporalDisplayables();t.save();var i={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover},o,s;for(o=e.getCursor(),s=r.length;o<s;o++){var l=r[o];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),Wh(t,l,i,o===s-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),i.prevEl=l}for(var u=0,c=a.length;u<c;u++){var l=a[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),Wh(t,l,i,u===c-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),i.prevEl=l}e.clearTemporalDisplayables(),e.notClear=!0,t.restore()}var xA=new f2t,LG=new eS(100),OG=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function a0(t,e){if(t==="none")return null;var n=e.getDevicePixelRatio(),r=e.getZr(),a=r.painter.type==="svg";t.dirty&&xA.delete(t);var i=xA.get(t);if(i)return i;var o=Xt(t,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});o.backgroundColor==="none"&&(o.backgroundColor=null);var s={repeat:"repeat"};return l(s),s.rotation=o.rotation,s.scaleX=s.scaleY=a?1:1/n,xA.set(t,s),t.dirty=!1,s;function l(u){for(var c=[n],f=!0,d=0;d<OG.length;++d){var h=o[OG[d]];if(h!=null&&!st(h)&&!Ot(h)&&!Un(h)&&typeof h!="boolean"){f=!1;break}c.push(h)}var p;if(f){p=c.join(",")+(a?"-svg":"");var v=LG.get(p);v&&(a?u.svgElement=v:u.image=v)}var g=kse(o.dashArrayX),y=O2t(o.dashArrayY),m=Ase(o.symbol),S=V2t(g),w=Rse(y),C=!a&&ml.createCanvas(),_=a&&{tag:"g",attrs:{},key:"dcl",children:[]},x=M(),T;C&&(C.width=x.width*n,C.height=x.height*n,T=C.getContext("2d")),E(),f&&LG.put(p,C||_),u.image=C,u.svgElement=_,u.svgWidth=x.width,u.svgHeight=x.height;function M(){for(var A=1,k=0,L=S.length;k<L;++k)A=Yz(A,S[k]);for(var I=1,k=0,L=m.length;k<L;++k)I=Yz(I,m[k].length);A*=I;var P=w*S.length*m.length;return{width:Math.max(1,Math.min(A,o.maxTileWidth)),height:Math.max(1,Math.min(P,o.maxTileHeight))}}function E(){T&&(T.clearRect(0,0,C.width,C.height),o.backgroundColor&&(T.fillStyle=o.backgroundColor,T.fillRect(0,0,C.width,C.height)));for(var A=0,k=0;k<y.length;++k)A+=y[k];if(A<=0)return;for(var L=-w,I=0,P=0,F=0;L<x.height;){if(I%2===0){for(var $=P/2%m.length,W=0,V=0,z=0;W<x.width*2;){for(var K=0,k=0;k<g[F].length;++k)K+=g[F][k];if(K<=0)break;if(V%2===0){var Z=(1-o.symbolSize)*.5,oe=W+g[F][V]*Z,ge=L+y[I]*Z,ie=g[F][V]*o.symbolSize,Q=y[I]*o.symbolSize,ce=z/2%m[$].length;se(oe,ge,ie,Q,m[$][ce])}W+=g[F][V],++z,++V,V===g[F].length&&(V=0)}++F,F===g.length&&(F=0)}L+=y[I],++P,++I,I===y.length&&(I=0)}function se(me,ve,he,ee,ue){var fe=a?1:n,Re=ba(ue,me*fe,ve*fe,he*fe,ee*fe,o.color,o.symbolKeepAspect);if(a){var Ne=r.painter.renderOneToVNode(Re);Ne&&_.children.push(Ne)}else qI(T,Re)}}}}function Ase(t){if(!t||t.length===0)return[["rect"]];if(Ot(t))return[[t]];for(var e=!0,n=0;n<t.length;++n)if(!Ot(t[n])){e=!1;break}if(e)return Ase([t]);for(var r=[],n=0;n<t.length;++n)Ot(t[n])?r.push([t[n]]):r.push(t[n]);return r}function kse(t){if(!t||t.length===0)return[[0,0]];if(Un(t)){var e=Math.ceil(t);return[[e,e]]}for(var n=!0,r=0;r<t.length;++r)if(!Un(t[r])){n=!1;break}if(n)return kse([t]);for(var a=[],r=0;r<t.length;++r)if(Un(t[r])){var e=Math.ceil(t[r]);a.push([e,e])}else{var e=ut(t[r],function(s){return Math.ceil(s)});e.length%2===1?a.push(e.concat(e)):a.push(e)}return a}function O2t(t){if(!t||typeof t=="object"&&t.length===0)return[0,0];if(Un(t)){var e=Math.ceil(t);return[e,e]}var n=ut(t,function(r){return Math.ceil(r)});return t.length%2?n.concat(n):n}function V2t(t){return ut(t,function(e){return Rse(e)})}function Rse(t){for(var e=0,n=0;n<t.length;++n)e+=t[n];return t.length%2===1?e*2:e}function N2t(t,e){t.eachRawSeries(function(n){if(!t.isSeriesFiltered(n)){var r=n.getData();r.hasItemVisual()&&r.each(function(o){var s=r.getItemVisual(o,"decal");if(s){var l=r.ensureUniqueItemVisual(o,"style");l.decal=a0(s,e)}});var a=r.getVisual("decal");if(a){var i=r.getVisual("style");i.decal=a0(a,e)}}})}var I2t=new ks;const Ys=I2t;var Lse={};function B2t(t,e){Lse[t]=e}function Ose(t){return Lse[t]}var $2t="5.4.3",P2t={zrender:"5.4.4"},F2t=1,z2t=800,U2t=900,G2t=1e3,H2t=2e3,W2t=5e3,Vse=1e3,j2t=1100,ZI=2e3,Nse=3e3,K2t=4e3,DE=4500,Y2t=4600,X2t=5e3,q2t=6e3,Ise=7e3,Bse={PROCESSOR:{FILTER:G2t,SERIES_FILTER:z2t,STATISTIC:W2t},VISUAL:{LAYOUT:Vse,PROGRESSIVE_LAYOUT:j2t,GLOBAL:ZI,CHART:Nse,POST_CHART_LAYOUT:Y2t,COMPONENT:K2t,BRUSH:X2t,CHART_ITEM:DE,ARIA:q2t,DECAL:Ise}},Mi="__flagInMainProcess",yo="__pendingUpdate",_A="__needsUpdateStatus",VG=/^[a-zA-Z0-9_]+$/,CA="__connectUpdateStatus",NG=0,Z2t=1,Q2t=2;function $se(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(this.isDisposed()){this.id;return}return Fse(this,t,e)}}function Pse(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return Fse(this,t,e)}}function Fse(t,e,n){return n[0]=n[0]&&n[0].toLowerCase(),ks.prototype[e].apply(t,n)}var zse=function(t){Fe(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(ks),Use=zse.prototype;Use.on=Pse("on");Use.off=Pse("off");var mv,TA,tx,jc,EA,MA,DA,Dy,Ay,IG,BG,AA,$G,nx,PG,Gse,Qo,FG,pC=function(t){Fe(e,t);function e(n,r,a){var i=t.call(this,new a2t)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],a=a||{},Ot(r)&&(r=Hse[r]),i._dom=n;var o="canvas",s="auto",l=!1,u=i._zr=bO(n,{renderer:a.renderer||o,devicePixelRatio:a.devicePixelRatio,width:a.width,height:a.height,ssr:a.ssr,useDirtyRect:gn(a.useDirtyRect,l),useCoarsePointer:gn(a.useCoarsePointer,s),pointerSize:a.pointerSize});i._ssr=a.ssr,i._throttledZrFlush=ME(Nt(u.flush,u),17),r=Zt(r),r&&Xoe(r,!0),i._theme=r,i._locale=lxt(a.locale||Toe),i._coordSysMgr=new P0;var c=i._api=PG(i);function f(d,h){return d.__prio-h.__prio}return D_(gC,f),D_(jO,f),i._scheduler=new _se(i,c,jO,gC),i._messageCenter=new zse,i._initEvents(),i.resize=Nt(i.resize,i),u.animation.on("frame",i._onframe,i),IG(u,i),BG(u,i),P1(i),i}return e.prototype._onframe=function(){if(!this._disposed){FG(this);var n=this._scheduler;if(this[yo]){var r=this[yo].silent;this[Mi]=!0;try{mv(this),jc.update.call(this,null,this[yo].updateParams)}catch(l){throw this[Mi]=!1,this[yo]=null,l}this._zr.flush(),this[Mi]=!1,this[yo]=null,Dy.call(this,r),Ay.call(this,r)}else if(n.unfinished){var a=F2t,i=this._model,o=this._api;n.unfinished=!1;do{var s=+new Date;n.performSeriesTasks(i),n.performDataProcessorTasks(i),MA(this,i),n.performVisualTasks(i),nx(this,this._model,o,"remain",{}),a-=+new Date-s}while(a>0&&n.unfinished);n.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(n,r,a){if(!this[Mi]){if(this._disposed){this.id;return}var i,o,s;if(qt(r)&&(a=r.lazyUpdate,i=r.silent,o=r.replaceMerge,s=r.transition,r=r.notMerge),this[Mi]=!0,!this._model||r){var l=new Uxt(this._api),u=this._theme,c=this._model=new joe;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(n,{replaceMerge:o},KO);var f={seriesTransition:s,optionChanged:!0};if(a)this[yo]={silent:i,updateParams:f},this[Mi]=!1,this.getZr().wakeUp();else{try{mv(this),jc.update.call(this,null,f)}catch(d){throw this[yo]=null,this[Mi]=!1,d}this._ssr||this._zr.flush(),this[yo]=null,this[Mi]=!1,Dy.call(this,i),Ay.call(this,i)}}},e.prototype.setTheme=function(){},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||Fn.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(n){return this.renderToCanvas(n)},e.prototype.renderToCanvas=function(n){n=n||{};var r=this._zr.painter;return r.getRenderedCanvas({backgroundColor:n.backgroundColor||this._model.get("backgroundColor"),pixelRatio:n.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(n){n=n||{};var r=this._zr.painter;return r.renderToString({useViewBox:n.useViewBox})},e.prototype.getSvgDataURL=function(){if(Fn.svgSupported){var n=this._zr,r=n.storage.getDisplayList();return q(r,function(a){a.stopAnimation(null,!0)}),n.painter.toDataURL()}},e.prototype.getDataURL=function(n){if(this._disposed){this.id;return}n=n||{};var r=n.excludeComponents,a=this._model,i=[],o=this;q(r,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(n).toDataURL("image/"+(n&&n.type||"png"));return q(i,function(l){l.group.ignore=!1}),s},e.prototype.getConnectedDataURL=function(n){if(this._disposed){this.id;return}var r=n.type==="svg",a=this.group,i=Math.min,o=Math.max,s=1/0;if(yC[a]){var l=s,u=s,c=-s,f=-s,d=[],h=n&&n.pixelRatio||this.getDevicePixelRatio();q(sp,function(S,w){if(S.group===a){var C=r?S.getZr().painter.getSvgDom().innerHTML:S.renderToCanvas(Zt(n)),_=S.getDom().getBoundingClientRect();l=i(_.left,l),u=i(_.top,u),c=o(_.right,c),f=o(_.bottom,f),d.push({dom:C,left:_.left,top:_.top})}}),l*=h,u*=h,c*=h,f*=h;var p=c-l,v=f-u,g=ml.createCanvas(),y=bO(g,{renderer:r?"svg":"canvas"});if(y.resize({width:p,height:v}),r){var m="";return q(d,function(S){var w=S.left-l,C=S.top-u;m+='<g transform="translate('+w+","+C+')">'+S.dom+"</g>"}),y.painter.getSvgRoot().innerHTML=m,n.connectedBackgroundColor&&y.painter.setBackgroundColor(n.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}else return n.connectedBackgroundColor&&y.add(new $n({shape:{x:0,y:0,width:p,height:v},style:{fill:n.connectedBackgroundColor}})),q(d,function(S){var w=new si({style:{x:S.left*h-l,y:S.top*h-u,image:S.dom}});y.add(w)}),y.refreshImmediately(),g.toDataURL("image/"+(n&&n.type||"png"))}else return this.getDataURL(n)},e.prototype.convertToPixel=function(n,r){return EA(this,"convertToPixel",n,r)},e.prototype.convertFromPixel=function(n,r){return EA(this,"convertFromPixel",n,r)},e.prototype.containPixel=function(n,r){if(this._disposed){this.id;return}var a=this._model,i,o=Fm(a,n);return q(o,function(s,l){l.indexOf("Models")>=0&&q(s,function(u){var c=u.coordinateSystem;if(c&&c.containPoint)i=i||!!c.containPoint(r);else if(l==="seriesModels"){var f=this._chartsMap[u.__viewId];f&&f.containPoint&&(i=i||f.containPoint(r,u))}},this)},this),!!i},e.prototype.getVisual=function(n,r){var a=this._model,i=Fm(a,n,{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?YI(s,l,r):cS(s,r)},e.prototype.getViewOfComponentModel=function(n){return this._componentsMap[n.__viewId]},e.prototype.getViewOfSeriesModel=function(n){return this._chartsMap[n.__viewId]},e.prototype._initEvents=function(){var n=this;q(J2t,function(r){var a=function(i){var o=n.getModel(),s=i.target,l,u=r==="globalout";if(u?l={}:s&&Gh(s,function(p){var v=ln(p);if(v&&v.dataIndex!=null){var g=v.dataModel||o.getSeriesByIndex(v.seriesIndex);return l=g&&g.getDataParams(v.dataIndex,v.dataType,s)||{},!0}else if(v.eventData)return l=et({},v.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&&n[d.mainType==="series"?"_chartsMap":"_componentsMap"][d.__viewId];l.event=i,l.type=r,n._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:d,view:h},n.trigger(r,l)}};a.zrEventfulCallAtLast=!0,n._zr.on(r,a,n)}),q(jm,function(r,a){n._messageCenter.on(a,function(i){this.trigger(a,i)},n)}),q(["selectchanged"],function(r){n._messageCenter.on(r,function(a){this.trigger(r,a)},n)}),s2t(this._messageCenter,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var n=this.getDom();n&&wie(this.getDom(),JI,"");var r=this,a=r._api,i=r._model;q(r._componentsViews,function(o){o.dispose(i,a)}),q(r._chartsViews,function(o){o.dispose(i,a)}),r._zr.dispose(),r._dom=r._model=r._chartsMap=r._componentsMap=r._chartsViews=r._componentsViews=r._scheduler=r._api=r._zr=r._throttledZrFlush=r._theme=r._coordSysMgr=r._messageCenter=null,delete sp[r.id]},e.prototype.resize=function(n){if(!this[Mi]){if(this._disposed){this.id;return}this._zr.resize(n);var r=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!r){var a=r.resetOption("media"),i=n&&n.silent;this[yo]&&(i==null&&(i=this[yo].silent),a=!0,this[yo]=null),this[Mi]=!0;try{a&&mv(this),jc.update.call(this,{type:"resize",animation:et({duration:0},n&&n.animation)})}catch(o){throw this[Mi]=!1,o}this[Mi]=!1,Dy.call(this,i),Ay.call(this,i)}}},e.prototype.showLoading=function(n,r){if(this._disposed){this.id;return}if(qt(n)&&(r=n,n=""),n=n||"default",this.hideLoading(),!!YO[n]){var a=YO[n](this._api,r),i=this._zr;this._loadingFX=a,i.add(a)}},e.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(n){var r=et({},n);return r.type=jm[n.type],r},e.prototype.dispatchAction=function(n,r){if(this._disposed){this.id;return}if(qt(r)||(r={silent:!!r}),!!vC[n.type]&&this._model){if(this[Mi]){this._pendingActions.push(n);return}var a=r.silent;DA.call(this,n,a);var i=r.flush;i?this._zr.flush():i!==!1&&Fn.browser.weChat&&this._throttledZrFlush(),Dy.call(this,a),Ay.call(this,a)}},e.prototype.updateLabelLayout=function(){Ys.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(n){if(this._disposed){this.id;return}var r=n.seriesIndex,a=this.getModel(),i=a.getSeriesByIndex(r);i.appendData(n),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=function(){mv=function(f){var d=f._scheduler;d.restorePipelines(f._model),d.prepareStageTasks(),TA(f,!0),TA(f,!1),d.plan()},TA=function(f,d){for(var h=f._model,p=f._scheduler,v=d?f._componentsViews:f._chartsViews,g=d?f._componentsMap:f._chartsMap,y=f._zr,m=f._api,S=0;S<v.length;S++)v[S].__alive=!1;d?h.eachComponent(function(_,x){_!=="series"&&w(x)}):h.eachSeries(w);function w(_){var x=_.__requireNewView;_.__requireNewView=!1;var T="_ec_"+_.id+"_"+_.type,M=!x&&g[T];if(!M){var E=eu(_.type),A=d?jr.getClass(E.main,E.sub):br.getClass(E.sub);M=new A,M.init(h,m),g[T]=M,v.push(M),y.add(M.group)}_.__viewId=M.__id=T,M.__alive=!0,M.__model=_,M.group.__ecComponentInfo={mainType:_.mainType,index:_.componentIndex},!d&&p.prepareView(M,_,h,m)}for(var S=0;S<v.length;){var C=v[S];C.__alive?S++:(!d&&C.renderTask.dispose(),y.remove(C.group),C.dispose(h,m),v.splice(S,1),g[C.__id]===C&&delete g[C.__id],C.__id=C.group.__ecComponentInfo=null)}},tx=function(f,d,h,p,v){var g=f._model;if(g.setUpdatePayload(h),!p){q([].concat(f._componentsViews).concat(f._chartsViews),C);return}var y={};y[p+"Id"]=h[p+"Id"],y[p+"Index"]=h[p+"Index"],y[p+"Name"]=h[p+"Name"];var m={mainType:p,query:y};v&&(m.subType=v);var S=h.excludeSeriesId,w;S!=null&&(w=Gt(),q(mr(S),function(_){var x=Ia(_,null);x!=null&&w.set(x,!0)})),g&&g.eachComponent(m,function(_){var x=w&&w.get(_.id)!=null;if(!x)if(xU(h))if(_ instanceof Vr)h.type===ip&&!h.notBlur&&!_.get(["emphasis","disabled"])&&awt(_,h,f._api);else{var T=wI(_.mainType,_.componentIndex,h.name,f._api),M=T.focusSelf,E=T.dispatchers;h.type===ip&&M&&!h.notBlur&&DO(_.mainType,_.componentIndex,f._api),E&&q(E,function(A){h.type===ip?dc(A):hc(A)})}else kO(h)&&_ instanceof Vr&&(swt(_,h,f._api),SU(_),Qo(f))},f),g&&g.eachComponent(m,function(_){var x=w&&w.get(_.id)!=null;x||C(f[p==="series"?"_chartsMap":"_componentsMap"][_.__viewId])},f);function C(_){_&&_.__alive&&_[d]&&_[d](_.__model,g,f._api,h)}},jc={prepareAndUpdate:function(f){mv(this),jc.update.call(this,f,{optionChanged:f.newOption!=null})},update:function(f,d){var h=this._model,p=this._api,v=this._zr,g=this._coordSysMgr,y=this._scheduler;if(h){h.setUpdatePayload(f),y.restoreData(h,f),y.performSeriesTasks(h),g.create(h,p),y.performDataProcessorTasks(h,f),MA(this,h),g.update(h,p),n(h),y.performVisualTasks(h,f),AA(this,h,p,f,d);var m=h.get("backgroundColor")||"transparent",S=h.get("darkMode");v.setBackgroundColor(m),S!=null&&S!=="auto"&&v.setDarkMode(S),Ys.trigger("afterupdate",h,p)}},updateTransform:function(f){var d=this,h=this._model,p=this._api;if(h){h.setUpdatePayload(f);var v=[];h.eachComponent(function(y,m){if(y!=="series"){var S=d.getViewOfComponentModel(m);if(S&&S.__alive)if(S.updateTransform){var w=S.updateTransform(m,h,p,f);w&&w.update&&v.push(S)}else v.push(S)}});var g=Gt();h.eachSeries(function(y){var m=d._chartsMap[y.__viewId];if(m.updateTransform){var S=m.updateTransform(y,h,p,f);S&&S.update&&g.set(y.uid,1)}else g.set(y.uid,1)}),n(h),this._scheduler.performVisualTasks(h,f,{setDirty:!0,dirtyMap:g}),nx(this,h,p,f,{},g),Ys.trigger("afterupdate",h,p)}},updateView:function(f){var d=this._model;d&&(d.setUpdatePayload(f),br.markUpdateMethod(f,"updateView"),n(d),this._scheduler.performVisualTasks(d,f,{setDirty:!0}),AA(this,d,this._api,f,{}),Ys.trigger("afterupdate",d,this._api))},updateVisual:function(f){var d=this,h=this._model;h&&(h.setUpdatePayload(f),h.eachSeries(function(p){p.getData().clearAllVisual()}),br.markUpdateMethod(f,"updateVisual"),n(h),this._scheduler.performVisualTasks(h,f,{visualType:"visual",setDirty:!0}),h.eachComponent(function(p,v){if(p!=="series"){var g=d.getViewOfComponentModel(v);g&&g.__alive&&g.updateVisual(v,h,d._api,f)}}),h.eachSeries(function(p){var v=d._chartsMap[p.__viewId];v.updateVisual(p,h,d._api,f)}),Ys.trigger("afterupdate",h,this._api))},updateLayout:function(f){jc.update.call(this,f)}},EA=function(f,d,h,p){if(f._disposed){f.id;return}for(var v=f._model,g=f._coordSysMgr.getCoordinateSystems(),y,m=Fm(v,h),S=0;S<g.length;S++){var w=g[S];if(w[d]&&(y=w[d](v,m,p))!=null)return y}},MA=function(f,d){var h=f._chartsMap,p=f._scheduler;d.eachSeries(function(v){p.updateStreamModes(v,h[v.__viewId])})},DA=function(f,d){var h=this,p=this.getModel(),v=f.type,g=f.escapeConnect,y=vC[v],m=y.actionInfo,S=(m.update||"update").split(":"),w=S.pop(),C=S[0]!=null&&eu(S[0]);this[Mi]=!0;var _=[f],x=!1;f.batch&&(x=!0,_=ut(f.batch,function(I){return I=Xt(et({},I),f),I.batch=null,I}));var T=[],M,E=kO(f),A=xU(f);if(A&&Yie(this._api),q(_,function(I){if(M=y.action(I,h._model,h._api),M=M||et({},I),M.type=m.event||M.type,T.push(M),A){var P=pI(f),F=P.queryOptionMap,$=P.mainTypeSpecified,W=$?F.keys()[0]:"series";tx(h,w,I,W),Qo(h)}else E?(tx(h,w,I,"series"),Qo(h)):C&&tx(h,w,I,C.main,C.sub)}),w!=="none"&&!A&&!E&&!C)try{this[yo]?(mv(this),jc.update.call(this,f),this[yo]=null):jc[w].call(this,f)}catch(I){throw this[Mi]=!1,I}if(x?M={type:m.event||v,escapeConnect:g,batch:T}:M=T[0],this[Mi]=!1,!d){var k=this._messageCenter;if(k.trigger(M.type,M),E){var L={type:"selectchanged",escapeConnect:g,selected:lwt(p),isFromClick:f.isFromClick||!1,fromAction:f.type,fromActionPayload:f};k.trigger(L.type,L)}}},Dy=function(f){for(var d=this._pendingActions;d.length;){var h=d.shift();DA.call(this,h,f)}},Ay=function(f){!f&&this.trigger("updated")},IG=function(f,d){f.on("rendered",function(h){d.trigger("rendered",h),f.animation.isFinished()&&!d[yo]&&!d._scheduler.unfinished&&!d._pendingActions.length&&d.trigger("finished")})},BG=function(f,d){f.on("mouseover",function(h){var p=h.target,v=Gh(p,Z1);v&&(iwt(v,h,d._api),Qo(d))}).on("mouseout",function(h){var p=h.target,v=Gh(p,Z1);v&&(owt(v,h,d._api),Qo(d))}).on("click",function(h){var p=h.target,v=Gh(p,function(m){return ln(m).dataIndex!=null},!0);if(v){var g=v.selected?"unselect":"select",y=ln(v);d._api.dispatchAction({type:g,dataType:y.dataType,dataIndexInside:y.dataIndex,seriesIndex:y.seriesIndex,isFromClick:!0})}})};function n(f){f.clearColorPalette(),f.eachSeries(function(d){d.clearColorPalette()})}function r(f){var d=[],h=[],p=!1;if(f.eachComponent(function(m,S){var w=S.get("zlevel")||0,C=S.get("z")||0,_=S.getZLevelKey();p=p||!!_,(m==="series"?h:d).push({zlevel:w,z:C,idx:S.componentIndex,type:m,key:_})}),p){var v=d.concat(h),g,y;D_(v,function(m,S){return m.zlevel===S.zlevel?m.z-S.z:m.zlevel-S.zlevel}),q(v,function(m){var S=f.getComponent(m.type,m.idx),w=m.zlevel,C=m.key;g!=null&&(w=Math.max(g,w)),C?(w===g&&C!==y&&w++,y=C):y&&(w===g&&w++,y=""),g=w,S.setZLevel(w)})}}AA=function(f,d,h,p,v){r(d),$G(f,d,h,p,v),q(f._chartsViews,function(g){g.__alive=!1}),nx(f,d,h,p,v),q(f._chartsViews,function(g){g.__alive||g.remove(d,h)})},$G=function(f,d,h,p,v,g){q(g||f._componentsViews,function(y){var m=y.__model;u(m,y),y.render(m,d,h,p),s(m,y),c(m,y)})},nx=function(f,d,h,p,v,g){var y=f._scheduler;v=et(v||{},{updatedSeries:d.getSeries()}),Ys.trigger("series:beforeupdate",d,h,v);var m=!1;d.eachSeries(function(S){var w=f._chartsMap[S.__viewId];w.__alive=!0;var C=w.renderTask;y.updatePayload(C,p),u(S,w),g&&g.get(S.uid)&&C.dirty(),C.perform(y.getPerformArgs(C))&&(m=!0),w.group.silent=!!S.get("silent"),o(S,w),SU(S)}),y.unfinished=m||y.unfinished,Ys.trigger("series:layoutlabels",d,h,v),Ys.trigger("series:transition",d,h,v),d.eachSeries(function(S){var w=f._chartsMap[S.__viewId];s(S,w),c(S,w)}),i(f,d),Ys.trigger("series:afterupdate",d,h,v)},Qo=function(f){f[_A]=!0,f.getZr().wakeUp()},FG=function(f){f[_A]&&(f.getZr().storage.traverse(function(d){mg(d)||a(d)}),f[_A]=!1)};function a(f){for(var d=[],h=f.currentStates,p=0;p<h.length;p++){var v=h[p];v==="emphasis"||v==="blur"||v==="select"||d.push(v)}f.selected&&f.states.select&&d.push("select"),f.hoverState===fE&&f.states.emphasis?d.push("emphasis"):f.hoverState===rS&&f.states.blur&&d.push("blur"),f.useStates(d)}function i(f,d){var h=f._zr,p=h.storage,v=0;p.traverse(function(g){g.isGroup||v++}),v>d.get("hoverLayerThreshold")&&!Fn.node&&!Fn.worker&&d.eachSeries(function(g){if(!g.preventUsingHoverLayer){var y=f._chartsMap[g.__viewId];y.__alive&&y.eachRendered(function(m){m.states.emphasis&&(m.states.emphasis.hoverLayer=!0)})}})}function o(f,d){var h=f.get("blendMode")||null;d.eachRendered(function(p){p.isGroup||(p.style.blend=h)})}function s(f,d){if(!f.preventAutoZ){var h=f.get("z")||0,p=f.get("zlevel")||0;d.eachRendered(function(v){return l(v,h,p,-1/0),!0})}}function l(f,d,h,p){var v=f.getTextContent(),g=f.getTextGuideLine(),y=f.isGroup;if(y)for(var m=f.childrenRef(),S=0;S<m.length;S++)p=Math.max(l(m[S],d,h,p),p);else f.z=d,f.zlevel=h,p=Math.max(f.z2,p);if(v&&(v.z=d,v.zlevel=h,isFinite(p)&&(v.z2=p+2)),g){var w=f.textGuideLineConfig;g.z=d,g.zlevel=h,isFinite(p)&&(g.z2=p+(w&&w.showAbove?1:-1))}return p}function u(f,d){d.eachRendered(function(h){if(!mg(h)){var p=h.getTextContent(),v=h.getTextGuideLine();h.stateTransition&&(h.stateTransition=null),p&&p.stateTransition&&(p.stateTransition=null),v&&v.stateTransition&&(v.stateTransition=null),h.hasState()?(h.prevStates=h.currentStates,h.clearStates()):h.prevStates&&(h.prevStates=null)}})}function c(f,d){var h=f.getModel("stateAnimation"),p=f.isAnimationEnabled(),v=h.get("duration"),g=v>0?{duration:v,delay:h.get("delay"),easing:h.get("easing")}:null;d.eachRendered(function(y){if(y.states&&y.states.emphasis){if(mg(y))return;if(y instanceof Cn&&hwt(y),y.__dirty){var m=y.prevStates;m&&y.useStates(m)}if(p){y.stateTransition=g;var S=y.getTextContent(),w=y.getTextGuideLine();S&&(S.stateTransition=g),w&&(w.stateTransition=g)}y.__dirty&&a(y)}})}PG=function(f){return new(function(d){Fe(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(p){for(;p;){var v=p.__ecComponentInfo;if(v!=null)return f._model.getComponent(v.mainType,v.index);p=p.parent}},h.prototype.enterEmphasis=function(p,v){dc(p,v),Qo(f)},h.prototype.leaveEmphasis=function(p,v){hc(p,v),Qo(f)},h.prototype.enterBlur=function(p){Hie(p),Qo(f)},h.prototype.leaveBlur=function(p){SI(p),Qo(f)},h.prototype.enterSelect=function(p){Wie(p),Qo(f)},h.prototype.leaveSelect=function(p){jie(p),Qo(f)},h.prototype.getModel=function(){return f.getModel()},h.prototype.getViewOfComponentModel=function(p){return f.getViewOfComponentModel(p)},h.prototype.getViewOfSeriesModel=function(p){return f.getViewOfSeriesModel(p)},h}(Koe))(f)},Gse=function(f){function d(h,p){for(var v=0;v<h.length;v++){var g=h[v];g[CA]=p}}q(jm,function(h,p){f._messageCenter.on(p,function(v){if(yC[f.group]&&f[CA]!==NG){if(v&&v.escapeConnect)return;var g=f.makeActionFromEvent(v),y=[];q(sp,function(m){m!==f&&m.group===f.group&&y.push(m)}),d(y,NG),q(y,function(m){m[CA]!==Z2t&&m.dispatchAction(g)}),d(y,Q2t)}})})}}(),e}(ks),QI=pC.prototype;QI.on=$se("on");QI.off=$se("off");QI.one=function(t,e,n){var r=this;function a(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];e&&e.apply&&e.apply(this,i),r.off(t,a)}this.on.call(this,t,a,n)};var J2t=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var vC={},jm={},jO=[],KO=[],gC=[],Hse={},YO={},sp={},yC={},eCt=+new Date-0,tCt=+new Date-0,JI="_echarts_instance_";function nCt(t,e,n){var r=!(n&&n.ssr);if(r){var a=eB(t);if(a)return a}var i=new pC(t,e,n);return i.id="ec_"+eCt++,sp[i.id]=i,r&&wie(t,JI,i.id),Gse(i),Ys.trigger("afterinit",i),i}function rCt(t){if(st(t)){var e=t;t=null,q(e,function(n){n.group!=null&&(t=n.group)}),t=t||"g_"+tCt++,q(e,function(n){n.group=t})}return yC[t]=!0,t}function Wse(t){yC[t]=!1}var aCt=Wse;function iCt(t){Ot(t)?t=sp[t]:t instanceof pC||(t=eB(t)),t instanceof pC&&!t.isDisposed()&&t.dispose()}function eB(t){return sp[Jbt(t,JI)]}function oCt(t){return sp[t]}function tB(t,e){Hse[t]=e}function nB(t){bn(KO,t)<0&&KO.push(t)}function rB(t,e){aB(jO,t,e,H2t)}function jse(t){AE("afterinit",t)}function Kse(t){AE("afterupdate",t)}function AE(t,e){Ys.on(t,e)}function Ml(t,e,n){jt(e)&&(n=e,e="");var r=qt(t)?t.type:[t,t={event:e}][0];t.event=(t.event||r).toLowerCase(),e=t.event,!jm[e]&&(Ii(VG.test(r)&&VG.test(e)),vC[r]||(vC[r]={action:n,actionInfo:t}),jm[e]=r)}function Yse(t,e){P0.register(t,e)}function sCt(t){var e=P0.get(t);if(e)return e.getDimensionsInfo?e.getDimensionsInfo():e.dimensions.slice()}function Xse(t,e){aB(gC,t,e,Vse,"layout")}function pd(t,e){aB(gC,t,e,Nse,"visual")}var zG=[];function aB(t,e,n,r,a){if((jt(e)||qt(e))&&(n=e,e=r),!(bn(zG,n)>=0)){zG.push(n);var i=_se.wrapStageHandler(n,a);i.__prio=e,i.__raw=n,t.push(i)}}function iB(t,e){YO[t]=e}function lCt(t){Cae({createCanvas:t})}function qse(t,e,n){var r=Ose("registerMap");r&&r(t,e,n)}function uCt(t){var e=Ose("getMap");return e&&e(t)}var Zse=g_t;pd(ZI,U_t);pd(DE,G_t);pd(DE,H_t);pd(ZI,i2t);pd(DE,o2t);pd(Ise,N2t);nB(Xoe);rB(U2t,qxt);iB("default",W_t);Ml({type:ip,event:ip,update:ip},fa);Ml({type:N_,event:N_,update:N_},fa);Ml({type:zm,event:zm,update:zm},fa);Ml({type:I_,event:I_,update:I_},fa);Ml({type:Um,event:Um,update:Um},fa);tB("light",n2t);tB("dark",r2t);var cCt={},UG=[],fCt={registerPreprocessor:nB,registerProcessor:rB,registerPostInit:jse,registerPostUpdate:Kse,registerUpdateLifecycle:AE,registerAction:Ml,registerCoordinateSystem:Yse,registerLayout:Xse,registerVisual:pd,registerTransform:Zse,registerLoading:iB,registerMap:qse,registerImpl:B2t,PRIORITY:Bse,ComponentModel:On,ComponentView:jr,SeriesModel:Vr,ChartView:br,registerComponentModel:function(t){On.registerClass(t)},registerComponentView:function(t){jr.registerClass(t)},registerSeriesModel:function(t){Vr.registerClass(t)},registerChartView:function(t){br.registerClass(t)},registerSubTypeDefaulter:function(t,e){On.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){cie(t,e)}};function wn(t){if(st(t)){q(t,function(e){wn(e)});return}bn(UG,t)>=0||(UG.push(t),jt(t)&&(t={install:t}),t.install(fCt))}function ky(t){return t==null?0:t.length||1}function GG(t){return t}var dCt=function(){function t(e,n,r,a,i,o){this._old=e,this._new=n,this._oldKeyGetter=r||GG,this._newKeyGetter=a||GG,this.context=i,this._diffModeMultiple=o==="multiple"}return t.prototype.add=function(e){return this._add=e,this},t.prototype.update=function(e){return this._update=e,this},t.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},t.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},t.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},t.prototype.remove=function(e){return this._remove=e,this},t.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},t.prototype._executeOneToOne=function(){var e=this._old,n=this._new,r={},a=new Array(e.length),i=new Array(n.length);this._initIndexMap(e,null,a,"_oldKeyGetter"),this._initIndexMap(n,r,i,"_newKeyGetter");for(var o=0;o<e.length;o++){var s=a[o],l=r[s],u=ky(l);if(u>1){var c=l.shift();l.length===1&&(r[s]=l[0]),this._update&&this._update(c,o)}else u===1?(r[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(i,r)},t.prototype._executeMultiple=function(){var e=this._old,n=this._new,r={},a={},i=[],o=[];this._initIndexMap(e,r,i,"_oldKeyGetter"),this._initIndexMap(n,a,o,"_newKeyGetter");for(var s=0;s<i.length;s++){var l=i[s],u=r[l],c=a[l],f=ky(u),d=ky(c);if(f>1&&d===1)this._updateManyToOne&&this._updateManyToOne(c,u),a[l]=null;else if(f===1&&d>1)this._updateOneToMany&&this._updateOneToMany(c,u),a[l]=null;else if(f===1&&d===1)this._update&&this._update(c,u),a[l]=null;else if(f>1&&d>1)this._updateManyToMany&&this._updateManyToMany(c,u),a[l]=null;else if(f>1)for(var h=0;h<f;h++)this._remove&&this._remove(u[h]);else this._remove&&this._remove(u)}this._performRestAdd(o,a)},t.prototype._performRestAdd=function(e,n){for(var r=0;r<e.length;r++){var a=e[r],i=n[a],o=ky(i);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(i[s]);else o===1&&this._add&&this._add(i);n[a]=null}},t.prototype._initIndexMap=function(e,n,r,a){for(var i=this._diffModeMultiple,o=0;o<e.length;o++){var s="_ec_"+this[a](e[o],o);if(i||(r[o]=s),!!n){var l=n[s],u=ky(l);u===0?(n[s]=o,i&&r.push(s)):u===1?n[s]=[l,o]:l.push(o)}}},t}();const pc=dCt;var hCt=function(){function t(e,n){this._encode=e,this._schema=n}return t.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},t.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},t}();function pCt(t,e){var n={},r=n.encode={},a=Gt(),i=[],o=[],s={};q(t.dimensions,function(d){var h=t.getDimensionInfo(d),p=h.coordDim;if(p){var v=h.coordDimIndex;kA(r,p)[v]=d,h.isExtraCoord||(a.set(p,1),vCt(h.type)&&(i[0]=d),kA(s,p)[v]=t.getDimensionIndex(h.name)),h.defaultTooltip&&o.push(d)}$oe.each(function(g,y){var m=kA(r,y),S=h.otherDims[y];S!=null&&S!==!1&&(m[S]=h.name)})});var l=[],u={};a.each(function(d,h){var p=r[h];u[h]=p[0],l=l.concat(p)}),n.dataDimsOnCoord=l,n.dataDimIndicesOnCoord=ut(l,function(d){return t.getDimensionInfo(d).storeDimIndex}),n.encodeFirstDimNotExtra=u;var c=r.label;c&&c.length&&(i=c.slice());var f=r.tooltip;return f&&f.length?o=f.slice():o.length||(o=i.slice()),r.defaultedLabel=i,r.defaultedTooltip=o,n.userOutput=new hCt(s,e),n}function kA(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function mC(t){return t==="category"?"ordinal":t==="time"?"time":"float"}function vCt(t){return!(t==="ordinal"||t==="time")}var gCt=function(){function t(e){this.otherDims={},e!=null&&et(this,e)}return t}();const z_=gCt;var yCt=Gn(),mCt={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},Qse=function(){function t(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return t.prototype.isDimensionOmitted=function(){return this._dimOmitted},t.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||(this._dimNameMap=tle(this.source)))},t.prototype.getSourceDimensionIndex=function(e){return gn(this._dimNameMap.get(e),-1)},t.prototype.getSourceDimension=function(e){var n=this.source.dimensionsDefine;if(n)return n[e]},t.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,n=Zoe(this.source),r=!nle(e),a="",i=[],o=0,s=0;o<e;o++){var l=void 0,u=void 0,c=void 0,f=this.dimensions[s];if(f&&f.storeDimIndex===o)l=n?f.name:null,u=f.type,c=f.ordinalMeta,s++;else{var d=this.getSourceDimension(o);d&&(l=n?d.name:null,u=d.type)}i.push({property:l,type:u,ordinalMeta:c}),n&&l!=null&&(!f||!f.isCalculationCoord)&&(a+=r?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),a+="$",a+=mCt[u]||"f",c&&(a+=c.uid),a+="$"}var h=this.source,p=[h.seriesLayoutBy,h.startIndex,a].join("$$");return{dimensions:i,hash:p}},t.prototype.makeOutputDimensionNames=function(){for(var e=[],n=0,r=0;n<this._fullDimCount;n++){var a=void 0,i=this.dimensions[r];if(i&&i.storeDimIndex===n)i.isCalculationCoord||(a=i.name),r++;else{var o=this.getSourceDimension(n);o&&(a=o.name)}e.push(a)}return e},t.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},t}();function Jse(t){return t instanceof Qse}function ele(t){for(var e=Gt(),n=0;n<(t||[]).length;n++){var r=t[n],a=qt(r)?r.name:r;a!=null&&e.get(a)==null&&e.set(a,n)}return e}function tle(t){var e=yCt(t);return e.dimNameMap||(e.dimNameMap=ele(t.dimensionsDefine))}function nle(t){return t>30}var Ry=qt,Kc=ut,bCt=typeof Int32Array>"u"?Array:Int32Array,SCt="e\0\0",HG=-1,wCt=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],xCt=["_approximateExtent"],WG,rx,Ly,Oy,RA,ax,LA,_Ct=function(){function t(e,n){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var r,a=!1;Jse(e)?(r=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(a=!0,r=e),r=r||["x","y"];for(var i={},o=[],s={},l=!1,u={},c=0;c<r.length;c++){var f=r[c],d=Ot(f)?new z_({name:f}):f instanceof z_?f:new z_(f),h=d.name;d.type=d.type||"float",d.coordDim||(d.coordDim=h,d.coordDimIndex=0);var p=d.otherDims=d.otherDims||{};o.push(h),i[h]=d,u[h]!=null&&(l=!0),d.createInvertedIndices&&(s[h]=[]),p.itemName===0&&(this._nameDimIdx=c),p.itemId===0&&(this._idDimIdx=c),a&&(d.storeDimIndex=c)}if(this.dimensions=o,this._dimInfos=i,this._initGetDimensionInfo(l),this.hostModel=n,this._invertedIndicesMap=s,this._dimOmitted){var v=this._dimIdxToName=Gt();q(o,function(g){v.set(i[g].storeDimIndex,g)})}}return t.prototype.getDimension=function(e){var n=this._recognizeDimIndex(e);if(n==null)return e;if(n=e,!this._dimOmitted)return this.dimensions[n];var r=this._dimIdxToName.get(n);if(r!=null)return r;var a=this._schema.getSourceDimension(n);if(a)return a.name},t.prototype.getDimensionIndex=function(e){var n=this._recognizeDimIndex(e);if(n!=null)return n;if(e==null)return-1;var r=this._getDimInfo(e);return r?r.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},t.prototype._recognizeDimIndex=function(e){if(Un(e)||e!=null&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},t.prototype._getStoreDimIndex=function(e){var n=this.getDimensionIndex(e);return n},t.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},t.prototype._initGetDimensionInfo=function(e){var n=this._dimInfos;this._getDimInfo=e?function(r){return n.hasOwnProperty(r)?n[r]:void 0}:function(r){return n[r]}},t.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},t.prototype.mapDimension=function(e,n){var r=this._dimSummary;if(n==null)return r.encodeFirstDimNotExtra[e];var a=r.encode[e];return a?a[n]:null},t.prototype.mapDimensionsAll=function(e){var n=this._dimSummary,r=n.encode[e];return(r||[]).slice()},t.prototype.getStore=function(){return this._store},t.prototype.initData=function(e,n,r){var a=this,i;if(e instanceof PO&&(i=e),!i){var o=this.dimensions,s=zI(e)||mi(e)?new Qoe(e,o.length):e;i=new PO;var l=Kc(o,function(u){return{type:a._dimInfos[u].type,property:u}});i.initData(s,l,r)}this._store=i,this._nameList=(n||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=pCt(this,this._schema),this.userOutput=this._dimSummary.userOutput},t.prototype.appendData=function(e){var n=this._store.appendData(e);this._doInit(n[0],n[1])},t.prototype.appendValues=function(e,n){var r=this._store.appendValues(e,n.length),a=r.start,i=r.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),n)for(var s=a;s<i;s++){var l=s-a;this._nameList[s]=n[l],o&&LA(this,s)}},t.prototype._updateOrdinalMeta=function(){for(var e=this._store,n=this.dimensions,r=0;r<n.length;r++){var a=this._dimInfos[n[r]];a.ordinalMeta&&e.collectOrdinalMeta(a.storeDimIndex,a.ordinalMeta)}},t.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return this._idDimIdx==null&&e.getSource().sourceFormat!==If&&!e.fillStorage},t.prototype._doInit=function(e,n){if(!(e>=n)){var r=this._store,a=r.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,s=a.getSource().sourceFormat,l=s===Ls;if(l&&!a.pure)for(var u=[],c=e;c<n;c++){var f=a.getItem(c,u);if(!this.hasItemOption&&Fbt(f)&&(this.hasItemOption=!0),f){var d=f.name;i[c]==null&&d!=null&&(i[c]=Ia(d,null));var h=f.id;o[c]==null&&h!=null&&(o[c]=Ia(h,null))}}if(this._shouldMakeIdFromName())for(var c=e;c<n;c++)LA(this,c);WG(this)}},t.prototype.getApproximateExtent=function(e){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e))},t.prototype.setApproximateExtent=function(e,n){n=this.getDimension(n),this._approximateExtent[n]=e.slice()},t.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},t.prototype.setCalculationInfo=function(e,n){Ry(e)?et(this._calculationInfo,e):this._calculationInfo[e]=n},t.prototype.getName=function(e){var n=this.getRawIndex(e),r=this._nameList[n];return r==null&&this._nameDimIdx!=null&&(r=Ly(this,this._nameDimIdx,n)),r==null&&(r=""),r},t.prototype._getCategory=function(e,n){var r=this._store.get(e,n),a=this._store.getOrdinalMeta(e);return a?a.categories[r]:r},t.prototype.getId=function(e){return rx(this,this.getRawIndex(e))},t.prototype.count=function(){return this._store.count()},t.prototype.get=function(e,n){var r=this._store,a=this._dimInfos[e];if(a)return r.get(a.storeDimIndex,n)},t.prototype.getByRawIndex=function(e,n){var r=this._store,a=this._dimInfos[e];if(a)return r.getByRawIndex(a.storeDimIndex,n)},t.prototype.getIndices=function(){return this._store.getIndices()},t.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e))},t.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},t.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},t.prototype.getValues=function(e,n){var r=this,a=this._store;return st(e)?a.getValues(Kc(e,function(i){return r._getStoreDimIndex(i)}),n):a.getValues(e)},t.prototype.hasValue=function(e){for(var n=this._dimSummary.dataDimIndicesOnCoord,r=0,a=n.length;r<a;r++)if(isNaN(this._store.get(n[r],e)))return!1;return!0},t.prototype.indexOfName=function(e){for(var n=0,r=this._store.count();n<r;n++)if(this.getName(n)===e)return n;return-1},t.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},t.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},t.prototype.rawIndexOf=function(e,n){var r=e&&this._invertedIndicesMap[e],a=r[n];return a==null||isNaN(a)?HG:a},t.prototype.indicesOfNearest=function(e,n,r){return this._store.indicesOfNearest(this._getStoreDimIndex(e),n,r)},t.prototype.each=function(e,n,r){jt(e)&&(r=n,n=e,e=[]);var a=r||this,i=Kc(Oy(e),this._getStoreDimIndex,this);this._store.each(i,a?Nt(n,a):n)},t.prototype.filterSelf=function(e,n,r){jt(e)&&(r=n,n=e,e=[]);var a=r||this,i=Kc(Oy(e),this._getStoreDimIndex,this);return this._store=this._store.filter(i,a?Nt(n,a):n),this},t.prototype.selectRange=function(e){var n=this,r={},a=Dn(e);return q(a,function(i){var o=n._getStoreDimIndex(i);r[o]=e[i]}),this._store=this._store.selectRange(r),this},t.prototype.mapArray=function(e,n,r){jt(e)&&(r=n,n=e,e=[]),r=r||this;var a=[];return this.each(e,function(){a.push(n&&n.apply(this,arguments))},r),a},t.prototype.map=function(e,n,r,a){var i=r||a||this,o=Kc(Oy(e),this._getStoreDimIndex,this),s=ax(this);return s._store=this._store.map(o,i?Nt(n,i):n),s},t.prototype.modify=function(e,n,r,a){var i=r||a||this,o=Kc(Oy(e),this._getStoreDimIndex,this);this._store.modify(o,i?Nt(n,i):n)},t.prototype.downSample=function(e,n,r,a){var i=ax(this);return i._store=this._store.downSample(this._getStoreDimIndex(e),n,r,a),i},t.prototype.lttbDownSample=function(e,n){var r=ax(this);return r._store=this._store.lttbDownSample(this._getStoreDimIndex(e),n),r},t.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},t.prototype.getItemModel=function(e){var n=this.hostModel,r=this.getRawDataItem(e);return new yr(r,n,n&&n.ecModel)},t.prototype.diff=function(e){var n=this;return new pc(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(r){return rx(e,r)},function(r){return rx(n,r)})},t.prototype.getVisual=function(e){var n=this._visual;return n&&n[e]},t.prototype.setVisual=function(e,n){this._visual=this._visual||{},Ry(e)?et(this._visual,e):this._visual[e]=n},t.prototype.getItemVisual=function(e,n){var r=this._itemVisuals[e],a=r&&r[n];return a??this.getVisual(n)},t.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},t.prototype.ensureUniqueItemVisual=function(e,n){var r=this._itemVisuals,a=r[e];a||(a=r[e]={});var i=a[n];return i==null&&(i=this.getVisual(n),st(i)?i=i.slice():Ry(i)&&(i=et({},i)),a[n]=i),i},t.prototype.setItemVisual=function(e,n,r){var a=this._itemVisuals[e]||{};this._itemVisuals[e]=a,Ry(n)?et(a,n):a[n]=r},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(e,n){Ry(e)?et(this._layout,e):this._layout[e]=n},t.prototype.getLayout=function(e){return this._layout[e]},t.prototype.getItemLayout=function(e){return this._itemLayouts[e]},t.prototype.setItemLayout=function(e,n,r){this._itemLayouts[e]=r?et(this._itemLayouts[e]||{},n):n},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(e,n){var r=this.hostModel&&this.hostModel.seriesIndex;EO(r,this.dataType,e,n),this._graphicEls[e]=n},t.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},t.prototype.eachItemGraphicEl=function(e,n){q(this._graphicEls,function(r,a){r&&e&&e.call(n,r,a)})},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:Kc(this.dimensions,this._getDimInfo,this),this.hostModel)),RA(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(e,n){var r=this[e];jt(r)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var a=r.apply(this,arguments);return n.apply(this,[a].concat(eE(arguments)))})},t.internalField=function(){WG=function(e){var n=e._invertedIndicesMap;q(n,function(r,a){var i=e._dimInfos[a],o=i.ordinalMeta,s=e._store;if(o){r=n[a]=new bCt(o.categories.length);for(var l=0;l<r.length;l++)r[l]=HG;for(var l=0;l<s.count();l++)r[s.get(i.storeDimIndex,l)]=l}})},Ly=function(e,n,r){return Ia(e._getCategory(n,r),null)},rx=function(e,n){var r=e._idList[n];return r==null&&e._idDimIdx!=null&&(r=Ly(e,e._idDimIdx,n)),r==null&&(r=SCt+n),r},Oy=function(e){return st(e)||(e=e!=null?[e]:[]),e},ax=function(e){var n=new t(e._schema?e._schema:Kc(e.dimensions,e._getDimInfo,e),e.hostModel);return RA(n,e),n},RA=function(e,n){q(wCt.concat(n.__wrappedMethods||[]),function(r){n.hasOwnProperty(r)&&(e[r]=n[r])}),e.__wrappedMethods=n.__wrappedMethods,q(xCt,function(r){e[r]=Zt(n[r])}),e._calculationInfo=et({},n._calculationInfo)},LA=function(e,n){var r=e._nameList,a=e._idList,i=e._nameDimIdx,o=e._idDimIdx,s=r[n],l=a[n];if(s==null&&i!=null&&(r[n]=s=Ly(e,i,n)),l==null&&o!=null&&(a[n]=l=Ly(e,o,n)),l==null&&s!=null){var u=e._nameRepeatCount,c=u[s]=(u[s]||0)+1;l=s,c>1&&(l+="__ec__"+c),a[n]=l}}}(),t}();const Oi=_Ct;function CCt(t,e){return G0(t,e).dimensions}function G0(t,e){zI(t)||(t=UI(t)),e=e||{};var n=e.coordDimensions||[],r=e.dimensionsDefine||t.dimensionsDefine||[],a=Gt(),i=[],o=ECt(t,n,r,e.dimensionsCount),s=e.canOmitUnusedDimensions&&nle(o),l=r===t.dimensionsDefine,u=l?tle(t):ele(r),c=e.encodeDefine;!c&&e.encodeDefaulter&&(c=e.encodeDefaulter(t,o));for(var f=Gt(c),d=new ose(o),h=0;h<d.length;h++)d[h]=-1;function p(M){var E=d[M];if(E<0){var A=r[M],k=qt(A)?A:{name:A},L=new z_,I=k.name;I!=null&&u.get(I)!=null&&(L.name=L.displayName=I),k.type!=null&&(L.type=k.type),k.displayName!=null&&(L.displayName=k.displayName);var P=i.length;return d[M]=P,L.storeDimIndex=M,i.push(L),L}return i[E]}if(!s)for(var h=0;h<o;h++)p(h);f.each(function(M,E){var A=mr(M).slice();if(A.length===1&&!Ot(A[0])&&A[0]<0){f.set(E,!1);return}var k=f.set(E,[]);q(A,function(L,I){var P=Ot(L)?u.get(L):L;P!=null&&P<o&&(k[I]=P,g(p(P),E,I))})});var v=0;q(n,function(M){var E,A,k,L;if(Ot(M))E=M,L={};else{L=M,E=L.name;var I=L.ordinalMeta;L.ordinalMeta=null,L=et({},L),L.ordinalMeta=I,A=L.dimsDef,k=L.otherDims,L.name=L.coordDim=L.coordDimIndex=L.dimsDef=L.otherDims=null}var P=f.get(E);if(P!==!1){if(P=mr(P),!P.length)for(var F=0;F<(A&&A.length||1);F++){for(;v<o&&p(v).coordDim!=null;)v++;v<o&&P.push(v++)}q(P,function($,W){var V=p($);if(l&&L.type!=null&&(V.type=L.type),g(Xt(V,L),E,W),V.name==null&&A){var z=A[W];!qt(z)&&(z={name:z}),V.name=V.displayName=z.name,V.defaultTooltip=z.defaultTooltip}k&&Xt(V.otherDims,k)})}});function g(M,E,A){$oe.get(E)!=null?M.otherDims[E]=A:(M.coordDim=E,M.coordDimIndex=A,a.set(E,!0))}var y=e.generateCoord,m=e.generateCoordCount,S=m!=null;m=y?m||1:0;var w=y||"value";function C(M){M.name==null&&(M.name=M.coordDim)}if(s)q(i,function(M){C(M)}),i.sort(function(M,E){return M.storeDimIndex-E.storeDimIndex});else for(var _=0;_<o;_++){var x=p(_),T=x.coordDim;T==null&&(x.coordDim=MCt(w,a,S),x.coordDimIndex=0,(!y||m<=0)&&(x.isExtraCoord=!0),m--),C(x),x.type==null&&(Uoe(t,_)===fi.Must||x.isExtraCoord&&(x.otherDims.itemName!=null||x.otherDims.seriesName!=null))&&(x.type="ordinal")}return TCt(i),new Qse({source:t,dimensions:i,fullDimensionCount:o,dimensionOmitted:s})}function TCt(t){for(var e=Gt(),n=0;n<t.length;n++){var r=t[n],a=r.name,i=e.get(a)||0;i>0&&(r.name=a+(i-1)),i++,e.set(a,i)}}function ECt(t,e,n,r){var a=Math.max(t.dimensionsDetectedCount||1,e.length,n.length,r||0);return q(e,function(i){var o;qt(i)&&(o=i.dimsDef)&&(a=Math.max(a,o.length))}),a}function MCt(t,e,n){if(n||e.hasKey(t)){for(var r=0;e.hasKey(t+r);)r++;t+=r}return e.set(t,!0),t}var DCt=function(){function t(e){this.coordSysDims=[],this.axisMap=Gt(),this.categoryAxisMap=Gt(),this.coordSysName=e}return t}();function ACt(t){var e=t.get("coordinateSystem"),n=new DCt(e),r=kCt[e];if(r)return r(t,n,n.axisMap,n.categoryAxisMap),n}var kCt={cartesian2d:function(t,e,n,r){var a=t.getReferringComponents("xAxis",Ca).models[0],i=t.getReferringComponents("yAxis",Ca).models[0];e.coordSysDims=["x","y"],n.set("x",a),n.set("y",i),bv(a)&&(r.set("x",a),e.firstCategoryDimIndex=0),bv(i)&&(r.set("y",i),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,n,r){var a=t.getReferringComponents("singleAxis",Ca).models[0];e.coordSysDims=["single"],n.set("single",a),bv(a)&&(r.set("single",a),e.firstCategoryDimIndex=0)},polar:function(t,e,n,r){var a=t.getReferringComponents("polar",Ca).models[0],i=a.findAxisModel("radiusAxis"),o=a.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],n.set("radius",i),n.set("angle",o),bv(i)&&(r.set("radius",i),e.firstCategoryDimIndex=0),bv(o)&&(r.set("angle",o),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(t,e,n,r){e.coordSysDims=["lng","lat"]},parallel:function(t,e,n,r){var a=t.ecModel,i=a.getComponent("parallel",t.get("parallelIndex")),o=e.coordSysDims=i.dimensions.slice();q(i.parallelAxisIndex,function(s,l){var u=a.getComponent("parallelAxis",s),c=o[l];n.set(c,u),bv(u)&&(r.set(c,u),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=l))})}};function bv(t){return t.get("type")==="category"}function rle(t,e,n){n=n||{};var r=n.byIndex,a=n.stackedCoordDimension,i,o,s;RCt(e)?i=e:(o=e.schema,i=o.dimensions,s=e.store);var l=!!(t&&t.get("stack")),u,c,f,d;if(q(i,function(m,S){Ot(m)&&(i[S]=m={name:m}),l&&!m.isExtraCoord&&(!r&&!u&&m.ordinalMeta&&(u=m),!c&&m.type!=="ordinal"&&m.type!=="time"&&(!a||a===m.coordDim)&&(c=m))}),c&&!r&&!u&&(r=!0),c){f="__\0ecstackresult_"+t.id,d="__\0ecstackedover_"+t.id,u&&(u.createInvertedIndices=!0);var h=c.coordDim,p=c.type,v=0;q(i,function(m){m.coordDim===h&&v++});var g={name:f,coordDim:h,coordDimIndex:v,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},y={name:d,coordDim:d,coordDimIndex:v+1,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(s&&(g.storeDimIndex=s.ensureCalculationDimension(d,p),y.storeDimIndex=s.ensureCalculationDimension(f,p)),o.appendCalculationDimension(g),o.appendCalculationDimension(y)):(i.push(g),i.push(y))}return{stackedDimension:c&&c.name,stackedByDimension:u&&u.name,isStackedByIndex:r,stackedOverDimension:d,stackResultDimension:f}}function RCt(t){return!Jse(t.schema)}function vc(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function oB(t,e){return vc(t,e)?t.getCalculationInfo("stackResultDimension"):e}function LCt(t,e){var n=t.get("coordinateSystem"),r=P0.get(n),a;return e&&e.coordSysDims&&(a=ut(e.coordSysDims,function(i){var o={name:i},s=e.axisMap.get(i);if(s){var l=s.get("type");o.type=mC(l)}return o})),a||(a=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||["x","y"]),a}function OCt(t,e,n){var r,a;return n&&q(t,function(i,o){var s=i.coordDim,l=n.categoryAxisMap.get(s);l&&(r==null&&(r=o),i.ordinalMeta=l.getOrdinalMeta(),e&&(i.createInvertedIndices=!0)),i.otherDims.itemName!=null&&(a=!0)}),!a&&r!=null&&(t[r].otherDims.itemName=0),r}function Tu(t,e,n){n=n||{};var r=e.getSourceManager(),a,i=!1;t?(i=!0,a=UI(t)):(a=r.getSource(),i=a.sourceFormat===Ls);var o=ACt(e),s=LCt(e,o),l=n.useEncodeDefaulter,u=jt(l)?l:l?sn(zoe,s,e):null,c={coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!i},f=G0(a,c),d=OCt(f.dimensions,n.createInvertedIndices,o),h=i?null:r.getSharedDataStore(f),p=rle(e,{schema:f,store:h}),v=new Oi(f,e);v.setCalculationInfo(p);var g=d!=null&&VCt(a)?function(y,m,S,w){return w===d?S:this.defaultDimValueGetter(y,m,S,w)}:null;return v.hasItemOption=!1,v.initData(i?a:h,null,g),v}function VCt(t){if(t.sourceFormat===Ls){var e=NCt(t.data||[]);return!st(D0(e))}}function NCt(t){for(var e=0;e<t.length&&t[e]==null;)e++;return t[e]}var ale=function(){function t(e){this._setting=e||{},this._extent=[1/0,-1/0]}return t.prototype.getSetting=function(e){return this._setting[e]},t.prototype.unionExtent=function(e){var n=this._extent;e[0]<n[0]&&(n[0]=e[0]),e[1]>n[1]&&(n[1]=e[1])},t.prototype.unionExtentFromData=function(e,n){this.unionExtent(e.getApproximateExtent(n))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(e,n){var r=this._extent;isNaN(e)||(r[0]=e),isNaN(n)||(r[1]=n)},t.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(e){this._isBlank=e},t}();sE(ale);const Ec=ale;var ICt=0,BCt=function(){function t(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++ICt}return t.createByAxisModel=function(e){var n=e.option,r=n.data,a=r&&ut(r,$Ct);return new t({categories:a,needCollect:!a,deduplication:n.dedplication!==!1})},t.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},t.prototype.parseAndCollect=function(e){var n,r=this._needCollect;if(!Ot(e)&&!r)return e;if(r&&!this._deduplication)return n=this.categories.length,this.categories[n]=e,n;var a=this._getOrCreateMap();return n=a.get(e),n==null&&(r?(n=this.categories.length,this.categories[n]=e,a.set(e,n)):n=NaN),n},t.prototype._getOrCreateMap=function(){return this._map||(this._map=Gt(this.categories))},t}();function $Ct(t){return qt(t)&&t.value!=null?t.value:t+""}const XO=BCt;function qO(t){return t.type==="interval"||t.type==="log"}function PCt(t,e,n,r){var a={},i=t[1]-t[0],o=a.interval=fI(i/e,!0);n!=null&&o<n&&(o=a.interval=n),r!=null&&o>r&&(o=a.interval=r);var s=a.intervalPrecision=ile(o),l=a.niceTickExtent=[sa(Math.ceil(t[0]/o)*o,s),sa(Math.floor(t[1]/o)*o,s)];return FCt(l,t),a}function OA(t){var e=Math.pow(10,oE(t)),n=t/e;return n?n===2?n=3:n===3?n=5:n*=2:n=1,sa(n*e)}function ile(t){return ll(t)+2}function jG(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function FCt(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),jG(t,0,e),jG(t,1,e),t[0]>t[1]&&(t[0]=t[1])}function kE(t,e){return t>=e[0]&&t<=e[1]}function RE(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function LE(t,e){return t*(e[1]-e[0])+e[0]}var ole=function(t){Fe(e,t);function e(n){var r=t.call(this,n)||this;r.type="ordinal";var a=r.getSetting("ordinalMeta");return a||(a=new XO({})),st(a)&&(a=new XO({categories:ut(a,function(i){return qt(i)?i.value:i})})),r._ordinalMeta=a,r._extent=r.getSetting("extent")||[0,a.categories.length-1],r}return e.prototype.parse=function(n){return n==null?NaN:Ot(n)?this._ordinalMeta.getOrdinal(n):Math.round(n)},e.prototype.contain=function(n){return n=this.parse(n),kE(n,this._extent)&&this._ordinalMeta.categories[n]!=null},e.prototype.normalize=function(n){return n=this._getTickNumber(this.parse(n)),RE(n,this._extent)},e.prototype.scale=function(n){return n=Math.round(LE(n,this._extent)),this.getRawOrdinalNumber(n)},e.prototype.getTicks=function(){for(var n=[],r=this._extent,a=r[0];a<=r[1];)n.push({value:a}),a++;return n},e.prototype.getMinorTicks=function(n){},e.prototype.setSortInfo=function(n){if(n==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var r=n.ordinalNumbers,a=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,r.length);o<l;++o){var u=r[o];a[o]=u,i[u]=o}for(var c=0;o<s;++o){for(;i[c]!=null;)c++;a.push(c),i[c]=o}},e.prototype._getTickNumber=function(n){var r=this._ticksByOrdinalNumber;return r&&n>=0&&n<r.length?r[n]:n},e.prototype.getRawOrdinalNumber=function(n){var r=this._ordinalNumbersByTick;return r&&n>=0&&n<r.length?r[n]:n},e.prototype.getLabel=function(n){if(!this.isBlank()){var r=this.getRawOrdinalNumber(n.value),a=this._ordinalMeta.categories[r];return a==null?"":a+""}},e.prototype.count=function(){return this._extent[1]-this._extent[0]+1},e.prototype.unionExtentFromData=function(n,r){this.unionExtent(n.getApproximateExtent(r))},e.prototype.isInExtentRange=function(n){return n=this._getTickNumber(n),this._extent[0]<=n&&this._extent[1]>=n},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}(Ec);Ec.registerClass(ole);const sB=ole;var th=sa,sle=function(t){Fe(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="interval",n._interval=0,n._intervalPrecision=2,n}return e.prototype.parse=function(n){return n},e.prototype.contain=function(n){return kE(n,this._extent)},e.prototype.normalize=function(n){return RE(n,this._extent)},e.prototype.scale=function(n){return LE(n,this._extent)},e.prototype.setExtent=function(n,r){var a=this._extent;isNaN(n)||(a[0]=parseFloat(n)),isNaN(r)||(a[1]=parseFloat(r))},e.prototype.unionExtent=function(n){var r=this._extent;n[0]<r[0]&&(r[0]=n[0]),n[1]>r[1]&&(r[1]=n[1]),this.setExtent(r[0],r[1])},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(n){this._interval=n,this._niceExtent=this._extent.slice(),this._intervalPrecision=ile(n)},e.prototype.getTicks=function(n){var r=this._interval,a=this._extent,i=this._niceExtent,o=this._intervalPrecision,s=[];if(!r)return s;var l=1e4;a[0]<i[0]&&(n?s.push({value:th(i[0]-r,o)}):s.push({value:a[0]}));for(var u=i[0];u<=i[1]&&(s.push({value:u}),u=th(u+r,o),u!==s[s.length-1].value);)if(s.length>l)return[];var c=s.length?s[s.length-1].value:i[1];return a[1]>c&&(n?s.push({value:th(c+r,o)}):s.push({value:a[1]})),s},e.prototype.getMinorTicks=function(n){for(var r=this.getTicks(!0),a=[],i=this.getExtent(),o=1;o<r.length;o++){for(var s=r[o],l=r[o-1],u=0,c=[],f=s.value-l.value,d=f/n;u<n-1;){var h=th(l.value+(u+1)*d);h>i[0]&&h<i[1]&&c.push(h),u++}a.push(c)}return a},e.prototype.getLabel=function(n,r){if(n==null)return"";var a=r&&r.precision;a==null?a=ll(n.value)||0:a==="auto"&&(a=this._intervalPrecision);var i=th(n.value,a,!0);return VI(i)},e.prototype.calcNiceTicks=function(n,r,a){n=n||5;var i=this._extent,o=i[1]-i[0];if(isFinite(o)){o<0&&(o=-o,i.reverse());var s=PCt(i,n,r,a);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},e.prototype.calcNiceExtent=function(n){var r=this._extent;if(r[0]===r[1])if(r[0]!==0){var a=Math.abs(r[0]);n.fixMax||(r[1]+=a/2),r[0]-=a/2}else r[1]=1;var i=r[1]-r[0];isFinite(i)||(r[0]=0,r[1]=1),this.calcNiceTicks(n.splitNumber,n.minInterval,n.maxInterval);var o=this._interval;n.fixMin||(r[0]=th(Math.floor(r[0]/o)*o)),n.fixMax||(r[1]=th(Math.ceil(r[1]/o)*o))},e.prototype.setNiceExtent=function(n,r){this._niceExtent=[n,r]},e.type="interval",e}(Ec);Ec.registerClass(sle);const Qf=sle;var lle=typeof Float32Array<"u",zCt=lle?Float32Array:Array;function tu(t){return st(t)?lle?new Float32Array(t):t:new zCt(t)}var ZO="__ec_stack_";function lB(t){return t.get("stack")||ZO+t.seriesIndex}function uB(t){return t.dim+t.index}function UCt(t){var e=[],n=t.axis,r="axis0";if(n.type==="category"){for(var a=n.getBandWidth(),i=0;i<t.count;i++)e.push(Xt({bandWidth:a,axisKey:r,stackId:ZO+i},t));for(var o=fle(e),s=[],i=0;i<t.count;i++){var l=o[r][ZO+i];l.offsetCenter=l.offset+l.width/2,s.push(l)}return s}}function ule(t,e){var n=[];return e.eachSeriesByType(t,function(r){ple(r)&&n.push(r)}),n}function GCt(t){var e={};q(t,function(l){var u=l.coordinateSystem,c=u.getBaseAxis();if(!(c.type!=="time"&&c.type!=="value"))for(var f=l.getData(),d=c.dim+"_"+c.index,h=f.getDimensionIndex(f.mapDimension(c.dim)),p=f.getStore(),v=0,g=p.count();v<g;++v){var y=p.get(h,v);e[d]?e[d].push(y):e[d]=[y]}});var n={};for(var r in e)if(e.hasOwnProperty(r)){var a=e[r];if(a){a.sort(function(l,u){return l-u});for(var i=null,o=1;o<a.length;++o){var s=a[o]-a[o-1];s>0&&(i=i===null?s:Math.min(i,s))}n[r]=i}}return n}function cle(t){var e=GCt(t),n=[];return q(t,function(r){var a=r.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=e[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=r.getData();s=Math.abs(o[1]-o[0])/h.count()}var p=Mt(r.get("barWidth"),s),v=Mt(r.get("barMaxWidth"),s),g=Mt(r.get("barMinWidth")||(vle(r)?.5:1),s),y=r.get("barGap"),m=r.get("barCategoryGap");n.push({bandWidth:s,barWidth:p,barMaxWidth:v,barMinWidth:g,barGap:y,barCategoryGap:m,axisKey:uB(i),stackId:lB(r)})}),fle(n)}function fle(t){var e={};q(t,function(r,a){var i=r.axisKey,o=r.bandWidth,s=e[i]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;e[i]=s;var u=r.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var c=r.barWidth;c&&!l[u].width&&(l[u].width=c,c=Math.min(s.remainedWidth,c),s.remainedWidth-=c);var f=r.barMaxWidth;f&&(l[u].maxWidth=f);var d=r.barMinWidth;d&&(l[u].minWidth=d);var h=r.barGap;h!=null&&(s.gap=h);var p=r.barCategoryGap;p!=null&&(s.categoryGap=p)});var n={};return q(e,function(r,a){n[a]={};var i=r.stacks,o=r.bandWidth,s=r.categoryGap;if(s==null){var l=Dn(i).length;s=Math.max(35-l*4,15)+"%"}var u=Mt(s,o),c=Mt(r.gap,1),f=r.remainedWidth,d=r.autoWidthCount,h=(f-u)/(d+(d-1)*c);h=Math.max(h,0),q(i,function(y){var m=y.maxWidth,S=y.minWidth;if(y.width){var w=y.width;m&&(w=Math.min(w,m)),S&&(w=Math.max(w,S)),y.width=w,f-=w+c*w,d--}else{var w=h;m&&m<w&&(w=Math.min(m,f)),S&&S>w&&(w=S),w!==h&&(y.width=w,f-=w+c*w,d--)}}),h=(f-u)/(d+(d-1)*c),h=Math.max(h,0);var p=0,v;q(i,function(y,m){y.width||(y.width=h),v=y,p+=y.width*(1+c)}),v&&(p-=v.width*c);var g=-p/2;q(i,function(y,m){n[a][m]=n[a][m]||{bandWidth:o,offset:g,width:y.width},g+=y.width*(1+c)})}),n}function HCt(t,e,n){if(t&&e){var r=t[uB(e)];return r!=null&&n!=null?r[lB(n)]:r}}function dle(t,e){var n=ule(t,e),r=cle(n);q(n,function(a){var i=a.getData(),o=a.coordinateSystem,s=o.getBaseAxis(),l=lB(a),u=r[uB(s)][l],c=u.offset,f=u.width;i.setLayout({bandWidth:u.bandWidth,offset:c,size:f})})}function hle(t){return{seriesType:t,plan:F0(),reset:function(e){if(ple(e)){var n=e.getData(),r=e.coordinateSystem,a=r.getBaseAxis(),i=r.getOtherAxis(a),o=n.getDimensionIndex(n.mapDimension(i.dim)),s=n.getDimensionIndex(n.mapDimension(a.dim)),l=e.get("showBackground",!0),u=n.mapDimension(i.dim),c=n.getCalculationInfo("stackResultDimension"),f=vc(n,u)&&!!n.getCalculationInfo("stackedOnSeries"),d=i.isHorizontal(),h=WCt(a,i),p=vle(e),v=e.get("barMinHeight")||0,g=c&&n.getDimensionIndex(c),y=n.getLayout("size"),m=n.getLayout("offset");return{progress:function(S,w){for(var C=S.count,_=p&&tu(C*3),x=p&&l&&tu(C*3),T=p&&tu(C),M=r.master.getRect(),E=d?M.width:M.height,A,k=w.getStore(),L=0;(A=S.next())!=null;){var I=k.get(f?g:o,A),P=k.get(s,A),F=h,$=void 0;f&&($=+I-k.get(o,A));var W=void 0,V=void 0,z=void 0,K=void 0;if(d){var Z=r.dataToPoint([I,P]);if(f){var oe=r.dataToPoint([$,P]);F=oe[0]}W=F,V=Z[1]+m,z=Z[0]-F,K=y,Math.abs(z)<v&&(z=(z<0?-1:1)*v)}else{var Z=r.dataToPoint([P,I]);if(f){var oe=r.dataToPoint([P,$]);F=oe[1]}W=Z[0]+m,V=F,z=y,K=Z[1]-F,Math.abs(K)<v&&(K=(K<=0?-1:1)*v)}p?(_[L]=W,_[L+1]=V,_[L+2]=d?z:K,x&&(x[L]=d?M.x:W,x[L+1]=d?V:M.y,x[L+2]=E),T[A]=A):w.setItemLayout(A,{x:W,y:V,width:z,height:K}),L+=3}p&&w.setLayout({largePoints:_,largeDataIndices:T,largeBackgroundPoints:x,valueAxisHorizontal:d})}}}}}}function ple(t){return t.coordinateSystem&&t.coordinateSystem.type==="cartesian2d"}function vle(t){return t.pipelineContext&&t.pipelineContext.large}function WCt(t,e){return e.toGlobalCoord(e.dataToCoord(e.type==="log"?1:0))}var jCt=function(t,e,n,r){for(;n<r;){var a=n+r>>>1;t[a][1]<e?n=a+1:r=a}return n},gle=function(t){Fe(e,t);function e(n){var r=t.call(this,n)||this;return r.type="time",r}return e.prototype.getLabel=function(n){var r=this.getSetting("useUTC");return uS(n.value,BU[fxt(bg(this._minLevelUnit))]||BU.second,r,this.getSetting("locale"))},e.prototype.getFormattedLabel=function(n,r,a){var i=this.getSetting("useUTC"),o=this.getSetting("locale");return dxt(n,r,a,o,i)},e.prototype.getTicks=function(){var n=this._interval,r=this._extent,a=[];if(!n)return a;a.push({value:r[0],level:0});var i=this.getSetting("useUTC"),o=JCt(this._minLevelUnit,this._approxInterval,i,r);return a=a.concat(o),a.push({value:r[1],level:0}),a},e.prototype.calcNiceExtent=function(n){var r=this._extent;if(r[0]===r[1]&&(r[0]-=hs,r[1]+=hs),r[1]===-1/0&&r[0]===1/0){var a=new Date;r[1]=+new Date(a.getFullYear(),a.getMonth(),a.getDate()),r[0]=r[1]-hs}this.calcNiceTicks(n.splitNumber,n.minInterval,n.maxInterval)},e.prototype.calcNiceTicks=function(n,r,a){n=n||10;var i=this._extent,o=i[1]-i[0];this._approxInterval=o/n,r!=null&&this._approxInterval<r&&(this._approxInterval=r),a!=null&&this._approxInterval>a&&(this._approxInterval=a);var s=ix.length,l=Math.min(jCt(ix,this._approxInterval,0,s),s-1);this._interval=ix[l][1],this._minLevelUnit=ix[Math.max(l-1,0)][0]},e.prototype.parse=function(n){return Un(n)?n:+jo(n)},e.prototype.contain=function(n){return kE(this.parse(n),this._extent)},e.prototype.normalize=function(n){return RE(this.parse(n),this._extent)},e.prototype.scale=function(n){return LE(n,this._extent)},e.type="time",e}(Qf),ix=[["second",RI],["minute",LI],["hour",Hm],["quarter-day",Hm*6],["half-day",Hm*12],["day",hs*1.2],["half-week",hs*3.5],["week",hs*7],["month",hs*31],["quarter",hs*95],["half-year",IU/2],["year",IU]];function KCt(t,e,n,r){var a=jo(e),i=jo(n),o=function(p){return $U(a,p,r)===$U(i,p,r)},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(t){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 YCt(t,e){return t/=hs,t>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function XCt(t){var e=30*hs;return t/=e,t>6?6:t>3?3:t>2?2:1}function qCt(t){return t/=Hm,t>12?12:t>6?6:t>3.5?4:t>2?2:1}function KG(t,e){return t/=e?LI:RI,t>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function ZCt(t){return fI(t,!0)}function QCt(t,e,n){var r=new Date(t);switch(bg(e)){case"year":case"month":r[Doe(n)](0);case"day":r[Aoe(n)](1);case"hour":r[koe(n)](0);case"minute":r[Roe(n)](0);case"second":r[Loe(n)](0),r[Ooe(n)](0)}return r.getTime()}function JCt(t,e,n,r){var a=1e4,i=Eoe,o=0;function s(E,A,k,L,I,P,F){for(var $=new Date(A),W=A,V=$[L]();W<k&&W<=r[1];)F.push({value:W}),V+=E,$[I](V),W=$.getTime();F.push({value:W,notAdd:!0})}function l(E,A,k){var L=[],I=!A.length;if(!KCt(bg(E),r[0],r[1],n)){I&&(A=[{value:QCt(new Date(r[0]),E,n)},{value:r[1]}]);for(var P=0;P<A.length-1;P++){var F=A[P].value,$=A[P+1].value;if(F!==$){var W=void 0,V=void 0,z=void 0,K=!1;switch(E){case"year":W=Math.max(1,Math.round(e/hs/365)),V=OI(n),z=hxt(n);break;case"half-year":case"quarter":case"month":W=XCt(e),V=Sg(n),z=Doe(n);break;case"week":case"half-week":case"day":W=YCt(e),V=bE(n),z=Aoe(n),K=!0;break;case"half-day":case"quarter-day":case"hour":W=qCt(e),V=eb(n),z=koe(n);break;case"minute":W=KG(e,!0),V=SE(n),z=Roe(n);break;case"second":W=KG(e,!1),V=wE(n),z=Loe(n);break;case"millisecond":W=ZCt(e),V=xE(n),z=Ooe(n);break}s(W,F,$,V,z,K,L),E==="year"&&k.length>1&&P===0&&k.unshift({value:k[0].value-W})}}for(var P=0;P<L.length;P++)k.push(L[P]);return L}}for(var u=[],c=[],f=0,d=0,h=0;h<i.length&&o++<a;++h){var p=bg(i[h]);if(cxt(i[h])){l(i[h],u[u.length-1]||[],c);var v=i[h+1]?bg(i[h+1]):null;if(p!==v){if(c.length){d=f,c.sort(function(E,A){return E.value-A.value});for(var g=[],y=0;y<c.length;++y){var m=c[y].value;(y===0||c[y-1].value!==m)&&(g.push(c[y]),m>=r[0]&&m<=r[1]&&f++)}var S=(r[1]-r[0])/e;if(f>S*1.5&&d>S/1.5||(u.push(g),f>S||t===i[h]))break}c=[]}}}for(var w=or(ut(u,function(E){return or(E,function(A){return A.value>=r[0]&&A.value<=r[1]&&!A.notAdd})}),function(E){return E.length>0}),C=[],_=w.length-1,h=0;h<w.length;++h)for(var x=w[h],T=0;T<x.length;++T)C.push({value:x[T].value,level:_-h});C.sort(function(E,A){return E.value-A.value});for(var M=[],h=0;h<C.length;++h)(h===0||C[h].value!==C[h-1].value)&&M.push(C[h]);return M}Ec.registerClass(gle);const yle=gle;var YG=Ec.prototype,Km=Qf.prototype,eTt=sa,tTt=Math.floor,nTt=Math.ceil,ox=Math.pow,zs=Math.log,cB=function(t){Fe(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="log",n.base=10,n._originalScale=new Qf,n._interval=0,n}return e.prototype.getTicks=function(n){var r=this._originalScale,a=this._extent,i=r.getExtent(),o=Km.getTicks.call(this,n);return ut(o,function(s){var l=s.value,u=sa(ox(this.base,l));return u=l===a[0]&&this._fixMin?sx(u,i[0]):u,u=l===a[1]&&this._fixMax?sx(u,i[1]):u,{value:u}},this)},e.prototype.setExtent=function(n,r){var a=zs(this.base);n=zs(Math.max(0,n))/a,r=zs(Math.max(0,r))/a,Km.setExtent.call(this,n,r)},e.prototype.getExtent=function(){var n=this.base,r=YG.getExtent.call(this);r[0]=ox(n,r[0]),r[1]=ox(n,r[1]);var a=this._originalScale,i=a.getExtent();return this._fixMin&&(r[0]=sx(r[0],i[0])),this._fixMax&&(r[1]=sx(r[1],i[1])),r},e.prototype.unionExtent=function(n){this._originalScale.unionExtent(n);var r=this.base;n[0]=zs(n[0])/zs(r),n[1]=zs(n[1])/zs(r),YG.unionExtent.call(this,n)},e.prototype.unionExtentFromData=function(n,r){this.unionExtent(n.getApproximateExtent(r))},e.prototype.calcNiceTicks=function(n){n=n||10;var r=this._extent,a=r[1]-r[0];if(!(a===1/0||a<=0)){var i=pie(a),o=n/a*i;for(o<=.5&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0;)i*=10;var s=[sa(nTt(r[0]/i)*i),sa(tTt(r[1]/i)*i)];this._interval=i,this._niceExtent=s}},e.prototype.calcNiceExtent=function(n){Km.calcNiceExtent.call(this,n),this._fixMin=n.fixMin,this._fixMax=n.fixMax},e.prototype.parse=function(n){return n},e.prototype.contain=function(n){return n=zs(n)/zs(this.base),kE(n,this._extent)},e.prototype.normalize=function(n){return n=zs(n)/zs(this.base),RE(n,this._extent)},e.prototype.scale=function(n){return n=LE(n,this._extent),ox(this.base,n)},e.type="log",e}(Ec),mle=cB.prototype;mle.getMinorTicks=Km.getMinorTicks;mle.getLabel=Km.getLabel;function sx(t,e){return eTt(t,ll(e))}Ec.registerClass(cB);const rTt=cB;var aTt=function(){function t(e,n,r){this._prepareParams(e,n,r)}return t.prototype._prepareParams=function(e,n,r){r[1]<r[0]&&(r=[NaN,NaN]),this._dataMin=r[0],this._dataMax=r[1];var a=this._isOrdinal=e.type==="ordinal";this._needCrossZero=e.type==="interval"&&n.getNeedCrossZero&&n.getNeedCrossZero();var i=this._modelMinRaw=n.get("min",!0);jt(i)?this._modelMinNum=lx(e,i({min:r[0],max:r[1]})):i!=="dataMin"&&(this._modelMinNum=lx(e,i));var o=this._modelMaxRaw=n.get("max",!0);if(jt(o)?this._modelMaxNum=lx(e,o({min:r[0],max:r[1]})):o!=="dataMax"&&(this._modelMaxNum=lx(e,o)),a)this._axisDataLen=n.getCategories().length;else{var s=n.get("boundaryGap"),l=st(s)?s:[s||0,s||0];typeof l[0]=="boolean"||typeof l[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[Sl(l[0],1),Sl(l[1],1)]}},t.prototype.calculate=function(){var e=this._isOrdinal,n=this._dataMin,r=this._dataMax,a=this._axisDataLen,i=this._boundaryGapInner,o=e?null:r-n||Math.abs(n),s=this._modelMinRaw==="dataMin"?n:this._modelMinNum,l=this._modelMaxRaw==="dataMax"?r:this._modelMaxNum,u=s!=null,c=l!=null;s==null&&(s=e?a?0:NaN:n-i[0]*o),l==null&&(l=e?a?a-1:NaN:r+i[1]*o),(s==null||!isFinite(s))&&(s=NaN),(l==null||!isFinite(l))&&(l=NaN);var f=t0(s)||t0(l)||e&&!a;this._needCrossZero&&(s>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}},t.prototype.modifyDataMinMax=function(e,n){this[oTt[e]]=n},t.prototype.setDeterminedMinMax=function(e,n){var r=iTt[e];this[r]=n},t.prototype.freeze=function(){this.frozen=!0},t}(),iTt={min:"_determinedMin",max:"_determinedMax"},oTt={min:"_dataMin",max:"_dataMax"};function ble(t,e,n){var r=t.rawExtentInfo;return r||(r=new aTt(t,e,n),t.rawExtentInfo=r,r)}function lx(t,e){return e==null?null:t0(e)?NaN:t.parse(e)}function Sle(t,e){var n=t.type,r=ble(t,e,t.getExtent()).calculate();t.setBlank(r.isBlank);var a=r.min,i=r.max,o=e.ecModel;if(o&&n==="time"){var s=ule("bar",o),l=!1;if(q(s,function(f){l=l||f.getBaseAxis()===e.axis}),l){var u=cle(s),c=sTt(a,i,e,u);a=c.min,i=c.max}}return{extent:[a,i],fixMin:r.minFixed,fixMax:r.maxFixed}}function sTt(t,e,n,r){var a=n.axis.getExtent(),i=a[1]-a[0],o=HCt(r,n.axis);if(o===void 0)return{min:t,max:e};var s=1/0;q(o,function(h){s=Math.min(h.offset,s)});var l=-1/0;q(o,function(h){l=Math.max(h.offset+h.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=e-t,f=1-(s+l)/i,d=c/f-c;return e+=d*(l/u),t-=d*(s/u),{min:t,max:e}}function Tp(t,e){var n=e,r=Sle(t,n),a=r.extent,i=n.get("splitNumber");t instanceof rTt&&(t.base=n.get("logBase"));var o=t.type,s=n.get("interval"),l=o==="interval"||o==="time";t.setExtent(a[0],a[1]),t.calcNiceExtent({splitNumber:i,fixMin:r.fixMin,fixMax:r.fixMax,minInterval:l?n.get("minInterval"):null,maxInterval:l?n.get("maxInterval"):null}),s!=null&&t.setInterval&&t.setInterval(s)}function fS(t,e){if(e=e||t.get("type"),e)switch(e){case"category":return new sB({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new yle({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(Ec.getClass(e)||Qf)}}function lTt(t){var e=t.scale.getExtent(),n=e[0],r=e[1];return!(n>0&&r>0||n<0&&r<0)}function dS(t){var e=t.getLabelModel().get("formatter"),n=t.type==="category"?t.scale.getExtent()[0]:null;return t.scale.type==="time"?function(r){return function(a,i){return t.scale.getFormattedLabel(a,i,r)}}(e):Ot(e)?function(r){return function(a){var i=t.scale.getLabel(a),o=r.replace("{value}",i??"");return o}}(e):jt(e)?function(r){return function(a,i){return n!=null&&(i=a.value-n),r(fB(t,a),i,a.level!=null?{level:a.level}:null)}}(e):function(r){return t.scale.getLabel(r)}}function fB(t,e){return t.type==="category"?t.scale.getLabel(e):e.value}function uTt(t){var e=t.model,n=t.scale;if(!(!e.get(["axisLabel","show"])||n.isBlank())){var r,a,i=n.getExtent();n instanceof sB?a=n.count():(r=n.getTicks(),a=r.length);var o=t.getLabelModel(),s=dS(t),l,u=1;a>40&&(u=Math.ceil(a/40));for(var c=0;c<a;c+=u){var f=r?r[c]:{value:i[0]+c},d=s(f,c),h=o.getTextRect(d),p=cTt(h,o.get("rotate")||0);l?l.union(p):l=p}return l}}function cTt(t,e){var n=e*Math.PI/180,r=t.width,a=t.height,i=r*Math.abs(Math.cos(n))+Math.abs(a*Math.sin(n)),o=r*Math.abs(Math.sin(n))+Math.abs(a*Math.cos(n)),s=new yn(t.x,t.y,i,o);return s}function dB(t){var e=t.get("interval");return e??"auto"}function wle(t){return t.type==="category"&&dB(t.getLabelModel())===0}function bC(t,e){var n={};return q(t.mapDimensionsAll(e),function(r){n[oB(t,r)]=!0}),Dn(n)}function fTt(t,e,n){e&&q(bC(e,n),function(r){var a=e.getApproximateExtent(r);a[0]<t[0]&&(t[0]=a[0]),a[1]>t[1]&&(t[1]=a[1])})}var H0=function(){function t(){}return t.prototype.getNeedCrossZero=function(){var e=this.option;return!e.scale},t.prototype.getCoordSysModel=function(){},t}();function dTt(t){return Tu(null,t)}var hTt={isDimensionStacked:vc,enableDataStack:rle,getStackedDimension:oB};function pTt(t,e){var n=e;e instanceof yr||(n=new yr(e));var r=fS(n);return r.setExtent(t[0],t[1]),Tp(r,n),r}function vTt(t){ha(t,H0)}function gTt(t,e){return e=e||{},Dr(t,null,null,e.state!=="normal")}const yTt=Object.freeze(Object.defineProperty({__proto__:null,createDimensions:CCt,createList:dTt,createScale:pTt,createSymbol:ba,createTextStyle:gTt,dataStack:hTt,enableHoverEmphasis:Vf,getECData:ln,getLayoutRect:ka,mixinAxisModelCommonMethods:vTt},Symbol.toStringTag,{value:"Module"}));var mTt=1e-8;function XG(t,e){return Math.abs(t-e)<mTt}function Th(t,e,n){var r=0,a=t[0];if(!a)return!1;for(var i=1;i<t.length;i++){var o=t[i];r+=zu(a[0],a[1],o[0],o[1],e,n),a=o}var s=t[0];return(!XG(a[0],s[0])||!XG(a[1],s[1]))&&(r+=zu(a[0],a[1],s[0],s[1],e,n)),r!==0}var bTt=[];function VA(t,e){for(var n=0;n<t.length;n++)ai(t[n],t[n],e)}function qG(t,e,n,r){for(var a=0;a<t.length;a++){var i=t[a];r&&(i=r.project(i)),i&&isFinite(i[0])&&isFinite(i[1])&&(qu(e,e,i),Zu(n,n,i))}}function STt(t){for(var e=0,n=0,r=0,a=t.length,i=t[a-1][0],o=t[a-1][1],s=0;s<a;s++){var l=t[s][0],u=t[s][1],c=i*u-l*o;e+=c,n+=(i+l)*c,r+=(o+u)*c,i=l,o=u}return e?[n/e/3,r/e/3,e]:[t[0][0]||0,t[0][1]||0]}var xle=function(){function t(e){this.name=e}return t.prototype.setCenter=function(e){this._center=e},t.prototype.getCenter=function(){var e=this._center;return e||(e=this._center=this.calcCenter()),e},t}(),ZG=function(){function t(e,n){this.type="polygon",this.exterior=e,this.interiors=n}return t}(),QG=function(){function t(e){this.type="linestring",this.points=e}return t}(),_le=function(t){Fe(e,t);function e(n,r,a){var i=t.call(this,n)||this;return i.type="geoJSON",i.geometries=r,i._center=a&&[a[0],a[1]],i}return e.prototype.calcCenter=function(){for(var n=this.geometries,r,a=0,i=0;i<n.length;i++){var o=n[i],s=o.exterior,l=s&&s.length;l>a&&(r=o,a=l)}if(r)return STt(r.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},e.prototype.getBoundingRect=function(n){var r=this._rect;if(r&&!n)return r;var a=[1/0,1/0],i=[-1/0,-1/0],o=this.geometries;return q(o,function(s){s.type==="polygon"?qG(s.exterior,a,i,n):q(s.points,function(l){qG(l,a,i,n)})}),isFinite(a[0])&&isFinite(a[1])&&isFinite(i[0])&&isFinite(i[1])||(a[0]=a[1]=i[0]=i[1]=0),r=new yn(a[0],a[1],i[0]-a[0],i[1]-a[1]),n||(this._rect=r),r},e.prototype.contain=function(n){var r=this.getBoundingRect(),a=this.geometries;if(!r.contain(n[0],n[1]))return!1;e:for(var i=0,o=a.length;i<o;i++){var s=a[i];if(s.type==="polygon"){var l=s.exterior,u=s.interiors;if(Th(l,n[0],n[1])){for(var c=0;c<(u?u.length:0);c++)if(Th(u[c],n[0],n[1]))continue e;return!0}}}return!1},e.prototype.transformTo=function(n,r,a,i){var o=this.getBoundingRect(),s=o.width/o.height;a?i||(i=a/s):a=s*i;for(var l=new yn(n,r,a,i),u=o.calculateTransform(l),c=this.geometries,f=0;f<c.length;f++){var d=c[f];d.type==="polygon"?(VA(d.exterior,u),q(d.interiors,function(h){VA(h,u)})):q(d.points,function(h){VA(h,u)})}o=this._rect,o.copy(l),this._center=[o.x+o.width/2,o.y+o.height/2]},e.prototype.cloneShallow=function(n){n==null&&(n=this.name);var r=new e(n,this.geometries,this._center);return r._rect=this._rect,r.transformTo=null,r},e}(xle),wTt=function(t){Fe(e,t);function e(n,r){var a=t.call(this,n)||this;return a.type="geoSVG",a._elOnlyForCalculate=r,a}return e.prototype.calcCenter=function(){for(var n=this._elOnlyForCalculate,r=n.getBoundingRect(),a=[r.x+r.width/2,r.y+r.height/2],i=Jb(bTt),o=n;o&&!o.isGeoSVGGraphicRoot;)lu(i,o.getLocalTransform(),i),o=o.parent;return $p(i,i),ai(a,a,i),a},e}(xle);function xTt(t){if(!t.UTF8Encoding)return t;var e=t,n=e.UTF8Scale;n==null&&(n=1024);var r=e.features;return q(r,function(a){var i=a.geometry,o=i.encodeOffsets,s=i.coordinates;if(o)switch(i.type){case"LineString":i.coordinates=Cle(s,o,n);break;case"Polygon":NA(s,o,n);break;case"MultiLineString":NA(s,o,n);break;case"MultiPolygon":q(s,function(l,u){return NA(l,o[u],n)})}}),e.UTF8Encoding=!1,e}function NA(t,e,n){for(var r=0;r<t.length;r++)t[r]=Cle(t[r],e[r],n)}function Cle(t,e,n){for(var r=[],a=e[0],i=e[1],o=0;o<t.length;o+=2){var s=t.charCodeAt(o)-64,l=t.charCodeAt(o+1)-64;s=s>>1^-(s&1),l=l>>1^-(l&1),s+=a,l+=i,a=s,i=l,r.push([s/n,l/n])}return r}function QO(t,e){return t=xTt(t),ut(or(t.features,function(n){return n.geometry&&n.properties&&n.geometry.coordinates.length>0}),function(n){var r=n.properties,a=n.geometry,i=[];switch(a.type){case"Polygon":var o=a.coordinates;i.push(new ZG(o[0],o.slice(1)));break;case"MultiPolygon":q(a.coordinates,function(l){l[0]&&i.push(new ZG(l[0],l.slice(1)))});break;case"LineString":i.push(new QG([a.coordinates]));break;case"MultiLineString":i.push(new QG(a.coordinates))}var s=new _le(r[e||"name"],i,r.cp);return s.properties=r,s})}const _Tt=Object.freeze(Object.defineProperty({__proto__:null,MAX_SAFE_INTEGER:SO,asc:zo,getPercentWithPrecision:Bbt,getPixelPrecision:uI,getPrecision:ll,getPrecisionSafe:die,isNumeric:dI,isRadianAroundZero:K1,linearMap:ir,nice:fI,numericToNumber:yu,parseDate:jo,quantile:V_,quantity:pie,quantityExponent:oE,reformIntervals:wO,remRadian:cI,round:sa},Symbol.toStringTag,{value:"Module"})),CTt=Object.freeze(Object.defineProperty({__proto__:null,format:uS,parse:jo},Symbol.toStringTag,{value:"Module"})),TTt=Object.freeze(Object.defineProperty({__proto__:null,Arc:pE,BezierCurve:iS,BoundingRect:yn,Circle:wl,CompoundPath:vE,Ellipse:hE,Group:en,Image:si,IncrementalDisplayable:doe,Line:Ga,LinearGradient:k0,Polygon:lo,Polyline:fo,RadialGradient:_I,Rect:$n,Ring:aS,Sector:so,Text:Bn,clipPointsByRect:MI,clipRectByRect:yoe,createIcon:L0,extendPath:voe,extendShape:poe,getShapeClass:gE,getTransform:Nf,initProps:Ur,makeImage:TI,makePath:oS,mergePath:$o,registerShape:Rs,resizePath:EI,updateProps:jn},Symbol.toStringTag,{value:"Module"})),ETt=Object.freeze(Object.defineProperty({__proto__:null,addCommas:VI,capitalFirst:yxt,encodeHTML:qi,formatTime:gxt,formatTpl:II,getTextRect:pxt,getTooltipMarker:Voe,normalizeCssArray:Fp,toCamelCase:NI,truncateText:Tie},Symbol.toStringTag,{value:"Module"})),MTt=Object.freeze(Object.defineProperty({__proto__:null,bind:Nt,clone:Zt,curry:sn,defaults:Xt,each:q,extend:et,filter:or,indexOf:bn,inherits:eI,isArray:st,isFunction:jt,isObject:qt,isString:Ot,map:ut,merge:hn,reduce:Ds},Symbol.toStringTag,{value:"Module"}));var ob=Gn();function DTt(t){return t.type==="category"?kTt(t):LTt(t)}function ATt(t,e){return t.type==="category"?RTt(t,e):{ticks:ut(t.scale.getTicks(),function(n){return n.value})}}function kTt(t){var e=t.getLabelModel(),n=Tle(t,e);return!e.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}function Tle(t,e){var n=Ele(t,"labels"),r=dB(e),a=Mle(n,r);if(a)return a;var i,o;return jt(r)?i=kle(t,r):(o=r==="auto"?OTt(t):r,i=Ale(t,o)),Dle(n,r,{labels:i,labelCategoryInterval:o})}function RTt(t,e){var n=Ele(t,"ticks"),r=dB(e),a=Mle(n,r);if(a)return a;var i,o;if((!e.get("show")||t.scale.isBlank())&&(i=[]),jt(r))i=kle(t,r,!0);else if(r==="auto"){var s=Tle(t,t.getLabelModel());o=s.labelCategoryInterval,i=ut(s.labels,function(l){return l.tickValue})}else o=r,i=Ale(t,o,!0);return Dle(n,r,{ticks:i,tickCategoryInterval:o})}function LTt(t){var e=t.scale.getTicks(),n=dS(t);return{labels:ut(e,function(r,a){return{level:r.level,formattedLabel:n(r,a),rawLabel:t.scale.getLabel(r),tickValue:r.value}})}}function Ele(t,e){return ob(t)[e]||(ob(t)[e]=[])}function Mle(t,e){for(var n=0;n<t.length;n++)if(t[n].key===e)return t[n].value}function Dle(t,e,n){return t.push({key:e,value:n}),n}function OTt(t){var e=ob(t).autoInterval;return e??(ob(t).autoInterval=t.calculateCategoryInterval())}function VTt(t){var e=NTt(t),n=dS(t),r=(e.axisRotate-e.labelRotate)/180*Math.PI,a=t.scale,i=a.getExtent(),o=a.count();if(i[1]-i[0]<1)return 0;var s=1;o>40&&(s=Math.max(1,Math.floor(o/40)));for(var l=i[0],u=t.dataToCoord(l+1)-t.dataToCoord(l),c=Math.abs(u*Math.cos(r)),f=Math.abs(u*Math.sin(r)),d=0,h=0;l<=i[1];l+=s){var p=0,v=0,g=tS(n({value:l}),e.font,"center","top");p=g.width*1.3,v=g.height*1.3,d=Math.max(d,p,7),h=Math.max(h,v,7)}var y=d/c,m=h/f;isNaN(y)&&(y=1/0),isNaN(m)&&(m=1/0);var S=Math.max(0,Math.floor(Math.min(y,m))),w=ob(t.model),C=t.getExtent(),_=w.lastAutoInterval,x=w.lastTickCount;return _!=null&&x!=null&&Math.abs(_-S)<=1&&Math.abs(x-o)<=1&&_>S&&w.axisExtent0===C[0]&&w.axisExtent1===C[1]?S=_:(w.lastTickCount=o,w.lastAutoInterval=S,w.axisExtent0=C[0],w.axisExtent1=C[1]),S}function NTt(t){var e=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function Ale(t,e,n){var r=dS(t),a=t.scale,i=a.getExtent(),o=t.getLabelModel(),s=[],l=Math.max((e||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=wle(t),d=o.get("showMinLabel")||f,h=o.get("showMaxLabel")||f;d&&u!==i[0]&&v(i[0]);for(var p=u;p<=i[1];p+=l)v(p);h&&p-l!==i[1]&&v(i[1]);function v(g){var y={value:g};s.push(n?g:{formattedLabel:r(y),rawLabel:a.getLabel(y),tickValue:g})}return s}function kle(t,e,n){var r=t.scale,a=dS(t),i=[];return q(r.getTicks(),function(o){var s=r.getLabel(o),l=o.value;e(o.value,s)&&i.push(n?l:{formattedLabel:a(o),rawLabel:s,tickValue:l})}),i}var JG=[0,1],ITt=function(){function t(e,n,r){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=n,this._extent=r||[0,0]}return t.prototype.contain=function(e){var n=this._extent,r=Math.min(n[0],n[1]),a=Math.max(n[0],n[1]);return e>=r&&e<=a},t.prototype.containData=function(e){return this.scale.contain(e)},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.getPixelPrecision=function(e){return uI(e||this.scale.getExtent(),this._extent)},t.prototype.setExtent=function(e,n){var r=this._extent;r[0]=e,r[1]=n},t.prototype.dataToCoord=function(e,n){var r=this._extent,a=this.scale;return e=a.normalize(e),this.onBand&&a.type==="ordinal"&&(r=r.slice(),eH(r,a.count())),ir(e,JG,r,n)},t.prototype.coordToData=function(e,n){var r=this._extent,a=this.scale;this.onBand&&a.type==="ordinal"&&(r=r.slice(),eH(r,a.count()));var i=ir(e,r,JG,n);return this.scale.scale(i)},t.prototype.pointToData=function(e,n){},t.prototype.getTicksCoords=function(e){e=e||{};var n=e.tickModel||this.getTickModel(),r=ATt(this,n),a=r.ticks,i=ut(a,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=n.get("alignWithLabel");return BTt(this,i,o,e.clamp),i},t.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var e=this.model.getModel("minorTick"),n=e.get("splitNumber");n>0&&n<100||(n=5);var r=this.scale.getMinorTicks(n),a=ut(r,function(i){return ut(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return a},t.prototype.getViewLabels=function(){return DTt(this).labels},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){var e=this._extent,n=this.scale.getExtent(),r=n[1]-n[0]+(this.onBand?1:0);r===0&&(r=1);var a=Math.abs(e[1]-e[0]);return Math.abs(a)/r},t.prototype.calculateCategoryInterval=function(){return VTt(this)},t}();function eH(t,e){var n=t[1]-t[0],r=e,a=n/r/2;t[0]+=a,t[1]-=a}function BTt(t,e,n,r){var a=e.length;if(!t.onBand||n||!a)return;var i=t.getExtent(),o,s;if(a===1)e[0].coord=i[0],o=e[1]={coord:i[1]};else{var l=e[a-1].tickValue-e[0].tickValue,u=(e[a-1].coord-e[0].coord)/l;q(e,function(h){h.coord-=u/2});var c=t.scale.getExtent();s=1+c[1]-e[a-1].tickValue,o={coord:e[a-1].coord+u*s},e.push(o)}var f=i[0]>i[1];d(e[0].coord,i[0])&&(r?e[0].coord=i[0]:e.shift()),r&&d(i[0],e[0].coord)&&e.unshift({coord:i[0]}),d(i[1],o.coord)&&(r?o.coord=i[1]:e.pop()),r&&d(o.coord,i[1])&&e.push({coord:i[1]});function d(h,p){return h=sa(h),p=sa(p),f?h>p:h<p}}const Vs=ITt;function $Tt(t){var e=On.extend(t);return On.registerClass(e),e}function PTt(t){var e=jr.extend(t);return jr.registerClass(e),e}function FTt(t){var e=Vr.extend(t);return Vr.registerClass(e),e}function zTt(t){var e=br.extend(t);return br.registerClass(e),e}var Vy=Math.PI*2,nh=mu.CMD,UTt=["top","right","bottom","left"];function GTt(t,e,n,r,a){var i=n.width,o=n.height;switch(t){case"top":r.set(n.x+i/2,n.y-e),a.set(0,-1);break;case"bottom":r.set(n.x+i/2,n.y+o+e),a.set(0,1);break;case"left":r.set(n.x-e,n.y+o/2),a.set(-1,0);break;case"right":r.set(n.x+i+e,n.y+o/2),a.set(1,0);break}}function HTt(t,e,n,r,a,i,o,s,l){o-=t,s-=e;var u=Math.sqrt(o*o+s*s);o/=u,s/=u;var c=o*n+t,f=s*n+e;if(Math.abs(r-a)%Vy<1e-4)return l[0]=c,l[1]=f,u-n;if(i){var d=r;r=ul(a),a=ul(d)}else r=ul(r),a=ul(a);r>a&&(a+=Vy);var h=Math.atan2(s,o);if(h<0&&(h+=Vy),h>=r&&h<=a||h+Vy>=r&&h+Vy<=a)return l[0]=c,l[1]=f,u-n;var p=n*Math.cos(r)+t,v=n*Math.sin(r)+e,g=n*Math.cos(a)+t,y=n*Math.sin(a)+e,m=(p-o)*(p-o)+(v-s)*(v-s),S=(g-o)*(g-o)+(y-s)*(y-s);return m<S?(l[0]=p,l[1]=v,Math.sqrt(m)):(l[0]=g,l[1]=y,Math.sqrt(S))}function SC(t,e,n,r,a,i,o,s){var l=a-t,u=i-e,c=n-t,f=r-e,d=Math.sqrt(c*c+f*f);c/=d,f/=d;var h=l*c+u*f,p=h/d;s&&(p=Math.min(Math.max(p,0),1)),p*=d;var v=o[0]=t+p*c,g=o[1]=e+p*f;return Math.sqrt((v-a)*(v-a)+(g-i)*(g-i))}function Rle(t,e,n,r,a,i,o){n<0&&(t=t+n,n=-n),r<0&&(e=e+r,r=-r);var s=t+n,l=e+r,u=o[0]=Math.min(Math.max(a,t),s),c=o[1]=Math.min(Math.max(i,e),l);return Math.sqrt((u-a)*(u-a)+(c-i)*(c-i))}var qs=[];function WTt(t,e,n){var r=Rle(e.x,e.y,e.width,e.height,t.x,t.y,qs);return n.set(qs[0],qs[1]),r}function jTt(t,e,n){for(var r=0,a=0,i=0,o=0,s,l,u=1/0,c=e.data,f=t.x,d=t.y,h=0;h<c.length;){var p=c[h++];h===1&&(r=c[h],a=c[h+1],i=r,o=a);var v=u;switch(p){case nh.M:i=c[h++],o=c[h++],r=i,a=o;break;case nh.L:v=SC(r,a,c[h],c[h+1],f,d,qs,!0),r=c[h++],a=c[h++];break;case nh.C:v=jae(r,a,c[h++],c[h++],c[h++],c[h++],c[h],c[h+1],f,d,qs),r=c[h++],a=c[h++];break;case nh.Q:v=Yae(r,a,c[h++],c[h++],c[h],c[h+1],f,d,qs),r=c[h++],a=c[h++];break;case nh.A:var g=c[h++],y=c[h++],m=c[h++],S=c[h++],w=c[h++],C=c[h++];h+=1;var _=!!(1-c[h++]);s=Math.cos(w)*m+g,l=Math.sin(w)*S+y,h<=1&&(i=s,o=l);var x=(f-g)*S/m+g;v=HTt(g,y,S,w,w+C,_,x,d,qs),r=Math.cos(w+C)*m+g,a=Math.sin(w+C)*S+y;break;case nh.R:i=r=c[h++],o=a=c[h++];var T=c[h++],M=c[h++];v=Rle(i,o,T,M,f,d,qs);break;case nh.Z:v=SC(r,a,i,o,f,d,qs,!0),r=i,a=o;break}v<u&&(u=v,n.set(qs[0],qs[1]))}return u}var cl=new vn,Lr=new vn,ga=new vn,nu=new vn,Zl=new vn;function tH(t,e){if(t){var n=t.getTextGuideLine(),r=t.getTextContent();if(r&&n){var a=t.textGuideLineConfig||{},i=[[0,0],[0,0],[0,0]],o=a.candidates||UTt,s=r.getBoundingRect().clone();s.applyTransform(r.getComputedTransform());var l=1/0,u=a.anchor,c=t.getComputedTransform(),f=c&&$p([],c),d=e.get("length2")||0;u&&ga.copy(u);for(var h=0;h<o.length;h++){var p=o[h];GTt(p,0,s,cl,nu),vn.scaleAndAdd(Lr,cl,nu,d),Lr.transform(f);var v=t.getBoundingRect(),g=u?u.distance(Lr):t instanceof Cn?jTt(Lr,t.path,ga):WTt(Lr,v,ga);g<l&&(l=g,Lr.transform(c),ga.transform(c),ga.toArray(i[0]),Lr.toArray(i[1]),cl.toArray(i[2]))}Lle(i,e.get("minTurnAngle")),n.setShape({points:i})}}}var wC=[],Yi=new vn;function Lle(t,e){if(e<=180&&e>0){e=e/180*Math.PI,cl.fromArray(t[0]),Lr.fromArray(t[1]),ga.fromArray(t[2]),vn.sub(nu,cl,Lr),vn.sub(Zl,ga,Lr);var n=nu.len(),r=Zl.len();if(!(n<.001||r<.001)){nu.scale(1/n),Zl.scale(1/r);var a=nu.dot(Zl),i=Math.cos(e);if(i<a){var o=SC(Lr.x,Lr.y,ga.x,ga.y,cl.x,cl.y,wC,!1);Yi.fromArray(wC),Yi.scaleAndAdd(Zl,o/Math.tan(Math.PI-e));var s=ga.x!==Lr.x?(Yi.x-Lr.x)/(ga.x-Lr.x):(Yi.y-Lr.y)/(ga.y-Lr.y);if(isNaN(s))return;s<0?vn.copy(Yi,Lr):s>1&&vn.copy(Yi,ga),Yi.toArray(t[1])}}}}function KTt(t,e,n){if(n<=180&&n>0){n=n/180*Math.PI,cl.fromArray(t[0]),Lr.fromArray(t[1]),ga.fromArray(t[2]),vn.sub(nu,Lr,cl),vn.sub(Zl,ga,Lr);var r=nu.len(),a=Zl.len();if(!(r<.001||a<.001)){nu.scale(1/r),Zl.scale(1/a);var i=nu.dot(e),o=Math.cos(n);if(i<o){var s=SC(Lr.x,Lr.y,ga.x,ga.y,cl.x,cl.y,wC,!1);Yi.fromArray(wC);var l=Math.PI/2,u=Math.acos(Zl.dot(e)),c=l+u-n;if(c>=l)vn.copy(Yi,ga);else{Yi.scaleAndAdd(Zl,s/Math.tan(Math.PI/2-c));var f=ga.x!==Lr.x?(Yi.x-Lr.x)/(ga.x-Lr.x):(Yi.y-Lr.y)/(ga.y-Lr.y);if(isNaN(f))return;f<0?vn.copy(Yi,Lr):f>1&&vn.copy(Yi,ga)}Yi.toArray(t[1])}}}}function nH(t,e,n,r){var a=n==="normal",i=a?t:t.ensureState(n);i.ignore=e;var o=r.get("smooth");o&&o===!0&&(o=.3),i.shape=i.shape||{},o>0&&(i.shape.smooth=o);var s=r.getModel("lineStyle").getLineStyle();a?t.useStyle(s):i.style=s}function YTt(t,e){var n=e.smooth,r=e.points;if(r)if(t.moveTo(r[0][0],r[0][1]),n>0&&r.length>=3){var a=Xu(r[0],r[1]),i=Xu(r[1],r[2]);if(!a||!i){t.lineTo(r[1][0],r[1][1]),t.lineTo(r[2][0],r[2][1]);return}var o=Math.min(a,i)*n,s=Im([],r[1],r[0],o/a),l=Im([],r[1],r[2],o/i),u=Im([],s,l,.5);t.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),t.bezierCurveTo(l[0],l[1],l[0],l[1],r[2][0],r[2][1])}else for(var c=1;c<r.length;c++)t.lineTo(r[c][0],r[c][1])}function hB(t,e,n){var r=t.getTextGuideLine(),a=t.getTextContent();if(!a){r&&t.removeTextGuideLine();return}for(var i=e.normal,o=i.get("show"),s=a.ignore,l=0;l<q1.length;l++){var u=q1[l],c=e[u],f=u==="normal";if(c){var d=c.get("show"),h=f?s:gn(a.states[u]&&a.states[u].ignore,s);if(h||!gn(d,o)){var p=f?r:r&&r.states[u];p&&(p.ignore=!0);continue}r||(r=new fo,t.setTextGuideLine(r),!f&&(s||!o)&&nH(r,!0,"normal",e.normal),t.stateProxy&&(r.stateProxy=t.stateProxy)),nH(r,!1,u,c)}}if(r){Xt(r.style,n),r.style.fill=null;var v=i.get("showAbove"),g=t.textGuideLineConfig=t.textGuideLineConfig||{};g.showAbove=v||!1,r.buildPath=YTt}}function pB(t,e){e=e||"labelLine";for(var n={normal:t.getModel(e)},r=0;r<oo.length;r++){var a=oo[r];n[a]=t.getModel([a,e])}return n}function Ole(t){for(var e=[],n=0;n<t.length;n++){var r=t[n];if(!r.defaultAttr.ignore){var a=r.label,i=a.getComputedTransform(),o=a.getBoundingRect(),s=!i||i[1]<1e-5&&i[2]<1e-5,l=a.style.margin||0,u=o.clone();u.applyTransform(i),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var c=s?new rC(o,i):null;e.push({label:a,labelLine:r.labelLine,rect:u,localRect:o,obb:c,priority:r.priority,defaultAttr:r.defaultAttr,layoutOption:r.computedLayoutOption,axisAligned:s,transform:i})}}return e}function Vle(t,e,n,r,a,i){var o=t.length;if(o<2)return;t.sort(function(T,M){return T.rect[e]-M.rect[e]});for(var s=0,l,u=!1,c=0,f=0;f<o;f++){var d=t[f],h=d.rect;l=h[e]-s,l<0&&(h[e]-=l,d.label[e]-=l,u=!0);var p=Math.max(-l,0);c+=p,s=h[e]+h[n]}c>0&&i&&C(-c/o,0,o);var v=t[0],g=t[o-1],y,m;S(),y<0&&_(-y,.8),m<0&&_(m,.8),S(),w(y,m,1),w(m,y,-1),S(),y<0&&x(-y),m<0&&x(m);function S(){y=v.rect[e]-r,m=a-g.rect[e]-g.rect[n]}function w(T,M,E){if(T<0){var A=Math.min(M,-T);if(A>0){C(A*E,0,o);var k=A+T;k<0&&_(-k*E,1)}else _(-T*E,1)}}function C(T,M,E){T!==0&&(u=!0);for(var A=M;A<E;A++){var k=t[A],L=k.rect;L[e]+=T,k.label[e]+=T}}function _(T,M){for(var E=[],A=0,k=1;k<o;k++){var L=t[k-1].rect,I=Math.max(t[k].rect[e]-L[e]-L[n],0);E.push(I),A+=I}if(A){var P=Math.min(Math.abs(T)/A,M);if(T>0)for(var k=0;k<o-1;k++){var F=E[k]*P;C(F,0,k+1)}else for(var k=o-1;k>0;k--){var F=E[k-1]*P;C(-F,k,o)}}}function x(T){var M=T<0?-1:1;T=Math.abs(T);for(var E=Math.ceil(T/(o-1)),A=0;A<o-1;A++)if(M>0?C(E,0,A+1):C(-E,o-A-1,o),T-=E,T<=0)return}return u}function XTt(t,e,n,r){return Vle(t,"x","width",e,n,r)}function Nle(t,e,n,r){return Vle(t,"y","height",e,n,r)}function Ile(t){var e=[];t.sort(function(v,g){return g.priority-v.priority});var n=new yn(0,0,0,0);function r(v){if(!v.ignore){var g=v.ensureState("emphasis");g.ignore==null&&(g.ignore=!1)}v.ignore=!0}for(var a=0;a<t.length;a++){var i=t[a],o=i.axisAligned,s=i.localRect,l=i.transform,u=i.label,c=i.labelLine;n.copy(i.rect),n.width-=.1,n.height-=.1,n.x+=.05,n.y+=.05;for(var f=i.obb,d=!1,h=0;h<e.length;h++){var p=e[h];if(n.intersect(p.rect)){if(o&&p.axisAligned){d=!0;break}if(p.obb||(p.obb=new rC(p.localRect,p.transform)),f||(f=new rC(s,l)),f.intersect(p.obb)){d=!0;break}}}d?(r(u),c&&r(c)):(u.attr("ignore",i.defaultAttr.ignore),c&&c.attr("ignore",i.defaultAttr.labelGuideIgnore),e.push(i))}}function qTt(t){if(t){for(var e=[],n=0;n<t.length;n++)e.push(t[n].slice());return e}}function ZTt(t,e){var n=t.label,r=e&&e.getTextGuideLine();return{dataIndex:t.dataIndex,dataType:t.dataType,seriesIndex:t.seriesModel.seriesIndex,text:t.label.style.text,rect:t.hostRect,labelRect:t.rect,align:n.style.align,verticalAlign:n.style.verticalAlign,labelLinePoints:qTt(r&&r.shape.points)}}var rH=["align","verticalAlign","width","height","fontSize"],Gi=new Qu,IA=Gn(),QTt=Gn();function ux(t,e,n){for(var r=0;r<n.length;r++){var a=n[r];e[a]!=null&&(t[a]=e[a])}}var cx=["x","y","rotation"],JTt=function(){function t(){this._labelList=[],this._chartViewList=[]}return t.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},t.prototype._addLabel=function(e,n,r,a,i){var o=a.style,s=a.__hostTarget,l=s.textConfig||{},u=a.getComputedTransform(),c=a.getBoundingRect().plain();yn.applyTransform(c,c,u),u?Gi.setLocalTransform(u):(Gi.x=Gi.y=Gi.rotation=Gi.originX=Gi.originY=0,Gi.scaleX=Gi.scaleY=1),Gi.rotation=ul(Gi.rotation);var f=a.__hostTarget,d;if(f){d=f.getBoundingRect().plain();var h=f.getComputedTransform();yn.applyTransform(d,d,h)}var p=d&&f.getTextGuideLine();this._labelList.push({label:a,labelLine:p,seriesModel:r,dataIndex:e,dataType:n,layoutOption:i,computedLayoutOption:null,rect:c,hostRect:d,priority:d?d.width*d.height:0,defaultAttr:{ignore:a.ignore,labelGuideIgnore:p&&p.ignore,x:Gi.x,y:Gi.y,scaleX:Gi.scaleX,scaleY:Gi.scaleY,rotation:Gi.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:a.cursor,attachedPos:l.position,attachedRot:l.rotation}})},t.prototype.addLabelsOfSeries=function(e){var n=this;this._chartViewList.push(e);var r=e.__model,a=r.get("labelLayout");(jt(a)||Dn(a).length)&&e.group.traverse(function(i){if(i.ignore)return!0;var o=i.getTextContent(),s=ln(i);o&&!o.disableLabelLayout&&n._addLabel(s.dataIndex,s.dataType,r,o,a)})},t.prototype.updateLayoutConfig=function(e){var n=e.getWidth(),r=e.getHeight();function a(S,w){return function(){tH(S,w)}}for(var i=0;i<this._labelList.length;i++){var o=this._labelList[i],s=o.label,l=s.__hostTarget,u=o.defaultAttr,c=void 0;jt(o.layoutOption)?c=o.layoutOption(ZTt(o,l)):c=o.layoutOption,c=c||{},o.computedLayoutOption=c;var f=Math.PI/180;l&&l.setTextConfig({local:!1,position:c.x!=null||c.y!=null?null:u.attachedPos,rotation:c.rotate!=null?c.rotate*f:u.attachedRot,offset:[c.dx||0,c.dy||0]});var d=!1;if(c.x!=null?(s.x=Mt(c.x,n),s.setStyle("x",0),d=!0):(s.x=u.x,s.setStyle("x",u.style.x)),c.y!=null?(s.y=Mt(c.y,r),s.setStyle("y",0),d=!0):(s.y=u.y,s.setStyle("y",u.style.y)),c.labelLinePoints){var h=l.getTextGuideLine();h&&(h.setShape({points:c.labelLinePoints}),d=!1)}var p=IA(s);p.needsUpdateLabelLine=d,s.rotation=c.rotate!=null?c.rotate*f:u.rotation,s.scaleX=u.scaleX,s.scaleY=u.scaleY;for(var v=0;v<rH.length;v++){var g=rH[v];s.setStyle(g,c[g]!=null?c[g]:u.style[g])}if(c.draggable){if(s.draggable=!0,s.cursor="move",l){var y=o.seriesModel;if(o.dataIndex!=null){var m=o.seriesModel.getData(o.dataType);y=m.getItemModel(o.dataIndex)}s.on("drag",a(l,y.getModel("labelLine")))}}else s.off("drag"),s.cursor=u.cursor}},t.prototype.layout=function(e){var n=e.getWidth(),r=e.getHeight(),a=Ole(this._labelList),i=or(a,function(l){return l.layoutOption.moveOverlap==="shiftX"}),o=or(a,function(l){return l.layoutOption.moveOverlap==="shiftY"});XTt(i,0,n),Nle(o,0,r);var s=or(a,function(l){return l.layoutOption.hideOverlap});Ile(s)},t.prototype.processLabelsOverall=function(){var e=this;q(this._chartViewList,function(n){var r=n.__model,a=n.ignoreLabelLineUpdate,i=r.isAnimationEnabled();n.group.traverse(function(o){if(o.ignore&&!o.forceLabelAnimation)return!0;var s=!a,l=o.getTextContent();!s&&l&&(s=IA(l).needsUpdateLabelLine),s&&e._updateLabelLine(o,r),i&&e._animateLabels(o,r)})})},t.prototype._updateLabelLine=function(e,n){var r=e.getTextContent(),a=ln(e),i=a.dataIndex;if(r&&i!=null){var o=n.getData(a.dataType),s=o.getItemModel(i),l={},u=o.getItemVisual(i,"style");if(u){var c=o.getVisual("drawType");l.stroke=u[c]}var f=s.getModel("labelLine");hB(e,pB(s),l),tH(e,f)}},t.prototype._animateLabels=function(e,n){var r=e.getTextContent(),a=e.getTextGuideLine();if(r&&(e.forceLabelAnimation||!r.ignore&&!r.invisible&&!e.disableLabelAnimation&&!mg(e))){var i=IA(r),o=i.oldLayout,s=ln(e),l=s.dataIndex,u={x:r.x,y:r.y,rotation:r.rotation},c=n.getData(s.dataType);if(o){r.attr(o);var d=e.prevStates;d&&(bn(d,"select")>=0&&r.attr(i.oldLayoutSelect),bn(d,"emphasis")>=0&&r.attr(i.oldLayoutEmphasis)),jn(r,u,n,l)}else if(r.attr(u),!V0(r).valueAnimation){var f=gn(r.style.opacity,1);r.style.opacity=0,Ur(r,{style:{opacity:f}},n,l)}if(i.oldLayout=u,r.states.select){var h=i.oldLayoutSelect={};ux(h,u,cx),ux(h,r.states.select,cx)}if(r.states.emphasis){var p=i.oldLayoutEmphasis={};ux(p,u,cx),ux(p,r.states.emphasis,cx)}xoe(r,l,c,n,n)}if(a&&!a.ignore&&!a.invisible){var i=QTt(a),o=i.oldLayout,v={points:a.shape.points};o?(a.attr({shape:o}),jn(a,{shape:v},n)):(a.setShape(v),a.style.strokePercent=0,Ur(a,{style:{strokePercent:1}},n)),i.oldLayout=v}},t}();const eEt=JTt;var BA=Gn();function tEt(t){t.registerUpdateLifecycle("series:beforeupdate",function(e,n,r){var a=BA(n).labelManager;a||(a=BA(n).labelManager=new eEt),a.clearLabels()}),t.registerUpdateLifecycle("series:layoutlabels",function(e,n,r){var a=BA(n).labelManager;r.updatedSeries.forEach(function(i){a.addLabelsOfSeries(n.getViewOfSeriesModel(i))}),a.updateLayoutConfig(n),a.layout(n),a.processLabelsOverall()})}var $A=Math.sin,PA=Math.cos,Ble=Math.PI,rh=Math.PI*2,nEt=180/Ble,rEt=function(){function t(){}return t.prototype.reset=function(e){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,e||4)},t.prototype.moveTo=function(e,n){this._add("M",e,n)},t.prototype.lineTo=function(e,n){this._add("L",e,n)},t.prototype.bezierCurveTo=function(e,n,r,a,i,o){this._add("C",e,n,r,a,i,o)},t.prototype.quadraticCurveTo=function(e,n,r,a){this._add("Q",e,n,r,a)},t.prototype.arc=function(e,n,r,a,i,o){this.ellipse(e,n,r,r,0,a,i,o)},t.prototype.ellipse=function(e,n,r,a,i,o,s,l){var u=s-o,c=!l,f=Math.abs(u),d=_f(f-rh)||(c?u>=rh:-u>=rh),h=u>0?u%rh:u%rh+rh,p=!1;d?p=!0:_f(f)?p=!1:p=h>=Ble==!!c;var v=e+r*PA(o),g=n+a*$A(o);this._start&&this._add("M",v,g);var y=Math.round(i*nEt);if(d){var m=1/this._p,S=(c?1:-1)*(rh-m);this._add("A",r,a,y,1,+c,e+r*PA(o+S),n+a*$A(o+S)),m>.01&&this._add("A",r,a,y,0,+c,v,g)}else{var w=e+r*PA(s),C=n+a*$A(s);this._add("A",r,a,y,+p,+c,w,C)}},t.prototype.rect=function(e,n,r,a){this._add("M",e,n),this._add("l",r,0),this._add("l",0,a),this._add("l",-r,0),this._add("Z")},t.prototype.closePath=function(){this._d.length>0&&this._add("Z")},t.prototype._add=function(e,n,r,a,i,o,s,l,u){for(var c=[],f=this._p,d=1;d<arguments.length;d++){var h=arguments[d];if(isNaN(h)){this._invalid=!0;return}c.push(Math.round(h*f)/f)}this._d.push(e+c.join(" ")),this._start=e==="Z"},t.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},t.prototype.getStr=function(){return this._str},t}();const $le=rEt;var Ym="none",aEt=Math.round;function iEt(t){var e=t.fill;return e!=null&&e!==Ym}function oEt(t){var e=t.stroke;return e!=null&&e!==Ym}var JO=["lineCap","miterLimit","lineJoin"],sEt=ut(JO,function(t){return"stroke-"+t.toLowerCase()});function lEt(t,e,n,r){var a=e.opacity==null?1:e.opacity;if(n instanceof si){t("opacity",a);return}if(iEt(e)){var i=j1(e.fill);t("fill",i.color);var o=e.fillOpacity!=null?e.fillOpacity*i.opacity*a:i.opacity*a;(r||o<1)&&t("fill-opacity",o)}else t("fill",Ym);if(oEt(e)){var s=j1(e.stroke);t("stroke",s.color);var l=e.strokeNoScale?n.getLineScale():1,u=l?(e.lineWidth||0)/l:0,c=e.strokeOpacity!=null?e.strokeOpacity*s.opacity*a:s.opacity*a,f=e.strokeFirst;if((r||u!==1)&&t("stroke-width",u),(r||f)&&t("paint-order",f?"stroke":"fill"),(r||c<1)&&t("stroke-opacity",c),e.lineDash){var d=XI(n),h=d[0],p=d[1];h&&(p=aEt(p||0),t("stroke-dasharray",h.join(",")),(p||r)&&t("stroke-dashoffset",p))}else r&&t("stroke-dasharray",Ym);for(var v=0;v<JO.length;v++){var g=JO[v];if(r||e[g]!==tC[g]){var y=e[g]||tC[g];y&&t(sEt[v],y)}}}else r&&t("stroke",Ym)}var Ple="http://www.w3.org/2000/svg",Fle="http://www.w3.org/1999/xlink",uEt="http://www.w3.org/2000/xmlns/",cEt="http://www.w3.org/XML/1998/namespace";function zle(t){return document.createElementNS(Ple,t)}function Ha(t,e,n,r,a){return{tag:t,attrs:n||{},children:r,text:a,key:e}}function fEt(t,e){var n=[];if(e)for(var r in e){var a=e[r],i=r;a!==!1&&(a!==!0&&a!=null&&(i+='="'+a+'"'),n.push(i))}return"<"+t+" "+n.join(" ")+">"}function dEt(t){return"</"+t+">"}function vB(t,e){e=e||{};var n=e.newline?`
  1146. `:"";function r(a){var i=a.children,o=a.tag,s=a.attrs,l=a.text;return fEt(o,s)+(o!=="style"?qi(l):l||"")+(i?""+n+ut(i,function(u){return r(u)}).join(n)+n:"")+dEt(o)}return r(t)}function hEt(t,e,n){n=n||{};var r=n.newline?`
  1147. `:"",a=" {"+r,i=r+"}",o=ut(Dn(t),function(l){return l+a+ut(Dn(t[l]),function(u){return u+":"+t[l][u]+";"}).join(r)+i}).join(r),s=ut(Dn(e),function(l){return"@keyframes "+l+a+ut(Dn(e[l]),function(u){return u+a+ut(Dn(e[l][u]),function(c){var f=e[l][u][c];return c==="d"&&(f='path("'+f+'")'),c+":"+f+";"}).join(r)+i}).join(r)+i}).join(r);return!o&&!s?"":["<![CDATA[",o,s,"]]>"].join(r)}function e3(t){return{zrId:t,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function aH(t,e,n,r){return Ha("svg","root",{width:t,height:e,xmlns:Ple,"xmlns:xlink":Fle,version:"1.1",baseProfile:"full",viewBox:r?"0 0 "+t+" "+e:!1},n)}var iH={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"},ch="transform-origin";function pEt(t,e,n){var r=et({},t.shape);et(r,e),t.buildPath(n,r);var a=new $le;return a.reset(tie(t)),n.rebuildPath(a,1),a.generateStr(),a.getStr()}function vEt(t,e){var n=e.originX,r=e.originY;(n||r)&&(t[ch]=n+"px "+r+"px")}var gEt={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function Ule(t,e){var n=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[n]=t,n}function yEt(t,e,n){var r=t.shape.paths,a={},i,o;if(q(r,function(l){var u=e3(n.zrId);u.animation=!0,OE(l,{},u,!0);var c=u.cssAnims,f=u.cssNodes,d=Dn(c),h=d.length;if(h){o=d[h-1];var p=c[o];for(var v in p){var g=p[v];a[v]=a[v]||{d:""},a[v].d+=g.d||""}for(var y in f){var m=f[y].animation;m.indexOf(o)>=0&&(i=m)}}}),!!i){e.d=!1;var s=Ule(a,n);return i.replace(o,s)}}function oH(t){return Ot(t)?iH[t]?"cubic-bezier("+iH[t]+")":aI(t)?t:"":""}function OE(t,e,n,r){var a=t.animators,i=a.length,o=[];if(t instanceof vE){var s=yEt(t,e,n);if(s)o.push(s);else if(!i)return}else if(!i)return;for(var l={},u=0;u<i;u++){var c=a[u],f=[c.getMaxTime()/1e3+"s"],d=oH(c.getClip().easing),h=c.getDelay();d?f.push(d):f.push("linear"),h&&f.push(h/1e3+"s"),c.getLoop()&&f.push("infinite");var p=f.join(" ");l[p]=l[p]||[p,[]],l[p][1].push(c)}function v(m){var S=m[1],w=S.length,C={},_={},x={},T="animation-timing-function";function M(se,me,ve){for(var he=se.getTracks(),ee=se.getMaxTime(),ue=0;ue<he.length;ue++){var fe=he[ue];if(fe.needsAnimate()){var Re=fe.keyframes,Ne=fe.propName;if(ve&&(Ne=ve(Ne)),Ne)for(var De=0;De<Re.length;De++){var we=Re[De],ae=Math.round(we.time/ee*100)+"%",Ie=oH(we.easing),He=we.rawValue;(Ot(He)||Un(He))&&(me[ae]=me[ae]||{},me[ae][Ne]=we.rawValue,Ie&&(me[ae][T]=Ie))}}}}for(var E=0;E<w;E++){var A=S[E],k=A.targetName;k?k==="shape"&&M(A,_):!r&&M(A,C)}for(var L in C){var I={};oie(I,t),et(I,C[L]);var P=nie(I),F=C[L][T];x[L]=P?{transform:P}:{},vEt(x[L],I),F&&(x[L][T]=F)}var $,W=!0;for(var L in _){x[L]=x[L]||{};var V=!$,F=_[L][T];V&&($=new mu);var z=$.len();$.reset(),x[L].d=pEt(t,_[L],$);var K=$.len();if(!V&&z!==K){W=!1;break}F&&(x[L][T]=F)}if(!W)for(var L in x)delete x[L].d;if(!r)for(var E=0;E<w;E++){var A=S[E],k=A.targetName;k==="style"&&M(A,x,function(he){return gEt[he]})}for(var Z=Dn(x),oe=!0,ge,E=1;E<Z.length;E++){var ie=Z[E-1],Q=Z[E];if(x[ie][ch]!==x[Q][ch]){oe=!1;break}ge=x[ie][ch]}if(oe&&ge){for(var L in x)x[L][ch]&&delete x[L][ch];e[ch]=ge}if(or(Z,function(se){return Dn(x[se]).length>0}).length){var ce=Ule(x,n);return ce+" "+m[0]+" both"}}for(var g in l){var s=v(l[g]);s&&o.push(s)}if(o.length){var y=n.zrId+"-cls-"+n.cssClassIdx++;n.cssNodes["."+y]={animation:o.join(",")},e.class=y}}var sb=Math.round;function Gle(t){return t&&Ot(t.src)}function Hle(t){return t&&jt(t.toDataURL)}function gB(t,e,n,r){lEt(function(a,i){var o=a==="fill"||a==="stroke";o&&eie(i)?jle(e,t,a,r):o&&oI(i)?Kle(n,t,a,r):t[a]=i},e,n,!1),CEt(n,t,r)}function sH(t){return _f(t[0]-1)&&_f(t[1])&&_f(t[2])&&_f(t[3]-1)}function mEt(t){return _f(t[4])&&_f(t[5])}function yB(t,e,n){if(e&&!(mEt(e)&&sH(e))){var r=n?10:1e4;t.transform=sH(e)?"translate("+sb(e[4]*r)/r+" "+sb(e[5]*r)/r+")":Z1t(e)}}function lH(t,e,n){for(var r=t.points,a=[],i=0;i<r.length;i++)a.push(sb(r[i][0]*n)/n),a.push(sb(r[i][1]*n)/n);e.points=a.join(" ")}function uH(t){return!t.smooth}function bEt(t){var e=ut(t,function(n){return typeof n=="string"?[n,n]:n});return function(n,r,a){for(var i=0;i<e.length;i++){var o=e[i],s=n[o[0]];s!=null&&(r[o[1]]=sb(s*a)/a)}}}var SEt={circle:[bEt(["cx","cy","r"])],polyline:[lH,uH],polygon:[lH,uH]};function wEt(t){for(var e=t.animators,n=0;n<e.length;n++)if(e[n].targetName==="shape")return!0;return!1}function Wle(t,e){var n=t.style,r=t.shape,a=SEt[t.type],i={},o=e.animation,s="path",l=t.style.strokePercent,u=e.compress&&tie(t)||4;if(a&&!e.willUpdate&&!(a[1]&&!a[1](r))&&!(o&&wEt(t))&&!(l<1)){s=t.type;var c=Math.pow(10,u);a[0](r,i,c)}else{var f=!t.path||t.shapeChanged();t.path||t.createPathProxy();var d=t.path;f&&(d.beginPath(),t.buildPath(d,t.shape),t.pathUpdated());var h=d.getVersion(),p=t,v=p.__svgPathBuilder;(p.__svgPathVersion!==h||!v||l!==p.__svgPathStrokePercent)&&(v||(v=p.__svgPathBuilder=new $le),v.reset(u),d.rebuildPath(v,l),v.generateStr(),p.__svgPathVersion=h,p.__svgPathStrokePercent=l),i.d=v.getStr()}return yB(i,t.transform),gB(i,n,t,e),e.animation&&OE(t,i,e),Ha(s,t.id+"",i)}function xEt(t,e){var n=t.style,r=n.image;if(r&&!Ot(r)&&(Gle(r)?r=r.src:Hle(r)&&(r=r.toDataURL())),!!r){var a=n.x||0,i=n.y||0,o=n.width,s=n.height,l={href:r,width:o,height:s};return a&&(l.x=a),i&&(l.y=i),yB(l,t.transform),gB(l,n,t,e),e.animation&&OE(t,l,e),Ha("image",t.id+"",l)}}function _Et(t,e){var n=t.style,r=n.text;if(r!=null&&(r+=""),!(!r||isNaN(n.x)||isNaN(n.y))){var a=n.font||Yf,i=n.x||0,o=J1t(n.y||0,iE(a),n.textBaseline),s=Q1t[n.textAlign]||n.textAlign,l={"dominant-baseline":"central","text-anchor":s};if(Pie(n)){var u="",c=n.fontStyle,f=$ie(n.fontSize);if(!parseFloat(f))return;var d=n.fontFamily||_ae,h=n.fontWeight;u+="font-size:"+f+";font-family:"+d+";",c&&c!=="normal"&&(u+="font-style:"+c+";"),h&&h!=="normal"&&(u+="font-weight:"+h+";"),l.style=u}else l.style="font: "+a;return r.match(/\s/)&&(l["xml:space"]="preserve"),i&&(l.x=i),o&&(l.y=o),yB(l,t.transform),gB(l,n,t,e),e.animation&&OE(t,l,e),Ha("text",t.id+"",l,void 0,r)}}function cH(t,e){if(t instanceof Cn)return Wle(t,e);if(t instanceof si)return xEt(t,e);if(t instanceof X1)return _Et(t,e)}function CEt(t,e,n){var r=t.style;if(ebt(r)){var a=tbt(t),i=n.shadowCache,o=i[a];if(!o){var s=t.getGlobalScale(),l=s[0],u=s[1];if(!l||!u)return;var c=r.shadowOffsetX||0,f=r.shadowOffsetY||0,d=r.shadowBlur,h=j1(r.shadowColor),p=h.opacity,v=h.color,g=d/2/l,y=d/2/u,m=g+" "+y;o=n.zrId+"-s"+n.shadowIdx++,n.defs[o]=Ha("filter",o,{id:o,x:"-100%",y:"-100%",width:"300%",height:"300%"},[Ha("feDropShadow","",{dx:c/l,dy:f/u,stdDeviation:m,"flood-color":v,"flood-opacity":p})]),i[a]=o}e.filter=aE(o)}}function jle(t,e,n,r){var a=t[n],i,o={gradientUnits:a.global?"userSpaceOnUse":"objectBoundingBox"};if(Qae(a))i="linearGradient",o.x1=a.x,o.y1=a.y,o.x2=a.x2,o.y2=a.y2;else if(Jae(a))i="radialGradient",o.cx=gn(a.x,.5),o.cy=gn(a.y,.5),o.r=gn(a.r,.5);else return;for(var s=a.colorStops,l=[],u=0,c=s.length;u<c;++u){var f=cO(s[u].offset)*100+"%",d=s[u].color,h=j1(d),p=h.color,v=h.opacity,g={offset:f};g["stop-color"]=p,v<1&&(g["stop-opacity"]=v),l.push(Ha("stop",u+"",g))}var y=Ha(i,"",o,l),m=vB(y),S=r.gradientCache,w=S[m];w||(w=r.zrId+"-g"+r.gradientIdx++,S[m]=w,o.id=w,r.defs[w]=Ha(i,w,o,l)),e[n]=aE(w)}function Kle(t,e,n,r){var a=t.style[n],i=t.getBoundingRect(),o={},s=a.repeat,l=s==="no-repeat",u=s==="repeat-x",c=s==="repeat-y",f;if(Zae(a)){var d=a.imageWidth,h=a.imageHeight,p=void 0,v=a.image;if(Ot(v)?p=v:Gle(v)?p=v.src:Hle(v)&&(p=v.toDataURL()),typeof Image>"u"){var g="Image width/height must been given explictly in svg-ssr renderer.";Ii(d,g),Ii(h,g)}else if(d==null||h==null){var y=function(E,A){if(E){var k=E.elm,L=d||A.width,I=h||A.height;E.tag==="pattern"&&(u?(I=1,L/=i.width):c&&(L=1,I/=i.height)),E.attrs.width=L,E.attrs.height=I,k&&(k.setAttribute("width",L),k.setAttribute("height",I))}},m=gI(p,null,t,function(E){l||y(_,E),y(f,E)});m&&m.width&&m.height&&(d=d||m.width,h=h||m.height)}f=Ha("image","img",{href:p,width:d,height:h}),o.width=d,o.height=h}else a.svgElement&&(f=Zt(a.svgElement),o.width=a.svgWidth,o.height=a.svgHeight);if(f){var S,w;l?S=w=1:u?(w=1,S=o.width/i.width):c?(S=1,w=o.height/i.height):o.patternUnits="userSpaceOnUse",S!=null&&!isNaN(S)&&(o.width=S),w!=null&&!isNaN(w)&&(o.height=w);var C=nie(a);C&&(o.patternTransform=C);var _=Ha("pattern","",o,[f]),x=vB(_),T=r.patternCache,M=T[x];M||(M=r.zrId+"-p"+r.patternIdx++,T[x]=M,o.id=M,_=r.defs[M]=Ha("pattern",M,o,[f])),e[n]=aE(M)}}function TEt(t,e,n){var r=n.clipPathCache,a=n.defs,i=r[t.id];if(!i){i=n.zrId+"-c"+n.clipPathIdx++;var o={id:i};r[t.id]=i,a[i]=Ha("clipPath",i,o,[Wle(t,n)])}e["clip-path"]=aE(i)}function fH(t){return document.createTextNode(t)}function Eh(t,e,n){t.insertBefore(e,n)}function dH(t,e){t.removeChild(e)}function hH(t,e){t.appendChild(e)}function Yle(t){return t.parentNode}function Xle(t){return t.nextSibling}function FA(t,e){t.textContent=e}var pH=58,EEt=120,MEt=Ha("","");function t3(t){return t===void 0}function Wl(t){return t!==void 0}function DEt(t,e,n){for(var r={},a=e;a<=n;++a){var i=t[a].key;i!==void 0&&(r[i]=a)}return r}function cm(t,e){var n=t.key===e.key,r=t.tag===e.tag;return r&&n}function lb(t){var e,n=t.children,r=t.tag;if(Wl(r)){var a=t.elm=zle(r);if(mB(MEt,t),st(n))for(e=0;e<n.length;++e){var i=n[e];i!=null&&hH(a,lb(i))}else Wl(t.text)&&!qt(t.text)&&hH(a,fH(t.text))}else t.elm=fH(t.text);return t.elm}function qle(t,e,n,r,a){for(;r<=a;++r){var i=n[r];i!=null&&Eh(t,lb(i),e)}}function xC(t,e,n,r){for(;n<=r;++n){var a=e[n];if(a!=null)if(Wl(a.tag)){var i=Yle(a.elm);dH(i,a.elm)}else dH(t,a.elm)}}function mB(t,e){var n,r=e.elm,a=t&&t.attrs||{},i=e.attrs||{};if(a!==i){for(n in i){var o=i[n],s=a[n];s!==o&&(o===!0?r.setAttribute(n,""):o===!1?r.removeAttribute(n):n.charCodeAt(0)!==EEt?r.setAttribute(n,o):n==="xmlns:xlink"||n==="xmlns"?r.setAttributeNS(uEt,n,o):n.charCodeAt(3)===pH?r.setAttributeNS(cEt,n,o):n.charCodeAt(5)===pH?r.setAttributeNS(Fle,n,o):r.setAttribute(n,o))}for(n in a)n in i||r.removeAttribute(n)}}function AEt(t,e,n){for(var r=0,a=0,i=e.length-1,o=e[0],s=e[i],l=n.length-1,u=n[0],c=n[l],f,d,h,p;r<=i&&a<=l;)o==null?o=e[++r]:s==null?s=e[--i]:u==null?u=n[++a]:c==null?c=n[--l]:cm(o,u)?(Pv(o,u),o=e[++r],u=n[++a]):cm(s,c)?(Pv(s,c),s=e[--i],c=n[--l]):cm(o,c)?(Pv(o,c),Eh(t,o.elm,Xle(s.elm)),o=e[++r],c=n[--l]):cm(s,u)?(Pv(s,u),Eh(t,s.elm,o.elm),s=e[--i],u=n[++a]):(t3(f)&&(f=DEt(e,r,i)),d=f[u.key],t3(d)?Eh(t,lb(u),o.elm):(h=e[d],h.tag!==u.tag?Eh(t,lb(u),o.elm):(Pv(h,u),e[d]=void 0,Eh(t,h.elm,o.elm))),u=n[++a]);(r<=i||a<=l)&&(r>i?(p=n[l+1]==null?null:n[l+1].elm,qle(t,p,n,a,l)):xC(t,e,r,i))}function Pv(t,e){var n=e.elm=t.elm,r=t.children,a=e.children;t!==e&&(mB(t,e),t3(e.text)?Wl(r)&&Wl(a)?r!==a&&AEt(n,r,a):Wl(a)?(Wl(t.text)&&FA(n,""),qle(n,null,a,0,a.length-1)):Wl(r)?xC(n,r,0,r.length-1):Wl(t.text)&&FA(n,""):t.text!==e.text&&(Wl(r)&&xC(n,r,0,r.length-1),FA(n,e.text)))}function kEt(t,e){if(cm(t,e))Pv(t,e);else{var n=t.elm,r=Yle(n);lb(e),r!==null&&(Eh(r,e.elm,Xle(n)),xC(r,[t],0,0))}return e}var REt=0,LEt=function(){function t(e,n,r){if(this.type="svg",this.refreshHover=vH(),this.configLayer=vH(),this.storage=n,this._opts=r=et({},r),this.root=e,this._id="zr"+REt++,this._oldVNode=aH(r.width,r.height),e&&!r.ssr){var a=this._viewport=document.createElement("div");a.style.cssText="position:relative;overflow:hidden";var i=this._svgDom=this._oldVNode.elm=zle("svg");mB(null,this._oldVNode),a.appendChild(i),e.appendChild(a)}this.resize(r.width,r.height)}return t.prototype.getType=function(){return this.type},t.prototype.getViewportRoot=function(){return this._viewport},t.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},t.prototype.getSvgDom=function(){return this._svgDom},t.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",kEt(this._oldVNode,e),this._oldVNode=e}},t.prototype.renderOneToVNode=function(e){return cH(e,e3(this._id))},t.prototype.renderToVNode=function(e){e=e||{};var n=this.storage.getDisplayList(!0),r=this._width,a=this._height,i=e3(this._id);i.animation=e.animation,i.willUpdate=e.willUpdate,i.compress=e.compress;var o=[],s=this._bgVNode=OEt(r,a,this._backgroundColor,i);s&&o.push(s);var l=e.compress?null:this._mainVNode=Ha("g","main",{},[]);this._paintList(n,i,l?l.children:o),l&&o.push(l);var u=ut(Dn(i.defs),function(d){return i.defs[d]});if(u.length&&o.push(Ha("defs","defs",{},u)),e.animation){var c=hEt(i.cssNodes,i.cssAnims,{newline:!0});if(c){var f=Ha("style","stl",{},[],c);o.push(f)}}return aH(r,a,o,e.useViewBox)},t.prototype.renderToString=function(e){return e=e||{},vB(this.renderToVNode({animation:gn(e.cssAnimation,!0),willUpdate:!1,compress:!0,useViewBox:gn(e.useViewBox,!0)}),{newline:!0})},t.prototype.setBackgroundColor=function(e){this._backgroundColor=e},t.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},t.prototype._paintList=function(e,n,r){for(var a=e.length,i=[],o=0,s,l,u=0,c=0;c<a;c++){var f=e[c];if(!f.invisible){var d=f.__clipPaths,h=d&&d.length||0,p=l&&l.length||0,v=void 0;for(v=Math.max(h-1,p-1);v>=0&&!(d&&l&&d[v]===l[v]);v--);for(var g=p-1;g>v;g--)o--,s=i[o-1];for(var y=v+1;y<h;y++){var m={};TEt(d[y],m,n);var S=Ha("g","clip-g-"+u++,m,[]);(s?s.children:r).push(S),i[o++]=S,s=S}l=d;var w=cH(f,n);w&&(s?s.children:r).push(w)}}},t.prototype.resize=function(e,n){var r=this._opts,a=this.root,i=this._viewport;if(e!=null&&(r.width=e),n!=null&&(r.height=n),a&&i&&(i.style.display="none",e=Qv(a,0,r),n=Qv(a,1,r),i.style.display=""),this._width!==e||this._height!==n){if(this._width=e,this._height=n,i){var o=i.style;o.width=e+"px",o.height=n+"px"}if(oI(this._backgroundColor))this.refresh();else{var s=this._svgDom;s&&(s.setAttribute("width",e),s.setAttribute("height",n));var l=this._bgVNode&&this._bgVNode.elm;l&&(l.setAttribute("width",e),l.setAttribute("height",n))}}},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},t.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},t.prototype.toDataURL=function(e){var n=this.renderToString(),r="data:image/svg+xml;";return e?(n=rbt(n),n&&r+"base64,"+n):r+"charset=UTF-8,"+encodeURIComponent(n)},t}();function vH(t){return function(){}}function OEt(t,e,n,r){var a;if(n&&n!=="none")if(a=Ha("rect","bg",{width:t,height:e,x:"0",y:"0",id:"0"}),eie(n))jle({fill:n},a.attrs,"fill",r);else if(oI(n))Kle({style:{fill:n},dirty:fa,getBoundingRect:function(){return{width:t,height:e}}},a.attrs,"fill",r);else{var i=j1(n),o=i.color,s=i.opacity;a.attrs.fill=o,s<1&&(a.attrs["fill-opacity"]=s)}return a}const VEt=LEt;function NEt(t){t.registerPainter("svg",VEt)}function gH(t,e,n){var r=ml.createCanvas(),a=e.getWidth(),i=e.getHeight(),o=r.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=a+"px",o.height=i+"px",r.setAttribute("data-zr-dom-id",t)),r.width=a*n,r.height=i*n,r}var IEt=function(t){Fe(e,t);function e(n,r,a){var i=t.call(this)||this;i.motionBlur=!1,i.lastFrameAlpha=.7,i.dpr=1,i.virtual=!1,i.config={},i.incremental=!1,i.zlevel=0,i.maxRepaintRectCount=5,i.__dirty=!0,i.__firstTimePaint=!0,i.__used=!1,i.__drawIndex=0,i.__startIndex=0,i.__endIndex=0,i.__prevStartIndex=null,i.__prevEndIndex=null;var o;a=a||J2,typeof n=="string"?o=gH(n,r,a):qt(n)&&(o=n,n=o.id),i.id=n,i.dom=o;var s=o.style;return s&&(tI(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),i.painter=r,i.dpr=a,i}return e.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},e.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},e.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},e.prototype.setUnpainted=function(){this.__firstTimePaint=!0},e.prototype.createBackBuffer=function(){var n=this.dpr;this.domBack=gH("back-"+this.id,this.painter,n),this.ctxBack=this.domBack.getContext("2d"),n!==1&&this.ctxBack.scale(n,n)},e.prototype.createRepaintRects=function(n,r,a,i){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,l=!1,u=new yn(0,0,0,0);function c(m){if(!(!m.isFinite()||m.isZero()))if(o.length===0){var S=new yn(0,0,0,0);S.copy(m),o.push(S)}else{for(var w=!1,C=1/0,_=0,x=0;x<o.length;++x){var T=o[x];if(T.intersect(m)){var M=new yn(0,0,0,0);M.copy(T),M.union(m),o[x]=M,w=!0;break}else if(l){u.copy(m),u.union(T);var E=m.width*m.height,A=T.width*T.height,k=u.width*u.height,L=k-E-A;L<C&&(C=L,_=x)}}if(l&&(o[_].union(m),w=!0),!w){var S=new yn(0,0,0,0);S.copy(m),o.push(S)}l||(l=o.length>=s)}}for(var f=this.__startIndex;f<this.__endIndex;++f){var d=n[f];if(d){var h=d.shouldBePainted(a,i,!0,!0),p=d.__isRendered&&(d.__dirty&Bo||!h)?d.getPrevPaintRect():null;p&&c(p);var v=h&&(d.__dirty&Bo||!d.__isRendered)?d.getPaintRect():null;v&&c(v)}}for(var f=this.__prevStartIndex;f<this.__prevEndIndex;++f){var d=r[f],h=d.shouldBePainted(a,i,!0,!0);if(d&&(!h||!d.__zr)&&d.__isRendered){var p=d.getPrevPaintRect();p&&c(p)}}var g;do{g=!1;for(var f=0;f<o.length;){if(o[f].isZero()){o.splice(f,1);continue}for(var y=f+1;y<o.length;)o[f].intersect(o[y])?(g=!0,o[f].union(o[y]),o.splice(y,1)):y++;f++}}while(g);return this._paintRects=o,o},e.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},e.prototype.resize=function(n,r){var a=this.dpr,i=this.dom,o=i.style,s=this.domBack;o&&(o.width=n+"px",o.height=r+"px"),i.width=n*a,i.height=r*a,s&&(s.width=n*a,s.height=r*a,a!==1&&this.ctxBack.scale(a,a))},e.prototype.clear=function(n,r,a){var i=this.dom,o=this.ctx,s=i.width,l=i.height;r=r||this.clearColor;var u=this.motionBlur&&!n,c=this.lastFrameAlpha,f=this.dpr,d=this;u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(i,0,0,s/f,l/f));var h=this.domBack;function p(v,g,y,m){if(o.clearRect(v,g,y,m),r&&r!=="transparent"){var S=void 0;if(Zb(r)){var w=r.global||r.__width===y&&r.__height===m;S=w&&r.__canvasGradient||HO(o,r,{x:0,y:0,width:y,height:m}),r.__canvasGradient=S,r.__width=y,r.__height=m}else Dae(r)&&(r.scaleX=r.scaleX||f,r.scaleY=r.scaleY||f,S=WO(o,r,{dirty:function(){d.setUnpainted(),d.__painter.refresh()}}));o.save(),o.fillStyle=S||r,o.fillRect(v,g,y,m),o.restore()}u&&(o.save(),o.globalAlpha=c,o.drawImage(h,v,g,y,m),o.restore())}!a||u?p(0,0,s,l):a.length&&q(a,function(v){p(v.x*f,v.y*f,v.width*f,v.height*f)})},e}(ks);const zA=IEt;var yH=1e5,ah=314159,fx=.01,BEt=.001;function $Et(t){return t?t.__builtin__?!0:!(typeof t.resize!="function"||typeof t.refresh!="function"):!1}function PEt(t,e){var n=document.createElement("div");return n.style.cssText=["position:relative","width:"+t+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",n}var FEt=function(){function t(e,n,r,a){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var i=!e.nodeName||e.nodeName.toUpperCase()==="CANVAS";this._opts=r=et({},r||{}),this.dpr=r.devicePixelRatio||J2,this._singleCanvas=i,this.root=e;var o=e.style;o&&(tI(e),e.innerHTML=""),this.storage=n;var s=this._zlevelList;this._prevDisplayList=[];var l=this._layers;if(i){var c=e,f=c.width,d=c.height;r.width!=null&&(f=r.width),r.height!=null&&(d=r.height),this.dpr=r.devicePixelRatio||1,c.width=f*this.dpr,c.height=d*this.dpr,this._width=f,this._height=d;var h=new zA(c,this,this.dpr);h.__builtin__=!0,h.initContext(),l[ah]=h,h.zlevel=ah,s.push(ah),this._domRoot=e}else{this._width=Qv(e,0,r),this._height=Qv(e,1,r);var u=this._domRoot=PEt(this._width,this._height);e.appendChild(u)}}return t.prototype.getType=function(){return"canvas"},t.prototype.isSingleCanvas=function(){return this._singleCanvas},t.prototype.getViewportRoot=function(){return this._domRoot},t.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},t.prototype.refresh=function(e){var n=this.storage.getDisplayList(!0),r=this._prevDisplayList,a=this._zlevelList;this._redrawId=Math.random(),this._paintList(n,r,e,this._redrawId);for(var i=0;i<a.length;i++){var o=a[i],s=this._layers[o];if(!s.__builtin__&&s.refresh){var l=i===0?this._backgroundColor:null;s.refresh(l)}}return this._opts.useDirtyRect&&(this._prevDisplayList=n.slice()),this},t.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},t.prototype._paintHoverList=function(e){var n=e.length,r=this._hoverlayer;if(r&&r.clear(),!!n){for(var a={inHover:!0,viewWidth:this._width,viewHeight:this._height},i,o=0;o<n;o++){var s=e[o];s.__inHover&&(r||(r=this._hoverlayer=this.getLayer(yH)),i||(i=r.ctx,i.save()),Wh(i,s,a,o===n-1))}i&&i.restore()}},t.prototype.getHoverLayer=function(){return this.getLayer(yH)},t.prototype.paintOne=function(e,n){qI(e,n)},t.prototype._paintList=function(e,n,r,a){if(this._redrawId===a){r=r||!1,this._updateLayerStatus(e);var i=this._doPaintList(e,n,r),o=i.finished,s=i.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),s&&this._paintHoverList(e),o)this.eachLayer(function(u){u.afterBrush&&u.afterBrush()});else{var l=this;oO(function(){l._paintList(e,n,r,a)})}}},t.prototype._compositeManually=function(){var e=this.getLayer(ah).ctx,n=this._domRoot.width,r=this._domRoot.height;e.clearRect(0,0,n,r),this.eachBuiltinLayer(function(a){a.virtual&&e.drawImage(a.dom,0,0,n,r)})},t.prototype._doPaintList=function(e,n,r){for(var a=this,i=[],o=this._opts.useDirtyRect,s=0;s<this._zlevelList.length;s++){var l=this._zlevelList[s],u=this._layers[l];u.__builtin__&&u!==this._hoverlayer&&(u.__dirty||r)&&i.push(u)}for(var c=!0,f=!1,d=function(v){var g=i[v],y=g.ctx,m=o&&g.createRepaintRects(e,n,h._width,h._height),S=r?g.__startIndex:g.__drawIndex,w=!r&&g.incremental&&Date.now,C=w&&Date.now(),_=g.zlevel===h._zlevelList[0]?h._backgroundColor:null;if(g.__startIndex===g.__endIndex)g.clear(!1,_,m);else if(S===g.__startIndex){var x=e[S];(!x.incremental||!x.notClear||r)&&g.clear(!1,_,m)}S===-1&&(console.error("For some unknown reason. drawIndex is -1"),S=g.__startIndex);var T,M=function(L){var I={inHover:!1,allClipped:!1,prevEl:null,viewWidth:a._width,viewHeight:a._height};for(T=S;T<g.__endIndex;T++){var P=e[T];if(P.__inHover&&(f=!0),a._doPaintEl(P,g,o,L,I,T===g.__endIndex-1),w){var F=Date.now()-C;if(F>15)break}}I.prevElClipPaths&&y.restore()};if(m)if(m.length===0)T=g.__endIndex;else for(var E=h.dpr,A=0;A<m.length;++A){var k=m[A];y.save(),y.beginPath(),y.rect(k.x*E,k.y*E,k.width*E,k.height*E),y.clip(),M(k),y.restore()}else y.save(),M(),y.restore();g.__drawIndex=T,g.__drawIndex<g.__endIndex&&(c=!1)},h=this,p=0;p<i.length;p++)d(p);return Fn.wxa&&q(this._layers,function(v){v&&v.ctx&&v.ctx.draw&&v.ctx.draw()}),{finished:c,needsRefreshHover:f}},t.prototype._doPaintEl=function(e,n,r,a,i,o){var s=n.ctx;if(r){var l=e.getPaintRect();(!a||l&&l.intersect(a))&&(Wh(s,e,i,o),e.setPrevPaintRect(l))}else Wh(s,e,i,o)},t.prototype.getLayer=function(e,n){this._singleCanvas&&!this._needsManuallyCompositing&&(e=ah);var r=this._layers[e];return r||(r=new zA("zr_"+e,this,this.dpr),r.zlevel=e,r.__builtin__=!0,this._layerConfig[e]?hn(r,this._layerConfig[e],!0):this._layerConfig[e-fx]&&hn(r,this._layerConfig[e-fx],!0),n&&(r.virtual=n),this.insertLayer(e,r),r.initContext()),r},t.prototype.insertLayer=function(e,n){var r=this._layers,a=this._zlevelList,i=a.length,o=this._domRoot,s=null,l=-1;if(!r[e]&&$Et(n)){if(i>0&&e>a[0]){for(l=0;l<i-1&&!(a[l]<e&&a[l+1]>e);l++);s=r[a[l]]}if(a.splice(l+1,0,e),r[e]=n,!n.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(n.dom,u.nextSibling):o.appendChild(n.dom)}else o.firstChild?o.insertBefore(n.dom,o.firstChild):o.appendChild(n.dom);n.__painter=this}},t.prototype.eachLayer=function(e,n){for(var r=this._zlevelList,a=0;a<r.length;a++){var i=r[a];e.call(n,this._layers[i],i)}},t.prototype.eachBuiltinLayer=function(e,n){for(var r=this._zlevelList,a=0;a<r.length;a++){var i=r[a],o=this._layers[i];o.__builtin__&&e.call(n,o,i)}},t.prototype.eachOtherLayer=function(e,n){for(var r=this._zlevelList,a=0;a<r.length;a++){var i=r[a],o=this._layers[i];o.__builtin__||e.call(n,o,i)}},t.prototype.getLayers=function(){return this._layers},t.prototype._updateLayerStatus=function(e){this.eachBuiltinLayer(function(f,d){f.__dirty=f.__used=!1});function n(f){i&&(i.__endIndex!==f&&(i.__dirty=!0),i.__endIndex=f)}if(this._singleCanvas)for(var r=1;r<e.length;r++){var a=e[r];if(a.zlevel!==e[r-1].zlevel||a.incremental){this._needsManuallyCompositing=!0;break}}var i=null,o=0,s,l;for(l=0;l<e.length;l++){var a=e[l],u=a.zlevel,c=void 0;s!==u&&(s=u,o=0),a.incremental?(c=this.getLayer(u+BEt,this._needsManuallyCompositing),c.incremental=!0,o=1):c=this.getLayer(u+(o>0?fx:0),this._needsManuallyCompositing),c.__builtin__||QT("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,n(l),i=c),a.__dirty&Bo&&!a.__inHover&&(c.__dirty=!0,c.incremental&&c.__drawIndex<0&&(c.__drawIndex=l))}n(l),this.eachBuiltinLayer(function(f,d){!f.__used&&f.getElementCount()>0&&(f.__dirty=!0,f.__startIndex=f.__endIndex=f.__drawIndex=0),f.__dirty&&f.__drawIndex<0&&(f.__drawIndex=f.__startIndex)})},t.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},t.prototype._clearLayer=function(e){e.clear()},t.prototype.setBackgroundColor=function(e){this._backgroundColor=e,q(this._layers,function(n){n.setUnpainted()})},t.prototype.configLayer=function(e,n){if(n){var r=this._layerConfig;r[e]?hn(r[e],n,!0):r[e]=n;for(var a=0;a<this._zlevelList.length;a++){var i=this._zlevelList[a];if(i===e||i===e+fx){var o=this._layers[i];hn(o,r[e],!0)}}}},t.prototype.delLayer=function(e){var n=this._layers,r=this._zlevelList,a=n[e];a&&(a.dom.parentNode.removeChild(a.dom),delete n[e],r.splice(bn(r,e),1))},t.prototype.resize=function(e,n){if(this._domRoot.style){var r=this._domRoot;r.style.display="none";var a=this._opts,i=this.root;if(e!=null&&(a.width=e),n!=null&&(a.height=n),e=Qv(i,0,a),n=Qv(i,1,a),r.style.display="",this._width!==e||n!==this._height){r.style.width=e+"px",r.style.height=n+"px";for(var o in this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(e,n);this.refresh(!0)}this._width=e,this._height=n}else{if(e==null||n==null)return;this._width=e,this._height=n,this.getLayer(ah).resize(e,n)}return this},t.prototype.clearLayer=function(e){var n=this._layers[e];n&&n.clear()},t.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},t.prototype.getRenderedCanvas=function(e){if(e=e||{},this._singleCanvas&&!this._compositeManually)return this._layers[ah].dom;var n=new zA("image",this,e.pixelRatio||this.dpr);n.initContext(),n.clear(!1,e.backgroundColor||this._backgroundColor);var r=n.ctx;if(e.pixelRatio<=this.dpr){this.refresh();var a=n.dom.width,i=n.dom.height;this.eachLayer(function(f){f.__builtin__?r.drawImage(f.dom,0,0,a,i):f.renderToCanvas&&(r.save(),f.renderToCanvas(r),r.restore())})}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},s=this.storage.getDisplayList(!0),l=0,u=s.length;l<u;l++){var c=s[l];Wh(r,c,o,l===u-1)}return n.dom},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t}();const zEt=FEt;function UEt(t){t.registerPainter("canvas",zEt)}var GEt=function(t){Fe(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return e.prototype.getInitialData=function(n){return Tu(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(n){var r=new en,a=ba("line",0,n.itemHeight/2,n.itemWidth,0,n.lineStyle.stroke,!1);r.add(a),a.setStyle(n.lineStyle);var i=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=i==="none"?"circle":i,l=n.itemHeight*.8,u=ba(s,(n.itemWidth-l)/2,(n.itemHeight-l)/2,l,l,n.itemStyle.fill);r.add(u),u.setStyle(n.itemStyle);var c=n.iconRotate==="inherit"?o:n.iconRotate||0;return u.rotation=c*Math.PI/180,u.setOrigin([n.itemWidth/2,n.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),r},e.type="series.line",e.dependencies=["grid","polar"],e.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},e}(Vr);const HEt=GEt;function i0(t,e){var n=t.mapDimensionsAll("defaultedLabel"),r=n.length;if(r===1){var a=r0(t,e,n[0]);return a!=null?a+"":null}else if(r){for(var i=[],o=0;o<n.length;o++)i.push(r0(t,e,n[o]));return i.join(" ")}}function Zle(t,e){var n=t.mapDimensionsAll("defaultedLabel");if(!st(e))return e+"";for(var r=[],a=0;a<n.length;a++){var i=t.getDimensionIndex(n[a]);i>=0&&r.push(e[i])}return r.join(" ")}var WEt=function(t){Fe(e,t);function e(n,r,a,i){var o=t.call(this)||this;return o.updateData(n,r,a,i),o}return e.prototype._createSymbol=function(n,r,a,i,o){this.removeAll();var s=ba(n,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),s.drift=jEt,this._symbolType=n,this.add(s)},e.prototype.stopSymbolAnimation=function(n){this.childAt(0).stopAnimation(null,n)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){dc(this.childAt(0))},e.prototype.downplay=function(){hc(this.childAt(0))},e.prototype.setZ=function(n,r){var a=this.childAt(0);a.zlevel=n,a.z=r},e.prototype.setDraggable=function(n,r){var a=this.childAt(0);a.draggable=n,a.cursor=!r&&n?"move":a.cursor},e.prototype.updateData=function(n,r,a,i){this.silent=!1;var o=n.getItemVisual(r,"symbol")||"circle",s=n.hostModel,l=e.getSymbolSize(n,r),u=o!==this._symbolType,c=i&&i.disableAnimation;if(u){var f=n.getItemVisual(r,"symbolKeepAspect");this._createSymbol(o,n,r,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):jn(d,h,s,r),xl(d)}if(this._updateCommon(n,r,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,Ur(d,h,s,r)}}c&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(n,r,a,i,o){var s=this.childAt(0),l=n.hostModel,u,c,f,d,h,p,v,g,y;if(i&&(u=i.emphasisItemStyle,c=i.blurItemStyle,f=i.selectItemStyle,d=i.focus,h=i.blurScope,v=i.labelStatesModels,g=i.hoverScale,y=i.cursorStyle,p=i.emphasisDisabled),!i||n.hasItemOption){var m=i&&i.itemModel?i.itemModel:n.getItemModel(r),S=m.getModel("emphasis");u=S.getModel("itemStyle").getItemStyle(),f=m.getModel(["select","itemStyle"]).getItemStyle(),c=m.getModel(["blur","itemStyle"]).getItemStyle(),d=S.get("focus"),h=S.get("blurScope"),p=S.get("disabled"),v=Ka(m),g=S.getShallow("scale"),y=m.getShallow("cursor")}var w=n.getItemVisual(r,"symbolRotate");s.attr("rotation",(w||0)*Math.PI/180||0);var C=zp(n.getItemVisual(r,"symbolOffset"),a);C&&(s.x=C[0],s.y=C[1]),y&&s.attr("cursor",y);var _=n.getItemVisual(r,"style"),x=_.fill;if(s instanceof si){var T=s.style;s.useStyle(et({image:T.image,x:T.x,y:T.y,width:T.width,height:T.height},_))}else s.__isEmptyBrush?s.useStyle(et({},_)):s.useStyle(_),s.style.decal=null,s.setColor(x,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var M=n.getItemVisual(r,"liftZ"),E=this._z2;M!=null?E==null&&(this._z2=s.z2,s.z2+=M):E!=null&&(s.z2=E,this._z2=null);var A=o&&o.useNameLabel;Si(s,v,{labelFetcher:l,labelDataIndex:r,defaultText:k,inheritColor:x,defaultOpacity:_.opacity});function k(P){return A?n.getName(P):i0(n,P)}this._sizeX=a[0]/2,this._sizeY=a[1]/2;var L=s.ensureState("emphasis");L.style=u,s.ensureState("select").style=f,s.ensureState("blur").style=c;var I=g==null||g===!0?Math.max(1.1,3/this._sizeY):isFinite(g)&&g>0?+g:1;L.scaleX=this._sizeX*I,L.scaleY=this._sizeY*I,this.setSymbolScale(1),ua(this,d,h,p)},e.prototype.setSymbolScale=function(n){this.scaleX=this.scaleY=n},e.prototype.fadeOut=function(n,r,a){var i=this.childAt(0),o=ln(this).dataIndex,s=a&&a.animation;if(this.silent=i.silent=!0,a&&a.fadeLabel){var l=i.getTextContent();l&&qf(l,{style:{opacity:0}},r,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();qf(i,{style:{opacity:0},scaleX:0,scaleY:0},r,{dataIndex:o,cb:n,removeOpt:s})},e.getSymbolSize=function(n,r){return U0(n.getItemVisual(r,"symbolSize"))},e}(en);function jEt(t,e){this.parent.drift(t,e)}const hS=WEt;function UA(t,e,n,r){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(r.isIgnore&&r.isIgnore(n))&&!(r.clipShape&&!r.clipShape.contain(e[0],e[1]))&&t.getItemVisual(n,"symbol")!=="none"}function mH(t){return t!=null&&!qt(t)&&(t={isIgnore:t}),t||{}}function bH(t){var e=t.hostModel,n=e.getModel("emphasis");return{emphasisItemStyle:n.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:n.get("focus"),blurScope:n.get("blurScope"),emphasisDisabled:n.get("disabled"),hoverScale:n.get("scale"),labelStatesModels:Ka(e),cursorStyle:e.get("cursor")}}var KEt=function(){function t(e){this.group=new en,this._SymbolCtor=e||hS}return t.prototype.updateData=function(e,n){this._progressiveEls=null,n=mH(n);var r=this.group,a=e.hostModel,i=this._data,o=this._SymbolCtor,s=n.disableAnimation,l=bH(e),u={disableAnimation:s},c=n.getSymbolPoint||function(f){return e.getItemLayout(f)};i||r.removeAll(),e.diff(i).add(function(f){var d=c(f);if(UA(e,d,f,n)){var h=new o(e,f,l,u);h.setPosition(d),e.setItemGraphicEl(f,h),r.add(h)}}).update(function(f,d){var h=i.getItemGraphicEl(d),p=c(f);if(!UA(e,p,f,n)){r.remove(h);return}var v=e.getItemVisual(f,"symbol")||"circle",g=h&&h.getSymbolType&&h.getSymbolType();if(!h||g&&g!==v)r.remove(h),h=new o(e,f,l,u),h.setPosition(p);else{h.updateData(e,f,l,u);var y={x:p[0],y:p[1]};s?h.attr(y):jn(h,y,a)}r.add(h),e.setItemGraphicEl(f,h)}).remove(function(f){var d=i.getItemGraphicEl(f);d&&d.fadeOut(function(){r.remove(d)},a)}).execute(),this._getSymbolPoint=c,this._data=e},t.prototype.updateLayout=function(){var e=this,n=this._data;n&&n.eachItemGraphicEl(function(r,a){var i=e._getSymbolPoint(a);r.setPosition(i),r.markRedraw()})},t.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=bH(e),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(e,n,r){this._progressiveEls=[],r=mH(r);function a(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var i=e.start;i<e.end;i++){var o=n.getItemLayout(i);if(UA(n,o,i,r)){var s=new this._SymbolCtor(n,i,this._seriesScope);s.traverse(a),s.setPosition(o),this.group.add(s),n.setItemGraphicEl(i,s),this._progressiveEls.push(s)}}},t.prototype.eachRendered=function(e){dd(this._progressiveEls||this.group,e)},t.prototype.remove=function(e){var n=this.group,r=this._data;r&&e?r.eachItemGraphicEl(function(a){a.fadeOut(function(){n.remove(a)},r.hostModel)}):n.removeAll()},t}();const pS=KEt;function Qle(t,e,n){var r=t.getBaseAxis(),a=t.getOtherAxis(r),i=YEt(a,n),o=r.dim,s=a.dim,l=e.mapDimension(s),u=e.mapDimension(o),c=s==="x"||s==="radius"?1:0,f=ut(t.dimensions,function(p){return e.mapDimension(p)}),d=!1,h=e.getCalculationInfo("stackResultDimension");return vc(e,f[0])&&(d=!0,f[0]=h),vc(e,f[1])&&(d=!0,f[1]=h),{dataDimsForPoint:f,valueStart:i,valueAxisDim:s,baseAxisDim:o,stacked:!!d,valueDim:l,baseDim:u,baseDataOffset:c,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function YEt(t,e){var n=0,r=t.scale.getExtent();return e==="start"?n=r[0]:e==="end"?n=r[1]:Un(e)&&!isNaN(e)?n=e:r[0]>0?n=r[0]:r[1]<0&&(n=r[1]),n}function Jle(t,e,n,r){var a=NaN;t.stacked&&(a=n.get(n.getCalculationInfo("stackedOverDimension"),r)),isNaN(a)&&(a=t.valueStart);var i=t.baseDataOffset,o=[];return o[i]=n.get(t.baseDim,r),o[1-i]=a,e.dataToPoint(o)}function XEt(t,e){var n=[];return e.diff(t).add(function(r){n.push({cmd:"+",idx:r})}).update(function(r,a){n.push({cmd:"=",idx:a,idx1:r})}).remove(function(r){n.push({cmd:"-",idx:r})}).execute(),n}function qEt(t,e,n,r,a,i,o,s){for(var l=XEt(t,e),u=[],c=[],f=[],d=[],h=[],p=[],v=[],g=Qle(a,e,o),y=t.getLayout("points")||[],m=e.getLayout("points")||[],S=0;S<l.length;S++){var w=l[S],C=!0,_=void 0,x=void 0;switch(w.cmd){case"=":_=w.idx*2,x=w.idx1*2;var T=y[_],M=y[_+1],E=m[x],A=m[x+1];(isNaN(T)||isNaN(M))&&(T=E,M=A),u.push(T,M),c.push(E,A),f.push(n[_],n[_+1]),d.push(r[x],r[x+1]),v.push(e.getRawIndex(w.idx1));break;case"+":var k=w.idx,L=g.dataDimsForPoint,I=a.dataToPoint([e.get(L[0],k),e.get(L[1],k)]);x=k*2,u.push(I[0],I[1]),c.push(m[x],m[x+1]);var P=Jle(g,a,e,k);f.push(P[0],P[1]),d.push(r[x],r[x+1]),v.push(e.getRawIndex(k));break;case"-":C=!1}C&&(h.push(w),p.push(p.length))}p.sort(function(ie,Q){return v[ie]-v[Q]});for(var F=u.length,$=tu(F),W=tu(F),V=tu(F),z=tu(F),K=[],S=0;S<p.length;S++){var Z=p[S],oe=S*2,ge=Z*2;$[oe]=u[ge],$[oe+1]=u[ge+1],W[oe]=c[ge],W[oe+1]=c[ge+1],V[oe]=f[ge],V[oe+1]=f[ge+1],z[oe]=d[ge],z[oe+1]=d[ge+1],K[S]=h[Z]}return{current:$,next:W,stackedOnCurrent:V,stackedOnNext:z,status:K}}var Yc=Math.min,Xc=Math.max;function lp(t,e){return isNaN(t)||isNaN(e)}function n3(t,e,n,r,a,i,o,s,l){for(var u,c,f,d,h,p,v=n,g=0;g<r;g++){var y=e[v*2],m=e[v*2+1];if(v>=a||v<0)break;if(lp(y,m)){if(l){v+=i;continue}break}if(v===n)t[i>0?"moveTo":"lineTo"](y,m),f=y,d=m;else{var S=y-u,w=m-c;if(S*S+w*w<.5){v+=i;continue}if(o>0){for(var C=v+i,_=e[C*2],x=e[C*2+1];_===y&&x===m&&g<r;)g++,C+=i,v+=i,_=e[C*2],x=e[C*2+1],y=e[v*2],m=e[v*2+1],S=y-u,w=m-c;var T=g+1;if(l)for(;lp(_,x)&&T<r;)T++,C+=i,_=e[C*2],x=e[C*2+1];var M=.5,E=0,A=0,k=void 0,L=void 0;if(T>=r||lp(_,x))h=y,p=m;else{E=_-u,A=x-c;var I=y-u,P=_-y,F=m-c,$=x-m,W=void 0,V=void 0;if(s==="x"){W=Math.abs(I),V=Math.abs(P);var z=E>0?1:-1;h=y-z*W*o,p=m,k=y+z*V*o,L=m}else if(s==="y"){W=Math.abs(F),V=Math.abs($);var K=A>0?1:-1;h=y,p=m-K*W*o,k=y,L=m+K*V*o}else W=Math.sqrt(I*I+F*F),V=Math.sqrt(P*P+$*$),M=V/(V+W),h=y-E*o*(1-M),p=m-A*o*(1-M),k=y+E*o*M,L=m+A*o*M,k=Yc(k,Xc(_,y)),L=Yc(L,Xc(x,m)),k=Xc(k,Yc(_,y)),L=Xc(L,Yc(x,m)),E=k-y,A=L-m,h=y-E*W/V,p=m-A*W/V,h=Yc(h,Xc(u,y)),p=Yc(p,Xc(c,m)),h=Xc(h,Yc(u,y)),p=Xc(p,Yc(c,m)),E=y-h,A=m-p,k=y+E*V/W,L=m+A*V/W}t.bezierCurveTo(f,d,h,p,y,m),f=k,d=L}else t.lineTo(y,m)}u=y,c=m,v+=i}return g}var eue=function(){function t(){this.smooth=0,this.smoothConstraint=!0}return t}(),ZEt=function(t){Fe(e,t);function e(n){var r=t.call(this,n)||this;return r.type="ec-polyline",r}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new eue},e.prototype.buildPath=function(n,r){var a=r.points,i=0,o=a.length/2;if(r.connectNulls){for(;o>0&&lp(a[o*2-2],a[o*2-1]);o--);for(;i<o&&lp(a[i*2],a[i*2+1]);i++);}for(;i<o;)i+=n3(n,a,i,o,o,1,r.smooth,r.smoothMonotone,r.connectNulls)+1},e.prototype.getPointOn=function(n,r){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var a=this.path,i=a.data,o=mu.CMD,s,l,u=r==="x",c=[],f=0;f<i.length;){var d=i[f++],h=void 0,p=void 0,v=void 0,g=void 0,y=void 0,m=void 0,S=void 0;switch(d){case o.M:s=i[f++],l=i[f++];break;case o.L:if(h=i[f++],p=i[f++],S=u?(n-s)/(h-s):(n-l)/(p-l),S<=1&&S>=0){var w=u?(p-l)*S+l:(h-s)*S+s;return u?[n,w]:[w,n]}s=h,l=p;break;case o.C:h=i[f++],p=i[f++],v=i[f++],g=i[f++],y=i[f++],m=i[f++];var C=u?q2(s,h,v,y,n,c):q2(l,p,g,m,n,c);if(C>0)for(var _=0;_<C;_++){var x=c[_];if(x<=1&&x>=0){var w=u?za(l,p,g,m,x):za(s,h,v,y,x);return u?[n,w]:[w,n]}}s=y,l=m;break}}},e}(Cn),QEt=function(t){Fe(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(eue),tue=function(t){Fe(e,t);function e(n){var r=t.call(this,n)||this;return r.type="ec-polygon",r}return e.prototype.getDefaultShape=function(){return new QEt},e.prototype.buildPath=function(n,r){var a=r.points,i=r.stackedOnPoints,o=0,s=a.length/2,l=r.smoothMonotone;if(r.connectNulls){for(;s>0&&lp(a[s*2-2],a[s*2-1]);s--);for(;o<s&&lp(a[o*2],a[o*2+1]);o++);}for(;o<s;){var u=n3(n,a,o,s,s,1,r.smooth,l,r.connectNulls);n3(n,i,o+u-1,u,s,-1,r.stackedOnSmooth,l,r.connectNulls),o+=u+1,n.closePath()}},e}(Cn);function nue(t,e,n,r,a){var i=t.getArea(),o=i.x,s=i.y,l=i.width,u=i.height,c=n.get(["lineStyle","width"])||2;o-=c/2,s-=c/2,l+=c,u+=c,o=Math.floor(o),l=Math.round(l);var f=new $n({shape:{x:o,y:s,width:l,height:u}});if(e){var d=t.getBaseAxis(),h=d.isHorizontal(),p=d.inverse;h?(p&&(f.shape.x+=l),f.shape.width=0):(p||(f.shape.y+=u),f.shape.height=0);var v=jt(a)?function(g){a(g,f)}:null;Ur(f,{shape:{width:l,height:u,x:o,y:s}},n,null,r,v)}return f}function rue(t,e,n){var r=t.getArea(),a=sa(r.r0,1),i=sa(r.r,1),o=new so({shape:{cx:sa(t.cx,1),cy:sa(t.cy,1),r0:a,r:i,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}});if(e){var s=t.getBaseAxis().dim==="angle";s?o.shape.endAngle=r.startAngle:o.shape.r=a,Ur(o,{shape:{endAngle:r.endAngle,r:i}},n)}return o}function VE(t,e,n,r,a){if(t){if(t.type==="polar")return rue(t,e,n);if(t.type==="cartesian2d")return nue(t,e,n,r,a)}else return null;return null}function Up(t,e){return t.type===e}function SH(t,e){if(t.length===e.length){for(var n=0;n<t.length;n++)if(t[n]!==e[n])return;return!0}}function wH(t){for(var e=1/0,n=1/0,r=-1/0,a=-1/0,i=0;i<t.length;){var o=t[i++],s=t[i++];isNaN(o)||(e=Math.min(o,e),r=Math.max(o,r)),isNaN(s)||(n=Math.min(s,n),a=Math.max(s,a))}return[[e,n],[r,a]]}function xH(t,e){var n=wH(t),r=n[0],a=n[1],i=wH(e),o=i[0],s=i[1];return Math.max(Math.abs(r[0]-o[0]),Math.abs(r[1]-o[1]),Math.abs(a[0]-s[0]),Math.abs(a[1]-s[1]))}function _H(t){return Un(t)?t:t?.5:0}function JEt(t,e,n){if(!n.valueDim)return[];for(var r=e.count(),a=tu(r*2),i=0;i<r;i++){var o=Jle(n,t,e,i);a[i*2]=o[0],a[i*2+1]=o[1]}return a}function qc(t,e,n,r){var a=e.getBaseAxis(),i=a.dim==="x"||a.dim==="radius"?0:1,o=[],s=0,l=[],u=[],c=[],f=[];if(r){for(s=0;s<t.length;s+=2)!isNaN(t[s])&&!isNaN(t[s+1])&&f.push(t[s],t[s+1]);t=f}for(s=0;s<t.length-2;s+=2)switch(c[0]=t[s+2],c[1]=t[s+3],u[0]=t[s],u[1]=t[s+1],o.push(u[0],u[1]),n){case"end":l[i]=c[i],l[1-i]=u[1-i],o.push(l[0],l[1]);break;case"middle":var d=(u[i]+c[i])/2,h=[];l[i]=h[i]=d,l[1-i]=u[1-i],h[1-i]=c[1-i],o.push(l[0],l[1]),o.push(h[0],h[1]);break;default:l[i]=u[i],l[1-i]=c[1-i],o.push(l[0],l[1])}return o.push(t[s++],t[s++]),o}function eMt(t,e){var n=[],r=t.length,a,i;function o(c,f,d){var h=c.coord,p=(d-h)/(f.coord-h),v=iI(p,[c.color,f.color]);return{coord:d,color:v}}for(var s=0;s<r;s++){var l=t[s],u=l.coord;if(u<0)a=l;else if(u>e){i?n.push(o(i,l,e)):a&&n.push(o(a,l,0),o(a,l,e));break}else a&&(n.push(o(a,l,0)),a=null),n.push(l),i=l}return n}function tMt(t,e,n){var r=t.getVisual("visualMeta");if(!(!r||!r.length||!t.count())&&e.type==="cartesian2d"){for(var a,i,o=r.length-1;o>=0;o--){var s=t.getDimensionInfo(r[o].dimension);if(a=s&&s.coordDim,a==="x"||a==="y"){i=r[o];break}}if(i){var l=e.getAxis(a),u=ut(i.stops,function(S){return{coord:l.toGlobalCoord(l.dataToCoord(S.value)),color:S.color}}),c=u.length,f=i.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),f.reverse());var d=eMt(u,a==="x"?n.getWidth():n.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 p=10,v=d[0].coord-p,g=d[h-1].coord+p,y=g-v;if(y<.001)return"transparent";q(d,function(S){S.offset=(S.coord-v)/y}),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 m=new k0(0,0,0,0,d,!0);return m[a]=v,m[a+"2"]=g,m}}}function nMt(t,e,n){var r=t.get("showAllSymbol"),a=r==="auto";if(!(r&&!a)){var i=n.getAxesByScale("ordinal")[0];if(i&&!(a&&rMt(i,e))){var o=e.mapDimension(i.dim),s={};return q(i.getViewLabels(),function(l){var u=i.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(e.get(o,l))}}}}function rMt(t,e){var n=t.getExtent(),r=Math.abs(n[1]-n[0])/t.scale.count();isNaN(r)&&(r=0);for(var a=e.count(),i=Math.max(1,Math.round(a/5)),o=0;o<a;o+=i)if(hS.getSymbolSize(e,o)[t.isHorizontal()?1:0]*1.5>r)return!1;return!0}function aMt(t,e){return isNaN(t)||isNaN(e)}function iMt(t){for(var e=t.length/2;e>0&&aMt(t[e*2-2],t[e*2-1]);e--);return e-1}function CH(t,e){return[t[e*2],t[e*2+1]]}function oMt(t,e,n){for(var r=t.length/2,a=n==="x"?0:1,i,o,s=0,l=-1,u=0;u<r;u++)if(o=t[u*2+a],!(isNaN(o)||isNaN(t[u*2+1-a]))){if(u===0){i=o;continue}if(i<=e&&o>=e||i>=e&&o<=e){l=u;break}s=u,i=o}return{range:[s,l],t:(e-i)/(o-i)}}function aue(t){if(t.get(["endLabel","show"]))return!0;for(var e=0;e<oo.length;e++)if(t.get([oo[e],"endLabel","show"]))return!0;return!1}function GA(t,e,n,r){if(Up(e,"cartesian2d")){var a=r.getModel("endLabel"),i=a.get("valueAnimation"),o=r.getData(),s={lastFrameIndex:0},l=aue(r)?function(h,p){t._endLabelOnDuring(h,p,o,s,i,a,e)}:null,u=e.getBaseAxis().isHorizontal(),c=nue(e,n,r,function(){var h=t._endLabel;h&&n&&s.originalX!=null&&h.attr({x:s.originalX,y:s.originalY})},l);if(!r.get("clip",!0)){var f=c.shape,d=Math.max(f.width,f.height);u?(f.y-=d,f.height+=d*2):(f.x-=d,f.width+=d*2)}return l&&l(1,c),c}else return rue(e,n,r)}function sMt(t,e){var n=e.getBaseAxis(),r=n.isHorizontal(),a=n.inverse,i=r?a?"right":"left":"center",o=r?"middle":a?"top":"bottom";return{normal:{align:t.get("align")||i,verticalAlign:t.get("verticalAlign")||o}}}var lMt=function(t){Fe(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(){var n=new en,r=new pS;this.group.add(r.group),this._symbolDraw=r,this._lineGroup=n},e.prototype.render=function(n,r,a){var i=this,o=n.coordinateSystem,s=this.group,l=n.getData(),u=n.getModel("lineStyle"),c=n.getModel("areaStyle"),f=l.getLayout("points")||[],d=o.type==="polar",h=this._coordSys,p=this._symbolDraw,v=this._polyline,g=this._polygon,y=this._lineGroup,m=!r.ssr&&n.isAnimationEnabled(),S=!c.isEmpty(),w=c.get("origin"),C=Qle(o,l,w),_=S&&JEt(o,l,C),x=n.get("showSymbol"),T=n.get("connectNulls"),M=x&&!d&&nMt(n,l,o),E=this._data;E&&E.eachItemGraphicEl(function(Q,ce){Q.__temp&&(s.remove(Q),E.setItemGraphicEl(ce,null))}),x||p.remove(),s.add(y);var A=d?!1:n.get("step"),k;o&&o.getArea&&n.get("clip",!0)&&(k=o.getArea(),k.width!=null?(k.x-=.1,k.y-=.1,k.width+=.2,k.height+=.2):k.r0&&(k.r0-=.5,k.r+=.5)),this._clipShapeForSymbol=k;var L=tMt(l,o,a)||l.getVisual("style")[l.getVisual("drawType")];if(!(v&&h.type===o.type&&A===this._step))x&&p.updateData(l,{isIgnore:M,clipShape:k,disableAnimation:!0,getSymbolPoint:function(Q){return[f[Q*2],f[Q*2+1]]}}),m&&this._initSymbolLabelAnimation(l,o,k),A&&(f=qc(f,o,A,T),_&&(_=qc(_,o,A,T))),v=this._newPolyline(f),S?g=this._newPolygon(f,_):g&&(y.remove(g),g=this._polygon=null),d||this._initOrUpdateEndLabel(n,o,Cp(L)),y.setClipPath(GA(this,o,!0,n));else{S&&!g?g=this._newPolygon(f,_):g&&!S&&(y.remove(g),g=this._polygon=null),d||this._initOrUpdateEndLabel(n,o,Cp(L));var I=y.getClipPath();if(I){var P=GA(this,o,!1,n);Ur(I,{shape:P.shape},n)}else y.setClipPath(GA(this,o,!0,n));x&&p.updateData(l,{isIgnore:M,clipShape:k,disableAnimation:!0,getSymbolPoint:function(Q){return[f[Q*2],f[Q*2+1]]}}),(!SH(this._stackedOnPoints,_)||!SH(this._points,f))&&(m?this._doUpdateAnimation(l,_,o,a,A,w,T):(A&&(f=qc(f,o,A,T),_&&(_=qc(_,o,A,T))),v.setShape({points:f}),g&&g.setShape({points:f,stackedOnPoints:_})))}var F=n.getModel("emphasis"),$=F.get("focus"),W=F.get("blurScope"),V=F.get("disabled");if(v.useStyle(Xt(u.getLineStyle(),{fill:"none",stroke:L,lineJoin:"bevel"})),bi(v,n,"lineStyle"),v.style.lineWidth>0&&n.get(["emphasis","lineStyle","width"])==="bolder"){var z=v.getState("emphasis").style;z.lineWidth=+v.style.lineWidth+1}ln(v).seriesIndex=n.seriesIndex,ua(v,$,W,V);var K=_H(n.get("smooth")),Z=n.get("smoothMonotone");if(v.setShape({smooth:K,smoothMonotone:Z,connectNulls:T}),g){var oe=l.getCalculationInfo("stackedOnSeries"),ge=0;g.useStyle(Xt(c.getAreaStyle(),{fill:L,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),oe&&(ge=_H(oe.get("smooth"))),g.setShape({smooth:K,stackedOnSmooth:ge,smoothMonotone:Z,connectNulls:T}),bi(g,n,"areaStyle"),ln(g).seriesIndex=n.seriesIndex,ua(g,$,W,V)}var ie=function(Q){i._changePolyState(Q)};l.eachItemGraphicEl(function(Q){Q&&(Q.onHoverStateChange=ie)}),this._polyline.onHoverStateChange=ie,this._data=l,this._coordSys=o,this._stackedOnPoints=_,this._points=f,this._step=A,this._valueOrigin=w,n.get("triggerLineEvent")&&(this.packEventData(n,v),g&&this.packEventData(n,g))},e.prototype.packEventData=function(n,r){ln(r).eventData={componentType:"series",componentSubType:"line",componentIndex:n.componentIndex,seriesIndex:n.seriesIndex,seriesName:n.name,seriesType:"line"}},e.prototype.highlight=function(n,r,a,i){var o=n.getData(),s=wp(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=n.get("zlevel")||0,h=n.get("z")||0;u=new hS(o,s),u.x=c,u.y=f,u.setZ(d,h);var p=u.getSymbolPath().getTextContent();p&&(p.zlevel=d,p.z=h,p.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else br.prototype.highlight.call(this,n,r,a,i)},e.prototype.downplay=function(n,r,a,i){var o=n.getData(),s=wp(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 br.prototype.downplay.call(this,n,r,a,i)},e.prototype._changePolyState=function(n){var r=this._polygon;nC(this._polyline,n),r&&nC(r,n)},e.prototype._newPolyline=function(n){var r=this._polyline;return r&&this._lineGroup.remove(r),r=new ZEt({shape:{points:n},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(r),this._polyline=r,r},e.prototype._newPolygon=function(n,r){var a=this._polygon;return a&&this._lineGroup.remove(a),a=new tue({shape:{points:n,stackedOnPoints:r},segmentIgnoreThreshold:2}),this._lineGroup.add(a),this._polygon=a,a},e.prototype._initSymbolLabelAnimation=function(n,r,a){var i,o,s=r.getBaseAxis(),l=s.inverse;r.type==="cartesian2d"?(i=s.isHorizontal(),o=!1):r.type==="polar"&&(i=s.dim==="angle",o=!0);var u=n.hostModel,c=u.get("animationDuration");jt(c)&&(c=c(null));var f=u.get("animationDelay")||0,d=jt(f)?f(null):f;n.eachItemGraphicEl(function(h,p){var v=h;if(v){var g=[h.x,h.y],y=void 0,m=void 0,S=void 0;if(a)if(o){var w=a,C=r.pointToCoord(g);i?(y=w.startAngle,m=w.endAngle,S=-C[1]/180*Math.PI):(y=w.r0,m=w.r,S=C[0])}else{var _=a;i?(y=_.x,m=_.x+_.width,S=h.x):(y=_.y+_.height,m=_.y,S=h.y)}var x=m===y?0:(S-y)/(m-y);l&&(x=1-x);var T=jt(f)?f(p):c*x+d,M=v.getSymbolPath(),E=M.getTextContent();v.attr({scaleX:0,scaleY:0}),v.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:T}),E&&E.animateFrom({style:{opacity:0}},{duration:300,delay:T}),M.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(n,r,a){var i=n.getModel("endLabel");if(aue(n)){var o=n.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 Bn({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var c=iMt(l);c>=0&&(Si(s,Ka(n,"endLabel"),{inheritColor:a,labelFetcher:n,labelDataIndex:c,defaultText:function(f,d,h){return h!=null?Zle(o,h):i0(o,f)},enableTextSetter:!0},sMt(i,r)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(n,r,a,i,o,s,l){var u=this._endLabel,c=this._polyline;if(u){n<1&&i.originalX==null&&(i.originalX=u.x,i.originalY=u.y);var f=a.getLayout("points"),d=a.hostModel,h=d.get("connectNulls"),p=s.get("precision"),v=s.get("distance")||0,g=l.getBaseAxis(),y=g.isHorizontal(),m=g.inverse,S=r.shape,w=m?y?S.x:S.y+S.height:y?S.x+S.width:S.y,C=(y?v:0)*(m?-1:1),_=(y?0:-v)*(m?-1:1),x=y?"x":"y",T=oMt(f,w,x),M=T.range,E=M[1]-M[0],A=void 0;if(E>=1){if(E>1&&!h){var k=CH(f,M[0]);u.attr({x:k[0]+C,y:k[1]+_}),o&&(A=d.getRawValue(M[0]))}else{var k=c.getPointOn(w,x);k&&u.attr({x:k[0]+C,y:k[1]+_});var L=d.getRawValue(M[0]),I=d.getRawValue(M[1]);o&&(A=xie(a,p,L,I,T.t))}i.lastFrameIndex=M[0]}else{var P=n===1||i.lastFrameIndex>0?M[0]:0,k=CH(f,P);o&&(A=d.getRawValue(P)),u.attr({x:k[0]+C,y:k[1]+_})}if(o){var F=V0(u);typeof F.setLabelText=="function"&&F.setLabelText(A)}}},e.prototype._doUpdateAnimation=function(n,r,a,i,o,s,l){var u=this._polyline,c=this._polygon,f=n.hostModel,d=qEt(this._data,n,this._stackedOnPoints,r,this._coordSys,a,this._valueOrigin),h=d.current,p=d.stackedOnCurrent,v=d.next,g=d.stackedOnNext;if(o&&(h=qc(d.current,a,o,l),p=qc(d.stackedOnCurrent,a,o,l),v=qc(d.next,a,o,l),g=qc(d.stackedOnNext,a,o,l)),xH(h,v)>3e3||c&&xH(p,g)>3e3){u.stopAnimation(),u.setShape({points:v}),c&&(c.stopAnimation(),c.setShape({points:v,stackedOnPoints:g}));return}u.shape.__points=d.current,u.shape.points=h;var y={shape:{points:v}};d.current!==h&&(y.shape.__points=d.next),u.stopAnimation(),jn(u,y,f),c&&(c.setShape({points:h,stackedOnPoints:p}),c.stopAnimation(),jn(c,{shape:{stackedOnPoints:g}},f),u.shape.points!==c.shape.points&&(c.shape.points=u.shape.points));for(var m=[],S=d.status,w=0;w<S.length;w++){var C=S[w].cmd;if(C==="="){var _=n.getItemGraphicEl(S[w].idx1);_&&m.push({el:_,ptIdx:w})}}u.animators&&u.animators.length&&u.animators[0].during(function(){c&&c.dirtyShape();for(var x=u.shape.__points,T=0;T<m.length;T++){var M=m[T].el,E=m[T].ptIdx*2;M.x=x[E],M.y=x[E+1],M.markRedraw()}})},e.prototype.remove=function(n){var r=this.group,a=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),a&&a.eachItemGraphicEl(function(i,o){i.__temp&&(r.remove(i),a.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},e.type="line",e}(br);const uMt=lMt;function vS(t,e){return{seriesType:t,plan:F0(),reset:function(n){var r=n.getData(),a=n.coordinateSystem,i=n.pipelineContext,o=e||i.large;if(a){var s=ut(a.dimensions,function(h){return r.mapDimension(h)}).slice(0,2),l=s.length,u=r.getCalculationInfo("stackResultDimension");vc(r,s[0])&&(s[0]=u),vc(r,s[1])&&(s[1]=u);var c=r.getStore(),f=r.getDimensionIndex(s[0]),d=r.getDimensionIndex(s[1]);return l&&{progress:function(h,p){for(var v=h.end-h.start,g=o&&tu(v*l),y=[],m=[],S=h.start,w=0;S<h.end;S++){var C=void 0;if(l===1){var _=c.get(f,S);C=a.dataToPoint(_,null,m)}else y[0]=c.get(f,S),y[1]=c.get(d,S),C=a.dataToPoint(y,null,m);o?(g[w++]=C[0],g[w++]=C[1]):p.setItemLayout(S,C.slice())}o&&p.setLayout("points",g)}}}}}}var cMt={average:function(t){for(var e=0,n=0,r=0;r<t.length;r++)isNaN(t[r])||(e+=t[r],n++);return n===0?NaN:e/n},sum:function(t){for(var e=0,n=0;n<t.length;n++)e+=t[n]||0;return e},max:function(t){for(var e=-1/0,n=0;n<t.length;n++)t[n]>e&&(e=t[n]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,n=0;n<t.length;n++)t[n]<e&&(e=t[n]);return isFinite(e)?e:NaN},nearest:function(t){return t[0]}},fMt=function(t){return Math.round(t.length/2)};function iue(t){return{seriesType:t,reset:function(e,n,r){var a=e.getData(),i=e.get("sampling"),o=e.coordinateSystem,s=a.count();if(s>10&&o.type==="cartesian2d"&&i){var l=o.getBaseAxis(),u=o.getOtherAxis(l),c=l.getExtent(),f=r.getDevicePixelRatio(),d=Math.abs(c[1]-c[0])*(f||1),h=Math.round(s/d);if(isFinite(h)&&h>1){i==="lttb"&&e.setData(a.lttbDownSample(a.mapDimension(u.dim),1/h));var p=void 0;Ot(i)?p=cMt[i]:jt(i)&&(p=i),p&&e.setData(a.downSample(a.mapDimension(u.dim),1/h,p,fMt))}}}}}function dMt(t){t.registerChartView(uMt),t.registerSeriesModel(HEt),t.registerLayout(vS("line",!0)),t.registerVisual({seriesType:"line",reset:function(e){var n=e.getData(),r=e.getModel("lineStyle").getLineStyle();r&&!r.stroke&&(r.stroke=n.getVisual("style").fill),n.setVisual("legendLineStyle",r)}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,iue("line"))}var oue=function(t){Fe(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.getInitialData=function(n,r){return Tu(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(n,r,a){var i=this.coordinateSystem;if(i&&i.clampData){var o=i.clampData(n),s=i.dataToPoint(o);if(a)q(i.getAxes(),function(d,h){if(d.type==="category"&&r!=null){var p=d.getTicksCoords(),v=o[h],g=r[h]==="x1"||r[h]==="y1";if(g&&(v+=1),p.length<2)return;if(p.length===2){s[h]=d.toGlobalCoord(d.getExtent()[g?1:0]);return}for(var y=void 0,m=void 0,S=1,w=0;w<p.length;w++){var C=p[w].coord,_=w===p.length-1?p[w-1].tickValue+S:p[w].tickValue;if(_===v){m=C;break}else if(_<v)y=C;else if(y!=null&&_>v){m=(C+y)/2;break}w===1&&(S=_-p[0].tickValue)}m==null&&(y?y&&(m=p[p.length-1].coord):m=p[0].coord),s[h]=d.toGlobalCoord(m)}});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]},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},e}(Vr);Vr.registerClass(oue);const _C=oue;var hMt=function(t){Fe(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.getInitialData=function(){return Tu(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},e.prototype.getProgressiveThreshold=function(){var n=this.get("progressiveThreshold"),r=this.get("largeThreshold");return r>n&&(n=r),n},e.prototype.brushSelector=function(n,r,a){return a.rect(r.getItemLayout(n))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=hd(_C.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}),e}(_C);const pMt=hMt;var vMt=function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return t}(),gMt=function(t){Fe(e,t);function e(n){var r=t.call(this,n)||this;return r.type="sausage",r}return e.prototype.getDefaultShape=function(){return new vMt},e.prototype.buildPath=function(n,r){var a=r.cx,i=r.cy,o=Math.max(r.r0||0,0),s=Math.max(r.r,0),l=(s-o)*.5,u=o+l,c=r.startAngle,f=r.endAngle,d=r.clockwise,h=Math.PI*2,p=d?f-c<h:c-f<h;p||(c=f-(d?h:-h));var v=Math.cos(c),g=Math.sin(c),y=Math.cos(f),m=Math.sin(f);p?(n.moveTo(v*o+a,g*o+i),n.arc(v*u+a,g*u+i,l,-Math.PI+c,c,!d)):n.moveTo(v*s+a,g*s+i),n.arc(a,i,s,c,f,!d),n.arc(y*u+a,m*u+i,l,f-Math.PI*2,f-Math.PI,!d),o!==0&&n.arc(a,i,o,f,c,d)},e}(Cn);const CC=gMt;function yMt(t,e){e=e||{};var n=e.isRoundCap;return function(r,a,i){var o=a.position;if(!o||o instanceof Array)return eC(r,a,i);var s=t(o),l=a.distance!=null?a.distance:5,u=this.shape,c=u.cx,f=u.cy,d=u.r,h=u.r0,p=(d+h)/2,v=u.startAngle,g=u.endAngle,y=(v+g)/2,m=n?Math.abs(d-h)/2:0,S=Math.cos,w=Math.sin,C=c+d*S(v),_=f+d*w(v),x="left",T="top";switch(s){case"startArc":C=c+(h-l)*S(y),_=f+(h-l)*w(y),x="center",T="top";break;case"insideStartArc":C=c+(h+l)*S(y),_=f+(h+l)*w(y),x="center",T="bottom";break;case"startAngle":C=c+p*S(v)+dx(v,l+m,!1),_=f+p*w(v)+hx(v,l+m,!1),x="right",T="middle";break;case"insideStartAngle":C=c+p*S(v)+dx(v,-l+m,!1),_=f+p*w(v)+hx(v,-l+m,!1),x="left",T="middle";break;case"middle":C=c+p*S(y),_=f+p*w(y),x="center",T="middle";break;case"endArc":C=c+(d+l)*S(y),_=f+(d+l)*w(y),x="center",T="bottom";break;case"insideEndArc":C=c+(d-l)*S(y),_=f+(d-l)*w(y),x="center",T="top";break;case"endAngle":C=c+p*S(g)+dx(g,l+m,!0),_=f+p*w(g)+hx(g,l+m,!0),x="left",T="middle";break;case"insideEndAngle":C=c+p*S(g)+dx(g,-l+m,!0),_=f+p*w(g)+hx(g,-l+m,!0),x="right",T="middle";break;default:return eC(r,a,i)}return r=r||{},r.x=C,r.y=_,r.align=x,r.verticalAlign=T,r}}function mMt(t,e,n,r){if(Un(r)){t.setTextConfig({rotation:r});return}else if(st(e)){t.setTextConfig({rotation:0});return}var a=t.shape,i=a.clockwise?a.startAngle:a.endAngle,o=a.clockwise?a.endAngle:a.startAngle,s=(i+o)/2,l,u=n(e);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":l=s;break;case"startAngle":case"insideStartAngle":l=i;break;case"endAngle":case"insideEndAngle":l=o;break;default:t.setTextConfig({rotation:0});return}var c=Math.PI*1.5-l;u==="middle"&&c>Math.PI/2&&c<Math.PI*1.5&&(c-=Math.PI),t.setTextConfig({rotation:c})}function dx(t,e,n){return e*Math.sin(t)*(n?-1:1)}function hx(t,e,n){return e*Math.cos(t)*(n?1:-1)}function jh(t,e,n){var r=t.get("borderRadius");if(r==null)return n?{cornerRadius:0}:null;st(r)||(r=[r,r,r,r]);var a=Math.abs(e.r||0-e.r0||0);return{cornerRadius:ut(r,function(i){return Sl(i,a)})}}var HA=Math.max,WA=Math.min;function bMt(t,e){var n=t.getArea&&t.getArea();if(Up(t,"cartesian2d")){var r=t.getBaseAxis();if(r.type!=="category"||!r.onBand){var a=e.getLayout("bandWidth");r.isHorizontal()?(n.x-=a,n.width+=a*2):(n.y-=a,n.height+=a*2)}}return n}var SMt=function(t){Fe(e,t);function e(){var n=t.call(this)||this;return n.type=e.type,n._isFirstFrame=!0,n}return e.prototype.render=function(n,r,a,i){this._model=n,this._removeOnRenderedListener(a),this._updateDrawMode(n);var o=n.get("coordinateSystem");(o==="cartesian2d"||o==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(n,r,a):this._renderNormal(n,r,a,i))},e.prototype.incrementalPrepareRender=function(n){this._clear(),this._updateDrawMode(n),this._updateLargeClip(n)},e.prototype.incrementalRender=function(n,r){this._progressiveEls=[],this._incrementalRenderLarge(n,r)},e.prototype.eachRendered=function(n){dd(this._progressiveEls||this.group,n)},e.prototype._updateDrawMode=function(n){var r=n.pipelineContext.large;(this._isLargeDraw==null||r!==this._isLargeDraw)&&(this._isLargeDraw=r,this._clear())},e.prototype._renderNormal=function(n,r,a,i){var o=this.group,s=n.getData(),l=this._data,u=n.coordinateSystem,c=u.getBaseAxis(),f;u.type==="cartesian2d"?f=c.isHorizontal():u.type==="polar"&&(f=c.dim==="angle");var d=n.isAnimationEnabled()?n:null,h=wMt(n,u);h&&this._enableRealtimeSort(h,s,a);var p=n.get("clip",!0)||h,v=bMt(u,s);o.removeClipPath();var g=n.get("roundCap",!0),y=n.get("showBackground",!0),m=n.getModel("backgroundStyle"),S=m.get("borderRadius")||0,w=[],C=this._backgroundEls,_=i&&i.isInitSort,x=i&&i.type==="changeAxisOrder";function T(A){var k=px[u.type](s,A),L=DMt(u,f,k);return L.useStyle(m.getItemStyle()),u.type==="cartesian2d"?L.setShape("r",S):L.setShape("cornerRadius",S),w[A]=L,L}s.diff(l).add(function(A){var k=s.getItemModel(A),L=px[u.type](s,A,k);if(y&&T(A),!(!s.hasValue(A)||!AH[u.type](L))){var I=!1;p&&(I=TH[u.type](v,L));var P=EH[u.type](n,s,A,L,f,d,c.model,!1,g);h&&(P.forceLabelAnimation=!0),kH(P,s,A,k,L,n,f,u.type==="polar"),_?P.attr({shape:L}):h?MH(h,d,P,L,A,f,!1,!1):Ur(P,{shape:L},n,A),s.setItemGraphicEl(A,P),o.add(P),P.ignore=I}}).update(function(A,k){var L=s.getItemModel(A),I=px[u.type](s,A,L);if(y){var P=void 0;C.length===0?P=T(k):(P=C[k],P.useStyle(m.getItemStyle()),u.type==="cartesian2d"?P.setShape("r",S):P.setShape("cornerRadius",S),w[A]=P);var F=px[u.type](s,A),$=lue(f,F,u);jn(P,{shape:$},d,A)}var W=l.getItemGraphicEl(k);if(!s.hasValue(A)||!AH[u.type](I)){o.remove(W);return}var V=!1;if(p&&(V=TH[u.type](v,I),V&&o.remove(W)),W?xl(W):W=EH[u.type](n,s,A,I,f,d,c.model,!!W,g),h&&(W.forceLabelAnimation=!0),x){var z=W.getTextContent();if(z){var K=V0(z);K.prevValue!=null&&(K.prevValue=K.value)}}else kH(W,s,A,L,I,n,f,u.type==="polar");_?W.attr({shape:I}):h?MH(h,d,W,I,A,f,!0,x):jn(W,{shape:I},n,A,null),s.setItemGraphicEl(A,W),W.ignore=V,o.add(W)}).remove(function(A){var k=l.getItemGraphicEl(A);k&&Q1(k,n,A)}).execute();var M=this._backgroundGroup||(this._backgroundGroup=new en);M.removeAll();for(var E=0;E<w.length;++E)M.add(w[E]);o.add(M),this._backgroundEls=w,this._data=s},e.prototype._renderLarge=function(n,r,a){this._clear(),LH(n,this.group),this._updateLargeClip(n)},e.prototype._incrementalRenderLarge=function(n,r){this._removeBackground(),LH(r,this.group,this._progressiveEls,!0)},e.prototype._updateLargeClip=function(n){var r=n.get("clip",!0)&&VE(n.coordinateSystem,!1,n),a=this.group;r?a.setClipPath(r):a.removeClipPath()},e.prototype._enableRealtimeSort=function(n,r,a){var i=this;if(r.count()){var o=n.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(r,n,a),this._isFirstFrame=!1;else{var s=function(l){var u=r.getItemGraphicEl(l),c=u&&u.shape;return c&&Math.abs(o.isHorizontal()?c.height:c.width)||0};this._onRendered=function(){i._updateSortWithinSameData(r,s,o,a)},a.getZr().on("rendered",this._onRendered)}}},e.prototype._dataSort=function(n,r,a){var i=[];return n.each(n.mapDimension(r.dim),function(o,s){var l=a(s);l=l??NaN,i.push({dataIndex:s,mappedValue:l,ordinalNumber:o})}),i.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:ut(i,function(o){return o.ordinalNumber})}},e.prototype._isOrderChangedWithinSameData=function(n,r,a){for(var i=a.scale,o=n.mapDimension(a.dim),s=Number.MAX_VALUE,l=0,u=i.getOrdinalMeta().categories.length;l<u;++l){var c=n.rawIndexOf(o,i.getRawOrdinalNumber(l)),f=c<0?Number.MIN_VALUE:r(n.indexOfRawIndex(c));if(f>s)return!0;s=f}return!1},e.prototype._isOrderDifferentInView=function(n,r){for(var a=r.scale,i=a.getExtent(),o=Math.max(0,i[0]),s=Math.min(i[1],a.getOrdinalMeta().categories.length-1);o<=s;++o)if(n.ordinalNumbers[o]!==a.getRawOrdinalNumber(o))return!0},e.prototype._updateSortWithinSameData=function(n,r,a,i){if(this._isOrderChangedWithinSameData(n,r,a)){var o=this._dataSort(n,a,r);this._isOrderDifferentInView(o,a)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",axisId:a.index,sortInfo:o}))}},e.prototype._dispatchInitSort=function(n,r,a){var i=r.baseAxis,o=this._dataSort(n,i,function(s){return n.get(n.mapDimension(r.otherAxis.dim),s)});a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:o})},e.prototype.remove=function(n,r){this._clear(this._model),this._removeOnRenderedListener(r)},e.prototype.dispose=function(n,r){this._removeOnRenderedListener(r)},e.prototype._removeOnRenderedListener=function(n){this._onRendered&&(n.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(n){var r=this.group,a=this._data;n&&n.isAnimationEnabled()&&a&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],a.eachItemGraphicEl(function(i){Q1(i,n,ln(i).dataIndex)})):r.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e}(br),TH={cartesian2d:function(t,e){var n=e.width<0?-1:1,r=e.height<0?-1:1;n<0&&(e.x+=e.width,e.width=-e.width),r<0&&(e.y+=e.height,e.height=-e.height);var a=t.x+t.width,i=t.y+t.height,o=HA(e.x,t.x),s=WA(e.x+e.width,a),l=HA(e.y,t.y),u=WA(e.y+e.height,i),c=s<o,f=u<l;return e.x=c&&o>a?s:o,e.y=f&&l>i?u:l,e.width=c?0:s-o,e.height=f?0:u-l,n<0&&(e.x+=e.width,e.width=-e.width),r<0&&(e.y+=e.height,e.height=-e.height),c||f},polar:function(t,e){var n=e.r0<=e.r?1:-1;if(n<0){var r=e.r;e.r=e.r0,e.r0=r}var a=WA(e.r,t.r),i=HA(e.r0,t.r0);e.r=a,e.r0=i;var o=a-i<0;if(n<0){var r=e.r;e.r=e.r0,e.r0=r}return o}},EH={cartesian2d:function(t,e,n,r,a,i,o,s,l){var u=new $n({shape:et({},r),z2:1});if(u.__dataIndex=n,u.name="item",i){var c=u.shape,f=a?"height":"width";c[f]=0}return u},polar:function(t,e,n,r,a,i,o,s,l){var u=!a&&l?CC:so,c=new u({shape:r,z2:1});c.name="item";var f=sue(a);if(c.calculateTextPosition=yMt(f,{isRoundCap:u===CC}),i){var d=c.shape,h=a?"r":"endAngle",p={};d[h]=a?r.r0:r.startAngle,p[h]=r[h],(s?jn:Ur)(c,{shape:p},i)}return c}};function wMt(t,e){var n=t.get("realtimeSort",!0),r=e.getBaseAxis();if(n&&r.type==="category"&&e.type==="cartesian2d")return{baseAxis:r,otherAxis:e.getOtherAxis(r)}}function MH(t,e,n,r,a,i,o,s){var l,u;i?(u={x:r.x,width:r.width},l={y:r.y,height:r.height}):(u={y:r.y,height:r.height},l={x:r.x,width:r.width}),s||(o?jn:Ur)(n,{shape:l},e,a,null);var c=e?t.baseAxis.model:null;(o?jn:Ur)(n,{shape:u},c,a)}function DH(t,e){for(var n=0;n<e.length;n++)if(!isFinite(t[e[n]]))return!0;return!1}var xMt=["x","y","width","height"],_Mt=["cx","cy","r","startAngle","endAngle"],AH={cartesian2d:function(t){return!DH(t,xMt)},polar:function(t){return!DH(t,_Mt)}},px={cartesian2d:function(t,e,n){var r=t.getItemLayout(e),a=n?TMt(n,r):0,i=r.width>0?1:-1,o=r.height>0?1:-1;return{x:r.x+i*a/2,y:r.y+o*a/2,width:r.width-i*a,height:r.height-o*a}},polar:function(t,e,n){var r=t.getItemLayout(e);return{cx:r.cx,cy:r.cy,r0:r.r0,r:r.r,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}}};function CMt(t){return t.startAngle!=null&&t.endAngle!=null&&t.startAngle===t.endAngle}function sue(t){return function(e){var n=e?"Arc":"Angle";return function(r){switch(r){case"start":case"insideStart":case"end":case"insideEnd":return r+n;default:return r}}}(t)}function kH(t,e,n,r,a,i,o,s){var l=e.getItemVisual(n,"style");if(s){if(!i.get("roundCap")){var c=t.shape,f=jh(r.getModel("itemStyle"),c,!0);et(c,f),t.setShape(c)}}else{var u=r.get(["itemStyle","borderRadius"])||0;t.setShape("r",u)}t.useStyle(l);var d=r.getShallow("cursor");d&&t.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",p=Ka(r);Si(t,p,{labelFetcher:i,labelDataIndex:n,defaultText:i0(i.getData(),n),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:h});var v=t.getTextContent();if(s&&v){var g=r.get(["label","position"]);t.textConfig.inside=g==="middle"?!0:null,mMt(t,g==="outside"?h:g,sue(o),r.get(["label","rotate"]))}woe(v,p,i.getRawValue(n),function(m){return Zle(e,m)});var y=r.getModel(["emphasis"]);ua(t,y.get("focus"),y.get("blurScope"),y.get("disabled")),bi(t,r),CMt(a)&&(t.style.fill="none",t.style.stroke="none",q(t.states,function(m){m.style&&(m.style.fill=m.style.stroke="none")}))}function TMt(t,e){var n=t.get(["itemStyle","borderColor"]);if(!n||n==="none")return 0;var r=t.get(["itemStyle","borderWidth"])||0,a=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),i=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(r,a,i)}var EMt=function(){function t(){}return t}(),RH=function(t){Fe(e,t);function e(n){var r=t.call(this,n)||this;return r.type="largeBar",r}return e.prototype.getDefaultShape=function(){return new EMt},e.prototype.buildPath=function(n,r){for(var a=r.points,i=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,c=0;c<a.length;c+=3)l[i]=u,l[o]=a[c+2],s[i]=a[c+i],s[o]=a[c+o],n.rect(s[0],s[1],l[0],l[1])},e}(Cn);function LH(t,e,n,r){var a=t.getData(),i=a.getLayout("valueAxisHorizontal")?1:0,o=a.getLayout("largeDataIndices"),s=a.getLayout("size"),l=t.getModel("backgroundStyle"),u=a.getLayout("largeBackgroundPoints");if(u){var c=new RH({shape:{points:u},incremental:!!r,silent:!0,z2:0});c.baseDimIdx=i,c.largeDataIndices=o,c.barWidth=s,c.useStyle(l.getItemStyle()),e.add(c),n&&n.push(c)}var f=new RH({shape:{points:a.getLayout("largePoints")},incremental:!!r,ignoreCoarsePointer:!0,z2:1});f.baseDimIdx=i,f.largeDataIndices=o,f.barWidth=s,e.add(f),f.useStyle(a.getVisual("style")),ln(f).seriesIndex=t.seriesIndex,t.get("silent")||(f.on("mousedown",OH),f.on("mousemove",OH)),n&&n.push(f)}var OH=ME(function(t){var e=this,n=MMt(e,t.offsetX,t.offsetY);ln(e).dataIndex=n>=0?n:null},30,!1);function MMt(t,e,n){for(var r=t.baseDimIdx,a=1-r,i=t.shape.points,o=t.largeDataIndices,s=[],l=[],u=t.barWidth,c=0,f=i.length/3;c<f;c++){var d=c*3;if(l[r]=u,l[a]=i[d+2],s[r]=i[d+r],s[a]=i[d+a],l[a]<0&&(s[a]+=l[a],l[a]=-l[a]),e>=s[0]&&e<=s[0]+l[0]&&n>=s[1]&&n<=s[1]+l[1])return o[c]}return-1}function lue(t,e,n){if(Up(n,"cartesian2d")){var r=e,a=n.getArea();return{x:t?r.x:a.x,y:t?a.y:r.y,width:t?r.width:a.width,height:t?a.height:r.height}}else{var a=n.getArea(),i=e;return{cx:a.cx,cy:a.cy,r0:t?a.r0:i.r0,r:t?a.r:i.r,startAngle:t?i.startAngle:0,endAngle:t?i.endAngle:Math.PI*2}}}function DMt(t,e,n){var r=t.type==="polar"?so:$n;return new r({shape:lue(e,n,t),silent:!0,z2:0})}const AMt=SMt;function kMt(t){t.registerChartView(AMt),t.registerSeriesModel(pMt),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,sn(dle,"bar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,hle("bar")),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,iue("bar")),t.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,n){var r=e.componentType||"series";n.eachComponent({mainType:r,query:e},function(a){e.sortInfo&&a.axis.setCategorySortInfo(e.sortInfo)})})}var vx=Math.PI*2,VH=Math.PI/180;function uue(t,e){return ka(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function cue(t,e){var n=uue(t,e),r=t.get("center"),a=t.get("radius");st(a)||(a=[0,a]);var i=Mt(n.width,e.getWidth()),o=Mt(n.height,e.getHeight()),s=Math.min(i,o),l=Mt(a[0],s/2),u=Mt(a[1],s/2),c,f,d=t.coordinateSystem;if(d){var h=d.dataToPoint(r);c=h[0]||0,f=h[1]||0}else st(r)||(r=[r,r]),c=Mt(r[0],i)+n.x,f=Mt(r[1],o)+n.y;return{cx:c,cy:f,r0:l,r:u}}function RMt(t,e,n){e.eachSeriesByType(t,function(r){var a=r.getData(),i=a.mapDimension("value"),o=uue(r,n),s=cue(r,n),l=s.cx,u=s.cy,c=s.r,f=s.r0,d=-r.get("startAngle")*VH,h=r.get("minAngle")*VH,p=0;a.each(i,function(E){!isNaN(E)&&p++});var v=a.getSum(i),g=Math.PI/(v||p)*2,y=r.get("clockwise"),m=r.get("roseType"),S=r.get("stillShowZeroSum"),w=a.getDataExtent(i);w[0]=0;var C=vx,_=0,x=d,T=y?1:-1;if(a.setLayout({viewRect:o,r:c}),a.each(i,function(E,A){var k;if(isNaN(E)){a.setItemLayout(A,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:y,cx:l,cy:u,r0:f,r:m?NaN:c});return}m!=="area"?k=v===0&&S?g:E*g:k=vx/p,k<h?(k=h,C-=h):_+=E;var L=x+T*k;a.setItemLayout(A,{angle:k,startAngle:x,endAngle:L,clockwise:y,cx:l,cy:u,r0:f,r:m?ir(E,w,[f,c]):c}),x=L}),C<vx&&p)if(C<=.001){var M=vx/p;a.each(i,function(E,A){if(!isNaN(E)){var k=a.getItemLayout(A);k.angle=M,k.startAngle=d+T*A*M,k.endAngle=d+T*(A+1)*M}})}else g=C/_,x=d,a.each(i,function(E,A){if(!isNaN(E)){var k=a.getItemLayout(A),L=k.angle===h?h:E*g;k.startAngle=x,k.endAngle=x+T*L,x+=T*L}})})}function gS(t){return{seriesType:t,reset:function(e,n){var r=n.findComponents({mainType:"legend"});if(!(!r||!r.length)){var a=e.getData();a.filterSelf(function(i){for(var o=a.getName(i),s=0;s<r.length;s++)if(!r[s].isSelected(o))return!1;return!0})}}}}var LMt=Math.PI/180;function NH(t,e,n,r,a,i,o,s,l,u){if(t.length<2)return;function c(v){for(var g=v.rB,y=g*g,m=0;m<v.list.length;m++){var S=v.list[m],w=Math.abs(S.label.y-n),C=r+S.len,_=C*C,x=Math.sqrt((1-Math.abs(w*w/y))*_),T=e+(x+S.len2)*a,M=T-S.label.x,E=S.targetTextWidth-M*a;fue(S,E,!0),S.label.x=T}}function f(v){for(var g={list:[],maxY:0},y={list:[],maxY:0},m=0;m<v.length;m++)if(v[m].labelAlignTo==="none"){var S=v[m],w=S.label.y>n?y:g,C=Math.abs(S.label.y-n);if(C>=w.maxY){var _=S.label.x-e-S.len2*a,x=r+S.len,T=Math.abs(_)<x?Math.sqrt(C*C/(1-_*_/x/x)):x;w.rB=T,w.maxY=C}w.list.push(S)}c(g),c(y)}for(var d=t.length,h=0;h<d;h++)if(t[h].position==="outer"&&t[h].labelAlignTo==="labelLine"){var p=t[h].label.x-u;t[h].linePoints[1][0]+=p,t[h].label.x=u}Nle(t,l,l+o)&&f(t)}function OMt(t,e,n,r,a,i,o,s){for(var l=[],u=[],c=Number.MAX_VALUE,f=-Number.MAX_VALUE,d=0;d<t.length;d++){var h=t[d].label;jA(t[d])||(h.x<e?(c=Math.min(c,h.x),l.push(t[d])):(f=Math.max(f,h.x),u.push(t[d])))}for(var d=0;d<t.length;d++){var p=t[d];if(!jA(p)&&p.linePoints){if(p.labelStyleWidth!=null)continue;var h=p.label,v=p.linePoints,g=void 0;p.labelAlignTo==="edge"?h.x<e?g=v[2][0]-p.labelDistance-o-p.edgeDistance:g=o+a-p.edgeDistance-v[2][0]-p.labelDistance:p.labelAlignTo==="labelLine"?h.x<e?g=c-o-p.bleedMargin:g=o+a-f-p.bleedMargin:h.x<e?g=h.x-o-p.bleedMargin:g=o+a-h.x-p.bleedMargin,p.targetTextWidth=g,fue(p,g)}}NH(u,e,n,r,1,a,i,o,s,f),NH(l,e,n,r,-1,a,i,o,s,c);for(var d=0;d<t.length;d++){var p=t[d];if(!jA(p)&&p.linePoints){var h=p.label,v=p.linePoints,y=p.labelAlignTo==="edge",m=h.style.padding,S=m?m[1]+m[3]:0,w=h.style.backgroundColor?0:S,C=p.rect.width+w,_=v[1][0]-v[2][0];y?h.x<e?v[2][0]=o+p.edgeDistance+C+p.labelDistance:v[2][0]=o+a-p.edgeDistance-C-p.labelDistance:(h.x<e?v[2][0]=h.x+p.labelDistance:v[2][0]=h.x-p.labelDistance,v[1][0]=v[2][0]+_),v[1][1]=v[2][1]=h.y}}}function fue(t,e,n){if(n===void 0&&(n=!1),t.labelStyleWidth==null){var r=t.label,a=r.style,i=t.rect,o=a.backgroundColor,s=a.padding,l=s?s[1]+s[3]:0,u=a.overflow,c=i.width+(o?0:l);if(e<c||n){var f=i.height;if(u&&u.match("break")){r.setStyle("backgroundColor",null),r.setStyle("width",e-l);var d=r.getBoundingRect();r.setStyle("width",Math.ceil(d.width)),r.setStyle("backgroundColor",o)}else{var h=e-l,p=e<c?h:n?h>t.unconstrainedWidth?null:h:null;r.setStyle("width",p)}var v=r.getBoundingRect();i.width=v.width;var g=(r.style.margin||0)+2.1;i.height=v.height+g,i.y-=(i.height-f)/2}}}function jA(t){return t.position==="center"}function VMt(t){var e=t.getData(),n=[],r,a,i=!1,o=(t.get("minShowLabelAngle")||0)*LMt,s=e.getLayout("viewRect"),l=e.getLayout("r"),u=s.width,c=s.x,f=s.y,d=s.height;function h(_){_.ignore=!0}function p(_){if(!_.ignore)return!0;for(var x in _.states)if(_.states[x].ignore===!1)return!0;return!1}e.each(function(_){var x=e.getItemGraphicEl(_),T=x.shape,M=x.getTextContent(),E=x.getTextGuideLine(),A=e.getItemModel(_),k=A.getModel("label"),L=k.get("position")||A.get(["emphasis","label","position"]),I=k.get("distanceToLabelLine"),P=k.get("alignTo"),F=Mt(k.get("edgeDistance"),u),$=k.get("bleedMargin"),W=A.getModel("labelLine"),V=W.get("length");V=Mt(V,u);var z=W.get("length2");if(z=Mt(z,u),Math.abs(T.endAngle-T.startAngle)<o){q(M.states,h),M.ignore=!0,E&&(q(E.states,h),E.ignore=!0);return}if(p(M)){var K=(T.startAngle+T.endAngle)/2,Z=Math.cos(K),oe=Math.sin(K),ge,ie,Q,ce;r=T.cx,a=T.cy;var se=L==="inside"||L==="inner";if(L==="center")ge=T.cx,ie=T.cy,ce="center";else{var me=(se?(T.r+T.r0)/2*Z:T.r*Z)+r,ve=(se?(T.r+T.r0)/2*oe:T.r*oe)+a;if(ge=me+Z*3,ie=ve+oe*3,!se){var he=me+Z*(V+l-T.r),ee=ve+oe*(V+l-T.r),ue=he+(Z<0?-1:1)*z,fe=ee;P==="edge"?ge=Z<0?c+F:c+u-F:ge=ue+(Z<0?-I:I),ie=fe,Q=[[me,ve],[he,ee],[ue,fe]]}ce=se?"center":P==="edge"?Z>0?"right":"left":Z>0?"left":"right"}var Re=Math.PI,Ne=0,De=k.get("rotate");if(Un(De))Ne=De*(Re/180);else if(L==="center")Ne=0;else if(De==="radial"||De===!0){var we=Z<0?-K+Re:-K;Ne=we}else if(De==="tangential"&&L!=="outside"&&L!=="outer"){var ae=Math.atan2(Z,oe);ae<0&&(ae=Re*2+ae);var Ie=oe>0;Ie&&(ae=Re+ae),Ne=ae-Re}if(i=!!Ne,M.x=ge,M.y=ie,M.rotation=Ne,M.setStyle({verticalAlign:"middle"}),se){M.setStyle({align:ce});var qe=M.states.select;qe&&(qe.x+=M.x,qe.y+=M.y)}else{var He=M.getBoundingRect().clone();He.applyTransform(M.getComputedTransform());var Ce=(M.style.margin||0)+2.1;He.y-=Ce/2,He.height+=Ce,n.push({label:M,labelLine:E,position:L,len:V,len2:z,minTurnAngle:W.get("minTurnAngle"),maxSurfaceAngle:W.get("maxSurfaceAngle"),surfaceNormal:new vn(Z,oe),linePoints:Q,textAlign:ce,labelDistance:I,labelAlignTo:P,edgeDistance:F,bleedMargin:$,rect:He,unconstrainedWidth:He.width,labelStyleWidth:M.style.width})}x.setTextConfig({inside:se})}}),!i&&t.get("avoidLabelOverlap")&&OMt(n,r,a,l,u,d,c,f);for(var v=0;v<n.length;v++){var g=n[v],y=g.label,m=g.labelLine,S=isNaN(y.x)||isNaN(y.y);if(y){y.setStyle({align:g.textAlign}),S&&(q(y.states,h),y.ignore=!0);var w=y.states.select;w&&(w.x+=y.x,w.y+=y.y)}if(m){var C=g.linePoints;S||!C?(q(m.states,h),m.ignore=!0):(Lle(C,g.minTurnAngle),KTt(C,g.surfaceNormal,g.maxSurfaceAngle),m.setShape({points:C}),y.__hostTarget.textGuideLineConfig={anchor:new vn(C[0][0],C[0][1])})}}}var NMt=function(t){Fe(e,t);function e(n,r,a){var i=t.call(this)||this;i.z2=2;var o=new Bn;return i.setTextContent(o),i.updateData(n,r,a,!0),i}return e.prototype.updateData=function(n,r,a,i){var o=this,s=n.hostModel,l=n.getItemModel(r),u=l.getModel("emphasis"),c=n.getItemLayout(r),f=et(jh(l.getModel("itemStyle"),c,!0),c);if(isNaN(f.startAngle)){o.setShape(f);return}if(i){o.setShape(f);var d=s.getShallow("animationType");s.ecModel.ssr?(Ur(o,{scaleX:0,scaleY:0},s,{dataIndex:r,isFrom:!0}),o.originX=f.cx,o.originY=f.cy):d==="scale"?(o.shape.r=c.r0,Ur(o,{shape:{r:c.r}},s,r)):a!=null?(o.setShape({startAngle:a,endAngle:a}),Ur(o,{shape:{startAngle:c.startAngle,endAngle:c.endAngle}},s,r)):(o.shape.endAngle=c.startAngle,jn(o,{shape:{endAngle:c.endAngle}},s,r))}else xl(o),jn(o,{shape:f},s,r);o.useStyle(n.getItemVisual(r,"style")),bi(o,l);var h=(c.startAngle+c.endAngle)/2,p=s.get("selectedOffset"),v=Math.cos(h)*p,g=Math.sin(h)*p,y=l.getShallow("cursor");y&&o.attr("cursor",y),this._updateLabel(s,n,r),o.ensureState("emphasis").shape=et({r:c.r+(u.get("scale")&&u.get("scaleSize")||0)},jh(u.getModel("itemStyle"),c)),et(o.ensureState("select"),{x:v,y:g,shape:jh(l.getModel(["select","itemStyle"]),c)}),et(o.ensureState("blur"),{shape:jh(l.getModel(["blur","itemStyle"]),c)});var m=o.getTextGuideLine(),S=o.getTextContent();m&&et(m.ensureState("select"),{x:v,y:g}),et(S.ensureState("select"),{x:v,y:g}),ua(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(n,r,a){var i=this,o=r.getItemModel(a),s=o.getModel("labelLine"),l=r.getItemVisual(a,"style"),u=l&&l.fill,c=l&&l.opacity;Si(i,Ka(o),{labelFetcher:r.hostModel,labelDataIndex:a,inheritColor:u,defaultOpacity:c,defaultText:n.getFormattedLabel(a,"normal")||r.getName(a)});var f=i.getTextContent();i.setTextConfig({position:null,rotation:null}),f.attr({z2:10});var d=n.get(["label","position"]);if(d!=="outside"&&d!=="outer")i.removeTextGuideLine();else{var h=this.getTextGuideLine();h||(h=new fo,this.setTextGuideLine(h)),hB(this,pB(o),{stroke:u,opacity:hl(s.get(["lineStyle","opacity"]),c,1)})}},e}(so),IMt=function(t){Fe(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.ignoreLabelLineUpdate=!0,n}return e.prototype.render=function(n,r,a,i){var o=n.getData(),s=this._data,l=this.group,u;if(!s&&o.count()>0){for(var c=o.getItemLayout(0),f=1;isNaN(c&&c.startAngle)&&f<o.count();++f)c=o.getItemLayout(f);c&&(u=c.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),o.count()===0&&n.get("showEmptyCircle")){var d=new so({shape:cue(n,a)});d.useStyle(n.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=d,l.add(d)}o.diff(s).add(function(h){var p=new NMt(o,h,u);o.setItemGraphicEl(h,p),l.add(p)}).update(function(h,p){var v=s.getItemGraphicEl(p);v.updateData(o,h,u),v.off("click"),l.add(v),o.setItemGraphicEl(h,v)}).remove(function(h){var p=s.getItemGraphicEl(h);Q1(p,n,h)}).execute(),VMt(n),n.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},e.prototype.dispose=function(){},e.prototype.containPoint=function(n,r){var a=r.getData(),i=a.getItemLayout(0);if(i){var o=n[0]-i.cx,s=n[1]-i.cy,l=Math.sqrt(o*o+s*s);return l<=i.r&&l>=i.r0}},e.type="pie",e}(br);const BMt=IMt;function W0(t,e,n){e=st(e)&&{coordDimensions:e}||et({encodeDefine:t.getEncode()},e);var r=t.getSource(),a=G0(r,e).dimensions,i=new Oi(a,t);return i.initData(r,n),i}var $Mt=function(){function t(e,n){this._getDataWithEncodedVisual=e,this._getRawData=n}return t.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},t.prototype.containName=function(e){var n=this._getRawData();return n.indexOfName(e)>=0},t.prototype.indexOfName=function(e){var n=this._getDataWithEncodedVisual();return n.indexOfName(e)},t.prototype.getItemVisual=function(e,n){var r=this._getDataWithEncodedVisual();return r.getItemVisual(e,n)},t}();const yS=$Mt;var PMt=Gn(),FMt=function(t){Fe(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(n){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new yS(Nt(this.getData,this),Nt(this.getRawData,this)),this._defaultLabelLine(n)},e.prototype.mergeOption=function(){t.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return W0(this,{coordDimensions:["value"],encodeDefaulter:sn($I,this)})},e.prototype.getDataParams=function(n){var r=this.getData(),a=PMt(r),i=a.seats;if(!i){var o=[];r.each(r.mapDimension("value"),function(l){o.push(l)}),i=a.seats=hie(o,r.hostModel.get("percentPrecision"))}var s=t.prototype.getDataParams.call(this,n);return s.percent=i[n]||0,s.$vars.push("percent"),s},e.prototype._defaultLabelLine=function(n){Sp(n,"labelLine",["show"]);var r=n.labelLine,a=n.emphasis.labelLine;r.show=r.show&&n.label.show,a.show=a.show&&n.emphasis.label.show},e.type="series.pie",e.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"},e}(Vr);const zMt=FMt;function UMt(t){return{seriesType:t,reset:function(e,n){var r=e.getData();r.filterSelf(function(a){var i=r.mapDimension("value"),o=r.get(i,a);return!(Un(o)&&!isNaN(o)&&o<0)})}}}function GMt(t){t.registerChartView(BMt),t.registerSeriesModel(zMt),Ese("pie",t.registerAction),t.registerLayout(sn(RMt,"pie")),t.registerProcessor(gS("pie")),t.registerProcessor(UMt("pie"))}var HMt=function(t){Fe(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return e.prototype.getInitialData=function(n,r){return Tu(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var n=this.option.progressive;return n??(this.option.large?5e3:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var n=this.option.progressiveThreshold;return n??(this.option.large?1e4:this.get("progressiveThreshold"))},e.prototype.brushSelector=function(n,r,a){return a.point(r.getItemLayout(n))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.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"}},e}(Vr);const WMt=HMt;var due=4,jMt=function(){function t(){}return t}(),KMt=function(t){Fe(e,t);function e(n){var r=t.call(this,n)||this;return r._off=0,r.hoverDataIdx=-1,r}return e.prototype.getDefaultShape=function(){return new jMt},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.buildPath=function(n,r){var a=r.points,i=r.size,o=this.symbolProxy,s=o.shape,l=n.getContext?n.getContext():n,u=l&&i[0]<due,c=this.softClipShape,f;if(u){this._ctx=l;return}for(this._ctx=null,f=this._off;f<a.length;){var d=a[f++],h=a[f++];isNaN(d)||isNaN(h)||c&&!c.contain(d,h)||(s.x=d-i[0]/2,s.y=h-i[1]/2,s.width=i[0],s.height=i[1],o.buildPath(n,s,!0))}this.incremental&&(this._off=f,this.notClear=!0)},e.prototype.afterBrush=function(){var n=this.shape,r=n.points,a=n.size,i=this._ctx,o=this.softClipShape,s;if(i){for(s=this._off;s<r.length;){var l=r[s++],u=r[s++];isNaN(l)||isNaN(u)||o&&!o.contain(l,u)||i.fillRect(l-a[0]/2,u-a[1]/2,a[0],a[1])}this.incremental&&(this._off=s,this.notClear=!0)}},e.prototype.findDataIndex=function(n,r){for(var a=this.shape,i=a.points,o=a.size,s=Math.max(o[0],4),l=Math.max(o[1],4),u=i.length/2-1;u>=0;u--){var c=u*2,f=i[c]-s/2,d=i[c+1]-l/2;if(n>=f&&r>=d&&n<=f+s&&r<=d+l)return u}return-1},e.prototype.contain=function(n,r){var a=this.transformCoordToLocal(n,r),i=this.getBoundingRect();if(n=a[0],r=a[1],i.contain(n,r)){var o=this.hoverDataIdx=this.findDataIndex(n,r);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var n=this._rect;if(!n){for(var r=this.shape,a=r.points,i=r.size,o=i[0],s=i[1],l=1/0,u=1/0,c=-1/0,f=-1/0,d=0;d<a.length;){var h=a[d++],p=a[d++];l=Math.min(h,l),c=Math.max(h,c),u=Math.min(p,u),f=Math.max(p,f)}n=this._rect=new yn(l-o/2,u-s/2,c-l+o,f-u+s)}return n},e}(Cn),YMt=function(){function t(){this.group=new en}return t.prototype.updateData=function(e,n){this._clear();var r=this._create();r.setShape({points:e.getLayout("points")}),this._setCommon(r,e,n)},t.prototype.updateLayout=function(e){var n=e.getLayout("points");this.group.eachChild(function(r){if(r.startIndex!=null){var a=(r.endIndex-r.startIndex)*2,i=r.startIndex*4*2;n=new Float32Array(n.buffer,i,a)}r.setShape("points",n),r.reset()})},t.prototype.incrementalPrepareUpdate=function(e){this._clear()},t.prototype.incrementalUpdate=function(e,n,r){var a=this._newAdded[0],i=n.getLayout("points"),o=a&&a.shape.points;if(o&&o.length<2e4){var s=o.length,l=new Float32Array(s+i.length);l.set(o),l.set(i,s),a.endIndex=e.end,a.setShape({points:l})}else{this._newAdded=[];var u=this._create();u.startIndex=e.start,u.endIndex=e.end,u.incremental=!0,u.setShape({points:i}),this._setCommon(u,n,r)}},t.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},t.prototype._create=function(){var e=new KMt({cursor:"default"});return e.ignoreCoarsePointer=!0,this.group.add(e),this._newAdded.push(e),e},t.prototype._setCommon=function(e,n,r){var a=n.hostModel;r=r||{};var i=n.getVisual("symbolSize");e.setShape("size",i instanceof Array?i:[i,i]),e.softClipShape=r.clipShape||null,e.symbolProxy=ba(n.getVisual("symbol"),0,0,0,0),e.setColor=e.symbolProxy.setColor;var o=e.shape.size[0]<due;e.useStyle(a.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var s=n.getVisual("style"),l=s&&s.fill;l&&e.setColor(l);var u=ln(e);u.seriesIndex=a.seriesIndex,e.on("mousemove",function(c){u.dataIndex=null;var f=e.hoverDataIdx;f>=0&&(u.dataIndex=f+(e.startIndex||0))})},t.prototype.remove=function(){this._clear()},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t}();const XMt=YMt;var qMt=function(t){Fe(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.render=function(n,r,a){var i=n.getData(),o=this._updateSymbolDraw(i,n);o.updateData(i,{clipShape:this._getClipShape(n)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(n,r,a){var i=n.getData(),o=this._updateSymbolDraw(i,n);o.incrementalPrepareUpdate(i),this._finished=!1},e.prototype.incrementalRender=function(n,r,a){this._symbolDraw.incrementalUpdate(n,r.getData(),{clipShape:this._getClipShape(r)}),this._finished=n.end===r.getData().count()},e.prototype.updateTransform=function(n,r,a){var i=n.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var o=vS("").reset(n,r,a);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},e.prototype.eachRendered=function(n){this._symbolDraw&&this._symbolDraw.eachRendered(n)},e.prototype._getClipShape=function(n){var r=n.coordinateSystem,a=r&&r.getArea&&r.getArea();return n.get("clip",!0)?a:null},e.prototype._updateSymbolDraw=function(n,r){var a=this._symbolDraw,i=r.pipelineContext,o=i.large;return(!a||o!==this._isLargeDraw)&&(a&&a.remove(),a=this._symbolDraw=o?new XMt:new pS,this._isLargeDraw=o,this.group.removeAll()),this.group.add(a.group),a},e.prototype.remove=function(n,r){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e}(br);const ZMt=qMt;var QMt=function(t){Fe(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.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"},e}(On);const JMt=QMt;var r3=function(t){Fe(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Ca).models[0]},e.type="cartesian2dAxis",e}(On);ha(r3,H0);var hue={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)"]}}},eDt=hn({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},hue),bB=hn({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}}},hue),tDt=hn({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},bB),nDt=Xt({logBase:10},bB);const pue={category:eDt,value:bB,time:tDt,log:nDt};var rDt={value:1,category:1,time:1,log:1};function o0(t,e,n,r){q(rDt,function(a,i){var o=hn(hn({},pue[i],!0),r,!0),s=function(l){Fe(u,l);function u(){var c=l!==null&&l.apply(this,arguments)||this;return c.type=e+"Axis."+i,c}return u.prototype.mergeDefaultAndTheme=function(c,f){var d=tb(this),h=d?I0(c):{},p=f.getTheme();hn(c,p.get(i+"Axis")),hn(c,this.getDefaultOption()),c.type=IH(c),d&&Zf(c,h,d)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=XO.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=e+"Axis."+i,u.defaultOption=o,u}(n);t.registerComponentModel(s)}),t.registerSubTypeDefaulter(e+"Axis",IH)}function IH(t){return t.type||(t.data?"category":"value")}var aDt=function(){function t(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return t.prototype.getAxis=function(e){return this._axes[e]},t.prototype.getAxes=function(){return ut(this._dimList,function(e){return this._axes[e]},this)},t.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),or(this.getAxes(),function(n){return n.scale.type===e})},t.prototype.addAxis=function(e){var n=e.dim;this._axes[n]=e,this._dimList.push(n)},t}();const iDt=aDt;var a3=["x","y"];function BH(t){return t.type==="interval"||t.type==="time"}var oDt=function(t){Fe(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="cartesian2d",n.dimensions=a3,n}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var n=this.getAxis("x").scale,r=this.getAxis("y").scale;if(!(!BH(n)||!BH(r))){var a=n.getExtent(),i=r.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,p=this._transform=[c,0,0,f,d,h];this._invTransform=$p([],p)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(n){var r=this.getAxis("x"),a=this.getAxis("y");return r.contain(r.toLocalCoord(n[0]))&&a.contain(a.toLocalCoord(n[1]))},e.prototype.containData=function(n){return this.getAxis("x").containData(n[0])&&this.getAxis("y").containData(n[1])},e.prototype.containZone=function(n,r){var a=this.dataToPoint(n),i=this.dataToPoint(r),o=this.getArea(),s=new yn(a[0],a[1],i[0]-a[0],i[1]-a[1]);return o.intersect(s)},e.prototype.dataToPoint=function(n,r,a){a=a||[];var i=n[0],o=n[1];if(this._transform&&i!=null&&isFinite(i)&&o!=null&&isFinite(o))return ai(a,n,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return a[0]=s.toGlobalCoord(s.dataToCoord(i,r)),a[1]=l.toGlobalCoord(l.dataToCoord(o,r)),a},e.prototype.clampData=function(n,r){var a=this.getAxis("x").scale,i=this.getAxis("y").scale,o=a.getExtent(),s=i.getExtent(),l=a.parse(n[0]),u=i.parse(n[1]);return r=r||[],r[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),r[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),r},e.prototype.pointToData=function(n,r){var a=[];if(this._invTransform)return ai(a,n,this._invTransform);var i=this.getAxis("x"),o=this.getAxis("y");return a[0]=i.coordToData(i.toLocalCoord(n[0]),r),a[1]=o.coordToData(o.toLocalCoord(n[1]),r),a},e.prototype.getOtherAxis=function(n){return this.getAxis(n.dim==="x"?"y":"x")},e.prototype.getArea=function(){var n=this.getAxis("x").getGlobalExtent(),r=this.getAxis("y").getGlobalExtent(),a=Math.min(n[0],n[1]),i=Math.min(r[0],r[1]),o=Math.max(n[0],n[1])-a,s=Math.max(r[0],r[1])-i;return new yn(a,i,o,s)},e}(iDt),sDt=function(t){Fe(e,t);function e(n,r,a,i,o){var s=t.call(this,n,r,a)||this;return s.index=0,s.type=i||"value",s.position=o||"bottom",s}return e.prototype.isHorizontal=function(){var n=this.position;return n==="top"||n==="bottom"},e.prototype.getGlobalExtent=function(n){var r=this.getExtent();return r[0]=this.toGlobalCoord(r[0]),r[1]=this.toGlobalCoord(r[1]),n&&r[0]>r[1]&&r.reverse(),r},e.prototype.pointToData=function(n,r){return this.coordToData(this.toLocalCoord(n[this.dim==="x"?0:1]),r)},e.prototype.setCategorySortInfo=function(n){if(this.type!=="category")return!1;this.model.option.categorySortInfo=n,this.scale.setSortInfo(n)},e}(Vs);const lDt=sDt;function i3(t,e,n){n=n||{};var r=t.coordinateSystem,a=e.axis,i={},o=a.getAxesOnZeroOf()[0],s=a.position,l=o?"onZero":s,u=a.dim,c=r.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=e.get("offset")||0,p=u==="x"?[f[2]-h,f[3]+h]:[f[0]-h,f[1]+h];if(o){var v=o.toGlobalCoord(o.dataToCoord(0));p[d.onZero]=Math.max(Math.min(v,p[1]),p[0])}i.position=[u==="y"?p[d[l]]:f[0],u==="x"?p[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?p[d[s]]-p[d.onZero]:0,e.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),Ua(n.labelInside,e.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var y=e.get(["axisLabel","rotate"]);return i.labelRotate=l==="top"?-y:y,i.z2=1,i}function $H(t){return t.get("coordinateSystem")==="cartesian2d"}function PH(t){var e={xAxisModel:null,yAxisModel:null};return q(e,function(n,r){var a=r.replace(/Model$/,""),i=t.getReferringComponents(a,Ca).models[0];e[r]=i}),e}var KA=Math.log;function vue(t,e,n){var r=Qf.prototype,a=r.getTicks.call(n),i=r.getTicks.call(n,!0),o=a.length-1,s=r.getInterval.call(n),l=Sle(t,e),u=l.extent,c=l.fixMin,f=l.fixMax;if(t.type==="log"){var d=KA(t.base);u=[KA(u[0])/d,KA(u[1])/d]}t.setExtent(u[0],u[1]),t.calcNiceExtent({splitNumber:o,fixMin:c,fixMax:f});var h=r.getExtent.call(t);c&&(u[0]=h[0]),f&&(u[1]=h[1]);var p=r.getInterval.call(t),v=u[0],g=u[1];if(c&&f)p=(g-v)/o;else if(c)for(g=u[0]+p*o;g<u[1]&&isFinite(g)&&isFinite(u[1]);)p=OA(p),g=u[0]+p*o;else if(f)for(v=u[1]-p*o;v>u[0]&&isFinite(v)&&isFinite(u[0]);)p=OA(p),v=u[1]-p*o;else{var y=t.getTicks().length-1;y>o&&(p=OA(p));var m=p*o;g=Math.ceil(u[1]/p)*p,v=sa(g-m),v<0&&u[0]>=0?(v=0,g=sa(m)):g>0&&u[1]<=0&&(g=0,v=-sa(m))}var S=(a[0].value-i[0].value)/s,w=(a[o].value-i[o].value)/s;r.setExtent.call(t,v+p*S,g+p*w),r.setInterval.call(t,p),(S||w)&&r.setNiceExtent.call(t,v+p,g-p)}var uDt=function(){function t(e,n,r){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=a3,this._initCartesian(e,n,r),this.model=e}return t.prototype.getRect=function(){return this._rect},t.prototype.update=function(e,n){var r=this._axesMap;this._updateScale(e,this.model);function a(o){var s,l=Dn(o),u=l.length;if(u){for(var c=[],f=u-1;f>=0;f--){var d=+l[f],h=o[d],p=h.model,v=h.scale;qO(v)&&p.get("alignTicks")&&p.get("interval")==null?c.push(h):(Tp(v,p),qO(v)&&(s=h))}c.length&&(s||(s=c.pop(),Tp(s.scale,s.model)),q(c,function(g){vue(g.scale,g.model,s.scale)}))}}a(r.x),a(r.y);var i={};q(r.x,function(o){FH(r,"y",o,i)}),q(r.y,function(o){FH(r,"x",o,i)}),this.resize(this.model,n)},t.prototype.resize=function(e,n,r){var a=e.getBoxLayoutParams(),i=!r&&e.get("containLabel"),o=ka(a,{width:n.getWidth(),height:n.getHeight()});this._rect=o;var s=this._axesList;l(),i&&(q(s,function(u){if(!u.model.get(["axisLabel","inside"])){var c=uTt(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()),q(this._coordsList,function(u){u.calcAffineTransform()});function l(){q(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]),cDt(u,c?o.x:o.y)})}},t.prototype.getAxis=function(e,n){var r=this._axesMap[e];if(r!=null)return r[n||0]},t.prototype.getAxes=function(){return this._axesList.slice()},t.prototype.getCartesian=function(e,n){if(e!=null&&n!=null){var r="x"+e+"y"+n;return this._coordsMap[r]}qt(e)&&(n=e.yAxisIndex,e=e.xAxisIndex);for(var a=0,i=this._coordsList;a<i.length;a++)if(i[a].getAxis("x").index===e||i[a].getAxis("y").index===n)return i[a]},t.prototype.getCartesians=function(){return this._coordsList.slice()},t.prototype.convertToPixel=function(e,n,r){var a=this._findConvertTarget(n);return a.cartesian?a.cartesian.dataToPoint(r):a.axis?a.axis.toGlobalCoord(a.axis.dataToCoord(r)):null},t.prototype.convertFromPixel=function(e,n,r){var a=this._findConvertTarget(n);return a.cartesian?a.cartesian.pointToData(r):a.axis?a.axis.coordToData(a.axis.toLocalCoord(r)):null},t.prototype._findConvertTarget=function(e){var n=e.seriesModel,r=e.xAxisModel||n&&n.getReferringComponents("xAxis",Ca).models[0],a=e.yAxisModel||n&&n.getReferringComponents("yAxis",Ca).models[0],i=e.gridModel,o=this._coordsList,s,l;if(n)s=n.coordinateSystem,bn(o,s)<0&&(s=null);else if(r&&a)s=this.getCartesian(r.componentIndex,a.componentIndex);else if(r)l=this.getAxis("x",r.componentIndex);else if(a)l=this.getAxis("y",a.componentIndex);else if(i){var u=i.coordinateSystem;u===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},t.prototype.containPoint=function(e){var n=this._coordsList[0];if(n)return n.containPoint(e)},t.prototype._initCartesian=function(e,n,r){var a=this,i=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(n.eachComponent("xAxis",u("x"),this),n.eachComponent("yAxis",u("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,q(s.x,function(c,f){q(s.y,function(d,h){var p="x"+f+"y"+h,v=new oDt(p);v.master=a,v.model=e,a._coordsMap[p]=v,a._coordsList.push(v),v.addAxis(c),v.addAxis(d)})});function u(c){return function(f,d){if(YA(f,e)){var h=f.get("position");c==="x"?h!=="top"&&h!=="bottom"&&(h=o.bottom?"top":"bottom"):h!=="left"&&h!=="right"&&(h=o.left?"right":"left"),o[h]=!0;var p=new lDt(c,fS(f),[0,0],f.get("type"),h),v=p.type==="category";p.onBand=v&&f.get("boundaryGap"),p.inverse=f.get("inverse"),f.axis=p,p.model=f,p.grid=i,p.index=d,i._axesList.push(p),s[c][d]=p,l[c]++}}}},t.prototype._updateScale=function(e,n){q(this._axesList,function(a){if(a.scale.setExtent(1/0,-1/0),a.type==="category"){var i=a.model.get("categorySortInfo");a.scale.setSortInfo(i)}}),e.eachSeries(function(a){if($H(a)){var i=PH(a),o=i.xAxisModel,s=i.yAxisModel;if(!YA(o,n)||!YA(s,n))return;var l=this.getCartesian(o.componentIndex,s.componentIndex),u=a.getData(),c=l.getAxis("x"),f=l.getAxis("y");r(u,c),r(u,f)}},this);function r(a,i){q(bC(a,i.dim),function(o){i.scale.unionExtentFromData(a,o)})}},t.prototype.getTooltipAxes=function(e){var n=[],r=[];return q(this.getCartesians(),function(a){var i=e!=null&&e!=="auto"?a.getAxis(e):a.getBaseAxis(),o=a.getOtherAxis(i);bn(n,i)<0&&n.push(i),bn(r,o)<0&&r.push(o)}),{baseAxes:n,otherAxes:r}},t.create=function(e,n){var r=[];return e.eachComponent("grid",function(a,i){var o=new t(a,e,n);o.name="grid_"+i,o.resize(a,n,!0),a.coordinateSystem=o,r.push(o)}),e.eachSeries(function(a){if($H(a)){var i=PH(a),o=i.xAxisModel,s=i.yAxisModel,l=o.getCoordSysModel(),u=l.coordinateSystem;a.coordinateSystem=u.getCartesian(o.componentIndex,s.componentIndex)}}),r},t.dimensions=a3,t}();function YA(t,e){return t.getCoordSysModel()===e}function FH(t,e,n,r){n.getAxesOnZeroOf=function(){return i?[i]:[]};var a=t[e],i,o=n.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)zH(a[l])&&(i=a[l]);else for(var u in a)if(a.hasOwnProperty(u)&&zH(a[u])&&!r[c(a[u])]){i=a[u];break}i&&(r[c(i)]=!0);function c(f){return f.dim+"_"+f.index}}function zH(t){return t&&t.type!=="category"&&t.type!=="time"&&lTt(t)}function cDt(t,e){var n=t.getExtent(),r=n[0]+n[1];t.toGlobalCoord=t.dim==="x"?function(a){return a+e}:function(a){return r-a+e},t.toLocalCoord=t.dim==="x"?function(a){return a-e}:function(a){return r-a+e}}const fDt=uDt;var Cf=Math.PI,up=function(){function t(e,n){this.group=new en,this.opt=n,this.axisModel=e,Xt(n,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var r=new en({x:n.position[0],y:n.position[1],rotation:n.rotation});r.updateTransform(),this._transformGroup=r}return t.prototype.hasBuilder=function(e){return!!UH[e]},t.prototype.add=function(e){UH[e](this.opt,this.axisModel,this.group,this._transformGroup)},t.prototype.getGroup=function(){return this.group},t.innerTextLayout=function(e,n,r){var a=cI(n-e),i,o;return K1(a)?(o=r>0?"top":"bottom",i="center"):K1(a-Cf)?(o=r>0?"bottom":"top",i="center"):(o="middle",a>0&&a<Cf?i=r>0?"right":"left":i=r>0?"left":"right"),{rotation:a,textAlign:i,textVerticalAlign:o}},t.makeAxisEventDataBase=function(e){var n={componentType:e.mainType,componentIndex:e.componentIndex};return n[e.mainType+"Index"]=e.componentIndex,n},t.isLabelSilent=function(e){var n=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||n&&n.show)},t}(),UH={axisLine:function(t,e,n,r){var a=e.get(["axisLine","show"]);if(a==="auto"&&t.handleAutoShown&&(a=t.handleAutoShown("axisLine")),!!a){var i=e.axis.getExtent(),o=r.transform,s=[i[0],0],l=[i[1],0],u=s[0]>l[0];o&&(ai(s,s,o),ai(l,l,o));var c=et({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),f=new Ga({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1});n0(f.shape,f.style.lineWidth),f.anid="line",n.add(f);var d=e.get(["axisLine","symbol"]);if(d!=null){var h=e.get(["axisLine","symbolSize"]);Ot(d)&&(d=[d,d]),(Ot(h)||Un(h))&&(h=[h,h]);var p=zp(e.get(["axisLine","symbolOffset"])||0,h),v=h[0],g=h[1];q([{rotate:t.rotation+Math.PI/2,offset:p[0],r:0},{rotate:t.rotation-Math.PI/2,offset:p[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(y,m){if(d[m]!=="none"&&d[m]!=null){var S=ba(d[m],-v/2,-g/2,v,g,c.stroke,!0),w=y.r+y.offset,C=u?l:s;S.attr({rotation:y.rotate,x:C[0]+w*Math.cos(t.rotation),y:C[1]-w*Math.sin(t.rotation),silent:!0,z2:11}),n.add(S)}})}}},axisTickLabel:function(t,e,n,r){var a=pDt(n,r,e,t),i=gDt(n,r,e,t);if(hDt(e,i,a),vDt(n,r,e,t.tickDirection),e.get(["axisLabel","hideOverlap"])){var o=Ole(ut(i,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));Ile(o)}},axisName:function(t,e,n,r){var a=Ua(t.axisName,e.get("name"));if(a){var i=e.get("nameLocation"),o=t.nameDirection,s=e.getModel("nameTextStyle"),l=e.get("nameGap")||0,u=e.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,HH(i)?t.labelOffset+o*l:0],d,h=e.get("nameRotate");h!=null&&(h=h*Cf/180);var p;HH(i)?d=up.innerTextLayout(t.rotation,h??t.rotation,o):(d=dDt(t.rotation,i,h||0,u),p=t.axisNameAvailableWidth,p!=null&&(p=Math.abs(p/Math.sin(d.rotation)),!isFinite(p)&&(p=null)));var v=s.getFont(),g=e.get("nameTruncate",!0)||{},y=g.ellipsis,m=Ua(t.nameTruncateMaxWidth,g.maxWidth,p),S=new Bn({x:f[0],y:f[1],rotation:d.rotation,silent:up.isLabelSilent(e),style:Dr(s,{text:a,font:v,overflow:"truncate",width:m,ellipsis:y,fill:s.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:s.get("align")||d.textAlign,verticalAlign:s.get("verticalAlign")||d.textVerticalAlign}),z2:1});if(O0({el:S,componentModel:e,itemName:a}),S.__fullText=a,S.anid="name",e.get("triggerEvent")){var w=up.makeAxisEventDataBase(e);w.targetType="axisName",w.name=a,ln(S).eventData=w}r.add(S),S.updateTransform(),n.add(S),S.decomposeTransform()}}};function dDt(t,e,n,r){var a=cI(n-t),i,o,s=r[0]>r[1],l=e==="start"&&!s||e!=="start"&&s;return K1(a-Cf/2)?(o=l?"bottom":"top",i="center"):K1(a-Cf*1.5)?(o=l?"top":"bottom",i="center"):(o="middle",a<Cf*1.5&&a>Cf/2?i=l?"left":"right":i=l?"right":"left"),{rotation:a,textAlign:i,textVerticalAlign:o}}function hDt(t,e,n){if(!wle(t.axis)){var r=t.get(["axisLabel","showMinLabel"]),a=t.get(["axisLabel","showMaxLabel"]);e=e||[],n=n||[];var i=e[0],o=e[1],s=e[e.length-1],l=e[e.length-2],u=n[0],c=n[1],f=n[n.length-1],d=n[n.length-2];r===!1?(Jo(i),Jo(u)):GH(i,o)&&(r?(Jo(o),Jo(c)):(Jo(i),Jo(u))),a===!1?(Jo(s),Jo(f)):GH(l,s)&&(a?(Jo(l),Jo(d)):(Jo(s),Jo(f)))}}function Jo(t){t&&(t.ignore=!0)}function GH(t,e){var n=t&&t.getBoundingRect().clone(),r=e&&e.getBoundingRect().clone();if(!(!n||!r)){var a=Jb([]);return fd(a,a,-t.rotation),n.applyTransform(lu([],a,t.getLocalTransform())),r.applyTransform(lu([],a,e.getLocalTransform())),n.intersect(r)}}function HH(t){return t==="middle"||t==="center"}function gue(t,e,n,r,a){for(var i=[],o=[],s=[],l=0;l<t.length;l++){var u=t[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=n,e&&(ai(o,o,e),ai(s,s,e));var c=new Ga({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:r,z2:2,autoBatch:!0,silent:!0});n0(c.shape,c.style.lineWidth),c.anid=a+"_"+t[l].tickValue,i.push(c)}return i}function pDt(t,e,n,r){var a=n.axis,i=n.getModel("axisTick"),o=i.get("show");if(o==="auto"&&r.handleAutoShown&&(o=r.handleAutoShown("axisTick")),!(!o||a.scale.isBlank())){for(var s=i.getModel("lineStyle"),l=r.tickDirection*i.get("length"),u=a.getTicksCoords(),c=gue(u,e.transform,l,Xt(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),f=0;f<c.length;f++)t.add(c[f]);return c}}function vDt(t,e,n,r){var a=n.axis,i=n.getModel("minorTick");if(!(!i.get("show")||a.scale.isBlank())){var o=a.getMinorTicksCoords();if(o.length)for(var s=i.getModel("lineStyle"),l=r*i.get("length"),u=Xt(s.getLineStyle(),Xt(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),c=0;c<o.length;c++)for(var f=gue(o[c],e.transform,l,u,"minorticks_"+c),d=0;d<f.length;d++)t.add(f[d])}}function gDt(t,e,n,r){var a=n.axis,i=Ua(r.axisLabelShow,n.get(["axisLabel","show"]));if(!(!i||a.scale.isBlank())){var o=n.getModel("axisLabel"),s=o.get("margin"),l=a.getViewLabels(),u=(Ua(r.labelRotate,o.get("rotate"))||0)*Cf/180,c=up.innerTextLayout(r.rotation,u,r.labelDirection),f=n.getCategories&&n.getCategories(!0),d=[],h=up.isLabelSilent(n),p=n.get("triggerEvent");return q(l,function(v,g){var y=a.scale.type==="ordinal"?a.scale.getRawOrdinalNumber(v.tickValue):v.tickValue,m=v.formattedLabel,S=v.rawLabel,w=o;if(f&&f[y]){var C=f[y];qt(C)&&C.textStyle&&(w=new yr(C.textStyle,o,n.ecModel))}var _=w.getTextColor()||n.get(["axisLine","lineStyle","color"]),x=a.dataToCoord(y),T=new Bn({x,y:r.labelOffset+r.labelDirection*s,rotation:c.rotation,silent:h,z2:10+(v.level||0),style:Dr(w,{text:m,align:w.getShallow("align",!0)||c.textAlign,verticalAlign:w.getShallow("verticalAlign",!0)||w.getShallow("baseline",!0)||c.textVerticalAlign,fill:jt(_)?_(a.type==="category"?S:a.type==="value"?y+"":y,g):_})});if(T.anid="label_"+y,p){var M=up.makeAxisEventDataBase(n);M.targetType="axisLabel",M.value=S,M.tickIndex=g,a.type==="category"&&(M.dataIndex=y),ln(T).eventData=M}e.add(T),T.updateTransform(),d.push(T),t.add(T),T.decomposeTransform()}),d}}const gc=up;function yDt(t,e){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return mDt(n,t,e),n.seriesInvolved&&SDt(n,t),n}function mDt(t,e,n){var r=e.getComponent("tooltip"),a=e.getComponent("axisPointer"),i=a.get("link",!0)||[],o=[];q(n.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=ub(s.model),u=t.coordSysAxesInfo[l]={};t.coordSysMap[l]=s;var c=s.model,f=c.getModel("tooltip",r);if(q(s.getAxes(),sn(v,!1,null)),s.getTooltipAxes&&r&&f.get("show")){var d=f.get("trigger")==="axis",h=f.get(["axisPointer","type"])==="cross",p=s.getTooltipAxes(f.get(["axisPointer","axis"]));(d||h)&&q(p.baseAxes,sn(v,h?"cross":!0,d)),h&&q(p.otherAxes,sn(v,"cross",!1))}function v(g,y,m){var S=m.model.getModel("axisPointer",a),w=S.get("show");if(!(!w||w==="auto"&&!g&&!o3(S))){y==null&&(y=S.get("triggerTooltip")),S=g?bDt(m,f,a,e,g,y):S;var C=S.get("snap"),_=S.get("triggerEmphasis"),x=ub(m.model),T=y||C||m.type==="category",M=t.axesInfo[x]={key:x,axis:m,coordSys:s,axisPointerModel:S,triggerTooltip:y,triggerEmphasis:_,involveSeries:T,snap:C,useHandle:o3(S),seriesModels:[],linkGroup:null};u[x]=M,t.seriesInvolved=t.seriesInvolved||T;var E=wDt(i,m);if(E!=null){var A=o[E]||(o[E]={axesInfo:{}});A.axesInfo[x]=M,A.mapper=i[E].mapper,M.linkGroup=A}}}})}function bDt(t,e,n,r,a,i){var o=e.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};q(s,function(d){l[d]=Zt(o.get(d))}),l.snap=t.type!=="category"&&!!i,o.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),a==="cross"){var c=o.get(["label","show"]);if(u.show=c??!0,!i){var f=l.lineStyle=o.get("crossStyle");f&&Xt(u,f.textStyle)}}return t.model.getModel("axisPointer",new yr(l,n,r))}function SDt(t,e){e.eachSeries(function(n){var r=n.coordinateSystem,a=n.get(["tooltip","trigger"],!0),i=n.get(["tooltip","show"],!0);!r||a==="none"||a===!1||a==="item"||i===!1||n.get(["axisPointer","show"],!0)===!1||q(t.coordSysAxesInfo[ub(r.model)],function(o){var s=o.axis;r.getAxis(s.dim)===s&&(o.seriesModels.push(n),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=n.getData().count())})})}function wDt(t,e){for(var n=e.model,r=e.dim,a=0;a<t.length;a++){var i=t[a]||{};if(XA(i[r+"AxisId"],n.id)||XA(i[r+"AxisIndex"],n.componentIndex)||XA(i[r+"AxisName"],n.name))return a}}function XA(t,e){return t==="all"||st(t)&&bn(t,e)>=0||t===e}function xDt(t){var e=SB(t);if(e){var n=e.axisPointerModel,r=e.axis.scale,a=n.option,i=n.get("status"),o=n.get("value");o!=null&&(o=r.parse(o));var s=o3(n);i==null&&(a.status=s?"show":"hide");var l=r.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),a.value=o,s&&(a.status=e.axis.scale.isBlank()?"hide":"show")}}function SB(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[ub(t)]}function _Dt(t){var e=SB(t);return e&&e.axisPointerModel}function o3(t){return!!t.get(["handle","show"])}function ub(t){return t.type+"||"+t.id}var WH={},CDt=function(t){Fe(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.render=function(n,r,a,i){this.axisPointerClass&&xDt(n),t.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(n,a,!0)},e.prototype.updateAxisPointer=function(n,r,a,i){this._doUpdateAxisPointerClass(n,a,!1)},e.prototype.remove=function(n,r){var a=this._axisPointer;a&&a.remove(r)},e.prototype.dispose=function(n,r){this._disposeAxisPointer(r),t.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(n,r,a){var i=e.getAxisPointerClass(this.axisPointerClass);if(i){var o=_Dt(n);o?(this._axisPointer||(this._axisPointer=new i)).render(n,o,r,a):this._disposeAxisPointer(r)}},e.prototype._disposeAxisPointer=function(n){this._axisPointer&&this._axisPointer.dispose(n),this._axisPointer=null},e.registerAxisPointerClass=function(n,r){WH[n]=r},e.getAxisPointerClass=function(n){return n&&WH[n]},e.type="axis",e}(jr);const Gp=CDt;var s3=Gn();function yue(t,e,n,r){var a=n.axis;if(!a.scale.isBlank()){var i=n.getModel("splitArea"),o=i.getModel("areaStyle"),s=o.get("color"),l=r.coordinateSystem.getRect(),u=a.getTicksCoords({tickModel:i,clamp:!0});if(u.length){var c=s.length,f=s3(t).splitAreaColors,d=Gt(),h=0;if(f)for(var p=0;p<u.length;p++){var v=f.get(u[p].tickValue);if(v!=null){h=(v+(c-1)*p)%c;break}}var g=a.toGlobalCoord(u[0].coord),y=o.getAreaStyle();s=st(s)?s:[s];for(var p=1;p<u.length;p++){var m=a.toGlobalCoord(u[p].coord),S=void 0,w=void 0,C=void 0,_=void 0;a.isHorizontal()?(S=g,w=l.y,C=m-S,_=l.height,g=S+C):(S=l.x,w=g,C=l.width,_=m-w,g=w+_);var x=u[p-1].tickValue;x!=null&&d.set(x,h),e.add(new $n({anid:x!=null?"area_"+x:null,shape:{x:S,y:w,width:C,height:_},style:Xt({fill:s[h]},y),autoBatch:!0,silent:!0})),h=(h+1)%c}s3(t).splitAreaColors=d}}}function mue(t){s3(t).splitAreaColors=null}var TDt=["axisLine","axisTickLabel","axisName"],EDt=["splitArea","splitLine","minorSplitLine"],bue=function(t){Fe(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="CartesianAxisPointer",n}return e.prototype.render=function(n,r,a,i){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new en,this.group.add(this._axisGroup),!!n.get("show")){var s=n.getCoordSysModel(),l=i3(s,n),u=new gc(n,et({handleAutoShown:function(f){for(var d=s.coordinateSystem.getCartesians(),h=0;h<d.length;h++)if(qO(d[h].getOtherAxis(n.axis).scale))return!0;return!1}},l));q(TDt,u.add,u),this._axisGroup.add(u.getGroup()),q(EDt,function(f){n.get([f,"show"])&&MDt[f](this,this._axisGroup,n,s)},this);var c=i&&i.type==="changeAxisOrder"&&i.isInitSort;c||sS(o,this._axisGroup,n),t.prototype.render.call(this,n,r,a,i)}},e.prototype.remove=function(){mue(this)},e.type="cartesianAxis",e}(Gp),MDt={splitLine:function(t,e,n,r){var a=n.axis;if(!a.scale.isBlank()){var i=n.getModel("splitLine"),o=i.getModel("lineStyle"),s=o.get("color");s=st(s)?s:[s];for(var l=r.coordinateSystem.getRect(),u=a.isHorizontal(),c=0,f=a.getTicksCoords({tickModel:i}),d=[],h=[],p=o.getLineStyle(),v=0;v<f.length;v++){var g=a.toGlobalCoord(f[v].coord);u?(d[0]=g,d[1]=l.y,h[0]=g,h[1]=l.y+l.height):(d[0]=l.x,d[1]=g,h[0]=l.x+l.width,h[1]=g);var y=c++%s.length,m=f[v].tickValue,S=new Ga({anid:m!=null?"line_"+f[v].tickValue:null,autoBatch:!0,shape:{x1:d[0],y1:d[1],x2:h[0],y2:h[1]},style:Xt({stroke:s[y]},p),silent:!0});n0(S.shape,p.lineWidth),e.add(S)}}},minorSplitLine:function(t,e,n,r){var a=n.axis,i=n.getModel("minorSplitLine"),o=i.getModel("lineStyle"),s=r.coordinateSystem.getRect(),l=a.isHorizontal(),u=a.getMinorTicksCoords();if(u.length)for(var c=[],f=[],d=o.getLineStyle(),h=0;h<u.length;h++)for(var p=0;p<u[h].length;p++){var v=a.toGlobalCoord(u[h][p].coord);l?(c[0]=v,c[1]=s.y,f[0]=v,f[1]=s.y+s.height):(c[0]=s.x,c[1]=v,f[0]=s.x+s.width,f[1]=v);var g=new Ga({anid:"minor_line_"+u[h][p].tickValue,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:f[0],y2:f[1]},style:d,silent:!0});n0(g.shape,d.lineWidth),e.add(g)}},splitArea:function(t,e,n,r){yue(t,e,n,r)}},Sue=function(t){Fe(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.type="xAxis",e}(bue),DDt=function(t){Fe(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=Sue.type,n}return e.type="yAxis",e}(bue),ADt=function(t){Fe(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="grid",n}return e.prototype.render=function(n,r){this.group.removeAll(),n.get("show")&&this.group.add(new $n({shape:n.coordinateSystem.getRect(),style:Xt({fill:n.get("backgroundColor")},n.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e}(jr),jH={offset:0};function wue(t){t.registerComponentView(ADt),t.registerComponentModel(JMt),t.registerCoordinateSystem("cartesian2d",fDt),o0(t,"x",r3,jH),o0(t,"y",r3,jH),t.registerComponentView(Sue),t.registerComponentView(DDt),t.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}function kDt(t){wn(wue),t.registerSeriesModel(WMt),t.registerChartView(ZMt),t.registerLayout(vS("scatter"))}function RDt(t){t.eachSeriesByType("radar",function(e){var n=e.getData(),r=[],a=e.coordinateSystem;if(a){var i=a.getIndicatorAxes();q(i,function(o,s){n.each(n.mapDimension(i[s].dim),function(l,u){r[u]=r[u]||[];var c=a.dataToPoint(l,s);r[u][s]=KH(c)?c:YH(a)})}),n.each(function(o){var s=Mae(r[o],function(l){return KH(l)})||YH(a);r[o].push(s.slice()),n.setItemLayout(o,r[o])})}})}function KH(t){return!isNaN(t[0])&&!isNaN(t[1])}function YH(t){return[t.cx,t.cy]}function LDt(t){var e=t.polar;if(e){st(e)||(e=[e]);var n=[];q(e,function(r,a){r.indicator?(r.type&&!r.shape&&(r.shape=r.type),t.radar=t.radar||[],st(t.radar)||(t.radar=[t.radar]),t.radar.push(r)):n.push(r)}),t.polar=n}q(t.series,function(r){r&&r.type==="radar"&&r.polarIndex&&(r.radarIndex=r.polarIndex)})}var ODt=function(t){Fe(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.render=function(n,r,a){var i=n.coordinateSystem,o=this.group,s=n.getData(),l=this._data;function u(d,h){var p=d.getItemVisual(h,"symbol")||"circle";if(p!=="none"){var v=U0(d.getItemVisual(h,"symbolSize")),g=ba(p,-1,-1,2,2),y=d.getItemVisual(h,"symbolRotate")||0;return g.attr({style:{strokeNoScale:!0},z2:100,scaleX:v[0]/2,scaleY:v[1]/2,rotation:y*Math.PI/180||0}),g}}function c(d,h,p,v,g,y){p.removeAll();for(var m=0;m<h.length-1;m++){var S=u(v,g);S&&(S.__dimIdx=m,d[m]?(S.setPosition(d[m]),lS[y?"initProps":"updateProps"](S,{x:h[m][0],y:h[m][1]},n,g)):S.setPosition(h[m]),p.add(S))}}function f(d){return ut(d,function(h){return[i.cx,i.cy]})}s.diff(l).add(function(d){var h=s.getItemLayout(d);if(h){var p=new lo,v=new fo,g={shape:{points:h}};p.shape.points=f(h),v.shape.points=f(h),Ur(p,g,n,d),Ur(v,g,n,d);var y=new en,m=new en;y.add(v),y.add(p),y.add(m),c(v.shape.points,h,m,s,d,!0),s.setItemGraphicEl(d,y)}}).update(function(d,h){var p=l.getItemGraphicEl(h),v=p.childAt(0),g=p.childAt(1),y=p.childAt(2),m={shape:{points:s.getItemLayout(d)}};m.shape.points&&(c(v.shape.points,m.shape.points,y,s,d,!1),xl(g),xl(v),jn(v,m,n),jn(g,m,n),s.setItemGraphicEl(d,p))}).remove(function(d){o.remove(l.getItemGraphicEl(d))}).execute(),s.eachItemGraphicEl(function(d,h){var p=s.getItemModel(h),v=d.childAt(0),g=d.childAt(1),y=d.childAt(2),m=s.getItemVisual(h,"style"),S=m.fill;o.add(d),v.useStyle(Xt(p.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:S})),bi(v,p,"lineStyle"),bi(g,p,"areaStyle");var w=p.getModel("areaStyle"),C=w.isEmpty()&&w.parentModel.isEmpty();g.ignore=C,q(["emphasis","select","blur"],function(T){var M=p.getModel([T,"areaStyle"]),E=M.isEmpty()&&M.parentModel.isEmpty();g.ensureState(T).ignore=E&&C}),g.useStyle(Xt(w.getAreaStyle(),{fill:S,opacity:.7,decal:m.decal}));var _=p.getModel("emphasis"),x=_.getModel("itemStyle").getItemStyle();y.eachChild(function(T){if(T instanceof si){var M=T.style;T.useStyle(et({image:M.image,x:M.x,y:M.y,width:M.width,height:M.height},m))}else T.useStyle(m),T.setColor(S),T.style.strokeNoScale=!0;var E=T.ensureState("emphasis");E.style=Zt(x);var A=s.getStore().get(s.getDimensionIndex(T.__dimIdx),h);(A==null||isNaN(A))&&(A=""),Si(T,Ka(p),{labelFetcher:s.hostModel,labelDataIndex:h,labelDimIndex:T.__dimIdx,defaultText:A,inheritColor:S,defaultOpacity:m.opacity})}),ua(d,_.get("focus"),_.get("blurScope"),_.get("disabled"))}),this._data=s},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.type="radar",e}(br);const VDt=ODt;var NDt=function(t){Fe(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return e.prototype.init=function(n){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new yS(Nt(this.getData,this),Nt(this.getRawData,this))},e.prototype.getInitialData=function(n,r){return W0(this,{generateCoord:"indicator_",generateCoordCount:1/0})},e.prototype.formatTooltip=function(n,r,a){var i=this.getData(),o=this.coordinateSystem,s=o.getIndicatorAxes(),l=this.getData().getName(n),u=l===""?this.name:l,c=pse(this,n);return Ya("section",{header:u,sortBlocks:!0,blocks:ut(s,function(f){var d=i.get(i.mapDimension(f.dim),n);return Ya("nameValue",{markerType:"subItem",markerColor:c,name:f.name,value:d,sortParam:d})})})},e.prototype.getTooltipPosition=function(n){if(n!=null){for(var r=this.getData(),a=this.coordinateSystem,i=r.getValues(ut(a.dimensions,function(u){return r.mapDimension(u)}),n),o=0,s=i.length;o<s;o++)if(!isNaN(i[o])){var l=a.getIndicatorAxes();return a.coordToPoint(l[o].dataToCoord(i[o]),o)}}},e.type="series.radar",e.dependencies=["radar"],e.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},e}(Vr);const IDt=NDt;var Ny=pue.value;function gx(t,e){return Xt({show:e},t)}var BDt=function(t){Fe(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.optionUpdated=function(){var n=this.get("boundaryGap"),r=this.get("splitNumber"),a=this.get("scale"),i=this.get("axisLine"),o=this.get("axisTick"),s=this.get("axisLabel"),l=this.get("axisName"),u=this.get(["axisName","show"]),c=this.get(["axisName","formatter"]),f=this.get("axisNameGap"),d=this.get("triggerEvent"),h=ut(this.get("indicator")||[],function(p){p.max!=null&&p.max>0&&!p.min?p.min=0:p.min!=null&&p.min<0&&!p.max&&(p.max=0);var v=l;p.color!=null&&(v=Xt({color:p.color},l));var g=hn(Zt(p),{boundaryGap:n,splitNumber:r,scale:a,axisLine:i,axisTick:o,axisLabel:s,name:p.text,showName:u,nameLocation:"end",nameGap:f,nameTextStyle:v,triggerEvent:d},!1);if(Ot(c)){var y=g.name;g.name=c.replace("{value}",y??"")}else jt(c)&&(g.name=c(g.name,g));var m=new yr(g,null,this.ecModel);return ha(m,H0.prototype),m.mainType="radar",m.componentIndex=this.componentIndex,m},this);this._indicatorModels=h},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type="radar",e.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:hn({lineStyle:{color:"#bbb"}},Ny.axisLine),axisLabel:gx(Ny.axisLabel,!1),axisTick:gx(Ny.axisTick,!1),splitLine:gx(Ny.splitLine,!0),splitArea:gx(Ny.splitArea,!0),indicator:[]},e}(On);const $Dt=BDt;var PDt=["axisLine","axisTickLabel","axisName"],FDt=function(t){Fe(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.render=function(n,r,a){var i=this.group;i.removeAll(),this._buildAxes(n),this._buildSplitLineAndArea(n)},e.prototype._buildAxes=function(n){var r=n.coordinateSystem,a=r.getIndicatorAxes(),i=ut(a,function(o){var s=o.model.get("showName")?o.name:"",l=new gc(o.model,{axisName:s,position:[r.cx,r.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});q(i,function(o){q(PDt,o.add,o),this.group.add(o.getGroup())},this)},e.prototype._buildSplitLineAndArea=function(n){var r=n.coordinateSystem,a=r.getIndicatorAxes();if(!a.length)return;var i=n.get("shape"),o=n.getModel("splitLine"),s=n.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"),p=st(d)?d:[d],v=st(h)?h:[h],g=[],y=[];function m(P,F,$){var W=$%F.length;return P[W]=P[W]||[],W}if(i==="circle")for(var S=a[0].getTicksCoords(),w=r.cx,C=r.cy,_=0;_<S.length;_++){if(c){var x=m(g,p,_);g[x].push(new wl({shape:{cx:w,cy:C,r:S[_].coord}}))}if(f&&_<S.length-1){var x=m(y,v,_);y[x].push(new aS({shape:{cx:w,cy:C,r0:S[_].coord,r:S[_+1].coord}}))}}else for(var T,M=ut(a,function(P,F){var $=P.getTicksCoords();return T=T==null?$.length-1:Math.min($.length-1,T),ut($,function(W){return r.coordToPoint(W.coord,F)})}),E=[],_=0;_<=T;_++){for(var A=[],k=0;k<a.length;k++)A.push(M[k][_]);if(A[0]&&A.push(A[0].slice()),c){var x=m(g,p,_);g[x].push(new fo({shape:{points:A}}))}if(f&&E){var x=m(y,v,_-1);y[x].push(new lo({shape:{points:A.concat(E)}}))}E=A.slice().reverse()}var L=l.getLineStyle(),I=u.getAreaStyle();q(y,function(P,F){this.group.add($o(P,{style:Xt({stroke:"none",fill:v[F%v.length]},I),silent:!0}))},this),q(g,function(P,F){this.group.add($o(P,{style:Xt({fill:"none",stroke:p[F%p.length]},L),silent:!0}))},this)},e.type="radar",e}(jr);const zDt=FDt;var UDt=function(t){Fe(e,t);function e(n,r,a){var i=t.call(this,n,r,a)||this;return i.type="value",i.angle=0,i.name="",i}return e}(Vs);const GDt=UDt;var HDt=function(){function t(e,n,r){this.dimensions=[],this._model=e,this._indicatorAxes=ut(e.getIndicatorModels(),function(a,i){var o="indicator_"+i,s=new GDt(o,new Qf);return s.name=a.get("name"),s.model=a,a.axis=s,this.dimensions.push(o),s},this),this.resize(e,r)}return t.prototype.getIndicatorAxes=function(){return this._indicatorAxes},t.prototype.dataToPoint=function(e,n){var r=this._indicatorAxes[n];return this.coordToPoint(r.dataToCoord(e),n)},t.prototype.coordToPoint=function(e,n){var r=this._indicatorAxes[n],a=r.angle,i=this.cx+e*Math.cos(a),o=this.cy-e*Math.sin(a);return[i,o]},t.prototype.pointToData=function(e){var n=e[0]-this.cx,r=e[1]-this.cy,a=Math.sqrt(n*n+r*r);n/=a,r/=a;for(var i=Math.atan2(-r,n),o=1/0,s,l=-1,u=0;u<this._indicatorAxes.length;u++){var c=this._indicatorAxes[u],f=Math.abs(i-c.angle);f<o&&(s=c,l=u,o=f)}return[l,+(s&&s.coordToData(a))]},t.prototype.resize=function(e,n){var r=e.get("center"),a=n.getWidth(),i=n.getHeight(),o=Math.min(a,i)/2;this.cx=Mt(r[0],a),this.cy=Mt(r[1],i),this.startAngle=e.get("startAngle")*Math.PI/180;var s=e.get("radius");(Ot(s)||Un(s))&&(s=[0,s]),this.r0=Mt(s[0],o),this.r=Mt(s[1],o),q(this._indicatorAxes,function(l,u){l.setExtent(this.r0,this.r);var c=this.startAngle+u*Math.PI*2/this._indicatorAxes.length;c=Math.atan2(Math.sin(c),Math.cos(c)),l.angle=c},this)},t.prototype.update=function(e,n){var r=this._indicatorAxes,a=this._model;q(r,function(s){s.scale.setExtent(1/0,-1/0)}),e.eachSeriesByType("radar",function(s,l){if(!(s.get("coordinateSystem")!=="radar"||e.getComponent("radar",s.get("radarIndex"))!==a)){var u=s.getData();q(r,function(c){c.scale.unionExtentFromData(u,u.mapDimension(c.dim))})}},this);var i=a.get("splitNumber"),o=new Qf;o.setExtent(0,i),o.setInterval(1),q(r,function(s,l){vue(s.scale,s.model,o)})},t.prototype.convertToPixel=function(e,n,r){return console.warn("Not implemented."),null},t.prototype.convertFromPixel=function(e,n,r){return console.warn("Not implemented."),null},t.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},t.create=function(e,n){var r=[];return e.eachComponent("radar",function(a){var i=new t(a,e,n);r.push(i),a.coordinateSystem=i}),e.eachSeriesByType("radar",function(a){a.get("coordinateSystem")==="radar"&&(a.coordinateSystem=r[a.get("radarIndex")||0])}),r},t.dimensions=[],t}();const WDt=HDt;function jDt(t){t.registerCoordinateSystem("radar",WDt),t.registerComponentModel($Dt),t.registerComponentView(zDt),t.registerVisual({seriesType:"radar",reset:function(e){var n=e.getData();n.each(function(r){n.setItemVisual(r,"legendIcon","roundRect")}),n.setVisual("legendIcon","roundRect")}})}function KDt(t){wn(jDt),t.registerChartView(VDt),t.registerSeriesModel(IDt),t.registerLayout(RDt),t.registerProcessor(gS("radar")),t.registerPreprocessor(LDt)}var XH="\0_ec_interaction_mutex";function YDt(t,e,n){var r=wB(t);r[e]=n}function XDt(t,e,n){var r=wB(t),a=r[e];a===n&&(r[e]=null)}function qH(t,e){return!!wB(t)[e]}function wB(t){return t[XH]||(t[XH]={})}Ml({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},fa);var qDt=function(t){Fe(e,t);function e(n){var r=t.call(this)||this;r._zr=n;var a=Nt(r._mousedownHandler,r),i=Nt(r._mousemoveHandler,r),o=Nt(r._mouseupHandler,r),s=Nt(r._mousewheelHandler,r),l=Nt(r._pinchHandler,r);return r.enable=function(u,c){this.disable(),this._opt=Xt(Zt(c)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),u==null&&(u=!0),(u===!0||u==="move"||u==="pan")&&(n.on("mousedown",a),n.on("mousemove",i),n.on("mouseup",o)),(u===!0||u==="scale"||u==="zoom")&&(n.on("mousewheel",s),n.on("pinch",l))},r.disable=function(){n.off("mousedown",a),n.off("mousemove",i),n.off("mouseup",o),n.off("mousewheel",s),n.off("pinch",l)},r}return e.prototype.isDragging=function(){return this._dragging},e.prototype.isPinching=function(){return this._pinching},e.prototype.setPointerChecker=function(n){this.pointerChecker=n},e.prototype.dispose=function(){this.disable()},e.prototype._mousedownHandler=function(n){if(!Ez(n)){for(var r=n.target;r;){if(r.draggable)return;r=r.__hostTarget||r.parent}var a=n.offsetX,i=n.offsetY;this.pointerChecker&&this.pointerChecker(n,a,i)&&(this._x=a,this._y=i,this._dragging=!0)}},e.prototype._mousemoveHandler=function(n){if(!(!this._dragging||!U_("moveOnMouseMove",n,this._opt)||n.gestureEvent==="pinch"||qH(this._zr,"globalPan"))){var r=n.offsetX,a=n.offsetY,i=this._x,o=this._y,s=r-i,l=a-o;this._x=r,this._y=a,this._opt.preventDefaultMouseMove&&fc(n.event),xue(this,"pan","moveOnMouseMove",n,{dx:s,dy:l,oldX:i,oldY:o,newX:r,newY:a,isAvailableBehavior:null})}},e.prototype._mouseupHandler=function(n){Ez(n)||(this._dragging=!1)},e.prototype._mousewheelHandler=function(n){var r=U_("zoomOnMouseWheel",n,this._opt),a=U_("moveOnMouseWheel",n,this._opt),i=n.wheelDelta,o=Math.abs(i),s=n.offsetX,l=n.offsetY;if(!(i===0||!r&&!a)){if(r){var u=o>3?1.4:o>1?1.2:1.1,c=i>0?u:1/u;qA(this,"zoom","zoomOnMouseWheel",n,{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);qA(this,"scrollMove","moveOnMouseWheel",n,{scrollDelta:d,originX:s,originY:l,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(n){if(!qH(this._zr,"globalPan")){var r=n.pinchScale>1?1.1:1/1.1;qA(this,"zoom",null,n,{scale:r,originX:n.pinchX,originY:n.pinchY,isAvailableBehavior:null})}},e}(ks);function qA(t,e,n,r,a){t.pointerChecker&&t.pointerChecker(r,a.originX,a.originY)&&(fc(r.event),xue(t,e,n,r,a))}function xue(t,e,n,r,a){a.isAvailableBehavior=Nt(U_,null,n,r),t.trigger(e,a)}function U_(t,e,n){var r=n[t];return!t||r&&(!Ot(r)||e.event[r+"Key"])}const mS=qDt;function xB(t,e,n){var r=t.target;r.x+=e,r.y+=n,r.dirty()}function _B(t,e,n,r){var a=t.target,i=t.zoomLimit,o=t.zoom=t.zoom||1;if(o*=e,i){var s=i.min||0,l=i.max||1/0;o=Math.max(Math.min(l,o),s)}var u=o/t.zoom;t.zoom=o,a.x-=(n-a.x)*(u-1),a.y-=(r-a.y)*(u-1),a.scaleX*=u,a.scaleY*=u,a.dirty()}var ZDt={axisPointer:1,tooltip:1,brush:1};function NE(t,e,n){var r=e.getComponentByElement(t.topTarget),a=r&&r.coordinateSystem;return r&&r!==n&&!ZDt.hasOwnProperty(r.mainType)&&a&&a.model!==n}function _ue(t){if(Ot(t)){var e=new DOMParser;t=e.parseFromString(t,"text/xml")}var n=t;for(n.nodeType===9&&(n=n.firstChild);n.nodeName.toLowerCase()!=="svg"||n.nodeType!==1;)n=n.nextSibling;return n}var ZA,TC={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"},ZH=Dn(TC),EC={"alignment-baseline":"textBaseline","stop-color":"stopColor"},QH=Dn(EC),QDt=function(){function t(){this._defs={},this._root=null}return t.prototype.parse=function(e,n){n=n||{};var r=_ue(e);this._defsUsePending=[];var a=new en;this._root=a;var i=[],o=r.getAttribute("viewBox")||"",s=parseFloat(r.getAttribute("width")||n.width),l=parseFloat(r.getAttribute("height")||n.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),Vo(r,a,null,!0,!1);for(var u=r.firstChild;u;)this._parseNode(u,a,i,null,!1,!1),u=u.nextSibling;tAt(this._defs,this._defsUsePending),this._defsUsePending=[];var c,f;if(o){var d=IE(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=Tue(c,{x:0,y:0,width:s,height:l}),!n.ignoreViewBox)){var h=a;a=new en,a.add(h),h.scaleX=h.scaleY=f.scale,h.x=f.x,h.y=f.y}return!n.ignoreRootClip&&s!=null&&l!=null&&a.setClipPath(new $n({shape:{x:0,y:0,width:s,height:l}})),{root:a,width:s,height:l,viewBoxRect:c,viewBoxTransform:f,named:i}},t.prototype._parseNode=function(e,n,r,a,i,o){var s=e.nodeName.toLowerCase(),l,u=a;if(s==="defs"&&(i=!0),s==="text"&&(o=!0),s==="defs"||s==="switch")l=n;else{if(!i){var c=ZA[s];if(c&&Bt(ZA,s)){l=c.call(this,e,n);var f=e.getAttribute("name");if(f){var d={name:f,namedFrom:null,svgNodeTagLower:s,el:l};r.push(d),s==="g"&&(u=d)}else a&&r.push({name:a.name,namedFrom:a,svgNodeTagLower:s,el:l});n.add(l)}}var h=JH[s];if(h&&Bt(JH,s)){var p=h.call(this,e),v=e.getAttribute("id");v&&(this._defs[v]=p)}}if(l&&l.isGroup)for(var g=e.firstChild;g;)g.nodeType===1?this._parseNode(g,l,r,u,i,o):g.nodeType===3&&o&&this._parseText(g,l),g=g.nextSibling},t.prototype._parseText=function(e,n){var r=new X1({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});es(n,r),Vo(e,r,this._defsUsePending,!1,!1),JDt(r,n);var a=r.style,i=a.fontSize;i&&i<9&&(a.fontSize=9,r.scaleX*=i/9,r.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=r.getBoundingRect();return this._textX+=s.width,n.add(r),r},t.internalField=function(){ZA={g:function(e,n){var r=new en;return es(n,r),Vo(e,r,this._defsUsePending,!1,!1),r},rect:function(e,n){var r=new $n;return es(n,r),Vo(e,r,this._defsUsePending,!1,!1),r.setShape({x:parseFloat(e.getAttribute("x")||"0"),y:parseFloat(e.getAttribute("y")||"0"),width:parseFloat(e.getAttribute("width")||"0"),height:parseFloat(e.getAttribute("height")||"0")}),r.silent=!0,r},circle:function(e,n){var r=new wl;return es(n,r),Vo(e,r,this._defsUsePending,!1,!1),r.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),r:parseFloat(e.getAttribute("r")||"0")}),r.silent=!0,r},line:function(e,n){var r=new Ga;return es(n,r),Vo(e,r,this._defsUsePending,!1,!1),r.setShape({x1:parseFloat(e.getAttribute("x1")||"0"),y1:parseFloat(e.getAttribute("y1")||"0"),x2:parseFloat(e.getAttribute("x2")||"0"),y2:parseFloat(e.getAttribute("y2")||"0")}),r.silent=!0,r},ellipse:function(e,n){var r=new hE;return es(n,r),Vo(e,r,this._defsUsePending,!1,!1),r.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),rx:parseFloat(e.getAttribute("rx")||"0"),ry:parseFloat(e.getAttribute("ry")||"0")}),r.silent=!0,r},polygon:function(e,n){var r=e.getAttribute("points"),a;r&&(a=nW(r));var i=new lo({shape:{points:a||[]},silent:!0});return es(n,i),Vo(e,i,this._defsUsePending,!1,!1),i},polyline:function(e,n){var r=e.getAttribute("points"),a;r&&(a=nW(r));var i=new fo({shape:{points:a||[]},silent:!0});return es(n,i),Vo(e,i,this._defsUsePending,!1,!1),i},image:function(e,n){var r=new si;return es(n,r),Vo(e,r,this._defsUsePending,!1,!1),r.setStyle({image:e.getAttribute("xlink:href")||e.getAttribute("href"),x:+e.getAttribute("x"),y:+e.getAttribute("y"),width:+e.getAttribute("width"),height:+e.getAttribute("height")}),r.silent=!0,r},text:function(e,n){var r=e.getAttribute("x")||"0",a=e.getAttribute("y")||"0",i=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0";this._textX=parseFloat(r)+parseFloat(i),this._textY=parseFloat(a)+parseFloat(o);var s=new en;return es(n,s),Vo(e,s,this._defsUsePending,!1,!0),s},tspan:function(e,n){var r=e.getAttribute("x"),a=e.getAttribute("y");r!=null&&(this._textX=parseFloat(r)),a!=null&&(this._textY=parseFloat(a));var i=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0",s=new en;return es(n,s),Vo(e,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(o),s},path:function(e,n){var r=e.getAttribute("d")||"",a=Jie(r);return es(n,a),Vo(e,a,this._defsUsePending,!1,!1),a.silent=!0,a}}}(),t}(),JH={lineargradient:function(t){var e=parseInt(t.getAttribute("x1")||"0",10),n=parseInt(t.getAttribute("y1")||"0",10),r=parseInt(t.getAttribute("x2")||"10",10),a=parseInt(t.getAttribute("y2")||"0",10),i=new k0(e,n,r,a);return eW(t,i),tW(t,i),i},radialgradient:function(t){var e=parseInt(t.getAttribute("cx")||"0",10),n=parseInt(t.getAttribute("cy")||"0",10),r=parseInt(t.getAttribute("r")||"0",10),a=new _I(e,n,r);return eW(t,a),tW(t,a),a}};function eW(t,e){var n=t.getAttribute("gradientUnits");n==="userSpaceOnUse"&&(e.global=!0)}function tW(t,e){for(var n=t.firstChild;n;){if(n.nodeType===1&&n.nodeName.toLocaleLowerCase()==="stop"){var r=n.getAttribute("offset"),a=void 0;r&&r.indexOf("%")>0?a=parseInt(r,10)/100:r?a=parseFloat(r):a=0;var i={};Cue(n,i,i);var o=i.stopColor||n.getAttribute("stop-color")||"#000000";e.colorStops.push({offset:a,color:o})}n=n.nextSibling}}function es(t,e){t&&t.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),Xt(e.__inheritedStyle,t.__inheritedStyle))}function nW(t){for(var e=IE(t),n=[],r=0;r<e.length;r+=2){var a=parseFloat(e[r]),i=parseFloat(e[r+1]);n.push([a,i])}return n}function Vo(t,e,n,r,a){var i=e,o=i.__inheritedStyle=i.__inheritedStyle||{},s={};t.nodeType===1&&(aAt(t,e),Cue(t,o,s),r||iAt(t,o,s)),i.style=i.style||{},o.fill!=null&&(i.style.fill=rW(i,"fill",o.fill,n)),o.stroke!=null&&(i.style.stroke=rW(i,"stroke",o.stroke,n)),q(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(l){o[l]!=null&&(i.style[l]=parseFloat(o[l]))}),q(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],function(l){o[l]!=null&&(i.style[l]=o[l])}),a&&(i.__selfStyle=s),o.lineDash&&(i.style.lineDash=ut(IE(o.lineDash),function(l){return parseFloat(l)})),(o.visibility==="hidden"||o.visibility==="collapse")&&(i.invisible=!0),o.display==="none"&&(i.ignore=!0)}function JDt(t,e){var n=e.__selfStyle;if(n){var r=n.textBaseline,a=r;!r||r==="auto"||r==="baseline"?a="alphabetic":r==="before-edge"||r==="text-before-edge"?a="top":r==="after-edge"||r==="text-after-edge"?a="bottom":(r==="central"||r==="mathematical")&&(a="middle"),t.style.textBaseline=a}var i=e.__inheritedStyle;if(i){var o=i.textAlign,s=o;o&&(o==="middle"&&(s="center"),t.style.textAlign=s)}}var eAt=/^url\(\s*#(.*?)\)/;function rW(t,e,n,r){var a=n&&n.match(eAt);if(a){var i=vs(a[1]);r.push([t,e,i]);return}return n==="none"&&(n=null),n}function tAt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r[0].style[r[1]]=t[r[2]]}}var nAt=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function IE(t){return t.match(nAt)||[]}var rAt=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,QA=Math.PI/180;function aAt(t,e){var n=t.getAttribute("transform");if(n){n=n.replace(/,/g," ");var r=[],a=null;n.replace(rAt,function(f,d,h){return r.push(d,h),""});for(var i=r.length-1;i>0;i-=2){var o=r[i],s=r[i-1],l=IE(o);switch(a=a||Wo(),s){case"translate":bl(a,a,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":rE(a,a,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":fd(a,a,-parseFloat(l[0])*QA);break;case"skewX":var u=Math.tan(parseFloat(l[0])*QA);lu(a,[1,0,u,1,0,0],a);break;case"skewY":var c=Math.tan(parseFloat(l[0])*QA);lu(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}}e.setLocalTransform(a)}}var aW=/([^\s:;]+)\s*:\s*([^:;]+)/g;function Cue(t,e,n){var r=t.getAttribute("style");if(r){aW.lastIndex=0;for(var a;(a=aW.exec(r))!=null;){var i=a[1],o=Bt(TC,i)?TC[i]:null;o&&(e[o]=a[2]);var s=Bt(EC,i)?EC[i]:null;s&&(n[s]=a[2])}}}function iAt(t,e,n){for(var r=0;r<ZH.length;r++){var a=ZH[r],i=t.getAttribute(a);i!=null&&(e[TC[a]]=i)}for(var r=0;r<QH.length;r++){var a=QH[r],i=t.getAttribute(a);i!=null&&(n[EC[a]]=i)}}function Tue(t,e){var n=e.width/t.width,r=e.height/t.height,a=Math.min(n,r);return{scale:a,x:-(t.x+t.width/2)*a+(e.x+e.width/2),y:-(t.y+t.height/2)*a+(e.y+e.height/2)}}function oAt(t,e){var n=new QDt;return n.parse(t,e)}var sAt=Gt(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),lAt=function(){function t(e,n){this.type="geoSVG",this._usedGraphicMap=Gt(),this._freedGraphics=[],this._mapName=e,this._parsedXML=_ue(n)}return t.prototype.load=function(){var e=this._firstGraphic;if(!e){e=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(e),this._boundingRect=this._firstGraphic.boundingRect.clone();var n=cAt(e.named),r=n.regions,a=n.regionsMap;this._regions=r,this._regionsMap=a}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},t.prototype._buildGraphic=function(e){var n,r;try{n=e&&oAt(e,{ignoreViewBox:!0,ignoreRootClip:!0})||{},r=n.root,Ii(r!=null)}catch(g){throw new Error(`Invalid svg format
  1148. `+g.message)}var a=new en;a.add(r),a.isGeoSVGGraphicRoot=!0;var i=n.width,o=n.height,s=n.viewBoxRect,l=this._boundingRect;if(!l){var u=void 0,c=void 0,f=void 0,d=void 0;if(i!=null?(u=0,f=i):s&&(u=s.x,f=s.width),o!=null?(c=0,d=o):s&&(c=s.y,d=s.height),u==null||c==null){var h=r.getBoundingRect();u==null&&(u=h.x,f=h.width),c==null&&(c=h.y,d=h.height)}l=this._boundingRect=new yn(u,c,f,d)}if(s){var p=Tue(s,l);r.scaleX=r.scaleY=p.scale,r.x=p.x,r.y=p.y}a.setClipPath(new $n({shape:l.plain()}));var v=[];return q(n.named,function(g){sAt.get(g.svgNodeTagLower)!=null&&(v.push(g),uAt(g.el))}),{root:a,boundingRect:l,named:v}},t.prototype.useGraphic=function(e){var n=this._usedGraphicMap,r=n.get(e);return r||(r=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),n.set(e,r),r)},t.prototype.freeGraphic=function(e){var n=this._usedGraphicMap,r=n.get(e);r&&(n.removeKey(e),this._freedGraphics.push(r))},t}();function uAt(t){t.silent=!1,t.isGroup&&t.traverse(function(e){e.silent=!1})}function cAt(t){var e=[],n=Gt();return q(t,function(r){if(r.namedFrom==null){var a=new wTt(r.name,r.el);e.push(a),n.set(r.name,a)}}),{regions:e,regionsMap:n}}var l3=[126,25],iW="南海诸岛",fh=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]];for(var ih=0;ih<fh.length;ih++)for(var Sv=0;Sv<fh[ih].length;Sv++)fh[ih][Sv][0]/=10.5,fh[ih][Sv][1]/=-10.5/.75,fh[ih][Sv][0]+=l3[0],fh[ih][Sv][1]+=l3[1];function fAt(t,e){if(t==="china"){for(var n=0;n<e.length;n++)if(e[n].name===iW)return;e.push(new _le(iW,ut(fh,function(r){return{type:"polygon",exterior:r}}),l3))}}var dAt={南海诸岛:[32,80],广东:[0,-10],香港:[10,5],澳门:[-10,10],天津:[5,5]};function hAt(t,e){if(t==="china"){var n=dAt[e.name];if(n){var r=e.getCenter();r[0]+=n[0]/10.5,r[1]+=-n[1]/(10.5/.75),e.setCenter(r)}}}var pAt=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function vAt(t,e){t==="china"&&e.name==="台湾"&&e.geometries.push({type:"polygon",exterior:pAt[0]})}var gAt="name",yAt=function(){function t(e,n,r){this.type="geoJSON",this._parsedMap=Gt(),this._mapName=e,this._specialAreas=r,this._geoJSON=bAt(n)}return t.prototype.load=function(e,n){n=n||gAt;var r=this._parsedMap.get(n);if(!r){var a=this._parseToRegions(n);r=this._parsedMap.set(n,{regions:a,boundingRect:mAt(a)})}var i=Gt(),o=[];return q(r.regions,function(s){var l=s.name;e&&Bt(e,l)&&(s=s.cloneShallow(l=e[l])),o.push(s),i.set(l,s)}),{regions:o,boundingRect:r.boundingRect||new yn(0,0,0,0),regionsMap:i}},t.prototype._parseToRegions=function(e){var n=this._mapName,r=this._geoJSON,a;try{a=r?QO(r,e):[]}catch(i){throw new Error(`Invalid geoJson format
  1149. `+i.message)}return fAt(n,a),q(a,function(i){var o=i.name;hAt(n,i),vAt(n,i);var s=this._specialAreas&&this._specialAreas[o];s&&i.transformTo(s.left,s.top,s.width,s.height)},this),a},t.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},t}();function mAt(t){for(var e,n=0;n<t.length;n++){var r=t[n].getBoundingRect();e=e||r.clone(),e.union(r)}return e}function bAt(t){return Ot(t)?typeof JSON<"u"&&JSON.parse?JSON.parse(t):new Function("return ("+t+");")():t}var Iy=Gt();const yc={registerMap:function(t,e,n){if(e.svg){var r=new lAt(t,e.svg);Iy.set(t,r)}else{var a=e.geoJson||e.geoJSON;a&&!e.features?n=e.specialAreas:a=e;var r=new yAt(t,a,n);Iy.set(t,r)}},getGeoResource:function(t){return Iy.get(t)},getMapForUser:function(t){var e=Iy.get(t);return e&&e.type==="geoJSON"&&e.getMapForUser()},load:function(t,e,n){var r=Iy.get(t);if(r)return r.load(e,n)}};var CB=["rect","circle","line","ellipse","polygon","polyline","path"],SAt=Gt(CB),wAt=Gt(CB.concat(["g"])),xAt=Gt(CB.concat(["g"])),Eue=Gn();function yx(t){var e=t.getItemStyle(),n=t.get("areaColor");return n!=null&&(e.fill=n),e}function oW(t){var e=t.style;e&&(e.stroke=e.stroke||e.fill,e.fill=null)}var _At=function(){function t(e){var n=new en;this.uid=N0("ec_map_draw"),this._controller=new mS(e.getZr()),this._controllerHost={target:n},this.group=n,n.add(this._regionsGroup=new en),n.add(this._svgGroup=new en)}return t.prototype.draw=function(e,n,r,a,i){var o=e.mainType==="geo",s=e.getData&&e.getData();o&&n.eachComponent({mainType:"series",subType:"map"},function(y){!s&&y.getHostGeoModel()===e&&(s=y.getData())});var l=e.coordinateSystem,u=this._regionsGroup,c=this.group,f=l.getTransformInfo(),d=f.raw,h=f.roam,p=!u.childAt(0)||i;p?(c.x=h.x,c.y=h.y,c.scaleX=h.scaleX,c.scaleY=h.scaleY,c.dirty()):jn(c,h,e);var v=s&&s.getVisual("visualMeta")&&s.getVisual("visualMeta").length>0,g={api:r,geo:l,mapOrGeoModel:e,data:s,isVisualEncodedByVisualMap:v,isGeo:o,transformInfoRaw:d};l.resourceType==="geoJSON"?this._buildGeoJSON(g):l.resourceType==="geoSVG"&&this._buildSVG(g),this._updateController(e,n,r),this._updateMapSelectHandler(e,u,r,a)},t.prototype._buildGeoJSON=function(e){var n=this._regionsGroupByName=Gt(),r=Gt(),a=this._regionsGroup,i=e.transformInfoRaw,o=e.mapOrGeoModel,s=e.data,l=e.geo.projection,u=l&&l.stream;function c(h,p){return p&&(h=p(h)),h&&[h[0]*i.scaleX+i.x,h[1]*i.scaleY+i.y]}function f(h){for(var p=[],v=!u&&l&&l.project,g=0;g<h.length;++g){var y=c(h[g],v);y&&p.push(y)}return p}function d(h){return{shape:{points:f(h)}}}a.removeAll(),q(e.geo.regions,function(h){var p=h.name,v=n.get(p),g=r.get(p)||{},y=g.dataIdx,m=g.regionModel;v||(v=n.set(p,new en),a.add(v),y=s?s.indexOfName(p):null,m=e.isGeo?o.getRegionModel(p):s?s.getItemModel(y):null,r.set(p,{dataIdx:y,regionModel:m}));var S=[],w=[];q(h.geometries,function(x){if(x.type==="polygon"){var T=[x.exterior].concat(x.interiors||[]);u&&(T=dW(T,u)),q(T,function(E){S.push(new lo(d(E)))})}else{var M=x.points;u&&(M=dW(M,u,!0)),q(M,function(E){w.push(new fo(d(E)))})}});var C=c(h.getCenter(),l&&l.project);function _(x,T){if(x.length){var M=new vE({culling:!0,segmentIgnoreThreshold:1,shape:{paths:x}});v.add(M),sW(e,M,y,m),lW(e,M,p,m,o,y,C),T&&(oW(M),q(M.states,oW))}}_(S),_(w,!0)}),n.each(function(h,p){var v=r.get(p),g=v.dataIdx,y=v.regionModel;uW(e,h,p,y,o,g),cW(e,h,p,y,o),fW(e,h,p,y,o)},this)},t.prototype._buildSVG=function(e){var n=e.geo.map,r=e.transformInfoRaw;this._svgGroup.x=r.x,this._svgGroup.y=r.y,this._svgGroup.scaleX=r.scaleX,this._svgGroup.scaleY=r.scaleY,this._svgResourceChanged(n)&&(this._freeSVG(),this._useSVG(n));var a=this._svgDispatcherMap=Gt(),i=!1;q(this._svgGraphicRecord.named,function(o){var s=o.name,l=e.mapOrGeoModel,u=e.data,c=o.svgNodeTagLower,f=o.el,d=u?u.indexOfName(s):null,h=l.getRegionModel(s);if(SAt.get(c)!=null&&f instanceof As&&sW(e,f,d,h),f instanceof As&&(f.culling=!0),f.z2EmphasisLift=0,!o.namedFrom&&(xAt.get(c)!=null&&lW(e,f,s,h,l,d,null),uW(e,f,s,h,l,d),cW(e,f,s,h,l),wAt.get(c)!=null)){var p=fW(e,f,s,h,l);p==="self"&&(i=!0);var v=a.get(s)||a.set(s,[]);v.push(f)}},this),this._enableBlurEntireSVG(i,e)},t.prototype._enableBlurEntireSVG=function(e,n){if(e&&n.isGeo){var r=n.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle(),a=r.opacity;this._svgGraphicRecord.root.traverse(function(i){if(!i.isGroup){_p(i);var o=i.ensureState("blur").style||{};o.opacity==null&&a!=null&&(o.opacity=a),i.ensureState("emphasis")}})}},t.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},t.prototype.findHighDownDispatchers=function(e,n){if(e==null)return[];var r=n.coordinateSystem;if(r.resourceType==="geoJSON"){var a=this._regionsGroupByName;if(a){var i=a.get(e);return i?[i]:[]}}else if(r.resourceType==="geoSVG")return this._svgDispatcherMap&&this._svgDispatcherMap.get(e)||[]},t.prototype._svgResourceChanged=function(e){return this._svgMapName!==e},t.prototype._useSVG=function(e){var n=yc.getGeoResource(e);if(n&&n.type==="geoSVG"){var r=n.useGraphic(this.uid);this._svgGroup.add(r.root),this._svgGraphicRecord=r,this._svgMapName=e}},t.prototype._freeSVG=function(){var e=this._svgMapName;if(e!=null){var n=yc.getGeoResource(e);n&&n.type==="geoSVG"&&n.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},t.prototype._updateController=function(e,n,r){var a=e.coordinateSystem,i=this._controller,o=this._controllerHost;o.zoomLimit=e.get("scaleLimit"),o.zoom=a.getZoom(),i.enable(e.get("roam")||!1);var s=e.mainType;function l(){var u={type:"geoRoam",componentType:s};return u[s+"Id"]=e.id,u}i.off("pan").on("pan",function(u){this._mouseDownFlag=!1,xB(o,u.dx,u.dy),r.dispatchAction(et(l(),{dx:u.dx,dy:u.dy,animation:{duration:0}}))},this),i.off("zoom").on("zoom",function(u){this._mouseDownFlag=!1,_B(o,u.scale,u.originX,u.originY),r.dispatchAction(et(l(),{zoom:u.scale,originX:u.originX,originY:u.originY,animation:{duration:0}}))},this),i.setPointerChecker(function(u,c,f){return a.containPoint([c,f])&&!NE(u,r,e)})},t.prototype.resetForLabelLayout=function(){this.group.traverse(function(e){var n=e.getTextContent();n&&(n.ignore=Eue(n).ignore)})},t.prototype._updateMapSelectHandler=function(e,n,r,a){var i=this;n.off("mousedown"),n.off("click"),e.get("selectedMode")&&(n.on("mousedown",function(){i._mouseDownFlag=!0}),n.on("click",function(o){i._mouseDownFlag&&(i._mouseDownFlag=!1)}))},t}();function sW(t,e,n,r){var a=r.getModel("itemStyle"),i=r.getModel(["emphasis","itemStyle"]),o=r.getModel(["blur","itemStyle"]),s=r.getModel(["select","itemStyle"]),l=yx(a),u=yx(i),c=yx(s),f=yx(o),d=t.data;if(d){var h=d.getItemVisual(n,"style"),p=d.getItemVisual(n,"decal");t.isVisualEncodedByVisualMap&&h.fill&&(l.fill=h.fill),p&&(l.decal=a0(p,t.api))}e.setStyle(l),e.style.strokeNoScale=!0,e.ensureState("emphasis").style=u,e.ensureState("select").style=c,e.ensureState("blur").style=f,_p(e)}function lW(t,e,n,r,a,i,o){var s=t.data,l=t.isGeo,u=s&&isNaN(s.get(s.mapDimension("value"),i)),c=s&&s.getItemLayout(i);if(l||u||c&&c.showLabel){var f=l?n:i,d=void 0;(!s||i>=0)&&(d=a);var h=o?{normal:{align:"center",verticalAlign:"middle"}}:null;Si(e,Ka(r),{labelFetcher:d,labelDataIndex:f,defaultText:n},h);var p=e.getTextContent();if(p&&(Eue(p).ignore=p.ignore,e.textConfig&&o)){var v=e.getBoundingRect().clone();e.textConfig.layoutRect=v,e.textConfig.position=[(o[0]-v.x)/v.width*100+"%",(o[1]-v.y)/v.height*100+"%"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function uW(t,e,n,r,a,i){t.data?t.data.setItemGraphicEl(i,e):ln(e).eventData={componentType:"geo",componentIndex:a.componentIndex,geoIndex:a.componentIndex,name:n,region:r&&r.option||{}}}function cW(t,e,n,r,a){t.data||O0({el:e,componentModel:a,itemName:n,itemTooltipOption:r.get("tooltip")})}function fW(t,e,n,r,a){e.highDownSilentOnTouch=!!a.get("selectedMode");var i=r.getModel("emphasis"),o=i.get("focus");return ua(e,o,i.get("blurScope"),i.get("disabled")),t.isGeo&&fwt(e,a,n),o}function dW(t,e,n){var r=[],a;function i(){a=[]}function o(){a.length&&(r.push(a),a=[])}var s=e({polygonStart:i,polygonEnd:o,lineStart:i,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&a.push([l,u])},sphere:function(){}});return!n&&s.polygonStart(),q(t,function(l){s.lineStart();for(var u=0;u<l.length;u++)s.point(l[u][0],l[u][1]);s.lineEnd()}),!n&&s.polygonEnd(),r}const Mue=_At;var CAt=function(t){Fe(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.render=function(n,r,a,i){if(!(i&&i.type==="mapToggleSelect"&&i.from===this.uid)){var o=this.group;if(o.removeAll(),!n.getHostGeoModel()){if(this._mapDraw&&i&&i.type==="geoRoam"&&this._mapDraw.resetForLabelLayout(),i&&i.type==="geoRoam"&&i.componentType==="series"&&i.seriesId===n.id){var s=this._mapDraw;s&&o.add(s.group)}else if(n.needsDrawMap){var s=this._mapDraw||new Mue(a);o.add(s.group),s.draw(n,r,a,this,i),this._mapDraw=s}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;n.get("showLegendSymbol")&&r.getComponent("legend")&&this._renderSymbols(n,r,a)}}},e.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},e.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},e.prototype._renderSymbols=function(n,r,a){var i=n.originalData,o=this.group;i.each(i.mapDimension("value"),function(s,l){if(!isNaN(s)){var u=i.getItemLayout(l);if(!(!u||!u.point)){var c=u.point,f=u.offset,d=new wl({style:{fill:n.getData().getVisual("style").fill},shape:{cx:c[0]+f*9,cy:c[1],r:3},silent:!0,z2:8+(f?0:A0+1)});if(!f){var h=n.mainSeries.getData(),p=i.getName(l),v=h.indexOfName(p),g=i.getItemModel(l),y=g.getModel("label"),m=h.getItemGraphicEl(v);Si(d,Ka(g),{labelFetcher:{getFormattedLabel:function(S,w){return n.getFormattedLabel(v,w)}},defaultText:p}),d.disableLabelAnimation=!0,y.get("position")||d.setTextConfig({position:"bottom"}),m.onHoverStateChange=function(S){nC(d,S)}}o.add(d)}}})},e.type="map",e}(br);const TAt=CAt;var EAt=function(t){Fe(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.needsDrawMap=!1,n.seriesGroup=[],n.getTooltipPosition=function(r){if(r!=null){var a=this.getData().getName(r),i=this.coordinateSystem,o=i.getRegion(a);return o&&i.dataToPoint(o.getCenter())}},n}return e.prototype.getInitialData=function(n){for(var r=W0(this,{coordDimensions:["value"],encodeDefaulter:sn($I,this)}),a=Gt(),i=[],o=0,s=r.count();o<s;o++){var l=r.getName(o);a.set(l,!0)}var u=yc.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return q(u.regions,function(c){var f=c.name;a.get(f)||i.push(f)}),r.appendValues([],i),r},e.prototype.getHostGeoModel=function(){var n=this.option.geoIndex;return n!=null?this.ecModel.getComponent("geo",n):null},e.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},e.prototype.getRawValue=function(n){var r=this.getData();return r.get(r.mapDimension("value"),n)},e.prototype.getRegionModel=function(n){var r=this.getData();return r.getItemModel(r.indexOfName(n))},e.prototype.formatTooltip=function(n,r,a){for(var i=this.getData(),o=this.getRawValue(n),s=i.getName(n),l=this.seriesGroup,u=[],c=0;c<l.length;c++){var f=l[c].originalData.indexOfName(s),d=i.mapDimension("value");isNaN(l[c].originalData.get(d,f))||u.push(l[c].name)}return Ya("section",{header:u.join(", "),noHeader:!u.length,blocks:[Ya("nameValue",{name:s,value:o})]})},e.prototype.setZoom=function(n){this.option.zoom=n},e.prototype.setCenter=function(n){this.option.center=n},e.prototype.getLegendIcon=function(n){var r=n.icon||"roundRect",a=ba(r,0,0,n.itemWidth,n.itemHeight,n.itemStyle.fill);return a.setStyle(n.itemStyle),a.style.stroke="none",r.indexOf("empty")>-1&&(a.style.stroke=a.style.fill,a.style.fill="#fff",a.style.lineWidth=2),a},e.type="series.map",e.dependencies=["geo"],e.layoutMode="box",e.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"},e}(Vr);const MAt=EAt;function DAt(t,e){var n={};return q(t,function(r){r.each(r.mapDimension("value"),function(a,i){var o="ec-"+r.getName(i);n[o]=n[o]||[],isNaN(a)||n[o].push(a)})}),t[0].map(t[0].mapDimension("value"),function(r,a){for(var i="ec-"+t[0].getName(a),o=0,s=1/0,l=-1/0,u=n[i].length,c=0;c<u;c++)s=Math.min(s,n[i][c]),l=Math.max(l,n[i][c]),o+=n[i][c];var f;return e==="min"?f=s:e==="max"?f=l:e==="average"?f=o/u:f=o,u===0?NaN:f})}function AAt(t){var e={};t.eachSeriesByType("map",function(n){var r=n.getHostGeoModel(),a=r?"o"+r.id:"i"+n.getMapType();(e[a]=e[a]||[]).push(n)}),q(e,function(n,r){for(var a=DAt(ut(n,function(o){return o.getData()}),n[0].get("mapValueCalculation")),i=0;i<n.length;i++)n[i].originalData=n[i].getData();for(var i=0;i<n.length;i++)n[i].seriesGroup=n,n[i].needsDrawMap=i===0&&!n[i].getHostGeoModel(),n[i].setData(a.cloneShallow()),n[i].mainSeries=n[0]})}function kAt(t){var e={};t.eachSeriesByType("map",function(n){var r=n.getMapType();if(!(n.getHostGeoModel()||e[r])){var a={};q(n.seriesGroup,function(o){var s=o.coordinateSystem,l=o.originalData;o.get("showLegendSymbol")&&t.getComponent("legend")&&l.each(l.mapDimension("value"),function(u,c){var f=l.getName(c),d=s.getRegion(f);if(!(!d||isNaN(u))){var h=a[f]||0,p=s.dataToPoint(d.getCenter());a[f]=h+1,l.setItemLayout(c,{point:p,offset:h})}})});var i=n.getData();i.each(function(o){var s=i.getName(o),l=i.getItemLayout(o)||{};l.showLabel=!a[s],i.setItemLayout(o,l)}),e[r]=!0}})}var hW=ai,RAt=function(t){Fe(e,t);function e(n){var r=t.call(this)||this;return r.type="view",r.dimensions=["x","y"],r._roamTransformable=new Qu,r._rawTransformable=new Qu,r.name=n,r}return e.prototype.setBoundingRect=function(n,r,a,i){return this._rect=new yn(n,r,a,i),this._rect},e.prototype.getBoundingRect=function(){return this._rect},e.prototype.setViewRect=function(n,r,a,i){this._transformTo(n,r,a,i),this._viewRect=new yn(n,r,a,i)},e.prototype._transformTo=function(n,r,a,i){var o=this.getBoundingRect(),s=this._rawTransformable;s.transform=o.calculateTransform(new yn(n,r,a,i));var l=s.parent;s.parent=null,s.decomposeTransform(),s.parent=l,this._updateTransform()},e.prototype.setCenter=function(n,r){n&&(this._center=[Mt(n[0],r.getWidth()),Mt(n[1],r.getHeight())],this._updateCenterAndZoom())},e.prototype.setZoom=function(n){n=n||1;var r=this.zoomLimit;r&&(r.max!=null&&(n=Math.min(r.max,n)),r.min!=null&&(n=Math.max(r.min,n))),this._zoom=n,this._updateCenterAndZoom()},e.prototype.getDefaultCenter=function(){var n=this.getBoundingRect(),r=n.x+n.width/2,a=n.y+n.height/2;return[r,a]},e.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},e.prototype.getZoom=function(){return this._zoom||1},e.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},e.prototype._updateCenterAndZoom=function(){var n=this._rawTransformable.getLocalTransform(),r=this._roamTransformable,a=this.getDefaultCenter(),i=this.getCenter(),o=this.getZoom();i=ai([],i,n),a=ai([],a,n),r.originX=i[0],r.originY=i[1],r.x=a[0]-i[0],r.y=a[1]-i[1],r.scaleX=r.scaleY=o,this._updateTransform()},e.prototype._updateTransform=function(){var n=this._roamTransformable,r=this._rawTransformable;r.parent=n,n.updateTransform(),r.updateTransform(),nE(this.transform||(this.transform=[]),r.transform||Wo()),this._rawTransform=r.getLocalTransform(),this.invTransform=this.invTransform||[],$p(this.invTransform,this.transform),this.decomposeTransform()},e.prototype.getTransformInfo=function(){var n=this._rawTransformable,r=this._roamTransformable,a=new Qu;return a.transform=r.transform,a.decomposeTransform(),{roam:{x:a.x,y:a.y,scaleX:a.scaleX,scaleY:a.scaleY},raw:{x:n.x,y:n.y,scaleX:n.scaleX,scaleY:n.scaleY}}},e.prototype.getViewRect=function(){return this._viewRect},e.prototype.getViewRectAfterRoam=function(){var n=this.getBoundingRect().clone();return n.applyTransform(this.transform),n},e.prototype.dataToPoint=function(n,r,a){var i=r?this._rawTransform:this.transform;return a=a||[],i?hW(a,n,i):Di(a,n)},e.prototype.pointToData=function(n){var r=this.invTransform;return r?hW([],n,r):[n[0],n[1]]},e.prototype.convertToPixel=function(n,r,a){var i=pW(r);return i===this?i.dataToPoint(a):null},e.prototype.convertFromPixel=function(n,r,a){var i=pW(r);return i===this?i.pointToData(a):null},e.prototype.containPoint=function(n){return this.getViewRectAfterRoam().contain(n[0],n[1])},e.dimensions=["x","y"],e}(Qu);function pW(t){var e=t.seriesModel;return e?e.coordinateSystem:null}const bS=RAt;var LAt={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},Due=["lng","lat"],Aue=function(t){Fe(e,t);function e(n,r,a){var i=t.call(this,n)||this;i.dimensions=Due,i.type="geo",i._nameCoordMap=Gt(),i.map=r;var o=a.projection,s=yc.load(r,a.nameMap,a.nameProperty),l=yc.getGeoResource(r);i.resourceType=l?l.type:null;var u=i.regions=s.regions,c=LAt[l.type];i._regionsMap=s.regionsMap,i.regions=s.regions,i.projection=o;var f;if(o)for(var d=0;d<u.length;d++){var h=u[d].getBoundingRect(o);f=f||h.clone(),f.union(h)}else f=s.boundingRect;return i.setBoundingRect(f.x,f.y,f.width,f.height),i.aspectScale=o?1:gn(a.aspectScale,c.aspectScale),i._invertLongitute=o?!1:c.invertLongitute,i}return e.prototype._transformTo=function(n,r,a,i){var o=this.getBoundingRect(),s=this._invertLongitute;o=o.clone(),s&&(o.y=-o.y-o.height);var l=this._rawTransformable;l.transform=o.calculateTransform(new yn(n,r,a,i));var u=l.parent;l.parent=null,l.decomposeTransform(),l.parent=u,s&&(l.scaleY=-l.scaleY),this._updateTransform()},e.prototype.getRegion=function(n){return this._regionsMap.get(n)},e.prototype.getRegionByCoord=function(n){for(var r=this.regions,a=0;a<r.length;a++){var i=r[a];if(i.type==="geoJSON"&&i.contain(n))return r[a]}},e.prototype.addGeoCoord=function(n,r){this._nameCoordMap.set(n,r)},e.prototype.getGeoCoord=function(n){var r=this._regionsMap.get(n);return this._nameCoordMap.get(n)||r&&r.getCenter()},e.prototype.dataToPoint=function(n,r,a){if(Ot(n)&&(n=this.getGeoCoord(n)),n){var i=this.projection;return i&&(n=i.project(n)),n&&this.projectedToPoint(n,r,a)}},e.prototype.pointToData=function(n){var r=this.projection;return r&&(n=r.unproject(n)),n&&this.pointToProjected(n)},e.prototype.pointToProjected=function(n){return t.prototype.pointToData.call(this,n)},e.prototype.projectedToPoint=function(n,r,a){return t.prototype.dataToPoint.call(this,n,r,a)},e.prototype.convertToPixel=function(n,r,a){var i=vW(r);return i===this?i.dataToPoint(a):null},e.prototype.convertFromPixel=function(n,r,a){var i=vW(r);return i===this?i.pointToData(a):null},e}(bS);ha(Aue,bS);function vW(t){var e=t.geoModel,n=t.seriesModel;return e?e.coordinateSystem:n?n.coordinateSystem||(n.getReferringComponents("geo",Ca).models[0]||{}).coordinateSystem:null}const gW=Aue;function yW(t,e){var n=t.get("boundingCoords");if(n!=null){var r=n[0],a=n[1];if(isFinite(r[0])&&isFinite(r[1])&&isFinite(a[0])&&isFinite(a[1])){var i=this.projection;if(i){var o=r[0],s=r[1],l=a[0],u=a[1];r=[1/0,1/0],a=[-1/0,-1/0];var c=function(_,x,T,M){for(var E=T-_,A=M-x,k=0;k<=100;k++){var L=k/100,I=i.project([_+E*L,x+A*L]);qu(r,r,I),Zu(a,a,I)}};c(o,s,l,s),c(l,s,l,u),c(l,u,o,u),c(o,u,l,s)}this.setBoundingRect(r[0],r[1],a[0]-r[0],a[1]-r[1])}}var f=this.getBoundingRect(),d=t.get("layoutCenter"),h=t.get("layoutSize"),p=e.getWidth(),v=e.getHeight(),g=f.width/f.height*this.aspectScale,y=!1,m,S;d&&h&&(m=[Mt(d[0],p),Mt(d[1],v)],S=Mt(h,Math.min(p,v)),!isNaN(m[0])&&!isNaN(m[1])&&!isNaN(S)&&(y=!0));var w;if(y)w={},g>1?(w.width=S,w.height=S/g):(w.height=S,w.width=S*g),w.y=m[1]-w.height/2,w.x=m[0]-w.width/2;else{var C=t.getBoxLayoutParams();C.aspect=g,w=ka(C,{width:p,height:v})}this.setViewRect(w.x,w.y,w.width,w.height),this.setCenter(t.get("center"),e),this.setZoom(t.get("zoom"))}function OAt(t,e){q(e.get("geoCoord"),function(n,r){t.addGeoCoord(r,n)})}var VAt=function(){function t(){this.dimensions=Due}return t.prototype.create=function(e,n){var r=[];function a(o){return{nameProperty:o.get("nameProperty"),aspectScale:o.get("aspectScale"),projection:o.get("projection")}}e.eachComponent("geo",function(o,s){var l=o.get("map"),u=new gW(l+s,l,et({nameMap:o.get("nameMap")},a(o)));u.zoomLimit=o.get("scaleLimit"),r.push(u),o.coordinateSystem=u,u.model=o,u.resize=yW,u.resize(o,n)}),e.eachSeries(function(o){var s=o.get("coordinateSystem");if(s==="geo"){var l=o.get("geoIndex")||0;o.coordinateSystem=r[l]}});var i={};return e.eachSeriesByType("map",function(o){if(!o.getHostGeoModel()){var s=o.getMapType();i[s]=i[s]||[],i[s].push(o)}}),q(i,function(o,s){var l=ut(o,function(c){return c.get("nameMap")}),u=new gW(s,s,et({nameMap:JT(l)},a(o[0])));u.zoomLimit=Ua.apply(null,ut(o,function(c){return c.get("scaleLimit")})),r.push(u),u.resize=yW,u.resize(o[0],n),q(o,function(c){c.coordinateSystem=u,OAt(u,c)})}),r},t.prototype.getFilledRegions=function(e,n,r,a){for(var i=(e||[]).slice(),o=Gt(),s=0;s<i.length;s++)o.set(i[s].name,i[s]);var l=yc.load(n,r,a);return q(l.regions,function(u){var c=u.name;!o.get(c)&&i.push({name:c})}),i},t}(),NAt=new VAt;const kue=NAt;var IAt=function(t){Fe(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.init=function(n,r,a){var i=yc.getGeoResource(n.map);if(i&&i.type==="geoJSON"){var o=n.itemStyle=n.itemStyle||{};"color"in o||(o.color="#eee")}this.mergeDefaultAndTheme(n,a),Sp(n,"label",["show"])},e.prototype.optionUpdated=function(){var n=this,r=this.option;r.regions=kue.getFilledRegions(r.regions,r.map,r.nameMap,r.nameProperty);var a={};this._optionModelMap=Ds(r.regions||[],function(i,o){var s=o.name;return s&&(i.set(s,new yr(o,n,n.ecModel)),o.selected&&(a[s]=!0)),i},Gt()),r.selectedMap||(r.selectedMap=a)},e.prototype.getRegionModel=function(n){return this._optionModelMap.get(n)||new yr(null,this,this.ecModel)},e.prototype.getFormattedLabel=function(n,r){var a=this.getRegionModel(n),i=r==="normal"?a.get(["label","formatter"]):a.get(["emphasis","label","formatter"]),o={name:n};if(jt(i))return o.status=r,i(o);if(Ot(i))return i.replace("{a}",n??"")},e.prototype.setZoom=function(n){this.option.zoom=n},e.prototype.setCenter=function(n){this.option.center=n},e.prototype.select=function(n){var r=this.option,a=r.selectedMode;if(a){a!=="multiple"&&(r.selectedMap=null);var i=r.selectedMap||(r.selectedMap={});i[n]=!0}},e.prototype.unSelect=function(n){var r=this.option.selectedMap;r&&(r[n]=!1)},e.prototype.toggleSelected=function(n){this[this.isSelected(n)?"unSelect":"select"](n)},e.prototype.isSelected=function(n){var r=this.option.selectedMap;return!!(r&&r[n])},e.type="geo",e.layoutMode="box",e.defaultOption={z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},e}(On);const BAt=IAt;function mW(t,e){return t.pointToProjected?t.pointToProjected(e):t.pointToData(e)}function TB(t,e,n,r){var a=t.getZoom(),i=t.getCenter(),o=e.zoom,s=t.projectedToPoint?t.projectedToPoint(i):t.dataToPoint(i);if(e.dx!=null&&e.dy!=null&&(s[0]-=e.dx,s[1]-=e.dy,t.setCenter(mW(t,s),r)),o!=null){if(n){var l=n.min||0,u=n.max||1/0;o=Math.max(Math.min(a*o,u),l)/a}t.scaleX*=o,t.scaleY*=o;var c=(e.originX-t.x)*(o-1),f=(e.originY-t.y)*(o-1);t.x-=c,t.y-=f,t.updateTransform(),t.setCenter(mW(t,s),r),t.setZoom(o*a)}return{center:t.getCenter(),zoom:t.getZoom()}}var $At=function(t){Fe(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.focusBlurEnabled=!0,n}return e.prototype.init=function(n,r){this._api=r},e.prototype.render=function(n,r,a,i){if(this._model=n,!n.get("show")){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;return}this._mapDraw||(this._mapDraw=new Mue(a));var o=this._mapDraw;o.draw(n,r,a,this,i),o.group.on("click",this._handleRegionClick,this),o.group.silent=n.get("silent"),this.group.add(o.group),this.updateSelectStatus(n,r,a)},e.prototype._handleRegionClick=function(n){var r;Gh(n.target,function(a){return(r=ln(a).eventData)!=null},!0),r&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:r.name})},e.prototype.updateSelectStatus=function(n,r,a){var i=this;this._mapDraw.group.traverse(function(o){var s=ln(o).eventData;if(s)return i._model.isSelected(s.name)?a.enterSelect(o):a.leaveSelect(o),!0})},e.prototype.findHighDownDispatchers=function(n){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(n,this._model)},e.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},e.type="geo",e}(jr);const PAt=$At;function FAt(t,e,n){yc.registerMap(t,e,n)}function Rue(t){t.registerCoordinateSystem("geo",kue),t.registerComponentModel(BAt),t.registerComponentView(PAt),t.registerImpl("registerMap",FAt),t.registerImpl("getMap",function(n){return yc.getMapForUser(n)});function e(n,r){r.update="geo:updateSelectStatus",t.registerAction(r,function(a,i){var o={},s=[];return i.eachComponent({mainType:"geo",query:a},function(l){l[n](a.name);var u=l.coordinateSystem;q(u.regions,function(f){o[f.name]=l.isSelected(f.name)||!1});var c=[];q(o,function(f,d){o[d]&&c.push(d)}),s.push({geoIndex:l.componentIndex,name:c})}),{selected:o,allSelected:s,name:a.name}})}e("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),e("select",{type:"geoSelect",event:"geoselected"}),e("unSelect",{type:"geoUnSelect",event:"geounselected"}),t.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},function(n,r,a){var i=n.componentType||"series";r.eachComponent({mainType:i,query:n},function(o){var s=o.coordinateSystem;if(s.type==="geo"){var l=TB(s,n,o.get("scaleLimit"),a);o.setCenter&&o.setCenter(l.center),o.setZoom&&o.setZoom(l.zoom),i==="series"&&q(o.seriesGroup,function(u){u.setCenter(l.center),u.setZoom(l.zoom)})}})})}function zAt(t){wn(Rue),t.registerChartView(TAt),t.registerSeriesModel(MAt),t.registerLayout(kAt),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,AAt),Ese("map",t.registerAction)}function UAt(t){var e=t;e.hierNode={defaultAncestor:null,ancestor:e,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var n=[e],r,a;r=n.pop();)if(a=r.children,r.isExpand&&a.length)for(var i=a.length,o=i-1;o>=0;o--){var s=a[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},n.push(s)}}function GAt(t,e){var n=t.isExpand?t.children:[],r=t.parentNode.children,a=t.hierNode.i?r[t.hierNode.i-1]:null;if(n.length){jAt(t);var i=(n[0].hierNode.prelim+n[n.length-1].hierNode.prelim)/2;a?(t.hierNode.prelim=a.hierNode.prelim+e(t,a),t.hierNode.modifier=t.hierNode.prelim-i):t.hierNode.prelim=i}else a&&(t.hierNode.prelim=a.hierNode.prelim+e(t,a));t.parentNode.hierNode.defaultAncestor=KAt(t,a,t.parentNode.hierNode.defaultAncestor||r[0],e)}function HAt(t){var e=t.hierNode.prelim+t.parentNode.hierNode.modifier;t.setLayout({x:e},!0),t.hierNode.modifier+=t.parentNode.hierNode.modifier}function bW(t){return arguments.length?t:qAt}function fm(t,e){return t-=Math.PI/2,{x:e*Math.cos(t),y:e*Math.sin(t)}}function WAt(t,e){return ka(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function jAt(t){for(var e=t.children,n=e.length,r=0,a=0;--n>=0;){var i=e[n];i.hierNode.prelim+=r,i.hierNode.modifier+=r,a+=i.hierNode.change,r+=i.hierNode.shift+a}}function KAt(t,e,n,r){if(e){for(var a=t,i=t,o=i.parentNode.children[0],s=e,l=a.hierNode.modifier,u=i.hierNode.modifier,c=o.hierNode.modifier,f=s.hierNode.modifier;s=JA(s),i=ek(i),s&&i;){a=JA(a),o=ek(o),a.hierNode.ancestor=t;var d=s.hierNode.prelim+f-i.hierNode.prelim-u+r(s,i);d>0&&(XAt(YAt(s,t,n),t,d),u+=d,l+=d),f+=s.hierNode.modifier,u+=i.hierNode.modifier,l+=a.hierNode.modifier,c+=o.hierNode.modifier}s&&!JA(a)&&(a.hierNode.thread=s,a.hierNode.modifier+=f-l),i&&!ek(o)&&(o.hierNode.thread=i,o.hierNode.modifier+=u-c,n=t)}return n}function JA(t){var e=t.children;return e.length&&t.isExpand?e[e.length-1]:t.hierNode.thread}function ek(t){var e=t.children;return e.length&&t.isExpand?e[0]:t.hierNode.thread}function YAt(t,e,n){return t.hierNode.ancestor.parentNode===e.parentNode?t.hierNode.ancestor:n}function XAt(t,e,n){var r=n/(e.hierNode.i-t.hierNode.i);e.hierNode.change-=r,e.hierNode.shift+=n,e.hierNode.modifier+=n,e.hierNode.prelim+=n,t.hierNode.change+=r}function qAt(t,e){return t.parentNode===e.parentNode?1:2}var ZAt=function(){function t(){this.parentPoint=[],this.childPoints=[]}return t}(),QAt=function(t){Fe(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new ZAt},e.prototype.buildPath=function(n,r){var a=r.childPoints,i=a.length,o=r.parentPoint,s=a[0],l=a[i-1];if(i===1){n.moveTo(o[0],o[1]),n.lineTo(s[0],s[1]);return}var u=r.orient,c=u==="TB"||u==="BT"?0:1,f=1-c,d=Mt(r.forkPosition,1),h=[];h[c]=o[c],h[f]=o[f]+(l[f]-o[f])*d,n.moveTo(o[0],o[1]),n.lineTo(h[0],h[1]),n.moveTo(s[0],s[1]),h[c]=s[c],n.lineTo(h[0],h[1]),h[c]=l[c],n.lineTo(h[0],h[1]),n.lineTo(l[0],l[1]);for(var p=1;p<i-1;p++){var v=a[p];n.moveTo(v[0],v[1]),h[c]=v[c],n.lineTo(h[0],h[1])}},e}(Cn),JAt=function(t){Fe(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n._mainGroup=new en,n}return e.prototype.init=function(n,r){this._controller=new mS(r.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},e.prototype.render=function(n,r,a){var i=n.getData(),o=n.layoutInfo,s=this._mainGroup,l=n.get("layout");l==="radial"?(s.x=o.x+o.width/2,s.y=o.y+o.height/2):(s.x=o.x,s.y=o.y),this._updateViewCoordSys(n,a),this._updateController(n,r,a);var u=this._data;i.diff(u).add(function(c){SW(i,c)&&wW(i,c,null,s,n)}).update(function(c,f){var d=u.getItemGraphicEl(f);if(!SW(i,c)){d&&_W(u,f,d,s,n);return}wW(i,c,d,s,n)}).remove(function(c){var f=u.getItemGraphicEl(c);f&&_W(u,c,f,s,n)}).execute(),this._nodeScaleRatio=n.get("nodeScaleRatio"),this._updateNodeAndLinkScale(n),n.get("expandAndCollapse")===!0&&i.eachItemGraphicEl(function(c,f){c.off("click").on("click",function(){a.dispatchAction({type:"treeExpandAndCollapse",seriesId:n.id,dataIndex:f})})}),this._data=i},e.prototype._updateViewCoordSys=function(n,r){var a=n.getData(),i=[];a.each(function(f){var d=a.getItemLayout(f);d&&!isNaN(d.x)&&!isNaN(d.y)&&i.push([+d.x,+d.y])});var o=[],s=[];cE(i,o,s);var l=this._min,u=this._max;s[0]-o[0]===0&&(o[0]=l?l[0]:o[0]-1,s[0]=u?u[0]:s[0]+1),s[1]-o[1]===0&&(o[1]=l?l[1]:o[1]-1,s[1]=u?u[1]:s[1]+1);var c=n.coordinateSystem=new bS;c.zoomLimit=n.get("scaleLimit"),c.setBoundingRect(o[0],o[1],s[0]-o[0],s[1]-o[1]),c.setCenter(n.get("center"),r),c.setZoom(n.get("zoom")),this.group.attr({x:c.x,y:c.y,scaleX:c.scaleX,scaleY:c.scaleY}),this._min=o,this._max=s},e.prototype._updateController=function(n,r,a){var i=this,o=this._controller,s=this._controllerHost,l=this.group;o.setPointerChecker(function(u,c,f){var d=l.getBoundingRect();return d.applyTransform(l.transform),d.contain(c,f)&&!NE(u,a,n)}),o.enable(n.get("roam")),s.zoomLimit=n.get("scaleLimit"),s.zoom=n.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){xB(s,u.dx,u.dy),a.dispatchAction({seriesId:n.id,type:"treeRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){_B(s,u.scale,u.originX,u.originY),a.dispatchAction({seriesId:n.id,type:"treeRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),i._updateNodeAndLinkScale(n),a.updateLabelLayout()})},e.prototype._updateNodeAndLinkScale=function(n){var r=n.getData(),a=this._getNodeGlobalScale(n);r.eachItemGraphicEl(function(i,o){i.setSymbolScale(a)})},e.prototype._getNodeGlobalScale=function(n){var r=n.coordinateSystem;if(r.type!=="view")return 1;var a=this._nodeScaleRatio,i=r.scaleX||1,o=r.getZoom(),s=(o-1)*a+1;return s/i},e.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},e.type="tree",e}(br);function SW(t,e){var n=t.getItemLayout(e);return n&&!isNaN(n.x)&&!isNaN(n.y)}function wW(t,e,n,r,a){var i=!n,o=t.tree.getNodeByDataIndex(e),s=o.getModel(),l=o.getVisual("style").fill,u=o.isExpand===!1&&o.children.length!==0?l:"#fff",c=t.tree.root,f=o.parentNode===c?o:o.parentNode||o,d=t.getItemGraphicEl(f.dataIndex),h=f.getLayout(),p=d?{x:d.__oldX,y:d.__oldY,rawX:d.__radialOldRawX,rawY:d.__radialOldRawY}:h,v=o.getLayout();i?(n=new hS(t,e,null,{symbolInnerColor:u,useNameLabel:!0}),n.x=p.x,n.y=p.y):n.updateData(t,e,null,{symbolInnerColor:u,useNameLabel:!0}),n.__radialOldRawX=n.__radialRawX,n.__radialOldRawY=n.__radialRawY,n.__radialRawX=v.rawX,n.__radialRawY=v.rawY,r.add(n),t.setItemGraphicEl(e,n),n.__oldX=n.x,n.__oldY=n.y,jn(n,{x:v.x,y:v.y},a);var g=n.getSymbolPath();if(a.get("layout")==="radial"){var y=c.children[0],m=y.getLayout(),S=y.children.length,w=void 0,C=void 0;if(v.x===m.x&&o.isExpand===!0&&y.children.length){var _={x:(y.children[0].getLayout().x+y.children[S-1].getLayout().x)/2,y:(y.children[0].getLayout().y+y.children[S-1].getLayout().y)/2};w=Math.atan2(_.y-m.y,_.x-m.x),w<0&&(w=Math.PI*2+w),C=_.x<m.x,C&&(w=w-Math.PI)}else w=Math.atan2(v.y-m.y,v.x-m.x),w<0&&(w=Math.PI*2+w),o.children.length===0||o.children.length!==0&&o.isExpand===!1?(C=v.x<m.x,C&&(w=w-Math.PI)):(C=v.x>m.x,C||(w=w-Math.PI));var x=C?"left":"right",T=s.getModel("label"),M=T.get("rotate"),E=M*(Math.PI/180),A=g.getTextContent();A&&(g.setTextConfig({position:T.get("position")||x,rotation:M==null?-w:E,origin:"center"}),A.setStyle("verticalAlign","middle"))}var k=s.get(["emphasis","focus"]),L=k==="relative"?F1(o.getAncestorsIndices(),o.getDescendantIndices()):k==="ancestor"?o.getAncestorsIndices():k==="descendant"?o.getDescendantIndices():null;L&&(ln(n).focus=L),ekt(a,o,c,n,p,h,v,r),n.__edge&&(n.onHoverStateChange=function(I){if(I!=="blur"){var P=o.parentNode&&t.getItemGraphicEl(o.parentNode.dataIndex);P&&P.hoverState===rS||nC(n.__edge,I)}})}function ekt(t,e,n,r,a,i,o,s){var l=e.getModel(),u=t.get("edgeShape"),c=t.get("layout"),f=t.getOrient(),d=t.get(["lineStyle","curveness"]),h=t.get("edgeForkPosition"),p=l.getModel("lineStyle").getLineStyle(),v=r.__edge;if(u==="curve")e.parentNode&&e.parentNode!==n&&(v||(v=r.__edge=new iS({shape:u3(c,f,d,a,a)})),jn(v,{shape:u3(c,f,d,i,o)},t));else if(u==="polyline"&&c==="orthogonal"&&e!==n&&e.children&&e.children.length!==0&&e.isExpand===!0){for(var g=e.children,y=[],m=0;m<g.length;m++){var S=g[m].getLayout();y.push([S.x,S.y])}v||(v=r.__edge=new QAt({shape:{parentPoint:[o.x,o.y],childPoints:[[o.x,o.y]],orient:f,forkPosition:h}})),jn(v,{shape:{parentPoint:[o.x,o.y],childPoints:y}},t)}v&&!(u==="polyline"&&!e.isExpand)&&(v.useStyle(Xt({strokeNoScale:!0,fill:null},p)),bi(v,l,"lineStyle"),_p(v),s.add(v))}function xW(t,e,n,r,a){var i=e.tree.root,o=Lue(i,t),s=o.source,l=o.sourceLayout,u=e.getItemGraphicEl(t.dataIndex);if(u){var c=e.getItemGraphicEl(s.dataIndex),f=c.__edge,d=u.__edge||(s.isExpand===!1||s.children.length===1?f:void 0),h=r.get("edgeShape"),p=r.get("layout"),v=r.get("orient"),g=r.get(["lineStyle","curveness"]);d&&(h==="curve"?qf(d,{shape:u3(p,v,g,l,l),style:{opacity:0}},r,{cb:function(){n.remove(d)},removeOpt:a}):h==="polyline"&&r.get("layout")==="orthogonal"&&qf(d,{shape:{parentPoint:[l.x,l.y],childPoints:[[l.x,l.y]]},style:{opacity:0}},r,{cb:function(){n.remove(d)},removeOpt:a}))}}function Lue(t,e){for(var n=e.parentNode===t?e:e.parentNode||e,r;r=n.getLayout(),r==null;)n=n.parentNode===t?n:n.parentNode||n;return{source:n,sourceLayout:r}}function _W(t,e,n,r,a){var i=t.tree.getNodeByDataIndex(e),o=t.tree.root,s=Lue(o,i).sourceLayout,l={duration:a.get("animationDurationUpdate"),easing:a.get("animationEasingUpdate")};qf(n,{x:s.x+1,y:s.y+1},a,{cb:function(){r.remove(n),t.setItemGraphicEl(e,null)},removeOpt:l}),n.fadeOut(null,t.hostModel,{fadeLabel:!0,animation:l}),i.children.forEach(function(u){xW(u,t,r,a,l)}),xW(i,t,r,a,l)}function u3(t,e,n,r,a){var i,o,s,l,u,c,f,d;if(t==="radial"){u=r.rawX,f=r.rawY,c=a.rawX,d=a.rawY;var h=fm(u,f),p=fm(u,f+(d-f)*n),v=fm(c,d+(f-d)*n),g=fm(c,d);return{x1:h.x||0,y1:h.y||0,x2:g.x||0,y2:g.y||0,cpx1:p.x||0,cpy1:p.y||0,cpx2:v.x||0,cpy2:v.y||0}}else u=r.x,f=r.y,c=a.x,d=a.y,(e==="LR"||e==="RL")&&(i=u+(c-u)*n,o=f,s=c+(u-c)*n,l=d),(e==="TB"||e==="BT")&&(i=u,o=f+(d-f)*n,s=c,l=d+(f-d)*n);return{x1:u,y1:f,x2:c,y2:d,cpx1:i,cpy1:o,cpx2:s,cpy2:l}}const tkt=JAt;var bs=Gn();function Oue(t){var e=t.mainData,n=t.datas;n||(n={main:e},t.datasAttr={main:"data"}),t.datas=t.mainData=null,Vue(e,n,t),q(n,function(r){q(e.TRANSFERABLE_METHODS,function(a){r.wrapMethod(a,sn(nkt,t))})}),e.wrapMethod("cloneShallow",sn(akt,t)),q(e.CHANGABLE_METHODS,function(r){e.wrapMethod(r,sn(rkt,t))}),Ii(n[e.dataType]===e)}function nkt(t,e){if(skt(this)){var n=et({},bs(this).datas);n[this.dataType]=e,Vue(e,n,t)}else EB(e,this.dataType,bs(this).mainData,t);return e}function rkt(t,e){return t.struct&&t.struct.update(),e}function akt(t,e){return q(bs(e).datas,function(n,r){n!==e&&EB(n.cloneShallow(),r,e,t)}),e}function ikt(t){var e=bs(this).mainData;return t==null||e==null?e:bs(e).datas[t]}function okt(){var t=bs(this).mainData;return t==null?[{data:t}]:ut(Dn(bs(t).datas),function(e){return{type:e,data:bs(t).datas[e]}})}function skt(t){return bs(t).mainData===t}function Vue(t,e,n){bs(t).datas={},q(e,function(r,a){EB(r,a,t,n)})}function EB(t,e,n,r){bs(n).datas[e]=t,bs(t).mainData=n,t.dataType=e,r.struct&&(t[r.structAttr]=r.struct,r.struct[r.datasAttr[e]]=t),t.getLinkedData=ikt,t.getLinkedDataAll=okt}var lkt=function(){function t(e,n){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=e||"",this.hostTree=n}return t.prototype.isRemoved=function(){return this.dataIndex<0},t.prototype.eachNode=function(e,n,r){jt(e)&&(r=n,n=e,e=null),e=e||{},Ot(e)&&(e={order:e});var a=e.order||"preorder",i=this[e.attr||"children"],o;a==="preorder"&&(o=n.call(r,this));for(var s=0;!o&&s<i.length;s++)i[s].eachNode(e,n,r);a==="postorder"&&n.call(r,this)},t.prototype.updateDepthAndHeight=function(e){var n=0;this.depth=e;for(var r=0;r<this.children.length;r++){var a=this.children[r];a.updateDepthAndHeight(e+1),a.height>n&&(n=a.height)}this.height=n+1},t.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var n=0,r=this.children,a=r.length;n<a;n++){var i=r[n].getNodeById(e);if(i)return i}},t.prototype.contains=function(e){if(e===this)return!0;for(var n=0,r=this.children,a=r.length;n<a;n++){var i=r[n].contains(e);if(i)return i}},t.prototype.getAncestors=function(e){for(var n=[],r=e?this:this.parentNode;r;)n.push(r),r=r.parentNode;return n.reverse(),n},t.prototype.getAncestorsIndices=function(){for(var e=[],n=this;n;)e.push(n.dataIndex),n=n.parentNode;return e.reverse(),e},t.prototype.getDescendantIndices=function(){var e=[];return this.eachNode(function(n){e.push(n.dataIndex)}),e},t.prototype.getValue=function(e){var n=this.hostTree.data;return n.getStore().get(n.getDimensionIndex(e||"value"),this.dataIndex)},t.prototype.setLayout=function(e,n){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,n)},t.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},t.prototype.getModel=function(e){if(!(this.dataIndex<0)){var n=this.hostTree,r=n.data.getItemModel(this.dataIndex);return r.getModel(e)}},t.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},t.prototype.setVisual=function(e,n){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,n)},t.prototype.getVisual=function(e){return this.hostTree.data.getItemVisual(this.dataIndex,e)},t.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},t.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},t.prototype.getChildIndex=function(){if(this.parentNode){for(var e=this.parentNode.children,n=0;n<e.length;++n)if(e[n]===this)return n;return-1}return-1},t.prototype.isAncestorOf=function(e){for(var n=e.parentNode;n;){if(n===this)return!0;n=n.parentNode}return!1},t.prototype.isDescendantOf=function(e){return e!==this&&e.isAncestorOf(this)},t}(),ukt=function(){function t(e){this.type="tree",this._nodes=[],this.hostModel=e}return t.prototype.eachNode=function(e,n,r){this.root.eachNode(e,n,r)},t.prototype.getNodeByDataIndex=function(e){var n=this.data.getRawIndex(e);return this._nodes[n]},t.prototype.getNodeById=function(e){return this.root.getNodeById(e)},t.prototype.update=function(){for(var e=this.data,n=this._nodes,r=0,a=n.length;r<a;r++)n[r].dataIndex=-1;for(var r=0,a=e.count();r<a;r++)n[e.getRawIndex(r)].dataIndex=r},t.prototype.clearLayouts=function(){this.data.clearItemLayouts()},t.createTree=function(e,n,r){var a=new t(n),i=[],o=1;s(e);function s(c,f){var d=c.value;o=Math.max(o,st(d)?d.length:1),i.push(c);var h=new lkt(Ia(c.name,""),a);f?ckt(h,f):a.root=h,a._nodes.push(h);var p=c.children;if(p)for(var v=0;v<p.length;v++)s(p[v],h)}a.root.updateDepthAndHeight(0);var l=G0(i,{coordDimensions:["value"],dimensionsCount:o}).dimensions,u=new Oi(l,n);return u.initData(i),r&&r(u),Oue({mainData:u,struct:a,structAttr:"tree"}),a.update(),a},t}();function ckt(t,e){var n=e.children;t.parentNode!==e&&(n.push(t),t.parentNode=e)}const MB=ukt;function cb(t,e,n){if(t&&bn(e,t.type)>=0){var r=n.getData().tree.root,a=t.targetNode;if(Ot(a)&&(a=r.getNodeById(a)),a&&r.contains(a))return{node:a};var i=t.targetNodeId;if(i!=null&&(a=r.getNodeById(i)))return{node:a}}}function Nue(t){for(var e=[];t;)t=t.parentNode,t&&e.push(t);return e.reverse()}function DB(t,e){var n=Nue(t);return bn(n,e)>=0}function BE(t,e){for(var n=[];t;){var r=t.dataIndex;n.push({name:t.name,dataIndex:r,value:e.getRawValue(r)}),t=t.parentNode}return n.reverse(),n}var fkt=function(t){Fe(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.hasSymbolVisual=!0,n.ignoreStyleOnData=!0,n}return e.prototype.getInitialData=function(n){var r={name:n.name,children:n.data},a=n.leaves||{},i=new yr(a,this,this.ecModel),o=MB.createTree(r,this,s);function s(f){f.wrapMethod("getItemModel",function(d,h){var p=o.getNodeByDataIndex(h);return p&&p.children.length&&p.isExpand||(d.parentModel=i),d})}var l=0;o.eachNode("preorder",function(f){f.depth>l&&(l=f.depth)});var u=n.expandAndCollapse,c=u&&n.initialTreeDepth>=0?n.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},e.prototype.getOrient=function(){var n=this.get("orient");return n==="horizontal"?n="LR":n==="vertical"&&(n="TB"),n},e.prototype.setZoom=function(n){this.option.zoom=n},e.prototype.setCenter=function(n){this.option.center=n},e.prototype.formatTooltip=function(n,r,a){for(var i=this.getData().tree,o=i.root.children[0],s=i.getNodeByDataIndex(n),l=s.getValue(),u=s.name;s&&s!==o;)u=s.parentNode.name+"."+u,s=s.parentNode;return Ya("nameValue",{name:u,value:l,noValue:isNaN(l)||l==null})},e.prototype.getDataParams=function(n){var r=t.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(n);return r.treeAncestors=BE(a,this),r.collapsed=!a.isExpand,r},e.type="series.tree",e.layoutMode="box",e.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},e}(Vr);const dkt=fkt;function hkt(t,e,n){for(var r=[t],a=[],i;i=r.pop();)if(a.push(i),i.isExpand){var o=i.children;if(o.length)for(var s=0;s<o.length;s++)r.push(o[s])}for(;i=a.pop();)e(i,n)}function By(t,e){for(var n=[t],r;r=n.pop();)if(e(r),r.isExpand){var a=r.children;if(a.length)for(var i=a.length-1;i>=0;i--)n.push(a[i])}}function pkt(t,e){t.eachSeriesByType("tree",function(n){vkt(n,e)})}function vkt(t,e){var n=WAt(t,e);t.layoutInfo=n;var r=t.get("layout"),a=0,i=0,o=null;r==="radial"?(a=2*Math.PI,i=Math.min(n.height,n.width)/2,o=bW(function(S,w){return(S.parentNode===w.parentNode?1:2)/S.depth})):(a=n.width,i=n.height,o=bW());var s=t.getData().tree.root,l=s.children[0];if(l){UAt(s),hkt(l,GAt,o),s.hierNode.modifier=-l.hierNode.prelim,By(l,HAt);var u=l,c=l,f=l;By(l,function(S){var w=S.getLayout().x;w<u.getLayout().x&&(u=S),w>c.getLayout().x&&(c=S),S.depth>f.depth&&(f=S)});var d=u===c?1:o(u,c)/2,h=d-u.getLayout().x,p=0,v=0,g=0,y=0;if(r==="radial")p=a/(c.getLayout().x+d+h),v=i/(f.depth-1||1),By(l,function(S){g=(S.getLayout().x+h)*p,y=(S.depth-1)*v;var w=fm(g,y);S.setLayout({x:w.x,y:w.y,rawX:g,rawY:y},!0)});else{var m=t.getOrient();m==="RL"||m==="LR"?(v=i/(c.getLayout().x+d+h),p=a/(f.depth-1||1),By(l,function(S){y=(S.getLayout().x+h)*v,g=m==="LR"?(S.depth-1)*p:a-(S.depth-1)*p,S.setLayout({x:g,y},!0)})):(m==="TB"||m==="BT")&&(p=a/(c.getLayout().x+d+h),v=i/(f.depth-1||1),By(l,function(S){g=(S.getLayout().x+h)*p,y=m==="TB"?(S.depth-1)*v:i-(S.depth-1)*v,S.setLayout({x:g,y},!0)}))}}}function gkt(t){t.eachSeriesByType("tree",function(e){var n=e.getData(),r=n.tree;r.eachNode(function(a){var i=a.getModel(),o=i.getModel("itemStyle").getItemStyle(),s=n.ensureUniqueItemVisual(a.dataIndex,"style");et(s,o)})})}function ykt(t){t.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(e,n){n.eachComponent({mainType:"series",subType:"tree",query:e},function(r){var a=e.dataIndex,i=r.getData().tree,o=i.getNodeByDataIndex(a);o.isExpand=!o.isExpand})}),t.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(e,n,r){n.eachComponent({mainType:"series",subType:"tree",query:e},function(a){var i=a.coordinateSystem,o=TB(i,e,void 0,r);a.setCenter&&a.setCenter(o.center),a.setZoom&&a.setZoom(o.zoom)})})}function mkt(t){t.registerChartView(tkt),t.registerSeriesModel(dkt),t.registerLayout(pkt),t.registerVisual(gkt),ykt(t)}var CW=["treemapZoomToNode","treemapRender","treemapMove"];function bkt(t){for(var e=0;e<CW.length;e++)t.registerAction({type:CW[e],update:"updateView"},fa);t.registerAction({type:"treemapRootToNode",update:"updateView"},function(n,r){r.eachComponent({mainType:"series",subType:"treemap",query:n},a);function a(i,o){var s=["treemapZoomToNode","treemapRootToNode"],l=cb(n,s,i);if(l){var u=i.getViewRoot();u&&(n.direction=DB(u,l.node)?"rollUp":"drillDown"),i.resetViewRoot(l.node)}}})}function Iue(t){var e=t.getData(),n=e.tree,r={};n.eachNode(function(a){for(var i=a;i&&i.depth>1;)i=i.parentNode;var o=BO(t.ecModel,i.name||i.dataIndex+"",r);a.setVisual("decal",o)})}var Skt=function(t){Fe(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.preventUsingHoverLayer=!0,n}return e.prototype.getInitialData=function(n,r){var a={name:n.name,children:n.data};Bue(a);var i=n.levels||[],o=this.designatedVisualItemStyle={},s=new yr({itemStyle:o},this,r);i=n.levels=wkt(i,r);var l=ut(i||[],function(f){return new yr(f,s,r)},this),u=MB.createTree(a,this,c);function c(f){f.wrapMethod("getItemModel",function(d,h){var p=u.getNodeByDataIndex(h),v=p?l[p.depth]:null;return d.parentModel=v||s,d})}return u.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.formatTooltip=function(n,r,a){var i=this.getData(),o=this.getRawValue(n),s=i.getName(n);return Ya("nameValue",{name:s,value:o})},e.prototype.getDataParams=function(n){var r=t.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(n);return r.treeAncestors=BE(a,this),r.treePathInfo=r.treeAncestors,r},e.prototype.setLayoutInfo=function(n){this.layoutInfo=this.layoutInfo||{},et(this.layoutInfo,n)},e.prototype.mapIdToIndex=function(n){var r=this._idIndexMap;r||(r=this._idIndexMap=Gt(),this._idIndexMapCount=0);var a=r.get(n);return a==null&&r.set(n,a=this._idIndexMapCount++),a},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(n){n?this._viewRoot=n:n=this._viewRoot;var r=this.getRawData().tree.root;(!n||n!==r&&!r.contains(n))&&(this._viewRoot=r)},e.prototype.enableAriaDecal=function(){Iue(this)},e.type="series.treemap",e.layoutMode="box",e.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:[]},e}(Vr);function Bue(t){var e=0;q(t.children,function(r){Bue(r);var a=r.value;st(a)&&(a=a[0]),e+=a});var n=t.value;st(n)&&(n=n[0]),(n==null||isNaN(n))&&(n=e),n<0&&(n=0),st(t.value)?t.value[0]=n:t.value=n}function wkt(t,e){var n=mr(e.get("color")),r=mr(e.get(["aria","decal","decals"]));if(n){t=t||[];var a,i;q(t,function(s){var l=new yr(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=t[0]||(t[0]={});return a||(o.color=n.slice()),!i&&r&&(o.decal=r.slice()),t}}const xkt=Skt;var _kt=8,TW=8,tk=5,Ckt=function(){function t(e){this.group=new en,e.add(this.group)}return t.prototype.render=function(e,n,r,a){var i=e.getModel("breadcrumb"),o=this.group;if(o.removeAll(),!(!i.get("show")||!r)){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:n.getWidth(),height:n.getHeight()},emptyItemWidth:i.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(r,f,u),this._renderContent(e,f,s,l,u,c,a),_E(o,f.pos,f.box)}},t.prototype._prepare=function(e,n,r){for(var a=e;a;a=a.parentNode){var i=Ia(a.getModel().get("name"),""),o=r.getTextRect(i),s=Math.max(o.width+_kt*2,n.emptyItemWidth);n.totalWidth+=s+TW,n.renderList.push({node:a,text:i,width:s})}},t.prototype._renderContent=function(e,n,r,a,i,o,s){for(var l=0,u=n.emptyItemWidth,c=e.get(["breadcrumb","height"]),f=mxt(n.pos,n.box),d=n.totalWidth,h=n.renderList,p=a.getModel("itemStyle").getItemStyle(),v=h.length-1;v>=0;v--){var g=h[v],y=g.node,m=g.width,S=g.text;d>f.width&&(d-=m-u,m=u,S=null);var w=new lo({shape:{points:Tkt(l,0,m,c,v===h.length-1,v===0)},style:Xt(r.getItemStyle(),{lineJoin:"bevel"}),textContent:new Bn({style:Dr(i,{text:S})}),textConfig:{position:"inside"},z2:A0*1e4,onclick:sn(s,y)});w.disableLabelAnimation=!0,w.getTextContent().ensureState("emphasis").style=Dr(o,{text:S}),w.ensureState("emphasis").style=p,ua(w,a.get("focus"),a.get("blurScope"),a.get("disabled")),this.group.add(w),Ekt(w,e,y),l+=m+TW}},t.prototype.remove=function(){this.group.removeAll()},t}();function Tkt(t,e,n,r,a,i){var o=[[a?t:t-tk,e],[t+n,e],[t+n,e+r],[a?t:t-tk,e+r]];return!i&&o.splice(2,0,[t+n+tk,e+r/2]),!a&&o.push([t,e+r/2]),o}function Ekt(t,e,n){ln(t).eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:n&&n.dataIndex,name:n&&n.name},treePathInfo:n&&BE(n,e)}}const Mkt=Ckt;var Dkt=function(){function t(){this._storage=[],this._elExistsMap={}}return t.prototype.add=function(e,n,r,a,i){return this._elExistsMap[e.id]?!1:(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:n,duration:r,delay:a,easing:i}),!0)},t.prototype.finished=function(e){return this._finishedCallback=e,this},t.prototype.start=function(){for(var e=this,n=this._storage.length,r=function(){n--,n<=0&&(e._storage.length=0,e._elExistsMap={},e._finishedCallback&&e._finishedCallback())},a=0,i=this._storage.length;a<i;a++){var o=this._storage[a];o.el.animateTo(o.target,{duration:o.duration,delay:o.delay,easing:o.easing,setToFinal:!0,done:r,aborted:r})}return this},t}();function Akt(){return new Dkt}var c3=en,EW=$n,MW=3,DW="label",AW="upperLabel",kkt=A0*10,Rkt=A0*2,Lkt=A0*3,dh=xp([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),kW=function(t){var e=dh(t);return e.stroke=e.fill=e.lineWidth=null,e},MC=Gn(),Okt=function(t){Fe(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n._state="ready",n._storage=$y(),n}return e.prototype.render=function(n,r,a,i){var o=r.findComponents({mainType:"series",subType:"treemap",query:i});if(!(bn(o,n)<0)){this.seriesModel=n,this.api=a,this.ecModel=r;var s=["treemapZoomToNode","treemapRootToNode"],l=cb(i,s,n),u=i&&i.type,c=n.layoutInfo,f=!this._oldTree,d=this._storage,h=u==="treemapRootToNode"&&l&&d?{rootNodeGroup:d.nodeGroup[l.node.getRawIndex()],direction:i.direction}:null,p=this._giveContainerGroup(c),v=n.get("animation"),g=this._doRender(p,n,h);v&&!f&&(!u||u==="treemapZoomToNode"||u==="treemapRootToNode")?this._doAnimation(p,g,n,h):g.renderFinally(),this._resetController(a),this._renderBreadcrumb(n,a,l)}},e.prototype._giveContainerGroup=function(n){var r=this._containerGroup;return r||(r=this._containerGroup=new c3,this._initEvents(r),this.group.add(r)),r.x=n.x,r.y=n.y,r},e.prototype._doRender=function(n,r,a){var i=r.getData().tree,o=this._oldTree,s=$y(),l=$y(),u=this._storage,c=[];function f(g,y,m,S){return Vkt(r,l,u,a,s,c,g,y,m,S)}h(i.root?[i.root]:[],o&&o.root?[o.root]:[],n,i===o||!o,0);var d=p(u);return this._oldTree=i,this._storage=l,{lastsForAnimation:s,willDeleteEls:d,renderFinally:v};function h(g,y,m,S,w){S?(y=g,q(g,function(x,T){!x.isRemoved()&&_(T,T)})):new pc(y,g,C,C).add(_).update(_).remove(sn(_,null)).execute();function C(x){return x.getId()}function _(x,T){var M=x!=null?g[x]:null,E=T!=null?y[T]:null,A=f(M,E,m,w);A&&h(M&&M.viewChildren||[],E&&E.viewChildren||[],A,S,w+1)}}function p(g){var y=$y();return g&&q(g,function(m,S){var w=y[S];q(m,function(C){C&&(w.push(C),MC(C).willDelete=!0)})}),y}function v(){q(d,function(g){q(g,function(y){y.parent&&y.parent.remove(y)})}),q(c,function(g){g.invisible=!0,g.dirty()})}},e.prototype._doAnimation=function(n,r,a,i){var o=a.get("animationDurationUpdate"),s=a.get("animationEasing"),l=(jt(o)?0:o)||0,u=(jt(s)?null:s)||"cubicOut",c=Akt();q(r.willDeleteEls,function(f,d){q(f,function(h,p){if(!h.invisible){var v=h.parent,g,y=MC(v);if(i&&i.direction==="drillDown")g=v===i.rootNodeGroup?{shape:{x:0,y:0,width:y.nodeWidth,height:y.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var m=0,S=0;y.willDelete||(m=y.nodeWidth/2,S=y.nodeHeight/2),g=d==="nodeGroup"?{x:m,y:S,style:{opacity:0}}:{shape:{x:m,y:S,width:0,height:0},style:{opacity:0}}}g&&c.add(h,g,l,0,u)}})}),q(this._storage,function(f,d){q(f,function(h,p){var v=r.lastsForAnimation[d][p],g={};v&&(h instanceof en?v.oldX!=null&&(g.x=h.x,g.y=h.y,h.x=v.oldX,h.y=v.oldY):(v.oldShape&&(g.shape=et({},h.shape),h.setShape(v.oldShape)),v.fadein?(h.setStyle("opacity",0),g.style={opacity:1}):h.style.opacity!==1&&(g.style={opacity:1})),c.add(h,g,l,0,u))})},this),this._state="animating",c.finished(Nt(function(){this._state="ready",r.renderFinally()},this)).start()},e.prototype._resetController=function(n){var r=this._controller;r||(r=this._controller=new mS(n.getZr()),r.enable(this.seriesModel.get("roam")),r.on("pan",Nt(this._onPan,this)),r.on("zoom",Nt(this._onZoom,this)));var a=new yn(0,0,n.getWidth(),n.getHeight());r.setPointerChecker(function(i,o,s){return a.contain(o,s)})},e.prototype._clearController=function(){var n=this._controller;n&&(n.dispose(),n=null)},e.prototype._onPan=function(n){if(this._state!=="animating"&&(Math.abs(n.dx)>MW||Math.abs(n.dy)>MW)){var r=this.seriesModel.getData().tree.root;if(!r)return;var a=r.getLayout();if(!a)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:a.x+n.dx,y:a.y+n.dy,width:a.width,height:a.height}})}},e.prototype._onZoom=function(n){var r=n.originX,a=n.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 yn(o.x,o.y,o.width,o.height),l=this.seriesModel.layoutInfo;r-=l.x,a-=l.y;var u=Wo();bl(u,u,[-r,-a]),rE(u,u,[n.scale,n.scale]),bl(u,u,[r,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}})}},e.prototype._initEvents=function(n){var r=this;n.on("click",function(a){if(r._state==="ready"){var i=r.seriesModel.get("nodeClick",!0);if(i){var o=r.findTarget(a.offsetX,a.offsetY);if(o){var s=o.node;if(s.getLayout().isLeafRoot)r._rootToNode(o);else if(i==="zoomToNode")r._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&&lC(u,c)}}}}},this)},e.prototype._renderBreadcrumb=function(n,r,a){var i=this;a||(a=n.get("leafDepth",!0)!=null?{node:n.getViewRoot()}:this.findTarget(r.getWidth()/2,r.getHeight()/2),a||(a={node:n.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new Mkt(this.group))).render(n,r,a.node,function(o){i._state!=="animating"&&(DB(n.getViewRoot(),o)?i._rootToNode({node:o}):i._zoomToNode({node:o}))})},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=$y(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},e.prototype.dispose=function(){this._clearController()},e.prototype._zoomToNode=function(n){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:n.node})},e.prototype._rootToNode=function(n){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:n.node})},e.prototype.findTarget=function(n,r){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(n,r),u=s.shape;if(u.x<=l[0]&&l[0]<=u.x+u.width&&u.y<=l[1]&&l[1]<=u.y+u.height)a={node:o,offsetX:l[0],offsetY:l[1]};else return!1}},this),a},e.type="treemap",e}(br);function $y(){return{nodeGroup:[],background:[],content:[]}}function Vkt(t,e,n,r,a,i,o,s,l,u){if(!o)return;var c=o.getLayout(),f=t.getData(),d=o.getModel();if(f.setItemGraphicEl(o.dataIndex,null),!c||!c.isInView)return;var h=c.width,p=c.height,v=c.borderWidth,g=c.invisible,y=o.getRawIndex(),m=s&&s.getRawIndex(),S=o.viewChildren,w=c.upperHeight,C=S&&S.length,_=d.getModel("itemStyle"),x=d.getModel(["emphasis","itemStyle"]),T=d.getModel(["blur","itemStyle"]),M=d.getModel(["select","itemStyle"]),E=_.get("borderRadius")||0,A=ge("nodeGroup",c3);if(!A)return;if(l.add(A),A.x=c.x||0,A.y=c.y||0,A.markRedraw(),MC(A).nodeWidth=h,MC(A).nodeHeight=p,c.isAboveViewRoot)return A;var k=ge("background",EW,u,Rkt);k&&V(A,k,C&&c.upperLabelHeight);var L=d.getModel("emphasis"),I=L.get("focus"),P=L.get("blurScope"),F=L.get("disabled"),$=I==="ancestor"?o.getAncestorsIndices():I==="descendant"?o.getDescendantIndices():I;if(C)Z1(A)&&zh(A,!1),k&&(zh(k,!F),f.setItemGraphicEl(o.dataIndex,k),AO(k,$,P));else{var W=ge("content",EW,u,Lkt);W&&z(A,W),k.disableMorphing=!0,k&&Z1(k)&&zh(k,!1),zh(A,!F),f.setItemGraphicEl(o.dataIndex,A),AO(A,$,P)}return A;function V(ce,se,me){var ve=ln(se);if(ve.dataIndex=o.dataIndex,ve.seriesIndex=t.seriesIndex,se.setShape({x:0,y:0,width:h,height:p,r:E}),g)K(se);else{se.invisible=!1;var he=o.getVisual("style"),ee=he.stroke,ue=kW(_);ue.fill=ee;var fe=dh(x);fe.fill=x.get("borderColor");var Re=dh(T);Re.fill=T.get("borderColor");var Ne=dh(M);if(Ne.fill=M.get("borderColor"),me){var De=h-2*v;Z(se,ee,he.opacity,{x:v,y:0,width:De,height:w})}else se.removeTextContent();se.setStyle(ue),se.ensureState("emphasis").style=fe,se.ensureState("blur").style=Re,se.ensureState("select").style=Ne,_p(se)}ce.add(se)}function z(ce,se){var me=ln(se);me.dataIndex=o.dataIndex,me.seriesIndex=t.seriesIndex;var ve=Math.max(h-2*v,0),he=Math.max(p-2*v,0);if(se.culling=!0,se.setShape({x:v,y:v,width:ve,height:he,r:E}),g)K(se);else{se.invisible=!1;var ee=o.getVisual("style"),ue=ee.fill,fe=kW(_);fe.fill=ue,fe.decal=ee.decal;var Re=dh(x),Ne=dh(T),De=dh(M);Z(se,ue,ee.opacity,null),se.setStyle(fe),se.ensureState("emphasis").style=Re,se.ensureState("blur").style=Ne,se.ensureState("select").style=De,_p(se)}ce.add(se)}function K(ce){!ce.invisible&&i.push(ce)}function Z(ce,se,me,ve){var he=d.getModel(ve?AW:DW),ee=Ia(d.get("name"),null),ue=he.getShallow("show");Si(ce,Ka(d,ve?AW:DW),{defaultText:ue?ee:null,inheritColor:se,defaultOpacity:me,labelFetcher:t,labelDataIndex:o.dataIndex});var fe=ce.getTextContent();if(fe){var Re=fe.style,Ne=tE(Re.padding||0);ve&&(ce.setTextConfig({layoutRect:ve}),fe.disableLabelLayout=!0),fe.beforeUpdate=function(){var we=Math.max((ve?ve.width:ce.shape.width)-Ne[1]-Ne[3],0),ae=Math.max((ve?ve.height:ce.shape.height)-Ne[0]-Ne[2],0);(Re.width!==we||Re.height!==ae)&&fe.setStyle({width:we,height:ae})},Re.truncateMinChar=2,Re.lineOverflow="truncate",oe(Re,ve,c);var De=fe.getState("emphasis");oe(De?De.style:null,ve,c)}}function oe(ce,se,me){var ve=ce?ce.text:null;if(!se&&me.isLeafRoot&&ve!=null){var he=t.get("drillDownIcon",!0);ce.text=he?he+" "+ve:ve}}function ge(ce,se,me,ve){var he=m!=null&&n[ce][m],ee=a[ce];return he?(n[ce][m]=null,ie(ee,he)):g||(he=new se,he instanceof As&&(he.z2=Nkt(me,ve)),Q(ee,he)),e[ce][y]=he}function ie(ce,se){var me=ce[y]={};se instanceof c3?(me.oldX=se.x,me.oldY=se.y):me.oldShape=et({},se.shape)}function Q(ce,se){var me=ce[y]={},ve=o.parentNode,he=se instanceof en;if(ve&&(!r||r.direction==="drillDown")){var ee=0,ue=0,fe=a.background[ve.getRawIndex()];!r&&fe&&fe.oldShape&&(ee=fe.oldShape.width,ue=fe.oldShape.height),he?(me.oldX=0,me.oldY=ue):me.oldShape={x:ee,y:ue,width:0,height:0}}me.fadein=!he}}function Nkt(t,e){return t*kkt+e}const Ikt=Okt;var fb=q,Bkt=qt,DC=-1,AB=function(){function t(e){var n=e.mappingMethod,r=e.type,a=this.option=Zt(e);this.type=r,this.mappingMethod=n,this._normalizeData=Fkt[n];var i=t.visualHandlers[r];this.applyVisual=i.applyVisual,this.getColorMapper=i.getColorMapper,this._normalizedToVisual=i._normalizedToVisual[n],n==="piecewise"?(nk(a),$kt(a)):n==="category"?a.categories?Pkt(a):nk(a,!0):(Ii(n!=="linear"||a.dataExtent),nk(a))}return t.prototype.mapValueToVisual=function(e){var n=this._normalizeData(e);return this._normalizedToVisual(n,e)},t.prototype.getNormalizer=function(){return Nt(this._normalizeData,this)},t.listVisualTypes=function(){return Dn(t.visualHandlers)},t.isValidType=function(e){return t.visualHandlers.hasOwnProperty(e)},t.eachVisual=function(e,n,r){qt(e)?q(e,n,r):n.call(r,e)},t.mapVisual=function(e,n,r){var a,i=st(e)?[]:qt(e)?{}:(a=!0,null);return t.eachVisual(e,function(o,s){var l=n.call(r,o,s);a?i=l:i[s]=l}),i},t.retrieveVisuals=function(e){var n={},r;return e&&fb(t.visualHandlers,function(a,i){e.hasOwnProperty(i)&&(n[i]=e[i],r=!0)}),r?n:null},t.prepareVisualTypes=function(e){if(st(e))e=e.slice();else if(Bkt(e)){var n=[];fb(e,function(r,a){n.push(a)}),e=n}else return[];return e.sort(function(r,a){return a==="color"&&r!=="color"&&r.indexOf("color")===0?1:-1}),e},t.dependsOn=function(e,n){return n==="color"?!!(e&&e.indexOf(n)===0):e===n},t.findPieceIndex=function(e,n,r){for(var a,i=1/0,o=0,s=n.length;o<s;o++){var l=n[o].value;if(l!=null){if(l===e||Ot(l)&&l===e+"")return o;r&&d(l,o)}}for(var o=0,s=n.length;o<s;o++){var u=n[o],c=u.interval,f=u.close;if(c){if(c[0]===-1/0){if(bx(f[1],e,c[1]))return o}else if(c[1]===1/0){if(bx(f[0],c[0],e))return o}else if(bx(f[0],c[0],e)&&bx(f[1],e,c[1]))return o;r&&d(c[0],o),r&&d(c[1],o)}}if(r)return e===1/0?n.length-1:e===-1/0?0:a;function d(h,p){var v=Math.abs(h-e);v<i&&(i=v,a=p)}},t.visualHandlers={color:{applyVisual:Py("color"),getColorMapper:function(){var e=this.option;return Nt(e.mappingMethod==="category"?function(n,r){return!r&&(n=this._normalizeData(n)),dm.call(this,n)}:function(n,r,a){var i=!!a;return!r&&(n=this._normalizeData(n)),a=Bm(n,e.parsedVisual,a),i?a:vl(a,"rgba")},this)},_normalizedToVisual:{linear:function(e){return vl(Bm(e,this.option.parsedVisual),"rgba")},category:dm,piecewise:function(e,n){var r=d3.call(this,n);return r==null&&(r=vl(Bm(e,this.option.parsedVisual),"rgba")),r},fixed:hh}},colorHue:mx(function(e,n){return yg(e,n)}),colorSaturation:mx(function(e,n){return yg(e,null,n)}),colorLightness:mx(function(e,n){return yg(e,null,null,n)}),colorAlpha:mx(function(e,n){return H1(e,n)}),decal:{applyVisual:Py("decal"),_normalizedToVisual:{linear:null,category:dm,piecewise:null,fixed:null}},opacity:{applyVisual:Py("opacity"),_normalizedToVisual:f3([0,1])},liftZ:{applyVisual:Py("liftZ"),_normalizedToVisual:{linear:hh,category:hh,piecewise:hh,fixed:hh}},symbol:{applyVisual:function(e,n,r){var a=this.mapValueToVisual(e);r("symbol",a)},_normalizedToVisual:{linear:RW,category:dm,piecewise:function(e,n){var r=d3.call(this,n);return r==null&&(r=RW.call(this,e)),r},fixed:hh}},symbolSize:{applyVisual:Py("symbolSize"),_normalizedToVisual:f3([0,1])}},t}();function $kt(t){var e=t.pieceList;t.hasSpecialVisual=!1,q(e,function(n,r){n.originIndex=r,n.visual!=null&&(t.hasSpecialVisual=!0)})}function Pkt(t){var e=t.categories,n=t.categoryMap={},r=t.visual;if(fb(e,function(o,s){n[o]=s}),!st(r)){var a=[];qt(r)?fb(r,function(o,s){var l=n[s];a[l??DC]=o}):a[DC]=r,r=$ue(t,a)}for(var i=e.length-1;i>=0;i--)r[i]==null&&(delete n[e[i]],e.pop())}function nk(t,e){var n=t.visual,r=[];qt(n)?fb(n,function(i){r.push(i)}):n!=null&&r.push(n);var a={color:1,symbol:1};!e&&r.length===1&&!a.hasOwnProperty(t.type)&&(r[1]=r[0]),$ue(t,r)}function mx(t){return{applyVisual:function(e,n,r){var a=this.mapValueToVisual(e);r("color",t(n("color"),a))},_normalizedToVisual:f3([0,1])}}function RW(t){var e=this.option.visual;return e[Math.round(ir(t,[0,1],[0,e.length-1],!0))]||{}}function Py(t){return function(e,n,r){r(t,this.mapValueToVisual(e))}}function dm(t){var e=this.option.visual;return e[this.option.loop&&t!==DC?t%e.length:t]}function hh(){return this.option.visual[0]}function f3(t){return{linear:function(e){return ir(e,t,this.option.visual,!0)},category:dm,piecewise:function(e,n){var r=d3.call(this,n);return r==null&&(r=ir(e,t,this.option.visual,!0)),r},fixed:hh}}function d3(t){var e=this.option,n=e.pieceList;if(e.hasSpecialVisual){var r=AB.findPieceIndex(t,n),a=n[r];if(a&&a.visual)return a.visual[this.type]}}function $ue(t,e){return t.visual=e,t.type==="color"&&(t.parsedVisual=ut(e,function(n){var r=to(n);return r||[0,0,0,1]})),e}var Fkt={linear:function(t){return ir(t,this.option.dataExtent,[0,1],!0)},piecewise:function(t){var e=this.option.pieceList,n=AB.findPieceIndex(t,e,!0);if(n!=null)return ir(n,[0,e.length-1],[0,1],!0)},category:function(t){var e=this.option.categories?this.option.categoryMap[t]:t;return e??DC},fixed:fa};function bx(t,e,n){return t?e<=n:e<n}const gi=AB;var zkt="itemStyle",Pue=Gn();const Ukt={seriesType:"treemap",reset:function(t){var e=t.getData().tree,n=e.root;n.isRemoved()||Fue(n,{},t.getViewRoot().getAncestors(),t)}};function Fue(t,e,n,r){var a=t.getModel(),i=t.getLayout(),o=t.hostTree.data;if(!(!i||i.invisible||!i.isInView)){var s=a.getModel(zkt),l=Gkt(s,e,r),u=o.ensureUniqueItemVisual(t.dataIndex,"style"),c=s.get("borderColor"),f=s.get("borderColorSaturation"),d;f!=null&&(d=LW(l),c=Hkt(f,d)),u.stroke=c;var h=t.viewChildren;if(!h||!h.length)d=LW(l),u.fill=d;else{var p=Wkt(t,a,i,s,l,h);q(h,function(v,g){if(v.depth>=n.length||v===n[v.depth]){var y=jkt(a,l,v,g,p,r);Fue(v,y,n,r)}})}}}function Gkt(t,e,n){var r=et({},e),a=n.designatedVisualItemStyle;return q(["color","colorAlpha","colorSaturation"],function(i){a[i]=e[i];var o=t.get(i);a[i]=null,o!=null&&(r[i]=o)}),r}function LW(t){var e=rk(t,"color");if(e){var n=rk(t,"colorAlpha"),r=rk(t,"colorSaturation");return r&&(e=yg(e,null,null,r)),n&&(e=H1(e,n)),e}}function Hkt(t,e){return e!=null?yg(e,null,null,t):null}function rk(t,e){var n=t[e];if(n!=null&&n!=="none")return n}function Wkt(t,e,n,r,a,i){if(!(!i||!i.length)){var o=ak(e,"color")||a.color!=null&&a.color!=="none"&&(ak(e,"colorAlpha")||ak(e,"colorSaturation"));if(o){var s=e.get("visualMin"),l=e.get("visualMax"),u=n.dataExtent.slice();s!=null&&s<u[0]&&(u[0]=s),l!=null&&l>u[1]&&(u[1]=l);var c=e.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 gi(f);return Pue(d).drColorMappingBy=c,d}}}function ak(t,e){var n=t.get(e);return st(n)&&n.length?{name:e,range:n}:null}function jkt(t,e,n,r,a,i){var o=et({},e);if(a){var s=a.type,l=s==="color"&&Pue(a).drColorMappingBy,u=l==="index"?r:l==="id"?i.mapIdToIndex(n.getId()):n.getValue(t.get("visualDimension"));o[s]=a.mapValueToVisual(u)}return o}var db=Math.max,AC=Math.min,OW=Ua,kB=q,zue=["itemStyle","borderWidth"],Kkt=["itemStyle","gapWidth"],Ykt=["upperLabel","show"],Xkt=["upperLabel","height"];const qkt={seriesType:"treemap",reset:function(t,e,n,r){var a=n.getWidth(),i=n.getHeight(),o=t.option,s=ka(t.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),l=o.size||[],u=Mt(OW(s.width,l[0]),a),c=Mt(OW(s.height,l[1]),i),f=r&&r.type,d=["treemapZoomToNode","treemapRootToNode"],h=cb(r,d,t),p=f==="treemapRender"||f==="treemapMove"?r.rootRect:null,v=t.getViewRoot(),g=Nue(v);if(f!=="treemapMove"){var y=f==="treemapZoomToNode"?nRt(t,h,v,u,c):p?[p.width,p.height]:[u,c],m=o.sort;m&&m!=="asc"&&m!=="desc"&&(m="desc");var S={squareRatio:o.squareRatio,sort:m,leafDepth:o.leafDepth};v.hostTree.clearLayouts();var w={x:0,y:0,width:y[0],height:y[1],area:y[0]*y[1]};v.setLayout(w),Uue(v,S,!1,0),w=v.getLayout(),kB(g,function(_,x){var T=(g[x+1]||v).getValue();_.setLayout(et({dataExtent:[T,T],borderWidth:0,upperHeight:0},w))})}var C=t.getData().tree.root;C.setLayout(rRt(s,p,h),!0),t.setLayoutInfo(s),Gue(C,new yn(-s.x,-s.y,a,i),g,v,0)}};function Uue(t,e,n,r){var a,i;if(!t.isRemoved()){var o=t.getLayout();a=o.width,i=o.height;var s=t.getModel(),l=s.get(zue),u=s.get(Kkt)/2,c=Hue(s),f=Math.max(l,c),d=l-u,h=f-u;t.setLayout({borderWidth:l,upperHeight:f,upperLabelHeight:c},!0),a=db(a-2*d,0),i=db(i-d-h,0);var p=a*i,v=Zkt(t,s,p,e,n,r);if(v.length){var g={x:d,y:h,width:a,height:i},y=AC(a,i),m=1/0,S=[];S.area=0;for(var w=0,C=v.length;w<C;){var _=v[w];S.push(_),S.area+=_.getLayout().area;var x=tRt(S,y,e.squareRatio);x<=m?(w++,m=x):(S.area-=S.pop().getLayout().area,VW(S,y,g,u,!1),y=AC(g.width,g.height),S.length=S.area=0,m=1/0)}if(S.length&&VW(S,y,g,u,!0),!n){var T=s.get("childrenVisibleMin");T!=null&&p<T&&(n=!0)}for(var w=0,C=v.length;w<C;w++)Uue(v[w],e,n,r+1)}}}function Zkt(t,e,n,r,a,i){var o=t.children||[],s=r.sort;s!=="asc"&&s!=="desc"&&(s=null);var l=r.leafDepth!=null&&r.leafDepth<=i;if(a&&!l)return t.viewChildren=[];o=or(o,function(h){return!h.isRemoved()}),Jkt(o,s);var u=eRt(e,o,s);if(u.sum===0)return t.viewChildren=[];if(u.sum=Qkt(e,n,u.sum,s,o),u.sum===0)return t.viewChildren=[];for(var c=0,f=o.length;c<f;c++){var d=o[c].getValue()/u.sum*n;o[c].setLayout({area:d})}return l&&(o.length&&t.setLayout({isLeafRoot:!0},!0),o.length=0),t.viewChildren=o,t.setLayout({dataExtent:u.dataExtent},!0),o}function Qkt(t,e,n,r,a){if(!r)return n;for(var i=t.get("visibleMin"),o=a.length,s=o,l=o-1;l>=0;l--){var u=a[r==="asc"?o-l-1:l].getValue();u/n*e<i&&(s=l,n-=u)}return r==="asc"?a.splice(0,o-s):a.splice(s,o-s),n}function Jkt(t,e){return e&&t.sort(function(n,r){var a=e==="asc"?n.getValue()-r.getValue():r.getValue()-n.getValue();return a===0?e==="asc"?n.dataIndex-r.dataIndex:r.dataIndex-n.dataIndex:a}),t}function eRt(t,e,n){for(var r=0,a=0,i=e.length;a<i;a++)r+=e[a].getValue();var o=t.get("visualDimension"),s;return!e||!e.length?s=[NaN,NaN]:o==="value"&&n?(s=[e[e.length-1].getValue(),e[0].getValue()],n==="asc"&&s.reverse()):(s=[1/0,-1/0],kB(e,function(l){var u=l.getValue(o);u<s[0]&&(s[0]=u),u>s[1]&&(s[1]=u)})),{sum:r,dataExtent:s}}function tRt(t,e,n){for(var r=0,a=1/0,i=0,o=void 0,s=t.length;i<s;i++)o=t[i].getLayout().area,o&&(o<a&&(a=o),o>r&&(r=o));var l=t.area*t.area,u=e*e*n;return l?db(u*r/l,l/(u*a)):1/0}function VW(t,e,n,r,a){var i=e===n.width?0:1,o=1-i,s=["x","y"],l=["width","height"],u=n[s[i]],c=e?t.area/e:0;(a||c>n[l[o]])&&(c=n[l[o]]);for(var f=0,d=t.length;f<d;f++){var h=t[f],p={},v=c?h.getLayout().area/c:0,g=p[l[o]]=db(c-2*r,0),y=n[s[i]]+n[l[i]]-u,m=f===d-1||y<v?y:v,S=p[l[i]]=db(m-2*r,0);p[s[o]]=n[s[o]]+AC(r,g/2),p[s[i]]=u+AC(r,S/2),u+=m,h.setLayout(p,!0)}n[s[o]]+=c,n[l[o]]-=c}function nRt(t,e,n,r,a){var i=(e||{}).node,o=[r,a];if(!i||i===n)return o;for(var s,l=r*a,u=l*t.option.zoomToNodeRatio;s=i.parentNode;){for(var c=0,f=s.children,d=0,h=f.length;d<h;d++)c+=f[d].getValue();var p=i.getValue();if(p===0)return o;u*=c/p;var v=s.getModel(),g=v.get(zue),y=Math.max(g,Hue(v));u+=4*g*g+(3*g+y)*Math.pow(u,.5),u>SO&&(u=SO),i=s}u<l&&(u=l);var m=Math.pow(u/l,.5);return[r*m,a*m]}function rRt(t,e,n){if(e)return{x:e.x,y:e.y};var r={x:0,y:0};if(!n)return r;var a=n.node,i=a.getLayout();if(!i)return r;for(var o=[i.width/2,i.height/2],s=a;s;){var l=s.getLayout();o[0]+=l.x,o[1]+=l.y,s=s.parentNode}return{x:t.width/2-o[0],y:t.height/2-o[1]}}function Gue(t,e,n,r,a){var i=t.getLayout(),o=n[a],s=o&&o===t;if(!(o&&!s||a===n.length&&t!==r)){t.setLayout({isInView:!0,invisible:!s&&!e.intersect(i),isAboveViewRoot:s},!0);var l=new yn(e.x-i.x,e.y-i.y,e.width,e.height);kB(t.viewChildren||[],function(u){Gue(u,l,n,r,a+1)})}}function Hue(t){return t.get(Ykt)?t.get(Xkt):0}function aRt(t){t.registerSeriesModel(xkt),t.registerChartView(Ikt),t.registerVisual(Ukt),t.registerLayout(qkt),bkt(t)}function iRt(t){var e=t.findComponents({mainType:"legend"});!e||!e.length||t.eachSeriesByType("graph",function(n){var r=n.getCategoriesData(),a=n.getGraph(),i=a.data,o=r.mapArray(r.getName);i.filterSelf(function(s){var l=i.getItemModel(s),u=l.getShallow("category");if(u!=null){Un(u)&&(u=o[u]);for(var c=0;c<e.length;c++)if(!e[c].isSelected(u))return!1}return!0})})}function oRt(t){var e={};t.eachSeriesByType("graph",function(n){var r=n.getCategoriesData(),a=n.getData(),i={};r.each(function(o){var s=r.getName(o);i["ec-"+s]=o;var l=r.getItemModel(o),u=l.getModel("itemStyle").getItemStyle();u.fill||(u.fill=n.getColorFromPalette(s,e)),r.setItemVisual(o,"style",u);for(var c=["symbol","symbolSize","symbolKeepAspect"],f=0;f<c.length;f++){var d=l.getShallow(c[f],!0);d!=null&&r.setItemVisual(o,c[f],d)}}),r.count()&&a.each(function(o){var s=a.getItemModel(o),l=s.getShallow("category");if(l!=null){Ot(l)&&(l=i["ec-"+l]);var u=r.getItemVisual(l,"style"),c=a.ensureUniqueItemVisual(o,"style");et(c,u);for(var f=["symbol","symbolSize","symbolKeepAspect"],d=0;d<f.length;d++)a.setItemVisual(o,f[d],r.getItemVisual(l,f[d]))}})})}function Sx(t){return t instanceof Array||(t=[t,t]),t}function sRt(t){t.eachSeriesByType("graph",function(e){var n=e.getGraph(),r=e.getEdgeData(),a=Sx(e.get("edgeSymbol")),i=Sx(e.get("edgeSymbolSize"));r.setVisual("fromSymbol",a&&a[0]),r.setVisual("toSymbol",a&&a[1]),r.setVisual("fromSymbolSize",i&&i[0]),r.setVisual("toSymbolSize",i&&i[1]),r.setVisual("style",e.getModel("lineStyle").getLineStyle()),r.each(function(o){var s=r.getItemModel(o),l=n.getEdgeByIndex(o),u=Sx(s.getShallow("symbol",!0)),c=Sx(s.getShallow("symbolSize",!0)),f=s.getModel("lineStyle").getLineStyle(),d=r.ensureUniqueItemVisual(o,"style");switch(et(d,f),d.stroke){case"source":{var h=l.node1.getVisual("style");d.stroke=h&&h.fill;break}case"target":{var h=l.node2.getVisual("style");d.stroke=h&&h.fill;break}}u[0]&&l.setVisual("fromSymbol",u[0]),u[1]&&l.setVisual("toSymbol",u[1]),c[0]&&l.setVisual("fromSymbolSize",c[0]),c[1]&&l.setVisual("toSymbolSize",c[1])})})}var h3="-->",$E=function(t){return t.get("autoCurveness")||null},Wue=function(t,e){var n=$E(t),r=20,a=[];if(Un(n))r=n;else if(st(n)){t.__curvenessList=n;return}e>r&&(r=e);var i=r%2?r+2:r+3;a=[];for(var o=0;o<i;o++)a.push((o%2?o+1:o)/10*(o%2?-1:1));t.__curvenessList=a},hb=function(t,e,n){var r=[t.id,t.dataIndex].join("."),a=[e.id,e.dataIndex].join(".");return[n.uid,r,a].join(h3)},jue=function(t){var e=t.split(h3);return[e[0],e[2],e[1]].join(h3)},lRt=function(t,e){var n=hb(t.node1,t.node2,e);return e.__edgeMap[n]},uRt=function(t,e){var n=p3(hb(t.node1,t.node2,e),e),r=p3(hb(t.node2,t.node1,e),e);return n+r},p3=function(t,e){var n=e.__edgeMap;return n[t]?n[t].length:0};function cRt(t){$E(t)&&(t.__curvenessList=[],t.__edgeMap={},Wue(t))}function fRt(t,e,n,r){if($E(n)){var a=hb(t,e,n),i=n.__edgeMap,o=i[jue(a)];i[a]&&!o?i[a].isForward=!0:o&&i[a]&&(o.isForward=!0,i[a].isForward=!1),i[a]=i[a]||[],i[a].push(r)}}function RB(t,e,n,r){var a=$E(e),i=st(a);if(!a)return null;var o=lRt(t,e);if(!o)return null;for(var s=-1,l=0;l<o.length;l++)if(o[l]===n){s=l;break}var u=uRt(t,e);Wue(e,u),t.lineStyle=t.lineStyle||{};var c=hb(t.node1,t.node2,e),f=e.__curvenessList,d=i||u%2?0:1;if(o.isForward)return f[d+s];var h=jue(c),p=p3(h,e),v=f[s+p+d];return r?i?a&&a[0]===0?(p+d)%2?v:-v:((p%2?0:1)+d)%2?v:-v:(p+d)%2?v:-v:f[s+p+d]}function Kue(t){var e=t.coordinateSystem;if(!(e&&e.type!=="view")){var n=t.getGraph();n.eachNode(function(r){var a=r.getModel();r.setLayout([+a.get("x"),+a.get("y")])}),LB(n,t)}}function LB(t,e){t.eachEdge(function(n,r){var a=hl(n.getModel().get(["lineStyle","curveness"]),-RB(n,e,r,!0),0),i=su(n.node1.getLayout()),o=su(n.node2.getLayout()),s=[i,o];+a&&s.push([(i[0]+o[0])/2-(i[1]-o[1])*a,(i[1]+o[1])/2-(o[0]-i[0])*a]),n.setLayout(s)})}function dRt(t,e){t.eachSeriesByType("graph",function(n){var r=n.get("layout"),a=n.coordinateSystem;if(a&&a.type!=="view"){var i=n.getData(),o=[];q(a.dimensions,function(d){o=o.concat(i.mapDimensionsAll(d))});for(var s=0;s<i.count();s++){for(var l=[],u=!1,c=0;c<o.length;c++){var f=i.get(o[c],s);isNaN(f)||(u=!0),l.push(f)}u?i.setItemLayout(s,a.dataToPoint(l)):i.setItemLayout(s,[NaN,NaN])}LB(i.graph,n)}else(!r||r==="none")&&Kue(n)})}function hm(t){var e=t.coordinateSystem;if(e.type!=="view")return 1;var n=t.option.nodeScaleRatio,r=e.scaleX,a=e.getZoom(),i=(a-1)*n+1;return i/r}function pm(t){var e=t.getVisual("symbolSize");return e instanceof Array&&(e=(e[0]+e[1])/2),+e}var NW=Math.PI,ik=[];function OB(t,e,n,r){var a=t.coordinateSystem;if(!(a&&a.type!=="view")){var i=a.getBoundingRect(),o=t.getData(),s=o.graph,l=i.width/2+i.x,u=i.height/2+i.y,c=Math.min(i.width,i.height)/2,f=o.count();if(o.setLayout({cx:l,cy:u}),!!f){if(n){var d=a.pointToData(r),h=d[0],p=d[1],v=[h-l,p-u];Bp(v,v),Nm(v,v,c),n.setLayout([l+v[0],u+v[1]],!0);var g=t.get(["circular","rotateLabel"]);Yue(n,g,l,u)}hRt[e](t,s,o,c,l,u,f),s.eachEdge(function(y,m){var S=hl(y.getModel().get(["lineStyle","curveness"]),RB(y,t,m),0),w=su(y.node1.getLayout()),C=su(y.node2.getLayout()),_,x=(w[0]+C[0])/2,T=(w[1]+C[1])/2;+S&&(S*=3,_=[l*S+x*(1-S),u*S+T*(1-S)]),y.setLayout([w,C,_])})}}}var hRt={value:function(t,e,n,r,a,i,o){var s=0,l=n.getSum("value"),u=Math.PI*2/(l||o);e.eachNode(function(c){var f=c.getValue("value"),d=u*(l?f:1)/2;s+=d,c.setLayout([r*Math.cos(s)+a,r*Math.sin(s)+i]),s+=d})},symbolSize:function(t,e,n,r,a,i,o){var s=0;ik.length=o;var l=hm(t);e.eachNode(function(f){var d=pm(f);isNaN(d)&&(d=2),d<0&&(d=0),d*=l;var h=Math.asin(d/2/r);isNaN(h)&&(h=NW/2),ik[f.dataIndex]=h,s+=h*2});var u=(2*NW-s)/o/2,c=0;e.eachNode(function(f){var d=u+ik[f.dataIndex];c+=d,(!f.getLayout()||!f.getLayout().fixed)&&f.setLayout([r*Math.cos(c)+a,r*Math.sin(c)+i]),c+=d})}};function Yue(t,e,n,r){var a=t.getGraphicEl();if(a){var i=t.getModel(),o=i.get(["label","rotate"])||0,s=a.getSymbolPath();if(e){var l=t.getLayout(),u=Math.atan2(l[1]-r,l[0]-n);u<0&&(u=Math.PI*2+u);var c=l[0]<n;c&&(u=u-Math.PI);var f=c?"left":"right";s.setTextConfig({rotation:-u,position:f,origin:"center"});var d=s.ensureState("emphasis");et(d.textConfig||(d.textConfig={}),{position:f})}else s.setTextConfig({rotation:o*=Math.PI/180})}}function pRt(t){t.eachSeriesByType("graph",function(e){e.get("layout")==="circular"&&OB(e,"symbolSize")})}var wv=K2;function vRt(t,e,n){for(var r=t,a=e,i=n.rect,o=i.width,s=i.height,l=[i.x+o/2,i.y+s/2],u=n.gravity==null?.1:n.gravity,c=0;c<r.length;c++){var f=r[c];f.p||(f.p=cd(o*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),f.pp=su(f.p),f.edges=null}var d=n.friction==null?.6:n.friction,h=d,p,v;return{warmUp:function(){h=d*.8},setFixed:function(g){r[g].fixed=!0},setUnfixed:function(g){r[g].fixed=!1},beforeStep:function(g){p=g},afterStep:function(g){v=g},step:function(g){p&&p(r,a);for(var y=[],m=r.length,S=0;S<a.length;S++){var w=a[S];if(!w.ignoreForceLayout){var C=w.n1,_=w.n2;Sf(y,_.p,C.p);var x=z1(y)-w.d,T=_.w/(C.w+_.w);isNaN(T)&&(T=0),Bp(y,y),!C.fixed&&wv(C.p,C.p,y,T*x*h),!_.fixed&&wv(_.p,_.p,y,-(1-T)*x*h)}}for(var S=0;S<m;S++){var M=r[S];M.fixed||(Sf(y,l,M.p),wv(M.p,M.p,y,u*h))}for(var S=0;S<m;S++)for(var C=r[S],E=S+1;E<m;E++){var _=r[E];Sf(y,_.p,C.p);var x=z1(y);x===0&&(Oae(y,Math.random()-.5,Math.random()-.5),x=1);var A=(C.rep+_.rep)/x/x;!C.fixed&&wv(C.pp,C.pp,y,A),!_.fixed&&wv(_.pp,_.pp,y,-A)}for(var k=[],S=0;S<m;S++){var M=r[S];M.fixed||(Sf(k,M.p,M.pp),wv(M.p,M.p,k,h),Di(M.pp,M.p))}h=h*.992;var L=h<.01;v&&v(r,a,L),g&&g(L)}}}function gRt(t){t.eachSeriesByType("graph",function(e){var n=e.coordinateSystem;if(!(n&&n.type!=="view"))if(e.get("layout")==="force"){var r=e.preservedPoints||{},a=e.getGraph(),i=a.data,o=a.edgeData,s=e.getModel("force"),l=s.get("initLayout");e.preservedPoints?i.each(function(S){var w=i.getId(S);i.setItemLayout(S,r[w]||[NaN,NaN])}):!l||l==="none"?Kue(e):l==="circular"&&OB(e,"value");var u=i.getDataExtent("value"),c=o.getDataExtent("value"),f=s.get("repulsion"),d=s.get("edgeLength"),h=st(f)?f:[f,f],p=st(d)?d:[d,d];p=[p[1],p[0]];var v=i.mapArray("value",function(S,w){var C=i.getItemLayout(w),_=ir(S,u,h);return isNaN(_)&&(_=(h[0]+h[1])/2),{w:_,rep:_,fixed:i.getItemModel(w).get("fixed"),p:!C||isNaN(C[0])||isNaN(C[1])?null:C}}),g=o.mapArray("value",function(S,w){var C=a.getEdgeByIndex(w),_=ir(S,c,p);isNaN(_)&&(_=(p[0]+p[1])/2);var x=C.getModel(),T=hl(C.getModel().get(["lineStyle","curveness"]),-RB(C,e,w,!0),0);return{n1:v[C.node1.dataIndex],n2:v[C.node2.dataIndex],d:_,curveness:T,ignoreForceLayout:x.get("ignoreForceLayout")}}),y=n.getBoundingRect(),m=vRt(v,g,{rect:y,gravity:s.get("gravity"),friction:s.get("friction")});m.beforeStep(function(S,w){for(var C=0,_=S.length;C<_;C++)S[C].fixed&&Di(S[C].p,a.getNodeByIndex(C).getLayout())}),m.afterStep(function(S,w,C){for(var _=0,x=S.length;_<x;_++)S[_].fixed||a.getNodeByIndex(_).setLayout(S[_].p),r[i.getId(_)]=S[_].p;for(var _=0,x=w.length;_<x;_++){var T=w[_],M=a.getEdgeByIndex(_),E=T.n1.p,A=T.n2.p,k=M.getLayout();k=k?k.slice():[],k[0]=k[0]||[],k[1]=k[1]||[],Di(k[0],E),Di(k[1],A),+T.curveness&&(k[2]=[(E[0]+A[0])/2-(E[1]-A[1])*T.curveness,(E[1]+A[1])/2-(A[0]-E[0])*T.curveness]),M.setLayout(k)}}),e.forceLayout=m,e.preservedPoints=r,m.step()}else e.forceLayout=null})}function yRt(t,e,n){var r=et(t.getBoxLayoutParams(),{aspect:n});return ka(r,{width:e.getWidth(),height:e.getHeight()})}function mRt(t,e){var n=[];return t.eachSeriesByType("graph",function(r){var a=r.get("coordinateSystem");if(!a||a==="view"){var i=r.getData(),o=i.mapArray(function(g){var y=i.getItemModel(g);return[+y.get("x"),+y.get("y")]}),s=[],l=[];cE(o,s,l),l[0]-s[0]===0&&(l[0]+=1,s[0]-=1),l[1]-s[1]===0&&(l[1]+=1,s[1]-=1);var u=(l[0]-s[0])/(l[1]-s[1]),c=yRt(r,e,u);isNaN(u)&&(s=[c.x,c.y],l=[c.x+c.width,c.y+c.height]);var f=l[0]-s[0],d=l[1]-s[1],h=c.width,p=c.height,v=r.coordinateSystem=new bS;v.zoomLimit=r.get("scaleLimit"),v.setBoundingRect(s[0],s[1],f,d),v.setViewRect(c.x,c.y,h,p),v.setCenter(r.get("center"),e),v.setZoom(r.get("zoom")),n.push(v)}}),n}var IW=Ga.prototype,ok=iS.prototype,Xue=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return t}();(function(t){Fe(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(Xue);function sk(t){return isNaN(+t.cpx1)||isNaN(+t.cpy1)}var bRt=function(t){Fe(e,t);function e(n){var r=t.call(this,n)||this;return r.type="ec-line",r}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Xue},e.prototype.buildPath=function(n,r){sk(r)?IW.buildPath.call(this,n,r):ok.buildPath.call(this,n,r)},e.prototype.pointAt=function(n){return sk(this.shape)?IW.pointAt.call(this,n):ok.pointAt.call(this,n)},e.prototype.tangentAt=function(n){var r=this.shape,a=sk(r)?[r.x2-r.x1,r.y2-r.y1]:ok.tangentAt.call(this,n);return Bp(a,a)},e}(Cn);const SRt=bRt;var lk=["fromSymbol","toSymbol"];function BW(t){return"_"+t+"Type"}function $W(t,e,n){var r=e.getItemVisual(n,t);if(!r||r==="none")return r;var a=e.getItemVisual(n,t+"Size"),i=e.getItemVisual(n,t+"Rotate"),o=e.getItemVisual(n,t+"Offset"),s=e.getItemVisual(n,t+"KeepAspect"),l=U0(a),u=zp(o||0,l);return r+l+u+(i||"")+(s||"")}function PW(t,e,n){var r=e.getItemVisual(n,t);if(!(!r||r==="none")){var a=e.getItemVisual(n,t+"Size"),i=e.getItemVisual(n,t+"Rotate"),o=e.getItemVisual(n,t+"Offset"),s=e.getItemVisual(n,t+"KeepAspect"),l=U0(a),u=zp(o||0,l),c=ba(r,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return c.__specifiedRotation=i==null||isNaN(i)?void 0:+i*Math.PI/180||0,c.name=t,c}}function wRt(t){var e=new SRt({name:"line",subPixelOptimize:!0});return v3(e.shape,t),e}function v3(t,e){t.x1=e[0][0],t.y1=e[0][1],t.x2=e[1][0],t.y2=e[1][1],t.percent=1;var n=e[2];n?(t.cpx1=n[0],t.cpy1=n[1]):(t.cpx1=NaN,t.cpy1=NaN)}var xRt=function(t){Fe(e,t);function e(n,r,a){var i=t.call(this)||this;return i._createLine(n,r,a),i}return e.prototype._createLine=function(n,r,a){var i=n.hostModel,o=n.getItemLayout(r),s=wRt(o);s.shape.percent=0,Ur(s,{shape:{percent:1}},i,r),this.add(s),q(lk,function(l){var u=PW(l,n,r);this.add(u),this[BW(l)]=$W(l,n,r)},this),this._updateCommonStl(n,r,a)},e.prototype.updateData=function(n,r,a){var i=n.hostModel,o=this.childOfName("line"),s=n.getItemLayout(r),l={shape:{}};v3(l.shape,s),jn(o,l,i,r),q(lk,function(u){var c=$W(u,n,r),f=BW(u);if(this[f]!==c){this.remove(this.childOfName(u));var d=PW(u,n,r);this.add(d)}this[f]=c},this),this._updateCommonStl(n,r,a)},e.prototype.getLinePath=function(){return this.childAt(0)},e.prototype._updateCommonStl=function(n,r,a){var i=n.hostModel,o=this.childOfName("line"),s=a&&a.emphasisLineStyle,l=a&&a.blurLineStyle,u=a&&a.selectLineStyle,c=a&&a.labelStatesModels,f=a&&a.emphasisDisabled,d=a&&a.focus,h=a&&a.blurScope;if(!a||n.hasItemOption){var p=n.getItemModel(r),v=p.getModel("emphasis");s=v.getModel("lineStyle").getLineStyle(),l=p.getModel(["blur","lineStyle"]).getLineStyle(),u=p.getModel(["select","lineStyle"]).getLineStyle(),f=v.get("disabled"),d=v.get("focus"),h=v.get("blurScope"),c=Ka(p)}var g=n.getItemVisual(r,"style"),y=g.stroke;o.useStyle(g),o.style.fill=null,o.style.strokeNoScale=!0,o.ensureState("emphasis").style=s,o.ensureState("blur").style=l,o.ensureState("select").style=u,q(lk,function(_){var x=this.childOfName(_);if(x){x.setColor(y),x.style.opacity=g.opacity;for(var T=0;T<oo.length;T++){var M=oo[T],E=o.getState(M);if(E){var A=E.style||{},k=x.ensureState(M),L=k.style||(k.style={});A.stroke!=null&&(L[x.__isEmptyBrush?"stroke":"fill"]=A.stroke),A.opacity!=null&&(L.opacity=A.opacity)}}x.markRedraw()}},this);var m=i.getRawValue(r);Si(this,c,{labelDataIndex:r,labelFetcher:{getFormattedLabel:function(_,x){return i.getFormattedLabel(_,x,n.dataType)}},inheritColor:y||"#000",defaultOpacity:g.opacity,defaultText:(m==null?n.getName(r):isFinite(m)?sa(m):m)+""});var S=this.getTextContent();if(S){var w=c.normal;S.__align=S.style.align,S.__verticalAlign=S.style.verticalAlign,S.__position=w.get("position")||"middle";var C=w.get("distance");st(C)||(C=[C,C]),S.__labelDistance=C}this.setTextConfig({position:null,local:!0,inside:!1}),ua(this,d,h,f)},e.prototype.highlight=function(){dc(this)},e.prototype.downplay=function(){hc(this)},e.prototype.updateLayout=function(n,r){this.setLinePoints(n.getItemLayout(r))},e.prototype.setLinePoints=function(n){var r=this.childOfName("line");v3(r.shape,n),r.dirty()},e.prototype.beforeUpdate=function(){var n=this,r=n.childOfName("fromSymbol"),a=n.childOfName("toSymbol"),i=n.getTextContent();if(!r&&!a&&(!i||i.ignore))return;for(var o=1,s=this.parent;s;)s.scaleX&&(o/=s.scaleX),s=s.parent;var l=n.childOfName("line");if(!this.__dirty&&!l.__dirty)return;var u=l.shape.percent,c=l.pointAt(0),f=l.pointAt(u),d=Sf([],f,c);Bp(d,d);function h(E,A){var k=E.__specifiedRotation;if(k==null){var L=l.tangentAt(A);E.attr("rotation",(A===1?-1:1)*Math.PI/2-Math.atan2(L[1],L[0]))}else E.attr("rotation",k)}if(r&&(r.setPosition(c),h(r,0),r.scaleX=r.scaleY=o*u,r.markRedraw()),a&&(a.setPosition(f),h(a,1),a.scaleX=a.scaleY=o*u,a.markRedraw()),i&&!i.ignore){i.x=i.y=0,i.originX=i.originY=0;var p=void 0,v=void 0,g=i.__labelDistance,y=g[0]*o,m=g[1]*o,S=u/2,w=l.tangentAt(S),C=[w[1],-w[0]],_=l.pointAt(S);C[1]>0&&(C[0]=-C[0],C[1]=-C[1]);var x=w[0]<0?-1:1;if(i.__position!=="start"&&i.__position!=="end"){var T=-Math.atan2(w[1],w[0]);f[0]<c[0]&&(T=Math.PI+T),i.rotation=T}var M=void 0;switch(i.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":M=-m,v="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":M=m,v="top";break;default:M=0,v="middle"}switch(i.__position){case"end":i.x=d[0]*y+f[0],i.y=d[1]*m+f[1],p=d[0]>.8?"left":d[0]<-.8?"right":"center",v=d[1]>.8?"top":d[1]<-.8?"bottom":"middle";break;case"start":i.x=-d[0]*y+c[0],i.y=-d[1]*m+c[1],p=d[0]>.8?"right":d[0]<-.8?"left":"center",v=d[1]>.8?"bottom":d[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=y*x+c[0],i.y=c[1]+M,p=w[0]<0?"right":"left",i.originX=-y*x,i.originY=-M;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=_[0],i.y=_[1]+M,p="center",i.originY=-M;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-y*x+f[0],i.y=f[1]+M,p=w[0]>=0?"right":"left",i.originX=y*x,i.originY=-M;break}i.scaleX=i.scaleY=o,i.setStyle({verticalAlign:i.__verticalAlign||v,align:i.__align||p})}},e}(en);const VB=xRt;var _Rt=function(){function t(e){this.group=new en,this._LineCtor=e||VB}return t.prototype.updateData=function(e){var n=this;this._progressiveEls=null;var r=this,a=r.group,i=r._lineData;r._lineData=e,i||a.removeAll();var o=FW(e);e.diff(i).add(function(s){n._doAdd(e,s,o)}).update(function(s,l){n._doUpdate(i,e,l,s,o)}).remove(function(s){a.remove(i.getItemGraphicEl(s))}).execute()},t.prototype.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl(function(n,r){n.updateLayout(e,r)},this)},t.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=FW(e),this._lineData=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(e,n){this._progressiveEls=[];function r(s){!s.isGroup&&!CRt(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var a=e.start;a<e.end;a++){var i=n.getItemLayout(a);if(uk(i)){var o=new this._LineCtor(n,a,this._seriesScope);o.traverse(r),this.group.add(o),n.setItemGraphicEl(a,o),this._progressiveEls.push(o)}}},t.prototype.remove=function(){this.group.removeAll()},t.prototype.eachRendered=function(e){dd(this._progressiveEls||this.group,e)},t.prototype._doAdd=function(e,n,r){var a=e.getItemLayout(n);if(uk(a)){var i=new this._LineCtor(e,n,r);e.setItemGraphicEl(n,i),this.group.add(i)}},t.prototype._doUpdate=function(e,n,r,a,i){var o=e.getItemGraphicEl(r);if(!uk(n.getItemLayout(a))){this.group.remove(o);return}o?o.updateData(n,a,i):o=new this._LineCtor(n,a,i),n.setItemGraphicEl(a,o),this.group.add(o)},t}();function CRt(t){return t.animators&&t.animators.length>0}function FW(t){var e=t.hostModel,n=e.getModel("emphasis");return{lineStyle:e.getModel("lineStyle").getLineStyle(),emphasisLineStyle:n.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:e.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:e.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:n.get("disabled"),blurScope:n.get("blurScope"),focus:n.get("focus"),labelStatesModels:Ka(e)}}function zW(t){return isNaN(t[0])||isNaN(t[1])}function uk(t){return t&&!zW(t[0])&&!zW(t[1])}const NB=_Rt;var ck=[],fk=[],dk=[],xv=Ja,hk=Lf,UW=Math.abs;function GW(t,e,n){for(var r=t[0],a=t[1],i=t[2],o=1/0,s,l=n*n,u=.1,c=.1;c<=.9;c+=.1){ck[0]=xv(r[0],a[0],i[0],c),ck[1]=xv(r[1],a[1],i[1],c);var f=UW(hk(ck,e)-l);f<o&&(o=f,s=c)}for(var d=0;d<32;d++){var h=s+u;fk[0]=xv(r[0],a[0],i[0],s),fk[1]=xv(r[1],a[1],i[1],s),dk[0]=xv(r[0],a[0],i[0],h),dk[1]=xv(r[1],a[1],i[1],h);var f=hk(fk,e)-l;if(UW(f)<.01)break;var p=hk(dk,e)-l;u/=2,f<0?p>=0?s=s+u:s=s-u:p>=0?s=s-u:s=s+u}return s}function pk(t,e){var n=[],r=U1,a=[[],[],[]],i=[[],[]],o=[];e/=2,t.eachEdge(function(s,l){var u=s.getLayout(),c=s.getVisual("fromSymbol"),f=s.getVisual("toSymbol");u.__original||(u.__original=[su(u[0]),su(u[1])],u[2]&&u.__original.push(su(u[2])));var d=u.__original;if(u[2]!=null){if(Di(a[0],d[0]),Di(a[1],d[2]),Di(a[2],d[1]),c&&c!=="none"){var h=pm(s.node1),p=GW(a,d[0],h*e);r(a[0][0],a[1][0],a[2][0],p,n),a[0][0]=n[3],a[1][0]=n[4],r(a[0][1],a[1][1],a[2][1],p,n),a[0][1]=n[3],a[1][1]=n[4]}if(f&&f!=="none"){var h=pm(s.node2),p=GW(a,d[1],h*e);r(a[0][0],a[1][0],a[2][0],p,n),a[1][0]=n[1],a[2][0]=n[2],r(a[0][1],a[1][1],a[2][1],p,n),a[1][1]=n[1],a[2][1]=n[2]}Di(u[0],a[0]),Di(u[1],a[2]),Di(u[2],a[1])}else{if(Di(i[0],d[0]),Di(i[1],d[1]),Sf(o,i[1],i[0]),Bp(o,o),c&&c!=="none"){var h=pm(s.node1);K2(i[0],i[0],o,h*e)}if(f&&f!=="none"){var h=pm(s.node2);K2(i[1],i[1],o,-h*e)}Di(u[0],i[0]),Di(u[1],i[1])}})}function HW(t){return t.type==="view"}var TRt=function(t){Fe(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.init=function(n,r){var a=new pS,i=new NB,o=this.group;this._controller=new mS(r.getZr()),this._controllerHost={target:o},o.add(a.group),o.add(i.group),this._symbolDraw=a,this._lineDraw=i,this._firstRender=!0},e.prototype.render=function(n,r,a){var i=this,o=n.coordinateSystem;this._model=n;var s=this._symbolDraw,l=this._lineDraw,u=this.group;if(HW(o)){var c={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?u.attr(c):jn(u,c,n)}pk(n.getGraph(),hm(n));var f=n.getData();s.updateData(f);var d=n.getEdgeData();l.updateData(d),this._updateNodeAndLinkScale(),this._updateController(n,r,a),clearTimeout(this._layoutTimeout);var h=n.forceLayout,p=n.get(["force","layoutAnimation"]);h&&this._startForceLayoutIteration(h,p);var v=n.get("layout");f.graph.eachNode(function(S){var w=S.dataIndex,C=S.getGraphicEl(),_=S.getModel();if(C){C.off("drag").off("dragend");var x=_.get("draggable");x&&C.on("drag",function(M){switch(v){case"force":h.warmUp(),!i._layouting&&i._startForceLayoutIteration(h,p),h.setFixed(w),f.setItemLayout(w,[C.x,C.y]);break;case"circular":f.setItemLayout(w,[C.x,C.y]),S.setLayout({fixed:!0},!0),OB(n,"symbolSize",S,[M.offsetX,M.offsetY]),i.updateLayout(n);break;case"none":default:f.setItemLayout(w,[C.x,C.y]),LB(n.getGraph(),n),i.updateLayout(n);break}}).on("dragend",function(){h&&h.setUnfixed(w)}),C.setDraggable(x,!!_.get("cursor"));var T=_.get(["emphasis","focus"]);T==="adjacency"&&(ln(C).focus=S.getAdjacentDataIndices())}}),f.graph.eachEdge(function(S){var w=S.getGraphicEl(),C=S.getModel().get(["emphasis","focus"]);w&&C==="adjacency"&&(ln(w).focus={edge:[S.dataIndex],node:[S.node1.dataIndex,S.node2.dataIndex]})});var g=n.get("layout")==="circular"&&n.get(["circular","rotateLabel"]),y=f.getLayout("cx"),m=f.getLayout("cy");f.graph.eachNode(function(S){Yue(S,g,y,m)}),this._firstRender=!1},e.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype._startForceLayoutIteration=function(n,r){var a=this;(function i(){n.step(function(o){a.updateLayout(a._model),(a._layouting=!o)&&(r?a._layoutTimeout=setTimeout(i,16):i())})})()},e.prototype._updateController=function(n,r,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)&&!NE(u,a,n)}),!HW(n.coordinateSystem)){o.disable();return}o.enable(n.get("roam")),s.zoomLimit=n.get("scaleLimit"),s.zoom=n.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){xB(s,u.dx,u.dy),a.dispatchAction({seriesId:n.id,type:"graphRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){_B(s,u.scale,u.originX,u.originY),a.dispatchAction({seriesId:n.id,type:"graphRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),i._updateNodeAndLinkScale(),pk(n.getGraph(),hm(n)),i._lineDraw.updateLayout(),a.updateLabelLayout()})},e.prototype._updateNodeAndLinkScale=function(){var n=this._model,r=n.getData(),a=hm(n);r.eachItemGraphicEl(function(i,o){i&&i.setSymbolScale(a)})},e.prototype.updateLayout=function(n){pk(n.getGraph(),hm(n)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},e.prototype.remove=function(n,r){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},e.type="graph",e}(br);const ERt=TRt;function _v(t){return"_EC_"+t}var MRt=function(){function t(e){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=e||!1}return t.prototype.isDirected=function(){return this._directed},t.prototype.addNode=function(e,n){e=e==null?""+n:""+e;var r=this._nodesMap;if(!r[_v(e)]){var a=new ph(e,n);return a.hostGraph=this,this.nodes.push(a),r[_v(e)]=a,a}},t.prototype.getNodeByIndex=function(e){var n=this.data.getRawIndex(e);return this.nodes[n]},t.prototype.getNodeById=function(e){return this._nodesMap[_v(e)]},t.prototype.addEdge=function(e,n,r){var a=this._nodesMap,i=this._edgesMap;if(Un(e)&&(e=this.nodes[e]),Un(n)&&(n=this.nodes[n]),e instanceof ph||(e=a[_v(e)]),n instanceof ph||(n=a[_v(n)]),!(!e||!n)){var o=e.id+"-"+n.id,s=new que(e,n,r);return s.hostGraph=this,this._directed&&(e.outEdges.push(s),n.inEdges.push(s)),e.edges.push(s),e!==n&&n.edges.push(s),this.edges.push(s),i[o]=s,s}},t.prototype.getEdgeByIndex=function(e){var n=this.edgeData.getRawIndex(e);return this.edges[n]},t.prototype.getEdge=function(e,n){e instanceof ph&&(e=e.id),n instanceof ph&&(n=n.id);var r=this._edgesMap;return this._directed?r[e+"-"+n]:r[e+"-"+n]||r[n+"-"+e]},t.prototype.eachNode=function(e,n){for(var r=this.nodes,a=r.length,i=0;i<a;i++)r[i].dataIndex>=0&&e.call(n,r[i],i)},t.prototype.eachEdge=function(e,n){for(var r=this.edges,a=r.length,i=0;i<a;i++)r[i].dataIndex>=0&&r[i].node1.dataIndex>=0&&r[i].node2.dataIndex>=0&&e.call(n,r[i],i)},t.prototype.breadthFirstTraverse=function(e,n,r,a){if(n instanceof ph||(n=this._nodesMap[_v(n)]),!!n){for(var i=r==="out"?"outEdges":r==="in"?"inEdges":"edges",o=0;o<this.nodes.length;o++)this.nodes[o].__visited=!1;if(!e.call(a,n,null))for(var s=[n];s.length;)for(var l=s.shift(),u=l[i],o=0;o<u.length;o++){var c=u[o],f=c.node1===l?c.node2:c.node1;if(!f.__visited){if(e.call(a,f,l))return;s.push(f),f.__visited=!0}}}},t.prototype.update=function(){for(var e=this.data,n=this.edgeData,r=this.nodes,a=this.edges,i=0,o=r.length;i<o;i++)r[i].dataIndex=-1;for(var i=0,o=e.count();i<o;i++)r[e.getRawIndex(i)].dataIndex=i;n.filterSelf(function(s){var l=a[n.getRawIndex(s)];return l.node1.dataIndex>=0&&l.node2.dataIndex>=0});for(var i=0,o=a.length;i<o;i++)a[i].dataIndex=-1;for(var i=0,o=n.count();i<o;i++)a[n.getRawIndex(i)].dataIndex=i},t.prototype.clone=function(){for(var e=new t(this._directed),n=this.nodes,r=this.edges,a=0;a<n.length;a++)e.addNode(n[a].id,n[a].dataIndex);for(var a=0;a<r.length;a++){var i=r[a];e.addEdge(i.node1.id,i.node2.id,i.dataIndex)}return e},t}(),ph=function(){function t(e,n){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=e??"",this.dataIndex=n??-1}return t.prototype.degree=function(){return this.edges.length},t.prototype.inDegree=function(){return this.inEdges.length},t.prototype.outDegree=function(){return this.outEdges.length},t.prototype.getModel=function(e){if(!(this.dataIndex<0)){var n=this.hostGraph,r=n.data.getItemModel(this.dataIndex);return r.getModel(e)}},t.prototype.getAdjacentDataIndices=function(){for(var e={edge:[],node:[]},n=0;n<this.edges.length;n++){var r=this.edges[n];r.dataIndex<0||(e.edge.push(r.dataIndex),e.node.push(r.node1.dataIndex,r.node2.dataIndex))}return e},t.prototype.getTrajectoryDataIndices=function(){for(var e=Gt(),n=Gt(),r=0;r<this.edges.length;r++){var a=this.edges[r];if(!(a.dataIndex<0)){e.set(a.dataIndex,!0);for(var i=[a.node1],o=[a.node2],s=0;s<i.length;){var l=i[s];s++,n.set(l.dataIndex,!0);for(var u=0;u<l.inEdges.length;u++)e.set(l.inEdges[u].dataIndex,!0),i.push(l.inEdges[u].node1)}for(s=0;s<o.length;){var c=o[s];s++,n.set(c.dataIndex,!0);for(var u=0;u<c.outEdges.length;u++)e.set(c.outEdges[u].dataIndex,!0),o.push(c.outEdges[u].node2)}}}return{edge:e.keys(),node:n.keys()}},t}(),que=function(){function t(e,n,r){this.dataIndex=-1,this.node1=e,this.node2=n,this.dataIndex=r??-1}return t.prototype.getModel=function(e){if(!(this.dataIndex<0)){var n=this.hostGraph,r=n.edgeData.getItemModel(this.dataIndex);return r.getModel(e)}},t.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},t.prototype.getTrajectoryDataIndices=function(){var e=Gt(),n=Gt();e.set(this.dataIndex,!0);for(var r=[this.node1],a=[this.node2],i=0;i<r.length;){var o=r[i];i++,n.set(o.dataIndex,!0);for(var s=0;s<o.inEdges.length;s++)e.set(o.inEdges[s].dataIndex,!0),r.push(o.inEdges[s].node1)}for(i=0;i<a.length;){var l=a[i];i++,n.set(l.dataIndex,!0);for(var s=0;s<l.outEdges.length;s++)e.set(l.outEdges[s].dataIndex,!0),a.push(l.outEdges[s].node2)}return{edge:e.keys(),node:n.keys()}},t}();function Zue(t,e){return{getValue:function(n){var r=this[t][e];return r.getStore().get(r.getDimensionIndex(n||"value"),this.dataIndex)},setVisual:function(n,r){this.dataIndex>=0&&this[t][e].setItemVisual(this.dataIndex,n,r)},getVisual:function(n){return this[t][e].getItemVisual(this.dataIndex,n)},setLayout:function(n,r){this.dataIndex>=0&&this[t][e].setItemLayout(this.dataIndex,n,r)},getLayout:function(){return this[t][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[t][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[t][e].getRawIndex(this.dataIndex)}}}ha(ph,Zue("hostGraph","data"));ha(que,Zue("hostGraph","edgeData"));const DRt=MRt;function Que(t,e,n,r,a){for(var i=new DRt(r),o=0;o<t.length;o++)i.addNode(Ua(t[o].id,t[o].name,o),o);for(var s=[],l=[],u=0,o=0;o<e.length;o++){var c=e[o],f=c.source,d=c.target;i.addEdge(f,d,u)&&(l.push(c),s.push(Ua(Ia(c.id,null),f+" > "+d)),u++)}var h=n.get("coordinateSystem"),p;if(h==="cartesian2d"||h==="polar")p=Tu(t,n);else{var v=P0.get(h),g=v?v.dimensions||[]:[];bn(g,"value")<0&&g.concat(["value"]);var y=G0(t,{coordDimensions:g,encodeDefine:n.getEncode()}).dimensions;p=new Oi(y,n),p.initData(t)}var m=new Oi(["value"],n);return m.initData(l,s),a&&a(p,m),Oue({mainData:p,struct:i,structAttr:"graph",datas:{node:p,edge:m},datasAttr:{node:"data",edge:"edgeData"}}),i.update(),i}var ARt=function(t){Fe(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return e.prototype.init=function(n){t.prototype.init.apply(this,arguments);var r=this;function a(){return r._categoriesData}this.legendVisualProvider=new yS(a,a),this.fillDataTextStyle(n.edges||n.links),this._updateCategoriesData()},e.prototype.mergeOption=function(n){t.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(n.edges||n.links),this._updateCategoriesData()},e.prototype.mergeDefaultAndTheme=function(n){t.prototype.mergeDefaultAndTheme.apply(this,arguments),Sp(n,"edgeLabel",["show"])},e.prototype.getInitialData=function(n,r){var a=n.edges||n.links||[],i=n.data||n.nodes||[],o=this;if(i&&a){cRt(this);var s=Que(i,a,this,!0,l);return q(s.edges,function(u){fRt(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,c){u.wrapMethod("getItemModel",function(p){var v=o._categoriesModels,g=p.getShallow("category"),y=v[g];return y&&(y.parentModel=p.parentModel,p.parentModel=y),p});var f=yr.prototype.getModel;function d(p,v){var g=f.call(this,p,v);return g.resolveParentPath=h,g}c.wrapMethod("getItemModel",function(p){return p.resolveParentPath=h,p.getModel=d,p});function h(p){if(p&&(p[0]==="label"||p[1]==="label")){var v=p.slice();return p[0]==="label"?v[0]="edgeLabel":p[1]==="label"&&(v[1]="edgeLabel"),v}return p}}},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.getCategoriesData=function(){return this._categoriesData},e.prototype.formatTooltip=function(n,r,a){if(a==="edge"){var i=this.getData(),o=this.getDataParams(n,a),s=i.graph.getEdgeByIndex(n),l=i.getName(s.node1.dataIndex),u=i.getName(s.node2.dataIndex),c=[];return l!=null&&c.push(l),u!=null&&c.push(u),Ya("nameValue",{name:c.join(" > "),value:o.value,noValue:o.value==null})}var f=gse({series:this,dataIndex:n,multipleSeries:r});return f},e.prototype._updateCategoriesData=function(){var n=ut(this.option.categories||[],function(a){return a.value!=null?a:et({value:0},a)}),r=new Oi(["value"],this);r.initData(n),this._categoriesData=r,this._categoriesModels=r.mapArray(function(a){return r.getItemModel(a)})},e.prototype.setZoom=function(n){this.option.zoom=n},e.prototype.setCenter=function(n){this.option.center=n},e.prototype.isAnimationEnabled=function(){return t.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},e.type="series.graph",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.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"}}},e}(Vr);const kRt=ARt;var RRt={type:"graphRoam",event:"graphRoam",update:"none"};function LRt(t){t.registerChartView(ERt),t.registerSeriesModel(kRt),t.registerProcessor(iRt),t.registerVisual(oRt),t.registerVisual(sRt),t.registerLayout(dRt),t.registerLayout(t.PRIORITY.VISUAL.POST_CHART_LAYOUT,pRt),t.registerLayout(gRt),t.registerCoordinateSystem("graphView",{dimensions:bS.dimensions,create:mRt}),t.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},fa),t.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},fa),t.registerAction(RRt,function(e,n,r){n.eachComponent({mainType:"series",query:e},function(a){var i=a.coordinateSystem,o=TB(i,e,void 0,r);a.setCenter&&a.setCenter(o.center),a.setZoom&&a.setZoom(o.zoom)})})}var ORt=function(){function t(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return t}(),VRt=function(t){Fe(e,t);function e(n){var r=t.call(this,n)||this;return r.type="pointer",r}return e.prototype.getDefaultShape=function(){return new ORt},e.prototype.buildPath=function(n,r){var a=Math.cos,i=Math.sin,o=r.r,s=r.width,l=r.angle,u=r.x-a(l)*s*(s>=o/3?1:2),c=r.y-i(l)*s*(s>=o/3?1:2);l=r.angle-Math.PI/2,n.moveTo(u,c),n.lineTo(r.x+a(l)*s,r.y+i(l)*s),n.lineTo(r.x+a(r.angle)*o,r.y+i(r.angle)*o),n.lineTo(r.x-a(l)*s,r.y-i(l)*s),n.lineTo(u,c)},e}(Cn);const NRt=VRt;function IRt(t,e){var n=t.get("center"),r=e.getWidth(),a=e.getHeight(),i=Math.min(r,a),o=Mt(n[0],e.getWidth()),s=Mt(n[1],e.getHeight()),l=Mt(t.get("radius"),i/2);return{cx:o,cy:s,r:l}}function xx(t,e){var n=t==null?"":t+"";return e&&(Ot(e)?n=e.replace("{value}",n):jt(e)&&(n=e(t))),n}var BRt=function(t){Fe(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.render=function(n,r,a){this.group.removeAll();var i=n.get(["axisLine","lineStyle","color"]),o=IRt(n,a);this._renderMain(n,r,a,i,o),this._data=n.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(n,r,a,i,o){var s=this.group,l=n.get("clockwise"),u=-n.get("startAngle")/180*Math.PI,c=-n.get("endAngle")/180*Math.PI,f=n.getModel("axisLine"),d=f.get("roundCap"),h=d?CC:so,p=f.get("show"),v=f.getModel("lineStyle"),g=v.get("width"),y=[u,c];Aie(y,!l),u=y[0],c=y[1];for(var m=c-u,S=u,w=[],C=0;p&&C<i.length;C++){var _=Math.min(Math.max(i[C][0],0),1);c=u+m*_;var x=new h({shape:{startAngle:S,endAngle:c,cx:o.cx,cy:o.cy,clockwise:l,r0:o.r-g,r:o.r},silent:!0});x.setStyle({fill:i[C][1]}),x.setStyle(v.getLineStyle(["color","width"])),w.push(x),S=c}w.reverse(),q(w,function(M){return s.add(M)});var T=function(M){if(M<=0)return i[0][1];var E;for(E=0;E<i.length;E++)if(i[E][0]>=M&&(E===0?0:i[E-1][0])<M)return i[E][1];return i[E-1][1]};this._renderTicks(n,r,a,T,o,u,c,l,g),this._renderTitleAndDetail(n,r,a,T,o),this._renderAnchor(n,o),this._renderPointer(n,r,a,T,o,u,c,l,g)},e.prototype._renderTicks=function(n,r,a,i,o,s,l,u,c){for(var f=this.group,d=o.cx,h=o.cy,p=o.r,v=+n.get("min"),g=+n.get("max"),y=n.getModel("splitLine"),m=n.getModel("axisTick"),S=n.getModel("axisLabel"),w=n.get("splitNumber"),C=m.get("splitNumber"),_=Mt(y.get("length"),p),x=Mt(m.get("length"),p),T=s,M=(l-s)/w,E=M/C,A=y.getModel("lineStyle").getLineStyle(),k=m.getModel("lineStyle").getLineStyle(),L=y.get("distance"),I,P,F=0;F<=w;F++){if(I=Math.cos(T),P=Math.sin(T),y.get("show")){var $=L?L+c:c,W=new Ga({shape:{x1:I*(p-$)+d,y1:P*(p-$)+h,x2:I*(p-_-$)+d,y2:P*(p-_-$)+h},style:A,silent:!0});A.stroke==="auto"&&W.setStyle({stroke:i(F/w)}),f.add(W)}if(S.get("show")){var $=S.get("distance")+L,V=xx(sa(F/w*(g-v)+v),S.get("formatter")),z=i(F/w),K=I*(p-_-$)+d,Z=P*(p-_-$)+h,oe=S.get("rotate"),ge=0;oe==="radial"?(ge=-T+2*Math.PI,ge>Math.PI/2&&(ge+=Math.PI)):oe==="tangential"?ge=-T-Math.PI/2:Un(oe)&&(ge=oe*Math.PI/180),ge===0?f.add(new Bn({style:Dr(S,{text:V,x:K,y:Z,verticalAlign:P<-.8?"top":P>.8?"bottom":"middle",align:I<-.4?"left":I>.4?"right":"center"},{inheritColor:z}),silent:!0})):f.add(new Bn({style:Dr(S,{text:V,x:K,y:Z,verticalAlign:"middle",align:"center"},{inheritColor:z}),silent:!0,originX:K,originY:Z,rotation:ge}))}if(m.get("show")&&F!==w){var $=m.get("distance");$=$?$+c:c;for(var ie=0;ie<=C;ie++){I=Math.cos(T),P=Math.sin(T);var Q=new Ga({shape:{x1:I*(p-$)+d,y1:P*(p-$)+h,x2:I*(p-x-$)+d,y2:P*(p-x-$)+h},silent:!0,style:k});k.stroke==="auto"&&Q.setStyle({stroke:i((F+ie/C)/w)}),f.add(Q),T+=E}T-=E}else T+=M}},e.prototype._renderPointer=function(n,r,a,i,o,s,l,u,c){var f=this.group,d=this._data,h=this._progressEls,p=[],v=n.get(["pointer","show"]),g=n.getModel("progress"),y=g.get("show"),m=n.getData(),S=m.mapDimension("value"),w=+n.get("min"),C=+n.get("max"),_=[w,C],x=[s,l];function T(E,A){var k=m.getItemModel(E),L=k.getModel("pointer"),I=Mt(L.get("width"),o.r),P=Mt(L.get("length"),o.r),F=n.get(["pointer","icon"]),$=L.get("offsetCenter"),W=Mt($[0],o.r),V=Mt($[1],o.r),z=L.get("keepAspect"),K;return F?K=ba(F,W-I/2,V-P,I,P,null,z):K=new NRt({shape:{angle:-Math.PI/2,width:I,r:P,x:W,y:V}}),K.rotation=-(A+Math.PI/2),K.x=o.cx,K.y=o.cy,K}function M(E,A){var k=g.get("roundCap"),L=k?CC:so,I=g.get("overlap"),P=I?g.get("width"):c/m.count(),F=I?o.r-P:o.r-(E+1)*P,$=I?o.r:o.r-E*P,W=new L({shape:{startAngle:s,endAngle:A,cx:o.cx,cy:o.cy,clockwise:u,r0:F,r:$}});return I&&(W.z2=C-m.get(S,E)%C),W}(y||v)&&(m.diff(d).add(function(E){var A=m.get(S,E);if(v){var k=T(E,s);Ur(k,{rotation:-((isNaN(+A)?x[0]:ir(A,_,x,!0))+Math.PI/2)},n),f.add(k),m.setItemGraphicEl(E,k)}if(y){var L=M(E,s),I=g.get("clip");Ur(L,{shape:{endAngle:ir(A,_,x,I)}},n),f.add(L),EO(n.seriesIndex,m.dataType,E,L),p[E]=L}}).update(function(E,A){var k=m.get(S,E);if(v){var L=d.getItemGraphicEl(A),I=L?L.rotation:s,P=T(E,I);P.rotation=I,jn(P,{rotation:-((isNaN(+k)?x[0]:ir(k,_,x,!0))+Math.PI/2)},n),f.add(P),m.setItemGraphicEl(E,P)}if(y){var F=h[A],$=F?F.shape.endAngle:s,W=M(E,$),V=g.get("clip");jn(W,{shape:{endAngle:ir(k,_,x,V)}},n),f.add(W),EO(n.seriesIndex,m.dataType,E,W),p[E]=W}}).execute(),m.each(function(E){var A=m.getItemModel(E),k=A.getModel("emphasis"),L=k.get("focus"),I=k.get("blurScope"),P=k.get("disabled");if(v){var F=m.getItemGraphicEl(E),$=m.getItemVisual(E,"style"),W=$.fill;if(F instanceof si){var V=F.style;F.useStyle(et({image:V.image,x:V.x,y:V.y,width:V.width,height:V.height},$))}else F.useStyle($),F.type!=="pointer"&&F.setColor(W);F.setStyle(A.getModel(["pointer","itemStyle"]).getItemStyle()),F.style.fill==="auto"&&F.setStyle("fill",i(ir(m.get(S,E),_,[0,1],!0))),F.z2EmphasisLift=0,bi(F,A),ua(F,L,I,P)}if(y){var z=p[E];z.useStyle(m.getItemVisual(E,"style")),z.setStyle(A.getModel(["progress","itemStyle"]).getItemStyle()),z.z2EmphasisLift=0,bi(z,A),ua(z,L,I,P)}}),this._progressEls=p)},e.prototype._renderAnchor=function(n,r){var a=n.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=ba(s,r.cx-o/2+Mt(l[0],r.r),r.cy-o/2+Mt(l[1],r.r),o,o,null,u);c.z2=a.get("showAbove")?1:0,c.setStyle(a.getModel("itemStyle").getItemStyle()),this.group.add(c)}},e.prototype._renderTitleAndDetail=function(n,r,a,i,o){var s=this,l=n.getData(),u=l.mapDimension("value"),c=+n.get("min"),f=+n.get("max"),d=new en,h=[],p=[],v=n.isAnimationEnabled(),g=n.get(["pointer","showAbove"]);l.diff(this._data).add(function(y){h[y]=new Bn({silent:!0}),p[y]=new Bn({silent:!0})}).update(function(y,m){h[y]=s._titleEls[m],p[y]=s._detailEls[m]}).execute(),l.each(function(y){var m=l.getItemModel(y),S=l.get(u,y),w=new en,C=i(ir(S,[c,f],[0,1],!0)),_=m.getModel("title");if(_.get("show")){var x=_.get("offsetCenter"),T=o.cx+Mt(x[0],o.r),M=o.cy+Mt(x[1],o.r),E=h[y];E.attr({z2:g?0:2,style:Dr(_,{x:T,y:M,text:l.getName(y),align:"center",verticalAlign:"middle"},{inheritColor:C})}),w.add(E)}var A=m.getModel("detail");if(A.get("show")){var k=A.get("offsetCenter"),L=o.cx+Mt(k[0],o.r),I=o.cy+Mt(k[1],o.r),P=Mt(A.get("width"),o.r),F=Mt(A.get("height"),o.r),$=n.get(["progress","show"])?l.getItemVisual(y,"style").fill:C,E=p[y],W=A.get("formatter");E.attr({z2:g?0:2,style:Dr(A,{x:L,y:I,text:xx(S,W),width:isNaN(P)?null:P,height:isNaN(F)?null:F,align:"center",verticalAlign:"middle"},{inheritColor:$})}),woe(E,{normal:A},S,function(z){return xx(z,W)}),v&&xoe(E,y,l,n,{getFormattedLabel:function(z,K,Z,oe,ge,ie){return xx(ie?ie.interpolatedValue:S,W)}}),w.add(E)}d.add(w)}),this.group.add(d),this._titleEls=h,this._detailEls=p},e.type="gauge",e}(br);const $Rt=BRt;var PRt=function(t){Fe(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.visualStyleAccessPath="itemStyle",n}return e.prototype.getInitialData=function(n,r){return W0(this,["value"])},e.type="series.gauge",e.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}},e}(Vr);const FRt=PRt;function zRt(t){t.registerChartView($Rt),t.registerSeriesModel(FRt)}var URt=["itemStyle","opacity"],GRt=function(t){Fe(e,t);function e(n,r){var a=t.call(this)||this,i=a,o=new fo,s=new Bn;return i.setTextContent(s),a.setTextGuideLine(o),a.updateData(n,r,!0),a}return e.prototype.updateData=function(n,r,a){var i=this,o=n.hostModel,s=n.getItemModel(r),l=n.getItemLayout(r),u=s.getModel("emphasis"),c=s.get(URt);c=c??1,a||xl(i),i.useStyle(n.getItemVisual(r,"style")),i.style.lineJoin="round",a?(i.setShape({points:l.points}),i.style.opacity=0,Ur(i,{style:{opacity:c}},o,r)):jn(i,{style:{opacity:c},shape:{points:l.points}},o,r),bi(i,s),this._updateLabel(n,r),ua(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(n,r){var a=this,i=this.getTextGuideLine(),o=a.getTextContent(),s=n.hostModel,l=n.getItemModel(r),u=n.getItemLayout(r),c=u.label,f=n.getItemVisual(r,"style"),d=f.fill;Si(o,Ka(l),{labelFetcher:n.hostModel,labelDataIndex:r,defaultOpacity:f.opacity,defaultText:n.getName(r)},{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 vn(h[0][0],h[0][1]):null},jn(o,{style:{x:c.x,y:c.y}},s,r),o.attr({rotation:c.rotation,originX:c.x,originY:c.y,z2:10}),hB(a,pB(l),{stroke:d})},e}(lo),HRt=function(t){Fe(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.ignoreLabelLineUpdate=!0,n}return e.prototype.render=function(n,r,a){var i=n.getData(),o=this._data,s=this.group;i.diff(o).add(function(l){var u=new GRt(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);Q1(u,n,l)}).execute(),this._data=i},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.prototype.dispose=function(){},e.type="funnel",e}(br);const WRt=HRt;var jRt=function(t){Fe(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.init=function(n){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new yS(Nt(this.getData,this),Nt(this.getRawData,this)),this._defaultLabelLine(n)},e.prototype.getInitialData=function(n,r){return W0(this,{coordDimensions:["value"],encodeDefaulter:sn($I,this)})},e.prototype._defaultLabelLine=function(n){Sp(n,"labelLine",["show"]);var r=n.labelLine,a=n.emphasis.labelLine;r.show=r.show&&n.label.show,a.show=a.show&&n.emphasis.label.show},e.prototype.getDataParams=function(n){var r=this.getData(),a=t.prototype.getDataParams.call(this,n),i=r.mapDimension("value"),o=r.getSum(i);return a.percent=o?+(r.get(i,n)/o*100).toFixed(2):0,a.$vars.push("percent"),a},e.type="series.funnel",e.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"}}},e}(Vr);const KRt=jRt;function YRt(t,e){return ka(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function XRt(t,e){for(var n=t.mapDimension("value"),r=t.mapArray(n,function(l){return l}),a=[],i=e==="ascending",o=0,s=t.count();o<s;o++)a[o]=o;return jt(e)?a.sort(e):e!=="none"&&a.sort(function(l,u){return i?r[l]-r[u]:r[u]-r[l]}),a}function qRt(t){var e=t.hostModel,n=e.get("orient");t.each(function(r){var a=t.getItemModel(r),i=a.getModel("label"),o=i.get("position"),s=a.getModel("labelLine"),l=t.getItemLayout(r),u=l.points,c=o==="inner"||o==="inside"||o==="center"||o==="insideLeft"||o==="insideRight",f,d,h,p;if(c)o==="insideLeft"?(d=(u[0][0]+u[3][0])/2+5,h=(u[0][1]+u[3][1])/2,f="left"):o==="insideRight"?(d=(u[1][0]+u[2][0])/2-5,h=(u[1][1]+u[2][1])/2,f="right"):(d=(u[0][0]+u[1][0]+u[2][0]+u[3][0])/4,h=(u[0][1]+u[1][1]+u[2][1]+u[3][1])/4,f="center"),p=[[d,h],[d,h]];else{var v=void 0,g=void 0,y=void 0,m=void 0,S=s.get("length");o==="left"?(v=(u[3][0]+u[0][0])/2,g=(u[3][1]+u[0][1])/2,y=v-S,d=y-5,f="right"):o==="right"?(v=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,y=v+S,d=y+5,f="left"):o==="top"?(v=(u[3][0]+u[0][0])/2,g=(u[3][1]+u[0][1])/2,m=g-S,h=m-5,f="center"):o==="bottom"?(v=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,m=g+S,h=m+5,f="center"):o==="rightTop"?(v=n==="horizontal"?u[3][0]:u[1][0],g=n==="horizontal"?u[3][1]:u[1][1],n==="horizontal"?(m=g-S,h=m-5,f="center"):(y=v+S,d=y+5,f="top")):o==="rightBottom"?(v=u[2][0],g=u[2][1],n==="horizontal"?(m=g+S,h=m+5,f="center"):(y=v+S,d=y+5,f="bottom")):o==="leftTop"?(v=u[0][0],g=n==="horizontal"?u[0][1]:u[1][1],n==="horizontal"?(m=g-S,h=m-5,f="center"):(y=v-S,d=y-5,f="right")):o==="leftBottom"?(v=n==="horizontal"?u[1][0]:u[3][0],g=n==="horizontal"?u[1][1]:u[2][1],n==="horizontal"?(m=g+S,h=m+5,f="center"):(y=v-S,d=y-5,f="right")):(v=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,n==="horizontal"?(m=g+S,h=m+5,f="center"):(y=v+S,d=y+5,f="left")),n==="horizontal"?(y=v,d=y):(m=g,h=m),p=[[v,g],[y,m]]}l.label={linePoints:p,x:d,y:h,verticalAlign:"middle",textAlign:f,inside:c}})}function ZRt(t,e){t.eachSeriesByType("funnel",function(n){var r=n.getData(),a=r.mapDimension("value"),i=n.get("sort"),o=YRt(n,e),s=n.get("orient"),l=o.width,u=o.height,c=XRt(r,i),f=o.x,d=o.y,h=s==="horizontal"?[Mt(n.get("minSize"),u),Mt(n.get("maxSize"),u)]:[Mt(n.get("minSize"),l),Mt(n.get("maxSize"),l)],p=r.getDataExtent(a),v=n.get("min"),g=n.get("max");v==null&&(v=Math.min(p[0],0)),g==null&&(g=p[1]);var y=n.get("funnelAlign"),m=n.get("gap"),S=s==="horizontal"?l:u,w=(S-m*(r.count()-1))/r.count(),C=function(I,P){if(s==="horizontal"){var F=r.get(a,I)||0,$=ir(F,[v,g],h,!0),W=void 0;switch(y){case"top":W=d;break;case"center":W=d+(u-$)/2;break;case"bottom":W=d+(u-$);break}return[[P,W],[P,W+$]]}var V=r.get(a,I)||0,z=ir(V,[v,g],h,!0),K;switch(y){case"left":K=f;break;case"center":K=f+(l-z)/2;break;case"right":K=f+l-z;break}return[[K,P],[K+z,P]]};i==="ascending"&&(w=-w,m=-m,s==="horizontal"?f+=l:d+=u,c=c.reverse());for(var _=0;_<c.length;_++){var x=c[_],T=c[_+1],M=r.getItemModel(x);if(s==="horizontal"){var E=M.get(["itemStyle","width"]);E==null?E=w:(E=Mt(E,l),i==="ascending"&&(E=-E));var A=C(x,f),k=C(T,f+E);f+=E+m,r.setItemLayout(x,{points:A.concat(k.slice().reverse())})}else{var L=M.get(["itemStyle","height"]);L==null?L=w:(L=Mt(L,u),i==="ascending"&&(L=-L));var A=C(x,d),k=C(T,d+L);d+=L+m,r.setItemLayout(x,{points:A.concat(k.slice().reverse())})}}qRt(r)})}function QRt(t){t.registerChartView(WRt),t.registerSeriesModel(KRt),t.registerLayout(ZRt),t.registerProcessor(gS("funnel"))}var JRt=.3,eLt=function(t){Fe(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n._dataGroup=new en,n._initialized=!1,n}return e.prototype.init=function(){this.group.add(this._dataGroup)},e.prototype.render=function(n,r,a,i){this._progressiveEls=null;var o=this._dataGroup,s=n.getData(),l=this._data,u=n.coordinateSystem,c=u.dimensions,f=jW(n);s.diff(l).add(d).update(h).remove(p).execute();function d(g){var y=WW(s,o,g,c,u);vk(y,s,g,f)}function h(g,y){var m=l.getItemGraphicEl(y),S=Jue(s,g,c,u);s.setItemGraphicEl(g,m),jn(m,{shape:{points:S}},n,g),xl(m),vk(m,s,g,f)}function p(g){var y=l.getItemGraphicEl(g);o.remove(y)}if(!this._initialized){this._initialized=!0;var v=tLt(u,n,function(){setTimeout(function(){o.removeClipPath()})});o.setClipPath(v)}this._data=s},e.prototype.incrementalPrepareRender=function(n,r,a){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},e.prototype.incrementalRender=function(n,r,a){for(var i=r.getData(),o=r.coordinateSystem,s=o.dimensions,l=jW(r),u=this._progressiveEls=[],c=n.start;c<n.end;c++){var f=WW(i,this._dataGroup,c,s,o);f.incremental=!0,vk(f,i,c,l),u.push(f)}},e.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},e.type="parallel",e}(br);function tLt(t,e,n){var r=t.model,a=t.getRect(),i=new $n({shape:{x:a.x,y:a.y,width:a.width,height:a.height}}),o=r.get("layout")==="horizontal"?"width":"height";return i.setShape(o,0),Ur(i,{shape:{width:a.width,height:a.height}},e,n),i}function Jue(t,e,n,r){for(var a=[],i=0;i<n.length;i++){var o=n[i],s=t.get(t.mapDimension(o),e);nLt(s,r.getAxis(o).type)||a.push(r.dataToPoint(s,o))}return a}function WW(t,e,n,r,a){var i=Jue(t,n,r,a),o=new fo({shape:{points:i},z2:10});return e.add(o),t.setItemGraphicEl(n,o),o}function jW(t){var e=t.get("smooth",!0);return e===!0&&(e=JRt),e=yu(e),t0(e)&&(e=0),{smooth:e}}function vk(t,e,n,r){t.useStyle(e.getItemVisual(n,"style")),t.style.fill=null,t.setShape("smooth",r.smooth);var a=e.getItemModel(n),i=a.getModel("emphasis");bi(t,a,"lineStyle"),ua(t,i.get("focus"),i.get("blurScope"),i.get("disabled"))}function nLt(t,e){return e==="category"?t==null:t==null||isNaN(t)}const rLt=eLt;var aLt=function(t){Fe(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return e.prototype.getInitialData=function(n,r){return Tu(null,this,{useEncodeDefaulter:Nt(iLt,null,this)})},e.prototype.getRawIndicesByActiveState=function(n){var r=this.coordinateSystem,a=this.getData(),i=[];return r.eachActiveState(a,function(o,s){n===o&&i.push(a.getRawIndex(s))}),i},e.type="series.parallel",e.dependencies=["parallel"],e.defaultOption={z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"},e}(Vr);function iLt(t){var e=t.ecModel.getComponent("parallel",t.get("parallelIndex"));if(e){var n={};return q(e.dimensions,function(r){var a=oLt(r);n[r]=a}),n}}function oLt(t){return+t.replace("dim","")}const sLt=aLt;var lLt=["lineStyle","opacity"],uLt={seriesType:"parallel",reset:function(t,e){var n=t.coordinateSystem,r={normal:t.get(["lineStyle","opacity"]),active:t.get("activeOpacity"),inactive:t.get("inactiveOpacity")};return{progress:function(a,i){n.eachActiveState(i,function(o,s){var l=r[o];if(o==="normal"&&i.hasItemOption){var u=i.getItemModel(s).get(lLt,!0);u!=null&&(l=u)}var c=i.ensureUniqueItemVisual(s,"style");c.opacity=l},a.start,a.end)}}}};const cLt=uLt;function fLt(t){dLt(t),hLt(t)}function dLt(t){if(!t.parallel){var e=!1;q(t.series,function(n){n&&n.type==="parallel"&&(e=!0)}),e&&(t.parallel=[{}])}}function hLt(t){var e=mr(t.parallelAxis);q(e,function(n){if(qt(n)){var r=n.parallelIndex||0,a=mr(t.parallel)[r];a&&a.parallelAxisDefault&&hn(n,a.parallelAxisDefault,!1)}})}var pLt=5,vLt=function(t){Fe(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.render=function(n,r,a){this._model=n,this._api=a,this._handlers||(this._handlers={},q(gLt,function(i,o){a.getZr().on(o,this._handlers[o]=Nt(i,this))},this)),z0(this,"_throttledDispatchExpand",n.get("axisExpandRate"),"fixRate")},e.prototype.dispose=function(n,r){rb(this,"_throttledDispatchExpand"),q(this._handlers,function(a,i){r.getZr().off(i,a)}),this._handlers=null},e.prototype._throttledDispatchExpand=function(n){this._dispatchExpand(n)},e.prototype._dispatchExpand=function(n){n&&this._api.dispatchAction(et({type:"parallelAxisExpand"},n))},e.type="parallel",e}(jr),gLt={mousedown:function(t){gk(this,"click")&&(this._mouseDownPoint=[t.offsetX,t.offsetY])},mouseup:function(t){var e=this._mouseDownPoint;if(gk(this,"click")&&e){var n=[t.offsetX,t.offsetY],r=Math.pow(e[0]-n[0],2)+Math.pow(e[1]-n[1],2);if(r>pLt)return;var a=this._model.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]);a.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:a.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(t){if(!(this._mouseDownPoint||!gk(this,"mousemove"))){var e=this._model,n=e.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]),r=n.behavior;r==="jump"&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand(r==="none"?null:{axisExpandWindow:n.axisExpandWindow,animation:r==="jump"?null:{duration:0}})}}};function gk(t,e){var n=t._model;return n.get("axisExpandable")&&n.get("axisExpandTriggerOn")===e}const yLt=vLt;var mLt=function(t){Fe(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.init=function(){t.prototype.init.apply(this,arguments),this.mergeOption({})},e.prototype.mergeOption=function(n){var r=this.option;n&&hn(r,n,!0),this._initDimensions()},e.prototype.contains=function(n,r){var a=n.get("parallelIndex");return a!=null&&r.getComponent("parallel",a)===this},e.prototype.setAxisExpand=function(n){q(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(r){n.hasOwnProperty(r)&&(this.option[r]=n[r])},this)},e.prototype._initDimensions=function(){var n=this.dimensions=[],r=this.parallelAxisIndex=[],a=or(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(i){return(i.get("parallelIndex")||0)===this.componentIndex},this);q(a,function(i){n.push("dim"+i.get("dim")),r.push(i.componentIndex)})},e.type="parallel",e.dependencies=["parallelAxis"],e.layoutMode="box",e.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},e}(On);const bLt=mLt;var SLt=function(t){Fe(e,t);function e(n,r,a,i,o){var s=t.call(this,n,r,a)||this;return s.type=i||"value",s.axisIndex=o,s}return e.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},e}(Vs);const wLt=SLt;function Hp(t,e,n,r,a,i){t=t||0;var o=n[1]-n[0];if(a!=null&&(a=Cv(a,[0,o])),i!=null&&(i=Math.max(i,a??0)),r==="all"){var s=Math.abs(e[1]-e[0]);s=Cv(s,[0,o]),a=i=Cv(s,[a,i]),r=0}e[0]=Cv(e[0],n),e[1]=Cv(e[1],n);var l=yk(e,r);e[r]+=t;var u=a||0,c=n.slice();l.sign<0?c[0]+=u:c[1]-=u,e[r]=Cv(e[r],c);var f;return f=yk(e,r),a!=null&&(f.sign!==l.sign||f.span<a)&&(e[1-r]=e[r]+l.sign*a),f=yk(e,r),i!=null&&f.span>i&&(e[1-r]=e[r]+f.sign*i),e}function yk(t,e){var n=t[e]-t[1-e];return{span:Math.abs(n),sign:n>0?-1:n<0?1:e?-1:1}}function Cv(t,e){return Math.min(e[1]!=null?e[1]:1/0,Math.max(e[0]!=null?e[0]:-1/0,t))}var mk=q,ece=Math.min,tce=Math.max,KW=Math.floor,xLt=Math.ceil,YW=sa,_Lt=Math.PI,CLt=function(){function t(e,n,r){this.type="parallel",this._axesMap=Gt(),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,n,r)}return t.prototype._init=function(e,n,r){var a=e.dimensions,i=e.parallelAxisIndex;mk(a,function(o,s){var l=i[s],u=n.getComponent("parallelAxis",l),c=this._axesMap.set(o,new wLt(o,fS(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)},t.prototype.update=function(e,n){this._updateAxesFromSeries(this._model,e)},t.prototype.containPoint=function(e){var n=this._makeLayoutInfo(),r=n.axisBase,a=n.layoutBase,i=n.pixelDimIndex,o=e[1-i],s=e[i];return o>=r&&o<=r+n.axisLength&&s>=a&&s<=a+n.layoutLength},t.prototype.getModel=function(){return this._model},t.prototype._updateAxesFromSeries=function(e,n){n.eachSeries(function(r){if(e.contains(r,n)){var a=r.getData();mk(this.dimensions,function(i){var o=this._axesMap.get(i);o.scale.unionExtentFromData(a,a.mapDimension(i)),Tp(o.scale,o.model)},this)}},this)},t.prototype.resize=function(e,n){this._rect=ka(e.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),this._layoutAxes()},t.prototype.getRect=function(){return this._rect},t.prototype._makeLayoutInfo=function(){var e=this._model,n=this._rect,r=["x","y"],a=["width","height"],i=e.get("layout"),o=i==="horizontal"?0:1,s=n[a[o]],l=[0,s],u=this.dimensions.length,c=_x(e.get("axisExpandWidth"),l),f=_x(e.get("axisExpandCount")||0,[0,u]),d=e.get("axisExpandable")&&u>3&&u>f&&f>1&&c>0&&s>0,h=e.get("axisExpandWindow"),p;if(h)p=_x(h[1]-h[0],l),h[1]=h[0]+p;else{p=_x(c*(f-1),l);var v=e.get("axisExpandCenter")||KW(u/2);h=[c*v-p/2],h[1]=h[0]+p}var g=(s-p)/(u-f);g<3&&(g=0);var y=[KW(YW(h[0]/c,1))+1,xLt(YW(h[1]/c,1))-1],m=g/c*h[0];return{layout:i,pixelDimIndex:o,layoutBase:n[r[o]],layoutLength:s,axisBase:n[r[1-o]],axisLength:n[a[1-o]],axisExpandable:d,axisExpandWidth:c,axisCollapseWidth:g,axisExpandWindow:h,axisCount:u,winInnerIndices:y,axisExpandWindow0Pos:m}},t.prototype._layoutAxes=function(){var e=this._rect,n=this._axesMap,r=this.dimensions,a=this._makeLayoutInfo(),i=a.layout;n.each(function(o){var s=[0,a.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),mk(r,function(o,s){var l=(a.axisExpandable?ELt:TLt)(s,a),u={horizontal:{x:l.position,y:a.axisLength},vertical:{x:0,y:l.position}},c={horizontal:_Lt/2,vertical:0},f=[u[i].x+e.x,u[i].y+e.y],d=c[i],h=Wo();fd(h,h,d),bl(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)},t.prototype.getAxis=function(e){return this._axesMap.get(e)},t.prototype.dataToPoint=function(e,n){return this.axisCoordToPoint(this._axesMap.get(n).dataToCoord(e),n)},t.prototype.eachActiveState=function(e,n,r,a){r==null&&(r=0),a==null&&(a=e.count());var i=this._axesMap,o=this.dimensions,s=[],l=[];q(o,function(g){s.push(e.mapDimension(g)),l.push(i.get(g).model)});for(var u=this.hasAxisBrushed(),c=r;c<a;c++){var f=void 0;if(!u)f="normal";else{f="active";for(var d=e.getValues(s,c),h=0,p=o.length;h<p;h++){var v=l[h].getActiveState(d[h]);if(v==="inactive"){f="inactive";break}}}n(f,c)}},t.prototype.hasAxisBrushed=function(){for(var e=this.dimensions,n=this._axesMap,r=!1,a=0,i=e.length;a<i;a++)n.get(e[a]).model.getActiveState()!=="normal"&&(r=!0);return r},t.prototype.axisCoordToPoint=function(e,n){var r=this._axesLayout[n];return gl([e,0],r.transform)},t.prototype.getAxisLayout=function(e){return Zt(this._axesLayout[e])},t.prototype.getSlidedAxisExpandWindow=function(e){var n=this._makeLayoutInfo(),r=n.pixelDimIndex,a=n.axisExpandWindow.slice(),i=a[1]-a[0],o=[0,n.axisExpandWidth*(n.axisCount-1)];if(!this.containPoint(e))return{behavior:"none",axisExpandWindow:a};var s=e[r]-n.layoutBase-n.axisExpandWindow0Pos,l,u="slide",c=n.axisCollapseWidth,f=this._model.get("axisExpandSlideTriggerArea"),d=f[0]!=null;if(c)d&&c&&s<i*f[0]?(u="jump",l=s-i*f[2]):d&&c&&s>i*(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*=n.axisExpandWidth/c,l?Hp(l,a,o,"all"):u="none";else{var h=a[1]-a[0],p=o[1]*s/h;a=[tce(0,p-h/2)],a[1]=ece(o[1],a[0]+h),a[0]=a[1]-h}return{axisExpandWindow:a,behavior:u}},t}();function _x(t,e){return ece(tce(t,e[0]),e[1])}function TLt(t,e){var n=e.layoutLength/(e.axisCount-1);return{position:n*t,axisNameAvailableWidth:n,axisLabelShow:!0}}function ELt(t,e){var n=e.layoutLength,r=e.axisExpandWidth,a=e.axisCount,i=e.axisCollapseWidth,o=e.winInnerIndices,s,l=i,u=!1,c;return t<o[0]?(s=t*i,c=i):t<=o[1]?(s=e.axisExpandWindow0Pos+t*r-e.axisExpandWindow[0],l=r,u=!0):(s=n-(a-1-t)*i,c=i),{position:s,axisNameAvailableWidth:l,axisLabelShow:u,nameTruncateMaxWidth:c}}const MLt=CLt;function DLt(t,e){var n=[];return t.eachComponent("parallel",function(r,a){var i=new MLt(r,t,e);i.name="parallel_"+a,i.resize(r,e),r.coordinateSystem=i,i.model=r,n.push(i)}),t.eachSeries(function(r){if(r.get("coordinateSystem")==="parallel"){var a=r.getReferringComponents("parallel",Ca).models[0];r.coordinateSystem=a.coordinateSystem}}),n}var ALt={create:DLt};const kLt=ALt;var nce=function(t){Fe(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.activeIntervals=[],n}return e.prototype.getAreaSelectStyle=function(){return xp([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},e.prototype.setActiveIntervals=function(n){var r=this.activeIntervals=Zt(n);if(r)for(var a=r.length-1;a>=0;a--)zo(r[a])},e.prototype.getActiveState=function(n){var r=this.activeIntervals;if(!r.length)return"normal";if(n==null||isNaN(+n))return"inactive";if(r.length===1){var a=r[0];if(a[0]<=n&&n<=a[1])return"active"}else for(var i=0,o=r.length;i<o;i++)if(r[i][0]<=n&&n<=r[i][1])return"active";return"inactive"},e}(On);ha(nce,H0);const XW=nce;var Ep=!0,pb=Math.min,s0=Math.max,RLt=Math.pow,LLt=1e4,OLt=6,VLt=6,qW="globalPan",NLt={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},ILt={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},ZW={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},BLt=0,$Lt=function(t){Fe(e,t);function e(n){var r=t.call(this)||this;return r._track=[],r._covers=[],r._handlers={},r._zr=n,r.group=new en,r._uid="brushController_"+BLt++,q(WLt,function(a,i){this._handlers[i]=Nt(a,this)},r),r}return e.prototype.enableBrush=function(n){return this._brushType&&this._doDisableBrush(),n.brushType&&this._doEnableBrush(n),this},e.prototype._doEnableBrush=function(n){var r=this._zr;this._enableGlobalPan||YDt(r,qW,this._uid),q(this._handlers,function(a,i){r.on(i,a)}),this._brushType=n.brushType,this._brushOption=hn(Zt(ZW),n,!0)},e.prototype._doDisableBrush=function(){var n=this._zr;XDt(n,qW,this._uid),q(this._handlers,function(r,a){n.off(a,r)}),this._brushType=this._brushOption=null},e.prototype.setPanels=function(n){if(n&&n.length){var r=this._panels={};q(n,function(a){r[a.panelId]=Zt(a)})}else this._panels=null;return this},e.prototype.mount=function(n){n=n||{},this._enableGlobalPan=n.enableGlobalPan;var r=this.group;return this._zr.add(r),r.attr({x:n.x||0,y:n.y||0,rotation:n.rotation||0,scaleX:n.scaleX||1,scaleY:n.scaleY||1}),this._transform=r.getLocalTransform(),this},e.prototype.updateCovers=function(n){n=ut(n,function(d){return hn(Zt(ZW),d,!0)});var r="\0-brush-index-",a=this._covers,i=this._covers=[],o=this,s=this._creatingCover;return new pc(a,n,u,l).add(c).update(c).remove(f).execute(),this;function l(d,h){return(d.id!=null?d.id:r+h)+"-"+d.brushType}function u(d,h){return l(d.__brushOption,h)}function c(d,h){var p=n[d];if(h!=null&&a[h]===s)i[d]=a[h];else{var v=i[d]=h!=null?(a[h].__brushOption=p,a[h]):ace(o,rce(o,p));IB(o,v)}}function f(d){a[d]!==s&&o.group.remove(a[d])}},e.prototype.unmount=function(){return this.enableBrush(!1),g3(this),this._zr.remove(this.group),this},e.prototype.dispose=function(){this.unmount(),this.off()},e}(ks);function rce(t,e){var n=PE[e.brushType].createCover(t,e);return n.__brushOption=e,oce(n,e),t.group.add(n),n}function ace(t,e){var n=BB(e);return n.endCreating&&(n.endCreating(t,e),oce(e,e.__brushOption)),e}function ice(t,e){var n=e.__brushOption;BB(e).updateCoverShape(t,e,n.range,n)}function oce(t,e){var n=e.z;n==null&&(n=LLt),t.traverse(function(r){r.z=n,r.z2=n})}function IB(t,e){BB(e).updateCommon(t,e),ice(t,e)}function BB(t){return PE[t.__brushOption.brushType]}function $B(t,e,n){var r=t._panels;if(!r)return Ep;var a,i=t._transform;return q(r,function(o){o.isTargetByCursor(e,n,i)&&(a=o)}),a}function sce(t,e){var n=t._panels;if(!n)return Ep;var r=e.__brushOption.panelId;return r!=null?n[r]:Ep}function g3(t){var e=t._covers,n=e.length;return q(e,function(r){t.group.remove(r)},t),e.length=0,!!n}function Mp(t,e){var n=ut(t._covers,function(r){var a=r.__brushOption,i=Zt(a.range);return{brushType:a.brushType,panelId:a.panelId,range:i}});t.trigger("brush",{areas:n,isEnd:!!e.isEnd,removeOnClick:!!e.removeOnClick})}function PLt(t){var e=t._track;if(!e.length)return!1;var n=e[e.length-1],r=e[0],a=n[0]-r[0],i=n[1]-r[1],o=RLt(a*a+i*i,.5);return o>OLt}function lce(t){var e=t.length-1;return e<0&&(e=0),[t[0],t[e]]}function uce(t,e,n,r){var a=new en;return a.add(new $n({name:"main",style:PB(n),silent:!0,draggable:!0,cursor:"move",drift:sn(QW,t,e,a,["n","s","w","e"]),ondragend:sn(Mp,e,{isEnd:!0})})),q(r,function(i){a.add(new $n({name:i.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:sn(QW,t,e,a,i),ondragend:sn(Mp,e,{isEnd:!0})}))}),a}function cce(t,e,n,r){var a=r.brushStyle.lineWidth||0,i=s0(a,VLt),o=n[0][0],s=n[1][0],l=o-a/2,u=s-a/2,c=n[0][1],f=n[1][1],d=c-i+a/2,h=f-i+a/2,p=c-o,v=f-s,g=p+a,y=v+a;Nu(t,e,"main",o,s,p,v),r.transformable&&(Nu(t,e,"w",l,u,i,y),Nu(t,e,"e",d,u,i,y),Nu(t,e,"n",l,u,g,i),Nu(t,e,"s",l,h,g,i),Nu(t,e,"nw",l,u,i,i),Nu(t,e,"ne",d,u,i,i),Nu(t,e,"sw",l,h,i,i),Nu(t,e,"se",d,h,i,i))}function y3(t,e){var n=e.__brushOption,r=n.transformable,a=e.childAt(0);a.useStyle(PB(n)),a.attr({silent:!r,cursor:r?"move":"default"}),q([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(i){var o=e.childOfName(i.join("")),s=i.length===1?m3(t,i[0]):zLt(t,i);o&&o.attr({silent:!r,invisible:!r,cursor:r?ILt[s]+"-resize":null})})}function Nu(t,e,n,r,a,i,o){var s=e.childOfName(n);s&&s.setShape(GLt(FB(t,e,[[r,a],[r+i,a+o]])))}function PB(t){return Xt({strokeNoScale:!0},t.brushStyle)}function fce(t,e,n,r){var a=[pb(t,n),pb(e,r)],i=[s0(t,n),s0(e,r)];return[[a[0],i[0]],[a[1],i[1]]]}function FLt(t){return Nf(t.group)}function m3(t,e){var n={w:"left",e:"right",n:"top",s:"bottom"},r={left:"w",right:"e",top:"n",bottom:"s"},a=yE(n[e],FLt(t));return r[a]}function zLt(t,e){var n=[m3(t,e[0]),m3(t,e[1])];return(n[0]==="e"||n[0]==="w")&&n.reverse(),n.join("")}function QW(t,e,n,r,a,i){var o=n.__brushOption,s=t.toRectRange(o.range),l=dce(e,a,i);q(r,function(u){var c=NLt[u];s[c[0]][c[1]]+=l[c[0]]}),o.range=t.fromRectRange(fce(s[0][0],s[1][0],s[0][1],s[1][1])),IB(e,n),Mp(e,{isEnd:!1})}function ULt(t,e,n,r){var a=e.__brushOption.range,i=dce(t,n,r);q(a,function(o){o[0]+=i[0],o[1]+=i[1]}),IB(t,e),Mp(t,{isEnd:!1})}function dce(t,e,n){var r=t.group,a=r.transformCoordToLocal(e,n),i=r.transformCoordToLocal(0,0);return[a[0]-i[0],a[1]-i[1]]}function FB(t,e,n){var r=sce(t,e);return r&&r!==Ep?r.clipPath(n,t._transform):Zt(n)}function GLt(t){var e=pb(t[0][0],t[1][0]),n=pb(t[0][1],t[1][1]),r=s0(t[0][0],t[1][0]),a=s0(t[0][1],t[1][1]);return{x:e,y:n,width:r-e,height:a-n}}function HLt(t,e,n){if(!(!t._brushType||jLt(t,e.offsetX,e.offsetY))){var r=t._zr,a=t._covers,i=$B(t,e,n);if(!t._dragging)for(var o=0;o<a.length;o++){var s=a[o].__brushOption;if(i&&(i===Ep||s.panelId===i.panelId)&&PE[s.brushType].contain(a[o],n[0],n[1]))return}i&&r.setCursorStyle("crosshair")}}function b3(t){var e=t.event;e.preventDefault&&e.preventDefault()}function S3(t,e,n){return t.childOfName("main").contain(e,n)}function hce(t,e,n,r){var a=t._creatingCover,i=t._creatingPanel,o=t._brushOption,s;if(t._track.push(n.slice()),PLt(t)||a){if(i&&!a){o.brushMode==="single"&&g3(t);var l=Zt(o);l.brushType=JW(l.brushType,i),l.panelId=i===Ep?null:i.panelId,a=t._creatingCover=rce(t,l),t._covers.push(a)}if(a){var u=PE[JW(t._brushType,i)],c=a.__brushOption;c.range=u.getCreatingRange(FB(t,a,t._track)),r&&(ace(t,a),u.updateCommon(t,a)),ice(t,a),s={isEnd:r}}}else r&&o.brushMode==="single"&&o.removeOnClick&&$B(t,e,n)&&g3(t)&&(s={isEnd:r,removeOnClick:!0});return s}function JW(t,e){return t==="auto"?e.defaultBrushType:t}var WLt={mousedown:function(t){if(this._dragging)e7(this,t);else if(!t.target||!t.target.draggable){b3(t);var e=this.group.transformCoordToLocal(t.offsetX,t.offsetY);this._creatingCover=null;var n=this._creatingPanel=$B(this,t,e);n&&(this._dragging=!0,this._track=[e.slice()])}},mousemove:function(t){var e=t.offsetX,n=t.offsetY,r=this.group.transformCoordToLocal(e,n);if(HLt(this,t,r),this._dragging){b3(t);var a=hce(this,t,r,!1);a&&Mp(this,a)}},mouseup:function(t){e7(this,t)}};function e7(t,e){if(t._dragging){b3(e);var n=e.offsetX,r=e.offsetY,a=t.group.transformCoordToLocal(n,r),i=hce(t,e,a,!0);t._dragging=!1,t._track=[],t._creatingCover=null,i&&Mp(t,i)}}function jLt(t,e,n){var r=t._zr;return e<0||e>r.getWidth()||n<0||n>r.getHeight()}var PE={lineX:t7(0),lineY:t7(1),rect:{createCover:function(t,e){function n(r){return r}return uce({toRectRange:n,fromRectRange:n},t,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(t){var e=lce(t);return fce(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(t,e,n,r){cce(t,e,n,r)},updateCommon:y3,contain:S3},polygon:{createCover:function(t,e){var n=new en;return n.add(new fo({name:"main",style:PB(e),silent:!0})),n},getCreatingRange:function(t){return t},endCreating:function(t,e){e.remove(e.childAt(0)),e.add(new lo({name:"main",draggable:!0,drift:sn(ULt,t,e),ondragend:sn(Mp,t,{isEnd:!0})}))},updateCoverShape:function(t,e,n,r){e.childAt(0).setShape({points:FB(t,e,n)})},updateCommon:y3,contain:S3}};function t7(t){return{createCover:function(e,n){return uce({toRectRange:function(r){var a=[r,[0,100]];return t&&a.reverse(),a},fromRectRange:function(r){return r[t]}},e,n,[[["w"],["e"]],[["n"],["s"]]][t])},getCreatingRange:function(e){var n=lce(e),r=pb(n[0][t],n[1][t]),a=s0(n[0][t],n[1][t]);return[r,a]},updateCoverShape:function(e,n,r,a){var i,o=sce(e,n);if(o!==Ep&&o.getLinearBrushOtherExtent)i=o.getLinearBrushOtherExtent(t);else{var s=e._zr;i=[0,[s.getWidth(),s.getHeight()][1-t]]}var l=[r,i];t&&l.reverse(),cce(e,n,l,a)},updateCommon:y3,contain:S3}}const zB=$Lt;function pce(t){return t=UB(t),function(e){return MI(e,t)}}function vce(t,e){return t=UB(t),function(n){var r=e??n,a=r?t.width:t.height,i=r?t.x:t.y;return[i,i+(a||0)]}}function gce(t,e,n){var r=UB(t);return function(a,i){return r.contain(i[0],i[1])&&!NE(a,e,n)}}function UB(t){return yn.create(t)}var KLt=["axisLine","axisTickLabel","axisName"],YLt=function(t){Fe(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.init=function(n,r){t.prototype.init.apply(this,arguments),(this._brushController=new zB(r.getZr())).on("brush",Nt(this._onBrush,this))},e.prototype.render=function(n,r,a,i){if(!XLt(n,r,i)){this.axisModel=n,this.api=a,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new en,this.group.add(this._axisGroup),!!n.get("show")){var s=ZLt(n,r),l=s.coordinateSystem,u=n.getAreaSelectStyle(),c=u.width,f=n.axis.dim,d=l.getAxisLayout(f),h=et({strokeContainThreshold:c},d),p=new gc(n,h);q(KLt,p.add,p),this._axisGroup.add(p.getGroup()),this._refreshBrushController(h,u,n,s,c,a),sS(o,this._axisGroup,n)}}},e.prototype._refreshBrushController=function(n,r,a,i,o,s){var l=a.axis.getExtent(),u=l[1]-l[0],c=Math.min(30,Math.abs(u)*.1),f=yn.create({x:l[0],y:-o/2,width:u,height:o});f.x-=c,f.width+=2*c,this._brushController.mount({enableGlobalPan:!0,rotation:n.rotation,x:n.position[0],y:n.position[1]}).setPanels([{panelId:"pl",clipPath:pce(f),isTargetByCursor:gce(f,s,i),getLinearBrushOtherExtent:vce(f,0)}]).enableBrush({brushType:"lineX",brushStyle:r,removeOnClick:!0}).updateCovers(qLt(a))},e.prototype._onBrush=function(n){var r=n.areas,a=this.axisModel,i=a.axis,o=ut(r,function(s){return[i.coordToData(s.range[0],!0),i.coordToData(s.range[1],!0)]});(!a.option.realtime===n.isEnd||n.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:a.id,intervals:o})},e.prototype.dispose=function(){this._brushController.dispose()},e.type="parallelAxis",e}(jr);function XLt(t,e,n){return n&&n.type==="axisAreaSelect"&&e.findComponents({mainType:"parallelAxis",query:n})[0]===t}function qLt(t){var e=t.axis;return ut(t.activeIntervals,function(n){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(n[0],!0),e.dataToCoord(n[1],!0)]}})}function ZLt(t,e){return e.getComponent("parallel",t.get("parallelIndex"))}const QLt=YLt;var JLt={type:"axisAreaSelect",event:"axisAreaSelected"};function eOt(t){t.registerAction(JLt,function(e,n){n.eachComponent({mainType:"parallelAxis",query:e},function(r){r.axis.model.setActiveIntervals(e.intervals)})}),t.registerAction("parallelAxisExpand",function(e,n){n.eachComponent({mainType:"parallel",query:e},function(r){r.setAxisExpand(e)})})}var tOt={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function yce(t){t.registerComponentView(yLt),t.registerComponentModel(bLt),t.registerCoordinateSystem("parallel",kLt),t.registerPreprocessor(fLt),t.registerComponentModel(XW),t.registerComponentView(QLt),o0(t,"parallel",XW,tOt),eOt(t)}function nOt(t){wn(yce),t.registerChartView(rLt),t.registerSeriesModel(sLt),t.registerVisual(t.PRIORITY.VISUAL.BRUSH,cLt)}var rOt=function(){function t(){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 t}(),aOt=function(t){Fe(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultShape=function(){return new rOt},e.prototype.buildPath=function(n,r){var a=r.extent;n.moveTo(r.x1,r.y1),n.bezierCurveTo(r.cpx1,r.cpy1,r.cpx2,r.cpy2,r.x2,r.y2),r.orient==="vertical"?(n.lineTo(r.x2+a,r.y2),n.bezierCurveTo(r.cpx2+a,r.cpy2,r.cpx1+a,r.cpy1,r.x1+a,r.y1)):(n.lineTo(r.x2,r.y2+a),n.bezierCurveTo(r.cpx2,r.cpy2+a,r.cpx1,r.cpy1+a,r.x1,r.y1+a)),n.closePath()},e.prototype.highlight=function(){dc(this)},e.prototype.downplay=function(){hc(this)},e}(Cn),iOt=function(t){Fe(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n._focusAdjacencyDisabled=!1,n}return e.prototype.render=function(n,r,a){var i=this,o=n.getGraph(),s=this.group,l=n.layoutInfo,u=l.width,c=l.height,f=n.getData(),d=n.getData("edge"),h=n.get("orient");this._model=n,s.removeAll(),s.x=l.x,s.y=l.y,o.eachEdge(function(p){var v=new aOt,g=ln(v);g.dataIndex=p.dataIndex,g.seriesIndex=n.seriesIndex,g.dataType="edge";var y=p.getModel(),m=y.getModel("lineStyle"),S=m.get("curveness"),w=p.node1.getLayout(),C=p.node1.getModel(),_=C.get("localX"),x=C.get("localY"),T=p.node2.getLayout(),M=p.node2.getModel(),E=M.get("localX"),A=M.get("localY"),k=p.getLayout(),L,I,P,F,$,W,V,z;v.shape.extent=Math.max(1,k.dy),v.shape.orient=h,h==="vertical"?(L=(_!=null?_*u:w.x)+k.sy,I=(x!=null?x*c:w.y)+w.dy,P=(E!=null?E*u:T.x)+k.ty,F=A!=null?A*c:T.y,$=L,W=I*(1-S)+F*S,V=P,z=I*S+F*(1-S)):(L=(_!=null?_*u:w.x)+w.dx,I=(x!=null?x*c:w.y)+k.sy,P=E!=null?E*u:T.x,F=(A!=null?A*c:T.y)+k.ty,$=L*(1-S)+P*S,W=I,V=L*S+P*(1-S),z=F),v.setShape({x1:L,y1:I,x2:P,y2:F,cpx1:$,cpy1:W,cpx2:V,cpy2:z}),v.useStyle(m.getItemStyle()),n7(v.style,h,p);var K=""+y.get("value"),Z=Ka(y,"edgeLabel");Si(v,Z,{labelFetcher:{getFormattedLabel:function(ie,Q,ce,se,me,ve){return n.getFormattedLabel(ie,Q,"edge",se,hl(me,Z.normal&&Z.normal.get("formatter"),K),ve)}},labelDataIndex:p.dataIndex,defaultText:K}),v.setTextConfig({position:"inside"});var oe=y.getModel("emphasis");bi(v,y,"lineStyle",function(ie){var Q=ie.getItemStyle();return n7(Q,h,p),Q}),s.add(v),d.setItemGraphicEl(p.dataIndex,v);var ge=oe.get("focus");ua(v,ge==="adjacency"?p.getAdjacentDataIndices():ge==="trajectory"?p.getTrajectoryDataIndices():ge,oe.get("blurScope"),oe.get("disabled"))}),o.eachNode(function(p){var v=p.getLayout(),g=p.getModel(),y=g.get("localX"),m=g.get("localY"),S=g.getModel("emphasis"),w=new $n({shape:{x:y!=null?y*u:v.x,y:m!=null?m*c:v.y,width:v.dx,height:v.dy},style:g.getModel("itemStyle").getItemStyle(),z2:10});Si(w,Ka(g),{labelFetcher:{getFormattedLabel:function(_,x){return n.getFormattedLabel(_,x,"node")}},labelDataIndex:p.dataIndex,defaultText:p.id}),w.disableLabelAnimation=!0,w.setStyle("fill",p.getVisual("color")),w.setStyle("decal",p.getVisual("style").decal),bi(w,g),s.add(w),f.setItemGraphicEl(p.dataIndex,w),ln(w).dataType="node";var C=S.get("focus");ua(w,C==="adjacency"?p.getAdjacentDataIndices():C==="trajectory"?p.getTrajectoryDataIndices():C,S.get("blurScope"),S.get("disabled"))}),f.eachItemGraphicEl(function(p,v){var g=f.getItemModel(v);g.get("draggable")&&(p.drift=function(y,m){i._focusAdjacencyDisabled=!0,this.shape.x+=y,this.shape.y+=m,this.dirty(),a.dispatchAction({type:"dragNode",seriesId:n.id,dataIndex:f.getRawIndex(v),localX:this.shape.x/u,localY:this.shape.y/c})},p.ondragend=function(){i._focusAdjacencyDisabled=!1},p.draggable=!0,p.cursor="move")}),!this._data&&n.isAnimationEnabled()&&s.setClipPath(oOt(s.getBoundingRect(),n,function(){s.removeClipPath()})),this._data=n.getData()},e.prototype.dispose=function(){},e.type="sankey",e}(br);function n7(t,e,n){switch(t.fill){case"source":t.fill=n.node1.getVisual("color"),t.decal=n.node1.getVisual("style").decal;break;case"target":t.fill=n.node2.getVisual("color"),t.decal=n.node2.getVisual("style").decal;break;case"gradient":var r=n.node1.getVisual("color"),a=n.node2.getVisual("color");Ot(r)&&Ot(a)&&(t.fill=new k0(0,0,+(e==="horizontal"),+(e==="vertical"),[{color:r,offset:0},{color:a,offset:1}]))}}function oOt(t,e,n){var r=new $n({shape:{x:t.x-10,y:t.y-10,width:0,height:t.height+20}});return Ur(r,{shape:{width:t.width+20}},e,n),r}const sOt=iOt;var lOt=function(t){Fe(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.getInitialData=function(n,r){var a=n.edges||n.links,i=n.data||n.nodes,o=n.levels;this.levelModels=[];for(var s=this.levelModels,l=0;l<o.length;l++)o[l].depth!=null&&o[l].depth>=0&&(s[o[l].depth]=new yr(o[l],this,r));if(i&&a){var u=Que(i,a,this,!0,c);return u.data}function c(f,d){f.wrapMethod("getItemModel",function(h,p){var v=h.parentModel,g=v.getData().getItemLayout(p);if(g){var y=g.depth,m=v.levelModels[y];m&&(h.parentModel=m)}return h}),d.wrapMethod("getItemModel",function(h,p){var v=h.parentModel,g=v.getGraph().getEdgeByIndex(p),y=g.node1.getLayout();if(y){var m=y.depth,S=v.levelModels[m];S&&(h.parentModel=S)}return h})}},e.prototype.setNodePosition=function(n,r){var a=this.option.data||this.option.nodes,i=a[n];i.localX=r[0],i.localY=r[1]},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(n,r,a){function i(h){return isNaN(h)||h==null}if(a==="edge"){var o=this.getDataParams(n,a),s=o.data,l=o.value,u=s.source+" -- "+s.target;return Ya("nameValue",{name:u,value:l,noValue:i(l)})}else{var c=this.getGraph().getNodeByIndex(n),f=c.getLayout().value,d=this.getDataParams(n,a).data.name;return Ya("nameValue",{name:d!=null?d+"":null,value:f,noValue:i(f)})}},e.prototype.optionUpdated=function(){},e.prototype.getDataParams=function(n,r){var a=t.prototype.getDataParams.call(this,n,r);if(a.value==null&&r==="node"){var i=this.getGraph().getNodeByIndex(n),o=i.getLayout().value;a.value=o}return a},e.type="series.sankey",e.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},e}(Vr);const uOt=lOt;function cOt(t,e){t.eachSeriesByType("sankey",function(n){var r=n.get("nodeWidth"),a=n.get("nodeGap"),i=fOt(n,e);n.layoutInfo=i;var o=i.width,s=i.height,l=n.getGraph(),u=l.nodes,c=l.edges;hOt(u);var f=or(u,function(v){return v.getLayout().value===0}),d=f.length!==0?0:n.get("layoutIterations"),h=n.get("orient"),p=n.get("nodeAlign");dOt(u,c,r,a,o,s,d,h,p)})}function fOt(t,e){return ka(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function dOt(t,e,n,r,a,i,o,s,l){pOt(t,e,n,a,i,s,l),mOt(t,e,i,a,r,o,s),MOt(t,s)}function hOt(t){q(t,function(e){var n=$f(e.outEdges,kC),r=$f(e.inEdges,kC),a=e.getValue()||0,i=Math.max(n,r,a);e.setLayout({value:i},!0)})}function pOt(t,e,n,r,a,i,o){for(var s=[],l=[],u=[],c=[],f=0,d=0;d<e.length;d++)s[d]=1;for(var d=0;d<t.length;d++)l[d]=t[d].inEdges.length,l[d]===0&&u.push(t[d]);for(var h=-1;u.length;){for(var p=0;p<u.length;p++){var v=u[p],g=v.hostGraph.data.getRawDataItem(v.dataIndex),y=g.depth!=null&&g.depth>=0;y&&g.depth>h&&(h=g.depth),v.setLayout({depth:y?g.depth:f},!0),i==="vertical"?v.setLayout({dy:n},!0):v.setLayout({dx:n},!0);for(var m=0;m<v.outEdges.length;m++){var S=v.outEdges[m],w=e.indexOf(S);s[w]=0;var C=S.node2,_=t.indexOf(C);--l[_]===0&&c.indexOf(C)<0&&c.push(C)}}++f,u=c,c=[]}for(var d=0;d<s.length;d++)if(s[d]===1)throw new Error("Sankey is a DAG, the original data has cycle!");var x=h>f-1?h:f-1;o&&o!=="left"&&vOt(t,o,i,x);var T=i==="vertical"?(a-n)/x:(r-n)/x;yOt(t,T,i)}function mce(t){var e=t.hostGraph.data.getRawDataItem(t.dataIndex);return e.depth!=null&&e.depth>=0}function vOt(t,e,n,r){if(e==="right"){for(var a=[],i=t,o=0;i.length;){for(var s=0;s<i.length;s++){var l=i[s];l.setLayout({skNodeHeight:o},!0);for(var u=0;u<l.inEdges.length;u++){var c=l.inEdges[u];a.indexOf(c.node1)<0&&a.push(c.node1)}}i=a,a=[],++o}q(t,function(f){mce(f)||f.setLayout({depth:Math.max(0,r-f.getLayout().skNodeHeight)},!0)})}else e==="justify"&&gOt(t,r)}function gOt(t,e){q(t,function(n){!mce(n)&&!n.outEdges.length&&n.setLayout({depth:e},!0)})}function yOt(t,e,n){q(t,function(r){var a=r.getLayout().depth*e;n==="vertical"?r.setLayout({y:a},!0):r.setLayout({x:a},!0)})}function mOt(t,e,n,r,a,i,o){var s=bOt(t,o);SOt(s,e,n,r,a,o),bk(s,a,n,r,o);for(var l=1;i>0;i--)l*=.99,wOt(s,l,o),bk(s,a,n,r,o),EOt(s,l,o),bk(s,a,n,r,o)}function bOt(t,e){var n=[],r=e==="vertical"?"y":"x",a=xO(t,function(i){return i.getLayout()[r]});return a.keys.sort(function(i,o){return i-o}),q(a.keys,function(i){n.push(a.buckets.get(i))}),n}function SOt(t,e,n,r,a,i){var o=1/0;q(t,function(s){var l=s.length,u=0;q(s,function(f){u+=f.getLayout().value});var c=i==="vertical"?(r-(l-1)*a)/u:(n-(l-1)*a)/u;c<o&&(o=c)}),q(t,function(s){q(s,function(l,u){var c=l.getLayout().value*o;i==="vertical"?(l.setLayout({x:u},!0),l.setLayout({dx:c},!0)):(l.setLayout({y:u},!0),l.setLayout({dy:c},!0))})}),q(e,function(s){var l=+s.getValue()*o;s.setLayout({dy:l},!0)})}function bk(t,e,n,r,a){var i=a==="vertical"?"x":"y";q(t,function(o){o.sort(function(v,g){return v.getLayout()[i]-g.getLayout()[i]});for(var s,l,u,c=0,f=o.length,d=a==="vertical"?"dx":"dy",h=0;h<f;h++)l=o[h],u=c-l.getLayout()[i],u>0&&(s=l.getLayout()[i]+u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[i]+l.getLayout()[d]+e;var p=a==="vertical"?r:n;if(u=c-e-p,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]+e-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 wOt(t,e,n){q(t.slice().reverse(),function(r){q(r,function(a){if(a.outEdges.length){var i=$f(a.outEdges,xOt,n)/$f(a.outEdges,kC);if(isNaN(i)){var o=a.outEdges.length;i=o?$f(a.outEdges,_Ot,n)/o:0}if(n==="vertical"){var s=a.getLayout().x+(i-Jf(a,n))*e;a.setLayout({x:s},!0)}else{var l=a.getLayout().y+(i-Jf(a,n))*e;a.setLayout({y:l},!0)}}})})}function xOt(t,e){return Jf(t.node2,e)*t.getValue()}function _Ot(t,e){return Jf(t.node2,e)}function COt(t,e){return Jf(t.node1,e)*t.getValue()}function TOt(t,e){return Jf(t.node1,e)}function Jf(t,e){return e==="vertical"?t.getLayout().x+t.getLayout().dx/2:t.getLayout().y+t.getLayout().dy/2}function kC(t){return t.getValue()}function $f(t,e,n){for(var r=0,a=t.length,i=-1;++i<a;){var o=+e(t[i],n);isNaN(o)||(r+=o)}return r}function EOt(t,e,n){q(t,function(r){q(r,function(a){if(a.inEdges.length){var i=$f(a.inEdges,COt,n)/$f(a.inEdges,kC);if(isNaN(i)){var o=a.inEdges.length;i=o?$f(a.inEdges,TOt,n)/o:0}if(n==="vertical"){var s=a.getLayout().x+(i-Jf(a,n))*e;a.setLayout({x:s},!0)}else{var l=a.getLayout().y+(i-Jf(a,n))*e;a.setLayout({y:l},!0)}}})})}function MOt(t,e){var n=e==="vertical"?"x":"y";q(t,function(r){r.outEdges.sort(function(a,i){return a.node2.getLayout()[n]-i.node2.getLayout()[n]}),r.inEdges.sort(function(a,i){return a.node1.getLayout()[n]-i.node1.getLayout()[n]})}),q(t,function(r){var a=0,i=0;q(r.outEdges,function(o){o.setLayout({sy:a},!0),a+=o.getLayout().dy}),q(r.inEdges,function(o){o.setLayout({ty:i},!0),i+=o.getLayout().dy})})}function DOt(t){t.eachSeriesByType("sankey",function(e){var n=e.getGraph(),r=n.nodes,a=n.edges;if(r.length){var i=1/0,o=-1/0;q(r,function(s){var l=s.getLayout().value;l<i&&(i=l),l>o&&(o=l)}),q(r,function(s){var l=new gi({type:"color",mappingMethod:"linear",dataExtent:[i,o],visual:e.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&&q(a,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}function AOt(t){t.registerChartView(sOt),t.registerSeriesModel(uOt),t.registerLayout(cOt),t.registerVisual(DOt),t.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(e,n){n.eachComponent({mainType:"series",subType:"sankey",query:e},function(r){r.setNodePosition(e.dataIndex,[e.localX,e.localY])})})}var bce=function(){function t(){}return t.prototype.getInitialData=function(e,n){var r,a=n.getComponent("xAxis",this.get("xAxisIndex")),i=n.getComponent("yAxis",this.get("yAxisIndex")),o=a.get("type"),s=i.get("type"),l;o==="category"?(e.layout="horizontal",r=a.getOrdinalMeta(),l=!0):s==="category"?(e.layout="vertical",r=i.getOrdinalMeta(),l=!0):e.layout=e.layout||"horizontal";var u=["x","y"],c=e.layout==="horizontal"?0:1,f=this._baseAxisDim=u[c],d=u[1-c],h=[a,i],p=h[c].get("type"),v=h[1-c].get("type"),g=e.data;if(g&&l){var y=[];q(g,function(w,C){var _;st(w)?(_=w.slice(),w.unshift(C)):st(w.value)?(_=et({},w),_.value=_.value.slice(),w.value.unshift(C)):_=w,y.push(_)}),e.data=y}var m=this.defaultValueDimensions,S=[{name:f,type:mC(p),ordinalMeta:r,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:d,type:mC(v),dimsDef:m.slice()}];return W0(this,{coordDimensions:S,dimensionsCount:m.length+1,encodeDefaulter:sn(zoe,S,this)})},t.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis},t}(),Sce=function(t){Fe(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],n.visualDrawType="stroke",n}return e.type="series.boxplot",e.dependencies=["xAxis","yAxis","grid"],e.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},e}(Vr);ha(Sce,bce,!0);const kOt=Sce;var ROt=function(t){Fe(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.render=function(n,r,a){var i=n.getData(),o=this.group,s=this._data;this._data||o.removeAll();var l=n.get("layout")==="horizontal"?1:0;i.diff(s).add(function(u){if(i.hasValue(u)){var c=i.getItemLayout(u),f=r7(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?(xl(f),wce(d,f,i,u)):f=r7(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},e.prototype.remove=function(n){var r=this.group,a=this._data;this._data=null,a&&a.eachItemGraphicEl(function(i){i&&r.remove(i)})},e.type="boxplot",e}(br),LOt=function(){function t(){}return t}(),OOt=function(t){Fe(e,t);function e(n){var r=t.call(this,n)||this;return r.type="boxplotBoxPath",r}return e.prototype.getDefaultShape=function(){return new LOt},e.prototype.buildPath=function(n,r){var a=r.points,i=0;for(n.moveTo(a[i][0],a[i][1]),i++;i<4;i++)n.lineTo(a[i][0],a[i][1]);for(n.closePath();i<a.length;i++)n.moveTo(a[i][0],a[i][1]),i++,n.lineTo(a[i][0],a[i][1])},e}(Cn);function r7(t,e,n,r,a){var i=t.ends,o=new OOt({shape:{points:a?VOt(i,r,t):i}});return wce(t,o,e,n,a),o}function wce(t,e,n,r,a){var i=n.hostModel,o=lS[a?"initProps":"updateProps"];o(e,{shape:{points:t.ends}},i,r),e.useStyle(n.getItemVisual(r,"style")),e.style.strokeNoScale=!0,e.z2=100;var s=n.getItemModel(r),l=s.getModel("emphasis");bi(e,s),ua(e,l.get("focus"),l.get("blurScope"),l.get("disabled"))}function VOt(t,e,n){return ut(t,function(r){return r=r.slice(),r[e]=n.initBaseline,r})}const NOt=ROt;var Xm=q;function IOt(t){var e=BOt(t);Xm(e,function(n){var r=n.seriesModels;r.length&&($Ot(n),Xm(r,function(a,i){POt(a,n.boxOffsetList[i],n.boxWidthList[i])}))})}function BOt(t){var e=[],n=[];return t.eachSeriesByType("boxplot",function(r){var a=r.getBaseAxis(),i=bn(n,a);i<0&&(i=n.length,n[i]=a,e[i]={axis:a,seriesModels:[]}),e[i].seriesModels.push(r)}),e}function $Ot(t){var e=t.axis,n=t.seriesModels,r=n.length,a=t.boxWidthList=[],i=t.boxOffsetList=[],o=[],s;if(e.type==="category")s=e.getBandWidth();else{var l=0;Xm(n,function(p){l=Math.max(l,p.getData().count())});var u=e.getExtent();s=Math.abs(u[1]-u[0])/l}Xm(n,function(p){var v=p.get("boxWidth");st(v)||(v=[v,v]),o.push([Mt(v[0],s)||0,Mt(v[1],s)||0])});var c=s*.8-2,f=c/r*.3,d=(c-f*(r-1))/r,h=d/2-c/2;Xm(n,function(p,v){i.push(h),h+=f+d,a.push(Math.min(Math.max(d,o[v][0]),o[v][1]))})}function POt(t,e,n){var r=t.coordinateSystem,a=t.getData(),i=n/2,o=t.get("layout")==="horizontal"?0:1,s=1-o,l=["x","y"],u=a.mapDimension(l[o]),c=a.mapDimensionsAll(l[s]);if(u==null||c.length<5)return;for(var f=0;f<a.count();f++){var d=a.get(u,f),h=S(d,c[2],f),p=S(d,c[0],f),v=S(d,c[1],f),g=S(d,c[3],f),y=S(d,c[4],f),m=[];w(m,v,!1),w(m,g,!0),m.push(p,v,y,g),C(m,p),C(m,y),C(m,h),a.setItemLayout(f,{initBaseline:h[s],ends:m})}function S(_,x,T){var M=a.get(x,T),E=[];E[o]=_,E[s]=M;var A;return isNaN(_)||isNaN(M)?A=[NaN,NaN]:(A=r.dataToPoint(E),A[o]+=e),A}function w(_,x,T){var M=x.slice(),E=x.slice();M[o]+=i,E[o]-=i,T?_.push(M,E):_.push(E,M)}function C(_,x){var T=x.slice(),M=x.slice();T[o]-=i,M[o]+=i,_.push(T,M)}}function FOt(t,e){e=e||{};for(var n=[],r=[],a=e.boundIQR,i=a==="none"||a===0,o=0;o<t.length;o++){var s=zo(t[o].slice()),l=V_(s,.25),u=V_(s,.5),c=V_(s,.75),f=s[0],d=s[s.length-1],h=(a??1.5)*(c-l),p=i?f:Math.max(f,l-h),v=i?d:Math.min(d,c+h),g=e.itemNameFormatter,y=jt(g)?g({value:o}):Ot(g)?g.replace("{value}",o+""):o+"";n.push([y,p,l,u,c,v]);for(var m=0;m<s.length;m++){var S=s[m];if(S<p||S>v){var w=[y,S];r.push(w)}}}return{boxData:n,outliers:r}}var zOt={type:"echarts:boxplot",transform:function(e){var n=e.upstream;if(n.sourceFormat!==Bi){var r="";tr(r)}var a=FOt(n.getRawData(),e.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:a.boxData},{data:a.outliers}]}};function UOt(t){t.registerSeriesModel(kOt),t.registerChartView(NOt),t.registerLayout(IOt),t.registerTransform(zOt)}var GOt=["color","borderColor"],HOt=function(t){Fe(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.render=function(n,r,a){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(n),this._isLargeDraw?this._renderLarge(n):this._renderNormal(n)},e.prototype.incrementalPrepareRender=function(n,r,a){this._clear(),this._updateDrawMode(n)},e.prototype.incrementalRender=function(n,r,a,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(n,r):this._incrementalRenderNormal(n,r)},e.prototype.eachRendered=function(n){dd(this._progressiveEls||this.group,n)},e.prototype._updateDrawMode=function(n){var r=n.pipelineContext.large;(this._isLargeDraw==null||r!==this._isLargeDraw)&&(this._isLargeDraw=r,this._clear())},e.prototype._renderNormal=function(n){var r=n.getData(),a=this._data,i=this.group,o=r.getLayout("isSimpleBox"),s=n.get("clip",!0),l=n.coordinateSystem,u=l.getArea&&l.getArea();this._data||i.removeAll(),r.diff(a).add(function(c){if(r.hasValue(c)){var f=r.getItemLayout(c);if(s&&a7(u,f))return;var d=Sk(f,c,!0);Ur(d,{shape:{points:f.ends}},n,c),wk(d,r,c,o),i.add(d),r.setItemGraphicEl(c,d)}}).update(function(c,f){var d=a.getItemGraphicEl(f);if(!r.hasValue(c)){i.remove(d);return}var h=r.getItemLayout(c);if(s&&a7(u,h)){i.remove(d);return}d?(jn(d,{shape:{points:h.ends}},n,c),xl(d)):d=Sk(h),wk(d,r,c,o),i.add(d),r.setItemGraphicEl(c,d)}).remove(function(c){var f=a.getItemGraphicEl(c);f&&i.remove(f)}).execute(),this._data=r},e.prototype._renderLarge=function(n){this._clear(),i7(n,this.group);var r=n.get("clip",!0)?VE(n.coordinateSystem,!1,n):null;r?this.group.setClipPath(r):this.group.removeClipPath()},e.prototype._incrementalRenderNormal=function(n,r){for(var a=r.getData(),i=a.getLayout("isSimpleBox"),o;(o=n.next())!=null;){var s=a.getItemLayout(o),l=Sk(s);wk(l,a,o,i),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},e.prototype._incrementalRenderLarge=function(n,r){i7(r,this.group,this._progressiveEls,!0)},e.prototype.remove=function(n){this._clear()},e.prototype._clear=function(){this.group.removeAll(),this._data=null},e.type="candlestick",e}(br),WOt=function(){function t(){}return t}(),jOt=function(t){Fe(e,t);function e(n){var r=t.call(this,n)||this;return r.type="normalCandlestickBox",r}return e.prototype.getDefaultShape=function(){return new WOt},e.prototype.buildPath=function(n,r){var a=r.points;this.__simpleBox?(n.moveTo(a[4][0],a[4][1]),n.lineTo(a[6][0],a[6][1])):(n.moveTo(a[0][0],a[0][1]),n.lineTo(a[1][0],a[1][1]),n.lineTo(a[2][0],a[2][1]),n.lineTo(a[3][0],a[3][1]),n.closePath(),n.moveTo(a[4][0],a[4][1]),n.lineTo(a[5][0],a[5][1]),n.moveTo(a[6][0],a[6][1]),n.lineTo(a[7][0],a[7][1]))},e}(Cn);function Sk(t,e,n){var r=t.ends;return new jOt({shape:{points:n?KOt(r,t):r},z2:100})}function a7(t,e){for(var n=!0,r=0;r<e.ends.length;r++)if(t.contain(e.ends[r][0],e.ends[r][1])){n=!1;break}return n}function wk(t,e,n,r){var a=e.getItemModel(n);t.useStyle(e.getItemVisual(n,"style")),t.style.strokeNoScale=!0,t.__simpleBox=r,bi(t,a)}function KOt(t,e){return ut(t,function(n){return n=n.slice(),n[1]=e.initBaseline,n})}var YOt=function(){function t(){}return t}(),xk=function(t){Fe(e,t);function e(n){var r=t.call(this,n)||this;return r.type="largeCandlestickBox",r}return e.prototype.getDefaultShape=function(){return new YOt},e.prototype.buildPath=function(n,r){for(var a=r.points,i=0;i<a.length;)if(this.__sign===a[i++]){var o=a[i++];n.moveTo(o,a[i++]),n.lineTo(o,a[i++])}else i+=3},e}(Cn);function i7(t,e,n,r){var a=t.getData(),i=a.getLayout("largePoints"),o=new xk({shape:{points:i},__sign:1,ignoreCoarsePointer:!0});e.add(o);var s=new xk({shape:{points:i},__sign:-1,ignoreCoarsePointer:!0});e.add(s);var l=new xk({shape:{points:i},__sign:0,ignoreCoarsePointer:!0});e.add(l),_k(1,o,t),_k(-1,s,t),_k(0,l,t),r&&(o.incremental=!0,s.incremental=!0),n&&n.push(o,s)}function _k(t,e,n,r){var a=n.get(["itemStyle",t>0?"borderColor":"borderColor0"])||n.get(["itemStyle",t>0?"color":"color0"]);t===0&&(a=n.get(["itemStyle","borderColorDoji"]));var i=n.getModel("itemStyle").getItemStyle(GOt);e.useStyle(i),e.style.fill=null,e.style.stroke=a}const XOt=HOt;var xce=function(t){Fe(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],n}return e.prototype.getShadowDim=function(){return"open"},e.prototype.brushSelector=function(n,r,a){var i=r.getItemLayout(n);return i&&a.rect(i.brushRect)},e.type="series.candlestick",e.dependencies=["xAxis","yAxis","grid"],e.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},e}(Vr);ha(xce,bce,!0);const qOt=xce;function ZOt(t){!t||!st(t.series)||q(t.series,function(e){qt(e)&&e.type==="k"&&(e.type="candlestick")})}var QOt=["itemStyle","borderColor"],JOt=["itemStyle","borderColor0"],e3t=["itemStyle","borderColorDoji"],t3t=["itemStyle","color"],n3t=["itemStyle","color0"],r3t={seriesType:"candlestick",plan:F0(),performRawSeries:!0,reset:function(t,e){function n(i,o){return o.get(i>0?t3t:n3t)}function r(i,o){return o.get(i===0?e3t:i>0?QOt:JOt)}if(!e.isSeriesFiltered(t)){var a=t.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=n(u,l),c.stroke=r(u,l)||c.fill;var f=o.ensureUniqueItemVisual(s,"style");et(f,c)}}}}}};const a3t=r3t;var i3t={seriesType:"candlestick",plan:F0(),reset:function(t){var e=t.coordinateSystem,n=t.getData(),r=o3t(t,n),a=0,i=1,o=["x","y"],s=n.getDimensionIndex(n.mapDimension(o[a])),l=ut(n.mapDimensionsAll(o[i]),n.getDimensionIndex,n),u=l[0],c=l[1],f=l[2],d=l[3];if(n.setLayout({candleWidth:r,isSimpleBox:r<=1.3}),s<0||l.length<4)return;return{progress:t.pipelineContext.large?p:h};function h(v,g){for(var y,m=g.getStore();(y=v.next())!=null;){var S=m.get(s,y),w=m.get(u,y),C=m.get(c,y),_=m.get(f,y),x=m.get(d,y),T=Math.min(w,C),M=Math.max(w,C),E=$(T,S),A=$(M,S),k=$(_,S),L=$(x,S),I=[];W(I,A,0),W(I,E,1),I.push(z(L),z(A),z(k),z(E));var P=g.getItemModel(y),F=!!P.get(["itemStyle","borderColorDoji"]);g.setItemLayout(y,{sign:o7(m,y,w,C,c,F),initBaseline:w>C?A[i]:E[i],ends:I,brushRect:V(_,x,S)})}function $(K,Z){var oe=[];return oe[a]=Z,oe[i]=K,isNaN(Z)||isNaN(K)?[NaN,NaN]:e.dataToPoint(oe)}function W(K,Z,oe){var ge=Z.slice(),ie=Z.slice();ge[a]=B_(ge[a]+r/2,1,!1),ie[a]=B_(ie[a]-r/2,1,!0),oe?K.push(ge,ie):K.push(ie,ge)}function V(K,Z,oe){var ge=$(K,oe),ie=$(Z,oe);return ge[a]-=r/2,ie[a]-=r/2,{x:ge[0],y:ge[1],width:r,height:ie[1]-ge[1]}}function z(K){return K[a]=B_(K[a],1),K}}function p(v,g){for(var y=tu(v.count*4),m=0,S,w=[],C=[],_,x=g.getStore(),T=!!t.get(["itemStyle","borderColorDoji"]);(_=v.next())!=null;){var M=x.get(s,_),E=x.get(u,_),A=x.get(c,_),k=x.get(f,_),L=x.get(d,_);if(isNaN(M)||isNaN(k)||isNaN(L)){y[m++]=NaN,m+=3;continue}y[m++]=o7(x,_,E,A,c,T),w[a]=M,w[i]=k,S=e.dataToPoint(w,null,C),y[m++]=S?S[0]:NaN,y[m++]=S?S[1]:NaN,w[i]=L,S=e.dataToPoint(w,null,C),y[m++]=S?S[1]:NaN}g.setLayout("largePoints",y)}}};function o7(t,e,n,r,a,i){var o;return n>r?o=-1:n<r?o=1:o=i?0:e>0?t.get(a,e-1)<=r?1:-1:1,o}function o3t(t,e){var n=t.getBaseAxis(),r,a=n.type==="category"?n.getBandWidth():(r=n.getExtent(),Math.abs(r[1]-r[0])/e.count()),i=Mt(gn(t.get("barMaxWidth"),a),a),o=Mt(gn(t.get("barMinWidth"),1),a),s=t.get("barWidth");return s!=null?Mt(s,a):Math.max(Math.min(a/2,i),o)}const s3t=i3t;function l3t(t){t.registerChartView(XOt),t.registerSeriesModel(qOt),t.registerPreprocessor(ZOt),t.registerVisual(a3t),t.registerLayout(s3t)}function s7(t,e){var n=e.rippleEffectColor||e.color;t.eachChild(function(r){r.attr({z:e.z,zlevel:e.zlevel,style:{stroke:e.brushType==="stroke"?n:null,fill:e.brushType==="fill"?n:null}})})}var u3t=function(t){Fe(e,t);function e(n,r){var a=t.call(this)||this,i=new hS(n,r),o=new en;return a.add(i),a.add(o),a.updateData(n,r),a}return e.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},e.prototype.startEffectAnimation=function(n){for(var r=n.symbolType,a=n.color,i=n.rippleNumber,o=this.childAt(1),s=0;s<i;s++){var l=ba(r,-1,-1,2,2,a);l.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var u=-s/i*n.period+n.effectOffset;l.animate("",!0).when(n.period,{scaleX:n.rippleScale/2,scaleY:n.rippleScale/2}).delay(u).start(),l.animateStyle(!0).when(n.period,{opacity:0}).delay(u).start(),o.add(l)}s7(o,n)},e.prototype.updateEffectAnimation=function(n){for(var r=this._effectCfg,a=this.childAt(1),i=["symbolType","period","rippleScale","rippleNumber"],o=0;o<i.length;o++){var s=i[o];if(r[s]!==n[s]){this.stopEffectAnimation(),this.startEffectAnimation(n);return}}s7(a,n)},e.prototype.highlight=function(){dc(this)},e.prototype.downplay=function(){hc(this)},e.prototype.getSymbolType=function(){var n=this.childAt(0);return n&&n.getSymbolType()},e.prototype.updateData=function(n,r){var a=this,i=n.hostModel;this.childAt(0).updateData(n,r);var o=this.childAt(1),s=n.getItemModel(r),l=n.getItemVisual(r,"symbol"),u=U0(n.getItemVisual(r,"symbolSize")),c=n.getItemVisual(r,"style"),f=c&&c.fill,d=s.getModel("emphasis");o.setScale(u),o.traverse(function(g){g.setStyle("fill",f)});var h=zp(n.getItemVisual(r,"symbolOffset"),u);h&&(o.x=h[0],o.y=h[1]);var p=n.getItemVisual(r,"symbolRotate");o.rotation=(p||0)*Math.PI/180||0;var v={};v.showEffectOn=i.get("showEffectOn"),v.rippleScale=s.get(["rippleEffect","scale"]),v.brushType=s.get(["rippleEffect","brushType"]),v.period=s.get(["rippleEffect","period"])*1e3,v.effectOffset=r/n.count(),v.z=i.getShallow("z")||0,v.zlevel=i.getShallow("zlevel")||0,v.symbolType=l,v.color=f,v.rippleEffectColor=s.get(["rippleEffect","color"]),v.rippleNumber=s.get(["rippleEffect","number"]),v.showEffectOn==="render"?(this._effectCfg?this.updateEffectAnimation(v):this.startEffectAnimation(v),this._effectCfg=v):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(g){g==="emphasis"?v.showEffectOn!=="render"&&a.startEffectAnimation(v):g==="normal"&&v.showEffectOn!=="render"&&a.stopEffectAnimation()}),this._effectCfg=v,ua(this,d.get("focus"),d.get("blurScope"),d.get("disabled"))},e.prototype.fadeOut=function(n){n&&n()},e}(en);const c3t=u3t;var f3t=function(t){Fe(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.init=function(){this._symbolDraw=new pS(c3t)},e.prototype.render=function(n,r,a){var i=n.getData(),o=this._symbolDraw;o.updateData(i,{clipShape:this._getClipShape(n)}),this.group.add(o.group)},e.prototype._getClipShape=function(n){var r=n.coordinateSystem,a=r&&r.getArea&&r.getArea();return n.get("clip",!0)?a:null},e.prototype.updateTransform=function(n,r,a){var i=n.getData();this.group.dirty();var o=vS("").reset(n,r,a);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout()},e.prototype._updateGroupTransform=function(n){var r=n.coordinateSystem;r&&r.getRoamTransform&&(this.group.transform=Iae(r.getRoamTransform()),this.group.decomposeTransform())},e.prototype.remove=function(n,r){this._symbolDraw&&this._symbolDraw.remove(!0)},e.type="effectScatter",e}(br);const d3t=f3t;var h3t=function(t){Fe(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return e.prototype.getInitialData=function(n,r){return Tu(null,this,{useEncodeDefaulter:!0})},e.prototype.brushSelector=function(n,r,a){return a.point(r.getItemLayout(n))},e.type="series.effectScatter",e.dependencies=["grid","polar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",clip:!0,rippleEffect:{period:4,scale:2.5,brushType:"fill",number:3},universalTransition:{divideShape:"clone"},symbolSize:10},e}(Vr);const p3t=h3t;function v3t(t){t.registerChartView(d3t),t.registerSeriesModel(p3t),t.registerLayout(vS("effectScatter"))}var g3t=function(t){Fe(e,t);function e(n,r,a){var i=t.call(this)||this;return i.add(i.createLine(n,r,a)),i._updateEffectSymbol(n,r),i}return e.prototype.createLine=function(n,r,a){return new VB(n,r,a)},e.prototype._updateEffectSymbol=function(n,r){var a=n.getItemModel(r),i=a.getModel("effect"),o=i.get("symbolSize"),s=i.get("symbol");st(o)||(o=[o,o]);var l=n.getItemVisual(r,"style"),u=i.get("color")||l&&l.stroke,c=this.childAt(1);this._symbolType!==s&&(this.remove(c),c=ba(s,-.5,-.5,1,1,u),c.z2=100,c.culling=!0,this.add(c)),c&&(c.setStyle("shadowColor",u),c.setStyle(i.getItemStyle(["color"])),c.scaleX=o[0],c.scaleY=o[1],c.setColor(u),this._symbolType=s,this._symbolScale=o,this._updateEffectAnimation(n,i,r))},e.prototype._updateEffectAnimation=function(n,r,a){var i=this.childAt(1);if(i){var o=n.getItemLayout(a),s=r.get("period")*1e3,l=r.get("loop"),u=r.get("roundTrip"),c=r.get("constantSpeed"),f=Ua(r.get("delay"),function(h){return h/n.count()*s/3});if(i.ignore=!0,this._updateAnimationPoints(i,o),c>0&&(s=this._getLineLength(i)/c*1e3),s!==this._period||l!==this._loop||u!==this._roundTrip){i.stopAnimation();var d=void 0;jt(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}},e.prototype._animateSymbol=function(n,r,a,i,o){if(r>0){n.__t=0;var s=this,l=n.animate("",i).when(o?r*2:r,{__t:o?2:1}).delay(a).during(function(){s._updateSymbolPosition(n)});i||l.done(function(){s.remove(n)}),l.start()}},e.prototype._getLineLength=function(n){return Xu(n.__p1,n.__cp1)+Xu(n.__cp1,n.__p2)},e.prototype._updateAnimationPoints=function(n,r){n.__p1=r[0],n.__p2=r[1],n.__cp1=r[2]||[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]},e.prototype.updateData=function(n,r,a){this.childAt(0).updateData(n,r,a),this._updateEffectSymbol(n,r)},e.prototype._updateSymbolPosition=function(n){var r=n.__p1,a=n.__p2,i=n.__cp1,o=n.__t<1?n.__t:2-n.__t,s=[n.x,n.y],l=s.slice(),u=Ja,c=sO;s[0]=u(r[0],i[0],a[0],o),s[1]=u(r[1],i[1],a[1],o);var f=n.__t<1?c(r[0],i[0],a[0],o):c(a[0],i[0],r[0],1-o),d=n.__t<1?c(r[1],i[1],a[1],o):c(a[1],i[1],r[1],1-o);n.rotation=-Math.atan2(d,f)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(n.__lastT!==void 0&&n.__lastT<n.__t?(n.scaleY=Xu(l,s)*1.05,o===1&&(s[0]=l[0]+(s[0]-l[0])/2,s[1]=l[1]+(s[1]-l[1])/2)):n.__lastT===1?n.scaleY=2*Xu(r,s):n.scaleY=this._symbolScale[1]),n.__lastT=n.__t,n.ignore=!1,n.x=s[0],n.y=s[1]},e.prototype.updateLayout=function(n,r){this.childAt(0).updateLayout(n,r);var a=n.getItemModel(r).getModel("effect");this._updateEffectAnimation(n,a,r)},e}(en);const _ce=g3t;var y3t=function(t){Fe(e,t);function e(n,r,a){var i=t.call(this)||this;return i._createPolyline(n,r,a),i}return e.prototype._createPolyline=function(n,r,a){var i=n.getItemLayout(r),o=new fo({shape:{points:i}});this.add(o),this._updateCommonStl(n,r,a)},e.prototype.updateData=function(n,r,a){var i=n.hostModel,o=this.childAt(0),s={shape:{points:n.getItemLayout(r)}};jn(o,s,i,r),this._updateCommonStl(n,r,a)},e.prototype._updateCommonStl=function(n,r,a){var i=this.childAt(0),o=n.getItemModel(r),s=a&&a.emphasisLineStyle,l=a&&a.focus,u=a&&a.blurScope,c=a&&a.emphasisDisabled;if(!a||n.hasItemOption){var f=o.getModel("emphasis");s=f.getModel("lineStyle").getLineStyle(),c=f.get("disabled"),l=f.get("focus"),u=f.get("blurScope")}i.useStyle(n.getItemVisual(r,"style")),i.style.fill=null,i.style.strokeNoScale=!0;var d=i.ensureState("emphasis");d.style=s,ua(this,l,u,c)},e.prototype.updateLayout=function(n,r){var a=this.childAt(0);a.setShape("points",n.getItemLayout(r))},e}(en);const Cce=y3t;var m3t=function(t){Fe(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n._lastFrame=0,n._lastFramePercent=0,n}return e.prototype.createLine=function(n,r,a){return new Cce(n,r,a)},e.prototype._updateAnimationPoints=function(n,r){this._points=r;for(var a=[0],i=0,o=1;o<r.length;o++){var s=r[o-1],l=r[o];i+=Xu(s,l),a.push(i)}if(i===0){this._length=0;return}for(var o=0;o<a.length;o++)a[o]/=i;this._offsets=a,this._length=i},e.prototype._getLineLength=function(){return this._length},e.prototype._updateSymbolPosition=function(n){var r=n.__t<1?n.__t:2-n.__t,a=this._points,i=this._offsets,o=a.length;if(i){var s=this._lastFrame,l;if(r<this._lastFramePercent){var u=Math.min(s+1,o-1);for(l=u;l>=0&&!(i[l]<=r);l--);l=Math.min(l,o-2)}else{for(l=s;l<o&&!(i[l]>r);l++);l=Math.min(l-1,o-2)}var c=(r-i[l])/(i[l+1]-i[l]),f=a[l],d=a[l+1];n.x=f[0]*(1-c)+c*d[0],n.y=f[1]*(1-c)+c*d[1];var h=n.__t<1?d[0]-f[0]:f[0]-d[0],p=n.__t<1?d[1]-f[1]:f[1]-d[1];n.rotation=-Math.atan2(p,h)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=r,n.ignore=!1}},e}(_ce);const b3t=m3t;var S3t=function(){function t(){this.polyline=!1,this.curveness=0,this.segs=[]}return t}(),w3t=function(t){Fe(e,t);function e(n){var r=t.call(this,n)||this;return r._off=0,r.hoverDataIdx=-1,r}return e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new S3t},e.prototype.buildPath=function(n,r){var a=r.segs,i=r.curveness,o;if(r.polyline)for(o=this._off;o<a.length;){var s=a[o++];if(s>0){n.moveTo(a[o++],a[o++]);for(var l=1;l<s;l++)n.lineTo(a[o++],a[o++])}}else for(o=this._off;o<a.length;){var u=a[o++],c=a[o++],f=a[o++],d=a[o++];if(n.moveTo(u,c),i>0){var h=(u+f)/2-(c-d)*i,p=(c+d)/2-(f-u)*i;n.quadraticCurveTo(h,p,f,d)}else n.lineTo(f,d)}this.incremental&&(this._off=o,this.notClear=!0)},e.prototype.findDataIndex=function(n,r){var a=this.shape,i=a.segs,o=a.curveness,s=this.style.lineWidth;if(a.polyline)for(var l=0,u=0;u<i.length;){var c=i[u++];if(c>0)for(var f=i[u++],d=i[u++],h=1;h<c;h++){var p=i[u++],v=i[u++];if(ff(f,d,p,v,s,n,r))return l}l++}else for(var l=0,u=0;u<i.length;){var f=i[u++],d=i[u++],p=i[u++],v=i[u++];if(o>0){var g=(f+p)/2-(d-v)*o,y=(d+v)/2-(p-f)*o;if(kie(f,d,g,y,p,v,s,n,r))return l}else if(ff(f,d,p,v,s,n,r))return l;l++}return-1},e.prototype.contain=function(n,r){var a=this.transformCoordToLocal(n,r),i=this.getBoundingRect();if(n=a[0],r=a[1],i.contain(n,r)){var o=this.hoverDataIdx=this.findDataIndex(n,r);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var n=this._rect;if(!n){for(var r=this.shape,a=r.segs,i=1/0,o=1/0,s=-1/0,l=-1/0,u=0;u<a.length;){var c=a[u++],f=a[u++];i=Math.min(c,i),s=Math.max(c,s),o=Math.min(f,o),l=Math.max(f,l)}n=this._rect=new yn(i,o,s,l)}return n},e}(Cn),x3t=function(){function t(){this.group=new en}return t.prototype.updateData=function(e){this._clear();var n=this._create();n.setShape({segs:e.getLayout("linesPoints")}),this._setCommon(n,e)},t.prototype.incrementalPrepareUpdate=function(e){this.group.removeAll(),this._clear()},t.prototype.incrementalUpdate=function(e,n){var r=this._newAdded[0],a=n.getLayout("linesPoints"),i=r&&r.shape.segs;if(i&&i.length<2e4){var o=i.length,s=new Float32Array(o+a.length);s.set(i),s.set(a,o),r.setShape({segs:s})}else{this._newAdded=[];var l=this._create();l.incremental=!0,l.setShape({segs:a}),this._setCommon(l,n),l.__startIndex=e.start}},t.prototype.remove=function(){this._clear()},t.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},t.prototype._create=function(){var e=new w3t({cursor:"default",ignoreCoarsePointer:!0});return this._newAdded.push(e),this.group.add(e),e},t.prototype._setCommon=function(e,n,r){var a=n.hostModel;e.setShape({polyline:a.get("polyline"),curveness:a.get(["lineStyle","curveness"])}),e.useStyle(a.getModel("lineStyle").getLineStyle()),e.style.strokeNoScale=!0;var i=n.getVisual("style");i&&i.stroke&&e.setStyle("stroke",i.stroke),e.setStyle("fill",null);var o=ln(e);o.seriesIndex=a.seriesIndex,e.on("mousemove",function(s){o.dataIndex=null;var l=e.hoverDataIdx;l>0&&(o.dataIndex=l+e.__startIndex)})},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t}();const _3t=x3t;var C3t={seriesType:"lines",plan:F0(),reset:function(t){var e=t.coordinateSystem;if(e){var n=t.get("polyline"),r=t.pipelineContext.large;return{progress:function(a,i){var o=[];if(r){var s=void 0,l=a.end-a.start;if(n){for(var u=0,c=a.start;c<a.end;c++)u+=t.getLineCoordsCount(c);s=new Float32Array(l+u*2)}else s=new Float32Array(l*4);for(var f=0,d=[],c=a.start;c<a.end;c++){var h=t.getLineCoords(c,o);n&&(s[f++]=h);for(var p=0;p<h;p++)d=e.dataToPoint(o[p],!1,d),s[f++]=d[0],s[f++]=d[1]}i.setLayout("linesPoints",s)}else for(var c=a.start;c<a.end;c++){var v=i.getItemModel(c),h=t.getLineCoords(c,o),g=[];if(n)for(var y=0;y<h;y++)g.push(e.dataToPoint(o[y]));else{g[0]=e.dataToPoint(o[0]),g[1]=e.dataToPoint(o[1]);var m=v.get(["lineStyle","curveness"]);+m&&(g[2]=[(g[0][0]+g[1][0])/2-(g[0][1]-g[1][1])*m,(g[0][1]+g[1][1])/2-(g[1][0]-g[0][0])*m])}i.setItemLayout(c,g)}}}}}};const Tce=C3t;var T3t=function(t){Fe(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.render=function(n,r,a){var i=n.getData(),o=this._updateLineDraw(i,n),s=n.get("zlevel"),l=n.get(["effect","trailLength"]),u=a.getZr(),c=u.painter.getType()==="svg";c||u.painter.getLayer(s).clear(!0),this._lastZlevel!=null&&!c&&u.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(n)&&l>0&&(c||u.configLayer(s,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(l/10+.9,1),0)})),o.updateData(i);var f=n.get("clip",!0)&&VE(n.coordinateSystem,!1,n);f?this.group.setClipPath(f):this.group.removeClipPath(),this._lastZlevel=s,this._finished=!0},e.prototype.incrementalPrepareRender=function(n,r,a){var i=n.getData(),o=this._updateLineDraw(i,n);o.incrementalPrepareUpdate(i),this._clearLayer(a),this._finished=!1},e.prototype.incrementalRender=function(n,r,a){this._lineDraw.incrementalUpdate(n,r.getData()),this._finished=n.end===r.getData().count()},e.prototype.eachRendered=function(n){this._lineDraw&&this._lineDraw.eachRendered(n)},e.prototype.updateTransform=function(n,r,a){var i=n.getData(),o=n.pipelineContext;if(!this._finished||o.large||o.progressiveRender)return{update:!0};var s=Tce.reset(n,r,a);s.progress&&s.progress({start:0,end:i.count(),count:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(a)},e.prototype._updateLineDraw=function(n,r){var a=this._lineDraw,i=this._showEffect(r),o=!!r.get("polyline"),s=r.pipelineContext,l=s.large;return(!a||i!==this._hasEffet||o!==this._isPolyline||l!==this._isLargeDraw)&&(a&&a.remove(),a=this._lineDraw=l?new _3t:new NB(o?i?b3t:Cce:i?_ce:VB),this._hasEffet=i,this._isPolyline=o,this._isLargeDraw=l),this.group.add(a.group),a},e.prototype._showEffect=function(n){return!!n.get(["effect","show"])},e.prototype._clearLayer=function(n){var r=n.getZr(),a=r.painter.getType()==="svg";!a&&this._lastZlevel!=null&&r.painter.getLayer(this._lastZlevel).clear(!0)},e.prototype.remove=function(n,r){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(r)},e.prototype.dispose=function(n,r){this.remove(n,r)},e.type="lines",e}(br);const E3t=T3t;var M3t=typeof Uint32Array>"u"?Array:Uint32Array,D3t=typeof Float64Array>"u"?Array:Float64Array;function l7(t){var e=t.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(t.data=ut(e,function(n){var r=[n[0].coord,n[1].coord],a={coords:r};return n[0].name&&(a.fromName=n[0].name),n[1].name&&(a.toName=n[1].name),JT([a,n[0],n[1]])}))}var A3t=function(t){Fe(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return e.prototype.init=function(n){n.data=n.data||[],l7(n);var r=this._processFlatCoordsArray(n.data);this._flatCoords=r.flatCoords,this._flatCoordsOffset=r.flatCoordsOffset,r.flatCoords&&(n.data=new Float32Array(r.count)),t.prototype.init.apply(this,arguments)},e.prototype.mergeOption=function(n){if(l7(n),n.data){var r=this._processFlatCoordsArray(n.data);this._flatCoords=r.flatCoords,this._flatCoordsOffset=r.flatCoordsOffset,r.flatCoords&&(n.data=new Float32Array(r.count))}t.prototype.mergeOption.apply(this,arguments)},e.prototype.appendData=function(n){var r=this._processFlatCoordsArray(n.data);r.flatCoords&&(this._flatCoords?(this._flatCoords=F1(this._flatCoords,r.flatCoords),this._flatCoordsOffset=F1(this._flatCoordsOffset,r.flatCoordsOffset)):(this._flatCoords=r.flatCoords,this._flatCoordsOffset=r.flatCoordsOffset),n.data=new Float32Array(r.count)),this.getRawData().appendData(n.data)},e.prototype._getCoordsFromItemModel=function(n){var r=this.getData().getItemModel(n),a=r.option instanceof Array?r.option:r.getShallow("coords");return a},e.prototype.getLineCoordsCount=function(n){return this._flatCoordsOffset?this._flatCoordsOffset[n*2+1]:this._getCoordsFromItemModel(n).length},e.prototype.getLineCoords=function(n,r){if(this._flatCoordsOffset){for(var a=this._flatCoordsOffset[n*2],i=this._flatCoordsOffset[n*2+1],o=0;o<i;o++)r[o]=r[o]||[],r[o][0]=this._flatCoords[a+o*2],r[o][1]=this._flatCoords[a+o*2+1];return i}else{for(var s=this._getCoordsFromItemModel(n),o=0;o<s.length;o++)r[o]=r[o]||[],r[o][0]=s[o][0],r[o][1]=s[o][1];return s.length}},e.prototype._processFlatCoordsArray=function(n){var r=0;if(this._flatCoords&&(r=this._flatCoords.length),Un(n[0])){for(var a=n.length,i=new M3t(a),o=new D3t(a),s=0,l=0,u=0,c=0;c<a;){u++;var f=n[c++];i[l++]=s+r,i[l++]=f;for(var d=0;d<f;d++){var h=n[c++],p=n[c++];o[s++]=h,o[s++]=p}}return{flatCoordsOffset:new Uint32Array(i.buffer,0,l),flatCoords:o,count:u}}return{flatCoordsOffset:null,flatCoords:null,count:n.length}},e.prototype.getInitialData=function(n,r){var a=new Oi(["value"],this);return a.hasItemOption=!1,a.initData(n.data,[],function(i,o,s,l){if(i instanceof Array)return NaN;a.hasItemOption=!0;var u=i.value;if(u!=null)return u instanceof Array?u[l]:u}),a},e.prototype.formatTooltip=function(n,r,a){var i=this.getData(),o=i.getItemModel(n),s=o.get("name");if(s)return s;var l=o.get("fromName"),u=o.get("toName"),c=[];return l!=null&&c.push(l),u!=null&&c.push(u),Ya("nameValue",{name:c.join(" > ")})},e.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},e.prototype.getProgressive=function(){var n=this.option.progressive;return n??(this.option.large?1e4:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var n=this.option.progressiveThreshold;return n??(this.option.large?2e4:this.get("progressiveThreshold"))},e.prototype.getZLevelKey=function(){var n=this.getModel("effect"),r=n.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:n.get("show")&&r>0?r+"":""},e.type="series.lines",e.dependencies=["grid","polar","geo","calendar"],e.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}},e}(Vr);const k3t=A3t;function Cx(t){return t instanceof Array||(t=[t,t]),t}var R3t={seriesType:"lines",reset:function(t){var e=Cx(t.get("symbol")),n=Cx(t.get("symbolSize")),r=t.getData();r.setVisual("fromSymbol",e&&e[0]),r.setVisual("toSymbol",e&&e[1]),r.setVisual("fromSymbolSize",n&&n[0]),r.setVisual("toSymbolSize",n&&n[1]);function a(i,o){var s=i.getItemModel(o),l=Cx(s.getShallow("symbol",!0)),u=Cx(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:r.hasItemOption?a:null}}};const L3t=R3t;function O3t(t){t.registerChartView(E3t),t.registerSeriesModel(k3t),t.registerLayout(Tce),t.registerVisual(L3t)}var V3t=256,N3t=function(){function t(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=ml.createCanvas();this.canvas=e}return t.prototype.update=function(e,n,r,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=e.length;f.width=n,f.height=r;for(var p=0;p<h;++p){var v=e[p],g=v[0],y=v[1],m=v[2],S=a(m);d.globalAlpha=S,d.drawImage(s,g-c,y-c)}if(!f.width||!f.height)return f;for(var w=d.getImageData(0,0,f.width,f.height),C=w.data,_=0,x=C.length,T=this.minOpacity,M=this.maxOpacity,E=M-T;_<x;){var S=C[_+3]/256,A=Math.floor(S*(V3t-1))*4;if(S>0){var k=o(S)?l:u;S>0&&(S=S*E+T),C[_++]=k[A],C[_++]=k[A+1],C[_++]=k[A+2],C[_++]=k[A+3]*S*256}else _+=4}return d.putImageData(w,0,0),f},t.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=ml.createCanvas()),n=this.pointSize+this.blurSize,r=n*2;e.width=r,e.height=r;var a=e.getContext("2d");return a.clearRect(0,0,r,r),a.shadowOffsetX=r,a.shadowBlur=this.blurSize,a.shadowColor="#000",a.beginPath(),a.arc(-n,n,this.pointSize,0,Math.PI*2,!0),a.closePath(),a.fill(),e},t.prototype._getGradient=function(e,n){for(var r=this._gradientPixels,a=r[n]||(r[n]=new Uint8ClampedArray(256*4)),i=[0,0,0,0],o=0,s=0;s<256;s++)e[n](s/255,!0,i),a[o++]=i[0],a[o++]=i[1],a[o++]=i[2],a[o++]=i[3];return a},t}();const I3t=N3t;function B3t(t,e,n){var r=t[1]-t[0];e=ut(e,function(o){return{interval:[(o.interval[0]-t[0])/r,(o.interval[1]-t[0])/r]}});var a=e.length,i=0;return function(o){var s;for(s=i;s<a;s++){var l=e[s].interval;if(l[0]<=o&&o<=l[1]){i=s;break}}if(s===a)for(s=i-1;s>=0;s--){var l=e[s].interval;if(l[0]<=o&&o<=l[1]){i=s;break}}return s>=0&&s<a&&n[s]}}function $3t(t,e){var n=t[1]-t[0];return e=[(e[0]-t[0])/n,(e[1]-t[0])/n],function(r){return r>=e[0]&&r<=e[1]}}function u7(t){var e=t.dimensions;return e[0]==="lng"&&e[1]==="lat"}var P3t=function(t){Fe(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.render=function(n,r,a){var i;r.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===n&&(i=s)})}),this._progressiveEls=null,this.group.removeAll();var o=n.coordinateSystem;o.type==="cartesian2d"||o.type==="calendar"?this._renderOnCartesianAndCalendar(n,a,0,n.getData().count()):u7(o)&&this._renderOnGeo(o,n,i,a)},e.prototype.incrementalPrepareRender=function(n,r,a){this.group.removeAll()},e.prototype.incrementalRender=function(n,r,a,i){var o=r.coordinateSystem;o&&(u7(o)?this.render(r,a,i):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(r,i,n.start,n.end,!0)))},e.prototype.eachRendered=function(n){dd(this._progressiveEls||this.group,n)},e.prototype._renderOnCartesianAndCalendar=function(n,r,a,i,o){var s=n.coordinateSystem,l=Up(s,"cartesian2d"),u,c,f,d;if(l){var h=s.getAxis("x"),p=s.getAxis("y");u=h.getBandWidth()+.5,c=p.getBandWidth()+.5,f=h.scale.getExtent(),d=p.scale.getExtent()}for(var v=this.group,g=n.getData(),y=n.getModel(["emphasis","itemStyle"]).getItemStyle(),m=n.getModel(["blur","itemStyle"]).getItemStyle(),S=n.getModel(["select","itemStyle"]).getItemStyle(),w=n.get(["itemStyle","borderRadius"]),C=Ka(n),_=n.getModel("emphasis"),x=_.get("focus"),T=_.get("blurScope"),M=_.get("disabled"),E=l?[g.mapDimension("x"),g.mapDimension("y"),g.mapDimension("value")]:[g.mapDimension("time"),g.mapDimension("value")],A=a;A<i;A++){var k=void 0,L=g.getItemVisual(A,"style");if(l){var I=g.get(E[0],A),P=g.get(E[1],A);if(isNaN(g.get(E[2],A))||isNaN(I)||isNaN(P)||I<f[0]||I>f[1]||P<d[0]||P>d[1])continue;var F=s.dataToPoint([I,P]);k=new $n({shape:{x:F[0]-u/2,y:F[1]-c/2,width:u,height:c},style:L})}else{if(isNaN(g.get(E[1],A)))continue;k=new $n({z2:1,shape:s.dataToRect([g.get(E[0],A)]).contentShape,style:L})}if(g.hasItemOption){var $=g.getItemModel(A),W=$.getModel("emphasis");y=W.getModel("itemStyle").getItemStyle(),m=$.getModel(["blur","itemStyle"]).getItemStyle(),S=$.getModel(["select","itemStyle"]).getItemStyle(),w=$.get(["itemStyle","borderRadius"]),x=W.get("focus"),T=W.get("blurScope"),M=W.get("disabled"),C=Ka($)}k.shape.r=w;var V=n.getRawValue(A),z="-";V&&V[2]!=null&&(z=V[2]+""),Si(k,C,{labelFetcher:n,labelDataIndex:A,defaultOpacity:L.opacity,defaultText:z}),k.ensureState("emphasis").style=y,k.ensureState("blur").style=m,k.ensureState("select").style=S,ua(k,x,T,M),k.incremental=o,o&&(k.states.emphasis.hoverLayer=!0),v.add(k),g.setItemGraphicEl(A,k),this._progressiveEls&&this._progressiveEls.push(k)}},e.prototype._renderOnGeo=function(n,r,a,i){var o=a.targetVisuals.inRange,s=a.targetVisuals.outOfRange,l=r.getData(),u=this._hmLayer||this._hmLayer||new I3t;u.blurSize=r.get("blurSize"),u.pointSize=r.get("pointSize"),u.minOpacity=r.get("minOpacity"),u.maxOpacity=r.get("maxOpacity");var c=n.getViewRect().clone(),f=n.getRoamTransform();c.applyTransform(f);var d=Math.max(c.x,0),h=Math.max(c.y,0),p=Math.min(c.width+c.x,i.getWidth()),v=Math.min(c.height+c.y,i.getHeight()),g=p-d,y=v-h,m=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],S=l.mapArray(m,function(x,T,M){var E=n.dataToPoint([x,T]);return E[0]-=d,E[1]-=h,E.push(M),E}),w=a.getExtent(),C=a.type==="visualMap.continuous"?$3t(w,a.option.range):B3t(w,a.getPieceList(),a.option.selected);u.update(S,g,y,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},C);var _=new si({style:{width:g,height:y,x:d,y:h,image:u.canvas},silent:!0});this.group.add(_)},e.type="heatmap",e}(br);const F3t=P3t;var z3t=function(t){Fe(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.getInitialData=function(n,r){return Tu(null,this,{generateCoord:"value"})},e.prototype.preventIncremental=function(){var n=P0.get(this.get("coordinateSystem"));if(n&&n.dimensions)return n.dimensions[0]==="lng"&&n.dimensions[1]==="lat"},e.type="series.heatmap",e.dependencies=["grid","geo","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},e}(Vr);const U3t=z3t;function G3t(t){t.registerChartView(F3t),t.registerSeriesModel(U3t)}var H3t=["itemStyle","borderWidth"],c7=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],Ck=new wl,W3t=function(t){Fe(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.render=function(n,r,a){var i=this.group,o=n.getData(),s=this._data,l=n.coordinateSystem,u=l.getBaseAxis(),c=u.isHorizontal(),f=l.master.getRect(),d={ecSize:{width:a.getWidth(),height:a.getHeight()},seriesModel:n,coordSys:l,coordSysExtent:[[f.x,f.x+f.width],[f.y,f.y+f.height]],isHorizontal:c,valueDim:c7[+c],categoryDim:c7[1-+c]};return o.diff(s).add(function(h){if(o.hasValue(h)){var p=d7(o,h),v=f7(o,h,p,d),g=h7(o,d,v);o.setItemGraphicEl(h,g),i.add(g),v7(g,d,v)}}).update(function(h,p){var v=s.getItemGraphicEl(p);if(!o.hasValue(h)){i.remove(v);return}var g=d7(o,h),y=f7(o,h,g,d),m=Rce(o,y);v&&m!==v.__pictorialShapeStr&&(i.remove(v),o.setItemGraphicEl(h,null),v=null),v?Q3t(v,d,y):v=h7(o,d,y,!0),o.setItemGraphicEl(h,v),v.__pictorialSymbolMeta=y,i.add(v),v7(v,d,y)}).remove(function(h){var p=s.getItemGraphicEl(h);p&&p7(s,h,p.__pictorialSymbolMeta.animationModel,p)}).execute(),this._data=o,this.group},e.prototype.remove=function(n,r){var a=this.group,i=this._data;n.get("animation")?i&&i.eachItemGraphicEl(function(o){p7(i,ln(o).dataIndex,n,o)}):a.removeAll()},e.type="pictorialBar",e}(br);function f7(t,e,n,r){var a=t.getItemLayout(e),i=n.get("symbolRepeat"),o=n.get("symbolClip"),s=n.get("symbolPosition")||"start",l=n.get("symbolRotate"),u=(l||0)*Math.PI/180||0,c=n.get("symbolPatternSize")||2,f=n.isAnimationEnabled(),d={dataIndex:e,layout:a,itemModel:n,symbolType:t.getItemVisual(e,"symbol")||"circle",style:t.getItemVisual(e,"style"),symbolClip:o,symbolRepeat:i,symbolRepeatDirection:n.get("symbolRepeatDirection"),symbolPatternSize:c,rotation:u,animationModel:f?n:null,hoverScale:f&&n.get(["emphasis","scale"]),z2:n.getShallow("z",!0)||0};j3t(n,i,a,r,d),K3t(t,e,a,i,o,d.boundingLength,d.pxSign,c,r,d),Y3t(n,d.symbolScale,u,r,d);var h=d.symbolSize,p=zp(n.get("symbolOffset"),h);return X3t(n,h,a,i,o,p,s,d.valueLineWidth,d.boundingLength,d.repeatCutLength,r,d),d}function j3t(t,e,n,r,a){var i=r.valueDim,o=t.get("symbolBoundingData"),s=r.coordSys.getOtherAxis(r.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(n[i.wh]<=0),c;if(st(o)){var f=[Tk(s,o[0])-l,Tk(s,o[1])-l];f[1]<f[0]&&f.reverse(),c=f[u]}else o!=null?c=Tk(s,o)-l:e?c=r.coordSysExtent[i.index][u]-l:c=n[i.wh];a.boundingLength=c,e&&(a.repeatCutLength=n[i.wh]),a.pxSign=c>0?1:-1}function Tk(t,e){return t.toGlobalCoord(t.dataToCoord(t.scale.parse(e)))}function K3t(t,e,n,r,a,i,o,s,l,u){var c=l.valueDim,f=l.categoryDim,d=Math.abs(n[f.wh]),h=t.getItemVisual(e,"symbolSize"),p;st(h)?p=h.slice():h==null?p=["100%","100%"]:p=[h,h],p[f.index]=Mt(p[f.index],d),p[c.index]=Mt(p[c.index],r?d:Math.abs(i)),u.symbolSize=p;var v=u.symbolScale=[p[0]/s,p[1]/s];v[c.index]*=(l.isHorizontal?-1:1)*o}function Y3t(t,e,n,r,a){var i=t.get(H3t)||0;i&&(Ck.attr({scaleX:e[0],scaleY:e[1],rotation:n}),Ck.updateTransform(),i/=Ck.getLineScale(),i*=e[r.valueDim.index]),a.valueLineWidth=i||0}function X3t(t,e,n,r,a,i,o,s,l,u,c,f){var d=c.categoryDim,h=c.valueDim,p=f.pxSign,v=Math.max(e[h.index]+s,0),g=v;if(r){var y=Math.abs(l),m=Ua(t.get("symbolMargin"),"15%")+"",S=!1;m.lastIndexOf("!")===m.length-1&&(S=!0,m=m.slice(0,m.length-1));var w=Mt(m,e[h.index]),C=Math.max(v+w*2,0),_=S?0:w*2,x=dI(r),T=x?r:g7((y+_)/C),M=y-T*v;w=M/2/(S?T:Math.max(T-1,1)),C=v+w*2,_=S?0:w*2,!x&&r!=="fixed"&&(T=u?g7((Math.abs(u)+_)/C):0),g=T*C-_,f.repeatTimes=T,f.symbolMargin=w}var E=p*(g/2),A=f.pathPosition=[];A[d.index]=n[d.wh]/2,A[h.index]=o==="start"?E:o==="end"?l-E:l/2,i&&(A[0]+=i[0],A[1]+=i[1]);var k=f.bundlePosition=[];k[d.index]=n[d.xy],k[h.index]=n[h.xy];var L=f.barRectShape=et({},n);L[h.wh]=p*Math.max(Math.abs(n[h.wh]),Math.abs(A[h.index]+E)),L[d.wh]=n[d.wh];var I=f.clipShape={};I[d.xy]=-n[d.xy],I[d.wh]=c.ecSize[d.wh],I[h.xy]=0,I[h.wh]=n[h.wh]}function Ece(t){var e=t.symbolPatternSize,n=ba(t.symbolType,-e/2,-e/2,e,e);return n.attr({culling:!0}),n.type!=="image"&&n.setStyle({strokeNoScale:!0}),n}function Mce(t,e,n,r){var a=t.__pictorialBundle,i=n.symbolSize,o=n.valueLineWidth,s=n.pathPosition,l=e.valueDim,u=n.repeatTimes||0,c=0,f=i[e.valueDim.index]+o+n.symbolMargin*2;for(GB(t,function(v){v.__pictorialAnimationIndex=c,v.__pictorialRepeatTimes=u,c<u?wg(v,null,p(c),n,r):wg(v,null,{scaleX:0,scaleY:0},n,r,function(){a.remove(v)}),c++});c<u;c++){var d=Ece(n);d.__pictorialAnimationIndex=c,d.__pictorialRepeatTimes=u,a.add(d);var h=p(c);wg(d,{x:h.x,y:h.y,scaleX:0,scaleY:0},{scaleX:h.scaleX,scaleY:h.scaleY,rotation:h.rotation},n,r)}function p(v){var g=s.slice(),y=n.pxSign,m=v;return(n.symbolRepeatDirection==="start"?y>0:y<0)&&(m=u-1-v),g[l.index]=f*(m-u/2+.5)+s[l.index],{x:g[0],y:g[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation}}}function Dce(t,e,n,r){var a=t.__pictorialBundle,i=t.__pictorialMainPath;i?wg(i,null,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation},n,r):(i=t.__pictorialMainPath=Ece(n),a.add(i),wg(i,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:0,scaleY:0,rotation:n.rotation},{scaleX:n.symbolScale[0],scaleY:n.symbolScale[1]},n,r))}function Ace(t,e,n){var r=et({},e.barRectShape),a=t.__pictorialBarRect;a?wg(a,null,{shape:r},e,n):(a=t.__pictorialBarRect=new $n({z2:2,shape:r,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),a.disableMorphing=!0,t.add(a))}function kce(t,e,n,r){if(n.symbolClip){var a=t.__pictorialClipPath,i=et({},n.clipShape),o=e.valueDim,s=n.animationModel,l=n.dataIndex;if(a)jn(a,{shape:i},s,l);else{i[o.wh]=0,a=new $n({shape:i}),t.__pictorialBundle.setClipPath(a),t.__pictorialClipPath=a;var u={};u[o.wh]=n.clipShape[o.wh],lS[r?"updateProps":"initProps"](a,{shape:u},s,l)}}}function d7(t,e){var n=t.getItemModel(e);return n.getAnimationDelayParams=q3t,n.isAnimationEnabled=Z3t,n}function q3t(t){return{index:t.__pictorialAnimationIndex,count:t.__pictorialRepeatTimes}}function Z3t(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function h7(t,e,n,r){var a=new en,i=new en;return a.add(i),a.__pictorialBundle=i,i.x=n.bundlePosition[0],i.y=n.bundlePosition[1],n.symbolRepeat?Mce(a,e,n):Dce(a,e,n),Ace(a,n,r),kce(a,e,n,r),a.__pictorialShapeStr=Rce(t,n),a.__pictorialSymbolMeta=n,a}function Q3t(t,e,n){var r=n.animationModel,a=n.dataIndex,i=t.__pictorialBundle;jn(i,{x:n.bundlePosition[0],y:n.bundlePosition[1]},r,a),n.symbolRepeat?Mce(t,e,n,!0):Dce(t,e,n,!0),Ace(t,n,!0),kce(t,e,n,!0)}function p7(t,e,n,r){var a=r.__pictorialBarRect;a&&a.removeTextContent();var i=[];GB(r,function(o){i.push(o)}),r.__pictorialMainPath&&i.push(r.__pictorialMainPath),r.__pictorialClipPath&&(n=null),q(i,function(o){qf(o,{scaleX:0,scaleY:0},n,e,function(){r.parent&&r.parent.remove(r)})}),t.setItemGraphicEl(e,null)}function Rce(t,e){return[t.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function GB(t,e,n){q(t.__pictorialBundle.children(),function(r){r!==t.__pictorialBarRect&&e.call(n,r)})}function wg(t,e,n,r,a,i){e&&t.attr(e),r.symbolClip&&!a?n&&t.attr(n):n&&lS[a?"updateProps":"initProps"](t,n,r.animationModel,r.dataIndex,i)}function v7(t,e,n){var r=n.dataIndex,a=n.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");GB(t,function(v){if(v instanceof si){var g=v.style;v.useStyle(et({image:g.image,x:g.x,y:g.y,width:g.width,height:g.height},n.style))}else v.useStyle(n.style);var y=v.ensureState("emphasis");y.style=o,d&&(y.scaleX=v.scaleX*1.1,y.scaleY=v.scaleY*1.1),v.ensureState("blur").style=s,v.ensureState("select").style=l,u&&(v.cursor=u),v.z2=n.z2});var h=e.valueDim.posDesc[+(n.boundingLength>0)],p=t.__pictorialBarRect;Si(p,Ka(a),{labelFetcher:e.seriesModel,labelDataIndex:r,defaultText:i0(e.seriesModel.getData(),r),inheritColor:n.style.fill,defaultOpacity:n.style.opacity,defaultOutsidePosition:h}),ua(t,c,f,i.get("disabled"))}function g7(t){var e=Math.round(t);return Math.abs(t-e)<1e-4?e:Math.ceil(t)}const J3t=W3t;var e4t=function(t){Fe(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n.defaultSymbol="roundRect",n}return e.prototype.getInitialData=function(n){return n.stack=null,t.prototype.getInitialData.apply(this,arguments)},e.type="series.pictorialBar",e.dependencies=["grid"],e.defaultOption=hd(_C.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"}}}),e}(_C);const t4t=e4t;function n4t(t){t.registerChartView(J3t),t.registerSeriesModel(t4t),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,sn(dle,"pictorialBar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,hle("pictorialBar"))}var r4t=function(t){Fe(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n._layers=[],n}return e.prototype.render=function(n,r,a){var i=n.getData(),o=this,s=this.group,l=n.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 pc(this._layersSeries||[],l,d,d),p=[];h.add(Nt(v,this,"add")).update(Nt(v,this,"update")).remove(Nt(v,this,"remove")).execute();function v(g,y,m){var S=o._layers;if(g==="remove"){s.remove(S[y]);return}for(var w=[],C=[],_,x=l[y].indices,T=0;T<x.length;T++){var M=i.getItemLayout(x[T]),E=M.x,A=M.y0,k=M.y;w.push(E,A),C.push(E,A+k),_=i.getItemVisual(x[T],"style")}var L,I=i.getItemLayout(x[0]),P=n.getModel("label"),F=P.get("margin"),$=n.getModel("emphasis");if(g==="add"){var W=p[y]=new en;L=new tue({shape:{points:w,stackedOnPoints:C,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),W.add(L),s.add(W),n.isAnimationEnabled()&&L.setClipPath(a4t(L.getBoundingRect(),n,function(){L.removeClipPath()}))}else{var W=S[m];L=W.childAt(0),s.add(W),p[y]=W,jn(L,{shape:{points:w,stackedOnPoints:C}},n),xl(L)}Si(L,Ka(n),{labelDataIndex:x[T-1],defaultText:i.getName(x[T-1]),inheritColor:_.fill},{normal:{verticalAlign:"middle"}}),L.setTextConfig({position:null,local:!0});var V=L.getTextContent();V&&(V.x=I.x-F,V.y=I.y0+I.y/2),L.useStyle(_),i.setItemGraphicEl(y,L),bi(L,n),ua(L,$.get("focus"),$.get("blurScope"),$.get("disabled"))}this._layersSeries=l,this._layers=p},e.type="themeRiver",e}(br);function a4t(t,e,n){var r=new $n({shape:{x:t.x-10,y:t.y-10,width:0,height:t.height+20}});return Ur(r,{shape:{x:t.x-50,width:t.width+100,height:t.height+20}},e,n),r}const i4t=r4t;var Ek=2,o4t=function(t){Fe(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.init=function(n){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new yS(Nt(this.getData,this),Nt(this.getRawData,this))},e.prototype.fixData=function(n){var r=n.length,a={},i=xO(n,function(d){return a.hasOwnProperty(d[0]+"")||(a[d[0]+""]=-1),d[2]}),o=[];i.buckets.each(function(d,h){o.push({name:h,dataList:d})});for(var s=o.length,l=0;l<s;++l){for(var u=o[l].name,c=0;c<o[l].dataList.length;++c){var f=o[l].dataList[c][0]+"";a[f]=l}for(var f in a)a.hasOwnProperty(f)&&a[f]!==l&&(a[f]=l,n[r]=[f,0,u],r++)}return n},e.prototype.getInitialData=function(n,r){for(var a=this.getReferringComponents("singleAxis",Ca).models[0],i=a.get("type"),o=or(n.data,function(p){return p[2]!==void 0}),s=this.fixData(o||[]),l=[],u=this.nameMap=Gt(),c=0,f=0;f<s.length;++f)l.push(s[f][Ek]),u.get(s[f][Ek])||(u.set(s[f][Ek],c),c++);var d=G0(s,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:mC(i)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,h=new Oi(d,this);return h.initData(s),h},e.prototype.getLayerSeries=function(){for(var n=this.getData(),r=n.count(),a=[],i=0;i<r;++i)a[i]=i;var o=n.mapDimension("single"),s=xO(a,function(u){return n.get("name",u)}),l=[];return s.buckets.each(function(u,c){u.sort(function(f,d){return n.get(o,f)-n.get(o,d)}),l.push({name:c,indices:u})}),l},e.prototype.getAxisTooltipData=function(n,r,a){st(n)||(n=n?[n]:[]);for(var i=this.getData(),o=this.getLayerSeries(),s=[],l=o.length,u,c=0;c<l;++c){for(var f=Number.MAX_VALUE,d=-1,h=o[c].indices.length,p=0;p<h;++p){var v=i.get(n[0],o[c].indices[p]),g=Math.abs(v-r);g<=f&&(u=v,f=g,d=o[c].indices[p])}s.push(d)}return{dataIndices:s,nestestValue:u}},e.prototype.formatTooltip=function(n,r,a){var i=this.getData(),o=i.getName(n),s=i.get(i.mapDimension("value"),n);return Ya("nameValue",{name:o,value:s})},e.type="series.themeRiver",e.dependencies=["singleAxis"],e.defaultOption={z:2,colorBy:"data",coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",fontSize:11},emphasis:{label:{show:!0}}},e}(Vr);const s4t=o4t;function l4t(t,e){t.eachSeriesByType("themeRiver",function(n){var r=n.getData(),a=n.coordinateSystem,i={},o=a.getRect();i.rect=o;var s=n.get("boundaryGap"),l=a.getAxis();if(i.boundaryGap=s,l.orient==="horizontal"){s[0]=Mt(s[0],o.height),s[1]=Mt(s[1],o.height);var u=o.height-s[0]-s[1];y7(r,n,u)}else{s[0]=Mt(s[0],o.width),s[1]=Mt(s[1],o.width);var c=o.width-s[0]-s[1];y7(r,n,c)}r.setLayout("layoutInfo",i)})}function y7(t,e,n){if(t.count())for(var r=e.coordinateSystem,a=e.getLayerSeries(),i=t.mapDimension("single"),o=t.mapDimension("value"),s=ut(a,function(g){return ut(g.indices,function(y){var m=r.dataToPoint(t.get(i,y));return m[1]=t.get(o,y),m})}),l=u4t(s),u=l.y0,c=n/l.max,f=a.length,d=a[0].indices.length,h,p=0;p<d;++p){h=u[p]*c,t.setItemLayout(a[0].indices[p],{layerIndex:0,x:s[0][p][0],y0:h,y:s[0][p][1]*c});for(var v=1;v<f;++v)h+=s[v-1][p][1]*c,t.setItemLayout(a[v].indices[p],{layerIndex:v,x:s[v][p][0],y0:h,y:s[v][p][1]*c})}}function u4t(t){for(var e=t.length,n=t[0].length,r=[],a=[],i=0,o=0;o<n;++o){for(var s=0,l=0;l<e;++l)s+=t[l][o][1];s>i&&(i=s),r.push(s)}for(var u=0;u<n;++u)a[u]=(i-r[u])/2;i=0;for(var c=0;c<n;++c){var f=r[c]+a[c];f>i&&(i=f)}return{y0:a,max:i}}function c4t(t){t.registerChartView(i4t),t.registerSeriesModel(s4t),t.registerLayout(l4t),t.registerProcessor(gS("themeRiver"))}var f4t=2,d4t=4,h4t=function(t){Fe(e,t);function e(n,r,a,i){var o=t.call(this)||this;o.z2=f4t,o.textConfig={inside:!0},ln(o).seriesIndex=r.seriesIndex;var s=new Bn({z2:d4t,silent:n.getModel().get(["label","silent"])});return o.setTextContent(s),o.updateData(!0,n,r,a,i),o}return e.prototype.updateData=function(n,r,a,i,o){this.node=r,r.piece=this,a=a||this._seriesModel,i=i||this._ecModel;var s=this;ln(s).dataIndex=r.dataIndex;var l=r.getModel(),u=l.getModel("emphasis"),c=r.getLayout(),f=et({},c);f.label=null;var d=r.getVisual("style");d.lineJoin="bevel";var h=r.getVisual("decal");h&&(d.decal=a0(h,o));var p=jh(l.getModel("itemStyle"),f,!0);et(f,p),q(oo,function(m){var S=s.ensureState(m),w=l.getModel([m,"itemStyle"]);S.style=w.getItemStyle();var C=jh(w,f);C&&(S.shape=C)}),n?(s.setShape(f),s.shape.r=c.r0,Ur(s,{shape:{r:c.r}},a,r.dataIndex)):(jn(s,{shape:f},a),xl(s)),s.useStyle(d),this._updateLabel(a);var v=l.getShallow("cursor");v&&s.attr("cursor",v),this._seriesModel=a||this._seriesModel,this._ecModel=i||this._ecModel;var g=u.get("focus"),y=g==="ancestor"?r.getAncestorsIndices():g==="descendant"?r.getDescendantIndices():g;ua(this,y,u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(n){var r=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,p=i.get("minAngle")/180*Math.PI,v=i.get("show")&&!(p!=null&&Math.abs(s)<p);d.ignore=!v,q(q1,function(y){var m=y==="normal"?a.getModel("label"):a.getModel([y,"label"]),S=y==="normal",w=S?d:d.ensureState(y),C=n.getFormattedLabel(h,y);S&&(C=C||r.node.name),w.style=Dr(m,{},null,y!=="normal",!0),C&&(w.style.text=C);var _=m.get("show");_!=null&&!S&&(w.ignore=!_);var x=g(m,"position"),T=S?f:f.states[y],M=T.style.fill;T.textConfig={outsideFill:m.get("color")==="inherit"?M:null,inside:x!=="outside"};var E,A=g(m,"distance")||0,k=g(m,"align");x==="outside"?(E=o.r+A,k=l>Math.PI/2?"right":"left"):!k||k==="center"?(s===2*Math.PI&&o.r0===0?E=0:E=(o.r+o.r0)/2,k="center"):k==="left"?(E=o.r0+A,l>Math.PI/2&&(k="right")):k==="right"&&(E=o.r-A,l>Math.PI/2&&(k="left")),w.style.align=k,w.style.verticalAlign=g(m,"verticalAlign")||"middle",w.x=E*u+o.cx,w.y=E*c+o.cy;var L=g(m,"rotate"),I=0;L==="radial"?(I=ul(-l),I>Math.PI/2&&I<Math.PI*1.5&&(I+=Math.PI)):L==="tangential"?(I=Math.PI/2-l,I>Math.PI/2?I-=Math.PI:I<-Math.PI/2&&(I+=Math.PI)):Un(L)&&(I=L*Math.PI/180),w.rotation=ul(I)});function g(y,m){var S=y.get(m);return S??i.get(m)}d.dirtyStyle()},e}(so);const m7=h4t;var w3="sunburstRootToNode",b7="sunburstHighlight",p4t="sunburstUnhighlight";function v4t(t){t.registerAction({type:w3,update:"updateView"},function(e,n){n.eachComponent({mainType:"series",subType:"sunburst",query:e},r);function r(a,i){var o=cb(e,[w3],a);if(o){var s=a.getViewRoot();s&&(e.direction=DB(s,o.node)?"rollUp":"drillDown"),a.resetViewRoot(o.node)}}}),t.registerAction({type:b7,update:"none"},function(e,n,r){e=et({},e),n.eachComponent({mainType:"series",subType:"sunburst",query:e},a);function a(i){var o=cb(e,[b7],i);o&&(e.dataIndex=o.node.dataIndex)}r.dispatchAction(et(e,{type:"highlight"}))}),t.registerAction({type:p4t,update:"updateView"},function(e,n,r){e=et({},e),r.dispatchAction(et(e,{type:"downplay"}))})}var g4t=function(t){Fe(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.render=function(n,r,a,i){var o=this;this.seriesModel=n,this.api=a,this.ecModel=r;var s=n.getData(),l=s.tree.root,u=n.getViewRoot(),c=this.group,f=n.get("renderLabelForZeroData"),d=[];u.eachNode(function(m){d.push(m)});var h=this._oldChildren||[];p(d,h),y(l,u),this._initEvents(),this._oldChildren=d;function p(m,S){if(m.length===0&&S.length===0)return;new pc(S,m,w,w).add(C).update(C).remove(sn(C,null)).execute();function w(_){return _.getId()}function C(_,x){var T=_==null?null:m[_],M=x==null?null:S[x];v(T,M)}}function v(m,S){if(!f&&m&&!m.getValue()&&(m=null),m!==l&&S!==l){if(S&&S.piece)m?(S.piece.updateData(!1,m,n,r,a),s.setItemGraphicEl(m.dataIndex,S.piece)):g(S);else if(m){var w=new m7(m,n,r,a);c.add(w),s.setItemGraphicEl(m.dataIndex,w)}}}function g(m){m&&m.piece&&(c.remove(m.piece),m.piece=null)}function y(m,S){S.depth>0?(o.virtualPiece?o.virtualPiece.updateData(!1,m,n,r,a):(o.virtualPiece=new m7(m,n,r,a),c.add(o.virtualPiece)),S.piece.off("click"),o.virtualPiece.on("click",function(w){o._rootToNode(S.parentNode)})):o.virtualPiece&&(c.remove(o.virtualPiece),o.virtualPiece=null)}},e.prototype._initEvents=function(){var n=this;this.group.off("click"),this.group.on("click",function(r){var a=!1,i=n.seriesModel.getViewRoot();i.eachNode(function(o){if(!a&&o.piece&&o.piece===r.target){var s=o.getModel().get("nodeClick");if(s==="rootToNode")n._rootToNode(o);else if(s==="link"){var l=o.getModel(),u=l.get("link");if(u){var c=l.get("target",!0)||"_blank";lC(u,c)}}a=!0}})})},e.prototype._rootToNode=function(n){n!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:w3,from:this.uid,seriesId:this.seriesModel.id,targetNode:n})},e.prototype.containPoint=function(n,r){var a=r.getData(),i=a.getItemLayout(0);if(i){var o=n[0]-i.cx,s=n[1]-i.cy,l=Math.sqrt(o*o+s*s);return l<=i.r&&l>=i.r0}},e.type="sunburst",e}(br);const y4t=g4t;var m4t=function(t){Fe(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.ignoreStyleOnData=!0,n}return e.prototype.getInitialData=function(n,r){var a={name:n.name,children:n.data};Lce(a);var i=this._levelModels=ut(n.levels||[],function(l){return new yr(l,this,r)},this),o=MB.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},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.getDataParams=function(n){var r=t.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(n);return r.treePathInfo=BE(a,this),r},e.prototype.getLevelModel=function(n){return this._levelModels&&this._levelModels[n.depth]},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(n){n?this._viewRoot=n:n=this._viewRoot;var r=this.getRawData().tree.root;(!n||n!==r&&!r.contains(n))&&(this._viewRoot=r)},e.prototype.enableAriaDecal=function(){Iue(this)},e.type="series.sunburst",e.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"},e}(Vr);function Lce(t){var e=0;q(t.children,function(r){Lce(r);var a=r.value;st(a)&&(a=a[0]),e+=a});var n=t.value;st(n)&&(n=n[0]),(n==null||isNaN(n))&&(n=e),n<0&&(n=0),st(t.value)?t.value[0]=n:t.value=n}const b4t=m4t;var S7=Math.PI/180;function S4t(t,e,n){e.eachSeriesByType(t,function(r){var a=r.get("center"),i=r.get("radius");st(i)||(i=[0,i]),st(a)||(a=[a,a]);var o=n.getWidth(),s=n.getHeight(),l=Math.min(o,s),u=Mt(a[0],o),c=Mt(a[1],s),f=Mt(i[0],l/2),d=Mt(i[1],l/2),h=-r.get("startAngle")*S7,p=r.get("minAngle")*S7,v=r.getData().tree.root,g=r.getViewRoot(),y=g.depth,m=r.get("sort");m!=null&&Oce(g,m);var S=0;q(g.children,function(F){!isNaN(F.getValue())&&S++});var w=g.getValue(),C=Math.PI/(w||S)*2,_=g.depth>0,x=g.height-(_?-1:1),T=(d-f)/(x||1),M=r.get("clockwise"),E=r.get("stillShowZeroSum"),A=M?1:-1,k=function(F,$){if(F){var W=$;if(F!==v){var V=F.getValue(),z=w===0&&E?C:V*C;z<p&&(z=p),W=$+A*z;var K=F.depth-y-(_?-1:1),Z=f+T*K,oe=f+T*(K+1),ge=r.getLevelModel(F);if(ge){var ie=ge.get("r0",!0),Q=ge.get("r",!0),ce=ge.get("radius",!0);ce!=null&&(ie=ce[0],Q=ce[1]),ie!=null&&(Z=Mt(ie,l/2)),Q!=null&&(oe=Mt(Q,l/2))}F.setLayout({angle:z,startAngle:$,endAngle:W,clockwise:M,cx:u,cy:c,r0:Z,r:oe})}if(F.children&&F.children.length){var se=0;q(F.children,function(me){se+=k(me,$+se)})}return W-$}};if(_){var L=f,I=f+T,P=Math.PI*2;v.setLayout({angle:P,startAngle:h,endAngle:h+P,clockwise:M,cx:u,cy:c,r0:L,r:I})}k(g,h)})}function Oce(t,e){var n=t.children||[];t.children=w4t(n,e),n.length&&q(t.children,function(r){Oce(r,e)})}function w4t(t,e){if(jt(e)){var n=ut(t,function(a,i){var o=a.getValue();return{params:{depth:a.depth,height:a.height,dataIndex:a.dataIndex,getValue:function(){return o}},index:i}});return n.sort(function(a,i){return e(a.params,i.params)}),ut(n,function(a){return t[a.index]})}else{var r=e==="asc";return t.sort(function(a,i){var o=(a.getValue()-i.getValue())*(r?1:-1);return o===0?(a.dataIndex-i.dataIndex)*(r?-1:1):o})}}function x4t(t){var e={};function n(r,a,i){for(var o=r;o&&o.depth>1;)o=o.parentNode;var s=a.getColorFromPalette(o.name||o.dataIndex+"",e);return r.depth>1&&Ot(s)&&(s=Z2(s,(r.depth-1)/(i-1)*.5)),s}t.eachSeriesByType("sunburst",function(r){var a=r.getData(),i=a.tree;i.eachNode(function(o){var s=o.getModel(),l=s.getModel("itemStyle").getItemStyle();l.fill||(l.fill=n(o,r,i.root.height));var u=a.ensureUniqueItemVisual(o.dataIndex,"style");et(u,l)})})}function _4t(t){t.registerChartView(y4t),t.registerSeriesModel(b4t),t.registerLayout(sn(S4t,"sunburst")),t.registerProcessor(sn(gS,"sunburst")),t.registerVisual(x4t),v4t(t)}var w7={color:"fill",borderColor:"stroke"},C4t={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},nc=Gn(),T4t=function(t){Fe(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},e.prototype.getInitialData=function(n,r){return Tu(null,this)},e.prototype.getDataParams=function(n,r,a){var i=t.prototype.getDataParams.call(this,n,r);return a&&(i.info=nc(a).info),i},e.type="series.custom",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},e}(Vr);const E4t=T4t;function M4t(t,e){return e=e||[0,0],ut(["x","y"],function(n,r){var a=this.getAxis(n),i=e[r],o=t[r]/2;return a.type==="category"?a.getBandWidth():Math.abs(a.dataToCoord(i-o)-a.dataToCoord(i+o))},this)}function D4t(t){var e=t.master.getRect();return{coordSys:{type:"cartesian2d",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(n){return t.dataToPoint(n)},size:Nt(M4t,t)}}}function A4t(t,e){return e=e||[0,0],ut([0,1],function(n){var r=e[n],a=t[n]/2,i=[],o=[];return i[n]=r-a,o[n]=r+a,i[1-n]=o[1-n]=e[1-n],Math.abs(this.dataToPoint(i)[n]-this.dataToPoint(o)[n])},this)}function k4t(t){var e=t.getBoundingRect();return{coordSys:{type:"geo",x:e.x,y:e.y,width:e.width,height:e.height,zoom:t.getZoom()},api:{coord:function(n){return t.dataToPoint(n)},size:Nt(A4t,t)}}}function R4t(t,e){var n=this.getAxis(),r=e instanceof Array?e[0]:e,a=(t instanceof Array?t[0]:t)/2;return n.type==="category"?n.getBandWidth():Math.abs(n.dataToCoord(r-a)-n.dataToCoord(r+a))}function L4t(t){var e=t.getRect();return{coordSys:{type:"singleAxis",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(n){return t.dataToPoint(n)},size:Nt(R4t,t)}}}function O4t(t,e){return e=e||[0,0],ut(["Radius","Angle"],function(n,r){var a="get"+n+"Axis",i=this[a](),o=e[r],s=t[r]/2,l=i.type==="category"?i.getBandWidth():Math.abs(i.dataToCoord(o-s)-i.dataToCoord(o+s));return n==="Angle"&&(l=l*Math.PI/180),l},this)}function V4t(t){var e=t.getRadiusAxis(),n=t.getAngleAxis(),r=e.getExtent();return r[0]>r[1]&&r.reverse(),{coordSys:{type:"polar",cx:t.cx,cy:t.cy,r:r[1],r0:r[0]},api:{coord:function(a){var i=e.dataToRadius(a[0]),o=n.dataToAngle(a[1]),s=t.coordToPoint([i,o]);return s.push(i,o*Math.PI/180),s},size:Nt(O4t,t)}}}function N4t(t){var e=t.getRect(),n=t.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:t.getCellWidth(),cellHeight:t.getCellHeight(),rangeInfo:{start:n.start,end:n.end,weeks:n.weeks,dayCount:n.allDay}},api:{coord:function(r,a){return t.dataToPoint(r,a)}}}}function Vce(t,e,n,r){return t&&(t.legacy||t.legacy!==!1&&!n&&!r&&e!=="tspan"&&(e==="text"||Bt(t,"text")))}function Nce(t,e,n){var r=t,a,i,o;if(e==="text")o=r;else{o={},Bt(r,"text")&&(o.text=r.text),Bt(r,"rich")&&(o.rich=r.rich),Bt(r,"textFill")&&(o.fill=r.textFill),Bt(r,"textStroke")&&(o.stroke=r.textStroke),Bt(r,"fontFamily")&&(o.fontFamily=r.fontFamily),Bt(r,"fontSize")&&(o.fontSize=r.fontSize),Bt(r,"fontStyle")&&(o.fontStyle=r.fontStyle),Bt(r,"fontWeight")&&(o.fontWeight=r.fontWeight),i={type:"text",style:o,silent:!0},a={};var s=Bt(r,"textPosition");n?a.position=s?r.textPosition:"inside":s&&(a.position=r.textPosition),Bt(r,"textPosition")&&(a.position=r.textPosition),Bt(r,"textOffset")&&(a.offset=r.textOffset),Bt(r,"textRotation")&&(a.rotation=r.textRotation),Bt(r,"textDistance")&&(a.distance=r.textDistance)}return x7(o,t),q(o.rich,function(l){x7(l,l)}),{textConfig:a,textContent:i}}function x7(t,e){e&&(e.font=e.textFont||e.font,Bt(e,"textStrokeWidth")&&(t.lineWidth=e.textStrokeWidth),Bt(e,"textAlign")&&(t.align=e.textAlign),Bt(e,"textVerticalAlign")&&(t.verticalAlign=e.textVerticalAlign),Bt(e,"textLineHeight")&&(t.lineHeight=e.textLineHeight),Bt(e,"textWidth")&&(t.width=e.textWidth),Bt(e,"textHeight")&&(t.height=e.textHeight),Bt(e,"textBackgroundColor")&&(t.backgroundColor=e.textBackgroundColor),Bt(e,"textPadding")&&(t.padding=e.textPadding),Bt(e,"textBorderColor")&&(t.borderColor=e.textBorderColor),Bt(e,"textBorderWidth")&&(t.borderWidth=e.textBorderWidth),Bt(e,"textBorderRadius")&&(t.borderRadius=e.textBorderRadius),Bt(e,"textBoxShadowColor")&&(t.shadowColor=e.textBoxShadowColor),Bt(e,"textBoxShadowBlur")&&(t.shadowBlur=e.textBoxShadowBlur),Bt(e,"textBoxShadowOffsetX")&&(t.shadowOffsetX=e.textBoxShadowOffsetX),Bt(e,"textBoxShadowOffsetY")&&(t.shadowOffsetY=e.textBoxShadowOffsetY))}function _7(t,e,n){var r=t;r.textPosition=r.textPosition||n.position||"inside",n.offset!=null&&(r.textOffset=n.offset),n.rotation!=null&&(r.textRotation=n.rotation),n.distance!=null&&(r.textDistance=n.distance);var a=r.textPosition.indexOf("inside")>=0,i=t.fill||"#000";C7(r,e);var o=r.textFill==null;return a?o&&(r.textFill=n.insideFill||"#fff",!r.textStroke&&n.insideStroke&&(r.textStroke=n.insideStroke),!r.textStroke&&(r.textStroke=i),r.textStrokeWidth==null&&(r.textStrokeWidth=2)):(o&&(r.textFill=t.fill||n.outsideFill||"#000"),!r.textStroke&&n.outsideStroke&&(r.textStroke=n.outsideStroke)),r.text=e.text,r.rich=e.rich,q(e.rich,function(s){C7(s,s)}),r}function C7(t,e){e&&(Bt(e,"fill")&&(t.textFill=e.fill),Bt(e,"stroke")&&(t.textStroke=e.fill),Bt(e,"lineWidth")&&(t.textStrokeWidth=e.lineWidth),Bt(e,"font")&&(t.font=e.font),Bt(e,"fontStyle")&&(t.fontStyle=e.fontStyle),Bt(e,"fontWeight")&&(t.fontWeight=e.fontWeight),Bt(e,"fontSize")&&(t.fontSize=e.fontSize),Bt(e,"fontFamily")&&(t.fontFamily=e.fontFamily),Bt(e,"align")&&(t.textAlign=e.align),Bt(e,"verticalAlign")&&(t.textVerticalAlign=e.verticalAlign),Bt(e,"lineHeight")&&(t.textLineHeight=e.lineHeight),Bt(e,"width")&&(t.textWidth=e.width),Bt(e,"height")&&(t.textHeight=e.height),Bt(e,"backgroundColor")&&(t.textBackgroundColor=e.backgroundColor),Bt(e,"padding")&&(t.textPadding=e.padding),Bt(e,"borderColor")&&(t.textBorderColor=e.borderColor),Bt(e,"borderWidth")&&(t.textBorderWidth=e.borderWidth),Bt(e,"borderRadius")&&(t.textBorderRadius=e.borderRadius),Bt(e,"shadowColor")&&(t.textBoxShadowColor=e.shadowColor),Bt(e,"shadowBlur")&&(t.textBoxShadowBlur=e.shadowBlur),Bt(e,"shadowOffsetX")&&(t.textBoxShadowOffsetX=e.shadowOffsetX),Bt(e,"shadowOffsetY")&&(t.textBoxShadowOffsetY=e.shadowOffsetY),Bt(e,"textShadowColor")&&(t.textShadowColor=e.textShadowColor),Bt(e,"textShadowBlur")&&(t.textShadowBlur=e.textShadowBlur),Bt(e,"textShadowOffsetX")&&(t.textShadowOffsetX=e.textShadowOffsetX),Bt(e,"textShadowOffsetY")&&(t.textShadowOffsetY=e.textShadowOffsetY))}var Ice={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},T7=Dn(Ice);Ds(gu,function(t,e){return t[e]=1,t},{});gu.join(", ");var RC=["","style","shape","extra"],l0=Gn();function HB(t,e,n,r,a){var i=t+"Animation",o=R0(t,r,a)||{},s=l0(e).userDuring;return o.duration>0&&(o.during=s?Nt(F4t,{el:e,userDuring:s}):null,o.setToFinal=!0,o.scope=t),et(o,n[i]),o}function G_(t,e,n,r){r=r||{};var a=r.dataIndex,i=r.isInit,o=r.clearStyle,s=n.isAnimationEnabled(),l=l0(t),u=e.style;l.userDuring=e.during;var c={},f={};if(U4t(t,e,f),M7("shape",e,f),M7("extra",e,f),!i&&s&&(z4t(t,e,c),E7("shape",t,e,c),E7("extra",t,e,c),G4t(t,e,u,c)),f.style=u,I4t(t,f,o),$4t(t,e),s)if(i){var d={};q(RC,function(p){var v=p?e[p]:e;v&&v.enterFrom&&(p&&(d[p]=d[p]||{}),et(p?d[p]:d,v.enterFrom))});var h=HB("enter",t,e,n,a);h.duration>0&&t.animateFrom(d,h)}else B4t(t,e,a||0,n,c);Bce(t,e),u?t.dirty():t.markRedraw()}function Bce(t,e){for(var n=l0(t).leaveToProps,r=0;r<RC.length;r++){var a=RC[r],i=a?e[a]:e;i&&i.leaveTo&&(n||(n=l0(t).leaveToProps={}),a&&(n[a]=n[a]||{}),et(a?n[a]:n,i.leaveTo))}}function FE(t,e,n,r){if(t){var a=t.parent,i=l0(t).leaveToProps;if(i){var o=HB("update",t,e,n,0);o.done=function(){a.remove(t),r&&r()},t.animateTo(i,o)}else a.remove(t),r&&r()}}function cp(t){return t==="all"}function I4t(t,e,n){var r=e.style;if(!t.isGroup&&r){if(n){t.useStyle({});for(var a=t.animators,i=0;i<a.length;i++){var o=a[i];o.targetName==="style"&&o.changeTarget(t.style)}}t.setStyle(r)}e&&(e.style=null,e&&t.attr(e),e.style=r)}function B4t(t,e,n,r,a){if(a){var i=HB("update",t,e,r,n);i.duration>0&&t.animateFrom(a,i)}}function $4t(t,e){Bt(e,"silent")&&(t.silent=e.silent),Bt(e,"ignore")&&(t.ignore=e.ignore),t instanceof As&&Bt(e,"invisible")&&(t.invisible=e.invisible),t instanceof Cn&&Bt(e,"autoBatch")&&(t.autoBatch=e.autoBatch)}var Ul={},P4t={setTransform:function(t,e){return Ul.el[t]=e,this},getTransform:function(t){return Ul.el[t]},setShape:function(t,e){var n=Ul.el,r=n.shape||(n.shape={});return r[t]=e,n.dirtyShape&&n.dirtyShape(),this},getShape:function(t){var e=Ul.el.shape;if(e)return e[t]},setStyle:function(t,e){var n=Ul.el,r=n.style;return r&&(r[t]=e,n.dirtyStyle&&n.dirtyStyle()),this},getStyle:function(t){var e=Ul.el.style;if(e)return e[t]},setExtra:function(t,e){var n=Ul.el.extra||(Ul.el.extra={});return n[t]=e,this},getExtra:function(t){var e=Ul.el.extra;if(e)return e[t]}};function F4t(){var t=this,e=t.el;if(e){var n=l0(e).userDuring,r=t.userDuring;if(n!==r){t.el=t.userDuring=null;return}Ul.el=e,r(P4t)}}function E7(t,e,n,r){var a=n[t];if(a){var i=e[t],o;if(i){var s=n.transition,l=a.transition;if(l)if(!o&&(o=r[t]={}),cp(l))et(o,i);else for(var u=mr(l),c=0;c<u.length;c++){var f=u[c],d=i[f];o[f]=d}else if(cp(s)||bn(s,t)>=0){!o&&(o=r[t]={});for(var h=Dn(i),c=0;c<h.length;c++){var f=h[c],d=i[f];H4t(a[f],d)&&(o[f]=d)}}}}}function M7(t,e,n){var r=e[t];if(r)for(var a=n[t]={},i=Dn(r),o=0;o<i.length;o++){var s=i[o];a[s]=$m(r[s])}}function z4t(t,e,n){for(var r=e.transition,a=cp(r)?gu:mr(r||[]),i=0;i<a.length;i++){var o=a[i];if(!(o==="style"||o==="shape"||o==="extra")){var s=t[o];n[o]=s}}}function U4t(t,e,n){for(var r=0;r<T7.length;r++){var a=T7[r],i=Ice[a],o=e[a];o&&(n[i[0]]=o[0],n[i[1]]=o[1])}for(var r=0;r<gu.length;r++){var s=gu[r];e[s]!=null&&(n[s]=e[s])}}function G4t(t,e,n,r){if(n){var a=t.style,i;if(a){var o=n.transition,s=e.transition;if(o&&!cp(o)){var l=mr(o);!i&&(i=r.style={});for(var u=0;u<l.length;u++){var c=l[u],f=a[c];i[c]=f}}else if(t.getAnimationStyleProps&&(cp(s)||cp(o)||bn(s,"style")>=0)){var d=t.getAnimationStyleProps(),h=d?d.style:null;if(h){!i&&(i=r.style={});for(var p=Dn(n),u=0;u<p.length;u++){var c=p[u];if(h[c]){var f=a[c];i[c]=f}}}}}}}function H4t(t,e){return mi(t)?t!==e:t!=null&&isFinite(t)}var $ce=Gn(),W4t=["percent","easing","shape","style","extra"];function Pce(t){t.stopAnimation("keyframe"),t.attr($ce(t))}function LC(t,e,n){if(!(!n.isAnimationEnabled()||!e)){if(st(e)){q(e,function(s){LC(t,s,n)});return}var r=e.keyframes,a=e.duration;if(n&&a==null){var i=R0("enter",n,0);a=i&&i.duration}if(!(!r||!a)){var o=$ce(t);q(RC,function(s){if(!(s&&!t[s])){var l;r.sort(function(u,c){return u.percent-c.percent}),q(r,function(u){var c=t.animators,f=s?u[s]:u;if(f){var d=Dn(f);if(s||(d=or(d,function(v){return bn(W4t,v)<0})),!!d.length){l||(l=t.animate(s,e.loop,!0),l.scope="keyframe");for(var h=0;h<c.length;h++)c[h]!==l&&c[h].targetName===l.targetName&&c[h].stopTracks(d);s&&(o[s]=o[s]||{});var p=s?o[s]:o;q(d,function(v){p[v]=((s?t[s]:t)||{})[v]}),l.whenWithKeys(a*u.percent,f,d,u.easing)}}}),l&&l.delay(e.delay||0).duration(a).start(e.easing)}})}}}var rc="emphasis",Tf="normal",WB="blur",jB="select",ed=[Tf,rc,WB,jB],Mk={normal:["itemStyle"],emphasis:[rc,"itemStyle"],blur:[WB,"itemStyle"],select:[jB,"itemStyle"]},Dk={normal:["label"],emphasis:[rc,"label"],blur:[WB,"label"],select:[jB,"label"]},j4t=["x","y"],K4t="e\0\0",ts={normal:{},emphasis:{},blur:{},select:{}},Y4t={cartesian2d:D4t,geo:k4t,single:L4t,polar:V4t,calendar:N4t};function x3(t){return t instanceof Cn}function _3(t){return t instanceof As}function X4t(t,e){e.copyTransform(t),_3(e)&&_3(t)&&(e.setStyle(t.style),e.z=t.z,e.z2=t.z2,e.zlevel=t.zlevel,e.invisible=t.invisible,e.ignore=t.ignore,x3(e)&&x3(t)&&e.setShape(t.shape))}var q4t=function(t){Fe(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.render=function(n,r,a,i){this._progressiveEls=null;var o=this._data,s=n.getData(),l=this.group,u=D7(n,s,r,a);o||l.removeAll(),s.diff(o).add(function(f){Ak(a,null,f,u(f,i),n,l,s)}).remove(function(f){var d=o.getItemGraphicEl(f);d&&FE(d,nc(d).option,n)}).update(function(f,d){var h=o.getItemGraphicEl(d);Ak(a,h,f,u(f,i),n,l,s)}).execute();var c=n.get("clip",!0)?VE(n.coordinateSystem,!1,n):null;c?l.setClipPath(c):l.removeClipPath(),this._data=s},e.prototype.incrementalPrepareRender=function(n,r,a){this.group.removeAll(),this._data=null},e.prototype.incrementalRender=function(n,r,a,i,o){var s=r.getData(),l=D7(r,s,a,i),u=this._progressiveEls=[];function c(h){h.isGroup||(h.incremental=!0,h.ensureState("emphasis").hoverLayer=!0)}for(var f=n.start;f<n.end;f++){var d=Ak(null,null,f,l(f,o),r,this.group,s);d&&(d.traverse(c),u.push(d))}},e.prototype.eachRendered=function(n){dd(this._progressiveEls||this.group,n)},e.prototype.filterForExposedEvent=function(n,r,a,i){var o=r.element;if(o==null||a.name===o)return!0;for(;(a=a.__hostTarget||a.parent)&&a!==this.group;)if(a.name===o)return!0;return!1},e.type="custom",e}(br);const Z4t=q4t;function KB(t){var e=t.type,n;if(e==="path"){var r=t.shape,a=r.width!=null&&r.height!=null?{x:r.x||0,y:r.y||0,width:r.width,height:r.height}:null,i=Uce(r);n=oS(i,null,a,r.layout||"center"),nc(n).customPathData=i}else if(e==="image")n=new si({}),nc(n).customImagePath=t.style.image;else if(e==="text")n=new Bn({});else if(e==="group")n=new en;else{if(e==="compoundPath")throw new Error('"compoundPath" is not supported yet.');var o=gE(e);if(!o){var s="";tr(s)}n=new o}return nc(n).customGraphicType=e,n.name=t.name,n.z2EmphasisLift=1,n.z2SelectLift=1,n}function YB(t,e,n,r,a,i,o){Pce(e);var s=a&&a.normal.cfg;s&&e.setTextConfig(s),r&&r.transition==null&&(r.transition=j4t);var l=r&&r.style;if(l){if(e.type==="text"){var u=l;Bt(u,"textFill")&&(u.fill=u.textFill),Bt(u,"textStroke")&&(u.stroke=u.textStroke)}var c=void 0,f=x3(e)?l.decal:null;t&&f&&(f.dirty=!0,c=a0(f,t)),l.__decalPattern=c}if(_3(e)&&l){var c=l.__decalPattern;c&&(l.decal=c)}G_(e,r,i,{dataIndex:n,isInit:o,clearStyle:!0}),LC(e,r.keyframeAnimation,i)}function Fce(t,e,n,r,a){var i=e.isGroup?null:e,o=a&&a[t].cfg;if(i){var s=i.ensureState(t);if(r===!1){var l=i.getState(t);l&&(l.style=null)}else s.style=r||null;o&&(s.textConfig=o),_p(i)}}function Q4t(t,e,n){if(!t.isGroup){var r=t,a=n.currentZ,i=n.currentZLevel;r.z=a,r.zlevel=i;var o=e.z2;o!=null&&(r.z2=o||0);for(var s=0;s<ed.length;s++)J4t(r,e,ed[s])}}function J4t(t,e,n){var r=n===Tf,a=r?e:OC(e,n),i=a?a.z2:null,o;i!=null&&(o=r?t:t.ensureState(n),o.z2=i||0)}function D7(t,e,n,r){var a=t.get("renderItem"),i=t.coordinateSystem,o={};i&&(o=i.prepareCustoms?i.prepareCustoms(i):Y4t[i.type](i));for(var s=Xt({getWidth:r.getWidth,getHeight:r.getHeight,getZr:r.getZr,getDevicePixelRatio:r.getDevicePixelRatio,value:w,style:_,ordinalRawValue:C,styleEmphasis:x,visual:E,barLayout:A,currentSeriesIndices:k,font:L},o.api||{}),l={context:{},seriesId:t.id,seriesName:t.name,seriesIndex:t.seriesIndex,coordSys:o.coordSys,dataInsideLength:e.count(),encode:eVt(t.getData())},u,c,f={},d={},h={},p={},v=0;v<ed.length;v++){var g=ed[v];h[g]=t.getModel(Mk[g]),p[g]=t.getModel(Dk[g])}function y(I){return I===u?c||(c=e.getItemModel(I)):e.getItemModel(I)}function m(I,P){return e.hasItemOption?I===u?f[P]||(f[P]=y(I).getModel(Mk[P])):y(I).getModel(Mk[P]):h[P]}function S(I,P){return e.hasItemOption?I===u?d[P]||(d[P]=y(I).getModel(Dk[P])):y(I).getModel(Dk[P]):p[P]}return function(I,P){return u=I,c=null,f={},d={},a&&a(Xt({dataIndexInside:I,dataIndex:e.getRawIndex(I),actionType:P?P.type:null},l),s)};function w(I,P){return P==null&&(P=u),e.getStore().get(e.getDimensionIndex(I||0),P)}function C(I,P){P==null&&(P=u),I=I||0;var F=e.getDimensionInfo(I);if(!F){var $=e.getDimensionIndex(I);return $>=0?e.getStore().get($,P):void 0}var W=e.get(F.name,P),V=F&&F.ordinalMeta;return V?V.categories[W]:W}function _(I,P){P==null&&(P=u);var F=e.getItemVisual(P,"style"),$=F&&F.fill,W=F&&F.opacity,V=m(P,Tf).getItemStyle();$!=null&&(V.fill=$),W!=null&&(V.opacity=W);var z={inheritColor:Ot($)?$:"#000"},K=S(P,Tf),Z=Dr(K,null,z,!1,!0);Z.text=K.getShallow("show")?gn(t.getFormattedLabel(P,Tf),i0(e,P)):null;var oe=oC(K,z,!1);return M(I,V),V=_7(V,Z,oe),I&&T(V,I),V.legacy=!0,V}function x(I,P){P==null&&(P=u);var F=m(P,rc).getItemStyle(),$=S(P,rc),W=Dr($,null,null,!0,!0);W.text=$.getShallow("show")?hl(t.getFormattedLabel(P,rc),t.getFormattedLabel(P,Tf),i0(e,P)):null;var V=oC($,null,!0);return M(I,F),F=_7(F,W,V),I&&T(F,I),F.legacy=!0,F}function T(I,P){for(var F in P)Bt(P,F)&&(I[F]=P[F])}function M(I,P){I&&(I.textFill&&(P.textFill=I.textFill),I.textPosition&&(P.textPosition=I.textPosition))}function E(I,P){if(P==null&&(P=u),Bt(w7,I)){var F=e.getItemVisual(P,"style");return F?F[w7[I]]:null}if(Bt(C4t,I))return e.getItemVisual(P,I)}function A(I){if(i.type==="cartesian2d"){var P=i.getBaseAxis();return UCt(Xt({axis:P},I))}}function k(){return n.getCurrentSeriesIndices()}function L(I){return Soe(I,n)}}function eVt(t){var e={};return q(t.dimensions,function(n){var r=t.getDimensionInfo(n);if(!r.isExtraCoord){var a=r.coordDim,i=e[a]=e[a]||[];i[r.coordDimIndex]=t.getDimensionIndex(n)}}),e}function Ak(t,e,n,r,a,i,o){if(!r){i.remove(e);return}var s=XB(t,e,n,r,a,i);return s&&o.setItemGraphicEl(n,s),s&&ua(s,r.focus,r.blurScope,r.emphasisDisabled),s}function XB(t,e,n,r,a,i){var o=-1,s=e;e&&zce(e,r,a)&&(o=bn(i.childrenRef(),e),e=null);var l=!e,u=e;u?u.clearStates():(u=KB(r),s&&X4t(s,u)),r.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),ts.normal.cfg=ts.normal.conOpt=ts.emphasis.cfg=ts.emphasis.conOpt=ts.blur.cfg=ts.blur.conOpt=ts.select.cfg=ts.select.conOpt=null,ts.isLegacy=!1,nVt(u,n,r,a,l,ts),tVt(u,n,r,a,l),YB(t,u,n,r,ts,a,l),Bt(r,"info")&&(nc(u).info=r.info);for(var c=0;c<ed.length;c++){var f=ed[c];if(f!==Tf){var d=OC(r,f),h=qB(r,d,f);Fce(f,u,d,h,ts)}}return Q4t(u,r,a),r.type==="group"&&rVt(t,u,n,r,a),o>=0?i.replaceAt(u,o):i.add(u),u}function zce(t,e,n){var r=nc(t),a=e.type,i=e.shape,o=e.style;return n.isUniversalTransitionEnabled()||a!=null&&a!==r.customGraphicType||a==="path"&&sVt(i)&&Uce(i)!==r.customPathData||a==="image"&&Bt(o,"image")&&o.image!==r.customImagePath}function tVt(t,e,n,r,a){var i=n.clipPath;if(i===!1)t&&t.getClipPath()&&t.removeClipPath();else if(i){var o=t.getClipPath();o&&zce(o,i,r)&&(o=null),o||(o=KB(i),t.setClipPath(o)),YB(null,o,e,i,null,r,a)}}function nVt(t,e,n,r,a,i){if(!t.isGroup){A7(n,null,i),A7(n,rc,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=t.getTextContent();if(o===!1)c&&t.removeTextContent();else{o=i.normal.conOpt=o||{type:"text"},c?c.clearStates():(c=KB(o),t.setTextContent(c)),YB(null,c,e,o,null,r,a);for(var f=o&&o.style,d=0;d<ed.length;d++){var h=ed[d];if(h!==Tf){var p=i[h].conOpt;Fce(h,c,p,qB(o,p,h),null)}}f?c.dirty():c.markRedraw()}}}}function A7(t,e,n){var r=e?OC(t,e):t,a=e?qB(t,r,rc):t.style,i=t.type,o=r?r.textConfig:null,s=t.textContent,l=s?e?OC(s,e):s:null;if(a&&(n.isLegacy||Vce(a,i,!!o,!!l))){n.isLegacy=!0;var u=Nce(a,i,!e);!o&&u.textConfig&&(o=u.textConfig),!l&&u.textContent&&(l=u.textContent)}if(!e&&l){var c=l;!c.type&&(c.type="text")}var f=e?n[e]:n.normal;f.cfg=o,f.conOpt=l}function OC(t,e){return e?t?t[e]:null:t}function qB(t,e,n){var r=e&&e.style;return r==null&&n===rc&&t&&(r=t.styleEmphasis),r}function rVt(t,e,n,r,a){var i=r.children,o=i?i.length:0,s=r.$mergeChildren,l=s==="byName"||r.diffChildrenByName,u=s===!1;if(!(!o&&!l&&!u)){if(l){iVt({api:t,oldChildren:e.children()||[],newChildren:i||[],dataIndex:n,seriesModel:a,group:e});return}u&&e.removeAll();for(var c=0;c<o;c++){var f=i[c],d=e.childAt(c);f?(f.ignore==null&&(f.ignore=!1),XB(t,d,n,f,a,e)):d.ignore=!0}for(var h=e.childCount()-1;h>=c;h--){var p=e.childAt(h);aVt(e,p,a)}}}function aVt(t,e,n){e&&FE(e,nc(t).option,n)}function iVt(t){new pc(t.oldChildren,t.newChildren,k7,k7,t).add(R7).update(R7).remove(oVt).execute()}function k7(t,e){var n=t&&t.name;return n??K4t+e}function R7(t,e){var n=this.context,r=t!=null?n.newChildren[t]:null,a=e!=null?n.oldChildren[e]:null;XB(n.api,a,n.dataIndex,r,n.seriesModel,n.group)}function oVt(t){var e=this.context,n=e.oldChildren[t];n&&FE(n,nc(n).option,e.seriesModel)}function Uce(t){return t&&(t.pathData||t.d)}function sVt(t){return t&&(Bt(t,"pathData")||Bt(t,"d"))}function lVt(t){t.registerChartView(Z4t),t.registerSeriesModel(E4t)}var Mh=Gn(),L7=Zt,kk=Nt,uVt=function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(e,n,r,a){var i=n.get("value"),o=n.get("status");if(this._axisModel=e,this._axisPointerModel=n,this._api=r,!(!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,e,n,r);var c=u.graphicKey;c!==this._lastGraphicKey&&this.clear(r),this._lastGraphicKey=c;var f=this._moveAnimation=this.determineAnimation(e,n);if(!s)s=this._group=new en,this.createPointerEl(s,u,e,n),this.createLabelEl(s,u,e,n),r.getZr().add(s);else{var d=sn(O7,n,f);this.updatePointerEl(s,u,d),this.updateLabelEl(s,u,d,n)}N7(s,n,!0),this._renderHandle(i)}},t.prototype.remove=function(e){this.clear(e)},t.prototype.dispose=function(e){this.clear(e)},t.prototype.determineAnimation=function(e,n){var r=n.get("animation"),a=e.axis,i=a.type==="category",o=n.get("snap");if(!o&&!i)return!1;if(r==="auto"||r==null){var s=this.animationThreshold;if(i&&a.getBandWidth()>s)return!0;if(o){var l=SB(e).seriesDataCount,u=a.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return r===!0},t.prototype.makeElOption=function(e,n,r,a,i){},t.prototype.createPointerEl=function(e,n,r,a){var i=n.pointer;if(i){var o=Mh(e).pointerEl=new lS[i.type](L7(n.pointer));e.add(o)}},t.prototype.createLabelEl=function(e,n,r,a){if(n.label){var i=Mh(e).labelEl=new Bn(L7(n.label));e.add(i),V7(i,a)}},t.prototype.updatePointerEl=function(e,n,r){var a=Mh(e).pointerEl;a&&n.pointer&&(a.setStyle(n.pointer.style),r(a,{shape:n.pointer.shape}))},t.prototype.updateLabelEl=function(e,n,r,a){var i=Mh(e).labelEl;i&&(i.setStyle(n.label.style),r(i,{x:n.label.x,y:n.label.y}),V7(i,a))},t.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var n=this._axisPointerModel,r=this._api.getZr(),a=this._handle,i=n.getModel("handle"),o=n.get("status");if(!i.get("show")||!o||o==="hide"){a&&r.remove(a),this._handle=null;return}var s;this._handle||(s=!0,a=this._handle=L0(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){fc(u.event)},onmousedown:kk(this._onHandleDragMove,this,0,0),drift:kk(this._onHandleDragMove,this),ondragend:kk(this._onHandleDragEnd,this)}),r.add(a)),N7(a,n,!1),a.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=i.get("size");st(l)||(l=[l,l]),a.scaleX=l[0]/2,a.scaleY=l[1]/2,z0(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},t.prototype._moveHandleToValue=function(e,n){O7(this._axisPointerModel,!n&&this._moveAnimation,this._handle,Rk(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(e,n){var r=this._handle;if(r){this._dragging=!0;var a=this.updateHandleTransform(Rk(r),[e,n],this._axisModel,this._axisPointerModel);this._payloadInfo=a,r.stopAnimation(),r.attr(Rk(a)),Mh(r).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){var n=this._payloadInfo,r=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:n.cursorPoint[0],y:n.cursorPoint[1],tooltipOption:n.tooltipOption,axesInfo:[{axisDim:r.axis.dim,axisIndex:r.componentIndex}]})}},t.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(e){var n=this._axisPointerModel.get("value");this._moveHandleToValue(n),this._api.dispatchAction({type:"hideTip"})}},t.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var n=e.getZr(),r=this._group,a=this._handle;n&&r&&(this._lastGraphicKey=null,r&&n.remove(r),a&&n.remove(a),this._group=null,this._handle=null,this._payloadInfo=null),rb(this,"_doDispatchAxisPointer")},t.prototype.doClear=function(){},t.prototype.buildLabel=function(e,n,r){return r=r||0,{x:e[r],y:e[1-r],width:n[r],height:n[1-r]}},t}();function O7(t,e,n,r){Gce(Mh(n).lastProp,r)||(Mh(n).lastProp=r,e?jn(n,r,t):(n.stopAnimation(),n.attr(r)))}function Gce(t,e){if(qt(t)&&qt(e)){var n=!0;return q(e,function(r,a){n=n&&Gce(t[a],r)}),!!n}else return t===e}function V7(t,e){t[e.get(["label","show"])?"show":"hide"]()}function Rk(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function N7(t,e,n){var r=e.get("z"),a=e.get("zlevel");t&&t.traverse(function(i){i.type!=="group"&&(r!=null&&(i.z=r),a!=null&&(i.zlevel=a),i.silent=n)})}const ZB=uVt;function QB(t){var e=t.get("type"),n=t.getModel(e+"Style"),r;return e==="line"?(r=n.getLineStyle(),r.fill=null):e==="shadow"&&(r=n.getAreaStyle(),r.stroke=null),r}function Hce(t,e,n,r,a){var i=n.get("value"),o=Wce(i,e.axis,e.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),s=n.getModel("label"),l=Fp(s.get("padding")||0),u=s.getFont(),c=tS(o,u),f=a.position,d=c.width+l[1]+l[3],h=c.height+l[0]+l[2],p=a.align;p==="right"&&(f[0]-=d),p==="center"&&(f[0]-=d/2);var v=a.verticalAlign;v==="bottom"&&(f[1]-=h),v==="middle"&&(f[1]-=h/2),cVt(f,d,h,r);var g=s.get("backgroundColor");(!g||g==="auto")&&(g=e.get(["axisLine","lineStyle","color"])),t.label={x:f[0],y:f[1],style:Dr(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function cVt(t,e,n,r){var a=r.getWidth(),i=r.getHeight();t[0]=Math.min(t[0]+e,a)-e,t[1]=Math.min(t[1]+n,i)-n,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}function Wce(t,e,n,r,a){t=e.scale.parse(t);var i=e.scale.getLabel({value:t},{precision:a.precision}),o=a.formatter;if(o){var s={value:fB(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};q(r,function(l){var u=n.getSeriesByIndex(l.seriesIndex),c=l.dataIndexInside,f=u&&u.getDataParams(c);f&&s.seriesData.push(f)}),Ot(o)?i=o.replace("{value}",i):jt(o)&&(i=o(s))}return i}function JB(t,e,n){var r=Wo();return fd(r,r,n.rotation),bl(r,r,n.position),gl([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function jce(t,e,n,r,a,i){var o=gc.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=a.get(["label","margin"]),Hce(e,r,a,i,{position:JB(r.axis,t,n),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function e$(t,e,n){return n=n||0,{x1:t[n],y1:t[1-n],x2:e[n],y2:e[1-n]}}function Kce(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}}function I7(t,e,n,r,a,i){return{cx:t,cy:e,r0:n,r,startAngle:a,endAngle:i,clockwise:!0}}var fVt=function(t){Fe(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.makeElOption=function(n,r,a,i,o){var s=a.axis,l=s.grid,u=i.get("type"),c=B7(l,s).getOtherAxis(s).getGlobalExtent(),f=s.toGlobalCoord(s.dataToCoord(r,!0));if(u&&u!=="none"){var d=QB(i),h=dVt[u](s,f,c);h.style=d,n.graphicKey=h.type,n.pointer=h}var p=i3(l.model,a);jce(r,n,p,a,i,o)},e.prototype.getHandleTransform=function(n,r,a){var i=i3(r.axis.grid.model,r,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=JB(r.axis,n,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(n,r,a,i){var o=a.axis,s=o.grid,l=o.getGlobalExtent(!0),u=B7(s,o).getOtherAxis(o).getGlobalExtent(),c=o.dim==="x"?0:1,f=[n.x,n.y];f[c]+=r[c],f[c]=Math.min(l[1],f[c]),f[c]=Math.max(l[0],f[c]);var d=(u[1]+u[0])/2,h=[d,d];h[c]=f[c];var p=[{verticalAlign:"middle"},{align:"center"}];return{x:f[0],y:f[1],rotation:n.rotation,cursorPoint:h,tooltipOption:p[c]}},e}(ZB);function B7(t,e){var n={};return n[e.dim+"AxisIndex"]=e.index,t.getCartesian(n)}var dVt={line:function(t,e,n){var r=e$([e,n[0]],[e,n[1]],$7(t));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(t,e,n){var r=Math.max(1,t.getBandWidth()),a=n[1]-n[0];return{type:"Rect",shape:Kce([e-r/2,n[0]],[r,a],$7(t))}}};function $7(t){return t.dim==="x"?0:1}const hVt=fVt;var pVt=function(t){Fe(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.type="axisPointer",e.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}},e}(On);const vVt=pVt;var Ju=Gn(),gVt=q;function Yce(t,e,n){if(!Fn.node){var r=e.getZr();Ju(r).records||(Ju(r).records={}),yVt(r,e);var a=Ju(r).records[t]||(Ju(r).records[t]={});a.handler=n}}function yVt(t,e){if(Ju(t).initialized)return;Ju(t).initialized=!0,n("click",sn(P7,"click")),n("mousemove",sn(P7,"mousemove")),n("globalout",bVt);function n(r,a){t.on(r,function(i){var o=SVt(e);gVt(Ju(t).records,function(s){s&&a(s,i,o.dispatchAction)}),mVt(o.pendings,e)})}}function mVt(t,e){var n=t.showTip.length,r=t.hideTip.length,a;n?a=t.showTip[n-1]:r&&(a=t.hideTip[r-1]),a&&(a.dispatchAction=null,e.dispatchAction(a))}function bVt(t,e,n){t.handler("leave",null,n)}function P7(t,e,n,r){e.handler(t,n,r)}function SVt(t){var e={showTip:[],hideTip:[]},n=function(r){var a=e[r.type];a?a.push(r):(r.dispatchAction=n,t.dispatchAction(r))};return{dispatchAction:n,pendings:e}}function C3(t,e){if(!Fn.node){var n=e.getZr(),r=(Ju(n).records||{})[t];r&&(Ju(n).records[t]=null)}}var wVt=function(t){Fe(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.render=function(n,r,a){var i=r.getComponent("tooltip"),o=n.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";Yce("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})})},e.prototype.remove=function(n,r){C3("axisPointer",r)},e.prototype.dispose=function(n,r){C3("axisPointer",r)},e.type="axisPointer",e}(jr);const xVt=wVt;function Xce(t,e){var n=[],r=t.seriesIndex,a;if(r==null||!(a=e.getSeriesByIndex(r)))return{point:[]};var i=a.getData(),o=wp(i,t);if(o==null||o<0||st(o))return{point:[]};var s=i.getItemGraphicEl(o),l=a.coordinateSystem;if(a.getTooltipPosition)n=a.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(t.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u),f=c.dim,d=u.dim,h=f==="x"||f==="radius"?1:0,p=i.mapDimension(d),v=[];v[h]=i.get(p,o),v[1-h]=i.get(i.getCalculationInfo("stackResultDimension"),o),n=l.dataToPoint(v)||[]}else n=l.dataToPoint(i.getValues(ut(l.dimensions,function(y){return i.mapDimension(y)}),o))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),n=[g.x+g.width/2,g.y+g.height/2]}return{point:n,el:s}}var F7=Gn();function _Vt(t,e,n){var r=t.currTrigger,a=[t.x,t.y],i=t,o=t.dispatchAction||Nt(n.dispatchAction,n),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){H_(a)&&(a=Xce({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},e).point);var l=H_(a),u=i.axesInfo,c=s.axesInfo,f=r==="leave"||H_(a),d={},h={},p={list:[],map:{}},v={showPointer:sn(TVt,h),showTooltip:sn(EVt,p)};q(s.coordSysMap,function(y,m){var S=l||y.containPoint(a);q(s.coordSysAxesInfo[m],function(w,C){var _=w.axis,x=kVt(u,w);if(!f&&S&&(!u||x)){var T=x&&x.value;T==null&&!l&&(T=_.pointToData(a)),T!=null&&z7(w,T,v,!1,d)}})});var g={};return q(c,function(y,m){var S=y.linkGroup;S&&!h[m]&&q(S.axesInfo,function(w,C){var _=h[C];if(w!==y&&_){var x=_.value;S.mapper&&(x=y.axis.scale.parse(S.mapper(x,U7(w),U7(y)))),g[y.key]=x}})}),q(g,function(y,m){z7(c[m],y,v,!0,d)}),MVt(h,c,d),DVt(p,a,t,o),AVt(c,o,n),d}}function z7(t,e,n,r,a){var i=t.axis;if(!(i.scale.isBlank()||!i.containData(e))){if(!t.involveSeries){n.showPointer(t,e);return}var o=CVt(e,t),s=o.payloadBatch,l=o.snapToValue;s[0]&&a.seriesIndex==null&&et(a,s[0]),!r&&t.snap&&i.containData(l)&&l!=null&&(e=l),n.showPointer(t,e,s),n.showTooltip(t,o,l)}}function CVt(t,e){var n=e.axis,r=n.dim,a=t,i=[],o=Number.MAX_VALUE,s=-1;return q(e.seriesModels,function(l,u){var c=l.getData().mapDimensionsAll(r),f,d;if(l.getAxisTooltipData){var h=l.getAxisTooltipData(c,t,n);d=h.dataIndices,f=h.nestestValue}else{if(d=l.getData().indicesOfNearest(c[0],t,n.type==="category"?.5:null),!d.length)return;f=l.getData().get(c[0],d[0])}if(!(f==null||!isFinite(f))){var p=t-f,v=Math.abs(p);v<=o&&((v<o||p>=0&&s<0)&&(o=v,s=p,a=f,i.length=0),q(d,function(g){i.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:i,snapToValue:a}}function TVt(t,e,n,r){t[e.key]={value:n,payloadBatch:r}}function EVt(t,e,n,r){var a=n.payloadBatch,i=e.axis,o=i.model,s=e.axisPointerModel;if(!(!e.triggerTooltip||!a.length)){var l=e.coordSys.model,u=ub(l),c=t.map[u];c||(c=t.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(c)),c.dataByAxis.push({axisDim:i.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:r,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:a.slice()})}}function MVt(t,e,n){var r=n.axesInfo=[];q(e,function(a,i){var o=a.axisPointerModel.option,s=t[i];s?(!a.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!a.useHandle&&(o.status="hide"),o.status==="show"&&r.push({axisDim:a.axis.dim,axisIndex:a.axis.model.componentIndex,value:o.value})})}function DVt(t,e,n,r){if(H_(e)||!t.list.length){r({type:"hideTip"});return}var a=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:a.dataIndexInside,dataIndex:a.dataIndex,seriesIndex:a.seriesIndex,dataByCoordSys:t.list})}function AVt(t,e,n){var r=n.getZr(),a="axisPointerLastHighlights",i=F7(r)[a]||{},o=F7(r)[a]={};q(t,function(u,c){var f=u.axisPointerModel.option;f.status==="show"&&u.triggerEmphasis&&q(f.seriesDataIndices,function(d){var h=d.seriesIndex+" | "+d.dataIndex;o[h]=d})});var s=[],l=[];q(i,function(u,c){!o[c]&&l.push(u)}),q(o,function(u,c){!i[c]&&s.push(u)}),l.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function kVt(t,e){for(var n=0;n<(t||[]).length;n++){var r=t[n];if(e.axis.dim===r.axisDim&&e.axis.model.componentIndex===r.axisIndex)return r}}function U7(t){var e=t.axis.model,n={},r=n.axisDim=t.axis.dim;return n.axisIndex=n[r+"AxisIndex"]=e.componentIndex,n.axisName=n[r+"AxisName"]=e.name,n.axisId=n[r+"AxisId"]=e.id,n}function H_(t){return!t||t[0]==null||isNaN(t[0])||t[1]==null||isNaN(t[1])}function SS(t){Gp.registerAxisPointerClass("CartesianAxisPointer",hVt),t.registerComponentModel(vVt),t.registerComponentView(xVt),t.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var n=e.axisPointer.link;n&&!st(n)&&(e.axisPointer.link=[n])}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,function(e,n){e.getComponent("axisPointer").coordSysAxesInfo=yDt(e,n)}),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},_Vt)}function RVt(t){wn(wue),wn(SS)}var LVt=function(t){Fe(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.makeElOption=function(n,r,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(r),d=i.get("type");if(d&&d!=="none"){var h=QB(i),p=VVt[d](s,l,f,c);p.style=h,n.graphicKey=p.type,n.pointer=p}var v=i.get(["label","margin"]),g=OVt(r,a,i,l,v);Hce(n,a,i,o,g)},e}(ZB);function OVt(t,e,n,r,a){var i=e.axis,o=i.dataToCoord(t),s=r.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=r.getRadiusAxis().getExtent(),u,c,f;if(i.dim==="radius"){var d=Wo();fd(d,d,s),bl(d,d,[r.cx,r.cy]),u=gl([o,-a],d);var h=e.getModel("axisLabel").get("rotate")||0,p=gc.innerTextLayout(s,h*Math.PI/180,-1);c=p.textAlign,f=p.textVerticalAlign}else{var v=l[1];u=r.coordToPoint([v+a,o]);var g=r.cx,y=r.cy;c=Math.abs(u[0]-g)/v<.3?"center":u[0]>g?"left":"right",f=Math.abs(u[1]-y)/v<.3?"middle":u[1]>y?"top":"bottom"}return{position:u,align:c,verticalAlign:f}}var VVt={line:function(t,e,n,r){return t.dim==="angle"?{type:"Line",shape:e$(e.coordToPoint([r[0],n]),e.coordToPoint([r[1],n]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:n}}},shadow:function(t,e,n,r){var a=Math.max(1,t.getBandWidth()),i=Math.PI/180;return t.dim==="angle"?{type:"Sector",shape:I7(e.cx,e.cy,r[0],r[1],(-n-a/2)*i,(-n+a/2)*i)}:{type:"Sector",shape:I7(e.cx,e.cy,n-a/2,n+a/2,0,Math.PI*2)}}};const NVt=LVt;var IVt=function(t){Fe(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.findAxisModel=function(n){var r,a=this.ecModel;return a.eachComponent(n,function(i){i.getCoordSysModel()===this&&(r=i)},this),r},e.type="polar",e.dependencies=["radiusAxis","angleAxis"],e.defaultOption={z:0,center:["50%","50%"],radius:"80%"},e}(On);const BVt=IVt;var t$=function(t){Fe(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",Ca).models[0]},e.type="polarAxis",e}(On);ha(t$,H0);var $Vt=function(t){Fe(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.type="angleAxis",e}(t$),PVt=function(t){Fe(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.type="radiusAxis",e}(t$),n$=function(t){Fe(e,t);function e(n,r){return t.call(this,"radius",n,r)||this}return e.prototype.pointToData=function(n,r){return this.polar.pointToData(n,r)[this.dim==="radius"?0:1]},e}(Vs);n$.prototype.dataToRadius=Vs.prototype.dataToCoord;n$.prototype.radiusToData=Vs.prototype.coordToData;const FVt=n$;var zVt=Gn(),r$=function(t){Fe(e,t);function e(n,r){return t.call(this,"angle",n,r||[0,360])||this}return e.prototype.pointToData=function(n,r){return this.polar.pointToData(n,r)[this.dim==="radius"?0:1]},e.prototype.calculateCategoryInterval=function(){var n=this,r=n.getLabelModel(),a=n.scale,i=a.getExtent(),o=a.count();if(i[1]-i[0]<1)return 0;var s=i[0],l=n.dataToCoord(s+1)-n.dataToCoord(s),u=Math.abs(l),c=tS(s==null?"":s+"",r.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)),p=zVt(n.model),v=p.lastAutoInterval,g=p.lastTickCount;return v!=null&&g!=null&&Math.abs(v-h)<=1&&Math.abs(g-o)<=1&&v>h?h=v:(p.lastTickCount=o,p.lastAutoInterval=h),h},e}(Vs);r$.prototype.dataToAngle=Vs.prototype.dataToCoord;r$.prototype.angleToData=Vs.prototype.coordToData;const UVt=r$;var qce=["radius","angle"],GVt=function(){function t(e){this.dimensions=qce,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new FVt,this._angleAxis=new UVt,this.axisPointerEnabled=!0,this.name=e||"",this._radiusAxis.polar=this._angleAxis.polar=this}return t.prototype.containPoint=function(e){var n=this.pointToCoord(e);return this._radiusAxis.contain(n[0])&&this._angleAxis.contain(n[1])},t.prototype.containData=function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},t.prototype.getAxis=function(e){var n="_"+e+"Axis";return this[n]},t.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},t.prototype.getAxesByScale=function(e){var n=[],r=this._angleAxis,a=this._radiusAxis;return r.scale.type===e&&n.push(r),a.scale.type===e&&n.push(a),n},t.prototype.getAngleAxis=function(){return this._angleAxis},t.prototype.getRadiusAxis=function(){return this._radiusAxis},t.prototype.getOtherAxis=function(e){var n=this._angleAxis;return e===n?this._radiusAxis:n},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},t.prototype.getTooltipAxes=function(e){var n=e!=null&&e!=="auto"?this.getAxis(e):this.getBaseAxis();return{baseAxes:[n],otherAxes:[this.getOtherAxis(n)]}},t.prototype.dataToPoint=function(e,n){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],n),this._angleAxis.dataToAngle(e[1],n)])},t.prototype.pointToData=function(e,n){var r=this.pointToCoord(e);return[this._radiusAxis.radiusToData(r[0],n),this._angleAxis.angleToData(r[1],n)]},t.prototype.pointToCoord=function(e){var n=e[0]-this.cx,r=e[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(n*n+r*r);n/=l,r/=l;for(var u=Math.atan2(-r,n)/Math.PI*180,c=u<o?1:-1;u<o||u>s;)u+=c*360;return[l,u]},t.prototype.coordToPoint=function(e){var n=e[0],r=e[1]/180*Math.PI,a=Math.cos(r)*n+this.cx,i=-Math.sin(r)*n+this.cy;return[a,i]},t.prototype.getArea=function(){var e=this.getAngleAxis(),n=this.getRadiusAxis(),r=n.getExtent().slice();r[0]>r[1]&&r.reverse();var a=e.getExtent(),i=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:r[0],r:r[1],startAngle:-a[0]*i,endAngle:-a[1]*i,clockwise:e.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}}},t.prototype.convertToPixel=function(e,n,r){var a=G7(n);return a===this?this.dataToPoint(r):null},t.prototype.convertFromPixel=function(e,n,r){var a=G7(n);return a===this?this.pointToData(r):null},t}();function G7(t){var e=t.seriesModel,n=t.polarModel;return n&&n.coordinateSystem||e&&e.coordinateSystem}const HVt=GVt;function WVt(t,e,n){var r=e.get("center"),a=n.getWidth(),i=n.getHeight();t.cx=Mt(r[0],a),t.cy=Mt(r[1],i);var o=t.getRadiusAxis(),s=Math.min(a,i)/2,l=e.get("radius");l==null?l=[0,"100%"]:st(l)||(l=[0,l]);var u=[Mt(l[0],s),Mt(l[1],s)];o.inverse?o.setExtent(u[1],u[0]):o.setExtent(u[0],u[1])}function jVt(t,e){var n=this,r=n.getAngleAxis(),a=n.getRadiusAxis();if(r.scale.setExtent(1/0,-1/0),a.scale.setExtent(1/0,-1/0),t.eachSeries(function(s){if(s.coordinateSystem===n){var l=s.getData();q(bC(l,"radius"),function(u){a.scale.unionExtentFromData(l,u)}),q(bC(l,"angle"),function(u){r.scale.unionExtentFromData(l,u)})}}),Tp(r.scale,r.model),Tp(a.scale,a.model),r.type==="category"&&!r.onBand){var i=r.getExtent(),o=360/r.scale.count();r.inverse?i[1]+=o:i[1]-=o,r.setExtent(i[0],i[1])}}function KVt(t){return t.mainType==="angleAxis"}function H7(t,e){if(t.type=e.get("type"),t.scale=fS(e),t.onBand=e.get("boundaryGap")&&t.type==="category",t.inverse=e.get("inverse"),KVt(e)){t.inverse=t.inverse!==e.get("clockwise");var n=e.get("startAngle");t.setExtent(n,n+(t.inverse?-360:360))}e.axis=t,t.model=e}var YVt={dimensions:qce,create:function(t,e){var n=[];return t.eachComponent("polar",function(r,a){var i=new HVt(a+"");i.update=jVt;var o=i.getRadiusAxis(),s=i.getAngleAxis(),l=r.findAxisModel("radiusAxis"),u=r.findAxisModel("angleAxis");H7(o,l),H7(s,u),WVt(i,r,e),n.push(i),r.coordinateSystem=i,i.model=r}),t.eachSeries(function(r){if(r.get("coordinateSystem")==="polar"){var a=r.getReferringComponents("polar",Ca).models[0];r.coordinateSystem=a.coordinateSystem}}),n}};const XVt=YVt;var qVt=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function Tx(t,e,n){e[1]>e[0]&&(e=e.slice().reverse());var r=t.coordToPoint([e[0],n]),a=t.coordToPoint([e[1],n]);return{x1:r[0],y1:r[1],x2:a[0],y2:a[1]}}function Ex(t){var e=t.getRadiusAxis();return e.inverse?0:1}function W7(t){var e=t[0],n=t[t.length-1];e&&n&&Math.abs(Math.abs(e.coord-n.coord)-360)<1e-4&&t.pop()}var ZVt=function(t){Fe(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="PolarAxisPointer",n}return e.prototype.render=function(n,r){if(this.group.removeAll(),!!n.get("show")){var a=n.axis,i=a.polar,o=i.getRadiusAxis().getExtent(),s=a.getTicksCoords(),l=a.getMinorTicksCoords(),u=ut(a.getViewLabels(),function(c){c=Zt(c);var f=a.scale,d=f.type==="ordinal"?f.getRawOrdinalNumber(c.tickValue):c.tickValue;return c.coord=a.dataToCoord(d),c});W7(u),W7(s),q(qVt,function(c){n.get([c,"show"])&&(!a.scale.isBlank()||c==="axisLine")&&QVt[c](this.group,n,i,s,l,o,u)},this)}},e.type="angleAxis",e}(Gp),QVt={axisLine:function(t,e,n,r,a,i){var o=e.getModel(["axisLine","lineStyle"]),s=Ex(n),l=s?0:1,u;i[l]===0?u=new wl({shape:{cx:n.cx,cy:n.cy,r:i[s]},style:o.getLineStyle(),z2:1,silent:!0}):u=new aS({shape:{cx:n.cx,cy:n.cy,r:i[s],r0:i[l]},style:o.getLineStyle(),z2:1,silent:!0}),u.style.fill=null,t.add(u)},axisTick:function(t,e,n,r,a,i){var o=e.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=i[Ex(n)],u=ut(r,function(c){return new Ga({shape:Tx(n,[l,l+s],c.coord)})});t.add($o(u,{style:Xt(o.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(t,e,n,r,a,i){if(a.length){for(var o=e.getModel("axisTick"),s=e.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=i[Ex(n)],c=[],f=0;f<a.length;f++)for(var d=0;d<a[f].length;d++)c.push(new Ga({shape:Tx(n,[u,u+l],a[f][d].coord)}));t.add($o(c,{style:Xt(s.getModel("lineStyle").getLineStyle(),Xt(o.getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(t,e,n,r,a,i,o){var s=e.getCategories(!0),l=e.getModel("axisLabel"),u=l.get("margin"),c=e.get("triggerEvent");q(o,function(f,d){var h=l,p=f.tickValue,v=i[Ex(n)],g=n.coordToPoint([v+u,f.coord]),y=n.cx,m=n.cy,S=Math.abs(g[0]-y)/v<.3?"center":g[0]>y?"left":"right",w=Math.abs(g[1]-m)/v<.3?"middle":g[1]>m?"top":"bottom";if(s&&s[p]){var C=s[p];qt(C)&&C.textStyle&&(h=new yr(C.textStyle,l,l.ecModel))}var _=new Bn({silent:gc.isLabelSilent(e),style:Dr(h,{x:g[0],y:g[1],fill:h.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:f.formattedLabel,align:S,verticalAlign:w})});if(t.add(_),c){var x=gc.makeAxisEventDataBase(e);x.targetType="axisLabel",x.value=f.rawLabel,ln(_).eventData=x}},this)},splitLine:function(t,e,n,r,a,i){var o=e.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],f=0;f<r.length;f++){var d=u++%l.length;c[d]=c[d]||[],c[d].push(new Ga({shape:Tx(n,i,r[f].coord)}))}for(var f=0;f<c.length;f++)t.add($o(c[f],{style:Xt({stroke:l[f%l.length]},s.getLineStyle()),silent:!0,z:e.get("z")}))},minorSplitLine:function(t,e,n,r,a,i){if(a.length){for(var o=e.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=[],u=0;u<a.length;u++)for(var c=0;c<a[u].length;c++)l.push(new Ga({shape:Tx(n,i,a[u][c].coord)}));t.add($o(l,{style:s.getLineStyle(),silent:!0,z:e.get("z")}))}},splitArea:function(t,e,n,r,a,i){if(r.length){var o=e.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],f=Math.PI/180,d=-r[0].coord*f,h=Math.min(i[0],i[1]),p=Math.max(i[0],i[1]),v=e.get("clockwise"),g=1,y=r.length;g<=y;g++){var m=g===y?r[0].coord:r[g].coord,S=u++%l.length;c[S]=c[S]||[],c[S].push(new so({shape:{cx:n.cx,cy:n.cy,r0:h,r:p,startAngle:d,endAngle:-m*f,clockwise:v},silent:!0})),d=-m*f}for(var g=0;g<c.length;g++)t.add($o(c[g],{style:Xt({fill:l[g%l.length]},s.getAreaStyle()),silent:!0}))}}};const JVt=ZVt;var eNt=["axisLine","axisTickLabel","axisName"],tNt=["splitLine","splitArea","minorSplitLine"],nNt=function(t){Fe(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="PolarAxisPointer",n}return e.prototype.render=function(n,r){if(this.group.removeAll(),!!n.get("show")){var a=this._axisGroup,i=this._axisGroup=new en;this.group.add(i);var o=n.axis,s=o.polar,l=s.getAngleAxis(),u=o.getTicksCoords(),c=o.getMinorTicksCoords(),f=l.getExtent()[0],d=o.getExtent(),h=aNt(s,n,f),p=new gc(n,h);q(eNt,p.add,p),i.add(p.getGroup()),sS(a,i,n),q(tNt,function(v){n.get([v,"show"])&&!o.scale.isBlank()&&rNt[v](this.group,n,s,f,d,u,c)},this)}},e.type="radiusAxis",e}(Gp),rNt={splitLine:function(t,e,n,r,a,i){var o=e.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],f=0;f<i.length;f++){var d=u++%l.length;c[d]=c[d]||[],c[d].push(new wl({shape:{cx:n.cx,cy:n.cy,r:Math.max(i[f].coord,0)}}))}for(var f=0;f<c.length;f++)t.add($o(c[f],{style:Xt({stroke:l[f%l.length],fill:null},s.getLineStyle()),silent:!0}))},minorSplitLine:function(t,e,n,r,a,i,o){if(o.length){for(var s=e.getModel("minorSplitLine"),l=s.getModel("lineStyle"),u=[],c=0;c<o.length;c++)for(var f=0;f<o[c].length;f++)u.push(new wl({shape:{cx:n.cx,cy:n.cy,r:o[c][f].coord}}));t.add($o(u,{style:Xt({fill:null},l.getLineStyle()),silent:!0}))}},splitArea:function(t,e,n,r,a,i){if(i.length){var o=e.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],f=i[0].coord,d=1;d<i.length;d++){var h=u++%l.length;c[h]=c[h]||[],c[h].push(new so({shape:{cx:n.cx,cy:n.cy,r0:f,r:i[d].coord,startAngle:0,endAngle:Math.PI*2},silent:!0})),f=i[d].coord}for(var d=0;d<c.length;d++)t.add($o(c[d],{style:Xt({fill:l[d%l.length]},s.getAreaStyle()),silent:!0}))}}};function aNt(t,e,n){return{position:[t.cx,t.cy],rotation:n/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:e.getModel("axisLabel").get("rotate"),z2:1}}const iNt=nNt;function Zce(t){return t.get("stack")||"__ec_stack_"+t.seriesIndex}function Qce(t,e){return e.dim+t.model.componentIndex}function oNt(t,e,n){var r={},a=sNt(or(e.getSeriesByType(t),function(i){return!e.isSeriesFiltered(i)&&i.coordinateSystem&&i.coordinateSystem.type==="polar"}));e.eachSeriesByType(t,function(i){if(i.coordinateSystem.type==="polar"){var o=i.getData(),s=i.coordinateSystem,l=s.getBaseAxis(),u=Qce(s,l),c=Zce(i),f=a[u][c],d=f.offset,h=f.width,p=s.getOtherAxis(l),v=i.coordinateSystem.cx,g=i.coordinateSystem.cy,y=i.get("barMinHeight")||0,m=i.get("barMinAngle")||0;r[c]=r[c]||[];for(var S=o.mapDimension(p.dim),w=o.mapDimension(l.dim),C=vc(o,S),_=l.dim!=="radius"||!i.get("roundCap",!0),x=p.dataToCoord(0),T=0,M=o.count();T<M;T++){var E=o.get(S,T),A=o.get(w,T),k=E>=0?"p":"n",L=x;C&&(r[c][A]||(r[c][A]={p:x,n:x}),L=r[c][A][k]);var I=void 0,P=void 0,F=void 0,$=void 0;if(p.dim==="radius"){var W=p.dataToCoord(E)-x,V=l.dataToCoord(A);Math.abs(W)<y&&(W=(W<0?-1:1)*y),I=L,P=L+W,F=V-d,$=F-h,C&&(r[c][A][k]=P)}else{var z=p.dataToCoord(E,_)-x,K=l.dataToCoord(A);Math.abs(z)<m&&(z=(z<0?-1:1)*m),I=K+d,P=I+h,F=L,$=L+z,C&&(r[c][A][k]=$)}o.setItemLayout(T,{cx:v,cy:g,r0:I,r:P,startAngle:-F*Math.PI/180,endAngle:-$*Math.PI/180,clockwise:F>=$})}}})}function sNt(t){var e={};q(t,function(r,a){var i=r.getData(),o=r.coordinateSystem,s=o.getBaseAxis(),l=Qce(o,s),u=s.getExtent(),c=s.type==="category"?s.getBandWidth():Math.abs(u[1]-u[0])/i.count(),f=e[l]||{bandWidth:c,remainedWidth:c,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},d=f.stacks;e[l]=f;var h=Zce(r);d[h]||f.autoWidthCount++,d[h]=d[h]||{width:0,maxWidth:0};var p=Mt(r.get("barWidth"),c),v=Mt(r.get("barMaxWidth"),c),g=r.get("barGap"),y=r.get("barCategoryGap");p&&!d[h].width&&(p=Math.min(f.remainedWidth,p),d[h].width=p,f.remainedWidth-=p),v&&(d[h].maxWidth=v),g!=null&&(f.gap=g),y!=null&&(f.categoryGap=y)});var n={};return q(e,function(r,a){n[a]={};var i=r.stacks,o=r.bandWidth,s=Mt(r.categoryGap,o),l=Mt(r.gap,1),u=r.remainedWidth,c=r.autoWidthCount,f=(u-s)/(c+(c-1)*l);f=Math.max(f,0),q(i,function(v,g){var y=v.maxWidth;y&&y<f&&(y=Math.min(y,u),v.width&&(y=Math.min(y,v.width)),u-=y,v.width=y,c--)}),f=(u-s)/(c+(c-1)*l),f=Math.max(f,0);var d=0,h;q(i,function(v,g){v.width||(v.width=f),h=v,d+=v.width*(1+l)}),h&&(d-=h.width*l);var p=-d/2;q(i,function(v,g){n[a][g]=n[a][g]||{offset:p,width:v.width},p+=v.width*(1+l)})}),n}var lNt={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},uNt={splitNumber:5},cNt=function(t){Fe(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.type="polar",e}(jr);function fNt(t){wn(SS),Gp.registerAxisPointerClass("PolarAxisPointer",NVt),t.registerCoordinateSystem("polar",XVt),t.registerComponentModel(BVt),t.registerComponentView(cNt),o0(t,"angle",$Vt,lNt),o0(t,"radius",PVt,uNt),t.registerComponentView(JVt),t.registerComponentView(iNt),t.registerLayout(sn(oNt,"bar"))}function T3(t,e){e=e||{};var n=t.coordinateSystem,r=t.axis,a={},i=r.position,o=r.orient,s=n.getRect(),l=[s.x,s.x+s.width,s.y,s.y+s.height],u={horizontal:{top:l[2],bottom:l[3]},vertical:{left:l[0],right:l[1]}};a.position=[o==="vertical"?u.vertical[i]:l[0],o==="horizontal"?u.horizontal[i]:l[3]];var c={horizontal:0,vertical:1};a.rotation=Math.PI/2*c[o];var f={top:-1,bottom:1,right:1,left:-1};a.labelDirection=a.tickDirection=a.nameDirection=f[i],t.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),Ua(e.labelInside,t.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var d=e.rotate;return d==null&&(d=t.get(["axisLabel","rotate"])),a.labelRotation=i==="top"?-d:d,a.z2=1,a}var dNt=["axisLine","axisTickLabel","axisName"],hNt=["splitArea","splitLine"],pNt=function(t){Fe(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="SingleAxisPointer",n}return e.prototype.render=function(n,r,a,i){var o=this.group;o.removeAll();var s=this._axisGroup;this._axisGroup=new en;var l=T3(n),u=new gc(n,l);q(dNt,u.add,u),o.add(this._axisGroup),o.add(u.getGroup()),q(hNt,function(c){n.get([c,"show"])&&vNt[c](this,this.group,this._axisGroup,n)},this),sS(s,this._axisGroup,n),t.prototype.render.call(this,n,r,a,i)},e.prototype.remove=function(){mue(this)},e.type="singleAxis",e}(Gp),vNt={splitLine:function(t,e,n,r){var a=r.axis;if(!a.scale.isBlank()){var i=r.getModel("splitLine"),o=i.getModel("lineStyle"),s=o.get("color");s=s instanceof Array?s:[s];for(var l=o.get("width"),u=r.coordinateSystem.getRect(),c=a.isHorizontal(),f=[],d=0,h=a.getTicksCoords({tickModel:i}),p=[],v=[],g=0;g<h.length;++g){var y=a.toGlobalCoord(h[g].coord);c?(p[0]=y,p[1]=u.y,v[0]=y,v[1]=u.y+u.height):(p[0]=u.x,p[1]=y,v[0]=u.x+u.width,v[1]=y);var m=new Ga({shape:{x1:p[0],y1:p[1],x2:v[0],y2:v[1]},silent:!0});n0(m.shape,l);var S=d++%s.length;f[S]=f[S]||[],f[S].push(m)}for(var w=o.getLineStyle(["color"]),g=0;g<f.length;++g)e.add($o(f[g],{style:Xt({stroke:s[g%s.length]},w),silent:!0}))}},splitArea:function(t,e,n,r){yue(t,n,r,r)}};const gNt=pNt;var Jce=function(t){Fe(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.getCoordSysModel=function(){return this},e.type="singleAxis",e.layoutMode="box",e.defaultOption={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:1,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:1}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}}},e}(On);ha(Jce,H0.prototype);const Lk=Jce;var yNt=function(t){Fe(e,t);function e(n,r,a,i,o){var s=t.call(this,n,r,a)||this;return s.type=i||"value",s.position=o||"bottom",s}return e.prototype.isHorizontal=function(){var n=this.position;return n==="top"||n==="bottom"},e.prototype.pointToData=function(n,r){return this.coordinateSystem.pointToData(n)[0]},e}(Vs);const mNt=yNt;var efe=["single"],bNt=function(){function t(e,n,r){this.type="single",this.dimension="single",this.dimensions=efe,this.axisPointerEnabled=!0,this.model=e,this._init(e,n,r)}return t.prototype._init=function(e,n,r){var a=this.dimension,i=new mNt(a,fS(e),[0,0],e.get("type"),e.get("position")),o=i.type==="category";i.onBand=o&&e.get("boundaryGap"),i.inverse=e.get("inverse"),i.orient=e.get("orient"),e.axis=i,i.model=e,i.coordinateSystem=this,this._axis=i},t.prototype.update=function(e,n){e.eachSeries(function(r){if(r.coordinateSystem===this){var a=r.getData();q(a.mapDimensionsAll(this.dimension),function(i){this._axis.scale.unionExtentFromData(a,i)},this),Tp(this._axis.scale,this._axis.model)}},this)},t.prototype.resize=function(e,n){this._rect=ka({left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")},{width:n.getWidth(),height:n.getHeight()}),this._adjustAxis()},t.prototype.getRect=function(){return this._rect},t.prototype._adjustAxis=function(){var e=this._rect,n=this._axis,r=n.isHorizontal(),a=r?[0,e.width]:[0,e.height],i=n.inverse?1:0;n.setExtent(a[i],a[1-i]),this._updateAxisTransform(n,r?e.x:e.y)},t.prototype._updateAxisTransform=function(e,n){var r=e.getExtent(),a=r[0]+r[1],i=e.isHorizontal();e.toGlobalCoord=i?function(o){return o+n}:function(o){return a-o+n},e.toLocalCoord=i?function(o){return o-n}:function(o){return a-o+n}},t.prototype.getAxis=function(){return this._axis},t.prototype.getBaseAxis=function(){return this._axis},t.prototype.getAxes=function(){return[this._axis]},t.prototype.getTooltipAxes=function(){return{baseAxes:[this.getAxis()],otherAxes:[]}},t.prototype.containPoint=function(e){var n=this.getRect(),r=this.getAxis(),a=r.orient;return a==="horizontal"?r.contain(r.toLocalCoord(e[0]))&&e[1]>=n.y&&e[1]<=n.y+n.height:r.contain(r.toLocalCoord(e[1]))&&e[0]>=n.y&&e[0]<=n.y+n.height},t.prototype.pointToData=function(e){var n=this.getAxis();return[n.coordToData(n.toLocalCoord(e[n.orient==="horizontal"?0:1]))]},t.prototype.dataToPoint=function(e){var n=this.getAxis(),r=this.getRect(),a=[],i=n.orient==="horizontal"?0:1;return e instanceof Array&&(e=e[0]),a[i]=n.toGlobalCoord(n.dataToCoord(+e)),a[1-i]=i===0?r.y+r.height/2:r.x+r.width/2,a},t.prototype.convertToPixel=function(e,n,r){var a=j7(n);return a===this?this.dataToPoint(r):null},t.prototype.convertFromPixel=function(e,n,r){var a=j7(n);return a===this?this.pointToData(r):null},t}();function j7(t){var e=t.seriesModel,n=t.singleAxisModel;return n&&n.coordinateSystem||e&&e.coordinateSystem}function SNt(t,e){var n=[];return t.eachComponent("singleAxis",function(r,a){var i=new bNt(r,t,e);i.name="single_"+a,i.resize(r,e),r.coordinateSystem=i,n.push(i)}),t.eachSeries(function(r){if(r.get("coordinateSystem")==="singleAxis"){var a=r.getReferringComponents("singleAxis",Ca).models[0];r.coordinateSystem=a&&a.coordinateSystem}}),n}var wNt={create:SNt,dimensions:efe};const xNt=wNt;var K7=["x","y"],_Nt=["width","height"],CNt=function(t){Fe(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.makeElOption=function(n,r,a,i,o){var s=a.axis,l=s.coordinateSystem,u=Ok(l,1-VC(s)),c=l.dataToPoint(r)[0],f=i.get("type");if(f&&f!=="none"){var d=QB(i),h=TNt[f](s,c,u);h.style=d,n.graphicKey=h.type,n.pointer=h}var p=T3(a);jce(r,n,p,a,i,o)},e.prototype.getHandleTransform=function(n,r,a){var i=T3(r,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=JB(r.axis,n,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(n,r,a,i){var o=a.axis,s=o.coordinateSystem,l=VC(o),u=Ok(s,l),c=[n.x,n.y];c[l]+=r[l],c[l]=Math.min(u[1],c[l]),c[l]=Math.max(u[0],c[l]);var f=Ok(s,1-l),d=(f[1]+f[0])/2,h=[d,d];return h[l]=c[l],{x:c[0],y:c[1],rotation:n.rotation,cursorPoint:h,tooltipOption:{verticalAlign:"middle"}}},e}(ZB),TNt={line:function(t,e,n){var r=e$([e,n[0]],[e,n[1]],VC(t));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(t,e,n){var r=t.getBandWidth(),a=n[1]-n[0];return{type:"Rect",shape:Kce([e-r/2,n[0]],[r,a],VC(t))}}};function VC(t){return t.isHorizontal()?0:1}function Ok(t,e){var n=t.getRect();return[n[K7[e]],n[K7[e]]+n[_Nt[e]]]}const ENt=CNt;var MNt=function(t){Fe(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.type="single",e}(jr);function DNt(t){wn(SS),Gp.registerAxisPointerClass("SingleAxisPointer",ENt),t.registerComponentView(MNt),t.registerComponentView(gNt),t.registerComponentModel(Lk),o0(t,"single",Lk,Lk.defaultOption),t.registerCoordinateSystem("single",xNt)}var ANt=function(t){Fe(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.init=function(n,r,a){var i=I0(n);t.prototype.init.apply(this,arguments),Y7(n,i)},e.prototype.mergeOption=function(n){t.prototype.mergeOption.apply(this,arguments),Y7(this.option,n)},e.prototype.getCellSize=function(){return this.option.cellSize},e.type="calendar",e.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}},e}(On);function Y7(t,e){var n=t.cellSize,r;st(n)?r=n:r=t.cellSize=[n,n],r.length===1&&(r[1]=r[0]);var a=ut([0,1],function(i){return bxt(e,i)&&(r[i]="auto"),r[i]!=null&&r[i]!=="auto"});Zf(t,e,{type:"box",ignoreSize:a})}const kNt=ANt;var RNt=function(t){Fe(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.render=function(n,r,a){var i=this.group;i.removeAll();var o=n.coordinateSystem,s=o.getRangeInfo(),l=o.getOrient(),u=r.getLocaleModel();this._renderDayRect(n,s,i),this._renderLines(n,s,l,i),this._renderYearText(n,s,l,i),this._renderMonthText(n,u,l,i),this._renderWeekText(n,u,s,l,i)},e.prototype._renderDayRect=function(n,r,a){for(var i=n.coordinateSystem,o=n.getModel("itemStyle").getItemStyle(),s=i.getCellWidth(),l=i.getCellHeight(),u=r.start.time;u<=r.end.time;u=i.getNextNDay(u,1).time){var c=i.dataToRect([u],!1).tl,f=new $n({shape:{x:c[0],y:c[1],width:s,height:l},cursor:"default",style:o});a.add(f)}},e.prototype._renderLines=function(n,r,a,i){var o=this,s=n.coordinateSystem,l=n.getModel(["splitLine","lineStyle"]).getLineStyle(),u=n.get(["splitLine","show"]),c=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var f=r.start,d=0;f.time<=r.end.time;d++){p(f.formatedDate),d===0&&(f=s.getDateInfo(r.start.y+"-"+r.start.m));var h=f.date;h.setMonth(h.getMonth()+1),f=s.getDateInfo(h)}p(s.getNextNDay(r.end.time,1).formatedDate);function p(v){o._firstDayOfMonth.push(s.getDateInfo(v)),o._firstDayPoints.push(s.dataToRect([v],!1).tl);var g=o._getLinePointsOfOneWeek(n,v,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)},e.prototype._getEdgesPoints=function(n,r,a){var i=[n[0].slice(),n[n.length-1].slice()],o=a==="horizontal"?0:1;return i[0][o]=i[0][o]-r/2,i[1][o]=i[1][o]+r/2,i},e.prototype._drawSplitline=function(n,r,a){var i=new fo({z2:20,shape:{points:n},style:r});a.add(i)},e.prototype._getLinePointsOfOneWeek=function(n,r,a){for(var i=n.coordinateSystem,o=i.getDateInfo(r),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},e.prototype._formatterLabel=function(n,r){return Ot(n)&&n?vxt(n,r):jt(n)?n(r):r.nameMap},e.prototype._yearTextPositionControl=function(n,r,a,i,o){var s=r[0],l=r[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]}}},e.prototype._renderYearText=function(n,r,a,i){var o=n.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]},p=r.start.y;+r.end.y>+r.start.y&&(p=p+"-"+r.end.y);var v=o.get("formatter"),g={start:r.start.y,end:r.end.y,nameMap:p},y=this._formatterLabel(v,g),m=new Bn({z2:30,style:Dr(o,{text:y})});m.attr(this._yearTextPositionControl(m,h[l],a,l,s)),i.add(m)}},e.prototype._monthTextPositionControl=function(n,r,a,i,o){var s="left",l="top",u=n[0],c=n[1];return a==="horizontal"?(c=c+o,r&&(s="center"),i==="start"&&(l="bottom")):(u=u+o,r&&(l="middle"),i==="start"&&(s="right")),{x:u,y:c,align:s,verticalAlign:l}},e.prototype._renderMonthText=function(n,r,a,i){var o=n.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||Ot(s))&&(s&&(r=VO(s)||r),s=r.get(["time","monthAbbr"])||[]);var d=u==="start"?0:1,h=a==="horizontal"?0:1;l=u==="start"?-l:l;for(var p=c==="center",v=0;v<f[d].length-1;v++){var g=f[d][v].slice(),y=this._firstDayOfMonth[v];if(p){var m=this._firstDayPoints[v];g[h]=(m[h]+f[0][v+1][h])/2}var S=o.get("formatter"),w=s[+y.m-1],C={yyyy:y.y,yy:(y.y+"").slice(2),MM:y.m,M:+y.m,nameMap:w},_=this._formatterLabel(S,C),x=new Bn({z2:30,style:et(Dr(o,{text:_}),this._monthTextPositionControl(g,p,a,u,l))});i.add(x)}}},e.prototype._weekTextPositionControl=function(n,r,a,i,o){var s="center",l="middle",u=n[0],c=n[1],f=a==="start";return r==="horizontal"?(u=u+i+(f?1:-1)*o[0]/2,s=f?"right":"left"):(c=c+i+(f?1:-1)*o[1]/2,l=f?"bottom":"top"),{x:u,y:c,align:s,verticalAlign:l}},e.prototype._renderWeekText=function(n,r,a,i,o){var s=n.getModel("dayLabel");if(s.get("show")){var l=n.coordinateSystem,u=s.get("position"),c=s.get("nameMap"),f=s.get("margin"),d=l.getFirstDayOfWeek();if(!c||Ot(c)){c&&(r=VO(c)||r);var h=r.get(["time","dayOfWeekShort"]);c=h||ut(r.get(["time","dayOfWeekAbbr"]),function(C){return C[0]})}var p=l.getNextNDay(a.end.time,7-a.lweek).time,v=[l.getCellWidth(),l.getCellHeight()];f=Mt(f,Math.min(v[1],v[0])),u==="start"&&(p=l.getNextNDay(a.start.time,-(7+a.fweek)).time,f=-f);for(var g=0;g<7;g++){var y=l.getNextNDay(p,g),m=l.dataToRect([y.time],!1).center,S=g;S=Math.abs((g+d)%7);var w=new Bn({z2:30,style:et(Dr(s,{text:c[S]}),this._weekTextPositionControl(m,i,u,f,v))});o.add(w)}}},e.type="calendar",e}(jr);const LNt=RNt;var Vk=864e5,ONt=function(){function t(e,n,r){this.type="calendar",this.dimensions=t.dimensions,this.getDimensionsInfo=t.getDimensionsInfo,this._model=e}return t.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},t.prototype.getRangeInfo=function(){return this._rangeInfo},t.prototype.getModel=function(){return this._model},t.prototype.getRect=function(){return this._rect},t.prototype.getCellWidth=function(){return this._sw},t.prototype.getCellHeight=function(){return this._sh},t.prototype.getOrient=function(){return this._orient},t.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},t.prototype.getDateInfo=function(e){e=jo(e);var n=e.getFullYear(),r=e.getMonth()+1,a=r<10?"0"+r:""+r,i=e.getDate(),o=i<10?"0"+i:""+i,s=e.getDay();return s=Math.abs((s+7-this.getFirstDayOfWeek())%7),{y:n+"",m:a,d:o,day:s,time:e.getTime(),formatedDate:n+"-"+a+"-"+o,date:e}},t.prototype.getNextNDay=function(e,n){return n=n||0,n===0?this.getDateInfo(e):(e=new Date(this.getDateInfo(e).time),e.setDate(e.getDate()+n),this.getDateInfo(e))},t.prototype.update=function(e,n){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var r=this._rangeInfo.weeks||1,a=["width","height"],i=this._model.getCellSize().slice(),o=this._model.getBoxLayoutParams(),s=this._orient==="horizontal"?[r,7]:[7,r];q([0,1],function(f){c(i,f)&&(o[a[f]]=i[f]*s[f])});var l={width:n.getWidth(),height:n.getHeight()},u=this._rect=ka(o,l);q([0,1],function(f){c(i,f)||(i[f]=u[a[f]]/s[f])});function c(f,d){return f[d]!=null&&f[d]!=="auto"}this._sw=i[0],this._sh=i[1]},t.prototype.dataToPoint=function(e,n){st(e)&&(e=e[0]),n==null&&(n=!0);var r=this.getDateInfo(e),a=this._rangeInfo,i=r.formatedDate;if(n&&!(r.time>=a.start.time&&r.time<a.end.time+Vk))return[NaN,NaN];var o=r.day,s=this._getRangeInfo([a.start.time,i]).nthWeek;return this._orient==="vertical"?[this._rect.x+o*this._sw+this._sw/2,this._rect.y+s*this._sh+this._sh/2]:[this._rect.x+s*this._sw+this._sw/2,this._rect.y+o*this._sh+this._sh/2]},t.prototype.pointToData=function(e){var n=this.pointToDate(e);return n&&n.time},t.prototype.dataToRect=function(e,n){var r=this.dataToPoint(e,n);return{contentShape:{x:r[0]-(this._sw-this._lineWidth)/2,y:r[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:r,tl:[r[0]-this._sw/2,r[1]-this._sh/2],tr:[r[0]+this._sw/2,r[1]-this._sh/2],br:[r[0]+this._sw/2,r[1]+this._sh/2],bl:[r[0]-this._sw/2,r[1]+this._sh/2]}},t.prototype.pointToDate=function(e){var n=Math.floor((e[0]-this._rect.x)/this._sw)+1,r=Math.floor((e[1]-this._rect.y)/this._sh)+1,a=this._rangeInfo.range;return this._orient==="vertical"?this._getDateByWeeksAndDay(r,n-1,a):this._getDateByWeeksAndDay(n,r-1,a)},t.prototype.convertToPixel=function(e,n,r){var a=X7(n);return a===this?a.dataToPoint(r):null},t.prototype.convertFromPixel=function(e,n,r){var a=X7(n);return a===this?a.pointToData(r):null},t.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},t.prototype._initRangeOption=function(){var e=this._model.get("range"),n;if(st(e)&&e.length===1&&(e=e[0]),st(e))n=e;else{var r=e.toString();if(/^\d{4}$/.test(r)&&(n=[r+"-01-01",r+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(r)){var a=this.getDateInfo(r),i=a.date;i.setMonth(i.getMonth()+1);var o=this.getNextNDay(i,-1);n=[a.formatedDate,o.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(r)&&(n=[r,r])}if(!n)return e;var s=this._getRangeInfo(n);return s.start.time>s.end.time&&n.reverse(),n},t.prototype._getRangeInfo=function(e){var n=[this.getDateInfo(e[0]),this.getDateInfo(e[1])],r;n[0].time>n[1].time&&(r=!0,n.reverse());var a=Math.floor(n[1].time/Vk)-Math.floor(n[0].time/Vk)+1,i=new Date(n[0].time),o=i.getDate(),s=n[1].date.getDate();i.setDate(o+a-1);var l=i.getDate();if(l!==s)for(var u=i.getTime()-n[1].time>0?1:-1;(l=i.getDate())!==s&&(i.getTime()-n[1].time)*u>0;)a-=u,i.setDate(l-u);var c=Math.floor((a+n[0].day+6)/7),f=r?-c+1:c-1;return r&&n.reverse(),{range:[n[0].formatedDate,n[1].formatedDate],start:n[0],end:n[1],allDay:a,weeks:c,nthWeek:f,fweek:n[0].day,lweek:n[1].day}},t.prototype._getDateByWeeksAndDay=function(e,n,r){var a=this._getRangeInfo(r);if(e>a.weeks||e===0&&n<a.fweek||e===a.weeks&&n>a.lweek)return null;var i=(e-1)*7-a.fweek+n,o=new Date(a.start.time);return o.setDate(+a.start.d+i),this.getDateInfo(o)},t.create=function(e,n){var r=[];return e.eachComponent("calendar",function(a){var i=new t(a);r.push(i),a.coordinateSystem=i}),e.eachSeries(function(a){a.get("coordinateSystem")==="calendar"&&(a.coordinateSystem=r[a.get("calendarIndex")||0])}),r},t.dimensions=["time","value"],t}();function X7(t){var e=t.calendarModel,n=t.seriesModel,r=e?e.coordinateSystem:n?n.coordinateSystem:null;return r}const VNt=ONt;function NNt(t){t.registerComponentModel(kNt),t.registerComponentView(LNt),t.registerCoordinateSystem("calendar",VNt)}function INt(t,e){var n=t.existing;if(e.id=t.keyInfo.id,!e.type&&n&&(e.type=n.type),e.parentId==null){var r=e.parentOption;r?e.parentId=r.id:n&&(e.parentId=n.parentId)}e.parentOption=null}function q7(t,e){var n;return q(e,function(r){t[r]!=null&&t[r]!=="auto"&&(n=!0)}),n}function BNt(t,e,n){var r=et({},n),a=t[e],i=n.$action||"merge";i==="merge"?a?(hn(a,r,!0),Zf(a,r,{ignoreSize:!0}),Ioe(n,a),Mx(n,a),Mx(n,a,"shape"),Mx(n,a,"style"),Mx(n,a,"extra"),n.clipPath=a.clipPath):t[e]=r:i==="replace"?t[e]=r:i==="remove"&&a&&(t[e]=null)}var tfe=["transition","enterFrom","leaveTo"],$Nt=tfe.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function Mx(t,e,n){if(n&&(!t[n]&&e[n]&&(t[n]={}),t=t[n],e=e[n]),!(!t||!e))for(var r=n?tfe:$Nt,a=0;a<r.length;a++){var i=r[a];t[i]==null&&e[i]!=null&&(t[i]=e[i])}}function PNt(t,e){if(t&&(t.hv=e.hv=[q7(e,["left","right"]),q7(e,["top","bottom"])],t.type==="group")){var n=t,r=e;n.width==null&&(n.width=r.width=0),n.height==null&&(n.height=r.height=0)}}var FNt=function(t){Fe(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.preventAutoZ=!0,n}return e.prototype.mergeOption=function(n,r){var a=this.option.elements;this.option.elements=null,t.prototype.mergeOption.call(this,n,r),this.option.elements=a},e.prototype.optionUpdated=function(n,r){var a=this.option,i=(r?a:n).elements,o=a.elements=r?[]:a.elements,s=[];this._flatten(i,s,null);var l=bie(o,s,"normalMerge"),u=this._elOptionsToUpdate=[];q(l,function(c,f){var d=c.newOption;d&&(u.push(d),INt(c,d),BNt(o,f,d),PNt(o[f],d))},this),a.elements=or(o,function(c){return c&&delete c.$action,c!=null})},e.prototype._flatten=function(n,r,a){q(n,function(i){if(i){a&&(i.parentOption=a),r.push(i);var o=i.children;o&&o.length&&this._flatten(o,r,i),delete i.children}},this)},e.prototype.useElOptionsToUpdate=function(){var n=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,n},e.type="graphic",e.defaultOption={elements:[]},e}(On),Z7={path:null,compoundPath:null,group:en,image:si,text:Bn},ls=Gn(),zNt=function(t){Fe(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.init=function(){this._elMap=Gt()},e.prototype.render=function(n,r,a){n!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=n,this._updateElements(n),this._relocate(n,a)},e.prototype._updateElements=function(n){var r=n.useElOptionsToUpdate();if(r){var a=this._elMap,i=this.group,o=n.get("z"),s=n.get("zlevel");q(r,function(l){var u=Ia(l.id,null),c=u!=null?a.get(u):null,f=Ia(l.parentId,null),d=f!=null?a.get(f):i,h=l.type,p=l.style;h==="text"&&p&&l.hv&&l.hv[1]&&(p.textVerticalAlign=p.textBaseline=p.verticalAlign=p.align=null);var v=l.textContent,g=l.textConfig;if(p&&Vce(p,h,!!g,!!v)){var y=Nce(p,h,!0);!g&&y.textConfig&&(g=l.textConfig=y.textConfig),!v&&y.textContent&&(v=y.textContent)}var m=UNt(l),S=l.$action||"merge",w=S==="merge",C=S==="replace";if(w){var _=!c,x=c;_?x=Q7(u,d,l.type,a):(x&&(ls(x).isNew=!1),Pce(x)),x&&(G_(x,m,n,{isInit:_}),J7(x,l,o,s))}else if(C){W_(c,l,a,n);var T=Q7(u,d,l.type,a);T&&(G_(T,m,n,{isInit:!0}),J7(T,l,o,s))}else S==="remove"&&(Bce(c,l),W_(c,l,a,n));var M=a.get(u);if(M&&v)if(w){var E=M.getTextContent();E?E.attr(v):M.setTextContent(new Bn(v))}else C&&M.setTextContent(new Bn(v));if(M){var A=l.clipPath;if(A){var k=A.type,L=void 0,_=!1;if(w){var I=M.getClipPath();_=!I||ls(I).type!==k,L=_?E3(k):I}else C&&(_=!0,L=E3(k));M.setClipPath(L),G_(L,A,n,{isInit:_}),LC(L,A.keyframeAnimation,n)}var P=ls(M);M.setTextConfig(g),P.option=l,GNt(M,n,l),O0({el:M,componentModel:n,itemName:M.name,itemTooltipOption:l.tooltip}),LC(M,l.keyframeAnimation,n)}})}},e.prototype._relocate=function(n,r){for(var a=n.option.elements,i=this.group,o=this._elMap,s=r.getWidth(),l=r.getHeight(),u=["x","y"],c=0;c<a.length;c++){var f=a[c],d=Ia(f.id,null),h=d!=null?o.get(d):null;if(!(!h||!h.isGroup)){var p=h.parent,v=p===i,g=ls(h),y=ls(p);g.width=Mt(g.option.width,v?s:y.width)||0,g.height=Mt(g.option.height,v?l:y.height)||0}}for(var c=a.length-1;c>=0;c--){var f=a[c],d=Ia(f.id,null),h=d!=null?o.get(d):null;if(h){var p=h.parent,y=ls(p),m=p===i?{width:s,height:l}:{width:y.width,height:y.height},S={},w=_E(h,f,m,null,{hv:f.hv,boundingMode:f.bounding},S);if(!ls(h).isNew&&w){for(var C=f.transition,_={},x=0;x<u.length;x++){var T=u[x],M=S[T];C&&(cp(C)||bn(C,T)>=0)?_[T]=M:h[T]=M}jn(h,_,n,0)}else h.attr(S)}}},e.prototype._clear=function(){var n=this,r=this._elMap;r.each(function(a){W_(a,ls(a).option,r,n._lastGraphicModel)}),this._elMap=Gt()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e}(jr);function E3(t){var e=Bt(Z7,t)?Z7[t]:gE(t),n=new e({});return ls(n).type=t,n}function Q7(t,e,n,r){var a=E3(n);return e.add(a),r.set(t,a),ls(a).id=t,ls(a).isNew=!0,a}function W_(t,e,n,r){var a=t&&t.parent;a&&(t.type==="group"&&t.traverse(function(i){W_(i,e,n,r)}),FE(t,e,r),n.removeKey(ls(t).id))}function J7(t,e,n,r){t.isGroup||q([["cursor",As.prototype.cursor],["zlevel",r||0],["z",n||0],["z2",0]],function(a){var i=a[0];Bt(e,i)?t[i]=gn(e[i],a[1]):t[i]==null&&(t[i]=a[1])}),q(Dn(e),function(a){if(a.indexOf("on")===0){var i=e[a];t[a]=jt(i)?i:null}}),Bt(e,"draggable")&&(t.draggable=e.draggable),e.name!=null&&(t.name=e.name),e.id!=null&&(t.id=e.id)}function UNt(t){return t=et({},t),q(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(Noe),function(e){delete t[e]}),t}function GNt(t,e,n){var r=ln(t).eventData;!t.silent&&!t.ignore&&!r&&(r=ln(t).eventData={componentType:"graphic",componentIndex:e.componentIndex,name:t.name}),r&&(r.info=n.info)}function HNt(t){t.registerComponentModel(FNt),t.registerComponentView(zNt),t.registerPreprocessor(function(e){var n=e.graphic;st(n)?!n[0]||!n[0].elements?e.graphic=[{elements:n}]:e.graphic=[e.graphic[0]]:n&&!n.elements&&(e.graphic=[{elements:[n]}])})}var e9=["x","y","radius","angle","single"],WNt=["cartesian2d","polar","singleAxis"];function jNt(t){var e=t.get("coordinateSystem");return bn(WNt,e)>=0}function Ef(t){return t+"Axis"}function KNt(t,e){var n=Gt(),r=[],a=Gt();t.eachComponent({mainType:"dataZoom",query:e},function(c){a.get(c.uid)||s(c)});var i;do i=!1,t.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),r.push(c),u(c)}function l(c){var f=!1;return c.eachTargetAxis(function(d,h){var p=n.get(d);p&&p[h]&&(f=!0)}),f}function u(c){c.eachTargetAxis(function(f,d){(n.get(f)||n.set(f,[]))[d]=!0})}return r}function nfe(t){var e=t.ecModel,n={infoList:[],infoMap:Gt()};return t.eachTargetAxis(function(r,a){var i=e.getComponent(Ef(r),a);if(i){var o=i.getCoordSysModel();if(o){var s=o.uid,l=n.infoMap.get(s);l||(l={model:o,axisModels:[]},n.infoList.push(l),n.infoMap.set(s,l)),l.axisModels.push(i)}}}),n}var Nk=function(){function t(){this.indexList=[],this.indexMap=[]}return t.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},t}(),YNt=function(t){Fe(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n._autoThrottle=!0,n._noTarget=!0,n._rangePropMode=["percent","percent"],n}return e.prototype.init=function(n,r,a){var i=t9(n);this.settledOption=i,this.mergeDefaultAndTheme(n,a),this._doInit(i)},e.prototype.mergeOption=function(n){var r=t9(n);hn(this.option,n,!0),hn(this.settledOption,r,!0),this._doInit(r)},e.prototype._doInit=function(n){var r=this.option;this._setDefaultThrottle(n),this._updateRangeUse(n);var a=this.settledOption;q([["start","startValue"],["end","endValue"]],function(i,o){this._rangePropMode[o]==="value"&&(r[i[0]]=a[i[0]]=null)},this),this._resetTarget()},e.prototype._resetTarget=function(){var n=this.get("orient",!0),r=this._targetAxisInfoMap=Gt(),a=this._fillSpecifiedTargetAxis(r);a?this._orient=n||this._makeAutoOrientByTargetAxis():(this._orient=n||"horizontal",this._fillAutoTargetAxisByOrient(r,this._orient)),this._noTarget=!0,r.each(function(i){i.indexList.length&&(this._noTarget=!1)},this)},e.prototype._fillSpecifiedTargetAxis=function(n){var r=!1;return q(e9,function(a){var i=this.getReferringComponents(Ef(a),Qbt);if(i.specified){r=!0;var o=new Nk;q(i.models,function(s){o.add(s.componentIndex)}),n.set(a,o)}},this),r},e.prototype._fillAutoTargetAxisByOrient=function(n,r){var a=this.ecModel,i=!0;if(i){var o=r==="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)===r}});l(s,"single")}function l(u,c){var f=u[0];if(f){var d=new Nk;if(d.add(f.componentIndex),n.set(c,d),i=!1,c==="x"||c==="y"){var h=f.getReferringComponents("grid",Ca).models[0];h&&q(u,function(p){f.componentIndex!==p.componentIndex&&h===p.getReferringComponents("grid",Ca).models[0]&&d.add(p.componentIndex)})}}}i&&q(e9,function(u){if(i){var c=a.findComponents({mainType:Ef(u),filter:function(d){return d.get("type",!0)==="category"}});if(c[0]){var f=new Nk;f.add(c[0].componentIndex),n.set(u,f),i=!1}}},this)},e.prototype._makeAutoOrientByTargetAxis=function(){var n;return this.eachTargetAxis(function(r){!n&&(n=r)},this),n==="y"?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(n){if(n.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var r=this.ecModel.option;this.option.throttle=r.animation&&r.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(n){var r=this._rangePropMode,a=this.get("rangeMode");q([["start","startValue"],["end","endValue"]],function(i,o){var s=n[i[0]]!=null,l=n[i[1]]!=null;s&&!l?r[o]="percent":!s&&l?r[o]="value":a?r[o]=a[o]:s&&(r[o]="percent")})},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var n;return this.eachTargetAxis(function(r,a){n==null&&(n=this.ecModel.getComponent(Ef(r),a))},this),n},e.prototype.eachTargetAxis=function(n,r){this._targetAxisInfoMap.each(function(a,i){q(a.indexList,function(o){n.call(r,i,o)})})},e.prototype.getAxisProxy=function(n,r){var a=this.getAxisModel(n,r);if(a)return a.__dzAxisProxy},e.prototype.getAxisModel=function(n,r){var a=this._targetAxisInfoMap.get(n);if(a&&a.indexMap[r])return this.ecModel.getComponent(Ef(n),r)},e.prototype.setRawRange=function(n){var r=this.option,a=this.settledOption;q([["start","startValue"],["end","endValue"]],function(i){(n[i[0]]!=null||n[i[1]]!=null)&&(r[i[0]]=a[i[0]]=n[i[0]],r[i[1]]=a[i[1]]=n[i[1]])},this),this._updateRangeUse(n)},e.prototype.setCalculatedRange=function(n){var r=this.option;q(["start","startValue","end","endValue"],function(a){r[a]=n[a]})},e.prototype.getPercentRange=function(){var n=this.findRepresentativeAxisProxy();if(n)return n.getDataPercentWindow()},e.prototype.getValueRange=function(n,r){if(n==null&&r==null){var a=this.findRepresentativeAxisProxy();if(a)return a.getDataValueWindow()}else return this.getAxisProxy(n,r).getDataValueWindow()},e.prototype.findRepresentativeAxisProxy=function(n){if(n)return n.__dzAxisProxy;for(var r,a=this._targetAxisInfoMap.keys(),i=0;i<a.length;i++)for(var o=a[i],s=this._targetAxisInfoMap.get(o),l=0;l<s.indexList.length;l++){var u=this.getAxisProxy(o,s.indexList[l]);if(u.hostedBy(this))return u;r||(r=u)}return r},e.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},e.prototype.getOrient=function(){return this._orient},e.type="dataZoom",e.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],e.defaultOption={z:4,filterMode:"filter",start:0,end:100},e}(On);function t9(t){var e={};return q(["start","end","startValue","endValue","throttle"],function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e}const vb=YNt;var XNt=function(t){Fe(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.type="dataZoom.select",e}(vb);const qNt=XNt;var ZNt=function(t){Fe(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.render=function(n,r,a,i){this.dataZoomModel=n,this.ecModel=r,this.api=a},e.type="dataZoom",e}(jr);const a$=ZNt;var QNt=function(t){Fe(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.type="dataZoom.select",e}(a$);const JNt=QNt;var Fv=q,n9=zo,eIt=function(){function t(e,n,r,a){this._dimName=e,this._axisIndex=n,this.ecModel=a,this._dataZoomModel=r}return t.prototype.hostedBy=function(e){return this._dataZoomModel===e},t.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},t.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},t.prototype.getTargetSeriesModels=function(){var e=[];return this.ecModel.eachSeries(function(n){if(jNt(n)){var r=Ef(this._dimName),a=n.getReferringComponents(r,Ca).models[0];a&&this._axisIndex===a.componentIndex&&e.push(n)}},this),e},t.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},t.prototype.getMinMaxSpan=function(){return Zt(this._minMaxSpan)},t.prototype.calculateDataWindow=function(e){var n=this._dataExtent,r=this.getAxisModel(),a=r.axis.scale,i=this._dataZoomModel.getRangePropMode(),o=[0,100],s=[],l=[],u;Fv(["start","end"],function(d,h){var p=e[d],v=e[d+"Value"];i[h]==="percent"?(p==null&&(p=o[h]),v=a.parse(ir(p,o,n))):(u=!0,v=v==null?n[h]:a.parse(v),p=ir(v,n,o)),l[h]=v==null||isNaN(v)?n[h]:v,s[h]=p==null||isNaN(p)?o[h]:p}),n9(l),n9(s);var c=this._minMaxSpan;u?f(l,s,n,o,!1):f(s,l,o,n,!0);function f(d,h,p,v,g){var y=g?"Span":"ValueSpan";Hp(0,d,p,"all",c["min"+y],c["max"+y]);for(var m=0;m<2;m++)h[m]=ir(d[m],p,v,!0),g&&(h[m]=a.parse(h[m]))}return{valueWindow:l,percentWindow:s}},t.prototype.reset=function(e){if(e===this._dataZoomModel){var n=this.getTargetSeriesModels();this._dataExtent=tIt(this,this._dimName,n),this._updateMinMaxSpan();var r=this.calculateDataWindow(e.settledOption);this._valueWindow=r.valueWindow,this._percentWindow=r.percentWindow,this._setAxisModel()}},t.prototype.filterData=function(e,n){if(e!==this._dataZoomModel)return;var r=this._dimName,a=this.getTargetSeriesModels(),i=e.get("filterMode"),o=this._valueWindow;if(i==="none")return;Fv(a,function(l){var u=l.getData(),c=u.mapDimensionsAll(r);if(c.length){if(i==="weakFilter"){var f=u.getStore(),d=ut(c,function(h){return u.getDimensionIndex(h)},u);u.filterSelf(function(h){for(var p,v,g,y=0;y<c.length;y++){var m=f.get(d[y],h),S=!isNaN(m),w=m<o[0],C=m>o[1];if(S&&!w&&!C)return!0;S&&(g=!0),w&&(p=!0),C&&(v=!0)}return g&&p&&v})}else Fv(c,function(h){if(i==="empty")l.setData(u=u.map(h,function(v){return s(v)?v:NaN}));else{var p={};p[h]=o,u.selectRange(p)}});Fv(c,function(h){u.setApproximateExtent(o,h)})}});function s(l){return l>=o[0]&&l<=o[1]}},t.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},n=this._dataZoomModel,r=this._dataExtent;Fv(["min","max"],function(a){var i=n.get(a+"Span"),o=n.get(a+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?i=ir(r[0]+o,r,[0,100],!0):i!=null&&(o=ir(i,[0,100],r,!0)-r[0]),e[a+"Span"]=i,e[a+"ValueSpan"]=o},this)},t.prototype._setAxisModel=function(){var e=this.getAxisModel(),n=this._percentWindow,r=this._valueWindow;if(n){var a=uI(r,[0,500]);a=Math.min(a,20);var i=e.axis.scale.rawExtentInfo;n[0]!==0&&i.setDeterminedMinMax("min",+r[0].toFixed(a)),n[1]!==100&&i.setDeterminedMinMax("max",+r[1].toFixed(a)),i.freeze()}},t}();function tIt(t,e,n){var r=[1/0,-1/0];Fv(n,function(o){fTt(r,o.getData(),e)});var a=t.getAxisModel(),i=ble(a.axis.scale,a,r).calculate();return[i.min,i.max]}const nIt=eIt;var rIt={getTargetSeries:function(t){function e(a){t.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(o,s){var l=t.getComponent(Ef(o),s);a(o,s,l,i)})})}e(function(a,i,o,s){o.__dzAxisProxy=null});var n=[];e(function(a,i,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new nIt(a,i,s,t),n.push(o.__dzAxisProxy))});var r=Gt();return q(n,function(a){q(a.getTargetSeriesModels(),function(i){r.set(i.uid,i)})}),r},overallReset:function(t,e){t.eachComponent("dataZoom",function(n){n.eachTargetAxis(function(r,a){n.getAxisProxy(r,a).reset(n)}),n.eachTargetAxis(function(r,a){n.getAxisProxy(r,a).filterData(n,e)})}),t.eachComponent("dataZoom",function(n){var r=n.findRepresentativeAxisProxy();if(r){var a=r.getDataPercentWindow(),i=r.getDataValueWindow();n.setCalculatedRange({start:a[0],end:a[1],startValue:i[0],endValue:i[1]})}})}};const aIt=rIt;function iIt(t){t.registerAction("dataZoom",function(e,n){var r=KNt(n,e);q(r,function(a){a.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}var r9=!1;function i$(t){r9||(r9=!0,t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,aIt),iIt(t),t.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function oIt(t){t.registerComponentModel(qNt),t.registerComponentView(JNt),i$(t)}var fs=function(){function t(){}return t}(),rfe={};function zv(t,e){rfe[t]=e}function afe(t){return rfe[t]}var sIt=function(t){Fe(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.optionUpdated=function(){t.prototype.optionUpdated.apply(this,arguments);var n=this.ecModel;q(this.option.feature,function(r,a){var i=afe(a);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(n)),hn(r,i.defaultOption))})},e.type="toolbox",e.layoutMode={type:"box",ignoreSize:!0},e.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"}},e}(On);const lIt=sIt;function uIt(t,e,n){var r=e.getBoxLayoutParams(),a=e.get("padding"),i={width:n.getWidth(),height:n.getHeight()},o=ka(r,i,a);op(e.get("orient"),t,e.get("itemGap"),o.width,o.height),_E(t,r,i,a)}function ife(t,e){var n=Fp(e.get("padding")),r=e.getItemStyle(["color","opacity"]);return r.fill=e.get("backgroundColor"),t=new $n({shape:{x:t.x-n[3],y:t.y-n[0],width:t.width+n[1]+n[3],height:t.height+n[0]+n[2],r:e.get("borderRadius")},style:r,silent:!0,z2:-1}),t}var cIt=function(t){Fe(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.render=function(n,r,a,i){var o=this.group;if(o.removeAll(),!n.get("show"))return;var s=+n.get("itemSize"),l=n.get("orient")==="vertical",u=n.get("feature")||{},c=this._features||(this._features={}),f=[];q(u,function(p,v){f.push(v)}),new pc(this._featureNames||[],f).add(d).update(d).remove(sn(d,null)).execute(),this._featureNames=f;function d(p,v){var g=f[p],y=f[v],m=u[g],S=new yr(m,n,n.ecModel),w;if(i&&i.newTitle!=null&&i.featureName===g&&(m.title=i.newTitle),g&&!y){if(fIt(g))w={onclick:S.option.onclick,featureName:g};else{var C=afe(g);if(!C)return;w=new C}c[g]=w}else if(w=c[y],!w)return;w.uid=N0("toolbox-feature"),w.model=S,w.ecModel=r,w.api=a;var _=w instanceof fs;if(!g&&y){_&&w.dispose&&w.dispose(r,a);return}if(!S.get("show")||_&&w.unusable){_&&w.remove&&w.remove(r,a);return}h(S,w,g),S.setIconStatus=function(x,T){var M=this.option,E=this.iconPaths;M.iconStatus=M.iconStatus||{},M.iconStatus[x]=T,E[x]&&(T==="emphasis"?dc:hc)(E[x])},w instanceof fs&&w.render&&w.render(S,r,a,i)}function h(p,v,g){var y=p.getModel("iconStyle"),m=p.getModel(["emphasis","iconStyle"]),S=v instanceof fs&&v.getIcons?v.getIcons():p.get("icon"),w=p.get("title")||{},C,_;Ot(S)?(C={},C[g]=S):C=S,Ot(w)?(_={},_[g]=w):_=w;var x=p.iconPaths={};q(C,function(T,M){var E=L0(T,{},{x:-s/2,y:-s/2,width:s,height:s});E.setStyle(y.getItemStyle());var A=E.ensureState("emphasis");A.style=m.getItemStyle();var k=new Bn({style:{text:_[M],align:m.get("textAlign"),borderRadius:m.get("textBorderRadius"),padding:m.get("textPadding"),fill:null},ignore:!0});E.setTextContent(k),O0({el:E,componentModel:n,itemName:M,formatterParamsExtra:{title:_[M]}}),E.__title=_[M],E.on("mouseover",function(){var L=m.getItemStyle(),I=l?n.get("right")==null&&n.get("left")!=="right"?"right":"left":n.get("bottom")==null&&n.get("top")!=="bottom"?"bottom":"top";k.setStyle({fill:m.get("textFill")||L.fill||L.stroke||"#000",backgroundColor:m.get("textBackgroundColor")}),E.setTextConfig({position:m.get("textPosition")||I}),k.ignore=!n.get("showTitle"),a.enterEmphasis(this)}).on("mouseout",function(){p.get(["iconStatus",M])!=="emphasis"&&a.leaveEmphasis(this),k.hide()}),(p.get(["iconStatus",M])==="emphasis"?dc:hc)(E),o.add(E),E.on("click",Nt(v.onclick,v,r,a,M)),x[M]=E})}uIt(o,n,a),o.add(ife(o.getBoundingRect(),n)),l||o.eachChild(function(p){var v=p.__title,g=p.ensureState("emphasis"),y=g.textConfig||(g.textConfig={}),m=p.getTextContent(),S=m&&m.ensureState("emphasis");if(S&&!jt(S)&&v){var w=S.style||(S.style={}),C=tS(v,Bn.makeFont(w)),_=p.x+o.x,x=p.y+o.y+s,T=!1;x+C.height>a.getHeight()&&(y.position="top",T=!0);var M=T?-5-C.height:s+10;_+C.width/2>a.getWidth()?(y.position=["100%",M],w.align="right"):_-C.width/2<0&&(y.position=[0,M],w.align="left")}})},e.prototype.updateView=function(n,r,a,i){q(this._features,function(o){o instanceof fs&&o.updateView&&o.updateView(o.model,r,a,i)})},e.prototype.remove=function(n,r){q(this._features,function(a){a instanceof fs&&a.remove&&a.remove(n,r)}),this.group.removeAll()},e.prototype.dispose=function(n,r){q(this._features,function(a){a instanceof fs&&a.dispose&&a.dispose(n,r)})},e.type="toolbox",e}(jr);function fIt(t){return t.indexOf("my")===0}const dIt=cIt;var hIt=function(t){Fe(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.onclick=function(n,r){var a=this.model,i=a.get("name")||n.get("title.0.text")||"echarts",o=r.getZr().painter.getType()==="svg",s=o?"svg":a.get("type",!0)||"png",l=r.getConnectedDataURL({type:s,backgroundColor:a.get("backgroundColor",!0)||n.get("backgroundColor")||"#fff",connectedBackgroundColor:a.get("connectedBackgroundColor"),excludeComponents:a.get("excludeComponents"),pixelRatio:a.get("pixelRatio")}),u=Fn.browser;if(jt(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,p=o?decodeURIComponent(d[1]):d[1];h&&(p=window.atob(p));var v=i+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var g=p.length,y=new Uint8Array(g);g--;)y[g]=p.charCodeAt(g);var m=new Blob([y]);window.navigator.msSaveOrOpenBlob(m,v)}else{var S=document.createElement("iframe");document.body.appendChild(S);var w=S.contentWindow,C=w.document;C.open("image/svg+xml","replace"),C.write(p),C.close(),w.focus(),C.execCommand("SaveAs",!0,v),document.body.removeChild(S)}}else{var _=a.get("lang"),x='<body style="margin:0;"><img src="'+l+'" style="max-width:100%;" title="'+(_&&_[0]||"")+'" /></body>',T=window.open();T.document.write(x),T.document.title=i}},e.getDefaultOption=function(n){var r={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:n.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:n.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return r},e}(fs);const pIt=hIt;var a9="__ec_magicType_stack__",vIt=[["line","bar"],["stack"]],gIt=function(t){Fe(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getIcons=function(){var n=this.model,r=n.get("icon"),a={};return q(n.get("type"),function(i){r[i]&&(a[i]=r[i])}),a},e.getDefaultOption=function(n){var r={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:n.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return r},e.prototype.onclick=function(n,r,a){var i=this.model,o=i.get(["seriesIndex",a]);if(i9[a]){var s={series:[]},l=function(f){var d=f.subType,h=f.id,p=i9[a](d,h,f,i);p&&(Xt(p,f.option),s.series.push(p));var v=f.coordinateSystem;if(v&&v.type==="cartesian2d"&&(a==="line"||a==="bar")){var g=v.getAxesByScale("ordinal")[0];if(g){var y=g.dim,m=y+"Axis",S=f.getReferringComponents(m,Ca).models[0],w=S.componentIndex;s[m]=s[m]||[];for(var C=0;C<=w;C++)s[m][w]=s[m][w]||{};s[m][w].boundaryGap=a==="bar"}}};q(vIt,function(f){bn(f,a)>=0&&q(f,function(d){i.setIconStatus(d,"normal")})}),i.setIconStatus(a,"emphasis"),n.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,c=a;a==="stack"&&(u=hn({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),i.get(["iconStatus",a])!=="emphasis"&&(c="tiled")),r.dispatchAction({type:"changeMagicType",currentType:c,newOption:s,newTitle:u,featureName:"magicType"})}},e}(fs),i9={line:function(t,e,n,r){if(t==="bar")return hn({id:e,type:"line",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},r.get(["option","line"])||{},!0)},bar:function(t,e,n,r){if(t==="line")return hn({id:e,type:"bar",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},r.get(["option","bar"])||{},!0)},stack:function(t,e,n,r){var a=n.get("stack")===a9;if(t==="line"||t==="bar")return r.setIconStatus("stack",a?"normal":"emphasis"),hn({id:e,stack:a?"":a9},r.get(["option","stack"])||{},!0)}};Ml({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(t,e){e.mergeOption(t.newOption)});const yIt=gIt;var zE=new Array(60).join("-"),u0=" ";function mIt(t){var e={},n=[],r=[];return t.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;e[s]||(e[s]={categoryAxis:o,valueAxis:i.getOtherAxis(o),series:[]},r.push({axisDim:o.dim,axisIndex:o.index})),e[s].series.push(a)}else n.push(a)}else n.push(a)}),{seriesGroupByCategoryAxis:e,other:n,meta:r}}function bIt(t){var e=[];return q(t,function(n,r){var a=n.categoryAxis,i=n.valueAxis,o=i.dim,s=[" "].concat(ut(n.series,function(h){return h.name})),l=[a.model.getCategories()];q(n.series,function(h){var p=h.getRawData();l.push(h.getRawData().mapArray(p.mapDimension(o),function(v){return v}))});for(var u=[s.join(u0)],c=0;c<l[0].length;c++){for(var f=[],d=0;d<l.length;d++)f.push(l[d][c]);u.push(f.join(u0))}e.push(u.join(`
  1150. `))}),e.join(`
  1151. `+zE+`
  1152. `)}function SIt(t){return ut(t,function(e){var n=e.getRawData(),r=[e.name],a=[];return n.each(n.dimensions,function(){for(var i=arguments.length,o=arguments[i-1],s=n.getName(o),l=0;l<i-1;l++)a[l]=arguments[l];r.push((s?s+u0:"")+a.join(u0))}),r.join(`
  1153. `)}).join(`
  1154. `+zE+`
  1155. `)}function wIt(t){var e=mIt(t);return{value:or([bIt(e.seriesGroupByCategoryAxis),SIt(e.other)],function(n){return!!n.replace(/[\n\t\s]/g,"")}).join(`
  1156. `+zE+`
  1157. `),meta:e.meta}}function NC(t){return t.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function xIt(t){var e=t.slice(0,t.indexOf(`
  1158. `));if(e.indexOf(u0)>=0)return!0}var M3=new RegExp("["+u0+"]+","g");function _It(t){for(var e=t.split(/\n+/g),n=NC(e.shift()).split(M3),r=[],a=ut(n,function(l){return{name:l,data:[]}}),i=0;i<e.length;i++){var o=NC(e[i]).split(M3);r.push(o.shift());for(var s=0;s<o.length;s++)a[s]&&(a[s].data[i]=o[s])}return{series:a,categories:r}}function CIt(t){for(var e=t.split(/\n+/g),n=NC(e.shift()),r=[],a=0;a<e.length;a++){var i=NC(e[a]);if(i){var o=i.split(M3),s="",l=void 0,u=!1;isNaN(o[0])?(u=!0,s=o[0],o=o.slice(1),r[a]={name:s,value:[]},l=r[a].value):l=r[a]=[];for(var c=0;c<o.length;c++)l.push(+o[c]);l.length===1&&(u?r[a].value=l[0]:r[a]=l[0])}}return{name:n,data:r}}function TIt(t,e){var n=t.split(new RegExp(`
  1159. *`+zE+`
  1160. *`,"g")),r={series:[]};return q(n,function(a,i){if(xIt(a)){var o=_It(a),s=e[i],l=s.axisDim+"Axis";s&&(r[l]=r[l]||[],r[l][s.axisIndex]={data:o.categories},r.series=r.series.concat(o.series))}else{var o=CIt(a);r.series.push(o)}}),r}var EIt=function(t){Fe(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.onclick=function(n,r){setTimeout(function(){r.dispatchAction({type:"hideTip"})});var a=r.getDom(),i=this.model;this._dom&&a.removeChild(this._dom);var o=document.createElement("div");o.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",o.style.backgroundColor=i.get("backgroundColor")||"#fff";var s=document.createElement("h4"),l=i.get("lang")||[];s.innerHTML=l[0]||i.get("title"),s.style.cssText="margin:10px 20px",s.style.color=i.get("textColor");var u=document.createElement("div"),c=document.createElement("textarea");u.style.cssText="overflow:auto";var f=i.get("optionToContent"),d=i.get("contentToOption"),h=wIt(n);if(jt(f)){var p=f(r.getOption());Ot(p)?u.innerHTML=p:e0(p)&&u.appendChild(p)}else{c.readOnly=i.get("readOnly");var v=c.style;v.cssText="display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",v.color=i.get("textColor"),v.borderColor=i.get("textareaBorderColor"),v.backgroundColor=i.get("textareaColor"),c.value=h.value,u.appendChild(c)}var g=h.meta,y=document.createElement("div");y.style.cssText="position:absolute;bottom:5px;left:0;right:0";var m="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",S=document.createElement("div"),w=document.createElement("div");m+=";background-color:"+i.get("buttonColor"),m+=";color:"+i.get("buttonTextColor");var C=this;function _(){a.removeChild(o),C._dom=null}iO(S,"click",_),iO(w,"click",function(){if(d==null&&f!=null||d!=null&&f==null){_();return}var x;try{jt(d)?x=d(u,r.getOption()):x=TIt(c.value,g)}catch(T){throw _(),new Error("Data view format error "+T)}x&&r.dispatchAction({type:"changeDataView",newOption:x}),_()}),S.innerHTML=l[1],w.innerHTML=l[2],w.style.cssText=S.style.cssText=m,!i.get("readOnly")&&y.appendChild(w),y.appendChild(S),o.appendChild(s),o.appendChild(u),o.appendChild(y),u.style.height=a.clientHeight-80+"px",a.appendChild(o),this._dom=o},e.prototype.remove=function(n,r){this._dom&&r.getDom().removeChild(this._dom)},e.prototype.dispose=function(n,r){this.remove(n,r)},e.getDefaultOption=function(n){var r={show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:n.getLocaleModel().get(["toolbox","dataView","title"]),lang:n.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"};return r},e}(fs);function MIt(t,e){return ut(t,function(n,r){var a=e&&e[r];if(qt(a)&&!st(a)){var i=qt(n)&&!st(n);i||(n={value:n});var o=a.name!=null&&n.name==null;return n=Xt(n,a),o&&delete n.name,n}else return n})}Ml({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(t,e){var n=[];q(t.newOption.series,function(r){var a=e.getSeriesByName(r.name)[0];if(!a)n.push(et({type:"scatter"},r));else{var i=a.get("data");n.push({name:r.name,data:MIt(r.data,i)})}}),e.mergeOption(Xt({series:n},t.newOption))});const DIt=EIt;var ofe=q,sfe=Gn();function AIt(t,e){var n=o$(t);ofe(e,function(r,a){for(var i=n.length-1;i>=0;i--){var o=n[i];if(o[a])break}if(i<0){var s=t.queryComponents({mainType:"dataZoom",subType:"select",id:a})[0];if(s){var l=s.getPercentRange();n[0][a]={dataZoomId:a,start:l[0],end:l[1]}}}}),n.push(e)}function kIt(t){var e=o$(t),n=e[e.length-1];e.length>1&&e.pop();var r={};return ofe(n,function(a,i){for(var o=e.length-1;o>=0;o--)if(a=e[o][i],a){r[i]=a;break}}),r}function RIt(t){sfe(t).snapshots=null}function LIt(t){return o$(t).length}function o$(t){var e=sfe(t);return e.snapshots||(e.snapshots=[{}]),e.snapshots}var OIt=function(t){Fe(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.onclick=function(n,r){RIt(n),r.dispatchAction({type:"restore",from:this.uid})},e.getDefaultOption=function(n){var r={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:n.getLocaleModel().get(["toolbox","restore","title"])};return r},e}(fs);Ml({type:"restore",event:"restore",update:"prepareAndUpdate"},function(t,e){e.resetOption("recreate")});const VIt=OIt;var NIt=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],IIt=function(){function t(e,n,r){var a=this;this._targetInfoList=[];var i=o9(n,e);q(BIt,function(o,s){(!r||!r.include||bn(r.include,s)>=0)&&o(i,a._targetInfoList)})}return t.prototype.setOutputRanges=function(e,n){return this.matchOutputRanges(e,n,function(r,a,i){if((r.coordRanges||(r.coordRanges=[])).push(a),!r.coordRange){r.coordRange=a;var o=Ik[r.brushType](0,i,a);r.__rangeOffset={offset:c9[r.brushType](o.values,r.range,[1,1]),xyMinMax:o.xyMinMax}}}),e},t.prototype.matchOutputRanges=function(e,n,r){q(e,function(a){var i=this.findTargetInfo(a,n);i&&i!==!0&&q(i.coordSyses,function(o){var s=Ik[a.brushType](1,o,a.range,!0);r(a,s.values,o,n)})},this)},t.prototype.setInputRanges=function(e,n){q(e,function(r){var a=this.findTargetInfo(r,n);if(r.range=r.range||[],a&&a!==!0){r.panelId=a.panelId;var i=Ik[r.brushType](0,a.coordSys,r.coordRange),o=r.__rangeOffset;r.range=o?c9[r.brushType](i.values,o.offset,$It(i.xyMinMax,o.xyMinMax)):i.values}},this)},t.prototype.makePanelOpts=function(e,n){return ut(this._targetInfoList,function(r){var a=r.getPanelRect();return{panelId:r.panelId,defaultBrushType:n?n(r):null,clipPath:pce(a),isTargetByCursor:gce(a,e,r.coordSysModel),getLinearBrushOtherExtent:vce(a)}})},t.prototype.controlSeries=function(e,n,r){var a=this.findTargetInfo(e,r);return a===!0||a&&bn(a.coordSyses,n.coordinateSystem)>=0},t.prototype.findTargetInfo=function(e,n){for(var r=this._targetInfoList,a=o9(n,e),i=0;i<r.length;i++){var o=r[i],s=e.panelId;if(s){if(o.panelId===s)return o}else for(var l=0;l<s9.length;l++)if(s9[l](a,o))return o}return!0},t}();function D3(t){return t[0]>t[1]&&t.reverse(),t}function o9(t,e){return Fm(t,e,{includeMainTypes:NIt})}var BIt={grid:function(t,e){var n=t.xAxisModels,r=t.yAxisModels,a=t.gridModels,i=Gt(),o={},s={};!n&&!r&&!a||(q(n,function(l){var u=l.axis.grid.model;i.set(u.id,u),o[u.id]=!0}),q(r,function(l){var u=l.axis.grid.model;i.set(u.id,u),s[u.id]=!0}),q(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=[];q(u.getCartesians(),function(f,d){(bn(n,f.getAxis("x").model)>=0||bn(r,f.getAxis("y").model)>=0)&&c.push(f)}),e.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:c[0],coordSyses:c,getPanelRect:l9.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(t,e){q(t.geoModels,function(n){var r=n.coordinateSystem;e.push({panelId:"geo--"+n.id,geoModel:n,coordSysModel:n,coordSys:r,coordSyses:[r],getPanelRect:l9.geo})})}},s9=[function(t,e){var n=t.xAxisModel,r=t.yAxisModel,a=t.gridModel;return!a&&n&&(a=n.axis.grid.model),!a&&r&&(a=r.axis.grid.model),a&&a===e.gridModel},function(t,e){var n=t.geoModel;return n&&n===e.geoModel}],l9={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var t=this.coordSys,e=t.getBoundingRect().clone();return e.applyTransform(Nf(t)),e}},Ik={lineX:sn(u9,0),lineY:sn(u9,1),rect:function(t,e,n,r){var a=t?e.pointToData([n[0][0],n[1][0]],r):e.dataToPoint([n[0][0],n[1][0]],r),i=t?e.pointToData([n[0][1],n[1][1]],r):e.dataToPoint([n[0][1],n[1][1]],r),o=[D3([a[0],i[0]]),D3([a[1],i[1]])];return{values:o,xyMinMax:o}},polygon:function(t,e,n,r){var a=[[1/0,-1/0],[1/0,-1/0]],i=ut(n,function(o){var s=t?e.pointToData(o,r):e.dataToPoint(o,r);return a[0][0]=Math.min(a[0][0],s[0]),a[1][0]=Math.min(a[1][0],s[1]),a[0][1]=Math.max(a[0][1],s[0]),a[1][1]=Math.max(a[1][1],s[1]),s});return{values:i,xyMinMax:a}}};function u9(t,e,n,r){var a=n.getAxis(["x","y"][t]),i=D3(ut([0,1],function(s){return e?a.coordToData(a.toLocalCoord(r[s]),!0):a.toGlobalCoord(a.dataToCoord(r[s]))})),o=[];return o[t]=i,o[1-t]=[NaN,NaN],{values:i,xyMinMax:o}}var c9={lineX:sn(f9,0),lineY:sn(f9,1),rect:function(t,e,n){return[[t[0][0]-n[0]*e[0][0],t[0][1]-n[0]*e[0][1]],[t[1][0]-n[1]*e[1][0],t[1][1]-n[1]*e[1][1]]]},polygon:function(t,e,n){return ut(t,function(r,a){return[r[0]-n[0]*e[a][0],r[1]-n[1]*e[a][1]]})}};function f9(t,e,n,r){return[e[0]-r[t]*n[0],e[1]-r[t]*n[1]]}function $It(t,e){var n=d9(t),r=d9(e),a=[n[0]/r[0],n[1]/r[1]];return isNaN(a[0])&&(a[0]=1),isNaN(a[1])&&(a[1]=1),a}function d9(t){return t?[t[0][1]-t[0][0],t[1][1]-t[1][0]]:[NaN,NaN]}const s$=IIt;var A3=q,PIt=Kbt("toolbox-dataZoom_"),FIt=function(t){Fe(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.render=function(n,r,a,i){this._brushController||(this._brushController=new zB(a.getZr()),this._brushController.on("brush",Nt(this._onBrush,this)).mount()),GIt(n,r,this,i,a),UIt(n,r)},e.prototype.onclick=function(n,r,a){zIt[a].call(this)},e.prototype.remove=function(n,r){this._brushController&&this._brushController.unmount()},e.prototype.dispose=function(n,r){this._brushController&&this._brushController.dispose()},e.prototype._onBrush=function(n){var r=n.areas;if(!n.isEnd||!r.length)return;var a={},i=this.ecModel;this._brushController.updateCovers([]);var o=new s$(l$(this.model),i,{include:["grid"]});o.matchOutputRanges(r,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)}}),AIt(i,a),this._dispatchZoomAction(a);function s(u,c,f){var d=c.getAxis(u),h=d.model,p=l(u,h,i),v=p.findRepresentativeAxisProxy(h).getMinMaxSpan();(v.minValueSpan!=null||v.maxValueSpan!=null)&&(f=Hp(0,f.slice(),d.scale.getExtent(),0,v.minValueSpan,v.maxValueSpan)),p&&(a[p.id]={dataZoomId:p.id,startValue:f[0],endValue:f[1]})}function l(u,c,f){var d;return f.eachComponent({mainType:"dataZoom",subType:"select"},function(h){var p=h.getAxisModel(u,c.componentIndex);p&&(d=h)}),d}},e.prototype._dispatchZoomAction=function(n){var r=[];A3(n,function(a,i){r.push(Zt(a))}),r.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:r})},e.getDefaultOption=function(n){var r={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:n.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return r},e}(fs),zIt={zoom:function(){var t=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:t})},back:function(){this._dispatchZoomAction(kIt(this.ecModel))}};function l$(t){var e={xAxisIndex:t.get("xAxisIndex",!0),yAxisIndex:t.get("yAxisIndex",!0),xAxisId:t.get("xAxisId",!0),yAxisId:t.get("yAxisId",!0)};return e.xAxisIndex==null&&e.xAxisId==null&&(e.xAxisIndex="all"),e.yAxisIndex==null&&e.yAxisId==null&&(e.yAxisIndex="all"),e}function UIt(t,e){t.setIconStatus("back",LIt(e)>1?"emphasis":"normal")}function GIt(t,e,n,r,a){var i=n._isZoomActive;r&&r.type==="takeGlobalCursor"&&(i=r.key==="dataZoomSelect"?r.dataZoomSelectActive:!1),n._isZoomActive=i,t.setIconStatus("zoom",i?"emphasis":"normal");var o=new s$(l$(t),e,{include:["grid"]}),s=o.makePanelOpts(a,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});n._brushController.setPanels(s).enableBrush(i&&s.length?{brushType:"auto",brushStyle:t.getModel("brushStyle").getItemStyle()}:!1)}Txt("dataZoom",function(t){var e=t.getComponent("toolbox",0),n=["feature","dataZoom"];if(!e||e.get(n)==null)return;var r=e.getModel(n),a=[],i=l$(r),o=Fm(t,i);A3(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),A3(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,c){var f=l.componentIndex,d={type:"select",$fromToolbox:!0,filterMode:r.get("filterMode",!0)||"filter",id:PIt+u+f};d[c]=f,a.push(d)}return a});const HIt=FIt;function WIt(t){t.registerComponentModel(lIt),t.registerComponentView(dIt),zv("saveAsImage",pIt),zv("magicType",yIt),zv("dataView",DIt),zv("dataZoom",HIt),zv("restore",VIt),wn(oIt)}var jIt=function(t){Fe(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.type="tooltip",e.dependencies=["axisPointer"],e.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}},e}(On);const KIt=jIt;function lfe(t){var e=t.get("confine");return e!=null?!!e:t.get("renderMode")==="richText"}function ufe(t){if(Fn.domSupported){for(var e=document.documentElement.style,n=0,r=t.length;n<r;n++)if(t[n]in e)return t[n]}}var cfe=ufe(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),YIt=ufe(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function ffe(t,e){if(!t)return e;e=NI(e,!0);var n=t.indexOf(e);return t=n===-1?e:"-"+t.slice(0,n)+"-"+e,t.toLowerCase()}function XIt(t,e){var n=t.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(t);return n?e?n[e]:n:null}var qIt=ffe(YIt,"transition"),u$=ffe(cfe,"transform"),ZIt="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(Fn.transform3dSupported?"will-change:transform;":"");function QIt(t){return t=t==="left"?"right":t==="right"?"left":t==="top"?"bottom":"top",t}function JIt(t,e,n){if(!Ot(n)||n==="inside")return"";var r=t.get("backgroundColor"),a=t.get("borderWidth");e=Cp(e);var i=QIt(n),o=Math.max(Math.round(a)*1.5,6),s="",l=u$+":",u;bn(["left","right"],i)>-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 p=e+" solid "+a+"px;",v=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+p,"border-right:"+p,"background-color:"+r+";"];return'<div style="'+v.join("")+'"></div>'}function eBt(t,e){var n="cubic-bezier(0.23,1,0.32,1)",r=" "+t/2+"s "+n,a="opacity"+r+",visibility"+r;return e||(r=" "+t+"s "+n,a+=Fn.transformSupported?","+u$+r:",left"+r+",top"+r),qIt+":"+a}function h9(t,e,n){var r=t.toFixed(0)+"px",a=e.toFixed(0)+"px";if(!Fn.transformSupported)return n?"top:"+a+";left:"+r+";":[["top",a],["left",r]];var i=Fn.transform3dSupported,o="translate"+(i?"3d":"")+"("+r+","+a+(i?",0":"")+")";return n?"top:0;left:0;"+u$+":"+o+";":[["top",0],["left",0],[cfe,o]]}function tBt(t){var e=[],n=t.get("fontSize"),r=t.getTextColor();r&&e.push("color:"+r),e.push("font:"+t.getFont()),n&&e.push("line-height:"+Math.round(n*3/2)+"px");var a=t.get("textShadowColor"),i=t.get("textShadowBlur")||0,o=t.get("textShadowOffsetX")||0,s=t.get("textShadowOffsetY")||0;return a&&i&&e.push("text-shadow:"+o+"px "+s+"px "+i+"px "+a),q(["decoration","align"],function(l){var u=t.get(l);u&&e.push("text-"+l+":"+u)}),e.join(";")}function nBt(t,e,n){var r=[],a=t.get("transitionDuration"),i=t.get("backgroundColor"),o=t.get("shadowBlur"),s=t.get("shadowColor"),l=t.get("shadowOffsetX"),u=t.get("shadowOffsetY"),c=t.getModel("textStyle"),f=vse(t,"html"),d=l+"px "+u+"px "+o+"px "+s;return r.push("box-shadow:"+d),e&&a&&r.push(eBt(a,n)),i&&r.push("background-color:"+i),q(["width","color","radius"],function(h){var p="border-"+h,v=NI(p),g=t.get(v);g!=null&&r.push(p+":"+g+(h==="color"?"":"px"))}),r.push(tBt(c)),f!=null&&r.push("padding:"+Fp(f).join("px ")+"px"),r.join(";")+";"}function p9(t,e,n,r,a){var i=e&&e.painter;if(n){var o=i&&i.getViewportRoot();o&&f1t(t,o,document.body,r,a)}else{t[0]=r,t[1]=a;var s=i&&i.getViewportRootOffset();s&&(t[0]+=s.offsetLeft,t[1]+=s.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var rBt=function(){function t(e,n,r){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,Fn.wxa)return null;var a=document.createElement("div");a.domBelongToZr=!0,this.el=a;var i=this._zr=n.getZr(),o=this._appendToBody=r&&r.appendToBody;p9(this._styleCoord,i,o,n.getWidth()/2,n.getHeight()/2),o?document.body.appendChild(a):e.appendChild(a),this._container=e;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();as(c,l,!0),u.dispatch("mousemove",l)}},a.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return t.prototype.update=function(e){var n=this._container,r=XIt(n,"position"),a=n.style;a.position!=="absolute"&&r!=="absolute"&&(a.position="relative");var i=e.get("alwaysShowContent");i&&this._moveIfResized(),this._alwaysShowContent=i,this.el.className=e.get("className")||""},t.prototype.show=function(e,n){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var r=this.el,a=r.style,i=this._styleCoord;r.innerHTML?a.cssText=ZIt+nBt(e,!this._firstShow,this._longHide)+h9(i[0],i[1],!0)+("border-color:"+Cp(n)+";")+(e.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):a.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(e,n,r,a,i){var o=this.el;if(e==null){o.innerHTML="";return}var s="";if(Ot(i)&&r.get("trigger")==="item"&&!lfe(r)&&(s=JIt(r,a,i)),Ot(e))o.innerHTML=e+s;else if(e){o.innerHTML="",st(e)||(e=[e]);for(var l=0;l<e.length;l++)e0(e[l])&&e[l].parentNode!==o&&o.appendChild(e[l]);if(s&&o.childNodes.length){var u=document.createElement("div");u.innerHTML=s,o.appendChild(u)}}},t.prototype.setEnterable=function(e){this._enterable=e},t.prototype.getSize=function(){var e=this.el;return[e.offsetWidth,e.offsetHeight]},t.prototype.moveTo=function(e,n){var r=this._styleCoord;if(p9(r,this._zr,this._appendToBody,e,n),r[0]!=null&&r[1]!=null){var a=this.el.style,i=h9(r[0],r[1]);q(i,function(o){a[o[0]]=o[1]})}},t.prototype._moveIfResized=function(){var e=this._styleCoord[2],n=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),n*this._zr.getHeight())},t.prototype.hide=function(){var e=this,n=this.el.style;n.visibility="hidden",n.opacity="0",Fn.transform3dSupported&&(n.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return e._longHide=!0},500)},t.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(Nt(this.hide,this),e)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this.el.parentNode.removeChild(this.el)},t}();const aBt=rBt;var iBt=function(){function t(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),g9(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return t.prototype.update=function(e){var n=e.get("alwaysShowContent");n&&this._moveIfResized(),this._alwaysShowContent=n},t.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},t.prototype.setContent=function(e,n,r,a,i){var o=this;qt(e)&&tr(""),this.el&&this._zr.remove(this.el);var s=r.getModel("textStyle");this.el=new Bn({style:{rich:n.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:a,textShadowColor:s.get("textShadowColor"),fill:r.get(["textStyle","color"]),padding:vse(r,"richText"),verticalAlign:"top",align:"left"},z:r.get("z")}),q(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=r.get(u)}),q(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(u){o.el.style[u]=s.get(u)||0}),this._zr.add(this.el);var l=this;this.el.on("mouseover",function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0}),this.el.on("mouseout",function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1})},t.prototype.setEnterable=function(e){this._enterable=e},t.prototype.getSize=function(){var e=this.el,n=this.el.getBoundingRect(),r=v9(e.style);return[n.width+r.left+r.right,n.height+r.top+r.bottom]},t.prototype.moveTo=function(e,n){var r=this.el;if(r){var a=this._styleCoord;g9(a,this._zr,e,n),e=a[0],n=a[1];var i=r.style,o=of(i.borderWidth||0),s=v9(i);r.x=e+o+s.left,r.y=n+o+s.top,r.markRedraw()}},t.prototype._moveIfResized=function(){var e=this._styleCoord[2],n=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),n*this._zr.getHeight())},t.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},t.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(Nt(this.hide,this),e)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this._zr.remove(this.el)},t}();function of(t){return Math.max(0,t)}function v9(t){var e=of(t.shadowBlur||0),n=of(t.shadowOffsetX||0),r=of(t.shadowOffsetY||0);return{left:of(e-n),right:of(e+n),top:of(e-r),bottom:of(e+r)}}function g9(t,e,n,r){t[0]=n,t[1]=r,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}const oBt=iBt;var sBt=new $n({shape:{x:-1,y:-1,width:2,height:2}}),lBt=function(t){Fe(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.init=function(n,r){if(!(Fn.node||!r.getDom())){var a=n.getComponent("tooltip"),i=this._renderMode=eSt(a.get("renderMode"));this._tooltipContent=i==="richText"?new oBt(r):new aBt(r.getDom(),r,{appendToBody:a.get("appendToBody",!0)})}},e.prototype.render=function(n,r,a){if(!(Fn.node||!a.getDom())){this.group.removeAll(),this._tooltipModel=n,this._ecModel=r,this._api=a;var i=this._tooltipContent;i.update(n),i.setEnterable(n.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&n.get("transitionDuration")?z0(this,"_updatePosition",50,"fixRate"):rb(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var n=this._tooltipModel,r=n.get("triggerOn");Yce("itemTooltip",this._api,Nt(function(a,i,o){r!=="none"&&(r.indexOf(a)>=0?this._tryShow(i,o):a==="leave"&&this._hide(o))},this))},e.prototype._keepShow=function(){var n=this._tooltipModel,r=this._ecModel,a=this._api,i=n.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(n,r,a,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(n,r,a,i){if(!(i.from===this.uid||Fn.node||!a.getDom())){var o=y9(i,a);this._ticket="";var s=i.dataByCoordSys,l=dBt(i,r,a);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:i.position,positionDefault:"bottom"},o)}else if(i.tooltip&&i.x!=null&&i.y!=null){var c=sBt;c.x=i.x,c.y=i.y,c.update(),ln(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(n,r,a,i))return;var f=Xce(i,r),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))}},e.prototype.manuallyHideTip=function(n,r,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(y9(i,a))},e.prototype._manuallyAxisShowTip=function(n,r,a,i){var o=i.seriesIndex,s=i.dataIndex,l=r.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=r.getSeriesByIndex(o);if(u){var c=u.getData(),f=Fy([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}}},e.prototype._tryShow=function(n,r){var a=n.target,i=this._tooltipModel;if(i){this._lastX=n.offsetX,this._lastY=n.offsetY;var o=n.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,n);else if(a){this._lastDataByCoordSys=null;var s,l;Gh(a,function(u){if(ln(u).dataIndex!=null)return s=u,!0;if(ln(u).tooltipConfig!=null)return l=u,!0},!0),s?this._showSeriesItemTooltip(n,s,r):l?this._showComponentItemTooltip(n,l,r):this._hide(r)}else this._lastDataByCoordSys=null,this._hide(r)}},e.prototype._showOrMove=function(n,r){var a=n.get("showDelay");r=Nt(r,this),clearTimeout(this._showTimout),a>0?this._showTimout=setTimeout(r,a):r()},e.prototype._showAxisTooltip=function(n,r){var a=this._ecModel,i=this._tooltipModel,o=[r.offsetX,r.offsetY],s=Fy([r.tooltipOption],i),l=this._renderMode,u=[],c=Ya("section",{blocks:[],noHeader:!0}),f=[],d=new wA;q(n,function(m){q(m.dataByAxis,function(S){var w=a.getComponent(S.axisDim+"Axis",S.axisIndex),C=S.value;if(!(!w||C==null)){var _=Wce(C,w.axis,a,S.seriesDataIndices,S.valueLabelOpt),x=Ya("section",{header:_,noHeader:!vs(_),sortBlocks:!0,blocks:[]});c.blocks.push(x),q(S.seriesDataIndices,function(T){var M=a.getSeriesByIndex(T.seriesIndex),E=T.dataIndexInside,A=M.getDataParams(E);if(!(A.dataIndex<0)){A.axisDim=S.axisDim,A.axisIndex=S.axisIndex,A.axisType=S.axisType,A.axisId=S.axisId,A.axisValue=fB(w.axis,{value:C}),A.axisValueLabel=_,A.marker=d.makeTooltipMarker("item",Cp(A.color),l);var k=rG(M.formatTooltip(E,!0,null)),L=k.frag;if(L){var I=Fy([M],i).get("valueFormatter");x.blocks.push(I?et({valueFormatter:I},L):L)}k.text&&f.push(k.text),u.push(A)}})}})}),c.blocks.reverse(),f.reverse();var h=r.position,p=s.get("order"),v=uG(c,d,l,p,a.get("useUTC"),s.get("textStyle"));v&&f.unshift(v);var g=l==="richText"?`
  1161. `:"<br/>",y=f.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(n,u)?this._updatePosition(s,h,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,y,u,Math.random()+"",o[0],o[1],h,null,d)})},e.prototype._showSeriesItemTooltip=function(n,r,a){var i=this._ecModel,o=ln(r),s=o.seriesIndex,l=i.getSeriesByIndex(s),u=o.dataModel||l,c=o.dataIndex,f=o.dataType,d=u.getData(f),h=this._renderMode,p=n.positionDefault,v=Fy([d.getItemModel(c),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,p?{position:p}:null),g=v.get("trigger");if(!(g!=null&&g!=="item")){var y=u.getDataParams(c,f),m=new wA;y.marker=m.makeTooltipMarker("item",Cp(y.color),h);var S=rG(u.formatTooltip(c,!1,f)),w=v.get("order"),C=v.get("valueFormatter"),_=S.frag,x=_?uG(C?et({valueFormatter:C},_):_,m,h,w,i.get("useUTC"),v.get("textStyle")):S.text,T="item_"+u.name+"_"+c;this._showOrMove(v,function(){this._showTooltipContent(v,x,y,T,n.offsetX,n.offsetY,n.position,n.target,m)}),a({type:"showTip",dataIndexInside:c,dataIndex:d.getRawIndex(c),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(n,r,a){var i=ln(r),o=i.tooltipConfig,s=o.option||{};if(Ot(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=n.positionDefault,d=Fy(u,this._tooltipModel,f?{position:f}:null),h=d.get("content"),p=Math.random()+"",v=new wA;this._showOrMove(d,function(){var g=Zt(d.get("formatterParams")||{});this._showTooltipContent(d,h,g,p,n.offsetX,n.offsetY,n.position,r,v)}),a({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(n,r,a,i,o,s,l,u,c){if(this._ticket="",!(!n.get("showContent")||!n.get("show"))){var f=this._tooltipContent;f.setEnterable(n.get("enterable"));var d=n.get("formatter");l=l||n.get("position");var h=r,p=this._getNearestPoint([o,s],a,n.get("trigger"),n.get("borderColor")),v=p.color;if(d)if(Ot(d)){var g=n.ecModel.get("useUTC"),y=st(a)?a[0]:a,m=y&&y.axisType&&y.axisType.indexOf("time")>=0;h=d,m&&(h=uS(y.axisValue,h,g)),h=II(h,a,!0)}else if(jt(d)){var S=Nt(function(w,C){w===this._ticket&&(f.setContent(C,c,n,v,l),this._updatePosition(n,l,o,s,f,a,u))},this);this._ticket=i,h=d(a,i,S)}else h=d;f.setContent(h,c,n,v,l),f.show(n,v),this._updatePosition(n,l,o,s,f,a,u)}},e.prototype._getNearestPoint=function(n,r,a,i){if(a==="axis"||st(r))return{color:i||(this._renderMode==="html"?"#fff":"none")};if(!st(r))return{color:i||r.color||r.borderColor}},e.prototype._updatePosition=function(n,r,a,i,o,s,l){var u=this._api.getWidth(),c=this._api.getHeight();r=r||n.get("position");var f=o.getSize(),d=n.get("align"),h=n.get("verticalAlign"),p=l&&l.getBoundingRect().clone();if(l&&p.applyTransform(l.transform),jt(r)&&(r=r([a,i],s,o.el,p,{viewSize:[u,c],contentSize:f.slice()})),st(r))a=Mt(r[0],u),i=Mt(r[1],c);else if(qt(r)){var v=r;v.width=f[0],v.height=f[1];var g=ka(v,{width:u,height:c});a=g.x,i=g.y,d=null,h=null}else if(Ot(r)&&l){var y=fBt(r,p,f,n.get("borderWidth"));a=y[0],i=y[1]}else{var y=uBt(a,i,o,u,c,d?null:20,h?null:20);a=y[0],i=y[1]}if(d&&(a-=m9(d)?f[0]/2:d==="right"?f[0]:0),h&&(i-=m9(h)?f[1]/2:h==="bottom"?f[1]:0),lfe(n)){var y=cBt(a,i,o,u,c);a=y[0],i=y[1]}o.moveTo(a,i)},e.prototype._updateContentNotChangedOnAxis=function(n,r){var a=this._lastDataByCoordSys,i=this._cbParamsList,o=!!a&&a.length===n.length;return o&&q(a,function(s,l){var u=s.dataByAxis||[],c=n[l]||{},f=c.dataByAxis||[];o=o&&u.length===f.length,o&&q(u,function(d,h){var p=f[h]||{},v=d.seriesDataIndices||[],g=p.seriesDataIndices||[];o=o&&d.value===p.value&&d.axisType===p.axisType&&d.axisId===p.axisId&&v.length===g.length,o&&q(v,function(y,m){var S=g[m];o=o&&y.seriesIndex===S.seriesIndex&&y.dataIndex===S.dataIndex}),i&&q(d.seriesDataIndices,function(y){var m=y.seriesIndex,S=r[m],w=i[m];S&&w&&w.data!==S.data&&(o=!1)})})}),this._lastDataByCoordSys=n,this._cbParamsList=r,!!o},e.prototype._hide=function(n){this._lastDataByCoordSys=null,n({type:"hideTip",from:this.uid})},e.prototype.dispose=function(n,r){Fn.node||!r.getDom()||(rb(this,"_updatePosition"),this._tooltipContent.dispose(),C3("itemTooltip",r))},e.type="tooltip",e}(jr);function Fy(t,e,n){var r=e.ecModel,a;n?(a=new yr(n,r,r),a=new yr(e.option,a,r)):a=e;for(var i=t.length-1;i>=0;i--){var o=t[i];o&&(o instanceof yr&&(o=o.get("tooltip",!0)),Ot(o)&&(o={formatter:o}),o&&(a=new yr(o,a,r)))}return a}function y9(t,e){return t.dispatchAction||Nt(e.dispatchAction,e)}function uBt(t,e,n,r,a,i,o){var s=n.getSize(),l=s[0],u=s[1];return i!=null&&(t+l+i+2>r?t-=l+i:t+=i),o!=null&&(e+u+o>a?e-=u+o:e+=o),[t,e]}function cBt(t,e,n,r,a){var i=n.getSize(),o=i[0],s=i[1];return t=Math.min(t+o,r)-o,e=Math.min(e+s,a)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}function fBt(t,e,n,r){var a=n[0],i=n[1],o=Math.ceil(Math.SQRT2*r)+8,s=0,l=0,u=e.width,c=e.height;switch(t){case"inside":s=e.x+u/2-a/2,l=e.y+c/2-i/2;break;case"top":s=e.x+u/2-a/2,l=e.y-i-o;break;case"bottom":s=e.x+u/2-a/2,l=e.y+c+o;break;case"left":s=e.x-a-o,l=e.y+c/2-i/2;break;case"right":s=e.x+u+o,l=e.y+c/2-i/2}return[s,l]}function m9(t){return t==="center"||t==="middle"}function dBt(t,e,n){var r=pI(t).queryOptionMap,a=r.keys()[0];if(!(!a||a==="series")){var i=nS(e,a,r.get(a),{useDefault:!1,enableAll:!1,enableNone:!1}),o=i.models[0];if(o){var s=n.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var c=ln(u).tooltipConfig;if(c&&c.name===t.name)return l=u,!0}),l)return{componentMainType:a,componentIndex:o.componentIndex,el:l}}}}const hBt=lBt;function pBt(t){wn(SS),t.registerComponentModel(KIt),t.registerComponentView(hBt),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},fa),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},fa)}var vBt=["rect","polygon","keep","clear"];function gBt(t,e){var n=mr(t?t.brush:[]);if(n.length){var r=[];q(n,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(r=r.concat(u))});var a=t&&t.toolbox;st(a)&&(a=a[0]),a||(a={feature:{}},t.toolbox=[a]);var i=a.feature||(a.feature={}),o=i.brush||(i.brush={}),s=o.type||(o.type=[]);s.push.apply(s,r),yBt(s),e&&!s.length&&s.push.apply(s,vBt)}}function yBt(t){var e={};q(t,function(n){e[n]=1}),t.length=0,q(e,function(n,r){t.push(r)})}var b9=q;function S9(t){if(t){for(var e in t)if(t.hasOwnProperty(e))return!0}}function k3(t,e,n){var r={};return b9(e,function(i){var o=r[i]=a();b9(t[i],function(s,l){if(gi.isValidType(l)){var u={type:l,visual:s};n&&n(u,i),o[l]=new gi(u),l==="opacity"&&(u=Zt(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new gi(u))}})}),r;function a(){var i=function(){};i.prototype.__hidden=i.prototype;var o=new i;return o}}function dfe(t,e,n){var r;q(n,function(a){e.hasOwnProperty(a)&&S9(e[a])&&(r=!0)}),r&&q(n,function(a){e.hasOwnProperty(a)&&S9(e[a])?t[a]=Zt(e[a]):delete t[a]})}function mBt(t,e,n,r,a,i){var o={};q(t,function(f){var d=gi.prepareVisualTypes(e[f]);o[f]=d});var s;function l(f){return YI(n,s,f)}function u(f,d){Tse(n,s,f,d)}i==null?n.each(c):n.each([i],c);function c(f,d){s=i==null?f:d;var h=n.getRawDataItem(s);if(!(h&&h.visualMap===!1))for(var p=r.call(a,f),v=e[p],g=o[p],y=0,m=g.length;y<m;y++){var S=g[y];v[S]&&v[S].applyVisual(f,l,u)}}}function bBt(t,e,n,r){var a={};return q(t,function(i){var o=gi.prepareVisualTypes(e[i]);a[i]=o}),{progress:function(o,s){var l;r!=null&&(l=s.getDimensionIndex(r));function u(C){return YI(s,f,C)}function c(C,_){Tse(s,f,C,_)}for(var f,d=s.getStore();(f=o.next())!=null;){var h=s.getRawDataItem(f);if(!(h&&h.visualMap===!1))for(var p=r!=null?d.get(l,f):f,v=n(p),g=e[v],y=a[v],m=0,S=y.length;m<S;m++){var w=y[m];g[w]&&g[w].applyVisual(p,u,c)}}}}}function SBt(t){var e=t.brushType,n={point:function(r){return w9[e].point(r,n,t)},rect:function(r){return w9[e].rect(r,n,t)}};return n}var w9={lineX:x9(0),lineY:x9(1),rect:{point:function(t,e,n){return t&&n.boundingRect.contain(t[0],t[1])},rect:function(t,e,n){return t&&n.boundingRect.intersect(t)}},polygon:{point:function(t,e,n){return t&&n.boundingRect.contain(t[0],t[1])&&Th(n.range,t[0],t[1])},rect:function(t,e,n){var r=n.range;if(!t||r.length<=1)return!1;var a=t.x,i=t.y,o=t.width,s=t.height,l=r[0];if(Th(r,a,i)||Th(r,a+o,i)||Th(r,a,i+s)||Th(r,a+o,i+s)||yn.create(t).contain(l[0],l[1])||sm(a,i,a+o,i,r)||sm(a,i,a,i+s,r)||sm(a+o,i,a+o,i+s,r)||sm(a,i+s,a+o,i+s,r))return!0}}};function x9(t){var e=["x","y"],n=["width","height"];return{point:function(r,a,i){if(r){var o=i.range,s=r[t];return zy(s,o)}},rect:function(r,a,i){if(r){var o=i.range,s=[r[e[t]],r[e[t]]+r[n[t]]];return s[1]<s[0]&&s.reverse(),zy(s[0],o)||zy(s[1],o)||zy(o[0],s)||zy(o[1],s)}}}}function zy(t,e){return e[0]<=t&&t<=e[1]}var _9=["inBrush","outOfBrush"],Bk="__ecBrushSelect",R3="__ecInBrushSelectEvent";function hfe(t){t.eachComponent({mainType:"brush"},function(e){var n=e.brushTargetManager=new s$(e.option,t);n.setInputRanges(e.areas,t)})}function wBt(t,e,n){var r=[],a,i;t.eachComponent({mainType:"brush"},function(o){n&&n.type==="takeGlobalCursor"&&o.setBrushOption(n.key==="brush"?n.brushOption:{brushType:!1})}),hfe(t),t.eachComponent({mainType:"brush"},function(o,s){var l={brushId:o.id,brushIndex:s,brushName:o.name,areas:Zt(o.areas),selected:[]};r.push(l);var u=o.option,c=u.brushLink,f=[],d=[],h=[],p=!1;s||(a=u.throttleType,i=u.throttleDelay);var v=ut(o.areas,function(C){var _=TBt[C.brushType],x=Xt({boundingRect:_?_(C):void 0},C);return x.selectors=SBt(x),x}),g=k3(o.option,_9,function(C){C.mappingMethod="fixed"});st(c)&&q(c,function(C){f[C]=1});function y(C){return c==="all"||!!f[C]}function m(C){return!!C.length}t.eachSeries(function(C,_){var x=h[_]=[];C.subType==="parallel"?S(C,_):w(C,_,x)});function S(C,_){var x=C.coordinateSystem;p=p||x.hasAxisBrushed(),y(_)&&x.eachActiveState(C.getData(),function(T,M){T==="active"&&(d[M]=1)})}function w(C,_,x){if(!(!C.brushSelector||CBt(o,_))&&(q(v,function(M){o.brushTargetManager.controlSeries(M,C,t)&&x.push(M),p=p||m(x)}),y(_)&&m(x))){var T=C.getData();T.each(function(M){C9(C,x,T,M)&&(d[M]=1)})}}t.eachSeries(function(C,_){var x={seriesId:C.id,seriesIndex:_,seriesName:C.name,dataIndex:[]};l.selected.push(x);var T=h[_],M=C.getData(),E=y(_)?function(A){return d[A]?(x.dataIndex.push(M.getRawIndex(A)),"inBrush"):"outOfBrush"}:function(A){return C9(C,T,M,A)?(x.dataIndex.push(M.getRawIndex(A)),"inBrush"):"outOfBrush"};(y(_)?p:m(T))&&mBt(_9,g,M,E)})}),xBt(e,a,i,r,n)}function xBt(t,e,n,r,a){if(a){var i=t.getZr();if(!i[R3]){i[Bk]||(i[Bk]=_Bt);var o=z0(i,Bk,n,e);o(t,r)}}}function _Bt(t,e){if(!t.isDisposed()){var n=t.getZr();n[R3]=!0,t.dispatchAction({type:"brushSelect",batch:e}),n[R3]=!1}}function C9(t,e,n,r){for(var a=0,i=e.length;a<i;a++){var o=e[a];if(t.brushSelector(r,n,o.selectors,o))return!0}}function CBt(t,e){var n=t.option.seriesIndex;return n!=null&&n!=="all"&&(st(n)?bn(n,e)<0:e!==n)}var TBt={rect:function(t){return T9(t.range)},polygon:function(t){for(var e,n=t.range,r=0,a=n.length;r<a;r++){e=e||[[1/0,-1/0],[1/0,-1/0]];var i=n[r];i[0]<e[0][0]&&(e[0][0]=i[0]),i[0]>e[0][1]&&(e[0][1]=i[0]),i[1]<e[1][0]&&(e[1][0]=i[1]),i[1]>e[1][1]&&(e[1][1]=i[1])}return e&&T9(e)}};function T9(t){return new yn(t[0][0],t[1][0],t[0][1]-t[0][0],t[1][1]-t[1][0])}var EBt=function(t){Fe(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.init=function(n,r){this.ecModel=n,this.api=r,this.model,(this._brushController=new zB(r.getZr())).on("brush",Nt(this._onBrush,this)).mount()},e.prototype.render=function(n,r,a,i){this.model=n,this._updateController(n,r,a,i)},e.prototype.updateTransform=function(n,r,a,i){hfe(r),this._updateController(n,r,a,i)},e.prototype.updateVisual=function(n,r,a,i){this.updateTransform(n,r,a,i)},e.prototype.updateView=function(n,r,a,i){this._updateController(n,r,a,i)},e.prototype._updateController=function(n,r,a,i){(!i||i.$from!==n.id)&&this._brushController.setPanels(n.brushTargetManager.makePanelOpts(a)).enableBrush(n.brushOption).updateCovers(n.areas.slice())},e.prototype.dispose=function(){this._brushController.dispose()},e.prototype._onBrush=function(n){var r=this.model.id,a=this.model.brushTargetManager.setOutputRanges(n.areas,this.ecModel);(!n.isEnd||n.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:r,areas:Zt(a),$from:r}),n.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:r,areas:Zt(a),$from:r})},e.type="brush",e}(jr);const MBt=EBt;var DBt="#ddd",ABt=function(t){Fe(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.areas=[],n.brushOption={},n}return e.prototype.optionUpdated=function(n,r){var a=this.option;!r&&dfe(a,n,["inBrush","outOfBrush"]);var i=a.inBrush=a.inBrush||{};a.outOfBrush=a.outOfBrush||{color:DBt},i.hasOwnProperty("liftZ")||(i.liftZ=5)},e.prototype.setAreas=function(n){n&&(this.areas=ut(n,function(r){return E9(this.option,r)},this))},e.prototype.setBrushOption=function(n){this.brushOption=E9(this.option,n),this.brushType=this.brushOption.brushType},e.type="brush",e.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],e.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},e}(On);function E9(t,e){return hn({brushType:t.brushType,brushMode:t.brushMode,transformable:t.transformable,brushStyle:new yr(t.brushStyle).getItemStyle(),removeOnClick:t.removeOnClick,z:t.z},e,!0)}const kBt=ABt;var RBt=["rect","polygon","lineX","lineY","keep","clear"],LBt=function(t){Fe(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.render=function(n,r,a){var i,o,s;r.eachComponent({mainType:"brush"},function(l){i=l.brushType,o=l.brushOption.brushMode||"single",s=s||!!l.areas.length}),this._brushType=i,this._brushMode=o,q(n.get("type",!0),function(l){n.setIconStatus(l,(l==="keep"?o==="multiple":l==="clear"?s:l===i)?"emphasis":"normal")})},e.prototype.updateView=function(n,r,a){this.render(n,r,a)},e.prototype.getIcons=function(){var n=this.model,r=n.get("icon",!0),a={};return q(n.get("type",!0),function(i){r[i]&&(a[i]=r[i])}),a},e.prototype.onclick=function(n,r,a){var i=this._brushType,o=this._brushMode;a==="clear"?(r.dispatchAction({type:"axisAreaSelect",intervals:[]}),r.dispatchAction({type:"brush",command:"clear",areas:[]})):r.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:a==="keep"?i:i===a?!1:a,brushMode:a==="keep"?o==="multiple"?"single":"multiple":o}})},e.getDefaultOption=function(n){var r={show:!0,type:RBt.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:n.getLocaleModel().get(["toolbox","brush","title"])};return r},e}(fs);const OBt=LBt;function VBt(t){t.registerComponentView(MBt),t.registerComponentModel(kBt),t.registerPreprocessor(gBt),t.registerVisual(t.PRIORITY.VISUAL.BRUSH,wBt),t.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(e,n){n.eachComponent({mainType:"brush",query:e},function(r){r.setAreas(e.areas)})}),t.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},fa),t.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},fa),zv("brush",OBt)}var NBt=function(t){Fe(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode={type:"box",ignoreSize:!0},n}return e.type="title",e.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"}},e}(On),IBt=function(t){Fe(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.render=function(n,r,a){if(this.group.removeAll(),!!n.get("show")){var i=this.group,o=n.getModel("textStyle"),s=n.getModel("subtextStyle"),l=n.get("textAlign"),u=gn(n.get("textBaseline"),n.get("textVerticalAlign")),c=new Bn({style:Dr(o,{text:n.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),f=c.getBoundingRect(),d=n.get("subtext"),h=new Bn({style:Dr(s,{text:d,fill:s.getTextColor(),y:f.height+n.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),p=n.get("link"),v=n.get("sublink"),g=n.get("triggerEvent",!0);c.silent=!p&&!g,h.silent=!v&&!g,p&&c.on("click",function(){lC(p,"_"+n.get("target"))}),v&&h.on("click",function(){lC(v,"_"+n.get("subtarget"))}),ln(c).eventData=ln(h).eventData=g?{componentType:"title",componentIndex:n.componentIndex}:null,i.add(c),d&&i.add(h);var y=i.getBoundingRect(),m=n.getBoxLayoutParams();m.width=y.width,m.height=y.height;var S=ka(m,{width:a.getWidth(),height:a.getHeight()},n.get("padding"));l||(l=n.get("left")||n.get("right"),l==="middle"&&(l="center"),l==="right"?S.x+=S.width:l==="center"&&(S.x+=S.width/2)),u||(u=n.get("top")||n.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?S.y+=S.height:u==="middle"&&(S.y+=S.height/2),u=u||"top"),i.x=S.x,i.y=S.y,i.markRedraw();var w={align:l,verticalAlign:u};c.setStyle(w),h.setStyle(w),y=i.getBoundingRect();var C=S.margin,_=n.getItemStyle(["color","opacity"]);_.fill=n.get("backgroundColor");var x=new $n({shape:{x:y.x-C[3],y:y.y-C[0],width:y.width+C[1]+C[3],height:y.height+C[0]+C[2],r:n.get("borderRadius")},style:_,subPixelOptimize:!0,silent:!0});i.add(x)}},e.type="title",e}(jr);function BBt(t){t.registerComponentModel(NBt),t.registerComponentView(IBt)}var $Bt=function(t){Fe(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode="box",n}return e.prototype.init=function(n,r,a){this.mergeDefaultAndTheme(n,a),this._initData()},e.prototype.mergeOption=function(n){t.prototype.mergeOption.apply(this,arguments),this._initData()},e.prototype.setCurrentIndex=function(n){n==null&&(n=this.option.currentIndex);var r=this._data.count();this.option.loop?n=(n%r+r)%r:(n>=r&&(n=r-1),n<0&&(n=0)),this.option.currentIndex=n},e.prototype.getCurrentIndex=function(){return this.option.currentIndex},e.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},e.prototype.setPlayState=function(n){this.option.autoPlay=!!n},e.prototype.getPlayState=function(){return!!this.option.autoPlay},e.prototype._initData=function(){var n=this.option,r=n.data||[],a=n.axisType,i=this._names=[],o;a==="category"?(o=[],q(r,function(u,c){var f=Ia(D0(u),""),d;qt(u)?(d=Zt(u),d.value=c):d=c,o.push(d),i.push(f)})):o=r;var s={category:"ordinal",time:"time",value:"number"}[a]||"number",l=this._data=new Oi([{name:"value",type:s}],this);l.initData(o,i)},e.prototype.getData=function(){return this._data},e.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},e.type="timeline",e.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:[]},e}(On);const M9=$Bt;var pfe=function(t){Fe(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.type="timeline.slider",e.defaultOption=hd(M9.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:[]}),e}(M9);ha(pfe,HI.prototype);const PBt=pfe;var FBt=function(t){Fe(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.type="timeline",e}(jr);const zBt=FBt;var UBt=function(t){Fe(e,t);function e(n,r,a,i){var o=t.call(this,n,r,a)||this;return o.type=i||"value",o}return e.prototype.getLabelModel=function(){return this.model.getModel("label")},e.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},e}(Vs);const GBt=UBt;var $k=Math.PI,D9=Gn(),HBt=function(t){Fe(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.init=function(n,r){this.api=r},e.prototype.render=function(n,r,a){if(this.model=n,this.api=a,this.ecModel=r,this.group.removeAll(),n.get("show",!0)){var i=this._layout(n,a),o=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(i,n);n.formatTooltip=function(u){var c=l.scale.getLabel({value:u});return Ya("nameValue",{noName:!0,value:c})},q(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](i,o,l,n)},this),this._renderAxisLabel(i,s,l,n),this._position(i,n)}this._doPlayStop(),this._updateTicksStatus()},e.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},e.prototype.dispose=function(){this._clearTimer()},e.prototype._layout=function(n,r){var a=n.get(["label","position"]),i=n.get("orient"),o=jBt(n,r),s;a==null||a==="auto"?s=i==="horizontal"?o.y+o.height/2<r.getHeight()/2?"-":"+":o.x+o.width/2<r.getWidth()/2?"+":"-":Ot(a)?s={horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[i][a]:s=a;var l={horizontal:"center",vertical:s>=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},c={horizontal:0,vertical:$k/2},f=i==="vertical"?o.height:o.width,d=n.getModel("controlStyle"),h=d.get("show",!0),p=h?d.get("itemSize"):0,v=h?d.get("itemGap"):0,g=p+v,y=n.get(["label","rotate"])||0;y=y*$k/180;var m,S,w,C=d.get("position",!0),_=h&&d.get("showPlayBtn",!0),x=h&&d.get("showPrevBtn",!0),T=h&&d.get("showNextBtn",!0),M=0,E=f;C==="left"||C==="bottom"?(_&&(m=[0,0],M+=g),x&&(S=[M,0],M+=g),T&&(w=[E-p,0],E-=g)):(_&&(m=[E-p,0],E-=g),x&&(S=[0,0],M+=g),T&&(w=[E-p,0],E-=g));var A=[M,E];return n.get("inverse")&&A.reverse(),{viewRect:o,mainLength:f,orient:i,rotation:c[i],labelRotation:y,labelPosOpt:s,labelAlign:n.get(["label","align"])||l[i],labelBaseline:n.get(["label","verticalAlign"])||n.get(["label","baseline"])||u[i],playPosition:m,prevBtnPosition:S,nextBtnPosition:w,axisExtent:A,controlSize:p,controlGap:v}},e.prototype._position=function(n,r){var a=this._mainGroup,i=this._labelGroup,o=n.viewRect;if(n.orient==="vertical"){var s=Wo(),l=o.x,u=o.y+o.height;bl(s,s,[-l,-u]),fd(s,s,-$k/2),bl(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var c=m(o),f=m(a.getBoundingRect()),d=m(i.getBoundingRect()),h=[a.x,a.y],p=[i.x,i.y];p[0]=h[0]=c[0][0];var v=n.labelPosOpt;if(v==null||Ot(v)){var g=v==="+"?0:1;S(h,f,c,1,g),S(p,d,c,1,1-g)}else{var g=v>=0?0:1;S(h,f,c,1,g),p[1]=h[1]+v}a.setPosition(h),i.setPosition(p),a.rotation=i.rotation=n.rotation,y(a),y(i);function y(w){w.originX=c[0][0]-w.x,w.originY=c[1][0]-w.y}function m(w){return[[w.x,w.x+w.width],[w.y,w.y+w.height]]}function S(w,C,_,x,T){w[x]+=_[x][T]-C[x][T]}},e.prototype._createAxis=function(n,r){var a=r.getData(),i=r.get("axisType"),o=WBt(r,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 GBt("value",o,n.axisExtent,i);return l.model=r,l},e.prototype._createGroup=function(n){var r=this[n]=new en;return this.group.add(r),r},e.prototype._renderAxisLine=function(n,r,a,i){var o=a.getExtent();if(i.get(["lineStyle","show"])){var s=new Ga({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:et({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});r.add(s);var l=this._progressLine=new Ga({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:Xt({lineCap:"round",lineWidth:s.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});r.add(l)}},e.prototype._renderAxisTick=function(n,r,a,i){var o=this,s=i.getData(),l=a.scale.getTicks();this._tickSymbols=[],q(l,function(u){var c=a.dataToCoord(u.value),f=s.getItemModel(u.value),d=f.getModel("itemStyle"),h=f.getModel(["emphasis","itemStyle"]),p=f.getModel(["progress","itemStyle"]),v={x:c,y:0,onclick:Nt(o._changeTimeline,o,u.value)},g=A9(f,d,r,v);g.ensureState("emphasis").style=h.getItemStyle(),g.ensureState("progress").style=p.getItemStyle(),Vf(g);var y=ln(g);f.get("tooltip")?(y.dataIndex=u.value,y.dataModel=i):y.dataIndex=y.dataModel=null,o._tickSymbols.push(g)})},e.prototype._renderAxisLabel=function(n,r,a,i){var o=this,s=a.getLabelModel();if(s.get("show")){var l=i.getData(),u=a.getViewLabels();this._tickLabels=[],q(u,function(c){var f=c.tickValue,d=l.getItemModel(f),h=d.getModel("label"),p=d.getModel(["emphasis","label"]),v=d.getModel(["progress","label"]),g=a.dataToCoord(c.tickValue),y=new Bn({x:g,y:0,rotation:n.labelRotation-n.rotation,onclick:Nt(o._changeTimeline,o,f),silent:!1,style:Dr(h,{text:c.formattedLabel,align:n.labelAlign,verticalAlign:n.labelBaseline})});y.ensureState("emphasis").style=Dr(p),y.ensureState("progress").style=Dr(v),r.add(y),Vf(y),D9(y).dataIndex=f,o._tickLabels.push(y)})}},e.prototype._renderControl=function(n,r,a,i){var o=n.controlSize,s=n.rotation,l=i.getModel("controlStyle").getItemStyle(),u=i.getModel(["emphasis","controlStyle"]).getItemStyle(),c=i.getPlayState(),f=i.get("inverse",!0);d(n.nextBtnPosition,"next",Nt(this._changeTimeline,this,f?"-":"+")),d(n.prevBtnPosition,"prev",Nt(this._changeTimeline,this,f?"+":"-")),d(n.playPosition,c?"stop":"play",Nt(this._handlePlayClick,this,!c),!0);function d(h,p,v,g){if(h){var y=Sl(gn(i.get(["controlStyle",p+"BtnSize"]),o),o),m=[0,-y/2,y,y],S=KBt(i,p+"Icon",m,{x:h[0],y:h[1],originX:o/2,originY:0,rotation:g?-s:0,rectHover:!0,style:l,onclick:v});S.ensureState("emphasis").style=u,r.add(S),Vf(S)}}},e.prototype._renderCurrentPointer=function(n,r,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=Nt(u._handlePointerDrag,u),f.ondragend=Nt(u._handlePointerDragend,u),k9(f,u._progressLine,s,a,i,!0)},onUpdate:function(f){k9(f,u._progressLine,s,a,i)}};this._currentPointer=A9(l,l,this._mainGroup,{},this._currentPointer,c)},e.prototype._handlePlayClick=function(n){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:n,from:this.uid})},e.prototype._handlePointerDrag=function(n,r,a){this._clearTimer(),this._pointerChangeTimeline([a.offsetX,a.offsetY])},e.prototype._handlePointerDragend=function(n){this._pointerChangeTimeline([n.offsetX,n.offsetY],!0)},e.prototype._pointerChangeTimeline=function(n,r){var a=this._toAxisCoord(n)[0],i=this._axis,o=zo(i.getExtent().slice());a>o[1]&&(a=o[1]),a<o[0]&&(a=o[0]),this._currentPointer.x=a,this._currentPointer.markRedraw();var s=this._progressLine;s&&(s.shape.x2=a,s.dirty());var l=this._findNearestTick(a),u=this.model;(r||l!==u.getCurrentIndex()&&u.get("realtime"))&&this._changeTimeline(l)},e.prototype._doPlayStop=function(){var n=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(function(){var r=n.model;n._changeTimeline(r.getCurrentIndex()+(r.get("rewind",!0)?-1:1))},this.model.get("playInterval")))},e.prototype._toAxisCoord=function(n){var r=this._mainGroup.getLocalTransform();return gl(n,r,!0)},e.prototype._findNearestTick=function(n){var r=this.model.getData(),a=1/0,i,o=this._axis;return r.each(["value"],function(s,l){var u=o.dataToCoord(s),c=Math.abs(u-n);c<a&&(a=c,i=l)}),i},e.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},e.prototype._changeTimeline=function(n){var r=this.model.getCurrentIndex();n==="+"?n=r+1:n==="-"&&(n=r-1),this.api.dispatchAction({type:"timelineChange",currentIndex:n,from:this.uid})},e.prototype._updateTicksStatus=function(){var n=this.model.getCurrentIndex(),r=this._tickSymbols,a=this._tickLabels;if(r)for(var i=0;i<r.length;i++)r&&r[i]&&r[i].toggleState("progress",i<n);if(a)for(var i=0;i<a.length;i++)a&&a[i]&&a[i].toggleState("progress",D9(a[i]).dataIndex<=n)},e.type="timeline.slider",e}(zBt);function WBt(t,e){if(e=e||t.get("type"),e)switch(e){case"category":return new sB({ordinalMeta:t.getCategories(),extent:[1/0,-1/0]});case"time":return new yle({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new Qf}}function jBt(t,e){return ka(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()},t.get("padding"))}function KBt(t,e,n,r){var a=r.style,i=L0(t.get(["controlStyle",e]),r||{},new yn(n[0],n[1],n[2],n[3]));return a&&i.setStyle(a),i}function A9(t,e,n,r,a,i){var o=e.get("color");if(a)a.setColor(o),n.add(a),i&&i.onUpdate(a);else{var s=t.get("symbol");a=ba(s,-1,-1,2,2,o),a.setStyle("strokeNoScale",!0),n.add(a),i&&i.onCreate(a)}var l=e.getItemStyle(["color"]);a.setStyle(l),r=hn({rectHover:!0,z2:100},r,!0);var u=U0(t.get("symbolSize"));r.scaleX=u[0]/2,r.scaleY=u[1]/2;var c=zp(t.get("symbolOffset"),u);c&&(r.x=(r.x||0)+c[0],r.y=(r.y||0)+c[1]);var f=t.get("symbolRotate");return r.rotation=(f||0)*Math.PI/180||0,a.attr(r),a.updateTransform(),a}function k9(t,e,n,r,a,i){if(!t.dragging){var o=a.getModel("checkpointStyle"),s=r.dataToCoord(a.getData().get("value",n));if(i||!o.get("animation",!0))t.attr({x:s,y:0}),e&&e.attr({shape:{x2:s}});else{var l={duration:o.get("animationDuration",!0),easing:o.get("animationEasing",!0)};t.stopAnimation(null,!0),t.animateTo({x:s,y:0},l),e&&e.animateTo({shape:{x2:s}},l)}}}const YBt=HBt;function XBt(t){t.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(e,n,r){var a=n.getComponent("timeline");return a&&e.currentIndex!=null&&(a.setCurrentIndex(e.currentIndex),!a.get("loop",!0)&&a.isIndexMax()&&a.getPlayState()&&(a.setPlayState(!1),r.dispatchAction({type:"timelinePlayChange",playState:!1,from:e.from}))),n.resetOption("timeline",{replaceMerge:a.get("replaceMerge",!0)}),Xt({currentIndex:a.option.currentIndex},e)}),t.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(e,n){var r=n.getComponent("timeline");r&&e.playState!=null&&r.setPlayState(e.playState)})}function qBt(t){var e=t&&t.timeline;st(e)||(e=e?[e]:[]),q(e,function(n){n&&ZBt(n)})}function ZBt(t){var e=t.type,n={number:"value",time:"time"};if(n[e]&&(t.axisType=n[e],delete t.type),R9(t),Dh(t,"controlPosition")){var r=t.controlStyle||(t.controlStyle={});Dh(r,"position")||(r.position=t.controlPosition),r.position==="none"&&!Dh(r,"show")&&(r.show=!1,delete r.position),delete t.controlPosition}q(t.data||[],function(a){qt(a)&&!st(a)&&(!Dh(a,"value")&&Dh(a,"name")&&(a.value=a.name),R9(a))})}function R9(t){var e=t.itemStyle||(t.itemStyle={}),n=e.emphasis||(e.emphasis={}),r=t.label||t.label||{},a=r.normal||(r.normal={}),i={normal:1,emphasis:1};q(r,function(o,s){!i[s]&&!Dh(a,s)&&(a[s]=o)}),n.label&&!Dh(r,"emphasis")&&(r.emphasis=n.label,delete n.label)}function Dh(t,e){return t.hasOwnProperty(e)}function QBt(t){t.registerComponentModel(PBt),t.registerComponentView(YBt),t.registerSubTypeDefaulter("timeline",function(){return"slider"}),XBt(t),t.registerPreprocessor(qBt)}function c$(t,e){if(!t)return!1;for(var n=st(t)?t:[t],r=0;r<n.length;r++)if(n[r]&&n[r][e])return!0;return!1}function Dx(t){Sp(t,"label",["show"])}var Ax=Gn(),vfe=function(t){Fe(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.createdBySelf=!1,n}return e.prototype.init=function(n,r,a){this.mergeDefaultAndTheme(n,a),this._mergeOption(n,a,!1,!0)},e.prototype.isAnimationEnabled=function(){if(Fn.node)return!1;var n=this.__hostSeries;return this.getShallow("animation")&&n&&n.isAnimationEnabled()},e.prototype.mergeOption=function(n,r){this._mergeOption(n,r,!1,!1)},e.prototype._mergeOption=function(n,r,a,i){var o=this.mainType;a||r.eachSeries(function(s){var l=s.get(this.mainType,!0),u=Ax(s)[o];if(!l||!l.data){Ax(s)[o]=null;return}u?u._mergeOption(l,r,!0):(i&&Dx(l),q(l.data,function(c){c instanceof Array?(Dx(c[0]),Dx(c[1])):Dx(c)}),u=this.createMarkerModelFromSeries(l,this,r),et(u,{mainType:this.mainType,seriesIndex:s.seriesIndex,name:s.name,createdBySelf:!0}),u.__hostSeries=s),Ax(s)[o]=u},this)},e.prototype.formatTooltip=function(n,r,a){var i=this.getData(),o=this.getRawValue(n),s=i.getName(n);return Ya("section",{header:this.name,blocks:[Ya("nameValue",{name:s,value:o,noName:!s,noValue:o==null})]})},e.prototype.getData=function(){return this._data},e.prototype.setData=function(n){this._data=n},e.getMarkerModelFromSeries=function(n,r){return Ax(n)[r]},e.type="marker",e.dependencies=["series","grid","polar","geo"],e}(On);ha(vfe,HI.prototype);const td=vfe;var JBt=function(t){Fe(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.createMarkerModelFromSeries=function(n,r,a){return new e(n,r,a)},e.type="markPoint",e.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},e}(td);const e$t=JBt;function L3(t){return!(isNaN(parseFloat(t.x))&&isNaN(parseFloat(t.y)))}function t$t(t){return!isNaN(parseFloat(t.x))&&!isNaN(parseFloat(t.y))}function kx(t,e,n,r,a,i){var o=[],s=vc(e,r),l=s?e.getCalculationInfo("stackResultDimension"):r,u=f$(e,l,t),c=e.indicesOfNearest(l,u)[0];o[a]=e.get(n,c),o[i]=e.get(l,c);var f=e.get(r,c),d=ll(e.get(r,c));return d=Math.min(d,20),d>=0&&(o[i]=+o[i].toFixed(d)),[o,f]}var Pk={min:sn(kx,"min"),max:sn(kx,"max"),average:sn(kx,"average"),median:sn(kx,"median")};function gb(t,e){if(e){var n=t.getData(),r=t.coordinateSystem,a=r&&r.dimensions;if(!t$t(e)&&!st(e.coord)&&st(a)){var i=gfe(e,n,r,t);if(e=Zt(e),e.type&&Pk[e.type]&&i.baseAxis&&i.valueAxis){var o=bn(a,i.baseAxis.dim),s=bn(a,i.valueAxis.dim),l=Pk[e.type](n,i.baseDataDim,i.valueDataDim,o,s);e.coord=l[0],e.value=l[1]}else e.coord=[e.xAxis!=null?e.xAxis:e.radiusAxis,e.yAxis!=null?e.yAxis:e.angleAxis]}if(e.coord==null||!st(a))e.coord=[];else for(var u=e.coord,c=0;c<2;c++)Pk[u[c]]&&(u[c]=f$(n,n.mapDimension(a[c]),u[c]));return e}}function gfe(t,e,n,r){var a={};return t.valueIndex!=null||t.valueDim!=null?(a.valueDataDim=t.valueIndex!=null?e.getDimension(t.valueIndex):t.valueDim,a.valueAxis=n.getAxis(n$t(r,a.valueDataDim)),a.baseAxis=n.getOtherAxis(a.valueAxis),a.baseDataDim=e.mapDimension(a.baseAxis.dim)):(a.baseAxis=r.getBaseAxis(),a.valueAxis=n.getOtherAxis(a.baseAxis),a.baseDataDim=e.mapDimension(a.baseAxis.dim),a.valueDataDim=e.mapDimension(a.valueAxis.dim)),a}function n$t(t,e){var n=t.getData().getDimensionInfo(e);return n&&n.coordDim}function yb(t,e){return t&&t.containData&&e.coord&&!L3(e)?t.containData(e.coord):!0}function r$t(t,e,n){return t&&t.containZone&&e.coord&&n.coord&&!L3(e)&&!L3(n)?t.containZone(e.coord,n.coord):!0}function yfe(t,e){return t?function(n,r,a,i){var o=i<2?n.coord&&n.coord[i]:n.value;return Bf(o,e[i])}:function(n,r,a,i){return Bf(n.value,e[i])}}function f$(t,e,n){if(n==="average"){var r=0,a=0;return t.each(e,function(i,o){isNaN(i)||(r+=i,a++)}),r/a}else return n==="median"?t.getMedian(e):t.getDataExtent(e)[n==="max"?1:0]}var Fk=Gn(),a$t=function(t){Fe(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.init=function(){this.markerGroupMap=Gt()},e.prototype.render=function(n,r,a){var i=this,o=this.markerGroupMap;o.each(function(s){Fk(s).keep=!1}),r.eachSeries(function(s){var l=td.getMarkerModelFromSeries(s,i.type);l&&i.renderSeries(s,l,r,a)}),o.each(function(s){!Fk(s).keep&&i.group.remove(s.group)})},e.prototype.markKeep=function(n){Fk(n).keep=!0},e.prototype.toggleBlurSeries=function(n,r){var a=this;q(n,function(i){var o=td.getMarkerModelFromSeries(i,a.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(r?Hie(l):SI(l))})}})},e.type="marker",e}(jr);const d$=a$t;function L9(t,e,n){var r=e.coordinateSystem;t.each(function(a){var i=t.getItemModel(a),o,s=Mt(i.get("x"),n.getWidth()),l=Mt(i.get("y"),n.getHeight());if(!isNaN(s)&&!isNaN(l))o=[s,l];else if(e.getMarkerPosition)o=e.getMarkerPosition(t.getValues(t.dimensions,a));else if(r){var u=t.get(r.dimensions[0],a),c=t.get(r.dimensions[1],a);o=r.dataToPoint([u,c])}isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),t.setItemLayout(a,o)})}var i$t=function(t){Fe(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.updateTransform=function(n,r,a){r.eachSeries(function(i){var o=td.getMarkerModelFromSeries(i,"markPoint");o&&(L9(o.getData(),i,a),this.markerGroupMap.get(i.id).updateLayout())},this)},e.prototype.renderSeries=function(n,r,a,i){var o=n.coordinateSystem,s=n.id,l=n.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new pS),f=o$t(o,n,r);r.setData(f),L9(r.getData(),n,i),f.each(function(d){var h=f.getItemModel(d),p=h.getShallow("symbol"),v=h.getShallow("symbolSize"),g=h.getShallow("symbolRotate"),y=h.getShallow("symbolOffset"),m=h.getShallow("symbolKeepAspect");if(jt(p)||jt(v)||jt(g)||jt(y)){var S=r.getRawValue(d),w=r.getDataParams(d);jt(p)&&(p=p(S,w)),jt(v)&&(v=v(S,w)),jt(g)&&(g=g(S,w)),jt(y)&&(y=y(S,w))}var C=h.getModel("itemStyle").getItemStyle(),_=cS(l,"color");C.fill||(C.fill=_),f.setItemVisual(d,{symbol:p,symbolSize:v,symbolRotate:g,symbolOffset:y,symbolKeepAspect:m,style:C})}),c.updateData(f),this.group.add(c.group),f.eachItemGraphicEl(function(d){d.traverse(function(h){ln(h).dataModel=r})}),this.markKeep(c),c.group.silent=r.get("silent")||n.get("silent")},e.type="markPoint",e}(d$);function o$t(t,e,n){var r;t?r=ut(t&&t.dimensions,function(s){var l=e.getData().getDimensionInfo(e.getData().mapDimension(s))||{};return et(et({},l),{name:s,ordinalMeta:null})}):r=[{name:"value",type:"float"}];var a=new Oi(r,n),i=ut(n.get("data"),sn(gb,e));t&&(i=or(i,sn(yb,t)));var o=yfe(!!t,r);return a.initData(i,null,o),a}const s$t=i$t;function l$t(t){t.registerComponentModel(e$t),t.registerComponentView(s$t),t.registerPreprocessor(function(e){c$(e.series,"markPoint")&&(e.markPoint=e.markPoint||{})})}var u$t=function(t){Fe(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.createMarkerModelFromSeries=function(n,r,a){return new e(n,r,a)},e.type="markLine",e.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"},e}(td);const c$t=u$t;var Rx=Gn(),f$t=function(t,e,n,r){var a=t.getData(),i;if(st(r))i=r;else{var o=r.type;if(o==="min"||o==="max"||o==="average"||o==="median"||r.xAxis!=null||r.yAxis!=null){var s=void 0,l=void 0;if(r.yAxis!=null||r.xAxis!=null)s=e.getAxis(r.yAxis!=null?"y":"x"),l=Ua(r.yAxis,r.xAxis);else{var u=gfe(r,a,e,t);s=u.valueAxis;var c=oB(a,u.valueDataDim);l=f$(a,c,o)}var f=s.dim==="x"?0:1,d=1-f,h=Zt(r),p={coord:[]};h.type=null,h.coord=[],h.coord[d]=-1/0,p.coord[d]=1/0;var v=n.get("precision");v>=0&&Un(l)&&(l=+l.toFixed(Math.min(v,20))),h.coord[f]=p.coord[f]=l,i=[h,p,{type:o,valueIndex:r.valueIndex,value:l}]}else i=[]}var g=[gb(t,i[0]),gb(t,i[1]),et({},i[2])];return g[2].type=g[2].type||null,hn(g[2],g[0]),hn(g[2],g[1]),g};function IC(t){return!isNaN(t)&&!isFinite(t)}function O9(t,e,n,r){var a=1-t,i=r.dimensions[t];return IC(e[a])&&IC(n[a])&&e[t]===n[t]&&r.getAxis(i).containData(e[t])}function d$t(t,e){if(t.type==="cartesian2d"){var n=e[0].coord,r=e[1].coord;if(n&&r&&(O9(1,n,r,t)||O9(0,n,r,t)))return!0}return yb(t,e[0])&&yb(t,e[1])}function zk(t,e,n,r,a){var i=r.coordinateSystem,o=t.getItemModel(e),s,l=Mt(o.get("x"),a.getWidth()),u=Mt(o.get("y"),a.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(r.getMarkerPosition)s=r.getMarkerPosition(t.getValues(t.dimensions,e));else{var c=i.dimensions,f=t.get(c[0],e),d=t.get(c[1],e);s=i.dataToPoint([f,d])}if(Up(i,"cartesian2d")){var h=i.getAxis("x"),p=i.getAxis("y"),c=i.dimensions;IC(t.get(c[0],e))?s[0]=h.toGlobalCoord(h.getExtent()[n?0:1]):IC(t.get(c[1],e))&&(s[1]=p.toGlobalCoord(p.getExtent()[n?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}t.setItemLayout(e,s)}var h$t=function(t){Fe(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.updateTransform=function(n,r,a){r.eachSeries(function(i){var o=td.getMarkerModelFromSeries(i,"markLine");if(o){var s=o.getData(),l=Rx(o).from,u=Rx(o).to;l.each(function(c){zk(l,c,!0,i,a),zk(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)},e.prototype.renderSeries=function(n,r,a,i){var o=n.coordinateSystem,s=n.id,l=n.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new NB);this.group.add(c.group);var f=p$t(o,n,r),d=f.from,h=f.to,p=f.line;Rx(r).from=d,Rx(r).to=h,r.setData(p);var v=r.get("symbol"),g=r.get("symbolSize"),y=r.get("symbolRotate"),m=r.get("symbolOffset");st(v)||(v=[v,v]),st(g)||(g=[g,g]),st(y)||(y=[y,y]),st(m)||(m=[m,m]),f.from.each(function(w){S(d,w,!0),S(h,w,!1)}),p.each(function(w){var C=p.getItemModel(w).getModel("lineStyle").getLineStyle();p.setItemLayout(w,[d.getItemLayout(w),h.getItemLayout(w)]),C.stroke==null&&(C.stroke=d.getItemVisual(w,"style").fill),p.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:C})}),c.updateData(p),f.line.eachItemGraphicEl(function(w){ln(w).dataModel=r,w.traverse(function(C){ln(C).dataModel=r})});function S(w,C,_){var x=w.getItemModel(C);zk(w,C,_,n,i);var T=x.getModel("itemStyle").getItemStyle();T.fill==null&&(T.fill=cS(l,"color")),w.setItemVisual(C,{symbolKeepAspect:x.get("symbolKeepAspect"),symbolOffset:gn(x.get("symbolOffset",!0),m[_?0:1]),symbolRotate:gn(x.get("symbolRotate",!0),y[_?0:1]),symbolSize:gn(x.get("symbolSize"),g[_?0:1]),symbol:gn(x.get("symbol",!0),v[_?0:1]),style:T})}this.markKeep(c),c.group.silent=r.get("silent")||n.get("silent")},e.type="markLine",e}(d$);function p$t(t,e,n){var r;t?r=ut(t&&t.dimensions,function(u){var c=e.getData().getDimensionInfo(e.getData().mapDimension(u))||{};return et(et({},c),{name:u,ordinalMeta:null})}):r=[{name:"value",type:"float"}];var a=new Oi(r,n),i=new Oi(r,n),o=new Oi([],n),s=ut(n.get("data"),sn(f$t,e,t,n));t&&(s=or(s,sn(d$t,t)));var l=yfe(!!t,r);return a.initData(ut(s,function(u){return u[0]}),null,l),i.initData(ut(s,function(u){return u[1]}),null,l),o.initData(ut(s,function(u){return u[2]})),o.hasItemOption=!0,{from:a,to:i,line:o}}const v$t=h$t;function g$t(t){t.registerComponentModel(c$t),t.registerComponentView(v$t),t.registerPreprocessor(function(e){c$(e.series,"markLine")&&(e.markLine=e.markLine||{})})}var y$t=function(t){Fe(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.createMarkerModelFromSeries=function(n,r,a){return new e(n,r,a)},e.type="markArea",e.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},e}(td);const m$t=y$t;var Lx=Gn(),b$t=function(t,e,n,r){var a=r[0],i=r[1];if(!(!a||!i)){var o=gb(t,a),s=gb(t,i),l=o.coord,u=s.coord;l[0]=Ua(l[0],-1/0),l[1]=Ua(l[1],-1/0),u[0]=Ua(u[0],1/0),u[1]=Ua(u[1],1/0);var c=JT([{},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 BC(t){return!isNaN(t)&&!isFinite(t)}function V9(t,e,n,r){var a=1-t;return BC(e[a])&&BC(n[a])}function S$t(t,e){var n=e.coord[0],r=e.coord[1],a={coord:n,x:e.x0,y:e.y0},i={coord:r,x:e.x1,y:e.y1};return Up(t,"cartesian2d")?n&&r&&(V9(1,n,r)||V9(0,n,r))?!0:r$t(t,a,i):yb(t,a)||yb(t,i)}function N9(t,e,n,r,a){var i=r.coordinateSystem,o=t.getItemModel(e),s,l=Mt(o.get(n[0]),a.getWidth()),u=Mt(o.get(n[1]),a.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(r.getMarkerPosition){var c=t.getValues(["x0","y0"],e),f=t.getValues(["x1","y1"],e),d=i.clampData(c),h=i.clampData(f),p=[];n[0]==="x0"?p[0]=d[0]>h[0]?f[0]:c[0]:p[0]=d[0]>h[0]?c[0]:f[0],n[1]==="y0"?p[1]=d[1]>h[1]?f[1]:c[1]:p[1]=d[1]>h[1]?c[1]:f[1],s=r.getMarkerPosition(p,n,!0)}else{var v=t.get(n[0],e),g=t.get(n[1],e),y=[v,g];i.clampData&&i.clampData(y,y),s=i.dataToPoint(y,!0)}if(Up(i,"cartesian2d")){var m=i.getAxis("x"),S=i.getAxis("y"),v=t.get(n[0],e),g=t.get(n[1],e);BC(v)?s[0]=m.toGlobalCoord(m.getExtent()[n[0]==="x0"?0:1]):BC(g)&&(s[1]=S.toGlobalCoord(S.getExtent()[n[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var I9=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],w$t=function(t){Fe(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.updateTransform=function(n,r,a){r.eachSeries(function(i){var o=td.getMarkerModelFromSeries(i,"markArea");if(o){var s=o.getData();s.each(function(l){var u=ut(I9,function(f){return N9(s,l,f,i,a)});s.setItemLayout(l,u);var c=s.getItemGraphicEl(l);c.setShape("points",u)})}},this)},e.prototype.renderSeries=function(n,r,a,i){var o=n.coordinateSystem,s=n.id,l=n.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,{group:new en});this.group.add(c.group),this.markKeep(c);var f=x$t(o,n,r);r.setData(f),f.each(function(d){var h=ut(I9,function(T){return N9(f,d,T,n,i)}),p=o.getAxis("x").scale,v=o.getAxis("y").scale,g=p.getExtent(),y=v.getExtent(),m=[p.parse(f.get("x0",d)),p.parse(f.get("x1",d))],S=[v.parse(f.get("y0",d)),v.parse(f.get("y1",d))];zo(m),zo(S);var w=!(g[0]>m[1]||g[1]<m[0]||y[0]>S[1]||y[1]<S[0]),C=!w;f.setItemLayout(d,{points:h,allClipped:C});var _=f.getItemModel(d).getModel("itemStyle").getItemStyle(),x=cS(l,"color");_.fill||(_.fill=x,Ot(_.fill)&&(_.fill=H1(_.fill,.4))),_.stroke||(_.stroke=x),f.setItemVisual(d,"style",_)}),f.diff(Lx(c).data).add(function(d){var h=f.getItemLayout(d);if(!h.allClipped){var p=new lo({shape:{points:h.points}});f.setItemGraphicEl(d,p),c.group.add(p)}}).update(function(d,h){var p=Lx(c).data.getItemGraphicEl(h),v=f.getItemLayout(d);v.allClipped?p&&c.group.remove(p):(p?jn(p,{shape:{points:v.points}},r,d):p=new lo({shape:{points:v.points}}),f.setItemGraphicEl(d,p),c.group.add(p))}).remove(function(d){var h=Lx(c).data.getItemGraphicEl(d);c.group.remove(h)}).execute(),f.eachItemGraphicEl(function(d,h){var p=f.getItemModel(h),v=f.getItemVisual(h,"style");d.useStyle(f.getItemVisual(h,"style")),Si(d,Ka(p),{labelFetcher:r,labelDataIndex:h,defaultText:f.getName(h)||"",inheritColor:Ot(v.fill)?H1(v.fill,1):"#000"}),bi(d,p),ua(d,null,null,p.get(["emphasis","disabled"])),ln(d).dataModel=r}),Lx(c).data=f,c.group.silent=r.get("silent")||n.get("silent")},e.type="markArea",e}(d$);function x$t(t,e,n){var r,a,i=["x0","y0","x1","y1"];if(t){var o=ut(t&&t.dimensions,function(u){var c=e.getData(),f=c.getDimensionInfo(c.mapDimension(u))||{};return et(et({},f),{name:u,ordinalMeta:null})});a=ut(i,function(u,c){return{name:u,type:o[c%2].type}}),r=new Oi(a,n)}else a=[{name:"value",type:"float"}],r=new Oi(a,n);var s=ut(n.get("data"),sn(b$t,e,t,n));t&&(s=or(s,sn(S$t,t)));var l=t?function(u,c,f,d){var h=u.coord[Math.floor(d/2)][d%2];return Bf(h,a[d])}:function(u,c,f,d){return Bf(u.value,a[d])};return r.initData(s,null,l),r.hasItemOption=!0,r}const _$t=w$t;function C$t(t){t.registerComponentModel(m$t),t.registerComponentView(_$t),t.registerPreprocessor(function(e){c$(e.series,"markArea")&&(e.markArea=e.markArea||{})})}var T$t=function(t,e){if(e==="all")return{type:"all",title:t.getLocaleModel().get(["legend","selector","all"])};if(e==="inverse")return{type:"inverse",title:t.getLocaleModel().get(["legend","selector","inverse"])}},E$t=function(t){Fe(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode={type:"box",ignoreSize:!0},n}return e.prototype.init=function(n,r,a){this.mergeDefaultAndTheme(n,a),n.selected=n.selected||{},this._updateSelector(n)},e.prototype.mergeOption=function(n,r){t.prototype.mergeOption.call(this,n,r),this._updateSelector(n)},e.prototype._updateSelector=function(n){var r=n.selector,a=this.ecModel;r===!0&&(r=n.selector=["all","inverse"]),st(r)&&q(r,function(i,o){Ot(i)&&(i={type:i}),r[o]=hn(i,T$t(a,i.type))})},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var n=this._data;if(n[0]&&this.get("selectedMode")==="single"){for(var r=!1,a=0;a<n.length;a++){var i=n[a].get("name");if(this.isSelected(i)){this.select(i),r=!0;break}}!r&&this.select(n[0].get("name"))}},e.prototype._updateData=function(n){var r=[],a=[];n.eachRawSeries(function(l){var u=l.name;a.push(u);var c;if(l.legendVisualProvider){var f=l.legendVisualProvider,d=f.getAllNames();n.isSeriesFiltered(l)||(a=a.concat(d)),d.length?r=r.concat(d):c=!0}else c=!0;c&&hI(l)&&r.push(l.name)}),this._availableNames=a;var i=this.get("data")||r,o=Gt(),s=ut(i,function(l){return(Ot(l)||Un(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new yr(l,this,this.ecModel))},this);this._data=or(s,function(l){return!!l})},e.prototype.getData=function(){return this._data},e.prototype.select=function(n){var r=this.option.selected,a=this.get("selectedMode");if(a==="single"){var i=this._data;q(i,function(o){r[o.get("name")]=!1})}r[n]=!0},e.prototype.unSelect=function(n){this.get("selectedMode")!=="single"&&(this.option.selected[n]=!1)},e.prototype.toggleSelected=function(n){var r=this.option.selected;r.hasOwnProperty(n)||(r[n]=!0),this[r[n]?"unSelect":"select"](n)},e.prototype.allSelect=function(){var n=this._data,r=this.option.selected;q(n,function(a){r[a.get("name",!0)]=!0})},e.prototype.inverseSelect=function(){var n=this._data,r=this.option.selected;q(n,function(a){var i=a.get("name",!0);r.hasOwnProperty(i)||(r[i]=!0),r[i]=!r[i]})},e.prototype.isSelected=function(n){var r=this.option.selected;return!(r.hasOwnProperty(n)&&!r[n])&&bn(this._availableNames,n)>=0},e.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.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}},e}(On);const O3=E$t;var Tv=sn,V3=q,Ox=en,M$t=function(t){Fe(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.newlineDisabled=!1,n}return e.prototype.init=function(){this.group.add(this._contentGroup=new Ox),this.group.add(this._selectorGroup=new Ox),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(n,r,a){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!n.get("show",!0)){var o=n.get("align"),s=n.get("orient");(!o||o==="auto")&&(o=n.get("left")==="right"&&s==="vertical"?"right":"left");var l=n.get("selector",!0),u=n.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,n,r,a,l,s,u);var c=n.getBoxLayoutParams(),f={width:a.getWidth(),height:a.getHeight()},d=n.get("padding"),h=ka(c,f,d),p=this.layoutInner(n,o,h,i,l,u),v=ka(Xt({width:p.width,height:p.height},c),f,d);this.group.x=v.x-p.x,this.group.y=v.y-p.y,this.group.markRedraw(),this.group.add(this._backgroundEl=ife(p,n))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(n,r,a,i,o,s,l){var u=this.getContentGroup(),c=Gt(),f=r.get("selectedMode"),d=[];a.eachRawSeries(function(h){!h.get("legendHoverLink")&&d.push(h.id)}),V3(r.getData(),function(h,p){var v=h.get("name");if(!this.newlineDisabled&&(v===""||v===`
  1162. `)){var g=new Ox;g.newline=!0,u.add(g);return}var y=a.getSeriesByName(v)[0];if(!c.get(v))if(y){var m=y.getData(),S=m.getVisual("legendLineStyle")||{},w=m.getVisual("legendIcon"),C=m.getVisual("style"),_=this._createItem(y,v,p,h,r,n,S,C,w,f,i);_.on("click",Tv(B9,v,null,i,d)).on("mouseover",Tv(N3,y.name,null,i,d)).on("mouseout",Tv(I3,y.name,null,i,d)),c.set(v,!0)}else a.eachRawSeries(function(x){if(!c.get(v)&&x.legendVisualProvider){var T=x.legendVisualProvider;if(!T.containName(v))return;var M=T.indexOfName(v),E=T.getItemVisual(M,"style"),A=T.getItemVisual(M,"legendIcon"),k=to(E.fill);k&&k[3]===0&&(k[3]=.2,E=et(et({},E),{fill:vl(k,"rgba")}));var L=this._createItem(x,v,p,h,r,n,{},E,A,f,i);L.on("click",Tv(B9,null,v,i,d)).on("mouseover",Tv(N3,null,v,i,d)).on("mouseout",Tv(I3,null,v,i,d)),c.set(v,!0)}},this)},this),o&&this._createSelector(o,r,i,s,l)},e.prototype._createSelector=function(n,r,a,i,o){var s=this.getSelectorGroup();V3(n,function(u){var c=u.type,f=new Bn({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){a.dispatchAction({type:c==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(f);var d=r.getModel("selectorLabel"),h=r.getModel(["emphasis","selectorLabel"]);Si(f,{normal:d,emphasis:h},{defaultText:u.title}),Vf(f)})},e.prototype._createItem=function(n,r,a,i,o,s,l,u,c,f,d){var h=n.visualDrawType,p=o.get("itemWidth"),v=o.get("itemHeight"),g=o.isSelected(r),y=i.get("symbolRotate"),m=i.get("symbolKeepAspect"),S=i.get("icon");c=S||c||"roundRect";var w=D$t(c,i,l,u,h,g,d),C=new Ox,_=i.getModel("textStyle");if(jt(n.getLegendIcon)&&(!S||S==="inherit"))C.add(n.getLegendIcon({itemWidth:p,itemHeight:v,icon:c,iconRotate:y,itemStyle:w.itemStyle,lineStyle:w.lineStyle,symbolKeepAspect:m}));else{var x=S==="inherit"&&n.getData().getVisual("symbol")?y==="inherit"?n.getData().getVisual("symbolRotate"):y:0;C.add(A$t({itemWidth:p,itemHeight:v,icon:c,iconRotate:x,itemStyle:w.itemStyle,lineStyle:w.lineStyle,symbolKeepAspect:m}))}var T=s==="left"?p+5:-5,M=s,E=o.get("formatter"),A=r;Ot(E)&&E?A=E.replace("{name}",r??""):jt(E)&&(A=E(r));var k=g?_.getTextColor():i.get("inactiveColor");C.add(new Bn({style:Dr(_,{text:A,x:T,y:v/2,fill:k,align:M,verticalAlign:"middle"},{inheritColor:k})}));var L=new $n({shape:C.getBoundingRect(),invisible:!0}),I=i.getModel("tooltip");return I.get("show")&&O0({el:L,componentModel:o,itemName:r,itemTooltipOption:I.option}),C.add(L),C.eachChild(function(P){P.silent=!0}),L.silent=!f,this.getContentGroup().add(C),Vf(C),C.__legendDataIndex=a,C},e.prototype.layoutInner=function(n,r,a,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();op(n.get("orient"),l,n.get("itemGap"),a.width,a.height);var c=l.getBoundingRect(),f=[-c.x,-c.y];if(u.markRedraw(),l.markRedraw(),o){op("horizontal",u,n.get("selectorItemGap",!0));var d=u.getBoundingRect(),h=[-d.x,-d.y],p=n.get("selectorButtonGap",!0),v=n.getOrient().index,g=v===0?"width":"height",y=v===0?"height":"width",m=v===0?"y":"x";s==="end"?h[v]+=c[g]+p:f[v]+=d[g]+p,h[1-v]+=c[y]/2-d[y]/2,u.x=h[0],u.y=h[1],l.x=f[0],l.y=f[1];var S={x:0,y:0};return S[g]=c[g]+p+d[g],S[y]=Math.max(c[y],d[y]),S[m]=Math.min(0,d[m]+h[1-v]),S}else return l.x=f[0],l.y=f[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(jr);function D$t(t,e,n,r,a,i,o){function s(g,y){g.lineWidth==="auto"&&(g.lineWidth=y.lineWidth>0?2:0),V3(g,function(m,S){g[S]==="inherit"&&(g[S]=y[S])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),c=t.lastIndexOf("empty",0)===0?"fill":"stroke",f=l.getShallow("decal");u.decal=!f||f==="inherit"?r.decal:a0(f,o),u.fill==="inherit"&&(u.fill=r[a]),u.stroke==="inherit"&&(u.stroke=r[c]),u.opacity==="inherit"&&(u.opacity=(a==="fill"?r:n).opacity),s(u,r);var d=e.getModel("lineStyle"),h=d.getLineStyle();if(s(h,n),u.fill==="auto"&&(u.fill=r.fill),u.stroke==="auto"&&(u.stroke=r.fill),h.stroke==="auto"&&(h.stroke=r.fill),!i){var p=e.get("inactiveBorderWidth"),v=u[c];u.lineWidth=p==="auto"?r.lineWidth>0&&v?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),h.stroke=d.get("inactiveColor"),h.lineWidth=d.get("inactiveWidth")}return{itemStyle:u,lineStyle:h}}function A$t(t){var e=t.icon||"roundRect",n=ba(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill,t.symbolKeepAspect);return n.setStyle(t.itemStyle),n.rotation=(t.iconRotate||0)*Math.PI/180,n.setOrigin([t.itemWidth/2,t.itemHeight/2]),e.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n}function B9(t,e,n,r){I3(t,e,n,r),n.dispatchAction({type:"legendToggleSelect",name:t??e}),N3(t,e,n,r)}function mfe(t){for(var e=t.getZr().storage.getDisplayList(),n,r=0,a=e.length;r<a&&!(n=e[r].states.emphasis);)r++;return n&&n.hoverLayer}function N3(t,e,n,r){mfe(n)||n.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:r})}function I3(t,e,n,r){mfe(n)||n.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:r})}const bfe=M$t;function k$t(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.filterSeries(function(n){for(var r=0;r<e.length;r++)if(!e[r].isSelected(n.name))return!1;return!0})}function Uy(t,e,n){var r={},a=t==="toggleSelected",i;return n.eachComponent("legend",function(o){a&&i!=null?o[i?"select":"unSelect"](e.name):t==="allSelect"||t==="inverseSelect"?o[t]():(o[t](e.name),i=o.isSelected(e.name));var s=o.getData();q(s,function(l){var u=l.get("name");if(!(u===`
  1163. `||u==="")){var c=o.isSelected(u);r.hasOwnProperty(u)?r[u]=r[u]&&c:r[u]=c}})}),t==="allSelect"||t==="inverseSelect"?{selected:r}:{name:e.name,selected:r}}function R$t(t){t.registerAction("legendToggleSelect","legendselectchanged",sn(Uy,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",sn(Uy,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",sn(Uy,"inverseSelect")),t.registerAction("legendSelect","legendselected",sn(Uy,"select")),t.registerAction("legendUnSelect","legendunselected",sn(Uy,"unSelect"))}function Sfe(t){t.registerComponentModel(O3),t.registerComponentView(bfe),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,k$t),t.registerSubTypeDefaulter("legend",function(){return"plain"}),R$t(t)}var L$t=function(t){Fe(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.setScrollDataIndex=function(n){this.option.scrollDataIndex=n},e.prototype.init=function(n,r,a){var i=I0(n);t.prototype.init.call(this,n,r,a),$9(this,n,i)},e.prototype.mergeOption=function(n,r){t.prototype.mergeOption.call(this,n,r),$9(this,this.option,n)},e.type="legend.scroll",e.defaultOption=hd(O3.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),e}(O3);function $9(t,e,n){var r=t.getOrient(),a=[1,1];a[r.index]=0,Zf(e,n,{type:"box",ignoreSize:!!a})}const O$t=L$t;var P9=en,Uk=["width","height"],Gk=["x","y"],V$t=function(t){Fe(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.newlineDisabled=!0,n._currentIndex=0,n}return e.prototype.init=function(){t.prototype.init.call(this),this.group.add(this._containerGroup=new P9),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new P9)},e.prototype.resetInner=function(){t.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(n,r,a,i,o,s,l){var u=this;t.prototype.renderInner.call(this,n,r,a,i,o,s,l);var c=this._controllerGroup,f=r.get("pageIconSize",!0),d=st(f)?f:[f,f];p("pagePrev",0);var h=r.getModel("pageTextStyle");c.add(new Bn({name:"pageText",style:{text:"xx/xx",fill:h.getTextColor(),font:h.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),p("pageNext",1);function p(v,g){var y=v+"DataIndex",m=L0(r.get("pageIcons",!0)[r.getOrient().name][g],{onclick:Nt(u._pageGo,u,y,r,i)},{x:-d[0]/2,y:-d[1]/2,width:d[0],height:d[1]});m.name=v,c.add(m)}},e.prototype.layoutInner=function(n,r,a,i,o,s){var l=this.getSelectorGroup(),u=n.getOrient().index,c=Uk[u],f=Gk[u],d=Uk[1-u],h=Gk[1-u];o&&op("horizontal",l,n.get("selectorItemGap",!0));var p=n.get("selectorButtonGap",!0),v=l.getBoundingRect(),g=[-v.x,-v.y],y=Zt(a);o&&(y[c]=a[c]-v[c]-p);var m=this._layoutContentAndController(n,i,y,u,c,d,h,f);if(o){if(s==="end")g[u]+=m[c]+p;else{var S=v[c]+p;g[u]-=S,m[f]-=S}m[c]+=v[c]+p,g[1-u]+=m[h]+m[d]/2-v[d]/2,m[d]=Math.max(m[d],v[d]),m[h]=Math.min(m[h],v[h]+g[1-u]),l.x=g[0],l.y=g[1],l.markRedraw()}return m},e.prototype._layoutContentAndController=function(n,r,a,i,o,s,l,u){var c=this.getContentGroup(),f=this._containerGroup,d=this._controllerGroup;op(n.get("orient"),c,n.get("itemGap"),i?a.width:null,i?null:a.height),op("horizontal",d,n.get("pageButtonItemGap",!0));var h=c.getBoundingRect(),p=d.getBoundingRect(),v=this._showController=h[o]>a[o],g=[-h.x,-h.y];r||(g[i]=c[u]);var y=[0,0],m=[-p.x,-p.y],S=gn(n.get("pageButtonGap",!0),n.get("itemGap",!0));if(v){var w=n.get("pageButtonPosition",!0);w==="end"?m[i]+=a[o]-p[o]:y[i]+=p[o]+S}m[1-i]+=h[s]/2-p[s]/2,c.setPosition(g),f.setPosition(y),d.setPosition(m);var C={x:0,y:0};if(C[o]=v?a[o]:h[o],C[s]=Math.max(h[s],p[s]),C[l]=Math.min(0,p[l]+m[1-i]),f.__rectSize=a[o],v){var _={x:0,y:0};_[o]=Math.max(a[o]-p[o]-S,0),_[s]=C[s],f.setClipPath(new $n({shape:_})),f.__rectSize=_[o]}else d.eachChild(function(T){T.attr({invisible:!0,silent:!0})});var x=this._getPageInfo(n);return x.pageIndex!=null&&jn(c,{x:x.contentPosition[0],y:x.contentPosition[1]},v?n:null),this._updatePageInfoView(n,x),C},e.prototype._pageGo=function(n,r,a){var i=this._getPageInfo(r)[n];i!=null&&a.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:r.id})},e.prototype._updatePageInfoView=function(n,r){var a=this._controllerGroup;q(["pagePrev","pageNext"],function(c){var f=c+"DataIndex",d=r[f]!=null,h=a.childOfName(c);h&&(h.setStyle("fill",d?n.get("pageIconColor",!0):n.get("pageIconInactiveColor",!0)),h.cursor=d?"pointer":"default")});var i=a.childOfName("pageText"),o=n.get("pageFormatter"),s=r.pageIndex,l=s!=null?s+1:0,u=r.pageCount;i&&o&&i.setStyle("text",Ot(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},e.prototype._getPageInfo=function(n){var r=n.get("scrollDataIndex",!0),a=this.getContentGroup(),i=this._containerGroup.__rectSize,o=n.getOrient().index,s=Uk[o],l=Gk[o],u=this._findTargetItemIndex(r),c=a.children(),f=c[u],d=c.length,h=d?1:0,p={contentPosition:[a.x,a.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!f)return p;var v=w(f);p.contentPosition[o]=-v.s;for(var g=u+1,y=v,m=v,S=null;g<=d;++g)S=w(c[g]),(!S&&m.e>y.s+i||S&&!C(S,y.s))&&(m.i>y.i?y=m:y=S,y&&(p.pageNextDataIndex==null&&(p.pageNextDataIndex=y.i),++p.pageCount)),m=S;for(var g=u-1,y=v,m=v,S=null;g>=-1;--g)S=w(c[g]),(!S||!C(m,S.s))&&y.i<m.i&&(m=y,p.pagePrevDataIndex==null&&(p.pagePrevDataIndex=y.i),++p.pageCount,++p.pageIndex),y=S;return p;function w(_){if(_){var x=_.getBoundingRect(),T=x[l]+_[l];return{s:T,e:T+x[s],i:_.__legendDataIndex}}}function C(_,x){return _.e>=x&&_.s<=x+i}},e.prototype._findTargetItemIndex=function(n){if(!this._showController)return 0;var r,a=this.getContentGroup(),i;return a.eachChild(function(o,s){var l=o.__legendDataIndex;i==null&&l!=null&&(i=s),l===n&&(r=s)}),r??i},e.type="legend.scroll",e}(bfe);const N$t=V$t;function I$t(t){t.registerAction("legendScroll","legendscroll",function(e,n){var r=e.scrollDataIndex;r!=null&&n.eachComponent({mainType:"legend",subType:"scroll",query:e},function(a){a.setScrollDataIndex(r)})})}function B$t(t){wn(Sfe),t.registerComponentModel(O$t),t.registerComponentView(N$t),I$t(t)}function $$t(t){wn(Sfe),wn(B$t)}var P$t=function(t){Fe(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.type="dataZoom.inside",e.defaultOption=hd(vb.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(vb);const F$t=P$t;var h$=Gn();function z$t(t,e,n){h$(t).coordSysRecordMap.each(function(r){var a=r.dataZoomInfoMap.get(e.uid);a&&(a.getRange=n)})}function U$t(t,e){for(var n=h$(t).coordSysRecordMap,r=n.keys(),a=0;a<r.length;a++){var i=r[a],o=n.get(i),s=o.dataZoomInfoMap;if(s){var l=e.uid,u=s.get(l);u&&(s.removeKey(l),s.keys().length||wfe(n,o))}}}function wfe(t,e){if(e){t.removeKey(e.model.uid);var n=e.controller;n&&n.dispose()}}function G$t(t,e){var n={model:e,containsPoint:sn(W$t,e),dispatchAction:sn(H$t,t),dataZoomInfoMap:null,controller:null},r=n.controller=new mS(t.getZr());return q(["pan","zoom","scrollMove"],function(a){r.on(a,function(i){var o=[];n.dataZoomInfoMap.each(function(s){if(i.isAvailableBehavior(s.model.option)){var l=(s.getRange||{})[a],u=l&&l(s.dzReferCoordSysInfo,n.model.mainType,n.controller,i);!s.model.get("disabled",!0)&&u&&o.push({dataZoomId:s.model.id,start:u[0],end:u[1]})}}),o.length&&n.dispatchAction(o)})}),n}function H$t(t,e){t.isDisposed()||t.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:e})}function W$t(t,e,n,r){return t.coordinateSystem.containPoint([n,r])}function j$t(t){var e,n="type_",r={type_true:2,type_move:1,type_false:0,type_undefined:-1},a=!0;return t.each(function(i){var o=i.model,s=o.get("disabled",!0)?!1:o.get("zoomLock",!0)?"move":!0;r[n+s]>r[n+e]&&(e=s),a=a&&o.get("preventDefaultMouseMove",!0)}),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!a}}}function K$t(t){t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,function(e,n){var r=h$(n),a=r.coordSysRecordMap||(r.coordSysRecordMap=Gt());a.each(function(i){i.dataZoomInfoMap=null}),e.eachComponent({mainType:"dataZoom",subType:"inside"},function(i){var o=nfe(i);q(o.infoList,function(s){var l=s.model.uid,u=a.get(l)||a.set(l,G$t(n,s.model)),c=u.dataZoomInfoMap||(u.dataZoomInfoMap=Gt());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){wfe(a,i);return}var c=j$t(l);o.enable(c.controlType,c.opt),o.setPointerChecker(i.containsPoint),z0(i,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var Y$t=function(t){Fe(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="dataZoom.inside",n}return e.prototype.render=function(n,r,a){if(t.prototype.render.apply(this,arguments),n.noTarget()){this._clear();return}this.range=n.getPercentRange(),z$t(a,n,{pan:Nt(Hk.pan,this),zoom:Nt(Hk.zoom,this),scrollMove:Nt(Hk.scrollMove,this)})},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){U$t(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e}(a$),Hk={zoom:function(t,e,n,r){var a=this.range,i=a.slice(),o=t.axisModels[0];if(o){var s=Wk[e](null,[r.originX,r.originY],o,n,t),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/r.scale,0);i[0]=(i[0]-l)*u+l,i[1]=(i[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(Hp(0,i,[0,100],0,c.minSpan,c.maxSpan),this.range=i,a[0]!==i[0]||a[1]!==i[1])return i}},pan:F9(function(t,e,n,r,a,i){var o=Wk[r]([i.oldX,i.oldY],[i.newX,i.newY],e,a,n);return o.signal*(t[1]-t[0])*o.pixel/o.pixelLength}),scrollMove:F9(function(t,e,n,r,a,i){var o=Wk[r]([0,0],[i.scrollDelta,i.scrollDelta],e,a,n);return o.signal*(t[1]-t[0])*i.scrollDelta})};function F9(t){return function(e,n,r,a){var i=this.range,o=i.slice(),s=e.axisModels[0];if(s){var l=t(o,s,e,n,r,a);if(Hp(l,o,[0,100],"all"),this.range=o,i[0]!==o[0]||i[1]!==o[1])return o}}}var Wk={grid:function(t,e,n,r,a){var i=n.axis,o={},s=a.model.coordinateSystem.getRect();return t=t||[0,0],i.dim==="x"?(o.pixel=e[0]-t[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=i.inverse?1:-1):(o.pixel=e[1]-t[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=i.inverse?-1:1),o},polar:function(t,e,n,r,a){var i=n.axis,o={},s=a.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return t=t?s.pointToCoord(t):[0,0],e=s.pointToCoord(e),n.mainType==="radiusAxis"?(o.pixel=e[0]-t[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=i.inverse?1:-1):(o.pixel=e[1]-t[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=i.inverse?-1:1),o},singleAxis:function(t,e,n,r,a){var i=n.axis,o=a.model.coordinateSystem.getRect(),s={};return t=t||[0,0],i.orient==="horizontal"?(s.pixel=e[0]-t[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=i.inverse?1:-1):(s.pixel=e[1]-t[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=i.inverse?-1:1),s}};const X$t=Y$t;function xfe(t){i$(t),t.registerComponentModel(F$t),t.registerComponentView(X$t),K$t(t)}var q$t=function(t){Fe(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=hd(vb.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"}}}),e}(vb);const Z$t=q$t;var Gy=$n,z9=7,Q$t=1,jk=30,J$t=7,Hy="horizontal",U9="vertical",ePt=5,tPt=["line","bar","candlestick","scatter"],nPt={easing:"cubicOut",duration:100,delay:0},rPt=function(t){Fe(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n._displayables={},n}return e.prototype.init=function(n,r){this.api=r,this._onBrush=Nt(this._onBrush,this),this._onBrushEnd=Nt(this._onBrushEnd,this)},e.prototype.render=function(n,r,a,i){if(t.prototype.render.apply(this,arguments),z0(this,"_dispatchZoomAction",n.get("throttle"),"fixRate"),this._orient=n.getOrient(),n.get("show")===!1){this.group.removeAll();return}if(n.noTarget()){this._clear(),this.group.removeAll();return}(!i||i.type!=="dataZoom"||i.from!==this.uid)&&this._buildView(),this._updateView()},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){rb(this,"_dispatchZoomAction");var n=this.api.getZr();n.off("mousemove",this._onBrush),n.off("mouseup",this._onBrushEnd)},e.prototype._buildView=function(){var n=this.group;n.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var r=this._displayables.sliderGroup=new en;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),n.add(r),this._positionGroup()},e.prototype._resetLocation=function(){var n=this.dataZoomModel,r=this.api,a=n.get("brushSelect"),i=a?J$t:0,o=this._findCoordRect(),s={width:r.getWidth(),height:r.getHeight()},l=this._orient===Hy?{right:s.width-o.x-o.width,top:s.height-jk-z9-i,width:o.width,height:jk}:{right:z9,top:o.y,width:jk,height:o.height},u=I0(n.option);q(["right","top","width","height"],function(f){u[f]==="ph"&&(u[f]=l[f])});var c=ka(u,s);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===U9&&this._size.reverse()},e.prototype._positionGroup=function(){var n=this.group,r=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===Hy&&!o?{scaleY:l?1:-1,scaleX:1}:a===Hy&&o?{scaleY:l?1:-1,scaleX:-1}:a===U9&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=n.getBoundingRect([s]);n.x=r.x-u.x,n.y=r.y-u.y,n.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var n=this.dataZoomModel,r=this._size,a=this._displayables.sliderGroup,i=n.get("brushSelect");a.add(new Gy({silent:!0,shape:{x:0,y:0,width:r[0],height:r[1]},style:{fill:n.get("backgroundColor")},z2:-40}));var o=new Gy({shape:{x:0,y:0,width:r[0],height:r[1]},style:{fill:"transparent"},z2:0,onclick:Nt(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)},e.prototype._renderDataShadow=function(){var n=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!n)return;var r=this._size,a=this._shadowSize||[],i=n.series,o=i.getRawData(),s=i.getShadowDim&&i.getShadowDim(),l=s&&o.getDimensionInfo(s)?i.getShadowDim():n.otherDim;if(l==null)return;var u=this._shadowPolygonPts,c=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||r[0]!==a[0]||r[1]!==a[1]){var f=o.getDataExtent(l),d=(f[1]-f[0])*.3;f=[f[0]-d,f[1]+d];var h=[0,r[1]],p=[0,r[0]],v=[[r[0],0],[0,0]],g=[],y=p[1]/(o.count()-1),m=0,S=Math.round(o.count()/r[0]),w;o.each([l],function(M,E){if(S>0&&E%S){m+=y;return}var A=M==null||isNaN(M)||M==="",k=A?0:ir(M,f,h,!0);A&&!w&&E?(v.push([v[v.length-1][0],0]),g.push([g[g.length-1][0],0])):!A&&w&&(v.push([m,0]),g.push([m,0])),v.push([m,k]),g.push([m,k]),m+=y,w=A}),u=this._shadowPolygonPts=v,c=this._shadowPolylinePts=g}this._shadowData=o,this._shadowDim=l,this._shadowSize=[r[0],r[1]];var C=this.dataZoomModel;function _(M){var E=C.getModel(M?"selectedDataBackground":"dataBackground"),A=new en,k=new lo({shape:{points:u},segmentIgnoreThreshold:1,style:E.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),L=new fo({shape:{points:c},segmentIgnoreThreshold:1,style:E.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return A.add(k),A.add(L),A}for(var x=0;x<3;x++){var T=_(x===1);this._displayables.sliderGroup.add(T),this._displayables.dataShadowSegs.push(T)}},e.prototype._prepareDataShadowInfo=function(){var n=this.dataZoomModel,r=n.get("showDataShadow");if(r!==!1){var a,i=this.ecModel;return n.eachTargetAxis(function(o,s){var l=n.getAxisProxy(o,s).getTargetSeriesModels();q(l,function(u){if(!a&&!(r!==!0&&bn(tPt,u.get("type"))<0)){var c=i.getComponent(Ef(o),s).axis,f=aPt(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}},e.prototype._renderHandle=function(){var n=this.group,r=this._displayables,a=r.handles=[null,null],i=r.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=r.filler=new Gy({silent:f,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(d),o.add(new Gy({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:Q$t,fill:"rgba(0,0,0,0)"}})),q([0,1],function(S){var w=l.get("handleIcon");!fC[w]&&w.indexOf("path://")<0&&w.indexOf("image://")<0&&(w="path://"+w);var C=ba(w,-1,0,2,2,null,!0);C.attr({cursor:G9(this._orient),draggable:!0,drift:Nt(this._onDragMove,this,S),ondragend:Nt(this._onDragEnd,this),onmouseover:Nt(this._showDataInfo,this,!0),onmouseout:Nt(this._showDataInfo,this,!1),z2:5});var _=C.getBoundingRect(),x=l.get("handleSize");this._handleHeight=Mt(x,this._size[1]),this._handleWidth=_.width/_.height*this._handleHeight,C.setStyle(l.getModel("handleStyle").getItemStyle()),C.style.strokeNoScale=!0,C.rectHover=!0,C.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),Vf(C);var T=l.get("handleColor");T!=null&&(C.style.fill=T),o.add(a[S]=C);var M=l.getModel("textStyle");n.add(i[S]=new Bn({silent:!0,invisible:!0,style:Dr(M,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:M.getTextColor(),font:M.getFont()}),z2:10}))},this);var h=d;if(f){var p=Mt(l.get("moveHandleSize"),s[1]),v=r.moveHandle=new $n({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:p}}),g=p*.8,y=r.moveHandleIcon=ba(l.get("moveHandleIcon"),-g/2,-g/2,g,g,"#fff",!0);y.silent=!0,y.y=s[1]+p/2-.5,v.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var m=Math.min(s[1]/2,Math.max(p,10));h=r.moveZone=new $n({invisible:!0,shape:{y:s[1]-m,height:p+m}}),h.on("mouseover",function(){u.enterEmphasis(v)}).on("mouseout",function(){u.leaveEmphasis(v)}),o.add(v),o.add(y),o.add(h)}h.attr({draggable:!0,cursor:G9(this._orient),drift:Nt(this._onDragMove,this,"all"),ondragstart:Nt(this._showDataInfo,this,!0),ondragend:Nt(this._onDragEnd,this),onmouseover:Nt(this._showDataInfo,this,!0),onmouseout:Nt(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var n=this._range=this.dataZoomModel.getPercentRange(),r=this._getViewExtent();this._handleEnds=[ir(n[0],[0,100],r,!0),ir(n[1],[0,100],r,!0)]},e.prototype._updateInterval=function(n,r){var a=this.dataZoomModel,i=this._handleEnds,o=this._getViewExtent(),s=a.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];Hp(r,i,o,a.get("zoomLock")?"all":n,s.minSpan!=null?ir(s.minSpan,l,o,!0):null,s.maxSpan!=null?ir(s.maxSpan,l,o,!0):null);var u=this._range,c=this._range=zo([ir(i[0],o,l,!0),ir(i[1],o,l,!0)]);return!u||u[0]!==c[0]||u[1]!==c[1]},e.prototype._updateView=function(n){var r=this._displayables,a=this._handleEnds,i=zo(a.slice()),o=this._size;q([0,1],function(h){var p=r.handles[h],v=this._handleHeight;p.attr({scaleX:v/2,scaleY:v/2,x:a[h]+(h?-1:1),y:o[1]/2-v/2})},this),r.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]};r.moveHandle&&(r.moveHandle.setShape(s),r.moveZone.setShape(s),r.moveZone.getBoundingRect(),r.moveHandleIcon&&r.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=r.dataShadowSegs,u=[0,i[0],i[1],o[0]],c=0;c<l.length;c++){var f=l[c],d=f.getClipPath();d||(d=new $n,f.setClipPath(d)),d.setShape({x:u[c],y:0,width:u[c+1]-u[c],height:o[1]})}this._updateDataInfo(n)},e.prototype._updateDataInfo=function(n){var r=this.dataZoomModel,a=this._displayables,i=a.handleLabels,o=this._orient,s=["",""];if(r.get("showDetail")){var l=r.findRepresentativeAxisProxy();if(l){var u=l.getAxisModel().axis,c=this._range,f=n?l.calculateDataWindow({start:c[0],end:c[1]}).valueWindow:l.getDataValueWindow();s=[this._formatLabel(f[0],u),this._formatLabel(f[1],u)]}}var d=zo(this._handleEnds.slice());h.call(this,0),h.call(this,1);function h(p){var v=Nf(a.handles[p].parent,this.group),g=yE(p===0?"right":"left",v),y=this._handleWidth/2+ePt,m=gl([d[p]+(p===0?-y:y),this._size[1]/2],v);i[p].setStyle({x:m[0],y:m[1],verticalAlign:o===Hy?"middle":g,align:o===Hy?g:"center",text:s[p]})}},e.prototype._formatLabel=function(n,r){var a=this.dataZoomModel,i=a.get("labelFormatter"),o=a.get("labelPrecision");(o==null||o==="auto")&&(o=r.getPixelPrecision());var s=n==null||isNaN(n)?"":r.type==="category"||r.type==="time"?r.scale.getLabel({value:Math.round(n)}):n.toFixed(Math.min(o,20));return jt(i)?i(n,s):Ot(i)?i.replace("{value}",s):s},e.prototype._showDataInfo=function(n){n=this._dragging||n;var r=this._displayables,a=r.handleLabels;a[0].attr("invisible",!n),a[1].attr("invisible",!n),r.moveHandle&&this.api[n?"enterEmphasis":"leaveEmphasis"](r.moveHandle,1)},e.prototype._onDragMove=function(n,r,a,i){this._dragging=!0,fc(i.event);var o=this._displayables.sliderGroup.getLocalTransform(),s=gl([r,a],o,!0),l=this._updateInterval(n,s[0]),u=this.dataZoomModel.get("realtime");this._updateView(!u),l&&u&&this._dispatchZoomAction(!0)},e.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1);var n=this.dataZoomModel.get("realtime");!n&&this._dispatchZoomAction(!1)},e.prototype._onClickPanel=function(n){var r=this._size,a=this._displayables.sliderGroup.transformCoordToLocal(n.offsetX,n.offsetY);if(!(a[0]<0||a[0]>r[0]||a[1]<0||a[1]>r[1])){var i=this._handleEnds,o=(i[0]+i[1])/2,s=this._updateInterval("all",a[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(n){var r=n.offsetX,a=n.offsetY;this._brushStart=new vn(r,a),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(n){if(this._brushing){var r=this._displayables.brushRect;if(this._brushing=!1,!!r){r.attr("ignore",!0);var a=r.shape,i=+new Date;if(!(i-this._brushStartTime<200&&Math.abs(a.width)<5)){var o=this._getViewExtent(),s=[0,100];this._range=zo([ir(a.x,o,s,!0),ir(a.x+a.width,o,s,!0)]),this._handleEnds=[a.x,a.x+a.width],this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(n){this._brushing&&(fc(n.event),this._updateBrushRect(n.offsetX,n.offsetY))},e.prototype._updateBrushRect=function(n,r){var a=this._displayables,i=this.dataZoomModel,o=a.brushRect;o||(o=a.brushRect=new Gy({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(n,r),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]})},e.prototype._dispatchZoomAction=function(n){var r=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:n?nPt:null,start:r[0],end:r[1]})},e.prototype._findCoordRect=function(){var n,r=nfe(this.dataZoomModel).infoList;if(!n&&r.length){var a=r[0].model.coordinateSystem;n=a.getRect&&a.getRect()}if(!n){var i=this.api.getWidth(),o=this.api.getHeight();n={x:i*.2,y:o*.2,width:i*.6,height:o*.6}}return n},e.type="dataZoom.slider",e}(a$);function aPt(t){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[t]}function G9(t){return t==="vertical"?"ns-resize":"ew-resize"}const iPt=rPt;function _fe(t){t.registerComponentModel(Z$t),t.registerComponentView(iPt),i$(t)}function oPt(t){wn(xfe),wn(_fe)}var sPt={get:function(t,e,n){var r=Zt((lPt[t]||{})[e]);return n&&st(r)?r[r.length-1]:r}},lPt={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 Cfe=sPt;var H9=gi.mapVisual,uPt=gi.eachVisual,cPt=st,W9=q,fPt=zo,dPt=ir,hPt=function(t){Fe(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.stateList=["inRange","outOfRange"],n.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],n.layoutMode={type:"box",ignoreSize:!0},n.dataBound=[-1/0,1/0],n.targetVisuals={},n.controllerVisuals={},n}return e.prototype.init=function(n,r,a){this.mergeDefaultAndTheme(n,a)},e.prototype.optionUpdated=function(n,r){var a=this.option;!r&&dfe(a,n,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(n){var r=this.stateList;n=Nt(n,this),this.controllerVisuals=k3(this.option.controller,r,n),this.targetVisuals=k3(this.option.target,r,n)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var n=this.option.seriesIndex,r=[];return n==null||n==="all"?this.ecModel.eachSeries(function(a,i){r.push(i)}):r=mr(n),r},e.prototype.eachTargetSeries=function(n,r){q(this.getTargetSeriesIndices(),function(a){var i=this.ecModel.getSeriesByIndex(a);i&&n.call(r,i)},this)},e.prototype.isTargetSeries=function(n){var r=!1;return this.eachTargetSeries(function(a){a===n&&(r=!0)}),r},e.prototype.formatValueText=function(n,r,a){var i=this.option,o=i.precision,s=this.dataBound,l=i.formatter,u;a=a||["<",">"],st(n)&&(n=n.slice(),u=!0);var c=r?n:u?[f(n[0]),f(n[1])]:f(n);if(Ot(l))return l.replace("{value}",u?c[0]:c).replace("{value2}",u?c[1]:c);if(jt(l))return u?l(n[0],n[1]):l(n);if(u)return n[0]===s[0]?a[0]+" "+c[1]:n[1]===s[1]?a[1]+" "+c[0]:c[0]+" - "+c[1];return c;function f(d){return d===s[0]?"min":d===s[1]?"max":(+d).toFixed(Math.min(o,20))}},e.prototype.resetExtent=function(){var n=this.option,r=fPt([n.min,n.max]);this._dataExtent=r},e.prototype.getDataDimensionIndex=function(n){var r=this.option.dimension;if(r!=null)return n.getDimensionIndex(r);for(var a=n.dimensions,i=a.length-1;i>=0;i--){var o=a[i],s=n.getDimensionInfo(o);if(!s.isCalculationCoord)return s.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var n=this.ecModel,r=this.option,a={inRange:r.inRange,outOfRange:r.outOfRange},i=r.target||(r.target={}),o=r.controller||(r.controller={});hn(i,a),hn(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){cPt(r.color)&&!f.inRange&&(f.inRange={color:r.color.slice().reverse()}),f.inRange=f.inRange||{color:n.get("gradientColor")}}function u(f,d,h){var p=f[d],v=f[h];p&&!v&&(v=f[h]={},W9(p,function(g,y){if(gi.isValidType(y)){var m=Cfe.get(y,"inactive",s);m!=null&&(v[y]=m,y==="color"&&!v.hasOwnProperty("opacity")&&!v.hasOwnProperty("colorAlpha")&&(v.opacity=[0,0]))}}))}function c(f){var d=(f.inRange||{}).symbol||(f.outOfRange||{}).symbol,h=(f.inRange||{}).symbolSize||(f.outOfRange||{}).symbolSize,p=this.get("inactiveColor"),v=this.getItemSymbol(),g=v||"roundRect";W9(this.stateList,function(y){var m=this.itemSize,S=f[y];S||(S=f[y]={color:s?p:[p]}),S.symbol==null&&(S.symbol=d&&Zt(d)||(s?g:[g])),S.symbolSize==null&&(S.symbolSize=h&&Zt(h)||(s?m[0]:[m[0],m[0]])),S.symbol=H9(S.symbol,function(_){return _==="none"?g:_});var w=S.symbolSize;if(w!=null){var C=-1/0;uPt(w,function(_){_>C&&(C=_)}),S.symbolSize=H9(w,function(_){return dPt(_,[0,C],[0,m[0]],!0)})}},this)}},e.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},e.prototype.isCategory=function(){return!!this.option.categories},e.prototype.setSelected=function(n){},e.prototype.getSelected=function(){return null},e.prototype.getValueState=function(n){return null},e.prototype.getVisualMeta=function(n){return null},e.type="visualMap",e.dependencies=["series"],e.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"}},e}(On);const $C=hPt;var j9=[20,140],pPt=function(t){Fe(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.optionUpdated=function(n,r){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(a){a.mappingMethod="linear",a.dataExtent=this.getExtent()}),this._resetRange()},e.prototype.resetItemSize=function(){t.prototype.resetItemSize.apply(this,arguments);var n=this.itemSize;(n[0]==null||isNaN(n[0]))&&(n[0]=j9[0]),(n[1]==null||isNaN(n[1]))&&(n[1]=j9[1])},e.prototype._resetRange=function(){var n=this.getExtent(),r=this.option.range;!r||r.auto?(n.auto=1,this.option.range=n):st(r)&&(r[0]>r[1]&&r.reverse(),r[0]=Math.max(r[0],n[0]),r[1]=Math.min(r[1],n[1]))},e.prototype.completeVisualOption=function(){t.prototype.completeVisualOption.apply(this,arguments),q(this.stateList,function(n){var r=this.option.controller[n].symbolSize;r&&r[0]!==r[1]&&(r[0]=r[1]/3)},this)},e.prototype.setSelected=function(n){this.option.range=n.slice(),this._resetRange()},e.prototype.getSelected=function(){var n=this.getExtent(),r=zo((this.get("range")||[]).slice());return r[0]>n[1]&&(r[0]=n[1]),r[1]>n[1]&&(r[1]=n[1]),r[0]<n[0]&&(r[0]=n[0]),r[1]<n[0]&&(r[1]=n[0]),r},e.prototype.getValueState=function(n){var r=this.option.range,a=this.getExtent();return(r[0]<=a[0]||r[0]<=n)&&(r[1]>=a[1]||n<=r[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(n){var r=[];return this.eachTargetSeries(function(a){var i=[],o=a.getData();o.each(this.getDataDimensionIndex(o),function(s,l){n[0]<=s&&s<=n[1]&&i.push(l)},this),r.push({seriesId:a.id,dataIndex:i})},this),r},e.prototype.getVisualMeta=function(n){var r=K9(this,"outOfRange",this.getExtent()),a=K9(this,"inRange",this.option.range.slice()),i=[];function o(h,p){i.push({value:h,color:n(h,p)})}for(var s=0,l=0,u=a.length,c=r.length;l<c&&(!a.length||r[l]<=a[0]);l++)r[l]<a[s]&&o(r[l],"outOfRange");for(var f=1;s<u;s++,f=0)f&&i.length&&o(a[s],"outOfRange"),o(a[s],"inRange");for(var f=1;l<c;l++)(!a.length||a[a.length-1]<r[l])&&(f&&(i.length&&o(i[i.length-1].value,"outOfRange"),f=0),o(r[l],"outOfRange"));var d=i.length;return{stops:i,outerColors:[d?i[0].color:"transparent",d?i[d-1].color:"transparent"]}},e.type="visualMap.continuous",e.defaultOption=hd($C.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:"#fff",borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}}),e}($C);function K9(t,e,n){if(n[0]===n[1])return n.slice();for(var r=200,a=(n[1]-n[0])/r,i=n[0],o=[],s=0;s<=r&&i<n[1];s++)o.push(i),i+=a;return o.push(n[1]),o}const vPt=pPt;var gPt=function(t){Fe(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.autoPositionValues={left:1,right:1,top:1,bottom:1},n}return e.prototype.init=function(n,r){this.ecModel=n,this.api=r},e.prototype.render=function(n,r,a,i){if(this.visualMapModel=n,n.get("show")===!1){this.group.removeAll();return}this.doRender(n,r,a,i)},e.prototype.renderBackground=function(n){var r=this.visualMapModel,a=Fp(r.get("padding")||0),i=n.getBoundingRect();n.add(new $n({z2:-1,silent:!0,shape:{x:i.x-a[3],y:i.y-a[0],width:i.width+a[3]+a[1],height:i.height+a[0]+a[2]},style:{fill:r.get("backgroundColor"),stroke:r.get("borderColor"),lineWidth:r.get("borderWidth")}}))},e.prototype.getControllerVisual=function(n,r,a){a=a||{};var i=a.forceState,o=this.visualMapModel,s={};if(r==="color"){var l=o.get("contentColor");s.color=l}function u(h){return s[h]}function c(h,p){s[h]=p}var f=o.controllerVisuals[i||o.getValueState(n)],d=gi.prepareVisualTypes(f);return q(d,function(h){var p=f[h];a.convertOpacityToAlpha&&h==="opacity"&&(h="colorAlpha",p=f.__alphaForOpacity),gi.dependsOn(h,r)&&p&&p.applyVisual(n,u,c)}),s[r]},e.prototype.positionGroup=function(n){var r=this.visualMapModel,a=this.api;_E(n,r.getBoxLayoutParams(),{width:a.getWidth(),height:a.getHeight()})},e.prototype.doRender=function(n,r,a,i){},e.type="visualMap",e}(jr);const Tfe=gPt;var Y9=[["left","right","width"],["top","bottom","height"]];function Efe(t,e,n){var r=t.option,a=r.align;if(a!=null&&a!=="auto")return a;for(var i={width:e.getWidth(),height:e.getHeight()},o=r.orient==="horizontal"?1:0,s=Y9[o],l=[0,null,10],u={},c=0;c<3;c++)u[Y9[1-o][c]]=l[c],u[s[c]]=c===2?n[0]:r[s[c]];var f=[["x","width",3],["y","height",0]][o],d=ka(u,i,r.padding);return s[(d.margin[f[2]]||0)+d[f[0]]+d[f[1]]*.5<i[f[1]]*.5?0:1]}function j_(t,e){return q(t||[],function(n){n.dataIndex!=null&&(n.dataIndexInside=n.dataIndex,n.dataIndex=null),n.highlightKey="visualMap"+(e?e.componentIndex:"")}),t}var Gl=ir,yPt=q,X9=Math.min,Kk=Math.max,mPt=12,bPt=6,SPt=function(t){Fe(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n._shapes={},n._dataInterval=[],n._handleEnds=[],n._hoverLinkDataIndices=[],n}return e.prototype.doRender=function(n,r,a,i){this._api=a,(!i||i.type!=="selectDataRange"||i.from!==this.uid)&&this._buildView()},e.prototype._buildView=function(){this.group.removeAll();var n=this.visualMapModel,r=this.group;this._orient=n.get("orient"),this._useHandle=n.get("calculable"),this._resetInterval(),this._renderBar(r);var a=n.get("text");this._renderEndsText(r,a,0),this._renderEndsText(r,a,1),this._updateView(!0),this.renderBackground(r),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(r)},e.prototype._renderEndsText=function(n,r,a){if(r){var i=r[1-a];i=i!=null?i+"":"";var o=this.visualMapModel,s=o.get("textGap"),l=o.itemSize,u=this._shapes.mainGroup,c=this._applyTransform([l[0]/2,a===0?-s:l[1]+s],u),f=this._applyTransform(a===0?"bottom":"top",u),d=this._orient,h=this.visualMapModel.textStyleModel;this.group.add(new Bn({style:Dr(h,{x:c[0],y:c[1],verticalAlign:d==="horizontal"?"middle":f,align:d==="horizontal"?f:"center",text:i})}))}},e.prototype._renderBar=function(n){var r=this.visualMapModel,a=this._shapes,i=r.itemSize,o=this._orient,s=this._useHandle,l=Efe(r,this.api,i),u=a.mainGroup=this._createBarGroup(l),c=new en;u.add(c),c.add(a.outOfRange=q9()),c.add(a.inRange=q9(null,s?Q9(this._orient):null,Nt(this._dragHandle,this,"all",!1),Nt(this._dragHandle,this,"all",!0))),c.setClipPath(new $n({shape:{x:0,y:0,width:i[0],height:i[1],r:3}}));var f=r.textStyleModel.getTextRect("国"),d=Kk(f.width,f.height);s&&(a.handleThumbs=[],a.handleLabels=[],a.handleLabelPoints=[],this._createHandle(r,u,0,i,d,o),this._createHandle(r,u,1,i,d,o)),this._createIndicator(r,u,i,d,o),n.add(u)},e.prototype._createHandle=function(n,r,a,i,o,s){var l=Nt(this._dragHandle,this,a,!1),u=Nt(this._dragHandle,this,a,!0),c=Sl(n.get("handleSize"),i[0]),f=ba(n.get("handleIcon"),-c/2,-c/2,c,c,null,!0),d=Q9(this._orient);f.attr({cursor:d,draggable:!0,drift:l,ondragend:u,onmousemove:function(y){fc(y.event)}}),f.x=i[0]/2,f.useStyle(n.getModel("handleStyle").getItemStyle()),f.setStyle({strokeNoScale:!0,strokeFirst:!0}),f.style.lineWidth*=2,f.ensureState("emphasis").style=n.getModel(["emphasis","handleStyle"]).getItemStyle(),zh(f,!0),r.add(f);var h=this.visualMapModel.textStyleModel,p=new Bn({cursor:d,draggable:!0,drift:l,onmousemove:function(y){fc(y.event)},ondragend:u,style:Dr(h,{x:0,y:0,text:""})});p.ensureState("blur").style={opacity:.1},p.stateTransition={duration:200},this.group.add(p);var v=[c,0],g=this._shapes;g.handleThumbs[a]=f,g.handleLabelPoints[a]=v,g.handleLabels[a]=p},e.prototype._createIndicator=function(n,r,a,i,o){var s=Sl(n.get("indicatorSize"),a[0]),l=ba(n.get("indicatorIcon"),-s/2,-s/2,s,s,null,!0);l.attr({cursor:"move",invisible:!0,silent:!0,x:a[0]/2});var u=n.getModel("indicatorStyle").getItemStyle();if(l instanceof si){var c=l.style;l.useStyle(et({image:c.image,x:c.x,y:c.y,width:c.width,height:c.height},u))}else l.useStyle(u);r.add(l);var f=this.visualMapModel.textStyleModel,d=new Bn({silent:!0,invisible:!0,style:Dr(f,{x:0,y:0,text:""})});this.group.add(d);var h=[(o==="horizontal"?i/2:bPt)+a[0]/2,0],p=this._shapes;p.indicator=l,p.indicatorLabel=d,p.indicatorLabelPoint=h,this._firstShowIndicator=!0},e.prototype._dragHandle=function(n,r,a,i){if(this._useHandle){if(this._dragging=!r,!r){var o=this._applyTransform([a,i],this._shapes.mainGroup,!0);this._updateInterval(n,o[1]),this._hideIndicator(),this._updateView()}r===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),r?!this._hovering&&this._clearHoverLinkToSeries():Z9(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[n],!1)}},e.prototype._resetInterval=function(){var n=this.visualMapModel,r=this._dataInterval=n.getSelected(),a=n.getExtent(),i=[0,n.itemSize[1]];this._handleEnds=[Gl(r[0],a,i,!0),Gl(r[1],a,i,!0)]},e.prototype._updateInterval=function(n,r){r=r||0;var a=this.visualMapModel,i=this._handleEnds,o=[0,a.itemSize[1]];Hp(r,i,o,n,0);var s=a.getExtent();this._dataInterval=[Gl(i[0],o,s,!0),Gl(i[1],o,s,!0)]},e.prototype._updateView=function(n){var r=this.visualMapModel,a=r.getExtent(),i=this._shapes,o=[0,r.itemSize[1]],s=n?o:this._handleEnds,l=this._createBarVisual(this._dataInterval,a,s,"inRange"),u=this._createBarVisual(a,a,o,"outOfRange");i.inRange.setStyle({fill:l.barColor}).setShape("points",l.barPoints),i.outOfRange.setStyle({fill:u.barColor}).setShape("points",u.barPoints),this._updateHandle(s,l)},e.prototype._createBarVisual=function(n,r,a,i){var o={forceState:i,convertOpacityToAlpha:!0},s=this._makeColorGradient(n,o),l=[this.getControllerVisual(n[0],"symbolSize",o),this.getControllerVisual(n[1],"symbolSize",o)],u=this._createBarPoints(a,l);return{barColor:new k0(0,0,0,1,s),barPoints:u,handlesColor:[s[0].color,s[s.length-1].color]}},e.prototype._makeColorGradient=function(n,r){var a=100,i=[],o=(n[1]-n[0])/a;i.push({color:this.getControllerVisual(n[0],"color",r),offset:0});for(var s=1;s<a;s++){var l=n[0]+o*s;if(l>n[1])break;i.push({color:this.getControllerVisual(l,"color",r),offset:s/a})}return i.push({color:this.getControllerVisual(n[1],"color",r),offset:1}),i},e.prototype._createBarPoints=function(n,r){var a=this.visualMapModel.itemSize;return[[a[0]-r[0],n[0]],[a[0],n[0]],[a[0],n[1]],[a[0]-r[1],n[1]]]},e.prototype._createBarGroup=function(n){var r=this._orient,a=this.visualMapModel.get("inverse");return new en(r==="horizontal"&&!a?{scaleX:n==="bottom"?1:-1,rotation:Math.PI/2}:r==="horizontal"&&a?{scaleX:n==="bottom"?-1:1,rotation:-Math.PI/2}:r==="vertical"&&!a?{scaleX:n==="left"?1:-1,scaleY:-1}:{scaleX:n==="left"?1:-1})},e.prototype._updateHandle=function(n,r){if(this._useHandle){var a=this._shapes,i=this.visualMapModel,o=a.handleThumbs,s=a.handleLabels,l=i.itemSize,u=i.getExtent();yPt([0,1],function(c){var f=o[c];f.setStyle("fill",r.handlesColor[c]),f.y=n[c];var d=Gl(n[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 p=gl(a.handleLabelPoints[c],Nf(f,this.group));s[c].setStyle({x:p[0],y:p[1],text:i.formatValueText(this._dataInterval[c]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",a.mainGroup):"center"})},this)}},e.prototype._showIndicator=function(n,r,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(n,"color",d),p=this.getControllerVisual(n,"symbolSize"),v=Gl(n,s,u,!0),g=l[0]-p/2,y={x:f.x,y:f.y};f.y=v,f.x=g;var m=gl(c.indicatorLabelPoint,Nf(f,this.group)),S=c.indicatorLabel;S.attr("invisible",!1);var w=this._applyTransform("left",c.mainGroup),C=this._orient,_=C==="horizontal";S.setStyle({text:(a||"")+o.formatValueText(r),verticalAlign:_?w:"middle",align:_?"center":w});var x={x:g,y:v,style:{fill:h}},T={style:{x:m[0],y:m[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var M={duration:100,easing:"cubicInOut",additive:!0};f.x=y.x,f.y=y.y,f.animateTo(x,M),S.animateTo(T,M)}else f.attr(x),S.attr(T);this._firstShowIndicator=!1;var E=this._shapes.handleLabels;if(E)for(var A=0;A<E.length;A++)this._api.enterBlur(E[A])}},e.prototype._enableHoverLinkToSeries=function(){var n=this;this._shapes.mainGroup.on("mousemove",function(r){if(n._hovering=!0,!n._dragging){var a=n.visualMapModel.itemSize,i=n._applyTransform([r.offsetX,r.offsetY],n._shapes.mainGroup,!0,!0);i[1]=X9(Kk(0,i[1]),a[1]),n._doHoverLinkToSeries(i[1],0<=i[0]&&i[0]<=a[0])}}).on("mouseout",function(){n._hovering=!1,!n._dragging&&n._clearHoverLinkToSeries()})},e.prototype._enableHoverLinkFromSeries=function(){var n=this.api.getZr();this.visualMapModel.option.hoverLink?(n.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),n.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},e.prototype._doHoverLinkToSeries=function(n,r){var a=this.visualMapModel,i=a.itemSize;if(a.option.hoverLink){var o=[0,i[1]],s=a.getExtent();n=X9(Kk(o[0],n),o[1]);var l=wPt(a,s,o),u=[n-l,n+l],c=Gl(n,o,s,!0),f=[Gl(u[0],o,s,!0),Gl(u[1],o,s,!0)];u[0]<o[0]&&(f[0]=-1/0),u[1]>o[1]&&(f[1]=1/0),r&&(f[0]===-1/0?this._showIndicator(c,f[1],"< ",l):f[1]===1/0?this._showIndicator(c,f[0],"> ",l):this._showIndicator(c,c,"≈ ",l));var d=this._hoverLinkDataIndices,h=[];(r||Z9(a))&&(h=this._hoverLinkDataIndices=a.findTargetDataIndices(f));var p=qbt(d,h);this._dispatchHighDown("downplay",j_(p[0],a)),this._dispatchHighDown("highlight",j_(p[1],a))}},e.prototype._hoverLinkFromSeriesMouseOver=function(n){var r;if(Gh(n.target,function(l){var u=ln(l);if(u.dataIndex!=null)return r=u,!0},!0),!!r){var a=this.ecModel.getSeriesByIndex(r.seriesIndex),i=this.visualMapModel;if(i.isTargetSeries(a)){var o=a.getData(r.dataType),s=o.getStore().get(i.getDataDimensionIndex(o),r.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},e.prototype._hideIndicator=function(){var n=this._shapes;n.indicator&&n.indicator.attr("invisible",!0),n.indicatorLabel&&n.indicatorLabel.attr("invisible",!0);var r=this._shapes.handleLabels;if(r)for(var a=0;a<r.length;a++)this._api.leaveBlur(r[a])},e.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var n=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",j_(n,this.visualMapModel)),n.length=0},e.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var n=this.api.getZr();n.off("mouseover",this._hoverLinkFromSeriesMouseOver),n.off("mouseout",this._hideIndicator)},e.prototype._applyTransform=function(n,r,a,i){var o=Nf(r,i?null:this.group);return st(n)?gl(n,o,a):yE(n,o,a)},e.prototype._dispatchHighDown=function(n,r){r&&r.length&&this.api.dispatchAction({type:n,batch:r})},e.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},e.prototype.remove=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},e.type="visualMap.continuous",e}(Tfe);function q9(t,e,n,r){return new lo({shape:{points:t},draggable:!!n,cursor:e,drift:n,onmousemove:function(a){fc(a.event)},ondragend:r})}function wPt(t,e,n){var r=mPt/2,a=t.get("hoverLinkDataSize");return a&&(r=Gl(a,e,n,!0)/2),r}function Z9(t){var e=t.get("hoverLinkOnHandle");return!!(e??t.get("realtime"))}function Q9(t){return t==="vertical"?"ns-resize":"ew-resize"}const xPt=SPt;var _Pt={type:"selectDataRange",event:"dataRangeSelected",update:"update"},CPt=function(t,e){e.eachComponent({mainType:"visualMap",query:t},function(n){n.setSelected(t.selected)})},TPt=[{createOnAllSeries:!0,reset:function(t,e){var n=[];return e.eachComponent("visualMap",function(r){var a=t.pipelineContext;!r.isTargetSeries(t)||a&&a.large||n.push(bBt(r.stateList,r.targetVisuals,Nt(r.getValueState,r),r.getDataDimensionIndex(t.getData())))}),n}},{createOnAllSeries:!0,reset:function(t,e){var n=t.getData(),r=[];e.eachComponent("visualMap",function(a){if(a.isTargetSeries(t)){var i=a.getVisualMeta(Nt(EPt,null,t,a))||{stops:[],outerColors:[]},o=a.getDataDimensionIndex(n);o>=0&&(i.dimension=o,r.push(i))}}),t.getData().setVisual("visualMeta",r)}}];function EPt(t,e,n,r){for(var a=e.targetVisuals[r],i=gi.prepareVisualTypes(a),o={color:cS(t.getData(),"color")},s=0,l=i.length;s<l;s++){var u=i[s],c=a[u==="opacity"?"__alphaForOpacity":u];c&&c.applyVisual(n,f,d)}return o.color;function f(h){return o[h]}function d(h,p){o[h]=p}}var J9=q;function MPt(t){var e=t&&t.visualMap;st(e)||(e=e?[e]:[]),J9(e,function(n){if(n){Ev(n,"splitList")&&!Ev(n,"pieces")&&(n.pieces=n.splitList,delete n.splitList);var r=n.pieces;r&&st(r)&&J9(r,function(a){qt(a)&&(Ev(a,"start")&&!Ev(a,"min")&&(a.min=a.start),Ev(a,"end")&&!Ev(a,"max")&&(a.max=a.end))})}})}function Ev(t,e){return t&&t.hasOwnProperty&&t.hasOwnProperty(e)}var ej=!1;function Mfe(t){ej||(ej=!0,t.registerSubTypeDefaulter("visualMap",function(e){return!e.categories&&(!(e.pieces?e.pieces.length>0:e.splitNumber>0)||e.calculable)?"continuous":"piecewise"}),t.registerAction(_Pt,CPt),q(TPt,function(e){t.registerVisual(t.PRIORITY.VISUAL.COMPONENT,e)}),t.registerPreprocessor(MPt))}function Dfe(t){t.registerComponentModel(vPt),t.registerComponentView(xPt),Mfe(t)}var DPt=function(t){Fe(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n._pieceList=[],n}return e.prototype.optionUpdated=function(n,r){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var a=this._mode=this._determineMode();this._pieceList=[],APt[this._mode].call(this,this._pieceList),this._resetSelected(n,r);var i=this.option.categories;this.resetVisual(function(o,s){a==="categories"?(o.mappingMethod="category",o.categories=Zt(i)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=ut(this._pieceList,function(l){return l=Zt(l),s!=="inRange"&&(l.visual=null),l}))})},e.prototype.completeVisualOption=function(){var n=this.option,r={},a=gi.listVisualTypes(),i=this.isCategory();q(n.pieces,function(s){q(a,function(l){s.hasOwnProperty(l)&&(r[l]=1)})}),q(r,function(s,l){var u=!1;q(this.stateList,function(c){u=u||o(n,c,l)||o(n.target,c,l)},this),!u&&q(this.stateList,function(c){(n[c]||(n[c]={}))[l]=Cfe.get(l,c==="inRange"?"active":"inactive",i)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}t.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(n,r){var a=this.option,i=this._pieceList,o=(r?a:n).selected||{};if(a.selected=o,q(i,function(l,u){var c=this.getSelectedMapKey(l);o.hasOwnProperty(c)||(o[c]=!0)},this),a.selectedMode==="single"){var s=!1;q(i,function(l,u){var c=this.getSelectedMapKey(l);o[c]&&(s?o[c]=!1:s=!0)},this)}},e.prototype.getItemSymbol=function(){return this.get("itemSymbol")},e.prototype.getSelectedMapKey=function(n){return this._mode==="categories"?n.value+"":n.index+""},e.prototype.getPieceList=function(){return this._pieceList},e.prototype._determineMode=function(){var n=this.option;return n.pieces&&n.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},e.prototype.setSelected=function(n){this.option.selected=Zt(n)},e.prototype.getValueState=function(n){var r=gi.findPieceIndex(n,this._pieceList);return r!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[r])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(n){var r=[],a=this._pieceList;return this.eachTargetSeries(function(i){var o=[],s=i.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var c=gi.findPieceIndex(l,a);c===n&&o.push(u)},this),r.push({seriesId:i.id,dataIndex:o})},this),r},e.prototype.getRepresentValue=function(n){var r;if(this.isCategory())r=n.value;else if(n.value!=null)r=n.value;else{var a=n.interval||[];r=a[0]===-1/0&&a[1]===1/0?0:(a[0]+a[1])/2}return r},e.prototype.getVisualMeta=function(n){if(this.isCategory())return;var r=[],a=["",""],i=this;function o(c,f){var d=i.getRepresentValue({interval:c});f||(f=i.getValueState(d));var h=n(d,f);c[0]===-1/0?a[0]=h:c[1]===1/0?a[1]=h:r.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 q(s,function(c){var f=c.interval;f&&(f[0]>u&&o([u,f[0]],"outOfRange"),o(f.slice()),u=f[1])},this),{stops:r,outerColors:a}},e.type="visualMap.piecewise",e.defaultOption=hd($C.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),e}($C),APt={splitNumber:function(t){var e=this.option,n=Math.min(e.precision,20),r=this.getExtent(),a=e.splitNumber;a=Math.max(parseInt(a,10),1),e.splitNumber=a;for(var i=(r[1]-r[0])/a;+i.toFixed(n)!==i&&n<5;)n++;e.precision=n,i=+i.toFixed(n),e.minOpen&&t.push({interval:[-1/0,r[0]],close:[0,0]});for(var o=0,s=r[0];o<a;s+=i,o++){var l=o===a-1?r[1]:s+i;t.push({interval:[s,l],close:[1,1]})}e.maxOpen&&t.push({interval:[r[1],1/0],close:[0,0]}),wO(t),q(t,function(u,c){u.index=c,u.text=this.formatValueText(u.interval)},this)},categories:function(t){var e=this.option;q(e.categories,function(n){t.push({text:this.formatValueText(n,!0),value:n})},this),tj(e,t)},pieces:function(t){var e=this.option;q(e.pieces,function(n,r){qt(n)||(n={value:n});var a={text:"",index:r};if(n.label!=null&&(a.text=n.label),n.hasOwnProperty("value")){var i=a.value=n.value;a.interval=[i,i],a.close=[1,1]}else{for(var o=a.interval=[],s=a.close=[0,0],l=[1,0,1],u=[-1/0,1/0],c=[],f=0;f<2;f++){for(var d=[["gte","gt","min"],["lte","lt","max"]][f],h=0;h<3&&o[f]==null;h++)o[f]=n[d[h]],s[f]=l[h],c[f]=h===2;o[f]==null&&(o[f]=u[f])}c[0]&&o[1]===1/0&&(s[0]=0),c[1]&&o[0]===-1/0&&(s[1]=0),o[0]===o[1]&&s[0]&&s[1]&&(a.value=o[0])}a.visual=gi.retrieveVisuals(n),t.push(a)},this),tj(e,t),wO(t),q(t,function(n){var r=n.close,a=[["<","≤"][r[1]],[">","≥"][r[0]]];n.text=n.text||this.formatValueText(n.value!=null?n.value:n.interval,!1,a)},this)}};function tj(t,e){var n=t.inverse;(t.orient==="vertical"?!n:n)&&e.reverse()}const kPt=DPt;var RPt=function(t){Fe(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.doRender=function(){var n=this.group;n.removeAll();var r=this.visualMapModel,a=r.get("textGap"),i=r.textStyleModel,o=i.getFont(),s=i.getTextColor(),l=this._getItemAlign(),u=r.itemSize,c=this._getViewData(),f=c.endsText,d=Ua(r.get("showLabel",!0),!f);f&&this._renderEndsText(n,f[0],u,d,l),q(c.viewPieceList,function(h){var p=h.piece,v=new en;v.onclick=Nt(this._onItemClick,this,p),this._enableHoverLink(v,h.indexInModelPieceList);var g=r.getRepresentValue(p);if(this._createItemSymbol(v,g,[0,0,u[0],u[1]]),d){var y=this.visualMapModel.getValueState(g);v.add(new Bn({style:{x:l==="right"?-a:u[0]+a,y:u[1]/2,text:p.text,verticalAlign:"middle",align:l,font:o,fill:s,opacity:y==="outOfRange"?.5:1}}))}n.add(v)},this),f&&this._renderEndsText(n,f[1],u,d,l),op(r.get("orient"),n,r.get("itemGap")),this.renderBackground(n),this.positionGroup(n)},e.prototype._enableHoverLink=function(n,r){var a=this;n.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:j_(s.findTargetDataIndices(r),s)})}},e.prototype._getItemAlign=function(){var n=this.visualMapModel,r=n.option;if(r.orient==="vertical")return Efe(n,this.api,n.itemSize);var a=r.align;return(!a||a==="auto")&&(a="left"),a},e.prototype._renderEndsText=function(n,r,a,i,o){if(r){var s=new en,l=this.visualMapModel.textStyleModel;s.add(new Bn({style:Dr(l,{x:i?o==="right"?a[0]:0:a[0]/2,y:a[1]/2,verticalAlign:"middle",align:i?o:"center",text:r})})),n.add(s)}},e.prototype._getViewData=function(){var n=this.visualMapModel,r=ut(n.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),a=n.get("text"),i=n.get("orient"),o=n.get("inverse");return(i==="horizontal"?o:!o)?r.reverse():a&&(a=a.slice().reverse()),{viewPieceList:r,endsText:a}},e.prototype._createItemSymbol=function(n,r,a){n.add(ba(this.getControllerVisual(r,"symbol"),a[0],a[1],a[2],a[3],this.getControllerVisual(r,"color")))},e.prototype._onItemClick=function(n){var r=this.visualMapModel,a=r.option,i=a.selectedMode;if(i){var o=Zt(a.selected),s=r.getSelectedMapKey(n);i==="single"||i===!0?(o[s]=!0,q(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})}},e.type="visualMap.piecewise",e}(Tfe);const LPt=RPt;function Afe(t){t.registerComponentModel(kPt),t.registerComponentView(LPt),Mfe(t)}function OPt(t){wn(Dfe),wn(Afe)}var VPt={label:{enabled:!0},decal:{show:!1}},nj=Gn(),NPt={};function IPt(t,e){var n=t.getModel("aria");if(!n.get("enabled"))return;var r=Zt(VPt);hn(r.label,t.getLocaleModel().get("aria"),!1),hn(n.option,r,!1),a(),i();function a(){var u=n.getModel("decal"),c=u.get("show");if(c){var f=Gt();t.eachSeries(function(d){if(!d.isColorBySeries()){var h=f.get(d.type);h||(h={},f.set(d.type,h)),nj(d).scope=h}}),t.eachRawSeries(function(d){if(t.isSeriesFiltered(d))return;if(jt(d.enableAriaDecal)){d.enableAriaDecal();return}var h=d.getData();if(d.isColorBySeries()){var m=BO(d.ecModel,d.name,NPt,t.getSeriesCount()),S=h.getVisual("decal");h.setVisual("decal",w(S,m))}else{var p=d.getRawData(),v={},g=nj(d).scope;h.each(function(C){var _=h.getRawIndex(C);v[_]=C});var y=p.count();p.each(function(C){var _=v[C],x=p.getName(C)||C+"",T=BO(d.ecModel,x,g,y),M=h.getItemVisual(_,"decal");h.setItemVisual(_,"decal",w(M,T))})}function w(C,_){var x=C?et(et({},_),C):_;return x.dirty=!0,x}})}}function i(){var u=t.getLocaleModel().get("aria"),c=n.getModel("label");if(c.option=Xt(c.option,u),!!c.get("enabled")){var f=e.getZr().dom;if(c.get("description")){f.setAttribute("aria-label",c.get("description"));return}var d=t.getSeriesCount(),h=c.get(["data","maxCount"])||10,p=c.get(["series","maxCount"])||10,v=Math.min(d,p),g;if(!(d<1)){var y=s();if(y){var m=c.get(["general","withTitle"]);g=o(m,{title:y})}else g=c.get(["general","withoutTitle"]);var S=[],w=d>1?c.get(["series","multiple","prefix"]):c.get(["series","single","prefix"]);g+=o(w,{seriesCount:d}),t.eachSeries(function(T,M){if(M<v){var E=void 0,A=T.get("name"),k=A?"withName":"withoutName";E=d>1?c.get(["series","multiple",k]):c.get(["series","single",k]),E=o(E,{seriesId:T.seriesIndex,seriesName:T.get("name"),seriesType:l(T.subType)});var L=T.getData();if(L.count()>h){var I=c.get(["data","partialData"]);E+=o(I,{displayCnt:h})}else E+=c.get(["data","allData"]);for(var P=c.get(["data","separator","middle"]),F=c.get(["data","separator","end"]),$=[],W=0;W<L.count();W++)if(W<h){var V=L.getName(W),z=L.getValues(W),K=c.get(["data",V?"withName":"withoutName"]);$.push(o(K,{name:V,value:z.join(P)}))}E+=$.join(P)+F,S.push(E)}});var C=c.getModel(["series","multiple","separator"]),_=C.get("middle"),x=C.get("end");g+=S.join(_)+x,f.setAttribute("aria-label",g)}}}function o(u,c){if(!Ot(u))return u;var f=u;return q(c,function(d,h){f=f.replace(new RegExp("\\{\\s*"+h+"\\s*\\}","g"),d)}),f}function s(){var u=t.get("title");return u&&u.length&&(u=u[0]),u&&u.text}function l(u){return t.getLocaleModel().get(["series","typeNames"])[u]||"自定义图"}}function BPt(t){if(!(!t||!t.aria)){var e=t.aria;e.show!=null&&(e.enabled=e.show),e.label=e.label||{},q(["description","general","series","data"],function(n){e[n]!=null&&(e.label[n]=e[n])})}}function $Pt(t){t.registerPreprocessor(BPt),t.registerVisual(t.PRIORITY.VISUAL.ARIA,IPt)}var rj={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},PPt=function(){function t(e){var n=this._condVal=Ot(e)?new RegExp(e):Aae(e)?e:null;if(n==null){var r="";tr(r)}}return t.prototype.evaluate=function(e){var n=typeof e;return Ot(n)?this._condVal.test(e):Un(n)?this._condVal.test(e+""):!1},t}(),FPt=function(){function t(){}return t.prototype.evaluate=function(){return this.value},t}(),zPt=function(){function t(){}return t.prototype.evaluate=function(){for(var e=this.children,n=0;n<e.length;n++)if(!e[n].evaluate())return!1;return!0},t}(),UPt=function(){function t(){}return t.prototype.evaluate=function(){for(var e=this.children,n=0;n<e.length;n++)if(e[n].evaluate())return!0;return!1},t}(),GPt=function(){function t(){}return t.prototype.evaluate=function(){return!this.child.evaluate()},t}(),HPt=function(){function t(){}return t.prototype.evaluate=function(){for(var e=!!this.valueParser,n=this.getValue,r=n(this.valueGetterParam),a=e?this.valueParser(r):null,i=0;i<this.subCondList.length;i++)if(!this.subCondList[i].evaluate(e?a:r))return!1;return!0},t}();function p$(t,e){if(t===!0||t===!1){var n=new FPt;return n.value=t,n}var r="";return kfe(t)||tr(r),t.and?aj("and",t,e):t.or?aj("or",t,e):t.not?WPt(t,e):jPt(t,e)}function aj(t,e,n){var r=e[t],a="";st(r)||tr(a),r.length||tr(a);var i=t==="and"?new zPt:new UPt;return i.children=ut(r,function(o){return p$(o,n)}),i.children.length||tr(a),i}function WPt(t,e){var n=t.not,r="";kfe(n)||tr(r);var a=new GPt;return a.child=p$(n,e),a.child||tr(r),a}function jPt(t,e){for(var n="",r=e.prepareGetValue(t),a=[],i=Dn(t),o=t.parser,s=o?nse(o):null,l=0;l<i.length;l++){var u=i[l];if(!(u==="parser"||e.valueGetterAttrMap.get(u))){var c=Bt(rj,u)?rj[u]:u,f=t[u],d=s?s(f):f,h=u_t(c,d)||c==="reg"&&new PPt(d);h||tr(n),a.push(h)}}a.length||tr(n);var p=new HPt;return p.valueGetterParam=r,p.valueParser=s,p.getValue=e.getValue,p.subCondList=a,p}function kfe(t){return qt(t)&&!mi(t)}var KPt=function(){function t(e,n){this._cond=p$(e,n)}return t.prototype.evaluate=function(){return this._cond.evaluate()},t}();function YPt(t,e){return new KPt(t,e)}var XPt={type:"echarts:filter",transform:function(t){for(var e=t.upstream,n,r=YPt(t.config,{valueGetterAttrMap:Gt({dimension:!0}),prepareGetValue:function(s){var l="",u=s.dimension;Bt(s,"dimension")||tr(l);var c=e.getDimensionInfo(u);return c||tr(l),{dimIdx:c.index}},getValue:function(s){return e.retrieveValueFromItem(n,s.dimIdx)}}),a=[],i=0,o=e.count();i<o;i++)n=e.getRawDataItem(i),r.evaluate()&&a.push(n);return{data:a}}},qPt={type:"echarts:sort",transform:function(t){var e=t.upstream,n=t.config,r="",a=mr(n);a.length||tr(r);var i=[];q(a,function(c){var f=c.dimension,d=c.order,h=c.parser,p=c.incomparable;if(f==null&&tr(r),d!=="asc"&&d!=="desc"&&tr(r),p&&p!=="min"&&p!=="max"){var v="";tr(v)}if(d!=="asc"&&d!=="desc"){var g="";tr(g)}var y=e.getDimensionInfo(f);y||tr(r);var m=h?nse(h):null;h&&!m&&tr(r),i.push({dimIdx:y.index,parser:m,comparator:new ase(d,p)})});var o=e.sourceFormat;o!==Bi&&o!==Os&&tr(r);for(var s=[],l=0,u=e.count();l<u;l++)s.push(e.getRawDataItem(l));return s.sort(function(c,f){for(var d=0;d<i.length;d++){var h=i[d],p=e.retrieveValueFromItem(c,h.dimIdx),v=e.retrieveValueFromItem(f,h.dimIdx);h.parser&&(p=h.parser(p),v=h.parser(v));var g=h.comparator.evaluate(p,v);if(g!==0)return g}return 0}),{data:s}}};function ZPt(t){t.registerTransform(XPt),t.registerTransform(qPt)}var QPt=function(t){Fe(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="dataset",n}return e.prototype.init=function(n,r,a){t.prototype.init.call(this,n,r,a),this._sourceManager=new lse(this),sG(this)},e.prototype.mergeOption=function(n,r){t.prototype.mergeOption.call(this,n,r),sG(this)},e.prototype.optionUpdated=function(){this._sourceManager.dirty()},e.prototype.getSourceManager=function(){return this._sourceManager},e.type="dataset",e.defaultOption={seriesLayoutBy:uu},e}(On),JPt=function(t){Fe(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="dataset",n}return e.type="dataset",e}(jr);function eFt(t){t.registerComponentModel(QPt),t.registerComponentView(JPt)}var Fl=mu.CMD;function Jv(t,e){return Math.abs(t-e)<1e-5}function B3(t){var e=t.data,n=t.len(),r=[],a,i=0,o=0,s=0,l=0;function u(L,I){a&&a.length>2&&r.push(a),a=[L,I]}function c(L,I,P,F){Jv(L,P)&&Jv(I,F)||a.push(L,I,P,F,P,F)}function f(L,I,P,F,$,W){var V=Math.abs(I-L),z=Math.tan(V/4)*4/3,K=I<L?-1:1,Z=Math.cos(L),oe=Math.sin(L),ge=Math.cos(I),ie=Math.sin(I),Q=Z*$+P,ce=oe*W+F,se=ge*$+P,me=ie*W+F,ve=$*z*K,he=W*z*K;a.push(Q-ve*oe,ce+he*Z,se+ve*ie,me-he*ge,se,me)}for(var d,h,p,v,g=0;g<n;){var y=e[g++],m=g===1;switch(m&&(i=e[g],o=e[g+1],s=i,l=o,(y===Fl.L||y===Fl.C||y===Fl.Q)&&(a=[s,l])),y){case Fl.M:i=s=e[g++],o=l=e[g++],u(s,l);break;case Fl.L:d=e[g++],h=e[g++],c(i,o,d,h),i=d,o=h;break;case Fl.C:a.push(e[g++],e[g++],e[g++],e[g++],i=e[g++],o=e[g++]);break;case Fl.Q:d=e[g++],h=e[g++],p=e[g++],v=e[g++],a.push(i+2/3*(d-i),o+2/3*(h-o),p+2/3*(d-p),v+2/3*(h-v),p,v),i=p,o=v;break;case Fl.A:var S=e[g++],w=e[g++],C=e[g++],_=e[g++],x=e[g++],T=e[g++]+x;g+=1;var M=!e[g++];d=Math.cos(x)*C+S,h=Math.sin(x)*_+w,m?(s=d,l=h,u(s,l)):c(i,o,d,h),i=Math.cos(T)*C+S,o=Math.sin(T)*_+w;for(var E=(M?-1:1)*Math.PI/2,A=x;M?A>T:A<T;A+=E){var k=M?Math.max(A+E,T):Math.min(A+E,T);f(A,k,S,w,C,_)}break;case Fl.R:s=i=e[g++],l=o=e[g++],d=s+e[g++],h=l+e[g++],u(d,l),c(d,l,d,h),c(d,h,s,h),c(s,h,s,l),c(s,l,d,l);break;case Fl.Z:a&&c(i,o,s,l),i=s,o=l;break}}return a&&a.length>2&&r.push(a),r}function $3(t,e,n,r,a,i,o,s,l,u){if(Jv(t,n)&&Jv(e,r)&&Jv(a,o)&&Jv(i,s)){l.push(o,s);return}var c=2/u,f=c*c,d=o-t,h=s-e,p=Math.sqrt(d*d+h*h);d/=p,h/=p;var v=n-t,g=r-e,y=a-o,m=i-s,S=v*v+g*g,w=y*y+m*m;if(S<f&&w<f){l.push(o,s);return}var C=d*v+h*g,_=-d*y-h*m,x=S-C*C,T=w-_*_;if(x<f&&C>=0&&T<f&&_>=0){l.push(o,s);return}var M=[],E=[];Xf(t,n,a,o,.5,M),Xf(e,r,i,s,.5,E),$3(M[0],E[0],M[1],E[1],M[2],E[2],M[3],E[3],l,u),$3(M[4],E[4],M[5],E[5],M[6],E[6],M[7],E[7],l,u)}function tFt(t,e){var n=B3(t),r=[];e=e||1;for(var a=0;a<n.length;a++){var i=n[a],o=[],s=i[0],l=i[1];o.push(s,l);for(var u=2;u<i.length;){var c=i[u++],f=i[u++],d=i[u++],h=i[u++],p=i[u++],v=i[u++];$3(s,l,c,f,d,h,p,v,o,e),s=p,l=v}r.push(o)}return r}function Rfe(t,e,n){var r=t[e],a=t[1-e],i=Math.abs(r/a),o=Math.ceil(Math.sqrt(i*n)),s=Math.floor(n/o);s===0&&(s=1,o=n);for(var l=[],u=0;u<o;u++)l.push(s);var c=o*s,f=n-c;if(f>0)for(var u=0;u<f;u++)l[u%o]+=1;return l}function ij(t,e,n){for(var r=t.r0,a=t.r,i=t.startAngle,o=t.endAngle,s=Math.abs(o-i),l=s*a,u=a-r,c=l>Math.abs(u),f=Rfe([l,u],c?0:1,e),d=(c?s:u)/f.length,h=0;h<f.length;h++)for(var p=(c?u:s)/f[h],v=0;v<f[h];v++){var g={};c?(g.startAngle=i+d*h,g.endAngle=i+d*(h+1),g.r0=r+p*v,g.r=r+p*(v+1)):(g.startAngle=i+p*v,g.endAngle=i+p*(v+1),g.r0=r+d*h,g.r=r+d*(h+1)),g.clockwise=t.clockwise,g.cx=t.cx,g.cy=t.cy,n.push(g)}}function nFt(t,e,n){for(var r=t.width,a=t.height,i=r>a,o=Rfe([r,a],i?0:1,e),s=i?"width":"height",l=i?"height":"width",u=i?"x":"y",c=i?"y":"x",f=t[s]/o.length,d=0;d<o.length;d++)for(var h=t[l]/o[d],p=0;p<o[d];p++){var v={};v[u]=d*f,v[c]=p*h,v[s]=f,v[l]=h,v.x+=t.x,v.y+=t.y,n.push(v)}}function oj(t,e,n,r){return t*r-n*e}function rFt(t,e,n,r,a,i,o,s){var l=n-t,u=r-e,c=o-a,f=s-i,d=oj(c,f,l,u);if(Math.abs(d)<1e-6)return null;var h=t-a,p=e-i,v=oj(h,p,c,f)/d;return v<0||v>1?null:new vn(v*l+t,v*u+e)}function aFt(t,e,n){var r=new vn;vn.sub(r,n,e),r.normalize();var a=new vn;vn.sub(a,t,e);var i=a.dot(r);return i}function Mv(t,e){var n=t[t.length-1];n&&n[0]===e[0]&&n[1]===e[1]||t.push(e)}function iFt(t,e,n){for(var r=t.length,a=[],i=0;i<r;i++){var o=t[i],s=t[(i+1)%r],l=rFt(o[0],o[1],s[0],s[1],e.x,e.y,n.x,n.y);l&&a.push({projPt:aFt(l,e,n),pt:l,idx:i})}if(a.length<2)return[{points:t},{points:t}];a.sort(function(g,y){return g.projPt-y.projPt});var u=a[0],c=a[a.length-1];if(c.idx<u.idx){var f=u;u=c,c=f}for(var d=[u.pt.x,u.pt.y],h=[c.pt.x,c.pt.y],p=[d],v=[h],i=u.idx+1;i<=c.idx;i++)Mv(p,t[i].slice());Mv(p,h),Mv(p,d);for(var i=c.idx+1;i<=u.idx+r;i++)Mv(v,t[i%r].slice());return Mv(v,d),Mv(v,h),[{points:p},{points:v}]}function sj(t){var e=t.points,n=[],r=[];cE(e,n,r);var a=new yn(n[0],n[1],r[0]-n[0],r[1]-n[1]),i=a.width,o=a.height,s=a.x,l=a.y,u=new vn,c=new vn;return i>o?(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),iFt(e,u,c)}function PC(t,e,n,r){if(n===1)r.push(e);else{var a=Math.floor(n/2),i=t(e);PC(t,i[0],a,r),PC(t,i[1],n-a,r)}return r}function oFt(t,e){for(var n=[],r=0;r<e;r++)n.push(xI(t));return n}function sFt(t,e){e.setStyle(t.style),e.z=t.z,e.z2=t.z2,e.zlevel=t.zlevel}function lFt(t){for(var e=[],n=0;n<t.length;)e.push([t[n++],t[n++]]);return e}function uFt(t,e){var n=[],r=t.shape,a;switch(t.type){case"rect":nFt(r,e,n),a=$n;break;case"sector":ij(r,e,n),a=so;break;case"circle":ij({r0:0,r:r.r,startAngle:0,endAngle:Math.PI*2,cx:r.cx,cy:r.cy},e,n),a=so;break;default:var i=t.getComputedTransform(),o=i?Math.sqrt(Math.max(i[0]*i[0]+i[1]*i[1],i[2]*i[2]+i[3]*i[3])):1,s=ut(tFt(t.getUpdatedPathProxy(),o),function(y){return lFt(y)}),l=s.length;if(l===0)PC(sj,{points:s[0]},e,n);else if(l===e)for(var u=0;u<l;u++)n.push({points:s[u]});else{var c=0,f=ut(s,function(y){var m=[],S=[];cE(y,m,S);var w=(S[1]-m[1])*(S[0]-m[0]);return c+=w,{poly:y,area:w}});f.sort(function(y,m){return m.area-y.area});for(var d=e,u=0;u<l;u++){var h=f[u];if(d<=0)break;var p=u===l-1?d:Math.ceil(h.area/c*e);p<0||(PC(sj,{points:h.poly},p,n),d-=p)}}a=lo;break}if(!a)return oFt(t,e);for(var v=[],u=0;u<n.length;u++){var g=new a;g.setShape(n[u]),sFt(t,g),v.push(g)}return v}function cFt(t,e){var n=t.length,r=e.length;if(n===r)return[t,e];for(var a=[],i=[],o=n<r?t:e,s=Math.min(n,r),l=Math.abs(r-n)/6,u=(s-2)/6,c=Math.ceil(l/u)+1,f=[o[0],o[1]],d=l,h=2;h<s;){var p=o[h-2],v=o[h-1],g=o[h++],y=o[h++],m=o[h++],S=o[h++],w=o[h++],C=o[h++];if(d<=0){f.push(g,y,m,S,w,C);continue}for(var _=Math.min(d,c-1)+1,x=1;x<=_;x++){var T=x/_;Xf(p,g,m,w,T,a),Xf(v,y,S,C,T,i),p=a[3],v=i[3],f.push(a[1],i[1],a[2],i[2],p,v),g=a[5],y=i[5],m=a[6],S=i[6]}d-=_-1}return o===t?[f,e]:[t,f]}function lj(t,e){for(var n=t.length,r=t[n-2],a=t[n-1],i=[],o=0;o<e.length;)i[o++]=r,i[o++]=a;return i}function fFt(t,e){for(var n,r,a,i=[],o=[],s=0;s<Math.max(t.length,e.length);s++){var l=t[s],u=e[s],c=void 0,f=void 0;l?u?(n=cFt(l,u),c=n[0],f=n[1],r=c,a=f):(f=lj(a||l,l),c=l):(c=lj(r||u,u),f=u),i.push(c),o.push(f)}return[i,o]}function uj(t){for(var e=0,n=0,r=0,a=t.length,i=0,o=a-2;i<a;o=i,i+=2){var s=t[o],l=t[o+1],u=t[i],c=t[i+1],f=s*c-u*l;e+=f,n+=(s+u)*f,r+=(l+c)*f}return e===0?[t[0]||0,t[1]||0]:[n/e/3,r/e/3,e]}function dFt(t,e,n,r){for(var a=(t.length-2)/6,i=1/0,o=0,s=t.length,l=s-2,u=0;u<a;u++){for(var c=u*6,f=0,d=0;d<s;d+=2){var h=d===0?c:(c+d-2)%l+2,p=t[h]-n[0],v=t[h+1]-n[1],g=e[d]-r[0],y=e[d+1]-r[1],m=g-p,S=y-v;f+=m*m+S*S}f<i&&(i=f,o=u)}return o}function hFt(t){for(var e=[],n=t.length,r=0;r<n;r+=2)e[r]=t[n-r-2],e[r+1]=t[n-r-1];return e}function pFt(t,e,n,r){for(var a=[],i,o=0;o<t.length;o++){var s=t[o],l=e[o],u=uj(s),c=uj(l);i==null&&(i=u[2]<0!=c[2]<0);var f=[],d=[],h=0,p=1/0,v=[],g=s.length;i&&(s=hFt(s));for(var y=dFt(s,l,u,c)*6,m=g-2,S=0;S<m;S+=2){var w=(y+S)%m+2;f[S+2]=s[w]-u[0],f[S+3]=s[w+1]-u[1]}if(f[0]=s[y]-u[0],f[1]=s[y+1]-u[1],n>0)for(var C=r/n,_=-r/2;_<=r/2;_+=C){for(var x=Math.sin(_),T=Math.cos(_),M=0,S=0;S<s.length;S+=2){var E=f[S],A=f[S+1],k=l[S]-c[0],L=l[S+1]-c[1],I=k*T-L*x,P=k*x+L*T;v[S]=I,v[S+1]=P;var F=I-E,$=P-A;M+=F*F+$*$}if(M<p){p=M,h=_;for(var W=0;W<v.length;W++)d[W]=v[W]}}else for(var V=0;V<g;V+=2)d[V]=l[V]-c[0],d[V+1]=l[V+1]-c[1];a.push({from:f,to:d,fromCp:u,toCp:c,rotation:-h})}return a}function FC(t){return t.__isCombineMorphing}var Lfe="__mOriginal_";function zC(t,e,n){var r=Lfe+e,a=t[r]||t[e];t[r]||(t[r]=t[e]);var i=n.replace,o=n.after,s=n.before;t[e]=function(){var l=arguments,u;return s&&s.apply(this,l),i?u=i.apply(this,l):u=a.apply(this,l),o&&o.apply(this,l),u}}function qm(t,e){var n=Lfe+e;t[n]&&(t[e]=t[n],t[n]=null)}function cj(t,e){for(var n=0;n<t.length;n++)for(var r=t[n],a=0;a<r.length;){var i=r[a],o=r[a+1];r[a++]=e[0]*i+e[2]*o+e[4],r[a++]=e[1]*i+e[3]*o+e[5]}}function Ofe(t,e){var n=t.getUpdatedPathProxy(),r=e.getUpdatedPathProxy(),a=fFt(B3(n),B3(r)),i=a[0],o=a[1],s=t.getComputedTransform(),l=e.getComputedTransform();function u(){this.transform=null}s&&cj(i,s),l&&cj(o,l),zC(e,"updateTransform",{replace:u}),e.transform=null;var c=pFt(i,o,10,Math.PI),f=[];zC(e,"buildPath",{replace:function(d){for(var h=e.__morphT,p=1-h,v=[],g=0;g<c.length;g++){var y=c[g],m=y.from,S=y.to,w=y.rotation*h,C=y.fromCp,_=y.toCp,x=Math.sin(w),T=Math.cos(w);Im(v,C,_,h);for(var M=0;M<m.length;M+=2){var E=m[M],A=m[M+1],k=S[M],L=S[M+1],I=E*p+k*h,P=A*p+L*h;f[M]=I*T-P*x+v[0],f[M+1]=I*x+P*T+v[1]}var F=f[0],$=f[1];d.moveTo(F,$);for(var M=2;M<m.length;){var k=f[M++],L=f[M++],W=f[M++],V=f[M++],z=f[M++],K=f[M++];F===k&&$===L&&W===z&&V===K?d.lineTo(z,K):d.bezierCurveTo(k,L,W,V,z,K),F=z,$=K}}}})}function v$(t,e,n){if(!t||!e)return e;var r=n.done,a=n.during;Ofe(t,e),e.__morphT=0;function i(){qm(e,"buildPath"),qm(e,"updateTransform"),e.__morphT=-1,e.createPathProxy(),e.dirtyShape()}return e.animateTo({__morphT:1},Xt({during:function(o){e.dirtyShape(),a&&a(o)},done:function(){i(),r&&r()}},n)),e}function vFt(t,e,n,r,a,i){var o=16;t=a===n?0:Math.round(32767*(t-n)/(a-n)),e=i===r?0:Math.round(32767*(e-r)/(i-r));for(var s=0,l,u=(1<<o)/2;u>0;u/=2){var c=0,f=0;(t&u)>0&&(c=1),(e&u)>0&&(f=1),s+=u*u*(3*c^f),f===0&&(c===1&&(t=u-1-t,e=u-1-e),l=t,t=e,e=l)}return s}function UC(t){var e=1/0,n=1/0,r=-1/0,a=-1/0,i=ut(t,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 e=Math.min(c,e),n=Math.min(f,n),r=Math.max(c,r),a=Math.max(f,a),[c,f]}),o=ut(i,function(s,l){return{cp:s,z:vFt(s[0],s[1],e,n,r,a),path:t[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function Vfe(t){return uFt(t.path,t.count)}function P3(){return{fromIndividuals:[],toIndividuals:[],count:0}}function gFt(t,e,n){var r=[];function a(C){for(var _=0;_<C.length;_++){var x=C[_];FC(x)?a(x.childrenRef()):x instanceof Cn&&r.push(x)}}a(t);var i=r.length;if(!i)return P3();var o=n.dividePath||Vfe,s=o({path:e,count:i});if(s.length!==i)return console.error("Invalid morphing: unmatched splitted path"),P3();r=UC(r),s=UC(s);for(var l=n.done,u=n.during,c=n.individualDelay,f=new Qu,d=0;d<i;d++){var h=r[d],p=s[d];p.parent=e,p.copyTransform(f),c||Ofe(h,p)}e.__isCombineMorphing=!0,e.childrenRef=function(){return s};function v(C){for(var _=0;_<s.length;_++)s[_].addSelfToZr(C)}zC(e,"addSelfToZr",{after:function(C){v(C)}}),zC(e,"removeSelfFromZr",{after:function(C){for(var _=0;_<s.length;_++)s[_].removeSelfFromZr(C)}});function g(){e.__isCombineMorphing=!1,e.__morphT=-1,e.childrenRef=null,qm(e,"addSelfToZr"),qm(e,"removeSelfFromZr")}var y=s.length;if(c)for(var m=y,S=function(){m--,m===0&&(g(),l&&l())},d=0;d<y;d++){var w=c?Xt({delay:(n.delay||0)+c(d,y,r[d],s[d]),done:S},n):n;v$(r[d],s[d],w)}else e.__morphT=0,e.animateTo({__morphT:1},Xt({during:function(C){for(var _=0;_<y;_++){var x=s[_];x.__morphT=e.__morphT,x.dirtyShape()}u&&u(C)},done:function(){g();for(var C=0;C<t.length;C++)qm(t[C],"updateTransform");l&&l()}},n));return e.__zr&&v(e.__zr),{fromIndividuals:r,toIndividuals:s,count:y}}function yFt(t,e,n){var r=e.length,a=[],i=n.dividePath||Vfe;function o(h){for(var p=0;p<h.length;p++){var v=h[p];FC(v)?o(v.childrenRef()):v instanceof Cn&&a.push(v)}}if(FC(t)){o(t.childrenRef());var s=a.length;if(s<r)for(var l=0,u=s;u<r;u++)a.push(xI(a[l++%s]));a.length=r}else{a=i({path:t,count:r});for(var c=t.getComputedTransform(),u=0;u<a.length;u++)a[u].setLocalTransform(c);if(a.length!==r)return console.error("Invalid morphing: unmatched splitted path"),P3()}a=UC(a),e=UC(e);for(var f=n.individualDelay,u=0;u<r;u++){var d=f?Xt({delay:(n.delay||0)+f(u,r,a[u],e[u])},n):n;v$(a[u],e[u],d)}return{fromIndividuals:a,toIndividuals:e,count:e.length}}function fj(t){return st(t[0])}function dj(t,e){for(var n=[],r=t.length,a=0;a<r;a++)n.push({one:t[a],many:[]});for(var a=0;a<e.length;a++){var i=e[a].length,o=void 0;for(o=0;o<i;o++)n[o%r].many.push(e[a][o])}for(var s=0,a=r-1;a>=0;a--)if(!n[a].many.length){var l=n[s].many;if(l.length<=1)if(s)s=0;else return n;var i=l.length,u=Math.ceil(i/2);n[a].many=l.slice(u,i),n[s].many=l.slice(0,u),s++}return n}var mFt={clone:function(t){for(var e=[],n=1-Math.pow(1-t.path.style.opacity,1/t.count),r=0;r<t.count;r++){var a=xI(t.path);a.setStyle("opacity",n),e.push(a)}return e},split:null};function Yk(t,e,n,r,a,i){if(!t.length||!e.length)return;var o=R0("update",r,a);if(!(o&&o.duration>0))return;var s=r.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,c;fj(t)&&(u=t,c=e),fj(e)&&(u=e,c=t);function f(y,m,S,w,C){var _=y.many,x=y.one;if(_.length===1&&!C){var T=m?_[0]:x,M=m?x:_[0];if(FC(T))f({many:[T],one:M},!0,S,w,!0);else{var E=s?Xt({delay:s(S,w)},l):l;v$(T,M,E),i(T,M,T,M,E)}}else for(var A=Xt({dividePath:mFt[n],individualDelay:s&&function($,W,V,z){return s($+S,w)}},l),k=m?gFt(_,x,A):yFt(x,_,A),L=k.fromIndividuals,I=k.toIndividuals,P=L.length,F=0;F<P;F++){var E=s?Xt({delay:s(F,P)},l):l;i(L[F],I[F],m?_[F]:y.one,m?y.one:_[F],E)}}for(var d=u?u===t:t.length>e.length,h=u?dj(c,u):dj(d?e:t,[d?t:e]),p=0,v=0;v<h.length;v++)p+=h[v].many.length;for(var g=0,v=0;v<h.length;v++)f(h[v],d,g,p),g+=h[v].many.length}function vh(t){if(!t)return[];if(st(t)){for(var e=[],n=0;n<t.length;n++)e.push(vh(t[n]));return e}var r=[];return t.traverse(function(a){a instanceof Cn&&!a.disableMorphing&&!a.invisible&&!a.ignore&&r.push(a)}),r}var Nfe=1e4,bFt=Gn();function SFt(t){for(var e=t.dimensions,n=0;n<e.length;n++){var r=t.getDimensionInfo(e[n]);if(r&&r.otherDims.itemGroupId===0)return e[n]}}function hj(t){var e=[];return q(t,function(n){var r=n.data;if(!(r.count()>Nfe))for(var a=r.getIndices(),i=SFt(r),o=0;o<a.length;o++)e.push({dataGroupId:n.dataGroupId,data:r,dim:n.dim||i,divide:n.divide,dataIndex:o})}),e}function Xk(t,e,n){t.traverse(function(r){r instanceof Cn&&Ur(r,{style:{opacity:0}},e,{dataIndex:n,isFrom:!0})})}function qk(t){if(t.parent){var e=t.getComputedTransform();t.setLocalTransform(e),t.parent.remove(t)}}function Dv(t){t.stopAnimation(),t.isGroup&&t.traverse(function(e){e.stopAnimation()})}function wFt(t,e,n){var r=R0("update",n,e);r&&t.traverse(function(a){if(a instanceof As){var i=Gwt(a);i&&a.animateFrom({style:i},r)}})}function xFt(t,e){var n=t.length;if(n!==e.length)return!1;for(var r=0;r<n;r++){var a=t[r],i=e[r];if(a.data.getId(a.dataIndex)!==i.data.getId(i.dataIndex))return!1}return!0}function Ife(t,e,n){var r=hj(t),a=hj(e);function i(y,m,S,w,C){(S||y)&&m.animateFrom({style:S&&S!==y?et(et({},S.style),y.style):y.style},C)}function o(y){for(var m=0;m<y.length;m++)if(y[m].dim)return y[m].dim}var s=o(r),l=o(a),u=!1;function c(y,m){return function(S){var w=S.data,C=S.dataIndex;if(m)return w.getId(C);var _=S.dataGroupId,x=y?s||l:l||s,T=x&&w.getDimensionInfo(x),M=T&&T.ordinalMeta;if(T){var E=w.get(T.name,C);return M&&M.categories[E]||E+""}var A=w.getRawDataItem(C);return A&&A.groupId?A.groupId+"":_||w.getId(C)}}var f=xFt(r,a),d={};if(!f)for(var h=0;h<a.length;h++){var p=a[h],v=p.data.getItemGraphicEl(p.dataIndex);v&&(d[v.id]=!0)}function g(y,m){var S=r[m],w=a[y],C=w.data.hostModel,_=S.data.getItemGraphicEl(S.dataIndex),x=w.data.getItemGraphicEl(w.dataIndex);if(_===x){x&&wFt(x,w.dataIndex,C);return}_&&d[_.id]||x&&(Dv(x),_?(Dv(_),qk(_),u=!0,Yk(vh(_),vh(x),w.divide,C,y,i)):Xk(x,C,y))}new pc(r,a,c(!0,f),c(!1,f),null,"multiple").update(g).updateManyToOne(function(y,m){var S=a[y],w=S.data,C=w.hostModel,_=w.getItemGraphicEl(S.dataIndex),x=or(ut(m,function(T){return r[T].data.getItemGraphicEl(r[T].dataIndex)}),function(T){return T&&T!==_&&!d[T.id]});_&&(Dv(_),x.length?(q(x,function(T){Dv(T),qk(T)}),u=!0,Yk(vh(x),vh(_),S.divide,C,y,i)):Xk(_,C,S.dataIndex))}).updateOneToMany(function(y,m){var S=r[m],w=S.data.getItemGraphicEl(S.dataIndex);if(!(w&&d[w.id])){var C=or(ut(y,function(x){return a[x].data.getItemGraphicEl(a[x].dataIndex)}),function(x){return x&&x!==w}),_=a[y[0]].data.hostModel;C.length&&(q(C,function(x){return Dv(x)}),w?(Dv(w),qk(w),u=!0,Yk(vh(w),vh(C),S.divide,_,y[0],i)):q(C,function(x){return Xk(x,_,y[0])}))}}).updateManyToMany(function(y,m){new pc(m,y,function(S){return r[S].data.getId(r[S].dataIndex)},function(S){return a[S].data.getId(a[S].dataIndex)}).update(function(S,w){g(y[S],m[w])}).execute()}).execute(),u&&q(e,function(y){var m=y.data,S=m.hostModel,w=S&&n.getViewOfSeriesModel(S),C=R0("update",S,0);w&&S.isAnimationEnabled()&&C&&C.duration>0&&w.group.traverse(function(_){_ instanceof Cn&&!_.animators.length&&_.animateFrom({style:{opacity:0}},C)})})}function pj(t){var e=t.getModel("universalTransition").get("seriesKey");return e||t.id}function vj(t){return st(t)?t.sort().join(","):t}function df(t){if(t.hostModel)return t.hostModel.getModel("universalTransition").get("divideShape")}function _Ft(t,e){var n=Gt(),r=Gt(),a=Gt();return q(t.oldSeries,function(i,o){var s=t.oldDataGroupIds[o],l=t.oldData[o],u=pj(i),c=vj(u);r.set(c,{dataGroupId:s,data:l}),st(u)&&q(u,function(f){a.set(f,{key:c,dataGroupId:s,data:l})})}),q(e.updatedSeries,function(i){if(i.isUniversalTransitionEnabled()&&i.isAnimationEnabled()){var o=i.get("dataGroupId"),s=i.getData(),l=pj(i),u=vj(l),c=r.get(u);if(c)n.set(u,{oldSeries:[{dataGroupId:c.dataGroupId,divide:df(c.data),data:c.data}],newSeries:[{dataGroupId:o,divide:df(s),data:s}]});else if(st(l)){var f=[];q(l,function(p){var v=r.get(p);v.data&&f.push({dataGroupId:v.dataGroupId,divide:df(v.data),data:v.data})}),f.length&&n.set(u,{oldSeries:f,newSeries:[{dataGroupId:o,data:s,divide:df(s)}]})}else{var d=a.get(l);if(d){var h=n.get(d.key);h||(h={oldSeries:[{dataGroupId:d.dataGroupId,data:d.data,divide:df(d.data)}],newSeries:[]},n.set(d.key,h)),h.newSeries.push({dataGroupId:o,data:s,divide:df(s)})}}}}),n}function gj(t,e){for(var n=0;n<t.length;n++){var r=e.seriesIndex!=null&&e.seriesIndex===t[n].seriesIndex||e.seriesId!=null&&e.seriesId===t[n].id;if(r)return n}}function CFt(t,e,n,r){var a=[],i=[];q(mr(t.from),function(o){var s=gj(e.oldSeries,o);s>=0&&a.push({dataGroupId:e.oldDataGroupIds[s],data:e.oldData[s],divide:df(e.oldData[s]),dim:o.dimension})}),q(mr(t.to),function(o){var s=gj(n.updatedSeries,o);if(s>=0){var l=n.updatedSeries[s].getData();i.push({dataGroupId:e.oldDataGroupIds[s],data:l,divide:df(l),dim:o.dimension})}}),a.length>0&&i.length>0&&Ife(a,i,r)}function TFt(t){t.registerUpdateLifecycle("series:beforeupdate",function(e,n,r){q(mr(r.seriesTransition),function(a){q(mr(a.to),function(i){for(var o=r.updatedSeries,s=0;s<o.length;s++)(i.seriesIndex!=null&&i.seriesIndex===o[s].seriesIndex||i.seriesId!=null&&i.seriesId===o[s].id)&&(o[s][F_]=!0)})})}),t.registerUpdateLifecycle("series:transition",function(e,n,r){var a=bFt(n);if(a.oldSeries&&r.updatedSeries&&r.optionChanged){var i=r.seriesTransition;if(i)q(mr(i),function(h){CFt(h,a,r,n)});else{var o=_Ft(a,r);q(o.keys(),function(h){var p=o.get(h);Ife(p.oldSeries,p.newSeries,n)})}q(r.updatedSeries,function(h){h[F_]&&(h[F_]=!1)})}for(var s=e.getSeries(),l=a.oldSeries=[],u=a.oldDataGroupIds=[],c=a.oldData=[],f=0;f<s.length;f++){var d=s[f].getData();d.count()<Nfe&&(l.push(s[f]),u.push(s[f].get("dataGroupId")),c.push(d))}})}wn([UEt]);wn([NEt]);wn([dMt,kMt,GMt,kDt,KDt,zAt,mkt,aRt,LRt,zRt,QRt,nOt,AOt,UOt,l3t,v3t,O3t,G3t,n4t,c4t,_4t,lVt]);wn(RVt);wn(fNt);wn(Rue);wn(DNt);wn(yce);wn(NNt);wn(HNt);wn(WIt);wn(pBt);wn(SS);wn(VBt);wn(BBt);wn(QBt);wn(l$t);wn(g$t);wn(C$t);wn($$t);wn(oPt);wn(xfe);wn(_fe);wn(OPt);wn(Dfe);wn(Afe);wn($Pt);wn(ZPt);wn(eFt);wn(TFt);wn(tEt);const EFt=Object.freeze(Object.defineProperty({__proto__:null,Axis:Vs,ChartView:br,ComponentModel:On,ComponentView:jr,List:Oi,Model:yr,PRIORITY:Bse,SeriesModel:Vr,color:q1t,connect:rCt,dataTool:cCt,dependencies:P2t,disConnect:aCt,disconnect:Wse,dispose:iCt,env:Fn,extendChartView:zTt,extendComponentModel:$Tt,extendComponentView:PTt,extendSeriesModel:FTt,format:ETt,getCoordinateSystemDimensions:sCt,getInstanceByDom:eB,getInstanceById:oCt,getMap:uCt,graphic:TTt,helper:yTt,init:nCt,innerDrawElementOnCanvas:qI,matrix:x1t,number:_Tt,parseGeoJSON:QO,parseGeoJson:QO,registerAction:Ml,registerCoordinateSystem:Yse,registerLayout:Xse,registerLoading:iB,registerLocale:kI,registerMap:qse,registerPostInit:jse,registerPostUpdate:Kse,registerPreprocessor:nB,registerProcessor:rB,registerTheme:tB,registerTransform:Zse,registerUpdateLifecycle:AE,registerVisual:pd,setCanvasCreator:lCt,setPlatformAPI:Cae,throttle:ME,time:CTt,use:wn,util:MTt,vector:o1t,version:$2t,zrUtil:Jmt,zrender:Nbt},Symbol.toStringTag,{value:"Module"}));function MFt(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=null,r=0;const i=/\r?\n/.exec(t),o=i!==null?i[0]:null;return e.dataset=$a.newInstance(),e.velocitys=[],t.split(o).forEach((s,l)=>{if(n){let u=e.velocitys[e.velocitys.length-1],c=s.split(",");u.points.push({x:Number(c[0]),y:Number(c[1]),z:Number(c[2])}),r--,r==0&&(n=null)}else{let u={};e.velocitys.push(u);let c=s.split(",");u.name=c[0],u.num=Number(c[1]),u.speed=Number(c[2]),u.vector=[Number(c[3]),Number(c[4]),Number(c[5])],r=Number(c[1]),u.points=[],n=!0}}),console.log(e),e}var DFt={parseLegacyASCII:MFt};function AFt(t,e){e.classHierarchy.push("velocityDataReader"),e.dataAccessHelper||(e.dataAccessHelper=KN.get("http"));function n(r){const{compression:a,progressCallback:i}=e;return e.dataAccessHelper.fetchText(t,r,{compression:a,progressCallback:i})}t.setUrl=function(r){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};e.url=r;const i=r.split("/");return i.pop(),e.baseURL=i.join("/"),e.compression=a.compression,t.loadData({progressCallback:a.progressCallback})},t.loadData=function(){const r=n(e.url);return r.then(t.parseAsText),r},t.parseAsText=r=>{if(r){if(r!==e.parseData)t.modified();else return;e.parseData=r,e.dataModel=DFt.parseLegacyASCII(e.parseData),e.output[0]=e.dataModel.dataset,e.output[1]=e.dataModel.velocitys}},t.requestData=(r,a)=>{t.parseAsText(e.parseData)}}const kFt={};function Bfe(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,kFt,n),J.obj(t,e),J.get(t,e,["url","baseURL"]),J.setGet(t,e,["dataAccessHelper"]),J.algo(t,e,0,1),AFt(t,e),e.compression||(e.compression=null),e.progressCallback||(e.progressCallback=null)}const RFt=J.newInstance(Bfe,"VelocityDataReader");var LFt={newInstance:RFt,extend:Bfe};class OFt{constructor(){this.aid=5,this.step,this.stepsum=10,this._url="/disaster/TransServlet?channelNo=service&clientToken=e47b87eec69545559d1e81e56626da68&userId=5f06c8bc77234f969d13e160b54c27e3&aid=",this.polydata,this.scalars=new Map,this.scalar=new Map,this.gjScalar,this.reader=Imt.newInstance(),this.velocityreader=LFt.newInstance(),this.velocityMap=new Map,this.velocitys=[]}async initGemetry(){this.scalars=new Map,this.scalar=new Map,this.velocityMap=new Map,this.velocitys=[];const e=this._url+this.aid+"&transCode=D000014";await this.reader.setUrl(e).then(()=>{this.polydata=this.reader.getOutputData(0)})}async initScalrs(){for(let e=0;e<=this.stepsum;e++)await this.reader.setUrl(this._url+"&transCode=D00009&step="+e).then(()=>{const n=this.reader.getOutputData(1);this.scalars.set(e,n)})}async getScalrsByStep(e){if(this.step=e,this.scalars.get(e))this.scalar=this.scalars.get(e);else{const n=this._url+this.aid+"&transCode=D00009&step="+this.step;await this.reader.setUrl(n).then(()=>{const r=this.reader.getOutputData(1);r.forEach(function(a,i){const o=a.map(s=>isNaN(s)?0:s);r.set(i,o)}),this.scalar=r,this.scalars.set(e,r)})}}async getVelocityByStep(e){if(console.log("getVelocityByStep"),this.step=e,this.velocityMap.get(e))this.velocitys=this.velocityMap.get(e);else{const n=this._url+this.aid+"&transCode=D000017&step="+this.step;await this.velocityreader.setUrl(n).then(()=>{const r=this.velocityreader.getOutputData(1);this.velocitys=r})}}intgjScalar(e){let n=this.gjScalar=[];if(e=="Water")this.scalar.forEach(function(r,a){a=="Height"&&r.forEach(function(i){i<1.5?n.push(0):n.push(1)})});else if(e=="Fire"||e=="Gass"||e=="Gass1"){let r=[],a=[],i=[],o=[],s=[],l=[],u=[],c=[],f=[],d=[];this.scalar.forEach(function(h,p){p=="Temperature"&&h.forEach(function(v){v>=0&&v<40?r.push(0):v>=40?r.push(1):r.push(0)}),p=="CH4"&&h.forEach(function(v){v>=0&&v<25e4?a.push(0):v>=25e4?a.push(1):a.push(0)}),p=="CO"&&h.forEach(function(v){v>=0&&v<30?i.push(0):v>=30?i.push(1):i.push(0)}),p=="CO2"&&h.forEach(function(v){v>=0&&v<18e3?o.push(0):v>=18e3?o.push(1):o.push(0)}),p=="SO2"&&h.forEach(function(v){v>=0&&v<10?s.push(0):v>=10?s.push(1):s.push(0)}),p=="NO"&&h.forEach(function(v){v>=0&&v<10?l.push(0):v>=10?l.push(1):l.push(0)}),p=="NO2"&&h.forEach(function(v){v>=0&&v<10?u.push(0):v>=10?u.push(1):u.push(0)}),p=="H2S"&&h.forEach(function(v){v>=0&&v<10?c.push(0):v>=10?c.push(1):c.push(0)}),p=="NH3"&&h.forEach(function(v){v>=0&&v<30?f.push(0):v>=30?f.push(1):f.push(0)}),p=="CL2"&&h.forEach(function(v){v>=0&&v<1?d.push(0):v>=30?d.push(1):d.push(0)})});for(let h=0;h<r.length;h++){let p=[];p.push(r[h]),a.length>0&&p.push(a[h]),i.length>0&&p.push(i[h]),o.length>0&&p.push(o[h]),s.length>0&&p.push(s[h]),l.length>0&&p.push(l[h]),u.length>0&&p.push(u[h]),c.length>0&&p.push(c[h]),f.length>0&&p.push(f[h]),d.length>0&&p.push(d[h]),n.push(Math.max(...p))}}this.gjScalar}}function $fe(){return new OFt}const VFt={id:"left",class:"result_left1"},NFt={__name:"resultLeft",props:{region:"Temperature",count:50,aid:49},setup(t,{expose:e}){const n=t;let r={},a=!1,i,o,s=!1;Ke(()=>[n.region,n.count,n.aid],(p,v)=>{s&&(p[1]!=v[1]&&(console.log("步数改变",p[1],v[1]),r.fcon&&c(n.count)),p[0]!=v[0]&&(console.log("标量改变",p[0],v[0]),r.fcon&&f()))},{deep:!0}),Ut(()=>{const p=document.getElementById("left");p.style.position="relative",p.style.width="100%",p.style.height="100%",r.fcon=$fe(),r.renderWindow=XT.newInstance(),r.renderWindow.setContainer(p),r.jgMapper=Pr.newInstance(),r.jgActor=$r.newInstance(),r.jgActor.getProperty().setRepresentation(ni.SURFACE),r.jgActor.setMapper(r.jgMapper),r.renderWindow.getRenderer().setBackground(0,0,0,0),r.scalarBarActor=qg.newInstance(),r.scalarBarActor.setGenerateTicks(l(5)),r.scalarBarActor.setDrawAboveRangeSwatch(!0),r.scalarBarActor.setDrawNanAnnotation(!1),r.scalarBarActor.setBoxPosition([1,0]);const v=WN.newInstance();v.addRGBPoint(0,0,1,154/255),v.addRGBPoint(1,1,165/255,0),v.addRGBPoint(2,230/255,0,92/225),r.jgMapper.setLookupTable(v);const g=r.jgMapper.getLookupTable();r.scalarBarActor.setScalarsToColors(g),r.renderWindow.resize();const y=KT.newInstance();y.setColor(1,1,1),y.setIntensity(3),r.renderWindow.getRenderer().addLight(y)});function l(p){return v=>{const g=v.getLastTickBounds(),y=x0().domain([0,1]).range([g[0],g[1]]),S=y.ticks(p).map(_=>y(_));BT({minus:"-"});const w=y.tickFormat(S[0],S[S.length-1],p),C=S.map(w).map(_=>Number(parseFloat(_).toPrecision(12)).toPrecision());v.setTicks(S),v.setTickStrings(C)}}function u(p){const v=r.fcon;v.aid=p,v.initGemetry().then(g=>{console.log(v.polydata),c(n.count)}).catch(g=>{})}function c(p){const v=r.fcon;v.getScalrsByStep(p).then(g=>{console.log(v.scalar),f()}).catch(g=>{console.log(g)})}function f(){console.log("执行了");const p=r.scalarBarActor,v=r.jgMapper,g=r.jgActor,y=r.fcon;console.log(n.region);const m=y.scalar.get(n.region);if(!m||!y.polydata)return;const S=zn.newInstance({name:n.region,size:y.polydata.getNumberOfPoints()});S.setData(m),y.polydata.getPointData().setScalars(S),v.setInputData(y.polydata),d(m),v.setScalarRange(parseFloat(o.toFixed(3)),parseFloat(i.toFixed(3))),p.setAxisLabel(n.region),v.clearColorArrays(),g.getProperty().setOpacity(n.count),r.renderWindow.getRenderer().addActor(p),r.renderWindow.getRenderer().addActor(g),a||(r.renderWindow.getRenderer().resetCamera(),a=!0),r.renderWindow.resize(),r.renderWindow.getRenderWindow().render(),s=!0}function d(p){o=p[0],i=p[0];for(let v=0;v<=p.length;v++){let g=p[v];o>g&&(o=g),i<g&&(i=g)}}return Sr(()=>{r.scalarBarActor.delete(),r.jgMapper.delete(),r.jgActor.delete(),r.renderWindow.delete(),r=null}),e({leftChangAid:(p,v,g)=>{console.log(p,v,g),r.fcon&&(console.log(n),u(p))}}),(p,v)=>(G(),re("div",VFt))}},IFt={id:"right",class:"resultRight"},BFt={__name:"resultRight",props:{region:"Temperature",count:50,aid:49},setup(t,{expose:e}){const n=t;let r={},a=!1,i,o,s=!1;Ke(()=>[n.region,n.count,n.aid],(p,v)=>{s&&(p[1]!=v[1]&&(console.log("步数改变",p[1],v[1]),r.fcon&&c(n.count)),p[0]!=v[0]&&(console.log("标量改变",p[0],v[0]),r.fcon&&f()))},{deep:!0}),Ut(()=>{const p=document.getElementById("right");p.style.position="relative",p.style.width="100%",p.style.height="100%",r.fcon=$fe(),r.renderWindow=XT.newInstance(),r.renderWindow.setContainer(p),r.jgMapper=Pr.newInstance(),r.jgActor=$r.newInstance(),r.jgActor.getProperty().setRepresentation(ni.SURFACE),r.jgActor.setMapper(r.jgMapper),r.renderWindow.getRenderer().setBackground(0,0,0,0),r.scalarBarActor=qg.newInstance(),r.scalarBarActor.setGenerateTicks(l(5)),r.scalarBarActor.setDrawAboveRangeSwatch(!0),r.scalarBarActor.setDrawNanAnnotation(!1),r.scalarBarActor.setBoxPosition([1,0]);const v=WN.newInstance();v.addRGBPoint(0,0,1,154/255),v.addRGBPoint(1,1,165/255,0),v.addRGBPoint(2,230/255,0,92/225),r.jgMapper.setLookupTable(v);const g=r.jgMapper.getLookupTable();r.scalarBarActor.setScalarsToColors(g),r.renderWindow.resize();const y=KT.newInstance();y.setColor(1,1,1),y.setIntensity(3),r.renderWindow.getRenderer().addLight(y)});function l(p){return v=>{const g=v.getLastTickBounds(),y=x0().domain([0,1]).range([g[0],g[1]]),S=y.ticks(p).map(_=>y(_));BT({minus:"-"});const w=y.tickFormat(S[0],S[S.length-1],p),C=S.map(w).map(_=>Number(parseFloat(_).toPrecision(12)).toPrecision());v.setTicks(S),v.setTickStrings(C)}}function u(p){const v=r.fcon;v.aid=p,v.initGemetry().then(g=>{console.log(v.polydata),c(n.count)}).catch(g=>{})}function c(p){const v=r.fcon;v.getScalrsByStep(p).then(g=>{console.log(v.scalar),f()}).catch(g=>{console.log(g)})}function f(){console.log("执行了");const p=r.scalarBarActor,v=r.jgMapper,g=r.jgActor,y=r.fcon;console.log(n.region);const m=y.scalar.get(n.region);if(!m||!y.polydata)return;const S=zn.newInstance({name:n.region,size:y.polydata.getNumberOfPoints()});S.setData(m),y.polydata.getPointData().setScalars(S),v.setInputData(y.polydata),d(m),v.setScalarRange(parseFloat(o.toFixed(3)),parseFloat(i.toFixed(3))),p.setAxisLabel(n.region),v.clearColorArrays(),g.getProperty().setOpacity(n.count),r.renderWindow.getRenderer().addActor(p),r.renderWindow.getRenderer().addActor(g),a||(r.renderWindow.getRenderer().resetCamera(),a=!0),r.renderWindow.resize(),r.renderWindow.getRenderWindow().render(),s=!0}function d(p){o=p[0],i=p[0];for(let v=0;v<=p.length;v++){let g=p[v];o>g&&(o=g),i<g&&(i=g)}}return Sr(()=>{r.scalarBarActor.delete(),r.jgMapper.delete(),r.jgActor.delete(),r.renderWindow.delete(),r=null}),e({rightChangAid:(p,v,g)=>{console.log(p,v,g),r.fcon&&(console.log(n),u(p))}}),(p,v)=>(G(),re("div",IFt))}};const g$=Wve({history:sve(),routes:[{path:"/configurator",name:"模型库",component:Smt,beforeEnter:(t,e,n)=>{console.log(t,e),n()}},{path:"/vtk",name:"案例",component:()=>Xp(()=>import("./vtk-c8aef733.js"),["./vtk-c8aef733.js","./SVGHelpers-c6cd7f31.js","./index-28e52b24.js","./LabelWidget-193c836e.js"],import.meta.url)},{path:"/vtk2",name:"案例1",component:()=>Xp(()=>import("./vtk2-55346f71.js"),["./vtk2-55346f71.js","./SVGHelpers-c6cd7f31.js","./LabelWidget-193c836e.js"],import.meta.url)},{path:"/demo",name:"案例3",component:()=>Xp(()=>import("./demo-eee200e2.js"),["./demo-eee200e2.js","./SVGHelpers-c6cd7f31.js","./index-28e52b24.js"],import.meta.url)},{path:"/login",name:"login",component:()=>Xp(()=>import("./login-ec33f320.js"),["./login-ec33f320.js","./Group1317-20cc91af.js","./Group1317-285882fc.css","./login-8498d4a2.css"],import.meta.url)},{path:"/",name:"煤矿灾害态势推演",component:()=>Xp(()=>import("./appmian-4dfa8d6f.js"),["./appmian-4dfa8d6f.js","./Group1317-20cc91af.js","./Group1317-285882fc.css","./index-c271b6ad.js","./appmian-78e31029.css"],import.meta.url),meta:{keepAlive:!1,title:"煤矿灾害态势推演"},children:[{path:"/home",name:"home",component:()=>Xp(()=>import("./index-c271b6ad.js"),[],import.meta.url)}]},{path:"/goods",name:"goods",component:{goods:NFt}},{path:"/orderinfo",name:"orderinfo",component:{orderinfo:BFt}}]});g$.beforeEach((t,e,n)=>{let r=w0e();window.location.href.indexOf("aid")>0||window.location.href.indexOf("uname")>0&&window.location.href.indexOf("token")>0?(cY("e47b87eec69545559d1e81e56626da68"),fY("5f06c8bc77234f969d13e160b54c27e3"),console.log("守卫中aids:",window.location.href),window.document.title=t.name,n()):!r&&t.name!=="login"?n({name:"login"}):(window.document.title=t.name,n())});g$.afterEach((t,e,n)=>{window.scrollTo(0,0)});const Pfe=g$;const j0=DK(Ppe);j0.use(Pfe);j0.use(c1);j0.use(aWe);j0.config.globalProperties.$echarts=EFt;j0.mount("#app");j0.config.errorHandler=function(t,e,n){console.error("Vue error:",t,n)};export{Zs as $,b as A,ast as B,J as C,Mqe as D,gre as E,va as F,$a as G,xo as H,Ree as I,qFt as J,M_ as K,vD as L,YV as M,Vp as N,XV as O,WFt as P,xJ as Q,$2 as R,ist as S,$1 as T,zn as U,Va as V,P2 as W,bp as X,vu as Y,Ku as Z,Ln as _,AJ as a,Pfe as a$,Nee as a0,Jr as a1,iu as a2,L2 as a3,w0 as a4,Be as a5,$Ft as a6,xZe as a7,HJ as a8,wZe as a9,jFt as aA,RN as aB,zT as aC,Ws as aD,wJ as aE,eD as aF,VN as aG,att as aH,Xg as aI,W2 as aJ,Sb as aK,wb as aL,bu as aM,$e as aN,N as aO,j as aP,Ft as aQ,cn as aR,ct as aS,We as aT,wt as aU,HFt as aV,Rn as aW,cY as aX,fY as aY,T0e as aZ,iy as a_,bZe as aa,zJ as ab,UJ as ac,WJ as ad,Bqe as ae,Rqe as af,XJ as ag,RQe as ah,Pqe as ai,ya as aj,xi as ak,Kr as al,El as am,KFt as an,oi as ao,St as ap,pne as aq,_u as ar,T0 as as,Rre as at,_c as au,Zne as av,YFt as aw,qL as ax,In as ay,Kb as az,_qe as b,$fe as b0,Ke as b1,Ct as b2,dn as b3,Ee as b4,ED as b5,_e as b6,Gft as b7,MD as b8,DD as b9,Pb as bA,xt as bB,Vn as bC,Opt as bD,nJe as bE,QC as bF,Smt as bG,nCt as ba,Y as bb,ft as bc,Wg as bd,jf as be,NFt as bf,BFt as bg,hr as bh,ift as bi,PFt as bj,Kve as bk,Sr as bl,i1 as bm,Cr as bn,Mr as bo,x1 as bp,H0t as bq,Et as br,Imt as bs,XT as bt,ni as bu,qg as bv,WN as bw,KT as bx,x0 as by,BT as bz,yp as c,QV as d,JV as e,eN as f,$Ze as g,di as h,Yn as i,xa as j,gp as k,ea as l,ri as m,B as n,Ect as o,Pr as p,$r as q,ZV as r,nN as s,_r as t,Yb as u,XFt as v,Ut as w,G as x,re as y,R as z};