@bangerpage/core 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,655 @@
1
+ var Ib=Object.defineProperty;var mk=Object.getOwnPropertyDescriptor;var T=(r,e,t)=>()=>{if(t)throw t[0];try{return r&&(e=r(r=0)),e}catch(n){throw t=[n],n}};var Rb=(r,e)=>{for(var t in e)Ib(r,t,{get:e[t],enumerable:!0})};var Q=(r,e,t,n)=>{for(var i=n>1?void 0:n?mk(e,t):e,a=r.length-1,o;a>=0;a--)(o=r[a])&&(i=(n?o(e,t,i):o(i))||i);return n&&i&&Ib(e,t,i),i};var mc,gc,tm,Qb,Kl,vs,Ae,eS,rm,nm=T(()=>{"use strict";mc=globalThis,gc=mc.ShadowRoot&&(mc.ShadyCSS===void 0||mc.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,tm=Symbol(),Qb=new WeakMap,Kl=class{constructor(e,t,n){if(this._$cssResult$=!0,n!==tm)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o,t=this.t;if(gc&&e===void 0){let n=t!==void 0&&t.length===1;n&&(e=Qb.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&Qb.set(t,e))}return e}toString(){return this.cssText}},vs=r=>new Kl(typeof r=="string"?r:r+"",void 0,tm),Ae=(r,...e)=>{let t=r.length===1?r[0]:e.reduce((n,i,a)=>n+(o=>{if(o._$cssResult$===!0)return o.cssText;if(typeof o=="number")return o;throw Error("Value passed to 'css' function must be a 'css' function result: "+o+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+r[a+1],r[0]);return new Kl(t,r,tm)},eS=(r,e)=>{if(gc)r.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of e){let n=document.createElement("style"),i=mc.litNonce;i!==void 0&&n.setAttribute("nonce",i),n.textContent=t.cssText,r.appendChild(n)}},rm=gc?r=>r:r=>r instanceof CSSStyleSheet?(e=>{let t="";for(let n of e.cssRules)t+=n.cssText;return vs(t)})(r):r});var wk,Tk,Ek,Ak,Ck,Mk,yc,tS,Dk,Lk,Zl,jl,xc,rS,Jn,Jl=T(()=>{"use strict";nm();nm();({is:wk,defineProperty:Tk,getOwnPropertyDescriptor:Ek,getOwnPropertyNames:Ak,getOwnPropertySymbols:Ck,getPrototypeOf:Mk}=Object),yc=globalThis,tS=yc.trustedTypes,Dk=tS?tS.emptyScript:"",Lk=yc.reactiveElementPolyfillSupport,Zl=(r,e)=>r,jl={toAttribute(r,e){switch(e){case Boolean:r=r?Dk:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,e){let t=r;switch(e){case Boolean:t=r!==null;break;case Number:t=r===null?null:Number(r);break;case Object:case Array:try{t=JSON.parse(r)}catch{t=null}}return t}},xc=(r,e)=>!wk(r,e),rS={attribute:!0,type:String,converter:jl,reflect:!1,useDefault:!1,hasChanged:xc};Symbol.metadata??=Symbol("metadata"),yc.litPropertyMetadata??=new WeakMap;Jn=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=rS){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){let n=Symbol(),i=this.getPropertyDescriptor(e,n,t);i!==void 0&&Tk(this.prototype,e,i)}}static getPropertyDescriptor(e,t,n){let{get:i,set:a}=Ek(this.prototype,e)??{get(){return this[t]},set(o){this[t]=o}};return{get:i,set(o){let s=i?.call(this);a?.call(this,o),this.requestUpdate(e,s,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??rS}static _$Ei(){if(this.hasOwnProperty(Zl("elementProperties")))return;let e=Mk(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(Zl("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Zl("properties"))){let t=this.properties,n=[...Ak(t),...Ck(t)];for(let i of n)this.createProperty(i,t[i])}let e=this[Symbol.metadata];if(e!==null){let t=litPropertyMetadata.get(e);if(t!==void 0)for(let[n,i]of t)this.elementProperties.set(n,i)}this._$Eh=new Map;for(let[t,n]of this.elementProperties){let i=this._$Eu(t,n);i!==void 0&&this._$Eh.set(i,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let t=[];if(Array.isArray(e)){let n=new Set(e.flat(1/0).reverse());for(let i of n)t.unshift(rm(i))}else e!==void 0&&t.push(rm(e));return t}static _$Eu(e,t){let n=t.attribute;return n===!1?void 0:typeof n=="string"?n:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$EO??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){let e=new Map,t=this.constructor.elementProperties;for(let n of t.keys())this.hasOwnProperty(n)&&(e.set(n,this[n]),delete this[n]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return eS(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,t,n){this._$AK(e,n)}_$ET(e,t){let n=this.constructor.elementProperties.get(e),i=this.constructor._$Eu(e,n);if(i!==void 0&&n.reflect===!0){let a=(n.converter?.toAttribute!==void 0?n.converter:jl).toAttribute(t,n.type);this._$Em=e,a==null?this.removeAttribute(i):this.setAttribute(i,a),this._$Em=null}}_$AK(e,t){let n=this.constructor,i=n._$Eh.get(e);if(i!==void 0&&this._$Em!==i){let a=n.getPropertyOptions(i),o=typeof a.converter=="function"?{fromAttribute:a.converter}:a.converter?.fromAttribute!==void 0?a.converter:jl;this._$Em=i;let s=o.fromAttribute(t,a.type);this[i]=s??this._$Ej?.get(i)??s,this._$Em=null}}requestUpdate(e,t,n,i=!1,a){if(e!==void 0){let o=this.constructor;if(i===!1&&(a=this[e]),n??=o.getPropertyOptions(e),!((n.hasChanged??xc)(a,t)||n.useDefault&&n.reflect&&a===this._$Ej?.get(e)&&!this.hasAttribute(o._$Eu(e,n))))return;this.C(e,t,n)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,t,{useDefault:n,reflect:i,wrapped:a},o){n&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,o??t??this[e]),a!==!0||o!==void 0)||(this._$AL.has(e)||(this.hasUpdated||n||(t=void 0),this._$AL.set(e,t)),i===!0&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[i,a]of this._$Ep)this[i]=a;this._$Ep=void 0}let n=this.constructor.elementProperties;if(n.size>0)for(let[i,a]of n){let{wrapped:o}=a,s=this[i];o!==!0||this._$AL.has(i)||s===void 0||this.C(i,void 0,a,s)}}let e=!1,t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),this._$EO?.forEach(n=>n.hostUpdate?.()),this.update(t)):this._$EM()}catch(n){throw e=!1,this._$EM(),n}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$EO?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&=this._$Eq.forEach(t=>this._$ET(t,this[t])),this._$EM()}updated(e){}firstUpdated(e){}};Jn.elementStyles=[],Jn.shadowRootOptions={mode:"open"},Jn[Zl("elementProperties")]=new Map,Jn[Zl("finalized")]=new Map,Lk?.({ReactiveElement:Jn}),(yc.reactiveElementVersions??=[]).push("2.1.2")});function dS(r,e){if(!cm(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return iS!==void 0?iS.createHTML(e):e}function ms(r,e,t=r,n){if(e===Pa)return e;let i=n!==void 0?t._$Co?.[n]:t._$Cl,a=tu(e)?void 0:e._$litDirective$;return i?.constructor!==a&&(i?._$AO?.(!1),a===void 0?i=void 0:(i=new a(r),i._$AT(r,t,n)),n!==void 0?(t._$Co??=[])[n]=i:t._$Cl=i),i!==void 0&&(e=ms(r,i._$AS(r,e.values),i,n)),e}var fm,nS,_c,iS,fS,Ii,cS,Pk,La,eu,tu,cm,Ok,im,Ql,aS,oS,Ma,sS,lS,pS,pm,me,hS,A4,Pa,ft,uS,Da,Ik,ru,am,nu,gs,om,sm,lm,um,Rk,vS,bc=T(()=>{"use strict";fm=globalThis,nS=r=>r,_c=fm.trustedTypes,iS=_c?_c.createPolicy("lit-html",{createHTML:r=>r}):void 0,fS="$lit$",Ii=`lit$${Math.random().toFixed(9).slice(2)}$`,cS="?"+Ii,Pk=`<${cS}>`,La=document,eu=()=>La.createComment(""),tu=r=>r===null||typeof r!="object"&&typeof r!="function",cm=Array.isArray,Ok=r=>cm(r)||typeof r?.[Symbol.iterator]=="function",im=`[
2
+ \f\r]`,Ql=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,aS=/-->/g,oS=/>/g,Ma=RegExp(`>|${im}(?:([^\\s"'>=/]+)(${im}*=${im}*(?:[^
3
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),sS=/'/g,lS=/"/g,pS=/^(?:script|style|textarea|title)$/i,pm=r=>(e,...t)=>({_$litType$:r,strings:e,values:t}),me=pm(1),hS=pm(2),A4=pm(3),Pa=Symbol.for("lit-noChange"),ft=Symbol.for("lit-nothing"),uS=new WeakMap,Da=La.createTreeWalker(La,129);Ik=(r,e)=>{let t=r.length-1,n=[],i,a=e===2?"<svg>":e===3?"<math>":"",o=Ql;for(let s=0;s<t;s++){let l=r[s],u,f,c=-1,p=0;for(;p<l.length&&(o.lastIndex=p,f=o.exec(l),f!==null);)p=o.lastIndex,o===Ql?f[1]==="!--"?o=aS:f[1]!==void 0?o=oS:f[2]!==void 0?(pS.test(f[2])&&(i=RegExp("</"+f[2],"g")),o=Ma):f[3]!==void 0&&(o=Ma):o===Ma?f[0]===">"?(o=i??Ql,c=-1):f[1]===void 0?c=-2:(c=o.lastIndex-f[2].length,u=f[1],o=f[3]===void 0?Ma:f[3]==='"'?lS:sS):o===lS||o===sS?o=Ma:o===aS||o===oS?o=Ql:(o=Ma,i=void 0);let h=o===Ma&&r[s+1].startsWith("/>")?" ":"";a+=o===Ql?l+Pk:c>=0?(n.push(u),l.slice(0,c)+fS+l.slice(c)+Ii+h):l+Ii+(c===-2?s:h)}return[dS(r,a+(r[t]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),n]},ru=class r{constructor({strings:e,_$litType$:t},n){let i;this.parts=[];let a=0,o=0,s=e.length-1,l=this.parts,[u,f]=Ik(e,t);if(this.el=r.createElement(u,n),Da.currentNode=this.el.content,t===2||t===3){let c=this.el.content.firstChild;c.replaceWith(...c.childNodes)}for(;(i=Da.nextNode())!==null&&l.length<s;){if(i.nodeType===1){if(i.hasAttributes())for(let c of i.getAttributeNames())if(c.endsWith(fS)){let p=f[o++],h=i.getAttribute(c).split(Ii),d=/([.?@])?(.*)/.exec(p);l.push({type:1,index:a,name:d[2],strings:h,ctor:d[1]==="."?om:d[1]==="?"?sm:d[1]==="@"?lm:gs}),i.removeAttribute(c)}else c.startsWith(Ii)&&(l.push({type:6,index:a}),i.removeAttribute(c));if(pS.test(i.tagName)){let c=i.textContent.split(Ii),p=c.length-1;if(p>0){i.textContent=_c?_c.emptyScript:"";for(let h=0;h<p;h++)i.append(c[h],eu()),Da.nextNode(),l.push({type:2,index:++a});i.append(c[p],eu())}}}else if(i.nodeType===8)if(i.data===cS)l.push({type:2,index:a});else{let c=-1;for(;(c=i.data.indexOf(Ii,c+1))!==-1;)l.push({type:7,index:a}),c+=Ii.length-1}a++}}static createElement(e,t){let n=La.createElement("template");return n.innerHTML=e,n}};am=class{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:t},parts:n}=this._$AD,i=(e?.creationScope??La).importNode(t,!0);Da.currentNode=i;let a=Da.nextNode(),o=0,s=0,l=n[0];for(;l!==void 0;){if(o===l.index){let u;l.type===2?u=new nu(a,a.nextSibling,this,e):l.type===1?u=new l.ctor(a,l.name,l.strings,this,e):l.type===6&&(u=new um(a,this,e)),this._$AV.push(u),l=n[++s]}o!==l?.index&&(a=Da.nextNode(),o++)}return Da.currentNode=La,i}p(e){let t=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(e,n,t),t+=n.strings.length-2):n._$AI(e[t])),t++}},nu=class r{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,n,i){this.type=2,this._$AH=ft,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=n,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,t=this._$AM;return t!==void 0&&e?.nodeType===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=ms(this,e,t),tu(e)?e===ft||e==null||e===""?(this._$AH!==ft&&this._$AR(),this._$AH=ft):e!==this._$AH&&e!==Pa&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Ok(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==ft&&tu(this._$AH)?this._$AA.nextSibling.data=e:this.T(La.createTextNode(e)),this._$AH=e}$(e){let{values:t,_$litType$:n}=e,i=typeof n=="number"?this._$AC(e):(n.el===void 0&&(n.el=ru.createElement(dS(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===i)this._$AH.p(t);else{let a=new am(i,this),o=a.u(this.options);a.p(t),this.T(o),this._$AH=a}}_$AC(e){let t=uS.get(e.strings);return t===void 0&&uS.set(e.strings,t=new ru(e)),t}k(e){cm(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,n,i=0;for(let a of e)i===t.length?t.push(n=new r(this.O(eu()),this.O(eu()),this,this.options)):n=t[i],n._$AI(a),i++;i<t.length&&(this._$AR(n&&n._$AB.nextSibling,i),t.length=i)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e!==this._$AB;){let n=nS(e).nextSibling;nS(e).remove(),e=n}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},gs=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,n,i,a){this.type=1,this._$AH=ft,this._$AN=void 0,this.element=e,this.name=t,this._$AM=i,this.options=a,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=ft}_$AI(e,t=this,n,i){let a=this.strings,o=!1;if(a===void 0)e=ms(this,e,t,0),o=!tu(e)||e!==this._$AH&&e!==Pa,o&&(this._$AH=e);else{let s=e,l,u;for(e=a[0],l=0;l<a.length-1;l++)u=ms(this,s[n+l],t,l),u===Pa&&(u=this._$AH[l]),o||=!tu(u)||u!==this._$AH[l],u===ft?e=ft:e!==ft&&(e+=(u??"")+a[l+1]),this._$AH[l]=u}o&&!i&&this.j(e)}j(e){e===ft?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},om=class extends gs{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===ft?void 0:e}},sm=class extends gs{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==ft)}},lm=class extends gs{constructor(e,t,n,i,a){super(e,t,n,i,a),this.type=5}_$AI(e,t=this){if((e=ms(this,e,t,0)??ft)===Pa)return;let n=this._$AH,i=e===ft&&n!==ft||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,a=e!==ft&&(n===ft||i);i&&this.element.removeEventListener(this.name,this,n),a&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},um=class{constructor(e,t,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){ms(this,e)}},Rk=fm.litHtmlPolyfillSupport;Rk?.(ru,nu),(fm.litHtmlVersions??=[]).push("3.3.3");vS=(r,e,t)=>{let n=t?.renderBefore??e,i=n._$litPart$;if(i===void 0){let a=t?.renderBefore??null;n._$litPart$=i=new nu(e.insertBefore(eu(),a),a,void 0,t??{})}return i._$AI(r),i}});var hm,Ri,Nk,mS=T(()=>{"use strict";Jl();Jl();bc();bc();hm=globalThis,Ri=class extends Jn{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=vS(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Pa}};Ri._$litElement$=!0,Ri.finalized=!0,hm.litElementHydrateSupport?.({LitElement:Ri});Nk=hm.litElementPolyfillSupport;Nk?.({LitElement:Ri});(hm.litElementVersions??=[]).push("4.2.2")});var gS=T(()=>{"use strict";});var ht=T(()=>{"use strict";Jl();bc();mS();gS()});var yS=T(()=>{"use strict";});function te(r){return(e,t)=>typeof t=="object"?zk(r,e,t):((n,i,a)=>{let o=i.hasOwnProperty(a);return i.constructor.createProperty(a,n),o?Object.getOwnPropertyDescriptor(i,a):void 0})(r,e,t)}var kk,zk,dm=T(()=>{"use strict";Jl();kk={attribute:!0,type:String,converter:jl,reflect:!1,hasChanged:xc},zk=(r=kk,e,t)=>{let{kind:n,metadata:i}=t,a=globalThis.litPropertyMetadata.get(i);if(a===void 0&&globalThis.litPropertyMetadata.set(i,a=new Map),n==="setter"&&((r=Object.create(r)).wrapped=!0),a.set(t.name,r),n==="accessor"){let{name:o}=t;return{set(s){let l=e.get.call(this);e.set.call(this,s),this.requestUpdate(o,l,r,!0,s)},init(s){return s!==void 0&&this.C(o,void 0,r,s),s}}}if(n==="setter"){let{name:o}=t;return function(s){let l=this[o];e.call(this,s),this.requestUpdate(o,l,r,!0,s)}}throw Error("Unsupported decorator location: "+n)}});function ys(r){return te({...r,state:!0,attribute:!1})}var xS=T(()=>{"use strict";dm();});var _S=T(()=>{"use strict";});var xs=T(()=>{"use strict";});var bS=T(()=>{"use strict";xs();});var SS=T(()=>{"use strict";xs();});var wS=T(()=>{"use strict";xs();});var TS=T(()=>{"use strict";xs();});var ES=T(()=>{"use strict";xs();});var kt=T(()=>{"use strict";yS();dm();xS();_S();bS();SS();wS();TS();ES()});function De(r,e){customElements.get(r)||customElements.define(r,e)}function St(r){let e=n=>{let i=n.localName;if(n.id)return`${i}#${n.id}`;let a=n.parentElement;if(!a)return i;let o=[...a.children].filter(s=>s.localName===i).indexOf(n)+1;return`${i}:nth-of-type(${o})`},t=[];for(let n=r;n&&(t.unshift(e(n)),!(n.id||n.localName==="bang-root"));n=n.parentElement);return t.join(" > ")}var AS,Me,Ni,rt=T(()=>{"use strict";ht();kt();AS=15e3;Me=class extends Ri{constructor(){super(...arguments);this.renderDone=Promise.resolve()}get renderReady(){return this.updateComplete.then(()=>this.renderDone)}},Ni=class extends Me{constructor(){super(...arguments);this.frameStep=0}get stepCount(){return 0}connectedCallback(){super.connectedCallback();let t=this.closest("bang-frame");t&&typeof t.currentStep=="number"&&(this.frameStep=t.currentStep)}};Q([te({attribute:!1})],Ni.prototype,"frameStep",2)});function He(r,e){CS.has(r)||(CS.add(r),MS.add(e.replace(/^\[banger\] /,"")),console.warn(e))}function DS(){return[...MS]}function Te(r,e,t,n){let i=r.getAttribute(e);return i===null?n:t.includes(i)?i:(He(`${wc(r)}|${e}|${i}`,`[banger] <${wc(r)} ${e}="${i}"> is not one of: ${t.join(", ")}; using "${n}"`),n)}function _s(r,e,t,n,i){let a=r.getAttribute(e);if(a===null)return i;let o=Number(a);return/^-?\d+$/.test(a.trim())&&o>=t&&o<=n?o:(He(`${wc(r)}|${e}|${a}`,`[banger] <${wc(r)} ${e}="${a}"> is not an integer from ${t} to ${n}; using ${i}`),i)}function LS(r,e){if(!/^\d+(:\d+)*$/.test(r))return null;let t=r.split(":").map(Number);return t.length!==e||t.some(n=>n<1)?null:t}var wt,bn,CS,MS,wc,Mt=T(()=>{"use strict";wt=["xs","s","m","l","xl","2xl"],bn=["default","muted","accent"],CS=new Set,MS=new Set;wc=r=>r.localName??"element"});var PS,OS,Ss,iu=T(()=>{"use strict";PS=`:host {
4
+ --bang-color-paper: #F6F5F1;
5
+ --bang-color-surface: #FFFFFF;
6
+ --bang-color-ink: #141414;
7
+ --bang-color-ink-muted: #55534E;
8
+ --bang-color-line: #E2E0D9;
9
+ --bang-color-line-strong: #8A877F;
10
+ --bang-color-signal: #FF4A1C;
11
+ --bang-color-on-signal: #141414;
12
+ --bang-color-signal-text: #C2330E;
13
+ --bang-color-focus: #C2330E;
14
+ --bang-font-display: "Bricolage Grotesque", "Noto Sans JP", system-ui, sans-serif;
15
+ --bang-font-sans: "Noto Sans JP", system-ui, -apple-system, "Hiragino Sans", sans-serif;
16
+ --bang-font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
17
+ --bang-space-1: 4px;
18
+ --bang-space-2: 8px;
19
+ --bang-space-3: 12px;
20
+ --bang-space-4: 16px;
21
+ --bang-space-6: 24px;
22
+ --bang-space-8: 32px;
23
+ --bang-space-12: 48px;
24
+ --bang-space-16: 64px;
25
+ --bang-space-24: 96px;
26
+ --bang-radius-s: 6px;
27
+ --bang-radius-m: 12px;
28
+ --bang-radius-l: 20px;
29
+ --bang-radius-icon: 22%;
30
+ --bang-radius-pill: 999px;
31
+ --bang-border-hairline: 1px;
32
+ --bang-border-focus: 2px;
33
+ --bang-size-xs: 28px;
34
+ --bang-size-s: 36px;
35
+ --bang-size-m: 48px;
36
+ --bang-size-l: 64px;
37
+ --bang-size-xl: 96px;
38
+ --bang-size-2xl: 144px;
39
+ --bang-leading-xs: 1.6;
40
+ --bang-leading-s: 1.5;
41
+ --bang-leading-m: 1.35;
42
+ --bang-leading-l: 1.1;
43
+ --bang-leading-xl: 1;
44
+ --bang-leading-2xl: 0.95;
45
+ --bang-leading-text-xs: 1.7;
46
+ --bang-leading-text-s: 1.65;
47
+ --bang-leading-text-m: 1.55;
48
+ --bang-leading-text-l: 1.45;
49
+ --bang-leading-text-xl: 1.3;
50
+ --bang-leading-text-2xl: 1.2;
51
+ --bang-gap-xs: var(--bang-space-4);
52
+ --bang-gap-s: var(--bang-space-6);
53
+ --bang-gap-m: var(--bang-space-8);
54
+ --bang-gap-l: var(--bang-space-12);
55
+ --bang-gap-xl: var(--bang-space-16);
56
+ --bang-gap-2xl: var(--bang-space-24);
57
+ --bang-tone-default: var(--bang-color-ink);
58
+ --bang-tone-muted: var(--bang-color-ink-muted);
59
+ --bang-tone-accent: var(--bang-color-signal-text);
60
+ --bang-frame-gap: 240px;
61
+ --bang-duration-fast: 200ms;
62
+ }
63
+ :host([theme="dark"]) {
64
+ --bang-color-paper: #141414;
65
+ --bang-color-surface: #1E1E1D;
66
+ --bang-color-ink: #F6F5F1;
67
+ --bang-color-ink-muted: #CFCBC2;
68
+ --bang-color-line: #2E2D2B;
69
+ --bang-color-line-strong: #6E6B65;
70
+ --bang-color-signal: #FF4A1C;
71
+ --bang-color-on-signal: #141414;
72
+ --bang-color-signal-text: #FF6A43;
73
+ --bang-color-focus: #FF6A43;
74
+ }
75
+ `,OS="https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,800&family=Noto+Sans+JP:wght@400;700&family=JetBrains+Mono:wght@400&display=swap",Ss={light:{paper:"#F6F5F1",surface:"#FFFFFF",ink:"#141414","ink-muted":"#55534E",line:"#E2E0D9","line-strong":"#8A877F",signal:"#FF4A1C","on-signal":"#141414","signal-text":"#C2330E",focus:"#C2330E"},dark:{paper:"#141414",surface:"#1E1E1D",ink:"#F6F5F1","ink-muted":"#CFCBC2",line:"#2E2D2B","line-strong":"#6E6B65",signal:"#FF4A1C","on-signal":"#141414","signal-text":"#FF6A43",focus:"#FF6A43"}}});function Na(r){return r.replace(/[A-Z]/g,e=>e.toLowerCase())}function gm(r){let e=[],t=[],n=new Set;for(let i of(r??"").split(/\s+/).filter(Boolean)){if(!Jk.test(i)){t.push(i);continue}let a=Na(i);n.has(a)||(n.add(a),e.push(i))}return{languages:e,invalid:t}}function ki(r,e){if(!r)return;let t=Na(r);return e.find(n=>Na(n)===t)}function KS(r){let{languages:e,query:t,navigatorLanguages:n,useNavigator:i}=r;if(t!==null){let o=ki(t,e);if(o)return{language:o,queryIgnored:!1}}let a=t!==null;if(i)for(let o of n){let s=ki(o,e);if(s)return{language:s,queryIgnored:a};let l=Na(o).split("-")[0],u=e.find(f=>Na(f).split("-")[0]===l);if(u)return{language:u,queryIgnored:a}}return{language:e[0],queryIgnored:a}}function ZS(r,e){let t=Na(e),n=r.findIndex(i=>Na(i)===t);return r[(n+1)%r.length]}function jS(r){return r.length<2?"":r.map(e=>{let t=`:is(${r.filter(i=>i!==e).map(i=>`[lang="${i}" i]`).join(", ")})`,n=`bang-root[lang="${e}" i]`;return`${n} bang-frame ${t} { display: none !important; }
76
+ ${n} bang-list[data-bang-grouped] > li:not(li:not(${t}) ~ li) { margin-top: 0; }`}).join(`
77
+ `)}function sr(r){let e=[],t=r;for(;t&&t.localName!=="bang-frame"&&t.localName!=="bang-root";)e.push(t),t=t.parentElement;if(!t||t.localName!=="bang-frame")return!0;let n=t.parentElement;for(;n&&n.localName!=="bang-root";)n=n.parentElement;if(!n)return!0;let i=n.getAttribute("languages")??"";i!==qS&&(qS=i,XS=gm(i).languages);let a=XS,o=ki(n.getAttribute("lang"),a);if(a.length===0||o===void 0)return!0;for(let s of e){let l=ki(s.getAttribute("lang"),a);if(l!==void 0&&l!==o)return!1}return!0}var Jk,qS,XS,zi=T(()=>{"use strict";Jk=/^[A-Za-z]{2,3}(-[A-Za-z0-9]{2,8})*$/;qS=null,XS=[]});function R(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");ym(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var ym,ee=T(()=>{"use strict";ym=function(r,e){return ym=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])},ym(r,e)}});function r2(r){var e={};if(typeof JSON>"u")return e;for(var t=0;t<r.length;t++){var n=String.fromCharCode(t+32),i=(r.charCodeAt(t)-Qk)/e2;e[n]=i}return e}var Lc,xm,lr,Qk,e2,t2,n2,zt,wn=T(()=>{"use strict";Lc=12,xm="sans-serif",lr=Lc+"px "+xm,Qk=20,e2=100,t2="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";n2=r2(t2),zt={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:(function(){var r,e;return function(t,n){if(!r){var i=zt.createCanvas();r=i&&i.getContext("2d")}if(r)return e!==n&&(e=r.font=n||lr),r.measureText(t);t=t||"",n=n||lr;var a=/((?:\d+)?\.?\d*)px/.exec(n),o=a&&+a[1]||Lc,s=0;if(n.indexOf("mono")>=0)s=o*t.length;else for(var l=0;l<t.length;l++){var u=n2[t[l]];s+=u==null?o:u*o}return{width:s}}})(),loadImage:function(r,e,t){var n=new Image;return n.onload=e,n.onerror=t,n.src=r,n},getTime:function(){return Date.now?Date.now():+new Date}}});function Ic(){return _m>=s2&&(_m=0),_m++}function Rc(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];typeof console<"u"&&console.error.apply(console,r)}function ue(r){if(r==null||typeof r!="object")return r;var e=r,t=su.call(r);if(t==="[object Array]"){if(!ou(r)){e=[];for(var n=0,i=r.length;n<i;n++)e[n]=ue(r[n])}}else if(tw[t]){if(!ou(r)){var a=r.constructor;if(a.from)e=a.from(r);else{e=new a(r.length);for(var n=0,i=r.length;n<i;n++)e[n]=r[n]}}}else if(!ew[t]&&!ou(r)&&!bm(r)){e={};for(var o in r)r.hasOwnProperty(o)&&o!==wm&&(e[o]=ue(r[o]))}return e}function Ee(r,e,t){if(!Y(e)||!Y(r))return t?ue(e):r;for(var n in e)if(e.hasOwnProperty(n)&&n!==wm){var i=r[n],a=e[n];Y(a)&&Y(i)&&!U(a)&&!U(i)&&!bm(a)&&!bm(i)&&!QS(a)&&!QS(i)&&!ou(a)&&!ou(i)?Ee(i,a,t):(t||!(n in r))&&(r[n]=ue(e[n]))}return r}function k(r,e){if(Object.assign)Object.assign(r,e);else for(var t in e)e.hasOwnProperty(t)&&t!==wm&&(r[t]=e[t]);return r}function rw(r,e,t){r=r||{};for(var n=0;n<t.length;n++){var i=t[n];r[i]=e[i]}return r}function fe(r,e,t){for(var n=oe(e),i=0,a=n.length;i<a;i++){var o=n[i];(t?e[o]!=null:r[o]==null)&&(r[o]=e[o])}return r}function de(r,e){if(r){if(r.indexOf)return r.indexOf(e);for(var t=0,n=r.length;t<n;t++)if(r[t]===e)return t}return-1}function nw(r,e){var t=r.prototype;function n(){}n.prototype=e.prototype,r.prototype=new n;for(var i in t)t.hasOwnProperty(i)&&(r.prototype[i]=t[i]);r.prototype.constructor=r,r.superClass=e}function Yt(r,e,t){if(r="prototype"in r?r.prototype:r,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var n=Object.getOwnPropertyNames(e),i=0;i<n.length;i++){var a=n[i];a!=="constructor"&&(t?e[a]!=null:r[a]==null)&&(r[a]=e[a])}else fe(r,e,t)}function dt(r){return!r||typeof r=="string"?!1:typeof r.length=="number"}function A(r,e,t){if(r&&e)if(r.forEach&&r.forEach===i2)r.forEach(e,t);else if(r.length===+r.length)for(var n=0,i=r.length;n<i;n++)e.call(t,r[n],n,r);else for(var a in r)r.hasOwnProperty(a)&&e.call(t,r[a],a,r)}function F(r,e,t){if(!r)return[];if(!e)return Nc(r);if(r.map&&r.map===o2)return r.map(e,t);for(var n=[],i=0,a=r.length;i<a;i++)n.push(e.call(t,r[i],i,r));return n}function yr(r,e,t,n){if(r&&e){for(var i=0,a=r.length;i<a;i++)t=e.call(n,t,r[i],i,r);return t}}function Fe(r,e,t){if(!r)return[];if(!e)return Nc(r);if(r.filter&&r.filter===a2)return r.filter(e,t);for(var n=[],i=0,a=r.length;i<a;i++)e.call(t,r[i],i,r)&&n.push(r[i]);return n}function iw(r,e,t){if(r&&e){for(var n=0,i=r.length;n<i;n++)if(e.call(t,r[n],n,r))return r[n]}}function oe(r){if(!r)return[];if(Object.keys)return Object.keys(r);var e=[];for(var t in r)r.hasOwnProperty(t)&&e.push(t);return e}function l2(r,e){for(var t=[],n=2;n<arguments.length;n++)t[n-2]=arguments[n];return function(){return r.apply(e,t.concat(Sm.call(arguments)))}}function Ne(r){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return function(){return r.apply(this,e.concat(Sm.call(arguments)))}}function U(r){return Array.isArray?Array.isArray(r):su.call(r)==="[object Array]"}function j(r){return typeof r=="function"}function G(r){return typeof r=="string"}function Tm(r){return su.call(r)==="[object String]"}function he(r){return typeof r=="number"}function Y(r){var e=typeof r;return e==="function"||!!r&&e==="object"}function QS(r){return!!ew[su.call(r)]}function nt(r){return!!tw[su.call(r)]}function bm(r){return typeof r=="object"&&typeof r.nodeType=="number"&&typeof r.ownerDocument=="object"}function As(r){return r.colorStops!=null}function Bi(r){return r!==r}function Cs(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];for(var t=0,n=r.length;t<n;t++)if(r[t]!=null)return r[t]}function $(r,e){return r??e}function xr(r,e,t){return r??e??t}function Nc(r){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return Sm.apply(r,e)}function Ms(r){if(typeof r=="number")return[r,r,r,r];var e=r.length;return e===2?[r[0],r[1],r[0],r[1]]:e===3?[r[0],r[1],r[2],r[1]]:r}function it(r,e){if(!r)throw new Error(e)}function ur(r){return r==null?null:typeof r.trim=="function"?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}function Ba(r){r[aw]=!0}function ou(r){return r[aw]}function f2(){return ow?new Map:new u2}function X(r){return new c2(r)}function sw(r,e){for(var t=new r.constructor(r.length+e.length),n=0;n<r.length;n++)t[n]=r[n];for(var i=r.length,n=0;n<e.length;n++)t[n+i]=e[n];return t}function Ui(r,e){var t;if(Object.create)t=Object.create(r);else{var n=function(){};n.prototype=r,t=new n}return e&&k(t,e),t}function Ye(r,e){return r.hasOwnProperty(e)}function at(){}var ew,tw,su,Oc,i2,a2,Sm,o2,JS,Pc,wm,_m,s2,GY,Le,aw,u2,ow,c2,Ds,$Y,I=T(()=>{"use strict";wn();ew=yr(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(r,e){return r["[object "+e+"]"]=!0,r},{}),tw=yr(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(r,e){return r["[object "+e+"Array]"]=!0,r},{}),su=Object.prototype.toString,Oc=Array.prototype,i2=Oc.forEach,a2=Oc.filter,Sm=Oc.slice,o2=Oc.map,JS=function(){}.constructor,Pc=JS?JS.prototype:null,wm="__proto__",_m=2311,s2=Math.pow(2,53)-1;GY=zt.createCanvas;Le=Pc&&j(Pc.bind)?Pc.call.bind(Pc.bind):l2;aw="__ec_primitive__";u2=(function(){function r(){this.data={}}return r.prototype.delete=function(e){var t=this.has(e);return t&&delete this.data[e],t},r.prototype.has=function(e){return this.data.hasOwnProperty(e)},r.prototype.get=function(e){return this.data[e]},r.prototype.set=function(e,t){return this.data[e]=t,this},r.prototype.keys=function(){return oe(this.data)},r.prototype.forEach=function(e){var t=this.data;for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)},r})(),ow=typeof Map=="function";c2=(function(){function r(e){var t=U(e);this.data=f2();var n=this;e instanceof r?e.each(i):e&&A(e,i);function i(a,o){t?n.set(a,o):n.set(o,a)}}return r.prototype.hasKey=function(e){return this.data.has(e)},r.prototype.get=function(e){return this.data.get(e)},r.prototype.set=function(e,t){return this.data.set(e,t),t},r.prototype.each=function(e,t){this.data.forEach(function(n,i){e.call(t,n,i)})},r.prototype.keys=function(){var e=this.data.keys();return ow?Array.from(e):e},r.prototype.removeKey=function(e){this.data.delete(e)},r})();Ds=180/Math.PI,$Y=Number.EPSILON||Math.pow(2,-52)});function d2(r,e){var t=e.browser,n=r.match(/Firefox\/([\d.]+)/),i=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),a=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);n&&(t.firefox=!0,t.version=n[1]),i&&(t.ie=!0,t.version=i[1]),a&&(t.edge=!0,t.version=a[1],t.newEdge=+a[1].split(".")[0]>18),o&&(t.weChat=!0),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!t.ie&&!t.edge,e.pointerEventsSupported="onpointerdown"in window&&(t.edge||t.ie&&+t.version>=11);var s=e.domSupported=typeof document<"u";if(s){var l=document.documentElement.style;e.transform3dSupported=(t.ie&&"transition"in l||t.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in l)&&!("OTransition"in l),e.transformSupported=e.transform3dSupported||t.ie&&+t.version>=9}}var p2,h2,Fi,Pe,Or=T(()=>{"use strict";p2=(function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r})(),h2=(function(){function r(){this.browser=new p2,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 r})(),Fi=new h2;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Fi.wxa=!0,Fi.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?Fi.worker=!0:!Fi.hasGlobalWindow||"Deno"in window||typeof navigator<"u"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Node.js")>-1?(Fi.node=!0,Fi.svgSupported=!0):d2(navigator.userAgent,Fi);Pe=Fi});function fr(r){var e={main:"",sub:""};if(r){var t=r.split(v2);e.main=t[0]||"",e.sub=t[1]||""}return e}function m2(r){it(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(r),'componentType "'+r+'" illegal')}function uw(r){return!!(r&&r[lw])}function Ls(r,e){r.$constructor=r,r.extend=function(t){var n=this,i;return g2(n)?i=(function(a){R(o,a);function o(){return a.apply(this,arguments)||this}return o})(n):(i=function(){(t.$constructor||n).apply(this,arguments)},nw(i,this)),k(i.prototype,t),i[lw]=!0,i.extend=this.extend,i.superCall=x2,i.superApply=_2,i.superClass=n,i}}function g2(r){return j(r)&&/^class\s/.test(Function.prototype.toString.call(r))}function kc(r,e){r.extend=e.extend}function fw(r){var e=["__\0is_clz",y2++].join("_");r.prototype[e]=!0,r.isInstance=function(t){return!!(t&&t[e])}}function x2(r,e){for(var t=[],n=2;n<arguments.length;n++)t[n-2]=arguments[n];return this.superClass.prototype[e].apply(r,t)}function _2(r,e,t){return this.superClass.prototype[e].apply(r,t)}function Vi(r){var e={};r.registerClass=function(n){var i=n.type||n.prototype.type;if(i){m2(i),n.prototype.type=i;var a=fr(i);if(!a.sub)e[a.main]=n;else if(a.sub!==Ua){var o=t(a);o[a.sub]=n}}return n},r.getClass=function(n,i,a){var o=e[n];if(o&&o[Ua]&&(o=i?o[i]:null),a&&!o)throw new Error(i?"Component "+n+"."+(i||"")+" is used but not imported.":n+".type should be specified.");return o},r.getClassesByMainType=function(n){var i=fr(n),a=[],o=e[i.main];return o&&o[Ua]?A(o,function(s,l){l!==Ua&&a.push(s)}):a.push(o),a},r.hasClass=function(n){var i=fr(n);return!!e[i.main]},r.getAllClassMainTypes=function(){var n=[];return A(e,function(i,a){n.push(a)}),n},r.hasSubTypes=function(n){var i=fr(n),a=e[i.main];return a&&a[Ua]};function t(n){var i=e[n.main];return(!i||!i[Ua])&&(i=e[n.main]={},i[Ua]=!0),i}}var v2,Ua,lw,y2,Tn=T(()=>{"use strict";ee();I();v2=".",Ua="___EC__COMPONENT__CONTAINER___",lw="___EC__EXTENDED_CLASS___";y2=Math.round(Math.random()*10)});function En(r,e){for(var t=0;t<r.length;t++)r[t][1]||(r[t][1]=r[t][0]);return e=e||!1,function(n,i,a){for(var o={},s=0;s<r.length;s++){var l=r[s][1];if(!(i&&de(i,l)>=0||a&&de(a,l)<0)){var u=n.getShallow(l,e);u!=null&&(o[r[s][0]]=u)}}return o}}var lu=T(()=>{"use strict";I()});var b2,S2,cw,pw=T(()=>{"use strict";lu();b2=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],S2=En(b2),cw=(function(){function r(){}return r.prototype.getAreaStyle=function(e,t){return S2(this,e,t)},r})()});var hw,w2,T2,An,uu=T(()=>{"use strict";hw=(function(){function r(e){this.value=e}return r})(),w2=(function(){function r(){this._len=0}return r.prototype.insert=function(e){var t=new hw(e);return this.insertEntry(t),t},r.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++},r.prototype.remove=function(e){var t=e.prev,n=e.next;t?t.next=n:this.head=n,n?n.prev=t:this.tail=t,e.next=e.prev=null,this._len--},r.prototype.len=function(){return this._len},r.prototype.clear=function(){this.head=this.tail=null,this._len=0},r})(),T2=(function(){function r(e){this._list=new w2,this._maxSize=10,this._map={},this._maxSize=e}return r.prototype.put=function(e,t){var n=this._list,i=this._map,a=null;if(i[e]==null){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=n.head;n.remove(l),delete i[l.key],a=l.value,this._lastRemovedEntry=l}s?s.value=t:s=new hw(t),s.key=e,n.insertEntry(s),i[e]=s}return a},r.prototype.get=function(e){var t=this._map[e],n=this._list;if(t!=null)return t!==n.tail&&(n.remove(t),n.insertEntry(t)),t.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r})(),An=T2});function vw(r){if(typeof r=="string"){var e=Am.get(r);return e&&e.image}else return r}function fu(r,e,t,n,i){if(r)if(typeof r=="string"){if(e&&e.__zrImageSrc===r||!t)return e;var a=Am.get(r),o={hostEl:t,cb:n,cbPayload:i};return a?(e=a.image,!Ps(e)&&a.pending.push(o)):(e=zt.loadImage(r,dw,dw),e.__zrImageSrc=r,Am.put(r,e.__cachedImgObj={image:e,pending:[o]})),e}else return r;else return e}function dw(){var r=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<r.pending.length;e++){var t=r.pending[e],n=t.cb;n&&n(this,t.cbPayload),t.hostEl.dirty()}r.pending.length=0}function Ps(r){return r&&r.width&&r.height}var Am,zc=T(()=>{"use strict";uu();wn();Am=new An(50)});function qt(){return[1,0,0,1,0,0]}function ri(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function cu(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4],r[5]=e[5],r}function Hi(r,e,t){var n=e[0]*t[0]+e[2]*t[1],i=e[1]*t[0]+e[3]*t[1],a=e[0]*t[2]+e[2]*t[3],o=e[1]*t[2]+e[3]*t[3],s=e[0]*t[4]+e[2]*t[5]+e[4],l=e[1]*t[4]+e[3]*t[5]+e[5];return r[0]=n,r[1]=i,r[2]=a,r[3]=o,r[4]=s,r[5]=l,r}function pu(r,e,t){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4]+t[0],r[5]=e[5]+t[1],r}function Os(r,e,t,n){n===void 0&&(n=[0,0]);var i=e[0],a=e[2],o=e[4],s=e[1],l=e[3],u=e[5],f=Math.sin(t),c=Math.cos(t);return r[0]=i*c+s*f,r[1]=-i*f+s*c,r[2]=a*c+l*f,r[3]=-a*f+c*l,r[4]=c*(o-n[0])+f*(u-n[1])+n[0],r[5]=c*(u-n[1])-f*(o-n[0])+n[1],r}function mw(r,e,t){var n=t[0],i=t[1];return r[0]=e[0]*n,r[1]=e[1]*i,r[2]=e[2]*n,r[3]=e[3]*i,r[4]=e[4]*n,r[5]=e[5]*i,r}function Ir(r,e){var t=e[0],n=e[2],i=e[4],a=e[1],o=e[3],s=e[5],l=t*o-a*n;return l?(l=1/l,r[0]=o*l,r[1]=-a*l,r[2]=-n*l,r[3]=t*l,r[4]=(n*s-o*i)*l,r[5]=(a*i-t*s)*l,r):null}var ni=T(()=>{"use strict"});function Gi(r,e){return r==null&&(r=0),e==null&&(e=0),[r,e]}function gw(r){return[r[0],r[1]]}function Bc(r,e,t){return r[0]=e,r[1]=t,r}function Cm(r,e,t){return r[0]=e[0]+t[0],r[1]=e[1]+t[1],r}function yw(r,e,t){return r[0]=e[0]-t[0],r[1]=e[1]-t[1],r}function A2(r){return Math.sqrt(C2(r))}function C2(r){return r[0]*r[0]+r[1]*r[1]}function Uc(r,e,t){return r[0]=e[0]*t,r[1]=e[1]*t,r}function xw(r,e){var t=A2(e);return t===0?(r[0]=0,r[1]=0):(r[0]=e[0]/t,r[1]=e[1]/t),r}function Fc(r,e){return Math.sqrt((r[0]-e[0])*(r[0]-e[0])+(r[1]-e[1])*(r[1]-e[1]))}function M2(r,e){return(r[0]-e[0])*(r[0]-e[0])+(r[1]-e[1])*(r[1]-e[1])}function Vc(r,e,t,n){return r[0]=e[0]+n*(t[0]-e[0]),r[1]=e[1]+n*(t[1]-e[1]),r}function Dt(r,e,t){var n=e[0],i=e[1];return r[0]=t[0]*n+t[2]*i+t[4],r[1]=t[1]*n+t[3]*i+t[5],r}function ii(r,e,t){return r[0]=Math.min(e[0],t[0]),r[1]=Math.min(e[1],t[1]),r}function ai(r,e,t){return r[0]=Math.max(e[0],t[0]),r[1]=Math.max(e[1],t[1]),r}var du,Fa,cr=T(()=>{"use strict";du=Fc;Fa=M2});var D2,ce,vu=T(()=>{"use strict";D2=(function(){function r(e,t){this.x=e||0,this.y=t||0}return r.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},r.prototype.clone=function(){return new r(this.x,this.y)},r.prototype.set=function(e,t){return this.x=e,this.y=t,this},r.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},r.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},r.prototype.scale=function(e){this.x*=e,this.y*=e},r.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},r.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},r.prototype.dot=function(e){return this.x*e.x+this.y*e.y},r.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},r.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},r.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},r.prototype.distance=function(e){var t=this.x-e.x,n=this.y-e.y;return Math.sqrt(t*t+n*n)},r.prototype.distanceSquare=function(e){var t=this.x-e.x,n=this.y-e.y;return t*t+n*n},r.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},r.prototype.transform=function(e){if(e){var t=this.x,n=this.y;return this.x=e[0]*t+e[2]*n+e[4],this.y=e[1]*t+e[3]*n+e[5],this}},r.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},r.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},r.set=function(e,t,n){e.x=t,e.y=n},r.copy=function(e,t){e.x=t.x,e.y=t.y},r.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},r.lenSquare=function(e){return e.x*e.x+e.y*e.y},r.dot=function(e,t){return e.x*t.x+e.y*t.y},r.add=function(e,t,n){e.x=t.x+n.x,e.y=t.y+n.y},r.sub=function(e,t,n){e.x=t.x-n.x,e.y=t.y-n.y},r.scale=function(e,t,n){e.x=t.x*n,e.y=t.y*n},r.scaleAndAdd=function(e,t,n,i){e.x=t.x+n.x*i,e.y=t.y+n.y*i},r.lerp=function(e,t,n,i){var a=1-i;e.x=a*t.x+i*n.x,e.y=a*t.y+i*n.y},r})(),ce=D2});function Sw(r,e,t,n,i,a,o,s){var l=Lm(e-t),u=Lm(n-r),f=Wa(l,u),c=_w[i],p=_w[1-i],h=L2[i];e<t||n<r?l<u?(a&&(Pm[c]=-l),s&&(o[c]=e,o[h]=0)):(a&&(Pm[c]=u),s&&(o[c]=r,o[h]=0)):(o&&(o[c]=Is(r,t),o[h]=Wa(e,n)-o[c]),a&&(f<gu[0]||_r.useDir)&&(gu[0]=Wa(f,gu[0]),(l<u||!_r.bidirectional)&&(mu[c]=l,mu[p]=0,_r.useDir&&_r.calcDirMTV()),(l>=u||!_r.bidirectional)&&(mu[c]=-u,mu[p]=0,_r.useDir&&_r.calcDirMTV())))}function Om(){var r=0,e=new ce,t=new ce,n={minTv:new ce,maxTv:new ce,useDir:!1,dirMinTv:new ce,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(a,o){n.touchThreshold=0,a&&a.touchThreshold!=null&&(n.touchThreshold=Is(0,a.touchThreshold)),n.negativeSize=!1,o&&(n.minTv.set(1/0,1/0),n.maxTv.set(0,0),n.useDir=!1,a&&a.direction!=null&&(n.useDir=!0,n.dirMinTv.copy(n.minTv),t.copy(n.minTv),r=a.direction,n.bidirectional=a.bidirectional==null||!!a.bidirectional,n.bidirectional||e.set(Math.cos(r),Math.sin(r))))},calcDirMTV:function(){var a=n.minTv,o=n.dirMinTv,s=a.y*a.y+a.x*a.x,l=Math.sin(r),u=Math.cos(r),f=l*a.y+u*a.x;if(i(f)){i(a.x)&&i(a.y)&&o.set(0,0);return}if(t.x=s*u/f,t.y=s*l/f,i(t.x)&&i(t.y)){o.set(0,0);return}(n.bidirectional||e.dot(t)>0)&&t.len()<o.len()&&o.copy(t)}};function i(a){return Lm(a)<1e-10}return n}var Wa,Is,Lm,_w,L2,Va,Ha,Ga,$a,_r,mu,Pm,gu,oi,t6,Mm,bw,P2,r6,n6,O2,I2,Dm,se,Tt=T(()=>{"use strict";ni();cr();vu();Wa=Math.min,Is=Math.max,Lm=Math.abs,_w=["x","y"],L2=["width","height"],Va=new ce,Ha=new ce,Ga=new ce,$a=new ce,_r=Om(),mu=_r.minTv,Pm=_r.maxTv,gu=[0,0],oi=(function(){function r(e,t,n,i){Mm(this,e,t,n,i)}return r.set=function(e,t,n,i,a){return i<0&&(t=t+i,i=-i),a<0&&(n=n+a,a=-a),e.x=t,e.y=n,e.width=i,e.height=a,e},r.prototype.union=function(e){var t=Wa(e.x,this.x),n=Wa(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Is(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=Is(e.y+e.height,this.y+this.height)-n:this.height=e.height,this.x=t,this.y=n},r.prototype.applyTransform=function(e){r.applyTransform(this,this,e)},r.prototype.calculateTransform=function(e){return P2(qt(),this,e)},r.prototype.intersect=function(e,t,n){return r.intersect(this,e,t,n)},r.intersect=function(e,t,n,i){n&&ce.set(n,0,0);var a=i&&i.outIntersectRect||null,o=i&&i.clamp;if(a&&(a.x=a.y=a.width=a.height=NaN),!e||!t)return!1;e instanceof r||(e=Mm(O2,e.x,e.y,e.width,e.height)),t instanceof r||(t=Mm(I2,t.x,t.y,t.width,t.height));var s=!!n;_r.reset(i,s);var l=_r.touchThreshold,u=e.x+l,f=e.x+e.width-l,c=e.y+l,p=e.y+e.height-l,h=t.x+l,d=t.x+t.width-l,v=t.y+l,m=t.y+t.height-l;if(u>f||c>p||h>d||v>m)return!1;var g=!(f<h||d<u||p<v||m<c);return(s||a)&&(gu[0]=1/0,gu[1]=0,Sw(u,f,h,d,0,s,a,o),Sw(c,p,v,m,1,s,a,o),s&&ce.copy(n,g?_r.useDir?_r.dirMinTv:mu:Pm)),g},r.contain=function(e,t,n){return t>=e.x&&t<=e.x+e.width&&n>=e.y&&n<=e.y+e.height},r.prototype.contain=function(e,t){return r.contain(this,e,t)},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(e){bw(this,e)},r.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},r.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},r.prototype.isZero=function(){return this.width===0||this.height===0},r.create=function(e){return new r(e?e.x:0,e?e.y:0,e?e.width:0,e?e.height:0)},r.copy=function(e,t){return e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height,e},r.applyTransform=function(e,t,n){if(!n){e!==t&&bw(e,t);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var i=n[0],a=n[3],o=n[4],s=n[5];e.x=t.x*i+o,e.y=t.y*a+s,e.width=t.width*i,e.height=t.height*a,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}Va.x=Ga.x=t.x,Va.y=$a.y=t.y,Ha.x=$a.x=t.x+t.width,Ha.y=Ga.y=t.y+t.height,Va.transform(n),$a.transform(n),Ha.transform(n),Ga.transform(n),e.x=Wa(Va.x,Ha.x,Ga.x,$a.x),e.y=Wa(Va.y,Ha.y,Ga.y,$a.y);var l=Is(Va.x,Ha.x,Ga.x,$a.x),u=Is(Va.y,Ha.y,Ga.y,$a.y);e.width=l-e.x,e.height=u-e.y},r.calculateTransform=function(e,t,n){var i=n.width/t.width,a=n.height/t.height;return e=ri(e||[]),pu(e,e,Bc(Dm,-t.x,-t.y)),mw(e,e,Bc(Dm,i,a)),pu(e,e,Bc(Dm,n.x,n.y)),e},r})(),t6=oi.create,Mm=oi.set,bw=oi.copy,P2=oi.calculateTransform,r6=oi.applyTransform,n6=oi.contain,O2=new oi(0,0,0,0),I2=new oi(0,0,0,0),Dm=[];se=oi});function Jr(r){Hc||(Hc=new An(100)),r=r||lr;var e=Hc.get(r);return e||(e={font:r,strWidthCache:new An(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:zt.measureText("\u56FD",r).width,asciiCharWidth:zt.measureText("a",r).width},Hc.put(r,e)),e}function R2(r){if(!(Im>=ww)){r=r||lr;for(var e=[],t=+new Date,n=0;n<=127;n++)e[n]=zt.measureText(String.fromCharCode(n),r).width;var i=+new Date-t;return i>16?Im=ww:i>2&&Im++,e}}function Rm(r,e){return r.asciiWidthMapTried||(r.asciiWidthMap=R2(r.font),r.asciiWidthMapTried=!0),0<=e&&e<=127?r.asciiWidthMap!=null?r.asciiWidthMap[e]:r.asciiCharWidth:r.stWideCharWidth}function Qr(r,e){var t=r.strWidthCache,n=t.get(e);return n==null&&(n=zt.measureText(e,r.font).width,t.put(e,n)),n}function Tw(r,e,t,n){var i=Qr(Jr(e),r),a=Ya(e),o=Wi(0,i,t),s=si(0,a,n),l=new se(o,s,i,a);return l}function Gc(r,e,t,n){var i=((r||"")+"").split(`
78
+ `),a=i.length;if(a===1)return Tw(i[0],e,t,n);for(var o=new se(0,0,0,0),s=0;s<i.length;s++){var l=Tw(i[s],e,t,n);s===0?o.copy(l):o.union(l)}return o}function Wi(r,e,t,n){return t==="right"?n?r+=e:r-=e:t==="center"&&(n?r+=e/2:r-=e/2),r}function si(r,e,t,n){return t==="middle"?n?r+=e/2:r-=e/2:t==="bottom"&&(n?r+=e:r-=e),r}function Ya(r){return Jr(r).stWideCharWidth}function jr(r,e){return typeof r=="string"?r.lastIndexOf("%")>=0?parseFloat(r)/100*e:parseFloat(r):r}function qa(r,e,t){var n=e.position||"inside",i=e.distance!=null?e.distance:5,a=t.height,o=t.width,s=a/2,l=t.x,u=t.y,f="left",c="top";if(n instanceof Array)l+=jr(n[0],t.width),u+=jr(n[1],t.height),f=null,c=null;else switch(n){case"left":l-=i,u+=s,f="right",c="middle";break;case"right":l+=i+o,u+=s,c="middle";break;case"top":l+=o/2,u-=i,f="center",c="bottom";break;case"bottom":l+=o/2,u+=a+i,f="center";break;case"inside":l+=o/2,u+=s,f="center",c="middle";break;case"insideLeft":l+=i,u+=s,c="middle";break;case"insideRight":l+=o-i,u+=s,f="right",c="middle";break;case"insideTop":l+=o/2,u+=i,f="center";break;case"insideBottom":l+=o/2,u+=a-i,f="center",c="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=o-i,u+=i,f="right";break;case"insideBottomLeft":l+=i,u+=a-i,c="bottom";break;case"insideBottomRight":l+=o-i,u+=a-i,f="right",c="bottom";break}return r=r||{},r.x=l,r.y=u,r.align=f,r.verticalAlign=c,r}var Hc,Im,ww,en=T(()=>{"use strict";Tt();uu();wn();Im=0,ww=5});function N2(r,e,t,n,i,a){if(!t){r.text="",r.isTruncated=!1;return}var o=(e+"").split(`
79
+ `);a=Dw(t,n,i,a);for(var s=!1,l={},u=0,f=o.length;u<f;u++)Lw(l,o[u],a),o[u]=l.textLine,s=s||l.isTruncated;r.text=o.join(`
80
+ `),r.isTruncated=s}function Dw(r,e,t,n){n=n||{};var i=k({},n);t=$(t,"..."),i.maxIterations=$(n.maxIterations,2);var a=i.minChar=$(n.minChar,0),o=i.fontMeasureInfo=Jr(e),s=o.asciiCharWidth;i.placeholder=$(n.placeholder,"");for(var l=r=Math.max(0,r-1),u=0;u<a&&l>=s;u++)l-=s;var f=Qr(o,t);return f>l&&(t="",f=0),l=r-f,i.ellipsis=t,i.ellipsisWidth=f,i.contentWidth=l,i.containerWidth=r,i}function Lw(r,e,t){var n=t.containerWidth,i=t.contentWidth,a=t.fontMeasureInfo;if(!n){r.textLine="",r.isTruncated=!1;return}var o=Qr(a,e);if(o<=n){r.textLine=e,r.isTruncated=!1;return}for(var s=0;;s++){if(o<=i||s>=t.maxIterations){e+=t.ellipsis;break}var l=s===0?k2(e,i,a):o>0?Math.floor(e.length*i/o):0;e=e.substr(0,l),o=Qr(a,e)}e===""&&(e=t.placeholder),r.textLine=e,r.isTruncated=!0}function k2(r,e,t){for(var n=0,i=0,a=r.length;i<a&&n<e;i++)n+=Rm(t,r.charCodeAt(i));return i}function Pw(r,e,t,n){var i=Bm(r),a=e.overflow,o=e.padding,s=o?o[1]+o[3]:0,l=o?o[0]+o[2]:0,u=e.font,f=a==="truncate",c=Ya(u),p=$(e.lineHeight,c),h=e.lineOverflow==="truncate",d=!1,v=e.width;v==null&&t!=null&&(v=t-s);var m=e.height;m==null&&n!=null&&(m=n-l);var g;v!=null&&(a==="break"||a==="breakAll")?g=i?Iw(i,e.font,v,a==="breakAll",0).lines:[]:g=i?i.split(`
81
+ `):[];var y=g.length*p;if(m==null&&(m=y),y>m&&h){var x=Math.floor(m/p);d=d||g.length>x,g=g.slice(0,x),y=g.length*p}if(i&&f&&v!=null)for(var _=Dw(v,u,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),b={},S=0;S<g.length;S++)Lw(b,g[S],_),g[S]=b.textLine,d=d||b.isTruncated;for(var w=m,C=0,M=Jr(u),S=0;S<g.length;S++)C=Math.max(Qr(M,g[S]),C);v==null&&(v=C);var E=v;return w+=l,E+=s,{lines:g,height:m,outerWidth:E,outerHeight:w,lineHeight:p,calculatedLineHeight:c,contentWidth:C,contentHeight:y,width:v,isTruncated:d}}function Ow(r,e,t,n,i){var a=new B2,o=Bm(r);if(!o)return a;var s=e.padding,l=s?s[1]+s[3]:0,u=s?s[0]+s[2]:0,f=e.width;f==null&&t!=null&&(f=t-l);var c=e.height;c==null&&n!=null&&(c=n-u);for(var p=e.overflow,h=(p==="break"||p==="breakAll")&&f!=null?{width:f,accumWidth:0,breakAll:p==="breakAll"}:null,d=Nm.lastIndex=0,v;(v=Nm.exec(o))!=null;){var m=v.index;m>d&&km(a,o.substring(d,m),e,h),km(a,v[2],e,h,v[1]),d=Nm.lastIndex}d<o.length&&km(a,o.substring(d,o.length),e,h);var g=[],y=0,x=0,_=p==="truncate",b=e.lineOverflow==="truncate",S={};function w(_e,et,Ze){_e.width=et,_e.lineHeight=Ze,y+=Ze,x=Math.max(x,et)}e:for(var C=0;C<a.lines.length;C++){for(var M=a.lines[C],E=0,D=0,P=0;P<M.tokens.length;P++){var L=M.tokens[P],O=L.styleName&&e.rich[L.styleName]||{},z=L.textPadding=O.padding,N=z?z[1]+z[3]:0,V=L.font=O.font||e.font;L.contentHeight=Ya(V);var B=$(O.height,L.contentHeight);if(L.innerHeight=B,z&&(B+=z[0]+z[2]),L.height=B,L.lineHeight=xr(O.lineHeight,e.lineHeight,B),L.align=O&&O.align||i,L.verticalAlign=O&&O.verticalAlign||"middle",b&&c!=null&&y+L.lineHeight>c){var H=a.lines.length;P>0?(M.tokens=M.tokens.slice(0,P),w(M,D,E),a.lines=a.lines.slice(0,C+1)):a.lines=a.lines.slice(0,C),a.isTruncated=a.isTruncated||a.lines.length<H;break e}var W=O.width,K=W==null||W==="auto";if(typeof W=="string"&&W.charAt(W.length-1)==="%")L.percentWidth=W,g.push(L),L.contentWidth=Qr(Jr(V),L.text);else{if(K){var J=O.backgroundColor,re=J&&J.image;re&&(re=vw(re),Ps(re)&&(L.width=Math.max(L.width,re.width*B/re.height)))}var Z=_&&f!=null?f-D:null;Z!=null&&Z<L.width?!K||Z<N?(L.text="",L.width=L.contentWidth=0):(N2(S,L.text,Z-N,V,e.ellipsis,{minChar:e.truncateMinChar}),L.text=S.text,a.isTruncated=a.isTruncated||S.isTruncated,L.width=L.contentWidth=Qr(Jr(V),L.text)):L.contentWidth=Qr(Jr(V),L.text)}L.width+=N,D+=L.width,O&&(E=Math.max(E,L.lineHeight))}w(M,D,E)}a.outerWidth=a.width=$(f,x),a.outerHeight=a.height=$(c,y),a.contentHeight=y,a.contentWidth=x,a.outerWidth+=l,a.outerHeight+=u;for(var C=0;C<g.length;C++){var L=g[C],ve=L.percentWidth;L.width=parseInt(ve,10)/100*a.width}return a}function km(r,e,t,n,i){var a=e==="",o=i&&t.rich[i]||{},s=r.lines,l=o.font||t.font,u=!1,f,c;if(n){var p=o.padding,h=p?p[1]+p[3]:0;if(o.width!=null&&o.width!=="auto"){var d=jr(o.width,n.width)+h;s.length>0&&d+n.accumWidth>n.width&&(f=e.split(`
82
+ `),u=!0),n.accumWidth=d}else{var v=Iw(e,l,n.width,n.breakAll,n.accumWidth);n.accumWidth=v.accumWidth+h,c=v.linesWidths,f=v.lines}}f||(f=e.split(`
83
+ `));for(var m=Jr(l),g=0;g<f.length;g++){var y=f[g],x=new z2;if(x.styleName=i,x.text=y,x.isLineHolder=!y&&!a,typeof o.width=="number"?x.width=o.width:x.width=c?c[g]:Qr(m,y),!g&&!u){var _=(s[s.length-1]||(s[0]=new Aw)).tokens,b=_.length;b===1&&_[0].isLineHolder?_[0]=x:(y||!b||a)&&_.push(x)}else s.push(new Aw([x]))}}function U2(r){var e=r.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}function V2(r){return U2(r)?!!F2[r]:!0}function Iw(r,e,t,n,i){for(var a=[],o=[],s="",l="",u=0,f=0,c=Jr(e),p=0;p<r.length;p++){var h=r.charAt(p);if(h===`
84
+ `){l&&(s+=l,f+=u),a.push(s),o.push(f),s="",l="",u=0,f=0;continue}var d=Rm(c,h.charCodeAt(0)),v=n?!1:!V2(h);if(a.length?f+d>t:i+f+d>t){f?(s||l)&&(v?(s||(s=l,l="",u=0,f=u),a.push(s),o.push(f-u),l+=h,u+=d,s="",f=u):(l&&(s+=l,l="",u=0),a.push(s),o.push(f),s=h,f=d)):v?(a.push(l),o.push(u),l=h,u=d):(a.push(h),o.push(d));continue}f+=d,v?(l+=h,u+=d):(l&&(s+=l,l="",u=0),s+=h)}return l&&(s+=l),s&&(a.push(s),o.push(f)),a.length===1&&(f+=i),{accumWidth:f,lines:a,linesWidths:o}}function zm(r,e,t,n,i,a){if(r.baseX=t,r.baseY=n,r.outerWidth=r.outerHeight=null,!!e){var o=e.width*2,s=e.height*2;se.set(Cw,Wi(t,o,i),si(n,s,a),o,s),se.intersect(e,Cw,null,Mw);var l=Mw.outIntersectRect;r.outerWidth=l.width,r.outerHeight=l.height,r.baseX=Wi(l.x,l.width,i,!0),r.baseY=si(l.y,l.height,a,!0)}}function Bm(r){return r!=null?r+="":r=""}function Rw(r){var e=Bm(r.text),t=r.font,n=Qr(Jr(t),e),i=Ya(t);return $c(r,n,i,null)}function $c(r,e,t,n){var i=new se(Wi(r.x||0,e,r.textAlign),si(r.y||0,t,r.textBaseline),e,t),a=n??(Um(r)?r.lineWidth:0);return a>0&&(i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a),i}function Um(r){var e=r.stroke;return e!=null&&e!=="none"&&r.lineWidth>0}var Nm,z2,Aw,B2,F2,Cw,Mw,Fm=T(()=>{"use strict";zc();I();en();Tt();Nm=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;z2=(function(){function r(){}return r})(),Aw=(function(){function r(e){this.tokens=[],e&&(this.tokens=e)}return r})(),B2=(function(){function r(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return r})();F2=yr(",&?/;] ".split(""),function(r,e){return r[e]=!0,r},{});Cw=new se(0,0,0,0),Mw={outIntersectRect:{},clamp:!0}});function Xa(r){return r>kw||r<-kw}function Yi(r,e){return rw(r,e,Ns)}var Nw,kw,Ka,Rs,Vm,Hm,zw,H2,Ns,qi,Za=T(()=>{"use strict";ni();I();cr();Nw=ri,kw=5e-5;Ka=[],Rs=[],Vm=qt(),Hm=Math.abs,zw=(function(){function r(){}return r.prototype.getLocalTransform=function(e){return H2(this,e)},r.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},r.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},r.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},r.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},r.prototype.needLocalTransform=function(){return Xa(this.rotation)||Xa(this.x)||Xa(this.y)||Xa(this.scaleX-1)||Xa(this.scaleY-1)||Xa(this.skewX)||Xa(this.skewY)},r.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),n=this.transform;if(!(t||e)){n&&(Nw(n),this.invTransform=null);return}n=n||qt(),t?this.getLocalTransform(n):Nw(n),e&&(t?Hi(n,e,n):cu(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n),this.invTransform=this.invTransform||qt(),Ir(this.invTransform,n)},r.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(Ka);var n=Ka[0]<0?-1:1,i=Ka[1]<0?-1:1,a=((Ka[0]-n)*t+n)/Ka[0]||0,o=((Ka[1]-i)*t+i)/Ka[1]||0;e[0]*=a,e[1]*=a,e[2]*=o,e[3]*=o}},r.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},r.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],i=Math.atan2(e[1],e[0]),a=Math.PI/2+i-Math.atan2(e[3],e[2]);n=Math.sqrt(n)*Math.cos(a),t=Math.sqrt(t),this.skewX=a,this.skewY=0,this.rotation=-i,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=n,this.originX=0,this.originY=0}},r.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||qt(),Hi(Rs,e.invTransform,t),t=Rs);var n=this.originX,i=this.originY;(n||i)&&(Vm[4]=n,Vm[5]=i,Hi(Rs,t,Vm),Rs[4]-=n,Rs[5]-=i,t=Rs),this.setLocalTransform(t)}},r.prototype.getGlobalScale=function(e){var t=this.transform;return e=e||[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},r.prototype.transformCoordToLocal=function(e,t){var n=[e,t],i=this.invTransform;return i&&Dt(n,n,i),n},r.prototype.transformCoordToGlobal=function(e,t){var n=[e,t],i=this.transform;return i&&Dt(n,n,i),n},r.prototype.getLineScale=function(){var e=this.transform;return e&&Hm(e[0]-1)>1e-10&&Hm(e[3]-1)>1e-10?Math.sqrt(Hm(e[0]*e[3]-e[2]*e[1])):1},r.prototype.copyTransform=function(e){Yi(this,e)},r.getLocalTransform=function(e,t){t=t||[];var n=e.originX||0,i=e.originY||0,a=e.scaleX,o=e.scaleY,s=e.anchorX,l=e.anchorY,u=e.rotation||0,f=e.x,c=e.y,p=e.skewX?Math.tan(e.skewX):0,h=e.skewY?Math.tan(-e.skewY):0;if(n||i||s||l){var d=n+s,v=i+l;t[4]=-d*a-p*v*o,t[5]=-v*o-h*d*a}else t[4]=t[5]=0;return t[0]=a,t[3]=o,t[1]=h*a,t[2]=p*o,u&&Os(t,t,u),t[4]+=n+f,t[5]+=i+c,t},r.initDefaultProps=(function(){var e=r.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})(),r})(),H2=zw.getLocalTransform,Ns=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];qi=zw});var Wc,Yc,Gm=T(()=>{"use strict";Wc={linear:function(r){return r},quadraticIn:function(r){return r*r},quadraticOut:function(r){return r*(2-r)},quadraticInOut:function(r){return(r*=2)<1?.5*r*r:-.5*(--r*(r-2)-1)},cubicIn:function(r){return r*r*r},cubicOut:function(r){return--r*r*r+1},cubicInOut:function(r){return(r*=2)<1?.5*r*r*r:.5*((r-=2)*r*r+2)},quarticIn:function(r){return r*r*r*r},quarticOut:function(r){return 1- --r*r*r*r},quarticInOut:function(r){return(r*=2)<1?.5*r*r*r*r:-.5*((r-=2)*r*r*r-2)},quinticIn:function(r){return r*r*r*r*r},quinticOut:function(r){return--r*r*r*r*r+1},quinticInOut:function(r){return(r*=2)<1?.5*r*r*r*r*r:.5*((r-=2)*r*r*r*r+2)},sinusoidalIn:function(r){return 1-Math.cos(r*Math.PI/2)},sinusoidalOut:function(r){return Math.sin(r*Math.PI/2)},sinusoidalInOut:function(r){return .5*(1-Math.cos(Math.PI*r))},exponentialIn:function(r){return r===0?0:Math.pow(1024,r-1)},exponentialOut:function(r){return r===1?1:1-Math.pow(2,-10*r)},exponentialInOut:function(r){return r===0?0:r===1?1:(r*=2)<1?.5*Math.pow(1024,r-1):.5*(-Math.pow(2,-10*(r-1))+2)},circularIn:function(r){return 1-Math.sqrt(1-r*r)},circularOut:function(r){return Math.sqrt(1- --r*r)},circularInOut:function(r){return(r*=2)<1?-.5*(Math.sqrt(1-r*r)-1):.5*(Math.sqrt(1-(r-=2)*r)+1)},elasticIn:function(r){var e,t=.1,n=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=n/4):e=n*Math.asin(1/t)/(2*Math.PI),-(t*Math.pow(2,10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/n)))},elasticOut:function(r){var e,t=.1,n=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=n/4):e=n*Math.asin(1/t)/(2*Math.PI),t*Math.pow(2,-10*r)*Math.sin((r-e)*(2*Math.PI)/n)+1)},elasticInOut:function(r){var e,t=.1,n=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=n/4):e=n*Math.asin(1/t)/(2*Math.PI),(r*=2)<1?-.5*(t*Math.pow(2,10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/n)):t*Math.pow(2,-10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/n)*.5+1)},backIn:function(r){var e=1.70158;return r*r*((e+1)*r-e)},backOut:function(r){var e=1.70158;return--r*r*((e+1)*r+e)+1},backInOut:function(r){var e=2.5949095;return(r*=2)<1?.5*(r*r*((e+1)*r-e)):.5*((r-=2)*r*((e+1)*r+e)+2)},bounceIn:function(r){return 1-Wc.bounceOut(1-r)},bounceOut:function(r){return r<.36363636363636365?7.5625*r*r:r<.7272727272727273?7.5625*(r-=.5454545454545454)*r+.75:r<.9090909090909091?7.5625*(r-=.8181818181818182)*r+.9375:7.5625*(r-=.9545454545454546)*r+.984375},bounceInOut:function(r){return r<.5?Wc.bounceIn(r*2)*.5:Wc.bounceOut(r*2-1)*.5+.5}},Yc=Wc});function Xi(r){return r>-Kc&&r<Kc}function Fw(r){return r>Kc||r<-Kc}function Xe(r,e,t,n,i){var a=1-i;return a*a*(a*r+3*i*e)+i*i*(i*n+3*a*t)}function $m(r,e,t,n,i){var a=1-i;return 3*(((e-r)*a+2*(t-e)*i)*a+(n-t)*i*i)}function ja(r,e,t,n,i,a){var o=n+3*(e-t)-r,s=3*(t-e*2+r),l=3*(e-r),u=r-i,f=s*s-3*o*l,c=s*l-9*o*u,p=l*l-3*s*u,h=0;if(Xi(f)&&Xi(c))if(Xi(s))a[0]=0;else{var d=-l/s;d>=0&&d<=1&&(a[h++]=d)}else{var v=c*c-4*f*p;if(Xi(v)){var m=c/f,d=-s/o+m,g=-m/2;d>=0&&d<=1&&(a[h++]=d),g>=0&&g<=1&&(a[h++]=g)}else if(v>0){var y=Ki(v),x=f*s+1.5*o*(-c+y),_=f*s+1.5*o*(-c-y);x<0?x=-qc(-x,Xc):x=qc(x,Xc),_<0?_=-qc(-_,Xc):_=qc(_,Xc);var d=(-s-(x+_))/(3*o);d>=0&&d<=1&&(a[h++]=d)}else{var b=(2*f*s-3*o*c)/(2*Ki(f*f*f)),S=Math.acos(b)/3,w=Ki(f),C=Math.cos(S),d=(-s-2*w*C)/(3*o),g=(-s+w*(C+Bw*Math.sin(S)))/(3*o),M=(-s+w*(C-Bw*Math.sin(S)))/(3*o);d>=0&&d<=1&&(a[h++]=d),g>=0&&g<=1&&(a[h++]=g),M>=0&&M<=1&&(a[h++]=M)}}return h}function Zc(r,e,t,n,i){var a=6*t-12*e+6*r,o=9*e+3*n-3*r-9*t,s=3*e-3*r,l=0;if(Xi(o)){if(Fw(a)){var u=-s/a;u>=0&&u<=1&&(i[l++]=u)}}else{var f=a*a-4*o*s;if(Xi(f))i[0]=-a/(2*o);else if(f>0){var c=Ki(f),u=(-a+c)/(2*o),p=(-a-c)/(2*o);u>=0&&u<=1&&(i[l++]=u),p>=0&&p<=1&&(i[l++]=p)}}return l}function zs(r,e,t,n,i,a){var o=(e-r)*i+r,s=(t-e)*i+e,l=(n-t)*i+t,u=(s-o)*i+o,f=(l-s)*i+s,c=(f-u)*i+u;a[0]=r,a[1]=o,a[2]=u,a[3]=c,a[4]=c,a[5]=f,a[6]=l,a[7]=n}function jc(r,e,t,n,i,a,o,s,l,u,f){var c,p=.005,h=1/0,d,v,m,g;Cn[0]=l,Cn[1]=u;for(var y=0;y<1;y+=.05)Rr[0]=Xe(r,t,i,o,y),Rr[1]=Xe(e,n,a,s,y),m=Fa(Cn,Rr),m<h&&(c=y,h=m);h=1/0;for(var x=0;x<32&&!(p<Uw);x++)d=c-p,v=c+p,Rr[0]=Xe(r,t,i,o,d),Rr[1]=Xe(e,n,a,s,d),m=Fa(Rr,Cn),d>=0&&m<h?(c=d,h=m):(ks[0]=Xe(r,t,i,o,v),ks[1]=Xe(e,n,a,s,v),g=Fa(ks,Cn),v<=1&&g<h?(c=v,h=g):p*=.5);return f&&(f[0]=Xe(r,t,i,o,c),f[1]=Xe(e,n,a,s,c)),Ki(h)}function Vw(r,e,t,n,i,a,o,s,l){for(var u=r,f=e,c=0,p=1/l,h=1;h<=l;h++){var d=h*p,v=Xe(r,t,i,o,d),m=Xe(e,n,a,s,d),g=v-u,y=m-f;c+=Math.sqrt(g*g+y*y),u=v,f=m}return c}function yt(r,e,t,n){var i=1-n;return i*(i*r+2*n*e)+n*n*t}function Wm(r,e,t,n){return 2*((1-n)*(e-r)+n*(t-e))}function Hw(r,e,t,n,i){var a=r-2*e+t,o=2*(e-r),s=r-n,l=0;if(Xi(a)){if(Fw(o)){var u=-s/o;u>=0&&u<=1&&(i[l++]=u)}}else{var f=o*o-4*a*s;if(Xi(f)){var u=-o/(2*a);u>=0&&u<=1&&(i[l++]=u)}else if(f>0){var c=Ki(f),u=(-o+c)/(2*a),p=(-o-c)/(2*a);u>=0&&u<=1&&(i[l++]=u),p>=0&&p<=1&&(i[l++]=p)}}return l}function Jc(r,e,t){var n=r+t-2*e;return n===0?.5:(r-e)/n}function Bs(r,e,t,n,i){var a=(e-r)*n+r,o=(t-e)*n+e,s=(o-a)*n+a;i[0]=r,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=t}function Qc(r,e,t,n,i,a,o,s,l){var u,f=.005,c=1/0;Cn[0]=o,Cn[1]=s;for(var p=0;p<1;p+=.05){Rr[0]=yt(r,t,i,p),Rr[1]=yt(e,n,a,p);var h=Fa(Cn,Rr);h<c&&(u=p,c=h)}c=1/0;for(var d=0;d<32&&!(f<Uw);d++){var v=u-f,m=u+f;Rr[0]=yt(r,t,i,v),Rr[1]=yt(e,n,a,v);var h=Fa(Rr,Cn);if(v>=0&&h<c)u=v,c=h;else{ks[0]=yt(r,t,i,m),ks[1]=yt(e,n,a,m);var g=Fa(ks,Cn);m<=1&&g<c?(u=m,c=g):f*=.5}}return l&&(l[0]=yt(r,t,i,u),l[1]=yt(e,n,a,u)),Ki(c)}function Gw(r,e,t,n,i,a,o){for(var s=r,l=e,u=0,f=1/o,c=1;c<=o;c++){var p=c*f,h=yt(r,t,i,p),d=yt(e,n,a,p),v=h-s,m=d-l;u+=Math.sqrt(v*v+m*m),s=h,l=d}return u}var qc,Ki,Kc,Uw,Bw,Xc,Cn,Rr,ks,Mn=T(()=>{"use strict";cr();qc=Math.pow,Ki=Math.sqrt,Kc=1e-8,Uw=1e-4,Bw=Ki(3),Xc=1/3,Cn=Gi(),Rr=Gi(),ks=Gi()});function Us(r){var e=r&&G2.exec(r);if(e){var t=e[1].split(","),n=+ur(t[0]),i=+ur(t[1]),a=+ur(t[2]),o=+ur(t[3]);if(isNaN(n+i+a+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:ja(0,n,a,1,l,s)&&Xe(0,i,o,1,s[0])}}}var G2,ep=T(()=>{"use strict";Mn();I();G2=/cubic-bezier\(([0-9,\.e ]+)\)/});var $2,$w,Ww=T(()=>{"use strict";Gm();I();ep();$2=(function(){function r(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||at,this.ondestroy=e.ondestroy||at,this.onrestart=e.onrestart||at,e.easing&&this.setEasing(e.easing)}return r.prototype.step=function(e,t){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=t;return}var n=this._life,i=e-this._startTime-this._pausedTime,a=i/n;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),a===1)if(this.loop){var l=i%n;this._startTime=e-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},r.prototype.pause=function(){this._paused=!0},r.prototype.resume=function(){this._paused=!1},r.prototype.setEasing=function(e){this.easing=e,this.easingFunc=j(e)?e:Yc[e]||Us(e)},r})(),$w=$2});function Zi(r){return r=Math.round(r),r<0?0:r>255?255:r}function W2(r){return r=Math.round(r),r<0?0:r>360?360:r}function Km(r){return r<0?0:r>1?1:r}function qm(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?Zi(parseFloat(e)/100*255):Zi(parseInt(e,10))}function Ja(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?Km(parseFloat(e)/100):Km(parseFloat(e))}function Xm(r,e,t){return t<0?t+=1:t>1&&(t-=1),t*6<1?r+(e-r)*t*6:t*2<1?e:t*3<2?r+(e-r)*(2/3-t)*6:r}function tp(r,e,t){return r+(e-r)*t}function Nr(r,e,t,n,i){return r[0]=e,r[1]=t,r[2]=n,r[3]=i,r}function Zm(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r}function Fs(r,e){rp&&Zm(rp,e),rp=Kw.put(r,rp||e.slice())}function Xt(r,e){if(r){e=e||[];var t=Kw.get(r);if(t)return Zm(e,t);r=r+"";var n=r.replace(/ /g,"").toLowerCase();if(n in Yw)return Zm(e,Yw[n]),Fs(r,e),e;var i=n.length;if(n.charAt(0)==="#"){if(i===4||i===5){var a=parseInt(n.slice(1,4),16);if(!(a>=0&&a<=4095)){Nr(e,0,0,0,1);return}return Nr(e,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(n.slice(4),16)/15:1),Fs(r,e),e}else if(i===7||i===9){var a=parseInt(n.slice(1,7),16);if(!(a>=0&&a<=16777215)){Nr(e,0,0,0,1);return}return Nr(e,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(n.slice(7),16)/255:1),Fs(r,e),e}return}var o=n.indexOf("("),s=n.indexOf(")");if(o!==-1&&s+1===i){var l=n.substr(0,o),u=n.substr(o+1,s-(o+1)).split(","),f=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?Nr(e,+u[0],+u[1],+u[2],1):Nr(e,0,0,0,1);f=Ja(u.pop());case"rgb":if(u.length>=3)return Nr(e,qm(u[0]),qm(u[1]),qm(u[2]),u.length===3?f:Ja(u[3])),Fs(r,e),e;Nr(e,0,0,0,1);return;case"hsla":if(u.length!==4){Nr(e,0,0,0,1);return}return u[3]=Ja(u[3]),jm(u,e),Fs(r,e),e;case"hsl":if(u.length!==3){Nr(e,0,0,0,1);return}return jm(u,e),Fs(r,e),e;default:return}}Nr(e,0,0,0,1)}}function jm(r,e){var t=(parseFloat(r[0])%360+360)%360/360,n=Ja(r[1]),i=Ja(r[2]),a=i<=.5?i*(n+1):i+n-i*n,o=i*2-a;return e=e||[],Nr(e,Zi(Xm(o,a,t+1/3)*255),Zi(Xm(o,a,t)*255),Zi(Xm(o,a,t-1/3)*255),1),r.length===4&&(e[3]=r[3]),e}function Y2(r){if(r){var e=r[0]/255,t=r[1]/255,n=r[2]/255,i=Math.min(e,t,n),a=Math.max(e,t,n),o=a-i,s=(a+i)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(a+i):u=o/(2-a-i);var f=((a-e)/6+o/2)/o,c=((a-t)/6+o/2)/o,p=((a-n)/6+o/2)/o;e===a?l=p-c:t===a?l=1/3+f-p:n===a&&(l=2/3+c-f),l<0&&(l+=1),l>1&&(l-=1)}var h=[l*360,u,s];return r[3]!=null&&h.push(r[3]),h}}function qw(r,e){var t=Xt(r);if(t){for(var n=0;n<3;n++)e<0?t[n]=t[n]*(1-e)|0:t[n]=(255-t[n])*e+t[n]|0,t[n]>255?t[n]=255:t[n]<0&&(t[n]=0);return Qa(t,t.length===4?"rgba":"rgb")}}function Zw(r,e,t){if(!(!(e&&e.length)||!(r>=0&&r<=1))){var n=r*(e.length-1),i=Math.floor(n),a=Math.ceil(n),o=Xt(e[i]),s=Xt(e[a]),l=n-i,u=Qa([Zi(tp(o[0],s[0],l)),Zi(tp(o[1],s[1],l)),Zi(tp(o[2],s[2],l)),Km(tp(o[3],s[3],l))],"rgba");return t?{color:u,leftIndex:i,rightIndex:a,value:n}:u}}function yu(r,e,t,n){var i=Xt(r);if(r)return i=Y2(i),e!=null&&(i[0]=W2(j(e)?e(i[0]):e)),t!=null&&(i[1]=Ja(j(t)?t(i[1]):t)),n!=null&&(i[2]=Ja(j(n)?n(i[2]):n)),Qa(jm(i),"rgba")}function Qa(r,e){if(!(!r||!r.length)){var t=r[0]+","+r[1]+","+r[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(t+=","+r[3]),e+"("+t+")"}}function Vs(r,e){var t=Xt(r);return t?(.299*t[0]+.587*t[1]+.114*t[2])*t[3]/255+(1-t[3])*e:0}function xu(r){if(G(r)){var e=Xw.get(r);return e||(e=qw(r,-.1),Xw.put(r,e)),e}else if(As(r)){var t=k({},r);return t.colorStops=F(r.colorStops,function(n){return{offset:n.offset,color:qw(n.color,-.1)}}),t}return r}var Yw,Kw,rp,Xw,kr=T(()=>{"use strict";uu();I();Yw={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]};Kw=new An(20),rp=null;Xw=new An(100)});function ji(r){var e;if(!r||r==="transparent")r="none";else if(typeof r=="string"&&r.indexOf("rgba")>-1){var t=Xt(r);t&&(r="rgb("+t[0]+","+t[1]+","+t[2]+")",e=t[3])}return{color:r,opacity:e??1}}function Dn(r){return r<jw&&r>-jw}function np(r){return ip(r*1e3)/1e3}function ap(r){return ip(r*1e4)/1e4}function Jw(r){return"matrix("+np(r[0])+","+np(r[1])+","+np(r[2])+","+np(r[3])+","+ap(r[4])+","+ap(r[5])+")"}function eT(r,e,t){return t==="top"?r+=e/2:t==="bottom"&&(r-=e/2),r}function tT(r){return r&&(r.shadowBlur||r.shadowOffsetX||r.shadowOffsetY)}function rT(r){var e=r.style,t=r.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),t[0],t[1]].join(",")}function Jm(r){return r&&!!r.image}function X2(r){return r&&!!r.svgElement}function _u(r){return Jm(r)||X2(r)}function op(r){return r.type==="linear"}function sp(r){return r.type==="radial"}function lp(r){return r&&(r.type==="linear"||r.type==="radial")}function bu(r){return"url(#"+r+")"}function up(r){var e=r.getGlobalScale(),t=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(t)/Math.log(10)),1)}function fp(r){var e=r.x||0,t=r.y||0,n=(r.rotation||0)*Ds,i=$(r.scaleX,1),a=$(r.scaleY,1),o=r.skewX||0,s=r.skewY||0,l=[];return(e||t)&&l.push("translate("+e+"px,"+t+"px)"),n&&l.push("rotate("+n+")"),(i!==1||a!==1)&&l.push("scale("+i+","+a+")"),(o||s)&&l.push("skew("+ip(o*Ds)+"deg, "+ip(s*Ds)+"deg)"),l.join(" ")}var ip,jw,Qw,nT,eo=T(()=>{"use strict";I();kr();ip=Math.round;jw=1e-4;Qw={left:"start",right:"end",center:"middle",middle:"middle"};nT=(function(){return typeof Buffer<"u"&&typeof Buffer.from=="function"?function(r){return Buffer.from(r).toString("base64")}:typeof btoa=="function"&&typeof unescape=="function"&&typeof encodeURIComponent=="function"?function(r){return btoa(unescape(encodeURIComponent(r)))}:function(r){return null}})()});function li(r,e,t){return(e-r)*t+r}function Qm(r,e,t,n){for(var i=e.length,a=0;a<i;a++)r[a]=li(e[a],t[a],n);return r}function K2(r,e,t,n){for(var i=e.length,a=i&&e[0].length,o=0;o<i;o++){r[o]||(r[o]=[]);for(var s=0;s<a;s++)r[o][s]=li(e[o][s],t[o][s],n)}return r}function cp(r,e,t,n){for(var i=e.length,a=0;a<i;a++)r[a]=e[a]+t[a]*n;return r}function iT(r,e,t,n){for(var i=e.length,a=i&&e[0].length,o=0;o<i;o++){r[o]||(r[o]=[]);for(var s=0;s<a;s++)r[o][s]=e[o][s]+t[o][s]*n}return r}function Z2(r,e){for(var t=r.length,n=e.length,i=t>n?e:r,a=Math.min(t,n),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(t,n);s++)i.push({offset:o.offset,color:o.color.slice()})}function j2(r,e,t){var n=r,i=e;if(!(!n.push||!i.push)){var a=n.length,o=i.length;if(a!==o){var s=a>o;if(s)n.length=o;else for(var l=a;l<o;l++)n.push(t===1?i[l]:eg.call(i[l]))}for(var u=n[0]&&n[0].length,l=0;l<n.length;l++)if(t===1)isNaN(n[l])&&(n[l]=i[l]);else for(var f=0;f<u;f++)isNaN(n[l][f])&&(n[l][f]=i[l][f])}}function Tu(r){if(dt(r)){var e=r.length;if(dt(r[0])){for(var t=[],n=0;n<e;n++)t.push(eg.call(r[n]));return t}return eg.call(r)}return r}function dp(r){return r[0]=Math.floor(r[0])||0,r[1]=Math.floor(r[1])||0,r[2]=Math.floor(r[2])||0,r[3]=r[3]==null?1:r[3],"rgba("+r.join(",")+")"}function J2(r){return dt(r&&r[0])?2:1}function oT(r){return r===tg||r===rg}function hp(r){return r===vp||r===sT}var eg,pp,vp,sT,wu,tg,rg,aT,Su,Q2,ez,Eu,ng=T(()=>{"use strict";Ww();kr();I();Gm();ep();eo();eg=Array.prototype.slice;pp=0,vp=1,sT=2,wu=3,tg=4,rg=5,aT=6;Su=[0,0,0,0],Q2=(function(){function r(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return r.prototype.isFinished=function(){return this._finished},r.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},r.prototype.needsAnimate=function(){return this.keyframes.length>=1},r.prototype.getAdditiveTrack=function(){return this._additiveTrack},r.prototype.addKeyframe=function(e,t,n){this._needsSort=!0;var i=this.keyframes,a=i.length,o=!1,s=aT,l=t;if(dt(t)){var u=J2(t);s=u,(u===1&&!he(t[0])||u===2&&!he(t[0][0]))&&(o=!0)}else if(he(t)&&!Bi(t))s=pp;else if(G(t))if(!isNaN(+t))s=pp;else{var f=Xt(t);f&&(l=f,s=wu)}else if(As(t)){var c=k({},l);c.colorStops=F(t.colorStops,function(h){return{offset:h.offset,color:Xt(h.color)}}),op(t)?s=tg:sp(t)&&(s=rg),l=c}a===0?this.valType=s:(s!==this.valType||s===aT)&&(o=!0),this.discrete=this.discrete||o;var p={time:e,value:l,rawValue:t,percent:0};return n&&(p.easing=n,p.easingFunc=j(n)?n:Yc[n]||Us(n)),i.push(p),p},r.prototype.prepare=function(e,t){var n=this.keyframes;this._needsSort&&n.sort(function(v,m){return v.time-m.time});for(var i=this.valType,a=n.length,o=n[a-1],s=this.discrete,l=hp(i),u=oT(i),f=0;f<a;f++){var c=n[f],p=c.value,h=o.value;c.percent=c.time/e,s||(l&&f!==a-1?j2(p,h,i):u&&Z2(p.colorStops,h.colorStops))}if(!s&&i!==rg&&t&&this.needsAnimate()&&t.needsAnimate()&&i===t.valType&&!t._finished){this._additiveTrack=t;for(var d=n[0].value,f=0;f<a;f++)i===pp?n[f].additiveValue=n[f].value-d:i===wu?n[f].additiveValue=cp([],n[f].value,d,-1):hp(i)&&(n[f].additiveValue=i===vp?cp([],n[f].value,d,-1):iT([],n[f].value,d,-1))}},r.prototype.step=function(e,t){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n=this._additiveTrack!=null,i=n?"additiveValue":"value",a=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=a===wu,f,c=this._lastFr,p=Math.min,h,d;if(s===1)h=d=o[0];else{if(t<0)f=0;else if(t<this._lastFrP){var v=p(c+1,s-1);for(f=v;f>=0&&!(o[f].percent<=t);f--);f=p(f,s-2)}else{for(f=c;f<s&&!(o[f].percent>t);f++);f=p(f-1,s-2)}d=o[f+1],h=o[f]}if(h&&d){this._lastFr=f,this._lastFrP=t;var m=d.percent-h.percent,g=m===0?1:p((t-h.percent)/m,1);d.easingFunc&&(g=d.easingFunc(g));var y=n?this._additiveValue:u?Su:e[l];if((hp(a)||u)&&!y&&(y=this._additiveValue=[]),this.discrete)e[l]=g<1?h.rawValue:d.rawValue;else if(hp(a))a===vp?Qm(y,h[i],d[i],g):K2(y,h[i],d[i],g);else if(oT(a)){var x=h[i],_=d[i],b=a===tg;e[l]={type:b?"linear":"radial",x:li(x.x,_.x,g),y:li(x.y,_.y,g),colorStops:F(x.colorStops,function(w,C){var M=_.colorStops[C];return{offset:li(w.offset,M.offset,g),color:dp(Qm([],w.color,M.color,g))}}),global:_.global},b?(e[l].x2=li(x.x2,_.x2,g),e[l].y2=li(x.y2,_.y2,g)):e[l].r=li(x.r,_.r,g)}else if(u)Qm(y,h[i],d[i],g),n||(e[l]=dp(y));else{var S=li(h[i],d[i],g);n?this._additiveValue=S:e[l]=S}n&&this._addToTarget(e)}}},r.prototype._addToTarget=function(e){var t=this.valType,n=this.propName,i=this._additiveValue;t===pp?e[n]=e[n]+i:t===wu?(Xt(e[n],Su),cp(Su,Su,i,1),e[n]=dp(Su)):t===vp?cp(e[n],e[n],i,1):t===sT&&iT(e[n],e[n],i,1)},r})(),ez=(function(){function r(e,t,n,i){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&i){Rc("Can' use additive animation on looped animation.");return}this._additiveAnimators=i,this._allowDiscrete=n}return r.prototype.getMaxTime=function(){return this._maxTime},r.prototype.getDelay=function(){return this._delay},r.prototype.getLoop=function(){return this._loop},r.prototype.getTarget=function(){return this._target},r.prototype.changeTarget=function(e){this._target=e},r.prototype.when=function(e,t,n){return this.whenWithKeys(e,t,oe(t),n)},r.prototype.whenWithKeys=function(e,t,n,i){for(var a=this._tracks,o=0;o<n.length;o++){var s=n[o],l=a[s];if(!l){l=a[s]=new Q2(s);var u=void 0,f=this._getAdditiveTrack(s);if(f){var c=f.keyframes,p=c[c.length-1];u=p&&p.value,f.valType===wu&&u&&(u=dp(u))}else u=this._target[s];if(u==null)continue;e>0&&l.addKeyframe(0,Tu(u),i),this._trackKeys.push(s)}l.addKeyframe(e,Tu(t[s]),i)}return this._maxTime=Math.max(this._maxTime,e),this},r.prototype.pause=function(){this._clip.pause(),this._paused=!0},r.prototype.resume=function(){this._clip.resume(),this._paused=!1},r.prototype.isPaused=function(){return!!this._paused},r.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},r.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,n=0;n<t;n++)e[n].call(this)},r.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,t=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,t)for(var n=0;n<t.length;n++)t[n].call(this)},r.prototype._setTracksFinished=function(){for(var e=this._tracks,t=this._trackKeys,n=0;n<t.length;n++)e[t[n]].setFinished()},r.prototype._getAdditiveTrack=function(e){var t,n=this._additiveAnimators;if(n)for(var i=0;i<n.length;i++){var a=n[i].getTrack(e);a&&(t=a)}return t},r.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var t=this,n=[],i=this._maxTime||0,a=0;a<this._trackKeys.length;a++){var o=this._trackKeys[a],s=this._tracks[o],l=this._getAdditiveTrack(o),u=s.keyframes,f=u.length;if(s.prepare(i,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var c=u[f-1];c&&(t._target[s.propName]=c.rawValue),s.setFinished()}else n.push(s)}if(n.length||this._force){var p=new $w({life:i,loop:this._loop,delay:this._delay||0,onframe:function(h){t._started=2;var d=t._additiveAnimators;if(d){for(var v=!1,m=0;m<d.length;m++)if(d[m]._clip){v=!0;break}v||(t._additiveAnimators=null)}for(var m=0;m<n.length;m++)n[m].step(t._target,h);var g=t._onframeCbs;if(g)for(var m=0;m<g.length;m++)g[m](t._target,h)},ondestroy:function(){t._doneCallback()}});this._clip=p,this.animation&&this.animation.addClip(p),e&&p.setEasing(e)}else this._doneCallback();return this}},r.prototype.stop=function(e){if(this._clip){var t=this._clip;e&&t.onframe(1),this._abortedCallback()}},r.prototype.delay=function(e){return this._delay=e,this},r.prototype.during=function(e){return e&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(e)),this},r.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},r.prototype.aborted=function(e){return e&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(e)),this},r.prototype.getClip=function(){return this._clip},r.prototype.getTrack=function(e){return this._tracks[e]},r.prototype.getTracks=function(){var e=this;return F(this._trackKeys,function(t){return e._tracks[t]})},r.prototype.stopTracks=function(e,t){if(!e.length||!this._clip)return!0;for(var n=this._tracks,i=this._trackKeys,a=0;a<e.length;a++){var o=n[e[a]];o&&!o.isFinished()&&(t?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,a=0;a<i.length;a++)if(!n[i[a]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},r.prototype.saveTo=function(e,t,n){if(e){t=t||this._trackKeys;for(var i=0;i<t.length;i++){var a=t[i],o=this._tracks[a];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[n?0:s.length-1];l&&(e[a]=Tu(l.rawValue))}}}},r.prototype.__changeFinalValue=function(e,t){t=t||oe(e);for(var n=0;n<t.length;n++){var i=t[n],a=this._tracks[i];if(a){var o=a.keyframes;if(o.length>1){var s=o.pop();a.addKeyframe(s.time,e[i]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},r})(),Eu=ez});var tz,Kt,to=T(()=>{"use strict";tz=(function(){function r(e){e&&(this._$eventProcessor=e)}return r.prototype.on=function(e,t,n,i){this._$handlers||(this._$handlers={});var a=this._$handlers;if(typeof t=="function"&&(i=n,n=t,t=null),!n||!e)return this;var o=this._$eventProcessor;t!=null&&o&&o.normalizeQuery&&(t=o.normalizeQuery(t)),a[e]||(a[e]=[]);for(var s=0;s<a[e].length;s++)if(a[e][s].h===n)return this;var l={h:n,query:t,ctx:i||this,callAtLast:n.zrEventfulCallAtLast},u=a[e].length-1,f=a[e][u];return f&&f.callAtLast?a[e].splice(u,0,l):a[e].push(l),this},r.prototype.isSilent=function(e){var t=this._$handlers;return!t||!t[e]||!t[e].length},r.prototype.off=function(e,t){var n=this._$handlers;if(!n)return this;if(!e)return this._$handlers={},this;if(t){if(n[e]){for(var i=[],a=0,o=n[e].length;a<o;a++)n[e][a].h!==t&&i.push(n[e][a]);n[e]=i}n[e]&&n[e].length===0&&delete n[e]}else delete n[e];return this},r.prototype.trigger=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[e],a=this._$eventProcessor;if(i)for(var o=t.length,s=i.length,l=0;l<s;l++){var u=i[l];if(!(a&&a.filter&&u.query!=null&&!a.filter(e,u.query)))switch(o){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,t[0]);break;case 2:u.h.call(u.ctx,t[0],t[1]);break;default:u.h.apply(u.ctx,t);break}}return a&&a.afterTrigger&&a.afterTrigger(e),this},r.prototype.triggerWithContext=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[e],a=this._$eventProcessor;if(i)for(var o=t.length,s=t[o-1],l=i.length,u=0;u<l;u++){var f=i[u];if(!(a&&a.filter&&f.query!=null&&!a.filter(e,f.query)))switch(o){case 0:f.h.call(s);break;case 1:f.h.call(s,t[0]);break;case 2:f.h.call(s,t[0],t[1]);break;default:f.h.apply(s,t.slice(1,o-1));break}}return a&&a.afterTrigger&&a.afterTrigger(e),this},r})(),Kt=tz});var lT,ig,Au,Cu,Mu,uT,Du=T(()=>{"use strict";Or();lT=1;Pe.hasGlobalWindow&&(lT=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));ig=lT,Au=.4,Cu="#333",Mu="#ccc",uT="#eee"});var Bt,ro,Ji,Hs=T(()=>{"use strict";Bt=1,ro=2,Ji=4});function sg(r,e,t,n,i){t=t||{};var a=[];hT(r,"",r,e,t,n,a,i);var o=a.length,s=!1,l=t.done,u=t.aborted,f=function(){s=!0,o--,o<=0&&(s?l&&l():u&&u())},c=function(){o--,o<=0&&(s?l&&l():u&&u())};o||l&&l(),a.length>0&&t.during&&a[0].during(function(d,v){t.during(v)});for(var p=0;p<a.length;p++){var h=a[p];f&&h.done(f),c&&h.aborted(c),t.force&&h.duration(t.duration),h.start(t.easing)}return a}function lg(r,e,t){for(var n=0;n<t;n++)r[n]=e[n]}function iz(r){return dt(r[0])}function az(r,e,t){if(dt(e[t]))if(dt(r[t])||(r[t]=[]),nt(e[t])){var n=e[t].length;r[t].length!==n&&(r[t]=new e[t].constructor(n),lg(r[t],e[t],n))}else{var i=e[t],a=r[t],o=i.length;if(iz(i))for(var s=i[0].length,l=0;l<o;l++)a[l]?lg(a[l],i[l],s):a[l]=Array.prototype.slice.call(i[l]);else lg(a,i,o);a.length=i.length}else r[t]=e[t]}function oz(r,e){return r===e||dt(r)&&dt(e)&&sz(r,e)}function sz(r,e){var t=r.length;if(t!==e.length)return!1;for(var n=0;n<t;n++)if(r[n]!==e[n])return!1;return!0}function hT(r,e,t,n,i,a,o,s){for(var l=oe(n),u=i.duration,f=i.delay,c=i.additive,p=i.setToFinal,h=!Y(a),d=r.animators,v=[],m=0;m<l.length;m++){var g=l[m],y=n[g];if(y!=null&&t[g]!=null&&(h||a[g]))if(Y(y)&&!dt(y)&&!As(y)){if(e){s||(t[g]=y,r.updateDuringAnimation(e));continue}hT(r,g,t[g],y,i,a&&a[g],o,s)}else v.push(g);else s||(t[g]=y,r.updateDuringAnimation(e),v.push(g))}var x=v.length;if(!c&&x)for(var _=0;_<d.length;_++){var b=d[_];if(b.targetName===e){var S=b.stopTracks(v);if(S){var w=de(d,b);d.splice(w,1)}}}if(i.force||(v=Fe(v,function(D){return!oz(n[D],t[D])}),x=v.length),x>0||i.force&&!o.length){var C=void 0,M=void 0,E=void 0;if(s){M={},p&&(C={});for(var _=0;_<x;_++){var g=v[_];M[g]=t[g],p?C[g]=n[g]:t[g]=n[g]}}else if(p){E={};for(var _=0;_<x;_++){var g=v[_];E[g]=Tu(t[g]),az(t,n,g)}}var b=new Eu(t,!1,!1,c?Fe(d,function(P){return P.targetName===e}):null);b.targetName=e,i.scope&&(b.scope=i.scope),p&&C&&b.whenWithKeys(0,C,v),E&&b.whenWithKeys(0,E,v),b.whenWithKeys(u??500,s?M:n,v).delay(f||0),r.addAnimator(b,e),o.push(b)}}function fT(r,e,t,n){return!(t&&t.hoverLayer||n)||cT(r)||e&&cT(e)?gp:$s}function cT(r){return r.type==="text"||r.type==="tspan"}function pT(r,e,t){return!e&&!r.__inHover&&t&&t.duration>0}var ag,og,rz,Gs,nz,mp,gp,$s,ug,yp,xp=T(()=>{"use strict";Za();ng();Tt();to();en();I();Du();kr();Hs();ni();ag="__zr_normal__",og=Ns.concat(["ignore"]),rz=yr(Ns,function(r,e){return r[e]=!0,r},{ignore:!1}),Gs={},nz=new se(0,0,0,0),mp=[],gp=0,$s=1,ug=(function(){function r(e){this.id=Ic(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return r.prototype._init=function(e){this.attr(e)},r.prototype.drift=function(e,t,n){switch(this.draggable){case"horizontal":t=0;break;case"vertical":e=0;break}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=e,i[5]+=t,this.decomposeTransform(),this.markRedraw()},r.prototype.beforeUpdate=function(){},r.prototype.afterUpdate=function(){},r.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},r.prototype.updateInnerText=function(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,a=t.innerTransformable,o=void 0,s=void 0,l=!1;a.parent=i?this:null;var u=!1;a.copyTransform(t);var f=n.position!=null,c=n.autoOverflowArea,p=void 0;if((c||f)&&(p=nz,n.layoutRect?p.copy(n.layoutRect):p.copy(this.getBoundingRect()),i||p.applyTransform(this.transform)),f){this.calculateTextPosition?this.calculateTextPosition(Gs,n,p):qa(Gs,n,p),a.x=Gs.x,a.y=Gs.y,o=Gs.align,s=Gs.verticalAlign;var h=n.origin;if(h&&n.rotation!=null){var d=void 0,v=void 0;h==="center"?(d=p.width*.5,v=p.height*.5):(d=jr(h[0],p.width),v=jr(h[1],p.height)),u=!0,a.originX=-a.x+d+(i?0:p.x),a.originY=-a.y+v+(i?0:p.y)}}n.rotation!=null&&(a.rotation=n.rotation);var m=n.offset;m&&(a.x+=m[0],a.y+=m[1],u||(a.originX=-m[0],a.originY=-m[1]));var g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={});if(c){var y=g.overflowRect=g.overflowRect||new se(0,0,0,0);a.getLocalTransform(mp),Ir(mp,mp),se.copy(y,p),y.applyTransform(mp)}else g.overflowRect=null;var x=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,_=void 0,b=void 0,S=void 0;x&&this.canBeInsideText()?(_=n.insideFill,b=n.insideStroke,(_==null||_==="auto")&&(_=this.getInsideTextFill()),(b==null||b==="auto")&&(b=this.getInsideTextStroke(_),S=!0)):(_=n.outsideFill,b=n.outsideStroke,(_==null||_==="auto")&&(_=this.getOutsideFill()),(b==null||b==="auto")&&(b=this.getOutsideStroke(_),S=!0)),_=_||"#000",(_!==g.fill||b!==g.stroke||S!==g.autoStroke||o!==g.align||s!==g.verticalAlign)&&(l=!0,g.fill=_,g.stroke=b,g.autoStroke=S,g.align=o,g.verticalAlign=s,t.setDefaultTextStyle(g)),t.__dirty|=Bt,l&&t.dirtyStyle(!0)}},r.prototype.canBeInsideText=function(){return!0},r.prototype.getInsideTextFill=function(){return"#fff"},r.prototype.getInsideTextStroke=function(e){return"#000"},r.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Mu:Cu},r.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),n=typeof t=="string"&&Xt(t);n||(n=[255,255,255,1]);for(var i=n[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+(a?0:255)*(1-i);return n[3]=1,Qa(n,"rgba")},r.prototype.traverse=function(e,t){},r.prototype.attrKV=function(e,t){e==="textConfig"?this.setTextConfig(t):e==="textContent"?this.setTextContent(t):e==="clipPath"?this.setClipPath(t):e==="extra"?(this.extra=this.extra||{},k(this.extra,t)):this[e]=t},r.prototype.hide=function(){this.ignore=!0,this.markRedraw()},r.prototype.show=function(){this.ignore=!1,this.markRedraw()},r.prototype.attr=function(e,t){if(typeof e=="string")this.attrKV(e,t);else if(Y(e))for(var n=e,i=oe(n),a=0;a<i.length;a++){var o=i[a];this.attrKV(o,e[o])}return this.markRedraw(),this},r.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var t=this._normalState,n=0;n<this.animators.length;n++){var i=this.animators[n],a=i.__fromStateTransition;if(!(i.getLoop()||a&&a!==ag)){var o=i.targetName,s=o?t[o]:t;i.saveTo(s)}}},r.prototype._innerSaveToNormal=function(e){var t=this._normalState;t||(t=this._normalState={}),e.textConfig&&!t.textConfig&&(t.textConfig=this.textConfig),this._savePrimaryToNormal(e,t,og)},r.prototype._savePrimaryToNormal=function(e,t,n){for(var i=0;i<n.length;i++){var a=n[i];e[a]!=null&&!(a in t)&&(t[a]=this[a])}},r.prototype.hasState=function(){return this.currentStates.length>0},r.prototype.getState=function(e){return this.states[e]},r.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},r.prototype.clearStates=function(e){this.useState(ag,!1,e)},r.prototype.useState=function(e,t,n,i){var a=e===ag,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,l=this.stateTransition;if(!(de(s,e)>=0&&(t||s.length===1))){var u;if(this.stateProxy&&!a&&(u=this.stateProxy(e)),u||(u=this.states&&this.states[e]),!u&&!a){Rc("State "+e+" not exists.");return}a||this.saveCurrentToNormalState(u);var f=this._textContent,c=fT(this,f,u,i);c&&!this.__inHover&&(this.__inHover=c),this._applyStateObj(e,u,this._normalState,t,pT(this,n,l),l);var p=this._textGuide;return f&&f.useState(e,t,n,!!c),p&&p.useState(e,t,n,!!c),a?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this.__inHover=gp,this.__dirty&=~Bt),u}}},r.prototype.useStates=function(e,t,n){if(!e.length)this.clearStates();else{var i=[],a=this.currentStates,o=e.length,s=o===a.length;if(s){for(var l=0;l<o;l++)if(e[l]!==a[l]){s=!1;break}}if(s)return;for(var l=0;l<o;l++){var u=e[l],f=void 0;this.stateProxy&&(f=this.stateProxy(u,e)),f||(f=this.states[u]),f&&i.push(f)}var c=i[o-1],p=this._textContent,h=fT(this,p,c,n);h&&!this.__inHover&&(this.__inHover=h);var d=this._mergeStates(i),v=this.stateTransition;this.saveCurrentToNormalState(d),this._applyStateObj(e.join(","),d,this._normalState,!1,pT(this,t,v),v);var m=this._textGuide;p&&p.useStates(e,t,!!h),m&&m.useStates(e,t,!!h),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!h&&this.__inHover&&(this.__inHover=gp,this.__dirty&=~Bt)}},r.prototype.isSilent=function(){for(var e=this;e;){if(e.silent)return!0;var t=e.__hostTarget;e=t?e.ignoreHostSilent?null:t:e.parent}return!1},r.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var t=this.animators[e];t.targetName&&t.changeTarget(this[t.targetName])}},r.prototype.removeState=function(e){var t=de(this.currentStates,e);if(t>=0){var n=this.currentStates.slice();n.splice(t,1),this.useStates(n)}},r.prototype.replaceState=function(e,t,n){var i=this.currentStates.slice(),a=de(i,e),o=de(i,t)>=0;a>=0?o?i.splice(a,1):i[a]=t:n&&!o&&i.push(t),this.useStates(i)},r.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},r.prototype._mergeStates=function(e){for(var t={},n,i=0;i<e.length;i++){var a=e[i];k(t,a),a.textConfig&&(n=n||{},k(n,a.textConfig))}return n&&(t.textConfig=n),t},r.prototype._applyStateObj=function(e,t,n,i,a,o){if(this.__inHover!==$s){var s=!(t&&i);t&&t.textConfig?(this.textConfig=k({},i?this.textConfig:n.textConfig),k(this.textConfig,t.textConfig)):s&&n.textConfig&&(this.textConfig=n.textConfig);for(var l={},u=!1,f=0;f<og.length;f++){var c=og[f],p=a&&rz[c];t&&t[c]!=null?p?(u=!0,l[c]=t[c]):this[c]=t[c]:s&&n[c]!=null&&(p?(u=!0,l[c]=n[c]):this[c]=n[c])}if(!a)for(var f=0;f<this.animators.length;f++){var h=this.animators[f],d=h.targetName;h.getLoop()||h.__changeFinalValue(d?(t||n)[d]:t||n)}u&&this._transitionState(e,l,o)}},r.prototype._attachComponent=function(e){if(!(e.__zr&&!e.__hostTarget)&&e!==this){var t=this.__zr;t&&e.addSelfToZr(t),e.__zr=t,e.__hostTarget=this}},r.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},r.prototype.getClipPath=function(){return this._clipPath},r.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},r.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},r.prototype.getTextContent=function(){return this._textContent},r.prototype.setTextContent=function(e){var t=this._textContent;t!==e&&(t&&t!==e&&this.removeTextContent(),e.innerTransformable=new qi,this._attachComponent(e),this._textContent=e,this.markRedraw())},r.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),k(this.textConfig,e),this.markRedraw()},r.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},r.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},r.prototype.getTextGuideLine=function(){return this._textGuide},r.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},r.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},r.prototype.markRedraw=function(){this.__dirty|=Bt;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},r.prototype.dirty=function(){this.markRedraw()},r.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.addAnimator(t[n]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},r.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.removeAnimator(t[n]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},r.prototype.animate=function(e,t,n){var i=e?this[e]:this,a=new Eu(i,t,n);return e&&(a.targetName=e),this.addAnimator(a,e),a},r.prototype.addAnimator=function(e,t){var n=this.__zr,i=this;e.during(function(){i.updateDuringAnimation(t)}).done(function(){var a=i.animators,o=de(a,e);o>=0&&a.splice(o,1)}),this.animators.push(e),n&&n.animation.addAnimator(e),n&&n.wakeUp()},r.prototype.updateDuringAnimation=function(e){this.markRedraw()},r.prototype.stopAnimation=function(e,t){for(var n=this.animators,i=n.length,a=[],o=0;o<i;o++){var s=n[o];!e||e===s.scope?s.stop(t):a.push(s)}return this.animators=a,this},r.prototype.animateTo=function(e,t,n){sg(this,e,t,n)},r.prototype.animateFrom=function(e,t,n){sg(this,e,t,n,!0)},r.prototype._transitionState=function(e,t,n,i){for(var a=sg(this,t,n,i),o=0;o<a.length;o++)a[o].__fromStateTransition=e},r.prototype.getBoundingRect=function(){return null},r.prototype.getPaintRect=function(){return null},r.initDefaultProps=(function(){var e=r.prototype;e.type="element",e.name="",e.ignore=e.silent=e.ignoreHostSilent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=!1,e.__inHover=gp,e.__dirty=Bt;var t={};function n(a,o,s){t[a+o+s]||(console.warn("DEPRECATED: '"+a+"' has been deprecated. use '"+o+"', '"+s+"' instead"),t[a+o+s]=!0)}function i(a,o,s,l){Object.defineProperty(e,a,{get:function(){if(!this[o]){var f=this[o]=[];u(this,f)}return this[o]},set:function(f){this[s]=f[0],this[l]=f[1],this[o]=f,u(this,f)}});function u(f,c){Object.defineProperty(c,0,{get:function(){return f[s]},set:function(p){f[s]=p}}),Object.defineProperty(c,1,{get:function(){return f[l]},set:function(p){f[l]=p}})}}Object.defineProperty&&(i("position","_legacyPos","x","y"),i("scale","_legacyScale","scaleX","scaleY"),i("origin","_legacyOrigin","originX","originY"))})(),r})();Yt(ug,Kt);Yt(ug,qi);yp=ug});function fz(r,e,t){return fg.copy(r.getBoundingRect()),r.transform&&fg.applyTransform(r.transform),cg.width=e,cg.height=t,!fg.intersect(cg)}var pg,Ln,no,dT,lz,uz,fg,cg,Pn,io=T(()=>{"use strict";ee();xp();Tt();I();Hs();pg="__zr_style_"+Math.round(Math.random()*10),Ln={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},no={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Ln[pg]=!0;dT=["z","z2","invisible"],lz=["invisible"],uz=(function(r){R(e,r);function e(t){return r.call(this,t)||this}return e.prototype._init=function(t){for(var n=oe(t),i=0;i<n.length;i++){var a=n[i];a==="style"?this.useStyle(t[a]):r.prototype.attrKV.call(this,a,t[a])}this.style||this.useStyle({})},e.prototype.beforeBrush=function(t){},e.prototype.afterBrush=function(){},e.prototype.innerBeforeBrush=function(){},e.prototype.innerAfterBrush=function(){},e.prototype.shouldBePainted=function(t,n,i,a){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&fz(this,t,n)||o&&!o[0]&&!o[3])return!1;if(i&&this.__clipPaths&&this.__clipPaths.length){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(a&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},e.prototype.contain=function(t,n){return this.rectContain(t,n)},e.prototype.traverse=function(t,n){t.call(n,this)},e.prototype.rectContain=function(t,n){var i=this.transformCoordToLocal(t,n),a=this.getBoundingRect();return a.contain(i[0],i[1])},e.prototype.getPaintRect=function(){var t=this._paintRect;if(!this._paintRect||this.__dirty){var n=this.transform,i=this.getBoundingRect(),a=this.style,o=a.shadowBlur||0,s=a.shadowOffsetX||0,l=a.shadowOffsetY||0;t=this._paintRect||(this._paintRect=new se(0,0,0,0)),n?se.applyTransform(t,i,n):t.copy(i),(o||s||l)&&(t.width+=o*2+Math.abs(s),t.height+=o*2+Math.abs(l),t.x=Math.min(t.x,t.x+s-o),t.y=Math.min(t.y,t.y+l-o));var u=this.dirtyRectTolerance;t.isZero()||(t.x=Math.floor(t.x-u),t.y=Math.floor(t.y-u),t.width=Math.ceil(t.width+1+u*2),t.height=Math.ceil(t.height+1+u*2))}return t},e.prototype.setPrevPaintRect=function(t){t?(this._prevPaintRect=this._prevPaintRect||new se(0,0,0,0),this._prevPaintRect.copy(t)):this._prevPaintRect=null},e.prototype.getPrevPaintRect=function(){return this._prevPaintRect},e.prototype.animateStyle=function(t){return this.animate("style",t)},e.prototype.updateDuringAnimation=function(t){t==="style"?this.dirtyStyle():this.markRedraw()},e.prototype.attrKV=function(t,n){t!=="style"?r.prototype.attrKV.call(this,t,n):this.style?this.setStyle(n):this.useStyle(n)},e.prototype.setStyle=function(t,n){return typeof t=="string"?this.style[t]=n:k(this.style,t),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(t){t||this.markRedraw(),this.__dirty|=ro,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(this.__dirty&ro)},e.prototype.styleUpdated=function(){this.__dirty&=~ro},e.prototype.createStyle=function(t){return Ui(Ln,t)},e.prototype.useStyle=function(t){t[pg]||(t=this.createStyle(t)),this.style=t,this.dirtyStyle()},e.prototype._useHoverStyle=function(t){this.__hoverStyle=t},e.prototype.isStyleObject=function(t){return t[pg]},e.prototype._innerSaveToNormal=function(t){r.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(t,n,dT)},e.prototype._applyStateObj=function(t,n,i,a,o,s){r.prototype._applyStateObj.call(this,t,n,i,a,o,s);var l=!(n&&a),u=this.__inHover===$s,f;if(n&&n.style?o?a?f=n.style:(f=this._mergeStyle(this.createStyle(),i.style),this._mergeStyle(f,n.style)):(f=this._mergeStyle(this.createStyle(),a?this.style:i.style),this._mergeStyle(f,n.style)):l&&(f=i.style),f)if(o){var c=this.style;if(this.style=this.createStyle(l?{}:c),l)for(var p=oe(c),h=0;h<p.length;h++){var d=p[h];d in f&&(f[d]=f[d],this.style[d]=c[d])}for(var v=oe(f),h=0;h<v.length;h++){var d=v[h];this.style[d]=this.style[d]}this._transitionState(t,{style:f},s,this.getAnimationStyleProps())}else u?this._useHoverStyle(f):this.useStyle(f);if(!u)for(var m=this.__inHover?lz:dT,h=0;h<m.length;h++){var d=m[h];n&&n[d]!=null?this[d]=n[d]:l&&i[d]!=null&&(this[d]=i[d])}},e.prototype._mergeStates=function(t){for(var n=r.prototype._mergeStates.call(this,t),i,a=0;a<t.length;a++){var o=t[a];o.style&&(i=i||{},this._mergeStyle(i,o.style))}return i&&(n.style=i),n},e.prototype._mergeStyle=function(t,n){return k(t,n),t},e.prototype.getAnimationStyleProps=function(){return no},e.initDefaultProps=(function(){var t=e.prototype;t.type="displayable",t.invisible=!1,t.z=0,t.z2=0,t.zlevel=0,t.culling=!1,t.cursor="pointer",t.rectHover=!1,t.incremental=0,t._rect=null,t.dirtyRectTolerance=0,t.__dirty=Bt|ro})(),e})(yp),fg=new se(0,0,0,0),cg=new se(0,0,0,0);Pn=uz});function vg(r,e,t,n,i,a){i[0]=zr(r,t),i[1]=zr(e,n),a[0]=Br(r,t),a[1]=Br(e,n)}function gT(r,e,t,n,i,a,o,s,l,u){var f=Zc,c=Xe,p=f(r,t,i,o,vT);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var h=0;h<p;h++){var d=c(r,t,i,o,vT[h]);l[0]=zr(d,l[0]),u[0]=Br(d,u[0])}p=f(e,n,a,s,mT);for(var h=0;h<p;h++){var v=c(e,n,a,s,mT[h]);l[1]=zr(v,l[1]),u[1]=Br(v,u[1])}l[0]=zr(r,l[0]),u[0]=Br(r,u[0]),l[0]=zr(o,l[0]),u[0]=Br(o,u[0]),l[1]=zr(e,l[1]),u[1]=Br(e,u[1]),l[1]=zr(s,l[1]),u[1]=Br(s,u[1])}function yT(r,e,t,n,i,a,o,s){var l=Jc,u=yt,f=Br(zr(l(r,t,i),1),0),c=Br(zr(l(e,n,a),1),0),p=u(r,t,i,f),h=u(e,n,a,c);o[0]=zr(r,i,p),o[1]=zr(e,a,h),s[0]=Br(r,i,p),s[1]=Br(e,a,h)}function xT(r,e,t,n,i,a,o,s,l){var u=ii,f=ai,c=Math.abs(i-a);if(c%ao<1e-4&&c>1e-4){s[0]=r-t,s[1]=e-n,l[0]=r+t,l[1]=e+n;return}if(_p[0]=dg(i)*t+r,_p[1]=hg(i)*n+e,bp[0]=dg(a)*t+r,bp[1]=hg(a)*n+e,u(s,_p,bp),f(l,_p,bp),i=i%ao,i<0&&(i=i+ao),a=a%ao,a<0&&(a=a+ao),i>a&&!o?a+=ao:i<a&&o&&(i+=ao),o){var p=a;a=i,i=p}for(var h=0;h<a;h+=Math.PI/2)h>i&&(Sp[0]=dg(h)*t+r,Sp[1]=hg(h)*n+e,u(s,Sp,s),f(l,Sp,l))}var zr,Br,hg,dg,ao,_p,bp,Sp,vT,mT,_T=T(()=>{"use strict";cr();Mn();zr=Math.min,Br=Math.max,hg=Math.sin,dg=Math.cos,ao=Math.PI*2,_p=Gi(),bp=Gi(),Sp=Gi();vT=[],mT=[]});function xg(r){var e=Math.round(r/_g*1e8)/1e8;return e%2*_g}function bg(r,e){var t=xg(r[0]);t<0&&(t+=ea);var n=t-r[0],i=r[1];i+=n,!e&&i-t>=ea?i=t+ea:e&&t-i>=ea?i=t-ea:!e&&t>i?i=t+(ea-xg(t-i)):e&&t<i&&(i=t-(ea-xg(i-t))),r[0]=t,r[1]=i}var ke,oo,so,On,Qi,In,Rn,mg,gg,lo,uo,ui,_g,ea,yg,Lu,cz,Lt,Nn=T(()=>{"use strict";cr();Tt();Du();_T();Mn();ke={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},oo=[],so=[],On=[],Qi=[],In=[],Rn=[],mg=Math.min,gg=Math.max,lo=Math.cos,uo=Math.sin,ui=Math.abs,_g=Math.PI,ea=_g*2,yg=typeof Float32Array<"u",Lu=[];cz=(function(){function r(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 r.prototype.increaseVersion=function(){this._version++},r.prototype.getVersion=function(){return this._version},r.prototype.setScale=function(e,t,n){n=n||0,n>0&&(this._ux=ui(n/ig/e)||0,this._uy=ui(n/ig/t)||0)},r.prototype.setDPR=function(e){this.dpr=e},r.prototype.setContext=function(e){this._ctx=e},r.prototype.getContext=function(){return this._ctx},r.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},r.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},r.prototype.moveTo=function(e,t){return this._drawPendingPt(),this.addData(ke.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},r.prototype.lineTo=function(e,t){var n=ui(e-this._xi),i=ui(t-this._yi),a=n>this._ux||i>this._uy;if(this.addData(ke.L,e,t),this._ctx&&a&&this._ctx.lineTo(e,t),a)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=o)}return this},r.prototype.bezierCurveTo=function(e,t,n,i,a,o){return this._drawPendingPt(),this.addData(ke.C,e,t,n,i,a,o),this._ctx&&this._ctx.bezierCurveTo(e,t,n,i,a,o),this._xi=a,this._yi=o,this},r.prototype.quadraticCurveTo=function(e,t,n,i){return this._drawPendingPt(),this.addData(ke.Q,e,t,n,i),this._ctx&&this._ctx.quadraticCurveTo(e,t,n,i),this._xi=n,this._yi=i,this},r.prototype.arc=function(e,t,n,i,a,o){this._drawPendingPt(),Lu[0]=i,Lu[1]=a,bg(Lu,o),i=Lu[0],a=Lu[1];var s=a-i;return this.addData(ke.A,e,t,n,n,i,s,0,o?0:1),this._ctx&&this._ctx.arc(e,t,n,i,a,o),this._xi=lo(a)*n+e,this._yi=uo(a)*n+t,this},r.prototype.arcTo=function(e,t,n,i,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,n,i,a),this},r.prototype.rect=function(e,t,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,n,i),this.addData(ke.R,e,t,n,i),this},r.prototype.closePath=function(){this._drawPendingPt(),this.addData(ke.Z);var e=this._ctx,t=this._x0,n=this._y0;return e&&e.closePath(),this._xi=t,this._yi=n,this},r.prototype.fill=function(e){e&&e.fill(),this.toStatic()},r.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},r.prototype.len=function(){return this._len},r.prototype.setData=function(e){if(this._saveData){var t=e.length;!(this.data&&this.data.length===t)&&yg&&(this.data=new Float32Array(t));for(var n=0;n<t;n++)this.data[n]=e[n];this._len=t}},r.prototype.appendPath=function(e){if(this._saveData){e instanceof Array||(e=[e]);for(var t=e.length,n=0,i=this._len,a=0;a<t;a++)n+=e[a].len();var o=this.data;if(yg&&(o instanceof Float32Array||!o)&&(this.data=new Float32Array(i+n),i>0&&o))for(var s=0;s<i;s++)this.data[s]=o[s];for(var a=0;a<t;a++)for(var l=e[a].data,s=0;s<l.length;s++)this.data[i++]=l[s];this._len=i}},r.prototype.addData=function(e,t,n,i,a,o,s,l,u){if(this._saveData){var f=this.data;this._len+arguments.length>f.length&&(this._expandData(),f=this.data);for(var c=0;c<arguments.length;c++)f[this._len++]=arguments[c]}},r.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},r.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t<this._len;t++)e[t]=this.data[t];this.data=e}},r.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,yg&&this._len>11&&(this.data=new Float32Array(e)))}},r.prototype.getBoundingRect=function(){On[0]=On[1]=In[0]=In[1]=Number.MAX_VALUE,Qi[0]=Qi[1]=Rn[0]=Rn[1]=-Number.MAX_VALUE;var e=this.data,t=0,n=0,i=0,a=0,o;for(o=0;o<this._len;){var s=e[o++],l=o===1;switch(l&&(t=e[o],n=e[o+1],i=t,a=n),s){case ke.M:t=i=e[o++],n=a=e[o++],In[0]=i,In[1]=a,Rn[0]=i,Rn[1]=a;break;case ke.L:vg(t,n,e[o],e[o+1],In,Rn),t=e[o++],n=e[o++];break;case ke.C:gT(t,n,e[o++],e[o++],e[o++],e[o++],e[o],e[o+1],In,Rn),t=e[o++],n=e[o++];break;case ke.Q:yT(t,n,e[o++],e[o++],e[o],e[o+1],In,Rn),t=e[o++],n=e[o++];break;case ke.A:var u=e[o++],f=e[o++],c=e[o++],p=e[o++],h=e[o++],d=e[o++]+h;o+=1;var v=!e[o++];l&&(i=lo(h)*c+u,a=uo(h)*p+f),xT(u,f,c,p,h,d,v,In,Rn),t=lo(d)*c+u,n=uo(d)*p+f;break;case ke.R:i=t=e[o++],a=n=e[o++];var m=e[o++],g=e[o++];vg(i,a,i+m,a+g,In,Rn);break;case ke.Z:t=i,n=a;break}ii(On,On,In),ai(Qi,Qi,Rn)}return o===0&&(On[0]=On[1]=Qi[0]=Qi[1]=0),new se(On[0],On[1],Qi[0]-On[0],Qi[1]-On[1])},r.prototype._calculateLength=function(){var e=this.data,t=this._len,n=this._ux,i=this._uy,a=0,o=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,f=0,c=0,p=0;p<t;){var h=e[p++],d=p===1;d&&(a=e[p],o=e[p+1],s=a,l=o);var v=-1;switch(h){case ke.M:a=s=e[p++],o=l=e[p++];break;case ke.L:{var m=e[p++],g=e[p++],y=m-a,x=g-o;(ui(y)>n||ui(x)>i||p===t-1)&&(v=Math.sqrt(y*y+x*x),a=m,o=g);break}case ke.C:{var _=e[p++],b=e[p++],m=e[p++],g=e[p++],S=e[p++],w=e[p++];v=Vw(a,o,_,b,m,g,S,w,10),a=S,o=w;break}case ke.Q:{var _=e[p++],b=e[p++],m=e[p++],g=e[p++];v=Gw(a,o,_,b,m,g,10),a=m,o=g;break}case ke.A:var C=e[p++],M=e[p++],E=e[p++],D=e[p++],P=e[p++],L=e[p++],O=L+P;p+=1,d&&(s=lo(P)*E+C,l=uo(P)*D+M),v=gg(E,D)*mg(ea,Math.abs(L)),a=lo(O)*E+C,o=uo(O)*D+M;break;case ke.R:{s=a=e[p++],l=o=e[p++];var z=e[p++],N=e[p++];v=z*2+N*2;break}case ke.Z:{var y=s-a,x=l-o;v=Math.sqrt(y*y+x*x),a=s,o=l;break}}v>=0&&(u[c++]=v,f+=v)}return this._pathLen=f,f},r.prototype.rebuildPath=function(e,t){var n=this.data,i=this._ux,a=this._uy,o=this._len,s,l,u,f,c,p,h=t<1,d,v,m=0,g=0,y,x=0,_,b;if(!(h&&(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,v=this._pathLen,y=t*v,!y)))e:for(var S=0;S<o;){var w=n[S++],C=S===1;switch(C&&(u=n[S],f=n[S+1],s=u,l=f),w!==ke.L&&x>0&&(e.lineTo(_,b),x=0),w){case ke.M:s=u=n[S++],l=f=n[S++],e.moveTo(u,f);break;case ke.L:{c=n[S++],p=n[S++];var M=ui(c-u),E=ui(p-f);if(M>i||E>a){if(h){var D=d[g++];if(m+D>y){var P=(y-m)/D;e.lineTo(u*(1-P)+c*P,f*(1-P)+p*P);break e}m+=D}e.lineTo(c,p),u=c,f=p,x=0}else{var L=M*M+E*E;L>x&&(_=c,b=p,x=L)}break}case ke.C:{var O=n[S++],z=n[S++],N=n[S++],V=n[S++],B=n[S++],H=n[S++];if(h){var D=d[g++];if(m+D>y){var P=(y-m)/D;zs(u,O,N,B,P,oo),zs(f,z,V,H,P,so),e.bezierCurveTo(oo[1],so[1],oo[2],so[2],oo[3],so[3]);break e}m+=D}e.bezierCurveTo(O,z,N,V,B,H),u=B,f=H;break}case ke.Q:{var O=n[S++],z=n[S++],N=n[S++],V=n[S++];if(h){var D=d[g++];if(m+D>y){var P=(y-m)/D;Bs(u,O,N,P,oo),Bs(f,z,V,P,so),e.quadraticCurveTo(oo[1],so[1],oo[2],so[2]);break e}m+=D}e.quadraticCurveTo(O,z,N,V),u=N,f=V;break}case ke.A:var W=n[S++],K=n[S++],J=n[S++],re=n[S++],Z=n[S++],ve=n[S++],_e=n[S++],et=!n[S++],Ze=J>re?J:re,Ce=ui(J-re)>.001,Ge=Z+ve,pe=!1;if(h){var D=d[g++];m+D>y&&(Ge=Z+ve*(y-m)/D,pe=!0),m+=D}if(Ce&&e.ellipse?e.ellipse(W,K,J,re,_e,Z,Ge,et):e.arc(W,K,Ze,Z,Ge,et),pe)break e;C&&(s=lo(Z)*J+W,l=uo(Z)*re+K),u=lo(Ge)*J+W,f=uo(Ge)*re+K;break;case ke.R:s=u=n[S],l=f=n[S+1],c=n[S++],p=n[S++];var be=n[S++],ar=n[S++];if(h){var D=d[g++];if(m+D>y){var tt=y-m;e.moveTo(c,p),e.lineTo(c+mg(tt,be),p),tt-=be,tt>0&&e.lineTo(c+be,p+mg(tt,ar)),tt-=ar,tt>0&&e.lineTo(c+gg(be-tt,0),p+ar),tt-=be,tt>0&&e.lineTo(c,p+gg(ar-tt,0));break e}m+=D}e.rect(c,p,be,ar);break;case ke.Z:if(h){var D=d[g++];if(m+D>y){var P=(y-m)/D;e.lineTo(u*(1-P)+s*P,f*(1-P)+l*P);break e}m+=D}e.closePath(),u=s,f=l}}},r.prototype.clone=function(){var e=new r,t=this.data;return e.data=t.slice?t.slice():Array.prototype.slice.call(t),e._len=this._len,e},r.prototype.canSave=function(){return!!this._saveData},r.CMD=ke,r.initDefaultProps=(function(){var e=r.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0})(),r})(),Lt=cz});function fo(r,e,t,n,i,a,o){if(i===0)return!1;var s=i,l=0,u=r;if(o>e+s&&o>n+s||o<e-s&&o<n-s||a>r+s&&a>t+s||a<r-s&&a<t-s)return!1;if(r!==t)l=(e-n)/(r-t),u=(r*n-t*e)/(r-t);else return Math.abs(a-r)<=s/2;var f=l*a-o+u,c=f*f/(l*l+1);return c<=s/2*s/2}var bT=T(()=>{"use strict"});function ST(r,e,t,n,i,a,o,s,l,u,f){if(l===0)return!1;var c=l;if(f>e+c&&f>n+c&&f>a+c&&f>s+c||f<e-c&&f<n-c&&f<a-c&&f<s-c||u>r+c&&u>t+c&&u>i+c&&u>o+c||u<r-c&&u<t-c&&u<i-c&&u<o-c)return!1;var p=jc(r,e,t,n,i,a,o,s,u,f,null);return p<=c/2}var wT=T(()=>{"use strict";Mn()});function TT(r,e,t,n,i,a,o,s,l){if(o===0)return!1;var u=o;if(l>e+u&&l>n+u&&l>a+u||l<e-u&&l<n-u&&l<a-u||s>r+u&&s>t+u&&s>i+u||s<r-u&&s<t-u&&s<i-u)return!1;var f=Qc(r,e,t,n,i,a,s,l,null);return f<=u/2}var ET=T(()=>{"use strict";Mn()});function Ur(r){return r%=AT,r<0&&(r+=AT),r}var AT,wp=T(()=>{"use strict";AT=Math.PI*2});function CT(r,e,t,n,i,a,o,s,l){if(o===0)return!1;var u=o;s-=r,l-=e;var f=Math.sqrt(s*s+l*l);if(f-u>t||f+u<t)return!1;if(Math.abs(n-i)%Pu<1e-4)return!0;if(a){var c=n;n=Ur(i),i=Ur(c)}else n=Ur(n),i=Ur(i);n>i&&(i+=Pu);var p=Math.atan2(l,s);return p<0&&(p+=Pu),p>=n&&p<=i||p+Pu>=n&&p+Pu<=i}var Pu,MT=T(()=>{"use strict";wp();Pu=Math.PI*2});function fi(r,e,t,n,i,a){if(a>e&&a>n||a<e&&a<n||n===e)return 0;var o=(a-e)/(n-e),s=n<e?1:-1;(o===1||o===0)&&(s=n<e?.5:-.5);var l=o*(t-r)+r;return l===i?1/0:l>i?s:0}var DT=T(()=>{"use strict"});function gz(r,e){return Math.abs(r-e)<mz}function yz(){var r=Fr[0];Fr[0]=Fr[1],Fr[1]=r}function xz(r,e,t,n,i,a,o,s,l,u){if(u>e&&u>n&&u>a&&u>s||u<e&&u<n&&u<a&&u<s)return 0;var f=ja(e,n,a,s,u,Zt);if(f===0)return 0;for(var c=0,p=-1,h=void 0,d=void 0,v=0;v<f;v++){var m=Zt[v],g=m===0||m===1?.5:1,y=Xe(r,t,i,o,m);y<l||(p<0&&(p=Zc(e,n,a,s,Fr),Fr[1]<Fr[0]&&p>1&&yz(),h=Xe(e,n,a,s,Fr[0]),p>1&&(d=Xe(e,n,a,s,Fr[1]))),p===2?m<Fr[0]?c+=h<e?g:-g:m<Fr[1]?c+=d<h?g:-g:c+=s<d?g:-g:m<Fr[0]?c+=h<e?g:-g:c+=s<h?g:-g)}return c}function _z(r,e,t,n,i,a,o,s){if(s>e&&s>n&&s>a||s<e&&s<n&&s<a)return 0;var l=Hw(e,n,a,s,Zt);if(l===0)return 0;var u=Jc(e,n,a);if(u>=0&&u<=1){for(var f=0,c=yt(e,n,a,u),p=0;p<l;p++){var h=Zt[p]===0||Zt[p]===1?.5:1,d=yt(r,t,i,Zt[p]);d<o||(Zt[p]<u?f+=c<e?h:-h:f+=a<c?h:-h)}return f}else{var h=Zt[0]===0||Zt[0]===1?.5:1,d=yt(r,t,i,Zt[0]);return d<o?0:a<e?h:-h}}function bz(r,e,t,n,i,a,o,s){if(s-=e,s>t||s<-t)return 0;var l=Math.sqrt(t*t-s*s);Zt[0]=-l,Zt[1]=l;var u=Math.abs(n-i);if(u<1e-4)return 0;if(u>=co-1e-4){n=0,i=co;var f=a?1:-1;return o>=Zt[0]+r&&o<=Zt[1]+r?f:0}if(n>i){var c=n;n=i,i=c}n<0&&(n+=co,i+=co);for(var p=0,h=0;h<2;h++){var d=Zt[h];if(d+r>o){var v=Math.atan2(s,d),f=a?1:-1;v<0&&(v=co+v),(v>=n&&v<=i||v+co>=n&&v+co<=i)&&(v>Math.PI/2&&v<Math.PI*1.5&&(f=-f),p+=f)}}return p}function LT(r,e,t,n,i){for(var a=r.data,o=r.len(),s=0,l=0,u=0,f=0,c=0,p,h,d=0;d<o;){var v=a[d++],m=d===1;switch(v===ta.M&&d>1&&(t||(s+=fi(l,u,f,c,n,i))),m&&(l=a[d],u=a[d+1],f=l,c=u),v){case ta.M:f=a[d++],c=a[d++],l=f,u=c;break;case ta.L:if(t){if(fo(l,u,a[d],a[d+1],e,n,i))return!0}else s+=fi(l,u,a[d],a[d+1],n,i)||0;l=a[d++],u=a[d++];break;case ta.C:if(t){if(ST(l,u,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],e,n,i))return!0}else s+=xz(l,u,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],n,i)||0;l=a[d++],u=a[d++];break;case ta.Q:if(t){if(TT(l,u,a[d++],a[d++],a[d],a[d+1],e,n,i))return!0}else s+=_z(l,u,a[d++],a[d++],a[d],a[d+1],n,i)||0;l=a[d++],u=a[d++];break;case ta.A:var g=a[d++],y=a[d++],x=a[d++],_=a[d++],b=a[d++],S=a[d++];d+=1;var w=!!(1-a[d++]);p=Math.cos(b)*x+g,h=Math.sin(b)*_+y,m?(f=p,c=h):s+=fi(l,u,p,h,n,i);var C=(n-g)*_/x+g;if(t){if(CT(g,y,_,b,b+S,w,e,C,i))return!0}else s+=bz(g,y,_,b,b+S,w,C,i);l=Math.cos(b+S)*x+g,u=Math.sin(b+S)*_+y;break;case ta.R:f=l=a[d++],c=u=a[d++];var M=a[d++],E=a[d++];if(p=f+M,h=c+E,t){if(fo(f,c,p,c,e,n,i)||fo(p,c,p,h,e,n,i)||fo(p,h,f,h,e,n,i)||fo(f,h,f,c,e,n,i))return!0}else s+=fi(p,c,p,h,n,i),s+=fi(f,h,f,c,n,i);break;case ta.Z:if(t){if(fo(l,u,f,c,e,n,i))return!0}else s+=fi(l,u,f,c,n,i);l=f,u=c;break}}return!t&&!gz(u,c)&&(s+=fi(l,u,f,c,n,i)||0),s!==0}function PT(r,e,t){return LT(r,0,!1,e,t)}function OT(r,e,t,n){return LT(r,e,!0,t,n)}var ta,co,mz,Zt,Fr,IT=T(()=>{"use strict";Nn();bT();wT();ET();MT();Mn();DT();ta=Lt.CMD,co=Math.PI*2,mz=1e-4;Zt=[-1,-1,-1],Fr=[-1,-1]});var Ws,wz,Sg,Tz,le,ct=T(()=>{"use strict";ee();io();xp();Nn();IT();I();kr();Du();Hs();Za();Ws=fe({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Ln),wz={style:fe({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},no.style)},Sg=Ns.concat(["invisible","culling","z","z2","zlevel","parent"]),Tz=(function(r){R(e,r);function e(t){return r.call(this,t)||this}return e.prototype.update=function(){var t=this;r.prototype.update.call(this);var n=this.style;if(n.decal){var i=this._decalEl=this._decalEl||new e;i.buildPath===e.prototype.buildPath&&(i.buildPath=function(l){t.buildPath(l,t.shape)}),i.silent=!0;var a=i.style;for(var o in n)a[o]!==n[o]&&(a[o]=n[o]);a.fill=n.fill?n.decal:null,a.decal=null,a.shadowColor=null,n.strokeFirst&&(a.stroke=null);for(var s=0;s<Sg.length;++s)i[Sg[s]]=this[Sg[s]];i.__dirty|=Bt}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(t){var n=oe(t);this.shape=this.getDefaultShape();var i=this.getDefaultStyle();i&&this.useStyle(i);for(var a=0;a<n.length;a++){var o=n[a],s=t[o];o==="style"?this.style?k(this.style,s):this.useStyle(s):o==="shape"?k(this.shape,s):r.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 t=this.style.fill;if(t!=="none"){if(G(t)){var n=Vs(t,0);return n>.5?Cu:n>.2?uT:Mu}else if(t)return Mu}return Cu},e.prototype.getInsideTextStroke=function(t){var n=this.style.fill;if(G(n)){var i=this.__zr,a=!!(i&&i.isDarkMode()),o=Vs(t,0)<Au;if(a===o)return n}},e.prototype.buildPath=function(t,n,i){},e.prototype.pathUpdated=function(){this.__dirty&=~Ji},e.prototype.getUpdatedPathProxy=function(t){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,t),this.path},e.prototype.createPathProxy=function(){this.path=new Lt(!1)},e.prototype.hasStroke=function(){var t=this.style,n=t.stroke;return!(n==null||n==="none"||!(t.lineWidth>0))},e.prototype.hasFill=function(){var t=this.style,n=t.fill;return n!=null&&n!=="none"},e.prototype.getBoundingRect=function(){var t=this._rect,n=this.style,i=!t;if(i){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&Ji)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),t=o.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||i){s.copy(t);var l=n.strokeNoScale?this.getLineScale():1,u=n.lineWidth;if(!this.hasFill()){var f=this.strokeContainThreshold;u=Math.max(u,f??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 t},e.prototype.contain=function(t,n){var i=this.transformCoordToLocal(t,n),a=this.getBoundingRect(),o=this.style;if(t=i[0],n=i[1],a.contain(t,n)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),OT(s,l/u,t,n)))return!0}if(this.hasFill())return PT(s,t,n)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=Ji,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(t){return this.animate("shape",t)},e.prototype.updateDuringAnimation=function(t){t==="style"?this.dirtyStyle():t==="shape"?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(t,n){t==="shape"?this.setShape(n):r.prototype.attrKV.call(this,t,n)},e.prototype.setShape=function(t,n){var i=this.shape;return i||(i=this.shape={}),typeof t=="string"?i[t]=n:k(i,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&Ji)},e.prototype.createStyle=function(t){return Ui(Ws,t)},e.prototype._innerSaveToNormal=function(t){r.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.shape&&!n.shape&&(n.shape=k({},this.shape))},e.prototype._applyStateObj=function(t,n,i,a,o,s){if(r.prototype._applyStateObj.call(this,t,n,i,a,o,s),this.__inHover!==$s){var l=!(n&&a),u;if(n&&n.shape?o?a?u=n.shape:(u=k({},i.shape),k(u,n.shape)):(u=k({},a?this.shape:i.shape),k(u,n.shape)):l&&(u=i.shape),u)if(o){this.shape=k({},this.shape);for(var f={},c=oe(u),p=0;p<c.length;p++){var h=c[p];typeof u[h]=="object"?this.shape[h]=u[h]:f[h]=u[h]}this._transitionState(t,{shape:f},s)}else this.shape=u,this.dirtyShape()}},e.prototype._mergeStates=function(t){for(var n=r.prototype._mergeStates.call(this,t),i,a=0;a<t.length;a++){var o=t[a];o.shape&&(i=i||{},this._mergeStyle(i,o.shape))}return i&&(n.shape=i),n},e.prototype.getAnimationStyleProps=function(){return wz},e.prototype.isZeroArea=function(){return!1},e.extend=function(t){var n=(function(a){R(o,a);function o(s){var l=a.call(this,s)||this;return t.init&&t.init.call(l,s),l}return o.prototype.getDefaultStyle=function(){return ue(t.style)},o.prototype.getDefaultShape=function(){return ue(t.shape)},o})(e);for(var i in t)typeof t[i]=="function"&&(n.prototype[i]=t[i]);return n},e.initDefaultProps=(function(){var t=e.prototype;t.type="path",t.strokeContainThreshold=5,t.segmentIgnoreThreshold=0,t.subPixelOptimize=!1,t.autoBatch=!1,t.__dirty=Bt|ro|Ji})(),e})(Pn),le=Tz});var Ez,RT,po,Tp=T(()=>{"use strict";ee();io();ct();I();wn();Fm();Ez=fe({strokeFirst:!0,font:lr,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},Ws),RT=(function(r){R(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.hasStroke=function(){return Um(this.style)},e.prototype.hasFill=function(){var t=this.style,n=t.fill;return n!=null&&n!=="none"},e.prototype.createStyle=function(t){return Ui(Ez,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){return this._rect||(this._rect=Rw(this.style)),this._rect},e.initDefaultProps=(function(){var t=e.prototype;t.dirtyRectTolerance=10})(),e})(Pn);RT.prototype.type="tspan";po=RT});function Mz(r){return!!(r&&typeof r!="string"&&r.width&&r.height)}var Az,Cz,NT,Ut,ho=T(()=>{"use strict";ee();io();Tt();I();Az=fe({x:0,y:0},Ln),Cz={style:fe({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},no.style)};NT=(function(r){R(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.createStyle=function(t){return Ui(Az,t)},e.prototype._getSize=function(t){var n=this.style,i=n[t];if(i!=null)return i;var a=Mz(n.image)?n.image:this.__image;if(!a)return 0;var o=t==="width"?"height":"width",s=n[o];return s==null?a[t]:a[t]/a[o]*s},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return Cz},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new se(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e})(Pn);NT.prototype.type="image";Ut=NT});function kT(r,e){var t=e.x,n=e.y,i=e.width,a=e.height,o=e.r,s,l,u,f;i<0&&(t=t+i,i=-i),a<0&&(n=n+a,a=-a),typeof o=="number"?s=l=u=f=o:o instanceof Array?o.length===1?s=l=u=f=o[0]:o.length===2?(s=u=o[0],l=f=o[1]):o.length===3?(s=o[0],l=f=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],f=o[3]):s=l=u=f=0;var c;s+l>i&&(c=s+l,s*=i/c,l*=i/c),u+f>i&&(c=u+f,u*=i/c,f*=i/c),l+u>a&&(c=l+u,l*=a/c,u*=a/c),s+f>a&&(c=s+f,s*=a/c,f*=a/c),r.moveTo(t+s,n),r.lineTo(t+i-l,n),l!==0&&r.arc(t+i-l,n+l,l,-Math.PI/2,0),r.lineTo(t+i,n+a-u),u!==0&&r.arc(t+i-u,n+a-u,u,0,Math.PI/2),r.lineTo(t+f,n+a),f!==0&&r.arc(t+f,n+a-f,f,Math.PI/2,Math.PI),r.lineTo(t,n+s),s!==0&&r.arc(t+s,n+s,s,Math.PI,Math.PI*1.5),r.closePath()}var zT=T(()=>{"use strict"});function Ep(r,e,t){if(e){var n=e.x1,i=e.x2,a=e.y1,o=e.y2;r.x1=n,r.x2=i,r.y1=a,r.y2=o;var s=t&&t.lineWidth;return s&&(Ys(n*2)===Ys(i*2)&&(r.x1=r.x2=ra(n,s,!0)),Ys(a*2)===Ys(o*2)&&(r.y1=r.y2=ra(a,s,!0))),r}}function Ap(r,e,t){if(e){var n=e.x,i=e.y,a=e.width,o=e.height;r.x=n,r.y=i,r.width=a,r.height=o;var s=t&&t.lineWidth;return s&&(r.x=ra(n,s,!0),r.y=ra(i,s,!0),r.width=Math.max(ra(n+a,s,!1)-r.x,a===0?0:1),r.height=Math.max(ra(i+o,s,!1)-r.y,o===0?0:1)),r}}function ra(r,e,t){if(!e)return r;var n=Ys(r*2);return(n+Ys(e))%2===0?n/2:(n+(t?1:-1))/2}var Ys,Cp=T(()=>{"use strict";Ys=Math.round});var Pz,Oz,BT,Oe,wg=T(()=>{"use strict";ee();ct();zT();Cp();Pz=(function(){function r(){this.x=0,this.y=0,this.width=0,this.height=0}return r})(),Oz={},BT=(function(r){R(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new Pz},e.prototype.buildPath=function(t,n){var i,a,o,s;if(this.subPixelOptimize){var l=Ap(Oz,n,this.style);i=l.x,a=l.y,o=l.width,s=l.height,l.r=n.r,n=l}else i=n.x,a=n.y,o=n.width,s=n.height;n.r?kT(t,n):t.rect(i,a,o,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e})(le);BT.prototype.type="rect";Oe=BT});function Eg(r){return typeof r=="string"&&(r.indexOf("px")!==-1||r.indexOf("rem")!==-1||r.indexOf("em")!==-1)?r:isNaN(+r)?Lc+"px":r+"px"}function HT(r,e){for(var t=0;t<VT.length;t++){var n=VT[t],i=e[n];i!=null&&(r[n]=i)}}function Ag(r){return r.fontSize!=null||r.fontFamily||r.fontWeight}function kz(r){return GT(r),A(r.rich,GT),r}function GT(r){if(r){r.font=XT.makeFont(r);var e=r.align;e==="middle"&&(e="center"),r.align=e==null||Rz[e]?e:"left";var t=r.verticalAlign;t==="center"&&(t="middle"),r.verticalAlign=t==null||Nz[t]?t:"top";var n=r.padding;n&&(r.padding=Ms(r.padding))}}function $T(r,e){return r==null||e<=0||r==="transparent"||r==="none"?null:r.image||r.colorStops?"#000":r}function WT(r){return r==null||r==="none"?null:r.image||r.colorStops?"#000":r}function YT(r,e,t){return e==="right"?r-t[1]:e==="center"?r+t[3]/2-t[1]/2:r+t[3]}function qT(r){var e=r.text;return e!=null&&(e+=""),e}function Tg(r){return!!(r.backgroundColor||r.lineHeight||r.borderWidth&&r.borderColor)}var UT,FT,kn,Iz,XT,Rz,Nz,VT,$e,Ou=T(()=>{"use strict";ee();Fm();Tp();I();en();ho();wg();Tt();io();wn();UT={fill:"#000"},FT=2,kn={},Iz={style:fe({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},no.style)},XT=(function(r){R(e,r);function e(t){var n=r.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=UT,n.attr(t),n}return e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){r.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t<this._children.length;t++){var n=this._children[t];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},e.prototype.updateTransform=function(){var t=this.innerTransformable;t?(t.updateTransform(),t.transform&&(this.transform=t.transform)):r.prototype.updateTransform.call(this)},e.prototype.getLocalTransform=function(t){var n=this.innerTransformable;return n?n.getLocalTransform(t):r.prototype.getLocalTransform.call(this,t)},e.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),r.prototype.getComputedTransform.call(this)},e.prototype._updateSubTexts=function(){this._childCursor=0,kz(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},e.prototype.addSelfToZr=function(t){r.prototype.addSelfToZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].__zr=t},e.prototype.removeSelfFromZr=function(t){r.prototype.removeSelfFromZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},e.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var t=new se(0,0,0,0),n=this._children,i=[],a=null,o=0;o<n.length;o++){var s=n[o],l=s.getBoundingRect(),u=s.getLocalTransform(i);u?(t.copy(l),t.applyTransform(u),a=a||t.clone(),a.union(t)):(a=a||l.clone(),a.union(l))}this._rect=a||t}return this._rect},e.prototype.setDefaultTextStyle=function(t){this._defaultStyle=t||UT},e.prototype.setTextContent=function(t){},e.prototype._mergeStyle=function(t,n){if(!n)return t;var i=n.rich,a=t.rich||i&&{};return k(t,n),i&&a?(this._mergeRich(a,i),t.rich=a):a&&(t.rich=a),t},e.prototype._mergeRich=function(t,n){for(var i=oe(n),a=0;a<i.length;a++){var o=i[a];t[o]=t[o]||{},k(t[o],n[o])}},e.prototype.getAnimationStyleProps=function(){return Iz},e.prototype._getOrCreateChild=function(t){var n=this._children[this._childCursor];return(!n||!(n instanceof t))&&(n=new t),this._children[this._childCursor++]=n,n.__zr=this.__zr,n.parent=this,n},e.prototype._updatePlainTexts=function(){var t=this.style,n=t.font||lr,i=t.padding,a=this._defaultStyle,o=t.x||0,s=t.y||0,l=t.align||a.align||"left",u=t.verticalAlign||a.verticalAlign||"top";zm(kn,a.overflowRect,o,s,l,u),o=kn.baseX,s=kn.baseY;var f=qT(t),c=Pw(f,t,kn.outerWidth,kn.outerHeight),p=Tg(t),h=!!t.backgroundColor,d=c.outerHeight,v=c.outerWidth,m=c.lines,g=c.lineHeight;this.isTruncated=!!c.isTruncated;var y=o,x=si(s,c.contentHeight,u);if(p||i){var _=Wi(o,v,l),b=si(s,d,u);p&&this._renderBackground(t,t,_,b,v,d)}x+=g/2,i&&(y=YT(o,l,i),u==="top"?x+=i[0]:u==="bottom"&&(x-=i[2]));for(var S=0,w=!1,C=!1,M=WT("fill"in t?t.fill:(C=!0,a.fill)),E=$T("stroke"in t?t.stroke:!h&&(!a.autoStroke||C)?(S=FT,w=!0,a.stroke):null),D=t.textShadowBlur>0,P=0;P<m.length;P++){var L=this._getOrCreateChild(po),O=L.createStyle();L.useStyle(O),O.text=m[P],O.x=y,O.y=x,l&&(O.textAlign=l),O.textBaseline="middle",O.opacity=t.opacity,O.strokeFirst=!0,D&&(O.shadowBlur=t.textShadowBlur||0,O.shadowColor=t.textShadowColor||"transparent",O.shadowOffsetX=t.textShadowOffsetX||0,O.shadowOffsetY=t.textShadowOffsetY||0),O.stroke=E,O.fill=M,E&&(O.lineWidth=t.lineWidth||S,O.lineDash=t.lineDash,O.lineDashOffset=t.lineDashOffset||0),O.font=n,HT(O,t),x+=g,L.setBoundingRect($c(O,c.contentWidth,c.calculatedLineHeight,w?0:null))}},e.prototype._updateRichTexts=function(){var t=this.style,n=this._defaultStyle,i=t.align||n.align,a=t.verticalAlign||n.verticalAlign,o=t.x||0,s=t.y||0;zm(kn,n.overflowRect,o,s,i,a),o=kn.baseX,s=kn.baseY;var l=qT(t),u=Ow(l,t,kn.outerWidth,kn.outerHeight,i),f=u.width,c=u.outerWidth,p=u.outerHeight,h=t.padding;this.isTruncated=!!u.isTruncated;var d=Wi(o,c,i),v=si(s,p,a),m=d,g=v;h&&(m+=h[3],g+=h[0]);var y=m+f;Tg(t)&&this._renderBackground(t,t,d,v,c,p);for(var x=!!t.backgroundColor,_=0;_<u.lines.length;_++){for(var b=u.lines[_],S=b.tokens,w=S.length,C=b.lineHeight,M=b.width,E=0,D=m,P=y,L=w-1,O=void 0;E<w&&(O=S[E],!O.align||O.align==="left");)this._placeToken(O,t,C,g,D,"left",x),M-=O.width,D+=O.width,E++;for(;L>=0&&(O=S[L],O.align==="right");)this._placeToken(O,t,C,g,P,"right",x),M-=O.width,P-=O.width,L--;for(D+=(f-(D-m)-(y-P)-M)/2;E<=L;)O=S[E],this._placeToken(O,t,C,g,D+O.width/2,"center",x),D+=O.width,E++;g+=C}},e.prototype._placeToken=function(t,n,i,a,o,s,l){var u=n.rich[t.styleName]||{};u.text=t.text;var f=t.verticalAlign,c=a+i/2;f==="top"?c=a+t.height/2:f==="bottom"&&(c=a+i-t.height/2);var p=!t.isLineHolder&&Tg(u);p&&this._renderBackground(u,n,s==="right"?o-t.width:s==="center"?o-t.width/2:o,c-t.height/2,t.width,t.height);var h=!!u.backgroundColor,d=t.textPadding;d&&(o=YT(o,s,d),c-=t.height/2-d[0]-t.innerHeight/2);var v=this._getOrCreateChild(po),m=v.createStyle();v.useStyle(m);var g=this._defaultStyle,y=!1,x=0,_=!1,b=WT("fill"in u?u.fill:"fill"in n?n.fill:(y=!0,g.fill)),S=$T("stroke"in u?u.stroke:"stroke"in n?n.stroke:!h&&!l&&(!g.autoStroke||y)?(x=FT,_=!0,g.stroke):null),w=u.textShadowBlur>0||n.textShadowBlur>0;m.text=t.text,m.x=o,m.y=c,w&&(m.shadowBlur=u.textShadowBlur||n.textShadowBlur||0,m.shadowColor=u.textShadowColor||n.textShadowColor||"transparent",m.shadowOffsetX=u.textShadowOffsetX||n.textShadowOffsetX||0,m.shadowOffsetY=u.textShadowOffsetY||n.textShadowOffsetY||0),m.textAlign=s,m.textBaseline="middle",m.font=t.font||lr,m.opacity=xr(u.opacity,n.opacity,1),HT(m,u),S&&(m.lineWidth=xr(u.lineWidth,n.lineWidth,x),m.lineDash=$(u.lineDash,n.lineDash),m.lineDashOffset=n.lineDashOffset||0,m.stroke=S),b&&(m.fill=b),v.setBoundingRect($c(m,t.contentWidth,t.contentHeight,_?0:null))},e.prototype._renderBackground=function(t,n,i,a,o,s){var l=t.backgroundColor,u=t.borderWidth,f=t.borderColor,c=l&&l.image,p=l&&!c,h=t.borderRadius,d=this,v,m;if(p||t.lineHeight||u&&f){v=this._getOrCreateChild(Oe),v.useStyle(v.createStyle()),v.style.fill=null;var g=v.shape;g.x=i,g.y=a,g.width=o,g.height=s,g.r=h,v.dirtyShape()}if(p){var y=v.style;y.fill=l||null,y.fillOpacity=$(t.fillOpacity,1)}else if(c){m=this._getOrCreateChild(Ut),m.onload=function(){d.dirtyStyle()};var x=m.style;x.image=l.image,x.x=i,x.y=a,x.width=o,x.height=s}if(u&&f){var y=v.style;y.lineWidth=u,y.stroke=f,y.strokeOpacity=$(t.strokeOpacity,1),y.lineDash=t.borderDash,y.lineDashOffset=t.borderDashOffset||0,v.strokeContainThreshold=0,v.hasFill()&&v.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var _=(v||m).style;_.shadowBlur=t.shadowBlur||0,_.shadowColor=t.shadowColor||"transparent",_.shadowOffsetX=t.shadowOffsetX||0,_.shadowOffsetY=t.shadowOffsetY||0,_.opacity=xr(t.opacity,n.opacity,1)},e.makeFont=function(t){var n="";return Ag(t)&&(n=[t.fontStyle,t.fontWeight,Eg(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),n&&ur(n)||t.textFont||t.font},e})(Pn),Rz={left:!0,right:1,center:1},Nz={top:1,bottom:1,middle:1},VT=["fontStyle","fontWeight","fontSize","fontFamily"];$e=XT});function zz(r){return r.replace(/^\s+|\s+$/g,"")}function Iu(r,e,t,n){var i=e[0],a=e[1],o=t[0],s=t[1],l=a-i,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(n)if(l>0){if(r<=i)return o;if(r>=a)return s}else{if(r>=i)return o;if(r<=a)return s}else{if(r===i)return o;if(r===a)return s}return(r-i)/l*u+o}function Fz(r,e,t){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%";break}return Mp(r,e,t)}function Mp(r,e,t){return G(r)?Vz(r)?parseFloat(r)/100*e+(t||0):parseFloat(r):r==null?NaN:+r}function Vz(r){return!!zz(r).match(/%$/)}function Se(r,e,t){return isNaN(e)?t?""+r:+r:(e=je(ge(0,e),ZT),r=(+r).toFixed(e),t?r:+r)}function Xs(r){return r.sort(function(e,t){return e-t}),r}function tn(r){if(r=+r,isNaN(r))return 0;if(r>1e-14){for(var e=1,t=0;t<15;t++,e*=10)if(br(r*e)/e===r)return t}return Hz(r)}function Hz(r){var e=r.toString().toLowerCase(),t=e.indexOf("e"),n=t>0?+e.slice(t+1):0,i=t>0?t:e.length,a=e.indexOf("."),o=a<0?0:i-1-a;return ge(0,o-n)}function jT(r,e,t){var n=qe(r[1]-r[0]);if(!isFinite(n)||n===0)return NaN;var i=qs(2*qe(t||1)*qe(n))/Cg,a=qs(qe(e))/Cg,o=ge(0,na(-i+a));return isFinite(o)||(o=NaN),o}function JT(r,e){var t=yr(r,function(h,d){return h+(isNaN(d)?0:d)},0);if(t===0)return[];for(var n=ia(10,e),i=F(r,function(h){return(isNaN(h)?0:h)/t*n*100}),a=n*100,o=F(i,function(h){return zn(h)}),s=yr(o,function(h,d){return h+d},0),l=F(i,function(h,d){return h-o[d]});s<a;){for(var u=Number.NEGATIVE_INFINITY,f=null,c=0,p=l.length;c<p;++c)l[c]>u&&(u=l[c],f=c);++o[f],l[f]=0,++s}return F(o,function(h){return h/n})}function QT(r,e){var t=ge(tn(r),tn(e)),n=r+e;return t>ZT?n:Se(n,t)}function Dg(r){var e=Bz*2;return(r%e+e)%e}function Ru(r){return r>-KT&&r<KT}function ci(r){if(r instanceof Date)return r;if(G(r)){var e=Gz.exec(r);if(!e)return new Date(NaN);if(e[8]){var t=+e[4]||0;return e[8].toUpperCase()!=="Z"&&(t-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,t,+(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(r==null)return new Date(NaN);return new Date(br(r))}function Dp(r){return ia(10,Lp(r))}function Lp(r){if(r===0)return 0;var e=zn(qs(r)/Cg);return r/ia(10,e)>=10&&e++,e}function vo(r,e){var t=Lp(r),n=ia(10,t),i=r/n,a;return e===Lg?a=1:e?i<1.5?a=1:i<2.5?a=2:i<4?a=3:i<7?a=5:a=10:i<1?a=1:i<2?a=2:i<3?a=3:i<5?a=5:a=10,r=a*n,Se(r,-t)}function pi(r){var e=parseFloat(r);return e==r&&(e!==0||!G(r)||r.indexOf("x")<=0)?e:NaN}function Pg(r){return!isNaN(pi(r))}function Nu(){return br(Uz()*9)}function e1(r,e){return e===0?r:e1(e,r%e)}function Og(r,e){return r==null?e:e==null?r:r*e/e1(r,e)}function xt(r){return r!=null&&isFinite(r)}var KT,ZT,je,ge,qe,br,zn,na,ia,qs,Cg,Bz,Uz,Be,Mg,Gz,Lg,we=T(()=>{"use strict";I();KT=1e-4,ZT=20;je=Math.min,ge=Math.max,qe=Math.abs,br=Math.round,zn=Math.floor,na=Math.ceil,ia=Math.pow,qs=Math.log,Cg=Math.LN10,Bz=Math.PI,Uz=Math.random;Be=Fz;Mg=ia(2,53)-1;Gz=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;Lg=2});function Yz(r,e,t){if(Wz){if(t){if(r1[e])return;r1[e]=!0}console[r]($z+e)}}function Ig(r,e){Yz("error",r,e)}function Ft(r){throw new Error(r)}var $z,r1,Wz,Pp=T(()=>{"use strict";$z="[ECharts] ",r1={},Wz=typeof console<"u"&&console.warn&&console.log});function n1(r,e,t){return(e-r)*t+r}function Ke(r){return r instanceof Array?r:r==null?[]:[r]}function zu(r,e,t){if(r){r[e]=r[e]||{},r.emphasis=r.emphasis||{},r.emphasis[e]=r.emphasis[e]||{};for(var n=0,i=t.length;n<i;n++){var a=t[n];!r.emphasis[e].hasOwnProperty(a)&&r[e].hasOwnProperty(a)&&(r.emphasis[e][a]=r[e][a])}}}function hi(r){return Y(r)&&!U(r)&&!(r instanceof Date)?r.value:r}function a1(r){return Y(r)&&!(r instanceof Array)}function o1(r,e,t){var n=t==="normalMerge",i=t==="replaceMerge",a=t==="replaceAll";r=r||[],e=(e||[]).slice();var o=X();A(e,function(l,u){if(!Y(l)){e[u]=null;return}});var s=Xz(r,o,t);return(n||i)&&Kz(s,r,o,e),n&&Zz(s,e),n||i?jz(s,e,i):a&&Jz(s,e),Qz(s),s}function Xz(r,e,t){var n=[];if(t==="replaceAll")return n;for(var i=0;i<r.length;i++){var a=r[i];a&&a.id!=null&&e.set(a.id,i),n.push({existing:t==="replaceMerge"||Ks(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return n}function Kz(r,e,t,n){A(n,function(i,a){if(!(!i||i.id==null)){var o=ku(i.id),s=t.get(o);if(s!=null){var l=r[s];it(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=i,l.existing=e[s],n[a]=null}}})}function Zz(r,e){A(e,function(t,n){if(!(!t||t.name==null))for(var i=0;i<r.length;i++){var a=r[i].existing;if(!r[i].newOption&&a&&(a.id==null||t.id==null)&&!Ks(t)&&!Ks(a)&&s1("name",a,t)){r[i].newOption=t,e[n]=null;return}}})}function jz(r,e,t){A(e,function(n){if(n){for(var i,a=0;(i=r[a])&&(i.newOption||Ks(i.existing)||i.existing&&n.id!=null&&!s1("id",n,i.existing));)a++;i?(i.newOption=n,i.brandNew=t):r.push({newOption:n,brandNew:t,existing:null,keyInfo:null}),a++}})}function Jz(r,e){A(e,function(t){r.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})})}function Qz(r){var e=X();A(r,function(t){var n=t.existing;n&&e.set(n.id,t)}),A(r,function(t){var n=t.newOption;it(!n||n.id==null||!e.get(n.id)||e.get(n.id)===t,"id duplicates: "+(n&&n.id)),n&&n.id!=null&&e.set(n.id,t),!t.keyInfo&&(t.keyInfo={})}),A(r,function(t,n){var i=t.existing,a=t.newOption,o=t.keyInfo;if(Y(a)){if(o.name=a.name!=null?ku(a.name):i?i.name:i1+n,i)o.id=ku(i.id);else if(a.id!=null)o.id=ku(a.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(e.get(o.id))}e.set(o.id,t)}})}function s1(r,e,t){var n=Sr(e[r],null),i=Sr(t[r],null);return n!=null&&i!=null&&n===i}function ku(r){return Sr(r,"")}function Sr(r,e){return r==null?e:G(r)?r:he(r)||Tm(r)?r+"":e}function Zs(r){var e=r.name;return!!(e&&e.indexOf(i1))}function Ks(r){return r&&r.id!=null&&ku(r.id).indexOf(qz)===0}function l1(r,e,t){A(r,function(n){var i=n.newOption;Y(i)&&(n.keyInfo.mainType=e,n.keyInfo.subType=eB(e,i,n.existing,t))})}function eB(r,e,t,n){var i=e.type?e.type:t?t.subType:n.determineSubType(r,e);return i}function Vr(r,e){if(e.dataIndexInside!=null)return e.dataIndexInside;if(e.dataIndex!=null)return U(e.dataIndex)?F(e.dataIndex,function(t){return r.indexOfRawIndex(t)}):r.indexOfRawIndex(e.dataIndex);if(e.name!=null)return U(e.name)?F(e.name,function(t){return r.indexOfName(t)}):r.indexOfName(e.name)}function ae(){var r="__ec_inner_"+tB++;return function(e){return e[r]||(e[r]={})}}function Op(r,e,t){var n=Ng(e,t),i=n.mainTypeSpecified,a=n.queryOptionMap,o=n.others,s=o,l=t?t.defaultMainType:null;return!i&&l&&a.set(l,{}),a.each(function(u,f){var c=js(r,f,u,{useDefault:l===f,enableAll:t&&t.enableAll!=null?t.enableAll:!0,enableNone:t&&t.enableNone!=null?t.enableNone:!0});s[f+"Models"]=c.models,s[f+"Model"]=c.models[0]}),s}function Ng(r,e){var t;if(G(r)){var n={};n[r+"Index"]=0,t=n}else t=r;var i=X(),a={},o=!1;return A(t,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){a[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],f=u[1],c=(u[2]||"").toLowerCase();if(!(!f||!c||e&&e.includeMainTypes&&de(e.includeMainTypes,f)<0)){o=o||!!f;var p=i.get(f)||i.set(f,{});p[c]=s}}),{mainTypeSpecified:o,queryOptionMap:i,others:a}}function js(r,e,t,n){n=n||Pt;var i=t.index,a=t.id,o=t.name,s={models:null,specified:i!=null||a!=null||o!=null};if(!s.specified){var l=void 0;return s.models=n.useDefault&&(l=r.getComponent(e))?[l]:[],s}if(i==="none"||i===!1){if(n.enableNone)return s.models=[],s;i=-1}return i==="all"&&(n.enableAll?i=a=o=null:i=-1),s.models=r.queryComponents({mainType:e,index:i,id:a,name:o}),s}function u1(r,e,t){var n={};n[e+"Id"]=r[e+"Id"],n[e+"Index"]=r[e+"Index"],n[e+"Name"]=r[e+"Name"];var i={mainType:e,query:n};return t&&(i.subType=t),i}function kg(r,e,t){r.setAttribute?r.setAttribute(e,t):r[e]=t}function f1(r,e){return r.getAttribute?r.getAttribute(e):r[e]}function Ip(r,e,t,n,i){var a=e==null||e==="auto";if(n==null)return n;if(he(n)){var o=n1(t||0,n,i);return Se(o,a?Math.max(tn(t||0),tn(n)):e)}else{if(G(n))return i<1?t:n;for(var s=[],l=t,u=n,f=Math.max(l?l.length:0,u.length),c=0;c<f;++c){var p=r.getDimensionInfo(c);if(p&&p.type==="ordinal")s[c]=(i<1&&l?l:u)[c];else{var h=l&&l[c]?l[c]:0,d=u[c],o=n1(h,d,i);s[c]=Se(o,a?Math.max(tn(h),tn(d)):e)}}return s}}function Ot(){return[1/0,-1/0]}function Bu(r,e){rn(e)&&(e<r[0]&&(r[0]=e),e>r[1]&&(r[1]=e))}function zg(r,e){rn(e)&&e<r[0]&&(r[0]=e)}function Bg(r,e){rn(e)&&e>r[1]&&(r[1]=e)}function c1(r,e){di(e[0],e[1])&&(e[0]<r[0]&&(r[0]=e[0]),e[1]>r[1]&&(r[1]=e[1]))}function rn(r){return r!=null&&isFinite(r)}function di(r,e){return rn(r)&&rn(e)&&r<=e}function p1(r){var e=r[1]-r[0];return isFinite(e)&&e>=0}function h1(r){di(r[0],r[1])&&r[0]>r[1]&&(r[0]=r[1])}function Rp(){var r="__ec_once_"+rB++;return function(e,t){Ye(e,r)||(e[r]=1,t())}}function Js(r,e,t){var n=X(),i=0;A(r,function(a){var o=e(a),s=n.get(o)||0;t&&t(a,s),!s&&!t&&(r[i++]=a),n.set(o,s+1)}),t||(r.length=i)}function d1(r){return r.value+""}function v1(r){return r+""}function Np(r,e){return $(e,!0)?r.seriesIndex+2:0}function kp(r,e,t){var n=r.getData().count();return{progressiveRender:t.progressiveEnabled&&e.incrementalPrepareRender&&n>=t.threshold,large:r.get("large")&&n>=r.get("largeThreshold"),modDataCount:r.get("progressiveChunkMode")==="mod"?r.getData().count():null}}function m1(r,e){return{seriesType:r,overallReset:e}}function Qs(r){return{overallReset:r}}var i1,qz,Rg,tB,Pt,eX,rB,ne=T(()=>{"use strict";I();we();i1="series\0",qz="\0_ec_\0";Rg=["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"];tB=Nu();Pt={useDefault:!0,enableAll:!1,enableNone:!1};eX=(function(){function r(){}return r.prototype.reset=function(e,t,n,i){return this._list=e,this._step=i=i||1,this._idx=t,this._end=n??(i>0?e.length:0),this.item=null,this.key=NaN,this},r.prototype.next=function(){return(this._step>0?this._idx<this._end:this._idx>=this._end)?(this.item=this._list[this._idx],this.key=this._idx=this._idx+this._step,!0):!1},r})();rB=Nu()});var ye,g1,wr=T(()=>{"use strict";ne();ye=ae(),g1=function(r,e,t,n){if(n){var i=ye(n);i.dataIndex=t,i.dataType=e,i.seriesIndex=r,i.ssrType="chart",n.type==="group"&&n.traverse(function(a){var o=ye(a);o.seriesIndex=r,o.dataIndex=t,o.dataType=e,o.ssrType="chart"})}}});var oa,zp,Bp,_t,vt,Vt,pr,Tr,Ug,jt,Bn,Jt=T(()=>{"use strict";I();oa="undefined",zp="series",Bp=X(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),_t="original",vt="arrayRows",Vt="objectRows",pr="keyedColumns",Tr="typedArray",Ug="unknown",jt="column",Bn="row"});function y1(r,e){return e.mainType===zp?r.getViewOfSeriesModel(e):r.getViewOfComponentModel(e)}var nB,iB,Up,Fp=T(()=>{"use strict";I();Jt();nB=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],iB=(function(){function r(e){A(nB,function(t){this[t]=Le(e[t],e)},this)}return r})();Up=iB});function el(r){return r!=null&&r!=="none"}function $p(r,e,t){r.onHoverStateChange&&(r.hoverState||0)!==t&&r.onHoverStateChange(e),r.hoverState=t}function A1(r){$p(r,"emphasis",Fu)}function C1(r){r.hoverState===Fu&&$p(r,"normal",Gg)}function $g(r){$p(r,"blur",Uu)}function M1(r){r.hoverState===Uu&&$p(r,"normal",Gg)}function sB(r){r.selected=!0}function lB(r){r.selected=!1}function b1(r,e,t){e(r,t)}function vi(r,e,t){b1(r,e,t),r.isGroup&&r.traverse(function(n){b1(n,e,t)})}function Wg(r,e){switch(e){case"emphasis":r.hoverState=Fu;break;case"normal":r.hoverState=Gg;break;case"blur":r.hoverState=Uu;break;case"select":r.selected=!0}}function uB(r,e,t,n){for(var i=r.style,a={},o=0;o<e.length;o++){var s=e[o],l=i[s];a[s]=l??(n&&n[s])}for(var o=0;o<r.animators.length;o++){var u=r.animators[o];u.__fromStateTransition&&u.__fromStateTransition.indexOf(t)<0&&u.targetName==="style"&&u.saveTo(a,e)}return a}function fB(r,e,t,n){var i=t&&de(t,"select")>=0,a=!1;if(r instanceof le){var o=E1(r),s=i&&o.selectFill||o.normalFill,l=i&&o.selectStroke||o.normalStroke;if(el(s)||el(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(a=!0,n=k({},n),u=k({},u),u.fill=s):!el(u.fill)&&el(s)?(a=!0,n=k({},n),u=k({},u),u.fill=xu(s)):!el(u.stroke)&&el(l)&&(a||(n=k({},n),u=k({},u)),u.stroke=xu(l)),n.style=u}}if(n&&n.z2==null){a||(n=k({},n));var f=r.z2EmphasisLift;n.z2=r.z2+(f??aB)}return n}function cB(r,e,t){if(t&&t.z2==null){t=k({},t);var n=r.z2SelectLift;t.z2=r.z2+(n??oB)}return t}function pB(r,e,t){var n=de(r.currentStates,e)>=0,i=r.style.opacity,a=n?null:uB(r,["opacity"],e,{opacity:1});t=t||{};var o=t.style||{};return o.opacity==null&&(t=k({},t),o=k({opacity:n?i:a.opacity*.1},o),t.style=o),t}function Fg(r,e){var t=this.states[r];if(this.style){if(r==="emphasis")return fB(this,r,e,t);if(r==="blur")return pB(this,r,t);if(r==="select")return cB(this,r,t)}return t}function hB(r){r.stateProxy=Fg;var e=r.getTextContent(),t=r.getTextGuideLine();e&&(e.stateProxy=Fg),t&&(t.stateProxy=Fg)}function S1(r,e){!L1(r,e)&&!r.__highByOuter&&vi(r,A1)}function w1(r,e){!L1(r,e)&&!r.__highByOuter&&vi(r,C1)}function mo(r,e){r.__highByOuter|=1<<(e||0),vi(r,A1)}function go(r,e){!(r.__highByOuter&=~(1<<(e||0)))&&vi(r,C1)}function D1(r){vi(r,$g)}function Yg(r){vi(r,M1)}function qg(r){vi(r,sB)}function Xg(r){vi(r,lB)}function L1(r,e){return r.__highDownSilentOnTouch&&e.zrByTouch}function Kg(r){var e=r.getModel(),t=[],n=[];e.eachComponent(function(i,a){var o=Hg(a),s=y1(r,a),l=i==="series";!l&&n.push(s),o.isBlured&&(s.group.traverse(function(u){M1(u)}),l&&t.push(a)),o.isBlured=!1}),A(n,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(t,!1,e)})}function Vg(r,e,t,n){var i=n.getModel();t=t||"coordinateSystem";function a(u,f){for(var c=0;c<f.length;c++){var p=u.getItemGraphicEl(f[c]);p&&Yg(p)}}if(r!=null&&!(!e||e==="none")){var o=i.getSeriesByIndex(r),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];i.eachSeries(function(u){var f=o===u,c=u.coordinateSystem;c&&c.master&&(c=c.master);var p=c&&s?c===s:f;if(!(t==="series"&&!f||t==="coordinateSystem"&&!p||e==="series"&&f)){var h=n.getViewOfSeriesModel(u);if(h.group.traverse(function(m){m.__highByOuter&&f&&e==="self"||$g(m)}),dt(e))a(u.getData(),e);else if(Y(e))for(var d=oe(e),v=0;v<d.length;v++)a(u.getData(d[v]),e[d[v]]);l.push(u),Hg(u).isBlured=!0}}),i.eachComponent(function(u,f){if(u!=="series"){var c=n.getViewOfComponentModel(f);c&&c.toggleBlurSeries&&c.toggleBlurSeries(l,!0,i)}})}}function Vp(r,e,t){if(!(r==null||e==null)){var n=t.getModel().getComponent(r,e);if(n){Hg(n).isBlured=!0;var i=t.getViewOfComponentModel(n);!i||!i.focusBlurEnabled||i.group.traverse(function(a){$g(a)})}}}function P1(r,e,t){var n=r.seriesIndex,i=r.getData(e.dataType);if(i){var a=Vr(i,e);a=(U(a)?a[0]:a)||0;var o=i.getItemGraphicEl(a);if(!o)for(var s=i.count(),l=0;!o&&l<s;)o=i.getItemGraphicEl(l++);if(o){var u=ye(o);Vg(n,u.focus,u.blurScope,t)}else{var f=r.get(["emphasis","focus"]),c=r.get(["emphasis","blurScope"]);f!=null&&Vg(n,f,c,t)}}}function Wp(r,e,t,n){var i={focusSelf:!1,dispatchers:null};if(r==null||r==="series"||e==null||t==null)return i;var a=n.getModel().getComponent(r,e);if(!a)return i;var o=n.getViewOfComponentModel(a);if(!o||!o.findHighDownDispatchers)return i;for(var s=o.findHighDownDispatchers(t),l,u=0;u<s.length;u++)if(ye(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function O1(r,e,t){var n=ye(r),i=Wp(n.componentMainType,n.componentIndex,n.componentHighDownName,t),a=i.dispatchers,o=i.focusSelf;a?(o&&Vp(n.componentMainType,n.componentIndex,t),A(a,function(s){return S1(s,e)})):(Vg(n.seriesIndex,n.focus,n.blurScope,t),n.focus==="self"&&Vp(n.componentMainType,n.componentIndex,t),S1(r,e))}function I1(r,e,t){Kg(t);var n=ye(r),i=Wp(n.componentMainType,n.componentIndex,n.componentHighDownName,t).dispatchers;i?A(i,function(a){return w1(a,e)}):w1(r,e)}function R1(r,e,t){if(qp(e)){var n=e.dataType,i=r.getData(n),a=Vr(i,e);U(a)||(a=[a]),r[e.type===Gu?"toggleSelect":e.type===Hu?"select":"unselect"](a,n)}}function Zg(r){var e=r.getAllData();A(e,function(t){var n=t.data,i=t.type;n.eachItemGraphicEl(function(a,o){r.isSelected(o,i)?qg(a):Xg(a)})})}function N1(r){var e=[];return r.eachSeries(function(t){var n=t.getAllData();A(n,function(i){var a=i.data,o=i.type,s=t.getSelectedDataIndices();if(s.length>0){var l={dataIndex:s,seriesIndex:t.seriesIndex};o!=null&&(l.dataType=o),e.push(l)}})}),e}function Yp(r,e,t){k1(r,!0),vi(r,hB),vB(r,e,t)}function dB(r){k1(r,!1)}function mi(r,e,t,n){n?dB(r):Yp(r,e,t)}function vB(r,e,t){var n=ye(r);e!=null?(n.focus=e,n.blurScope=t):n.focus&&(n.focus=null)}function yo(r,e,t,n){t=t||"itemStyle";for(var i=0;i<T1.length;i++){var a=T1[i],o=e.getModel([a,t]),s=r.ensureState(a);s.style=n?n(o):o[mB[t]]()}}function k1(r,e){var t=e===!1,n=r;r.highDownSilentOnTouch&&(n.__highDownSilentOnTouch=r.highDownSilentOnTouch),(!t||n.__highDownDispatcher)&&(n.__highByOuter=n.__highByOuter||0,n.__highDownDispatcher=!t)}function $u(r){return!!(r&&r.__highDownDispatcher)}function z1(r){var e=_1[r];return e==null&&x1<=32&&(e=_1[r]=x1++),e}function qp(r){var e=r.type;return e===Hu||e===Hp||e===Gu}function jg(r){var e=r.type;return e===sa||e===Vu}function B1(r){var e=E1(r);e.normalFill=r.style.fill,e.normalStroke=r.style.stroke;var t=r.states.select||{};e.selectFill=t.style&&t.style.fill||null,e.selectStroke=t.style&&t.style.stroke||null}var x1,_1,E1,Hg,Gg,Uu,Fu,Qt,tl,aB,oB,sa,Vu,Hu,Hp,Gu,Gp,T1,mB,Un=T(()=>{"use strict";I();wr();kr();ne();ct();Fp();x1=1,_1={},E1=ae(),Hg=ae(),Gg=0,Uu=1,Fu=2,Qt=["emphasis","blur","select"],tl=["normal","emphasis","blur","select"],aB=10,oB=9,sa="highlight",Vu="downplay",Hu="select",Hp="unselect",Gu="toggleSelect",Gp="selectchanged";T1=["emphasis","blur","select"],mB={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"}});function Jg(r,e){if(e){var t=r.data,n=r.len(),i,a,o,s,l,u,f=rl.M,c=rl.C,p=rl.L,h=rl.R,d=rl.A,v=rl.Q;for(o=0,s=0;o<n;){switch(i=t[o++],s=o,a=0,i){case f:a=1;break;case p:a=1;break;case c:a=3;break;case v:a=2;break;case d:var m=e[4],g=e[5],y=U1(e[0]*e[0]+e[1]*e[1]),x=U1(e[2]*e[2]+e[3]*e[3]),_=yB(-e[1]/x,e[0]/y);t[o]*=y,t[o++]+=m,t[o]*=x,t[o++]+=g,t[o++]*=y,t[o++]*=x,t[o++]+=_,t[o++]+=_,o+=2,s=o;break;case h:u[0]=t[o++],u[1]=t[o++],Dt(u,u,e),t[s++]=u[0],t[s++]=u[1],u[0]+=t[o++],u[1]+=t[o++],Dt(u,u,e),t[s++]=u[0],t[s++]=u[1]}for(l=0;l<a;l++){var b=gB[l];b[0]=t[o++],b[1]=t[o++],Dt(b,b,e),t[s++]=b[0],t[s++]=b[1]}}r.increaseVersion()}}var rl,gB,U1,yB,F1=T(()=>{"use strict";Nn();cr();rl=Lt.CMD,gB=[[],[],[]],U1=Math.sqrt,yB=Math.atan2});function V1(r){return Math.sqrt(r[0]*r[0]+r[1]*r[1])}function ey(r,e){return(r[0]*e[0]+r[1]*e[1])/(V1(r)*V1(e))}function H1(r,e){return(r[0]*e[1]<r[1]*e[0]?-1:1)*Math.acos(ey(r,e))}function G1(r,e,t,n,i,a,o,s,l,u,f){var c=l*(Wu/180),p=Kp(c)*(r-t)/2+Xp(c)*(e-n)/2,h=-1*Xp(c)*(r-t)/2+Kp(c)*(e-n)/2,d=p*p/(o*o)+h*h/(s*s);d>1&&(o*=Qg(d),s*=Qg(d));var v=(i===a?-1:1)*Qg((o*o*(s*s)-o*o*(h*h)-s*s*(p*p))/(o*o*(h*h)+s*s*(p*p)))||0,m=v*o*h/s,g=v*-s*p/o,y=(r+t)/2+Kp(c)*m-Xp(c)*g,x=(e+n)/2+Xp(c)*m+Kp(c)*g,_=H1([1,0],[(p-m)/o,(h-g)/s]),b=[(p-m)/o,(h-g)/s],S=[(-1*p-m)/o,(-1*h-g)/s],w=H1(b,S);if(ey(b,S)<=-1&&(w=Wu),ey(b,S)>=1&&(w=0),w<0){var C=Math.round(w/Wu*1e6)/1e6;w=Wu*2+C%2*Wu}f.addData(u,y,x,o,s,_,w,c,a)}function bB(r){var e=new Lt;if(!r)return e;var t=0,n=0,i=t,a=n,o,s=Lt.CMD,l=r.match(xB);if(!l)return e;for(var u=0;u<l.length;u++){for(var f=l[u],c=f.charAt(0),p=void 0,h=f.match(_B)||[],d=h.length,v=0;v<d;v++)h[v]=parseFloat(h[v]);for(var m=0;m<d;){var g=void 0,y=void 0,x=void 0,_=void 0,b=void 0,S=void 0,w=void 0,C=t,M=n,E=void 0,D=void 0;switch(c){case"l":t+=h[m++],n+=h[m++],p=s.L,e.addData(p,t,n);break;case"L":t=h[m++],n=h[m++],p=s.L,e.addData(p,t,n);break;case"m":t+=h[m++],n+=h[m++],p=s.M,e.addData(p,t,n),i=t,a=n,c="l";break;case"M":t=h[m++],n=h[m++],p=s.M,e.addData(p,t,n),i=t,a=n,c="L";break;case"h":t+=h[m++],p=s.L,e.addData(p,t,n);break;case"H":t=h[m++],p=s.L,e.addData(p,t,n);break;case"v":n+=h[m++],p=s.L,e.addData(p,t,n);break;case"V":n=h[m++],p=s.L,e.addData(p,t,n);break;case"C":p=s.C,e.addData(p,h[m++],h[m++],h[m++],h[m++],h[m++],h[m++]),t=h[m-2],n=h[m-1];break;case"c":p=s.C,e.addData(p,h[m++]+t,h[m++]+n,h[m++]+t,h[m++]+n,h[m++]+t,h[m++]+n),t+=h[m-2],n+=h[m-1];break;case"S":g=t,y=n,E=e.len(),D=e.data,o===s.C&&(g+=t-D[E-4],y+=n-D[E-3]),p=s.C,C=h[m++],M=h[m++],t=h[m++],n=h[m++],e.addData(p,g,y,C,M,t,n);break;case"s":g=t,y=n,E=e.len(),D=e.data,o===s.C&&(g+=t-D[E-4],y+=n-D[E-3]),p=s.C,C=t+h[m++],M=n+h[m++],t+=h[m++],n+=h[m++],e.addData(p,g,y,C,M,t,n);break;case"Q":C=h[m++],M=h[m++],t=h[m++],n=h[m++],p=s.Q,e.addData(p,C,M,t,n);break;case"q":C=h[m++]+t,M=h[m++]+n,t+=h[m++],n+=h[m++],p=s.Q,e.addData(p,C,M,t,n);break;case"T":g=t,y=n,E=e.len(),D=e.data,o===s.Q&&(g+=t-D[E-4],y+=n-D[E-3]),t=h[m++],n=h[m++],p=s.Q,e.addData(p,g,y,t,n);break;case"t":g=t,y=n,E=e.len(),D=e.data,o===s.Q&&(g+=t-D[E-4],y+=n-D[E-3]),t+=h[m++],n+=h[m++],p=s.Q,e.addData(p,g,y,t,n);break;case"A":x=h[m++],_=h[m++],b=h[m++],S=h[m++],w=h[m++],C=t,M=n,t=h[m++],n=h[m++],p=s.A,G1(C,M,t,n,S,w,x,_,b,p,e);break;case"a":x=h[m++],_=h[m++],b=h[m++],S=h[m++],w=h[m++],C=t,M=n,t+=h[m++],n+=h[m++],p=s.A,G1(C,M,t,n,S,w,x,_,b,p,e);break}}(c==="z"||c==="Z")&&(p=s.Z,e.addData(p),t=i,n=a),o=p}return e.toStatic(),e}function W1(r){return r.setData!=null}function Y1(r,e){var t=bB(r),n=k({},e);return n.buildPath=function(i){var a=W1(i);if(a&&i.canSave()){i.appendPath(t);var o=i.getContext();o&&i.rebuildPath(o,1)}else{var o=a?i.getContext():i;o&&t.rebuildPath(o,1)}},n.applyTransform=function(i){Jg(t,i),this.dirtyShape()},n}function q1(r,e){return new $1(Y1(r,e))}function X1(r,e){var t=Y1(r,e),n=(function(i){R(a,i);function a(o){var s=i.call(this,o)||this;return s.applyTransform=t.applyTransform,s.buildPath=t.buildPath,s}return a})($1);return n}function K1(r,e){for(var t=[],n=r.length,i=0;i<n;i++){var a=r[i];t.push(a.getUpdatedPathProxy(!0))}var o=new le(e);return o.createPathProxy(),o.buildPath=function(s){if(W1(s)){s.appendPath(t);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}var Qg,Xp,Kp,Wu,xB,_B,$1,Z1=T(()=>{"use strict";ee();ct();Nn();F1();I();Qg=Math.sqrt,Xp=Math.sin,Kp=Math.cos,Wu=Math.PI;xB=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,_B=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;$1=(function(r){R(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.applyTransform=function(t){},e})(le)});var j1,Ie,nl=T(()=>{"use strict";ee();I();xp();Tt();j1=(function(r){R(e,r);function e(t){var n=r.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(t),n}return e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(t){return this._children[t]},e.prototype.childOfName=function(t){for(var n=this._children,i=0;i<n.length;i++)if(n[i].name===t)return n[i]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(t){return t&&t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),this},e.prototype.addBefore=function(t,n){if(t&&t!==this&&t.parent!==this&&n&&n.parent===this){var i=this._children,a=i.indexOf(n);a>=0&&(i.splice(a,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,n){var i=de(this._children,t);return i>=0&&this.replaceAt(n,i),this},e.prototype.replaceAt=function(t,n){var i=this._children,a=i[n];if(t&&t!==this&&t.parent!==this&&t!==a){i[n]=t,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var n=this.__zr;n&&n!==t.__zr&&t.addSelfToZr(n),n&&n.refresh()},e.prototype.remove=function(t){var n=this.__zr,i=this._children,a=de(i,t);return a<0?this:(i.splice(a,1),t.parent=null,n&&t.removeSelfFromZr(n),n&&n.refresh(),this)},e.prototype.removeAll=function(){for(var t=this._children,n=this.__zr,i=0;i<t.length;i++){var a=t[i];n&&a.removeSelfFromZr(n),a.parent=null}return t.length=0,this},e.prototype.eachChild=function(t,n){for(var i=this._children,a=0;a<i.length;a++){var o=i[a];t.call(n,o,a)}return this},e.prototype.traverse=function(t,n){for(var i=0;i<this._children.length;i++){var a=this._children[i],o=t.call(n,a);a.isGroup&&!o&&a.traverse(t,n)}return this},e.prototype.addSelfToZr=function(t){r.prototype.addSelfToZr.call(this,t);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.addSelfToZr(t)}},e.prototype.removeSelfFromZr=function(t){r.prototype.removeSelfFromZr.call(this,t);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.removeSelfFromZr(t)}},e.prototype.getBoundingRect=function(t){for(var n=new se(0,0,0,0),i=t||this._children,a=[],o=null,s=0;s<i.length;s++){var l=i[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),f=l.getLocalTransform(a);f?(se.applyTransform(n,u,f),o=o||n.clone(),o.union(n)):(o=o||u.clone(),o.union(u))}}return o||n},e})(yp);j1.prototype.type="group";Ie=j1});var wB,J1,Yu,Q1=T(()=>{"use strict";ee();ct();wB=(function(){function r(){this.cx=0,this.cy=0,this.r=0}return r})(),J1=(function(r){R(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new wB},e.prototype.buildPath=function(t,n){t.moveTo(n.cx+n.r,n.cy),t.arc(n.cx,n.cy,n.r,0,Math.PI*2)},e})(le);J1.prototype.type="circle";Yu=J1});var TB,eE,ty,tE=T(()=>{"use strict";ee();ct();TB=(function(){function r(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return r})(),eE=(function(r){R(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new TB},e.prototype.buildPath=function(t,n){var i=.5522848,a=n.cx,o=n.cy,s=n.rx,l=n.ry,u=s*i,f=l*i;t.moveTo(a-s,o),t.bezierCurveTo(a-s,o-f,a-u,o-l,a,o-l),t.bezierCurveTo(a+u,o-l,a+s,o-f,a+s,o),t.bezierCurveTo(a+s,o+f,a+u,o+l,a,o+l),t.bezierCurveTo(a-u,o+l,a-s,o+f,a-s,o),t.closePath()},e})(le);eE.prototype.type="ellipse";ty=eE});function AB(r,e,t,n,i,a,o,s){var l=t-r,u=n-e,f=o-i,c=s-a,p=c*l-f*u;if(!(p*p<nn))return p=(f*(e-a)-c*(r-i))/p,[r+p*l,e+p*u]}function Zp(r,e,t,n,i,a,o){var s=r-t,l=e-n,u=(o?a:-a)/Xu(s*s+l*l),f=u*l,c=-u*s,p=r+f,h=e+c,d=t+f,v=n+c,m=(p+d)/2,g=(h+v)/2,y=d-p,x=v-h,_=y*y+x*x,b=i-a,S=p*v-d*h,w=(x<0?-1:1)*Xu(qu(0,b*b*_-S*S)),C=(S*x-y*w)/_,M=(-S*y-x*w)/_,E=(S*x+y*w)/_,D=(-S*y+x*w)/_,P=C-m,L=M-g,O=E-m,z=D-g;return P*P+L*L>O*O+z*z&&(C=E,M=D),{cx:C,cy:M,x0:-f,y0:-c,x1:C*(i/b-1),y1:M*(i/b-1)}}function CB(r){var e;if(U(r)){var t=r.length;if(!t)return r;t===1?e=[r[0],r[0],0,0]:t===2?e=[r[0],r[0],r[1],r[1]]:t===3?e=r.concat(r[2]):e=r}else e=[r,r,r,r];return e}function iE(r,e){var t,n=qu(e.r,0),i=qu(e.r0||0,0),a=n>0,o=i>0;if(!(!a&&!o)){if(a||(n=i,i=0),i>n){var s=n;n=i,i=s}var l=e.startAngle,u=e.endAngle;if(!(isNaN(l)||isNaN(u))){var f=e.cx,c=e.cy,p=!!e.clockwise,h=rE(u-l),d=h>ry&&h%ry;if(d>nn&&(h=d),!(n>nn))r.moveTo(f,c);else if(h>ry-nn)r.moveTo(f+n*il(l),c+n*xo(l)),r.arc(f,c,n,l,u,!p),i>nn&&(r.moveTo(f+i*il(u),c+i*xo(u)),r.arc(f,c,i,u,l,p));else{var v=void 0,m=void 0,g=void 0,y=void 0,x=void 0,_=void 0,b=void 0,S=void 0,w=void 0,C=void 0,M=void 0,E=void 0,D=void 0,P=void 0,L=void 0,O=void 0,z=n*il(l),N=n*xo(l),V=i*il(u),B=i*xo(u),H=h>nn;if(H){var W=e.cornerRadius;W&&(t=CB(W),v=t[0],m=t[1],g=t[2],y=t[3]);var K=rE(n-i)/2;if(x=Fn(K,g),_=Fn(K,y),b=Fn(K,v),S=Fn(K,m),M=w=qu(x,_),E=C=qu(b,S),(w>nn||C>nn)&&(D=n*il(u),P=n*xo(u),L=i*il(l),O=i*xo(l),h<nE)){var J=AB(z,N,L,O,D,P,V,B);if(J){var re=z-J[0],Z=N-J[1],ve=D-J[0],_e=P-J[1],et=1/xo(EB((re*ve+Z*_e)/(Xu(re*re+Z*Z)*Xu(ve*ve+_e*_e)))/2),Ze=Xu(J[0]*J[0]+J[1]*J[1]);M=Fn(w,(n-Ze)/(et+1)),E=Fn(C,(i-Ze)/(et-1))}}}if(!H)r.moveTo(f+z,c+N);else if(M>nn){var Ce=Fn(g,M),Ge=Fn(y,M),pe=Zp(L,O,z,N,n,Ce,p),be=Zp(D,P,V,B,n,Ge,p);r.moveTo(f+pe.cx+pe.x0,c+pe.cy+pe.y0),M<w&&Ce===Ge?r.arc(f+pe.cx,c+pe.cy,M,Ht(pe.y0,pe.x0),Ht(be.y0,be.x0),!p):(Ce>0&&r.arc(f+pe.cx,c+pe.cy,Ce,Ht(pe.y0,pe.x0),Ht(pe.y1,pe.x1),!p),r.arc(f,c,n,Ht(pe.cy+pe.y1,pe.cx+pe.x1),Ht(be.cy+be.y1,be.cx+be.x1),!p),Ge>0&&r.arc(f+be.cx,c+be.cy,Ge,Ht(be.y1,be.x1),Ht(be.y0,be.x0),!p))}else r.moveTo(f+z,c+N),r.arc(f,c,n,l,u,!p);if(!(i>nn)||!H)r.lineTo(f+V,c+B);else if(E>nn){var Ce=Fn(v,E),Ge=Fn(m,E),pe=Zp(V,B,D,P,i,-Ge,p),be=Zp(z,N,L,O,i,-Ce,p);r.lineTo(f+pe.cx+pe.x0,c+pe.cy+pe.y0),E<C&&Ce===Ge?r.arc(f+pe.cx,c+pe.cy,E,Ht(pe.y0,pe.x0),Ht(be.y0,be.x0),!p):(Ge>0&&r.arc(f+pe.cx,c+pe.cy,Ge,Ht(pe.y0,pe.x0),Ht(pe.y1,pe.x1),!p),r.arc(f,c,i,Ht(pe.cy+pe.y1,pe.cx+pe.x1),Ht(be.cy+be.y1,be.cx+be.x1),p),Ce>0&&r.arc(f+be.cx,c+be.cy,Ce,Ht(be.y1,be.x1),Ht(be.y0,be.x0),!p))}else r.lineTo(f+V,c+B),r.arc(f,c,i,u,l,p)}r.closePath()}}}var nE,ry,xo,il,EB,Ht,rE,Xu,qu,Fn,nn,aE=T(()=>{"use strict";I();nE=Math.PI,ry=nE*2,xo=Math.sin,il=Math.cos,EB=Math.acos,Ht=Math.atan2,rE=Math.abs,Xu=Math.sqrt,qu=Math.max,Fn=Math.min,nn=1e-4});var DB,oE,an,sE=T(()=>{"use strict";ee();ct();aE();DB=(function(){function r(){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 r})(),oE=(function(r){R(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new DB},e.prototype.buildPath=function(t,n){iE(t,n)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e})(le);oE.prototype.type="sector";an=oE});var LB,lE,ny,uE=T(()=>{"use strict";ee();ct();LB=(function(){function r(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return r})(),lE=(function(r){R(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new LB},e.prototype.buildPath=function(t,n){var i=n.cx,a=n.cy,o=Math.PI*2;t.moveTo(i+n.r,a),t.arc(i,a,n.r,0,o,!1),t.moveTo(i+n.r0,a),t.arc(i,a,n.r0,0,o,!0)},e})(le);lE.prototype.type="ring";ny=lE});function iy(r,e,t,n){var i=[],a=[],o=[],s=[],l,u,f,c;if(n){f=[1/0,1/0],c=[-1/0,-1/0];for(var p=0,h=r.length;p<h;p++)ii(f,f,r[p]),ai(c,c,r[p]);ii(f,f,n[0]),ai(c,c,n[1])}for(var p=0,h=r.length;p<h;p++){var d=r[p];if(t)l=r[p?p-1:h-1],u=r[(p+1)%h];else if(p===0||p===h-1){i.push(gw(r[p]));continue}else l=r[p-1],u=r[p+1];yw(a,u,l),Uc(a,a,e);var v=Fc(d,l),m=Fc(d,u),g=v+m;g!==0&&(v/=g,m/=g),Uc(o,a,-v),Uc(s,a,m);var y=Cm([],d,o),x=Cm([],d,s);n&&(ai(y,y,f),ii(y,y,c),ai(x,x,f),ii(x,x,c)),i.push(y),i.push(x)}return t&&i.push(i.shift()),i}var fE=T(()=>{"use strict";cr()});function jp(r,e,t){var n=e.smooth,i=e.points;if(i&&i.length>=2){if(n){var a=iy(i,n,t,e.smoothConstraint);r.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(t?o:o-1);s++){var l=a[s*2],u=a[s*2+1],f=i[(s+1)%o];r.bezierCurveTo(l[0],l[1],u[0],u[1],f[0],f[1])}}else{r.moveTo(i[0][0],i[0][1]);for(var s=1,c=i.length;s<c;s++)r.lineTo(i[s][0],i[s][1])}t&&r.closePath()}}var ay=T(()=>{"use strict";fE()});var PB,pE,oy,hE=T(()=>{"use strict";ee();ct();ay();PB=(function(){function r(){this.points=null,this.smooth=0,this.smoothConstraint=null}return r})(),pE=(function(r){R(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new PB},e.prototype.buildPath=function(t,n){jp(t,n,!0)},e})(le);pE.prototype.type="polygon";oy=pE});var OB,dE,_o,vE=T(()=>{"use strict";ee();ct();ay();OB=(function(){function r(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return r})(),dE=(function(r){R(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new OB},e.prototype.buildPath=function(t,n){jp(t,n,!1)},e})(le);dE.prototype.type="polyline";_o=dE});var IB,RB,mE,on,gE=T(()=>{"use strict";ee();ct();Cp();IB={},RB=(function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return r})(),mE=(function(r){R(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new RB},e.prototype.buildPath=function(t,n){var i,a,o,s;if(this.subPixelOptimize){var l=Ep(IB,n,this.style);i=l.x1,a=l.y1,o=l.x2,s=l.y2}else i=n.x1,a=n.y1,o=n.x2,s=n.y2;var u=n.percent;u!==0&&(t.moveTo(i,a),u<1&&(o=i*(1-u)+o*u,s=a*(1-u)+s*u),t.lineTo(o,s))},e.prototype.pointAt=function(t){var n=this.shape;return[n.x1*(1-t)+n.x2*t,n.y1*(1-t)+n.y2*t]},e})(le);mE.prototype.type="line";on=mE});function yE(r,e,t){var n=r.cpx2,i=r.cpy2;return n!=null||i!=null?[(t?$m:Xe)(r.x1,r.cpx1,r.cpx2,r.x2,e),(t?$m:Xe)(r.y1,r.cpy1,r.cpy2,r.y2,e)]:[(t?Wm:yt)(r.x1,r.cpx1,r.x2,e),(t?Wm:yt)(r.y1,r.cpy1,r.y2,e)]}var hr,NB,xE,sy,_E=T(()=>{"use strict";ee();ct();cr();Mn();hr=[],NB=(function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return r})();xE=(function(r){R(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new NB},e.prototype.buildPath=function(t,n){var i=n.x1,a=n.y1,o=n.x2,s=n.y2,l=n.cpx1,u=n.cpy1,f=n.cpx2,c=n.cpy2,p=n.percent;p!==0&&(t.moveTo(i,a),f==null||c==null?(p<1&&(Bs(i,l,o,p,hr),l=hr[1],o=hr[2],Bs(a,u,s,p,hr),u=hr[1],s=hr[2]),t.quadraticCurveTo(l,u,o,s)):(p<1&&(zs(i,l,f,o,p,hr),l=hr[1],f=hr[2],o=hr[3],zs(a,u,c,s,p,hr),u=hr[1],c=hr[2],s=hr[3]),t.bezierCurveTo(l,u,f,c,o,s)))},e.prototype.pointAt=function(t){return yE(this.shape,t,!1)},e.prototype.tangentAt=function(t){var n=yE(this.shape,t,!0);return xw(n,n)},e})(le);xE.prototype.type="bezier-curve";sy=xE});var kB,bE,Ku,SE=T(()=>{"use strict";ee();ct();kB=(function(){function r(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r})(),bE=(function(r){R(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new kB},e.prototype.buildPath=function(t,n){var i=n.cx,a=n.cy,o=Math.max(n.r,0),s=n.startAngle,l=n.endAngle,u=n.clockwise,f=Math.cos(s),c=Math.sin(s);t.moveTo(f*o+i,c*o+a),t.arc(i,a,o,s,l,!u)},e})(le);bE.prototype.type="arc";Ku=bE});var zB,Jp,ly=T(()=>{"use strict";ee();ct();zB=(function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="compound",t}return e.prototype._updatePathDirty=function(){for(var t=this.shape.paths,n=this.shapeChanged(),i=0;i<t.length;i++)n=n||t[i].shapeChanged();n&&this.dirtyShape()},e.prototype.beforeBrush=function(){this._updatePathDirty();for(var t=this.shape.paths||[],n=this.getGlobalScale(),i=0;i<t.length;i++)t[i].path||t[i].createPathProxy(),t[i].path.setScale(n[0],n[1],t[i].segmentIgnoreThreshold)},e.prototype.buildPath=function(t,n){for(var i=n.paths||[],a=0;a<i.length;a++)i[a].buildPath(t,i[a].shape,!0)},e.prototype.afterBrush=function(){for(var t=this.shape.paths||[],n=0;n<t.length;n++)t[n].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),le.prototype.getBoundingRect.call(this)},e})(le),Jp=zB});var BB,Qp,uy=T(()=>{"use strict";BB=(function(){function r(e){this.colorStops=e||[]}return r.prototype.addColorStop=function(e,t){this.colorStops.push({offset:e,color:t})},r})(),Qp=BB});var UB,eh,wE=T(()=>{"use strict";ee();uy();UB=(function(r){R(e,r);function e(t,n,i,a,o,s){var l=r.call(this,o)||this;return l.x=t??0,l.y=n??0,l.x2=i??1,l.y2=a??0,l.type="linear",l.global=s||!1,l}return e})(Qp),eh=UB});var FB,TE,EE=T(()=>{"use strict";ee();uy();FB=(function(r){R(e,r);function e(t,n,i,a,o){var s=r.call(this,a)||this;return s.x=t??.5,s.y=n??.5,s.r=i??.5,s.type="radial",s.global=o||!1,s}return e})(Qp),TE=FB});var fy,VB,th,bo,So,Et,rh,nh,HB,ih,AE=T(()=>{"use strict";vu();Tt();fy=Math.min,VB=Math.max,th=Math.abs,bo=[0,0],So=[0,0],Et=Om(),rh=Et.minTv,nh=Et.maxTv,HB=(function(){function r(e,t){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new ce;for(var n=0;n<2;n++)this._axes[n]=new ce;e&&this.fromBoundingRect(e,t)}return r.prototype.fromBoundingRect=function(e,t){var n=this._corners,i=this._axes,a=e.x,o=e.y,s=a+e.width,l=o+e.height;if(n[0].set(a,o),n[1].set(s,o),n[2].set(s,l),n[3].set(a,l),t)for(var u=0;u<4;u++)n[u].transform(t);ce.sub(i[0],n[1],n[0]),ce.sub(i[1],n[3],n[0]),i[0].normalize(),i[1].normalize();for(var u=0;u<2;u++)this._origin[u]=i[u].dot(n[0])},r.prototype.intersect=function(e,t,n){var i=!0,a=!t;return t&&ce.set(t,0,0),Et.reset(n,!a),!this._intersectCheckOneSide(this,e,a,1)&&(i=!1,a)||!this._intersectCheckOneSide(e,this,a,-1)&&(i=!1,a)||!a&&!Et.negativeSize&&ce.copy(t,i?Et.useDir?Et.dirMinTv:rh:nh),i},r.prototype._intersectCheckOneSide=function(e,t,n,i){for(var a=!0,o=0;o<2;o++){var s=e._axes[o];if(e._getProjMinMaxOnAxis(o,e._corners,bo),e._getProjMinMaxOnAxis(o,t._corners,So),Et.negativeSize||bo[1]<So[0]||bo[0]>So[1]){if(a=!1,Et.negativeSize||n)return a;var l=th(So[0]-bo[1]),u=th(bo[0]-So[1]);fy(l,u)>nh.len()&&(l<u?ce.scale(nh,s,-l*i):ce.scale(nh,s,u*i))}else if(!n){var l=th(So[0]-bo[1]),u=th(bo[0]-So[1]);(Et.useDir||fy(l,u)<rh.len())&&((l<u||!Et.bidirectional)&&(ce.scale(rh,s,l*i),Et.useDir&&Et.calcDirMTV()),(l>=u||!Et.bidirectional)&&(ce.scale(rh,s,-u*i),Et.useDir&&Et.calcDirMTV()))}}return a},r.prototype._getProjMinMaxOnAxis=function(e,t,n){for(var i=this._axes[e],a=this._origin,o=t[0].dot(i)+a[e],s=o,l=o,u=1;u<t.length;u++){var f=t[u].dot(i)+a[e];s=fy(f,s),l=VB(f,l)}n[0]=s+Et.touchThreshold,n[1]=l-Et.touchThreshold,Et.negativeSize=n[1]<n[0]},r})(),ih=HB});var CE,ME=T(()=>{"use strict";CE=1});var GB,$B,DE,LE=T(()=>{"use strict";ee();io();Tt();ME();GB=[],$B=(function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.notClear=!0,t.incremental=CE,t._displayables=[],t._temporaryDisplayables=[],t._cursor=0,t}return e.prototype.traverse=function(t,n){t.call(n,this)},e.prototype.useStyle=function(){this.style={}},e.prototype._useHoverStyle=function(){this.__hoverStyle=null},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(t,n){n?this._temporaryDisplayables.push(t):this._displayables.push(t),this.markRedraw()},e.prototype.addDisplayables=function(t,n){n=n||!1;for(var i=0;i<t.length;i++)this.addDisplayable(t[i],n)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.prototype.eachPendingDisplayable=function(t){for(var n=this._cursor;n<this._displayables.length;n++)t&&t(this._displayables[n]);for(var n=0;n<this._temporaryDisplayables.length;n++)t&&t(this._temporaryDisplayables[n])},e.prototype.update=function(){this.updateTransform();for(var t=this._cursor;t<this._displayables.length;t++){var n=this._displayables[t];n.parent=this,n.update(),n.parent=null}for(var t=0;t<this._temporaryDisplayables.length;t++){var n=this._temporaryDisplayables[t];n.parent=this,n.update(),n.parent=null}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var t=new se(1/0,1/0,-1/0,-1/0),n=0;n<this._displayables.length;n++){var i=this._displayables[n],a=i.getBoundingRect().clone();i.needLocalTransform()&&a.applyTransform(i.getLocalTransform(GB)),t.union(a)}this._rect=t}return this._rect},e.prototype.contain=function(t,n){var i=this.transformCoordToLocal(t,n),a=this.getBoundingRect();if(a.contain(i[0],i[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(t,n))return!0}return!1},e})(Pn),DE=$B});function YB(r,e,t,n,i){var a;if(e&&e.ecModel){var o=e.ecModel.getUpdatePayload();a=o&&o.animation}var s=e&&e.isAnimationEnabled(),l=r==="update";if(s){var u=void 0,f=void 0,c=void 0;n?(u=$(n.duration,200),f=$(n.easing,"cubicOut"),c=0):(u=e.getShallow(l?"animationDurationUpdate":"animationDuration"),f=e.getShallow(l?"animationEasingUpdate":"animationEasing"),c=e.getShallow(l?"animationDelayUpdate":"animationDelay")),a&&(a.duration!=null&&(u=a.duration),a.easing!=null&&(f=a.easing),a.delay!=null&&(c=a.delay)),j(c)&&(c=c(t,i)),j(u)&&(u=u(t));var p={duration:u||0,delay:c,easing:f};return p}else return null}function cy(r,e,t,n,i,a,o){var s=!1,l;j(i)?(o=a,a=i,i=null):Y(i)&&(a=i.cb,o=i.during,s=i.isFrom,l=i.removeOpt,i=i.dataIndex);var u=r==="leave";u||e.stopAnimation("leave");var f=YB(r,n,i,u?l||{}:null,n&&n.getAnimationDelayParams?n.getAnimationDelayParams(e,i):null);if(f&&f.duration>0){var c=f.duration,p=f.delay,h=f.easing,d={duration:c,delay:p||0,easing:h,done:a,force:!!a||!!o,setToFinal:!u,scope:r,during:o};s?e.animateFrom(t,d):e.animateTo(t,d)}else e.stopAnimation(),!s&&e.attr(t),o&&o(1),a&&a()}function Ve(r,e,t,n,i,a){cy("update",r,e,t,n,i,a)}function Je(r,e,t,n,i,a){cy("enter",r,e,t,n,i,a)}function gi(r){if(!r.__zr)return!0;for(var e=0;e<r.animators.length;e++){var t=r.animators[e];if(t.scope==="leave")return!0}return!1}function al(r,e,t,n,i,a){gi(r)||cy("leave",r,e,t,n,i,a)}function PE(r,e,t,n){r.removeTextContent(),r.removeTextGuideLine(),al(r,{style:{opacity:0}},e,t,n)}function la(r,e,t){function n(){r.parent&&r.parent.remove(r)}r.isGroup?r.traverse(function(i){i.isGroup||PE(i,e,t,n)}):PE(r,e,t,n)}function ol(r){WB(r).oldStyle=r.style}var WB,Zu=T(()=>{"use strict";I();ne();WB=ae()});var mt={};Rb(mt,{Arc:()=>Ku,BezierCurve:()=>sy,BoundingRect:()=>se,Circle:()=>Yu,CompoundPath:()=>Jp,Ellipse:()=>ty,Group:()=>Ie,HOVER_LAYER_FOR_INCREMENTAL:()=>Ju,HOVER_LAYER_FROM_THRESHOLD:()=>my,HOVER_LAYER_NO:()=>vy,Image:()=>Ut,IncrementalDisplayable:()=>DE,Line:()=>on,LinearGradient:()=>eh,OrientedBoundingRect:()=>ih,Path:()=>le,Point:()=>ce,Polygon:()=>oy,Polyline:()=>_o,RadialGradient:()=>TE,Rect:()=>Oe,Ring:()=>ny,Sector:()=>an,Text:()=>$e,WH:()=>ua,XY:()=>Vn,applyTransform:()=>sh,calcZ2Range:()=>sU,clipPointsByRect:()=>nU,clipRectByRect:()=>iU,createIcon:()=>Qu,decomposeTransform:()=>uU,ensureCopyRect:()=>ul,ensureCopyTransform:()=>uh,expandOrShrinkRect:()=>sl,extendPath:()=>KB,extendShape:()=>qB,getCurrentCanvasPainter:()=>fU,getShapeClass:()=>ZB,getTransform:()=>eU,groupTransition:()=>yy,initProps:()=>Je,isBoundingRectAxisAligned:()=>lh,isElementRemoved:()=>gi,lineLineIntersect:()=>kE,linePolygonIntersect:()=>aU,makeImage:()=>gy,makePath:()=>oh,mergePath:()=>jB,payloadDisableAnimation:()=>lU,registerShape:()=>sn,removeElement:()=>al,removeElementWithFadeOut:()=>la,resizePath:()=>NE,retrieveZInfo:()=>xy,setTooltipConfig:()=>ll,subPixelOptimize:()=>QB,subPixelOptimizeLine:()=>wo,subPixelOptimizeRect:()=>JB,transformDirection:()=>tU,traverseElements:()=>To,traverseUpdateZ:()=>_y,updateProps:()=>Ve});function qB(r){return le.extend(r)}function KB(r,e){return XB(r,e)}function sn(r,e){hy[r]=e}function ZB(r){if(hy.hasOwnProperty(r))return hy[r]}function oh(r,e,t,n){var i=q1(r,e);return t&&(n==="center"&&(t=RE(t,i.getBoundingRect())),NE(i,t)),i}function gy(r,e,t){var n=new Ut({style:{image:r,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(i){if(t==="center"){var a={width:i.width,height:i.height};n.setStyle(RE(e,a))}}});return n}function RE(r,e){var t=e.width/e.height,n=r.height*t,i;n<=r.width?i=r.height:(n=r.width,i=n/t);var a=r.x+r.width/2,o=r.y+r.height/2;return{x:a-n/2,y:o-i/2,width:n,height:i}}function NE(r,e){if(r.applyTransform){var t=r.getBoundingRect(),n=t.calculateTransform(e);r.applyTransform(n)}}function wo(r,e){return Ep(r,r,{lineWidth:e}),r}function JB(r,e){return Ap(r,r,e),r}function eU(r,e){for(var t=ri([]);r&&r!==e;)Hi(t,r.getLocalTransform(),t),r=r.parent;return t}function sh(r,e,t){return e&&!dt(e)&&(e=qi.getLocalTransform(e)),t&&(e=Ir([],e)),Dt([],r,e)}function tU(r,e,t){var n=e[4]===0||e[5]===0||e[0]===0?1:qe(2*e[4]/e[0]),i=e[4]===0||e[5]===0||e[2]===0?1:qe(2*e[4]/e[2]),a=[r==="left"?-n:r==="right"?n:0,r==="top"?-i:r==="bottom"?i:0];return a=sh(a,e,t),qe(a[0])>qe(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function OE(r){return!r.isGroup}function rU(r){return r.shape!=null}function yy(r,e,t){if(!r||!e)return;function n(o){var s={};return o.traverse(function(l){OE(l)&&l.anid&&(s[l.anid]=l)}),s}function i(o){var s={x:o.x,y:o.y,rotation:o.rotation};return rU(o)&&(s.shape=ue(o.shape)),s}var a=n(r);e.traverse(function(o){if(OE(o)&&o.anid){var s=a[o.anid];if(s){var l=i(o);o.attr(i(s)),Ve(o,l,t,ye(o).dataIndex)}}})}function nU(r,e){return F(r,function(t){var n=t[0];n=ge(n,e.x),n=je(n,e.x+e.width);var i=t[1];return i=ge(i,e.y),i=je(i,e.y+e.height),[n,i]})}function iU(r,e){var t=ge(r.x,e.x),n=je(r.x+r.width,e.x+e.width),i=ge(r.y,e.y),a=je(r.y+r.height,e.y+e.height);if(n>=t&&a>=i)return{x:t,y:i,width:n-t,height:a-i}}function Qu(r,e,t){var n=k({rectHover:!0},e),i=n.style={strokeNoScale:!0};if(t=t||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(i.image=r.slice(8),fe(i,t),new Ut(n)):oh(r.replace("path://",""),n,t,"center")}function aU(r,e,t,n,i){for(var a=0,o=i[i.length-1];a<i.length;a++){var s=i[a];if(kE(r,e,t,n,s[0],s[1],o[0],o[1]))return!0;o=s}}function kE(r,e,t,n,i,a,o,s){var l=t-r,u=n-e,f=o-i,c=s-a,p=py(f,c,l,u);if(oU(p))return!1;var h=r-i,d=e-a,v=py(h,d,l,u)/p;if(v<0||v>1)return!1;var m=py(h,d,f,c)/p;return!(m<0||m>1)}function py(r,e,t,n){return r*n-t*e}function oU(r){return r<=1e-6&&r>=-1e-6}function sl(r,e,t,n,i){return e==null||(he(e)?We[0]=We[1]=We[2]=We[3]=e:(We[0]=e[0],We[1]=e[1],We[2]=e[2],We[3]=e[3]),n&&(We[0]=ge(0,We[0]),We[1]=ge(0,We[1]),We[2]=ge(0,We[2]),We[3]=ge(0,We[3])),t&&(We[0]=-We[0],We[1]=-We[1],We[2]=-We[2],We[3]=-We[3]),IE(r,We,"x","width",3,1,i&&i[0]||0),IE(r,We,"y","height",0,2,i&&i[1]||0)),r}function IE(r,e,t,n,i,a,o){var s=e[a]+e[i],l=r[n];r[n]+=s,o=ge(0,je(o,l)),r[n]<o?(r[n]=o,r[t]+=e[i]>=0?-e[i]:e[a]>=0?l+e[a]:qe(s)>1e-8?(l-o)*e[i]/s:0):r[t]-=e[i]}function ll(r){var e=r.itemTooltipOption,t=r.componentModel,n=r.itemName,i=G(e)?{formatter:e}:e,a=t.mainType,o=t.componentIndex,s={componentType:a,name:n,$vars:["name"]};s[a+"Index"]=o;var l=r.formatterParamsExtra;l&&A(oe(l),function(f){Ye(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=ye(r.el);u.componentMainType=a,u.componentIndex=o,u.tooltipConfig={name:n,option:fe({content:n,encodeHTMLContent:!0,formatterParams:s},i)}}function dy(r,e){var t;r.isGroup&&(t=e(r)),t||r.traverse(e)}function To(r,e){if(r)if(U(r))for(var t=0;t<r.length;t++)dy(r[t],e);else dy(r,e)}function lh(r){return!r||qe(r[1])<ah&&qe(r[2])<ah||qe(r[0])<ah&&qe(r[3])<ah}function ul(r,e){return r?se.copy(r,e):e.clone()}function uh(r,e){return e?cu(r||qt(),e):void 0}function xy(r){return{z:r.get("z")||0,zlevel:r.get("zlevel")||0}}function sU(r){var e=-1/0,t=1/0;dy(r,function(a){n(a),n(a.getTextContent()),n(a.getTextGuideLine())});function n(a){if(!(!a||a.isGroup)){var o=a.currentStates;if(o.length)for(var s=0;s<o.length;s++)i(a.states[o[s]]);i(a)}}function i(a){if(a){var o=a.z2;o>e&&(e=o),o<t&&(t=o)}}return t>e&&(t=e=0),{min:t,max:e}}function _y(r,e,t){zE(r,e,t,-1/0)}function zE(r,e,t,n){if(r.ignoreModelZ)return n;var i=r.getTextContent(),a=r.getTextGuideLine(),o=r.isGroup;if(o)for(var s=r.childrenRef(),l=0;l<s.length;l++)n=ge(zE(s[l],e,t,n),n);else r.z=e,r.zlevel=t,n=ge(r.z2||0,n);if(i&&(i.z=e,i.zlevel=t,isFinite(n)&&(i.z2=n+2)),a){var u=r.textGuideLineConfig;a.z=e,a.zlevel=t,isFinite(n)&&(a.z2=n+(u&&u.showAbove?1:-1))}return n}function lU(r){return r.animation={duration:0},r}function uU(r,e){return e?cu(ju.transform,e):ri(ju.transform),ju.decomposeTransform(),Yi(r,ju),r}function fU(r){var e=r.getZr().painter;return e.getType()==="canvas"?e:null}var hy,Vn,ua,vy,my,Ju,XB,jB,QB,We,ah,ju,ze=T(()=>{"use strict";Z1();ni();cr();ct();Za();ho();nl();Ou();Q1();tE();sE();uE();hE();vE();wg();gE();_E();SE();ly();wE();EE();Tt();AE();vu();LE();Cp();I();wr();Zu();we();hy={},Vn=["x","y"],ua=["width","height"],vy=0,my=1,Ju=2;XB=X1;jB=K1;QB=ra;We=[0,0,0,0];ah=1e-5;ju=new qi;ju.transform=qt();sn("circle",Yu);sn("ellipse",ty);sn("sector",an);sn("ring",ny);sn("polygon",oy);sn("polyline",_o);sn("rect",Oe);sn("line",on);sn("bezierCurve",sy);sn("arc",Ku)});function GE(r,e){for(var t=0;t<Qt.length;t++){var n=Qt[t],i=e[n],a=r.ensureState(n);a.style=a.style||{},a.style.text=i}var o=r.currentStates.slice();r.clearStates(!0),r.setStyle({text:e.normal}),r.useStates(o,!0)}function by(r,e,t){var n=r.labelFetcher,i=r.labelDataIndex,a=r.labelDimIndex,o=e.normal,s;n&&(s=n.getFormattedLabel(i,"normal",null,a,o&&o.get("formatter"),t!=null?{interpolatedValue:t}:null)),s==null&&(s=j(r.defaultText)?r.defaultText(i,r,t):r.defaultText);for(var l={normal:s},u=0;u<Qt.length;u++){var f=Qt[u],c=e[f];l[f]=$(n?n.getFormattedLabel(i,f,null,a,c&&c.get("formatter")):null,s)}return l}function Hn(r,e,t,n){t=t||fh;for(var i=r instanceof $e,a=!1,o=0;o<tl.length;o++){var s=e[tl[o]];if(s&&s.getShallow("show")){a=!0;break}}var l=i?r:r.getTextContent();if(a){i||(l||(l=new $e,r.setTextContent(l)),r.stateProxy&&(l.stateProxy=r.stateProxy));var u=by(t,e),f=e.normal,c=!!f.getShallow("show"),p=Hr(f,n&&n.normal,t,!1,!i);p.text=u.normal,i||r.setTextConfig(BE(f,t,!1));for(var o=0;o<Qt.length;o++){var h=Qt[o],s=e[h];if(s){var d=l.ensureState(h),v=!!$(s.getShallow("show"),c);if(v!==c&&(d.ignore=!v),d.style=Hr(s,n&&n[h],t,!0,!i),d.style.text=u[h],!i){var m=r.ensureState(h);m.textConfig=BE(s,t,!0)}}}l.silent=!!f.getShallow("silent"),l.style.x!=null&&(p.x=l.style.x),l.style.y!=null&&(p.y=l.style.y),l.ignore=!c,l.useStyle(p),l.dirty(),t.enableTextSetter&&(yi(l).setLabelText=function(g){var y=by(t,e,g);GE(l,y)})}else l&&(l.ignore=!0);r.dirty()}function Gn(r,e){e=e||"label";for(var t={normal:r.getModel(e)},n=0;n<Qt.length;n++){var i=Qt[n];t[i]=r.getModel([i,e])}return t}function Hr(r,e,t,n,i){var a={};return cU(a,r,t,n,i),e&&k(a,e),a}function BE(r,e,t){e=e||{};var n={},i,a=r.getShallow("rotate"),o=$(r.getShallow("distance"),t?null:5),s=r.getShallow("offset");return i=r.getShallow("position")||(t?null:"inside"),i==="outside"&&(i=e.defaultOutsidePosition||"top"),i!=null&&(n.position=i),s!=null&&(n.offset=s),a!=null&&(a*=Math.PI/180,n.rotation=a),o!=null&&(n.distance=o),n.outsideFill=r.get("color")==="inherit"?e.inheritColor||null:"auto",e.autoOverflowArea!=null&&(n.autoOverflowArea=e.autoOverflowArea),e.layoutRect!=null&&(n.layoutRect=e.layoutRect),n}function cU(r,e,t,n,i){t=t||fh;var a=e.ecModel,o=a&&a.option.textStyle,s=pU(e),l;if(s){l={};var u="richInheritPlainLabel",f=$(e.get(u),a?a.get(u):void 0);for(var c in s)if(s.hasOwnProperty(c)){var p=e.getModel(["rich",c]);HE(l[c]={},p,o,e,f,t,n,i,!1,!0)}}l&&(r.rich=l);var h=e.get("overflow");h&&(r.overflow=h);var d=e.get("lineOverflow");d&&(r.lineOverflow=d);var v=r,m=e.get("minMargin");if(m!=null)m=he(m)?m/2:0,v.margin=[m,m,m,m],v.__marginType=Eo.minMargin;else{var g=e.get("textMargin");g!=null&&(v.margin=Ms(g),v.__marginType=Eo.textMargin)}HE(r,e,o,null,null,t,n,i,!0,!1)}function pU(r){for(var e;r&&r!==r.ecModel;){var t=(r.option||fh).rich;if(t){e=e||{};for(var n=oe(t),i=0;i<n.length;i++){var a=n[i];e[a]=1}}r=r.parentModel}return e}function HE(r,e,t,n,i,a,o,s,l,u){t=!o&&t||fh;var f=a&&a.inheritColor,c=e.getShallow("color"),p=e.getShallow("textBorderColor"),h=$(e.getShallow("opacity"),t.opacity);(c==="inherit"||c==="auto")&&(f?c=f:c=null),(p==="inherit"||p==="auto")&&(f?p=f:p=null),s||(c=c||t.color,p=p||t.textBorderColor),c!=null&&(r.fill=c),p!=null&&(r.stroke=p);var d=$(e.getShallow("textBorderWidth"),t.textBorderWidth);d!=null&&(r.lineWidth=d);var v=$(e.getShallow("textBorderType"),t.textBorderType);v!=null&&(r.lineDash=v);var m=$(e.getShallow("textBorderDashOffset"),t.textBorderDashOffset);m!=null&&(r.lineDashOffset=m),!o&&h==null&&!u&&(h=a&&a.defaultOpacity),h!=null&&(r.opacity=h),!o&&!s&&r.fill==null&&a.inheritColor&&(r.fill=a.inheritColor);for(var g=0;g<UE.length;g++){var y=UE[g],x=i!==!1&&n?xr(e.getShallow(y),n.getShallow(y),t[y]):$(e.getShallow(y),t[y]);x!=null&&(r[y]=x)}for(var g=0;g<FE.length;g++){var y=FE[g],x=e.getShallow(y);x!=null&&(r[y]=x)}if(r.verticalAlign==null){var _=e.getShallow("baseline");_!=null&&(r.verticalAlign=_)}if(!l||!a.disableBox){for(var g=0;g<VE.length;g++){var y=VE[g],x=e.getShallow(y);x!=null&&(r[y]=x)}var b=e.getShallow("borderType");b!=null&&(r.borderDash=b),(r.backgroundColor==="auto"||r.backgroundColor==="inherit")&&f&&(r.backgroundColor=f),(r.borderColor==="auto"||r.borderColor==="inherit")&&f&&(r.borderColor=f)}}function $E(r,e){var t=e&&e.getModel("textStyle");return ur([r.fontStyle||t&&t.getShallow("fontStyle")||"",r.fontWeight||t&&t.getShallow("fontWeight")||"",(r.fontSize||t&&t.getShallow("fontSize")||12)+"px",r.fontFamily||t&&t.getShallow("fontFamily")||"sans-serif"].join(" "))}function WE(r,e,t,n){if(r){var i=yi(r);i.prevValue=i.value,i.value=t;var a=e.normal;i.valueAnimation=a.get("valueAnimation"),i.valueAnimation&&(i.precision=a.get("precision"),i.defaultInterpolatedText=n,i.statesModels=e)}}function YE(r,e,t,n,i){var a=yi(r);if(!a.valueAnimation||a.prevValue===a.value)return;var o=a.defaultInterpolatedText,s=$(a.interpolatedValue,a.prevValue),l=a.value;function u(f){var c=Ip(t,a.precision,s,l,f);a.interpolatedValue=f===1?null:c;var p=by({labelDataIndex:e,labelFetcher:i,defaultText:o?o(c):c+""},a.statesModels,c);GE(r,p)}r.percent=0,(a.prevValue==null?Je:Ve)(r,{percent:1},n,e,null,u)}var fh,UE,FE,VE,yi,Eo,Er=T(()=>{"use strict";Ou();I();Un();ne();ze();fh={};UE=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],FE=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],VE=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];yi=ae();Eo={minMargin:1,textMargin:2}});var hU,Sy,wy,dU,qE,XE=T(()=>{"use strict";Er();Ou();hU=["textStyle","color"],Sy=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],wy=new $e,dU=(function(){function r(){}return r.prototype.getTextColor=function(e){var t=this.ecModel;return this.getShallow("color")||(!e&&t?t.get(hU):null)},r.prototype.getFont=function(){return $E({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},r.prototype.getTextRect=function(e){for(var t={text:e,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<Sy.length;n++)t[Sy[n]]=this.getShallow(Sy[n]);return wy.useStyle(t),wy.update(),wy.getBoundingRect()},r})(),qE=dU});var Ty,vU,KE,Ey=T(()=>{"use strict";lu();Ty=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],vU=En(Ty),KE=(function(){function r(){}return r.prototype.getLineStyle=function(e){return vU(this,e)},r})()});var Ay,mU,ZE,Cy=T(()=>{"use strict";lu();Ay=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],mU=En(Ay),ZE=(function(){function r(){}return r.prototype.getItemStyle=function(e,t){return mU(this,e,t)},r})()});var Ao,ot,$n=T(()=>{"use strict";Or();Tn();pw();XE();Ey();Cy();I();Ao=(function(){function r(e,t,n){this.parentModel=t,this.ecModel=n,this.option=e}return r.prototype.init=function(e,t,n){for(var i=[],a=3;a<arguments.length;a++)i[a-3]=arguments[a]},r.prototype.mergeOption=function(e,t){Ee(this.option,e,!0)},r.prototype.get=function(e,t){return e==null?this.option:this._doGet(this.parsePath(e),!t&&this.parentModel)},r.prototype.getShallow=function(e,t){var n=this.option,i=n==null?n:n[e];if(i==null&&!t){var a=this.parentModel;a&&(i=a.getShallow(e))}return i},r.prototype.getModel=function(e,t){var n=e!=null,i=n?this.parsePath(e):null,a=n?this._doGet(i):this.option;return t=t||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),new r(a,t,this.ecModel)},r.prototype.isEmpty=function(){return this.option==null},r.prototype.restoreData=function(){},r.prototype.clone=function(){var e=this.constructor;return new e(ue(this.option))},r.prototype.parsePath=function(e){return typeof e=="string"?e.split("."):e},r.prototype.resolveParentPath=function(e){return e},r.prototype.isAnimationEnabled=function(){if(!Pe.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},r.prototype._doGet=function(e,t){var n=this.option;if(!e)return n;for(var i=0;i<e.length&&!(e[i]&&(n=n&&typeof n=="object"?n[e[i]]:null,n==null));i++);return n==null&&t&&(n=t._doGet(this.resolveParentPath(e),t.parentModel)),n},r})();Ls(Ao);fw(Ao);Yt(Ao,KE);Yt(Ao,ZE);Yt(Ao,cw);Yt(Ao,qE);ot=Ao});function ef(r){return r==null?0:r.length||1}function jE(r){return r}var gU,JE,QE=T(()=>{"use strict";gU=(function(){function r(e,t,n,i,a,o){this._old=e,this._new=t,this._oldKeyGetter=n||jE,this._newKeyGetter=i||jE,this.context=a,this._diffModeMultiple=o==="multiple"}return r.prototype.add=function(e){return this._add=e,this},r.prototype.update=function(e){return this._update=e,this},r.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},r.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},r.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},r.prototype.remove=function(e){return this._remove=e,this},r.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},r.prototype._executeOneToOne=function(){var e=this._old,t=this._new,n={},i=new Array(e.length),a=new Array(t.length);this._initIndexMap(e,null,i,"_oldKeyGetter"),this._initIndexMap(t,n,a,"_newKeyGetter");for(var o=0;o<e.length;o++){var s=i[o],l=n[s],u=ef(l);if(u>1){var f=l.shift();l.length===1&&(n[s]=l[0]),this._update&&this._update(f,o)}else u===1?(n[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(a,n)},r.prototype._executeMultiple=function(){var e=this._old,t=this._new,n={},i={},a=[],o=[];this._initIndexMap(e,n,a,"_oldKeyGetter"),this._initIndexMap(t,i,o,"_newKeyGetter");for(var s=0;s<a.length;s++){var l=a[s],u=n[l],f=i[l],c=ef(u),p=ef(f);if(c>1&&p===1)this._updateManyToOne&&this._updateManyToOne(f,u),i[l]=null;else if(c===1&&p>1)this._updateOneToMany&&this._updateOneToMany(f,u),i[l]=null;else if(c===1&&p===1)this._update&&this._update(f,u),i[l]=null;else if(c>1&&p>1)this._updateManyToMany&&this._updateManyToMany(f,u),i[l]=null;else if(c>1)for(var h=0;h<c;h++)this._remove&&this._remove(u[h]);else this._remove&&this._remove(u)}this._performRestAdd(o,i)},r.prototype._performRestAdd=function(e,t){for(var n=0;n<e.length;n++){var i=e[n],a=t[i],o=ef(a);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(a[s]);else o===1&&this._add&&this._add(a);t[i]=null}},r.prototype._initIndexMap=function(e,t,n,i){for(var a=this._diffModeMultiple,o=0;o<e.length;o++){var s="_ec_"+this[i](e[o],o);if(a||(n[o]=s),!!t){var l=t[s],u=ef(l);u===0?(t[s]=o,a&&n.push(s)):u===1?t[s]=[l,o]:l.push(o)}}},r})(),JE=gU});function tA(r){eA(r).datasetMap=X()}function rA(r,e,t){var n={},i=ch(e);if(!i||!r)return n;var a=[],o=[],s=e.ecModel,l=eA(s).datasetMap,u=i.uid+"_"+t.seriesLayoutBy,f,c;r=r.slice(),A(r,function(v,m){var g=Y(v)?v:r[m]={name:v};g.type==="ordinal"&&f==null&&(f=m,c=d(g)),n[g.name]=[]});var p=l.get(u)||l.set(u,{categoryWayDim:c,valueWayDim:0});A(r,function(v,m){var g=v.name,y=d(v);if(f==null){var x=p.valueWayDim;h(n[g],x,y),h(o,x,y),p.valueWayDim+=y}else if(f===m)h(n[g],0,y),h(a,0,y);else{var x=p.categoryWayDim;h(n[g],x,y),h(o,x,y),p.categoryWayDim+=y}});function h(v,m,g){for(var y=0;y<g;y++)v.push(m+y)}function d(v){var m=v.dimsDef;return m?m.length:1}return a.length&&(n.itemName=a),o.length&&(n.seriesName=o),n}function nA(r,e,t){var n={},i=ch(r);if(!i)return n;var a=e.sourceFormat,o=e.dimensionsDefine,s;(a===Vt||a===pr)&&A(o,function(f,c){(Y(f)?f.name:f)==="name"&&(s=c)});var l=(function(){for(var f={},c={},p=[],h=0,d=Math.min(5,t);h<d;h++){var v=aA(e.data,a,e.seriesLayoutBy,o,e.startIndex,h);p.push(v);var m=v===bt.Not;if(m&&f.v==null&&h!==s&&(f.v=h),(f.n==null||f.n===f.v||!m&&p[f.n]===bt.Not)&&(f.n=h),g(f)&&p[f.n]!==bt.Not)return f;m||(v===bt.Might&&c.v==null&&h!==s&&(c.v=h),(c.n==null||c.n===c.v)&&(c.n=h))}function g(y){return y.v!=null&&y.n!=null}return g(f)?f:g(c)?c:null})();if(l){n.value=[l.v];var u=s??l.n;n.itemName=[u],n.seriesName=[u]}return n}function ch(r){var e=r.get("data",!0);if(!e)return js(r.ecModel,"dataset",{index:r.get("datasetIndex",!0),id:r.get("datasetId",!0)},Pt).models[0]}function iA(r){return!r.get("transform",!0)&&!r.get("fromTransformResult",!0)?[]:js(r.ecModel,"dataset",{index:r.get("fromDatasetIndex",!0),id:r.get("fromDatasetId",!0)},Pt).models}function ph(r,e){return aA(r.data,r.sourceFormat,r.seriesLayoutBy,r.dimensionsDefine,r.startIndex,e)}function aA(r,e,t,n,i,a){var o,s=5;if(nt(r))return bt.Not;var l,u;if(n){var f=n[a];Y(f)?(l=f.name,u=f.type):G(f)&&(l=f)}if(u!=null)return u==="ordinal"?bt.Must:bt.Not;if(e===vt){var c=r;if(t===Bn){for(var p=c[a],h=0;h<(p||[]).length&&h<s;h++)if((o=_(p[i+h]))!=null)return o}else for(var h=0;h<c.length&&h<s;h++){var d=c[i+h];if(d&&(o=_(d[a]))!=null)return o}}else if(e===Vt){var v=r;if(!l)return bt.Not;for(var h=0;h<v.length&&h<s;h++){var m=v[h];if(m&&(o=_(m[l]))!=null)return o}}else if(e===pr){var g=r;if(!l)return bt.Not;var p=g[l];if(!p||nt(p))return bt.Not;for(var h=0;h<p.length&&h<s;h++)if((o=_(p[h]))!=null)return o}else if(e===_t)for(var y=r,h=0;h<y.length&&h<s;h++){var m=y[h],x=hi(m);if(!U(x))return bt.Not;if((o=_(x[a]))!=null)return o}function _(b){var S=G(b);if(b!=null&&isFinite(Number(b))&&b!=="")return S?bt.Might:bt.Not;if(S&&b!=="-")return bt.Must}return bt.Not}var bt,eA,Co=T(()=>{"use strict";ne();I();Jt();bt={Must:1,Might:2,Not:3},eA=ae()});function fl(r){return r instanceof hh}function tf(r,e,t){t=t||My(r);var n=e.seriesLayoutBy,i=yU(r,t,n,e.sourceHeader,e.dimensions),a=new hh({data:r,sourceFormat:t,seriesLayoutBy:n,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:ue(e)});return a}function cl(r){return new hh({data:r,sourceFormat:nt(r)?Tr:_t})}function lA(r){return new hh({data:r.data,sourceFormat:r.sourceFormat,seriesLayoutBy:r.seriesLayoutBy,dimensionsDefine:ue(r.dimensionsDefine),startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount})}function My(r){var e=Ug;if(nt(r))e=Tr;else if(U(r)){r.length===0&&(e=vt);for(var t=0,n=r.length;t<n;t++){var i=r[t];if(i!=null){if(U(i)||nt(i)){e=vt;break}else if(Y(i)){e=Vt;break}}}}else if(Y(r)){for(var a in r)if(Ye(r,a)&&dt(r[a])){e=pr;break}}return e}function yU(r,e,t,n,i){var a,o;if(!r)return{dimensionsDefine:oA(i),startIndex:o,dimensionsDetectedCount:a};if(e===vt){var s=r;n==="auto"||n==null?sA(function(u){u!=null&&u!=="-"&&(G(u)?o==null&&(o=1):o=0)},t,s,10):o=he(n)?n:n?1:0,!i&&o===1&&(i=[],sA(function(u,f){i[f]=u!=null?u+"":""},t,s,1/0)),a=i?i.length:t===Bn?s.length:s[0]?s[0].length:null}else if(e===Vt)i||(i=xU(r));else if(e===pr)i||(i=[],A(r,function(u,f){i.push(f)}));else if(e===_t){var l=hi(r[0]);a=U(l)&&l.length||1}return{startIndex:o,dimensionsDefine:oA(i),dimensionsDetectedCount:a}}function xU(r){for(var e=0,t;e<r.length&&!(t=r[e++]););if(t)return oe(t)}function oA(r){if(r){var e=X();return F(r,function(t,n){t=Y(t)?t:{name:t};var i={name:t.name,displayName:t.displayName,type:t.type};if(i.name==null)return i;i.name+="",i.displayName==null&&(i.displayName=i.name);var a=e.get(i.name);return a?i.name+="-"+a.count++:e.set(i.name,{count:1}),i})}}function sA(r,e,t,n){if(e===Bn)for(var i=0;i<t.length&&i<n;i++)r(t[i]?t[i][0]:null,i);else for(var a=t[0]||[],i=0;i<a.length&&i<n;i++)r(a[i],i)}function dh(r){var e=r.sourceFormat;return e===Vt||e===pr}var hh,xi=T(()=>{"use strict";I();Jt();ne();Co();hh=(function(){function r(e){this.data=e.data||(e.sourceFormat===pr?{}:[]),this.sourceFormat=e.sourceFormat||Ug,this.seriesLayoutBy=e.seriesLayoutBy||jt,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var n=0;n<t.length;n++){var i=t[n];i.type==null&&ph(this,n)===bt.Must&&(i.type="ordinal")}}return r})()});function Ly(r,e){var t=_U[Iy(r,e)];return t}function Py(r,e){var t=bU[Iy(r,e)];return t}function Oy(r){var e=SU[r];return e}function Iy(r,e){return r===vt?r+"_"+e:r}function _i(r,e,t){if(r){var n=r.getRawDataItem(e);if(n!=null){var i=r.getStore(),a=i.getSource().sourceFormat;if(t!=null){var o=r.getDimensionIndex(t),s=i.getDimensionProperty(o);return Oy(a)(n,o,s)}else{var l=n;return a===_t&&(l=hi(n)),l}}}}var Mo,Do,Lo,Po,uA,fA,mh,vh,UK,cA,_U,pA,bU,Dy,SU,Oo=T(()=>{"use strict";I();ne();xi();Jt();Pp();mh=(function(){function r(e,t){var n=fl(e)?e:cl(e);this._source=n;var i=this._data=n.data,a=n.sourceFormat,o=n.seriesLayoutBy;if(a===Tr&&(this._offset=0,this._dimSize=t,this._data=i),0)var s;fA(this,i,n)}return r.prototype.getSource=function(){return this._source},r.prototype.count=function(){return 0},r.prototype.getItem=function(e,t){},r.prototype.appendData=function(e){},r.prototype.clean=function(){},r.protoInitialize=(function(){var e=r.prototype;e.pure=!1,e.persistent=!0})(),r.internalField=(function(){var e;fA=function(o,s,l){var u=l.sourceFormat,f=l.seriesLayoutBy,c=l.startIndex,p=l.dimensionsDefine,h=uA[Iy(u,f)];if(k(o,h),u===Tr)o.getItem=t,o.count=i,o.fillStorage=n;else{var d=Ly(u,f);o.getItem=Le(d,null,s,c,p);var v=Py(u,f);o.count=Le(v,null,s,c,p)}};var t=function(o,s){o=o-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,f=u*o,c=0;c<u;c++)s[c]=l[f+c];return s},n=function(o,s,l,u){for(var f=this._data,c=this._dimSize,p=0;p<c;p++){for(var h=u[p],d=h[0]==null?1/0:h[0],v=h[1]==null?-1/0:h[1],m=s-o,g=l[p],y=0;y<m;y++){var x=f[y*c+p];g[o+y]=x,x<d&&(d=x),x>v&&(v=x)}h[0]=d,h[1]=v}},i=function(){return this._data?this._data.length/this._dimSize:0};uA=(e={},e[vt+"_"+jt]={pure:!0,appendData:a},e[vt+"_"+Bn]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[Vt]={pure:!0,appendData:a},e[pr]={pure:!0,appendData:function(o){var s=this._data;A(o,function(l,u){for(var f=s[u]||(s[u]=[]),c=0;c<(l||[]).length;c++)f.push(l[c])})}},e[_t]={appendData:a},e[Tr]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},e);function a(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}})(),r})(),vh=function(r){U(r)||Ig("series.data or dataset.source must be an array.")},UK=(Mo={},Mo[vt+"_"+jt]=vh,Mo[vt+"_"+Bn]=vh,Mo[Vt]=vh,Mo[pr]=function(r,e){for(var t=0;t<e.length;t++){var n=e[t].name;n==null&&Ig("dimension name must not be null/undefined.")}},Mo[_t]=vh,Mo),cA=function(r,e,t,n){return r[n]},_U=(Do={},Do[vt+"_"+jt]=function(r,e,t,n){return r[n+e]},Do[vt+"_"+Bn]=function(r,e,t,n,i){n+=e;for(var a=i||[],o=r,s=0;s<o.length;s++){var l=o[s];a[s]=l?l[n]:null}return a},Do[Vt]=cA,Do[pr]=function(r,e,t,n,i){for(var a=i||[],o=0;o<t.length;o++){var s=t[o].name,l=s!=null?r[s]:null;a[o]=l?l[n]:null}return a},Do[_t]=cA,Do);pA=function(r,e,t){return r.length},bU=(Lo={},Lo[vt+"_"+jt]=function(r,e,t){return Math.max(0,r.length-e)},Lo[vt+"_"+Bn]=function(r,e,t){var n=r[0];return n?Math.max(0,n.length-e):0},Lo[Vt]=pA,Lo[pr]=function(r,e,t){var n=t[0].name,i=n!=null?r[n]:null;return i?i.length:0},Lo[_t]=pA,Lo);Dy=function(r,e,t){return r[e]},SU=(Po={},Po[vt]=Dy,Po[Vt]=function(r,e,t){return r[t]},Po[pr]=Dy,Po[_t]=function(r,e,t){var n=hi(r);return n instanceof Array?n[e]:n},Po[Tr]=Dy,Po)});function hA(r,e){var t={},n=t.encode={},i=X(),a=[],o=[],s={};A(r.dimensions,function(p){var h=r.getDimensionInfo(p),d=h.coordDim;if(d){var v=h.coordDimIndex;Ry(n,d)[v]=p,h.isExtraCoord||(i.set(d,1),TU(h.type)&&(a[0]=p),Ry(s,d)[v]=r.getDimensionIndex(h.name)),h.defaultTooltip&&o.push(p)}Bp.each(function(m,g){var y=Ry(n,g),x=h.otherDims[g];x!=null&&x!==!1&&(y[x]=h.name)})});var l=[],u={};i.each(function(p,h){var d=n[h];u[h]=d[0],l=l.concat(d)}),t.dataDimsOnCoord=l,t.dataDimIndicesOnCoord=F(l,function(p){return r.getDimensionInfo(p).storeDimIndex}),t.encodeFirstDimNotExtra=u;var f=n.label;f&&f.length&&(a=f.slice());var c=n.tooltip;return c&&c.length?o=c.slice():o.length||(o=a.slice()),n.defaultedLabel=a,n.defaultedTooltip=o,t.userOutput=new wU(s,e),t}function Ry(r,e){return r.hasOwnProperty(e)||(r[e]=[]),r[e]}function dA(r){return r==="category"?"ordinal":r==="time"?"time":"float"}function TU(r){return!(r==="ordinal"||r==="time")}var wU,Ny=T(()=>{"use strict";I();Jt();wU=(function(){function r(e,t){this._encode=e,this._schema=t}return r.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},r.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},r})()});var EU,pl,ky=T(()=>{"use strict";I();EU=(function(){function r(e){this.otherDims={},e!=null&&k(this,e)}return r})(),pl=EU});function hl(r,e){var t=e&&e.type;return t==="ordinal"?r:(t==="time"&&!he(r)&&r!=null&&r!=="-"&&(r=+ci(r)),r==null||r===""?NaN:Number(r))}function gh(r){var e="",t=-1/0,n=-1/0,i=1/0,a=1/0;return r&&(r.g!=null&&(e+="G"+r.g,t=r.g),r.ge!=null&&(e+="GE"+r.ge,n=r.ge),r.l!=null&&(e+="L"+r.l,i=r.l),r.le!=null&&(e+="LE"+r.le,a=r.le)),{key:e,g:t,ge:n,l:i,le:a}}function yh(r,e){return e>r.g&&e>=r.ge&&e<r.l&&e<=r.le}var KK,AU,ZK,jK,JK,xh=T(()=>{"use strict";we();I();Pp();KK=X({number:function(r){return parseFloat(r)},time:function(r){return+ci(r)},trim:function(r){return G(r)?ur(r):r}}),AU={lt:function(r,e){return r<e},lte:function(r,e){return r<=e},gt:function(r,e){return r>e},gte:function(r,e){return r>=e}},ZK=(function(){function r(e,t){if(!he(t)){var n="";Ft(n)}this._opFn=AU[e],this._rvalFloat=pi(t)}return r.prototype.evaluate=function(e){return he(e)?this._opFn(e,this._rvalFloat):this._opFn(pi(e),this._rvalFloat)},r})(),jK=(function(){function r(e,t){var n=e==="desc";this._resultLT=n?1:-1,t==null&&(t=n?"min":"max"),this._incomparable=t==="min"?-1/0:1/0}return r.prototype.evaluate=function(e,t){var n=he(e)?e:pi(e),i=he(t)?t:pi(t),a=isNaN(n),o=isNaN(i);if(a&&(n=this._incomparable),o&&(i=this._incomparable),a&&o){var s=G(e),l=G(t);s&&(n=l?e:0),l&&(i=s?t:0)}return n<i?this._resultLT:n>i?-this._resultLT:0},r})(),JK=(function(){function r(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=pi(t)}return r.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var n=typeof e;n!==this._rvalTypeof&&(n==="number"||this._rvalTypeof==="number")&&(t=pi(e)===this._rvalFloat)}return this._isEQ?t:!t},r})()});function dl(r){return r>65535?CU:MU}function DU(r){var e=r.constructor;return e===Array?r.slice():new e(r)}function mA(r,e,t,n,i){var a=gA[t||"float"];if(i){var o=r[e],s=o&&o.length;if(s!==n){for(var l=new a(n),u=0;u<s;u++)l[u]=o[u];r[e]=l}}else r[e]=new a(n)}var CU,MU,By,vA,gA,zy,LU,rf,_h=T(()=>{"use strict";I();Jt();xh();xi();ne();we();CU=typeof Uint32Array===oa?Array:Uint32Array,MU=typeof Uint16Array===oa?Array:Uint16Array,By=typeof Int32Array===oa?Array:Int32Array,vA=typeof Float64Array===oa?Array:Float64Array,gA={float:vA,int:By,ordinal:Array,number:Array,time:vA};LU=(function(){function r(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=X()}return r.prototype.initData=function(e,t,n){this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var i=e.getSource(),a=this.defaultDimValueGetter=zy[i.sourceFormat];this._dimValueGetter=n||a,this._rawExtent=[];var o=dh(i);this._dimensions=F(t,function(s){return{type:s.type,property:s.property}}),this._initDataFromProvider(0,e.count())},r.prototype.getProvider=function(){return this._provider},r.prototype.getSource=function(){return this._provider.getSource()},r.prototype.ensureCalculationDimension=function(e,t){var n=this._calcDimNameToIdx,i=this._dimensions,a=n.get(e);if(a!=null){if(i[a].type===t)return a}else a=i.length;return i[a]={type:t},n.set(e,a),this._chunks[a]=new gA[t||"float"](this._rawCount),this._rawExtent[a]=Ot(),a},r.prototype.collectOrdinalMeta=function(e,t){var n=this._chunks[e],i=this._dimensions[e],a=this._rawExtent,o=i.ordinalOffset||0,s=n.length;o===0&&(a[e]=Ot());for(var l=a[e],u=o;u<s;u++){var f=n[u]=t.parseAndCollect(n[u]);isNaN(f)||(l[0]=Math.min(f,l[0]),l[1]=Math.max(f,l[1]))}i.ordinalMeta=t,i.ordinalOffset=s,i.type="ordinal"},r.prototype.getOrdinalMeta=function(e){var t=this._dimensions[e],n=t.ordinalMeta;return n},r.prototype.getDimensionProperty=function(e){var t=this._dimensions[e];return t&&t.property},r.prototype.appendData=function(e){var t=this._provider,n=this.count();t.appendData(e);var i=t.count();return t.persistent||(i+=n),n<i&&this._initDataFromProvider(n,i,!0),[n,i]},r.prototype.appendValues=function(e,t){for(var n=this._chunks,i=this._dimensions,a=i.length,o=this._rawExtent,s=this.count(),l=s+Math.max(e.length,t||0),u=0;u<a;u++){var f=i[u];mA(n,u,f.type,l,!0)}for(var c=[],p=s;p<l;p++)for(var h=p-s,d=0;d<a;d++){var f=i[d],v=zy.arrayRows.call(this,e[h]||c,f.property,h,d);n[d][p]=v;var m=o[d];v<m[0]&&(m[0]=v),v>m[1]&&(m[1]=v)}return this._rawCount=this._count=l,{start:s,end:l}},r.prototype._initDataFromProvider=function(e,t,n){for(var i=this._provider,a=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=F(o,function(y){return y.property}),f=0;f<s;f++){var c=o[f];l[f]||(l[f]=Ot()),mA(a,f,c.type,t,n)}if(i.fillStorage)i.fillStorage(e,t,a,l);else for(var p=[],h=e;h<t;h++){p=i.getItem(h,p);for(var d=0;d<s;d++){var v=a[d],m=this._dimValueGetter(p,u[d],h,d);v[h]=m;var g=l[d];m<g[0]&&(g[0]=m),m>g[1]&&(g[1]=m)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=t,this._extent=[]},r.prototype.count=function(){return this._count},r.prototype.get=function(e,t){if(!(t>=0&&t<this._count))return NaN;var n=this._chunks[e];return n?n[this.getRawIndex(t)]:NaN},r.prototype.getValues=function(e,t){var n=[],i=[];if(t==null){t=e,e=[];for(var a=0;a<this._dimensions.length;a++)i.push(a)}else i=e;for(var a=0,o=i.length;a<o;a++)n.push(this.get(i[a],t));return n},r.prototype.getByRawIndex=function(e,t){if(!(t>=0&&t<this._rawCount))return NaN;var n=this._chunks[e];return n?n[t]:NaN},r.prototype.getSum=function(e){var t=this._chunks[e],n=0;if(t)for(var i=0,a=this.count();i<a;i++){var o=this.get(e,i);isNaN(o)||(n+=o)}return n},r.prototype.getMedian=function(e){var t=[];this.each([e],function(i){isNaN(i)||t.push(i)}),Xs(t);var n=this.count();return n===0?0:n%2===1?t[(n-1)/2]:(t[n/2]+t[n/2-1])/2},r.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,n=t[e];if(n!=null&&n<this._count&&n===e)return e;for(var i=0,a=this._count-1;i<=a;){var o=(i+a)/2|0;if(t[o]<e)i=o+1;else if(t[o]>e)a=o-1;else return o}return-1},r.prototype.getIndices=function(){var e,t=this._indices;if(t){var n=t.constructor,i=this._count;if(n===Array){e=new n(i);for(var a=0;a<i;a++)e[a]=t[a]}else e=new n(t.buffer,0,i)}else{var n=dl(this._rawCount);e=new n(this.count());for(var a=0;a<e.length;a++)e[a]=a}return e},r.prototype.filter=function(e,t){if(!this._count)return this;for(var n=this.clone(),i=n.count(),a=dl(n._rawCount),o=new a(i),s=[],l=e.length,u=0,f=e[0],c=n._chunks,p=0;p<i;p++){var h=void 0,d=n.getRawIndex(p);if(l===0)h=t(p);else if(l===1){var v=c[f][d];h=t(v,p)}else{for(var m=0;m<l;m++)s[m]=c[e[m]][d];s[m]=p,h=t.apply(null,s)}h&&(o[u++]=d)}return u<i&&(n._indices=o),n._count=u,n._extent=[],n._updateGetRawIdx(),n},r.prototype.selectRange=function(e){var t=this.clone(),n=t._count;if(!n)return this;var i=oe(e),a=i.length;if(!a)return this;var o=t.count(),s=dl(t._rawCount),l=new s(o),u=0,f=i[0],c=e[f][0],p=e[f][1],h=t._chunks,d=!1;if(!t._indices){var v=0;if(a===1){for(var m=h[i[0]],g=0;g<n;g++){var y=m[g];(y>=c&&y<=p||isNaN(y))&&(l[u++]=v),v++}d=!0}else if(a===2){for(var m=h[i[0]],x=h[i[1]],_=e[i[1]][0],b=e[i[1]][1],g=0;g<n;g++){var y=m[g],S=x[g];(y>=c&&y<=p||isNaN(y))&&(S>=_&&S<=b||isNaN(S))&&(l[u++]=v),v++}d=!0}}if(!d)if(a===1)for(var g=0;g<o;g++){var w=t.getRawIndex(g),y=h[i[0]][w];(y>=c&&y<=p||isNaN(y))&&(l[u++]=w)}else for(var g=0;g<o;g++){for(var C=!0,w=t.getRawIndex(g),M=0;M<a;M++){var E=i[M],y=h[E][w];(y<e[E][0]||y>e[E][1])&&(C=!1)}C&&(l[u++]=t.getRawIndex(g))}return u<o&&(t._indices=l),t._count=u,t._extent=[],t._updateGetRawIdx(),t},r.prototype.map=function(e,t){var n=this.clone(e);return this._updateDims(n,e,t),n},r.prototype.modify=function(e,t){this._updateDims(this,e,t)},r.prototype._updateDims=function(e,t,n){for(var i=e._chunks,a=[],o=t.length,s=e.count(),l=[],u=e._rawExtent,f=0;f<t.length;f++)u[t[f]]=Ot();for(var c=0;c<s;c++){for(var p=e.getRawIndex(c),h=0;h<o;h++)l[h]=i[t[h]][p];l[o]=c;var d=n&&n.apply(null,l);if(d!=null){typeof d!="object"&&(a[0]=d,d=a);for(var f=0;f<d.length;f++){var v=t[f],m=d[f],g=u[v],y=i[v];y&&(y[p]=m),m<g[0]&&(g[0]=m),m>g[1]&&(g[1]=m)}}}},r.prototype.lttbDownSample=function(e,t){var n=this.clone([e],!0),i=n._chunks,a=i[e],o=this.count(),s=0,l=Math.floor(1/t),u=this.getRawIndex(0),f,c,p,h=new(dl(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));h[s++]=u;for(var d=1;d<o-1;d+=l){for(var v=Math.min(d+l,o-1),m=Math.min(d+l*2,o),g=(m+v)/2,y=0,x=v;x<m;x++){var _=this.getRawIndex(x),b=a[_];isNaN(b)||(y+=b)}y/=m-v;var S=d,w=Math.min(d+l,o),C=d-1,M=a[u];f=-1,p=S;for(var E=-1,D=0,x=S;x<w;x++){var _=this.getRawIndex(x),b=a[_];if(isNaN(b)){D++,E<0&&(E=_);continue}c=Math.abs((C-g)*(b-M)-(C-x)*(y-M)),c>f&&(f=c,p=_)}D>0&&D<w-S&&(h[s++]=Math.min(E,p),p=Math.max(E,p)),h[s++]=p,u=p}return h[s++]=this.getRawIndex(o-1),n._count=s,n._indices=h,n.getRawIndex=this._getRawIdx,n},r.prototype.minmaxDownSample=function(e,t){for(var n=this.clone([e],!0),i=n._chunks,a=Math.floor(1/t),o=i[e],s=this.count(),l=new(dl(this._rawCount))(Math.ceil(s/a)*2),u=0,f=0;f<s;f+=a){var c=f,p=o[this.getRawIndex(c)],h=f,d=o[this.getRawIndex(h)],v=a;f+a>s&&(v=s-f);for(var m=0;m<v;m++){var g=this.getRawIndex(f+m),y=o[g];y<p&&(p=y,c=f+m),y>d&&(d=y,h=f+m)}var x=this.getRawIndex(c),_=this.getRawIndex(h);c<h?(l[u++]=x,l[u++]=_):(l[u++]=_,l[u++]=x)}return n._count=u,n._indices=l,n._updateGetRawIdx(),n},r.prototype.downSample=function(e,t,n,i){for(var a=this.clone([e],!0),o=a._chunks,s=[],l=Math.floor(1/t),u=o[e],f=this.count(),c=a._rawExtent[e]=Ot(),p=new(dl(this._rawCount))(Math.ceil(f/l)),h=0,d=0;d<f;d+=l){l>f-d&&(l=f-d,s.length=l);for(var v=0;v<l;v++){var m=this.getRawIndex(d+v);s[v]=u[m]}var g=n(s),y=this.getRawIndex(Math.min(d+i(s,g)||0,f-1));u[y]=g,g<c[0]&&(c[0]=g),g>c[1]&&(c[1]=g),p[h++]=y}return a._count=h,a._indices=p,a._updateGetRawIdx(),a},r.prototype.each=function(e,t){if(this._count)for(var n=e.length,i=this._chunks,a=0,o=this.count();a<o;a++){var s=this.getRawIndex(a);switch(n){case 0:t(a);break;case 1:t(i[e[0]][s],a);break;case 2:t(i[e[0]][s],i[e[1]][s],a);break;default:for(var l=0,u=[];l<n;l++)u[l]=i[e[l]][s];u[l]=a,t.apply(null,u)}}},r.prototype.getDataExtent=function(e,t){var n=this._chunks[e],i=Ot();if(!n)return i;var a=this.count(),o=!this._indices&&!t;if(o)return this._rawExtent[e].slice();var s=this._extent,l=s[e]||(s[e]={}),u=gh(t),f=u.key,c=l[f];if(c)return c.slice();for(var p=i[0],h=i[1],d=0;d<a;d++){var v=this.getRawIndex(d),m=n[v];(!t||yh(u,m))&&(m<p&&(p=m),m>h&&(h=m))}return l[f]=[p,h]},r.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var n=[],i=this._chunks,a=0;a<i.length;a++)n.push(i[a][t]);return n},r.prototype.clone=function(e,t){var n=new r,i=this._chunks,a=e&&yr(e,function(s,l){return s[l]=!0,s},{});if(a)for(var o=0;o<i.length;o++)n._chunks[o]=a[o]?DU(i[o]):i[o];else n._chunks=i;return this._copyCommonProps(n),t||(n._indices=this._cloneIndices()),n._updateGetRawIdx(),n},r.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=ue(this._extent),e._rawExtent=ue(this._rawExtent)},r.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,t=void 0;if(e===Array){var n=this._indices.length;t=new e(n);for(var i=0;i<n;i++)t[i]=this._indices[i]}else t=new e(this._indices);return t}return null},r.prototype._getRawIdxIdentity=function(e){return e},r.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},r.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},r.internalField=(function(){function e(t,n,i,a){return hl(t[a],this._dimensions[a])}zy={arrayRows:e,objectRows:function(t,n,i,a){return hl(t[n],this._dimensions[a])},keyedColumns:e,original:function(t,n,i,a){var o=t&&(t.value==null?t:t.value);return hl(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(t,n,i,a){return t[a]}}})(),r})(),rf=LU});function bh(r){return r instanceof Uy}function nf(r){for(var e=X(),t=0;t<(r||[]).length;t++){var n=r[t],i=Y(n)?n.name:n;i!=null&&e.get(i)==null&&e.set(i,t)}return e}function Fy(r){var e=PU(r);return e.dimNameMap||(e.dimNameMap=nf(r.dimensionsDefine))}function Vy(r){return r>30}var PU,OU,Uy,af=T(()=>{"use strict";I();ne();xi();PU=ae(),OU={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},Uy=(function(){function r(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return r.prototype.isDimensionOmitted=function(){return this._dimOmitted},r.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||(this._dimNameMap=Fy(this.source)))},r.prototype.getSourceDimensionIndex=function(e){return $(this._dimNameMap.get(e),-1)},r.prototype.getSourceDimension=function(e){var t=this.source.dimensionsDefine;if(t)return t[e]},r.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,t=dh(this.source),n=!Vy(e),i="",a=[],o=0,s=0;o<e;o++){var l=void 0,u=void 0,f=void 0,c=this.dimensions[s];if(c&&c.storeDimIndex===o)l=t?c.name:null,u=c.type,f=c.ordinalMeta,s++;else{var p=this.getSourceDimension(o);p&&(l=t?p.name:null,u=p.type)}a.push({property:l,type:u,ordinalMeta:f}),t&&l!=null&&(!c||!c.isCalculationCoord)&&(i+=n?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),i+="$",i+=OU[u]||"f",f&&(i+=f.uid),i+="$"}var h=this.source,d=[h.seriesLayoutBy,h.startIndex,i].join("$$");return{dimensions:a,hash:d}},r.prototype.makeOutputDimensionNames=function(){for(var e=[],t=0,n=0;t<this._fullDimCount;t++){var i=void 0,a=this.dimensions[n];if(a&&a.storeDimIndex===t)a.isCalculationCoord||(i=a.name),n++;else{var o=this.getSourceDimension(t);o&&(i=o.name)}e.push(i)}return e},r.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},r})()});var of,fa,IU,RU,yA,NU,kU,xA,Sh,sf,lf,Hy,uf,Gy,zU,wh,$y=T(()=>{"use strict";I();$n();QE();Oo();Ny();ky();Jt();ne();wr();xi();_h();af();of=Y,fa=F,IU=typeof Int32Array>"u"?Array:Int32Array,RU="e\0\0",yA=-1,NU=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],kU=["_approximateExtent"],zU=(function(){function r(e,t){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var n,i=!1;bh(e)?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(i=!0,n=e),n=n||["x","y"];for(var a={},o=[],s={},l=!1,u={},f=0;f<n.length;f++){var c=n[f],p=G(c)?new pl({name:c}):c instanceof pl?c:new pl(c),h=p.name;p.type=p.type||"float",p.coordDim||(p.coordDim=h,p.coordDimIndex=0);var d=p.otherDims=p.otherDims||{};o.push(h),a[h]=p,u[h]!=null&&(l=!0),p.createInvertedIndices&&(s[h]=[]),i&&(p.storeDimIndex=f),d.itemName===0&&(this._nameDimIdx=p.storeDimIndex),d.itemId===0&&(this._idDimIdx=p.storeDimIndex)}if(this.dimensions=o,this._dimInfos=a,this._initGetDimensionInfo(l),this.hostModel=t,this._invertedIndicesMap=s,this._dimOmitted){var v=this._dimIdxToName=X();A(o,function(m){v.set(a[m].storeDimIndex,m)})}}return r.prototype.getDimension=function(e){var t=this._recognizeDimIndex(e);if(t==null)return e;if(t=e,!this._dimOmitted)return this.dimensions[t];var n=this._dimIdxToName.get(t);if(n!=null)return n;var i=this._schema.getSourceDimension(t);if(i)return i.name},r.prototype.getDimensionIndex=function(e){var t=this._recognizeDimIndex(e);if(t!=null)return t;if(e==null)return-1;var n=this._getDimInfo(e);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},r.prototype._recognizeDimIndex=function(e){if(he(e)||e!=null&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},r.prototype._getStoreDimIndex=function(e){var t=this.getDimensionIndex(e);return t},r.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},r.prototype._initGetDimensionInfo=function(e){var t=this._dimInfos;this._getDimInfo=e?function(n){return t.hasOwnProperty(n)?t[n]:void 0}:function(n){return t[n]}},r.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},r.prototype.mapDimension=function(e,t){var n=this._dimSummary;if(t==null)return n.encodeFirstDimNotExtra[e];var i=n.encode[e];return i?i[t]:null},r.prototype.mapDimensionsAll=function(e){var t=this._dimSummary,n=t.encode[e];return(n||[]).slice()},r.prototype.getStore=function(){return this._store},r.prototype.initData=function(e,t,n){var i=this,a;if(e instanceof rf&&(a=e),!a){var o=this.dimensions,s=fl(e)||dt(e)?new mh(e,o.length):e;a=new rf;var l=fa(o,function(u){return{type:i._dimInfos[u].type,property:u}});a.initData(s,l,n)}this._store=a,this._nameList=(t||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,a.count()),this._dimSummary=hA(this,this._schema),this.userOutput=this._dimSummary.userOutput},r.prototype.appendData=function(e){var t=this._store.appendData(e);this._doInit(t[0],t[1])},r.prototype.appendValues=function(e,t){var n=this._store.appendValues(e,t&&t.length),i=n.start,a=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),t)for(var s=i;s<a;s++){var l=s-i;this._nameList[s]=t[l],o&&Gy(this,s)}},r.prototype._updateOrdinalMeta=function(){for(var e=this._store,t=this.dimensions,n=0;n<t.length;n++){var i=this._dimInfos[t[n]];i.ordinalMeta&&e.collectOrdinalMeta(i.storeDimIndex,i.ordinalMeta)}},r.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return this._idDimIdx==null&&e.getSource().sourceFormat!==Tr&&!e.fillStorage},r.prototype._doInit=function(e,t){if(!(e>=t)){var n=this._store,i=n.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=i.getSource().sourceFormat,l=s===_t;if(l&&!i.pure)for(var u=[],f=e;f<t;f++){var c=i.getItem(f,u);if(!this.hasItemOption&&a1(c)&&(this.hasItemOption=!0),c){var p=c.name;a[f]==null&&p!=null&&(a[f]=Sr(p,null));var h=c.id;o[f]==null&&h!=null&&(o[f]=Sr(h,null))}}if(this._shouldMakeIdFromName())for(var f=e;f<t;f++)Gy(this,f);xA(this)}},r.prototype.getApproximateExtent=function(e,t){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e),t)},r.prototype.setApproximateExtent=function(e,t){t=this.getDimension(t),this._approximateExtent[t]=e.slice()},r.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},r.prototype.setCalculationInfo=function(e,t){of(e)?k(this._calculationInfo,e):this._calculationInfo[e]=t},r.prototype.getName=function(e){var t=this.getRawIndex(e),n=this._nameList[t];return n==null&&this._nameDimIdx!=null&&(n=sf(this,this._nameDimIdx,t)),n==null&&(n=""),n},r.prototype._getCategory=function(e,t){var n=this._store.get(e,t),i=this._store.getOrdinalMeta(e);return i?i.categories[n]:n},r.prototype.getId=function(e){return Sh(this,this.getRawIndex(e))},r.prototype.count=function(){return this._store.count()},r.prototype.get=function(e,t){var n=this._store,i=this._dimInfos[e];if(i)return n.get(i.storeDimIndex,t)},r.prototype.getByRawIndex=function(e,t){var n=this._store,i=this._dimInfos[e];if(i)return n.getByRawIndex(i.storeDimIndex,t)},r.prototype.getIndices=function(){return this._store.getIndices()},r.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e),null)},r.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},r.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},r.prototype.getValues=function(e,t){var n=this,i=this._store;return U(e)?i.getValues(fa(e,function(a){return n._getStoreDimIndex(a)}),t):i.getValues(e)},r.prototype.hasValue=function(e){for(var t=this._dimSummary.dataDimIndicesOnCoord,n=0,i=t.length;n<i;n++)if(isNaN(this._store.get(t[n],e)))return!1;return!0},r.prototype.indexOfName=function(e){for(var t=0,n=this._store.count();t<n;t++)if(this.getName(t)===e)return t;return-1},r.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},r.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},r.prototype.rawIndexOf=function(e,t){var n=e&&this._invertedIndicesMap[e],i=n&&n[t];return i==null||isNaN(i)?yA:i},r.prototype.each=function(e,t,n){"use strict";j(e)&&(n=t,t=e,e=[]);var i=n||this,a=fa(lf(e),this._getStoreDimIndex,this);this._store.each(a,i?Le(t,i):t)},r.prototype.filterSelf=function(e,t,n){"use strict";j(e)&&(n=t,t=e,e=[]);var i=n||this,a=fa(lf(e),this._getStoreDimIndex,this);return this._store=this._store.filter(a,i?Le(t,i):t),this},r.prototype.selectRange=function(e){"use strict";var t=this,n={},i=oe(e),a=[];return A(i,function(o){var s=t._getStoreDimIndex(o);n[s]=e[o],a.push(s)}),this._store=this._store.selectRange(n),this},r.prototype.mapArray=function(e,t,n){"use strict";j(e)&&(n=t,t=e,e=[]),n=n||this;var i=[];return this.each(e,function(){i.push(t&&t.apply(this,arguments))},n),i},r.prototype.map=function(e,t,n,i){"use strict";var a=n||i||this,o=fa(lf(e),this._getStoreDimIndex,this),s=uf(this);return s._store=this._store.map(o,a?Le(t,a):t),s},r.prototype.modify=function(e,t,n,i){var a=this,o=n||i||this,s=fa(lf(e),this._getStoreDimIndex,this);this._store.modify(s,o?Le(t,o):t)},r.prototype.downSample=function(e,t,n,i){var a=uf(this);return a._store=this._store.downSample(this._getStoreDimIndex(e),t,n,i),a},r.prototype.minmaxDownSample=function(e,t){var n=uf(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),t),n},r.prototype.lttbDownSample=function(e,t){var n=uf(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(e),t),n},r.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},r.prototype.getItemModel=function(e){var t=this.hostModel,n=this.getRawDataItem(e);return new ot(n,t,t&&t.ecModel)},r.prototype.diff=function(e){var t=this;return new JE(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(n){return Sh(e,n)},function(n){return Sh(t,n)})},r.prototype.getVisual=function(e){var t=this._visual;return t&&t[e]},r.prototype.setVisual=function(e,t){this._visual=this._visual||{},of(e)?k(this._visual,e):this._visual[e]=t},r.prototype.getItemVisual=function(e,t){var n=this._itemVisuals[e],i=n&&n[t];return i??this.getVisual(t)},r.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},r.prototype.ensureUniqueItemVisual=function(e,t){var n=this._itemVisuals,i=n[e];i||(i=n[e]={});var a=i[t];return a==null&&(a=this.getVisual(t),U(a)?a=a.slice():of(a)&&(a=k({},a)),i[t]=a),a},r.prototype.setItemVisual=function(e,t,n){var i=this._itemVisuals[e]||{};this._itemVisuals[e]=i,of(t)?k(i,t):i[t]=n},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(e,t){of(e)?k(this._layout,e):this._layout[e]=t},r.prototype.getLayout=function(e){return this._layout[e]},r.prototype.getItemLayout=function(e){return this._itemLayouts[e]},r.prototype.setItemLayout=function(e,t,n){this._itemLayouts[e]=n?k(this._itemLayouts[e]||{},t):t},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(e,t){var n=this.hostModel&&this.hostModel.seriesIndex;g1(n,this.dataType,e,t),this._graphicEls[e]=t},r.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},r.prototype.eachItemGraphicEl=function(e,t){A(this._graphicEls,function(n,i){n&&e&&e.call(t,n,i)})},r.prototype.cloneShallow=function(e){return e||(e=new r(this._schema?this._schema:fa(this.dimensions,this._getDimInfo,this),this.hostModel)),Hy(e,this),e._store=this._store,e},r.prototype.wrapMethod=function(e,t){var n=this[e];j(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var i=n.apply(this,arguments);return t.apply(this,[i].concat(Nc(arguments)))})},r.internalField=(function(){xA=function(e){var t=e._invertedIndicesMap;A(t,function(n,i){var a=e._dimInfos[i],o=a.ordinalMeta,s=e._store;if(o){n=t[i]=new IU(o.categories.length);for(var l=0;l<n.length;l++)n[l]=yA;for(var l=0;l<s.count();l++)n[s.get(a.storeDimIndex,l)]=l}})},sf=function(e,t,n){return Sr(e._getCategory(t,n),null)},Sh=function(e,t){var n=e._idList[t];return n==null&&e._idDimIdx!=null&&(n=sf(e,e._idDimIdx,t)),n==null&&(n=RU+t),n},lf=function(e){return U(e)||(e=e!=null?[e]:[]),e},uf=function(e){var t=new r(e._schema?e._schema:fa(e.dimensions,e._getDimInfo,e),e.hostModel);return Hy(t,e),t},Hy=function(e,t){A(NU.concat(t.__wrappedMethods||[]),function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e.__wrappedMethods=t.__wrappedMethods,A(kU,function(n){e[n]=ue(t[n])}),e._calculationInfo=k({},t._calculationInfo)},Gy=function(e,t){var n=e._nameList,i=e._idList,a=e._nameDimIdx,o=e._idDimIdx,s=n[t],l=i[t];if(s==null&&a!=null&&(n[t]=s=sf(e,a,t)),l==null&&o!=null&&(i[t]=l=sf(e,o,t)),l==null&&s!=null){var u=e._nameRepeatCount,f=u[s]=(u[s]||0)+1;l=s,f>1&&(l+="__ec__"+f),i[t]=l}}})(),r})(),wh=zU});function ff(r,e){fl(r)||(r=cl(r)),e=e||{};var t=e.coordDimensions||[],n=e.dimensionsDefine||r.dimensionsDefine||[],i=X(),a=[],o=BU(r,t,n,e.dimensionsCount),s=e.canOmitUnusedDimensions&&Vy(o),l=n===r.dimensionsDefine,u=l?Fy(r):nf(n),f=e.encodeDefine;!f&&e.encodeDefaulter&&(f=e.encodeDefaulter(r,o));for(var c=X(f),p=new By(o),h=0;h<p.length;h++)p[h]=-1;function d(M){var E=p[M];if(E<0){var D=n[M],P=Y(D)?D:{name:D},L=new pl,O=P.name;O!=null&&u.get(O)!=null&&(L.name=L.displayName=O),P.type!=null&&(L.type=P.type),P.displayName!=null&&(L.displayName=P.displayName);var z=a.length;return p[M]=z,L.storeDimIndex=M,a.push(L),L}return a[E]}if(!s)for(var h=0;h<o;h++)d(h);c.each(function(M,E){var D=Ke(M).slice();if(D.length===1&&!G(D[0])&&D[0]<0){c.set(E,!1);return}var P=c.set(E,[]);A(D,function(L,O){var z=G(L)?u.get(L):L;z!=null&&z<o&&(P[O]=z,m(d(z),E,O))})});var v=0;A(t,function(M){var E,D,P,L;if(G(M))E=M,L={};else{L=M,E=L.name;var O=L.ordinalMeta;L.ordinalMeta=null,L=k({},L),L.ordinalMeta=O,D=L.dimsDef,P=L.otherDims,L.name=L.coordDim=L.coordDimIndex=L.dimsDef=L.otherDims=null}var z=c.get(E);if(z!==!1){if(z=Ke(z),!z.length)for(var N=0;N<(D&&D.length||1);N++){for(;v<o&&d(v).coordDim!=null;)v++;v<o&&z.push(v++)}A(z,function(V,B){var H=d(V);if(l&&L.type!=null&&(H.type=L.type),m(fe(H,L),E,B),H.name==null&&D){var W=D[B];!Y(W)&&(W={name:W}),H.name=H.displayName=W.name,H.defaultTooltip=W.defaultTooltip}P&&fe(H.otherDims,P)})}});function m(M,E,D){Bp.get(E)!=null?M.otherDims[E]=D:(M.coordDim=E,M.coordDimIndex=D,i.set(E,!0))}var g=e.generateCoord,y=e.generateCoordCount,x=y!=null;y=g?y||1:0;var _=g||"value";function b(M){M.name==null&&(M.name=M.coordDim)}if(s)A(a,function(M){b(M)}),a.sort(function(M,E){return M.storeDimIndex-E.storeDimIndex});else for(var S=0;S<o;S++){var w=d(S),C=w.coordDim;C==null&&(w.coordDim=UU(_,i,x),w.coordDimIndex=0,(!g||y<=0)&&(w.isExtraCoord=!0),y--),b(w),w.type==null&&(ph(r,S)===bt.Must||w.isExtraCoord&&(w.otherDims.itemName!=null||w.otherDims.seriesName!=null))&&(w.type="ordinal")}return Js(a,function(M){return M.name},function(M,E){E>0&&(M.name=M.name+(E-1))}),new Uy({source:r,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function BU(r,e,t,n){var i=Math.max(r.dimensionsDetectedCount||1,e.length,t.length,n||0);return A(e,function(a){var o;Y(a)&&(o=a.dimsDef)&&(i=Math.max(i,o.length))}),i}function UU(r,e,t){if(t||e.hasKey(r)){for(var n=0;e.hasKey(r+n);)n++;r+=n}return e.set(r,!0),r}var Wy=T(()=>{"use strict";Jt();ky();I();xi();_h();ne();Co();af()});function VU(r){return!!Th[r]}function _A(r){bA.set(r.fullType,{getCoord2:void 0}).getCoord2=r.getCoord2}function Ah(r){var e=r.getShallow("coord",!0),t=HU;if(e==null){var n=bA.get(r.type);n&&n.getCoord2&&(t=qy,e=n.getCoord2(r))}return{coord:e,from:t}}function $U(r,e){var t=r.getShallow("coordinateSystem"),n=r.getShallow("coordinateSystemUsage",!0),i=n!=null,a=vl;if(t){var o=r.mainType==="series";n==null&&(n=o?"data":"box"),n==="data"?(a=Eh,o||(a=vl)):n==="box"&&(a=GU,!o&&!VU(t)&&(a=vl))}return{coordSysType:t,kind:a}}function SA(r){var e=r.targetModel,t=r.coordSysType,n=r.coordSysProvider,i=r.isDefaultDataCoordSys,a=r.allowNotFound,o=$U(e,!0),s=o.kind,l=o.coordSysType;if(i&&s!==Eh&&(s=Eh,l=t),s===vl||l!==t)return vl;var u=n(t,e);return u?(s===Eh?e.coordinateSystem=u:e.boxCoordinateSystem=u,s):vl}var Th,Yy,FU,HU,qy,bA,vl,Eh,GU,cf,Io=T(()=>{"use strict";I();Th={},Yy={},FU=(function(){function r(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return r.prototype.create=function(e,t){this._nonSeriesBoxMasterList=n(Th,!0),this._normalMasterList=n(Yy,!1);function n(i,a){var o=[];return A(i,function(s,l){var u=s.create(e,t);o=o.concat(u||[])}),o}},r.prototype.update=function(e,t){A(this._normalMasterList,function(n){n.update&&n.update(e,t)})},r.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},r.register=function(e,t){if(e==="matrix"||e==="calendar"){Th[e]=t;return}Yy[e]=t},r.get=function(e){return Yy[e]||Th[e]},r})();HU=1,qy=2;bA=X();vl=0,Eh=1,GU=2;cf=FU});function wA(r){var e=r.get("coordinateSystem"),t=new WU(e),n=YU[e];if(n)return n(r,t,t.axisMap,t.categoryAxisMap),t}function ml(r){return r.get("type")==="category"}var WU,YU,TA=T(()=>{"use strict";I();ne();WU=(function(){function r(e){this.coordSysDims=[],this.axisMap=X(),this.categoryAxisMap=X(),this.coordSysName=e}return r})();YU={cartesian2d:function(r,e,t,n){var i=r.getReferringComponents("xAxis",Pt).models[0],a=r.getReferringComponents("yAxis",Pt).models[0];e.coordSysDims=["x","y"],t.set("x",i),t.set("y",a),ml(i)&&(n.set("x",i),e.firstCategoryDimIndex=0),ml(a)&&(n.set("y",a),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(r,e,t,n){var i=r.getReferringComponents("singleAxis",Pt).models[0];e.coordSysDims=["single"],t.set("single",i),ml(i)&&(n.set("single",i),e.firstCategoryDimIndex=0)},polar:function(r,e,t,n){var i=r.getReferringComponents("polar",Pt).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],t.set("radius",a),t.set("angle",o),ml(a)&&(n.set("radius",a),e.firstCategoryDimIndex=0),ml(o)&&(n.set("angle",o),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(r,e,t,n){e.coordSysDims=["lng","lat"]},parallel:function(r,e,t,n){var i=r.ecModel,a=i.getComponent("parallel",r.get("parallelIndex")),o=e.coordSysDims=a.dimensions.slice();A(a.parallelAxisIndex,function(s,l){var u=i.getComponent("parallelAxis",s),f=o[l];t.set(f,u),ml(u)&&(n.set(f,u),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=l))})},matrix:function(r,e,t,n){var i=r.getReferringComponents("matrix",Pt).models[0];e.coordSysDims=["x","y"];var a=i.getDimensionModel("x"),o=i.getDimensionModel("y");t.set("x",a),t.set("y",o),n.set("x",a),n.set("y",o)}}});function EA(r,e,t){t=t||{};var n=t.byIndex,i=t.stackedCoordDimension,a,o,s;qU(e)?a=e:(o=e.schema,a=o.dimensions,s=e.store);var l=!!(r&&r.get("stack")),u,f,c,p,h=!0;function d(_){return _.type!=="ordinal"&&_.type!=="time"}if(A(a,function(_,b){G(_)&&(a[b]=_={name:_}),d(_)||(h=!1)}),A(a,function(_,b){l&&!_.isExtraCoord&&(!n&&!u&&_.ordinalMeta&&(u=_),!f&&d(_)&&(!h||_.coordDim!=="x"&&_.coordDim!=="angle")&&(!i||i===_.coordDim)&&(f=_))}),f&&!n&&!u&&(n=!0),f){c="__\0ecstackresult_"+r.id,p="__\0ecstackedover_"+r.id,u&&(u.createInvertedIndices=!0);var v=f.coordDim,m=f.type,g=0;A(a,function(_){_.coordDim===v&&g++});var y={name:c,coordDim:v,coordDimIndex:g,type:m,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},x={name:p,coordDim:p,coordDimIndex:g+1,type:m,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(y.storeDimIndex=s.ensureCalculationDimension(p,m),x.storeDimIndex=s.ensureCalculationDimension(c,m)),o.appendCalculationDimension(y),o.appendCalculationDimension(x)):(a.push(y),a.push(x))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:n,stackedOverDimension:p,stackResultDimension:c}}function qU(r){return!bh(r.schema)}function bi(r,e){return!!e&&e===r.getCalculationInfo("stackedDimension")}function AA(r,e){return bi(r,e)?r.getCalculationInfo("stackResultDimension"):e}var gl=T(()=>{"use strict";I();af()});function XU(r,e){var t=r.get("coordinateSystem"),n=cf.get(t),i;return e&&e.coordSysDims&&(i=F(e.coordSysDims,function(a){var o={name:a},s=e.axisMap.get(a);if(s){var l=s.get("type");o.type=dA(l)}return o})),i||(i=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),i}function KU(r,e,t){var n,i;return t&&A(r,function(a,o){var s=a.coordDim,l=t.categoryAxisMap.get(s);l&&(n==null&&(n=o),a.ordinalMeta=l.getOrdinalMeta(),e&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(i=!0)}),!i&&n!=null&&(r[n].otherDims.itemName=0),n}function ZU(r,e,t){t=t||{};var n=e.getSourceManager(),i,a=!1;r?(a=!0,i=cl(r)):(i=n.getSource(),a=i.sourceFormat===_t);var o=wA(e),s=XU(e,o),l=t.useEncodeDefaulter,u=j(l)?l:l?Ne(rA,s,e):null,f={coordDimensions:s,generateCoord:t.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},c=ff(i,f),p=KU(c.dimensions,t.createInvertedIndices,o),h=a?null:n.getSharedDataStore(c),d=EA(e,{schema:c,store:h}),v=new wh(c,e);v.setCalculationInfo(d);var m=p!=null&&jU(i)?function(g,y,x,_){return _===p?x:this.defaultDimValueGetter(g,y,x,_)}:null;return v.hasItemOption=!1,v.initData(a?i:h,null,m),v}function jU(r){if(r.sourceFormat===_t){var e=JU(r.data||[]);return!U(hi(e))}}function JU(r){for(var e=0;e<r.length&&r[e]==null;)e++;return r[e]}var ca,pf=T(()=>{"use strict";I();$y();Wy();Ny();ne();Io();TA();xi();gl();Co();Jt();ca=ZU});function pa(r){return[r||"",QU++].join("_")}function CA(r){var e={};r.registerSubTypeDefaulter=function(t,n){var i=fr(t);e[i.main]=n},r.determineSubType=function(t,n){var i=n.type;if(!i){var a=fr(t).main;r.hasSubTypes(t)&&e[a]&&(i=e[a](n))}return i}}function MA(r,e){r.topologicalTravel=function(a,o,s,l){if(!a.length)return;var u=t(o),f=u.graph,c=u.noEntryList,p={};for(A(a,function(y){p[y]=!0});c.length;){var h=c.pop(),d=f[h],v=!!p[h];v&&(s.call(l,h,d.originalDeps.slice()),delete p[h]),A(d.successor,v?g:m)}A(p,function(){var y="";throw new Error(y)});function m(y){f[y].entryCount--,f[y].entryCount===0&&c.push(y)}function g(y){p[y]=!0,m(y)}};function t(a){var o={},s=[];return A(a,function(l){var u=n(o,l),f=u.originalDeps=e(l),c=i(f,a);u.entryCount=c.length,u.entryCount===0&&s.push(l),A(c,function(p){de(u.predecessor,p)<0&&u.predecessor.push(p);var h=n(o,p);de(h.successor,p)<0&&h.successor.push(l)})}),{graph:o,noEntryList:s}}function n(a,o){return a[o]||(a[o]={predecessor:[],successor:[]}),a[o]}function i(a,o){var s=[];return A(a,function(l){de(o,l)>=0&&s.push(l)}),s}}function Ch(r,e){return Ee(Ee({},r,!0),e,!0)}var QU,Ro=T(()=>{"use strict";I();Tn();QU=Math.round(Math.random()*10)});function Ky(r,e,t,n,i,a){var o=n+"-"+i,s=r.length;if(a.hasOwnProperty(o))return a[o];if(e===1){var l=Math.round(Math.log((1<<s)-1&~i)/eF);return r[t][l]}for(var u=n|1<<t,f=t+1;n&1<<f;)f++;for(var c=0,p=0,h=0;p<s;p++){var d=1<<p;d&i||(c+=(h%2?-1:1)*r[t][p]*Ky(r,e-1,f,u,i|d,a),h++)}return a[o]=c,c}function Zy(r,e){var t=[[r[0],r[1],1,0,0,0,-e[0]*r[0],-e[0]*r[1]],[0,0,0,r[0],r[1],1,-e[1]*r[0],-e[1]*r[1]],[r[2],r[3],1,0,0,0,-e[2]*r[2],-e[2]*r[3]],[0,0,0,r[2],r[3],1,-e[3]*r[2],-e[3]*r[3]],[r[4],r[5],1,0,0,0,-e[4]*r[4],-e[4]*r[5]],[0,0,0,r[4],r[5],1,-e[5]*r[4],-e[5]*r[5]],[r[6],r[7],1,0,0,0,-e[6]*r[6],-e[6]*r[7]],[0,0,0,r[6],r[7],1,-e[7]*r[6],-e[7]*r[7]]],n={},i=Ky(t,8,0,0,0,n);if(i!==0){for(var a=[],o=0;o<8;o++)for(var s=0;s<8;s++)a[s]==null&&(a[s]=0),a[s]+=((o+s)%2?-1:1)*Ky(t,7,o===0?1:0,1<<o,1<<s,n)/i*e[o];return function(l,u,f){var c=u*a[6]+f*a[7]+1;l[0]=(u*a[0]+f*a[1]+a[2])/c,l[1]=(u*a[3]+f*a[4]+a[5])/c}}}var eF,DA=T(()=>{"use strict";eF=Math.log(2)});function PA(r,e,t,n,i){if(e.getBoundingClientRect&&Pe.domSupported&&!jy(e)){var a=e[LA]||(e[LA]={}),o=tF(e,a),s=rF(o,a,i);if(s)return s(r,t,n),!0}return!1}function tF(r,e){var t=e.markers;if(t)return t;t=e.markers=[];for(var n=["left","right"],i=["top","bottom"],a=0;a<4;a++){var o=document.createElement("div"),s=o.style,l=a%2,u=(a>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[l]+":0",i[u]+":0",n[1-l]+":auto",i[1-u]+":auto",""].join("!important;"),r.appendChild(o),t.push(o)}return e.clearMarkers=function(){A(t,function(f){f.parentNode&&f.parentNode.removeChild(f)})},t}function rF(r,e,t){for(var n=t?"invTrans":"trans",i=e[n],a=e.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var f=r[u].getBoundingClientRect(),c=2*u,p=f.left,h=f.top;o.push(p,h),l=l&&a&&p===a[c]&&h===a[c+1],s.push(r[u].offsetLeft,r[u].offsetTop)}return l&&i?i:(e.srcCoords=o,e[n]=t?Zy(s,o):Zy(o,s))}function jy(r){return r.nodeName.toUpperCase()==="CANVAS"}function No(r){return r==null?"":(r+"").replace(nF,function(e,t){return iF[t]})}var LA,nF,iF,Mh=T(()=>{"use strict";Or();DA();I();LA="___zrEVENTSAVED";nF=/([&<>"'])/g,iF={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"}});var OA,IA=T(()=>{"use strict";OA={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst",custom:"Custom chart",chart:"Chart"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}}});var RA,NA=T(()=>{"use strict";RA={time:{month:["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"],monthAbbr:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],dayOfWeek:["\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"],dayOfWeekAbbr:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"]},legend:{selector:{all:"\u5168\u9009",inverse:"\u53CD\u9009"}},toolbox:{brush:{title:{rect:"\u77E9\u5F62\u9009\u62E9",polygon:"\u5708\u9009",lineX:"\u6A2A\u5411\u9009\u62E9",lineY:"\u7EB5\u5411\u9009\u62E9",keep:"\u4FDD\u6301\u9009\u62E9",clear:"\u6E05\u9664\u9009\u62E9"}},dataView:{title:"\u6570\u636E\u89C6\u56FE",lang:["\u6570\u636E\u89C6\u56FE","\u5173\u95ED","\u5237\u65B0"]},dataZoom:{title:{zoom:"\u533A\u57DF\u7F29\u653E",back:"\u533A\u57DF\u7F29\u653E\u8FD8\u539F"}},magicType:{title:{line:"\u5207\u6362\u4E3A\u6298\u7EBF\u56FE",bar:"\u5207\u6362\u4E3A\u67F1\u72B6\u56FE",stack:"\u5207\u6362\u4E3A\u5806\u53E0",tiled:"\u5207\u6362\u4E3A\u5E73\u94FA"}},restore:{title:"\u8FD8\u539F"},saveAsImage:{title:"\u4FDD\u5B58\u4E3A\u56FE\u7247",lang:["\u53F3\u952E\u53E6\u5B58\u4E3A\u56FE\u7247"]}},series:{typeNames:{pie:"\u997C\u56FE",bar:"\u67F1\u72B6\u56FE",line:"\u6298\u7EBF\u56FE",scatter:"\u6563\u70B9\u56FE",effectScatter:"\u6D9F\u6F2A\u6563\u70B9\u56FE",radar:"\u96F7\u8FBE\u56FE",tree:"\u6811\u56FE",treemap:"\u77E9\u5F62\u6811\u56FE",boxplot:"\u7BB1\u578B\u56FE",candlestick:"K\u7EBF\u56FE",k:"K\u7EBF\u56FE",heatmap:"\u70ED\u529B\u56FE",map:"\u5730\u56FE",parallel:"\u5E73\u884C\u5750\u6807\u56FE",lines:"\u7EBF\u56FE",graph:"\u5173\u7CFB\u56FE",sankey:"\u6851\u57FA\u56FE",funnel:"\u6F0F\u6597\u56FE",gauge:"\u4EEA\u8868\u76D8\u56FE",pictorialBar:"\u8C61\u5F62\u67F1\u56FE",themeRiver:"\u4E3B\u9898\u6CB3\u6D41\u56FE",sunburst:"\u65ED\u65E5\u56FE",custom:"\u81EA\u5B9A\u4E49\u56FE\u8868",chart:"\u56FE\u8868"}},aria:{general:{withTitle:"\u8FD9\u662F\u4E00\u4E2A\u5173\u4E8E\u201C{title}\u201D\u7684\u56FE\u8868\u3002",withoutTitle:"\u8FD9\u662F\u4E00\u4E2A\u56FE\u8868\uFF0C"},series:{single:{prefix:"",withName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\uFF0C\u8868\u793A{seriesName}\u3002",withoutName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\u3002"},multiple:{prefix:"\u5B83\u7531{seriesCount}\u4E2A\u56FE\u8868\u7CFB\u5217\u7EC4\u6210\u3002",withName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A\u8868\u793A{seriesName}\u7684{seriesType}\uFF0C",withoutName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A{seriesType}\uFF0C",separator:{middle:"\uFF1B",end:"\u3002"}}},data:{allData:"\u5176\u6570\u636E\u662F\u2014\u2014",partialData:"\u5176\u4E2D\uFF0C\u524D{displayCnt}\u9879\u662F\u2014\u2014",withName:"{name}\u7684\u6570\u636E\u662F{value}",withoutName:"{value}",separator:{middle:"\uFF0C",end:""}}}}});function kA(r,e){r=r.toUpperCase(),Qy[r]=new ot(e),Dh[r]=e}function zA(r){if(G(r)){var e=Dh[r.toUpperCase()]||{};return r===Lh||r===Jy?ue(e):Ee(ue(e),ue(Dh[yl]),!1)}else return Ee(ue(r),ue(Dh[yl]),!1)}function BA(r){return Qy[r]}function UA(){return Qy[yl]}var Lh,Jy,yl,Dh,Qy,Ph,e0=T(()=>{"use strict";$n();Or();IA();NA();I();Lh="ZH",Jy="EN",yl=Jy,Dh={},Qy={},Ph=Pe.domSupported?(function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage||yl).toUpperCase();return r.indexOf(Lh)>-1?Lh:yl})():yl;kA(Jy,OA);kA(Lh,RA)});function Qe(){return aF}function Oh(r,e){var t=Qe(),n=e.breakOption,i=e.breakParsed;return!i&&t&&(i=t.parseAxisBreakOption(n,r)),i}function ko(r){var e=r.brk;return e?e.breaks:[]}function zo(r){var e=r.brk;return e?e.hasBreaks():!1}var aF,ln=T(()=>{"use strict";aF=null});function VA(r){return!G(r)&&!j(r)?lF(r):r}function lF(r){r=r||{};var e={},t=!0;return A(dr,function(n){t&&(t=r[n]==null)}),A(dr,function(n,i){var a=r[n];e[n]={};for(var o=null,s=i;s>=0;s--){var l=dr[s],u=Y(a)&&!U(a)?a[l]:a,f=void 0;U(u)?(f=u.slice(),o=f[0]||""):G(u)?(o=u,f=[o]):(o==null?o=Rh[n]:oF[l].test(o)||(o=e[l][l][0]+" "+o),f=[o],t&&(f[1]="{primary|"+o+"}")),e[n][l]=f}}),e}function ha(r,e){return r+="","0000".substr(0,e-r.length)+r}function _l(r){switch(r){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return r}}function HA(r){return r===_l(r)}function GA(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function n0(r,e,t,n){var i=ci(r),a=i[i0(t)](),o=i[Bh(t)]()+1,s=Math.floor((o-1)/3)+1,l=i[Uh(t)](),u=i["get"+(t?"UTC":"")+"Day"](),f=i[Fh(t)](),c=(f-1)%12+1,p=i[Vh(t)](),h=i[Hh(t)](),d=i[Gh(t)](),v=f>=12?"pm":"am",m=v.toUpperCase(),g=n instanceof ot?n:BA(n||Ph)||UA(),y=g.getModel("time"),x=y.get("month"),_=y.get("monthAbbr"),b=y.get("dayOfWeek"),S=y.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,v+"").replace(/{A}/g,m+"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,ha(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,x[o-1]).replace(/{MMM}/g,_[o-1]).replace(/{MM}/g,ha(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,ha(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,b[u]).replace(/{ee}/g,S[u]).replace(/{e}/g,u+"").replace(/{HH}/g,ha(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,ha(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,ha(p,2)).replace(/{m}/g,p+"").replace(/{ss}/g,ha(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,ha(d,3)).replace(/{S}/g,d+"")}function $A(r,e,t,n,i){var a=null;if(G(t))a=t;else if(j(t)){var o={time:r.time,level:r.time?r.time.level:0},s=Qe();s&&s.makeAxisLabelFormatterParamBreak(o,r.break),a=t(r.value,e,o)}else{var l=r.time;if(l){var u=t[l.lowerTimeUnit][l.upperTimeUnit];a=u[Math.min(l.level,u.length-1)]||""}else{var f=Bo(r.value,i);a=t[f][f][0]}}return n0(new Date(r.value),a,i,n)}function Bo(r,e){var t=ci(r),n=t[Bh(e)]()+1,i=t[Uh(e)](),a=t[Fh(e)](),o=t[Vh(e)](),s=t[Hh(e)](),l=t[Gh(e)](),u=l===0,f=u&&s===0,c=f&&o===0,p=c&&a===0,h=p&&i===1,d=h&&n===1;return d?"year":h?"month":p?"day":c?"hour":f?"minute":u?"second":"millisecond"}function zh(r,e,t){switch(e){case"year":r[a0(t)](0);case"month":r[o0(t)](1);case"day":r[s0(t)](0);case"hour":r[l0(t)](0);case"minute":r[u0(t)](0);case"second":r[f0(t)](0)}return r}function i0(r){return r?"getUTCFullYear":"getFullYear"}function Bh(r){return r?"getUTCMonth":"getMonth"}function Uh(r){return r?"getUTCDate":"getDate"}function Fh(r){return r?"getUTCHours":"getHours"}function Vh(r){return r?"getUTCMinutes":"getMinutes"}function Hh(r){return r?"getUTCSeconds":"getSeconds"}function Gh(r){return r?"getUTCMilliseconds":"getMilliseconds"}function WA(r){return r?"setUTCFullYear":"setFullYear"}function a0(r){return r?"setUTCMonth":"setMonth"}function o0(r){return r?"setUTCDate":"setDate"}function s0(r){return r?"setUTCHours":"setHours"}function l0(r){return r?"setUTCMinutes":"setMinutes"}function u0(r){return r?"setUTCSeconds":"setSeconds"}function f0(r){return r?"setUTCMilliseconds":"setMilliseconds"}var Nh,kh,xl,Ar,t0,oF,Rh,sF,Ih,r0,dr,FA,c0=T(()=>{"use strict";I();we();e0();$n();ln();Nh=1e3,kh=Nh*60,xl=kh*60,Ar=xl*24,t0=Ar*365,oF={year:/({yyyy}|{yy})/,month:/({MMMM}|{MMM}|{MM}|{M})/,day:/({dd}|{d})/,hour:/({HH}|{H}|{hh}|{h})/,minute:/({mm}|{m})/,second:/({ss}|{s})/,millisecond:/({SSS}|{S})/},Rh={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}"},sF="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}",Ih="{yyyy}-{MM}-{dd}",r0={year:"{yyyy}",month:"{yyyy}-{MM}",day:Ih,hour:Ih+" "+Rh.hour,minute:Ih+" "+Rh.minute,second:Ih+" "+Rh.second,millisecond:sF},dr=["year","month","day","hour","minute","second","millisecond"],FA=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"]});function qA(r){if(!Pg(r))return G(r)?r:"-";var e=(r+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function XA(r,e,t){U(e)||(e=[e]);var n=e.length;if(!n)return"";for(var i=e[0].$vars||[],a=0;a<i.length;a++){var o=YA[a];r=r.replace(p0(o),p0(o,0))}for(var s=0;s<n;s++)for(var l=0;l<i.length;l++){var u=e[s][i[l]];r=r.replace(p0(YA[l],s),t?No(u):u)}return r}function KA(r,e){var t=G(r)?{color:r,extraCssText:e}:r||{},n=t.color,i=t.type;e=t.extraCssText;var a=t.renderMode||"html";if(!n)return"";if(a==="html")return i==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+No(n)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+No(n)+";"+(e||"")+'"></span>';var o=t.markerId||"markerX";return{renderMode:a,content:"{"+o+"|} ",style:i==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function hf(r,e){return e=e||"transparent",G(r)?r:Y(r)&&r.colorStops&&(r.colorStops[0]||{}).color||e}function h0(r,e){if(e==="_blank"||e==="blank"){var t=window.open();t.opener=null,t.location.href=r}else window.open(r,e)}var bl,YA,p0,Si=T(()=>{"use strict";I();Mh();we();bl=Ms,YA=["a","b","c","d","e","f","g"],p0=function(r,e){return"{"+r+(e??"")+"}"}});function v0(r,e,t,n,i){var a=0,o=0;n==null&&(n=1/0),i==null&&(i=1/0);var s=0;e.eachChild(function(l,u){var f=l.getBoundingRect(),c=e.childAt(u+1),p=c&&c.getBoundingRect(),h,d;if(r==="horizontal"){var v=f.width+(p?-p.x+f.x:0);h=a+v,h>n||l.newline?(a=0,h=v,o+=s+t,s=f.height):s=Math.max(s,f.height)}else{var m=f.height+(p?-p.y+f.y:0);d=o+m,d>i||l.newline?(a+=s+t,o=0,d=m,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),r==="horizontal"?a=h+t:o=d+t)})}function ZA(r,e){return{left:r.getShallow("left",e),top:r.getShallow("top",e),right:r.getShallow("right",e),bottom:r.getShallow("bottom",e),width:r.getShallow("width",e),height:r.getShallow("height",e)}}function fF(r,e){var t=Fo(r,e,{enableLayoutOnlyByCenter:!0}),n=r.getBoxLayoutParams(),i,a;if(t.type===df.point)a=t.refPoint,i=Wn(n,{width:e.getWidth(),height:e.getHeight()});else{var o=r.get("center"),s=U(o)?o:[o,o];i=Wn(n,t.refContainer),a=t.boxCoordFrom===qy?t.refPoint:[Be(s[0],i.width)+i.x,Be(s[1],i.height)+i.y]}return{viewRect:i,center:a}}function jA(r,e){var t=fF(r,e),n=t.viewRect,i=t.center,a=r.get("radius");U(a)||(a=[0,a]);var o=Be(n.width,e.getWidth()),s=Be(n.height,e.getHeight()),l=Math.min(o,s),u=Be(a[0],l/2),f=Be(a[1],l/2);return{cx:i[0],cy:i[1],r0:u,r:f,viewRect:n}}function Wn(r,e,t){t=bl(t||0);var n=e.width,i=e.height,a=Be(r.left,n),o=Be(r.top,i),s=Be(r.right,n),l=Be(r.bottom,i),u=Be(r.width,n),f=Be(r.height,i),c=t[2]+t[0],p=t[1]+t[3],h=r.aspect;switch(isNaN(u)&&(u=n-s-p-a),isNaN(f)&&(f=i-l-c-o),h!=null&&(isNaN(u)&&isNaN(f)&&(h>n/i?u=n*.8:f=i*.8),isNaN(u)&&(u=h*f),isNaN(f)&&(f=u/h)),isNaN(a)&&(a=n-s-u-p),isNaN(o)&&(o=i-l-f-c),r.left||r.right){case"center":a=n/2-u/2-t[3];break;case"right":a=n-u-p;break}switch(r.top||r.bottom){case"middle":case"center":o=i/2-f/2-t[0];break;case"bottom":o=i-f-c;break}a=a||0,o=o||0,isNaN(u)&&(u=n-p-a-(s||0)),isNaN(f)&&(f=i-c-o-(l||0));var d=new se((e.x||0)+a+t[3],(e.y||0)+o+t[0],u,f);return d.margin=t,d}function Fo(r,e,t){var n,i,a,o=r.boxCoordinateSystem,s;if(o){var l=Ah(r),u=l.coord,f=l.from;if(o.dataToLayout){a=df.rect,s=f;var c=o.dataToLayout(u);n=c.contentRect||c.rect}else t&&t.enableLayoutOnlyByCenter&&o.dataToPoint&&(a=df.point,s=f,i=o.dataToPoint(u))}return a==null&&(a=df.rect),a===df.rect&&(n||(n={x:0,y:0,width:e.getWidth(),height:e.getHeight()}),i=[n.x+n.width/2,n.y+n.height/2]),{type:a,refContainer:n,refPoint:i,boxCoordFrom:s}}function da(r){var e=r.layoutMode||r.constructor.layoutMode;return Y(e)?e:e?{type:e}:null}function Cr(r,e,t){var n=t&&t.ignoreSize;!U(n)&&(n=[n,n]);var i=o($h[0],0),a=o($h[1],1);l($h[0],r,i),l($h[1],r,a);function o(u,f){var c={},p=0,h={},d=0,v=2;if(Wh(u,function(y){h[y]=r[y]}),Wh(u,function(y){Ye(e,y)&&(c[y]=h[y]=e[y]),s(c,y)&&p++,s(h,y)&&d++}),n[f])return s(e,u[1])?h[u[2]]=null:s(e,u[2])&&(h[u[1]]=null),h;if(d===v||!p)return h;if(p>=v)return c;for(var m=0;m<u.length;m++){var g=u[m];if(!Ye(c,g)&&Ye(r,g)){c[g]=r[g];break}}return c}function s(u,f){return u[f]!=null&&u[f]!=="auto"}function l(u,f,c){Wh(u,function(p){f[p]=c[p]})}}function Yn(r){return cF({},r)}function cF(r,e){return e&&r&&Wh(uF,function(t){Ye(e,t)&&(r[t]=e[t])}),r}var Wh,uF,$h,Uo,wj,Tj,df,un=T(()=>{"use strict";I();Tt();we();Si();Io();Wh=A,uF=["left","right","top","bottom","width","height"],$h=[["width","left","right"],["height","top","bottom"]];Uo=v0,wj=Ne(v0,"vertical"),Tj=Ne(v0,"horizontal");df={rect:1,point:2}});function hF(r){var e=[];return A(Sl.getClassesByMainType(r),function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])}),e=F(e,function(t){return fr(t).main}),r!=="dataset"&&de(e,"dataset")<=0&&e.unshift("dataset"),e}var pF,Sl,Re,qn=T(()=>{"use strict";ee();I();$n();Ro();Tn();ne();un();pF=ae(),Sl=(function(r){R(e,r);function e(t,n,i){var a=r.call(this,t,n,i)||this;return a.uid=pa("ec_cpt_model"),a}return e.prototype.init=function(t,n,i){this.mergeDefaultAndTheme(t,i)},e.prototype.mergeDefaultAndTheme=function(t,n){var i=da(this),a=i?Yn(t):{},o=n.getTheme();Ee(t,o.get(this.mainType)),Ee(t,this.getDefaultOption()),i&&Cr(t,a,i)},e.prototype.mergeOption=function(t,n){Ee(this.option,t,!0);var i=da(this);i&&Cr(this.option,t,i)},e.prototype.optionUpdated=function(t,n){},e.prototype.getDefaultOption=function(){var t=this.constructor;if(!uw(t))return t.defaultOption;var n=pF(this);if(!n.defaultOption){for(var i=[],a=t;a;){var o=a.prototype.defaultOption;o&&i.push(o),a=a.superClass}for(var s={},l=i.length-1;l>=0;l--)s=Ee(s,i[l],!0);n.defaultOption=s}return n.defaultOption},e.prototype.getReferringComponents=function(t,n){var i=t+"Index",a=t+"Id";return js(this.ecModel,t,{index:this.get(i,!0),id:this.get(a,!0)},n)},e.prototype.getBoxLayoutParams=function(){return ZA(this,!1)},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(t){this.option.zlevel=t},e.protoInitialize=(function(){var t=e.prototype;t.type="component",t.id="",t.name="",t.mainType="",t.subType="",t.componentIndex=0})(),e})(ot);kc(Sl,ot);Vi(Sl);CA(Sl);MA(Sl,hF);Re=Sl});function dF(r,e){for(var t=r.length,n=0;n<t;n++)if(r[n].length>e)return r[n];return r[t-1]}function vF(r,e,t,n,i,a,o){a=a||r;var s=e(a),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(i))return u[i];var f=o==null||!n?t:dF(n,o);if(f=f||t,!(!f||!f.length)){var c=f[l];return i&&(u[i]=c),s.paletteIdx=(l+1)%f.length,c}}function mF(r,e){e(r).paletteIdx=0,e(r).paletteNameMap={}}var JA,Pj,vf,g0=T(()=>{"use strict";ne();JA=ae(),Pj=ae(),vf=(function(){function r(){}return r.prototype.getColorFromPalette=function(e,t,n){var i=Ke(this.get("color",!0)),a=this.get("colorLayer",!0);return vF(this,JA,i,a,e,t,n)},r.prototype.clearColorPalette=function(){mF(this,JA)},r})()});var gF,QA,eC=T(()=>{"use strict";I();Oo();Si();gF=/\{@(.+?)\}/g,QA=(function(){function r(){}return r.prototype.getDataParams=function(e,t){var n=this.getData(t),i=this.getRawValue(e,t),a=n.getRawIndex(e),o=n.getName(e),s=n.getRawDataItem(e),l=n.getItemVisual(e,"style"),u=l&&l[n.getItemVisual(e,"drawType")||"fill"],f=l&&l.stroke,c=this.mainType,p=c==="series",h=n.userOutput&&n.userOutput.get();return{componentType:c,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:p?this.subType:null,seriesIndex:this.seriesIndex,seriesId:p?this.id:null,seriesName:p?this.name:null,name:o,dataIndex:a,data:s,dataType:t,value:i,color:u,borderColor:f,dimensionNames:h?h.fullDimensions:null,encode:h?h.encode:null,$vars:["seriesName","name","value"]}},r.prototype.getFormattedLabel=function(e,t,n,i,a,o){t=t||"normal";var s=this.getData(n),l=this.getDataParams(e,n);if(o&&(l.value=o.interpolatedValue),i!=null&&U(l.value)&&(l.value=l.value[i]),!a){var u=s.getItemModel(e);a=u.get(t==="normal"?["label","formatter"]:[t,"label","formatter"])}if(j(a))return l.status=t,l.dimensionIndex=i,a(l);if(G(a)){var f=XA(a,l);return f.replace(gF,function(c,p){var h=p.length,d=p;d.charAt(0)==="["&&d.charAt(h-1)==="]"&&(d=+d.slice(1,h-1));var v=_i(s,e,d);if(o&&U(o.interpolatedValue)){var m=s.getDimensionIndex(d);m>=0&&(v=o.interpolatedValue[m])}return v!=null?v+"":""})}},r.prototype.getRawValue=function(e,t){return _i(this.getData(t),e)},r.prototype.formatTooltip=function(e,t,n){},r})()});function va(r){return new yF(r)}var yF,tC,Yh=T(()=>{"use strict";I();yF=(function(){function r(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return r.prototype.perform=function(e){var t=this._upstream,n=e&&e.skip;if(this._dirty&&t){var i=this.context;i.data=i.outputData=t.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!n&&(a=this._plan(this.context));var o=f(this._modBy),s=this._modDataCount||0,l=f(e&&e.modBy),u=e&&e.modDataCount||0;(o!==l||s!==u)&&(a="reset");function f(y){return!(y>=1)&&(y=1),y}var c;(this._dirty||a==="reset")&&(this._dirty=!1,c=this._doReset(n)),this._modBy=l,this._modDataCount=u;var p=e&&e.step;if(t?this._dueEnd=t._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var h=this._dueIndex,d=Math.min(p!=null?this._dueIndex+p:1/0,this._dueEnd);if(!n&&(c||h<d)){var v=this._progress;if(U(v))for(var m=0;m<v.length;m++)this._doProgress(v[m],h,d,l,u);else this._doProgress(v,h,d,l,u)}this._dueIndex=d;var g=this._settedOutputEnd!=null?this._settedOutputEnd:d;this._outputDueEnd=g}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},r.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},r.prototype._doProgress=function(e,t,n,i,a){tC.reset(t,n,i,a),this._callingProgress=e,this._callingProgress({start:t,end:n,count:n-t,next:tC.next},this.context)},r.prototype._doReset=function(e){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var t,n;!e&&this._reset&&(t=this._reset(this.context),t&&t.progress&&(n=t.forceFirstProgress,t=t.progress),U(t)&&!t.length&&(t=null)),this._progress=t,this._modBy=this._modDataCount=null;var i=this._downstream;return i&&i.dirty(),n},r.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},r.prototype.pipe=function(e){(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},r.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},r.prototype.getUpstream=function(){return this._upstream},r.prototype.getDownstream=function(){return this._downstream},r.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},r})(),tC=(function(){var r,e,t,n,i,a={reset:function(l,u,f,c){e=l,r=u,t=f,n=c,i=Math.ceil(n/t),a.next=t>1&&n>0?s:o}};return a;function o(){return e<r?e++:null}function s(){var l=e%i*t+Math.ceil(e/i),u=e>=r?null:l<n?l:e;return e++,u}})()});function _F(r,e){var t=new xF,n=r.data,i=t.sourceFormat=r.sourceFormat,a=r.startIndex,o="";r.seriesLayoutBy!==jt&&Ft(o);var s=[],l={},u=r.dimensionsDefine;if(u)A(u,function(v,m){var g=v.name,y={index:m,name:g,displayName:v.displayName};if(s.push(y),g!=null){var x="";Ye(l,g)&&Ft(x),l[g]=y}});else for(var f=0;f<r.dimensionsDetectedCount;f++)s.push({index:f});var c=Ly(i,jt);e.__isBuiltIn&&(t.getRawDataItem=function(v){return c(n,a,s,v)},t.getRawData=Le(bF,null,r)),t.cloneRawData=Le(SF,null,r);var p=Py(i,jt);t.count=Le(p,null,n,a,s);var h=Oy(i);t.retrieveValue=function(v,m){var g=c(n,a,s,v);return d(g,m)};var d=t.retrieveValueFromItem=function(v,m){if(v!=null){var g=s[m];if(g)return h(v,m,g.name)}};return t.getDimensionInfo=Le(wF,null,s,l),t.cloneAllDimensionInfo=Le(TF,null,s),t}function bF(r){var e=r.sourceFormat;if(!y0(e)){var t="";Ft(t)}return r.data}function SF(r){var e=r.sourceFormat,t=r.data;if(!y0(e)){var n="";Ft(n)}if(e===vt){for(var i=[],a=0,o=t.length;a<o;a++)i.push(t[a].slice());return i}else if(e===Vt){for(var i=[],a=0,o=t.length;a<o;a++)i.push(k({},t[a]));return i}}function wF(r,e,t){if(t!=null){if(he(t)||!isNaN(t)&&!Ye(e,t))return r[t];if(Ye(e,t))return e[t]}}function TF(r){return ue(r)}function nC(r){r=ue(r);var e=r.type,t="";e||Ft(t);var n=e.split(":");n.length!==2&&Ft(t);var i=!1;n[0]==="echarts"&&(e=n[1],i=!0),r.__isBuiltIn=i,rC.set(e,r)}function iC(r,e,t){var n=Ke(r),i=n.length,a="";i||Ft(a);for(var o=0,s=i;o<s;o++){var l=n[o];e=EF(l,e,t,i===1?null:o),o!==s-1&&(e.length=Math.max(e.length,1))}return e}function EF(r,e,t,n){var i="";e.length||Ft(i),Y(r)||Ft(i);var a=r.type,o=rC.get(a);o||Ft(i);var s=F(e,function(f){return _F(f,o)}),l=Ke(o.transform({upstream:s[0],upstreamList:s,config:ue(r.config)}));if(0&&r.print)var u;return F(l,function(f,c){var p="";Y(f)||Ft(p),f.data||Ft(p);var h=My(f.data);y0(h)||Ft(p);var d,v=e[0];if(v&&c===0&&!f.dimensions){var m=v.startIndex;m&&(f.data=v.data.slice(0,m).concat(f.data)),d={seriesLayoutBy:jt,sourceHeader:m,dimensions:v.metaRawOption.dimensions}}else d={seriesLayoutBy:jt,sourceHeader:0,dimensions:f.dimensions};return tf(f.data,d,null)})}function y0(r){return r===vt||r===Vt}var xF,rC,x0=T(()=>{"use strict";Jt();ne();I();Oo();xh();Pp();xi();xF=(function(){function r(){}return r.prototype.getRawData=function(){throw new Error("not supported")},r.prototype.getRawDataItem=function(e){throw new Error("not supported")},r.prototype.cloneRawData=function(){},r.prototype.getDimensionInfo=function(e){},r.prototype.cloneAllDimensionInfo=function(){},r.prototype.count=function(){},r.prototype.retrieveValue=function(e,t){},r.prototype.retrieveValueFromItem=function(e,t){},r.prototype.convertValue=function(e,t){return hl(e,t)},r})();rC=X()});function _0(r){var e=r.option.transform;e&&Ba(r.option.transform)}function qh(r){return r.mainType==="series"}function aC(r){throw new Error(r)}var Xh,b0=T(()=>{"use strict";I();xi();Jt();Co();x0();_h();Oo();Xh=(function(){function r(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return r.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},r.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},r.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},r.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},r.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,t=this._getUpstreamSourceManagers(),n=!!t.length,i,a;if(qh(e)){var o=e,s=void 0,l=void 0,u=void 0;if(n){var f=t[0];f.prepareSource(),u=f.getSource(),s=u.data,l=u.sourceFormat,a=[f._getVersionSign()]}else s=o.get("data",!0),l=nt(s)?Tr:_t,a=[];var c=this._getSourceMetaRawOption()||{},p=u&&u.metaRawOption||{},h=$(c.seriesLayoutBy,p.seriesLayoutBy)||null,d=$(c.sourceHeader,p.sourceHeader),v=$(c.dimensions,p.dimensions),m=h!==p.seriesLayoutBy||!!d!=!!p.sourceHeader||v;i=m?[tf(s,{seriesLayoutBy:h,sourceHeader:d,dimensions:v},l)]:[]}else{var g=e;if(n){var y=this._applyTransform(t);i=y.sourceList,a=y.upstreamSignList}else{var x=g.get("source",!0);i=[tf(x,this._getSourceMetaRawOption(),null)],a=[]}}this._setLocalSource(i,a)},r.prototype._applyTransform=function(e){var t=this._sourceHost,n=t.get("transform",!0),i=t.get("fromTransformResult",!0);if(i!=null){var a="";e.length!==1&&aC(a)}var o,s=[],l=[];return A(e,function(u){u.prepareSource();var f=u.getSource(i||0),c="";i!=null&&!f&&aC(c),s.push(f),l.push(u._getVersionSign())}),n?o=iC(n,s,{datasetIndex:t.componentIndex}):i!=null&&(o=[lA(s[0])]),{sourceList:o,upstreamSignList:l}},r.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t<e.length;t++){var n=e[t];if(n._isDirty()||this._upstreamSignList[t]!==n._getVersionSign())return!0}},r.prototype.getSource=function(e){e=e||0;var t=this._sourceList[e];if(!t){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(e)}return t},r.prototype.getSharedDataStore=function(e){var t=e.makeStoreSchema();return this._innerGetDataStore(t.dimensions,e.source,t.hash)},r.prototype._innerGetDataStore=function(e,t,n){var i=0,a=this._storeList,o=a[i];o||(o=a[i]={});var s=o[n];if(!s){var l=this._getUpstreamSourceManagers()[0];qh(this._sourceHost)&&l?s=l._innerGetDataStore(e,t,n):(s=new rf,s.initData(new mh(t,e.length),e)),o[n]=s}return s},r.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(qh(e)){var t=ch(e);return t?[t.getSourceManager()]:[]}else return F(iA(e),function(n){return n.getSourceManager()})},r.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,t,n,i;if(qh(e))t=e.get("seriesLayoutBy",!0),n=e.get("sourceHeader",!0),i=e.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var a=e;t=a.get("seriesLayoutBy",!0),n=a.get("sourceHeader",!0),i=a.get("dimensions",!0)}return{seriesLayoutBy:t,sourceHeader:n,dimensions:i}},r})()});var Vo,st,S0,ma,ie,Gt=T(()=>{"use strict";I();kr();Vo={color:{},darkColor:{},size:{}},st=Vo.color={theme:["#5070dd","#b6d634","#505372","#ff994d","#0ca8df","#ffd10a","#fb628b","#785db0","#3fbe95"],neutral00:"#fff",neutral05:"#f4f7fd",neutral10:"#e8ebf0",neutral15:"#dbdee4",neutral20:"#cfd2d7",neutral25:"#c3c5cb",neutral30:"#b7b9be",neutral35:"#aaacb2",neutral40:"#9ea0a5",neutral45:"#929399",neutral50:"#86878c",neutral55:"#797b7f",neutral60:"#6d6e73",neutral65:"#616266",neutral70:"#54555a",neutral75:"#48494d",neutral80:"#3c3c41",neutral85:"#303034",neutral90:"#232328",neutral95:"#17171b",neutral99:"#000",accent05:"#eff1f9",accent10:"#e0e4f2",accent15:"#d0d6ec",accent20:"#c0c9e6",accent25:"#b1bbdf",accent30:"#a1aed9",accent35:"#91a0d3",accent40:"#8292cc",accent45:"#7285c6",accent50:"#6578ba",accent55:"#5c6da9",accent60:"#536298",accent65:"#4a5787",accent70:"#404c76",accent75:"#374165",accent80:"#2e3654",accent85:"#252b43",accent90:"#1b2032",accent95:"#121521",transparent:"rgba(0,0,0,0)",highlight:"rgba(255,231,130,0.8)"};k(st,{primary:st.neutral80,secondary:st.neutral70,tertiary:st.neutral60,quaternary:st.neutral50,disabled:st.neutral20,border:st.neutral30,borderTint:st.neutral20,borderShade:st.neutral40,background:st.neutral05,backgroundTint:"rgba(234,237,245,0.5)",backgroundTransparent:"rgba(255,255,255,0)",backgroundShade:st.neutral10,shadow:"rgba(0,0,0,0.2)",shadowTint:"rgba(129,130,136,0.2)",axisLine:st.neutral70,axisLineTint:st.neutral40,axisTick:st.neutral70,axisTickMinor:st.neutral60,axisLabel:st.neutral70,axisSplitLine:st.neutral15,axisMinorSplitLine:st.neutral05});for(ma in st)st.hasOwnProperty(ma)&&(S0=st[ma],ma==="theme"?Vo.darkColor.theme=st.theme.slice():ma==="highlight"?Vo.darkColor.highlight="rgba(255,231,130,0.4)":ma.indexOf("accent")===0?Vo.darkColor[ma]=yu(S0,null,function(r){return r*.5},function(r){return Math.min(1,1.3-r)}):Vo.darkColor[ma]=yu(S0,null,function(r){return r*.9},function(r){return 1-Math.pow(r,1.5)}));Vo.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};ie=Vo});function Kh(r,e){return e.type=r,e}function oC(r,e){var t=r.getData().getItemVisual(e,"style"),n=t[r.visualDrawType];return hf(n)}var c9,sC=T(()=>{"use strict";Si();I();we();c9=(function(){function r(){this.richTextStyles={},this._nextStyleNameId=Nu()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(e,t,n){var i=n==="richText"?this._generateStyleName():null,a=KA({color:t,type:e,renderMode:n,markerId:i});return G(a)?a:(this.richTextStyles[i]=a.style,a.content)},r.prototype.wrapRichTextStyle=function(e,t){var n={};U(t)?A(t,function(a){return k(n,a)}):k(n,t);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+e+"}"},r})()});function lC(r){var e=r.series,t=r.dataIndex,n=r.multipleSeries,i=e.getData(),a=i.mapDimensionsAll("defaultedTooltip"),o=a.length,s=e.getRawValue(t),l=U(s),u=oC(e,t),f,c,p,h;if(o>1||l&&!o){var d=AF(s,e,t,a,u);f=d.inlineValues,c=d.inlineValueTypes,p=d.blocks,h=d.inlineValues[0]}else if(o){var v=i.getDimensionInfo(a[0]);h=f=_i(i,t,a[0]),c=v.type}else h=f=l?s[0]:s;var m=Zs(e),g=m&&e.name||"",y=i.getName(t),x=n?g:y;return Kh("section",{header:g,noHeader:n||!m,sortParam:h,blocks:[Kh("nameValue",{markerType:"item",markerColor:u,name:x,noName:!ur(x),value:f,valueType:c,rawDataIndex:i.getRawIndex(t)})].concat(p||[])})}function AF(r,e,t,n,i){var a=e.getData(),o=yr(r,function(c,p,h){var d=a.getDimensionInfo(h);return c=c||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],l=[],u=[];n.length?A(n,function(c){f(_i(a,t,c),c)}):A(r,f);function f(c,p){var h=a.getDimensionInfo(p);!h||h.otherDims.tooltip===!1||(o?u.push(Kh("nameValue",{markerType:"subItem",markerColor:i,name:h.displayName,value:c,valueType:h.type})):(s.push(c),l.push(h.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var uC=T(()=>{"use strict";I();sC();Oo();ne()});function Zh(r,e){return r.getName(e)||r.getId(e)}function fC(r){var e=r.name;Zs(r)||(r.name=MF(r)||e)}function MF(r){var e=r.getRawData(),t=e.mapDimensionsAll("seriesName"),n=[];return A(t,function(i){var a=e.getDimensionInfo(i);a.displayName&&n.push(a.displayName)}),n.join(" ")}function DF(r){return r.model.getRawData().count()}function LF(r){var e=r.model;return e.setData(e.getRawData().cloneShallow()),PF}function PF(r,e){e.outputData&&r.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function cC(r,e){A(sw(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(t){r.wrapMethod(t,Ne(OF,e))})}function OF(r,e){var t=w0(r);return t&&t.setOutputEnd((e||this).count()),e}function w0(r){var e=(r.ecModel||{}).scheduler,t=e&&e.getPipeline(r.uid);if(t){var n=t.currentTask;if(n){var i=n.agentStubMap;i&&(n=i.get(r.uid))}return n}}var ga,CF,jh,er,Ho=T(()=>{"use strict";ee();I();Or();ne();qn();g0();eC();un();Yh();Tn();b0();uC();ga=ae();CF="__universalTransitionEnabled",jh=(function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return e.prototype.init=function(t,n,i){this.seriesIndex=this.componentIndex,this.dataTask=va({count:DF,reset:LF}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,i);var a=ga(this).sourceManager=new Xh(this);a.prepareSource();var o=this.getInitialData(t,i);cC(o,this),this.dataTask.context.data=o,ga(this).dataBeforeProcessed=o,fC(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(t,n){var i=da(this),a=i?Yn(t):{},o=this.subType;Re.hasClass(o)&&(o+="Series"),Ee(t,n.getTheme().get(this.subType)),Ee(t,this.getDefaultOption()),zu(t,"label",["show"]),this.fillDataTextStyle(t.data),i&&Cr(t,a,i)},e.prototype.mergeOption=function(t,n){t=Ee(this.option,t,!0),this.fillDataTextStyle(t.data);var i=da(this);i&&Cr(this.option,t,i);var a=ga(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(t,n);cC(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,ga(this).dataBeforeProcessed=o,fC(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(t){if(t&&!nt(t))for(var n=["show"],i=0;i<t.length;i++)t[i]&&t[i].label&&zu(t[i],"label",n)},e.prototype.getInitialData=function(t,n){},e.prototype.appendData=function(t){var n=this.getRawData();n.appendData(t.data)},e.prototype.getData=function(t){var n=w0(this);if(n){var i=n.context.data;return t==null||!i.getLinkedData?i:i.getLinkedData(t)}else return ga(this).data},e.prototype.getAllData=function(){var t=this.getData();return t&&t.getLinkedDataAll?t.getLinkedDataAll():[{data:t}]},e.prototype.setData=function(t){var n=w0(this);if(n){var i=n.context;i.outputData=t,n!==this.dataTask&&(i.data=t)}ga(this).data=t},e.prototype.getEncode=function(){var t=this.get("encode",!0);if(t)return X(t)},e.prototype.getSourceManager=function(){return ga(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return ga(this).dataBeforeProcessed},e.prototype.getColorBy=function(){var t=this.get("colorBy");return t||"series"},e.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},e.prototype.getBaseAxis=function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},e.prototype.indicesOfNearest=function(t,n,i,a){var o=this.getData(),s=this.coordinateSystem,l=s&&s.getAxis(t);if(!s||!l)return[];var u=l.dataToCoord(i);a==null&&(a=1/0);for(var f=[],c=1/0,p=-1,h=0,d=o.getDimensionIndex(n),v=o.getStore(),m=0,g=v.count();m<g;m++){var y=v.get(d,m),x=l.dataToCoord(y),_=u-x,b=Math.abs(_);b<=a&&((b<c||b===c&&_>=0&&p<0)&&(c=b,p=_,h=0),_===p&&(f[h++]=m))}return f.length=h,f},e.prototype.formatTooltip=function(t,n,i){return lC({series:this,dataIndex:t,multipleSeries:n})},e.prototype.isAnimationEnabled=function(){var t=this.ecModel;if(Pe.node&&!(t&&t.ssr))return!1;var n=this.getShallow("animation");return n&&this.getData().count()>this.getShallow("animationThreshold")&&(n=!1),!!n},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,n,i){var a=this.ecModel,o=vf.prototype.getColorFromPalette.call(this,t,n,i);return o||(o=a.getColorFromPalette(t,n,i)),o},e.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(t,n){this._innerSelect(this.getData(n),t)},e.prototype.unselect=function(t,n){var i=this.option.selectedMap;if(i){var a=this.option.selectedMode,o=this.getData(n);if(a==="series"||i==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<t.length;s++){var l=t[s],u=Zh(o,l);i[u]=!1,this._selectedDataIndicesMap[u]=-1}}},e.prototype.toggleSelect=function(t,n){for(var i=[],a=0;a<t.length;a++)i[0]=t[a],this.isSelected(t[a],n)?this.unselect(i,n):this.select(i,n)},e.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var t=this._selectedDataIndicesMap,n=oe(t),i=[],a=0;a<n.length;a++){var o=t[n[a]];o>=0&&i.push(o)}return i},e.prototype.isSelected=function(t,n){var i=this.option.selectedMap;if(!i)return!1;var a=this.getData(n);return(i==="all"||i[Zh(a,t)])&&!a.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[CF])return!0;var t=this.option.universalTransition;return t?t===!0?!0:t&&t.enabled:!1},e.prototype._innerSelect=function(t,n){var i,a,o=this.option,s=o.selectedMode,l=n.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){Y(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f<l;f++){var c=n[f],p=Zh(t,c);u[p]=!0,this._selectedDataIndicesMap[p]=t.getRawIndex(c)}}else if(s==="single"||s===!0){var h=n[l-1],p=Zh(t,h);o.selectedMap=(i={},i[p]=!0,i),this._selectedDataIndicesMap=(a={},a[p]=t.getRawIndex(h),a)}}},e.prototype._initSelectedMapFromData=function(t){if(!this.option.selectedMap){var n=[];t.hasItemOption&&t.each(function(i){var a=t.getRawDataItem(i);a&&a.selected&&n.push(i)}),n.length>0&&this._innerSelect(t,n)}},e.registerClass=function(t){return Re.registerClass(t)},e.protoInitialize=(function(){var t=e.prototype;t.type="series.__base__",t.seriesIndex=0,t.ignoreStyleOnData=!1,t.hasSymbolVisual=!1,t.defaultSymbol="circle",t.visualStyleAccessPath="itemStyle",t.visualDrawType="fill"})(),e})(Re);Yt(jh,QA);Yt(jh,vf);kc(jh,Re);er=jh});function FF(r,e){if(this.type!=="image"){var t=this.style;this.__isEmptyBrush?(t.stroke=r,t.fill=e||ie.color.neutral00,t.lineWidth=2):this.shape.symbolType==="line"?t.stroke=r:t.fill=r,this.markRedraw()}}function Mr(r,e,t,n,i,a,o){var s=r.indexOf("empty")===0;s&&(r=r.substr(5,1).toLowerCase()+r.substr(6));var l;return r.indexOf("image://")===0?l=gy(r.slice(8),new se(e,t,n,i),o?"center":"cover"):r.indexOf("path://")===0?l=oh(r.slice(7),{},new se(e,t,n,i),o?"center":"cover"):l=new UF({shape:{symbolType:r,x:e,y:t,width:n,height:i}}),l.__isEmptyBrush=s,l.setColor=FF,a&&l.setColor(a),l}function pC(r){return U(r)||(r=[+r,+r]),[r[0]||0,r[1]||0]}function Jh(r,e){if(r!=null)return U(r)||(r=[r,r]),[Be(r[0],e[0])||0,Be($(r[1],r[0]),e[1])||0]}var IF,RF,NF,kF,zF,BF,T0,UF,Go=T(()=>{"use strict";I();ze();Tt();en();we();Gt();IF=le.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,e){var t=e.cx,n=e.cy,i=e.width/2,a=e.height/2;r.moveTo(t,n-a),r.lineTo(t+i,n+a),r.lineTo(t-i,n+a),r.closePath()}}),RF=le.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,e){var t=e.cx,n=e.cy,i=e.width/2,a=e.height/2;r.moveTo(t,n-a),r.lineTo(t+i,n),r.lineTo(t,n+a),r.lineTo(t-i,n),r.closePath()}}),NF=le.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,e){var t=e.x,n=e.y,i=e.width/5*3,a=Math.max(i,e.height),o=i/2,s=o*o/(a-o),l=n-a+o+s,u=Math.asin(s/o),f=Math.cos(u)*o,c=Math.sin(u),p=Math.cos(u),h=o*.6,d=o*.7;r.moveTo(t-f,l+s),r.arc(t,l,o,Math.PI-u,Math.PI*2+u),r.bezierCurveTo(t+f-c*h,l+s+p*h,t,n-d,t,n),r.bezierCurveTo(t,n-d,t-f+c*h,l+s+p*h,t-f,l+s),r.closePath()}}),kF=le.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,e){var t=e.height,n=e.width,i=e.x,a=e.y,o=n/3*2;r.moveTo(i,a),r.lineTo(i+o,a+t),r.lineTo(i,a+t/4*3),r.lineTo(i-o,a+t),r.lineTo(i,a),r.closePath()}}),zF={line:on,rect:Oe,roundRect:Oe,square:Oe,circle:Yu,diamond:RF,pin:NF,arrow:kF,triangle:IF},BF={line:function(r,e,t,n,i){i.x1=r,i.y1=e+n/2,i.x2=r+t,i.y2=e+n/2},rect:function(r,e,t,n,i){i.x=r,i.y=e,i.width=t,i.height=n},roundRect:function(r,e,t,n,i){i.x=r,i.y=e,i.width=t,i.height=n,i.r=Math.min(t,n)/4},square:function(r,e,t,n,i){var a=Math.min(t,n);i.x=r,i.y=e,i.width=a,i.height=a},circle:function(r,e,t,n,i){i.cx=r+t/2,i.cy=e+n/2,i.r=Math.min(t,n)/2},diamond:function(r,e,t,n,i){i.cx=r+t/2,i.cy=e+n/2,i.width=t,i.height=n},pin:function(r,e,t,n,i){i.x=r+t/2,i.y=e+n/2,i.width=t,i.height=n},arrow:function(r,e,t,n,i){i.x=r+t/2,i.y=e+n/2,i.width=t,i.height=n},triangle:function(r,e,t,n,i){i.cx=r+t/2,i.cy=e+n/2,i.width=t,i.height=n}},T0={};A(zF,function(r,e){T0[e]=new r});UF=le.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(r,e,t){var n=qa(r,e,t),i=this.shape;return i&&i.symbolType==="pin"&&e.position==="inside"&&(n.y=t.y+t.height*.4),n},buildPath:function(r,e,t){var n=e.symbolType;if(n!=="none"){var i=T0[n];i||(n="rect",i=T0[n]),BF[n](e.x,e.y,e.width,e.height,i.shape),i.buildPath(r,i.shape,t)}}})});var VF,hC,dC=T(()=>{"use strict";ee();pf();Ho();Go();ze();Gt();VF=(function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t){if(0)var n;return ca(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(t){var n=new Ie,i=Mr("line",0,t.itemHeight/2,t.itemWidth,0,t.lineStyle.stroke,!1);n.add(i),i.setStyle(t.lineStyle);var a=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=a==="none"?"circle":a,l=t.itemHeight*.8,u=Mr(s,(t.itemWidth-l)/2,(t.itemHeight-l)/2,l,l,t.itemStyle.fill);n.add(u),u.setStyle(t.itemStyle);var f=t.iconRotate==="inherit"?o:t.iconRotate||0;return u.rotation=f*Math.PI/180,u.setOrigin([t.itemWidth/2,t.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill=ie.color.neutral00,u.style.lineWidth=2),n},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:6,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1,triggerEvent:!1},e})(er),hC=VF});function wl(r,e){var t=r.mapDimensionsAll("defaultedLabel"),n=t.length;if(n===1){var i=_i(r,e,t[0]);return i!=null?i+"":null}else if(n){for(var a=[],o=0;o<t.length;o++)a.push(_i(r,e,t[o]));return a.join(" ")}}function Qh(r,e){var t=r.mapDimensionsAll("defaultedLabel");if(!U(e))return e+"";for(var n=[],i=0;i<t.length;i++){var a=r.getDimensionIndex(t[i]);a>=0&&n.push(e[a])}return n.join(" ")}var ed=T(()=>{"use strict";Oo();I()});function GF(r,e){this.parent.drift(r,e)}var HF,mf,E0=T(()=>{"use strict";ee();Go();ze();wr();Un();ed();I();Er();ho();Zu();HF=(function(r){R(e,r);function e(t,n,i,a){var o=r.call(this)||this;return o.updateData(t,n,i,a),o}return e.prototype._createSymbol=function(t,n,i,a,o,s){this.removeAll();var l=Mr(t,-1,-1,2,2,null,s);l.attr({z2:$(o,100),culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),l.drift=GF,this._symbolType=t,this.add(l)},e.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){mo(this.childAt(0))},e.prototype.downplay=function(){go(this.childAt(0))},e.prototype.setZ=function(t,n){var i=this.childAt(0);i.zlevel=t,i.z=n},e.prototype.setDraggable=function(t,n){var i=this.childAt(0);i.draggable=t,i.cursor=!n&&t?"move":i.cursor},e.prototype.updateData=function(t,n,i,a){this.silent=!1;var o=t.getItemVisual(n,"symbol")||"circle",s=t.hostModel,l=e.getSymbolSize(t,n),u=e.getSymbolZ2(t,n),f=o!==this._symbolType,c=a&&a.disableAnimation;if(f){var p=t.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,t,n,l,u,p)}else{var h=this.childAt(0);h.silent=!1;var d={scaleX:l[0]/2,scaleY:l[1]/2};c?h.attr(d):Ve(h,d,s,n),ol(h)}if(this._updateCommon(t,n,l,i,a),f){var h=this.childAt(0);if(!c){var d={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,Je(h,d,s,n)}}c&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,n,i,a,o){var s=this.childAt(0),l=t.hostModel,u,f,c,p,h,d,v,m,g;if(a&&(u=a.emphasisItemStyle,f=a.blurItemStyle,c=a.selectItemStyle,p=a.focus,h=a.blurScope,v=a.labelStatesModels,m=a.hoverScale,g=a.cursorStyle,d=a.emphasisDisabled),!a||t.hasItemOption){var y=a&&a.itemModel?a.itemModel:t.getItemModel(n),x=y.getModel("emphasis");u=x.getModel("itemStyle").getItemStyle(),c=y.getModel(["select","itemStyle"]).getItemStyle(),f=y.getModel(["blur","itemStyle"]).getItemStyle(),p=x.get("focus"),h=x.get("blurScope"),d=x.get("disabled"),v=Gn(y),m=x.getShallow("scale"),g=y.getShallow("cursor")}var _=t.getItemVisual(n,"symbolRotate");s.attr("rotation",(_||0)*Math.PI/180||0);var b=Jh(t.getItemVisual(n,"symbolOffset"),i);b&&(s.x=b[0],s.y=b[1]),g&&s.attr("cursor",g);var S=t.getItemVisual(n,"style"),w=S.fill;if(s instanceof Ut){var C=s.style;s.useStyle(k({image:C.image,x:C.x,y:C.y,width:C.width,height:C.height},S))}else s.__isEmptyBrush?s.useStyle(k({},S)):s.useStyle(S),s.style.decal=null,s.setColor(w,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var M=t.getItemVisual(n,"liftZ"),E=this._z2;M!=null?E==null&&(this._z2=s.z2,s.z2+=M):E!=null&&(s.z2=E,this._z2=null);var D=o&&o.useNameLabel;Hn(s,v,{labelFetcher:l,labelDataIndex:n,defaultText:P,inheritColor:w,defaultOpacity:S.opacity});function P(z){return D?t.getName(z):wl(t,z)}this._sizeX=i[0]/2,this._sizeY=i[1]/2;var L=s.ensureState("emphasis");L.style=u,s.ensureState("select").style=c,s.ensureState("blur").style=f;var O=m==null||m===!0?Math.max(1.1,3/this._sizeY):isFinite(m)&&m>0?+m:1;L.scaleX=this._sizeX*O,L.scaleY=this._sizeY*O,this.setSymbolScale(1),mi(this,p,h,d)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,n,i){var a=this.childAt(0),o=ye(this).dataIndex,s=i&&i.animation;if(this.silent=a.silent=!0,i&&i.fadeLabel){var l=a.getTextContent();l&&al(l,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();al(a,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:t,removeOpt:s})},e.getSymbolSize=function(t,n){return pC(t.getItemVisual(n,"symbolSize"))},e.getSymbolZ2=function(t,n){return t.getItemVisual(n,"z2")},e})(Ie);mf=HF});function td(r,e,t,n){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(n&&n.isIgnore&&n.isIgnore(t))&&!(n&&n.clipShape&&!n.clipShape.contain(e[0],e[1]))&&r.getItemVisual(t,"symbol")!=="none"}function vC(r){return r!=null&&!Y(r)&&(r={isIgnore:r}),r||{}}function mC(r){var e=r.hostModel,t=e.getModel("emphasis");return{emphasisItemStyle:t.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:t.get("focus"),blurScope:t.get("blurScope"),emphasisDisabled:t.get("disabled"),hoverScale:t.get("scale"),labelStatesModels:Gn(e),cursorStyle:e.get("cursor")}}function gC(r,e,t,n,i,a,o){var s=new r(e,t,n,i);return s.setPosition(a),e.setItemGraphicEl(t,s),o.add(s),s}var $F,rd,A0=T(()=>{"use strict";ze();E0();I();Er();$F=(function(){function r(e){this.group=new Ie,this._SymbolCtor=e||mf}return r.prototype.updateData=function(e,t){this._progressiveEls=null,t=vC(t);var n=this.group,i=e.hostModel,a=this._data,o=this._SymbolCtor,s=t.disableAnimation,l=this._seriesScope=mC(e),u={disableAnimation:s},f=t.getSymbolPoint||function(c){return e.getItemLayout(c)};a||n.removeAll(),e.diff(a).add(function(c){var p=f(c);td(e,p,c,t)&&gC(o,e,c,l,u,p,n)}).update(function(c,p){var h=a.getItemGraphicEl(p),d=f(c);if(!td(e,d,c,t)){n.remove(h);return}var v=e.getItemVisual(c,"symbol")||"circle",m=h&&h.getSymbolType&&h.getSymbolType();if(!h||m&&m!==v)n.remove(h),h=new o(e,c,l,u),h.setPosition(d);else{h.updateData(e,c,l,u);var g={x:d[0],y:d[1]};s?h.attr(g):Ve(h,g,i)}n.add(h),e.setItemGraphicEl(c,h)}).remove(function(c){var p=a.getItemGraphicEl(c);p&&p.fadeOut(function(){n.remove(p)},i)}).execute(),this._getSymbolPoint=f,this._data=e},r.prototype.updateLayout=function(e){var t=this._data;if(t)for(var n=this,i=t.getStore(),a=0,o=i.count();a<o;a++){var s=t.getItemGraphicEl(a),l=n._getSymbolPoint(a);td(t,l,a,e)?(s=s||gC(n._SymbolCtor,t,a,n._seriesScope,{disableAnimation:!0},l,n.group),s.stopAnimation(),s.setPosition(l),s.markRedraw()):s&&(n.group.remove(s),t.setItemGraphicEl(a,null))}},r.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=mC(e),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(e,t,n,i){this._progressiveEls=[],i=vC(i);function a(u){u.isGroup||(u.incremental=n,u.ensureState("emphasis").hoverLayer=Ju)}for(var o=e.start;o<e.end;o++){var s=t.getItemLayout(o);if(td(t,s,o,i)){var l=new this._SymbolCtor(t,o,this._seriesScope);l.traverse(a),l.setPosition(s),this.group.add(l),t.setItemGraphicEl(o,l),this._progressiveEls.push(l)}}},r.prototype.eachRendered=function(e){To(this._progressiveEls||this.group,e)},r.prototype.remove=function(e){var t=this.group,n=this._data;n&&e?n.eachItemGraphicEl(function(i){i.fadeOut(function(){t.remove(i)},n.hostModel)}):t.removeAll()},r})(),rd=$F});function nd(r,e,t){var n=r.getBaseAxis(),i=r.getOtherAxis(n),a=WF(i,t),o=n.dim,s=i.dim,l=e.mapDimension(s),u=e.mapDimension(o),f=s==="x"||s==="radius"?1:0,c=F(r.dimensions,function(d){return e.mapDimension(d)}),p=!1,h=e.getCalculationInfo("stackResultDimension");return bi(e,c[0])&&(p=!0,c[0]=h),bi(e,c[1])&&(p=!0,c[1]=h),{dataDimsForPoint:c,valueStart:a,valueAxisDim:s,baseAxisDim:o,stacked:!!p,valueDim:l,baseDim:u,baseDataOffset:f,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function WF(r,e){var t=0,n=r.scale.getExtent();return e==="start"?t=n[0]:e==="end"?t=n[1]:he(e)&&!isNaN(e)?t=e:n[0]>0?t=n[0]:n[1]<0&&(t=n[1]),t}function id(r,e,t,n){var i=NaN;r.stacked&&(i=t.get(t.getCalculationInfo("stackedOverDimension"),n)),isNaN(i)&&(i=r.valueStart);var a=r.baseDataOffset,o=[];return o[a]=t.get(r.baseDim,n),o[1-a]=i,e.dataToPoint(o)}function vr(r,e){return!isFinite(r)||!isFinite(e)}var ad=T(()=>{"use strict";gl();I()});function Dr(r){return od({ctor:YF},r).arr}function od(r,e){var t=r.arr,n=r.ctor;if(e>Mg&&(e=Mg),!t||r.typed&&t.length<e){var i=void 0;if(n)try{i=new n(e),r.typed=!0,t&&i.set(t)}catch{}if(!i&&(i=[],r.typed=!1,t))for(var a=0,o=t.length;a<o;a++)i[a]=t[a];r.arr=i}return r}var YF,yC,Tl=T(()=>{"use strict";Jt();we();YF=typeof Float32Array!==oa?Float32Array:void 0,yC=typeof Float64Array!==oa?Float64Array:void 0});function qF(r,e){var t=[];return e.diff(r).add(function(n){t.push({cmd:"+",idx:n})}).update(function(n,i){t.push({cmd:"=",idx:i,idx1:n})}).remove(function(n){t.push({cmd:"-",idx:n})}).execute(),t}function C0(r,e,t,n,i,a,o,s){for(var l=qF(r,e),u=[],f=[],c=[],p=[],h=[],d=[],v=[],m=nd(i,e,o),g=r.getLayout("points")||[],y=e.getLayout("points")||[],x=0;x<l.length;x++){var _=l[x],b=!0,S=void 0,w=void 0;switch(_.cmd){case"=":S=_.idx*2,w=_.idx1*2;var C=g[S],M=g[S+1],E=y[w],D=y[w+1];(isNaN(C)||isNaN(M))&&(C=E,M=D),u.push(C,M),f.push(E,D),c.push(t[S],t[S+1]),p.push(n[w],n[w+1]),v.push(e.getRawIndex(_.idx1));break;case"+":var P=_.idx,L=m.dataDimsForPoint,O=i.dataToPoint([e.get(L[0],P),e.get(L[1],P)]);w=P*2,u.push(O[0],O[1]),f.push(y[w],y[w+1]);var z=id(m,i,e,P);c.push(z[0],z[1]),p.push(n[w],n[w+1]),v.push(e.getRawIndex(P));break;case"-":b=!1}b&&(h.push(_),d.push(d.length))}d.sort(function(ve,_e){return v[ve]-v[_e]});for(var N=u.length,V=Dr(N),B=Dr(N),H=Dr(N),W=Dr(N),K=[],x=0;x<d.length;x++){var J=d[x],re=x*2,Z=J*2;V[re]=u[Z],V[re+1]=u[Z+1],B[re]=f[Z],B[re+1]=f[Z+1],H[re]=c[Z],H[re+1]=c[Z+1],W[re]=p[Z],W[re+1]=p[Z+1],K[x]=h[J]}return{current:V,next:B,stackedOnCurrent:H,stackedOnNext:W,status:K}}var xC=T(()=>{"use strict";ad();Tl()});function M0(r,e,t,n,i,a,o,s,l){for(var u,f,c,p,h,d,v=t,m=0;m<n;m++){var g=e[v*2],y=e[v*2+1];if(v>=i||v<0)break;if(vr(g,y)){if(l){v+=a;continue}break}if(v===t)r[a>0?"moveTo":"lineTo"](g,y),c=g,p=y;else{var x=g-u,_=y-f;if(x*x+_*_<.5){v+=a;continue}if(o>0){for(var b=v+a,S=e[b*2],w=e[b*2+1];S===g&&w===y&&m<n;)m++,b+=a,v+=a,S=e[b*2],w=e[b*2+1],g=e[v*2],y=e[v*2+1],x=g-u,_=y-f;var C=m+1;if(l)for(;vr(S,w)&&C<n;)C++,b+=a,S=e[b*2],w=e[b*2+1];var M=.5,E=0,D=0,P=void 0,L=void 0;if(C>=n||vr(S,w))h=g,d=y;else{E=S-u,D=w-f;var O=g-u,z=S-g,N=y-f,V=w-y,B=void 0,H=void 0;if(s==="x"){B=Math.abs(O),H=Math.abs(z);var W=E>0?1:-1;h=g-W*B*o,d=y,P=g+W*H*o,L=y}else if(s==="y"){B=Math.abs(N),H=Math.abs(V);var K=D>0?1:-1;h=g,d=y-K*B*o,P=g,L=y+K*H*o}else B=Math.sqrt(O*O+N*N),H=Math.sqrt(z*z+V*V),M=H/(H+B),h=g-E*o*(1-M),d=y-D*o*(1-M),P=g+E*o*M,L=y+D*o*M,P=ya(P,xa(S,g)),L=ya(L,xa(w,y)),P=xa(P,ya(S,g)),L=xa(L,ya(w,y)),E=P-g,D=L-y,h=g-E*B/H,d=y-D*B/H,h=ya(h,xa(u,g)),d=ya(d,xa(f,y)),h=xa(h,ya(u,g)),d=xa(d,ya(f,y)),E=g-h,D=y-d,P=g+E*H/B,L=y+D*H/B}r.bezierCurveTo(c,p,h,d,g,y),c=P,p=L}else r.lineTo(g,y)}u=g,f=y,v+=a}return m}var ya,xa,_C,bC,XF,SC,wC=T(()=>{"use strict";ee();ct();Nn();Mn();Gt();ad();ya=Math.min,xa=Math.max;_C=(function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r})(),bC=(function(r){R(e,r);function e(t){var n=r.call(this,t)||this;return n.type="ec-polyline",n}return e.prototype.getDefaultStyle=function(){return{stroke:ie.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new _C},e.prototype.buildPath=function(t,n){var i=n.points,a=0,o=i.length/2;if(n.connectNulls){for(;o>0&&vr(i[o*2-2],i[o*2-1]);o--);for(;a<o&&vr(i[a*2],i[a*2+1]);a++);}for(;a<o;)a+=M0(t,i,a,o,o,1,n.smooth,n.smoothMonotone,n.connectNulls)+1},e.prototype.getPointOn=function(t,n){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var i=this.path,a=i.data,o=Lt.CMD,s,l,u=n==="x",f=[],c=0;c<a.length;){var p=a[c++],h=void 0,d=void 0,v=void 0,m=void 0,g=void 0,y=void 0,x=void 0;switch(p){case o.M:s=a[c++],l=a[c++];break;case o.L:if(h=a[c++],d=a[c++],x=u?(t-s)/(h-s):(t-l)/(d-l),x<=1&&x>=0){var _=u?(d-l)*x+l:(h-s)*x+s;return u?[t,_]:[_,t]}s=h,l=d;break;case o.C:h=a[c++],d=a[c++],v=a[c++],m=a[c++],g=a[c++],y=a[c++];var b=u?ja(s,h,v,g,t,f):ja(l,d,m,y,t,f);if(b>0)for(var S=0;S<b;S++){var w=f[S];if(w<=1&&w>=0){var _=u?Xe(l,d,m,y,w):Xe(s,h,v,g,w);return u?[t,_]:[_,t]}}s=g,l=y;break}}},e})(le),XF=(function(r){R(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e})(_C),SC=(function(r){R(e,r);function e(t){var n=r.call(this,t)||this;return n.type="ec-polygon",n}return e.prototype.getDefaultShape=function(){return new XF},e.prototype.buildPath=function(t,n){var i=n.points,a=n.stackedOnPoints,o=0,s=i.length/2,l=n.smoothMonotone;if(n.connectNulls){for(;s>0&&vr(i[s*2-2],i[s*2-1]);s--);for(;o<s&&vr(i[o*2],i[o*2+1]);o++);}for(;o<s;){var u=M0(t,i,o,s,s,1,n.smooth,l,n.connectNulls);M0(t,a,o+u-1,u,s,-1,n.stackedOnSmooth,l,n.connectNulls),o+=u+1,t.closePath()}},e})(le)});function $o(){var r=ae();return function(e){var t=r(e),n=e.pipelineContext,i=!!t.large,a=!!t.progressiveRender,o=t.large=!!(n&&n.large),s=t.progressiveRender=!!(n&&n.progressiveRender);return(i!==o||a!==s)&&"reset"}}var sd=T(()=>{"use strict";ne()});function TC(r,e,t){r&&$u(r)&&(e==="emphasis"?mo:go)(r,t)}function EC(r,e,t){var n=Vr(r,e),i=e&&e.highlightKey!=null?z1(e.highlightKey):null;n!=null?A(Ke(n),function(a){TC(r.getItemGraphicEl(a),t,i)}):r.eachItemGraphicEl(function(a){TC(a,t,i)})}function ZF(r){return KF(r.model)}function jF(r){var e=r.model,t=r.ecModel,n=r.api,i=r.payload,a=e.pipelineContext.progressiveRender,o=r.view,s=i&&AC(i).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](e,t,n,i),JF[l]}var AC,KF,D0,JF,It,Wo=T(()=>{"use strict";I();nl();Ro();Tn();ne();Un();Yh();sd();ze();AC=ae(),KF=$o(),D0=(function(){function r(){this.group=new Ie,this.uid=pa("viewChart"),this.renderTask=va({plan:ZF,reset:jF}),this.renderTask.context={view:this}}return r.prototype.init=function(e,t){},r.prototype.render=function(e,t,n,i){},r.prototype.highlight=function(e,t,n,i){var a=e.getData(i&&i.dataType);a&&EC(a,i,"emphasis")},r.prototype.downplay=function(e,t,n,i){var a=e.getData(i&&i.dataType);a&&EC(a,i,"normal")},r.prototype.remove=function(e,t){this.group.removeAll()},r.prototype.dispose=function(e,t){},r.prototype.updateView=function(e,t,n,i){this.render(e,t,n,i)},r.prototype.updateVisual=function(e,t,n,i){this.render(e,t,n,i)},r.prototype.eachRendered=function(e){To(this.group,e)},r.markUpdateMethod=function(e,t){AC(e).updateMethod=t},r.protoInitialize=(function(){var e=r.prototype;e.type="chart"})(),r})();Ls(D0,["dispose"]);Vi(D0);JF={incrementalPrepareRender:{progress:function(r,e){e.view.incrementalRender(r,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(r,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},It=D0});function L0(r,e,t,n,i){var a=r.getArea(),o=a.x,s=a.y,l=a.width,u=a.height,f=t.get(["lineStyle","width"])||0;o-=f/2,s-=f/2,l+=f,u+=f,l=Math.ceil(l),o!==Math.floor(o)&&(o=Math.floor(o),l++);var c=new Oe({shape:{x:o,y:s,width:l,height:u}});if(e){var p=r.getBaseAxis(),h=p.isHorizontal(),d=p.inverse;h?(d&&(c.shape.x+=l),c.shape.width=0):(d||(c.shape.y+=u),c.shape.height=0);var v=j(i)?function(m){i(m,c)}:null;Je(c,{shape:{width:l,height:u,x:o,y:s}},t,null,n,v)}return c}function P0(r,e,t){var n=r.getArea(),i=Se(n.r0,1),a=Se(n.r,1),o=new an({shape:{cx:Se(r.cx,1),cy:Se(r.cy,1),r0:i,r:a,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}});if(e){var s=r.getBaseAxis().dim==="angle";s?o.shape.endAngle=n.startAngle:o.shape.r=i,Je(o,{shape:{endAngle:n.endAngle,r:a}},t)}return o}function CC(r,e,t,n,i){if(r){if(r.type==="polar")return P0(r,e,t);if(r.type==="cartesian2d")return L0(r,e,t,n,i)}else return null;return null}function MC(r){var e=r.coordinateSystem;if(r.get("clip",!0)&&e&&(!e.shouldClip||e.shouldClip()))return e.getArea&&e.getArea(.1)}var ld=T(()=>{"use strict";ze();we();I()});function ud(r,e){return r.type===e}var O0=T(()=>{"use strict"});var DC,tr,El=T(()=>{"use strict";Tn();DC=(function(){function r(){}return r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(e){this._isBlank=e},r})();Vi(DC);tr=DC});function tV(r){return Y(r)&&r.value!=null?r.value:r+""}var QF,eV,gf,I0=T(()=>{"use strict";I();QF=0,eV=(function(){function r(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++QF,this._onCollect=e.onCollect}return r.createByAxisModel=function(e){var t=e.option,n=t.data,i=n&&F(n,tV);return new r({categories:i,needCollect:!i,deduplication:t.dedplication!==!1})},r.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},r.prototype.parseAndCollect=function(e){var t,n=this._needCollect;if(!G(e)&&!n)return e;if(n&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,this._onCollect&&this._onCollect(e,t),t;var i=this._getOrCreateMap();return t=i.get(e),t==null&&(n?(t=this.categories.length,this.categories[t]=e,i.set(e,t),this._onCollect&&this._onCollect(e,t)):t=NaN),t},r.prototype._getOrCreateMap=function(){return this._map||(this._map=X(this.categories))},r})();gf=eV});function Ml(r,e,t){var n;r=r||{};var i=Qe();if(i){var a=i.createBreakScaleMapper(e,t);a.hasBreaks()&&(A(PC,function(o){a[o]&&(r[o]=Le(a[o],a))}),n=a)}return n==null&&nV(r,t),{brk:n,mapper:r}}function fd(r,e){A(PC,function(t){r[t]=e[t]})}function cd(r,e){r.freeze=at}function wi(r){return r.getExtentUnsafe(mr,Cl)}function Yo(r,e){return r.getExtentUnsafe(Al,e)||r.getExtentUnsafe(mr,e)}function IC(r){var e=Yo(r,OC);return e[1]-e[0]}function Dl(r){var e=r.getExtentUnsafe(mr,OC);return e[1]-e[0]}function nV(r,e){var t=r||{},n=[];return t._extents=n,n[mr]=e?e.slice():Ot(),k(t,iV),t}function LC(r,e,t,n){di(t,n)&&(r[e][0]=t,r[e][1]=n)}var mr,Al,rV,PC,Cl,OC,iV,fn=T(()=>{"use strict";I();ne();ln();mr=0,Al=1,rV={needTransform:1,normalize:1,scale:1,transformIn:1,transformOut:1,contain:1,getExtent:1,getExtentUnsafe:1,setExtent:1,setExtent2:1,getFilter:1,sanitize:1,getDefaultStartValue:1,freeze:1},PC=oe(rV),Cl=2,OC=3;iV={needTransform:function(){return!1},normalize:function(r){var e=this._extents[Al]||this._extents[mr];return e[1]===e[0]?.5:(r-e[0])/(e[1]-e[0])},scale:function(r){var e=this._extents[Al]||this._extents[mr];return r*(e[1]-e[0])+e[0]},transformIn:function(r){return r},transformOut:function(r){return r},contain:function(r){var e=Yo(this,null);return r>=e[0]&&r<=e[1]},getExtent:function(){return this._extents[mr].slice()},getExtentUnsafe:function(r){return this._extents[r]},setExtent:function(r,e){LC(this._extents,mr,r,e)},setExtent2:function(r,e,t){var n=this._extents;n[r]||(n[r]=n[mr].slice()),LC(n,r,e,t)},freeze:function(){}}});function pd(r){return Ll(r)||Xn(r)}function Ll(r){return r.type==="interval"}function Pl(r){return r.type==="time"}function Xn(r){return r.type==="log"}function At(r){return r.type==="ordinal"}function RC(r){var e=Lp(r),t=ia(10,e),n=br(r/t);return n?n===2?n=3:n===3?n=5:n*=2:n=1,Se(n*t,-e)}function cn(r){return tn(r)+2}function yf(r,e){return qs(r)/qs(e)}function hd(r,e,t){var n=t&&t.lookup;if(n){for(var i=0;i<n.from.length;i++)if(r===n.from[i])return n.to[i]}return ia(e,r)}function dd(r,e,t){var n=r.slice();if(n[0]===n[1]){var i=t&&t.ctnShp;if(n[0]!==0){var a=qe(n[0]);e[1]||(n[1]+=a/2),n[0]-=a/2}else i&&(n[0]=-1),n[1]=1}return(!rn(n[0])||!rn(n[1]))&&(n[0]=0,n[1]=1),n[1]<n[0]&&n.reverse(),n}function NC(r,e){return[r[0]!==e[0],r[1]!==e[1]]}function xf(r,e){return r=r||e,br(ge(r,1))}function vd(r,e,t){var n=wi(r),i=n[0],a=r.count(),o=Math.max((e||0)+1,1);i!==0&&o>1&&a/o>2&&(i=Math.round(Math.ceil(i/o)*o)),i!==n[0]&&l(n[0],!0,!0);for(var s=i;s<=n[1];s+=o)l(s,!1,s===n[0]||s===n[1]);s-o!==n[1]&&l(n[1],!0,!0);function l(u,f,c){t({value:u,offInterval:f},c)}}var Rt=T(()=>{"use strict";we();ne();fn()});var kC,zC,BC=T(()=>{"use strict";ee();El();I0();I();we();fn();Rt();kC=(function(r){R(e,r);function e(t){var n=r.call(this)||this;n.type="ordinal",n.parse=e.parse,fd(n,e.decoratedMethods);var i=t.ordinalMeta;i||(i=new gf({})),U(i)&&(i=new gf({categories:F(i,function(o){return Y(o)?o.value:o})})),n._ordinalMeta=i;var a=Ml(null,null,t.extent||[0,i.categories.length-1]);return n._mapper=a.mapper,cd(n,a.mapper),n}return e.parse=function(t){return t==null?t=NaN:G(t)?(t=this._ordinalMeta.getOrdinal(t),t==null&&(t=NaN)):t=br(t),t},e.prototype.getTicks=function(){var t=[];return vd(this,0,function(n){t.push(n)}),t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(t==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var n=t.ordinalNumbers,i=this._ordinalNumbersByTick=[],a=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=je(s,n.length);o<l;++o){var u=i[o]=n[o];a[u]=o}for(var f=0;o<s;++o){for(;a[f]!=null;)f++;i[o]=f,a[f]=o}},e.prototype._getTickNumber=function(t){var n=this._ticksByOrdinalNumber;return n&&t>=0&&t<n.length?n[t]:t},e.prototype.getRawOrdinalNumber=function(t){var n=this._ordinalNumbersByTick;return n&&t>=0&&t<n.length?n[t]:t},e.prototype.getLabel=function(t){if(!this.isBlank()){var n=this.getRawOrdinalNumber(t.value),i=this._ordinalMeta.categories[n];return i==null?"":i+""}},e.prototype.count=function(){var t=wi(this._mapper);return t[1]-t[0]+1},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.type="ordinal",e.decoratedMethods={needTransform:function(){return this._mapper.needTransform()},contain:function(t){return this._mapper.contain(this._getTickNumber(t))&&t>=0&&t<this._ordinalMeta.categories.length},normalize:function(t){return this._mapper.normalize(this._getTickNumber(t))},scale:function(t){return this.getRawOrdinalNumber(br(this._mapper.scale(t)))},transformIn:function(t,n){return this._mapper.transformIn(this._getTickNumber(t),n)},transformOut:function(t,n){return this.getRawOrdinalNumber(this._mapper.transformOut(t,n))},getExtent:function(){return this._mapper.getExtent()},getExtentUnsafe:function(t,n){return this._mapper.getExtentUnsafe(t,n)},setExtent:function(t,n){return this._mapper.setExtent(t,n)},setExtent2:function(t,n,i){return this._mapper.setExtent2(t,n,i)}},e})(tr);tr.registerClass(kC);zC=kC});function Ol(r,e,t,n){for(var i=r.getTicks({expandToNicedExtent:!0}),a=[],o=r.getExtent(),s=1;s<i.length;s++){var l=i[s],u=i[s-1];if(!(u.break||l.break)){for(var f=0,c=[],p=l.value-u.value,h=p/e,d=cn(h);f<e-1;){var v=Se(u.value+(f+1)*h,d);v>o[0]&&v<o[1]&&c.push(v),f++}var m=Qe();m&&m.pruneTicksByBreak("auto",c,t,function(g){return g},n,o),a.push(c)}}return a}var md=T(()=>{"use strict";we();ln();Rt()});var UC,qo,R0=T(()=>{"use strict";ee();we();Si();El();Rt();ln();I();md();fn();UC=(function(r){R(e,r);function e(t){var n=r.call(this)||this;n.type="interval",n.parse=e.parse,t=t||{};var i=Oh(n,t),a=Ml(n,i,null);return n.brk=a.brk,n._cfg={interval:0,intervalPrecision:2,intervalCount:void 0,niceExtent:void 0},n}return e.parse=function(t){return t==null||t===""?NaN:Number(t)},e.prototype.getConfig=function(){return ue(this._cfg)},e.prototype.setConfig=function(t){var n=wi(this);this._cfg=t=ue(t),t.niceExtent==null&&(t.niceExtent=n.slice()),t.intervalPrecision==null&&(t.intervalPrecision=cn(t.interval))},e.prototype.getTicks=function(t){t=t||{};var n=this._cfg,i=n.interval,a=wi(this),o=n.niceExtent,s=n.intervalPrecision,l=Qe(),u=this.brk,f=l&&u,c=[];if(!i)return c;if(t.breakTicks==="only_break"&&f)return l.addBreaksToTicks(c,u.breaks,a),c;var p=3e3;a[0]<o[0]&&c.push({value:t.expandToNicedExtent?Se(o[0]-i,s):a[0]});for(var h=function(x,_){return br((_-x)/i)},d=n.intervalCount,v=o[0],m=0;;m++){if(d==null){if(v>o[1]||!isFinite(v)||!isFinite(o[1]))break}else{if(m>d)break;v=je(v,o[1]),m===d&&(v=o[1])}if(c.push({value:v}),v=Se(v+i,s),u){var g=u.calcNiceTickMultiple(v,h);g>=0&&(v=Se(v+g*i,s))}if(c.length>0&&v===c[c.length-1].value)break;if(c.length>p)return[]}var y=c.length?c[c.length-1].value:o[1];return a[1]>y&&c.push({value:t.expandToNicedExtent?Se(y+i,s):a[1]}),f&&l.pruneTicksByBreak(t.pruneByBreak,c,u.breaks,function(x){return x.value},n.interval,a),f&&t.breakTicks!=="none"&&l.addBreaksToTicks(c,u.breaks,a),c},e.prototype.getMinorTicks=function(t){return Ol(this,t,ko(this),this._cfg.interval)},e.prototype.getLabel=function(t,n){if(t==null)return"";var i=n&&n.precision;i==null?i=tn(t.value)||0:i==="auto"&&(i=this._cfg.intervalPrecision);var a=Se(t.value,i,!0);return qA(a)},e.type="interval",e})(tr);tr.registerClass(UC);qo=UC});function HC(r,e,t,n){return zh(new Date(e),r,n).getTime()===zh(new Date(t),r,n).getTime()}function oV(r,e){return r/=Ar,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function sV(r){var e=30*Ar;return r/=e,r>6?6:r>3?3:r>2?2:1}function lV(r){return r/=xl,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function FC(r,e){return r/=e?kh:Nh,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function uV(r){return ge(vo(r,!0),1)}function fV(r,e,t){var n=Math.max(0,de(dr,e)-1);return zh(new Date(r),dr[n],t).getTime()}function cV(r,e){var t=new Date(0);t[r](1);var n=t.getTime();t[r](1+e);var i=t.getTime()-n;return function(a,o){return Math.max(0,Math.round((o-a)/i))}}function pV(r,e,t,n,i,a){var o=3e3,s=FA,l=0;function u(N,V,B,H,W,K,J){for(var re=cV(W,N),Z=V,ve=new Date(Z);Z<B&&Z<=n[1]&&(J.push({value:Z}),!(l++>o));)if(ve[W](ve[H]()+N),Z=ve.getTime(),a){var _e=a.calcNiceTickMultiple(Z,re);_e>0&&(ve[W](ve[H]()+_e*N),Z=ve.getTime())}J.push({value:Z,notAdd:Z>n[1]})}function f(N,V,B){var H=[],W=!V.length;if(!HC(_l(N),n[0],n[1],t)){W&&(V=[{value:fV(n[0],N,t)},{value:n[1]}]);for(var K=0;K<V.length-1;K++){var J=V[K].value,re=V[K+1].value;if(J!==re){var Z=void 0,ve=void 0,_e=void 0,et=!1;switch(N){case"year":Z=Math.max(1,Math.round(e/Ar/365)),ve=i0(t),_e=WA(t);break;case"half-year":case"quarter":case"month":Z=sV(e),ve=Bh(t),_e=a0(t);break;case"week":case"half-week":case"day":Z=oV(e,31),ve=Uh(t),_e=o0(t),et=!0;break;case"half-day":case"quarter-day":case"hour":Z=lV(e),ve=Fh(t),_e=s0(t);break;case"minute":Z=FC(e,!0),ve=Vh(t),_e=l0(t);break;case"second":Z=FC(e,!1),ve=Hh(t),_e=u0(t);break;case"millisecond":Z=uV(e),ve=Gh(t),_e=f0(t);break}re>=n[0]&&J<=n[1]&&u(Z,J,re,ve,_e,et,H),N==="year"&&B.length>1&&K===0&&B.unshift({value:B[0].value-Z})}}for(var K=0;K<H.length;K++)B.push(H[K])}}for(var c=[],p=[],h=0,d=0,v=0;v<s.length;++v){var m=_l(s[v]);if(HA(s[v])){f(s[v],c[c.length-1]||[],p);var g=s[v+1]?_l(s[v+1]):null;if(m!==g){if(p.length){d=h,p.sort(function(N,V){return N.value-V.value});for(var y=[],x=0;x<p.length;++x){var _=p[x].value;(x===0||p[x-1].value!==_)&&(y.push(p[x]),_>=n[0]&&_<=n[1]&&h++)}var b=i/e;if(h>b*1.5&&d>b/1.5||(c.push(y),h>b||r===s[v]))break}p=[]}}}for(var S=Fe(F(c,function(N){return Fe(N,function(V){return V.value>=n[0]&&V.value<=n[1]&&!V.notAdd})}),function(N){return N.length>0}),w=S.length-1,C=[],v=0;v<S.length;++v)for(var M=S[v],E=0;E<M.length;++E){var D=Bo(M[E].value,t);C.push({value:M[E].value,time:{level:w-v,upperTimeUnit:D,lowerTimeUnit:D}})}Js(C,d1,null),C.sort(function(N,V){return N.value-V.value});var P=C[0],L=C[C.length-1],O=Bo(n[0],t),z=Bo(n[1],t);return(!P||P.value>n[0])&&C.unshift({value:n[0],time:{level:0,upperTimeUnit:O,lowerTimeUnit:O},notNice:!0}),(!L||L.value<n[1])&&C.push({value:n[1],time:{level:0,upperTimeUnit:z,lowerTimeUnit:z},notNice:!0}),C}var aV,VC,gd,GC,$C,N0=T(()=>{"use strict";ee();we();c0();Rt();El();I();ln();md();fn();ne();aV=function(r,e,t,n){for(;t<n;){var i=t+n>>>1;r[i][1]<e?t=i+1:n=i}return t},VC=(function(r){R(e,r);function e(t){var n=r.call(this)||this;n.type="time",n.parse=e.parse,n._locale=t.locale,n._useUTC=t.useUTC,n._interval=0;var i=Oh(n,t),a=Ml(n,i,null);return n.brk=a.brk,n}return e.prototype.getLabel=function(t){return n0(t.value,r0[GA(_l(this._minLevelUnit))]||r0.second,this._useUTC,this._locale)},e.prototype.getFormattedLabel=function(t,n,i){return $A(t,n,i,this._locale,this._useUTC)},e.prototype.getTicks=function(t){t=t||{};var n=this._interval,i=wi(this),a=Qe(),o=this.brk,s=a&&o,l=[];if(!n)return l;var u=this._useUTC;if(s&&t.breakTicks==="only_break")return Qe().addBreaksToTicks(l,o.breaks,i),l;l=pV(this._minLevelUnit,this._approxInterval,u,i,Dl(this),o);var f=dr.length-1,c=0;return A(l,function(p){p.time&&(f=Math.min(f,de(dr,p.time.upperTimeUnit)),c=Math.max(c,p.time.level))}),s&&Qe().pruneTicksByBreak(t.pruneByBreak,l,o.breaks,function(p){return p.value},this._approxInterval,i),s&&t.breakTicks!=="none"&&Qe().addBreaksToTicks(l,o.breaks,i,function(p){for(var h=Math.max(de(dr,Bo(p.vmin,u)),de(dr,Bo(p.vmax,u))),d=0,v=0;v<dr.length;v++)if(!HC(dr[v],p.vmin,p.vmax,u)){d=v;break}var m=Math.min(d,f),g=Math.max(m,h);return{level:c,lowerTimeUnit:dr[g],upperTimeUnit:dr[m]}}),l},e.prototype.getMinorTicks=function(t){return Ol(this,t,ko(this),this._interval)},e.prototype.setTimeInterval=function(t){this._interval=t.interval,this._approxInterval=t.approxInterval,this._minLevelUnit=t.minLevelUnit},e.parse=function(t){return he(t)?Math.round(t):+ci(t)},e.type="time",e})(tr),gd=[["second",Nh],["minute",kh],["hour",xl],["quarter-day",xl*6],["half-day",xl*12],["day",Ar*1.2],["half-week",Ar*3.5],["week",Ar*7],["month",Ar*31],["quarter",Ar*95],["half-year",t0/2],["year",t0]];GC=function(r,e){var t=r.getExtent();if(t[0]===t[1]&&(t[0]-=Ar,t[1]+=Ar),t[1]===-1/0&&t[0]===1/0){var n=new Date;t[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),t[0]=t[1]-Ar}r.setExtent(t[0],t[1]);var i=xf(e.splitNumber,10),a=Dl(r)/i,o=e.minInterval,s=e.maxInterval;o!=null&&a<o&&(a=o),s!=null&&a>s&&(a=s);var l=gd.length,u=Math.min(aV(gd,a,0,l),l-1),f=gd[u][1],c=gd[Math.max(u-1,0)][0];r.setTimeInterval({approxInterval:a,interval:f,minLevelUnit:c})};tr.registerClass(VC);$C=VC});var yd,xd,hV,XC,WC,YC,qC,KC,ZC=T(()=>{"use strict";ee();El();R0();Rt();ln();md();fn();I();ne();we();yd=0,xd=1,hV=2,XC=(function(r){R(e,r);function e(t){var n=r.call(this)||this;n.type="log",n.parse=qo.parse,n.base=t.logBase||10;var i=[],a=[],o=n._lookup={from:i,to:a};i[yd]=i[xd]=a[yd]=a[xd]=NaN,fd(n,e.mapperMethods);var s=Qe(),l=t.breakOption,u={lookup:o};return s&&s.parseAxisBreakOptionInwardTransform(l,n,{noNegative:!0},hV,u),n.powStub=new qo({breakParsed:u.original}),n.intervalStub=new qo({breakParsed:u.transformed}),cd(n,n.intervalStub),n}return e.prototype.getTicks=function(t){var n=this.base,i=this.powStub,a=Qe(),o=this.intervalStub,s=o.getExtent(),l=i.getExtent(),u={lookup:{from:s,to:l}};return F(o.getTicks(t||{}),function(f){var c=f.value,p=hd(c,n,u),h;if(a){var d=a.getTicksBreakOutwardTransform(this,f,ko(i),this._lookup);d&&(h=d.vBreak,p=d.tickVal)}return{value:p,break:h}},this)},e.prototype.getMinorTicks=function(t){return Ol(this,t,ko(this.powStub),this.intervalStub.getConfig().interval)},e.prototype.getLabel=function(t,n){return this.intervalStub.getLabel(t,n)},e.type="log",e.mapperMethods={needTransform:function(){return!0},normalize:function(t){return this.intervalStub.normalize(yf(t,this.base))},scale:function(t){return hd(this.intervalStub.scale(t),this.base,null)},transformIn:function(t,n){return t=yf(t,this.base),n&&n.depth===Cl?t:this.intervalStub.transformIn(t,n)},transformOut:function(t,n){var i=n?n.depth:null;return WC.depth=i,YC.lookup=this._lookup,hd(i===Cl?t:this.intervalStub.transformOut(t,WC),this.base,YC)},contain:function(t){return this.powStub.contain(t)},setExtent:function(t,n){this.setExtent2(mr,t,n)},setExtent2:function(t,n,i){if(!(!di(n,i)||n<=0||i<=0)){var a=qC,o=qC;if(t===mr){var s=this._lookup;a=s.to,o=s.from}this.powStub.setExtent2(t,a[yd]=n,a[xd]=i);var l=this.base;this.intervalStub.setExtent2(t,o[yd]=yf(n,l),o[xd]=yf(i,l))}},getFilter:function(){return{g:0}},sanitize:function(t,n){return di(n[0],n[1])&&xt(t)&&t<=0&&(t=n[0]),t},getDefaultStartValue:function(){return 1},getExtent:function(){return this.powStub.getExtent()},getExtentUnsafe:function(t,n){return n===null?this.powStub.getExtentUnsafe(t,null):this.intervalStub.getExtentUnsafe(t,n)}},e})(tr);tr.registerClass(XC);WC={},YC={},qC=[],KC=XC});var _d,k0=T(()=>{"use strict";_d={value:1,category:1,time:1,log:1}});function JC(r){var e=r.get("type");return(e==null||!Ye(_d,e)&&!tr.getClass(e))&&(e="value"),e}function QC(r,e,t){var n=Qe(),i;switch(n&&(i=z0(r,e,t)),e){case"category":return new zC({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:Ot()});case"time":return new $C({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC"),breakOption:i});case"log":return new KC({logBase:r.get("logBase"),breakOption:i});case"value":return new qo({breakOption:i});default:return new(tr.getClass(e)||qo)({})}}function eM(r,e,t){var n=t?Yo(r,null):r.getExtentUnsafe(mr,null),i=n[0],a=n[1];return di(i,a)?i===e||a===e?vV:i<e&&a>e?dV:bd:bd}function tM(r){jC(r).noOnMyZero=!0}function rM(r){return jC(r).noOnMyZero}function _f(r){var e=r.getLabelModel().get("formatter");if(r.type==="time"){var t=VA(e);return function(i,a){return r.scale.getFormattedLabel(i,a,t)}}else{if(G(e))return function(i){var a=r.scale.getLabel(i),o=e.replace("{value}",a??"");return o};if(j(e)){if(r.type==="category")return function(i,a){return e(Sd(r,i),i.value-r.scale.getExtent()[0],null)};var n=Qe();return function(i,a){var o=null;return n&&(o=n.makeAxisLabelFormatterParamBreak(o,i.break)),e(Sd(r,i),a,o)}}else return function(i){return r.scale.getLabel(i)}}}function Sd(r,e){var t=r.scale;return At(t)?t.getLabel(e):e.value}function wd(r){var e=r.get("interval");return e??"auto"}function nM(r){return r.type==="category"&&wd(r.getLabelModel())===0}function iM(r,e){var t={};return A(r.mapDimensionsAll(e),function(n){t[AA(r,n)]=!0}),oe(t)}function _a(r){return r==="middle"||r==="center"}function Xo(r){return r.getShallow("show")}function z0(r,e,t){var n=r.get("breaks",!0);if(n!=null){if(!Qe())return;if(!t||!mV(e)){if(0)var i;return}return n}}function mV(r){return r!=="category"}function Td(r,e,t,n,i,a){var o=Xn(r),s=o?r.intervalStub:r;if(s.setExtent(n[0],n[1]),o){var l=r.powStub,u={depth:Cl},f=r.transformOut(n[0],u),c=r.transformOut(n[1],u),p=NC(t,n);e[0]&&!p[0]&&(f=i[0]),e[1]&&!p[1]&&(c=i[1]),l.setExtent(f,c)}s.setConfig(a)}function Ti(r,e){return At(r)?r.getRawOrdinalNumber(e.value):e.value}function Ed(r,e){return At(r)&&!!e.get("boundaryGap")}var jC,dV,vV,bd,pn=T(()=>{"use strict";I();BC();R0();El();N0();ZC();k0();gl();c0();ln();Rt();ne();fn();jC=ae();dV=1,vV=2,bd=3});function aM(r,e){if(r.length===e.length){for(var t=0;t<r.length;t++)if(r[t]!==e[t])return;return!0}}function oM(r){for(var e=Ot(),t=Ot(),n=0;n<r.length;){var i=r[n++],a=r[n++];vr(i,a)||(Bu(e,i),Bu(t,a))}return[e,t]}function sM(r,e){var t=oM(r),n=t[0],i=t[1],a=oM(e),o=a[0],s=a[1];return Math.max(Math.abs(n[0]-o[0]),Math.abs(i[0]-s[0]),Math.abs(n[1]-o[1]),Math.abs(i[1]-s[1]))}function lM(r){return he(r)?r:r?.5:0}function yV(r,e,t){if(t.valueDim==null)return[];for(var n=e.count(),i=Dr(n*2),a=0;a<n;a++){var o=id(t,r,e,a);i[a*2]=o[0],i[a*2+1]=o[1]}return i}function ba(r,e,t,n,i){var a=t.getBaseAxis(),o=a.dim==="x"||a.dim==="radius"?0:1,s=[],l=0,u=[],f=[],c=[],p=[];if(i){for(l=0;l<r.length;l+=2){var h=e||r;vr(h[l],h[l+1])||p.push(r[l],r[l+1])}r=p}for(l=0;l<r.length-2;l+=2)switch(c[0]=r[l+2],c[1]=r[l+3],f[0]=r[l],f[1]=r[l+1],s.push(f[0],f[1]),n){case"end":u[o]=c[o],u[1-o]=f[1-o],s.push(u[0],u[1]);break;case"middle":var d=(f[o]+c[o])/2,v=[];u[o]=v[o]=d,u[1-o]=f[1-o],v[1-o]=c[1-o],s.push(u[0],u[1]),s.push(v[0],v[1]);break;default:u[o]=f[o],u[1-o]=c[1-o],s.push(u[0],u[1])}return s.push(r[l++],r[l++]),s}function xV(r,e){var t=[],n=r.length,i,a;function o(f,c,p){var h=f.coord,d=(p-h)/(c.coord-h),v=Zw(d,[f.color,c.color]);return{coord:p,color:v}}for(var s=0;s<n;s++){var l=r[s],u=l.coord;if(u<0)i=l;else if(u>e){a?t.push(o(a,l,e)):i&&t.push(o(i,l,0),o(i,l,e));break}else i&&(t.push(o(i,l,0)),i=null),t.push(l),a=l}return t}function _V(r,e,t){var n=r.getVisual("visualMeta");if(!(!n||!n.length||!r.count())&&e.type==="cartesian2d"){for(var i,a,o=n.length-1;o>=0;o--){var s=r.getDimensionInfo(n[o].dimension);if(i=s&&s.coordDim,i==="x"||i==="y"){a=n[o];break}}if(a){var l=e.getAxis(i),u=F(a.stops,function(x){return{coord:l.toGlobalCoord(l.dataToCoord(x.value)),color:x.color}}),f=u.length,c=a.outerColors.slice();f&&u[0].coord>u[f-1].coord&&(u.reverse(),c.reverse());var p=xV(u,i==="x"?t.getWidth():t.getHeight()),h=p.length;if(!h&&f)return u[0].coord<0?c[1]?c[1]:u[f-1].color:c[0]?c[0]:u[0].color;var d=10,v=p[0].coord-d,m=p[h-1].coord+d,g=m-v;if(g<.001)return"transparent";A(p,function(x){x.offset=(x.coord-v)/g}),p.push({offset:h?p[h-1].offset:.5,color:c[1]||"transparent"}),p.unshift({offset:h?p[0].offset:.5,color:c[0]||"transparent"});var y=new eh(0,0,0,0,p,!0);return y[i]=v,y[i+"2"]=m,y}}}function bV(r,e,t){var n=r.get("showAllSymbol"),i=n==="auto";if(!(n&&!i)){var a=t.getAxesByScale("ordinal")[0];if(a&&!(i&&SV(a,e))){var o=e.mapDimension(a.dim),s={};return A(a.getViewLabels(),function(l){l.tick.offInterval||(s[Ti(a.scale,l.tick)]=1)}),function(l){return!s.hasOwnProperty(e.get(o,l))}}}}function SV(r,e){var t=r.getExtent(),n=Math.abs(t[1]-t[0])/r.scale.count();isNaN(n)&&(n=0);for(var i=e.count(),a=Math.max(1,Math.round(i/5)),o=0;o<i;o+=a)if(mf.getSymbolSize(e,o)[r.isHorizontal()?1:0]*1.5>n)return!1;return!0}function wV(r){for(var e=r.length/2;e>0&&vr(r[e*2-2],r[e*2-1]);e--);return e-1}function uM(r,e){return[r[e*2],r[e*2+1]]}function TV(r,e,t){for(var n=r.length/2,i=t==="x"?0:1,a,o,s=0,l=-1,u=0;u<n;u++)if(o=r[u*2+i],!vr(o,r[u*2+1-i])){if(u===0){a=o;continue}if(a<=e&&o>=e||a>=e&&o<=e){l=u;break}s=u,a=o}return{range:[s,l],t:(e-a)/(o-a)}}function fM(r){if(r.get(["endLabel","show"]))return!0;for(var e=0;e<Qt.length;e++)if(r.get([Qt[e],"endLabel","show"]))return!0;return!1}function B0(r,e,t,n){if(ud(e,"cartesian2d")){var i=n.getModel("endLabel"),a=i.get("valueAnimation"),o=n.getData(),s={lastFrameIndex:0},l=fM(n)?function(h,d){r._endLabelOnDuring(h,d,o,s,a,i,e)}:null,u=e.getBaseAxis().isHorizontal(),f=L0(e,t,n,function(){var h=r._endLabel;h&&t&&s.originalX!=null&&h.attr({x:s.originalX,y:s.originalY})},l);if(!n.get("clip",!0)){var c=f.shape,p=Math.max(c.width,c.height);u?(c.y-=p,c.height+=p*2):(c.x-=p,c.width+=p*2)}return l&&l(1,f),f}else return P0(e,t,n)}function EV(r,e){var t=e.getBaseAxis(),n=t.isHorizontal(),i=t.inverse,a=n?i?"right":"left":"center",o=n?"middle":i?"top":"bottom";return{normal:{align:r.get("align")||a,verticalAlign:r.get("verticalAlign")||o}}}var AV,cM,pM=T(()=>{"use strict";ee();I();A0();E0();xC();ze();ne();wC();Wo();ad();ld();O0();Un();Er();ed();wr();Tl();Si();kr();pn();AV=(function(r){R(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.init=function(){var t=new Ie,n=new rd;this.group.add(n.group),this._symbolDraw=n,this._lineGroup=t,this._changePolyState=Le(this._changePolyState,this)},e.prototype.render=function(t,n,i){var a=t.coordinateSystem,o=this.group,s=t.getData(),l=t.getModel("lineStyle"),u=t.getModel("areaStyle"),f=s.getLayout("points")||[],c=a.type==="polar",p=this._coordSys,h=this._symbolDraw,d=this._polyline,v=this._polygon,m=this._lineGroup,g=!n.ssr&&t.get("animation"),y=!u.isEmpty(),x=u.get("origin"),_=nd(a,s,x),b=y&&yV(a,s,_),S=t.get("showSymbol"),w=t.get("connectNulls"),C=S&&!c&&bV(t,s,a),M=this._data;M&&M.eachItemGraphicEl(function(Ce,Ge){Ce.__temp&&(o.remove(Ce),M.setItemGraphicEl(Ge,null))}),S||h.remove(),o.add(m);var E=c?!1:t.get("step"),D;a&&a.getArea&&t.get("clip",!0)&&(D=a.getArea(),D.width!=null?(D.x-=.1,D.y-=.1,D.width+=.2,D.height+=.2):D.r0&&(D.r0-=.5,D.r+=.5)),this._clipShapeForSymbol=D;var P=_V(s,a,i)||s.getVisual("style")[s.getVisual("drawType")];if(!(d&&p.type===a.type&&E===this._step))S&&h.updateData(s,{isIgnore:C,clipShape:D,disableAnimation:!0,getSymbolPoint:function(Ce){return[f[Ce*2],f[Ce*2+1]]}}),g&&this._initSymbolLabelAnimation(s,a,D),E&&(b&&(b=ba(b,f,a,E,w)),f=ba(f,null,a,E,w)),d=this._newPolyline(f),y?v=this._newPolygon(f,b):v&&(m.remove(v),v=this._polygon=null),c||this._initOrUpdateEndLabel(t,a,hf(P)),m.setClipPath(B0(this,a,!0,t));else{y&&!v?v=this._newPolygon(f,b):v&&!y&&(m.remove(v),v=this._polygon=null),c||this._initOrUpdateEndLabel(t,a,hf(P));var L=m.getClipPath();if(L){var O=B0(this,a,!1,t);Je(L,{shape:O.shape},t)}else m.setClipPath(B0(this,a,!0,t));S&&h.updateData(s,{isIgnore:C,clipShape:D,disableAnimation:!0,getSymbolPoint:function(Ce){return[f[Ce*2],f[Ce*2+1]]}}),(!aM(this._stackedOnPoints,b)||!aM(this._points,f))&&(g?this._doUpdateAnimation(s,b,a,i,E,x,w):(E&&(b&&(b=ba(b,f,a,E,w)),f=ba(f,null,a,E,w)),d.setShape({points:f}),v&&v.setShape({points:f,stackedOnPoints:b})))}var z=t.getModel("emphasis"),N=z.get("focus"),V=z.get("blurScope"),B=z.get("disabled");if(d.useStyle(fe(l.getLineStyle(),{fill:"none",stroke:P,lineJoin:"bevel"})),yo(d,t,"lineStyle"),d.style.lineWidth>0&&t.get(["emphasis","lineStyle","width"])==="bolder"){var H=d.getState("emphasis").style;H.lineWidth=+d.style.lineWidth+1}ye(d).seriesIndex=t.seriesIndex,mi(d,N,V,B);var W=lM(t.get("smooth")),K=t.get("smoothMonotone");if(d.setShape({smooth:W,smoothMonotone:K,connectNulls:w}),v){var J=s.getCalculationInfo("stackedOnSeries"),re=0;v.useStyle(fe(u.getAreaStyle(),{fill:P,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),J&&(re=lM(J.get("smooth"))),v.setShape({smooth:W,stackedOnSmooth:re,smoothMonotone:K,connectNulls:w}),yo(v,t,"areaStyle"),ye(v).seriesIndex=t.seriesIndex,mi(v,N,V,B)}var Z=this._changePolyState;s.eachItemGraphicEl(function(Ce){Ce&&(Ce.onHoverStateChange=Z)}),this._polyline.onHoverStateChange=Z,this._data=s,this._coordSys=a,this._stackedOnPoints=b,this._points=f,this._step=E,this._valueOrigin=x;var ve=t.get("triggerEvent"),_e=t.get("triggerLineEvent"),et=_e===!0||ve===!0||ve==="line",Ze=_e===!0||ve===!0||ve==="area";this.packEventData(t,d,et),v&&this.packEventData(t,v,Ze)},e.prototype.packEventData=function(t,n,i){ye(n).eventData=i?{componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line",selfType:n===this._polygon?"area":"line"}:null},e.prototype.highlight=function(t,n,i,a){var o=t.getData(),s=Vr(o,a);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var f=l[s*2],c=l[s*2+1];if(vr(f,c)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(f,c))return;var p=t.get("zlevel")||0,h=t.get("z")||0;u=new mf(o,s),u.x=f,u.y=c,u.setZ(p,h);var d=u.getSymbolPath().getTextContent();d&&(d.zlevel=p,d.z=h,d.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else It.prototype.highlight.call(this,t,n,i,a)},e.prototype.downplay=function(t,n,i,a){var o=t.getData(),s=Vr(o,a);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 It.prototype.downplay.call(this,t,n,i,a)},e.prototype._changePolyState=function(t){var n=this._polygon;Wg(this._polyline,t),n&&Wg(n,t)},e.prototype._newPolyline=function(t){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new bC({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(n),this._polyline=n,n},e.prototype._newPolygon=function(t,n){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new SC({shape:{points:t,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(i),this._polygon=i,i},e.prototype._initSymbolLabelAnimation=function(t,n,i){var a,o,s=n.getBaseAxis(),l=s.inverse;n.type==="cartesian2d"?(a=s.isHorizontal(),o=!1):n.type==="polar"&&(a=s.dim==="angle",o=!0);var u=t.hostModel,f=u.get("animationDuration");j(f)&&(f=f(null));var c=u.get("animationDelay")||0,p=j(c)?c(null):c;t.eachItemGraphicEl(function(h,d){var v=h;if(v){var m=[h.x,h.y],g=void 0,y=void 0,x=void 0;if(i)if(o){var _=i,b=n.pointToCoord(m);a?(g=_.startAngle,y=_.endAngle,x=-b[1]/180*Math.PI):(g=_.r0,y=_.r,x=b[0])}else{var S=i;a?(g=S.x,y=S.x+S.width,x=h.x):(g=S.y+S.height,y=S.y,x=h.y)}var w=y===g?0:(x-g)/(y-g);l&&(w=1-w);var C=j(c)?c(d):f*w+p,M=v.getSymbolPath(),E=M.getTextContent();v.attr({scaleX:0,scaleY:0}),v.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:C}),E&&E.animateFrom({style:{opacity:0}},{duration:300,delay:C}),M.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(t,n,i){var a=t.getModel("endLabel");if(fM(t)){var o=t.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 $e({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=wV(l);f>=0&&(Hn(s,Gn(t,"endLabel"),{inheritColor:i,labelFetcher:t,labelDataIndex:f,defaultText:function(c,p,h){return h!=null?Qh(o,h):wl(o,c)},enableTextSetter:!0},EV(a,n)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,n,i,a,o,s,l){var u=this._endLabel,f=this._polyline;if(u){t<1&&a.originalX==null&&(a.originalX=u.x,a.originalY=u.y);var c=i.getLayout("points"),p=i.hostModel,h=p.get("connectNulls"),d=s.get("precision"),v=s.get("distance")||0,m=l.getBaseAxis(),g=m.isHorizontal(),y=m.inverse,x=n.shape,_=y?g?x.x:x.y+x.height:g?x.x+x.width:x.y,b=(g?v:0)*(y?-1:1),S=(g?0:-v)*(y?-1:1),w=g?"x":"y",C=TV(c,_,w),M=C.range,E=M[1]-M[0],D=void 0;if(E>=1){if(E>1&&!h){var P=uM(c,M[0]);u.attr({x:P[0]+b,y:P[1]+S}),o&&(D=p.getRawValue(M[0]))}else{var P=f.getPointOn(_,w);P&&u.attr({x:P[0]+b,y:P[1]+S});var L=p.getRawValue(M[0]),O=p.getRawValue(M[1]);o&&(D=Ip(i,d,L,O,C.t))}a.lastFrameIndex=M[0]}else{var z=t===1||a.lastFrameIndex>0?M[0]:0,P=uM(c,z);o&&(D=p.getRawValue(z)),u.attr({x:P[0]+b,y:P[1]+S})}if(o){var N=yi(u);typeof N.setLabelText=="function"&&N.setLabelText(D)}}},e.prototype._doUpdateAnimation=function(t,n,i,a,o,s,l){var u=this._polyline,f=this._polygon,c=t.hostModel,p=C0(this._data,t,this._stackedOnPoints,n,this._coordSys,i,this._valueOrigin,s),h=p.current,d=p.stackedOnCurrent,v=p.next,m=p.stackedOnNext;if(o&&(d=ba(p.stackedOnCurrent,p.current,i,o,l),h=ba(p.current,null,i,o,l),m=ba(p.stackedOnNext,p.next,i,o,l),v=ba(p.next,null,i,o,l)),sM(h,v)>3e3||f&&sM(d,m)>3e3){u.stopAnimation(),u.setShape({points:v}),f&&(f.stopAnimation(),f.setShape({points:v,stackedOnPoints:m}));return}u.shape.__points=p.current,u.shape.points=h;var g={shape:{points:v}};p.current!==h&&(g.shape.__points=p.next),u.stopAnimation(),Ve(u,g,c),f&&(f.setShape({points:h,stackedOnPoints:d}),f.stopAnimation(),Ve(f,{shape:{stackedOnPoints:m}},c),u.shape.points!==f.shape.points&&(f.shape.points=u.shape.points));for(var y=[],x=p.status,_=0;_<x.length;_++){var b=x[_].cmd;if(b==="="){var S=t.getItemGraphicEl(x[_].idx1);S&&y.push({el:S,ptIdx:_})}}u.animators&&u.animators.length&&u.animators[0].during(function(){f&&f.dirtyShape();for(var w=u.shape.__points,C=0;C<y.length;C++){var M=y[C].el,E=y[C].ptIdx*2;M.x=w[E],M.y=w[E+1],M.markRedraw()}})},e.prototype.remove=function(t){var n=this.group,i=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),i&&i.eachItemGraphicEl(function(a,o){a.__temp&&(n.remove(a),i.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},e.type="line",e})(It),cM=AV});function Ko(r,e){return{seriesType:r,plan:$o(),reset:function(t){var n=t.getData(),i=t.coordinateSystem,a=t.pipelineContext,o=e||a.large;if(i){var s=F(i.dimensions,function(h){return n.mapDimension(h)}).slice(0,2),l=s.length,u=n.getCalculationInfo("stackResultDimension");bi(n,s[0])&&(s[0]=u),bi(n,s[1])&&(s[1]=u);var f=n.getStore(),c=n.getDimensionIndex(s[0]),p=n.getDimensionIndex(s[1]);return l&&{progress:function(h,d){for(var v=h.end-h.start,m=o&&Dr(v*l),g=[],y=[],x=h.start,_=0;x<h.end;x++){var b=void 0;if(l===1){var S=f.get(c,x);b=i.dataToPoint(S,null,y)}else g[0]=f.get(c,x),g[1]=f.get(p,x),b=i.dataToPoint(g,null,y);o?(m[_++]=b[0],m[_++]=b[1]):d.setItemLayout(x,b.slice())}o&&(d.setLayout("points",m),d.setLayout("pointsRange",{start:h.start,end:h.end}))}}}}}}var Ad=T(()=>{"use strict";I();sd();gl();Tl()});function bf(r){return{seriesType:r,reset:function(e,t,n){var i=e.getData(),a=e.get("sampling"),o=e.coordinateSystem,s=i.count();if(s>10&&o.type==="cartesian2d"&&a){var l=o.getBaseAxis(),u=o.getOtherAxis(l),f=l.getExtent(),c=n.getDevicePixelRatio(),p=Math.abs(f[1]-f[0])*(c||1),h=Math.round(s/p);if(isFinite(h)&&h>1){a==="lttb"?e.setData(i.lttbDownSample(i.mapDimension(u.dim),1/h)):a==="minmax"&&e.setData(i.minmaxDownSample(i.mapDimension(u.dim),1/h));var d=void 0;G(a)?d=CV[a]:j(a)&&(d=a),d&&e.setData(i.downSample(i.mapDimension(u.dim),1/h,d,MV))}}}}}var CV,MV,U0=T(()=>{"use strict";I();CV={average:function(r){for(var e=0,t=0,n=0;n<r.length;n++)isNaN(r[n])||(e+=r[n],t++);return t===0?NaN:e/t},sum:function(r){for(var e=0,t=0;t<r.length;t++)e+=r[t]||0;return e},max:function(r){for(var e=-1/0,t=0;t<r.length;t++)r[t]>e&&(e=r[t]);return isFinite(e)?e:NaN},min:function(r){for(var e=1/0,t=0;t<r.length;t++)r[t]<e&&(e=r[t]);return isFinite(e)?e:NaN},nearest:function(r){return r[0]}},MV=function(r){return Math.round(r.length/2)}});function F0(r){r.registerChartView(cM),r.registerSeriesModel(hC),r.registerLayout(Ko("line",!0)),r.registerVisual({seriesType:"line",reset:function(e){var t=e.getData(),n=e.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=t.getVisual("style").fill),t.setVisual("legendLineStyle",n)}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,bf("line"))}var hM=T(()=>{"use strict";dC();pM();Ad();U0()});function Il(r){return{out:{noPxChangeTryDetermine:[]},kind:r}}function dM(r,e){var t=r.getLabelModel().get("customValues");if(t){var n=r.scale;return{labels:F(mM(t,n),function(i,a){return{formattedLabel:_f(r)(i,a),rawLabel:n.getLabel(i),tick:i}})}}return r.type==="category"?LV(r,e):OV(r)}function vM(r,e,t){var n=r.scale,i=r.getTickModel().get("customValues");return i?{ticks:mM(i,n)}:r.type==="category"?PV(r,e):{ticks:n.getTicks(t)}}function mM(r,e){var t=e.getExtent(),n=[];return A(r,function(i){i=e.parse(i),i>=t[0]&&i<=t[1]&&n.push(i)}),Js(n,v1,null),Xs(n),F(n,function(i){return{value:i}})}function LV(r,e){var t=r.getLabelModel(),n=gM(r,t,e);return!t.get("show")||r.scale.isBlank()?{labels:[]}:n}function gM(r,e,t){var n=RV(r),i=wd(e),a=t.kind===gr.estimate;if(!a){var o=xM(n,i);if(o)return o}var s,l;j(i)?s=Cd(r,i,!1):(l=i==="auto"?NV(r,t):i,s=Cd(r,l,!1));var u={labels:s,labelCategoryInterval:l};return a?t.out.noPxChangeTryDetermine.push(function(){return V0(n,i,u),!0}):V0(n,i,u),u}function PV(r,e){var t=IV(r),n=wd(e),i=xM(t,n);if(i)return i;var a,o;if((!e.get("show")||r.scale.isBlank())&&(a=[]),j(n))a=Cd(r,n,!0);else if(n==="auto"){var s=gM(r,r.getLabelModel(),Il(gr.determine));o=s.labelCategoryInterval,a=F(s.labels,function(l){return l.tick})}else o=n,a=Cd(r,o,!0);return V0(t,n,{ticks:a,tickCategoryInterval:o})}function OV(r){var e=r.scale.getTicks(),t=_f(r);return{labels:F(e,function(n,i){return{formattedLabel:t(n,i),rawLabel:r.scale.getLabel(n),tick:n}})}}function yM(r){return function(t){return Sf(t)[r]||(Sf(t)[r]={list:[]})}}function xM(r,e){for(var t=0;t<r.list.length;t++)if(r.list[t].key===e)return r.list[t].value}function V0(r,e,t){return r.list.push({key:e,value:t}),t}function NV(r,e){if(e.kind===gr.estimate){var t=r.calculateCategoryInterval(e);return e.out.noPxChangeTryDetermine.push(function(){return Sf(r).autoInterval=t,!0}),t}var n=Sf(r).autoInterval;return n??(Sf(r).autoInterval=r.calculateCategoryInterval(e))}function _M(r,e){var t=e.kind,n=zV(r),i=_f(r),a=(n.axisRotate-n.labelRotate)/180*Math.PI,o=r.scale,s=o.getExtent(),l=o.count();if(s[1]-s[0]<1)return 0;var u=1,f=40;l>f&&(u=Math.max(1,Math.floor(l/f)));for(var c=s[0],p=r.dataToCoord(c+1)-r.dataToCoord(c),h=Math.abs(p*Math.cos(a)),d=Math.abs(p*Math.sin(a)),v=0,m=0;c<=s[1];c+=u){var g=0,y=0,x=Gc(i({value:c}),n.font,"center","top");g=x.width*1.3,y=x.height*1.3,v=Math.max(v,g,7),m=Math.max(m,y,7)}var _=v/h,b=m/d;isNaN(_)&&(_=1/0),isNaN(b)&&(b=1/0);var S=Math.max(0,Math.floor(Math.min(_,b)));if(t===gr.estimate)return e.out.noPxChangeTryDetermine.push(Le(kV,null,r,S,l)),S;var w=bM(r,S,l);return w??S}function kV(r,e,t){return bM(r,e,t)==null}function bM(r,e,t){var n=DV(r.model),i=r.getExtent(),a=n.lastAutoInterval,o=n.lastTickCount;if(a!=null&&o!=null&&Math.abs(a-e)<=1&&Math.abs(o-t)<=1&&a>e&&n.axisExtent0===i[0]&&n.axisExtent1===i[1])return a;n.lastTickCount=t,n.lastAutoInterval=e,n.axisExtent0=i[0],n.axisExtent1=i[1]}function zV(r){var e=r.getLabelModel();return{axisRotate:r.getRotate?r.getRotate():r.isHorizontal&&!r.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function Cd(r,e,t){var n=_f(r),i=r.scale,a=[],o=j(e);return vd(i,o?0:e,function(s,l){var u=i.getLabel(s);if(o){var f=!!e(s.value,u);if(s.offInterval=!f,!f&&!l)return}a.push(t?s:{formattedLabel:n(s),rawLabel:u,tick:s})}),a}var DV,Sf,gr,IV,RV,Md=T(()=>{"use strict";I();en();ne();pn();we();Rt();DV=ae(),Sf=ae(),gr={estimate:1,determine:2};IV=yM("axisTick"),RV=yM("axisLabel")});function SM(r){Dd(r).prepare={}}function wM(r){Dd(r).fullUpdate={}}function TM(r){return Dd(r).prepare}function Zo(r){return Dd(r).fullUpdate}var Dd,H0=T(()=>{"use strict";ne();Dd=ae()});function AM(r,e){var t=r.model,n=Rl(Zo(t.ecModel)).keyed,i=n&&n.get(e);return i&&i.get(t.uid)}function CM(r,e){return LM(AM(r,e))}function MM(r,e){var t=[];return DM(r.model.ecModel,function(n){for(var i=0;i<e.length;i++)e[i]&&n.serByIdx[e[i].seriesIndex]&&t.push(LM(n))}),t}function DM(r,e){var t=Rl(Zo(r)).keyed;t&&t.each(function(n,i){n.each(function(a,o){e(a,i,o)})})}function LM(r){return{liPosMinGap:r?r.liPosMinGap:void 0}}function PM(r,e){var t=r.model.ecModel,n=Rl(Zo(t)).axSer;n&&Od(t,n.get(r.model.uid),e)}function W0(r,e,t){var n=AM(r,e);n&&Od(r.model.ecModel,n.sers,t)}function Od(r,e,t){if(e)for(var n=0;n<e.length;n++){var i=e[n];r.isSeriesFiltered(i)||t(i)}}function OM(r,e,t){var n=Rl(Zo(r)).keyed,i=n&&n.get(e);i&&i.each(function(a){t(a.axis)})}function Y0(r,e){var t=r.model,n=Rl(Zo(t.ecModel)).keys;n&&A(n.get(t.uid),function(i){if(0)var a;e(i)})}function FV(r){var e=UV(TM(r)),t=e.keyed||(e.keyed=X());DM(r,function(n,i,a){var o=t.get(i)||t.set(i,X()),s=o.get(a)||o.set(a,{});n.metrics.liPosMinGap&&RM.liPosMinGap(r,n,s)})}function IM(r,e){RM[r]=e}function q0(r,e,t){if(r){var n=e.ecModel,i=Rl(Zo(n)),a=r.model.uid;if(0)var o,s;var l=i.axSer||(i.axSer=X()),u=l.get(a)||l.set(a,[]);if(0)var f;u.push(e);var c=e.subType,p=e.getBaseAxis()===r,h=$0.get(G0(c,p,t))||$0.get(G0(c,p,null));if(h){var d=i.keyed||(i.keyed=X()),v=i.keys||(i.keys=X()),m=h.key,g=d.get(m)||d.set(m,X()),y=g.get(a);y||(y=g.set(a,{axis:r,sers:[],serByIdx:[]}),y.metrics=h.getMetrics(r),(v.get(a)||v.set(a,[])).push(m)),y.sers.push(e),y.serByIdx[e.seriesIndex]=e}}}function G0(r,e,t){return r+Ld+$(e,!0)+Ld+(t||"")}function NM(r,e){var t=G0(e.seriesType,e.baseAxis,e.coordSysType);$0.set(t,e),BV(r,function(){r.registerProcessor(r.PRIORITY.PROCESSOR.AXIS_STATISTICS,{overallReset:FV})})}var BV,Ld,Rl,Pd,EM,UV,RM,$0,Sa=T(()=>{"use strict";I();ne();H0();BV=Rp(),Ld="|&",Rl=ae(),Pd=-2,EM=-1,UV=ae();RM={};$0=X()});function hn(r,e){e=e||{};var t={w:NaN,w2:NaN},n=r.scale,i=e.fromStat,a=e.min,o=IC(n);xt(o)||(o=NaN);var s=r.getExtent(),l=qe(s[1]-s[0]);return At(n)?HV(t,r,o,l):i?GV(t,r,o,l,i):a==null,a!=null&&(t.w=xt(t.w)?ge(a,t.w):a),t}function HV(r,e,t,n){var i=e.onBand,a=t+(i?1:0);a===0&&(a=1),r.w=n/a,!i&&t&&n&&(r.w2=r.w*t/n)}function GV(r,e,t,n,i){var a=!1,o=-1/0;A(i.key?[CM(e,i.key)]:MM(e,i.sers||[]),function(s){var l=s.liPosMinGap;l!=null&&(l>0?(l>o&&(o=l),a=!1):l===Pd&&(a=!0))}),xt(t)&&t>0&&xt(o)?(r.w=n/t*o,r.w2=o):a&&(r.w=n*VV,r.w2=r.w*t/n)}var VV,Nl=T(()=>{"use strict";I();Rt();we();Sa();fn();VV=.8});function zM(r){var e=r.getExtent();if(r.onBand){var t=e[1]-e[0],n=t/r.scale.count()/2;e[0]+=n,e[1]-=n}return e}function WV(r,e,t){var n=e.length;if(!r.onBand||t||!n)return!1;var i=hn(r).w;if(!i)return!1;A(e,function(s){s.coord-=i/2});var a=r.scale.getExtent(),o=e[n-1];return o.tick.offInterval&&e.pop(),e.push({coord:o.coord+i,tick:{value:a[1]+1}}),!0}var kM,$V,BM,UM=T(()=>{"use strict";I();we();Md();Rt();Nl();pn();kM=[0,1],$V=(function(){function r(e,t,n){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=n||[0,0]}return r.prototype.contain=function(e){var t=this._extent,n=Math.min(t[0],t[1]),i=Math.max(t[0],t[1]);return e>=n&&e<=i},r.prototype.containData=function(e){return this.scale.contain(this.scale.parse(e))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(e,t){var n=this._extent;n[0]=e,n[1]=t},r.prototype.dataToCoord=function(e,t){var n=this.scale;return e=n.normalize(n.parse(e)),Iu(e,kM,zM(this),t)},r.prototype.coordToData=function(e,t){var n=Iu(e,zM(this),kM,t);return this.scale.scale(n)},r.prototype.pointToData=function(e,t){},r.prototype.getTicksCoords=function(e){e=e||{};var t=e.tickModel||this.getTickModel(),n=vM(this,t,{breakTicks:e.breakTicks,pruneByBreak:e.pruneByBreak}),i=F(n.ticks,function(s){return{coord:this.dataToCoord(Ti(this.scale,s)),tick:s}},this),a=t.get("alignWithLabel"),o=WV(this,i,a);return F(i,function(s){return{coord:s.coord,tickValue:s.tick.value,onBand:o}})},r.prototype.getMinorTicksCoords=function(){if(At(this.scale))return[];var e=this.model.getModel("minorTick"),t=e.get("splitNumber");t>0&&t<100||(t=5);var n=this.scale.getMinorTicks(t),i=F(n,function(a){return F(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return i},r.prototype.getViewLabels=function(e){return e=e||Il(gr.determine),dM(this,e).labels},r.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},r.prototype.getTickModel=function(){return this.model.getModel("axisTick")},r.prototype.getBandWidth=function(){return hn(this,{min:1}).w},r.prototype.calculateCategoryInterval=function(e){return e=e||Il(gr.determine),_M(this,e)},r})();BM=$V});var YV,FM,VM=T(()=>{"use strict";ee();UM();YV=(function(r){R(e,r);function e(t,n,i,a,o){var s=r.call(this,t,n,i)||this;return s.index=0,s.type=a||"value",s.position=o||"bottom",s}return e.prototype.isHorizontal=function(){var t=this.position;return t==="top"||t==="bottom"},e.prototype.getGlobalExtent=function(t){var n=this.getExtent();return n[0]=this.toGlobalCoord(n[0]),n[1]=this.toGlobalCoord(n[1]),t&&n[0]>n[1]&&n.reverse(),n},e.prototype.pointToData=function(t,n){return this.coordToData(this.toLocalCoord(t[this.dim==="x"?0:1]),n)},e.prototype.setCategorySortInfo=function(t){if(this.type!=="category")return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e})(BM),FM=YV});function wf(r,e,t){t=t||$M,e?r.dirty|=t:r.dirty&=~t}function WM(r,e){return e=e||$M,r.dirty==null||!!(r.dirty&e)}function dn(r){if(r)return WM(r)&&K0(r,r.label,r),r}function K0(r,e,t){var n=e.getComputedTransform();r.transform=uh(r.transform,n);var i=r.localRect=ul(r.localRect,e.getBoundingRect()),a=e.style,o=a.margin,s=t&&t.marginForce,l=t&&t.minMarginForce,u=t&&t.marginDefault,f=a.__marginType;f==null&&u&&(o=u,f=Eo.textMargin);for(var c=0;c<4;c++)X0[c]=f===Eo.minMargin&&l&&l[c]!=null?l[c]:s&&s[c]!=null?s[c]:o?o[c]:0;f===Eo.textMargin&&sl(i,X0,!1,!1);var p=r.rect=ul(r.rect,i);return n&&p.applyTransform(n),f===Eo.minMargin&&sl(p,X0,!1,!1),r.axisAligned=lh(n),(r.label=r.label||{}).ignore=e.ignore,wf(r,!1),wf(r,!0,Id),r}function YM(r,e,t){return r.transform=uh(r.transform,t),r.localRect=ul(r.localRect,e),r.rect=ul(r.rect,e),t&&r.rect.applyTransform(t),r.axisAligned=lh(t),r.obb=void 0,(r.label=r.label||{}).ignore=!1,r}function qM(r,e){if(r){r.label.x+=e.x,r.label.y+=e.y,r.label.markRedraw();var t=r.transform;t&&(t[4]+=e.x,t[5]+=e.y);var n=r.rect;n&&(n.x+=e.x,n.y+=e.y);var i=r.obb;i&&i.fromBoundingRect(r.localRect,t)}}function Tf(r,e){for(var t=0;t<HM.length;t++){var n=HM[t];r[n]==null&&(r[n]=e[n])}return dn(r)}function GM(r){var e=r.obb;return(!e||WM(r,Id))&&(r.obb=e=e||new ih,e.fromBoundingRect(r.localRect,r.transform),wf(r,!1,Id)),e}function Ef(r,e,t,n,i){var a=r.length,o=Vn[e],s=ua[e];if(a<2)return!1;r.sort(function(M,E){return M.rect[o]-E.rect[o]});for(var l=0,u,f=!1,c=0,p=0;p<a;p++){var h=r[p],d=h.rect;u=d[o]-l,u<0&&(d[o]-=u,h.label[o]-=u,f=!0);var v=Math.max(-u,0);c+=v,l=d[o]+d[s]}c>0&&i&&S(-c/a,0,a);var m=r[0],g=r[a-1],y,x;_(),y<0&&w(-y,.8),x<0&&w(x,.8),_(),b(y,x,1),b(x,y,-1),_(),y<0&&C(-y),x<0&&C(x);function _(){y=m.rect[o]-t,x=n-g.rect[o]-g.rect[s]}function b(M,E,D){if(M<0){var P=Math.min(E,-M);if(P>0){S(P*D,0,a);var L=P+M;L<0&&w(-L*D,1)}else w(-M*D,1)}}function S(M,E,D){M!==0&&(f=!0);for(var P=E;P<D;P++){var L=r[P],O=L.rect;O[o]+=M,L.label[o]+=M}}function w(M,E){for(var D=[],P=0,L=1;L<a;L++){var O=r[L-1].rect,z=Math.max(r[L].rect[o]-O[o]-O[s],0);D.push(z),P+=z}if(P){var N=Math.min(Math.abs(M)/P,E);if(M>0)for(var L=0;L<a-1;L++){var V=D[L]*N;S(V,0,L+1)}else for(var L=a-1;L>0;L--){var V=D[L-1]*N;S(-V,L,a)}}}function C(M){var E=M<0?-1:1;M=Math.abs(M);for(var D=Math.ceil(M/(a-1)),P=0;P<a-1;P++)if(E>0?S(D,0,P+1):S(-D,a-P-1,a),M-=D,M<=0)return}return f}function XM(r){for(var e=0;e<r.length;e++){var t=r[e],n=t.defaultAttr,i=t.labelLine;t.label.attr("ignore",n.ignore),i&&i.attr("ignore",n.labelGuideIgnore)}}function Rd(r){var e=[];r.sort(function(u,f){return(f.suggestIgnore?1:0)-(u.suggestIgnore?1:0)||f.priority-u.priority});function t(u){if(!u.ignore){var f=u.ensureState("emphasis");f.ignore==null&&(f.ignore=!1)}u.ignore=!0}for(var n=0;n<r.length;n++){var i=dn(r[n]);if(!i.label.ignore){for(var a=i.label,o=i.labelLine,s=!1,l=0;l<e.length;l++)if(Nd(i,e[l],null,{touchThreshold:.05})){s=!0;break}s?(t(a),o&&t(o)):e.push(i)}}}function Nd(r,e,t,n){return!r||!e||r.label&&r.label.ignore||e.label&&e.label.ignore||!r.rect.intersect(e.rect,t,n)?!1:r.axisAligned&&e.axisAligned?!0:GM(r).intersect(GM(e),t,n)}var HM,qV,Id,$M,X0,kd=T(()=>{"use strict";ze();Er();HM=["label","labelLine","layoutOption","priority","defaultAttr","marginForce","minMarginForce","marginDefault","suggestIgnore"],qV=1,Id=2,$M=qV|Id;X0=[0,0,0,0]});function jo(){return XV}var XV,zd=T(()=>{"use strict";XV=null});var KM,ZM=T(()=>{"use strict";KM="expandAxisBreak"});function jV(r,e,t,n){var i=t.axis,a=e.ensureRecord(t),o=[],s,l=ex(r.axisName)&&_a(r.nameLocation);A(n,function(d){var v=dn(d);if(!(!v||v.label.ignore)){o.push(v);var m=a.transGroup;l&&(m.transform?Ir(Af,m.transform):ri(Af),v.transform&&Hi(Af,Af,v.transform),se.copy(Bd,v.localRect),Bd.applyTransform(Af),s?s.union(Bd):se.copy(s=new se(0,0,0,0),Bd))}});var u=Math.abs(a.dirVec.x)>.1?"x":"y",f=a.transGroup[u];if(o.sort(function(d,v){return Math.abs(d.label[u]-f)-Math.abs(v.label[u]-f)}),l&&s){var c=i.getExtent(),p=Math.min(c[0],c[1]),h=Math.max(c[0],c[1])-p;s.union(new se(p,0,h,1))}a.stOccupiedRect=s,a.labelInfoList=o}function eD(r,e,t){var n=new ce;Nd(r,e,n,{direction:Math.atan2(t.y,t.x),bidirectional:!1,touchThreshold:.05})&&qM(e,n)}function Q0(r,e,t,n){for(var i=ce.dot(n,e)>=0,a=0,o=r.length;a<o;a++){var s=r[i?a:o-1-a];s.label.ignore||eD(s,t,n)}}function jM(r,e,t,n,i,a,o,s){rD(e)||aH(r,e,i,s,n,o);var l=e.labelLayoutList;oH(r,n,l,a),uH(n,r.rotation,l);var u=r.optionHideOverlap;tH(n,l,u),u&&Rd(Fe(l,function(f){return f&&!f.label.ignore})),jV(r,t,n,l)}function eH(r,e,t,n){var i=Dg(t-r),a,o,s=n[0]>n[1],l=e==="start"&&!s||e!=="start"&&s;return Ru(i-wa/2)?(o=l?"bottom":"top",a="center"):Ru(i-wa*1.5)?(o=l?"top":"bottom",a="center"):(o="middle",i<wa*1.5&&i>wa/2?a=l?"left":"right":a=l?"right":"left"),{rotation:i,textAlign:a,textVerticalAlign:o}}function tH(r,e,t){var n=r.axis,i=r.get(["axisLabel","customValues"]);if(nM(n))return;function a(u,f,c){var p=dn(e[f]),h=dn(e[c]),d=n.scale;if(!(!p||!h)){if(u==null){if(!t&&i)return;var v=Ta(p.label).labelInfo.tick;if(Pl(d)&&v.notNice||At(d)&&v.offInterval){kl(p.label);return}}if(u===!1||p.suggestIgnore){kl(p.label);return}if(h.suggestIgnore){kl(h.label);return}var m=.1;if(!t){var g=[0,0,0,0];p=Tf({marginForce:g},p),h=Tf({marginForce:g},h)}Nd(p,h,null,{touchThreshold:m})&&kl(u?h.label:p.label)}}var o=r.get(["axisLabel","showMinLabel"]),s=r.get(["axisLabel","showMaxLabel"]),l=e.length;a(o,0,1),a(s,l-1,l-2)}function rH(r,e,t){r.showMinorTicks||A(e,function(n){if(n&&n.label.ignore)for(var i=0;i<t.length;i++){var a=t[i],o=QM(a),s=Ta(n.label);if(o.tickValue!=null&&!o.onBand&&o.tickValue===s.labelInfo.tick.value){kl(a);return}}})}function kl(r){r&&(r.ignore=!0)}function tD(r,e,t,n,i){for(var a=[],o=[],s=[],l=0;l<r.length;l++){var u=r[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=t,e&&(Dt(o,o,e),Dt(s,s,e));var f=new on({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:n,z2:2,autoBatch:!0,silent:!0});wo(f.shape,f.style.lineWidth),f.anid=i+"_"+r[l].tickValue,a.push(f);var c=QM(f);c.onBand=!!r[l].onBand,c.tickValue=r[l].tickValue}return a}function nH(r,e,t,n){var i=n.axis,a=n.getModel("axisTick"),o=a.get("show");if(o==="auto"&&(o=!0,r.raw.axisTickAutoShow!=null&&(o=!!r.raw.axisTickAutoShow)),!o||i.scale.isBlank())return[];for(var s=a.getModel("lineStyle"),l=r.tickDirection*a.get("length"),u=i.getTicksCoords(),f=tD(u,t.transform,l,fe(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),c=0;c<f.length;c++)e.add(f[c]);return f}function iH(r,e,t,n,i){var a=n.axis,o=n.getModel("minorTick");if(!(!r.showMinorTicks||a.scale.isBlank())){var s=a.getMinorTicksCoords();if(s.length)for(var l=o.getModel("lineStyle"),u=i*o.get("length"),f=fe(l.getLineStyle(),fe(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),c=0;c<s.length;c++)for(var p=tD(s[c],t.transform,u,f,"minorticks_"+c),h=0;h<p.length;h++)e.add(p[h])}}function JM(r,e,t){if(rD(r)){var n=r.axisLabelsCreationContext,i=n.out.noPxChangeTryDetermine;if(t.noPxChange){for(var a=!0,o=0;o<i.length;o++)a=a&&i[o]();if(a)return!1}i.length&&(e.remove(r.labelGroup),Z0(r,null,null,null))}return!0}function aH(r,e,t,n,i,a){var o=i.axis,s=Cs(r.raw.axisLabelShow,i.get(["axisLabel","show"])),l=new Ie;t.add(l);var u=Il(n);if(!s||o.scale.isBlank()){Z0(e,[],l,u);return}var f=i.getModel("axisLabel"),c=o.getViewLabels(u),p=(Cs(r.raw.labelRotate,f.get("rotate"))||0)*wa/180,h=Jo.innerTextLayout(r.rotation,p,r.labelDirection),d=i.getCategories&&i.getCategories(!0),v=[],m=i.get("triggerEvent"),g=1/0,y=-1/0;A(c,function(_,b){var S,w=_.tick,C=_.formattedLabel,M=_.rawLabel,E=f,D=Ti(o.scale,w);if(d&&d[D]){var P=d[D];Y(P)&&P.textStyle&&(E=new ot(P.textStyle,f,i.ecModel))}var L=E.getTextColor()||i.get(["axisLine","lineStyle","color"]),O=E.getShallow("align",!0)||h.textAlign,z=$(E.getShallow("alignMinLabel",!0),O),N=$(E.getShallow("alignMaxLabel",!0),O),V=E.getShallow("verticalAlign",!0)||E.getShallow("baseline",!0)||h.textVerticalAlign,B=$(E.getShallow("verticalAlignMinLabel",!0),V),H=$(E.getShallow("verticalAlignMaxLabel",!0),V),W=10+(((S=w.time)===null||S===void 0?void 0:S.level)||0);g=Math.min(g,W),y=Math.max(y,W);var K=new $e({x:0,y:0,rotation:0,silent:Jo.isLabelSilent(i),z2:W,style:Hr(E,{text:C,align:b===0?z:b===c.length-1?N:O,verticalAlign:b===0?B:b===c.length-1?H:V,fill:j(L)?L(o.type==="category"?M:o.type==="value"?D+"":D,b):L})});K.anid="label_"+D;var J=Ta(K);if(J.labelInfo=_,J.layoutRotation=h.rotation,ll({el:K,componentModel:i,itemName:C,formatterParamsExtra:{isTruncated:function(){return K.isTruncated},value:M,tickIndex:b}}),m){var re=Jo.makeAxisEventDataBase(i);re.targetType="axisLabel",re.value=M,re.tickIndex=b;var Z=_.tick.break;if(Z){var ve=Z.parsedBreak;re.break={start:ve.vmin,end:ve.vmax}}o.type==="category"&&(re.dataIndex=D),ye(K).eventData=re,Z&&lH(i,a,K,Z)}v.push(K),l.add(K)});var x=F(v,function(_){return{label:_,priority:Ta(_).labelInfo.tick.break?_.z2+(y-g+1):_.z2,defaultAttr:{ignore:_.ignore}}});Z0(e,x,l,u)}function rD(r){return!!r.labelLayoutList}function Z0(r,e,t,n){r.labelLayoutList=e,r.labelGroup=t,r.axisLabelsCreationContext=n}function oH(r,e,t,n){var i=e.get(["axisLabel","margin"]);A(t,function(a,o){var s=dn(a);if(s){var l=s.label,u=Ta(l);s.suggestIgnore=l.ignore,l.ignore=!1,Yi(Ei,sH);var f=e.axis;Ei.x=f.dataToCoord(Ti(f.scale,u.labelInfo.tick)),Ei.y=r.labelOffset+r.labelDirection*i,Ei.rotation=u.layoutRotation,n.add(Ei),Ei.updateTransform(),n.remove(Ei),Ei.decomposeTransform(),Yi(l,Ei),l.markRedraw(),wf(s,!0),dn(s)}})}function ex(r){return!!r}function lH(r,e,t,n){t.on("click",function(i){var a={type:KM,breaks:[{start:n.parsedBreak.breakOption.start,end:n.parsedBreak.breakOption.end}]};a[r.axis.dim+"AxisIndex"]=r.componentIndex,e.dispatchAction(a)})}function uH(r,e,t){var n=Qe();if(n){var i=n.retrieveAxisBreakPairs(t,function(o){return o&&Ta(o.label).labelInfo.tick.break},!0),a=r.get(["breakLabelLayout","moveOverlap"],!0);(a===!0||a==="auto")&&A(i,function(o){jo().adjustBreakLabelPair(r.axis.inverse,e,[dn(t[o[0]]),dn(t[o[1]])])})}}var wa,KV,ZV,Ta,QM,j0,Af,Bd,J0,Jo,JV,QV,Ei,sH,Ud,Fd=T(()=>{"use strict";I();ze();wr();Er();$n();we();Go();ni();cr();pn();kd();ne();zd();ZM();ln();Tt();vu();Za();Md();Rt();wa=Math.PI,KV=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],ZV=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],Ta=ae(),QM=ae(),j0=(function(){function r(e){this.recordMap={},this.resolveAxisNameOverlap=e}return r.prototype.ensureRecord=function(e){var t=e.axis.dim,n=e.componentIndex,i=this.recordMap,a=i[t]||(i[t]=[]);return a[n]||(a[n]={ready:{}})},r})();Af=qt(),Bd=new se(0,0,0,0),J0=function(r,e,t,n,i,a){if(_a(r.nameLocation)){var o=a.stOccupiedRect;o&&eD(YM({},o,a.transGroup.transform),n,i)}else Q0(a.labelInfoList,a.dirVec,n,i)};Jo=(function(){function r(e,t,n,i){this.group=new Ie,this._axisModel=e,this._api=t,this._local={},this._shared=i||new j0(J0),this._resetCfgDetermined(n)}return r.prototype.updateCfg=function(e){if(0)var t;var n=this._cfg.raw;n.position=e.position,n.labelOffset=e.labelOffset,this._resetCfgDetermined(n)},r.prototype.__getRawCfg=function(){return this._cfg.raw},r.prototype._resetCfgDetermined=function(e){var t=this._axisModel,n=t.getDefaultOption?t.getDefaultOption():{},i=$(e.axisName,t.get("name")),a=t.get("nameMoveOverlap");(a==null||a==="auto")&&(a=$(e.defaultNameMoveOverlap,!0));var o={raw:e,position:e.position,rotation:e.rotation,nameDirection:$(e.nameDirection,1),tickDirection:$(e.tickDirection,1),labelDirection:$(e.labelDirection,1),labelOffset:$(e.labelOffset,0),silent:$(e.silent,!0),axisName:i,nameLocation:xr(t.get("nameLocation"),n.nameLocation,"end"),shouldNameMoveOverlap:ex(i)&&a,optionHideOverlap:t.get(["axisLabel","hideOverlap"]),showMinorTicks:t.get(["minorTick","show"])};this._cfg=o;var s=new Ie({x:o.position[0],y:o.position[1],rotation:o.rotation});s.updateTransform(),this._transformGroup=s;var l=this._shared.ensureRecord(t);l.transGroup=this._transformGroup,l.dirVec=new ce(Math.cos(-o.rotation),Math.sin(-o.rotation))},r.prototype.build=function(e,t){var n=this;return e||(e={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0}),A(JV,function(i){e[i]&&QV[i](n._cfg,n._local,n._shared,n._axisModel,n.group,n._transformGroup,n._api,t||{})}),this},r.innerTextLayout=function(e,t,n){var i=Dg(t-e),a,o;return Ru(i)?(o=n>0?"top":"bottom",a="center"):Ru(i-wa)?(o=n>0?"bottom":"top",a="center"):(o="middle",i>0&&i<wa?a=n>0?"right":"left":a=n>0?"left":"right"),{rotation:i,textAlign:a,textVerticalAlign:o}},r.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+"Index"]=e.componentIndex,t},r.isLabelSilent=function(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)},r})(),JV=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],QV={axisLine:function(r,e,t,n,i,a,o){if(0)var s;var l=n.get(["axisLine","show"]);if(l==="auto"&&(l=!0,r.raw.axisLineAutoShow!=null&&(l=!!r.raw.axisLineAutoShow)),!!l){var u=n.axis.getExtent(),f=a.transform,c=[u[0],0],p=[u[1],0],h=c[0]>p[0];f&&(Dt(c,c,f),Dt(p,p,f));var d=k({lineCap:"round"},n.getModel(["axisLine","lineStyle"]).getLineStyle()),v={strokeContainThreshold:r.raw.strokeContainThreshold||5,silent:!0,z2:1,style:d};if(n.get(["axisLine","breakLine"])&&zo(n.axis.scale))jo().buildAxisBreakLine(n,i,a,v);else{var m=new on(k({shape:{x1:c[0],y1:c[1],x2:p[0],y2:p[1]}},v));wo(m.shape,m.style.lineWidth),m.anid="line",i.add(m)}var g=n.get(["axisLine","symbol"]);if(g!=null){var y=n.get(["axisLine","symbolSize"]);G(g)&&(g=[g,g]),(G(y)||he(y))&&(y=[y,y]);var x=Jh(n.get(["axisLine","symbolOffset"])||0,y),_=y[0],b=y[1];A([{rotate:r.rotation+Math.PI/2,offset:x[0],r:0},{rotate:r.rotation-Math.PI/2,offset:x[1],r:Math.sqrt((c[0]-p[0])*(c[0]-p[0])+(c[1]-p[1])*(c[1]-p[1]))}],function(S,w){if(g[w]!=="none"&&g[w]!=null){var C=Mr(g[w],-_/2,-b/2,_,b,d.stroke,!0),M=S.r+S.offset,E=h?p:c;C.attr({rotation:S.rotate,x:E[0]+M*Math.cos(r.rotation),y:E[1]-M*Math.sin(r.rotation),silent:!0,z2:11}),i.add(C)}})}}},axisTickLabelEstimate:function(r,e,t,n,i,a,o,s){if(0)var l;var u=JM(e,i,s);u&&jM(r,e,t,n,i,a,o,gr.estimate)},axisTickLabelDetermine:function(r,e,t,n,i,a,o,s){if(0)var l;var u=JM(e,i,s);u&&jM(r,e,t,n,i,a,o,gr.determine);var f=nH(r,i,a,n);rH(r,e.labelLayoutList,f),iH(r,i,a,n,r.tickDirection)},axisName:function(r,e,t,n,i,a,o,s){var l=t.ensureRecord(n);if(0)var u;e.nameEl&&(i.remove(e.nameEl),e.nameEl=l.nameLayout=l.nameLocation=null);var f=r.axisName;if(ex(f)){var c=r.nameLocation,p=r.nameDirection,h=n.getModel("nameTextStyle"),d=n.get("nameGap")||0,v=n.axis.getExtent(),m=n.axis.inverse?-1:1,g=new ce(0,0),y=new ce(0,0);c==="start"?(g.x=v[0]-m*d,y.x=-m):c==="end"?(g.x=v[1]+m*d,y.x=m):(g.x=(v[0]+v[1])/2,g.y=r.labelOffset+p*d,y.y=p);var x=qt();y.transform(Os(x,x,r.rotation));var _=n.get("nameRotate");_!=null&&(_=_*wa/180);var b,S;_a(c)?b=Jo.innerTextLayout(r.rotation,_??r.rotation,p):(b=eH(r.rotation,c,_||0,v),S=r.raw.axisNameAvailableWidth,S!=null&&(S=Math.abs(S/Math.sin(b.rotation)),!isFinite(S)&&(S=null)));var w=h.getFont(),C=n.get("nameTruncate",!0)||{},M=C.ellipsis,E=Cs(r.raw.nameTruncateMaxWidth,C.maxWidth,S),D=s.nameMarginLevel||0,P=new $e({x:g.x,y:g.y,rotation:b.rotation,silent:Jo.isLabelSilent(n),style:Hr(h,{text:f,font:w,overflow:"truncate",width:E,ellipsis:M,fill:h.getTextColor()||n.get(["axisLine","lineStyle","color"]),align:h.get("align")||b.textAlign,verticalAlign:h.get("verticalAlign")||b.textVerticalAlign}),z2:1});if(ll({el:P,componentModel:n,itemName:f}),P.__fullText=f,P.anid="name",n.get("triggerEvent")){var L=Jo.makeAxisEventDataBase(n);L.targetType="axisName",L.name=f,ye(P).eventData=L}a.add(P),P.updateTransform(),e.nameEl=P;var O=l.nameLayout=dn({label:P,priority:P.z2,defaultAttr:{ignore:P.ignore},marginDefault:_a(c)?KV[D]:ZV[D]});if(l.nameLocation=c,i.add(P),P.decomposeTransform(),r.shouldNameMoveOverlap&&O){var z=t.ensureRecord(n);t.resolveAxisNameOverlap(r,t,n,O,y,z)}}}};Ei=new Oe,sH=new Oe;Ud=Jo});function Cf(r,e,t){t=t||{};var n=e.axis,i={},a=n.getAxesOnZeroOf()[0],o=n.position,s=a?"onZero":o,l=n.dim,u=[r.x,r.x+r.width,r.y,r.y+r.height],f={left:0,right:1,top:0,bottom:1,onZero:2},c=e.get("offset")||0,p=l==="x"?[u[2]-c,u[3]+c]:[u[0]-c,u[1]+c];if(a){var h=a.toGlobalCoord(a.dataToCoord(0));p[f.onZero]=Math.max(Math.min(h,p[1]),p[0])}i.position=[l==="y"?p[f[s]]:u[0],l==="x"?p[f[s]]:u[3]],i.rotation=Math.PI/2*(l==="x"?0:1);var d={top:-1,bottom:1,left:-1,right:1};i.labelDirection=i.tickDirection=i.nameDirection=d[o],i.labelOffset=a?p[f[o]]-p[f.onZero]:0,e.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),Cs(t.labelInside,e.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var v=e.get(["axisLabel","rotate"]);return i.labelRotate=s==="top"?-v:v,i.z2=1,i}function nD(r){return r.coordinateSystem&&r.coordinateSystem.type==="cartesian2d"}function iD(r){var e={xAxisModel:null,yAxisModel:null};return A(e,function(t,n){var i=n.replace(/Model$/,""),a=r.getReferringComponents(i,Pt).models[0];e[n]=a}),e}function aD(r,e,t,n,i,a){for(var o=Cf(r,t),s=!1,l=!1,u=0;u<e.length;u++)pd(e[u].getOtherAxis(t.axis).scale)&&(s=l=!0,t.axis.type==="category"&&t.axis.onBand&&(l=!1));return o.axisLineAutoShow=s,o.axisTickAutoShow=l,o.defaultNameMoveOverlap=a,new Ud(t,n,o,i)}function oD(r,e,t){var n=Cf(e,t);if(0)var i;r.updateCfg(n)}var Vd=T(()=>{"use strict";I();ne();Fd();Rt()});function sD(r,e){var t=r.scale,n=r.dataMM;t.sanitize&&(e[0]=t.sanitize(e[0],n),e[1]=t.sanitize(e[1],n),h1(e))}function Mf(r,e){return e==null?null:Bi(e)?NaN:r.parse(e)}function hH(r,e){var t;if(At(r))t=[0,0];else{var n=e.get("boundaryGap");typeof n=="boolean"&&(n=null),t=U(n)?n:[n,n]}return[lD(t[0]),lD(t[1])]}function lD(r){return jr(typeof r=="boolean"?0:r,1)||0}function cD(r){var e=cH(r.scale);return e.extent||(e.extent=Ot()),e}function pD(r,e){cD(r).dimIdxInCoord=e.get(r.dim)}function hD(r,e){var t=r.scale,n=r.model,i=r.dim;t.rawExtentInfo||dH(t,r,i,n,e)}function dH(r,e,t,n,i){var a=cD(e),o=a.extent,s=!1;PM(e,function(f){if(f.boxCoordinateSystem){var c=Ah(f).coord,p=a.dimIdxInCoord;if(p>=0){if(U(c)){var h=c[p];h!=null&&!U(h)&&Bu(o,r.parse(h))}}}else if(f.coordinateSystem){var d=f.getData();if(d){var v=r.getFilter?r.getFilter():null;A(iM(d,t),function(m){c1(o,d.getApproximateExtent(m,v))})}f.__requireStartValue&&f.__requireStartValue(e)&&(s=!0)}});var l=mH(r,e,n),u=new fD(r,n,o,s,l);dD(r,u,i),a.extent=null}function vH(r,e){var t=r.scale;dD(t,new fD(t,r.model,e,!1,!1),pH)}function dD(r,e,t){r.rawExtentInfo=e,e.from=t}function vD(r,e){tx.set(r,e)}function Hd(r,e,t,n,i){r.rawExtentInfo||vH({scale:r,model:e},i||Ot());var a=r.rawExtentInfo.makeFinal(),o=a.effMM;return r.setExtent(o[0],o[1]),r.setBlank(a.isBlank),n&&a.tggAxInv&&t&&!t.get("legacyMinMaxDontInverseAxis")&&(n.inverse=!n.inverse),a}function mH(r,e,t){var n=Ed(r,t),i=t.get("containShape",!0);if(i==null&&!n&&(i=!0),!i)return!1;var a=!1;return Y0(e,function(o){a=!!tx.get(o)||a}),a}function mD(r,e,t,n){if(t.ctnShp){var i;if(Y0(r,function(s){var l=tx.get(s);if(l){var u=l(r,n);u&&(i=i||[0,0],zg(i,u[0]),Bg(i,u[1]),tM(r))}}),!!i){var a=e.getExtent();if(At(e))r.onBand||e.setExtent2(Al,je(a[0],a[0]+i[0]),ge(a[1],a[1]+i[1]));else{var o=a.slice();t.zoomFixMM[0]||(o[0]=je(o[0],e.transformOut(e.transformIn(o[0],null)+i[0],null))),t.zoomFixMM[1]||(o[1]=ge(o[1],e.transformOut(e.transformIn(o[1],null)+i[1],null))),(o[0]<a[0]||o[1]>a[1])&&e.setExtent2(Al,o[0],o[1])}}}}var cH,uD,pH,fD,tx,Df=T(()=>{"use strict";I();en();Rt();ne();pn();Io();we();fn();Sa();cH=ae(),uD=1,pH=3,fD=(function(){function r(e,t,n,i,a){var o=At(e),s=o?t.getCategories().length:null,l;if(o){var u=t.getCategories(!0);l=u&&!u.length}var f=n.slice();(Ll(e)||Xn(e)||Pl(e))&&(zg(f,Mf(e,t.get("dataMin",!0))),Bg(f,Mf(e,t.get("dataMax",!0)))),p1(f)||(f[0]=f[1]=NaN);var c=[],p=[!1,!1],h=t.get("min",!0);h==="dataMin"?(c[0]=f[0],p[0]=!0):(c[0]=Mf(e,j(h)?h({min:f[0],max:f[1]}):h),p[0]=c[0]!=null);var d=t.get("max",!0);d==="dataMax"?(c[1]=f[1],p[1]=!0):(c[1]=Mf(e,j(d)?d({min:f[0],max:f[1]}):d),p[1]=c[1]!=null);var v=hH(e,t),m=o?null:f[1]-f[0]||Math.abs(f[0]);c[0]==null&&(c[0]=o?l?f[0]:s?0:NaN:f[0]-v[0]*m),c[1]==null&&(c[1]=o?l?f[1]:s?s-1:NaN:f[1]+v[1]*m),!rn(c[0])&&(c[0]=NaN),!rn(c[1])&&(c[1]=NaN);var g=l||Bi(c[0])||Bi(c[1])||o&&!s,y=Ll(e),x=y&&t.needIncludeZero&&t.needIncludeZero();x&&(c[0]>0&&c[1]>0&&!p[0]&&(c[0]=0),c[0]<0&&c[1]<0&&!p[1]&&(c[1]=0));var _=!1;c[0]>c[1]&&(c.reverse(),_=!0);var b=Mf(e,t.get("startValue",!0)),S=b!=null;!xt(b)&&i&&(b=e.getDefaultStartValue?e.getDefaultStartValue():0),xt(b)&&(S||!y||x)&&(b<c[0]&&!p[0]?(c[0]=b,p[0]=!0):b>c[1]&&!p[1]&&(c[1]=b,p[1]=!0));var w=this._i={scale:e,dataMM:f,noZoomEffMM:c,zoomMM:[],fixMM:p,zoomFixMM:[!1,!1],startValue:b,isBlank:g,incl0:x,tggAxInv:_,ctnShp:a};sD(w,c)}return r.prototype.makeNoZoom=function(){return this._i.noZoomEffMM.slice()},r.prototype.makeFinal=function(){var e=this._i,t=e.zoomMM,n=e.noZoomEffMM,i=e.zoomFixMM,a=e.fixMM,o={fixMM:a,zoomFixMM:i,isBlank:e.isBlank,incl0:e.incl0,tggAxInv:e.tggAxInv,ctnShp:e.ctnShp,effMM:n.slice()},s=o.effMM;return t[0]!=null&&(s[0]=t[0],a[0]=i[0]=!0),t[1]!=null&&(s[1]=t[1],a[1]=i[1]=!0),sD(e,s),o},r.prototype.makeRenderInfo=function(){return{startValue:this._i.startValue}},r.prototype.setZoomMM=function(e,t){this._i.zoomMM[e]=t},r})();tx=X()});function gD(){IM("liPosMinGap",gH)}function gH(r,e,t){var n=X(),i=t.serUids,a=t.liPosMinGap,o,s=e.axis,l=s.scale,u=l.needTransform(),f=l.getFilter?l.getFilter():null,c=gh(f);function p(x){Od(r,e.sers,function(_){var b=_.getRawData(),S=b.getDimensionIndex(b.mapDimension(s.dim));S>=0&&x(S,_,b.getStore())})}var h=0;if(p(function(x,_,b){n.set(_.uid,1),(!i||!i.hasKey(_.uid))&&(o=!0),h+=b.count()}),(!i||i.keys().length!==n.keys().length)&&(o=!0),!o&&a!=null){e.liPosMinGap=a;return}od(Qo,h);var d=0;p(function(x,_,b){for(var S=0,w=b.count();S<w;++S){var C=b.get(x,S);isFinite(C)&&(!f||yh(c,C))&&(u&&(C=l.transformIn(C,null)),Qo.arr[d++]=C)}});var v=Qo.typed?Qo.arr.subarray(0,d):(Qo.arr.length=d,Qo.arr);Qo.typed?v.sort():Xs(v);for(var m=1/0,g=1;g<d;++g){var y=v[g]-v[g-1];y>0&&y<m&&(m=y)}t.liPosMinGap=e.liPosMinGap=xt(m)?m:d>0?Pd:EM,t.serUids=n}var Qo,yD=T(()=>{"use strict";I();we();xh();Tl();Sa();Qo=od({ctor:yC},50)});function xD(r){return function(e,t){var n=hn(e,{fromStat:{key:r}});if(xt(n.w2))return[-n.w2/2,n.w2/2]}}function Lf(r,e){return r+Ld+e}function _D(r){return gD(),{liPosMinGap:!At(r.scale)}}var rx=T(()=>{"use strict";Nl();Sa();yD();Rt();we()});function bD(r,e,t,n){NM(r,{key:e,seriesType:t,coordSysType:n,getMetrics:_D})}function SD(r){var e=r.scale.rawExtentInfo.makeRenderInfo().startValue;return e}var Ai,Pf=T(()=>{"use strict";rx();Sa();Ai="bar"});var nx,Of,Gr,yH,wD,If=T(()=>{"use strict";ee();qn();un();Gt();nx={left:0,right:0,top:0,bottom:0},Of=["25%","25%"],Gr="cartesian2d",yH=(function(r){R(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.mergeDefaultAndTheme=function(t,n){var i=Yn(t.outerBounds);r.prototype.mergeDefaultAndTheme.apply(this,arguments),i&&t.outerBounds&&Cr(t.outerBounds,i)},e.prototype.mergeOption=function(t,n){r.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&t.outerBounds&&Cr(this.option.outerBounds,t.outerBounds)},e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"15%",top:65,right:"10%",bottom:80,containLabel:!1,outerBoundsMode:"auto",outerBounds:nx,outerBoundsContain:"all",outerBoundsClampWidth:Of[0],outerBoundsClampHeight:Of[1],backgroundColor:ie.color.transparent,borderWidth:1,borderColor:ie.color.neutral30},e})(Re),wD=yH});function TD(r){return r.get("stack")||_H+r.seriesIndex}function bH(r,e){var t=SH(r,e);return t.columnMap=wH(t),t}function SH(r,e){var t=Lf(e,Gr),n=[],i=hn(r,{fromStat:{key:t},min:1});return W0(r,t,function(a){n.push({barWidth:Be(a.get("barWidth"),i.w),barMaxWidth:Be(a.get("barMaxWidth"),i.w),barMinWidth:Be(a.get("barMinWidth")||(CD(a)?.5:1),i.w),barGap:a.get("barGap"),barCategoryGap:a.get("barCategoryGap"),defaultBarGap:a.get("defaultBarGap"),stackId:TD(a)})}),{bandWidthResult:i,seriesInfo:n}}function wH(r){var e=r.bandWidthResult.w,t=e,n=0,i,a,o=[],s={};A(r.seriesInfo,function(v,m){m||(a=v.defaultBarGap||0);var g=v.stackId;Ye(s,g)||n++;var y=s[g];y||(y=s[g]={width:0,maxWidth:0},o.push(g));var x=v.barWidth;x&&!y.width&&(y.width=x,x=je(t,x),t-=x);var _=v.barMaxWidth;_&&(y.maxWidth=_);var b=v.barMinWidth;b&&(y.minWidth=b);var S=v.barGap;S!=null&&(a=S);var w=v.barCategoryGap;w!=null&&(i=w)}),i==null&&(i=ge(35-o.length*4,15)+"%");var l=Be(i,e),u=Be(a,1),f=(t-l)/(n+(n-1)*u);f=ge(f,0),A(o,function(v){var m=s[v],g=m.maxWidth,y=m.minWidth;if(m.width){var x=m.width;g&&(x=je(x,g)),y&&(x=ge(x,y)),m.width=x,t-=x+u*x,n--}else{var x=f;g&&g<x&&(x=je(g,t)),y&&y>x&&(x=y),x!==f&&(m.width=x,t-=x+u*x,n--)}}),f=(t-l)/(n+(n-1)*u),f=ge(f,0);var c=0,p;A(o,function(v){var m=s[v];m.width||(m.width=f),p=m,c+=m.width*(1+u)}),p&&(c-=p.width*u);var h={},d=-c/2;return A(o,function(v){var m=s[v];h[v]=h[v]||{bandWidth:e,offset:d,width:m.width},d+=m.width*(1+u)}),h}function ED(r){return{seriesType:r,overallReset:function(e){var t=Lf(r,Gr);OM(e,t,function(n){var i=bH(n,r);W0(n,t,function(a){var o=i.columnMap[TD(a)];a.getData().setLayout({bandWidth:o.bandWidth,offset:o.offset,size:o.width})})})}}}function AD(r){return{seriesType:r,plan:$o(),reset:function(e){if(nD(e)){var t=e.getData(),n=e.coordinateSystem,i=n.getBaseAxis(),a=n.getOtherAxis(i),o=t.getDimensionIndex(t.mapDimension(a.dim)),s=t.getDimensionIndex(t.mapDimension(i.dim)),l=e.get("showBackground",!0),u=t.mapDimension(a.dim),f=t.getCalculationInfo("stackResultDimension"),c=bi(t,u)&&!!t.getCalculationInfo("stackedOnSeries"),p=a.isHorizontal(),h=a.toGlobalCoord(a.dataToCoord(SD(a))),d=CD(e),v=e.get("barMinHeight")||0,m=f&&t.getDimensionIndex(f),g=t.getLayout("size"),y=t.getLayout("offset");return{progress:function(x,_){for(var b=x.count,S=d&&Dr(b*3),w=d&&l&&Dr(b*3),C=d&&Dr(b),M=n.master.getRect(),E=p?M.width:M.height,D,P=_.getStore(),L=0;(D=x.next())!=null;){var O=P.get(c?m:o,D),z=P.get(s,D),N=h,V=void 0;c&&(V=+O-P.get(o,D));var B=void 0,H=void 0,W=void 0,K=void 0;if(p){var J=n.dataToPoint([O,z]);c&&(N=n.dataToPoint([V,z])[0]),B=N,H=J[1]+y,W=J[0]-N,K=g,qe(W)<v&&(W=(W<0?-1:1)*v)}else{var J=n.dataToPoint([z,O]);c&&(N=n.dataToPoint([z,V])[1]),B=J[0]+y,H=N,W=g,K=J[1]-N,qe(K)<v&&(K=(K<=0?-1:1)*v)}d?(S[L]=B,S[L+1]=H,S[L+2]=p?W:K,w&&(w[L]=p?M.x:B,w[L+1]=p?H:M.y,w[L+2]=E),C[D]=D):_.setItemLayout(D,{x:B,y:H,width:W,height:K}),L+=3}d&&_.setLayout({largePoints:S,largeDataIndices:C,largeBackgroundPoints:w,valueAxisHorizontal:p})}}}}}}function CD(r){return r.pipelineContext&&r.pipelineContext.large}function TH(r){return xD(Lf(r,Gr))}function MD(r){xH(r,function(){function e(t){var n=Lf(t,Gr);bD(r,n,t,Gr),vD(n,TH(t))}e("bar"),e("pictorialBar")})}var xH,_H,DD=T(()=>{"use strict";I();we();gl();sd();Tl();ne();Vd();Df();Sa();Nl();Pf();If();rx();xH=Rp(),_H="__ec_stack_"});var LD,ix,PD=T(()=>{"use strict";ee();Ho();pf();I();LD=(function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,n){return ca(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t,n,i){var a=this.coordinateSystem;if(a&&a.clampData){var o=a.clampData(t),s=a.dataToPoint(o);if(i)A(a.getAxes(),function(p,h){if(p.type==="category"&&n!=null){var d=p.getTicksCoords(),v=p.getTickModel().get("alignWithLabel"),m=o[h],g=n[h]==="x1"||n[h]==="y1";if(g&&!v&&(m+=1),d.length<2)return;if(d.length===2){s[h]=p.toGlobalCoord(p.getExtent()[g?1:0]);return}for(var y=void 0,x=void 0,_=1,b=0;b<d.length;b++){var S=d[b].coord,w=b===d.length-1?d[b-1].tickValue+_:d[b].tickValue;if(w===m){x=S;break}else if(w<m)y=S;else if(y!=null&&w>m){x=(S+y)/2;break}b===1&&(_=w-d[0].tickValue)}x==null&&(y?y&&(x=d[d.length-1].coord):x=d[0].coord),s[h]=p.toGlobalCoord(x)}});else{var l=this.getData(),u=l.getLayout("offset"),f=l.getLayout("size"),c=a.getBaseAxis().isHorizontal()?0:1;s[c]+=u+f/2}return s}return[NaN,NaN]},e.prototype.__requireStartValue=function(t){return this.getBaseAxis()!==t},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",defaultBarGap:"10%"},e})(er);er.registerClass(LD);ix=LD});var EH,OD,ID=T(()=>{"use strict";ee();PD();pf();Ro();Gt();ne();Pf();EH=(function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(){return ca(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},e.prototype.__preparePipelineContext=function(t,n){var i=kp(this,t,n);return i.progressiveRender&&(i.large=!0),i},e.prototype.brushSelector=function(t,n,i){return i.rect(n.getItemLayout(t))},e.type="series."+Ai,e.dependencies=["grid","polar"],e.defaultOption=Ch(ix.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:ie.color.primary,borderWidth:2}},realtimeSort:!1}),e})(ix),OD=EH});function Rf(r,e,t){var n,i=0,a=0,o=null,s,l,u,f;e=e||0;function c(){a=new Date().getTime(),o=null,r.apply(l,u||[])}var p=function(){for(var h=[],d=0;d<arguments.length;d++)h[d]=arguments[d];n=new Date().getTime(),l=this,u=h;var v=f||e,m=f||t;f=null,s=n-(m?i:a)-v,clearTimeout(o),m?o=setTimeout(c,v):s>=0?c():o=setTimeout(c,-s),i=n};return p.clear=function(){o&&(clearTimeout(o),o=null)},p.debounceNextCall=function(h){f=h},p}function kD(r,e,t,n){var i=r[e];if(i){var a=i[Gd]||i,o=i[ND],s=i[RD];if(s!==t||o!==n){if(t==null||!n)return r[e]=a;i=r[e]=Rf(a,t,n==="debounce"),i[Gd]=a,i[ND]=n,i[RD]=t}return i}}function zD(r,e){var t=r[e];t&&t[Gd]&&(t.clear&&t.clear(),r[e]=t[Gd])}var Gd,RD,ND,$d=T(()=>{"use strict";Gd="\0__throttleOriginMethod",RD="\0__throttleRate",ND="\0__throttleType"});var CH,MH,ax,BD=T(()=>{"use strict";ee();ze();CH=(function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r})(),MH=(function(r){R(e,r);function e(t){var n=r.call(this,t)||this;return n.type="sausage",n}return e.prototype.getDefaultShape=function(){return new CH},e.prototype.buildPath=function(t,n){var i=n.cx,a=n.cy,o=Math.max(n.r0||0,0),s=Math.max(n.r,0),l=(s-o)*.5,u=o+l,f=n.startAngle,c=n.endAngle,p=n.clockwise,h=Math.PI*2,d=p?c-f<h:f-c<h;d||(f=c-(p?h:-h));var v=Math.cos(f),m=Math.sin(f),g=Math.cos(c),y=Math.sin(c);d?(t.moveTo(v*o+i,m*o+a),t.arc(v*u+i,m*u+a,l,-Math.PI+f,f,!p)):t.moveTo(v*s+i,m*s+a),t.arc(i,a,s,f,c,!p),t.arc(g*u+i,y*u+a,l,c-Math.PI*2,c-Math.PI,!p),o!==0&&t.arc(i,a,o,c,f,p)},e})(le),ax=MH});function UD(r,e){e=e||{};var t=e.isRoundCap;return function(n,i,a){var o=i.position;if(!o||o instanceof Array)return qa(n,i,a);var s=r(o),l=i.distance!=null?i.distance:5,u=this.shape,f=u.cx,c=u.cy,p=u.r,h=u.r0,d=(p+h)/2,v=u.startAngle,m=u.endAngle,g=(v+m)/2,y=t?Math.abs(p-h)/2:0,x=Math.cos,_=Math.sin,b=f+p*x(v),S=c+p*_(v),w="left",C="top";switch(s){case"startArc":b=f+(h-l)*x(g),S=c+(h-l)*_(g),w="center",C="top";break;case"insideStartArc":b=f+(h+l)*x(g),S=c+(h+l)*_(g),w="center",C="bottom";break;case"startAngle":b=f+d*x(v)+Wd(v,l+y,!1),S=c+d*_(v)+Yd(v,l+y,!1),w="right",C="middle";break;case"insideStartAngle":b=f+d*x(v)+Wd(v,-l+y,!1),S=c+d*_(v)+Yd(v,-l+y,!1),w="left",C="middle";break;case"middle":b=f+d*x(g),S=c+d*_(g),w="center",C="middle";break;case"endArc":b=f+(p+l)*x(g),S=c+(p+l)*_(g),w="center",C="bottom";break;case"insideEndArc":b=f+(p-l)*x(g),S=c+(p-l)*_(g),w="center",C="top";break;case"endAngle":b=f+d*x(m)+Wd(m,l+y,!0),S=c+d*_(m)+Yd(m,l+y,!0),w="left",C="middle";break;case"insideEndAngle":b=f+d*x(m)+Wd(m,-l+y,!0),S=c+d*_(m)+Yd(m,-l+y,!0),w="right",C="middle";break;default:return qa(n,i,a)}return n=n||{},n.x=b,n.y=S,n.align=w,n.verticalAlign=C,n}}function FD(r,e,t,n){if(he(n)){r.setTextConfig({rotation:n});return}else if(U(e)){r.setTextConfig({rotation:0});return}var i=r.shape,a=i.clockwise?i.startAngle:i.endAngle,o=i.clockwise?i.endAngle:i.startAngle,s=(a+o)/2,l,u=t(e);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":l=s;break;case"startAngle":case"insideStartAngle":l=a;break;case"endAngle":case"insideEndAngle":l=o;break;default:r.setTextConfig({rotation:0});return}var f=Math.PI*1.5-l;u==="middle"&&f>Math.PI/2&&f<Math.PI*1.5&&(f-=Math.PI),r.setTextConfig({rotation:f})}function Wd(r,e,t){return e*Math.sin(r)*(t?-1:1)}function Yd(r,e,t){return e*Math.cos(r)*(t?1:-1)}var VD=T(()=>{"use strict";en();I()});function es(r,e,t){var n=r.get("borderRadius");if(n==null)return t?{cornerRadius:0}:null;U(n)||(n=[n,n,n,n]);var i=Math.abs(e.r||0-e.r0||0);return{cornerRadius:F(n,function(a){return jr(a,i)})}}var ox=T(()=>{"use strict";I();en()});function LH(r,e){var t=r.get("realtimeSort",!0),n=e.getBaseAxis();if(t&&n.type==="category"&&e.type==="cartesian2d")return{baseAxis:n,otherAxis:e.getOtherAxis(n)}}function $D(r,e,t,n,i,a,o,s){var l,u;a?(u={x:n.x,width:n.width},l={y:n.y,height:n.height}):(u={y:n.y,height:n.height},l={x:n.x,width:n.width}),s||(o?Ve:Je)(t,{shape:l},e,i,null);var f=e?r.baseAxis.model:null;(o?Ve:Je)(t,{shape:u},f,i)}function WD(r,e){for(var t=0;t<e.length;t++)if(!isFinite(r[e[t]]))return!0;return!1}function IH(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function jD(r){return(function(e){var t=e?"Arc":"Angle";return function(n){switch(n){case"start":case"insideStart":case"end":case"insideEnd":return n+t;default:return n}}})(r)}function qD(r,e,t,n,i,a,o,s){var l=e.getItemVisual(t,"style");if(s){if(!a.get("roundCap")){var f=r.shape,c=es(n.getModel("itemStyle"),f,!0);k(f,c),r.setShape(f)}}else{var u=n.get(["itemStyle","borderRadius"])||0;r.setShape("r",u)}r.useStyle(l);var p=n.getShallow("cursor");p&&r.attr("cursor",p);var h=s?o?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":o?BH(i,a.coordinateSystem):UH(i,a.coordinateSystem),d=Gn(n);Hn(r,d,{labelFetcher:a,labelDataIndex:t,defaultText:wl(a.getData(),t),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:h});var v=r.getTextContent();if(s&&v){var m=n.get(["label","position"]);r.textConfig.inside=m==="middle"?!0:null,FD(r,m==="outside"?h:m,jD(o),n.get(["label","rotate"]))}WE(v,d,a.getRawValue(t),function(y){return Qh(e,y)});var g=n.getModel(["emphasis"]);mi(r,g.get("focus"),g.get("blurScope"),g.get("disabled")),yo(r,n),IH(i)&&(r.style.fill="none",r.style.stroke="none",A(r.states,function(y){y.style&&(y.style.fill=y.style.stroke="none")}))}function RH(r,e){var t=r.get(["itemStyle","borderColor"]);if(!t||t==="none")return 0;var n=r.get(["itemStyle","borderWidth"])||0,i=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),a=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(n,i,a)}function KD(r,e,t,n){var i=r.getData(),a=i.getLayout("valueAxisHorizontal")?1:0,o=i.getLayout("largeDataIndices"),s=i.getLayout("size"),l=r.getModel("backgroundStyle"),u=i.getLayout("largeBackgroundPoints"),f=n?Np(r):0;if(u){var c=new XD({shape:{points:u},incremental:f,silent:!0,z2:0});c.baseDimIdx=a,c.largeDataIndices=o,c.barWidth=s,c.useStyle(l.getItemStyle()),e.add(c),t&&t.push(c)}var p=new XD({shape:{points:i.getLayout("largePoints")},incremental:f,ignoreCoarsePointer:!0,z2:1});p.baseDimIdx=a,p.largeDataIndices=o,p.barWidth=s,e.add(p),p.useStyle(i.getVisual("style")),p.style.stroke=null,ye(p).seriesIndex=r.seriesIndex,r.get("silent")||(p.on("mousedown",ZD),p.on("mousemove",ZD)),t&&t.push(p)}function kH(r,e,t){for(var n=r.baseDimIdx,i=1-n,a=r.shape.points,o=r.largeDataIndices,s=[],l=[],u=r.barWidth,f=0,c=a.length/3;f<c;f++){var p=f*3;if(l[n]=u,l[i]=a[p+2],s[n]=a[p+n],s[i]=a[p+i],l[i]<0&&(s[i]+=l[i],l[i]=-l[i]),e>=s[0]&&e<=s[0]+l[0]&&t>=s[1]&&t<=s[1]+l[1])return o[f]}return-1}function JD(r,e,t){if(ud(t,"cartesian2d")){var n=e,i=t.getArea();return{x:r?n.x:i.x,y:r?i.y:n.y,width:r?n.width:i.width,height:r?i.height:n.height}}else{var i=t.getArea(),a=e;return{cx:i.cx,cy:i.cy,r0:r?i.r0:a.r0,r:r?i.r:a.r,startAngle:r?a.startAngle:0,endAngle:r?a.endAngle:Math.PI*2}}}function zH(r,e,t){var n=r.type==="polar"?an:Oe;return new n({shape:JD(e,t,r),silent:!0,z2:0})}function BH(r,e){if(r.height===0){var t=e.getOtherAxis(e.getBaseAxis());return t.inverse?"bottom":"top"}return r.height>0?"bottom":"top"}function UH(r,e){if(r.width===0){var t=e.getOtherAxis(e.getBaseAxis());return t.inverse?"left":"right"}return r.width>=0?"right":"left"}var sx,lx,DH,HD,GD,PH,OH,YD,qd,NH,XD,ZD,QD,eL=T(()=>{"use strict";ee();ct();nl();I();ze();wr();Un();Er();$d();ld();BD();Wo();O0();ed();VD();Zu();ox();ne();Pf();sx=Math.max,lx=Math.min,DH=(function(r){R(e,r);function e(){var t=r.call(this)||this;return t.type=Ai,t._isFirstFrame=!0,t}return e.prototype.render=function(t,n,i,a){this._model=t,this._removeOnRenderedListener(i),this._updateDrawMode(t);var o=t.get("coordinateSystem");(o==="cartesian2d"||o==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(t,n,i):this._renderNormal(t,n,i,a))},e.prototype.incrementalPrepareRender=function(t){this._clear(),this._updateDrawMode(t),this._updateLargeClip(t)},e.prototype.incrementalRender=function(t,n){this._progressiveEls=[],this._incrementalRenderLarge(t,n)},e.prototype.eachRendered=function(t){To(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var n=t.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},e.prototype._renderNormal=function(t,n,i,a){var o=this.group,s=t.getData(),l=this._data,u=t.coordinateSystem,f=u.getBaseAxis(),c;u.type==="cartesian2d"?c=f.isHorizontal():u.type==="polar"&&(c=f.dim==="angle");var p=t.isAnimationEnabled()?t:null,h=LH(t,u);h&&this._enableRealtimeSort(h,s,i);var d=t.get("clip",!0)||h,v=u.getArea();o.removeClipPath();var m=t.get("roundCap",!0),g=t.get("showBackground",!0),y=t.getModel("backgroundStyle"),x=y.get("borderRadius")||0,_=[],b=this._backgroundEls,S=a&&a.isInitSort,w=a&&a.type==="changeAxisOrder";function C(D){var P=qd[u.type](s,D);if(!P)return null;var L=zH(u,c,P);return L.useStyle(y.getItemStyle()),u.type==="cartesian2d"?L.setShape("r",x):L.setShape("cornerRadius",x),_[D]=L,L}s.diff(l).add(function(D){var P=s.getItemModel(D),L=qd[u.type](s,D,P);if(L&&(g&&C(D),!(!s.hasValue(D)||!YD[u.type](L)))){var O=!1;d&&(O=HD[u.type](v,L));var z=GD[u.type](t,s,D,L,c,p,f.model,!1,m);h&&(z.forceLabelAnimation=!0),qD(z,s,D,P,L,t,c,u.type==="polar"),S?z.attr({shape:L}):h?$D(h,p,z,L,D,c,!1,!1):Je(z,{shape:L},t,D),s.setItemGraphicEl(D,z),o.add(z),z.ignore=O}}).update(function(D,P){var L=s.getItemModel(D),O=qd[u.type](s,D,L);if(O){if(g){var z=void 0;b.length===0?z=C(P):(z=b[P],z.useStyle(y.getItemStyle()),u.type==="cartesian2d"?z.setShape("r",x):z.setShape("cornerRadius",x),_[D]=z);var N=qd[u.type](s,D),V=JD(c,N,u);Ve(z,{shape:V},p,D)}var B=l.getItemGraphicEl(P);if(!s.hasValue(D)||!YD[u.type](O)){o.remove(B);return}var H=!1;d&&(H=HD[u.type](v,O),H&&o.remove(B));var W=B&&(B.type==="sector"&&m||B.type==="sausage"&&!m);if(W&&(B&&la(B,t,P),B=null),B?ol(B):B=GD[u.type](t,s,D,O,c,p,f.model,!0,m),h&&(B.forceLabelAnimation=!0),w){var K=B.getTextContent();if(K){var J=yi(K);J.prevValue!=null&&(J.prevValue=J.value)}}else qD(B,s,D,L,O,t,c,u.type==="polar");S?B.attr({shape:O}):h?$D(h,p,B,O,D,c,!0,w):Ve(B,{shape:O},t,D,null),s.setItemGraphicEl(D,B),B.ignore=H,o.add(B)}}).remove(function(D){var P=l.getItemGraphicEl(D);P&&la(P,t,D)}).execute();var M=this._backgroundGroup||(this._backgroundGroup=new Ie);M.removeAll();for(var E=0;E<_.length;++E)M.add(_[E]);o.add(M),this._backgroundEls=_,this._data=s},e.prototype._renderLarge=function(t,n,i){this._clear(),KD(t,this.group),this._updateLargeClip(t)},e.prototype._incrementalRenderLarge=function(t,n){this._removeBackground(),KD(n,this.group,this._progressiveEls,!0)},e.prototype._updateLargeClip=function(t){var n=t.get("clip",!0)&&CC(t.coordinateSystem,!1,t),i=this.group;n?i.setClipPath(n):i.removeClipPath()},e.prototype._enableRealtimeSort=function(t,n,i){var a=this;if(n.count()){var o=t.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(n,t,i),this._isFirstFrame=!1;else{var s=function(l){var u=n.getItemGraphicEl(l),f=u&&u.shape;return f&&Math.abs(o.isHorizontal()?f.height:f.width)||0};this._onRendered=function(){a._updateSortWithinSameData(n,s,o,i)},i.getZr().on("rendered",this._onRendered)}}},e.prototype._dataSort=function(t,n,i){var a=[];return t.each(t.mapDimension(n.dim),function(o,s){var l=i(s);l=l??NaN,a.push({dataIndex:s,mappedValue:l,ordinalNumber:o})}),a.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:F(a,function(o){return o.ordinalNumber})}},e.prototype._isOrderChangedWithinSameData=function(t,n,i){for(var a=i.scale,o=t.mapDimension(i.dim),s=Number.MAX_VALUE,l=0,u=a.getOrdinalMeta().categories.length;l<u;++l){var f=t.rawIndexOf(o,a.getRawOrdinalNumber(l)),c=f<0?Number.MIN_VALUE:n(t.indexOfRawIndex(f));if(c>s)return!0;s=c}return!1},e.prototype._isOrderDifferentInView=function(t,n){for(var i=n.scale,a=i.getExtent(),o=Math.max(0,a[0]),s=Math.min(a[1],i.getOrdinalMeta().categories.length-1);o<=s;++o)if(t.ordinalNumbers[o]!==i.getRawOrdinalNumber(o))return!0},e.prototype._updateSortWithinSameData=function(t,n,i,a){if(this._isOrderChangedWithinSameData(t,n,i)){var o=this._dataSort(t,i,n);this._isOrderDifferentInView(o,i)&&(this._removeOnRenderedListener(a),a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",axisId:i.index,sortInfo:o}))}},e.prototype._dispatchInitSort=function(t,n,i){var a=n.baseAxis,o=this._dataSort(t,a,function(s){return t.get(t.mapDimension(n.otherAxis.dim),s)});i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",isInitSort:!0,axisId:a.index,sortInfo:o})},e.prototype.remove=function(t,n){this._clear(this._model),this._removeOnRenderedListener(n)},e.prototype.dispose=function(t,n){this._removeOnRenderedListener(n)},e.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(t){var n=this.group,i=this._data;t&&t.isAnimationEnabled()&&i&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],i.eachItemGraphicEl(function(a){la(a,t,ye(a).dataIndex)})):n.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type=Ai,e})(It),HD={cartesian2d:function(r,e){var t=e.width<0?-1:1,n=e.height<0?-1:1;t<0&&(e.x+=e.width,e.width=-e.width),n<0&&(e.y+=e.height,e.height=-e.height);var i=r.x+r.width,a=r.y+r.height,o=sx(e.x,r.x),s=lx(e.x+e.width,i),l=sx(e.y,r.y),u=lx(e.y+e.height,a),f=s<o,c=u<l;return e.x=f&&o>i?s:o,e.y=c&&l>a?u:l,e.width=f?0:s-o,e.height=c?0:u-l,t<0&&(e.x+=e.width,e.width=-e.width),n<0&&(e.y+=e.height,e.height=-e.height),f||c},polar:function(r,e){var t=e.r0<=e.r?1:-1;if(t<0){var n=e.r;e.r=e.r0,e.r0=n}var i=lx(e.r,r.r),a=sx(e.r0,r.r0);e.r=i,e.r0=a;var o=i-a<0;if(t<0){var n=e.r;e.r=e.r0,e.r0=n}return o}},GD={cartesian2d:function(r,e,t,n,i,a,o,s,l){var u=new Oe({shape:k({},n),z2:1});if(u.__dataIndex=t,u.name="item",a){var f=u.shape,c=i?"height":"width";f[c]=0}return u},polar:function(r,e,t,n,i,a,o,s,l){var u=!i&&l?ax:an,f=new u({shape:n,z2:1});f.name="item";var c=jD(i);if(f.calculateTextPosition=UD(c,{isRoundCap:u===ax}),a){var p=f.shape,h=i?"r":"endAngle",d={};p[h]=i?n.r0:n.startAngle,d[h]=n[h],(s?Ve:Je)(f,{shape:d},a)}return f}};PH=["x","y","width","height"],OH=["cx","cy","r","startAngle","endAngle"],YD={cartesian2d:function(r){return!WD(r,PH)},polar:function(r){return!WD(r,OH)}},qd={cartesian2d:function(r,e,t){var n=r.getItemLayout(e);if(!n)return null;var i=t?RH(t,n):0,a=n.width>0?1:-1,o=n.height>0?1:-1;return{x:n.x+a*i/2,y:n.y+o*i/2,width:n.width-a*i,height:n.height-o*i}},polar:function(r,e,t){var n=r.getItemLayout(e);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}}};NH=(function(){function r(){}return r})(),XD=(function(r){R(e,r);function e(t){var n=r.call(this,t)||this;return n.type="largeBar",n}return e.prototype.getDefaultShape=function(){return new NH},e.prototype.buildPath=function(t,n){for(var i=n.points,a=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,f=0;f<i.length;f+=3)l[a]=u,l[o]=i[f+2],s[a]=i[f+a],s[o]=i[f+o],t.rect(s[0],s[1],l[0],l[1])},e})(le);ZD=Rf(function(r){var e=this,t=kH(e,r.offsetX,r.offsetY);ye(e).dataIndex=t>=0?t:null},30,!1);QD=DH});function ux(r){r.registerChartView(QD),r.registerSeriesModel(OD),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,ED(Ai)),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,AD(Ai)),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,bf(Ai)),r.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,t){var n=e.componentType||"series";t.eachComponent({mainType:n,query:e},function(i){e.sortInfo&&i.axis.setCategorySortInfo(e.sortInfo)})}),MD(r)}var tL=T(()=>{"use strict";DD();U0();ID();eL();Pf()});function rL(r,e){function t(n,i){var a=[];return n.eachComponent({mainType:"series",subType:r,query:i},function(o){a.push(o.seriesIndex)}),a}A([[r+"ToggleSelect","toggleSelect"],[r+"Select","select"],[r+"UnSelect","unselect"]],function(n){e(n[0],function(i,a,o){i=k({},i),o.dispatchAction(k(i,{type:n[1],seriesIndex:t(a,i)}))})})}function zl(r,e,t,n,i){var a=r+e;t.isSilent(a)||n.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,u=i.selected,f=0;f<u.length;f++)if(u[f].seriesIndex===s){var c=o.getData(),p=Vr(c,i.fromActionPayload);t.trigger(a,{type:a,seriesId:o.id,name:U(p)?c.getName(p[0]):c.getName(p),selected:G(l)?l:k({},l)})}})}function nL(r,e,t){r.on("selectchanged",function(n){var i=t.getModel();n.isFromClick?(zl("map","selectchanged",e,i,n),zl("pie","selectchanged",e,i,n)):n.fromAction==="select"?(zl("map","selected",e,i,n),zl("pie","selected",e,i,n)):n.fromAction==="unselect"&&(zl("map","unselected",e,i,n),zl("pie","unselected",e,i,n))})}var fx=T(()=>{"use strict";I();ne()});function cx(r){return{seriesType:r,reset:function(e,t){var n=t.findComponents({mainType:"legend"});if(!(!n||!n.length)){var i=e.getData();i.filterSelf(function(a){for(var o=i.getName(a),s=0;s<n.length;s++)if(!n[s].isSelected(o))return!1;return!0})}}}}var iL=T(()=>{"use strict"});function px(r,e,t){e=U(e)&&{coordDimensions:e}||k({encodeDefine:r.getEncode()},e);var n=r.getSource(),i=ff(n,e).dimensions,a=new wh(i,r);return a.initData(n,t),a}var aL=T(()=>{"use strict";Wy();$y();I()});var FH,oL,sL=T(()=>{"use strict";FH=(function(){function r(e,t){this._getDataWithEncodedVisual=e,this._getRawData=t}return r.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},r.prototype.containName=function(e){var t=this._getRawData();return t.indexOfName(e)>=0},r.prototype.indexOfName=function(e){var t=this._getDataWithEncodedVisual();return t.indexOfName(e)},r.prototype.getItemVisual=function(e,t){var n=this._getDataWithEncodedVisual();return n.getItemVisual(e,t)},r})(),oL=FH});var vn,VH,lL,uL,Xd=T(()=>{"use strict";ee();aL();I();ne();we();Co();sL();Ho();Io();vn="pie",VH=ae(),lL=(function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new oL(Le(this.getData,this),Le(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return px(this,{coordDimensions:["value"],encodeDefaulter:Ne(nA,this)})},e.prototype.getDataParams=function(t){var n=this.getData(),i=VH(n),a=i.seats;if(!a){var o=[];n.each(n.mapDimension("value"),function(l){o.push(l)}),a=i.seats=JT(o,n.hostModel.get("percentPrecision"))}var s=r.prototype.getDataParams.call(this,t);return s.percent=a[t]||0,s.$vars.push("percent"),s},e.prototype._defaultLabelLine=function(t){zu(t,"labelLine",["show"]);var n=t.labelLine,i=t.emphasis.labelLine;n.show=n.show&&t.label.show,i.show=i.show&&t.emphasis.label.show},e.type="series."+vn,e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"50%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,coordinateSystemUsage:"box",left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:30,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e})(er);_A({fullType:lL.type,getCoord2:function(r){return r.getShallow("center")}});uL=lL});function GH(r,e,t,n,i){var a=t.width,o=t.height;switch(r){case"top":n.set(t.x+a/2,t.y-e),i.set(0,-1);break;case"bottom":n.set(t.x+a/2,t.y+o+e),i.set(0,1);break;case"left":n.set(t.x-e,t.y+o/2),i.set(-1,0);break;case"right":n.set(t.x+a+e,t.y+o/2),i.set(1,0);break}}function $H(r,e,t,n,i,a,o,s,l){o-=r,s-=e;var u=Math.sqrt(o*o+s*s);o/=u,s/=u;var f=o*t+r,c=s*t+e;if(Math.abs(n-i)%Nf<1e-4)return l[0]=f,l[1]=c,u-t;if(a){var p=n;n=Ur(i),i=Ur(p)}else n=Ur(n),i=Ur(i);n>i&&(i+=Nf);var h=Math.atan2(s,o);if(h<0&&(h+=Nf),h>=n&&h<=i||h+Nf>=n&&h+Nf<=i)return l[0]=f,l[1]=c,u-t;var d=t*Math.cos(n)+r,v=t*Math.sin(n)+e,m=t*Math.cos(i)+r,g=t*Math.sin(i)+e,y=(d-o)*(d-o)+(v-s)*(v-s),x=(m-o)*(m-o)+(g-s)*(g-s);return y<x?(l[0]=d,l[1]=v,Math.sqrt(y)):(l[0]=m,l[1]=g,Math.sqrt(x))}function Kd(r,e,t,n,i,a,o,s){var l=i-r,u=a-e,f=t-r,c=n-e,p=Math.sqrt(f*f+c*c);f/=p,c/=p;var h=l*f+u*c,d=h/p;s&&(d=Math.min(Math.max(d,0),1)),d*=p;var v=o[0]=r+d*f,m=o[1]=e+d*c;return Math.sqrt((v-i)*(v-i)+(m-a)*(m-a))}function fL(r,e,t,n,i,a,o){t<0&&(r=r+t,t=-t),n<0&&(e=e+n,n=-n);var s=r+t,l=e+n,u=o[0]=Math.min(Math.max(i,r),s),f=o[1]=Math.min(Math.max(a,e),l);return Math.sqrt((u-i)*(u-i)+(f-a)*(f-a))}function WH(r,e,t){var n=fL(e.x,e.y,e.width,e.height,r.x,r.y,mn);return t.set(mn[0],mn[1]),n}function YH(r,e,t){for(var n=0,i=0,a=0,o=0,s,l,u=1/0,f=e.data,c=r.x,p=r.y,h=0;h<f.length;){var d=f[h++];h===1&&(n=f[h],i=f[h+1],a=n,o=i);var v=u;switch(d){case ts.M:a=f[h++],o=f[h++],n=a,i=o;break;case ts.L:v=Kd(n,i,f[h],f[h+1],c,p,mn,!0),n=f[h++],i=f[h++];break;case ts.C:v=jc(n,i,f[h++],f[h++],f[h++],f[h++],f[h],f[h+1],c,p,mn),n=f[h++],i=f[h++];break;case ts.Q:v=Qc(n,i,f[h++],f[h++],f[h],f[h+1],c,p,mn),n=f[h++],i=f[h++];break;case ts.A:var m=f[h++],g=f[h++],y=f[h++],x=f[h++],_=f[h++],b=f[h++];h+=1;var S=!!(1-f[h++]);s=Math.cos(_)*y+m,l=Math.sin(_)*x+g,h<=1&&(a=s,o=l);var w=(c-m)*x/y+m;v=$H(m,g,x,_,_+b,S,w,p,mn),n=Math.cos(_+b)*y+m,i=Math.sin(_+b)*x+g;break;case ts.R:a=n=f[h++],o=i=f[h++];var C=f[h++],M=f[h++];v=fL(a,o,C,M,c,p,mn);break;case ts.Z:v=Kd(n,i,a,o,c,p,mn,!0),n=a,i=o;break}v<u&&(u=v,t.set(mn[0],mn[1]))}return u}function dx(r,e){if(r){var t=r.getTextGuideLine(),n=r.getTextContent();if(n&&t){var i=r.textGuideLineConfig||{},a=[[0,0],[0,0],[0,0]],o=i.candidates||HH,s=n.getBoundingRect().clone();s.applyTransform(n.getComputedTransform());var l=1/0,u=i.anchor,f=r.getComputedTransform(),c=f&&Ir([],f),p=e.get("length2")||0;u&&lt.copy(u);for(var h=0;h<o.length;h++){var d=o[h];GH(d,0,s,gn,Zn),ce.scaleAndAdd(Ue,gn,Zn,p),Ue.transform(c);var v=r.getBoundingRect(),m=u?u.distance(Ue):r instanceof le?YH(Ue,r.path,lt):WH(Ue,v,lt);m<l&&(l=m,Ue.transform(f),lt.transform(f),lt.toArray(a[0]),Ue.toArray(a[1]),gn.toArray(a[2]))}vx(a,e.get("minTurnAngle")),t.setShape({points:a})}}}function vx(r,e){if(e<=180&&e>0){e=e/180*Math.PI,gn.fromArray(r[0]),Ue.fromArray(r[1]),lt.fromArray(r[2]),ce.sub(Zn,gn,Ue),ce.sub(Kn,lt,Ue);var t=Zn.len(),n=Kn.len();if(!(t<.001||n<.001)){Zn.scale(1/t),Kn.scale(1/n);var i=Zn.dot(Kn),a=Math.cos(e);if(a<i){var o=Kd(Ue.x,Ue.y,lt.x,lt.y,gn.x,gn.y,Zd,!1);rr.fromArray(Zd),rr.scaleAndAdd(Kn,o/Math.tan(Math.PI-e));var s=lt.x!==Ue.x?(rr.x-Ue.x)/(lt.x-Ue.x):(rr.y-Ue.y)/(lt.y-Ue.y);if(isNaN(s))return;s<0?ce.copy(rr,Ue):s>1&&ce.copy(rr,lt),rr.toArray(r[1])}}}}function cL(r,e,t){if(t<=180&&t>0){t=t/180*Math.PI,gn.fromArray(r[0]),Ue.fromArray(r[1]),lt.fromArray(r[2]),ce.sub(Zn,Ue,gn),ce.sub(Kn,lt,Ue);var n=Zn.len(),i=Kn.len();if(!(n<.001||i<.001)){Zn.scale(1/n),Kn.scale(1/i);var a=Zn.dot(e),o=Math.cos(t);if(a<o){var s=Kd(Ue.x,Ue.y,lt.x,lt.y,gn.x,gn.y,Zd,!1);rr.fromArray(Zd);var l=Math.PI/2,u=Math.acos(Kn.dot(e)),f=l+u-t;if(f>=l)ce.copy(rr,lt);else{rr.scaleAndAdd(Kn,s/Math.tan(Math.PI/2-f));var c=lt.x!==Ue.x?(rr.x-Ue.x)/(lt.x-Ue.x):(rr.y-Ue.y)/(lt.y-Ue.y);if(isNaN(c))return;c<0?ce.copy(rr,Ue):c>1&&ce.copy(rr,lt)}rr.toArray(r[1])}}}}function hx(r,e,t,n){var i=t==="normal",a=i?r:r.ensureState(t);a.ignore=e;var o=n.get("smooth");o=o===!0?.3:Math.max(+o,0)||0,a.shape=a.shape||{},a.shape.smooth=o;var s=n.getModel("lineStyle").getLineStyle();i?r.useStyle(s):a.style=s}function qH(r,e){var t=e.smooth,n=e.points;if(n)if(r.moveTo(n[0][0],n[0][1]),t>0&&n.length>=3){var i=du(n[0],n[1]),a=du(n[1],n[2]);if(!i||!a){r.lineTo(n[1][0],n[1][1]),r.lineTo(n[2][0],n[2][1]);return}var o=Math.min(i,a)*t,s=Vc([],n[1],n[0],o/i),l=Vc([],n[1],n[2],o/a),u=Vc([],s,l,.5);r.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),r.bezierCurveTo(l[0],l[1],l[0],l[1],n[2][0],n[2][1])}else for(var f=1;f<n.length;f++)r.lineTo(n[f][0],n[f][1])}function jd(r,e,t){var n=r.getTextGuideLine(),i=r.getTextContent();if(!i){n&&r.removeTextGuideLine();return}for(var a=e.normal,o=a.get("show"),s=i.ignore,l=0;l<tl.length;l++){var u=tl[l],f=e[u],c=u==="normal";if(f){var p=f.get("show"),h=c?s:$(i.states[u]&&i.states[u].ignore,s);if(h||!$(p,o)){var d=c?n:n&&n.states[u];d&&(d.ignore=!0),n&&hx(n,!0,u,f);continue}n||(n=new _o,r.setTextGuideLine(n),!c&&(s||!o)&&hx(n,!0,"normal",e.normal),r.stateProxy&&(n.stateProxy=r.stateProxy)),hx(n,!1,u,f)}}if(n){fe(n.style,t),n.style.fill=null;var v=a.get("showAbove"),m=r.textGuideLineConfig=r.textGuideLineConfig||{};m.showAbove=v||!1,n.buildPath=qH}}function Jd(r,e){e=e||"labelLine";for(var t={normal:r.getModel(e)},n=0;n<Qt.length;n++){var i=Qt[n];t[i]=r.getModel([i,e])}return t}var Nf,ts,HH,mn,gn,Ue,lt,Zn,Kn,Zd,rr,Qd=T(()=>{"use strict";ze();Nn();wp();Mn();I();ni();cr();Un();Nf=Math.PI*2,ts=Lt.CMD,HH=["top","right","bottom","left"];mn=[];gn=new ce,Ue=new ce,lt=new ce,Zn=new ce,Kn=new ce;Zd=[],rr=new ce});function pL(r,e,t,n,i,a,o,s,l,u){if(r.length<2)return;function f(v){for(var m=v.rB,g=m*m,y=0;y<v.list.length;y++){var x=v.list[y],_=Math.abs(x.label.y-t),b=n+x.len,S=b*b,w=Math.sqrt(Math.abs((1-_*_/g)*S)),C=e+(w+x.len2)*i,M=C-x.label.x,E=x.targetTextWidth-M*i;dL(x,E,!0),x.label.x=C}}function c(v){for(var m={list:[],maxY:0},g={list:[],maxY:0},y=0;y<v.length;y++)if(v[y].labelAlignTo==="none"){var x=v[y],_=x.label.y>t?g:m,b=Math.abs(x.label.y-t);if(b>=_.maxY){var S=x.label.x-e-x.len2*i,w=n+x.len,C=Math.abs(S)<w?Math.sqrt(b*b/(1-S*S/w/w)):w;_.rB=C,_.maxY=b}_.list.push(x)}f(m),f(g)}for(var p=r.length,h=0;h<p;h++)if(r[h].position==="outer"&&r[h].labelAlignTo==="labelLine"){var d=r[h].label.x-u;r[h].linePoints[1][0]+=d,r[h].label.x=u}Ef(r,1,l,l+o)&&c(r)}function KH(r,e,t,n,i,a,o,s){for(var l=[],u=[],f=Number.MAX_VALUE,c=-Number.MAX_VALUE,p=0;p<r.length;p++){var h=r[p].label;mx(r[p])||(h.x<e?(f=Math.min(f,h.x),l.push(r[p])):(c=Math.max(c,h.x),u.push(r[p])))}for(var p=0;p<r.length;p++){var d=r[p];if(!mx(d)&&d.linePoints){if(d.labelStyleWidth!=null)continue;var h=d.label,v=d.linePoints,m=void 0;d.labelAlignTo==="edge"?h.x<e?m=v[2][0]-d.labelDistance-o-d.edgeDistance:m=o+i-d.edgeDistance-v[2][0]-d.labelDistance:d.labelAlignTo==="labelLine"?h.x<e?m=f-o-d.bleedMargin:m=o+i-c-d.bleedMargin:h.x<e?m=h.x-o-d.bleedMargin:m=o+i-h.x-d.bleedMargin,d.targetTextWidth=m,dL(d,m,!1)}}pL(u,e,t,n,1,i,a,o,s,c),pL(l,e,t,n,-1,i,a,o,s,f);for(var p=0;p<r.length;p++){var d=r[p];if(!mx(d)&&d.linePoints){var h=d.label,v=d.linePoints,g=d.labelAlignTo==="edge",y=h.style.padding,x=y?y[1]+y[3]:0,_=h.style.backgroundColor?0:x,b=d.rect.width+_,S=v[1][0]-v[2][0];g?h.x<e?v[2][0]=o+d.edgeDistance+b+d.labelDistance:v[2][0]=o+i-d.edgeDistance-b-d.labelDistance:(h.x<e?v[2][0]=h.x+d.labelDistance:v[2][0]=h.x-d.labelDistance,v[1][0]=v[2][0]+S),v[1][1]=v[2][1]=h.y}}}function dL(r,e,t){if(r.labelStyleWidth==null){var n=r.label,i=n.style,a=r.rect,o=i.backgroundColor,s=i.padding,l=s?s[1]+s[3]:0,u=i.overflow,f=a.width+(o?0:l);if(e<f||t){if(u&&u.match("break")){n.setStyle("backgroundColor",null),n.setStyle("width",e-l);var c=n.getBoundingRect();n.setStyle("width",Math.ceil(c.width)),n.setStyle("backgroundColor",o)}else{var p=e-l,h=e<f?p:t?p>r.unconstrainedWidth?null:p:null;n.setStyle("width",h)}vL(a,n)}}}function vL(r,e){hL.rect=r,K0(hL,e,ZH)}function mx(r){return r.position==="center"}function gx(r){var e=r.getData(),t=[],n,i,a=!1,o=(r.get("minShowLabelAngle")||0)*XH,s=e.getLayout("viewRect"),l=e.getLayout("r"),u=s.width,f=s.x,c=s.y,p=s.height;function h(S){S.ignore=!0}function d(S){if(!S.ignore)return!0;for(var w in S.states)if(S.states[w].ignore===!1)return!0;return!1}e.each(function(S){var w=e.getItemGraphicEl(S),C=w.shape,M=w.getTextContent(),E=w.getTextGuideLine(),D=e.getItemModel(S),P=D.getModel("label"),L=P.get("position")||D.get(["emphasis","label","position"]),O=P.get("distanceToLabelLine"),z=P.get("alignTo"),N=Be(P.get("edgeDistance"),u),V=P.get("bleedMargin");V==null&&(V=Math.min(u,p)>200?10:2);var B=D.getModel("labelLine"),H=B.get("length");H=Be(H,u);var W=B.get("length2");if(W=Be(W,u),Math.abs(C.endAngle-C.startAngle)<o){A(M.states,h),M.ignore=!0,E&&(A(E.states,h),E.ignore=!0);return}if(d(M)){var K=(C.startAngle+C.endAngle)/2,J=Math.cos(K),re=Math.sin(K),Z,ve,_e,et;n=C.cx,i=C.cy;var Ze=L==="inside"||L==="inner";if(L==="center")Z=C.cx,ve=C.cy,et="center";else{var Ce=(Ze?(C.r+C.r0)/2*J:C.r*J)+n,Ge=(Ze?(C.r+C.r0)/2*re:C.r*re)+i;if(Z=Ce+J*3,ve=Ge+re*3,!Ze){var pe=Ce+J*(H+l-C.r),be=Ge+re*(H+l-C.r),ar=pe+(J<0?-1:1)*W,tt=be;z==="edge"?Z=J<0?f+N:f+u-N:Z=ar+(J<0?-O:O),ve=tt,_e=[[Ce,Ge],[pe,be],[ar,tt]]}et=Ze?"center":z==="edge"?J>0?"right":"left":J>0?"left":"right"}var Xr=Math.PI,or=0,Kr=P.get("rotate");if(he(Kr))or=Kr*(Xr/180);else if(L==="center")or=0;else if(Kr==="radial"||Kr===!0){var hs=J<0?-K+Xr:-K;or=hs}else if(Kr==="tangential"||Kr==="tangential-noflip"&&L!=="outside"&&L!=="outer"){var Zr=Math.atan2(J,re);Zr<0&&(Zr=Xr*2+Zr);var cc=re>0;cc&&Kr!=="tangential-noflip"&&(Zr=Xr+Zr),or=Zr-Xr}if(a=!!or,M.x=Z,M.y=ve,M.rotation=or,M.setStyle({verticalAlign:"middle"}),Ze){M.setStyle({align:et});var Zv=M.states.select;Zv&&(Zv.x+=M.x,Zv.y+=M.y)}else{var ds=new se(0,0,0,0);vL(ds,M),t.push({label:M,labelLine:E,position:L,len:H,len2:W,minTurnAngle:B.get("minTurnAngle"),maxSurfaceAngle:B.get("maxSurfaceAngle"),surfaceNormal:new ce(J,re),linePoints:_e,textAlign:et,labelDistance:O,labelAlignTo:z,edgeDistance:N,bleedMargin:V,rect:ds,unconstrainedWidth:ds.width,labelStyleWidth:M.style.width})}w.setTextConfig({inside:Ze})}}),!a&&r.get("avoidLabelOverlap")&&KH(t,n,i,l,u,p,f,c);for(var v=0;v<t.length;v++){var m=t[v],g=m.label,y=m.labelLine,x=isNaN(g.x)||isNaN(g.y);if(g){g.setStyle({align:m.textAlign}),x&&(A(g.states,h),g.ignore=!0);var _=g.states.select;_&&(_.x+=g.x,_.y+=g.y)}if(y){var b=m.linePoints;x||!b?(A(y.states,h),y.ignore=!0):(vx(b,m.minTurnAngle),cL(b,m.surfaceNormal,m.maxSurfaceAngle),y.setShape({points:b}),g.__hostTarget.textGuideLineConfig={anchor:new ce(b[0][0],b[0][1])})}}}var XH,ZH,hL,mL=T(()=>{"use strict";we();ze();Tt();I();Qd();kd();XH=Math.PI/180;ZH={minMarginForce:[null,0,null,0],marginDefault:[1,0,1,0]},hL={}});function jH(r,e){r.eachSeriesByType(vn,function(t){var n=t.getData(),i=n.mapDimension("value"),a=jA(t,e),o=a.cx,s=a.cy,l=a.r,u=a.r0,f=a.viewRect,c=-t.get("startAngle")*ev,p=t.get("endAngle"),h=t.get("padAngle")*ev;p=p==="auto"?c-gL:-p*ev;var d=t.get("minAngle")*ev,v=d+h,m=0;n.each(i,function(N){!isNaN(N)&&m++});var g=n.getSum(i),y=Math.PI/(g||m)*2,x=t.get("clockwise"),_=t.get("roseType"),b=t.get("stillShowZeroSum"),S=n.getDataExtent(i);S[0]=0;var w=x?1:-1,C=[c,p],M=w*h/2;bg(C,!x),c=C[0],p=C[1];var E=yx(t);E.startAngle=c,E.endAngle=p,E.clockwise=x,E.cx=o,E.cy=s,E.r=l,E.r0=u;var D=Math.abs(p-c),P=D,L=0,O=c;if(n.setLayout({viewRect:f,r:l}),n.each(i,function(N,V){var B;if(isNaN(N)){n.setItemLayout(V,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:x,cx:o,cy:s,r0:u,r:_?NaN:l});return}_!=="area"?B=g===0&&b?y:N*y:B=D/m,B<v?(B=v,P-=v):L+=N;var H=O+w*B,W=0,K=0;h>B?(W=O+w*B/2,K=W):(W=O+M,K=H-M),n.setItemLayout(V,{angle:B,startAngle:W,endAngle:K,clockwise:x,cx:o,cy:s,r0:u,r:_?Iu(N,S,[u,l]):l}),O=H}),P<gL&&m)if(P<=.001){var z=D/m;n.each(i,function(N,V){if(!isNaN(N)){var B=n.getItemLayout(V);B.angle=z;var H=0,W=0;z<h?(H=c+w*(V+1/2)*z,W=H):(H=c+w*V*z+M,W=c+w*(V+1)*z-M),B.startAngle=H,B.endAngle=W}})}else y=P/L,O=c,n.each(i,function(N,V){if(!isNaN(N)){var B=n.getItemLayout(V),H=B.angle===v?v:N*y,W=0,K=0;H<h?(W=O+w*H/2,K=W):(W=O+M,K=O+w*H-M),B.startAngle=W,B.endAngle=K,O+=w*H}})})}var gL,ev,yL,yx,xx=T(()=>{"use strict";we();Xd();Nn();ne();un();gL=Math.PI*2,ev=Math.PI/180,yL=m1(vn,jH);yx=ae()});var JH,QH,xL,_L=T(()=>{"use strict";ee();I();ze();Un();Wo();Xd();mL();Qd();Er();ox();Zu();xx();JH=(function(r){R(e,r);function e(t,n,i){var a=r.call(this)||this;a.z2=2;var o=new $e;return a.setTextContent(o),a.updateData(t,n,i,!0),a}return e.prototype.updateData=function(t,n,i,a){var o=this,s=t.hostModel,l=t.getItemModel(n),u=l.getModel("emphasis"),f=t.getItemLayout(n),c=k(es(l.getModel("itemStyle"),f,!0),f);if(isNaN(c.startAngle)){o.setShape(c);return}if(a){o.setShape(c);var p=s.getShallow("animationType");s.ecModel.ssr?(Je(o,{scaleX:0,scaleY:0},s,{dataIndex:n,isFrom:!0}),o.originX=c.cx,o.originY=c.cy):p==="scale"?(o.shape.r=f.r0,Je(o,{shape:{r:f.r}},s,n)):i!=null?(o.setShape({startAngle:i,endAngle:i}),Je(o,{shape:{startAngle:f.startAngle,endAngle:f.endAngle}},s,n)):(o.shape.endAngle=f.startAngle,Ve(o,{shape:{endAngle:f.endAngle}},s,n))}else ol(o),Ve(o,{shape:c},s,n);o.useStyle(t.getItemVisual(n,"style")),yo(o,l);var h=(f.startAngle+f.endAngle)/2,d=s.get("selectedOffset"),v=Math.cos(h)*d,m=Math.sin(h)*d,g=l.getShallow("cursor");g&&o.attr("cursor",g),this._updateLabel(s,t,n),o.ensureState("emphasis").shape=k({r:f.r+(u.get("scale")&&u.get("scaleSize")||0)},es(u.getModel("itemStyle"),f)),k(o.ensureState("select"),{x:v,y:m,shape:es(l.getModel(["select","itemStyle"]),f)}),k(o.ensureState("blur"),{shape:es(l.getModel(["blur","itemStyle"]),f)});var y=o.getTextGuideLine(),x=o.getTextContent();y&&k(y.ensureState("select"),{x:v,y:m}),k(x.ensureState("select"),{x:v,y:m}),mi(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t,n,i){var a=this,o=n.getItemModel(i),s=o.getModel("labelLine"),l=n.getItemVisual(i,"style"),u=l&&l.fill,f=l&&l.opacity;Hn(a,Gn(o),{labelFetcher:n.hostModel,labelDataIndex:i,inheritColor:u,defaultOpacity:f,defaultText:t.getFormattedLabel(i,"normal")||n.getName(i)});var c=a.getTextContent();a.setTextConfig({position:null,rotation:null}),c.attr({z2:10});var p=o.get(["label","position"]);if(p!=="outside"&&p!=="outer")a.removeTextGuideLine();else{var h=this.getTextGuideLine();h||(h=new _o,this.setTextGuideLine(h)),jd(this,Jd(o),{stroke:u,opacity:xr(s.get(["lineStyle","opacity"]),f,1)})}},e})(an),QH=(function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=vn,t.ignoreLabelLineUpdate=!0,t}return e.prototype.render=function(t,n,i,a){var o=t.getData(),s=this._data,l=this.group,u;if(!s&&o.count()>0){for(var f=o.getItemLayout(0),c=1;isNaN(f&&f.startAngle)&&c<o.count();++c)f=o.getItemLayout(c);f&&(u=f.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),o.count()===0&&t.get("showEmptyCircle")){var p=yx(t),h=new an({shape:ue(p)});h.useStyle(t.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=h,l.add(h)}o.diff(s).add(function(d){var v=new JH(o,d,u);o.setItemGraphicEl(d,v),l.add(v)}).update(function(d,v){var m=s.getItemGraphicEl(v);m.updateData(o,d,u),m.off("click"),l.add(m),o.setItemGraphicEl(d,m)}).remove(function(d){var v=s.getItemGraphicEl(d);la(v,t,d)}).execute(),gx(t),t.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},e.prototype.dispose=function(){},e.prototype.containPoint=function(t,n){var i=n.getData(),a=i.getItemLayout(0);if(a){var o=t[0]-a.cx,s=t[1]-a.cy,l=Math.sqrt(o*o+s*s);return l<=a.r&&l>=a.r0}},e.type=vn,e})(It),xL=QH});function _x(r){return{seriesType:r,reset:function(e,t){var n=e.getData();n.filterSelf(function(i){var a=n.mapDimension("value"),o=n.get(a,i);return!(he(o)&&!isNaN(o)&&o<0)})}}}var bL=T(()=>{"use strict";I()});function bx(r){r.registerChartView(xL),r.registerSeriesModel(uL),rL(vn,r.registerAction),r.registerLayout(yL),r.registerProcessor(cx(vn)),r.registerProcessor(_x(vn))}var SL=T(()=>{"use strict";fx();iL();_L();Xd();bL();xx()});var Bl,eG,wL,TL=T(()=>{"use strict";Bl=(function(){function r(e,t){this.target=e,this.topTarget=t&&t.topTarget}return r})(),eG=(function(){function r(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return r.prototype._dragStart=function(e){for(var t=e.target;t&&!t.draggable;)t=t.parent||t.__hostTarget;t&&(this._draggingTarget=t,t.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new Bl(t,e),"dragstart",e.event))},r.prototype._drag=function(e){var t=this._draggingTarget;if(t){var n=e.offsetX,i=e.offsetY,a=n-this._x,o=i-this._y;this._x=n,this._y=i,t.drift(a,o,e),this.handler.dispatchToElement(new Bl(t,e),"drag",e.event);var s=this.handler.findHover(n,i,t).target,l=this._dropTarget;this._dropTarget=s,t!==s&&(l&&s!==l&&this.handler.dispatchToElement(new Bl(l,e),"dragleave",e.event),s&&s!==l&&this.handler.dispatchToElement(new Bl(s,e),"dragenter",e.event))}},r.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new Bl(t,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new Bl(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},r})(),wL=eG});function tv(r,e,t,n){return t=t||{},n?EL(r,e,t):rG&&e.layerX!=null&&e.layerX!==e.offsetX?(t.zrX=e.layerX,t.zrY=e.layerY):e.offsetX!=null?(t.zrX=e.offsetX,t.zrY=e.offsetY):EL(r,e,t),t}function EL(r,e,t){if(Pe.domSupported&&r.getBoundingClientRect){var n=e.clientX,i=e.clientY;if(jy(r)){var a=r.getBoundingClientRect();t.zrX=n-a.left,t.zrY=i-a.top;return}else if(PA(Sx,r,n,i)){t.zrX=Sx[0],t.zrY=Sx[1];return}}t.zrX=t.zrY=0}function rv(r){return r||window.event}function $r(r,e,t){if(e=rv(e),e.zrX!=null)return e;var n=e.type,i=n&&n.indexOf("touch")>=0;if(i){var o=n!=="touchend"?e.targetTouches[0]:e.changedTouches[0];o&&tv(r,o,e,t)}else{tv(r,e,e,t);var a=nG(e);e.zrDelta=a?a/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&tG.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function nG(r){var e=r.wheelDelta;if(e)return e;var t=r.deltaX,n=r.deltaY;if(t==null||n==null)return e;var i=Math.abs(n!==0?n:t),a=n>0?-1:n<0?1:t>0?-1:1;return 3*i*a}function AL(r,e,t,n){r.addEventListener(e,t,n)}function CL(r,e,t,n){r.removeEventListener(e,t,n)}var tG,Sx,rG,nv,kf=T(()=>{"use strict";Or();Mh();tG=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Sx=[],rG=Pe.browser.firefox&&+Pe.browser.version.split(".")[0]<39;nv=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0}});function ML(r){var e=r[1][0]-r[0][0],t=r[1][1]-r[0][1];return Math.sqrt(e*e+t*t)}function iG(r){return[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]}var DL,Ex,LL=T(()=>{"use strict";kf();DL=(function(){function r(){this._track=[]}return r.prototype.recognize=function(e,t,n){return this._doTrack(e,t,n),this._recognize(e)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(e,t,n){var i=e.touches;if(i){for(var a={points:[],touches:[],target:t,event:e},o=0,s=i.length;o<s;o++){var l=i[o],u=tv(n,l,{});a.points.push([u.zrX,u.zrY]),a.touches.push(l)}this._track.push(a)}},r.prototype._recognize=function(e){for(var t in Ex)if(Ex.hasOwnProperty(t)){var n=Ex[t](this._track,e);if(n)return n}},r})();Ex={pinch:function(r,e){var t=r.length;if(t){var n=(r[t-1]||{}).points,i=(r[t-2]||{}).points||n;if(i&&i.length>1&&n&&n.length>1){var a=ML(n)/ML(i);!isFinite(a)&&(a=1),e.pinchScale=a;var o=iG(n);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:r[0].target,event:e}}}}}});function aG(r,e,t){return{type:r,event:t,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:t.zrX,offsetY:t.zrY,gestureEvent:t.gestureEvent,pinchX:t.pinchX,pinchY:t.pinchY,pinchScale:t.pinchScale,wheelDelta:t.zrDelta,zrByTouch:t.zrByTouch,which:t.which,stop:oG}}function oG(){nv(this.event)}function uG(r,e,t){if(r[r.rectHover?"rectContain":"contain"](e,t)){for(var n=r,i=void 0,a=!1;n;){if(n.ignoreClip&&(a=!0),!a){var o=n.getClipPath();if(o&&!o.contain(e,t))return!1}n.silent&&(i=!0);var s=n.__hostTarget;n=s?n.ignoreHostSilent?null:s:n.parent}return i?OL:!0}return!1}function PL(r,e,t,n,i){for(var a=r.length-1;a>=0;a--){var o=r[a],s=void 0;if(o!==i&&!o.ignore&&(s=uG(o,t,n))&&(!e.topTarget&&(e.topTarget=o),s!==OL)){e.target=o;break}}}function RL(r,e,t){var n=r.painter;return e<0||e>n.getWidth()||t<0||t>n.getHeight()}var OL,sG,zf,lG,Ax,IL,NL,kL=T(()=>{"use strict";ee();I();cr();TL();to();kf();LL();Tt();OL="silent";sG=(function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.handler=null,t}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e})(Kt),zf=(function(){function r(e,t){this.x=e,this.y=t}return r})(),lG=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Ax=new se(0,0,0,0),IL=(function(r){R(e,r);function e(t,n,i,a,o){var s=r.call(this)||this;return s._hovered=new zf(0,0),s.storage=t,s.painter=n,s.painterRoot=a,s._pointerSize=o,i=i||new sG,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new wL(s),s}return e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(A(lG,function(n){t.on&&t.on(n,this[n],this)},this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var n=t.zrX,i=t.zrY,a=RL(this,n,i),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=a?new zf(n,i):this.findHover(n,i),u=l.target,f=this.proxy;f.setCursor&&f.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",t),this.dispatchToElement(l,"mousemove",t),u&&u!==s&&this.dispatchToElement(l,"mouseover",t)},e.prototype.mouseout=function(t){var n=t.zrEventControl;n!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",t),n!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new zf(0,0)},e.prototype.dispatch=function(t,n){var i=this[t];i&&i.call(this,n)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var n=this.proxy;n.setCursor&&n.setCursor(t)},e.prototype.dispatchToElement=function(t,n,i){t=t||{};var a=t.target;if(!(a&&a.silent)){for(var o="on"+n,s=aG(n,t,i);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(n,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(n,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(n,s)}))}},e.prototype.findHover=function(t,n,i){var a=this.storage.getDisplayList(),o=new zf(t,n);if(PL(a,o,t,n,i),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,f=new se(t-u,n-u,l,l),c=a.length-1;c>=0;c--){var p=a[c];p!==i&&!p.ignore&&!p.ignoreCoarsePointer&&(!p.parent||!p.parent.ignoreCoarsePointer)&&(Ax.copy(p.getBoundingRect()),p.transform&&Ax.applyTransform(p.transform),Ax.intersect(f)&&s.push(p))}if(s.length)for(var h=4,d=Math.PI/12,v=Math.PI*2,m=0;m<u;m+=h)for(var g=0;g<v;g+=d){var y=t+m*Math.cos(g),x=n+m*Math.sin(g);if(PL(s,o,y,x,i),o.target)return o}}return o},e.prototype.processGesture=function(t,n){this._gestureMgr||(this._gestureMgr=new DL);var i=this._gestureMgr;n==="start"&&i.clear();var a=i.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if(n==="end"&&i.clear(),a){var o=a.type;t.gestureEvent=o;var s=new zf;s.target=a.target,this.dispatchToElement(s,o,a.event)}},e})(Kt);A(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(r){IL.prototype[r]=function(e){var t=e.zrX,n=e.zrY,i=RL(this,t,n),a,o;if((r!=="mouseup"||!i)&&(a=this.findHover(t,n),o=a.target),r==="mousedown")this._downEl=o,this._downPoint=[e.zrX,e.zrY],this._upEl=o;else if(r==="mouseup")this._upEl=o;else if(r==="click"){if(this._downEl!==this._upEl||!this._downPoint||du(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,r,e)}});NL=IL});function fG(r){for(var e=0;r>=UL;)e|=r&1,r>>=1;return r+e}function zL(r,e,t,n){var i=e+1;if(i===t)return 1;if(n(r[i++],r[e])<0){for(;i<t&&n(r[i],r[i-1])<0;)i++;cG(r,e,i)}else for(;i<t&&n(r[i],r[i-1])>=0;)i++;return i-e}function cG(r,e,t){for(t--;e<t;){var n=r[e];r[e++]=r[t],r[t--]=n}}function BL(r,e,t,n,i){for(n===e&&n++;n<t;n++){for(var a=r[n],o=e,s=n,l;o<s;)l=o+s>>>1,i(a,r[l])<0?s=l:o=l+1;var u=n-o;switch(u){case 3:r[o+3]=r[o+2];case 2:r[o+2]=r[o+1];case 1:r[o+1]=r[o];break;default:for(;u>0;)r[o+u]=r[o+u-1],u--}r[o]=a}}function Cx(r,e,t,n,i,a){var o=0,s=0,l=1;if(a(r,e[t+i])>0){for(s=n-i;l<s&&a(r,e[t+i+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}else{for(s=i+1;l<s&&a(r,e[t+i-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=i-l,l=i-u}for(o++;o<l;){var f=o+(l-o>>>1);a(r,e[t+f])>0?o=f+1:l=f}return l}function Mx(r,e,t,n,i,a){var o=0,s=0,l=1;if(a(r,e[t+i])<0){for(s=i+1;l<s&&a(r,e[t+i-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=i-l,l=i-u}else{for(s=n-i;l<s&&a(r,e[t+i+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}for(o++;o<l;){var f=o+(l-o>>>1);a(r,e[t+f])<0?l=f:o=f+1}return l}function pG(r,e){var t=Bf,n,i,a=0,o=[];n=[],i=[];function s(h,d){n[a]=h,i[a]=d,a+=1}function l(){for(;a>1;){var h=a-2;if(h>=1&&i[h-1]<=i[h]+i[h+1]||h>=2&&i[h-2]<=i[h]+i[h-1])i[h-1]<i[h+1]&&h--;else if(i[h]>i[h+1])break;f(h)}}function u(){for(;a>1;){var h=a-2;h>0&&i[h-1]<i[h+1]&&h--,f(h)}}function f(h){var d=n[h],v=i[h],m=n[h+1],g=i[h+1];i[h]=v+g,h===a-3&&(n[h+1]=n[h+2],i[h+1]=i[h+2]),a--;var y=Mx(r[m],r,d,v,0,e);d+=y,v-=y,v!==0&&(g=Cx(r[d+v-1],r,m,g,g-1,e),g!==0&&(v<=g?c(d,v,m,g):p(d,v,m,g)))}function c(h,d,v,m){var g=0;for(g=0;g<d;g++)o[g]=r[h+g];var y=0,x=v,_=h;if(r[_++]=r[x++],--m===0){for(g=0;g<d;g++)r[_+g]=o[y+g];return}if(d===1){for(g=0;g<m;g++)r[_+g]=r[x+g];r[_+m]=o[y];return}for(var b=t,S,w,C;;){S=0,w=0,C=!1;do if(e(r[x],o[y])<0){if(r[_++]=r[x++],w++,S=0,--m===0){C=!0;break}}else if(r[_++]=o[y++],S++,w=0,--d===1){C=!0;break}while((S|w)<b);if(C)break;do{if(S=Mx(r[x],o,y,d,0,e),S!==0){for(g=0;g<S;g++)r[_+g]=o[y+g];if(_+=S,y+=S,d-=S,d<=1){C=!0;break}}if(r[_++]=r[x++],--m===0){C=!0;break}if(w=Cx(o[y],r,x,m,0,e),w!==0){for(g=0;g<w;g++)r[_+g]=r[x+g];if(_+=w,x+=w,m-=w,m===0){C=!0;break}}if(r[_++]=o[y++],--d===1){C=!0;break}b--}while(S>=Bf||w>=Bf);if(C)break;b<0&&(b=0),b+=2}if(t=b,t<1&&(t=1),d===1){for(g=0;g<m;g++)r[_+g]=r[x+g];r[_+m]=o[y]}else{if(d===0)throw new Error;for(g=0;g<d;g++)r[_+g]=o[y+g]}}function p(h,d,v,m){var g=0;for(g=0;g<m;g++)o[g]=r[v+g];var y=h+d-1,x=m-1,_=v+m-1,b=0,S=0;if(r[_--]=r[y--],--d===0){for(b=_-(m-1),g=0;g<m;g++)r[b+g]=o[g];return}if(m===1){for(_-=d,y-=d,S=_+1,b=y+1,g=d-1;g>=0;g--)r[S+g]=r[b+g];r[_]=o[x];return}for(var w=t;;){var C=0,M=0,E=!1;do if(e(o[x],r[y])<0){if(r[_--]=r[y--],C++,M=0,--d===0){E=!0;break}}else if(r[_--]=o[x--],M++,C=0,--m===1){E=!0;break}while((C|M)<w);if(E)break;do{if(C=d-Mx(o[x],r,h,d,d-1,e),C!==0){for(_-=C,y-=C,d-=C,S=_+1,b=y+1,g=C-1;g>=0;g--)r[S+g]=r[b+g];if(d===0){E=!0;break}}if(r[_--]=o[x--],--m===1){E=!0;break}if(M=m-Cx(r[y],o,0,m,m-1,e),M!==0){for(_-=M,x-=M,m-=M,S=_+1,b=x+1,g=0;g<M;g++)r[S+g]=o[b+g];if(m<=1){E=!0;break}}if(r[_--]=r[y--],--d===0){E=!0;break}w--}while(C>=Bf||M>=Bf);if(E)break;w<0&&(w=0),w+=2}if(t=w,t<1&&(t=1),m===1){for(_-=d,y-=d,S=_+1,b=y+1,g=d-1;g>=0;g--)r[S+g]=r[b+g];r[_]=o[x]}else{if(m===0)throw new Error;for(b=_-(m-1),g=0;g<m;g++)r[b+g]=o[g]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function rs(r,e,t,n){t||(t=0),n||(n=r.length);var i=n-t;if(!(i<2)){var a=0;if(i<UL){a=zL(r,t,n,e),BL(r,t,n,t+a,e);return}var o=pG(r,e),s=fG(i);do{if(a=zL(r,t,n,e),a<s){var l=i;l>s&&(l=s),BL(r,t,t+l,t+a,e),a=l}o.pushRun(t,a),o.mergeRuns(),i-=a,t+=a}while(i!==0);o.forceMergeRuns()}}var UL,Bf,Dx=T(()=>{"use strict";UL=32,Bf=7});function Lx(){FL||(FL=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function VL(r,e){return r.zlevel===e.zlevel?r.z===e.z?r.z2-e.z2:r.z-e.z:r.zlevel-e.zlevel}var FL,hG,HL,GL=T(()=>{"use strict";I();Dx();Hs();FL=!1;hG=(function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=VL}return r.prototype.traverse=function(e,t){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(e,t)},r.prototype.getDisplayList=function(e,t){t=t||!1;var n=this._displayList;return(e||!n.length)&&this.updateDisplayList(t),n},r.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var t=this._roots,n=this._displayList,i=0,a=t.length;i<a;i++)this._updateAndAddDisplayable(t[i],null,e);n.length=this._displayListLen,rs(n,VL)},r.prototype._updateAndAddDisplayable=function(e,t,n){if(!(e.ignore&&!n)){e.beforeUpdate(),e.update(),e.afterUpdate();var i=e.getClipPath(),a=t&&t.length,o=0,s=e.__clipPaths;if(!e.ignoreClip&&(a||i)){if(s||(s=e.__clipPaths=[]),a)for(var l=0;l<t.length;l++)s[o++]=t[l];for(var u=i,f=e;u;)u.parent=f,u.updateTransform(),s[o++]=u,f=u,u=u.getClipPath()}if(s&&(s.length=o),e.childrenRef){for(var c=e.childrenRef(),p=0;p<c.length;p++){var h=c[p];e.__dirty&&(h.__dirty|=Bt),this._updateAndAddDisplayable(h,s,n)}e.__dirty=0}else{var d=e;isNaN(d.z)&&(Lx(),d.z=0),isNaN(d.z2)&&(Lx(),d.z2=0),isNaN(d.zlevel)&&(Lx(),d.zlevel=0),this._displayList[this._displayListLen++]=d}var v=e.getDecalElement&&e.getDecalElement();v&&this._updateAndAddDisplayable(v,s,n);var m=e.getTextGuideLine();m&&this._updateAndAddDisplayable(m,s,n);var g=e.getTextContent();g&&this._updateAndAddDisplayable(g,s,n)}},r.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},r.prototype.delRoot=function(e){if(e instanceof Array){for(var t=0,n=e.length;t<n;t++)this.delRoot(e[t]);return}var i=de(this._roots,e);i>=0&&this._roots.splice(i,1)},r.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},r.prototype.getRoots=function(){return this._roots},r.prototype.dispose=function(){this._displayList=null,this._roots=null},r})(),HL=hG});var $L,Px,WL=T(()=>{"use strict";Or();$L=Pe.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};Px=$L});function ns(){return new Date().getTime()}var dG,YL,qL=T(()=>{"use strict";ee();to();WL();ng();dG=(function(r){R(e,r);function e(t){var n=r.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,t=t||{},n.stage=t.stage||{},n}return e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var n=t.getClip();n&&this.addClip(n)},e.prototype.removeClip=function(t){if(t.animation){var n=t.prev,i=t.next;n?n.next=i:this._head=i,i?i.prev=n:this._tail=n,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var n=t.getClip();n&&this.removeClip(n),t.animation=null},e.prototype.update=function(t){for(var n=ns()-this._pausedTime,i=n-this._time,a=this._head;a;){var o=a.next,s=a.step(n,i);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=n,t||(this.trigger("frame",i),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0;function n(){t._running&&(Px(n),!t._paused&&t.update())}Px(n)},e.prototype.start=function(){this._running||(this._time=ns(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=ns(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=ns()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._head;t;){var n=t.next;t.prev=t.next=t.animation=null,t=n}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(t,n){n=n||{},this.start();var i=new Eu(t,n.loop);return this.addAnimator(i),i},e})(Kt),YL=dG});function kx(r){var e=r.pointerType;return e==="pen"||e==="touch"}function mG(r){r.touching=!0,r.touchTimer!=null&&(clearTimeout(r.touchTimer),r.touchTimer=null),r.touchTimer=setTimeout(function(){r.touching=!1,r.touchTimer=null},700)}function Rx(r){r&&(r.zrByTouch=!0)}function gG(r,e){return $r(r.dom,new yG(r,e),!0)}function jL(r,e){for(var t=e,n=!1;t&&t.nodeType!==9&&!(n=t.domBelongToZr||t!==e&&t===r.painterRoot);)t=t.parentNode;return n}function xG(r,e){var t=e.domHandlers;Pe.pointerEventsSupported?A(Ix.pointer,function(n){iv(e,n,function(i){t[n].call(r,i)})}):(Pe.touchEventsSupported&&A(Ix.touch,function(n){iv(e,n,function(i){t[n].call(r,i),mG(e)})}),A(Ix.mouse,function(n){iv(e,n,function(i){i=rv(i),e.touching||t[n].call(r,i)})}))}function _G(r,e){Pe.pointerEventsSupported?A(XL.pointer,t):Pe.touchEventsSupported||A(XL.mouse,t);function t(n){function i(a){a=rv(a),jL(r,a.target)||(a=gG(r,a),e.domHandlers[n].call(r,a))}iv(e,n,i,{capture:!0})}}function iv(r,e,t,n){r.mounted[e]=t,r.listenerOpts[e]=n,AL(r.domTarget,e,t,n)}function Nx(r){var e=r.mounted;for(var t in e)e.hasOwnProperty(t)&&CL(r.domTarget,t,e[t],r.listenerOpts[t]);r.mounted={}}var vG,Ox,Ix,XL,KL,yG,yn,zx,ZL,bG,JL,QL=T(()=>{"use strict";ee();kf();I();to();Or();vG=300,Ox=Pe.domSupported,Ix=(function(){var r=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],t={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=F(r,function(i){var a=i.replace("mouse","pointer");return t.hasOwnProperty(a)?a:i});return{mouse:r,touch:e,pointer:n}})(),XL={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},KL=!1;yG=(function(){function r(e,t){this.stopPropagation=at,this.stopImmediatePropagation=at,this.preventDefault=at,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return r})(),yn={mousedown:function(r){r=$r(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=$r(this.dom,r);var e=this.__mayPointerCapture;e&&(r.zrX!==e[0]||r.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",r)},mouseup:function(r){r=$r(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=$r(this.dom,r);var e=r.toElement||r.relatedTarget;jL(this,e)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){KL=!0,r=$r(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){KL||(r=$r(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=$r(this.dom,r),Rx(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),yn.mousemove.call(this,r),yn.mousedown.call(this,r)},touchmove:function(r){r=$r(this.dom,r),Rx(r),this.handler.processGesture(r,"change"),yn.mousemove.call(this,r)},touchend:function(r){r=$r(this.dom,r),Rx(r),this.handler.processGesture(r,"end"),yn.mouseup.call(this,r),+new Date-+this.__lastTouchMoment<vG&&yn.click.call(this,r)},pointerdown:function(r){yn.mousedown.call(this,r)},pointermove:function(r){kx(r)||yn.mousemove.call(this,r)},pointerup:function(r){yn.mouseup.call(this,r)},pointerout:function(r){kx(r)||yn.mouseout.call(this,r)}};A(["click","dblclick","contextmenu"],function(r){yn[r]=function(e){e=$r(this.dom,e),this.trigger(r,e)}});zx={pointermove:function(r){kx(r)||zx.mousemove.call(this,r)},pointerup:function(r){zx.mouseup.call(this,r)},mousemove:function(r){this.trigger("mousemove",r)},mouseup:function(r){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",r),e&&(r.zrEventControl="only_globalout",this.trigger("mouseout",r))}};ZL=(function(){function r(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t}return r})(),bG=(function(r){R(e,r);function e(t,n){var i=r.call(this)||this;return i.__pointerCapturing=!1,i.dom=t,i.painterRoot=n,i._localHandlerScope=new ZL(t,yn),Ox&&(i._globalHandlerScope=new ZL(document,zx)),xG(i,i._localHandlerScope),i}return e.prototype.dispose=function(){Nx(this._localHandlerScope),Ox&&Nx(this._globalHandlerScope)},e.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},e.prototype.__togglePointerCapture=function(t){if(this.__mayPointerCapture=null,Ox&&+this.__pointerCapturing^+t){this.__pointerCapturing=t;var n=this._globalHandlerScope;t?_G(this,n):Nx(n)}},e})(Kt),JL=bG});function SG(r){delete eP[r]}function wG(r){if(!r)return!1;if(typeof r=="string")return Vs(r,1)<Au;if(r.colorStops){for(var e=r.colorStops,t=0,n=e.length,i=0;i<n;i++)t+=Vs(e[i].color,1);return t/=n,t<Au}return!1}function Ux(r,e){var t=new TG(Ic(),r,e);return eP[t.id]=t,t}function tP(r,e){av[r]=e}function rP(r){if(typeof Bx=="function")return Bx(r)}function nP(r){Bx=r}var av,eP,TG,Bx,ov=T(()=>{"use strict";Or();I();kL();GL();qL();QL();kr();Du();nl();av={},eP={};TG=(function(){function r(e,t,n){var i=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!1,this._darkMode=!1,n=n||{},this.dom=t,this.id=e;var a=new HL,o=n.renderer||"canvas";av[o]||(o=oe(av)[0]),n.useDirtyRect=n.useDirtyRect==null?!1:n.useDirtyRect;var s=new av[o](t,a,n,e),l=n.ssr||s.ssrOnly;this.storage=a,this.painter=s;var u=!Pe.node&&!Pe.worker&&!l?new JL(s.getViewportRoot(),s.root):null,f=n.useCoarsePointer,c=f==null||f==="auto"?Pe.touchEventsSupported:!!f,p=44,h;c&&(h=$(n.pointerSize,p)),this.handler=new NL(a,s,u,s.root,h),this.animation=new YL({stage:{update:l?null:function(){return i._flush(!1)}}}),l||this.animation.start()}return r.prototype.add=function(e){this._disposed||!e||(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},r.prototype.remove=function(e){this._disposed||!e||(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},r.prototype.configLayer=function(e,t){this._disposed||(this.painter.configLayer&&this.painter.configLayer(e,t),this.refresh())},r.prototype.setBackgroundColor=function(e){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=wG(e))},r.prototype.getBackgroundColor=function(){return this._backgroundColor},r.prototype.setDarkMode=function(e){this._darkMode=e},r.prototype.isDarkMode=function(){return this._darkMode},r.prototype.refreshImmediately=function(e){this._disposed||this._refresh({animUpdate:!e,refresh:!0,refreshHover:!1})},r.prototype._refresh=function(e){e.animUpdate&&this.animation.update(!0),this._needsRefresh=this._needsRefreshHover=!1,this.painter.refresh({refresh:e.refresh,refreshHover:e.refreshHover}),this._needsRefresh=this._needsRefreshHover=!1},r.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},r.prototype.flush=function(){this._disposed||this._flush(!0)},r.prototype._flush=function(e){var t,n=ns(),i=this._needsRefresh,a=this._needsRefreshHover;(i||a)&&(t=!0,this._refresh({animUpdate:e,refresh:i,refreshHover:a}));var o=ns();t?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:o-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},r.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},r.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},r.prototype.refreshHover=function(){this._needsRefreshHover=!0},r.prototype.refreshHoverImmediately=function(){this._disposed||this._refresh({animUpdate:!1,refresh:!1,refreshHover:!0})},r.prototype.resize=function(e){this._disposed||(e=e||{},this.painter.resize(e.width,e.height),this.handler.resize())},r.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},r.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},r.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},r.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},r.prototype.findHover=function(e,t){if(!this._disposed)return this.handler.findHover(e,t)},r.prototype.on=function(e,t,n){return this._disposed||this.handler.on(e,t,n),this},r.prototype.off=function(e,t){this._disposed||this.handler.off(e,t)},r.prototype.trigger=function(e,t){this._disposed||this.handler.trigger(e,t)},r.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),t=0;t<e.length;t++)e[t]instanceof Ie&&e[t].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},r.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,SG(this.id))},r})()});var iP,Ul,aP,AG,sv,Fx=T(()=>{"use strict";kr();Gt();iP="";typeof navigator<"u"&&(iP=navigator.platform||"");Ul="rgba(0, 0, 0, 0.2)",aP=ie.color.theme[0],AG=yu(aP,null,null,.9),sv={darkMode:"auto",colorBy:"series",color:ie.color.theme,gradientColor:[AG,aP],aria:{decal:{decals:[{color:Ul,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Ul,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Ul,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Ul,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Ul,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Ul,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:iP.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}});function oP(r,e,t){var n=CG.get(e);if(!n)return t;var i=n(r);if(!i)return t;if(0)for(var a;a<i.length;a++);return t.concat(i)}var CG,sP=T(()=>{"use strict";I();CG=X()});function DG(r,e){if(e){var t=e.seriesIndex,n=e.seriesId,i=e.seriesName;return t!=null&&r.componentIndex!==t||n!=null&&r.id!==n||i!=null&&r.name!==i}}function LG(r,e){var t=r.color&&!r.colorLayer;A(e,function(n,i){i==="colorLayer"&&t||i==="color"&&r.color||Re.hasClass(i)||(typeof n=="object"?r[i]=r[i]?Ee(r[i],n,!1):ue(n):r[i]==null&&(r[i]=n))})}function fP(r,e,t){if(U(e)){var n=X();return A(e,function(a){if(a!=null){var o=Sr(a,null);o!=null&&n.set(a,!0)}}),Fe(t,function(a){return a&&n.get(a[r])})}else{var i=Sr(e,null);return Fe(t,function(a){return a&&i!=null&&a[r]===i})}}function cP(r,e){return e.hasOwnProperty("subType")?Fe(r,function(t){return t&&t.subType===e.subType}):r}function pP(r){var e=X();return r&&A(Ke(r.replaceMerge),function(t){e.set(t,!0)}),{replaceMergeMainTypeMap:e}}var lv,Uf,lP,uP,MG,hP,uv,Vx=T(()=>{"use strict";ee();I();ne();$n();qn();Fx();Co();sP();g0();uP="\0_ec_inner",MG=1,hP=(function(r){R(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.init=function(t,n,i,a,o,s){a=a||{},this.option=null,this._theme=new ot(a),this._locale=new ot(o),this._optionManager=s},e.prototype.setOption=function(t,n,i){var a=pP(n);this._optionManager.setOption(t,i,a),this._resetOption(null,a)},e.prototype.resetOption=function(t,n){return this._resetOption(t,pP(n))},e.prototype._resetOption=function(t,n){var i=!1,a=this._optionManager;if(!t||t==="recreate"){var o=a.mountOption(t==="recreate");!this.option||t==="recreate"?lP(this,o):(this.restoreData(),this._mergeOption(o,n)),i=!0}if((t==="timeline"||t==="media")&&this.restoreData(),!t||t==="recreate"||t==="timeline"){var s=a.getTimelineOption(this);s&&(i=!0,this._mergeOption(s,n))}if(!t||t==="recreate"||t==="media"){var l=a.getMediaOption(this);l.length&&A(l,function(u){i=!0,this._mergeOption(u,n)},this)}return i},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,n){var i=this.option,a=this._componentsMap,o=this._componentsCount,s=[],l=X(),u=n&&n.replaceMergeMainTypeMap;tA(this),A(t,function(c,p){c!=null&&(Re.hasClass(p)?p&&(s.push(p),l.set(p,!0)):i[p]=i[p]==null?ue(c):Ee(i[p],c,!0))}),u&&u.each(function(c,p){Re.hasClass(p)&&!l.get(p)&&(s.push(p),l.set(p,!0))}),Re.topologicalTravel(s,Re.getAllClassMainTypes(),f,this);function f(c){var p=oP(this,c,Ke(t[c])),h=a.get(c),d=h?u&&u.get(c)?"replaceMerge":"normalMerge":"replaceAll",v=o1(h,p,d);l1(v,c,Re),i[c]=null,a.set(c,null),o.set(c,0);var m=[],g=[],y=0,x,_;A(v,function(b,S){var w=b.existing,C=b.newOption;if(!C)w&&(w.mergeOption({},this),w.optionUpdated({},!1));else{var M=c==="series",E=Re.getClass(c,b.keyInfo.subType,!M);if(!E){if(0)var D,P;return}if(c==="tooltip"){if(x)return;x=!0}if(w&&w.constructor===E)w.name=b.keyInfo.name,w.mergeOption(C,this),w.optionUpdated(C,!1);else{var L=k({componentIndex:S},b.keyInfo);w=new E(C,this,this,L),k(w,L),b.brandNew&&(w.__requireNewView=!0),w.init(C,this,this),w.optionUpdated(null,!0)}}w?(m.push(w.option),g.push(w),y++):(m.push(void 0),g.push(void 0))},this),i[c]=m,a.set(c,g),o.set(c,y),c==="series"&&lv(this)}this._seriesIndices||lv(this)},e.prototype.getOption=function(){var t=ue(this.option);return A(t,function(n,i){if(Re.hasClass(i)){for(var a=Ke(n),o=a.length,s=!1,l=o-1;l>=0;l--)a[l]&&!Ks(a[l])?s=!0:(a[l]=null,!s&&o--);a.length=o,t[i]=a}}),delete t[uP],t},e.prototype.setTheme=function(t){this._theme=new ot(t),this._resetOption("recreate",null)},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(t){this._payload=t},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(t,n){var i=this._componentsMap.get(t);if(i){var a=i[n||0];if(a)return a;if(n==null){for(var o=0;o<i.length;o++)if(i[o])return i[o]}}},e.prototype.queryComponents=function(t){var n=t.mainType;if(!n)return[];var i=t.index,a=t.id,o=t.name,s=this._componentsMap.get(n);if(!s||!s.length)return[];var l;return i!=null?(l=[],A(Ke(i),function(u){s[u]&&l.push(s[u])})):a!=null?l=fP("id",a,s):o!=null?l=fP("name",o,s):l=Fe(s,function(u){return!!u}),cP(l,t)},e.prototype.findComponents=function(t){var n=t.query,i=t.mainType,a=s(n),o=a?this.queryComponents(a):Fe(this._componentsMap.get(i),function(u){return!!u});return l(cP(o,t));function s(u){var f=i+"Index",c=i+"Id",p=i+"Name";return u&&(u[f]!=null||u[c]!=null||u[p]!=null)?{mainType:i,index:u[f],id:u[c],name:u[p]}:null}function l(u){return t.filter?Fe(u,t.filter):u}},e.prototype.eachComponent=function(t,n,i){var a=this._componentsMap;if(j(t)){var o=n,s=t;a.each(function(c,p){for(var h=0;c&&h<c.length;h++){var d=c[h];d&&s.call(o,p,d,d.componentIndex)}})}else for(var l=G(t)?a.get(t):Y(t)?this.findComponents(t):null,u=0;l&&u<l.length;u++){var f=l[u];f&&n.call(i,f,f.componentIndex)}},e.prototype.getSeriesByName=function(t){var n=Sr(t,null);return Fe(this._componentsMap.get("series"),function(i){return!!i&&n!=null&&i.name===n})},e.prototype.getSeriesByIndex=function(t){return this._componentsMap.get("series")[t]},e.prototype.getSeriesByType=function(t){return Fe(this._componentsMap.get("series"),function(n){return!!n&&n.subType===t})},e.prototype.getSeries=function(){return Fe(this._componentsMap.get("series"),function(t){return!!t})},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(t,n){Uf(this),A(this._seriesIndices,function(i){var a=this._componentsMap.get("series")[i];t.call(n,a,i)},this)},e.prototype.eachRawSeries=function(t,n){A(this._componentsMap.get("series"),function(i){i&&t.call(n,i,i.componentIndex)})},e.prototype.eachSeriesByType=function(t,n,i){Uf(this),A(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];o.subType===t&&n.call(i,o,a)},this)},e.prototype.eachRawSeriesByType=function(t,n,i){return A(this.getSeriesByType(t),n,i)},e.prototype.isSeriesFiltered=function(t){return Uf(this),this._seriesIndicesMap.get(t.componentIndex)==null},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(t,n){Uf(this);var i=[];A(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];t.call(n,o,a)&&i.push(a)},this),this._seriesIndices=i,this._seriesIndicesMap=X(i)},e.prototype.restoreData=function(t){lv(this);var n=this._componentsMap,i=[];n.each(function(a,o){Re.hasClass(o)&&i.push(o)}),Re.topologicalTravel(i,Re.getAllClassMainTypes(),function(a){A(n.get(a),function(o){o&&(a!=="series"||!DG(o,t))&&o.restoreData()})})},e.internalField=(function(){lv=function(t){var n=t._seriesIndices=[];A(t._componentsMap.get("series"),function(i){i&&n.push(i.componentIndex)}),t._seriesIndicesMap=X(n)},Uf=function(t){},lP=function(t,n){t.option={},t.option[uP]=MG,t._componentsMap=X({series:[]}),t._componentsCount=X();var i=n.aria;Y(i)&&i.enabled==null&&(i.enabled=!0),LG(n,t._theme.option),Ee(n,sv,!1),t._mergeOption(n,null)}})(),e})(ot);Yt(hP,vf);uv=hP});function IG(r,e,t){var n=[],i,a,o=r.baseOption,s=r.timeline,l=r.options,u=r.media,f=!!r.media,c=!!(l||s||o&&o.timeline);o?(a=o,a.timeline||(a.timeline=s)):((c||f)&&(r.options=r.media=null),a=r),f&&U(u)&&A(u,function(h){h&&h.option&&(h.query?n.push(h):i||(i=h))}),p(a),A(l,function(h){return p(h)}),A(n,function(h){return p(h.option)});function p(h){A(e,function(d){d(h,t)})}return{baseOption:a,timelineOptions:l||[],mediaDefault:i,mediaList:n}}function RG(r,e,t){var n={width:e,height:t,aspectratio:e/t},i=!0;return A(r,function(a,o){var s=o.match(PG);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();NG(n[u],a,l)||(i=!1)}}),i}function NG(r,e,t){return t==="min"?r>=e:t==="max"?r<=e:r===e}function kG(r,e){return r.join(",")===e.join(",")}var PG,OG,dP,vP=T(()=>{"use strict";ne();I();PG=/^(min|max)?(.+)$/,OG=(function(){function r(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return r.prototype.setOption=function(e,t,n){e&&(A(Ke(e.series),function(o){o&&o.data&&nt(o.data)&&Ba(o.data)}),A(Ke(e.dataset),function(o){o&&o.source&&nt(o.source)&&Ba(o.source)})),e=ue(e);var i=this._optionBackup,a=IG(e,t,!i);this._newBaseOption=a.baseOption,i?(a.timelineOptions.length&&(i.timelineOptions=a.timelineOptions),a.mediaList.length&&(i.mediaList=a.mediaList),a.mediaDefault&&(i.mediaDefault=a.mediaDefault)):this._optionBackup=a},r.prototype.mountOption=function(e){var t=this._optionBackup;return this._timelineOptions=t.timelineOptions,this._mediaList=t.mediaList,this._mediaDefault=t.mediaDefault,this._currentMediaIndices=[],ue(e?t.baseOption:this._newBaseOption)},r.prototype.getTimelineOption=function(e){var t,n=this._timelineOptions;if(n.length){var i=e.getComponent("timeline");i&&(t=ue(n[i.getCurrentIndex()]))}return t},r.prototype.getMediaOption=function(e){var t=this._api.getWidth(),n=this._api.getHeight(),i=this._mediaList,a=this._mediaDefault,o=[],s=[];if(!i.length&&!a)return s;for(var l=0,u=i.length;l<u;l++)RG(i[l].query,t,n)&&o.push(l);return!o.length&&a&&(o=[-1]),o.length&&!kG(o,this._currentMediaIndices)&&(s=F(o,function(f){return ue(f===-1?a.option:i[f].option)})),this._currentMediaIndices=o,s},r})();dP=OG});function Hx(r){var e=r&&r.itemStyle;if(e)for(var t=0,n=mP.length;t<n;t++){var i=mP[t],a=e.normal,o=e.emphasis;a&&a[i]&&(r[i]=r[i]||{},r[i].normal?Ee(r[i].normal,a[i]):r[i].normal=a[i],a[i]=null),o&&o[i]&&(r[i]=r[i]||{},r[i].emphasis?Ee(r[i].emphasis,o[i]):r[i].emphasis=o[i],o[i]=null)}}function $t(r,e,t){if(r&&r[e]&&(r[e].normal||r[e].emphasis)){var n=r[e].normal,i=r[e].emphasis;n&&(t?(r[e].normal=r[e].emphasis=null,fe(r[e],n)):r[e]=n),i&&(r.emphasis=r.emphasis||{},r.emphasis[e]=i,i.focus&&(r.emphasis.focus=i.focus),i.blurScope&&(r.emphasis.blurScope=i.blurScope))}}function Ff(r){$t(r,"itemStyle"),$t(r,"lineStyle"),$t(r,"areaStyle"),$t(r,"label"),$t(r,"labelLine"),$t(r,"upperLabel"),$t(r,"edgeLabel")}function pt(r,e){var t=Vf(r)&&r[e],n=Vf(t)&&t.textStyle;if(n)for(var i=0,a=Rg.length;i<a;i++){var o=Rg[i];n.hasOwnProperty(o)&&(t[o]=n[o])}}function Wr(r){r&&(Ff(r),pt(r,"label"),r.emphasis&&pt(r.emphasis,"label"))}function zG(r){if(Vf(r)){Hx(r),Ff(r),pt(r,"label"),pt(r,"upperLabel"),pt(r,"edgeLabel"),r.emphasis&&(pt(r.emphasis,"label"),pt(r.emphasis,"upperLabel"),pt(r.emphasis,"edgeLabel"));var e=r.markPoint;e&&(Hx(e),Wr(e));var t=r.markLine;t&&(Hx(t),Wr(t));var n=r.markArea;n&&Wr(n);var i=r.data;if(r.type==="graph"){i=i||r.nodes;var a=r.links||r.edges;if(a&&!nt(a))for(var o=0;o<a.length;o++)Wr(a[o]);A(r.categories,function(u){Ff(u)})}if(i&&!nt(i))for(var o=0;o<i.length;o++)Wr(i[o]);if(e=r.markPoint,e&&e.data)for(var s=e.data,o=0;o<s.length;o++)Wr(s[o]);if(t=r.markLine,t&&t.data)for(var l=t.data,o=0;o<l.length;o++)U(l[o])?(Wr(l[o][0]),Wr(l[o][1])):Wr(l[o]);r.type==="gauge"?(pt(r,"axisLabel"),pt(r,"title"),pt(r,"detail")):r.type==="treemap"?($t(r.breadcrumb,"itemStyle"),A(r.levels,function(u){Ff(u)})):r.type==="tree"&&Ff(r.leaves)}}function Ci(r){return U(r)?r:r?[r]:[]}function gP(r){return(U(r)?r[0]:r)||{}}function Gx(r,e){xn(Ci(r.series),function(n){Vf(n)&&zG(n)});var t=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&t.push("valueAxis","categoryAxis","logAxis","timeAxis"),xn(t,function(n){xn(Ci(r[n]),function(i){i&&(pt(i,"axisLabel"),pt(i.axisPointer,"label"))})}),xn(Ci(r.parallel),function(n){var i=n&&n.parallelAxisDefault;pt(i,"axisLabel"),pt(i&&i.axisPointer,"label")}),xn(Ci(r.calendar),function(n){$t(n,"itemStyle"),pt(n,"dayLabel"),pt(n,"monthLabel"),pt(n,"yearLabel")}),xn(Ci(r.radar),function(n){pt(n,"name"),n.name&&n.axisName==null&&(n.axisName=n.name,delete n.name),n.nameGap!=null&&n.axisNameGap==null&&(n.axisNameGap=n.nameGap,delete n.nameGap)}),xn(Ci(r.geo),function(n){Vf(n)&&(Wr(n),xn(Ci(n.regions),function(i){Wr(i)}))}),xn(Ci(r.timeline),function(n){Wr(n),$t(n,"label"),$t(n,"itemStyle"),$t(n,"controlStyle",!0);var i=n.data;U(i)&&A(i,function(a){Y(a)&&($t(a,"label"),$t(a,"itemStyle"))})}),xn(Ci(r.toolbox),function(n){$t(n,"iconStyle"),xn(n.feature,function(i){$t(i,"iconStyle")})}),pt(gP(r.axisPointer),"label"),pt(gP(r.tooltip).axisPointer,"label")}var xn,Vf,mP,yP=T(()=>{"use strict";I();ne();xn=A,Vf=Y,mP=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"]});function BG(r,e){for(var t=e.split(","),n=r,i=0;i<t.length&&(n=n&&n[t[i]],n!=null);i++);return n}function UG(r,e,t,n){for(var i=e.split(","),a=r,o,s=0;s<i.length-1;s++)o=i[s],a[o]==null&&(a[o]={}),a=a[o];(n||a[i[s]]==null)&&(a[i[s]]=t)}function xP(r){r&&A(FG,function(e){e[0]in r&&!(e[1]in r)&&(r[e[1]]=r[e[0]])})}function Hf(r){var e=r&&r.itemStyle;if(e)for(var t=0;t<$x.length;t++){var n=$x[t][1],i=$x[t][0];e[n]!=null&&(e[i]=e[n])}}function _P(r){r&&r.alignTo==="edge"&&r.margin!=null&&r.edgeDistance==null&&(r.edgeDistance=r.margin)}function bP(r){r&&r.downplay&&!r.blur&&(r.blur=r.downplay)}function HG(r){r&&r.focusNodeAdjacency!=null&&(r.emphasis=r.emphasis||{},r.emphasis.focus==null&&(r.emphasis.focus="adjacency"))}function SP(r,e){if(r)for(var t=0;t<r.length;t++)e(r[t]),r[t]&&SP(r[t].children,e)}function fv(r,e){Gx(r,e),r.series=Ke(r.series),A(r.series,function(t){if(Y(t)){var n=t.type;if(n==="line")t.clipOverflow!=null&&(t.clip=t.clipOverflow);else if(n==="pie"||n==="gauge"){t.clockWise!=null&&(t.clockwise=t.clockWise),_P(t.label);var i=t.data;if(i&&!nt(i))for(var a=0;a<i.length;a++)_P(i[a]);t.hoverOffset!=null&&(t.emphasis=t.emphasis||{},(t.emphasis.scaleSize=null)&&(t.emphasis.scaleSize=t.hoverOffset))}else if(n==="gauge"){var o=BG(t,"pointer.color");o!=null&&UG(t,"itemStyle.color",o)}else if(n==="bar"){Hf(t),Hf(t.backgroundStyle),Hf(t.emphasis);var i=t.data;if(i&&!nt(i))for(var a=0;a<i.length;a++)typeof i[a]=="object"&&(Hf(i[a]),Hf(i[a]&&i[a].emphasis))}else if(n==="sunburst"){var s=t.highlightPolicy;s&&(t.emphasis=t.emphasis||{},t.emphasis.focus||(t.emphasis.focus=s)),bP(t),SP(t.data,bP)}else n==="graph"||n==="sankey"?HG(t):n==="map"&&(t.mapType&&!t.map&&(t.map=t.mapType),t.mapLocation&&fe(t,t.mapLocation));t.hoverAnimation!=null&&(t.emphasis=t.emphasis||{},t.emphasis&&t.emphasis.scale==null&&(t.emphasis.scale=t.hoverAnimation)),xP(t)}}),r.dataRange&&(r.visualMap=r.dataRange),A(VG,function(t){var n=r[t];n&&(U(n)||(n=[n]),A(n,function(i){xP(i)}))})}var FG,VG,$x,wP=T(()=>{"use strict";I();yP();ne();FG=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],VG=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],$x=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]]});function GG(r){var e=X();r.eachSeries(function(t){var n=t.get("stack");if(n){var i=e.get(n)||e.set(n,[]),a=t.getData(),o={stackResultDimension:a.getCalculationInfo("stackResultDimension"),stackedOverDimension:a.getCalculationInfo("stackedOverDimension"),stackedDimension:a.getCalculationInfo("stackedDimension"),stackedByDimension:a.getCalculationInfo("stackedByDimension"),isStackedByIndex:a.getCalculationInfo("isStackedByIndex"),data:a,seriesModel:t};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;i.push(o)}}),e.each(function(t){if(t.length!==0){var n=t[0].seriesModel,i=n.get("stackOrder")||"seriesAsc";i==="seriesDesc"&&t.reverse(),A(t,function(a,o){a.data.setCalculationInfo("stackedOnSeries",o>0?t[o-1].seriesModel:null)}),$G(t)}})}function $G(r){A(r,function(e,t){var n=[],i=[NaN,NaN],a=[e.stackResultDimension,e.stackedOverDimension],o=e.data,s=e.isStackedByIndex,l=e.seriesModel.get("stackStrategy")||"samesign";o.modify(a,function(u,f,c){var p=o.get(e.stackedDimension,c);if(isNaN(p))return i;var h,d;s?d=o.getRawIndex(c):h=o.get(e.stackedByDimension,c);for(var v=NaN,m=t-1;m>=0;m--){var g=r[m];if(s||(d=g.data.rawIndexOf(g.stackedByDimension,h)),d>=0){var y=g.data.getByRawIndex(g.stackResultDimension,d);if(l==="all"||l==="positive"&&y>0||l==="negative"&&y<0||l==="samesign"&&p>=0&&y>0||l==="samesign"&&p<=0&&y<0){p=QT(p,y),v=y;break}}}return n[0]=p,n[1]=v,n})})}var TP,EP=T(()=>{"use strict";I();we();ne();TP=Qs(GG)});var Wx,Nt,Mi=T(()=>{"use strict";nl();Ro();Tn();Wx=(function(){function r(){this.group=new Ie,this.uid=pa("viewComponent")}return r.prototype.init=function(e,t){},r.prototype.render=function(e,t,n,i){},r.prototype.dispose=function(e,t){},r.prototype.updateView=function(e,t,n,i){},r.prototype.updateLayout=function(e,t,n,i){},r.prototype.updateVisual=function(e,t,n,i){},r.prototype.toggleBlurSeries=function(e,t,n){},r.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},r})();Ls(Wx);Vi(Wx);Nt=Wx});function MP(r,e){var t=r.visualStyleMapper||CP[e];return t||(console.warn("Unknown style type '"+e+"'."),CP.itemStyle)}function DP(r,e){var t=r.visualDrawType||WG[e];return t||(console.warn("Unknown style type '"+e+"'."),"fill")}var AP,CP,WG,LP,Gf,PP,OP,IP=T(()=>{"use strict";I();lu();Cy();Ey();$n();ne();AP=ae(),CP={itemStyle:En(Ay,!0),lineStyle:En(Ty,!0)},WG={lineStyle:"stroke",itemStyle:"fill"};LP={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){var t=r.getData(),n=r.visualStyleAccessPath||"itemStyle",i=r.getModel(n),a=MP(r,n),o=a(i),s=i.getShallow("decal");s&&(t.setVisual("decal",s),s.dirty=!0);var l=DP(r,n),u=o[l],f=j(u)?u:null,c=o.fill==="auto"||o.stroke==="auto";if(!o[l]||f||c){var p=r.getColorFromPalette(r.name,null,e.getSeriesCount());o[l]||(o[l]=p,t.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||j(o.fill)?p:o.fill,o.stroke=o.stroke==="auto"||j(o.stroke)?p:o.stroke}if(t.setVisual("style",o),t.setVisual("drawType",l),!e.isSeriesFiltered(r)&&f)return t.setVisual("colorFromPalette",!1),{dataEach:function(h,d){var v=r.getDataParams(d),m=k({},o);m[l]=f(v),h.setItemVisual(d,"style",m)}}}},Gf=new ot,PP={createOnAllSeries:!0,reset:function(r,e){if(!r.ignoreStyleOnData){var t=r.getData(),n=r.visualStyleAccessPath||"itemStyle",i=MP(r,n),a=t.getVisual("drawType");return{dataEach:t.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){Gf.option=l[n];var u=i(Gf),f=o.ensureUniqueItemVisual(s,"style");k(f,u),Gf.option.decal&&(o.setItemVisual(s,"decal",Gf.option.decal),Gf.option.decal.dirty=!0),a in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},OP={performRawSeries:!0,overallReset:function(r){var e=X();r.eachSeries(function(t){if(!t.isColorBySeries()){var n=t.type+"-"+t.getColorBy();AP(t).scope=e.get(n)||e.set(n,{})}}),r.eachSeries(function(t){if(!t.isColorBySeries()){var n=t.getRawData(),i={},a=t.getData(),o=AP(t).scope,s=t.visualStyleAccessPath||"itemStyle",l=DP(t,s);a.each(function(u){var f=a.getRawIndex(u);i[f]=u}),n.each(function(u){var f=i[u],c=a.getItemVisual(f,"colorFromPalette");if(c){var p=a.ensureUniqueItemVisual(f,"style"),h=n.getName(u)||u+"",d=n.count();p[l]=t.getColorFromPalette(h,o,d)}})}})}}});function Yx(r,e){e=e||{},fe(e,{text:"loading",textColor:ie.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:ie.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var t=new Ie,n=new Oe({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});t.add(n);var i=new $e({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),a=new Oe({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});t.add(a);var o;return e.showSpinner&&(o=new Ku({shape:{startAngle:-cv/2,endAngle:-cv/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:cv*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:cv*3/2}).delay(300).start("circularInOut"),t.add(o)),t.resize=function(){var s=i.getBoundingRect().width,l=e.showSpinner?e.spinnerRadius:0,u=(r.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),f=r.getHeight()/2;e.showSpinner&&o.setShape({cx:u,cy:f}),a.setShape({x:u-l,y:f-l,width:l*2,height:l*2}),n.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},t.resize(),t}var cv,RP=T(()=>{"use strict";I();ze();Gt();cv=Math.PI});function qG(r){r.overallReset(r.ecModel,r.api,r.payload)}function XG(r){return r.dirtyOnOverallProgress&&KG}function KG(){this.agent.dirty(),this.getDownstream().dirty()}function ZG(){this.agent&&this.agent.dirty()}function jG(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function JG(r){r.useClearVisual&&r.data.clearAllVisual();var e=r.resetDefines=Ke(r.reset(r.model,r.ecModel,r.api,r.payload));return e.length>1?F(e,function(t,n){return NP(n)}):QG}function NP(r){return function(e,t){var n=t.data,i=t.resetDefines[r];if(i&&i.dataEach)for(var a=e.start;a<e.end;a++)i.dataEach(n,a);else i&&i.progress&&i.progress(e,n)}}function e5(r){return r.data.count()}function t5(r){pv=null;try{r($f,kP)}catch{}return pv}function zP(r,e){for(var t in e.prototype)r[t]=at}var YG,QG,$f,kP,pv,qx,BP=T(()=>{"use strict";I();Yh();Ro();Vx();Fp();ne();YG=(function(){function r(e,t,n,i){this._stageTaskMap=X(),this.ecInstance=e,this.api=t,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return r.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each(function(n){var i=n.overallTask;i&&i.dirty()})},r.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),i=n.context,a=!t&&n.progressiveEnabled&&(!i||i.progressiveRender)&&e.__idxInPipeline>n.blockIndex,o=a?n.step:null,s=i&&i.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},r.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},r.prototype.updateStreamModes=function(e,t){var n=this._pipelineMap.get(e.uid),i=e.__preparePipelineContext?e.__preparePipelineContext(t,n):kp(e,t,n);e.pipelineContext=n.context=i},r.prototype.restorePipelines=function(e,t){var n=this,i=n._pipelineMap=X();t.eachSeries(function(a){var o=e.painter.type==="canvas"&&a.getProgressive(),s=a.uid;i.set(s,{id:s,head:null,tail:null,threshold:a.getProgressiveThreshold(),progressiveEnabled:o&&!(a.preventIncremental&&a.preventIncremental()),blockIndex:-1,step:Math.round(o||700),count:0}),n._pipe(a,a.dataTask)})},r.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),n=this.api;A(this._allHandlers,function(i){var a=e.get(i.uid)||e.set(i.uid,{}),o="";it(!(i.reset&&i.overallReset),o),i.reset&&this._createSeriesStageTask(i,a,t,n),i.overallReset&&this._createOverallStageTask(i,a,t,n)},this)},r.prototype.prepareView=function(e,t,n,i){var a=e.renderTask,o=a.context;o.model=t,o.ecModel=n,o.api=i,a.__block=!e.incrementalPrepareRender,this._pipe(t,a)},r.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},r.prototype.performVisualTasks=function(e,t,n){this._performStageTasks(this._visualHandlers,e,t,n)},r.prototype._performStageTasks=function(e,t,n,i){i=i||{};var a=!1,o=this;A(e,function(l,u){if(!(i.visualType&&i.visualType!==l.visualType)){var f=o._stageTaskMap.get(l.uid),c=f.seriesTaskMap,p=f.overallTask;if(p){var h,d=p.agentStubMap;d.each(function(m){s(i,m)&&(m.dirty(),h=!0)}),h&&p.dirty(),o.updatePayload(p,n);var v=o.getPerformArgs(p,i.block);d.each(function(m){m.perform(v)}),p.perform(v)&&(a=!0)}else c&&c.each(function(m,g){s(i,m)&&m.dirty();var y=o.getPerformArgs(m,i.block);y.skip=!l.performRawSeries&&t.isSeriesFiltered(m.context.model),o.updatePayload(m,n),m.perform(y)&&(a=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=a||this.unfinished},r.prototype.performSeriesTasks=function(e){var t;e.eachSeries(function(n){t=n.dataTask.perform()||t}),this.unfinished=t||this.unfinished},r.prototype.plan=function(){this._pipelineMap.each(function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)})},r.prototype.updatePayload=function(e,t){t!=="remain"&&(e.context.payload=t)},r.prototype._createSeriesStageTask=function(e,t,n,i){var a=this,o=t.seriesTaskMap,s=t.seriesTaskMap=X(),l=e.seriesType,u=e.getTargetSeries;e.createOnAllSeries?n.eachRawSeries(f):l?n.eachRawSeriesByType(l,f):u&&u(n,i).each(f);function f(c){var p=c.uid,h=s.set(p,o&&o.get(p)||va({plan:jG,reset:JG,count:e5}));h.context={model:c,ecModel:n,api:i,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:a},a._pipe(c,h)}},r.prototype._createOverallStageTask=function(e,t,n,i){var a=this,o=t.overallTask=t.overallTask||va({reset:qG});o.context={ecModel:n,api:i,overallReset:e.overallReset,scheduler:a};var s=o.agentStubMap,l=o.agentStubMap=X(),u=e.seriesType,f=e.getTargetSeries,c=e.dirtyOnOverallProgress,p=!1,h="";it(!e.createOnAllSeries,h),u?n.eachRawSeriesByType(u,d):f?f(n,i).each(d):A(n.getSeries(),d);function d(v){var m=v.uid,g=l.set(m,s&&s.get(m)||(p=!0,va({reset:XG,onDirty:ZG})));g.context={model:v,dirtyOnOverallProgress:c},g.agent=o,g.__block=c,a._pipe(v,g)}p&&o.dirty()},r.prototype._pipe=function(e,t){var n=e.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=t),i.tail&&i.tail.pipe(t),i.tail=t,t.__idxInPipeline=i.count++,t.__pipeline=i},r.wrapStageHandler=function(e,t){return j(e)&&(e={overallReset:e,seriesType:t5(e)}),e.uid=pa("stageHandler"),t&&(e.visualType=t),e},r})();QG=NP(0);$f={},kP={};zP($f,uv);zP(kP,Up);$f.eachSeriesByType=$f.eachRawSeriesByType=function(r){pv=r};$f.eachComponent=function(r){r.mainType==="series"&&r.subType&&(pv=r.subType)};qx=YG});var q,UP,Wf,FP,VP,HP,GP=T(()=>{"use strict";Gt();q=ie.darkColor,UP=q.background,Wf=function(){return{axisLine:{lineStyle:{color:q.axisLine}},splitLine:{lineStyle:{color:q.axisSplitLine}},splitArea:{areaStyle:{color:[q.backgroundTint,q.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:q.axisMinorSplitLine}},axisLabel:{color:q.axisLabel},axisName:{}}},FP={label:{color:q.secondary},itemStyle:{borderColor:q.borderTint},dividerLineStyle:{color:q.border}},VP={darkMode:!0,color:q.theme,backgroundColor:UP,axisPointer:{lineStyle:{color:q.border},crossStyle:{color:q.borderShade},label:{color:q.tertiary}},legend:{textStyle:{color:q.secondary},pageTextStyle:{color:q.tertiary}},textStyle:{color:q.secondary},title:{textStyle:{color:q.primary},subtextStyle:{color:q.quaternary}},toolbox:{iconStyle:{borderColor:q.accent50},feature:{dataView:{backgroundColor:UP,textColor:q.primary,textareaColor:q.background,textareaBorderColor:q.border,buttonColor:q.accent50,buttonTextColor:q.neutral00}}},tooltip:{backgroundColor:q.neutral20,defaultBorderColor:q.border,textStyle:{color:q.tertiary}},dataZoom:{borderColor:q.accent10,textStyle:{color:q.tertiary},brushStyle:{color:q.backgroundTint},handleStyle:{color:q.neutral00,borderColor:q.accent20},moveHandleStyle:{color:q.accent40},emphasis:{handleStyle:{borderColor:q.accent50}},dataBackground:{lineStyle:{color:q.accent30},areaStyle:{color:q.accent20}},selectedDataBackground:{lineStyle:{color:q.accent50},areaStyle:{color:q.accent30}}},visualMap:{textStyle:{color:q.secondary},handleStyle:{borderColor:q.neutral30}},timeline:{lineStyle:{color:q.accent10},label:{color:q.tertiary},controlStyle:{color:q.accent30,borderColor:q.accent30}},calendar:{itemStyle:{color:q.neutral00,borderColor:q.neutral20},dayLabel:{color:q.tertiary},monthLabel:{color:q.secondary},yearLabel:{color:q.secondary}},matrix:{x:FP,y:FP,backgroundColor:{borderColor:q.axisLine},body:{itemStyle:{borderColor:q.borderTint}}},timeAxis:Wf(),logAxis:Wf(),valueAxis:Wf(),categoryAxis:Wf(),line:{symbol:"circle"},graph:{color:q.theme},gauge:{title:{color:q.secondary},axisLine:{lineStyle:{color:[[1,q.neutral05]]}},axisLabel:{color:q.axisLabel},detail:{color:q.primary}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}},funnel:{itemStyle:{borderColor:q.background}},radar:(function(){var r=Wf();return r.axisName={color:q.axisLabel},r.axisLine.lineStyle.color=q.neutral20,r})(),treemap:{breadcrumb:{itemStyle:{color:q.neutral20,textStyle:{color:q.secondary}},emphasis:{itemStyle:{color:q.neutral30}}}},sunburst:{itemStyle:{borderColor:q.background}},map:{itemStyle:{borderColor:q.border,areaColor:q.neutral10},label:{color:q.tertiary},emphasis:{label:{color:q.primary},itemStyle:{areaColor:q.highlight}},select:{label:{color:q.primary},itemStyle:{areaColor:q.highlight}}},geo:{itemStyle:{borderColor:q.border,areaColor:q.neutral10},emphasis:{label:{color:q.primary},itemStyle:{areaColor:q.highlight}},select:{label:{color:q.primary},itemStyle:{color:q.highlight}}}};VP.categoryAxis.splitLine.show=!1;HP=VP});var $P,WP=T(()=>{"use strict";I();Tn();$P=(function(){function r(){}return r.prototype.normalizeQuery=function(e){var t={},n={},i={};if(G(e)){var a=fr(e);t.mainType=a.main||null,t.subType=a.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};A(e,function(l,u){for(var f=!1,c=0;c<o.length;c++){var p=o[c],h=u.lastIndexOf(p);if(h>0&&h===u.length-p.length){var d=u.slice(0,h);d!=="data"&&(t.mainType=d,t[p.toLowerCase()]=l,f=!0)}}s.hasOwnProperty(u)&&(n[u]=l,f=!0),f||(i[u]=l)})}return{cptQuery:t,dataQuery:n,otherQuery:i}},r.prototype.filter=function(e,t){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,a=n.packedEvent,o=n.model,s=n.view;if(!o||!s)return!0;var l=t.cptQuery,u=t.dataQuery;return f(l,o,"mainType")&&f(l,o,"subType")&&f(l,o,"index","componentIndex")&&f(l,o,"name")&&f(l,o,"id")&&f(u,a,"name")&&f(u,a,"dataIndex")&&f(u,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,t.otherQuery,i,a));function f(c,p,h,d){return c[h]==null||p[d||h]===c[h]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r})()});var Xx,YP,qP,XP,KP=T(()=>{"use strict";I();Xx=["symbol","symbolSize","symbolRotate","symbolOffset"],YP=Xx.concat(["symbolKeepAspect"]),qP={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){var t=r.getData();if(r.legendIcon&&t.setVisual("legendIcon",r.legendIcon),!r.hasSymbolVisual)return;for(var n={},i={},a=!1,o=0;o<Xx.length;o++){var s=Xx[o],l=r.get(s);j(l)?(a=!0,i[s]=l):n[s]=l}if(n.symbol=n.symbol||r.defaultSymbol,t.setVisual(k({legendIcon:r.legendIcon||n.symbol,symbolKeepAspect:r.get("symbolKeepAspect")},n)),e.isSeriesFiltered(r))return;var u=oe(i);function f(c,p){for(var h=r.getRawValue(p),d=r.getDataParams(p),v=0;v<u.length;v++){var m=u[v];c.setItemVisual(p,m,i[m](h,d))}}return{dataEach:a?f:null}}},XP={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){if(!r.hasSymbolVisual||e.isSeriesFiltered(r))return;var t=r.getData();function n(i,a){for(var o=i.getItemModel(a),s=0;s<YP.length;s++){var l=YP[s],u=o.getShallow(l,!0);u!=null&&i.setItemVisual(a,l,u)}}return{dataEach:t.hasItemOption?n:null}}}});function ZP(r,e,t){switch(t){case"color":var n=r.getItemVisual(e,"style");return n[r.getVisual("drawType")];case"opacity":return r.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getItemVisual(e,t);default:}}function jP(r,e){switch(e){case"color":var t=r.getVisual("style");return t[r.getVisual("drawType")];case"opacity":return r.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getVisual(e);default:}}var JP=T(()=>{"use strict"});function Yf(r,e,t){for(var n;r&&!(e(r)&&(n=r,t));)r=r.__hostTarget||r.parent;return n}var QP=T(()=>{"use strict"});var r5,Lr,eO=T(()=>{"use strict";to();r5=new Kt,Lr=r5});function rO(r,e){tO[r]=e}function nO(r){return tO[r]}var tO,Kx=T(()=>{"use strict";tO={}});function iO(r,e){n5[r]=e}var n5,aO=T(()=>{"use strict";n5={}});var i5,a5,o5,oO,sO=T(()=>{"use strict";i5=Math.round(Math.random()*9),a5=typeof Object.defineProperty=="function",o5=(function(){function r(){this._id="__ec_inner_"+i5++}return r.prototype.get=function(e){return this._guard(e)[this._id]},r.prototype.set=function(e,t){var n=this._guard(e);return a5?Object.defineProperty(n,this._id,{value:t,enumerable:!1,configurable:!0}):n[this._id]=t,this},r.prototype.delete=function(e){return this.has(e)?(delete this._guard(e)[this._id],!0):!1},r.prototype.has=function(e){return!!this._guard(e)[this._id]},r.prototype._guard=function(e){if(e!==Object(e))throw TypeError("Value of WeakMap is not a non-null object.");return e},r})(),oO=o5});function is(r){return isFinite(r)}function s5(r,e,t){var n=e.x==null?0:e.x,i=e.x2==null?1:e.x2,a=e.y==null?0:e.y,o=e.y2==null?0:e.y2;e.global||(n=n*t.width+t.x,i=i*t.width+t.x,a=a*t.height+t.y,o=o*t.height+t.y),n=is(n)?n:0,i=is(i)?i:1,a=is(a)?a:0,o=is(o)?o:0;var s=r.createLinearGradient(n,a,i,o);return s}function l5(r,e,t){var n=t.width,i=t.height,a=Math.min(n,i),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*n+t.x,s=s*i+t.y,l=l*a),o=is(o)?o:.5,s=is(s)?s:.5,l=l>=0&&is(l)?l:.5;var u=r.createRadialGradient(o,s,0,o,s,l);return u}function Zx(r,e,t){for(var n=e.type==="radial"?l5(r,e,t):s5(r,e,t),i=e.colorStops,a=0;a<i.length;a++)n.addColorStop(i[a].offset,i[a].color);return n}function lO(r,e){if(r===e||!r&&!e)return!1;if(!r||!e||r.length!==e.length)return!0;for(var t=0;t<r.length;t++)if(r[t]!==e[t])return!0;return!1}function hv(r){return parseInt(r,10)}function jx(r,e,t){var n=["width","height"][e],i=["clientWidth","clientHeight"][e],a=["paddingLeft","paddingTop"][e],o=["paddingRight","paddingBottom"][e];if(t[n]!=null&&t[n]!=="auto")return parseFloat(t[n]);var s=document.defaultView.getComputedStyle(r);return(r[i]||hv(s[n])||hv(r.style[n]))-(hv(s[a])||0)-(hv(s[o])||0)||0}var Jx=T(()=>{"use strict"});function u5(r,e){return!r||r==="solid"||!(e>0)?null:r==="dashed"?[4*e,2*e]:r==="dotted"?[e]:he(r)?[r]:U(r)?r:null}function qf(r){var e=r.style,t=e.lineDash&&e.lineWidth>0&&u5(e.lineDash,e.lineWidth),n=e.lineDashOffset;if(t){var i=e.strokeNoScale&&r.getLineScale?r.getLineScale():1;i&&i!==1&&(t=F(t,function(a){return a/i}),n/=i)}return[t,n]}var Qx=T(()=>{"use strict";I()});function dv(r){var e=r.stroke;return!(e==null||e==="none"||!(r.lineWidth>0))}function uO(r){return typeof r=="string"&&r!=="none"}function vv(r){var e=r.fill;return e!=null&&e!=="none"}function fO(r,e){if(e.fillOpacity!=null&&e.fillOpacity!==1){var t=r.globalAlpha;r.globalAlpha=e.fillOpacity*e.opacity,r.fill(),r.globalAlpha=t}else r.fill()}function cO(r,e){if(e.strokeOpacity!=null&&e.strokeOpacity!==1){var t=r.globalAlpha;r.globalAlpha=e.strokeOpacity*e.opacity,r.stroke(),r.globalAlpha=t}else r.stroke()}function pO(r,e,t){var n=fu(e.image,e.__image,t);if(Ps(n)){var i=r.createPattern(n,e.repeat||"repeat");if(typeof DOMMatrix=="function"&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(e.x||0,e.y||0),a.rotateSelf(0,0,(e.rotation||0)*Ds),a.scaleSelf(e.scaleX||1,e.scaleY||1),i.setTransform(a)}return i}}function c5(r,e,t,n,i){var a,o=dv(t),s=vv(t),l=t.strokePercent,u=l<1,f=!e.path;(!e.silent||u)&&f&&e.createPathProxy();var c=e.path||f5,p=e.__dirty;if(!n){var h=t.fill,d=t.stroke,v=s&&!!h.colorStops,m=o&&!!d.colorStops,g=s&&!!h.image,y=o&&!!d.image,x=void 0,_=void 0,b=void 0,S=void 0,w=void 0;(v||m)&&(w=e.getBoundingRect()),v&&(x=p?Zx(r,h,w):e.__canvasFillGradient,e.__canvasFillGradient=x),m&&(_=p?Zx(r,d,w):e.__canvasStrokeGradient,e.__canvasStrokeGradient=_),g&&(b=p||!e.__canvasFillPattern?pO(r,h,e):e.__canvasFillPattern,e.__canvasFillPattern=b),y&&(S=p||!e.__canvasStrokePattern?pO(r,d,e):e.__canvasStrokePattern,e.__canvasStrokePattern=S),v?r.fillStyle=x:g&&(b?r.fillStyle=b:s=!1),m?r.strokeStyle=_:y&&(S?r.strokeStyle=S:o=!1)}var C=e.getGlobalScale();c.setScale(C[0],C[1],e.segmentIgnoreThreshold);var M,E;r.setLineDash&&t.lineDash&&(a=qf(e),M=a[0],E=a[1]);var D=!0;(f||p&Ji)&&(c.setDPR(r.dpr),u?c.setContext(null):(c.setContext(r),D=!1),c.reset(),e.buildPath(c,e.shape,n),c.toStatic(),e.pathUpdated()),D&&c.rebuildPath(r,u?l:1),M&&(r.setLineDash(M),r.lineDashOffset=E),n?(i.batchFill=s,i.batchStroke=o):t.strokeFirst?(o&&cO(r,t),s&&fO(r,t)):(s&&fO(r,t),o&&cO(r,t)),M&&r.setLineDash([])}function p5(r,e,t){var n=e.__image=fu(t.image,e.__image,e,e.onload);if(!(!n||!Ps(n))){var i=t.x||0,a=t.y||0,o=e.getWidth(),s=e.getHeight(),l=n.width/n.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=n.width,s=n.height),t.sWidth&&t.sHeight){var u=t.sx||0,f=t.sy||0;r.drawImage(n,u,f,t.sWidth,t.sHeight,i,a,o,s)}else if(t.sx&&t.sy){var u=t.sx,f=t.sy,c=o-u,p=s-f;r.drawImage(n,u,f,c,p,i,a,o,s)}else r.drawImage(n,i,a,o,s)}}function h5(r,e,t){var n,i=t.text;if(i!=null&&(i+=""),i){r.font=t.font||lr,r.textAlign=t.textAlign,r.textBaseline=t.textBaseline;var a=void 0,o=void 0;r.setLineDash&&t.lineDash&&(n=qf(e),a=n[0],o=n[1]),a&&(r.setLineDash(a),r.lineDashOffset=o),t.strokeFirst?(dv(t)&&r.strokeText(i,t.x,t.y),vv(t)&&r.fillText(i,t.x,t.y)):(vv(t)&&r.fillText(i,t.x,t.y),dv(t)&&r.strokeText(i,t.x,t.y)),a&&r.setLineDash([])}}function _O(r,e,t,n,i){var a=!1;if(!n&&(t=t||{},e===t))return!1;if(n||e.opacity!==t.opacity){nr(r,i),a=!0;var o=Math.max(Math.min(e.opacity,1),0);r.globalAlpha=isNaN(o)?Ln.opacity:o}(n||e.blend!==t.blend)&&(a||(nr(r,i),a=!0),r.globalCompositeOperation=e.blend||Ln.blend);for(var s=0;s<hO.length;s++){var l=hO[s];(n||e[l]!==t[l])&&(a||(nr(r,i),a=!0),r[l]=r.dpr*(e[l]||0))}return(n||e.shadowColor!==t.shadowColor)&&(a||(nr(r,i),a=!0),r.shadowColor=e.shadowColor||Ln.shadowColor),a}function vO(r,e,t,n,i){var a=e.style,o=n?null:t&&t.style||{};if(a===o)return!1;var s=_O(r,a,o,n,i);if((n||a.fill!==o.fill)&&(s||(nr(r,i),s=!0),uO(a.fill)&&(r.fillStyle=a.fill)),(n||a.stroke!==o.stroke)&&(s||(nr(r,i),s=!0),uO(a.stroke)&&(r.strokeStyle=a.stroke)),(n||a.opacity!==o.opacity)&&(s||(nr(r,i),s=!0),r.globalAlpha=a.opacity==null?1:a.opacity),e.hasStroke()){var l=a.lineWidth,u=l/(a.strokeNoScale&&e.getLineScale?e.getLineScale():1);r.lineWidth!==u&&(s||(nr(r,i),s=!0),r.lineWidth=u)}for(var f=0;f<dO.length;f++){var c=dO[f],p=c[0];(n||a[p]!==o[p])&&(s||(nr(r,i),s=!0),r[p]=a[p]||c[1])}return s}function d5(r,e,t,n,i){return _O(r,e.style,t&&t.style,n,i)}function bO(r,e){var t=e.transform,n=r.dpr||1;t?r.setTransform(n*t[0],n*t[1],n*t[2],n*t[3],n*t[4],n*t[5]):r.setTransform(n,0,0,n,0,0)}function v5(r,e,t){for(var n=!1,i=0;i<r.length;i++){var a=r[i];n=n||a.isZeroArea(),bO(e,a),e.beginPath(),a.buildPath(e,a.shape),e.clip()}t.allClipped=n}function m5(r,e){return r&&e?r[0]!==e[0]||r[1]!==e[1]||r[2]!==e[2]||r[3]!==e[3]||r[4]!==e[4]||r[5]!==e[5]:!(!r&&!e)}function g5(r){var e=vv(r),t=dv(r);return!(r.lineDash||!(+e^+t)||e&&typeof r.fill!="string"||t&&typeof r.stroke!="string"||r.strokePercent<1||r.strokeOpacity<1||r.fillOpacity<1)}function nr(r,e){e.batchFill&&(e.batchFill=!1,r.fill()),e.batchStroke&&(e.batchStroke=!1,r.stroke())}function SO(r,e){var t={inHover:!1,viewWidth:0,viewHeight:0,beforeBrushParam:{}};e_(r,e,t),t_(r,t)}function e_(r,e,t){var n=e.transform;if(!e.shouldBePainted(t.viewWidth,t.viewHeight,!1,!1)){e.__dirty&=~Bt,e.__isRendered=!1;return}var i=e.__clipPaths,a=t.prevElClipPaths,o=e.style,s=!1,l=!1;if((!a||lO(i,a))&&(a&&(nr(r,t),r.restore(),l=s=!0,t.prevElClipPaths=null,t.allClipped=!1,t.prevEl=null),i&&i.length&&(nr(r,t),r.save(),v5(i,r,t),s=!0,t.prevElClipPaths=i)),t.allClipped){e.__dirty&=~Bt,e.__isRendered=!1;return}e.beforeBrush&&e.beforeBrush(t.beforeBrushParam),e.innerBeforeBrush();var u=t.prevEl;u||(l=s=!0);var f=e instanceof le&&e.autoBatch&&g5(o);s||m5(n,u.transform)?(nr(r,t),bO(r,e)):f||nr(r,t),e instanceof le?(t.lastDrawType!==mO&&(l=!0,t.lastDrawType=mO),vO(r,e,u,l,t),(!f||!t.batchFill&&!t.batchStroke)&&r.beginPath(),c5(r,e,o,f,t)):e instanceof po?(t.lastDrawType!==yO&&(l=!0,t.lastDrawType=yO),vO(r,e,u,l,t),h5(r,e,o)):e instanceof Ut?(t.lastDrawType!==gO&&(l=!0,t.lastDrawType=gO),d5(r,e,u,l,t),p5(r,e,o)):e.getTemporalDisplayables&&(t.lastDrawType!==xO&&(l=!0,t.lastDrawType=xO),y5(r,e,t)),e.innerAfterBrush(),e.afterBrush&&(f&&nr(r,t),e.afterBrush()),t.prevEl=e,e.__dirty=0,e.__isRendered=!0}function t_(r,e){nr(r,e),e.prevElClipPaths&&r.restore()}function y5(r,e,t){var n=e.getDisplayables(),i=e.getTemporalDisplayables();r.save();var a={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:t.viewWidth,viewHeight:t.viewHeight,inHover:t.inHover,beforeBrushParam:{}},o,s;for(o=e.getCursor(),s=n.length;o<s;o++){var l=n[o];l.beforeBrush&&l.beforeBrush(t.beforeBrushParam),l.innerBeforeBrush(),e_(r,l,a),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}t_(r,a);for(var u=0,f=i.length;u<f;u++){var l=i[u];l.beforeBrush&&l.beforeBrush(t.beforeBrushParam),l.innerBeforeBrush(),e_(r,l,a),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}t_(r,a),e.clearTemporalDisplayables(),e.notClear=!0,r.restore()}var f5,hO,dO,mO,gO,yO,xO,wO=T(()=>{"use strict";io();Nn();zc();Jx();ct();ho();Tp();I();Qx();Hs();wn();f5=new Lt(!0);hO=["shadowBlur","shadowOffsetX","shadowOffsetY"],dO=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];mO=1,gO=2,yO=3,xO=4});function Xf(r,e){if(r==="none")return null;var t=e.getDevicePixelRatio(),n=e.getZr(),i=n.painter.type==="svg";r.dirty&&r_.delete(r);var a=r_.get(r);if(a)return a;var o=fe(r,{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=i?1:1/t,r_.set(r,s),r.dirty=!1,s;function l(u){for(var f=[t],c=!0,p=0;p<EO.length;++p){var h=o[EO[p]];if(h!=null&&!U(h)&&!G(h)&&!he(h)&&typeof h!="boolean"){c=!1;break}f.push(h)}var d;if(c){d=f.join(",")+(i?"-svg":"");var v=TO.get(d);v&&(i?u.svgElement=v:u.image=v)}var m=CO(o.dashArrayX),g=x5(o.dashArrayY),y=AO(o.symbol),x=_5(m),_=MO(g),b=!i&&zt.createCanvas(),S=i&&{tag:"g",attrs:{},key:"dcl",children:[]},w=M(),C;b&&(b.width=w.width*t,b.height=w.height*t,C=b.getContext("2d")),E(),c&&TO.put(d,b||S),u.image=b,u.svgElement=S,u.svgWidth=w.width,u.svgHeight=w.height;function M(){for(var D=1,P=0,L=x.length;P<L;++P)D=Og(D,x[P]);for(var O=1,P=0,L=y.length;P<L;++P)O=Og(O,y[P].length);D*=O;var z=_*x.length*y.length;if(0)var N;return{width:Math.max(1,Math.min(D,o.maxTileWidth)),height:Math.max(1,Math.min(z,o.maxTileHeight))}}function E(){C&&(C.clearRect(0,0,b.width,b.height),o.backgroundColor&&(C.fillStyle=o.backgroundColor,C.fillRect(0,0,b.width,b.height)));for(var D=0,P=0;P<g.length;++P)D+=g[P];if(D<=0)return;for(var L=-_,O=0,z=0,N=0;L<w.height;){if(O%2===0){for(var V=z/2%y.length,B=0,H=0,W=0;B<w.width*2;){for(var K=0,P=0;P<m[N].length;++P)K+=m[N][P];if(K<=0)break;if(H%2===0){var J=(1-o.symbolSize)*.5,re=B+m[N][H]*J,Z=L+g[O]*J,ve=m[N][H]*o.symbolSize,_e=g[O]*o.symbolSize,et=W/2%y[V].length;Ze(re,Z,ve,_e,y[V][et])}B+=m[N][H],++W,++H,H===m[N].length&&(H=0)}++N,N===m.length&&(N=0)}L+=g[O],++z,++O,O===g.length&&(O=0)}function Ze(Ce,Ge,pe,be,ar){var tt=i?1:t,Xr=Mr(ar,Ce*tt,Ge*tt,pe*tt,be*tt,o.color,o.symbolKeepAspect);if(i){var or=n.painter.renderOneToVNode(Xr);or&&S.children.push(or)}else SO(C,Xr)}}}}function AO(r){if(!r||r.length===0)return[["rect"]];if(G(r))return[[r]];for(var e=!0,t=0;t<r.length;++t)if(!G(r[t])){e=!1;break}if(e)return AO([r]);for(var n=[],t=0;t<r.length;++t)G(r[t])?n.push([r[t]]):n.push(r[t]);return n}function CO(r){if(!r||r.length===0)return[[0,0]];if(he(r)){var e=Math.ceil(r);return[[e,e]]}for(var t=!0,n=0;n<r.length;++n)if(!he(r[n])){t=!1;break}if(t)return CO([r]);for(var i=[],n=0;n<r.length;++n)if(he(r[n])){var e=Math.ceil(r[n]);i.push([e,e])}else{var e=F(r[n],function(s){return Math.ceil(s)});e.length%2===1?i.push(e.concat(e)):i.push(e)}return i}function x5(r){if(!r||typeof r=="object"&&r.length===0)return[0,0];if(he(r)){var e=Math.ceil(r);return[e,e]}var t=F(r,function(n){return Math.ceil(n)});return r.length%2?t.concat(t):t}function _5(r){return F(r,function(e){return MO(e)})}function MO(r){for(var e=0,t=0;t<r.length;++t)e+=r[t];return r.length%2===1?e*2:e}var r_,TO,EO,n_=T(()=>{"use strict";sO();uu();I();we();Go();wO();wn();r_=new oO,TO=new An(100),EO=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"]});function b5(r,e){r.eachRawSeries(function(t){if(!r.isSeriesFiltered(t)){var n=t.getData();n.hasItemVisual()&&n.each(function(o){var s=n.getItemVisual(o,"decal");if(s){var l=n.ensureUniqueItemVisual(o,"style");l.decal=Xf(s,e)}});var i=n.getVisual("decal");if(i){var a=n.getVisual("style");a.decal=Xf(i,e)}}})}var DO,LO=T(()=>{"use strict";n_();ne();DO=Qs(b5)});function WO(r){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(this.isDisposed()){this.id;return}return qO(this,r,e)}}function YO(r){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return qO(this,r,e)}}function qO(r,e,t){return t[0]=t[0]&&t[0].toLowerCase(),Kt.prototype[e].apply(r,t)}function QO(r,e,t){var n=!(t&&t.ssr);if(n){var i=z5(r);if(i)return i}var a=new jO(r,e,t);return a.id="ec_"+k5++,Kf[a.id]=a,n&&kg(r,g_,a.id),ZO(a),Lr.trigger("afterinit",a),a}function z5(r){return Kf[f1(r,g_)]}function eI(r,e){JO[r]=e}function y_(r){de(h_,r)<0&&h_.push(r)}function x_(r,e){__(p_,r,e,C5)}function tI(r){wv("afterinit",r)}function rI(r){wv("afterupdate",r)}function wv(r,e){Lr.on(r,e)}function os(r,e,t){var n,i,a,o,s;j(e)&&(t=e,e=""),Y(r)?(n=r.type,i=r.event,o=r.update,s=r.publishNonRefinedEvent,t||(t=r.action),a=r.refineEvent):(n=r,i=e);function l(f){return f.toLowerCase()}i=l(i||n);var u=a?l(n):i;_v[n]||(it(OO.test(n)&&OO.test(i)),a&&it(i!==n),_v[n]={actionType:n,refinedEventType:i,nonRefinedEventType:u,update:o,action:t,refineEvent:a},c_[i]=1,a&&s&&(c_[u]=1),f_[u]=n)}function nI(r,e){cf.register(r,e)}function iI(r,e){__(bv,r,e,VO,"layout",!0)}function Ea(r,e){__(bv,r,e,HO,"visual",!0)}function __(r,e,t,n,i,a){if((j(e)||Y(e))&&(t=e,e=n),!(de(FO,t)>=0)){FO.push(t);var o=qx.wrapStageHandler(t,i);o.__prio=e,o.__raw=t,r.push(o)}}function b_(r,e){d_[r]=e}function aI(r,e,t){var n=nO("registerMap");n&&n(r,e,t)}function S_(r,e,t,n){return{eventContent:{selected:N1(t),isFromClick:e.isFromClick||!1}}}var S5,w5,T5,E5,A5,C5,PO,VO,M5,v_,HO,D5,Sv,L5,P5,O5,GO,$O,gt,mv,Ct,i_,OO,a_,IO,I5,R5,XO,KO,as,o_,gv,Di,yv,s_,l_,Fl,Vl,RO,NO,u_,kO,xv,zO,ZO,Yr,BO,Hl,jO,m_,N5,_v,f_,c_,p_,h_,bv,JO,d_,Kf,UO,k5,moe,g_,FO,oI,w_=T(()=>{"use strict";ee();ov();I();Or();Dx();to();Vx();Fp();Io();vP();wP();EP();Ho();Mi();Wo();ze();wr();Un();ne();$d();IP();RP();BP();GP();Tn();WP();Jt();KP();JP();fx();x0();e0();QP();eO();wn();Kx();H0();Fx();LO();S5=1,w5=800,T5=900,E5=920,A5=1e3,C5=2e3,PO=5e3,VO=1e3,M5=1100,v_=2e3,HO=3e3,D5=4e3,Sv=4500,L5=4600,P5=5e3,O5=6e3,GO=7e3,$O={PROCESSOR:{SERIES_FILTER:w5,AXIS_STATISTICS:E5,FILTER:A5,STATISTIC:PO,STATISTICS:PO},VISUAL:{LAYOUT:VO,PROGRESSIVE_LAYOUT:M5,GLOBAL:v_,CHART:HO,POST_CHART_LAYOUT:L5,COMPONENT:D5,BRUSH:P5,CHART_ITEM:Sv,ARIA:O5,DECAL:GO}},gt="__flagInMainProcess",mv="__mainProcessVersion",Ct="__pendingUpdate",i_="__needsUpdateStatus",OO=/^[a-zA-Z0-9_]+$/,a_="__connectUpdateStatus",IO=0,I5=1,R5=2;XO=(function(r){R(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e})(Kt),KO=XO.prototype;KO.on=YO("on");KO.off=YO("off");jO=(function(r){R(e,r);function e(t,n,i){var a=r.call(this,new $P)||this;a._chartsViews=[],a._chartsMap={},a._componentsViews=[],a._componentsMap={},a._pendingActions=[],i=i||{},a.__v_skip=!0,a._dom=t;var o="canvas",s="auto",l=!1;if(a[mv]=1,0)var u;i.ssr&&nP(function(h){var d=ye(h),v=d.dataIndex;if(v!=null){var m=X();return m.set("series_index",d.seriesIndex),m.set("data_index",v),d.ssrType&&m.set("ssr_type",d.ssrType),m}});var f=a._zr=Ux(t,{renderer:i.renderer||o,devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:$(i.useDirtyRect,l),useCoarsePointer:$(i.useCoarsePointer,s),pointerSize:i.pointerSize});a._ssr=i.ssr,a._throttledZrFlush=Rf(Le(f.flush,f),17),a._updateTheme(n),a._locale=zA(i.locale||Ph),a._coordSysMgr=new cf;var c=a._api=zO(a);function p(h,d){return h.__prio-d.__prio}return rs(bv,p),rs(p_,p),a._scheduler=new qx(a,c,p_,bv),a._messageCenter=new XO,a._initEvents(),a.resize=Le(a.resize,a),f.animation.on("frame",a._onframe,a),RO(f,a),NO(f,a),Ba(a),a}return e.prototype._onframe=function(){if(!this._disposed){var t=this._scheduler,n=this._model,i=this._api;if(BO(this),this[Ct]){var a=this[Ct].silent;this[gt]=!0,Hl(this);try{as(this),Di.update.call(this,null,this[Ct].updateParams)}catch(l){throw this[gt]=!1,this[Ct]=null,l}this._zr.flush(),this[gt]=!1,this[Ct]=null,Fl.call(this,a),Vl.call(this,a)}else if(t.unfinished){var o=S5;do{t.unfinished=!1;var s=zt.getTime();t.performSeriesTasks(n),t.performDataProcessorTasks(n),s_(this,n),t.performVisualTasks(n),xv(this,this._model,i,"remain",{}),o-=zt.getTime()-s}while(o>0&&t.unfinished);t.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(t,n,i){if(!this[gt]){if(this._disposed){this.id;return}var a,o,s;if(Y(n)&&(i=n.lazyUpdate,a=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[gt]=!0,Hl(this),!this._model||n){var l=new dP(this._api),u=this._theme,f=this._model=new uv;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(t,{replaceMerge:o},h_);var c={seriesTransition:s,optionChanged:!0};if(i)this[Ct]={silent:a,updateParams:c},this[gt]=!1,this.getZr().wakeUp();else{try{as(this),Di.update.call(this,null,c)}catch(p){throw this[Ct]=null,this[gt]=!1,p}this._ssr||this._zr.flush(),this[Ct]=null,this[gt]=!1,Fl.call(this,a),Vl.call(this,a)}}},e.prototype.setTheme=function(t,n){if(!this[gt]){if(this._disposed){this.id;return}var i=this._model;if(i){var a=n&&n.silent,o=null;this[Ct]&&(a==null&&(a=this[Ct].silent),o=this[Ct].updateParams,this[Ct]=null),this[gt]=!0,Hl(this);try{this._updateTheme(t),i.setTheme(this._theme),as(this),Di.update.call(this,{type:"setTheme"},o)}catch(s){throw this[gt]=!1,s}this[gt]=!1,Fl.call(this,a),Vl.call(this,a)}}},e.prototype._updateTheme=function(t){G(t)&&(t=JO[t]),t&&(t=ue(t),t&&fv(t,!0),this._theme=t)},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||Pe.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){t=t||{};var n=this._zr.painter;return n.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){t=t||{};var n=this._zr.painter;return n.renderToString({useViewBox:t.useViewBox})},e.prototype.getSvgDataURL=function(){var t=this._zr,n=t.storage.getDisplayList();return A(n,function(i){i.stopAnimation(null,!0)}),t.painter.toDataURL()},e.prototype.getDataURL=function(t){if(this._disposed){this.id;return}t=t||{};var n=t.excludeComponents,i=this._model,a=[],o=this;A(n,function(l){i.eachComponent({mainType:l},function(u){var f=o._componentsMap[u.__viewId];f.group.ignore||(a.push(f),f.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return A(a,function(l){l.group.ignore=!1}),s},e.prototype.getConnectedDataURL=function(t){if(this._disposed){this.id;return}var n=t.type==="svg",i=this.group,a=Math.min,o=Math.max,s=1/0;if(UO[i]){var l=s,u=s,f=-s,c=-s,p=[],h=t&&t.pixelRatio||this.getDevicePixelRatio();A(Kf,function(x,_){if(x.group===i){var b=n?x.getZr().painter.getSvgDom().innerHTML:x.renderToCanvas(ue(t)),S=x.getDom().getBoundingClientRect();l=a(S.left,l),u=a(S.top,u),f=o(S.right,f),c=o(S.bottom,c),p.push({dom:b,left:S.left,top:S.top})}}),l*=h,u*=h,f*=h,c*=h;var d=f-l,v=c-u,m=zt.createCanvas(),g=Ux(m,{renderer:n?"svg":"canvas"});if(g.resize({width:d,height:v}),n){var y="";return A(p,function(x){var _=x.left-l,b=x.top-u;y+='<g transform="translate('+_+","+b+')">'+x.dom+"</g>"}),g.painter.getSvgRoot().innerHTML=y,t.connectedBackgroundColor&&g.painter.setBackgroundColor(t.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}else return t.connectedBackgroundColor&&g.add(new Oe({shape:{x:0,y:0,width:d,height:v},style:{fill:t.connectedBackgroundColor}})),A(p,function(x){var _=new Ut({style:{x:x.left*h-l,y:x.top*h-u,image:x.dom}});g.add(_)}),g.refreshImmediately(),m.toDataURL("image/"+(t&&t.type||"png"))}else return this.getDataURL(t)},e.prototype.convertToPixel=function(t,n,i){return yv(this,"convertToPixel",t,n,i)},e.prototype.convertToLayout=function(t,n,i){return yv(this,"convertToLayout",t,n,i)},e.prototype.convertFromPixel=function(t,n,i){return yv(this,"convertFromPixel",t,n,i)},e.prototype.containPixel=function(t,n){if(this._disposed){this.id;return}var i=this._model,a,o=Op(i,t);return A(o,function(s,l){l.indexOf("Models")>=0&&A(s,function(u){var f=u.coordinateSystem;if(f&&f.containPoint)a=a||!!f.containPoint(n);else if(l==="seriesModels"){var c=this._chartsMap[u.__viewId];c&&c.containPoint&&(a=a||c.containPoint(n,u))}},this)},this),!!a},e.prototype.getVisual=function(t,n){var i=this._model,a=Op(i,t,{defaultMainType:"series"}),o=a.seriesModel,s=o.getData(),l=a.hasOwnProperty("dataIndexInside")?a.dataIndexInside:a.hasOwnProperty("dataIndex")?s.indexOfRawIndex(a.dataIndex):null;return l!=null?ZP(s,l,n):jP(s,n)},e.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},e.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},e.prototype._initEvents=function(){var t=this;A(N5,function(i){var a=function(o){var s=t.getModel(),l=o.target,u,f=i==="globalout";if(f?u={}:l&&Yf(l,function(v){var m=ye(v);if(m&&m.dataIndex!=null){var g=m.dataModel||s.getSeriesByIndex(m.seriesIndex);return u=g&&g.getDataParams(m.dataIndex,m.dataType,l)||{},!0}else if(m.eventData)return u=k({},m.eventData),!0},!0),u){var c=u.componentType,p=u.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",p=u.seriesIndex);var h=c&&p!=null&&s.getComponent(c,p),d=h&&t[h.mainType==="series"?"_chartsMap":"_componentsMap"][h.__viewId];u.event=o,u.type=i,t._$eventProcessor.eventInfo={targetEl:l,packedEvent:u,model:h,view:d},t.trigger(i,u)}};a.zrEventfulCallAtLast=!0,t._zr.on(i,a,t)});var n=this._messageCenter;A(c_,function(i,a){n.on(a,function(o){t.trigger(a,o)})}),nL(n,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 t=this.getDom();t&&kg(this.getDom(),g_,"");var n=this,i=n._api,a=n._model;A(n._componentsViews,function(o){o.dispose(a,i)}),A(n._chartsViews,function(o){o.dispose(a,i)}),n._zr.dispose(),n._dom=n._model=n._chartsMap=n._componentsMap=n._chartsViews=n._componentsViews=n._scheduler=n._api=n._zr=n._throttledZrFlush=n._theme=n._coordSysMgr=n._messageCenter=null,delete Kf[n.id]},e.prototype.resize=function(t){if(!this[gt]){if(this._disposed){this.id;return}this._zr.resize(t);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var i=n.resetOption("media"),a=t&&t.silent;this[Ct]&&(a==null&&(a=this[Ct].silent),i=!0,this[Ct]=null),this[gt]=!0,Hl(this);try{i&&as(this),Di.update.call(this,{type:"resize",animation:k({duration:0},t&&t.animation)})}catch(o){throw this[gt]=!1,o}this[gt]=!1,Fl.call(this,a),Vl.call(this,a)}}},e.prototype.showLoading=function(t,n){if(this._disposed){this.id;return}if(Y(t)&&(n=t,t=""),t=t||"default",this.hideLoading(),!!d_[t]){var i=d_[t](this._api,n),a=this._zr;this._loadingFX=i,a.add(i)}},e.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(t){var n=k({},t);return n.type=f_[t.type],n},e.prototype.dispatchAction=function(t,n){if(this._disposed){this.id;return}if(Y(n)||(n={silent:!!n}),!!_v[t.type]&&this._model){if(this[gt]){this._pendingActions.push(t);return}var i=n.silent;l_.call(this,t,i);var a=n.flush;a?this._zr.flush():a!==!1&&Pe.browser.weChat&&this._throttledZrFlush(),Fl.call(this,i),Vl.call(this,i)}},e.prototype.updateLabelLayout=function(){Lr.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed){this.id;return}var n=t.seriesIndex,i=this.getModel(),a=i.getSeriesByIndex(n);a.appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=(function(){as=function(c){SM(c._model);var p=c._scheduler;p.restorePipelines(c._zr,c._model),p.prepareStageTasks(),o_(c,!0),o_(c,!1),p.plan()},o_=function(c,p){for(var h=c._model,d=c._scheduler,v=p?c._componentsViews:c._chartsViews,m=p?c._componentsMap:c._chartsMap,g=c._zr,y=c._api,x=0;x<v.length;x++)v[x].__alive=!1;p?h.eachComponent(function(S,w){S!=="series"&&_(w)}):h.eachSeries(_);function _(S){var w=S.__requireNewView;S.__requireNewView=!1;var C="_ec_"+S.id+"_"+S.type,M=!w&&m[C];if(!M){var E=fr(S.type),D=p?Nt.getClass(E.main,E.sub):It.getClass(E.sub);M=new D,M.init(h,y),m[C]=M,v.push(M),g.add(M.group)}S.__viewId=M.__id=C,M.__alive=!0,M.__model=S,M.group.__ecComponentInfo={mainType:S.mainType,index:S.componentIndex},!p&&d.prepareView(M,S,h,y)}for(var x=0;x<v.length;){var b=v[x];b.__alive?x++:(!p&&b.renderTask.dispose(),g.remove(b.group),b.dispose(h,y),v.splice(x,1),m[b.__id]===b&&delete m[b.__id],b.__id=b.group.__ecComponentInfo=null)}},gv=function(c,p,h,d,v){var m=c._model;if(m.setUpdatePayload(h),!d){A([].concat(c._componentsViews).concat(c._chartsViews),_);return}var g=u1(h,d,v),y=h.excludeSeriesId,x;y!=null&&(x=X(),A(Ke(y),function(b){var S=Sr(b,null);S!=null&&x.set(S,!0)})),m&&m.eachComponent(g,function(b){var S=x&&x.get(b.id)!=null;if(!S)if(jg(h))if(b instanceof er)h.type===sa&&!h.notBlur&&!b.get(["emphasis","disabled"])&&P1(b,h,c._api);else{var w=Wp(b.mainType,b.componentIndex,h.name,c._api),C=w.focusSelf,M=w.dispatchers;h.type===sa&&C&&!h.notBlur&&Vp(b.mainType,b.componentIndex,c._api),M&&A(M,function(E){h.type===sa?mo(E):go(E)})}else qp(h)&&b instanceof er&&(R1(b,h,c._api),Zg(b),Yr(c))},c),m&&m.eachComponent(g,function(b){var S=x&&x.get(b.id)!=null;S||_(c[d==="series"?"_chartsMap":"_componentsMap"][b.__viewId])},c);function _(b){b&&b.__alive&&b[p]&&b[p](b.__model,m,c._api,h)}},Di={prepareAndUpdate:function(c){as(this),Di.update.call(this,c,c&&{optionChanged:c.newOption!=null})},update:function(c,p){var h=this._model,d=this._api,v=this._zr,m=this._coordSysMgr,g=this._scheduler;if(h){wM(h),h.setUpdatePayload(c),g.restoreData(h,c),g.performSeriesTasks(h),m.create(h,d),Lr.trigger("coordsys:aftercreate",h,d),g.performDataProcessorTasks(h,c),s_(this,h),m.update(h,d),n(h),g.performVisualTasks(h,c);var y=h.get("backgroundColor")||"transparent";v.setBackgroundColor(y);var x=h.get("darkMode");x!=null&&x!=="auto"&&v.setDarkMode(x),u_(this,h,d,c,p),Lr.trigger("afterupdate",h,d)}},updateTransform:function(c){var p=this,h=p._model,d=p._api;if(h){h.setUpdatePayload(c);var v=[];h.eachComponent(function(g,y){if(g!==zp){var x=p.getViewOfComponentModel(y);if(x&&x.__alive)if(x.updateTransform){var _=x.updateTransform(y,h,d,c);_&&_.update&&v.push(x)}else v.push(x)}});var m=X();h.eachSeries(function(g){var y=p._chartsMap[g.__viewId],x=g.pipelineContext;if(y.updateTransform&&!x.progressiveRender){var _=y.updateTransform(g,h,d,c);_&&_.update&&m.set(g.uid,1)}else m.set(g.uid,1)}),p._scheduler.performVisualTasks(h,c,{setDirty:!0,dirtyMap:m}),xv(p,h,d,c,{},m),Lr.trigger("afterupdate",h,d)}},updateView:function(c){var p=this._model;p&&(p.setUpdatePayload(c),It.markUpdateMethod(c,"updateView"),n(p),this._scheduler.performVisualTasks(p,c,{setDirty:!0}),u_(this,p,this._api,c,{}),Lr.trigger("afterupdate",p,this._api))},updateVisual:function(c){var p=this,h=this._model;h&&(h.setUpdatePayload(c),h.eachSeries(function(d){d.getData().clearAllVisual()}),It.markUpdateMethod(c,"updateVisual"),n(h),this._scheduler.performVisualTasks(h,c,{visualType:"visual",setDirty:!0}),h.eachComponent(function(d,v){if(d!=="series"){var m=p.getViewOfComponentModel(v);m&&m.__alive&&m.updateVisual(v,h,p._api,c)}}),h.eachSeries(function(d){var v=p._chartsMap[d.__viewId];v.updateVisual(d,h,p._api,c)}),Lr.trigger("afterupdate",h,this._api))},updateLayout:function(c){Di.update.call(this,c)}};function t(c,p,h,d,v){if(c._disposed){c.id;return}for(var m=c._model,g=c._coordSysMgr.getCoordinateSystems(),y,x=Op(m,h),_=0;_<g.length;_++){var b=g[_];if(b[p]&&(y=b[p](m,x,d,v))!=null)return y}}yv=t,s_=function(c,p){var h=c._chartsMap,d=c._scheduler;p.eachSeries(function(v){d.updateStreamModes(v,h[v.__viewId])})},l_=function(c,p){var h=this,d=this.getModel(),v=c.type,m=c.escapeConnect,g=_v[v],y=(g.update||"update").split(":"),x=y.pop(),_=y[0]!=null&&fr(y[0]);this[gt]=!0,Hl(this);var b=[c],S=!1;c.batch&&(S=!0,b=F(c.batch,function(N){return N=fe(k({},N),c),N.batch=null,N}));var w=[],C,M=[],E=g.nonRefinedEventType,D=qp(c),P=jg(c);if(P&&Kg(this._api),A(b,function(N){var V=g.action(N,d,h._api);if(g.refineEvent?M.push(V):C=V,C=C||k({},N),C.type=E,w.push(C),P){var B=Ng(c),H=B.queryOptionMap,W=B.mainTypeSpecified,K=W?H.keys()[0]:"series";gv(h,x,N,K),Yr(h)}else D?(gv(h,x,N,"series"),Yr(h)):_&&gv(h,x,N,_.main,_.sub)}),x!=="none"&&!P&&!D&&!_)try{this[Ct]?(as(this),Di.update.call(this,c),this[Ct]=null):Di[x].call(this,c)}catch(N){throw this[gt]=!1,N}if(S?C={type:E,escapeConnect:m,batch:w}:C=w[0],this[gt]=!1,!p){var L=void 0;if(g.refineEvent){var O=g.refineEvent(M,c,d,this._api).eventContent;it(Y(O)),L=fe({type:g.refinedEventType},O),L.fromAction=c.type,L.fromActionPayload=c,L.escapeConnect=!0}var z=this._messageCenter;z.trigger(C.type,C),L&&z.trigger(L.type,L)}},Fl=function(c){for(var p=this._pendingActions;p.length;){var h=p.shift();l_.call(this,h,c)}},Vl=function(c){!c&&this.trigger("updated")},RO=function(c,p){c.on("rendered",function(h){p.trigger("rendered",h),c.animation.isFinished()&&!p[Ct]&&!p._scheduler.unfinished&&!p._pendingActions.length?p.trigger("finished"):c.refresh()})},NO=function(c,p){c.on("mouseover",function(h){var d=h.target,v=Yf(d,$u);v&&(O1(v,h,p._api),Yr(p))}).on("mouseout",function(h){var d=h.target,v=Yf(d,$u);v&&(I1(v,h,p._api),Yr(p))}).on("click",function(h){var d=h.target,v=Yf(d,function(y){return ye(y).dataIndex!=null},!0);if(v){var m=v.selected?"unselect":"select",g=ye(v);p._api.dispatchAction({type:m,dataType:g.dataType,dataIndexInside:g.dataIndex,seriesIndex:g.seriesIndex,isFromClick:!0})}})};function n(c){c.clearColorPalette(),c.eachSeries(function(p){p.clearColorPalette()})}function i(c){var p=[],h=[],d=!1;if(c.eachComponent(function(y,x){var _=x.get("zlevel")||0,b=x.get("z")||0,S=x.getZLevelKey();d=d||!!S,(y==="series"?h:p).push({zlevel:_,z:b,idx:x.componentIndex,type:y,key:S})}),d){var v=p.concat(h),m,g;rs(v,function(y,x){return y.zlevel===x.zlevel?y.z-x.z:y.zlevel-x.zlevel}),A(v,function(y){var x=c.getComponent(y.type,y.idx),_=y.zlevel,b=y.key;m!=null&&(_=Math.max(m,_)),b?(_===m&&b!==g&&_++,g=b):g&&(_===m&&_++,g=""),m=_,x.setZLevel(_)})}}u_=function(c,p,h,d,v){i(p),kO(c,p,h,d,v),A(c._chartsViews,function(m){m.__alive=!1}),xv(c,p,h,d,v),A(c._chartsViews,function(m){m.__alive||m.remove(p,h)})},kO=function(c,p,h,d,v,m){A(m||c._componentsViews,function(g){var y=g.__model;u(y,g),g.render(y,p,h,d),l(y,g),f(y,g)})},xv=function(c,p,h,d,v,m){var g=c._scheduler;v=k(v||{},{updatedSeries:p.getSeries()}),Lr.trigger("series:beforeupdate",p,h,v);var y=!1;p.eachSeries(function(x){var _=c._chartsMap[x.__viewId];_.__alive=!0;var b=_.renderTask;g.updatePayload(b,d),u(x,_),m&&m.get(x.uid)&&b.dirty(),b.perform(g.getPerformArgs(b))&&(y=!0),_.group.silent=!!x.get("silent"),s(x,_),Zg(x)}),g.unfinished=y||g.unfinished,Lr.trigger("series:layoutlabels",p,h,v),Lr.trigger("series:transition",p,h,v),p.eachSeries(function(x){var _=c._chartsMap[x.__viewId];l(x,_),f(x,_)}),o(c,p),Lr.trigger("series:afterupdate",p,h,v)},Yr=function(c){c[i_]=!0,c.getZr().wakeUp()},Hl=function(c){c[mv]=(c[mv]+1)%1e6},BO=function(c){c[i_]&&(c.getZr().storage.traverse(function(p){gi(p)||a(p)}),c[i_]=!1)};function a(c){for(var p=[],h=c.currentStates,d=0;d<h.length;d++){var v=h[d];v==="emphasis"||v==="blur"||v==="select"||p.push(v)}c.selected&&c.states.select&&p.push("select"),c.hoverState===Fu&&c.states.emphasis?p.push("emphasis"):c.hoverState===Uu&&c.states.blur&&p.push("blur"),c.useStates(p)}function o(c,p){var h=c._zr;if(h.painter.type==="canvas"){var d=h.storage,v=0;d.traverse(function(g){g.isGroup||v++});var m=v>$(p.get("hoverLayerThreshold"),sv.hoverLayerThreshold)&&!Pe.node&&!Pe.worker;(c._usingTHL||m)&&(p.eachSeries(function(g){if(!g.preventUsingHoverLayer){var y=c._chartsMap[g.__viewId];y.__alive&&y.eachRendered(function(x){var _=x.states.emphasis;_&&_.hoverLayer!==Ju&&(_.hoverLayer=m?my:vy)})}}),c._usingTHL=m)}}function s(c,p){var h=c.get("blendMode")||null;p.eachRendered(function(d){d.isGroup||(d.style.blend=h)})}function l(c,p){if(!c.preventAutoZ){var h=xy(c);p.eachRendered(function(d){return _y(d,h.z,h.zlevel),!0})}}function u(c,p){p.eachRendered(function(h){if(!gi(h)){var d=h.getTextContent(),v=h.getTextGuideLine();h.stateTransition&&(h.stateTransition=null),d&&d.stateTransition&&(d.stateTransition=null),v&&v.stateTransition&&(v.stateTransition=null),h.hasState()?(h.prevStates=h.currentStates,h.clearStates()):h.prevStates&&(h.prevStates=null)}})}function f(c,p){var h=c.getModel("stateAnimation"),d=c.isAnimationEnabled(),v=h.get("duration"),m=v>0?{duration:v,delay:h.get("delay"),easing:h.get("easing")}:null;p.eachRendered(function(g){if(g.states&&g.states.emphasis){if(gi(g))return;if(g instanceof le&&B1(g),g.__dirty){var y=g.prevStates;y&&g.useStates(y)}if(d){g.stateTransition=m;var x=g.getTextContent(),_=g.getTextGuideLine();x&&(x.stateTransition=m),_&&(_.stateTransition=m)}g.__dirty&&a(g)}})}zO=function(c){return new((function(p){R(h,p);function h(){return p!==null&&p.apply(this,arguments)||this}return h.prototype.getCoordinateSystems=function(){return c._coordSysMgr.getCoordinateSystems()},h.prototype.getComponentByElement=function(d){for(;d;){var v=d.__ecComponentInfo;if(v!=null)return c._model.getComponent(v.mainType,v.index);d=d.parent}},h.prototype.enterEmphasis=function(d,v){mo(d,v),Yr(c)},h.prototype.leaveEmphasis=function(d,v){go(d,v),Yr(c)},h.prototype.enterBlur=function(d){D1(d),Yr(c)},h.prototype.leaveBlur=function(d){Yg(d),Yr(c)},h.prototype.enterSelect=function(d){qg(d),Yr(c)},h.prototype.leaveSelect=function(d){Xg(d),Yr(c)},h.prototype.getModel=function(){return c.getModel()},h.prototype.getViewOfComponentModel=function(d){return c.getViewOfComponentModel(d)},h.prototype.getViewOfSeriesModel=function(d){return c.getViewOfSeriesModel(d)},h.prototype.getECUpdateCycleVersion=function(){return c[mv]},h.prototype.usingTHL=function(){return c._usingTHL},h})(Up))(c)},ZO=function(c){function p(h,d){for(var v=0;v<h.length;v++){var m=h[v];m[a_]=d}}A(f_,function(h,d){c._messageCenter.on(d,function(v){if(UO[c.group]&&c[a_]!==IO){if(v&&v.escapeConnect)return;var m=c.makeActionFromEvent(v),g=[];A(Kf,function(y){y!==c&&y.group===c.group&&g.push(y)}),p(g,IO),A(g,function(y){y[a_]!==I5&&y.dispatchAction(m)}),p(g,R5)}})})}})(),e})(Kt),m_=jO.prototype;m_.on=WO("on");m_.off=WO("off");m_.one=function(r,e,t){var n=this;function i(){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];e&&e.apply&&e.apply(this,a),n.off(r,i)}this.on.call(this,r,i,t)};N5=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"],_v={},f_={},c_={},p_=[],h_=[],bv=[],JO={},d_={},Kf={},UO={},k5=+new Date-0,moe=+new Date-0,g_="_echarts_instance_";FO=[];oI=nC;Ea(v_,LP);Ea(Sv,PP);Ea(Sv,OP);Ea(v_,qP);Ea(Sv,XP);Ea(GO,DO);y_(fv);x_(T5,TP);b_("default",Yx);os({type:sa,event:sa,update:sa},at);os({type:Vu,event:Vu,update:Vu},at);os({type:Hu,event:Gp,update:Hu,action:at,refineEvent:S_,publishNonRefinedEvent:!0});os({type:Hp,event:Gp,update:Hp,action:at,refineEvent:S_,publishNonRefinedEvent:!0});os({type:Gu,event:Gp,update:Gu,action:at,refineEvent:S_,publishNonRefinedEvent:!0});eI("default",{});eI("dark",HP)});function Wt(r){if(U(r)){A(r,function(e){Wt(e)});return}de(sI,r)>=0||(sI.push(r),j(r)&&(r={install:r}),r.install(B5))}var sI,B5,ss=T(()=>{"use strict";w_();Mi();Wo();qn();Ho();I();Kx();ov();aO();sI=[],B5={registerPreprocessor:y_,registerProcessor:x_,registerPostInit:tI,registerPostUpdate:rI,registerUpdateLifecycle:wv,registerAction:os,registerCoordinateSystem:nI,registerLayout:iI,registerVisual:Ea,registerTransform:oI,registerLoading:b_,registerMap:aI,registerImpl:rO,PRIORITY:$O,ComponentModel:Re,ComponentView:Nt,SeriesModel:er,ChartView:It,registerComponentModel:function(r){Re.registerClass(r)},registerComponentView:function(r){Nt.registerClass(r)},registerSeriesModel:function(r){er.registerClass(r)},registerChartView:function(r){It.registerClass(r)},registerCustomSeries:function(r,e){iO(r,e)},registerSubTypeDefaulter:function(r,e){Re.registerSubTypeDefaulter(r,e)},registerPainter:function(r,e){tP(r,e)}}});var U5,lI,uI=T(()=>{"use strict";ee();pf();Ho();Gt();U5=(function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t,n){return ca(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var t=this.option.progressive;return t??(this.option.large?5e3:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return t??(this.option.large?1e4:this.get("progressiveThreshold"))},e.prototype.brushSelector=function(t,n,i){return i.point(n.getItemLayout(t))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar","matrix"],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:ie.color.primary}},universalTransition:{divideShape:"clone"}},e})(er),lI=U5});var fI,F5,V5,H5,cI,pI=T(()=>{"use strict";ee();ze();Go();wr();fI=4,F5=(function(){function r(){}return r})(),V5=(function(r){R(e,r);function e(t){var n=r.call(this,t)||this;return n._off=0,n.hoverDataIdx=-1,n}return e.prototype.getDefaultShape=function(){return new F5},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.beforeBrush=function(t){t&&!t.contentRetained&&this.reset()},e.prototype.buildPath=function(t,n){var i=n.points,a=n.size,o=this.symbolProxy,s=o.shape,l=t.getContext?t.getContext():t,u=l&&a[0]<fI,f=this.softClipShape,c;if(u){this._ctx=l;return}for(this._ctx=null,c=this._off;c<i.length;){var p=i[c++],h=i[c++];isNaN(p)||isNaN(h)||f&&!f.contain(p,h)||(s.x=p-a[0]/2,s.y=h-a[1]/2,s.width=a[0],s.height=a[1],o.buildPath(t,s,!0))}this.incremental&&(this._off=c,this.notClear=!0)},e.prototype.afterBrush=function(){var t=this.shape,n=t.points,i=t.size,a=this._ctx,o=this.softClipShape,s;if(a){for(s=this._off;s<n.length;){var l=n[s++],u=n[s++];isNaN(l)||isNaN(u)||o&&!o.contain(l,u)||a.fillRect(l-i[0]/2,u-i[1]/2,i[0],i[1])}this.incremental&&(this._off=s,this.notClear=!0)}},e.prototype.findDataIndex=function(t,n){for(var i=this.shape,a=i.points,o=i.size,s=Math.max(o[0],4),l=Math.max(o[1],4),u=a.length/2-1;u>=0;u--){var f=u*2,c=a[f]-s/2,p=a[f+1]-l/2;if(t>=c&&n>=p&&t<=c+s&&n<=p+l)return u}return-1},e.prototype.contain=function(t,n){var i=this.transformCoordToLocal(t,n),a=this.getBoundingRect();if(t=i[0],n=i[1],a.contain(t,n)){var o=this.hoverDataIdx=this.findDataIndex(t,n);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var n=this.shape,i=n.points,a=n.size,o=a[0],s=a[1],l=1/0,u=1/0,f=-1/0,c=-1/0,p=0;p<i.length;){var h=i[p++],d=i[p++];l=Math.min(h,l),f=Math.max(h,f),u=Math.min(d,u),c=Math.max(d,c)}t=this._rect=new se(l-o/2,u-s/2,f-l+o,c-u+s)}return t},e})(le),H5=(function(){function r(){this.group=new Ie}return r.prototype.updateData=function(e,t){this._clear(),this._data=e;var n=this._create();n.setShape({points:e.getLayout("points")}),this._setCommon(n,e,t)},r.prototype.updateLayout=function(e){var t=this._data;if(t){var n=t.getLayout("points");this.group.eachChild(function(i){if(i.startIndex!=null){var a=(i.endIndex-i.startIndex)*2,o=i.startIndex*4*2;n=new Float32Array(n.buffer,o,a)}i.setShape("points",n),i.reset(),i.stopAnimation()})}},r.prototype.incrementalPrepareUpdate=function(e){this._clear()},r.prototype.incrementalUpdate=function(e,t,n,i){var a=this._newAdded[0],o=t.getLayout("points"),s=a&&a.shape.points;if(s&&s.length<2e4){var l=s.length,u=new Float32Array(l+o.length);u.set(s),u.set(o,l),a.endIndex=e.end,a.setShape({points:u})}else{this._newAdded=[];var f=this._create();f.startIndex=e.start,f.endIndex=e.end,f.incremental=n,f.setShape({points:o}),this._setCommon(f,t,i)}},r.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},r.prototype._create=function(){var e=new V5({cursor:"default"});return e.ignoreCoarsePointer=!0,this.group.add(e),this._newAdded.push(e),e},r.prototype._setCommon=function(e,t,n){var i=t.hostModel;n=n||{};var a=t.getVisual("symbolSize");e.setShape("size",a instanceof Array?a:[a,a]),e.softClipShape=n.clipShape||null,e.symbolProxy=Mr(t.getVisual("symbol"),0,0,0,0),e.setColor=e.symbolProxy.setColor;var o=e.shape.size[0]<fI;e.useStyle(i.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var s=t.getVisual("style"),l=s&&s.fill;l&&e.setColor(l);var u=ye(e);u.seriesIndex=i.seriesIndex,e.on("mousemove",function(f){u.dataIndex=null;var c=e.hoverDataIdx;c>=0&&(u.dataIndex=c+(e.startIndex||0))})},r.prototype.remove=function(){this._clear()},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r})(),cI=H5});function T_(r){return{clipShape:MC(r)}}var G5,hI,dI=T(()=>{"use strict";ee();A0();pI();Ad();Wo();ne();ld();G5=(function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,i){var a=t.getData(),o=this._updateSymbolDraw(a,t);o.updateData(a,T_(t)),this._finished=!0},e.prototype.incrementalPrepareRender=function(t,n,i){var a=t.getData(),o=this._updateSymbolDraw(a,t);o.incrementalPrepareUpdate(a),this._finished=!1},e.prototype.incrementalRender=function(t,n,i){this._symbolDraw.incrementalUpdate(t,n.getData(),Np(n),T_(n)),this._finished=t.end===n.getData().count()},e.prototype.updateTransform=function(t,n,i){var a=t.getData();if(this.group.dirty(),this._finished){var o=Ko("").reset(t,n,i);o.progress&&o.progress({start:0,end:a.count(),count:a.count()},a),this._symbolDraw.updateLayout(T_(t))}else return{update:!0}},e.prototype.eachRendered=function(t){this._symbolDraw&&this._symbolDraw.eachRendered(t)},e.prototype._updateSymbolDraw=function(t,n){var i=this._symbolDraw,a=n.pipelineContext,o=a.large;return(!i||o!==this._isLargeDraw)&&(i&&i.remove(),i=this._symbolDraw=o?new cI:new rd,this._isLargeDraw=o,this.group.removeAll()),this.group.add(i.group),i},e.prototype.remove=function(t,n){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e})(It);hI=G5});var vI,mI=T(()=>{"use strict";vI=(function(){function r(){}return r.prototype.needIncludeZero=function(){return!this.option.scale},r.prototype.getCoordSysModel=function(){},r})()});var Tv,gI=T(()=>{"use strict";ee();I();qn();mI();ne();Tv=(function(r){R(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Pt).models[0]},e.type="cartesian2dAxis",e})(Re);Yt(Tv,vI)});var yI,$5,E_,W5,Y5,xI,_I=T(()=>{"use strict";I();Gt();yI={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:"auto",onZeroAxisIndex:null,lineStyle:{color:ie.color.axisLine,width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15],breakLine:!0},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12,color:ie.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:ie.color.axisSplitLine,width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:[ie.color.backgroundTint,ie.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:ie.color.neutral00,borderColor:ie.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:"auto"}},$5=Ee({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto",show:"auto"},axisLabel:{interval:"auto"}},yI),E_=Ee({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:ie.color.axisMinorSplitLine,width:1}}},yI),W5=Ee({splitNumber:6,axisLabel:{rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},E_),Y5=fe({logBase:10},E_),xI={category:$5,value:E_,time:W5,log:Y5}});function Ev(r,e,t,n){A(_d,function(i,a){var o=Ee(Ee({},xI[a],!0),n,!0),s=(function(l){R(u,l);function u(){var f=l!==null&&l.apply(this,arguments)||this;return f.type=e+"Axis."+a,f}return u.prototype.mergeDefaultAndTheme=function(f,c){var p=da(this),h=p?Yn(f):{},d=c.getTheme();Ee(f,d.get(a+"Axis")),Ee(f,this.getDefaultOption()),f.type=bI(f),p&&Cr(f,h,p)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=gf.createByAxisModel(this))},u.prototype.getCategories=function(f){var c=this.option;if(c.type==="category")return f?c.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.prototype.updateAxisBreaks=function(f){var c=jo();return c?c.updateModelAxisBreak(this,f):{breaks:[]}},u.type=e+"Axis."+a,u.defaultOption=o,u})(t);r.registerComponentModel(s)}),r.registerSubTypeDefaulter(e+"Axis",bI)}function bI(r){return r.type||(r.data?"category":"value")}var SI=T(()=>{"use strict";ee();_I();un();I0();k0();I();zd()});var q5,wI,TI=T(()=>{"use strict";I();q5=(function(){function r(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return r.prototype.getAxis=function(e){return this._axes[e]},r.prototype.getAxes=function(){return F(this._dimList,function(e){return this._axes[e]},this)},r.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),Fe(this.getAxes(),function(t){return t.scale.type===e})},r.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},r})(),wI=q5});function EI(r){return(r.type==="interval"||r.type==="time")&&!zo(r)}var Zf,X5,AI,CI=T(()=>{"use strict";ee();Tt();TI();If();ni();cr();fn();ln();Zf=["x","y"];X5=(function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=Gr,t.dimensions=Zf,t}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!EI(t)||!EI(n))){var i=Yo(t,null),a=Yo(n,null),o=this.dataToPoint([i[0],a[0]]),s=this.dataToPoint([i[1],a[1]]),l=i[1]-i[0],u=a[1]-a[0];if(!(!l||!u)){var f=(s[0]-o[0])/l,c=(s[1]-o[1])/u,p=o[0]-i[0]*f,h=o[1]-a[0]*c,d=this._transform=[f,0,0,c,p,h];this._invTransform=Ir([],d)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var n=this.getAxis("x"),i=this.getAxis("y");return n.contain(n.toLocalCoord(t[0]))&&i.contain(i.toLocalCoord(t[1]))},e.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},e.prototype.containZone=function(t,n){var i=this.dataToPoint(t),a=this.dataToPoint(n),o=this.getArea(),s=new se(i[0],i[1],a[0]-i[0],a[1]-i[1]);return o.intersect(s)},e.prototype.dataToPoint=function(t,n,i){i=i||[];var a=t[0],o=t[1];if(this._transform&&a!=null&&isFinite(a)&&o!=null&&isFinite(o))return Dt(i,t,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return i[0]=s.toGlobalCoord(s.dataToCoord(a,n)),i[1]=l.toGlobalCoord(l.dataToCoord(o,n)),i},e.prototype.clampData=function(t,n){var i=this.getAxis("x").scale,a=this.getAxis("y").scale,o=i.getExtent(),s=a.getExtent(),l=i.parse(t[0]),u=a.parse(t[1]);return n=n||[],n[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),n[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),n},e.prototype.pointToData=function(t,n,i){if(i=i||[],this._invTransform)return Dt(i,t,this._invTransform);var a=this.getAxis("x"),o=this.getAxis("y");return i[0]=a.coordToData(a.toLocalCoord(t[0]),n),i[1]=o.coordToData(o.toLocalCoord(t[1]),n),i},e.prototype.getOtherAxis=function(t){return this.getAxis(t.dim==="x"?"y":"x")},e.prototype.getArea=function(t){t=t||0;var n=this.getAxis("x").getGlobalExtent(),i=this.getAxis("y").getGlobalExtent(),a=Math.min(n[0],n[1])-t,o=Math.min(i[0],i[1])-t,s=Math.max(n[0],n[1])-a+t,l=Math.max(i[0],i[1])-o+t;return new se(a,o,s,l)},e})(wI),AI=X5});function MI(r,e){var t=r.scale,n=r.model,i=Hd(t,n,n.ecModel,r,null),a=Xn(t),o=Xn(e)?e.intervalStub:e,s=a?t.intervalStub:t,l=t.base,u=o.getTicks(),f=o.getTicks({expandToNicedExtent:!0}),c=u.length-1,p,h,d;if(c===1)p=h=0,d=1;else if(c===2){var v=qe(u[0].value-u[1].value),m=qe(u[1].value-u[2].value);p=h=0,v===m?d=2:(d=1,v<m?p=v/m:h=m/v)}else{var g=o.getConfig().interval;p=(1-(u[0].value-f[0].value)/g)%1,h=(1-(f[c].value-u[c].value)/g)%1,d=c-(p?1:0)-(h?1:0)}var y=i.zoomFixMM,x=y[0]||y[1],_=[i.fixMM[0]||x,i.fixMM[1]||x],b=t.getExtent(),S=s.getExtent(),w=dd(S,_),C,M,E,D,P,L;function O(J){for(var re=50,Z=0;Z<re&&!J();Z++)E=a?E*ge(l,2):RC(E),D=cn(E)}function z(){C=Se(L-E*p,D)}function N(){M=Se(P+E*h,D)}function V(){L=p?Se(C+E*p,D):C}function B(){P=h?Se(M-E*h,D):M}if(_[0]&&_[1]){C=w[0],M=w[1],E=(M-C)/(d+p+h);var H=r.getExtent(),W=qe(H[1]-H[0]);D=jT([M,C],W,.5/d),V(),B(),xt(D)&&(E=Se(E,D))}else{var K=w[1]-w[0];E=a?ge(Dp(K),1):vo(K/d,Lg),D=cn(E),_[0]?(C=w[0],O(function(){if(V(),P=Se(L+E*d,D),N(),M>=w[1])return!0})):_[1]?(M=w[1],O(function(){if(B(),L=Se(P-E*d,D),z(),C<=w[0])return!0})):O(function(){L=Se(na(w[0]/E)*E,D),P=Se(zn(w[1]/E)*E,D);var J=br((P-L)/E);if(J<=d){var re=d-J,Z=void 0,ve=i.incl0||a;if(ve&&w[0]===0)Z=[0,re];else if(ve&&w[1]===0)Z=[re,0];else{var _e=zn(re/2);Z=re%2===0?[_e,_e]:C+M<w[0]+w[1]?[_e,_e+1]:[_e+1,_e]}if(L=Se(L-E*Z[0],D),P=Se(P+E*Z[1],D),z(),N(),C<=w[0]&&M>=w[1])return!0}})}Td(t,_,S,[C,M],b,{interval:E,intervalCount:d,intervalPrecision:D,niceExtent:[L,P]})}var DI=T(()=>{"use strict";we();pn();Rt();Df()});function LI(r,e){var t=Xn(r),n=t?r.intervalStub:r,i=e.fixMinMax||[],a=t?r.getExtent():null,o=n.getExtent(),s=dd(o,i,e.rawExtentResult);n.setExtent(s[0],s[1]),s=n.getExtent();var l=t?Z5(n,e):K5(n,e),u=l.intervalPrecision,f=l.interval,c=e.userInterval;c!=null&&(l.interval=c,l.intervalPrecision=cn(c)),i[0]||(s[0]=Se(zn(s[0]/f)*f,u)),i[1]||(s[1]=Se(na(s[1]/f)*f,u)),c!=null&&(l.niceExtent=s.slice()),Td(r,i,o,s,a,l)}function K5(r,e){var t=xf(e.splitNumber,5),n=Dl(r),i=e.minInterval,a=e.maxInterval,o=vo(n/t,!0);i!=null&&o<i&&(o=i),a!=null&&o>a&&(o=a);var s=cn(o),l=r.getExtent(),u=[Se(na(l[0]/o)*o,s),Se(zn(l[1]/o)*o,s)];return{interval:o,intervalPrecision:s,niceExtent:u}}function Z5(r,e){var t=xf(e.splitNumber,10),n=r.getExtent(),i=Dl(r),a=ge(Dp(i),1),o=t/i*a;o<=.5&&(a*=10);var s=cn(a),l=[Se(na(n[0]/a)*a,s),Se(zn(n[1]/a)*a,s)];return{intervalPrecision:s,interval:a,niceExtent:l}}function A_(r){var e=r.scale,t=r.model,n=t.axis,i=t.ecModel;j5(e,t,n,i,null)}function j5(r,e,t,n,i){var a=Hd(r,e,n,t,i),o=Ll(r)||Pl(r);J5(r,{splitNumber:e.get("splitNumber"),fixMinMax:a.fixMM,userInterval:e.get("interval"),minInterval:o?e.get("minInterval"):null,maxInterval:o?e.get("maxInterval"):null,rawExtentResult:a}),t&&n&&mD(t,r,a,n)}function J5(r,e){Q5[r.type](r,e)}var Q5,PI=T(()=>{"use strict";I();Rt();we();pn();N0();Df();fn();Q5={interval:LI,log:LI,time:GC,ordinal:at}});function t$(r,e){return r.getCoordSysModel()===e}function II(r,e,t,n){t.getAxesOnZeroOf=function(){return a?[a]:[]};var i=r[e],a,o=t.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)RI(s,i[l])&&(a=i[l]);else for(var u in i)if(Ye(i,u)&&RI(s,i[u])&&!n[f(i[u])]){a=i[u];break}a&&(n[f(a)]=!0);function f(c){return c.dim+"_"+c.index}}function RI(r,e){if(!e)return!1;var t=e.scale,n=eM(t,0,!1),i=e&&e.type!=="category"&&e.type!=="time"&&n!==bd;return i&&r==="auto"&&rM(e)&&(i=!1),i}function NI(r){for(var e=oe(r),t,n=[],i=e.length-1;i>=0;i--){var a=r[+e[i]];pd(a.scale)&&z0(a.model,a.type,!0)==null&&(a.model.get("alignTicks")&&a.model.get("interval")==null?n.push(a):t=a)}t||(t=n.pop()),t&&A(n,function(o){o.__alignTo=t})}function r$(r,e){return zo(r.scale)||zo(e.scale)||e.scale.getTicks().length<2}function n$(r,e){var t=r.getExtent(),n=t[0]+t[1];r.toGlobalCoord=r.dim==="x"?function(i){return i+e}:function(i){return n-i+e},r.toLocalCoord=r.dim==="x"?function(i){return i-e}:function(i){return n-i+e}}function C_(r,e){A(r.x,function(t){return kI(t,e.x,e.width)}),A(r.y,function(t){return kI(t,e.y,e.height)})}function kI(r,e,t){var n=[0,t],i=r.inverse?1:0;r.setExtent(n[i],n[1-i]),n$(r,e)}function BI(r,e,t,n,i,a,o){UI(n,i,gr.estimate,e,!1,o);var s=[0,0,0,0];u(0),u(1),f(n,0,NaN),f(n,1,NaN);var l=iw(s,function(p){return p>0})==null;return sl(n,s,!0,!0,t),C_(i,n),l;function u(p){A(i[Vn[p]],function(h){if(Xo(h.model)){var d=a.ensureRecord(h.model),v=d.labelInfoList;if(v)for(var m=0;m<v.length;m++){var g=v[m],y=h.scale.normalize(Ti(h.scale,Ta(g.label).labelInfo.tick));y=p===1?1-y:y,f(g.rect,p,y),f(g.rect,1-p,NaN)}var x=d.nameLayout;if(x){var y=_a(d.nameLocation)?.5:NaN;f(x.rect,p,y),f(x.rect,1-p,NaN)}}})}function f(p,h,d){var v=r[Vn[h]]-p[Vn[h]],m=p[ua[h]]+p[Vn[h]]-(r[ua[h]]+r[Vn[h]]);v=c(v,1-d),m=c(m,d);var g=OI[h][0],y=OI[h][1];s[g]=ge(s[g],v),s[y]=ge(s[y],m)}function c(p,h){return p>0&&!Bi(h)&&h>1e-4&&(p/=h),p}}function i$(r,e,t,n,i){var a=new j0(o$);return A(t,function(o){return A(o,function(s){if(Xo(s.model)){var l=!n;s.axisBuilder=aD(r,e,s.model,i,a,l)}})}),a}function UI(r,e,t,n,i,a){var o=t===gr.determine;A(e,function(u){return A(u,function(f){Xo(f.model)&&(oD(f.axisBuilder,r,f.model),f.axisBuilder.build(o?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:i}))})});var s={x:0,y:0};l(0),l(1);function l(u){s[Vn[1-u]]=r[ua[u]]<=a.refContainer[ua[u]]*.5?0:1-u===1?2:1}A(e,function(u,f){return A(u,function(c){Xo(c.model)&&((n==="all"||o)&&c.axisBuilder.build({axisName:!0},{nameMarginLevel:s[f]}),o&&c.axisBuilder.build({axisLine:!0}))})})}function a$(r,e,t){var n,i=r.get("outerBoundsMode",!0);i==="same"?n=e.clone():(i==null||i==="auto")&&(n=Wn(r.get("outerBounds",!0)||nx,t.refContainer));var a=r.get("outerBoundsContain",!0),o;a==null||a==="auto"||de(["all","axisLabel"],a)<0?o="all":o=a;var s=[Mp($(r.get("outerBoundsClampWidth",!0),Of[0]),e.width),Mp($(r.get("outerBoundsClampHeight",!0),Of[1]),e.height)];return{outerBoundsRect:n,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var OI,e$,zI,o$,FI,VI=T(()=>{"use strict";I();un();pn();CI();VM();ne();If();Vd();Rt();DI();ze();Fd();Md();Io();we();PI();af();Df();ln();Sa();OI=[[3,1],[0,2]],e$=(function(){function r(e,t,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Zf,this._initCartesian(e,t,n),this.model=e}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(e,t){var n=this._axesMap;A(this._axesList,function(o){hD(o,uD);var s=o.scale;At(s)&&s.setSortInfo(o.model.get("categorySortInfo"))});function i(o){for(var s=oe(o),l=[],u=s.length-1;u>=0;u--){var f=o[+s[u]];f.__alignTo?l.push(f):A_(f)}A(l,function(c){r$(c,c.__alignTo)?A_(c):MI(c,c.__alignTo.scale)})}i(n.x),i(n.y);var a={};A(n.x,function(o){II(n,"y",o,a)}),A(n.y,function(o){II(n,"x",o,a)}),this.resize(this.model,t)},r.prototype.resize=function(e,t,n){var i=Fo(e,t),a=this._rect=Wn(e.getBoxLayoutParams(),i.refContainer),o=this._axesMap,s=this._coordsList,l=e.get("containLabel");if(C_(o,a),!n){var u=i$(a,s,o,l,t),f=void 0;if(l)zI?(zI(this._axesList,a),C_(o,a)):f=BI(a.clone(),"axisLabel",null,a,o,u,i);else{var c=a$(e,a,i),p=c.outerBoundsRect,h=c.parsedOuterBoundsContain,d=c.outerBoundsClamp;p&&(f=BI(p,h,d,a,o,u,i))}UI(a,o,gr.determine,null,f,i),A(this._coordsList,function(v){v.calcAffineTransform()})}},r.prototype.getAxis=function(e,t){var n=this._axesMap[e];if(n!=null)return n[t||0]},r.prototype.getAxes=function(){return this._axesList.slice()},r.prototype.getCartesian=function(e,t){if(e!=null&&t!=null){var n="x"+e+"y"+t;return this._coordsMap[n]}Y(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var i=0,a=this._coordsList;i<a.length;i++)if(a[i].getAxis("x").index===e||a[i].getAxis("y").index===t)return a[i]},r.prototype.getCartesians=function(){return this._coordsList.slice()},r.prototype.convertToPixel=function(e,t,n){var i=this._findConvertTarget(t);return i.cartesian?i.cartesian.dataToPoint(n):i.axis?i.axis.toGlobalCoord(i.axis.dataToCoord(n)):null},r.prototype.convertFromPixel=function(e,t,n){var i=this._findConvertTarget(t);return i.cartesian?i.cartesian.pointToData(n):i.axis?i.axis.coordToData(i.axis.toLocalCoord(n)):null},r.prototype._findConvertTarget=function(e){var t=e.seriesModel,n=e.xAxisModel||t&&t.getReferringComponents("xAxis",Pt).models[0],i=e.yAxisModel||t&&t.getReferringComponents("yAxis",Pt).models[0],a=e.gridModel,o=this._coordsList,s,l;if(t)s=t.coordinateSystem,de(o,s)<0&&(s=null);else if(n&&i)s=this.getCartesian(n.componentIndex,i.componentIndex);else if(n)l=this.getAxis("x",n.componentIndex);else if(i)l=this.getAxis("y",i.componentIndex);else if(a){var u=a.coordinateSystem;u===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},r.prototype.containPoint=function(e){var t=this._coordsList[0];if(t)return t.containPoint(e)},r.prototype._initCartesian=function(e,t,n){var i=this,a=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(t.eachComponent("xAxis",u("x"),this),t.eachComponent("yAxis",u("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,A(s.x,function(f,c){A(s.y,function(p,h){var d="x"+c+"y"+h,v=new AI(d);v.master=i,v.model=e,i._coordsMap[d]=v,i._coordsList.push(v),v.addAxis(f),v.addAxis(p)})}),NI(s.x),NI(s.y);function u(f){return function(c,p){if(t$(c,e)){var h=c.get("position");f==="x"?h!=="top"&&h!=="bottom"&&(h=o.bottom?"top":"bottom"):h!=="left"&&h!=="right"&&(h=o.left?"right":"left"),o[h]=!0;var d=JC(c),v=new FM(f,QC(c,d,!0),[0,0],d,h);v.onBand=Ed(v.scale,c),v.inverse=c.get("inverse"),c.axis=v,v.model=c,v.grid=a,v.index=p,a._axesList.push(v),s[f][p]=v,l[f]++}}}},r.prototype.getTooltipAxes=function(e){var t=[],n=[];return A(this.getCartesians(),function(i){var a=e!=null&&e!=="auto"?i.getAxis(e):i.getBaseAxis(),o=i.getOtherAxis(a);de(t,a)<0&&t.push(a),de(n,o)<0&&n.push(o)}),{baseAxes:t,otherAxes:n}},r.create=function(e,t){var n=[];return e.eachComponent("grid",function(i,a){var o=new r(i,e,t);o.name="grid_"+a,o.resize(i,t,!0),i.coordinateSystem=o,n.push(o),A(o._axesList,function(s){pD(s,r.dimIdxMap)})}),e.eachSeries(function(i){var a,o;SA({targetModel:i,coordSysType:Gr,coordSysProvider:s});function s(){var l=iD(i),u=l.xAxisModel,f=l.yAxisModel;a=u.axis,o=f.axis;var c=u.getCoordSysModel(),p=c.coordinateSystem;return p.getCartesian(u.componentIndex,f.componentIndex)}a&&o&&(q0(a,i,Gr),q0(o,i,Gr))},this),n},r.dimensions=Zf,r.dimIdxMap=nf(Zf),r})();o$=function(r,e,t,n,i,a){var o=t.axis.dim==="x"?"y":"x";J0(r,e,t,n,i,a),_a(r.nameLocation)||A(e.recordMap[o],function(s){s&&s.labelInfoList&&s.dirVec&&Q0(s.labelInfoList,s.dirVec,n,i)})},FI=e$});function HI(r,e){var t={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return s$(t,r,e),t.seriesInvolved&&u$(t,r),t}function s$(r,e,t){var n=e.getComponent("tooltip"),i=e.getComponent("axisPointer"),a=i.get("link",!0)||[],o=[];A(t.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=Gl(s.model),u=r.coordSysAxesInfo[l]={};r.coordSysMap[l]=s;var f=s.model,c=f.getModel("tooltip",n);if(A(s.getAxes(),Ne(v,!1,null)),s.getTooltipAxes&&n&&c.get("show")){var p=c.get("trigger")==="axis",h=c.get(["axisPointer","type"])==="cross",d=s.getTooltipAxes(c.get(["axisPointer","axis"]));(p||h)&&A(d.baseAxes,Ne(v,h?"cross":!0,p)),h&&A(d.otherAxes,Ne(v,"cross",!1))}function v(m,g,y){var x=y.model.getModel("axisPointer",i),_=x.get("show");if(!(!_||_==="auto"&&!m&&!D_(x))){g==null&&(g=x.get("triggerTooltip")),x=m?l$(y,c,i,e,m,g):x;var b=x.get("snap"),S=x.get("triggerEmphasis"),w=Gl(y.model),C=g||b||y.type==="category",M=r.axesInfo[w]={key:w,axis:y,coordSys:s,axisPointerModel:x,triggerTooltip:g,triggerEmphasis:S,involveSeries:C,snap:b,useHandle:D_(x),seriesModels:[],linkGroup:null};u[w]=M,r.seriesInvolved=r.seriesInvolved||C;var E=f$(a,y);if(E!=null){var D=o[E]||(o[E]={axesInfo:{}});D.axesInfo[w]=M,D.mapper=a[E].mapper,M.linkGroup=D}}}})}function l$(r,e,t,n,i,a){var o=e.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};A(s,function(p){l[p]=ue(o.get(p))}),l.snap=r.type!=="category"&&!!a,o.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),i==="cross"){var f=o.get(["label","show"]);if(u.show=f??!0,!a){var c=l.lineStyle=o.get("crossStyle");c&&fe(u,c.textStyle)}}return r.model.getModel("axisPointer",new ot(l,t,n))}function u$(r,e){e.eachSeries(function(t){var n=t.coordinateSystem,i=t.get(["tooltip","trigger"],!0),a=t.get(["tooltip","show"],!0);!n||!n.model||i==="none"||i===!1||i==="item"||a===!1||t.get(["axisPointer","show"],!0)===!1||A(r.coordSysAxesInfo[Gl(n.model)],function(o){var s=o.axis;n.getAxis(s.dim)===s&&(o.seriesModels.push(t),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=t.getData().count())})})}function f$(r,e){for(var t=e.model,n=e.dim,i=0;i<r.length;i++){var a=r[i]||{};if(M_(a[n+"AxisId"],t.id)||M_(a[n+"AxisIndex"],t.componentIndex)||M_(a[n+"AxisName"],t.name))return i}}function M_(r,e){return r==="all"||U(r)&&de(r,e)>=0||r===e}function GI(r){var e=Av(r);if(e){var t=e.axisPointerModel,n=e.axis.scale,i=t.option,a=t.get("status"),o=t.get("value");o!=null&&(o=n.parse(o));var s=D_(t);a==null&&(i.status=s?"show":"hide");var l=n.getExtent();(o==null||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),i.value=o,s&&(i.status=e.axis.scale.isBlank()?"hide":"show")}}function Av(r){var e=(r.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[Gl(r)]}function $I(r){var e=Av(r);return e&&e.axisPointerModel}function D_(r){return!!r.get(["handle","show"])}function Gl(r){return r.type+"||"+r.id}var jf=T(()=>{"use strict";$n();I()});var WI,c$,Cv,P_=T(()=>{"use strict";ee();jf();Mi();WI={},c$=(function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,i,a){this.axisPointerClass&&GI(t),r.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(t,i,!0)},e.prototype.updateAxisPointer=function(t,n,i,a){this._doUpdateAxisPointerClass(t,i,!1)},e.prototype.remove=function(t,n){var i=this._axisPointer;i&&i.remove(n)},e.prototype.dispose=function(t,n){this._disposeAxisPointer(n),r.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(t,n,i){var a=e.getAxisPointerClass(this.axisPointerClass);if(a){var o=$I(t);o?(this._axisPointer||(this._axisPointer=new a)).render(t,o,n,i):this._disposeAxisPointer(n)}},e.prototype._disposeAxisPointer=function(t){this._axisPointer&&this._axisPointer.dispose(t),this._axisPointer=null},e.registerAxisPointerClass=function(t,n){WI[t]=n},e.getAxisPointerClass=function(t){return t&&WI[t]},e.type="axis",e})(Nt),Cv=c$});function YI(r,e,t,n){var i=t.axis;if(!i.scale.isBlank()){var a=t.getModel("splitArea"),o=a.getModel("areaStyle"),s=o.get("color"),l=n.coordinateSystem.getRect(),u=i.getTicksCoords({tickModel:a,breakTicks:"none",pruneByBreak:"preserve_extent_bound"});if(u.length){var f=s.length,c=O_(r).splitAreaColors,p=X(),h=0;if(c)for(var d=0;d<u.length;d++){var v=c.get(u[d].tickValue);if(v!=null){h=(v+(f-1)*d)%f;break}}var m=i.toGlobalCoord(u[0].coord),g=o.getAreaStyle();s=U(s)?s:[s];for(var d=1;d<u.length;d++){var y=i.toGlobalCoord(u[d].coord),x=void 0,_=void 0,b=void 0,S=void 0;i.isHorizontal()?(x=m,_=l.y,b=y-x,S=l.height,m=x+b):(x=l.x,_=m,b=l.width,S=y-_,m=_+S);var w=u[d-1].tickValue;w!=null&&p.set(w,h),e.add(new Oe({anid:w!=null?"area_"+w:null,shape:{x,y:_,width:b,height:S},style:fe({fill:s[h]},g),autoBatch:!0,silent:!0})),h=(h+1)%f}O_(r).splitAreaColors=p}}}function qI(r){O_(r).splitAreaColors=null}var O_,XI=T(()=>{"use strict";I();ze();ne();O_=ae()});var p$,KI,h$,I_,ZI,jI=T(()=>{"use strict";ee();I();ze();P_();XI();zd();pn();p$=["splitArea","splitLine","minorSplitLine","breakArea"],KI=(function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="CartesianAxisPointer",t}return e.prototype.render=function(t,n,i,a){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Ie,this.group.add(this._axisGroup),!!Xo(t)){this._axisGroup.add(t.axis.axisBuilder.group),A(p$,function(l){t.get([l,"show"])&&h$[l](this,this._axisGroup,t,t.getCoordSysModel(),i)},this);var s=a&&a.type==="changeAxisOrder"&&a.isInitSort;s||yy(o,this._axisGroup,t),r.prototype.render.call(this,t,n,i,a)}},e.prototype.remove=function(){qI(this)},e.type="cartesianAxis",e})(Cv),h$={splitLine:function(r,e,t,n,i){var a=t.axis;if(!a.scale.isBlank()){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=o.get("showMinLine")!==!1,f=o.get("showMaxLine")!==!1;l=U(l)?l:[l];for(var c=n.coordinateSystem.getRect(),p=a.isHorizontal(),h=0,d=a.getTicksCoords({tickModel:o,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),v=[],m=[],g=s.getLineStyle(),y=0;y<d.length;y++){var x=a.toGlobalCoord(d[y].coord);if(!(y===0&&!u||y===d.length-1&&!f)){var _=d[y].tickValue;p?(v[0]=x,v[1]=c.y,m[0]=x,m[1]=c.y+c.height):(v[0]=c.x,v[1]=x,m[0]=c.x+c.width,m[1]=x);var b=h++%l.length,S=new on({anid:_!=null?"line_"+_:null,autoBatch:!0,shape:{x1:v[0],y1:v[1],x2:m[0],y2:m[1]},style:fe({stroke:l[b]},g),silent:!0});wo(S.shape,g.lineWidth),e.add(S)}}}},minorSplitLine:function(r,e,t,n,i){var a=t.axis,o=t.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=n.coordinateSystem.getRect(),u=a.isHorizontal(),f=a.getMinorTicksCoords();if(f.length)for(var c=[],p=[],h=s.getLineStyle(),d=0;d<f.length;d++)for(var v=0;v<f[d].length;v++){var m=a.toGlobalCoord(f[d][v].coord);u?(c[0]=m,c[1]=l.y,p[0]=m,p[1]=l.y+l.height):(c[0]=l.x,c[1]=m,p[0]=l.x+l.width,p[1]=m);var g=new on({anid:"minor_line_"+f[d][v].tickValue,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:p[0],y2:p[1]},style:h,silent:!0});wo(g.shape,h.lineWidth),e.add(g)}},splitArea:function(r,e,t,n,i){YI(r,e,t,n)},breakArea:function(r,e,t,n,i){var a=jo(),o=t.axis.scale;a&&o.type!=="ordinal"&&a.rectCoordBuildBreakAxis(e,r,t,n.coordinateSystem.getRect(),i)}},I_=(function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="xAxis",e})(KI),ZI=(function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=I_.type,t}return e.type="yAxis",e})(KI)});function Mv(r){r.registerComponentView(d$),r.registerComponentModel(wD),r.registerCoordinateSystem("cartesian2d",FI),Ev(r,"x",Tv,JI),Ev(r,"y",Tv,JI),r.registerComponentView(I_),r.registerComponentView(ZI),r.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}var d$,JI,R_=T(()=>{"use strict";ee();Mi();If();ze();I();gI();SI();VI();jI();d$=(function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="grid",t}return e.prototype.render=function(t,n){this.group.removeAll(),t.get("show")&&this.group.add(new Oe({shape:t.coordinateSystem.getRect(),style:fe({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e})(Nt),JI={offset:0}});function N_(r){Wt(Mv),r.registerSeriesModel(lI),r.registerChartView(hI),r.registerLayout(Ko("scatter"))}var QI=T(()=>{"use strict";ss();uI();dI();R_();Ad()});var eR=T(()=>{"use strict";hM();tL();SL();QI()});var tR=T(()=>{"use strict";eR()});function nR(r,e,t,n){oR(ls(t).lastProp,n)||(ls(t).lastProp=n,e?Ve(t,n,r):(t.stopAnimation(),t.attr(n)))}function oR(r,e){if(Y(r)&&Y(e)){var t=!0;return A(e,function(n,i){t=t&&oR(r[i],n)}),!!t}else return r===e}function iR(r,e){r[e.get(["label","show"])?"show":"hide"]()}function z_(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function aR(r,e,t){var n=e.get("z"),i=e.get("zlevel");r&&r.traverse(function(a){a.type!=="group"&&(n!=null&&(a.z=n),i!=null&&(a.zlevel=i),a.silent=t)})}var ls,rR,k_,v$,sR,lR=T(()=>{"use strict";I();ze();jf();kf();$d();ne();Nl();ls=ae(),rR=ue,k_=Le,v$=(function(){function r(){this._dragging=!1,this.animationThreshold=15}return r.prototype.render=function(e,t,n,i){var a=t.get("value"),o=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,this._api=n,!(!i&&this._lastValue===a&&this._lastStatus===o)){this._lastValue=a,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,a,e,t,n);var f=u.graphicKey;f!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=f;var c=this._moveAnimation=this.determineAnimation(e,t);if(!s)s=this._group=new Ie,this.createPointerEl(s,u,e,t),this.createLabelEl(s,u,e,t),n.getZr().add(s);else{var p=Ne(nR,t,c);this.updatePointerEl(s,u,p),this.updateLabelEl(s,u,p,t)}aR(s,t,!0),this._renderHandle(a)}},r.prototype.remove=function(e){this.clear(e)},r.prototype.dispose=function(e){this.clear(e)},r.prototype.determineAnimation=function(e,t){var n=t.get("animation"),i=e.axis,a=i.type==="category",o=t.get("snap");if(!o&&!a)return!1;if(n==="auto"||n==null){var s=this.animationThreshold;if(a&&hn(i).w>s)return!0;if(o){var l=Av(e).seriesDataCount,u=i.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return n===!0},r.prototype.makeElOption=function(e,t,n,i,a){},r.prototype.createPointerEl=function(e,t,n,i){var a=t.pointer;if(a){var o=ls(e).pointerEl=new mt[a.type](rR(t.pointer));e.add(o)}},r.prototype.createLabelEl=function(e,t,n,i){if(t.label){var a=ls(e).labelEl=new $e(rR(t.label));e.add(a),iR(a,i)}},r.prototype.updatePointerEl=function(e,t,n){var i=ls(e).pointerEl;i&&t.pointer&&(i.setStyle(t.pointer.style),n(i,{shape:t.pointer.shape}))},r.prototype.updateLabelEl=function(e,t,n,i){var a=ls(e).labelEl;a&&(a.setStyle(t.label.style),n(a,{x:t.label.x,y:t.label.y}),iR(a,i))},r.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var t=this._axisPointerModel,n=this._api.getZr(),i=this._handle,a=t.getModel("handle"),o=t.get("status");if(!a.get("show")||!o||o==="hide"){i&&n.remove(i),this._handle=null;return}var s;this._handle||(s=!0,i=this._handle=Qu(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){nv(u.event)},onmousedown:k_(this._onHandleDragMove,this,0,0),drift:k_(this._onHandleDragMove,this),ondragend:k_(this._onHandleDragEnd,this)}),n.add(i)),aR(i,t,!1),i.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=a.get("size");U(l)||(l=[l,l]),i.scaleX=l[0]/2,i.scaleY=l[1]/2,kD(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},r.prototype._moveHandleToValue=function(e,t){nR(this._axisPointerModel,!t&&this._moveAnimation,this._handle,z_(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(e,t){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(z_(n),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(z_(i)),ls(n).lastProp=null,this._doDispatchAxisPointer()}},r.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){var t=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},r.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(e){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},r.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),n=this._group,i=this._handle;t&&n&&(this._lastGraphicKey=null,n&&t.remove(n),i&&t.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),zD(this,"_doDispatchAxisPointer")},r.prototype.doClear=function(){},r.prototype.buildLabel=function(e,t,n){return n=n||0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}},r})();sR=v$});function uR(r){var e=r.get("type"),t=r.getModel(e+"Style"),n;return e==="line"?(n=t.getLineStyle(),n.fill=null):e==="shadow"&&(n=t.getAreaStyle(),n.stroke=null),n}function m$(r,e,t,n,i){var a=t.get("value"),o=y$(a,e.axis,e.ecModel,t.get("seriesDataIndices"),{precision:t.get(["label","precision"]),formatter:t.get(["label","formatter"])}),s=t.getModel("label"),l=bl(s.get("padding")||0),u=s.getFont(),f=Gc(o,u),c=i.position,p=f.width+l[1]+l[3],h=f.height+l[0]+l[2],d=i.align;d==="right"&&(c[0]-=p),d==="center"&&(c[0]-=p/2);var v=i.verticalAlign;v==="bottom"&&(c[1]-=h),v==="middle"&&(c[1]-=h/2),g$(c,p,h,n);var m=s.get("backgroundColor");(!m||m==="auto")&&(m=e.get(["axisLine","lineStyle","color"])),r.label={x:c[0],y:c[1],style:Hr(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:m}),z2:10}}function g$(r,e,t,n){var i=n.getWidth(),a=n.getHeight();r[0]=Math.min(r[0]+e,i)-e,r[1]=Math.min(r[1]+t,a)-t,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function y$(r,e,t,n,i){r=e.scale.parse(r);var a=e.scale.getLabel({value:r},{precision:i.precision}),o=i.formatter;if(o){var s={value:Sd(e,{value:r}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};A(n,function(l){var u=t.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,c=u&&u.getDataParams(f);c&&s.seriesData.push(c)}),G(o)?a=o.replace("{value}",a):j(o)&&(a=o(s))}return a}function B_(r,e,t){var n=qt();return Os(n,n,t.rotation),pu(n,n,t.position),sh([r.dataToCoord(e),(t.labelOffset||0)+(t.labelDirection||1)*(t.labelMargin||0)],n)}function fR(r,e,t,n,i,a){var o=Ud.innerTextLayout(t.rotation,0,t.labelDirection);t.labelMargin=i.get(["label","margin"]),m$(e,n,i,a,{position:B_(n.axis,r,t),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function cR(r,e,t){return t=t||0,{x1:r[t],y1:r[1-t],x2:e[t],y2:e[1-t]}}function pR(r,e,t){return t=t||0,{x:r[t],y:r[1-t],width:e[t],height:e[1-t]}}function hR(r,e,t){return hn(r,{fromStat:{sers:F(e,function(n){return t.getSeriesByIndex(n.seriesIndex)})},min:1}).w}function dR(r,e,t){return[ge(je(e[0],e[1]),r-t/2),je(r+t/2,ge(e[0],e[1]))]}var vR=T(()=>{"use strict";I();ze();en();Si();ni();pn();Fd();Er();Nl();we()});function mR(r,e){var t={};return t[e.dim+"AxisIndex"]=e.index,r.getCartesian(t)}function gR(r){return r.dim==="x"?0:1}var _$,b$,yR,xR=T(()=>{"use strict";ee();lR();vR();Vd();we();_$=(function(r){R(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,n,i,a,o){var s=i.axis,l=s.grid,u=a.get("type"),f=s.getGlobalExtent(),c=mR(l,s).getOtherAxis(s).getGlobalExtent(),p=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var h=uR(a),d=b$[u](s,p,f,c,a.get("seriesDataIndices"),a.ecModel);d.style=h,t.graphicKey=d.type,t.pointer=d}var v=Cf(l.getRect(),i);fR(n,t,v,i,a,o)},e.prototype.getHandleTransform=function(t,n,i){var a=Cf(n.axis.grid.getRect(),n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=B_(n.axis,t,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,n,i,a){var o=i.axis,s=o.grid,l=o.getGlobalExtent(!0),u=mR(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,c=[t.x,t.y];c[f]+=n[f],c[f]=je(l[1],c[f]),c[f]=ge(l[0],c[f]);var p=(u[1]+u[0])/2,h=[p,p];h[f]=c[f];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:c[0],y:c[1],rotation:t.rotation,cursorPoint:h,tooltipOption:d[f]}},e})(sR);b$={line:function(r,e,t,n){var i=cR([e,n[0]],[e,n[1]],gR(r));return{type:"Line",subPixelOptimize:!0,shape:i}},shadow:function(r,e,t,n,i,a){var o=hR(r,i,a),s=n[1]-n[0],l=dR(e,t,o),u=l[0],f=l[1];return{type:"Rect",shape:pR([u,n[0]],[f-u,s],gR(r))}}};yR=_$});var S$,_R,bR=T(()=>{"use strict";ee();qn();Gt();S$=(function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}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:ie.color.border,width:1,type:"dashed"},shadowStyle:{color:ie.color.shadowTint},label:{show:!0,formatter:null,precision:"auto",margin:3,color:ie.color.neutral00,padding:[5,7,5,7],backgroundColor:ie.color.accent60,borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:ie.color.accent40,throttle:40}},e})(Re),_R=S$});function SR(r,e,t){if(!Pe.node){var n=e.getZr();Li(n).records||(Li(n).records={}),T$(n,e);var i=Li(n).records[r]||(Li(n).records[r]={});i.handler=t}}function T$(r,e){if(Li(r).initialized)return;Li(r).initialized=!0,t("click",Ne(U_,"click")),t("mousemove",Ne(U_,"mousemove")),t("mousewheel",Ne(U_,"mousewheel")),t("globalout",A$);function t(n,i){r.on(n,function(a){var o=C$(e);w$(Li(r).records,function(s){s&&i(s,a,o.dispatchAction)}),E$(o.pendings,e)})}}function E$(r,e){var t=r.showTip.length,n=r.hideTip.length,i;t?i=r.showTip[t-1]:n&&(i=r.hideTip[n-1]),i&&(i.dispatchAction=null,e.dispatchAction(i))}function A$(r,e,t){r.handler("leave",null,t)}function U_(r,e,t,n){e.handler(r,t,n)}function C$(r){var e={showTip:[],hideTip:[]},t=function(n){var i=e[n.type];i?i.push(n):(n.dispatchAction=t,r.dispatchAction(n))};return{dispatchAction:t,pendings:e}}function F_(r,e){if(!Pe.node){var t=e.getZr(),n=(Li(t).records||{})[r];n&&(Li(t).records[r]=null)}}var Li,w$,wR=T(()=>{"use strict";I();Or();ne();Li=ae(),w$=A});var D$,TR,ER=T(()=>{"use strict";ee();wR();Mi();D$=(function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,i){var a=n.getComponent("tooltip"),o=t.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click|mousewheel";SR("axisPointer",i,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(t,n){F_("axisPointer",n)},e.prototype.dispose=function(t,n){F_("axisPointer",n)},e.type="axisPointer",e})(Nt),TR=D$});function V_(r,e){var t=[],n=r.seriesIndex,i;if(n==null||!(i=e.getSeriesByIndex(n)))return{point:[]};var a=i.getData(),o=Vr(a,r);if(o==null||o<0||U(o))return{point:[]};var s=a.getItemGraphicEl(o),l=i.coordinateSystem;if(i.getTooltipPosition)t=i.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(r.isStacked){var u=l.getBaseAxis(),f=l.getOtherAxis(u),c=f.dim,p=u.dim,h=c==="x"||c==="radius"?1:0,d=a.mapDimension(p),v=[];v[h]=a.get(d,o),v[1-h]=a.get(a.getCalculationInfo("stackResultDimension"),o),t=l.dataToPoint(v)||[]}else t=l.dataToPoint(a.getValues(F(l.dimensions,function(g){return a.mapDimension(g)}),o))||[];else if(s){var m=s.getBoundingRect().clone();m.applyTransform(s.transform),t=[m.x+m.width/2,m.y+m.height/2]}return{point:t,el:s}}var AR=T(()=>{"use strict";I();ne()});function H_(r,e,t){var n=r.currTrigger,i=[r.x,r.y],a=r,o=r.dispatchAction||Le(t.dispatchAction,t),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){Dv(i)&&(i=V_({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},e).point);var l=Dv(i),u=a.axesInfo,f=s.axesInfo,c=n==="leave"||Dv(i),p={},h={},d={list:[],map:{}},v={showPointer:Ne(P$,h),showTooltip:Ne(O$,d)};A(s.coordSysMap,function(g,y){var x=l||g.containPoint(i);A(s.coordSysAxesInfo[y],function(_,b){var S=_.axis,w=k$(u,_);if(!c&&x&&(!u||w)){var C=w&&w.value;C==null&&!l&&(C=S.pointToData(i)),C!=null&&MR(_,C,v,!1,p)}})});var m={};return A(f,function(g,y){var x=g.linkGroup;x&&!h[y]&&A(x.axesInfo,function(_,b){var S=h[b];if(_!==g&&S){var w=S.value;x.mapper&&(w=g.axis.scale.parse(x.mapper(w,DR(_),DR(g)))),m[g.key]=w}})}),A(m,function(g,y){MR(f[y],g,v,!0,p)}),I$(h,f,p),R$(d,i,r,o),N$(f,o,t),p}}function MR(r,e,t,n,i){var a=r.axis;if(!(a.scale.isBlank()||!a.containData(e))){if(!r.involveSeries){t.showPointer(r,e);return}var o=L$(e,r),s=o.payloadBatch,l=o.snapToValue;s[0]&&i.seriesIndex==null&&k(i,s[0]),!n&&r.snap&&a.containData(l)&&l!=null&&(e=l),t.showPointer(r,e,s),t.showTooltip(r,o,l)}}function L$(r,e){var t=e.axis,n=t.dim,i=r,a=[],o=Number.MAX_VALUE,s=-1;return A(e.seriesModels,function(l,u){var f=l.getData().mapDimensionsAll(n),c,p;if(l.getAxisTooltipData){var h=l.getAxisTooltipData(f,r,t);p=h.dataIndices,c=h.nestestValue}else{if(p=l.indicesOfNearest(n,f[0],r,t.type==="category"?.5:null),!p.length)return;c=l.getData().get(f[0],p[0])}if(xt(c)){var d=r-c,v=Math.abs(d);v<=o&&((v<o||d>=0&&s<0)&&(o=v,s=d,i=c,a.length=0),A(p,function(m){a.push({seriesIndex:l.seriesIndex,dataIndexInside:m,dataIndex:l.getData().getRawIndex(m)})}))}}),{payloadBatch:a,snapToValue:i}}function P$(r,e,t,n){r[e.key]={value:t,payloadBatch:n}}function O$(r,e,t,n){var i=t.payloadBatch,a=e.axis,o=a.model,s=e.axisPointerModel;if(!(!e.triggerTooltip||!i.length)){var l=e.coordSys.model,u=Gl(l),f=r.map[u];f||(f=r.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},r.list.push(f)),f.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function I$(r,e,t){var n=t.axesInfo=[];A(e,function(i,a){var o=i.axisPointerModel.option,s=r[a];s?(!i.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!i.useHandle&&(o.status="hide"),o.status==="show"&&n.push({axisDim:i.axis.dim,axisIndex:i.axis.model.componentIndex,value:o.value})})}function R$(r,e,t,n){if(Dv(e)||!r.list.length){n({type:"hideTip"});return}var i=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:t.tooltipOption,position:t.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:r.list})}function N$(r,e,t){var n=t.getZr(),i="axisPointerLastHighlights",a=CR(n)[i]||{},o=CR(n)[i]={};A(r,function(f,c){var p=f.axisPointerModel.option;p.status==="show"&&f.triggerEmphasis&&A(p.seriesDataIndices,function(h){o[h.seriesIndex+"|"+h.dataIndex]=h})});var s=[],l=[];function u(f){return{seriesIndex:f.seriesIndex,dataIndex:f.dataIndex}}A(a,function(f,c){!o[c]&&l.push(u(f))}),A(o,function(f,c){!a[c]&&s.push(u(f))}),l.length&&t.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&t.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function k$(r,e){for(var t=0;t<(r||[]).length;t++){var n=r[t];if(e.axis.dim===n.axisDim&&e.axis.model.componentIndex===n.axisIndex)return n}}function DR(r){var e=r.axis.model,t={},n=t.axisDim=r.axis.dim;return t.axisIndex=t[n+"AxisIndex"]=e.componentIndex,t.axisName=t[n+"AxisName"]=e.name,t.axisId=t[n+"AxisId"]=e.id,t}function Dv(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}var CR,LR=T(()=>{"use strict";ne();jf();AR();I();we();CR=ae()});function PR(r){Cv.registerAxisPointerClass("CartesianAxisPointer",yR),r.registerComponentModel(_R),r.registerComponentView(TR),r.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!U(t)&&(e.axisPointer.link=[t])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,{overallReset:function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=HI(e,t)}}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},H_)}var OR=T(()=>{"use strict";P_();xR();bR();ER();I();jf();LR()});function G_(r){Wt(Mv),Wt(PR)}var IR=T(()=>{"use strict";R_();OR();ss()});function RR(r,e){var t=bl(e.get("padding")),n=e.getItemStyle(["color","opacity"]);n.fill=e.get("backgroundColor");var i=new Oe({shape:{x:r.x-t[3],y:r.y-t[0],width:r.width+t[1]+t[3],height:r.height+t[0]+t[2],r:e.get("borderRadius")},style:n,silent:!0,z2:-1});return i}var NR=T(()=>{"use strict";Si();ze()});function $_(r){r.registerComponentModel(z$),r.registerComponentView(B$)}var z$,B$,kR=T(()=>{"use strict";ee();I();ze();wr();Er();un();qn();Mi();Si();Gt();z$=(function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:"center",top:ie.size.m,backgroundColor:ie.color.transparent,borderColor:ie.color.primary,borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:ie.color.primary},subtextStyle:{fontSize:12,color:ie.color.quaternary}},e})(Re),B$=(function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,i){if(this.group.removeAll(),!!t.get("show")){var a=this.group,o=t.getModel("textStyle"),s=t.getModel("subtextStyle"),l=t.get("textAlign"),u=$(t.get("textBaseline"),t.get("textVerticalAlign")),f=new $e({style:Hr(o,{text:t.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),c=f.getBoundingRect(),p=t.get("subtext"),h=new $e({style:Hr(s,{text:p,fill:s.getTextColor(),y:c.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=t.get("link"),v=t.get("sublink"),m=t.get("triggerEvent",!0);f.silent=!d&&!m,h.silent=!v&&!m,d&&f.on("click",function(){h0(d,"_"+t.get("target"))}),v&&h.on("click",function(){h0(v,"_"+t.get("subtarget"))}),ye(f).eventData=ye(h).eventData=m?{componentType:"title",componentIndex:t.componentIndex}:null,a.add(f),p&&a.add(h);var g=a.getBoundingRect(),y=t.getBoxLayoutParams();y.width=g.width,y.height=g.height;var x=Fo(t,i),_=Wn(y,x.refContainer,t.get("padding"));l||(l=t.get("left")||t.get("right"),l==="middle"&&(l="center"),l==="right"?_.x+=_.width:l==="center"&&(_.x+=_.width/2)),u||(u=t.get("top")||t.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?_.y+=_.height:u==="middle"&&(_.y+=_.height/2),u=u||"top"),a.x=_.x,a.y=_.y,a.markRedraw();var b={align:l,verticalAlign:u};f.setStyle(b),h.setStyle(b),g=a.getBoundingRect();var S=_.margin,w=t.getItemStyle(["color","opacity"]);w.fill=t.get("backgroundColor");var C=new Oe({shape:{x:g.x-S[3],y:g.y-S[0],width:g.width+S[1]+S[3],height:g.height+S[0]+S[2],r:t.get("borderRadius")},style:w,subPixelOptimize:!0,silent:!0});a.add(C)}},e.type="title",e})(Nt)});var U$,F$,Jf,W_=T(()=>{"use strict";ee();I();$n();ne();qn();Gt();U$=function(r,e){if(e==="all")return{type:"all",title:r.getLocaleModel().get(["legend","selector","all"])};if(e==="inverse")return{type:"inverse",title:r.getLocaleModel().get(["legend","selector","inverse"])}},F$=(function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return e.prototype.init=function(t,n,i){this.mergeDefaultAndTheme(t,i),t.selected=t.selected||{},this._updateSelector(t)},e.prototype.mergeOption=function(t,n){r.prototype.mergeOption.call(this,t,n),this._updateSelector(t)},e.prototype._updateSelector=function(t){var n=t.selector,i=this.ecModel;n===!0&&(n=t.selector=["all","inverse"]),U(n)&&A(n,function(a,o){G(a)&&(a={type:a}),n[o]=Ee(a,U$(i,a.type))})},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&this.get("selectedMode")==="single"){for(var n=!1,i=0;i<t.length;i++){var a=t[i].get("name");if(this.isSelected(a)){this.select(a),n=!0;break}}!n&&this.select(t[0].get("name"))}},e.prototype._updateData=function(t){var n=[],i=[];t.eachRawSeries(function(l){var u=l.name;i.push(u);var f;if(l.legendVisualProvider){var c=l.legendVisualProvider,p=c.getAllNames();t.isSeriesFiltered(l)||(i=i.concat(p)),p.length?n=n.concat(p):f=!0}else f=!0;f&&Zs(l)&&n.push(l.name)}),this._availableNames=i;var a=this.get("data")||n,o=X(),s=F(a,function(l){return(G(l)||he(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new ot(l,this,this.ecModel))},this);this._data=Fe(s,function(l){return!!l})},e.prototype.getData=function(){return this._data},e.prototype.select=function(t){var n=this.option.selected,i=this.get("selectedMode");if(i==="single"){var a=this._data;A(a,function(o){n[o.get("name")]=!1})}n[t]=!0},e.prototype.unSelect=function(t){this.get("selectedMode")!=="single"&&(this.option.selected[t]=!1)},e.prototype.toggleSelected=function(t){var n=this.option.selected;n.hasOwnProperty(t)||(n[t]=!0),this[n[t]?"unSelect":"select"](t)},e.prototype.allSelect=function(){var t=this._data,n=this.option.selected;A(t,function(i){n[i.get("name",!0)]=!0})},e.prototype.inverseSelect=function(){var t=this._data,n=this.option.selected;A(t,function(i){var a=i.get("name",!0);n.hasOwnProperty(a)||(n[a]=!0),n[a]=!n[a]})},e.prototype.isSelected=function(t){var n=this.option.selected;return!(n.hasOwnProperty(t)&&!n[t])&&de(this._availableNames,t)>=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",bottom:ie.size.m,align:"auto",backgroundColor:ie.color.transparent,borderColor:ie.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:ie.color.disabled,inactiveBorderColor:ie.color.disabled,inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:ie.color.disabled,inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:ie.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:ie.color.tertiary,borderWidth:1,borderColor:ie.color.border},emphasis:{selectorLabel:{show:!0,color:ie.color.quaternary}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},e})(Re),Jf=F$});function H$(r,e,t,n,i,a,o){function s(m,g){m.lineWidth==="auto"&&(m.lineWidth=g.lineWidth>0?2:0),Y_(m,function(y,x){m[x]==="inherit"&&(m[x]=g[x])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),f=r.lastIndexOf("empty",0)===0?"fill":"stroke",c=l.getShallow("decal");u.decal=!c||c==="inherit"?n.decal:Xf(c,o),u.fill==="inherit"&&(u.fill=n[i]),u.stroke==="inherit"&&(u.stroke=n[f]),u.opacity==="inherit"&&(u.opacity=(i==="fill"?n:t).opacity),s(u,n);var p=e.getModel("lineStyle"),h=p.getLineStyle();if(s(h,t),u.fill==="auto"&&(u.fill=n.fill),u.stroke==="auto"&&(u.stroke=n.fill),h.stroke==="auto"&&(h.stroke=n.fill),!a){var d=e.get("inactiveBorderWidth"),v=u[f];u.lineWidth=d==="auto"?n.lineWidth>0&&v?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),h.stroke=p.get("inactiveColor"),h.lineWidth=p.get("inactiveWidth")}return{itemStyle:u,lineStyle:h}}function G$(r){var e=r.icon||"roundRect",t=Mr(e,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill,r.symbolKeepAspect);return t.setStyle(r.itemStyle),t.rotation=(r.iconRotate||0)*Math.PI/180,t.setOrigin([r.itemWidth/2,r.itemHeight/2]),e.indexOf("empty")>-1&&(t.style.stroke=t.style.fill,t.style.fill=ie.color.neutral00,t.style.lineWidth=2),t}function zR(r,e,t,n){X_(r,e,t,n),t.dispatchAction({type:"legendToggleSelect",name:r??e}),q_(r,e,t,n)}function q_(r,e,t,n){t.usingTHL()||t.dispatchAction({type:"highlight",seriesName:r,name:e,excludeSeriesId:n})}function X_(r,e,t,n){t.usingTHL()||t.dispatchAction({type:"downplay",seriesName:r,name:e,excludeSeriesId:n})}var $l,Y_,Lv,V$,Pv,K_=T(()=>{"use strict";ee();I();kr();ze();Un();Er();NR();un();Mi();Go();n_();wr();Gt();$l=Ne,Y_=A,Lv=Ie,V$=(function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.newlineDisabled=!1,t}return e.prototype.init=function(){this.group.add(this._contentGroup=new Lv),this.group.add(this._selectorGroup=new Lv),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,n,i){var a=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!t.get("show",!0)){var o=t.get("align"),s=t.get("orient");(!o||o==="auto")&&(o=t.get("left")==="right"&&s==="vertical"?"right":"left");var l=t.get("selector",!0),u=t.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,t,n,i,l,s,u);var f=Fo(t,i).refContainer,c=t.getBoxLayoutParams(),p=t.get("padding"),h=Wn(c,f,p),d=this.layoutInner(t,o,h,a,l,u),v=Wn(fe({width:d.width,height:d.height},c),f,p);this.group.x=v.x-d.x,this.group.y=v.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=RR(d,t))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,n,i,a,o,s,l){var u=this.getContentGroup(),f=X(),c=n.get("selectedMode"),p=n.get("triggerEvent"),h=[];i.eachRawSeries(function(d){!d.get("legendHoverLink")&&h.push(d.id)}),Y_(n.getData(),function(d,v){var m=this,g=d.get("name");if(!this.newlineDisabled&&(g===""||g===`
85
+ `)){var y=new Lv;y.newline=!0,u.add(y);return}var x=i.getSeriesByName(g)[0];if(!f.get(g))if(x){var _=x.getData(),b=_.getVisual("legendLineStyle")||{},S=_.getVisual("legendIcon"),w=_.getVisual("style"),C=this._createItem(x,g,v,d,n,t,b,w,S,c,a);C.on("click",$l(zR,g,null,a,h)).on("mouseover",$l(q_,x.name,null,a,h)).on("mouseout",$l(X_,x.name,null,a,h)),i.ssr&&C.eachChild(function(M){var E=ye(M);E.seriesIndex=x.seriesIndex,E.dataIndex=v,E.ssrType="legend"}),p&&C.eachChild(function(M){m.packEventData(M,n,x,v,g)}),f.set(g,!0)}else i.eachRawSeries(function(M){var E=this;if(!f.get(g)&&M.legendVisualProvider){var D=M.legendVisualProvider;if(!D.containName(g))return;var P=D.indexOfName(g),L=D.getItemVisual(P,"style"),O=D.getItemVisual(P,"legendIcon"),z=Xt(L.fill);z&&z[3]===0&&(z[3]=.2,L=k(k({},L),{fill:Qa(z,"rgba")}));var N=this._createItem(M,g,v,d,n,t,{},L,O,c,a);N.on("click",$l(zR,null,g,a,h)).on("mouseover",$l(q_,null,g,a,h)).on("mouseout",$l(X_,null,g,a,h)),i.ssr&&N.eachChild(function(V){var B=ye(V);B.seriesIndex=M.seriesIndex,B.dataIndex=v,B.ssrType="legend"}),p&&N.eachChild(function(V){E.packEventData(V,n,M,v,g)}),f.set(g,!0)}},this)},this),o&&this._createSelector(o,n,a,s,l)},e.prototype.packEventData=function(t,n,i,a,o){var s={componentType:"legend",componentIndex:n.componentIndex,dataIndex:a,value:o,seriesIndex:i.seriesIndex};ye(t).eventData=s},e.prototype._createSelector=function(t,n,i,a,o){var s=this.getSelectorGroup();Y_(t,function(u){var f=u.type,c=new $e({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect",legendId:n.id})}});s.add(c);var p=n.getModel("selectorLabel"),h=n.getModel(["emphasis","selectorLabel"]);Hn(c,{normal:p,emphasis:h},{defaultText:u.title}),Yp(c)})},e.prototype._createItem=function(t,n,i,a,o,s,l,u,f,c,p){var h=t.visualDrawType,d=o.get("itemWidth"),v=o.get("itemHeight"),m=o.isSelected(n),g=a.get("symbolRotate"),y=a.get("symbolKeepAspect"),x=a.get("icon");f=x||f||"roundRect";var _=H$(f,a,l,u,h,m,p),b=new Lv,S=a.getModel("textStyle");if(j(t.getLegendIcon)&&(!x||x==="inherit"))b.add(t.getLegendIcon({itemWidth:d,itemHeight:v,icon:f,iconRotate:g,itemStyle:_.itemStyle,lineStyle:_.lineStyle,symbolKeepAspect:y}));else{var w=x==="inherit"&&t.getData().getVisual("symbol")?g==="inherit"?t.getData().getVisual("symbolRotate"):g:0;b.add(G$({itemWidth:d,itemHeight:v,icon:f,iconRotate:w,itemStyle:_.itemStyle,lineStyle:_.lineStyle,symbolKeepAspect:y}))}var C=s==="left"?d+5:-5,M=s,E=o.get("formatter"),D=n;G(E)&&E?D=E.replace("{name}",n??""):j(E)&&(D=E(n));var P=m?S.getTextColor():a.get("inactiveColor");b.add(new $e({style:Hr(S,{text:D,x:C,y:v/2,fill:P,align:M,verticalAlign:"middle"},{inheritColor:P})}));var L=new Oe({shape:b.getBoundingRect(),style:{fill:"transparent"}}),O=a.getModel("tooltip");return O.get("show")&&ll({el:L,componentModel:o,itemName:n,itemTooltipOption:O.option}),b.add(L),b.eachChild(function(z){z.silent=!0}),L.silent=!c,this.getContentGroup().add(b),Yp(b),b.__legendDataIndex=i,b},e.prototype.layoutInner=function(t,n,i,a,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();Uo(t.get("orient"),l,t.get("itemGap"),i.width,i.height);var f=l.getBoundingRect(),c=[-f.x,-f.y];if(u.markRedraw(),l.markRedraw(),o){Uo("horizontal",u,t.get("selectorItemGap",!0));var p=u.getBoundingRect(),h=[-p.x,-p.y],d=t.get("selectorButtonGap",!0),v=t.getOrient().index,m=v===0?"width":"height",g=v===0?"height":"width",y=v===0?"y":"x";s==="end"?h[v]+=f[m]+d:c[v]+=p[m]+d,h[1-v]+=f[g]/2-p[g]/2,u.x=h[0],u.y=h[1],l.x=c[0],l.y=c[1];var x={x:0,y:0};return x[m]=f[m]+d+p[m],x[g]=Math.max(f[g],p[g]),x[y]=Math.min(0,p[y]+h[1-v]),x}else return l.x=c[0],l.y=c[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e})(Nt);Pv=V$});function Qf(r,e,t){var n=r==="allSelect"||r==="inverseSelect",i={},a=[];t.eachComponent({mainType:"legend",query:e},function(s){n?s[r]():s[r](e.name),BR(s,i),a.push(s.componentIndex)});var o={};return t.eachComponent("legend",function(s){A(i,function(l,u){s[l?"select":"unSelect"](u)}),BR(s,o)}),n?{selected:o,legendIndex:a}:{name:e.name,selected:o}}function BR(r,e){var t=e||{};return A(r.getData(),function(n){var i=n.get("name");if(!(i===`
86
+ `||i==="")){var a=r.isSelected(i);Ye(t,i)?t[i]=t[i]&&a:t[i]=a}}),t}function UR(r){r.registerAction("legendToggleSelect","legendselectchanged",Ne(Qf,"toggleSelected")),r.registerAction("legendAllSelect","legendselectall",Ne(Qf,"allSelect")),r.registerAction("legendInverseSelect","legendinverseselect",Ne(Qf,"inverseSelect")),r.registerAction("legendSelect","legendselected",Ne(Qf,"select")),r.registerAction("legendUnSelect","legendunselected",Ne(Qf,"unSelect"))}var FR=T(()=>{"use strict";I()});function $$(r){var e=r.findComponents({mainType:"legend"});e&&e.length&&r.filterSeries(function(t){for(var n=0;n<e.length;n++)if(!e[n].isSelected(t.name))return!1;return!0})}var VR,HR=T(()=>{"use strict";ne();VR=Qs($$)});function Ov(r){r.registerComponentModel(Jf),r.registerComponentView(Pv),r.registerProcessor(r.PRIORITY.PROCESSOR.SERIES_FILTER,VR),r.registerSubTypeDefaulter("legend",function(){return"plain"}),UR(r)}var Z_=T(()=>{"use strict";W_();K_();FR();HR()});function GR(r,e,t){var n=r.getOrient(),i=[1,1];i[n.index]=0,Cr(e,t,{type:"box",ignoreSize:!!i})}var W$,$R,WR=T(()=>{"use strict";ee();W_();un();Ro();Gt();W$=(function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.setScrollDataIndex=function(t){this.option.scrollDataIndex=t},e.prototype.init=function(t,n,i){var a=Yn(t);r.prototype.init.call(this,t,n,i),GR(this,t,a)},e.prototype.mergeOption=function(t,n){r.prototype.mergeOption.call(this,t,n),GR(this,this.option,t)},e.type="legend.scroll",e.defaultOption=Ch(Jf.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:ie.color.accent50,pageIconInactiveColor:ie.color.accent10,pageIconSize:15,pageTextStyle:{color:ie.color.tertiary},animationDurationUpdate:800}),e})(Jf);$R=W$});var YR,j_,J_,Y$,qR,XR=T(()=>{"use strict";ee();I();ze();un();K_();YR=Ie,j_=["width","height"],J_=["x","y"],Y$=(function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.newlineDisabled=!0,t._currentIndex=0,t}return e.prototype.init=function(){r.prototype.init.call(this),this.group.add(this._containerGroup=new YR),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new YR)},e.prototype.resetInner=function(){r.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(t,n,i,a,o,s,l){var u=this;r.prototype.renderInner.call(this,t,n,i,a,o,s,l);var f=this._controllerGroup,c=n.get("pageIconSize",!0),p=U(c)?c:[c,c];d("pagePrev",0);var h=n.getModel("pageTextStyle");f.add(new $e({name:"pageText",style:{text:"xx/xx",fill:h.getTextColor(),font:h.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),d("pageNext",1);function d(v,m){var g=v+"DataIndex",y=Qu(n.get("pageIcons",!0)[n.getOrient().name][m],{onclick:Le(u._pageGo,u,g,n,a)},{x:-p[0]/2,y:-p[1]/2,width:p[0],height:p[1]});y.name=v,f.add(y)}},e.prototype.layoutInner=function(t,n,i,a,o,s){var l=this.getSelectorGroup(),u=t.getOrient().index,f=j_[u],c=J_[u],p=j_[1-u],h=J_[1-u];o&&Uo("horizontal",l,t.get("selectorItemGap",!0));var d=t.get("selectorButtonGap",!0),v=l.getBoundingRect(),m=[-v.x,-v.y],g=ue(i);o&&(g[f]=i[f]-v[f]-d);var y=this._layoutContentAndController(t,a,g,u,f,p,h,c);if(o){if(s==="end")m[u]+=y[f]+d;else{var x=v[f]+d;m[u]-=x,y[c]-=x}y[f]+=v[f]+d,m[1-u]+=y[h]+y[p]/2-v[p]/2,y[p]=Math.max(y[p],v[p]),y[h]=Math.min(y[h],v[h]+m[1-u]),l.x=m[0],l.y=m[1],l.markRedraw()}return y},e.prototype._layoutContentAndController=function(t,n,i,a,o,s,l,u){var f=this.getContentGroup(),c=this._containerGroup,p=this._controllerGroup;Uo(t.get("orient"),f,t.get("itemGap"),a?i.width:null,a?null:i.height),Uo("horizontal",p,t.get("pageButtonItemGap",!0));var h=f.getBoundingRect(),d=p.getBoundingRect(),v=this._showController=h[o]>i[o],m=[-h.x,-h.y];n||(m[a]=f[u]);var g=[0,0],y=[-d.x,-d.y],x=$(t.get("pageButtonGap",!0),t.get("itemGap",!0));if(v){var _=t.get("pageButtonPosition",!0);_==="end"?y[a]+=i[o]-d[o]:g[a]+=d[o]+x}y[1-a]+=h[s]/2-d[s]/2,f.setPosition(m),c.setPosition(g),p.setPosition(y);var b={x:0,y:0};if(b[o]=v?i[o]:h[o],b[s]=Math.max(h[s],d[s]),b[l]=Math.min(0,d[l]+y[1-a]),c.__rectSize=i[o],v){var S={x:0,y:0};S[o]=Math.max(i[o]-d[o]-x,0),S[s]=b[s],c.setClipPath(new Oe({shape:S})),c.__rectSize=S[o]}else p.eachChild(function(C){C.attr({invisible:!0,silent:!0})});var w=this._getPageInfo(t);return w.pageIndex!=null&&Ve(f,{x:w.contentPosition[0],y:w.contentPosition[1]},v?t:null),this._updatePageInfoView(t,w),b},e.prototype._pageGo=function(t,n,i){var a=this._getPageInfo(n)[t];a!=null&&i.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:n.id})},e.prototype._updatePageInfoView=function(t,n){var i=this._controllerGroup;A(["pagePrev","pageNext"],function(f){var c=f+"DataIndex",p=n[c]!=null,h=i.childOfName(f);h&&(h.setStyle("fill",p?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),h.cursor=p?"pointer":"default")});var a=i.childOfName("pageText"),o=t.get("pageFormatter"),s=n.pageIndex,l=s!=null?s+1:0,u=n.pageCount;a&&o&&a.setStyle("text",G(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},e.prototype._getPageInfo=function(t){var n=t.get("scrollDataIndex",!0),i=this.getContentGroup(),a=this._containerGroup.__rectSize,o=t.getOrient().index,s=j_[o],l=J_[o],u=this._findTargetItemIndex(n),f=i.children(),c=f[u],p=f.length,h=p?1:0,d={contentPosition:[i.x,i.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return d;var v=_(c);d.contentPosition[o]=-v.s;for(var m=u+1,g=v,y=v,x=null;m<=p;++m)x=_(f[m]),(!x&&y.e>g.s+a||x&&!b(x,g.s))&&(y.i>g.i?g=y:g=x,g&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=g.i),++d.pageCount)),y=x;for(var m=u-1,g=v,y=v,x=null;m>=-1;--m)x=_(f[m]),(!x||!b(y,x.s))&&g.i<y.i&&(y=g,d.pagePrevDataIndex==null&&(d.pagePrevDataIndex=g.i),++d.pageCount,++d.pageIndex),g=x;return d;function _(S){if(S){var w=S.getBoundingRect(),C=w[l]+S[l];return{s:C,e:C+w[s],i:S.__legendDataIndex}}}function b(S,w){return S.e>=w&&S.s<=w+a}},e.prototype._findTargetItemIndex=function(t){if(!this._showController)return 0;var n,i=this.getContentGroup(),a;return i.eachChild(function(o,s){var l=o.__legendDataIndex;a==null&&l!=null&&(a=s),l===t&&(n=s)}),n??a},e.type="legend.scroll",e})(Pv),qR=Y$});function Q_(r){r.registerAction("legendScroll","legendscroll",function(e,t){var n=e.scrollDataIndex;n!=null&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},function(i){i.setScrollDataIndex(n)})})}var KR=T(()=>{"use strict"});function ZR(r){Wt(Ov),r.registerComponentModel($R),r.registerComponentView(qR),Q_(r)}var jR=T(()=>{"use strict";ss();Z_();WR();XR();KR()});function eb(r){Wt(Ov),Wt(ZR)}var JR=T(()=>{"use strict";ss();Z_();jR()});function tb(r){r.registerComponentModel(q$),r.registerComponentView(X$)}var q$,X$,QR=T(()=>{"use strict";ee();qn();Mi();Jt();b0();q$=(function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="dataset",t}return e.prototype.init=function(t,n,i){r.prototype.init.call(this,t,n,i),this._sourceManager=new Xh(this),_0(this)},e.prototype.mergeOption=function(t,n){r.prototype.mergeOption.call(this,t,n),_0(this)},e.prototype.optionUpdated=function(){this._sourceManager.dirty()},e.prototype.getSourceManager=function(){return this._sourceManager},e.type="dataset",e.defaultOption={seriesLayoutBy:jt},e})(Re),X$=(function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="dataset",t}return e.type="dataset",e})(Nt)});var eN=T(()=>{"use strict";IR();kR();JR();QR()});var tN=T(()=>{"use strict";eN()});var rN=T(()=>{"use strict";ss()});function K$(r){if(r){for(var e=[],t=0;t<r.length;t++)e.push(r[t].slice());return e}}function Z$(r,e){var t=r.label,n=e&&e.getTextGuideLine();return{dataIndex:r.dataIndex,dataType:r.dataType,seriesIndex:r.seriesModel.seriesIndex,text:r.label.style.text,rect:r.hostRect,labelRect:r.rect,align:t.style.align,verticalAlign:t.style.verticalAlign,labelLinePoints:K$(n&&n.shape.points)}}function Iv(r,e,t){for(var n=0;n<t.length;n++){var i=t[n];e[i]!=null&&(r[i]=e[i])}}var nN,ir,rb,j$,Rv,J$,iN,aN=T(()=>{"use strict";ze();wr();we();Za();Qd();ne();I();kd();Er();wp();nN=["align","verticalAlign","width","height","fontSize"],ir=new qi,rb=ae(),j$=ae();Rv=["x","y","rotation"],J$=(function(){function r(){this._labelList=[],this._chartViewList=[]}return r.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},r.prototype._addLabel=function(e,t,n,i,a){var o=i.style,s=i.__hostTarget,l=s.textConfig||{},u=i.getComputedTransform(),f=i.getBoundingRect().plain();se.applyTransform(f,f,u),u?ir.setLocalTransform(u):(ir.x=ir.y=ir.rotation=ir.originX=ir.originY=0,ir.scaleX=ir.scaleY=1),ir.rotation=Ur(ir.rotation);var c=i.__hostTarget,p;if(c){p=c.getBoundingRect().plain();var h=c.getComputedTransform();se.applyTransform(p,p,h)}var d=p&&c.getTextGuideLine();this._labelList.push({label:i,labelLine:d,seriesModel:n,dataIndex:e,dataType:t,layoutOptionOrCb:a,layoutOption:null,rect:f,hostRect:p,priority:p?p.width*p.height:0,defaultAttr:{ignore:i.ignore,labelGuideIgnore:d&&d.ignore,x:ir.x,y:ir.y,scaleX:ir.scaleX,scaleY:ir.scaleY,rotation:ir.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:i.cursor,attachedPos:l.position,attachedRot:l.rotation}})},r.prototype.addLabelsOfSeries=function(e){var t=this;this._chartViewList.push(e);var n=e.__model,i=n.get("labelLayout");(j(i)||oe(i).length)&&e.group.traverse(function(a){if(a.ignore)return!0;var o=a.getTextContent(),s=ye(a);o&&!o.disableLabelLayout&&t._addLabel(s.dataIndex,s.dataType,n,o,i)})},r.prototype.updateLayoutConfig=function(e){var t=e.getWidth(),n=e.getHeight();function i(x,_){return function(){dx(x,_)}}for(var a=0;a<this._labelList.length;a++){var o=this._labelList[a],s=o.label,l=s.__hostTarget,u=o.defaultAttr,f=void 0;j(o.layoutOptionOrCb)?f=o.layoutOptionOrCb(Z$(o,l)):f=o.layoutOptionOrCb,f=f||{},o.layoutOption=f;var c=Math.PI/180;l&&l.setTextConfig({local:!1,position:f.x!=null||f.y!=null?null:u.attachedPos,rotation:f.rotate!=null?f.rotate*c:u.attachedRot,offset:[f.dx||0,f.dy||0]});var p=!1;if(f.x!=null?(s.x=Be(f.x,t),s.setStyle("x",0),p=!0):(s.x=u.x,s.setStyle("x",u.style.x)),f.y!=null?(s.y=Be(f.y,n),s.setStyle("y",0),p=!0):(s.y=u.y,s.setStyle("y",u.style.y)),f.labelLinePoints){var h=l.getTextGuideLine();h&&(h.setShape({points:f.labelLinePoints}),p=!1)}var d=rb(s);d.needsUpdateLabelLine=p,s.rotation=f.rotate!=null?f.rotate*c:u.rotation,s.scaleX=u.scaleX,s.scaleY=u.scaleY;for(var v=0;v<nN.length;v++){var m=nN[v];s.setStyle(m,f[m]!=null?f[m]:u.style[m])}if(f.draggable){if(s.draggable=!0,s.cursor="move",l){var g=o.seriesModel;if(o.dataIndex!=null){var y=o.seriesModel.getData(o.dataType);g=y.getItemModel(o.dataIndex)}s.on("drag",i(l,g.getModel("labelLine")))}}else s.off("drag"),s.cursor=u.cursor}},r.prototype.layout=function(e){var t=e.getWidth(),n=e.getHeight(),i=[];A(this._labelList,function(l){l.defaultAttr.ignore||i.push(Tf({},l))});var a=Fe(i,function(l){return l.layoutOption.moveOverlap==="shiftX"}),o=Fe(i,function(l){return l.layoutOption.moveOverlap==="shiftY"});Ef(a,0,0,t),Ef(o,1,0,n);var s=Fe(i,function(l){return l.layoutOption.hideOverlap});XM(s),Rd(s)},r.prototype.processLabelsOverall=function(){var e=this;A(this._chartViewList,function(t){var n=t.__model,i=t.ignoreLabelLineUpdate,a=n.isAnimationEnabled();t.group.traverse(function(o){if(o.ignore&&!o.forceLabelAnimation)return!0;var s=!i,l=o.getTextContent();!s&&l&&(s=rb(l).needsUpdateLabelLine),s&&e._updateLabelLine(o,n),a&&e._animateLabels(o,n)})})},r.prototype._updateLabelLine=function(e,t){var n=e.getTextContent(),i=ye(e),a=i.dataIndex;if(n&&a!=null){var o=t.getData(i.dataType),s=o.getItemModel(a),l={},u=o.getItemVisual(a,"style");if(u){var f=o.getVisual("drawType");l.stroke=u[f]}var c=s.getModel("labelLine");jd(e,Jd(s),l),dx(e,c)}},r.prototype._animateLabels=function(e,t){var n=e.getTextContent(),i=e.getTextGuideLine();if(n&&(e.forceLabelAnimation||!n.ignore&&!n.invisible&&!e.disableLabelAnimation&&!gi(e))){var a=rb(n),o=a.oldLayout,s=ye(e),l=s.dataIndex,u={x:n.x,y:n.y,rotation:n.rotation},f=t.getData(s.dataType);if(o){n.attr(o);var p=e.prevStates;p&&(de(p,"select")>=0&&n.attr(a.oldLayoutSelect),de(p,"emphasis")>=0&&n.attr(a.oldLayoutEmphasis)),Ve(n,u,t,l)}else if(n.attr(u),!yi(n).valueAnimation){var c=$(n.style.opacity,1);n.style.opacity=0,Je(n,{style:{opacity:c}},t,l)}if(a.oldLayout=u,n.states.select){var h=a.oldLayoutSelect={};Iv(h,u,Rv),Iv(h,n.states.select,Rv)}if(n.states.emphasis){var d=a.oldLayoutEmphasis={};Iv(d,u,Rv),Iv(d,n.states.emphasis,Rv)}YE(n,l,f,t,t)}if(i&&!i.ignore&&!i.invisible){var a=j$(i),o=a.oldLayout,v={points:i.shape.points};o?(i.attr({shape:o}),Ve(i,{shape:v},t)):(i.setShape(v),i.style.strokePercent=0,Je(i,{style:{strokePercent:1}},t)),a.oldLayout=v}},r})(),iN=J$});function oN(r){r.registerUpdateLifecycle("series:beforeupdate",function(e,t,n){var i=nb(t).labelManager;i||(i=nb(t).labelManager=new iN),i.clearLabels()}),r.registerUpdateLifecycle("series:layoutlabels",function(e,t,n){var i=nb(t).labelManager;A(n.updatedSeries,function(a){i.addLabelsOfSeries(t.getViewOfSeriesModel(a))}),i.updateLayoutConfig(t),i.layout(t),i.processLabelsOverall()})}var nb,sN=T(()=>{"use strict";ne();aN();I();nb=ae()});var lN=T(()=>{"use strict";w_();rN();ss();sN();Wt(oN)});var uN=T(()=>{"use strict";lN()});var ib,ab,fN,us,e3,t3,Nv,ob=T(()=>{"use strict";eo();ib=Math.sin,ab=Math.cos,fN=Math.PI,us=Math.PI*2,e3=180/fN,t3=(function(){function r(){}return r.prototype.reset=function(e){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,e||4)},r.prototype.moveTo=function(e,t){this._add("M",e,t)},r.prototype.lineTo=function(e,t){this._add("L",e,t)},r.prototype.bezierCurveTo=function(e,t,n,i,a,o){this._add("C",e,t,n,i,a,o)},r.prototype.quadraticCurveTo=function(e,t,n,i){this._add("Q",e,t,n,i)},r.prototype.arc=function(e,t,n,i,a,o){this.ellipse(e,t,n,n,0,i,a,o)},r.prototype.ellipse=function(e,t,n,i,a,o,s,l){var u=s-o,f=!l,c=Math.abs(u),p=Dn(c-us)||(f?u>=us:-u>=us),h=u>0?u%us:u%us+us,d=!1;p?d=!0:Dn(c)?d=!1:d=h>=fN==!!f;var v=e+n*ab(o),m=t+i*ib(o);this._start&&this._add("M",v,m);var g=Math.round(a*e3);if(p){var y=1/this._p,x=(f?1:-1)*(us-y);this._add("A",n,i,g,1,+f,e+n*ab(o+x),t+i*ib(o+x)),y>.01&&this._add("A",n,i,g,0,+f,v,m)}else{var _=e+n*ab(s),b=t+i*ib(s);this._add("A",n,i,g,+d,+f,_,b)}},r.prototype.rect=function(e,t,n,i){this._add("M",e,t),this._add("l",n,0),this._add("l",0,i),this._add("l",-n,0),this._add("Z")},r.prototype.closePath=function(){this._d.length>0&&this._add("Z")},r.prototype._add=function(e,t,n,i,a,o,s,l,u){for(var f=[],c=this._p,p=1;p<arguments.length;p++){var h=arguments[p];if(isNaN(h)){this._invalid=!0;return}f.push(Math.round(h*c)/c)}this._d.push(e+f.join(" ")),this._start=e==="Z"},r.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},r.prototype.getStr=function(){return this._str},r})(),Nv=t3});function n3(r){var e=r.fill;return e!=null&&e!==ec}function i3(r){var e=r.stroke;return e!=null&&e!==ec}function lb(r,e,t,n){var i=e.opacity==null?1:e.opacity;if(t instanceof Ut){r("opacity",i);return}if(n3(e)){var a=ji(e.fill);r("fill",a.color);var o=e.fillOpacity!=null?e.fillOpacity*a.opacity*i:a.opacity*i;(n||o<1)&&r("fill-opacity",o)}else r("fill",ec);if(i3(e)){var s=ji(e.stroke);r("stroke",s.color);var l=e.strokeNoScale?t.getLineScale():1,u=l?(e.lineWidth||0)/l:0,f=e.strokeOpacity!=null?e.strokeOpacity*s.opacity*i:s.opacity*i,c=e.strokeFirst;if((n||u!==1)&&r("stroke-width",u),(n||c)&&r("paint-order",c?"stroke":"fill"),(n||f<1)&&r("stroke-opacity",f),e.lineDash){var p=qf(t),h=p[0],d=p[1];h&&(d=r3(d||0),r("stroke-dasharray",h.join(",")),(d||n)&&r("stroke-dashoffset",d))}else n&&r("stroke-dasharray",ec);for(var v=0;v<sb.length;v++){var m=sb[v];if(n||e[m]!==Ws[m]){var g=e[m]||Ws[m];g&&r(a3[v],g)}}}else n&&r("stroke",ec)}var ec,r3,sb,a3,cN=T(()=>{"use strict";ct();ho();Qx();I();eo();ec="none",r3=Math.round;sb=["lineCap","miterLimit","lineJoin"],a3=F(sb,function(r){return"stroke-"+r.toLowerCase()})});function kv(r){return document.createElementNS(pN,r)}function ut(r,e,t,n,i){return{tag:r,attrs:t||{},children:n,text:i,key:e}}function o3(r,e){var t=[];if(e)for(var n in e){var i=e[n],a=n;i!==!1&&(i!==!0&&i!=null&&(a+='="'+i+'"'),t.push(a))}return"<"+r+" "+t.join(" ")+">"}function s3(r){return"</"+r+">"}function tc(r,e){e=e||{};var t=e.newline?`
87
+ `:"";function n(i){var a=i.children,o=i.tag,s=i.attrs,l=i.text;return o3(o,s)+(o!=="style"?No(l):l||"")+(a?""+t+F(a,function(u){return n(u)}).join(t)+t:"")+s3(o)}return n(r)}function vN(r,e,t){t=t||{};var n=t.newline?`
88
+ `:"",i=" {"+n,a=n+"}",o=F(oe(r),function(l){return l+i+F(oe(r[l]),function(u){return u+":"+r[l][u]+";"}).join(n)+a}).join(n),s=F(oe(e),function(l){return"@keyframes "+l+i+F(oe(e[l]),function(u){return u+i+F(oe(e[l][u]),function(f){var c=e[l][u][f];return f==="d"&&(c='path("'+c+'")'),f+":"+c+";"}).join(n)+a}).join(n)+a}).join(n);return!o&&!s?"":["<![CDATA[",o,s,"]]>"].join(n)}function rc(r){return{zrId:r,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function cb(r,e,t,n){return ut("svg","root",{width:r,height:e,xmlns:pN,"xmlns:xlink":ub,version:"1.1",baseProfile:"full",viewBox:n?"0 0 "+r+" "+e:!1},t)}var pN,ub,hN,dN,fb,nc=T(()=>{"use strict";I();Mh();pN="http://www.w3.org/2000/svg",ub="http://www.w3.org/1999/xlink",hN="http://www.w3.org/2000/xmlns/",dN="http://www.w3.org/XML/1998/namespace",fb="ecmeta_"});function zv(){return l3++}var l3,pb=T(()=>{"use strict";l3=0});function u3(r,e,t){var n=k({},r.shape);k(n,e),r.buildPath(t,n);var i=new Nv;return i.reset(up(r)),t.rebuildPath(i,1),i.generateStr(),i.getStr()}function f3(r,e){var t=e.originX,n=e.originY;(t||n)&&(r[fs]=t+"px "+n+"px")}function yN(r,e){var t=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[t]=r,t}function p3(r,e,t){var n=r.shape.paths,i={},a,o;if(A(n,function(l){var u=rc(t.zrId);u.animation=!0,ic(l,{},u,!0);var f=u.cssAnims,c=u.cssNodes,p=oe(f),h=p.length;if(h){o=p[h-1];var d=f[o];for(var v in d){var m=d[v];i[v]=i[v]||{d:""},i[v].d+=m.d||""}for(var g in c){var y=c[g].animation;y.indexOf(o)>=0&&(a=y)}}}),!!a){e.d=!1;var s=yN(i,t);return a.replace(o,s)}}function gN(r){return G(r)?mN[r]?"cubic-bezier("+mN[r]+")":Us(r)?r:"":""}function ic(r,e,t,n){var i=r.animators,a=i.length,o=[];if(r instanceof Jp){var s=p3(r,e,t);if(s)o.push(s);else if(!a)return}else if(!a)return;for(var l={},u=0;u<a;u++){var f=i[u],c=[f.getMaxTime()/1e3+"s"],p=gN(f.getClip().easing),h=f.getDelay();p?c.push(p):c.push("linear"),h&&c.push(h/1e3+"s"),f.getLoop()&&c.push("infinite");var d=c.join(" ");l[d]=l[d]||[d,[]],l[d][1].push(f)}function v(y){var x=y[1],_=x.length,b={},S={},w={},C="animation-timing-function";function M(Ze,Ce,Ge){for(var pe=Ze.getTracks(),be=Ze.getMaxTime(),ar=0;ar<pe.length;ar++){var tt=pe[ar];if(tt.needsAnimate()){var Xr=tt.keyframes,or=tt.propName;if(Ge&&(or=Ge(or)),or)for(var Kr=0;Kr<Xr.length;Kr++){var hs=Xr[Kr],Zr=Math.round(hs.time/be*100)+"%",cc=gN(hs.easing),ds=hs.rawValue;(G(ds)||he(ds))&&(Ce[Zr]=Ce[Zr]||{},Ce[Zr][or]=hs.rawValue,cc&&(Ce[Zr][C]=cc))}}}}for(var E=0;E<_;E++){var D=x[E],P=D.targetName;P?P==="shape"&&M(D,S):!n&&M(D,b)}for(var L in b){var O={};Yi(O,r),k(O,b[L]);var z=fp(O),N=b[L][C];w[L]=z?{transform:z}:{},f3(w[L],O),N&&(w[L][C]=N)}var V,B=!0;for(var L in S){w[L]=w[L]||{};var H=!V,N=S[L][C];H&&(V=new Lt);var W=V.len();V.reset(),w[L].d=u3(r,S[L],V);var K=V.len();if(!H&&W!==K){B=!1;break}N&&(w[L][C]=N)}if(!B)for(var L in w)delete w[L].d;if(!n)for(var E=0;E<_;E++){var D=x[E],P=D.targetName;P==="style"&&M(D,w,function(pe){return c3[pe]})}for(var J=oe(w),re=!0,Z,E=1;E<J.length;E++){var ve=J[E-1],_e=J[E];if(w[ve][fs]!==w[_e][fs]){re=!1;break}Z=w[ve][fs]}if(re&&Z){for(var L in w)w[L][fs]&&delete w[L][fs];e[fs]=Z}if(Fe(J,function(Ze){return oe(w[Ze]).length>0}).length){var et=yN(w,t);return et+" "+y[0]+" both"}}for(var m in l){var s=v(l[m]);s&&o.push(s)}if(o.length){var g=t.zrId+"-cls-"+zv();t.cssNodes["."+g]={animation:o.join(",")},e.class=g}}var mN,fs,c3,xN=T(()=>{"use strict";Za();nc();ob();Nn();eo();I();ly();ep();pb();mN={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"},fs="transform-origin";c3={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"}});function bN(r,e,t){if(!r.ignore)if(r.isSilent()){var n={"pointer-events":"none"};_N(n,e,t,!0)}else{var i=r.states.emphasis&&r.states.emphasis.style?r.states.emphasis.style:{},a=i.fill;if(!a){var o=r.style&&r.style.fill,s=r.states.select&&r.states.select.style&&r.states.select.style.fill,l=r.currentStates.indexOf("select")>=0&&s||o;l&&(a=xu(l))}var u=i.lineWidth;if(u){var f=!i.strokeNoScale&&r.transform?r.transform[0]:1;u=u/f}var n={cursor:"pointer"};a&&(n.fill=a),i.stroke&&(n.stroke=i.stroke),u&&(n["stroke-width"]=u),_N(n,e,t,!0)}}function _N(r,e,t,n){var i=JSON.stringify(r),a=t.cssStyleCache[i];a||(a=t.zrId+"-cls-"+zv(),t.cssStyleCache[i]=a,t.cssNodes["."+a+(n?":hover":"")]=r),e.class=e.class?e.class+" "+a:a}var SN=T(()=>{"use strict";kr();pb()});function AN(r){return r&&G(r.src)}function CN(r){return r&&j(r.toDataURL)}function hb(r,e,t,n){lb(function(i,a){var o=i==="fill"||i==="stroke";o&&lp(a)?gb(e,r,i,n):o&&_u(a)?yb(t,r,i,n):r[i]=a,o&&n.ssr&&a==="none"&&(r["pointer-events"]="visible")},e,t,!1),x3(t,r,n)}function db(r,e){var t=rP(e);t&&(t.each(function(n,i){n!=null&&(r[(fb+i).toLowerCase()]=n+"")}),e.isSilent()&&(r[fb+"silent"]="true"))}function wN(r){return Dn(r[0]-1)&&Dn(r[1])&&Dn(r[2])&&Dn(r[3]-1)}function h3(r){return Dn(r[4])&&Dn(r[5])}function vb(r,e,t){if(e&&!(h3(e)&&wN(e))){var n=t?10:1e4;r.transform=wN(e)?"translate("+ac(e[4]*n)/n+" "+ac(e[5]*n)/n+")":Jw(e)}}function TN(r,e,t){for(var n=r.points,i=[],a=0;a<n.length;a++)i.push(ac(n[a][0]*t)/t),i.push(ac(n[a][1]*t)/t);e.points=i.join(" ")}function EN(r){return!r.smooth}function d3(r){var e=F(r,function(t){return typeof t=="string"?[t,t]:t});return function(t,n,i){for(var a=0;a<e.length;a++){var o=e[a],s=t[o[0]];s!=null&&(n[o[1]]=ac(s*i)/i)}}}function m3(r){for(var e=r.animators,t=0;t<e.length;t++)if(e[t].targetName==="shape")return!0;return!1}function MN(r,e){var t=r.style,n=r.shape,i=v3[r.type],a={},o=e.animation,s="path",l=r.style.strokePercent,u=e.compress&&up(r)||4;if(i&&!e.willUpdate&&!(i[1]&&!i[1](n))&&!(o&&m3(r))&&!(l<1)){s=r.type;var f=Math.pow(10,u);i[0](n,a,f)}else{var c=!r.path||r.shapeChanged();r.path||r.createPathProxy();var p=r.path;c&&(p.beginPath(),r.buildPath(p,r.shape),r.pathUpdated());var h=p.getVersion(),d=r,v=d.__svgPathBuilder;(d.__svgPathVersion!==h||!v||l!==d.__svgPathStrokePercent)&&(v||(v=d.__svgPathBuilder=new Nv),v.reset(u),p.rebuildPath(v,l),v.generateStr(),d.__svgPathVersion=h,d.__svgPathStrokePercent=l),a.d=v.getStr()}return vb(a,r.transform),hb(a,t,r,e),db(a,r),e.animation&&ic(r,a,e),e.emphasis&&bN(r,a,e),ut(s,r.id+"",a)}function g3(r,e){var t=r.style,n=t.image;if(n&&!G(n)&&(AN(n)?n=n.src:CN(n)&&(n=n.toDataURL())),!!n){var i=t.x||0,a=t.y||0,o=t.width,s=t.height,l={href:n,width:o,height:s};return i&&(l.x=i),a&&(l.y=a),vb(l,r.transform),hb(l,t,r,e),db(l,r),e.animation&&ic(r,l,e),ut("image",r.id+"",l)}}function y3(r,e){var t=r.style,n=t.text;if(n!=null&&(n+=""),!(!n||isNaN(t.x)||isNaN(t.y))){var i=t.font||lr,a=t.x||0,o=eT(t.y||0,Ya(i),t.textBaseline),s=Qw[t.textAlign]||t.textAlign,l={"dominant-baseline":"central","text-anchor":s};if(Ag(t)){var u="",f=t.fontStyle,c=Eg(t.fontSize);if(!parseFloat(c))return;var p=t.fontFamily||xm,h=t.fontWeight;u+="font-size:"+c+";font-family:"+p+";",f&&f!=="normal"&&(u+="font-style:"+f+";"),h&&h!=="normal"&&(u+="font-weight:"+h+";"),l.style=u}else l.style="font: "+i;return n.match(/\s/)&&(l["xml:space"]="preserve"),a&&(l.x=a),o&&(l.y=o),vb(l,r.transform),hb(l,t,r,e),db(l,r),e.animation&&ic(r,l,e),ut("text",r.id+"",l,void 0,n)}}function mb(r,e){if(r instanceof le)return MN(r,e);if(r instanceof Ut)return g3(r,e);if(r instanceof po)return y3(r,e)}function x3(r,e,t){var n=r.style;if(tT(n)){var i=rT(r),a=t.shadowCache,o=a[i];if(!o){var s=r.getGlobalScale(),l=s[0],u=s[1];if(!l||!u)return;var f=n.shadowOffsetX||0,c=n.shadowOffsetY||0,p=n.shadowBlur,h=ji(n.shadowColor),d=h.opacity,v=h.color,m=p/2/l,g=p/2/u,y=m+" "+g;o=t.zrId+"-s"+t.shadowIdx++,t.defs[o]=ut("filter",o,{id:o,x:"-100%",y:"-100%",width:"300%",height:"300%"},[ut("feDropShadow","",{dx:f/l,dy:c/u,stdDeviation:y,"flood-color":v,"flood-opacity":d})]),a[i]=o}e.filter=bu(o)}}function gb(r,e,t,n){var i=r[t],a,o={gradientUnits:i.global?"userSpaceOnUse":"objectBoundingBox"};if(op(i))a="linearGradient",o.x1=i.x,o.y1=i.y,o.x2=i.x2,o.y2=i.y2;else if(sp(i))a="radialGradient",o.cx=$(i.x,.5),o.cy=$(i.y,.5),o.r=$(i.r,.5);else return;for(var s=i.colorStops,l=[],u=0,f=s.length;u<f;++u){var c=ap(s[u].offset)*100+"%",p=s[u].color,h=ji(p),d=h.color,v=h.opacity,m={offset:c};m["stop-color"]=d,v<1&&(m["stop-opacity"]=v),l.push(ut("stop",u+"",m))}var g=ut(a,"",o,l),y=tc(g),x=n.gradientCache,_=x[y];_||(_=n.zrId+"-g"+n.gradientIdx++,x[y]=_,o.id=_,n.defs[_]=ut(a,_,o,l)),e[t]=bu(_)}function yb(r,e,t,n){var i=r.style[t],a=r.getBoundingRect(),o={},s=i.repeat,l=s==="no-repeat",u=s==="repeat-x",f=s==="repeat-y",c;if(Jm(i)){var p=i.imageWidth,h=i.imageHeight,d=void 0,v=i.image;if(G(v)?d=v:AN(v)?d=v.src:CN(v)&&(d=v.toDataURL()),typeof Image>"u"){var m="Image width/height must been given explictly in svg-ssr renderer.";it(p,m),it(h,m)}else if(p==null||h==null){var g=function(E,D){if(E){var P=E.elm,L=p||D.width,O=h||D.height;E.tag==="pattern"&&(u?(O=1,L/=a.width):f&&(L=1,O/=a.height)),E.attrs.width=L,E.attrs.height=O,P&&(P.setAttribute("width",L),P.setAttribute("height",O))}},y=fu(d,null,r,function(E){l||g(S,E),g(c,E)});y&&y.width&&y.height&&(p=p||y.width,h=h||y.height)}c=ut("image","img",{href:d,width:p,height:h}),o.width=p,o.height=h}else i.svgElement&&(c=ue(i.svgElement),o.width=i.svgWidth,o.height=i.svgHeight);if(c){var x,_;l?x=_=1:u?(_=1,x=o.width/a.width):f?(x=1,_=o.height/a.height):o.patternUnits="userSpaceOnUse",x!=null&&!isNaN(x)&&(o.width=x),_!=null&&!isNaN(_)&&(o.height=_);var b=fp(i);b&&(o.patternTransform=b);var S=ut("pattern","",o,[c]),w=tc(S),C=n.patternCache,M=C[w];M||(M=n.zrId+"-p"+n.patternIdx++,C[w]=M,o.id=M,S=n.defs[M]=ut("pattern",M,o,[c])),e[t]=bu(M)}}function DN(r,e,t){var n=t.clipPathCache,i=t.defs,a=n[r.id];if(!a){a=t.zrId+"-c"+t.clipPathIdx++;var o={id:a};n[r.id]=a,i[a]=ut("clipPath",a,o,[MN(r,t)])}e["clip-path"]=bu(a)}var ac,v3,LN=T(()=>{"use strict";eo();ct();ho();en();Tp();ob();cN();nc();I();zc();xN();Ou();wn();SN();ov();ac=Math.round;v3={circle:[d3(["cx","cy","r"])],polyline:[TN,EN],polygon:[TN,EN]}});function xb(r){return document.createTextNode(r)}function Aa(r,e,t){r.insertBefore(e,t)}function _b(r,e){r.removeChild(e)}function bb(r,e){r.appendChild(e)}function Sb(r){return r.parentNode}function wb(r){return r.nextSibling}function Bv(r,e){r.textContent=e}var PN=T(()=>{"use strict"});function Tb(r){return r===void 0}function jn(r){return r!==void 0}function w3(r,e,t){for(var n={},i=e;i<=t;++i){var a=r[i].key;a!==void 0&&(n[a]=i)}return n}function oc(r,e){var t=r.key===e.key,n=r.tag===e.tag;return n&&t}function sc(r){var e,t=r.children,n=r.tag;if(jn(n)){var i=r.elm=kv(n);if(Fv(S3,r),U(t))for(e=0;e<t.length;++e){var a=t[e];a!=null&&bb(i,sc(a))}else jn(r.text)&&!Y(r.text)&&bb(i,xb(r.text))}else r.elm=xb(r.text);return r.elm}function IN(r,e,t,n,i){for(;n<=i;++n){var a=t[n];a!=null&&Aa(r,sc(a),e)}}function Uv(r,e,t,n){for(;t<=n;++t){var i=e[t];if(i!=null)if(jn(i.tag)){var a=Sb(i.elm);_b(a,i.elm)}else _b(r,i.elm)}}function Fv(r,e){var t,n=e.elm,i=r&&r.attrs||{},a=e.attrs||{};if(i!==a){for(t in a){var o=a[t],s=i[t];s!==o&&(o===!0?n.setAttribute(t,""):o===!1?n.removeAttribute(t):t==="style"?n.style.cssText=o:t.charCodeAt(0)!==b3?n.setAttribute(t,o):t==="xmlns:xlink"||t==="xmlns"?n.setAttributeNS(hN,t,o):t.charCodeAt(3)===ON?n.setAttributeNS(dN,t,o):t.charCodeAt(5)===ON?n.setAttributeNS(ub,t,o):n.setAttribute(t,o))}for(t in i)t in a||n.removeAttribute(t)}}function T3(r,e,t){for(var n=0,i=0,a=e.length-1,o=e[0],s=e[a],l=t.length-1,u=t[0],f=t[l],c,p,h,d;n<=a&&i<=l;)o==null?o=e[++n]:s==null?s=e[--a]:u==null?u=t[++i]:f==null?f=t[--l]:oc(o,u)?(Wl(o,u),o=e[++n],u=t[++i]):oc(s,f)?(Wl(s,f),s=e[--a],f=t[--l]):oc(o,f)?(Wl(o,f),Aa(r,o.elm,wb(s.elm)),o=e[++n],f=t[--l]):oc(s,u)?(Wl(s,u),Aa(r,s.elm,o.elm),s=e[--a],u=t[++i]):(Tb(c)&&(c=w3(e,n,a)),p=c[u.key],Tb(p)?Aa(r,sc(u),o.elm):(h=e[p],h.tag!==u.tag?Aa(r,sc(u),o.elm):(Wl(h,u),e[p]=void 0,Aa(r,h.elm,o.elm))),u=t[++i]);(n<=a||i<=l)&&(n>a?(d=t[l+1]==null?null:t[l+1].elm,IN(r,d,t,i,l)):Uv(r,e,n,a))}function Wl(r,e){var t=e.elm=r.elm,n=r.children,i=e.children;r!==e&&(Fv(r,e),Tb(e.text)?jn(n)&&jn(i)?n!==i&&T3(t,n,i):jn(i)?(jn(r.text)&&Bv(t,""),IN(t,null,i,0,i.length-1)):jn(n)?Uv(t,n,0,n.length-1):jn(r.text)&&Bv(t,""):r.text!==e.text&&(jn(n)&&Uv(t,n,0,n.length-1),Bv(t,e.text)))}function Eb(r,e){if(oc(r,e))Wl(r,e);else{var t=r.elm,n=Sb(t);sc(e),n!==null&&(Aa(n,e.elm,wb(t)),Uv(n,[r],0,0))}return e}var ON,b3,S3,RN=T(()=>{"use strict";I();nc();PN();ON=58,b3=120,S3=ut("","")});function C3(r){return function(){}}function M3(r,e,t,n){var i;if(t&&t!=="none")if(i=ut("rect","bg",{width:r,height:e,x:"0",y:"0"}),lp(t))gb({fill:t},i.attrs,"fill",n);else if(_u(t))yb({style:{fill:t},dirty:at,getBoundingRect:function(){return{width:r,height:e}}},i.attrs,"fill",n);else{var a=ji(t),o=a.color,s=a.opacity;i.attrs.fill=o,s<1&&(i.attrs["fill-opacity"]=s)}return i}var E3,A3,NN,kN=T(()=>{"use strict";LN();nc();eo();I();RN();Jx();E3=0,A3=(function(){function r(e,t,n){if(this.type="svg",this.configLayer=C3("configLayer"),this.storage=t,this._opts=n=k({},n),this.root=e,this._id="zr"+E3++,this._oldVNode=cb(n.width,n.height),e&&!n.ssr){var i=this._viewport=document.createElement("div");i.style.cssText="position:relative;overflow:hidden";var a=this._svgDom=this._oldVNode.elm=kv("svg");Fv(null,this._oldVNode),i.appendChild(a),e.appendChild(i)}this.resize(n.width,n.height)}return r.prototype.getType=function(){return this.type},r.prototype.getViewportRoot=function(){return this._viewport},r.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},r.prototype.getSvgDom=function(){return this._svgDom},r.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",Eb(this._oldVNode,e),this._oldVNode=e}},r.prototype.renderOneToVNode=function(e){return mb(e,rc(this._id))},r.prototype.renderToVNode=function(e){e=e||{};var t=this.storage.getDisplayList(!0),n=this._width,i=this._height,a=rc(this._id);a.animation=e.animation,a.willUpdate=e.willUpdate,a.compress=e.compress,a.emphasis=e.emphasis,a.ssr=this._opts.ssr;var o=[],s=this._bgVNode=M3(n,i,this._backgroundColor,a);s&&o.push(s);var l=e.compress?null:this._mainVNode=ut("g","main",{},[]);this._paintList(t,a,l?l.children:o),l&&o.push(l);var u=F(oe(a.defs),function(p){return a.defs[p]});if(u.length&&o.push(ut("defs","defs",{},u)),e.animation){var f=vN(a.cssNodes,a.cssAnims,{newline:!0});if(f){var c=ut("style","stl",{},[],f);o.push(c)}}return cb(n,i,o,e.useViewBox)},r.prototype.renderToString=function(e){return e=e||{},tc(this.renderToVNode({animation:$(e.cssAnimation,!0),emphasis:$(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:$(e.useViewBox,!0)}),{newline:!0})},r.prototype.setBackgroundColor=function(e){this._backgroundColor=e},r.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},r.prototype._paintList=function(e,t,n){for(var i=e.length,a=[],o=0,s,l,u=0,f=0;f<i;f++){var c=e[f];if(!c.invisible){var p=c.__clipPaths,h=p&&p.length||0,d=l&&l.length||0,v=void 0;for(v=Math.max(h-1,d-1);v>=0&&!(p&&l&&p[v]===l[v]);v--);for(var m=d-1;m>v;m--)o--,s=a[o-1];for(var g=v+1;g<h;g++){var y={};DN(p[g],y,t);var x=ut("g","clip-g-"+u++,y,[]);(s?s.children:n).push(x),a[o++]=x,s=x}l=p;var _=mb(c,t);_&&(s?s.children:n).push(_)}}},r.prototype.resize=function(e,t){var n=this._opts,i=this.root,a=this._viewport;if(e!=null&&(n.width=e),t!=null&&(n.height=t),i&&a&&(a.style.display="none",e=jx(i,0,n),t=jx(i,1,n),a.style.display=""),this._width!==e||this._height!==t){if(this._width=e,this._height=t,a){var o=a.style;o.width=e+"px",o.height=t+"px"}if(_u(this._backgroundColor))this.refresh();else{var s=this._svgDom;s&&(s.setAttribute("width",e),s.setAttribute("height",t));var l=this._bgVNode&&this._bgVNode.elm;l&&(l.setAttribute("width",e),l.setAttribute("height",t))}}},r.prototype.getWidth=function(){return this._width},r.prototype.getHeight=function(){return this._height},r.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},r.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},r.prototype.toDataURL=function(e){var t=this.renderToString(),n="data:image/svg+xml;";return e?(t=nT(t),t&&n+"base64,"+t):n+"charset=UTF-8,"+encodeURIComponent(t)},r})();NN=A3});function Ab(r){r.registerPainter("svg",NN)}var zN=T(()=>{"use strict";kN()});var BN=T(()=>{"use strict";zN()});var UN=T(()=>{"use strict";BN()});function O3(r,e,t){let n=i=>{let a=i/t;return a>Vv?Math.round(a):0};return{x:n(Math.max(r.left-e.left,e.right-r.right)),y:n(Math.max(r.top-e.top,e.bottom-r.bottom))}}function FN(r){return P3.exec(r)?.[0]??null}function VN(r){return`@scope {
89
+ ${r}
90
+ }`}function HN(){return typeof CSSScopeRule=="function"}function I3(r){let e=[r.overflowX!==0?`${r.overflowX}px horizontally`:"",r.overflowY!==0?`${r.overflowY}px vertically`:""].filter(Boolean).join(", ");return`${r.frame}: ${r.selector} sticks out of its bang-free box by ${e}; the part outside is clipped`}function R3(r,e){let t=e.length>1?` (and ${e.length-1} more)`:"";return`${r}: color code "${e[0]}" in the CSS${t}; take colors from the theme with var(--bang-color-*)`}function N3(r){return`${r}: <style> is not a direct child of bang-free, so it is not scoped and applies to the whole page; move it directly under bang-free`}function k3(r,e){return`${r}: ${e} must be the only bang-free[overlay] and the last child of its bang-frame; otherwise the other parts move`}function GN(r,e){if(r)for(let t of r){let n=t.style;if(n){let a=FN(n.cssText);a&&e.push(a)}let i=t.cssRules;i&&GN(i,e)}}function z3(r){let e=[];for(let t of r.querySelectorAll("style"))GN(t.sheet?.cssRules,e);for(let t of r.querySelectorAll("*"))for(let n of D3){let i=FN(t.getAttribute(n)??"");i&&e.push(i)}return[...new Set(e)]}function B3(r){let e=r.parentElement;if(!sr(r))return!1;if(!e||e.localName!=="bang-frame")return!0;for(let t=r.nextElementSibling;t;t=t.nextElementSibling)if(sr(t))return!0;return[...e.children].filter(t=>t.localName==="bang-free"&&t.hasAttribute("overlay")&&sr(t)).length>=2}function U3(r){let e=r;for(let t=r.ownerSVGElement;t;t=t.ownerSVGElement)e=t;return e}function F3(r,e){let t=r.getBoundingClientRect(),n=St(r.closest("bang-frame")??r),i=null;for(let a of r.querySelectorAll("*")){let o=a.getBoundingClientRect();if(o.width===0&&o.height===0)continue;let s=t;if(a instanceof SVGElement&&a.ownerSVGElement){if(!L3.has(a.localName)||a.closest("defs, marker, clipPath, mask, pattern, symbol"))continue;s=U3(a).getBoundingClientRect()}let{x:l,y:u}=O3(s,o,e);l===0&&u===0||(!i||Math.max(l,u)>Math.max(i.overflowX,i.overflowY))&&(i={frame:n,selector:St(a),overflowX:l,overflowY:u})}return i}function $N(r){let e=[];for(let t of r.querySelectorAll("bang-free")){let n=z3(t);n.length>0&&e.push(R3(St(t),n));let i=[...t.querySelectorAll("style")].find(s=>s.parentElement!==t);i&&e.push(N3(St(i))),t.hasAttribute("overlay")&&B3(t)&&e.push(k3(St(t.closest("bang-frame")??t),St(t)));let a=t.offsetWidth;if(a===0)continue;let o=F3(t,t.getBoundingClientRect().width/a);o&&e.push(I3(o))}return e}var Vv,D3,L3,P3,Hv=T(()=>{"use strict";rt();zi();Vv=2,D3=["style","fill","stroke","color","stop-color","flood-color","lighting-color"],L3=new Set(["path","ellipse","circle","rect","line","polyline","polygon","text","image","use"]),P3=/(?<!url\(\s*["']?)#[0-9a-fA-F]{3,8}(?![\w-])|\b(?:rgba?|hsla?|hwb|lab|lch|oklab|oklch|color)\([^)]*\)/i});function lc(r,e,t="timed out"){let n,i=new Promise((a,o)=>{n=setTimeout(()=>o(new Error(t)),e)});return Promise.race([r,i]).finally(()=>clearTimeout(n))}function H3(r){return((r instanceof Error?r.message:String(r)).split(`
91
+ `)[0]??"").slice(0,200)}async function G3(r,e){let t=await Promise.allSettled(r.map(i=>lc(i.ready,e,`timed out after ${e}ms`))),n=[];return t.forEach((i,a)=>{i.status==="rejected"&&n.push({selector:r[a].selector,tag:r[a].tag,reason:H3(i.reason)})}),n}function $3(r){let e=new Set,t=n=>{if(n.nodeType===Node.TEXT_NODE){for(let i of n.data)i.trim()!==""&&e.add(i);return}if(n instanceof Element){if(n.localName==="script"||n.localName==="style"||n.localName==="bang-notes"||!sr(n))return;n.shadowRoot&&n.shadowRoot.childNodes.forEach(t)}n.childNodes.forEach(t)};return t(r),[...e].join("")}async function WN(r,e={}){let t=e.timeoutMs??AS,n=e.fontsTimeoutMs??V3,i=new Set(e.extraWarnings??[]);(await Mb(n)).forEach(s=>i.add(s));let a=[];for(let s of r.querySelectorAll("*")){if(!sr(s))continue;let l=s.renderReady;l instanceof Promise&&a.push({selector:St(s),tag:s.localName,ready:l})}let o=await G3(a,t);return(await Gv($3(r),n)).forEach(s=>i.add(s)),$N(r).forEach(s=>i.add(s)),DS().forEach(s=>i.add(s)),{ok:o.length===0,failed:o,warnings:[...i]}}var V3,Cb=T(()=>{"use strict";Mt();$v();rt();Hv();zi();V3=1e4});function XN(r){let e=jS(r);if(e==="")return;let t=document.getElementById("bang-lang");t||(t=document.createElement("style"),t.id="bang-lang",document.head.append(t)),t.textContent=e}function KN(r){if(document.getElementById("bang-base"))return;let e=document.head,t=(a,o)=>{let s=document.createElement("link");s.rel="preconnect",s.href=a,o&&(s.crossOrigin=""),e.append(s)};t("https://fonts.googleapis.com",!1),t("https://fonts.gstatic.com",!0);let n=document.createElement("link");n.id="bang-fonts",n.rel="stylesheet",n.href=OS,qN=new Promise(a=>{n.addEventListener("load",()=>a("load")),n.addEventListener("error",()=>a("error"))}),e.append(n);let i=document.createElement("style");i.id="bang-base",i.textContent=Y3+(r==="export"?q3:""),e.append(i)}function ZN(r){if(cs){cs.request.href!==r.href&&He(`themefonts|${r.href}`,"[banger] the theme fonts stylesheet is set once per page; a different fontsHref is ignored");return}let e=document.createElement("link");e.id="bang-theme-fonts",e.rel="stylesheet",e.href=r.href;let t=new Promise(n=>{e.addEventListener("load",()=>n("load")),e.addEventListener("error",()=>n("error"))});document.head.append(e),cs={request:r,status:t},Wv=null}async function YN(r,e,t){if(!r)return{warnings:[],settled:!0};try{return{warnings:await lc(r,e)==="error"?[t.failed]:[],settled:!0}}catch{return{warnings:[t.timedOut],settled:!1}}}async function Mb(r){if(Wv)return Wv;let e=cs,[t,n]=await Promise.all([YN(qN,r,{failed:"fonts stylesheet failed to load; system fonts are used",timedOut:"fonts stylesheet timed out; system fonts are used"}),YN(e?.status,r,{failed:"theme fonts stylesheet failed to load; the font stack falls back",timedOut:"theme fonts stylesheet timed out; the font stack falls back"})]),i=[...t.warnings,...n.warnings];return t.settled&&n.settled&&cs===e&&(Wv=i),i}async function X3(r,e){let t=Date.now()+e,n=()=>Math.max(0,t-Date.now()),i=new Set(await Mb(e));await Promise.all([...W3,...cs?.request.families??[]].flatMap(({family:a,weights:o})=>o.map(async s=>{try{await lc(document.fonts.load(`${s} 1em "${a}"`,r),n())}catch(l){i.add(l instanceof Error&&l.message==="timed out"?"fonts timed out":`font load failed: ${a}`)}})));try{await lc(document.fonts.ready,n())}catch{i.add("fonts timed out")}return[...i]}function Gv(r,e){let t=`${r}\0${cs?.request.href??""}`;if(Db?.key===t)return Db.result;let n=X3(r,e);return Db={key:t,result:n},n}var W3,qN,Wv,cs,Db,Y3,q3,$v=T(()=>{"use strict";iu();Mt();Cb();zi();W3=[{family:"Bricolage Grotesque",weights:[800]},{family:"Noto Sans JP",weights:[400,700]},{family:"JetBrains Mono",weights:[400]}],qN=null,Wv=null,cs=null,Db=null,Y3=`
92
+ html, body { margin: 0; overflow: hidden; background: var(--bang-color-paper, #F6F5F1); }
93
+ [data-step], bang-list > li, bang-list > bang-list { transition: opacity var(--bang-duration-fast, 200ms); }
94
+ [data-bang-hidden] { opacity: 0; pointer-events: none; }
95
+ /* Set after the first mouse flick: a page-turner remote is driving the deck, and its drags would otherwise select text or drag images on every press. */
96
+ html[data-bang-remote] { -webkit-user-select: none; user-select: none; }
97
+ html[data-bang-remote] img { -webkit-user-drag: none; }
98
+ /* The remote also moves the cursor up and down on every press; bang-root hides it until a person moves the mouse. */
99
+ bang-root[data-bang-nocursor] * { cursor: none !important; }
100
+ /* --bang-near is 1 when the frame fills the screen and 0 when the camera is far from it; bang-root sets it on every move. */
101
+ bang-frame [show="near"] { opacity: var(--bang-near, 1); }
102
+ bang-frame [show="far"] { opacity: calc(1 - var(--bang-near, 1)); }
103
+ /* A focus stop keeps its element at full strength and fades the rest, so the edges of neighbours that fall inside the screen read as background rather than as part of the slide. */
104
+ bang-frame[data-bang-spot], bang-frame [data-bang-spot] { transition: opacity var(--bang-duration-slow, 400ms); }
105
+ bang-frame[data-bang-dim], bang-frame [data-bang-dim]:not([data-bang-hidden], [show="far"]) { opacity: 0.16; }
106
+ @media (prefers-reduced-motion: reduce) { bang-frame[data-bang-spot], bang-frame [data-bang-spot] { transition: none; } }
107
+ /* Layouts keep their natural height so the frame can centre them; only those holding a chart or image grow. Set here because document rules outrank :host. */
108
+ /* A band spans its stack even when the stack centres or end-aligns its children. */
109
+ bang-stack > bang-card[kind="band"] { align-self: stretch; }
110
+ bang-stack:has(bang-chart, bang-image, bang-free:not([overlay])), bang-columns:has(bang-chart, bang-image, bang-free:not([overlay])), bang-card:has(bang-chart, bang-image, bang-free:not([overlay])) { flex: 1 1 0; }
111
+ /* A column that holds a free box takes the full row height even when the columns centre or end-align their cells; otherwise the box fills a content-high cell and collapses to 0. */
112
+ bang-columns > :has(bang-free:not([overlay])) { align-self: stretch; }
113
+ /* An arrow or mark between cards sits on the row's centre line, even when the columns stretch their cells. */
114
+ bang-columns > bang-shape { align-self: center; justify-self: center; }
115
+ /* The frame centres its children; when it opens with a title, free space is split between these two auto margins so the title stays on top and the rest is centred below it. */
116
+ bang-frame:not([valign="spread"]) > bang-title:first-child, bang-frame:not([valign="spread"]):has(> bang-title:first-child) > :last-child { margin-bottom: auto; }
117
+ bang-frame:not([valign="spread"]):has(> bang-title:first-child) > :nth-last-child(2):has(+ bang-free[overlay]:last-child) { margin-bottom: auto; }
118
+ /* Inline emphasis lives in the document: ::slotted() cannot reach a <mark> inside a list's li. The text colour is pinned to ink so the highlight contrast check holds whatever the surrounding tone. */
119
+ bang-text mark, bang-title mark, bang-list mark { color: var(--bang-color-ink); background: linear-gradient(transparent 60%, var(--bang-highlight, color-mix(in srgb, var(--bang-color-signal) 40%, transparent)) 60%); -webkit-box-decoration-break: clone; box-decoration-break: clone; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
120
+ /* Tone frames flip the text colour and put signal or ink behind it, so a light band would swallow the text; underline in the text colour instead. */
121
+ bang-frame[tone="accent"] :is(bang-text, bang-title, bang-list) mark, bang-frame[tone="inverse"] :is(bang-text, bang-title, bang-list) mark { color: inherit; background: linear-gradient(transparent 88%, currentColor 88%); }
122
+ `,q3=`
123
+ @page { size: 1920px 1080px; margin: 0 }
124
+ html, body { height: 1080px; }
125
+ `});var ek={};Rb(ek,{SUPPORTED_SERIES_TYPES:()=>jN,buildOption:()=>QN,createChart:()=>j3,unsupportedSeriesType:()=>JN});function JN(r){for(let e of ql(r.series)){let t=e.type;if(typeof t=="string"&&!jN.includes(t))return t}return null}function Xl(r,e){for(let[t,n]of Object.entries(e)){let i=r[t];i===void 0?r[t]=structuredClone(n):Lb(i)&&Lb(n)&&Xl(i,n)}}function Yl(r,e){return getComputedStyle(r).getPropertyValue(e).trim()}function QN(r,e,t){let n=Yl(t,"--bang-color-ink"),i=Yl(t,"--bang-color-line-strong"),a=Yl(t,"--bang-color-line"),o={fontSize:K3,color:n},s=structuredClone(r);Xl(s,{animation:!e.exportMode&&!e.reducedMotion,color:[n,Yl(t,"--bang-color-signal-text"),Yl(t,"--bang-color-ink-muted"),i],textStyle:{fontFamily:Yl(t,"--bang-font-sans"),...o}});for(let l of[...ql(s.xAxis),...ql(s.yAxis)])Xl(l,{axisLabel:o,nameTextStyle:o,axisLine:{lineStyle:{color:i}},axisTick:{lineStyle:{color:i}},splitLine:{lineStyle:{color:a}}});for(let l of ql(s.title))Xl(l,{textStyle:o,subtextStyle:o});for(let l of ql(s.legend))Xl(l,{textStyle:o});for(let l of ql(s.series))Xl(l,{label:o});return s}async function j3(r,e){await Gv(e,Z3);let t=QO(r,null,{renderer:"svg"});return{render(n,i){let a=JN(n);if(a!==null)return Promise.reject(new Error(`chart: unsupported series type: ${a}`));let o=QN(n,i,r);return new Promise(s=>{if(o.animation===!1){t.setOption(o,!0),s();return}let l=()=>{t.off("finished",l),s()};t.on("finished",l),t.setOption(o,!0)})},resize:()=>t.resize(),dispose:()=>t.dispose()}}var jN,K3,Z3,Lb,ql,tk=T(()=>{"use strict";tR();tN();uN();UN();$v();Wt([ux,F0,bx,N_,G_,eb,tb,$_,Ab]);jN=["bar","line","pie","scatter"],K3=28,Z3=1e4,Lb=r=>typeof r=="object"&&r!==null&&!Array.isArray(r),ql=r=>(Array.isArray(r)?r:[r]).filter(Lb)});var Nb=/^-?\d+$/;function pc(r,e){return r.stops[e]?.steps??0}function _n(r,e){if(e.stops.length===0)return{stop:0,step:0};let t=Math.min(Math.max(Math.trunc(r.stop)||0,0),e.stops.length-1),n=Math.min(Math.max(Math.trunc(r.step)||0,0),pc(e,t));return{stop:t,step:n}}function kb(r,e){let t=new URLSearchParams(r.startsWith("#")?r.slice(1):r),n=t.get("stop"),i=t.get("step"),a=n!==null&&Nb.test(n)?Number(n):0,o=_n({stop:a,step:0},e).stop,s=0;return i==="last"?s=pc(e,o):i!==null&&Nb.test(i)&&(s=Number(i)),_n({stop:o,step:s},e)}function hc(r){return`#stop=${r.stop}&step=${r.step}`}function zb(r,e){let t=_n(r,e);return t.step<pc(e,t.stop)?{stop:t.stop,step:t.step+1}:t.stop<e.stops.length-1?{stop:t.stop+1,step:0}:t}function Bb(r,e){let t=_n(r,e);return t.step>0?{stop:t.stop,step:t.step-1}:t.stop>0?{stop:t.stop-1,step:pc(e,t.stop-1)}:t}function Ub(r,e,t){let n=_n(e,t),i=0;for(let o=0;o<n.stop;o++){let s=t.stops[o];s.kind!=="overview"&&s.frame===r&&(i=Math.max(i,s.steps))}let a=t.stops[n.stop];return a&&a.kind!=="overview"&&a.frame===r&&(i=Math.max(i,n.step)),i}function Fb(r){if(r===null)return null;let e=r.split(",");if(e.length!==4||e.some(o=>o.trim()===""))return null;let[t,n,i,a]=e.map(Number);return![t,n,i,a].every(Number.isFinite)||t<0||n<0||i<=0||a<=0||t+i>1+1e-9||n+a>1+1e-9?null:{x:t,y:n,w:i,h:a}}function Vb(r,e,t){if(r===null)return t;let n=r.split(",").map(o=>o.trim());if(n.length!==2||!n.every(o=>/^\d+$/.test(o)))return t;let[i,a]=n.map(Number);return i>=e&&a>=e?[i,a]:t}function Hb(r){return Vb(r,0,[0,0])}function Gb(r){return Vb(r,1,[1,1])}var Pi=1920,Oi=1080;var jv=r=>Math.min(Math.max(r,0),1);function gk(r,e,t){let[n,i]=r,[a,o]=e;return{x:n*(1920+t),y:i*(1080+t),w:a*1920+(a-1)*t,h:o*1080+(o-1)*t}}function Wb(r,e){return Object.fromEntries(r.map(t=>[t.id,gk(t.at,t.span,e)]))}function Jv(r,e){return{x:r.x+e.x*r.w,y:r.y+e.y*r.h,w:e.w*r.w,h:e.h*r.h}}function dc(r){if(r.length===0)return{x:0,y:0,w:0,h:0};let e=Math.min(...r.map(a=>a.x)),t=Math.min(...r.map(a=>a.y)),n=Math.max(...r.map(a=>a.x+a.w)),i=Math.max(...r.map(a=>a.y+a.h));return{x:e,y:t,w:n-e,h:i-t}}function vc(r,e){return{x:r.x-e,y:r.y-e,w:r.w+2*e,h:r.h+2*e}}function Yb(r,e){return e.x>=r.x&&e.x<=r.x+r.w&&e.y>=r.y&&e.y<=r.y+r.h}function Ca(r,e){return{cx:r.x+r.w/2,cy:r.y+r.h/2,zoom:Math.min(e.w/r.w,e.h/r.h)}}function _4(r,e,t){let n=r.kind==="overview"||r.frame===void 0?void 0:e[r.frame];return Ca(n?r.kind==="region"&&r.region?Jv(n,r.region):n:dc(Object.values(e)),t)}var $b=.5,yk=.8;function qb(r,e,t){let n=Math.max(r.w*e.zoom/t.w,r.h*e.zoom/t.h),i=jv((n-$b)/(yk-$b));return i*i*(3-2*i)}function Xb(r,e,t){let n=t.w/t.h,i=Math.max(r.w,r.h*n),a=i/n;if(i>=e.w||a>=e.h)return e;let o=Math.min(Math.max(r.x+r.w/2-i/2,e.x),e.x+e.w-i),s=Math.min(Math.max(r.y+r.h/2-a/2,e.y),e.y+e.h-a);return{x:o,y:s,w:i,h:a}}function Kb(r){let e=Math.min(r.w/1920,r.h/1080);return{w:1920*e,h:1080*e}}function xk(r,e,t){let n=Math.hypot(e.cx-r.cx,e.cy-r.cy),i=(r.zoom+e.zoom)/2,a=n*i/t.w+Math.abs(Math.log(e.zoom/r.zoom));return Math.min(Math.max(400+100*a,400),800)}function _k(r){let e=jv(r);return e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2}function bk(r,e,t){let n=Math.max(t.w/r.zoom,t.w/e.zoom),i=Math.max(t.h/r.zoom,t.h/e.zoom),a=Math.abs(e.cx-r.cx),o=Math.abs(e.cy-r.cy);if(Math.hypot(a/n,o/i)<1.5)return 0;let s=Math.min(t.w/(a+n),t.h/(o+i)),l=(Math.log(r.zoom)+Math.log(e.zoom))/2;return Math.min(0,Math.log(s)-l)}function Sk(r,e,t,n){let i=bk(r,e,n),a=Math.min(xk(r,e,n)-250*i,1300);return{from:r,to:e,start:t,duration:a,pullBack:i}}function Qv(r,e){let t=jv((e-r.start)/r.duration);if(t<=0)return{...r.from};if(t>=1)return{...r.to};let n=_k(t),{from:i,to:a}=r;return{cx:i.cx+(a.cx-i.cx)*n,cy:i.cy+(a.cy-i.cy)*n,zoom:i.zoom*Math.pow(a.zoom/i.zoom,n)*Math.exp(r.pullBack*Math.sin(Math.PI*n))}}function Zb(r,e,t,n){return Sk(r,e,t,n)}function jb(r,e,t){let n=(o,s)=>{let l=(o-s*e.zoom)/2;return Math.abs(l)<1e-9?0:Math.max(0,l)},i=n(t.w,r.w),a=n(t.h,r.h);return{top:a,right:i,bottom:a,left:i}}function Jb(r,e,t){let{tx:n,ty:i,scale:a}=em(e,t);return{x:(r.x-n)/a,y:(r.y-i)/a}}function em(r,e,t=!0){let n=e.w/2-r.cx*r.zoom,i=e.h/2-r.cy*r.zoom,a=t?`translate3d(${n}px, ${i}px, 0)`:`translate(${n}px, ${i}px)`;return{tx:n,ty:i,scale:r.zoom,css:`${a} scale(${r.zoom})`}}rt();ht();kt();Mt();rt();var Bk=/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/;function Oa(r){let e=Bk.exec(r);if(!e)return null;let t=e[1];return t.length===3&&(t=[...t].map(n=>n+n).join("")),{r:parseInt(t.slice(0,2),16),g:parseInt(t.slice(2,4),16),b:parseInt(t.slice(4,6),16)}}function Sn({r,g:e,b:t}){let n=i=>Math.round(i).toString(16).padStart(2,"0");return`#${n(r)}${n(e)}${n(t)}`.toUpperCase()}function bs({r,g:e,b:t}){let n=i=>{let a=i/255;return a<=.04045?a/12.92:((a+.055)/1.055)**2.4};return .2126*n(r)+.7152*n(e)+.0722*n(t)}function Qn(r,e){let t=bs(r),n=bs(e);return(Math.max(t,n)+.05)/(Math.min(t,n)+.05)}function Tc(r,e,t){let n=(i,a)=>Math.round(i+(a-i)*t);return{r:n(r.r,e.r),g:n(r.g,e.g),b:n(r.b,e.b)}}function Ec(r,e,t,n){for(let i=0;i<=100;i++){let a=Tc(r,e,i/100);if(Math.min(...t.map(o=>Qn(a,o)))>=n)return a}return e}iu();var US=["paper","surface","ink","inkMuted","line","signal"],Uk=["fontSans","fontDisplay","fontMono"],IS=["weightText","weightHeading","leadingText","leadingHeading","trackingText","trackingHeading"],RS=["base",...US,"onSignal","paperGradient","coverGradient","bandGradient","typography","cardShadow","cardRadius","highlight",...Uk,"fontsHref"],Fk=["auto","block","swap","fallback","optional"],Vk=8,Hk=9,Gk=/^[\p{L}\p{N}\p{M} _\-.,'"]+$/u,NS="#141414",kS="#FFFFFF",zS=(r,e)=>r.split(e).length-1;function $k(r){let e=r.trim();return e.length<1||e.length>300||!Gk.test(e)?!1:zS(e,"'")%2===0&&zS(e,'"')%2===0}function FS(r){if(r===void 0)return[[400,400]];let e=r.indexOf("@");if(e<0)return[[400,400]];let t=r.slice(0,e).split(",").indexOf("wght");if(t<0)return[[400,400]];let n=[];for(let o of r.slice(e+1).split(";")){let s=o.split(",")[t]??"",l=/^(\d{3})\.\.(\d{3})$/.exec(s);/^\d{3}$/.test(s)?n.push([Number(s),Number(s)]):l&&n.push([Number(l[1]),Number(l[2])])}let i=o=>o>=100&&o<=900,a=n.filter(([o,s])=>i(o)&&i(s));return a.length>0?a:[[400,400]]}function Wk(r){let e=new Set;for(let[n,i]of FS(r))e.add(n),e.add(i);let t=[...e].sort((n,i)=>n-i);return t.length>0?t.slice(0,Hk):[400]}function Yk(r){let e=r.trim(),t=e[0];if(t==="'"||t==='"'){let i=e.indexOf(t,1),a=i<0?"":e.slice(1,i).trim();return a===""?null:a}let n=e.split(",")[0]?.trim()??"";return n===""?null:n}function qk(r,e,t){let n;try{n=new URL(r).searchParams.getAll("family")}catch{return null}let i=e.toLowerCase(),a=!1;for(let o of n){let s=o.indexOf(":");if((s<0?o:o.slice(0,s)).toLowerCase()===i&&(a=!0,FS(s<0?void 0:o.slice(s+1)).some(([u,f])=>u<=t&&t<=f)))return!0}return a?!1:null}var BS=r=>Math.round(r*1e3)/1e3;function VS(r){let e;try{e=new URL(r.trim())}catch{return null}if(e.protocol!=="https:"||e.hostname!=="fonts.googleapis.com"||e.port!==""||e.username!==""||e.password!==""||e.pathname!=="/css2")return null;for(let i of e.searchParams.keys())if(i!=="family"&&i!=="display")return null;if(!e.searchParams.getAll("display").every(i=>Fk.includes(i)))return null;let t=e.searchParams.getAll("family");if(t.length<1||t.length>Vk)return null;let n=[];for(let i of t){let a=i.indexOf(":"),o=a<0?i:i.slice(0,a);if(!/^[\p{L}\p{N} ]{1,64}$/u.test(o))return null;n.push({family:o,weights:Wk(a<0?void 0:i.slice(a+1))})}return{href:e.href,families:n}}var HS=r=>r.slice(0,40);function GS(r){let e;try{e=JSON.parse(r)}catch{return{definition:null,warnings:["theme: JSON could not be parsed"]}}if(typeof e!="object"||e===null||Array.isArray(e))return{definition:null,warnings:["theme: JSON must be an object"]};let t=e,n=[];for(let a of Object.keys(t))RS.includes(a)||n.push(`theme: unknown key "${HS(a)}"; ignored`);let i={};for(let a of RS){if(!Object.prototype.hasOwnProperty.call(t,a))continue;let o=t[a];if(a==="base")o==="light"||o==="dark"?i.base=o:n.push('theme: "base" must be "light" or "dark"; ignored');else if(US.includes(a)){let s=typeof o=="string"?Oa(o):null;s?i[a]=Sn(s):n.push(`theme: "${a}" must be a #RGB or #RRGGBB color; ignored`)}else if(a==="paperGradient"||a==="coverGradient"||a==="bandGradient"){let s=Kk(o);s?i[a]=s:n.push(`theme: "${a}" must be { "angle": 0-360, "colors": [2 or 3 #RGB or #RRGGBB colors] }; ignored`)}else if(a==="typography"){let s=Xk(o,n);s&&(i.typography=s)}else if(a==="cardShadow")o==="none"||o==="soft"||o==="lift"?i.cardShadow=o:n.push('theme: "cardShadow" must be "none", "soft" or "lift"; ignored');else if(a==="cardRadius")typeof o=="number"&&Number.isFinite(o)&&o>=0&&o<=64?i.cardRadius=o:n.push('theme: "cardRadius" must be a number of px from 0 to 64; ignored');else if(a==="onSignal"||a==="highlight"){let s=typeof o=="string"?Oa(o):null;s?i[a]=Sn(s):n.push(`theme: "${a}" must be a #RGB or #RRGGBB color; ignored`)}else if(a==="fontsHref"){let s=typeof o=="string"?VS(o):null;s?i.fontsHref=s.href:n.push('theme: "fontsHref" must be an https://fonts.googleapis.com/css2 URL that has only family and display parameters; ignored')}else typeof o=="string"&&$k(o)?i[a]=o.trim():n.push(`theme: "${a}" must be a font-family list of names, quotes, commas, hyphens and spaces up to 300 characters; ignored`)}return{definition:i,warnings:n}}function Xk(r,e){if(typeof r!="object"||r===null||Array.isArray(r))return e.push('theme: "typography" must be an object; ignored'),null;let t=r;for(let i of Object.keys(t))IS.includes(i)||e.push(`theme: unknown key "typography.${HS(i)}"; ignored`);let n={};for(let i of IS){if(!Object.prototype.hasOwnProperty.call(t,i))continue;let a=t[i];i==="weightText"||i==="weightHeading"?typeof a=="number"&&Number.isInteger(a)&&a>=100&&a<=900&&a%100===0?n[i]=a:e.push(`theme: "typography.${i}" must be an integer multiple of 100 from 100 to 900; ignored`):i==="leadingText"||i==="leadingHeading"?typeof a=="number"&&Number.isFinite(a)&&a>=.8&&a<=1.6?n[i]=BS(a):e.push(`theme: "typography.${i}" must be a number from 0.8 to 1.6; ignored`):typeof a=="number"&&Number.isFinite(a)&&a>=-.1&&a<=.3?n[i]=BS(a):e.push(`theme: "typography.${i}" must be a number from -0.1 to 0.3; ignored`)}return Object.keys(n).length>0?n:null}var vm=r=>`linear-gradient(${r.angle}deg, ${r.colors.join(", ")})`;function Kk(r){if(typeof r!="object"||r===null||Array.isArray(r))return null;let{angle:e=180,colors:t,...n}=r;if(Object.keys(n).length>0||typeof e!="number"||!Number.isFinite(e)||e<0||e>360||!Array.isArray(t)||t.length<2||t.length>3)return null;let i=t.map(a=>typeof a=="string"?Oa(a):null);return i.some(a=>a===null)?null:{angle:e,colors:i.map(a=>Sn(a))}}var au=r=>(Math.floor(r*100)/100).toFixed(2);function mm(r){let e=Ss[r.base==="dark"?"dark":"light"],t=E=>{let D=E===void 0?null:Oa(E);return D?Sn(D):void 0},n=E=>Oa(E),i=r.paperGradient??null,a=t(r.paper)??i?.colors[0]??e.paper,o=r.coverGradient??null,s=r.bandGradient??null,l=[i,o,s].flatMap(E=>E?.colors??[]).map(n),u=t(r.ink)??e.ink,f=t(r.signal)??e.signal,c=t(r.surface)??(a===e.paper?e.surface:Sn(Tc(n(a),n(u),.06))),p=t(r.inkMuted)??(l.length===0&&a===e.paper&&c===e.surface&&u===e.ink?e["ink-muted"]:Sn(Ec(n(a),n(u),[n(a),n(c),...l],4.5))),h=t(r.line)??(a===e.paper&&u===e.ink?e.line:Sn(Tc(n(a),n(u),.1))),d=h===e.line&&a===e.paper&&c===e.surface&&u===e.ink?e["line-strong"]:Sn(Ec(n(h),n(u),[n(a),n(c)],3)),v=t(r.onSignal)??(Qn(n(NS),n(f))>=Qn(n(kS),n(f))?NS:kS),m=l.length===0&&f===e.signal&&a===e.paper&&c===e.surface?e["signal-text"]:Sn(Ec(n(f),n(u),[n(a),n(c),...l],4.5)),g={paper:a,surface:c,ink:u,"ink-muted":p,line:h,"line-strong":d,signal:f,"on-signal":v,"signal-text":m,focus:m},y=[],x=[{hex:a,name:`paper ${a}`}];for(let[E,D]of[["paperGradient",i],["coverGradient",o],["bandGradient",s]])for(let P of D?.colors??[])x.some(L=>L.hex===P)||x.push({hex:P,name:`${E} color ${P}`});if(r.onSignal!==void 0){let E=Qn(n(v),n(f));E<3&&y.push(`theme: onSignal ${v} on signal ${f} is ${au(E)}:1; 3:1 or more is needed even for large text`)}for(let{hex:E,name:D}of x){let P=Qn(n(u),n(E));P<4.5&&y.push(`theme: ink ${u} on ${D} is ${au(P)}:1; 4.5:1 or more is needed to read text`);let L=Qn(n(p),n(E));L<4.5&&y.push(`theme: inkMuted ${p} on ${D} is ${au(L)}:1; 4.5:1 or more is needed to read text`);let O=Qn(n(f),n(E));O<3&&y.push(`theme: signal ${f} on ${D} is ${au(O)}:1; 3:1 or more is needed for a fill to stand out`)}let _=i?vm(i):null,b={};r.fontSans!==void 0&&(b.sans=r.fontSans),r.fontDisplay!==void 0&&(b.display=r.fontDisplay),r.fontMono!==void 0&&(b.mono=r.fontMono);let S=r.fontsHref===void 0?null:VS(r.fontsHref),w={},C=r.typography;C&&(C.weightText!==void 0&&(w["--bang-text-weight"]=String(C.weightText)),C.weightHeading!==void 0&&(w["--bang-heading-weight"]=String(C.weightHeading)),C.leadingText!==void 0&&(w["--bang-text-leading-scale"]=String(C.leadingText)),C.leadingHeading!==void 0&&(w["--bang-heading-leading-scale"]=String(C.leadingHeading)),C.trackingText!==void 0&&(w["--bang-text-tracking"]=`${C.trackingText}em`),C.trackingHeading!==void 0&&(w["--bang-heading-tracking"]=`${C.trackingHeading}em`)),o&&(w["--bang-cover-ground"]=vm(o)),s&&(w["--bang-band-ground"]=vm(s),w["--bang-band-border"]="transparent");let M=t(r.highlight);if(M){w["--bang-highlight"]=M;let E=Qn(n(u),n(M));E<4.5&&y.push(`theme: ink ${u} on highlight ${M} is ${au(E)}:1; 4.5:1 or more is needed to read text`)}if(r.cardShadow==="soft"||r.cardShadow==="lift"){let E=bs(n(u))<=bs(n(a))?n(u):n(a),D=P=>`rgba(${E.r}, ${E.g}, ${E.b}, ${P})`;r.cardShadow==="soft"?w["--bang-card-shadow"]=`inset 0 0 36px ${D(.3)}`:(w["--bang-card-shadow"]=`0 4px 10px ${D(.08)}, 0 18px 44px ${D(.12)}`,w["--bang-card-border"]="transparent")}if(r.cardRadius!==void 0&&(w["--bang-card-radius"]=`${r.cardRadius}px`),S&&C)for(let[E,D,P]of[[C.weightText,r.fontSans,"weightText"],[C.weightHeading,r.fontDisplay,"weightHeading"]]){if(E===void 0||D===void 0)continue;let L=Yk(D);L!==null&&qk(S.href,L,E)===!1&&y.push(`theme: typography.${P} ${E} is not requested for "${L}" in fontsHref; the nearest loaded weight is used`)}return{colors:g,ground:_,fonts:b,fontsRequest:S,vars:w,warnings:y}}var Ac=["accent","inverse"];function $S(r,e){let t=e==="accent"?r.signal:r.ink,n=e==="accent"?r["on-signal"]:r.paper,i=e==="accent"?r["on-signal"]:r.signal,a=bs(Oa(t))<.18?"dark":"light";return mm({base:a,paper:t,ink:n,signal:i}).colors}iu();var Pr=class extends Me{constructor(){super(...arguments);this.at="0,0";this.span="1,1";this.tone="default";this.ground="default";this.valign="center";this.currentStep=0}static{this.styles=Ae`
126
+ :host {
127
+ position: absolute;
128
+ display: block;
129
+ left: var(--bang-frame-x);
130
+ top: var(--bang-frame-y);
131
+ width: var(--bang-frame-w);
132
+ height: var(--bang-frame-h);
133
+ }
134
+ :host([tone="accent"]),
135
+ :host([tone="inverse"]) {
136
+ --bang-ground: var(--bang-color-paper);
137
+ --bang-tone-default: var(--bang-color-ink);
138
+ --bang-tone-muted: var(--bang-color-ink-muted);
139
+ --bang-tone-accent: var(--bang-color-signal-text);
140
+ --bang-band-ground: initial;
141
+ --bang-band-border: initial;
142
+ }
143
+ ${vs(Ac.map(t=>`:host([tone="${t}"]) {
144
+ ${Object.keys(Ss.light).map(n=>` --bang-color-${n}: var(--bang-frame-${t}-${n});`).join(`
145
+ `)}
146
+ }`).join(`
147
+ `))}
148
+ :host([ground="cover"]:not([tone="accent"]):not([tone="inverse"])) .frame {
149
+ background: var(--bang-cover-ground, var(--bang-ground, var(--bang-color-paper)));
150
+ }
151
+ .crumb {
152
+ position: absolute;
153
+ top: var(--bang-space-8);
154
+ left: var(--bang-space-24);
155
+ right: var(--bang-space-24);
156
+ overflow: hidden;
157
+ white-space: nowrap;
158
+ text-overflow: ellipsis;
159
+ font-family: var(--bang-font-display);
160
+ font-weight: var(--bang-heading-weight, 800);
161
+ letter-spacing: var(--bang-heading-tracking, -0.03em);
162
+ font-size: var(--bang-size-s);
163
+ line-height: var(--bang-leading-s);
164
+ color: var(--bang-tone-default);
165
+ }
166
+ .label {
167
+ position: absolute;
168
+ inset: 0;
169
+ z-index: 1;
170
+ display: flex;
171
+ align-items: center;
172
+ justify-content: center;
173
+ padding: var(--bang-space-24);
174
+ box-sizing: border-box;
175
+ text-align: center;
176
+ text-wrap: balance;
177
+ word-break: auto-phrase;
178
+ font-family: var(--bang-font-display);
179
+ font-weight: var(--bang-heading-weight, 800);
180
+ letter-spacing: var(--bang-heading-tracking, -0.03em);
181
+ font-size: calc(var(--bang-size-2xl) * 1.5);
182
+ line-height: var(--bang-leading-xl);
183
+ color: var(--bang-tone-default, var(--bang-color-ink));
184
+ opacity: calc(1 - var(--bang-near, 1));
185
+ pointer-events: none;
186
+ }
187
+ :host([label]) ::slotted(*) {
188
+ opacity: calc(0.12 + 0.88 * var(--bang-near, 1));
189
+ }
190
+ .fog {
191
+ display: none;
192
+ }
193
+ :host([data-bang-fog]) .fog {
194
+ position: absolute;
195
+ inset: 0;
196
+ z-index: 2;
197
+ display: block;
198
+ background:
199
+ radial-gradient(ellipse at 30% 35%, color-mix(in srgb, var(--bang-color-paper) 70%, white) 0 20%, transparent 55%),
200
+ radial-gradient(ellipse at 75% 70%, color-mix(in srgb, var(--bang-color-paper) 70%, white) 0 25%, transparent 60%),
201
+ color-mix(in srgb, var(--bang-color-paper) 55%, var(--bang-color-line));
202
+ }
203
+ :host([data-bang-format="map"]) .frame {
204
+ border-radius: var(--bang-radius-l, 48px);
205
+ outline: 8px solid color-mix(in srgb, var(--bang-color-ink) 14%, transparent);
206
+ }
207
+ .frame {
208
+ position: relative;
209
+ display: flex;
210
+ flex-direction: column;
211
+ gap: var(--bang-gap-l);
212
+ padding: var(--bang-space-24);
213
+ box-sizing: border-box;
214
+ width: 100%;
215
+ height: 100%;
216
+ overflow: hidden;
217
+ background: var(--bang-ground, var(--bang-color-paper));
218
+ color: var(--bang-color-ink);
219
+ font-family: var(--bang-font-sans);
220
+ /* Without this a heading that opens with 「 starts half an em to the right of the text below it. */
221
+ text-spacing-trim: trim-start;
222
+ justify-content: safe center;
223
+ }
224
+ :host([valign="spread"]) .frame {
225
+ justify-content: space-between;
226
+ }
227
+ `}frameText(t){let n=this.closest("bang-root")?.getAttribute("lang")?.toLowerCase();return(n?this.getAttribute(`${t}-${n}`)?.trim():"")||this[t]?.trim()||""}render(){Te(this,"tone",["default","accent","inverse"],"default"),Te(this,"ground",["default","cover"],"default"),Te(this,"valign",["center","spread"],"center");let t=this.frameText("crumb"),n=this.frameText("label");return me`<div class="frame">${t?me`<div class="crumb">${t}</div>`:""}<slot></slot>${n?me`<div class="label" aria-hidden="true">${n}</div>`:""}<div class="fog" aria-hidden="true"></div></div>`}};Q([te()],Pr.prototype,"at",2),Q([te()],Pr.prototype,"span",2),Q([te()],Pr.prototype,"tone",2),Q([te()],Pr.prototype,"ground",2),Q([te()],Pr.prototype,"crumb",2),Q([te()],Pr.prototype,"label",2),Q([te()],Pr.prototype,"valign",2),Q([te({attribute:!1})],Pr.prototype,"currentStep",2);De("bang-frame",Pr);ht();rt();var Cc=class extends Me{static{this.styles=Ae`
228
+ :host {
229
+ display: none;
230
+ }
231
+ `}render(){return me`<slot></slot>`}};De("bang-path",Cc);ht();kt();Mt();rt();ht();rt();function WS(r){let e=(r.textContent??"").split(`
232
+ `).map(t=>t.trim());for(;e.length>0&&e[0]==="";)e.shift();for(;e.length>0&&e[e.length-1]==="";)e.pop();return e.join(`
233
+ `)}var Mc=class extends Me{static{this.styles=Ae`
234
+ :host {
235
+ display: none;
236
+ }
237
+ `}};De("bang-notes",Mc);var Zk=999,ei=class extends Me{constructor(){super(...arguments);this.overview=!1}static{this.styles=Ae`
238
+ :host {
239
+ display: none;
240
+ }
241
+ `}render(){return me`<slot></slot>`}};Q([te()],ei.prototype,"frame",2),Q([te({attribute:"focus"})],ei.prototype,"focusId",2),Q([te()],ei.prototype,"region",2),Q([te({type:Boolean})],ei.prototype,"overview",2),Q([te({type:Number})],ei.prototype,"steps",2);De("bang-stop",ei);function YS(r,e=""){let t=[...r.children].filter(c=>c.localName==="bang-notes"),n=e.toLowerCase(),i=(n?t.find(c=>(c.getAttribute("lang")??"").toLowerCase()===n):void 0)??(n?t.find(c=>!c.getAttribute("lang")):void 0)??t[0],a=i?WS(i):"",o=!r.hasAttribute("steps"),s=_s(r,"steps",0,Zk,0),l=r.getAttribute("frame")??void 0;if(r.hasAttribute("overview")||l===void 0)return r.hasAttribute("overview")||He("stop-no-frame","[banger] <bang-stop> has neither frame nor overview; treated as overview"),{stop:{kind:"overview",steps:s},notes:a,auto:!1};let u=r.getAttribute("focus")?.trim();if(u)return{stop:{kind:"focus",frame:l,focus:u,steps:s},notes:a,auto:o};let f=r.getAttribute("region");if(f!==null){let c=Fb(f);if(c)return{stop:{kind:"region",frame:l,region:c,steps:s},notes:a,auto:o};He(`region|${f}`,`[banger] <bang-stop region="${f}"> is not a valid region; showing the whole frame`)}return{stop:{kind:"frame",frame:l,steps:s},notes:a,auto:o}}ht();kt();Mt();rt();var jk={start:"flex-start",center:"center",end:"flex-end",stretch:"stretch"},ws=class extends Me{constructor(){super(...arguments);this.gap="m";this.align="stretch"}static{this.styles=Ae`
242
+ :host {
243
+ display: flex;
244
+ flex-direction: column;
245
+ flex: 0 1 auto;
246
+ min-height: 0;
247
+ }
248
+ `}render(){let t=Te(this,"gap",wt,"m"),n=Te(this,"align",["start","center","end","stretch"],"stretch");return me`<style>
249
+ :host { gap: var(--bang-gap-${t}); align-items: ${jk[n]}; }
250
+ </style><slot></slot>`}};Q([te()],ws.prototype,"gap",2),Q([te()],ws.prototype,"align",2);De("bang-stack",ws);ht();kt();Mt();rt();var Ia=class extends Me{constructor(){super(...arguments);this.align="stretch";this.gap="m"}static{this.styles=Ae`
251
+ :host {
252
+ display: grid;
253
+ flex: 0 1 auto;
254
+ min-height: 0;
255
+ /* The browser reads an align attribute as a legacy text-align hint, which would centre the text inside every column. */
256
+ text-align: start;
257
+ }
258
+ `}render(){let t=Te(this,"gap",wt,"m"),n=Te(this,"align",["stretch","start","center","end"],"stretch"),i=Math.max(this.children.length,1),a=this.getAttribute("ratio"),o=Array.from({length:i},()=>1);if(a!==null&&this.children.length>0){let l=LS(a,this.children.length);l?o=l:He(`columns|${a}|${this.children.length}`,`[banger] <bang-columns ratio="${a}"> does not match ${this.children.length} children; using equal columns`)}let s=o.map(l=>`minmax(0, ${l}fr)`).join(" ");return me`<style>
259
+ :host { grid-template-columns: ${s}; gap: var(--bang-gap-${t}); align-items: ${n}; }
260
+ </style><slot @slotchange=${()=>this.requestUpdate()}></slot>`}};Q([te()],Ia.prototype,"ratio",2),Q([te()],Ia.prototype,"align",2),Q([te()],Ia.prototype,"gap",2);De("bang-columns",Ia);ht();kt();Mt();rt();var Ra=class extends Me{constructor(){super(...arguments);this.kind="panel";this.grow=!1;this.valign="start"}static{this.styles=Ae`
261
+ :host {
262
+ display: flex;
263
+ flex-direction: column;
264
+ gap: var(--bang-gap-m);
265
+ box-sizing: border-box;
266
+ min-height: 0;
267
+ padding: var(--bang-space-12);
268
+ border: var(--bang-border-hairline) solid var(--bang-card-border, var(--bang-color-line));
269
+ border-radius: var(--bang-card-radius, var(--bang-radius-m));
270
+ background: var(--bang-color-surface);
271
+ box-shadow: var(--bang-card-shadow, none);
272
+ }
273
+ :host([kind="band"]) {
274
+ padding: var(--bang-space-6) var(--bang-space-12);
275
+ border-color: var(--bang-band-border, var(--bang-color-line));
276
+ border-radius: var(--bang-space-12);
277
+ background: var(--bang-band-ground, var(--bang-color-surface));
278
+ background-origin: border-box;
279
+ box-shadow: none;
280
+ }
281
+ :host([valign="center"]) {
282
+ justify-content: safe center;
283
+ }
284
+ :host([valign="spread"]) {
285
+ justify-content: space-between;
286
+ }
287
+ :host([grow]) {
288
+ flex: 1 1 0;
289
+ }
290
+ `}render(){return Te(this,"kind",["panel","band"],"panel"),Te(this,"valign",["start","center","spread"],"start"),me`<slot></slot>`}};Q([te()],Ra.prototype,"kind",2),Q([te({type:Boolean})],Ra.prototype,"grow",2),Q([te()],Ra.prototype,"valign",2);De("bang-card",Ra);ht();kt();Mt();rt();var Ts=class extends Me{constructor(){super(...arguments);this.size="l";this.tone="default"}static{this.styles=Ae`
291
+ :host {
292
+ display: block;
293
+ /* Keeps a lone character off the last line, which narrow columns of Japanese text otherwise produce. */
294
+ text-wrap: pretty;
295
+ font-family: var(--bang-font-display);
296
+ font-weight: var(--bang-heading-weight, 800);
297
+ letter-spacing: var(--bang-heading-tracking, -0.03em);
298
+ }
299
+ `}render(){let t=Te(this,"size",wt,"l"),n=Te(this,"tone",bn,"default");return me`<style>
300
+ :host { font-size: var(--bang-size-${t}); line-height: calc(var(--bang-leading-${t}) * var(--bang-heading-leading-scale, 1)); color: var(--bang-tone-${n}); }
301
+ </style><slot></slot>`}};Q([te()],Ts.prototype,"size",2),Q([te()],Ts.prototype,"tone",2);De("bang-title",Ts);ht();kt();Mt();rt();var Es=class extends Me{constructor(){super(...arguments);this.size="s";this.tone="default"}static{this.styles=Ae`
302
+ :host {
303
+ display: block;
304
+ /* Keeps a lone character off the last line, which narrow columns of Japanese text otherwise produce. */
305
+ text-wrap: pretty;
306
+ font-family: var(--bang-font-sans);
307
+ font-weight: var(--bang-text-weight, 400);
308
+ letter-spacing: var(--bang-text-tracking, normal);
309
+ }
310
+ `}render(){let t=Te(this,"size",wt,"s"),n=Te(this,"tone",bn,"default");return me`<style>
311
+ :host { font-size: var(--bang-size-${t}); line-height: calc(var(--bang-leading-text-${t}) * var(--bang-text-leading-scale, 1)); color: var(--bang-tone-${n}); }
312
+ </style><slot></slot>`}};Q([te()],Es.prototype,"size",2),Q([te()],Es.prototype,"tone",2);De("bang-text",Es);ht();kt();Mt();rt();zi();var ka=class ka extends Ni{constructor(){super(...arguments);this.size="s";this.tone="default";this.ordered=!1}static{this.styles=Ae`
313
+ :host {
314
+ display: block;
315
+ text-wrap: pretty;
316
+ /* Markers sit at the start edge, so text centred by an ancestor (a centring stack's align attribute is also read as a legacy text-align hint) would float away from them. */
317
+ text-align: start;
318
+ font-family: var(--bang-font-sans);
319
+ font-weight: var(--bang-text-weight, 400);
320
+ letter-spacing: var(--bang-text-tracking, normal);
321
+ counter-reset: item;
322
+ }
323
+ ul {
324
+ list-style: none;
325
+ margin: 0;
326
+ padding: 0;
327
+ }
328
+ ::slotted(li) {
329
+ position: relative;
330
+ padding-left: 1.2em;
331
+ list-style: none;
332
+ counter-increment: item;
333
+ }
334
+ ::slotted(li)::before {
335
+ content: "";
336
+ position: absolute;
337
+ left: 0;
338
+ top: calc((var(--bang-lh) * 1em - 0.35em) / 2);
339
+ width: 0.35em;
340
+ height: 0.35em;
341
+ border-radius: 50%;
342
+ background: var(--bang-marker);
343
+ }
344
+ :host([data-bang-nested]) ::slotted(li)::before {
345
+ background: none;
346
+ border: 0.08em solid var(--bang-marker);
347
+ box-sizing: border-box;
348
+ }
349
+ /* A list with nested lists reads as groups: a parent item and its children. Space between groups, none inside one. */
350
+ :host([data-bang-grouped]) ::slotted(li:not(:first-child)) {
351
+ margin-top: calc(var(--bang-lh) * 0.5em);
352
+ }
353
+ ::slotted(bang-list) {
354
+ margin-top: calc(var(--bang-lh) * 0.1em);
355
+ }
356
+ :host([ordered]) ::slotted(li)::before {
357
+ content: counter(item) ".";
358
+ border: 0;
359
+ top: 0;
360
+ width: auto;
361
+ height: auto;
362
+ border-radius: 0;
363
+ background: none;
364
+ font-weight: 700;
365
+ color: var(--bang-marker);
366
+ }
367
+ `}items(){return[...this.children].filter(t=>t.localName==="li"&&sr(t))}firstStep(){return this.hasAttribute("step")&&_s(this,"step",1,999,0)||void 0}nestedIn(){let t=this.parentElement;return t instanceof ka?t:null}rootList(){let t=this;for(let n=t.nestedIn();n;n=t.nestedIn())t=n;return t}willUpdate(t){super.willUpdate(t),this.toggleAttribute("data-bang-nested",this.nestedIn()!==null),this.toggleAttribute("data-bang-grouped",[...this.children].some(n=>n.localName==="bang-list"))}get stepCount(){if(this.nestedIn())return 0;let t=this.firstStep();return t===void 0?0:t+this.items().length-1}updated(t){if(super.updated(t),this.nestedIn())return;let n=this.firstStep(),i=this.items(),a=n===void 0?i.length:Math.min(Math.max(this.frameStep-n+1,0),i.length);i.forEach((s,l)=>s.toggleAttribute("data-bang-hidden",l>=a));let o;for(let s of this.children)s.localName==="li"?sr(s)&&(o=s):s.localName==="bang-list"&&s.toggleAttribute("data-bang-hidden",o?.hasAttribute("data-bang-hidden")??!1)}render(){let t=this.nestedIn()!==null,n=t?this.rootList():this,i=Te(n,"size",wt,"s"),a=t?Te(this,"size",wt,wt[Math.max(wt.indexOf(i)-1,0)]):i,o=Te(n,"tone",bn,"default");return t&&(this.hasAttribute("tone")||this.hasAttribute("step"))&&He("list|nested","[banger] <bang-list> next to its parent li takes its tone from the outermost list; its tone and step are ignored"),me`<style>
368
+ :host {
369
+ font-size: var(--bang-size-${a});
370
+ line-height: calc(var(--bang-leading-text-${a}) * var(--bang-text-leading-scale, 1));
371
+ --bang-lh: calc(var(--bang-leading-text-${a}) * var(--bang-text-leading-scale, 1));
372
+ --bang-marker: var(--bang-tone-${o});
373
+ color: var(--bang-tone-${o});
374
+ }
375
+ ::slotted(bang-list) {
376
+ margin-left: calc(var(--bang-size-${a}) * 1.2);
377
+ }
378
+ </style><ul><slot @slotchange=${()=>this.requestUpdate()}></slot></ul>`}};Q([te()],ka.prototype,"size",2),Q([te()],ka.prototype,"tone",2),Q([te({type:Number})],ka.prototype,"step",2),Q([te({type:Boolean})],ka.prototype,"ordered",2);var Dc=ka;De("bang-list",Dc);ht();kt();Mt();rt();var ti=class extends Me{constructor(){super(...arguments);this.labelSize="xs";this.size="xl";this.tone="default"}static{this.styles=Ae`
379
+ :host {
380
+ display: block;
381
+ }
382
+ .value {
383
+ font-family: var(--bang-font-display);
384
+ font-weight: var(--bang-heading-weight, 800);
385
+ letter-spacing: var(--bang-heading-tracking, -0.03em);
386
+ }
387
+ .label {
388
+ font-family: var(--bang-font-sans);
389
+ color: var(--bang-tone-muted);
390
+ }
391
+ `}render(){let t=Te(this,"size",wt,"xl"),n=Te(this,"tone",bn,"default"),i=Te(this,"label-size",wt,"xs"),a=this.getAttribute("value");return a===null&&He("stat|value","[banger] <bang-stat> needs a value attribute"),me`<style>
392
+ .value { font-size: var(--bang-size-${t}); line-height: calc(var(--bang-leading-${t}) * var(--bang-heading-leading-scale, 1)); color: var(--bang-tone-${n}); }
393
+ .label { font-size: var(--bang-size-${i}); line-height: var(--bang-leading-text-${i}); }
394
+ </style><div class="value">${a??""}</div>${this.label?me`<div class="label">${this.label}</div>`:""}`}};Q([te()],ti.prototype,"value",2),Q([te()],ti.prototype,"label",2),Q([te({attribute:"label-size"})],ti.prototype,"labelSize",2),Q([te()],ti.prototype,"size",2),Q([te()],ti.prototype,"tone",2);De("bang-stat",ti);ht();kt();Mt();rt();var za=class extends Me{constructor(){super(...arguments);this.alt="";this.fit="contain"}static{this.styles=Ae`
395
+ :host {
396
+ display: block;
397
+ flex: 1 1 0;
398
+ min-height: 0;
399
+ }
400
+ img {
401
+ display: block;
402
+ width: 100%;
403
+ height: 100%;
404
+ }
405
+ `}updated(t){super.updated(t);let n=this.getAttribute("src"),i=this.renderRoot.querySelector("img"),a=!n||!i?Promise.reject(new Error("image has no src")):this.decode(i,n);a.catch(()=>{}),this.renderDone=a}async decode(t,n){try{await t.decode()}catch{throw new Error(`image failed to load: ${n}`)}}render(){let t=Te(this,"fit",["contain","cover"],"contain"),n=this.getAttribute("src");return me`<style>
406
+ img { object-fit: ${t}; }
407
+ </style>${n?me`<img src=${n} alt=${this.alt} />`:""}`}};Q([te()],za.prototype,"src",2),Q([te()],za.prototype,"alt",2),Q([te()],za.prototype,"fit",2);De("bang-image",za);ht();kt();Mt();rt();var uc=class extends Ni{constructor(){super(...arguments);this.handle=null;this.lastKey=null;this.observer=null;this.parsed=null}static{this.styles=Ae`
408
+ :host {
409
+ display: block;
410
+ position: relative;
411
+ flex: 1 1 0;
412
+ min-height: 0;
413
+ }
414
+ .chart {
415
+ position: absolute;
416
+ inset: 0;
417
+ }
418
+ `}firstStep(){return this.hasAttribute("step")&&_s(this,"step",1,999,0)||void 0}parse(){let n=this.querySelector(':scope > script[type="application/json"]')?.textContent??"";if(this.parsed?.text===n)return this.parsed.result;let i=null;try{let a=JSON.parse(n);typeof a=="object"&&a!==null&&!Array.isArray(a)&&(i={text:n,option:a})}catch{i=null}return this.parsed={text:n,result:i},i}seriesOf(t){let n=t.series;return n===void 0?[]:Array.isArray(n)?n:[n]}get visibleSeries(){let t=this.parse();if(!t)return 0;let n=this.seriesOf(t.option).length,i=this.firstStep();return i===void 0?n:Math.min(Math.max(this.frameStep-i+1,0),n)}get animationEnabled(){return!this.env().exportMode&&!this.env().reducedMotion}get stepCount(){let t=this.firstStep(),n=this.parse();return t===void 0||!n?0:t+this.seriesOf(n.option).length-1}env(){return{exportMode:this.closest("bang-root")?.getAttribute("data-mode")==="export",reducedMotion:window.matchMedia("(prefers-reduced-motion: reduce)").matches}}connectedCallback(){super.connectedCallback(),this.observer=new ResizeObserver(()=>{this.handle?.then(t=>t.resize())}),this.observer.observe(this),this.hasUpdated&&!this.handle&&this.requestUpdate()}disconnectedCallback(){super.disconnectedCallback(),this.observer?.disconnect(),this.observer=null,this.handle?.then(t=>t.dispose()),this.handle=null,this.lastKey=null}updated(t){super.updated(t);let n=this.parse(),i=n?`${this.visibleSeries}|${n.text}`:"invalid";if(i===this.lastKey)return;this.lastKey=i;let a=this.draw(n);a.catch(()=>{}),this.renderDone=a}async draw(t){if(!t)throw new Error("chart option JSON could not be parsed");let n=this.renderRoot.querySelector(".chart");if(!n)throw new Error("chart container is missing");let{createChart:i}=await Promise.resolve().then(()=>(tk(),ek));this.handle??=i(n,t.text);let a=await this.handle,o=structuredClone(t.option);this.firstStep()!==void 0&&(o.series=this.seriesOf(o).slice(0,this.visibleSeries)),await a.render(o,this.env())}render(){return me`<div class="chart"></div>`}};Q([te({type:Number})],uc.prototype,"step",2);De("bang-chart",uc);ht();kt();Mt();rt();var J3=["arrow-up","arrow-down","arrow-left","arrow-right","ok","ng"],Yv="0 0 64 32",rk="0 0 32 32",Q3={"arrow-down":{viewBox:Yv,d:"M16 0H48V12H64L32 32L0 12H16Z",width:2},"arrow-up":{viewBox:Yv,d:"M16 32H48V20H64L32 0L0 20H16Z",width:2},"arrow-left":{viewBox:Yv,d:"M64 8H24V0L0 16L24 32V24H64Z",width:2},"arrow-right":{viewBox:Yv,d:"M0 8H40V0L64 16L40 32V24H0Z",width:2},ok:{viewBox:rk,d:"M16 0a16 16 0 1 0 0 32a16 16 0 1 0 0-32zM16 5a11 11 0 1 1 0 22a11 11 0 1 1 0-22z",width:1},ng:{viewBox:rk,d:"M6 0L16 10L26 0L32 6L22 16L32 26L26 32L16 22L6 32L0 26L10 16L0 6Z",width:1}},ps=class extends Me{constructor(){super(...arguments);this.kind="arrow-down";this.size="m";this.tone="default"}static{this.styles=Ae`
419
+ :host {
420
+ display: inline-block;
421
+ flex: none;
422
+ vertical-align: -0.125em;
423
+ }
424
+ svg {
425
+ display: block;
426
+ width: 100%;
427
+ height: 100%;
428
+ fill: currentColor;
429
+ }
430
+ `}render(){let t=Te(this,"kind",J3,"arrow-down"),n=Te(this,"size",wt,"m"),i=Te(this,"tone",bn,"default"),a=Q3[t],o=t==="ok"||t==="ng",s=o?`var(--bang-tone-${i})`:`color-mix(in srgb, var(--bang-tone-${i}) 60%, transparent)`,l=me`<style>
431
+ :host { height: var(--bang-size-${n}); width: calc(var(--bang-size-${n}) * ${a.width}); color: ${s}; }
432
+ </style>`;return o?me`${l}<svg viewBox=${a.viewBox} role="img" aria-label=${t==="ok"?"OK":"NG"}>
433
+ <path fill-rule="evenodd" d=${a.d}></path>
434
+ </svg>`:me`${l}<svg viewBox=${a.viewBox} aria-hidden="true"><path d=${a.d}></path></svg>`}};Q([te()],ps.prototype,"kind",2),Q([te()],ps.prototype,"size",2),Q([te()],ps.prototype,"tone",2);De("bang-shape",ps);ht();kt();Mt();rt();Hv();zi();var fc=class extends Me{constructor(){super(...arguments);this.overlay=!1}static{this.styles=Ae`
435
+ :host {
436
+ display: grid;
437
+ grid-template: minmax(0, 1fr) / minmax(0, 1fr);
438
+ flex: 1 1 0;
439
+ min-height: 0;
440
+ align-self: stretch;
441
+ justify-self: stretch;
442
+ position: relative;
443
+ overflow: hidden;
444
+ }
445
+ :host([overlay]) {
446
+ position: absolute;
447
+ inset: 0;
448
+ flex: none;
449
+ pointer-events: none;
450
+ }
451
+ `}firstUpdated(){this.scopeStyles()}get renderReady(){return this.updateComplete.then(()=>this.waitImages())}scopeStyles(){for(let t of this.children)if(!(t.localName!=="style"||t.hasAttribute("data-bang-scoped"))){if(!HN()){He("bang-free|scope","[banger] <bang-free>: this browser does not support CSS @scope; the rules in its <style> apply to the whole page");continue}t.textContent=VN(t.textContent??""),t.setAttribute("data-bang-scoped","")}}async waitImages(){let t=[...this.querySelectorAll("img")].filter(n=>sr(n));await Promise.all(t.map(async n=>{try{await n.decode()}catch{throw new Error(`image failed to load: ${n.getAttribute("src")??""}`)}}))}render(){return me`<slot @slotchange=${()=>this.scopeStyles()}></slot>`}};Q([te({type:Boolean})],fc.prototype,"overlay",2);De("bang-free",fc);ht();rt();function nk(r){return r.querySelector(':scope > bang-theme > script[type="application/json"]')?.textContent??null}var qv=class extends Me{static{this.styles=Ae`
452
+ :host {
453
+ display: none;
454
+ }
455
+ `}render(){return null}};De("bang-theme",qv);var Pb="0.2.1";ht();kt();Mt();rt();Hv();zi();var Ob=r=>r.id?`frame "${r.id}"`:St(r);function sk(r){let e=new Map;for(let t of r.querySelectorAll("*")){let n=t.localName;if(!n.startsWith("bang-")||customElements.get(n))continue;let i=e.get(n);i?i.count+=1:e.set(n,{selector:St(t),count:1})}return[...e].map(([t,{selector:n,count:i}])=>`${n}: <${t}> is not a Banger element${i>1?` (${i} times)`:""}; check the tag name`)}function lk(r){let e=[];for(let t=0;t<r.length;t++)for(let n=t+1;n<r.length;n++){let i=r[t].rect,a=r[n].rect;i.x<a.x+a.w&&a.x<i.x+i.w&&i.y<a.y+a.h&&a.y<i.y+i.h&&e.push(`${Ob(r[t].el)} and ${Ob(r[n].el)} overlap on the canvas; give them different at values`)}return e}function ik(r,e,t){let n={x:0,y:0,worst:null},i=0;for(let a of r.querySelectorAll("*")){if(a.localName==="script"||a.localName==="style"||a.closest("bang-free")||getComputedStyle(a).display==="inline")continue;let o=a.getBoundingClientRect();if(o.width===0&&o.height===0)continue;let s=Math.max(0,(e.left-o.left)/t,(o.right-e.right)/t),l=Math.max(0,(e.top-o.top)/t,(o.bottom-e.bottom)/t);n.x=Math.max(n.x,s),n.y=Math.max(n.y,l),Math.max(s,l)>i&&(i=Math.max(s,l),n.worst=a)}return n}var ak=r=>r.worst?` (furthest: ${St(r.worst)})`:"",ok=(r,e)=>[r>Vv?`${Math.round(r)}px horizontally`:"",e>Vv?`${Math.round(e)}px vertically`:""].filter(Boolean);function uk(r){let e=[];for(let{el:t}of r){let n=t.shadowRoot?.querySelector(".frame");if(!n||t.offsetWidth===0)continue;let i=t.getBoundingClientRect(),a=i.width/t.offsetWidth,o=getComputedStyle(n),s={left:i.left+parseFloat(o.paddingLeft)*a,top:i.top+parseFloat(o.paddingTop)*a,right:i.right-parseFloat(o.paddingRight)*a,bottom:i.bottom-parseFloat(o.paddingBottom)*a},l=ik(t,s,a),u=ok(Math.max(l.x,n.scrollWidth-n.clientWidth),Math.max(l.y,n.scrollHeight-n.clientHeight));u.length>0&&e.push(`${Ob(t)}: the content does not fit inside the frame margins by ${u.join(", ")}${ak(l)}; what passes the frame edge is cut off, so shorten it or use smaller sizes`);for(let f of t.querySelectorAll("bang-card")){let c=ik(f,f.getBoundingClientRect(),a),p=ok(c.x,c.y);p.length>0&&e.push(`${St(f)}: the content sticks out of the card by ${p.join(", ")}${ak(c)}; shorten it or use smaller sizes`)}}return e}function fk(r,e){let t=[],n=o=>ki(o.getAttribute("lang"),e),i=St;for(let o of r.querySelectorAll("bang-frame, bang-stop"))n(o)&&t.push(`${i(o)}: lang is ignored on <${o.localName}>; the frames and stops are the same in every language`);for(let o of r.querySelectorAll("bang-frame, bang-frame *, bang-path > bang-stop")){let s=new Map;for(let l of o.children){let u=n(l);if(u){let f=s.get(l.localName)??new Map;f.set(u,(f.get(u)??0)+1),s.set(l.localName,f)}else{let f=l.getAttribute("lang");f&&t.push(`${i(l)}: lang="${f}" is not in languages (${e.join(" ")}); shown in every language`)}}for(let[l,u]of s){let f=e.map(c=>u.get(c)??0);f.some(c=>c!==f[0])&&t.push(`${i(o)}: <${l}> differs by language (${e.map((c,p)=>`${c}: ${f[p]}`).join(", ")}); give every language the same number of <${l}>`)}if(o.localName==="bang-columns"&&[...o.children].some(l=>n(l))&&t.push(`${i(o)}: <bang-columns> makes a column of every child, so a child with lang adds a column in every language; put lang on the content inside each column`),o.localName==="bang-frame"&&o.getAttribute("valign")!=="spread"){let l=[...o.children],u=l.filter(f=>!(f.localName==="bang-free"&&f.hasAttribute("overlay")));l[0]?.localName==="bang-title"&&(n(l[0])||u.length>0&&n(u[u.length-1]))&&t.push(`${i(o)}: the title or the last child of this frame carries lang, so the layout moves between languages; write the title's languages with <span lang> and put the translated elements inside a bang-stack without lang`)}}let a=[...r.querySelectorAll("bang-frame")];for(let o of a)for(let s of["crumb","label"]){if(!o.getAttribute(s)?.trim())continue;let l=e.slice(1).filter(u=>!o.getAttribute(`${s}-${u.toLowerCase()}`)?.trim());l.length>0&&t.push(`${i(o)}: ${s} has no ${l.map(u=>`${s}-${u.toLowerCase()}`).join(", ")}; the ${e[0]} text is shown in ${l.join(", ")}`)}for(let o of r.querySelectorAll("bang-path > bang-stop[focus]")){let s=a.find(f=>f.id===o.getAttribute("frame")),l=o.getAttribute("focus")?.trim();if(!l)continue;let u=s?.querySelector(`#${CSS.escape(l)}`)??null;for(let f=u;f&&f!==s;f=f.parentElement){let c=n(f);if(c){t.push(`${i(o)}: focus="${l}" points into lang="${c}" content, which is hidden in the other languages; put the id on an element without lang`);break}}}return t}$v();rt();zi();ht();var Xv=class{constructor(){this.id=Math.random().toString(36).slice(2);this.channel=new BroadcastChannel(`bang:${location.origin}${location.pathname}`)}send(e){let t={type:"state",stop:e.stop,step:e.step,sender:this.id};this.channel.postMessage(t)}sendLanguage(e){let t={type:"lang",lang:e,sender:this.id};this.channel.postMessage(t)}onRemoteLanguage(e){this.channel.addEventListener("message",t=>{let n=t.data;n?.type==="lang"&&n.sender!==this.id&&e(n.lang)})}onRemote(e){this.channel.addEventListener("message",t=>{let n=t.data;n?.type==="state"&&n.sender!==this.id&&e({stop:n.stop,step:n.step})})}close(){this.channel.close()}},ck=r=>String(r).padStart(2,"0");function e4(r){let e=Math.floor(r/1e3);return`${ck(Math.floor(e/60))}:${ck(e%60)}`}function pk(r){return me`<div class="presenter">
456
+ <div class="presenter-head">
457
+ <span class="presenter-stop">Stop ${r.stop+1} / ${r.stopCount}</span>
458
+ <span class="presenter-step">Step ${r.step+1} / ${r.steps+1}</span>
459
+ ${r.language!==void 0?me`<span class="presenter-language">${r.language}</span>`:""}
460
+ <span class="presenter-elapsed">${e4(r.elapsedMs)}</span>
461
+ </div>
462
+ <div class="presenter-notes">${r.notes}</div>
463
+ <div class="presenter-buttons">
464
+ <button type="button" @click=${r.onPrev}>Previous</button>
465
+ <button type="button" @click=${r.onNext}>Next</button>
466
+ </div>
467
+ </div>`}function hk(){if(typeof BroadcastChannel>"u")return null;let r=new URL(location.href);return r.searchParams.set("mode","presenter"),window.open(r.toString(),"bang-presenter","popup,width=1100,height=720")}Cb();iu();var t4=240,r4=720,n4=960,i4=320,a4=.08,o4=400;function s4(r){return[["\u2192 Space Enter PageDown","Next step or stop"],["\u2190 Backspace PageUp","Previous step or stop"],["Home / End","First / last stop"],["o Esc","Overview; click a frame to go there"],["p","Presenter window with notes"],...r?[["l","Next language"]]:[],["f","Full screen"],["?","This help"]]}var l4=4e3,Kv={w:1920,h:1080};function u4(){let r=new URLSearchParams(location.search).get("mode");return r==="export"||r==="presenter"?r:"live"}var f4=50,c4=800,p4=300,h4=400,d4=60,v4=3,m4=500;function dk(r){return r instanceof HTMLElement?r.isContentEditable||["INPUT","TEXTAREA","SELECT"].includes(r.tagName):!1}var qr=class extends Me{constructor(){super(...arguments);this.theme="light";this.format="slides";this.ground=null;this.firstStop=new Map;this.spotted=[];this.stage=Kv;this.statusText="";this.helpOpen=!1;this.elapsedMs=0;this.mode="live";this.path={stops:[]};this.notes=[];this.frames=[];this.frameMap={};this.current={stop:0,step:0};this.inOverview=!1;this.pose={cx:1920/2,cy:1080/2,zoom:1};this.tween=null;this.resolvePending=null;this.reducedMotion=!1;this.initialized=!1;this.sync=null;this.languageList=[];this.currentLanguage="";this.onFontsLoaded=()=>this.refreshPose();this.resizeObserver=null;this.startedAt=0;this.motionQuery=null;this.themeKey=null;this.themeVars=[];this.themeWarnings=[];this.onKeydown=t=>this.handleKey(t);this.swipeStart=null;this.swiped=!1;this.onPointerDown=t=>{!t.isPrimary||t.pointerType==="mouse"&&t.button!==0||dk(t.composedPath()[0]??t.target)||(this.swipeStart={id:t.pointerId,mouse:t.pointerType==="mouse",x:t.clientX,y:t.clientY,at:t.timeStamp})};this.onPointerUp=t=>{let n=this.swipeStart;if(!n||n.id!==t.pointerId)return;this.swipeStart=null;let i=t.clientX-n.x,a=t.clientY-n.y,o=t.timeStamp-n.at,s=n.mouse&&Math.abs(a)>Math.abs(i),l=s?a:i,u=s?i:a,[f,c]=n.mouse?[h4,p4]:[c4,f4];o>f||Math.abs(l)<c||Math.abs(l)<Math.abs(u)*1.5||(n.mouse&&(window.getSelection()?.removeAllRanges(),document.documentElement.setAttribute("data-bang-remote",""),this.setAttribute("data-bang-nocursor","")),this.swiped=!0,setTimeout(()=>this.swiped=!1),l<0?this.next():this.prev())};this.handMoves=[];this.onPointerMove=t=>{if(t.pointerType!=="mouse"||t.buttons!==0||!this.hasAttribute("data-bang-nocursor"))return;let n=Math.hypot(t.movementX,t.movementY);n===0||n>=d4||(this.handMoves=[...this.handMoves.filter(i=>t.timeStamp-i<m4),t.timeStamp],!(this.handMoves.length<v4)&&(this.handMoves=[],this.removeAttribute("data-bang-nocursor"),document.documentElement.removeAttribute("data-bang-remote")))};this.onStageClick=t=>{if(!this.inOverview||this.tween||this.swiped)return;let n=t.currentTarget.getBoundingClientRect(),i=Jb({x:t.clientX-n.left,y:t.clientY-n.top},this.pose,this.stageNow),a=this.frames.find(l=>Yb(l.rect,i));if(!a)return;let o=this.path.stops[this.current.stop];if(o&&o.kind!=="overview"&&o.frame===a.id){this.overview(!1);return}let s=this.firstStop.get(a.id);s!==void 0&&this.goto(s,0)};this.onDragStart=t=>{t.target instanceof HTMLImageElement&&t.preventDefault()};this.onPointerCancel=()=>{this.swipeStart=null};this.onHashChange=()=>{let t=this.hashState();this.commit(t,{animate:!0,source:"hash",overview:!1})};this.onMotionChange=()=>this.applyMotionPreference();this.onSlotChange=()=>{this.applyTheme();for(let t of this.deckWarnings())He(`deck|${t}`,`[banger] ${t}`);this.initialized&&(this.buildPath(),this.current=_n(this.current,this.path),this.commit(this.current,{animate:!1,source:"hash",overview:this.inOverview}))}}static{this.version=Pb}static{this.styles=[vs(PS),Ae`
468
+ :host {
469
+ display: block;
470
+ position: fixed;
471
+ inset: 0;
472
+ overflow: hidden;
473
+ background: var(--bang-color-line);
474
+ color: var(--bang-color-ink);
475
+ font-family: var(--bang-font-sans);
476
+ /* Horizontal swipes move between stops, so the browser keeps only vertical panning and pinch zoom. */
477
+ touch-action: pan-y pinch-zoom;
478
+ }
479
+ :host([data-mode="export"]) {
480
+ position: relative;
481
+ width: 1920px;
482
+ height: 1080px;
483
+ }
484
+ .viewport {
485
+ position: absolute;
486
+ inset: 0;
487
+ display: flex;
488
+ align-items: center;
489
+ justify-content: center;
490
+ background: var(--bang-color-line);
491
+ }
492
+ .stage {
493
+ position: relative;
494
+ flex: none;
495
+ overflow: hidden;
496
+ }
497
+ :host([data-bang-nocursor]),
498
+ :host([data-bang-nocursor]) * {
499
+ cursor: none !important;
500
+ }
501
+ :host([data-bang-overview]) .stage {
502
+ cursor: pointer;
503
+ }
504
+ .clip {
505
+ position: absolute;
506
+ inset: 0;
507
+ overflow: hidden;
508
+ }
509
+ .canvas {
510
+ position: absolute;
511
+ left: 0;
512
+ top: 0;
513
+ width: 0;
514
+ height: 0;
515
+ transform-origin: 0 0;
516
+ }
517
+ .ground {
518
+ position: absolute;
519
+ background-color: var(--bang-map-ground);
520
+ background-image:
521
+ radial-gradient(ellipse 34% 30% at 22% 30%, transparent 0 60%, color-mix(in srgb, var(--bang-color-line) 55%, transparent) 60% 60.6%, transparent 60.6% 75%, color-mix(in srgb, var(--bang-color-line) 55%, transparent) 75% 75.6%, transparent 75.6% 90%, color-mix(in srgb, var(--bang-color-line) 55%, transparent) 90% 90.6%, transparent 90.6%),
522
+ radial-gradient(ellipse 30% 36% at 78% 72%, transparent 0 60%, color-mix(in srgb, var(--bang-color-line) 55%, transparent) 60% 60.6%, transparent 60.6% 75%, color-mix(in srgb, var(--bang-color-line) 55%, transparent) 75% 75.6%, transparent 75.6% 90%, color-mix(in srgb, var(--bang-color-line) 55%, transparent) 90% 90.6%, transparent 90.6%),
523
+ radial-gradient(ellipse 22% 20% at 70% 18%, transparent 0 55%, color-mix(in srgb, var(--bang-color-line) 55%, transparent) 55% 56%, transparent 56% 78%, color-mix(in srgb, var(--bang-color-line) 55%, transparent) 78% 79%, transparent 79%),
524
+ linear-gradient(color-mix(in srgb, var(--bang-color-ink) 6%, transparent) 4px, transparent 4px),
525
+ linear-gradient(90deg, color-mix(in srgb, var(--bang-color-ink) 6%, transparent) 4px, transparent 4px);
526
+ background-size: auto, auto, auto, 480px 480px, 480px 480px;
527
+ }
528
+ .roads {
529
+ position: absolute;
530
+ inset: 0;
531
+ width: 100%;
532
+ height: 100%;
533
+ overflow: visible;
534
+ }
535
+ .road {
536
+ stroke: color-mix(in srgb, var(--bang-color-ink) 22%, var(--bang-color-paper));
537
+ stroke-width: 96;
538
+ stroke-linecap: round;
539
+ }
540
+ .road-center {
541
+ stroke: var(--bang-color-paper);
542
+ stroke-width: 10;
543
+ stroke-dasharray: 60 50;
544
+ stroke-linecap: round;
545
+ }
546
+ :host([format="map"]) .viewport,
547
+ :host([format="map"]) {
548
+ background: var(--bang-map-ground);
549
+ }
550
+ :host {
551
+ --bang-map-ground: color-mix(in srgb, var(--bang-color-paper) 70%, var(--bang-color-line));
552
+ }
553
+ .status {
554
+ position: absolute;
555
+ left: 50%;
556
+ bottom: 24px;
557
+ transform: translateX(-50%);
558
+ padding: 8px 16px;
559
+ border-radius: var(--bang-radius-m);
560
+ background: var(--bang-color-ink);
561
+ color: var(--bang-color-paper);
562
+ font-size: 16px;
563
+ }
564
+ .help {
565
+ position: absolute;
566
+ inset: 0;
567
+ display: grid;
568
+ place-items: center;
569
+ background: color-mix(in srgb, var(--bang-color-ink) 40%, transparent);
570
+ }
571
+ .help-panel {
572
+ padding: 32px 40px;
573
+ border-radius: var(--bang-radius-l);
574
+ background: var(--bang-color-surface);
575
+ color: var(--bang-color-ink);
576
+ font-family: var(--bang-font-sans);
577
+ font-size: 18px;
578
+ line-height: 1.6;
579
+ }
580
+ .help-panel h2 {
581
+ margin: 0 0 16px;
582
+ font-size: 22px;
583
+ }
584
+ .help-panel dl {
585
+ display: grid;
586
+ grid-template-columns: auto auto;
587
+ gap: 8px 32px;
588
+ margin: 0;
589
+ }
590
+ .help-panel dt {
591
+ font-family: var(--bang-font-mono);
592
+ color: var(--bang-color-ink-muted);
593
+ }
594
+ .help-panel dd {
595
+ margin: 0;
596
+ }
597
+ .status:empty {
598
+ display: none;
599
+ }
600
+ .presenter {
601
+ position: absolute;
602
+ inset: 0;
603
+ display: flex;
604
+ flex-direction: column;
605
+ gap: 24px;
606
+ padding: 32px;
607
+ box-sizing: border-box;
608
+ background: var(--bang-color-paper);
609
+ }
610
+ .presenter-head {
611
+ display: flex;
612
+ gap: 32px;
613
+ font-family: var(--bang-font-mono);
614
+ font-size: 24px;
615
+ }
616
+ .presenter-notes {
617
+ flex: 1;
618
+ overflow: auto;
619
+ white-space: pre-wrap;
620
+ font-size: 32px;
621
+ line-height: 1.5;
622
+ }
623
+ .presenter-buttons {
624
+ display: flex;
625
+ gap: 16px;
626
+ }
627
+ .presenter-buttons button {
628
+ flex: 1;
629
+ padding: 16px;
630
+ font: inherit;
631
+ font-size: 24px;
632
+ cursor: pointer;
633
+ }
634
+ `]}get multilingual(){return this.languageList.length>1}connectedCallback(){super.connectedCallback(),this.mode=u4(),this.setAttribute("data-mode",this.mode),this.initLanguage(),KN(this.mode),this.applyTheme(),this.motionQuery=window.matchMedia("(prefers-reduced-motion: reduce)"),this.motionQuery.addEventListener("change",this.onMotionChange),this.applyMotionPreference(),this.mode!=="export"&&(window.addEventListener("keydown",this.onKeydown),window.addEventListener("hashchange",this.onHashChange),window.addEventListener("pointerdown",this.onPointerDown),window.addEventListener("pointerup",this.onPointerUp),window.addEventListener("pointercancel",this.onPointerCancel),window.addEventListener("pointermove",this.onPointerMove),this.addEventListener("dragstart",this.onDragStart),typeof BroadcastChannel<"u"&&(this.sync=new Xv,this.sync.onRemote(t=>{this.commit(_n(t,this.path),{animate:!0,source:"remote",overview:!1})}),this.sync.onRemoteLanguage(t=>this.setLanguage(t,!1))),this.multilingual&&document.fonts?.addEventListener("loadingdone",this.onFontsLoaded)),this.mode==="presenter"&&(this.startedAt=Date.now(),this.clockTimer=setInterval(()=>{this.elapsedMs=Date.now()-this.startedAt},1e3))}initLanguage(){let{languages:t,invalid:n}=gm(this.getAttribute("languages"));for(let s of n)He(`languages|${s}`,`[banger] <bang-root languages> "${s}" is not a language tag such as "ja" or "en-US"; ignored`);if(this.languageList=t,t.length===0)return;let i=new URLSearchParams(location.search).get("lang"),{language:a,queryIgnored:o}=KS({languages:t,query:i,navigatorLanguages:navigator.languages??[navigator.language],useNavigator:this.mode!=="export"});o&&He(`lang|${i}`,`[banger] ?lang="${i}" is not one of the languages (${t.join(", ")}); ignored`),this.currentLanguage=a,XN(t),this.setAttribute("lang",a),document.documentElement.lang=a}getLanguages(){return[...this.languageList]}getLanguage(){return this.currentLanguage}setLanguage(t,n){let i=ki(t,this.languageList);if(!this.initialized||i===void 0||i===this.currentLanguage)return!1;this.currentLanguage=i,this.setAttribute("lang",i),document.documentElement.lang=i;for(let o of this.querySelectorAll("[step]"))o.requestUpdate?.();for(let o of this.frames)o.el.requestUpdate?.();this.buildPath(),this.commit(this.current,{animate:!1,source:"hash",overview:this.inOverview});let a=new URL(location.href);return a.searchParams.set("lang",i),history.replaceState(null,"",a.href),n&&this.sync?.sendLanguage(i),!0}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("keydown",this.onKeydown),window.removeEventListener("hashchange",this.onHashChange),window.removeEventListener("pointerdown",this.onPointerDown),window.removeEventListener("pointerup",this.onPointerUp),window.removeEventListener("pointercancel",this.onPointerCancel),window.removeEventListener("pointermove",this.onPointerMove),this.motionQuery?.removeEventListener("change",this.onMotionChange),this.resizeObserver?.disconnect(),this.sync?.close(),this.sync=null,document.fonts?.removeEventListener("loadingdone",this.onFontsLoaded),clearInterval(this.clockTimer),clearTimeout(this.statusTimer),this.stopTween()}willUpdate(t){t.has("theme")&&this.applyTheme(),t.has("format")&&this.initialized&&(this.buildPath(),this.current=_n(this.current,this.path),this.commit(this.current,{animate:!1,source:"hash",overview:this.inOverview}))}firstUpdated(t){this.buildPath(),this.mode!=="export"&&(this.resizeObserver=new ResizeObserver(()=>this.onResize()),this.resizeObserver.observe(this),this.onResize()),this.current=this.hashState(),this.initialized=!0,document.fonts?.ready.then(()=>this.refreshPose()),this.commit(this.current,{animate:!1,source:"hash",overview:!1})}render(){if(Te(this,"theme",["light","dark","custom"],"light"),Te(this,"format",["slides","map"],"slides"),this.mode==="presenter"){let t=this.path.stops[this.current.stop];return me`${pk({stop:this.current.stop,stopCount:this.path.stops.length,step:this.current.step,steps:t?.steps??0,notes:this.notes[this.current.stop]??"",language:this.multilingual?this.currentLanguage:void 0,elapsedMs:this.elapsedMs,onPrev:()=>{this.prev()},onNext:()=>{this.next()}})}${this.renderHelp()}<div class="status" role="status">${this.statusText}</div>
635
+ <div hidden><slot @slotchange=${this.onSlotChange}></slot></div>`}return me`<div class="viewport">
636
+ <div class="stage" style="width:${this.stage.w}px;height:${this.stage.h}px" @click=${this.onStageClick}>
637
+ <div class="clip">
638
+ <div class="canvas">${this.renderGround()}<slot @slotchange=${this.onSlotChange}></slot></div>
639
+ </div>
640
+ </div>
641
+ </div>
642
+ ${this.renderHelp()}
643
+ <div class="status" role="status">${this.statusText}</div>`}renderHelp(){return this.helpOpen?me`<div class="help" @click=${()=>this.helpOpen=!1}>
644
+ <div class="help-panel" role="dialog" aria-label="Keyboard shortcuts">
645
+ <h2>Keyboard shortcuts</h2>
646
+ <dl>
647
+ ${s4(this.multilingual).map(([t,n])=>me`<dt>${t}</dt><dd>${n}</dd>`)}
648
+ </dl>
649
+ </div>
650
+ </div>`:ft}renderGround(){let t=this.ground;if(!t)return ft;let{rect:n}=t;return me`<div class="ground" style="left:${n.x}px;top:${n.y}px;width:${n.w}px;height:${n.h}px">
651
+ <svg class="roads" viewBox="${n.x} ${n.y} ${n.w} ${n.h}" aria-hidden="true">
652
+ ${t.roads.map(i=>hS`<line class="road" x1=${i.x1} y1=${i.y1} x2=${i.x2} y2=${i.y2}></line><line class="road-center" x1=${i.x1} y1=${i.y1} x2=${i.x2} y2=${i.y2}></line>`)}
653
+ </svg>
654
+ </div>`}applyTheme(){let t=nk(this),n=()=>{for(let c of this.themeVars)this.style.removeProperty(c);this.themeVars=[]},i=c=>{this.themeWarnings=c;for(let p of c)He(`theme|${p}`,`[banger] ${p}`)},a=this.getAttribute("theme");if(a!=="custom"){n();let c=`\0ignored|${a}|${t===null?"none":"present"}`;if(c===this.themeKey)return;this.themeKey=c,this.applyFrameTones(Ss[a==="dark"?"dark":"light"]),i(t===null?[]:['theme: <bang-theme> is ignored unless theme="custom"']);return}let o=t??"\0none";if(o===this.themeKey)return;this.themeKey=o;let s=[],l={};if(t===null)s.push('theme: theme="custom" needs a <bang-theme> child with a JSON script; the light theme is used');else{let c=GS(t);s.push(...c.warnings),l=c.definition??{}}let u=mm(l);s.push(...u.warnings),n();let f={};for(let[c,p]of Object.entries(u.colors))f[`--bang-color-${c}`]=p;for(let[c,p]of Object.entries(u.fonts))f[`--bang-font-${c}`]=p;u.ground&&(f["--bang-ground"]=u.ground),Object.assign(f,u.vars);for(let[c,p]of Object.entries(f))this.style.setProperty(c,p);this.themeVars=Object.keys(f),this.applyFrameTones(u.colors),u.fontsRequest&&ZN(u.fontsRequest),i(s)}languageWarnings(){return this.languageList.length===0||this.currentLanguage!==this.languageList[0]?[]:fk(this,this.languageList)}deckWarnings(){let t=[],n=i=>{let a=i?.getAttribute("tone");return a==="accent"||a==="inverse"?a:null};for(let i of this.querySelectorAll("bang-frame[ground=cover]")){let a=St(i),o=n(i);o?t.push(`${a}: ground="cover" is ignored because tone="${o}" is set; the tone ground is used`):this.style.getPropertyValue("--bang-cover-ground")===""&&t.push(`${a}: ground="cover" needs theme="custom" with a coverGradient; the normal ground is used`)}for(let i of this.querySelectorAll("bang-card[kind=band]")){let a=St(i),o=n(i.closest("bang-frame"));this.style.getPropertyValue("--bang-band-ground")===""?t.push(`${a}: kind="band" needs theme="custom" with a bandGradient; the surface color is used`):o&&t.push(`${a}: kind="band" inside a frame with tone="${o}" uses the surface color`)}return t}applyFrameTones(t){for(let n of Ac)for(let[i,a]of Object.entries($S(t,n)))this.style.setProperty(`--bang-frame-${n}-${i}`,a)}applyMotionPreference(){this.reducedMotion=this.motionQuery?.matches??!1,this.mode==="export"||this.reducedMotion?this.style.setProperty("--bang-duration-fast","0s"):this.style.removeProperty("--bang-duration-fast")}onResize(){if(this.mode==="export")return;let t=Kb({w:this.clientWidth||1920,h:this.clientHeight||1080});t.w===this.stage.w&&t.h===this.stage.h||(this.stage=t,this.initialized&&(this.stopTween(),this.pose=this.targetPose(this.current,this.inOverview),this.applyPose(this.pose),this.applyClip()))}get stageNow(){return this.mode==="export"?Kv:this.stage}get isMap(){return this.format==="map"}buildPath(){for(let f of this.spotted)f.removeAttribute("data-bang-dim");this.spotted=[];let t=[...this.querySelectorAll("bang-frame")],n=new Set,i=[];t.forEach((f,c)=>{let p=f.id;p&&n.has(p)&&(He(`dupframe|${p}`,`[banger] duplicate bang-frame id "${p}"; the first one is used`),p=""),p&&n.add(p),i.push({id:p||`\0${c}`,at:Hb(f.getAttribute("at")),span:Gb(f.getAttribute("span")),el:f})});let a=this.isMap,o=Wb(i,a?r4:t4);this.frameMap=o,this.frames=i.map(f=>({el:f.el,id:f.id,rect:o[f.id]}));for(let f of this.frames)a?f.el.setAttribute("data-bang-format","map"):f.el.removeAttribute("data-bang-format"),f.el.style.setProperty("--bang-frame-x",`${f.rect.x}px`),f.el.style.setProperty("--bang-frame-y",`${f.rect.y}px`),f.el.style.setProperty("--bang-frame-w",`${f.rect.w}px`),f.el.style.setProperty("--bang-frame-h",`${f.rect.h}px`);this.ground=a?g4(this.frames):null;let s=[],l=[],u=new Set;for(let f of this.querySelectorAll("bang-path > bang-stop")){let c=YS(f,this.currentLanguage),p=c.stop;if(c.auto&&p.kind!=="overview"){let h=this.frames.find(d=>d.id===p.frame);h&&!u.has(h.id)&&(p={...p,steps:vk(h.el)})}p.kind!=="overview"&&p.frame&&u.add(p.frame),p.kind!=="overview"&&!(p.frame&&n.has(p.frame))&&(He(`stopframe|${p.frame}`,`[banger] <bang-stop frame="${p.frame}"> does not match any bang-frame; treated as overview`),p={kind:"overview",steps:p.steps}),s.push(p),l.push(c.notes)}this.path={stops:s},this.notes=l,this.firstStop=new Map,s.forEach((f,c)=>{f.kind!=="overview"&&f.frame&&!this.firstStop.has(f.frame)&&this.firstStop.set(f.frame,c)}),this.warnShortSteps()}warnShortSteps(){for(let t of this.frames){if(t.id.startsWith("\0"))continue;let n=this.path.stops.filter(o=>o.kind!=="overview"&&o.frame===t.id).map(o=>o.steps);if(n.length===0)continue;let i=Math.max(...n),a=vk(t.el);a>i&&He(`steps|${t.id}|${a}|${i}`,`[banger] frame "${t.id}" needs ${a} steps but its stops provide at most ${i}`)}}hashState(){let t=kb(location.hash,this.path),n=new URLSearchParams(location.hash.replace(/^#/,"")),i=n.get("stop"),a=n.get("step");return(i!==null&&i!==String(t.stop)||a!==null&&a!=="last"&&a!==String(t.step))&&He(`hash|${location.hash}`,`[banger] hash "${location.hash}" is out of range; using "${hc(t)}"`),t}allRects(){return this.frames.map(t=>t.rect)}rectFor(t,n){let i=this.allRects(),a=i.length>0?dc(i):{x:0,y:0,w:1920,h:1080};this.isMap&&i.length>0&&(a=vc(a,i4));let o=this.path.stops[t.stop];if(n||!o||o.kind==="overview"||o.frame===void 0)return a;let s=this.frameMap[o.frame];if(!s)return null;if(o.kind==="focus"&&o.focus){let l=this.focusRect(o.frame,o.focus);return l?Xb(l,s,this.stageNow):s}return o.kind==="region"&&o.region?Jv(s,o.region):s}focusTarget(t,n){let i=this.frames.find(o=>o.id===t);if(!i)return null;let a=i.el.querySelector(`#${CSS.escape(n)}`);return a?{entry:i,target:a}:(He(`focus|${t}|${n}`,`[banger] <bang-stop focus="${n}"> does not match an element inside frame "${t}"; showing the whole frame`),null)}focusRect(t,n){let i=this.focusTarget(t,n);if(!i)return null;let{entry:a,target:o}=i,s=a.el.getBoundingClientRect(),l=o.getBoundingClientRect();if(s.width===0||l.width===0||l.height===0)return null;let u=s.width/a.rect.w,f={x:a.rect.x+(l.left-s.left)/u,y:a.rect.y+(l.top-s.top)/u,w:l.width/u,h:l.height/u};return vc(f,Math.max(f.w,f.h*(1920/1080))*a4)}refreshPose(){if(!this.initialized||this.tween)return;let t=this.targetPose(this.current,this.inOverview),n=this.pose;Math.abs(t.cx-n.cx)<.5&&Math.abs(t.cy-n.cy)<.5&&Math.abs(t.zoom/n.zoom-1)<1e-4||(this.pose=t,this.applyPose(t),this.applyClip())}targetPose(t,n){let i=this.rectFor(t,n)??{x:0,y:0,w:1920,h:1080};return Ca(i,this.stageNow)}canvasEl(){return this.renderRoot.querySelector(".canvas")}applyPose(t){let n=this.canvasEl();n&&(n.style.transform=em(t,this.stageNow,this.mode!=="export").css),this.applyNearness(t)}applyNearness(t){let n=this.stageNow;for(let i of this.frames){let o=qb(i.rect,t,n).toFixed(3);i.el.style.getPropertyValue("--bang-near")!==o&&i.el.style.setProperty("--bang-near",o)}}applyClip(){let t=this.renderRoot.querySelector(".clip");if(!t)return;let n=this.mode==="export"&&!this.isMap?this.rectFor(this.current,this.inOverview):null;if(!n){t.style.clipPath="none";return}let i=Ca(n,Kv),a=jb(n,i,Kv);t.style.clipPath=`inset(${a.top}px ${a.right}px ${a.bottom}px ${a.left}px)`}currentPose(){return this.tween?Qv(this.tween,performance.now()):this.pose}stopTween(){clearTimeout(this.tweenTimer),this.tweenFrame!==void 0&&cancelAnimationFrame(this.tweenFrame),this.tweenTimer=void 0,this.tweenFrame=void 0,this.tween=null;let t=this.canvasEl();t&&(t.style.willChange="")}settlePending(){let t=this.resolvePending;this.resolvePending=null,t?.()}moveCamera(t,n){let i=this.currentPose();if(this.stopTween(),this.settlePending(),!n||this.mode!=="live"||this.reducedMotion||!this.canvasEl())return this.pose=t,this.applyPose(t),Promise.resolve();let a=Zb(i,t,performance.now(),this.stageNow);return this.tween=a,this.canvasEl().style.willChange="transform",new Promise(o=>{this.resolvePending=o;let s=()=>{this.tween===a&&(this.stopTween(),this.pose=a.to,this.applyPose(a.to),this.settlePending(),this.refreshPose())};this.tweenTimer=setTimeout(s,a.duration+100);let l=()=>{if(this.tween!==a)return;let u=performance.now();if(u-a.start>=a.duration){s();return}this.applyPose(Qv(a,u)),this.tweenFrame=requestAnimationFrame(l)};this.tweenFrame=requestAnimationFrame(l)})}applySteps(){let t=this.isMap;for(let n of this.frames){n.el.toggleAttribute("data-bang-fog",t&&(this.firstStop.get(n.id)??-1)>this.current.stop);let i=Ub(n.id,this.current,this.path);n.el.currentStep=i;for(let a of n.el.querySelectorAll("[data-step]")){let o=Number(a.getAttribute("data-step"));Number.isFinite(o)&&a.toggleAttribute("data-bang-hidden",i<o)}for(let a of n.el.querySelectorAll("[step]"))"frameStep"in a&&(a.frameStep=i)}this.applySpotlight()}applySpotlight(){let t=this.spotted;this.spotted=[];let n=this.path.stops[this.current.stop],i=!this.inOverview&&n?.kind==="focus"&&n.frame&&n.focus?this.focusTarget(n.frame,n.focus):null;if(i){let{entry:o,target:s}=i;for(let l of this.frames)l!==o&&this.spotted.push(l.el);for(let l=s;l!==o.el&&l.parentElement;l=l.parentElement)for(let u of l.parentElement.children)u!==l&&this.spotted.push(u)}let a=new Set(this.spotted);for(let o of t)a.has(o)||(o.removeAttribute("data-bang-dim"),setTimeout(()=>{o.hasAttribute("data-bang-dim")||o.removeAttribute("data-bang-spot")},o4));for(let o of this.spotted)o.setAttribute("data-bang-spot",""),o.setAttribute("data-bang-dim","")}applyInert(){if(this.mode==="export")return;let t=this.path.stops[this.current.stop],n=this.inOverview||!t||t.kind==="overview"?null:t.frame;for(let i of this.frames)i.el.inert=i.id!==n}commit(t,n){let i=_n(t,this.path),a=this.rectFor(i,n.overview);if(!a)return console.warn("[banger] no target rectangle for the requested state; ignoring it"),Promise.resolve();this.current=i,this.inOverview=n.overview,this.toggleAttribute("data-bang-overview",n.overview),this.applySteps(),this.applyInert();let o=this.moveCamera(Ca(a,this.stageNow),n.animate);return this.applyClip(),n.source!=="hash"&&location.hash!==hc(i)&&history.replaceState(null,"",hc(i)),this.dispatchEvent(new CustomEvent("bang:statechange",{detail:{stop:i.stop,step:i.step,overview:n.overview},bubbles:!0,composed:!0})),n.source==="local"&&this.sync?.send(i),this.requestUpdate(),o}async whenInitialized(){this.initialized||await this.updateComplete}async goto(t,n=0){await this.whenInitialized();let i=this.path.stops[Math.min(Math.max(t,0),this.path.stops.length-1)]?.steps??0;return this.commit({stop:t,step:n==="last"?i:n},{animate:!0,source:"local",overview:!1})}async next(){return await this.whenInitialized(),this.commit(zb(this.current,this.path),{animate:!0,source:"local",overview:!1})}async prev(){return await this.whenInitialized(),this.commit(Bb(this.current,this.path),{animate:!0,source:"local",overview:!1})}async overview(t){await this.whenInitialized();let n=t??!this.inOverview;return await this.commit(this.current,{animate:!0,source:"local",overview:n}),this.inOverview}getState(){return{...this.current}}getPath(){return this.path.stops.map((t,n)=>{let i=this.rectFor({stop:n,step:0},!1)??{x:0,y:0,w:1920,h:1080};return{index:n,kind:t.kind,frame:t.kind==="overview"?void 0:t.frame,steps:t.steps,notes:this.notes[n]??"",zoom:Ca(i,this.stageNow).zoom,rect:i}})}async ready(t){let n=await WN(this,{...t,extraWarnings:[...this.themeWarnings,...this.deckWarnings(),...sk(this),...lk(this.frames),...this.languageWarnings()]});this.refreshPose();let i=new Set([...n.warnings,...uk(this.frames)]);return{...n,warnings:[...i]}}showStatus(t){this.statusText=t,clearTimeout(this.statusTimer),this.statusTimer=setTimeout(()=>{this.statusText=""},l4)}handleKey(t){if(t.ctrlKey||t.metaKey||t.altKey||t.defaultPrevented||dk(t.composedPath()[0]??t.target))return;let n=this.path.stops.length-1;if(this.helpOpen&&(t.key==="Escape"||t.key==="?")){t.preventDefault(),this.helpOpen=!1;return}let i=null;switch(t.key){case"?":i=()=>this.helpOpen=!0;break;case"ArrowRight":case" ":case"PageDown":case"Enter":i=()=>this.next();break;case"ArrowLeft":case"Backspace":case"PageUp":i=()=>this.prev();break;case"Home":i=()=>this.goto(0,0);break;case"End":i=()=>this.goto(Math.max(n,0),"last");break;case"Escape":case"o":i=()=>this.overview();break;case"p":if(this.mode==="presenter")break;i=()=>{hk()||this.showStatus("Presenter view could not be opened (popup blocked or unsupported).")};break;case"l":if(!this.multilingual)break;i=()=>this.setLanguage(ZS(this.languageList,this.currentLanguage),!0);break;case"f":i=()=>{(document.fullscreenElement?document.exitFullscreen():document.documentElement.requestFullscreen()).catch(()=>{})};break}i&&(t.preventDefault(),i())}};Q([te()],qr.prototype,"theme",2),Q([te({reflect:!0})],qr.prototype,"format",2),Q([te()],qr.prototype,"languages",2),Q([ys()],qr.prototype,"ground",2),Q([ys()],qr.prototype,"stage",2),Q([ys()],qr.prototype,"statusText",2),Q([ys()],qr.prototype,"helpOpen",2),Q([ys()],qr.prototype,"elapsedMs",2);function g4(r){if(r.length===0)return null;let e=vc(dc(r.map(a=>a.rect)),n4),t=new Map(r.map(a=>[a.id,a])),n=new Set,i=[];for(let a of r)for(let o of(a.el.getAttribute("link")??"").split(/\s+/).filter(Boolean)){let s=t.get(o);if(!s){He(`link|${a.id}|${o}`,`[banger] bang-frame "${a.id}" links to "${o}", which is not a bang-frame id; no road is drawn`);continue}if(s===a){He(`link|${a.id}|${o}`,`[banger] bang-frame "${a.id}" links to itself; no road is drawn`);continue}let l=[a.id,o].sort().join("\0");n.has(l)||(n.add(l),i.push({x1:a.rect.x+a.rect.w/2,y1:a.rect.y+a.rect.h/2,x2:s.rect.x+s.rect.w/2,y2:s.rect.y+s.rect.h/2}))}return{rect:e,roads:i}}function vk(r){let e=0;for(let t of r.querySelectorAll("*")){if(!sr(t))continue;let n=Number(t.getAttribute("data-step"));t.hasAttribute("data-step")&&Number.isFinite(n)&&(e=Math.max(e,n));let i=t.stepCount;typeof i=="number"&&(e=Math.max(e,i))}return e}De("bang-root",qr);export{Ra as BangCard,uc as BangChart,Ia as BangColumns,Me as BangElement,Pr as BangFrame,fc as BangFree,za as BangImage,Dc as BangList,Mc as BangNotes,Cc as BangPath,qr as BangRoot,ps as BangShape,ws as BangStack,ti as BangStat,ei as BangStop,Es as BangText,qv as BangTheme,Ts as BangTitle,Oi as FRAME_HEIGHT,Pi as FRAME_WIDTH,Ni as StepAware,dc as boundsOf,_n as clamp,jb as clipFor,Yb as contains,xk as durationFor,_k as ease,gk as frameRect,Ub as frameStep,vc as inflate,Wb as layoutFrames,qb as nearness,zb as next,Hb as parseAt,kb as parseHash,Fb as parseRegion,Gb as parseSpan,Ca as poseFor,Bb as prev,bk as pullBackFor,Jv as regionRect,Zb as retarget,Qv as sample,hc as serializeHash,Kb as stageSize,Jb as stageToCanvas,Sk as startTween,_4 as targetFor,em as toTransform,Pb as version,Xb as viewInside};
655
+ //# sourceMappingURL=standalone.js.map