duoops 0.1.7 → 0.2.0
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.
- package/README.md +151 -63
- package/data/aws_machine_power_profiles.json +54 -0
- package/data/cpu_physical_specs.json +105 -0
- package/data/cpu_power_profiles.json +275 -0
- package/data/gcp_machine_power_profiles.json +1802 -0
- package/data/runtime-pue-mappings.json +183 -0
- package/dist/commands/ask.d.ts +3 -0
- package/dist/commands/ask.js +9 -3
- package/dist/commands/autofix-ci.d.ts +13 -0
- package/dist/commands/autofix-ci.js +114 -0
- package/dist/commands/autofix.d.ts +5 -0
- package/dist/commands/autofix.js +11 -0
- package/dist/commands/config.d.ts +10 -0
- package/dist/commands/config.js +47 -0
- package/dist/commands/init.js +50 -27
- package/dist/commands/mcp/deploy.d.ts +13 -0
- package/dist/commands/mcp/deploy.js +139 -0
- package/dist/commands/measure/calculate.js +2 -2
- package/dist/commands/portal.js +428 -11
- package/dist/lib/ai/agent.d.ts +6 -2
- package/dist/lib/ai/agent.js +51 -57
- package/dist/lib/ai/tools/editing.js +28 -13
- package/dist/lib/ai/tools/gitlab.d.ts +4 -0
- package/dist/lib/ai/tools/gitlab.js +166 -11
- package/dist/lib/ai/tools/measure.js +7 -3
- package/dist/lib/ai/tools/types.d.ts +3 -0
- package/dist/lib/ai/tools/types.js +1 -0
- package/dist/lib/config.d.ts +10 -0
- package/dist/lib/gcloud.d.ts +7 -0
- package/dist/lib/gcloud.js +105 -0
- package/dist/lib/gitlab/pipelines-service.d.ts +23 -0
- package/dist/lib/gitlab/pipelines-service.js +146 -0
- package/dist/lib/gitlab/runner-service.d.ts +11 -0
- package/dist/lib/gitlab/runner-service.js +15 -0
- package/dist/lib/portal/settings.d.ts +3 -0
- package/dist/lib/portal/settings.js +48 -0
- package/dist/lib/scaffold.d.ts +5 -0
- package/dist/lib/scaffold.js +32 -0
- package/dist/portal/assets/HomeDashboard-DlkwSyKx.js +1 -0
- package/dist/portal/assets/JobDetailsDrawer-7kXXMSH8.js +1 -0
- package/dist/portal/assets/JobsDashboard-D4pNc9TM.js +1 -0
- package/dist/portal/assets/MetricsDashboard-BcgzvzBz.js +1 -0
- package/dist/portal/assets/PipelinesDashboard-BNrSM9GB.js +1 -0
- package/dist/portal/assets/allPaths-CXDKahbk.js +1 -0
- package/dist/portal/assets/allPathsLoader-BF5PAx2c.js +2 -0
- package/dist/portal/assets/cache-YerT0Slh.js +6 -0
- package/dist/portal/assets/core-Cz8f3oSB.js +19 -0
- package/dist/portal/assets/{index-B6bzT1Vv.js → index-B9sNUqEC.js} +1 -1
- package/dist/portal/assets/index-BWa_E8Y7.css +1 -0
- package/dist/portal/assets/index-Bp4RqK05.js +1 -0
- package/dist/portal/assets/index-DW6Qp0d6.js +64 -0
- package/dist/portal/assets/index-Uc4Xhv31.js +1 -0
- package/dist/portal/assets/progressBar-C4SmnGeZ.js +1 -0
- package/dist/portal/assets/splitPathsBySizeLoader-C-T9_API.js +1 -0
- package/dist/portal/index.html +2 -2
- package/oclif.manifest.json +282 -93
- package/package.json +2 -1
- package/templates/.gitlab/duo/flows/duoops.yaml +114 -0
- package/templates/agents/agent.yml +45 -0
- package/templates/duoops-autofix-component.yml +52 -0
- package/templates/flows/flow.yml +283 -0
- package/dist/portal/assets/MetricsDashboard-DIsoz4Sl.js +0 -71
- package/dist/portal/assets/index-BP8FwWqA.css +0 -1
- package/dist/portal/assets/index-DkVG3jel.js +0 -70
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import{S as q1,p as Cd,r as Ht,s as gf,a as La,n as mf,i as yf,b as Dd,t as X1,c as Io,f as Z1,d as K1,e as Md,g as r0,h as I,j as n0,u as Q1,k as ln,l as J1,m as ew,o as i0,q as R,R as a0,v as tw,T as rw,B as o0,A as nw,G as iw}from"./index-DkVG3jel.js";var aw=class extends q1{constructor(t,e){super(),this.options=e,this.#r=t,this.#i=null,this.#n=Cd(),this.bindMethods(),this.setOptions(e)}#r;#e=void 0;#d=void 0;#t=void 0;#o;#c;#n;#i;#p;#f;#h;#s;#l;#a;#v=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#e.addObserver(this),Ad(this.#e,this.options)?this.#u():this.updateResult(),this.#_())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return _f(this.#e,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return _f(this.#e,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#b(),this.#S(),this.#e.removeObserver(this)}setOptions(t){const e=this.options,r=this.#e;if(this.options=this.#r.defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Ht(this.options.enabled,this.#e)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#x(),this.#e.setOptions(this.options),e._defaulted&&!gf(this.options,e)&&this.#r.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#e,observer:this});const n=this.hasListeners();n&&Ed(this.#e,r,this.options,e)&&this.#u(),this.updateResult(),n&&(this.#e!==r||Ht(this.options.enabled,this.#e)!==Ht(e.enabled,this.#e)||La(this.options.staleTime,this.#e)!==La(e.staleTime,this.#e))&&this.#g();const i=this.#m();n&&(this.#e!==r||Ht(this.options.enabled,this.#e)!==Ht(e.enabled,this.#e)||i!==this.#a)&&this.#y(i)}getOptimisticResult(t){const e=this.#r.getQueryCache().build(this.#r,t),r=this.createResult(e,t);return sw(this,r)&&(this.#t=r,this.#c=this.options,this.#o=this.#e.state),r}getCurrentResult(){return this.#t}trackResult(t,e){return new Proxy(t,{get:(r,n)=>(this.trackProp(n),e?.(n),n==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#n.status==="pending"&&this.#n.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(r,n))})}trackProp(t){this.#v.add(t)}getCurrentQuery(){return this.#e}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const e=this.#r.defaultQueryOptions(t),r=this.#r.getQueryCache().build(this.#r,e);return r.fetch().then(()=>this.createResult(r,e))}fetch(t){return this.#u({...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#t))}#u(t){this.#x();let e=this.#e.fetch(this.options,t);return t?.throwOnError||(e=e.catch(mf)),e}#g(){this.#b();const t=La(this.options.staleTime,this.#e);if(yf||this.#t.isStale||!Dd(t))return;const r=X1(this.#t.dataUpdatedAt,t)+1;this.#s=Io.setTimeout(()=>{this.#t.isStale||this.updateResult()},r)}#m(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#e):this.options.refetchInterval)??!1}#y(t){this.#S(),this.#a=t,!(yf||Ht(this.options.enabled,this.#e)===!1||!Dd(this.#a)||this.#a===0)&&(this.#l=Io.setInterval(()=>{(this.options.refetchIntervalInBackground||Z1.isFocused())&&this.#u()},this.#a))}#_(){this.#g(),this.#y(this.#m())}#b(){this.#s&&(Io.clearTimeout(this.#s),this.#s=void 0)}#S(){this.#l&&(Io.clearInterval(this.#l),this.#l=void 0)}createResult(t,e){const r=this.#e,n=this.options,i=this.#t,a=this.#o,o=this.#c,l=t!==r?t.state:this.#d,{state:u}=t;let c={...u},f=!1,v;if(e._optimisticResults){const T=this.hasListeners(),M=!T&&Ad(t,e),A=T&&Ed(t,r,e,n);(M||A)&&(c={...c,...K1(u.data,t.options)}),e._optimisticResults==="isRestoring"&&(c.fetchStatus="idle")}let{error:h,errorUpdatedAt:d,status:p}=c;v=c.data;let g=!1;if(e.placeholderData!==void 0&&v===void 0&&p==="pending"){let T;i?.isPlaceholderData&&e.placeholderData===o?.placeholderData?(T=i.data,g=!0):T=typeof e.placeholderData=="function"?e.placeholderData(this.#h?.state.data,this.#h):e.placeholderData,T!==void 0&&(p="success",v=Md(i?.data,T,e),f=!0)}if(e.select&&v!==void 0&&!g)if(i&&v===a?.data&&e.select===this.#p)v=this.#f;else try{this.#p=e.select,v=e.select(v),v=Md(i?.data,v,e),this.#f=v,this.#i=null}catch(T){this.#i=T}this.#i&&(h=this.#i,v=this.#f,d=Date.now(),p="error");const m=c.fetchStatus==="fetching",y=p==="pending",_=p==="error",b=y&&m,S=v!==void 0,w={status:p,fetchStatus:c.fetchStatus,isPending:y,isSuccess:p==="success",isError:_,isInitialLoading:b,isLoading:b,data:v,dataUpdatedAt:c.dataUpdatedAt,error:h,errorUpdatedAt:d,failureCount:c.fetchFailureCount,failureReason:c.fetchFailureReason,errorUpdateCount:c.errorUpdateCount,isFetched:c.dataUpdateCount>0||c.errorUpdateCount>0,isFetchedAfterMount:c.dataUpdateCount>l.dataUpdateCount||c.errorUpdateCount>l.errorUpdateCount,isFetching:m,isRefetching:m&&!y,isLoadingError:_&&!S,isPaused:c.fetchStatus==="paused",isPlaceholderData:f,isRefetchError:_&&S,isStale:$h(t,e),refetch:this.refetch,promise:this.#n,isEnabled:Ht(e.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const T=w.data!==void 0,M=w.status==="error"&&!T,A=E=>{M?E.reject(w.error):T&&E.resolve(w.data)},D=()=>{const E=this.#n=w.promise=Cd();A(E)},P=this.#n;switch(P.status){case"pending":t.queryHash===r.queryHash&&A(P);break;case"fulfilled":(M||w.data!==P.value)&&D();break;case"rejected":(!M||w.error!==P.reason)&&D();break}}return w}updateResult(){const t=this.#t,e=this.createResult(this.#e,this.options);if(this.#o=this.#e.state,this.#c=this.options,this.#o.data!==void 0&&(this.#h=this.#e),gf(e,t))return;this.#t=e;const r=()=>{if(!t)return!0;const{notifyOnChangeProps:n}=this.options,i=typeof n=="function"?n():n;if(i==="all"||!i&&!this.#v.size)return!0;const a=new Set(i??this.#v);return this.options.throwOnError&&a.add("error"),Object.keys(this.#t).some(o=>{const s=o;return this.#t[s]!==t[s]&&a.has(s)})};this.#w({listeners:r()})}#x(){const t=this.#r.getQueryCache().build(this.#r,this.options);if(t===this.#e)return;const e=this.#e;this.#e=t,this.#d=t.state,this.hasListeners()&&(e?.removeObserver(this),t.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#_()}#w(t){r0.batch(()=>{t.listeners&&this.listeners.forEach(e=>{e(this.#t)}),this.#r.getQueryCache().notify({query:this.#e,type:"observerResultsUpdated"})})}};function ow(t,e){return Ht(e.enabled,t)!==!1&&t.state.data===void 0&&!(t.state.status==="error"&&e.retryOnMount===!1)}function Ad(t,e){return ow(t,e)||t.state.data!==void 0&&_f(t,e,e.refetchOnMount)}function _f(t,e,r){if(Ht(e.enabled,t)!==!1&&La(e.staleTime,t)!=="static"){const n=typeof r=="function"?r(t):r;return n==="always"||n!==!1&&$h(t,e)}return!1}function Ed(t,e,r,n){return(t!==e||Ht(n.enabled,t)===!1)&&(!r.suspense||t.state.status!=="error")&&$h(t,r)}function $h(t,e){return Ht(e.enabled,t)!==!1&&t.isStaleByTime(La(e.staleTime,t))}function sw(t,e){return!gf(t.getCurrentResult(),e)}var s0=I.createContext(!1),lw=()=>I.useContext(s0);s0.Provider;function uw(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}var cw=I.createContext(uw()),fw=()=>I.useContext(cw),hw=(t,e,r)=>{const n=r?.state.error&&typeof t.throwOnError=="function"?n0(t.throwOnError,[r.state.error,r]):t.throwOnError;(t.suspense||t.experimental_prefetchInRender||n)&&(e.isReset()||(t.retryOnMount=!1))},vw=t=>{I.useEffect(()=>{t.clearReset()},[t])},dw=({result:t,errorResetBoundary:e,throwOnError:r,query:n,suspense:i})=>t.isError&&!e.isReset()&&!t.isFetching&&n&&(i&&t.data===void 0||n0(r,[t.error,n])),pw=t=>{if(t.suspense){const r=i=>i==="static"?i:Math.max(i??1e3,1e3),n=t.staleTime;t.staleTime=typeof n=="function"?(...i)=>r(n(...i)):r(n),typeof t.gcTime=="number"&&(t.gcTime=Math.max(t.gcTime,1e3))}},gw=(t,e)=>t.isLoading&&t.isFetching&&!e,mw=(t,e)=>t?.suspense&&e.isPending,Rd=(t,e,r)=>e.fetchOptimistic(t).catch(()=>{r.clearReset()});function yw(t,e,r){const n=lw(),i=fw(),a=Q1(),o=a.defaultQueryOptions(t);a.getDefaultOptions().queries?._experimental_beforeQuery?.(o);const s=a.getQueryCache().get(o.queryHash);o._optimisticResults=n?"isRestoring":"optimistic",pw(o),hw(o,i,s),vw(i);const l=!a.getQueryCache().get(o.queryHash),[u]=I.useState(()=>new e(a,o)),c=u.getOptimisticResult(o),f=!n&&t.subscribed!==!1;if(I.useSyncExternalStore(I.useCallback(v=>{const h=f?u.subscribe(r0.batchCalls(v)):mf;return u.updateResult(),h},[u,f]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),I.useEffect(()=>{u.setOptions(o)},[o,u]),mw(o,c))throw Rd(o,u,i);if(dw({result:c,errorResetBoundary:i,throwOnError:o.throwOnError,query:s,suspense:o.suspense}))throw c.error;return a.getDefaultOptions().queries?._experimental_afterQuery?.(o,c),o.experimental_prefetchInRender&&!yf&&gw(c,n)&&(l?Rd(o,u,i):s?.promise)?.catch(mf).finally(()=>{u.updateResult()}),o.notifyOnChangeProps?c:u.trackResult(c)}function l0(t,e){return yw(t,aw)}const _w=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Ld=ln("clock",_w);const bw=[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]],Sw=ln("cpu",bw);const xw=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],ww=ln("loader-circle",xw);const Tw=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],Cw=ln("map-pin",Tw);const Dw=[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]],Mw=ln("server",Dw);const Aw=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],Ew=ln("user",Aw);const Rw=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Lw=ln("x",Rw);const Pw=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],Iw=ln("zap",Pw);function u0(t,e){return function(){return t.apply(e,arguments)}}const{toString:Ow}=Object.prototype,{getPrototypeOf:Yh}=Object,{iterator:jl,toStringTag:c0}=Symbol,$l=(t=>e=>{const r=Ow.call(e);return t[r]||(t[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),jt=t=>(t=t.toLowerCase(),e=>$l(e)===t),Yl=t=>e=>typeof e===t,{isArray:ji}=Array,Oi=Yl("undefined");function po(t){return t!==null&&!Oi(t)&&t.constructor!==null&&!Oi(t.constructor)&<(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const f0=jt("ArrayBuffer");function kw(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&f0(t.buffer),e}const Nw=Yl("string"),lt=Yl("function"),h0=Yl("number"),go=t=>t!==null&&typeof t=="object",Bw=t=>t===!0||t===!1,Ps=t=>{if($l(t)!=="object")return!1;const e=Yh(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(c0 in t)&&!(jl in t)},Fw=t=>{if(!go(t)||po(t))return!1;try{return Object.keys(t).length===0&&Object.getPrototypeOf(t)===Object.prototype}catch{return!1}},zw=jt("Date"),Hw=jt("File"),Uw=jt("Blob"),Gw=jt("FileList"),Vw=t=>go(t)&<(t.pipe),Ww=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||lt(t.append)&&((e=$l(t))==="formdata"||e==="object"&<(t.toString)&&t.toString()==="[object FormData]"))},jw=jt("URLSearchParams"),[$w,Yw,qw,Xw]=["ReadableStream","Request","Response","Headers"].map(jt),Zw=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function mo(t,e,{allOwnKeys:r=!1}={}){if(t===null||typeof t>"u")return;let n,i;if(typeof t!="object"&&(t=[t]),ji(t))for(n=0,i=t.length;n<i;n++)e.call(null,t[n],n,t);else{if(po(t))return;const a=r?Object.getOwnPropertyNames(t):Object.keys(t),o=a.length;let s;for(n=0;n<o;n++)s=a[n],e.call(null,t[s],s,t)}}function v0(t,e){if(po(t))return null;e=e.toLowerCase();const r=Object.keys(t);let n=r.length,i;for(;n-- >0;)if(i=r[n],e===i.toLowerCase())return i;return null}const Nn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,d0=t=>!Oi(t)&&t!==Nn;function bf(){const{caseless:t,skipUndefined:e}=d0(this)&&this||{},r={},n=(i,a)=>{if(a==="__proto__"||a==="constructor"||a==="prototype")return;const o=t&&v0(r,a)||a;Ps(r[o])&&Ps(i)?r[o]=bf(r[o],i):Ps(i)?r[o]=bf({},i):ji(i)?r[o]=i.slice():(!e||!Oi(i))&&(r[o]=i)};for(let i=0,a=arguments.length;i<a;i++)arguments[i]&&mo(arguments[i],n);return r}const Kw=(t,e,r,{allOwnKeys:n}={})=>(mo(e,(i,a)=>{r&<(i)?Object.defineProperty(t,a,{value:u0(i,r),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(t,a,{value:i,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:n}),t),Qw=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),Jw=(t,e,r,n)=>{t.prototype=Object.create(e.prototype,n),Object.defineProperty(t.prototype,"constructor",{value:t,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(t,"super",{value:e.prototype}),r&&Object.assign(t.prototype,r)},eT=(t,e,r,n)=>{let i,a,o;const s={};if(e=e||{},t==null)return e;do{for(i=Object.getOwnPropertyNames(t),a=i.length;a-- >0;)o=i[a],(!n||n(o,t,e))&&!s[o]&&(e[o]=t[o],s[o]=!0);t=r!==!1&&Yh(t)}while(t&&(!r||r(t,e))&&t!==Object.prototype);return e},tT=(t,e,r)=>{t=String(t),(r===void 0||r>t.length)&&(r=t.length),r-=e.length;const n=t.indexOf(e,r);return n!==-1&&n===r},rT=t=>{if(!t)return null;if(ji(t))return t;let e=t.length;if(!h0(e))return null;const r=new Array(e);for(;e-- >0;)r[e]=t[e];return r},nT=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&Yh(Uint8Array)),iT=(t,e)=>{const n=(t&&t[jl]).call(t);let i;for(;(i=n.next())&&!i.done;){const a=i.value;e.call(t,a[0],a[1])}},aT=(t,e)=>{let r;const n=[];for(;(r=t.exec(e))!==null;)n.push(r);return n},oT=jt("HTMLFormElement"),sT=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,i){return n.toUpperCase()+i}),Pd=(({hasOwnProperty:t})=>(e,r)=>t.call(e,r))(Object.prototype),lT=jt("RegExp"),p0=(t,e)=>{const r=Object.getOwnPropertyDescriptors(t),n={};mo(r,(i,a)=>{let o;(o=e(i,a,t))!==!1&&(n[a]=o||i)}),Object.defineProperties(t,n)},uT=t=>{p0(t,(e,r)=>{if(lt(t)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=t[r];if(lt(n)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},cT=(t,e)=>{const r={},n=i=>{i.forEach(a=>{r[a]=!0})};return ji(t)?n(t):n(String(t).split(e)),r},fT=()=>{},hT=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e;function vT(t){return!!(t&<(t.append)&&t[c0]==="FormData"&&t[jl])}const dT=t=>{const e=new Array(10),r=(n,i)=>{if(go(n)){if(e.indexOf(n)>=0)return;if(po(n))return n;if(!("toJSON"in n)){e[i]=n;const a=ji(n)?[]:{};return mo(n,(o,s)=>{const l=r(o,i+1);!Oi(l)&&(a[s]=l)}),e[i]=void 0,a}}return n};return r(t,0)},pT=jt("AsyncFunction"),gT=t=>t&&(go(t)||lt(t))&<(t.then)&<(t.catch),g0=((t,e)=>t?setImmediate:e?((r,n)=>(Nn.addEventListener("message",({source:i,data:a})=>{i===Nn&&a===r&&n.length&&n.shift()()},!1),i=>{n.push(i),Nn.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",lt(Nn.postMessage)),mT=typeof queueMicrotask<"u"?queueMicrotask.bind(Nn):typeof process<"u"&&process.nextTick||g0,yT=t=>t!=null&<(t[jl]),O={isArray:ji,isArrayBuffer:f0,isBuffer:po,isFormData:Ww,isArrayBufferView:kw,isString:Nw,isNumber:h0,isBoolean:Bw,isObject:go,isPlainObject:Ps,isEmptyObject:Fw,isReadableStream:$w,isRequest:Yw,isResponse:qw,isHeaders:Xw,isUndefined:Oi,isDate:zw,isFile:Hw,isBlob:Uw,isRegExp:lT,isFunction:lt,isStream:Vw,isURLSearchParams:jw,isTypedArray:nT,isFileList:Gw,forEach:mo,merge:bf,extend:Kw,trim:Zw,stripBOM:Qw,inherits:Jw,toFlatObject:eT,kindOf:$l,kindOfTest:jt,endsWith:tT,toArray:rT,forEachEntry:iT,matchAll:aT,isHTMLForm:oT,hasOwnProperty:Pd,hasOwnProp:Pd,reduceDescriptors:p0,freezeMethods:uT,toObjectSet:cT,toCamelCase:sT,noop:fT,toFiniteNumber:hT,findKey:v0,global:Nn,isContextDefined:d0,isSpecCompliantForm:vT,toJSONObject:dT,isAsyncFn:pT,isThenable:gT,setImmediate:g0,asap:mT,isIterable:yT};let Q=class m0 extends Error{static from(e,r,n,i,a,o){const s=new m0(e.message,r||e.code,n,i,a);return s.cause=e,s.name=e.name,o&&Object.assign(s,o),s}constructor(e,r,n,i,a){super(e),this.name="AxiosError",this.isAxiosError=!0,r&&(this.code=r),n&&(this.config=n),i&&(this.request=i),a&&(this.response=a,this.status=a.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:O.toJSONObject(this.config),code:this.code,status:this.status}}};Q.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";Q.ERR_BAD_OPTION="ERR_BAD_OPTION";Q.ECONNABORTED="ECONNABORTED";Q.ETIMEDOUT="ETIMEDOUT";Q.ERR_NETWORK="ERR_NETWORK";Q.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";Q.ERR_DEPRECATED="ERR_DEPRECATED";Q.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";Q.ERR_BAD_REQUEST="ERR_BAD_REQUEST";Q.ERR_CANCELED="ERR_CANCELED";Q.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";Q.ERR_INVALID_URL="ERR_INVALID_URL";const _T=null;function Sf(t){return O.isPlainObject(t)||O.isArray(t)}function y0(t){return O.endsWith(t,"[]")?t.slice(0,-2):t}function Id(t,e,r){return t?t.concat(e).map(function(i,a){return i=y0(i),!r&&a?"["+i+"]":i}).join(r?".":""):e}function bT(t){return O.isArray(t)&&!t.some(Sf)}const ST=O.toFlatObject(O,{},null,function(e){return/^is[A-Z]/.test(e)});function ql(t,e,r){if(!O.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,r=O.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,g){return!O.isUndefined(g[p])});const n=r.metaTokens,i=r.visitor||c,a=r.dots,o=r.indexes,l=(r.Blob||typeof Blob<"u"&&Blob)&&O.isSpecCompliantForm(e);if(!O.isFunction(i))throw new TypeError("visitor must be a function");function u(d){if(d===null)return"";if(O.isDate(d))return d.toISOString();if(O.isBoolean(d))return d.toString();if(!l&&O.isBlob(d))throw new Q("Blob is not supported. Use a Buffer instead.");return O.isArrayBuffer(d)||O.isTypedArray(d)?l&&typeof Blob=="function"?new Blob([d]):Buffer.from(d):d}function c(d,p,g){let m=d;if(d&&!g&&typeof d=="object"){if(O.endsWith(p,"{}"))p=n?p:p.slice(0,-2),d=JSON.stringify(d);else if(O.isArray(d)&&bT(d)||(O.isFileList(d)||O.endsWith(p,"[]"))&&(m=O.toArray(d)))return p=y0(p),m.forEach(function(_,b){!(O.isUndefined(_)||_===null)&&e.append(o===!0?Id([p],b,a):o===null?p:p+"[]",u(_))}),!1}return Sf(d)?!0:(e.append(Id(g,p,a),u(d)),!1)}const f=[],v=Object.assign(ST,{defaultVisitor:c,convertValue:u,isVisitable:Sf});function h(d,p){if(!O.isUndefined(d)){if(f.indexOf(d)!==-1)throw Error("Circular reference detected in "+p.join("."));f.push(d),O.forEach(d,function(m,y){(!(O.isUndefined(m)||m===null)&&i.call(e,m,O.isString(y)?y.trim():y,p,v))===!0&&h(m,p?p.concat(y):[y])}),f.pop()}}if(!O.isObject(t))throw new TypeError("data must be an object");return h(t),e}function Od(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(n){return e[n]})}function qh(t,e){this._pairs=[],t&&ql(t,this,e)}const _0=qh.prototype;_0.append=function(e,r){this._pairs.push([e,r])};_0.toString=function(e){const r=e?function(n){return e.call(this,n,Od)}:Od;return this._pairs.map(function(i){return r(i[0])+"="+r(i[1])},"").join("&")};function xT(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function b0(t,e,r){if(!e)return t;const n=r&&r.encode||xT,i=O.isFunction(r)?{serialize:r}:r,a=i&&i.serialize;let o;if(a?o=a(e,i):o=O.isURLSearchParams(e)?e.toString():new qh(e,i).toString(n),o){const s=t.indexOf("#");s!==-1&&(t=t.slice(0,s)),t+=(t.indexOf("?")===-1?"?":"&")+o}return t}class kd{constructor(){this.handlers=[]}use(e,r,n){return this.handlers.push({fulfilled:e,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){O.forEach(this.handlers,function(n){n!==null&&e(n)})}}const Xh={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},wT=typeof URLSearchParams<"u"?URLSearchParams:qh,TT=typeof FormData<"u"?FormData:null,CT=typeof Blob<"u"?Blob:null,DT={isBrowser:!0,classes:{URLSearchParams:wT,FormData:TT,Blob:CT},protocols:["http","https","file","blob","url","data"]},Zh=typeof window<"u"&&typeof document<"u",xf=typeof navigator=="object"&&navigator||void 0,MT=Zh&&(!xf||["ReactNative","NativeScript","NS"].indexOf(xf.product)<0),AT=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",ET=Zh&&window.location.href||"http://localhost",RT=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Zh,hasStandardBrowserEnv:MT,hasStandardBrowserWebWorkerEnv:AT,navigator:xf,origin:ET},Symbol.toStringTag,{value:"Module"})),Ve={...RT,...DT};function LT(t,e){return ql(t,new Ve.classes.URLSearchParams,{visitor:function(r,n,i,a){return Ve.isNode&&O.isBuffer(r)?(this.append(n,r.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)},...e})}function PT(t){return O.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function IT(t){const e={},r=Object.keys(t);let n;const i=r.length;let a;for(n=0;n<i;n++)a=r[n],e[a]=t[a];return e}function S0(t){function e(r,n,i,a){let o=r[a++];if(o==="__proto__")return!0;const s=Number.isFinite(+o),l=a>=r.length;return o=!o&&O.isArray(i)?i.length:o,l?(O.hasOwnProp(i,o)?i[o]=[i[o],n]:i[o]=n,!s):((!i[o]||!O.isObject(i[o]))&&(i[o]=[]),e(r,n,i[o],a)&&O.isArray(i[o])&&(i[o]=IT(i[o])),!s)}if(O.isFormData(t)&&O.isFunction(t.entries)){const r={};return O.forEachEntry(t,(n,i)=>{e(PT(n),i,r,0)}),r}return null}function OT(t,e,r){if(O.isString(t))try{return(e||JSON.parse)(t),O.trim(t)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(t)}const yo={transitional:Xh,adapter:["xhr","http","fetch"],transformRequest:[function(e,r){const n=r.getContentType()||"",i=n.indexOf("application/json")>-1,a=O.isObject(e);if(a&&O.isHTMLForm(e)&&(e=new FormData(e)),O.isFormData(e))return i?JSON.stringify(S0(e)):e;if(O.isArrayBuffer(e)||O.isBuffer(e)||O.isStream(e)||O.isFile(e)||O.isBlob(e)||O.isReadableStream(e))return e;if(O.isArrayBufferView(e))return e.buffer;if(O.isURLSearchParams(e))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let s;if(a){if(n.indexOf("application/x-www-form-urlencoded")>-1)return LT(e,this.formSerializer).toString();if((s=O.isFileList(e))||n.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return ql(s?{"files[]":e}:e,l&&new l,this.formSerializer)}}return a||i?(r.setContentType("application/json",!1),OT(e)):e}],transformResponse:[function(e){const r=this.transitional||yo.transitional,n=r&&r.forcedJSONParsing,i=this.responseType==="json";if(O.isResponse(e)||O.isReadableStream(e))return e;if(e&&O.isString(e)&&(n&&!this.responseType||i)){const o=!(r&&r.silentJSONParsing)&&i;try{return JSON.parse(e,this.parseReviver)}catch(s){if(o)throw s.name==="SyntaxError"?Q.from(s,Q.ERR_BAD_RESPONSE,this,null,this.response):s}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ve.classes.FormData,Blob:Ve.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};O.forEach(["delete","get","head","post","put","patch"],t=>{yo.headers[t]={}});const kT=O.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),NT=t=>{const e={};let r,n,i;return t&&t.split(`
|
|
2
|
-
`).forEach(function(o){i=o.indexOf(":"),r=o.substring(0,i).trim().toLowerCase(),n=o.substring(i+1).trim(),!(!r||e[r]&&kT[r])&&(r==="set-cookie"?e[r]?e[r].push(n):e[r]=[n]:e[r]=e[r]?e[r]+", "+n:n)}),e},Nd=Symbol("internals");function Zi(t){return t&&String(t).trim().toLowerCase()}function Is(t){return t===!1||t==null?t:O.isArray(t)?t.map(Is):String(t)}function BT(t){const e=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(t);)e[n[1]]=n[2];return e}const FT=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function Iu(t,e,r,n,i){if(O.isFunction(n))return n.call(this,e,r);if(i&&(e=r),!!O.isString(e)){if(O.isString(n))return e.indexOf(n)!==-1;if(O.isRegExp(n))return n.test(e)}}function zT(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,r,n)=>r.toUpperCase()+n)}function HT(t,e){const r=O.toCamelCase(" "+e);["get","set","has"].forEach(n=>{Object.defineProperty(t,n+r,{value:function(i,a,o){return this[n].call(this,e,i,a,o)},configurable:!0})})}let ut=class{constructor(e){e&&this.set(e)}set(e,r,n){const i=this;function a(s,l,u){const c=Zi(l);if(!c)throw new Error("header name must be a non-empty string");const f=O.findKey(i,c);(!f||i[f]===void 0||u===!0||u===void 0&&i[f]!==!1)&&(i[f||l]=Is(s))}const o=(s,l)=>O.forEach(s,(u,c)=>a(u,c,l));if(O.isPlainObject(e)||e instanceof this.constructor)o(e,r);else if(O.isString(e)&&(e=e.trim())&&!FT(e))o(NT(e),r);else if(O.isObject(e)&&O.isIterable(e)){let s={},l,u;for(const c of e){if(!O.isArray(c))throw TypeError("Object iterator must return a key-value pair");s[u=c[0]]=(l=s[u])?O.isArray(l)?[...l,c[1]]:[l,c[1]]:c[1]}o(s,r)}else e!=null&&a(r,e,n);return this}get(e,r){if(e=Zi(e),e){const n=O.findKey(this,e);if(n){const i=this[n];if(!r)return i;if(r===!0)return BT(i);if(O.isFunction(r))return r.call(this,i,n);if(O.isRegExp(r))return r.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,r){if(e=Zi(e),e){const n=O.findKey(this,e);return!!(n&&this[n]!==void 0&&(!r||Iu(this,this[n],n,r)))}return!1}delete(e,r){const n=this;let i=!1;function a(o){if(o=Zi(o),o){const s=O.findKey(n,o);s&&(!r||Iu(n,n[s],s,r))&&(delete n[s],i=!0)}}return O.isArray(e)?e.forEach(a):a(e),i}clear(e){const r=Object.keys(this);let n=r.length,i=!1;for(;n--;){const a=r[n];(!e||Iu(this,this[a],a,e,!0))&&(delete this[a],i=!0)}return i}normalize(e){const r=this,n={};return O.forEach(this,(i,a)=>{const o=O.findKey(n,a);if(o){r[o]=Is(i),delete r[a];return}const s=e?zT(a):String(a).trim();s!==a&&delete r[a],r[s]=Is(i),n[s]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const r=Object.create(null);return O.forEach(this,(n,i)=>{n!=null&&n!==!1&&(r[i]=e&&O.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,r])=>e+": "+r).join(`
|
|
3
|
-
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...r){const n=new this(e);return r.forEach(i=>n.set(i)),n}static accessor(e){const n=(this[Nd]=this[Nd]={accessors:{}}).accessors,i=this.prototype;function a(o){const s=Zi(o);n[s]||(HT(i,o),n[s]=!0)}return O.isArray(e)?e.forEach(a):a(e),this}};ut.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);O.reduceDescriptors(ut.prototype,({value:t},e)=>{let r=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(n){this[r]=n}}});O.freezeMethods(ut);function Ou(t,e){const r=this||yo,n=e||r,i=ut.from(n.headers);let a=n.data;return O.forEach(t,function(s){a=s.call(r,a,i.normalize(),e?e.status:void 0)}),i.normalize(),a}function x0(t){return!!(t&&t.__CANCEL__)}let _o=class extends Q{constructor(e,r,n){super(e??"canceled",Q.ERR_CANCELED,r,n),this.name="CanceledError",this.__CANCEL__=!0}};function w0(t,e,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?t(r):e(new Q("Request failed with status code "+r.status,[Q.ERR_BAD_REQUEST,Q.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function UT(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function GT(t,e){t=t||10;const r=new Array(t),n=new Array(t);let i=0,a=0,o;return e=e!==void 0?e:1e3,function(l){const u=Date.now(),c=n[a];o||(o=u),r[i]=l,n[i]=u;let f=a,v=0;for(;f!==i;)v+=r[f++],f=f%t;if(i=(i+1)%t,i===a&&(a=(a+1)%t),u-o<e)return;const h=c&&u-c;return h?Math.round(v*1e3/h):void 0}}function VT(t,e){let r=0,n=1e3/e,i,a;const o=(u,c=Date.now())=>{r=c,i=null,a&&(clearTimeout(a),a=null),t(...u)};return[(...u)=>{const c=Date.now(),f=c-r;f>=n?o(u,c):(i=u,a||(a=setTimeout(()=>{a=null,o(i)},n-f)))},()=>i&&o(i)]}const tl=(t,e,r=3)=>{let n=0;const i=GT(50,250);return VT(a=>{const o=a.loaded,s=a.lengthComputable?a.total:void 0,l=o-n,u=i(l),c=o<=s;n=o;const f={loaded:o,total:s,progress:s?o/s:void 0,bytes:l,rate:u||void 0,estimated:u&&s&&c?(s-o)/u:void 0,event:a,lengthComputable:s!=null,[e?"download":"upload"]:!0};t(f)},r)},Bd=(t,e)=>{const r=t!=null;return[n=>e[0]({lengthComputable:r,total:t,loaded:n}),e[1]]},Fd=t=>(...e)=>O.asap(()=>t(...e)),WT=Ve.hasStandardBrowserEnv?((t,e)=>r=>(r=new URL(r,Ve.origin),t.protocol===r.protocol&&t.host===r.host&&(e||t.port===r.port)))(new URL(Ve.origin),Ve.navigator&&/(msie|trident)/i.test(Ve.navigator.userAgent)):()=>!0,jT=Ve.hasStandardBrowserEnv?{write(t,e,r,n,i,a,o){if(typeof document>"u")return;const s=[`${t}=${encodeURIComponent(e)}`];O.isNumber(r)&&s.push(`expires=${new Date(r).toUTCString()}`),O.isString(n)&&s.push(`path=${n}`),O.isString(i)&&s.push(`domain=${i}`),a===!0&&s.push("secure"),O.isString(o)&&s.push(`SameSite=${o}`),document.cookie=s.join("; ")},read(t){if(typeof document>"u")return null;const e=document.cookie.match(new RegExp("(?:^|; )"+t+"=([^;]*)"));return e?decodeURIComponent(e[1]):null},remove(t){this.write(t,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function $T(t){return typeof t!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function YT(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function T0(t,e,r){let n=!$T(e);return t&&(n||r==!1)?YT(t,e):e}const zd=t=>t instanceof ut?{...t}:t;function Zn(t,e){e=e||{};const r={};function n(u,c,f,v){return O.isPlainObject(u)&&O.isPlainObject(c)?O.merge.call({caseless:v},u,c):O.isPlainObject(c)?O.merge({},c):O.isArray(c)?c.slice():c}function i(u,c,f,v){if(O.isUndefined(c)){if(!O.isUndefined(u))return n(void 0,u,f,v)}else return n(u,c,f,v)}function a(u,c){if(!O.isUndefined(c))return n(void 0,c)}function o(u,c){if(O.isUndefined(c)){if(!O.isUndefined(u))return n(void 0,u)}else return n(void 0,c)}function s(u,c,f){if(f in e)return n(u,c);if(f in t)return n(void 0,u)}const l={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s,headers:(u,c,f)=>i(zd(u),zd(c),f,!0)};return O.forEach(Object.keys({...t,...e}),function(c){if(c==="__proto__"||c==="constructor"||c==="prototype")return;const f=O.hasOwnProp(l,c)?l[c]:i,v=f(t[c],e[c],c);O.isUndefined(v)&&f!==s||(r[c]=v)}),r}const C0=t=>{const e=Zn({},t);let{data:r,withXSRFToken:n,xsrfHeaderName:i,xsrfCookieName:a,headers:o,auth:s}=e;if(e.headers=o=ut.from(o),e.url=b0(T0(e.baseURL,e.url,e.allowAbsoluteUrls),t.params,t.paramsSerializer),s&&o.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),O.isFormData(r)){if(Ve.hasStandardBrowserEnv||Ve.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if(O.isFunction(r.getHeaders)){const l=r.getHeaders(),u=["content-type","content-length"];Object.entries(l).forEach(([c,f])=>{u.includes(c.toLowerCase())&&o.set(c,f)})}}if(Ve.hasStandardBrowserEnv&&(n&&O.isFunction(n)&&(n=n(e)),n||n!==!1&&WT(e.url))){const l=i&&a&&jT.read(a);l&&o.set(i,l)}return e},qT=typeof XMLHttpRequest<"u",XT=qT&&function(t){return new Promise(function(r,n){const i=C0(t);let a=i.data;const o=ut.from(i.headers).normalize();let{responseType:s,onUploadProgress:l,onDownloadProgress:u}=i,c,f,v,h,d;function p(){h&&h(),d&&d(),i.cancelToken&&i.cancelToken.unsubscribe(c),i.signal&&i.signal.removeEventListener("abort",c)}let g=new XMLHttpRequest;g.open(i.method.toUpperCase(),i.url,!0),g.timeout=i.timeout;function m(){if(!g)return;const _=ut.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders()),S={data:!s||s==="text"||s==="json"?g.responseText:g.response,status:g.status,statusText:g.statusText,headers:_,config:t,request:g};w0(function(w){r(w),p()},function(w){n(w),p()},S),g=null}"onloadend"in g?g.onloadend=m:g.onreadystatechange=function(){!g||g.readyState!==4||g.status===0&&!(g.responseURL&&g.responseURL.indexOf("file:")===0)||setTimeout(m)},g.onabort=function(){g&&(n(new Q("Request aborted",Q.ECONNABORTED,t,g)),g=null)},g.onerror=function(b){const S=b&&b.message?b.message:"Network Error",x=new Q(S,Q.ERR_NETWORK,t,g);x.event=b||null,n(x),g=null},g.ontimeout=function(){let b=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const S=i.transitional||Xh;i.timeoutErrorMessage&&(b=i.timeoutErrorMessage),n(new Q(b,S.clarifyTimeoutError?Q.ETIMEDOUT:Q.ECONNABORTED,t,g)),g=null},a===void 0&&o.setContentType(null),"setRequestHeader"in g&&O.forEach(o.toJSON(),function(b,S){g.setRequestHeader(S,b)}),O.isUndefined(i.withCredentials)||(g.withCredentials=!!i.withCredentials),s&&s!=="json"&&(g.responseType=i.responseType),u&&([v,d]=tl(u,!0),g.addEventListener("progress",v)),l&&g.upload&&([f,h]=tl(l),g.upload.addEventListener("progress",f),g.upload.addEventListener("loadend",h)),(i.cancelToken||i.signal)&&(c=_=>{g&&(n(!_||_.type?new _o(null,t,g):_),g.abort(),g=null)},i.cancelToken&&i.cancelToken.subscribe(c),i.signal&&(i.signal.aborted?c():i.signal.addEventListener("abort",c)));const y=UT(i.url);if(y&&Ve.protocols.indexOf(y)===-1){n(new Q("Unsupported protocol "+y+":",Q.ERR_BAD_REQUEST,t));return}g.send(a||null)})},ZT=(t,e)=>{const{length:r}=t=t?t.filter(Boolean):[];if(e||r){let n=new AbortController,i;const a=function(u){if(!i){i=!0,s();const c=u instanceof Error?u:this.reason;n.abort(c instanceof Q?c:new _o(c instanceof Error?c.message:c))}};let o=e&&setTimeout(()=>{o=null,a(new Q(`timeout of ${e}ms exceeded`,Q.ETIMEDOUT))},e);const s=()=>{t&&(o&&clearTimeout(o),o=null,t.forEach(u=>{u.unsubscribe?u.unsubscribe(a):u.removeEventListener("abort",a)}),t=null)};t.forEach(u=>u.addEventListener("abort",a));const{signal:l}=n;return l.unsubscribe=()=>O.asap(s),l}},KT=function*(t,e){let r=t.byteLength;if(r<e){yield t;return}let n=0,i;for(;n<r;)i=n+e,yield t.slice(n,i),n=i},QT=async function*(t,e){for await(const r of JT(t))yield*KT(r,e)},JT=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const e=t.getReader();try{for(;;){const{done:r,value:n}=await e.read();if(r)break;yield n}}finally{await e.cancel()}},Hd=(t,e,r,n)=>{const i=QT(t,e);let a=0,o,s=l=>{o||(o=!0,n&&n(l))};return new ReadableStream({async pull(l){try{const{done:u,value:c}=await i.next();if(u){s(),l.close();return}let f=c.byteLength;if(r){let v=a+=f;r(v)}l.enqueue(new Uint8Array(c))}catch(u){throw s(u),u}},cancel(l){return s(l),i.return()}},{highWaterMark:2})},Ud=64*1024,{isFunction:Oo}=O,eC=(({Request:t,Response:e})=>({Request:t,Response:e}))(O.global),{ReadableStream:Gd,TextEncoder:Vd}=O.global,Wd=(t,...e)=>{try{return!!t(...e)}catch{return!1}},tC=t=>{t=O.merge.call({skipUndefined:!0},eC,t);const{fetch:e,Request:r,Response:n}=t,i=e?Oo(e):typeof fetch=="function",a=Oo(r),o=Oo(n);if(!i)return!1;const s=i&&Oo(Gd),l=i&&(typeof Vd=="function"?(d=>p=>d.encode(p))(new Vd):async d=>new Uint8Array(await new r(d).arrayBuffer())),u=a&&s&&Wd(()=>{let d=!1;const p=new r(Ve.origin,{body:new Gd,method:"POST",get duplex(){return d=!0,"half"}}).headers.has("Content-Type");return d&&!p}),c=o&&s&&Wd(()=>O.isReadableStream(new n("").body)),f={stream:c&&(d=>d.body)};i&&["text","arrayBuffer","blob","formData","stream"].forEach(d=>{!f[d]&&(f[d]=(p,g)=>{let m=p&&p[d];if(m)return m.call(p);throw new Q(`Response type '${d}' is not supported`,Q.ERR_NOT_SUPPORT,g)})});const v=async d=>{if(d==null)return 0;if(O.isBlob(d))return d.size;if(O.isSpecCompliantForm(d))return(await new r(Ve.origin,{method:"POST",body:d}).arrayBuffer()).byteLength;if(O.isArrayBufferView(d)||O.isArrayBuffer(d))return d.byteLength;if(O.isURLSearchParams(d)&&(d=d+""),O.isString(d))return(await l(d)).byteLength},h=async(d,p)=>{const g=O.toFiniteNumber(d.getContentLength());return g??v(p)};return async d=>{let{url:p,method:g,data:m,signal:y,cancelToken:_,timeout:b,onDownloadProgress:S,onUploadProgress:x,responseType:w,headers:T,withCredentials:M="same-origin",fetchOptions:A}=C0(d),D=e||fetch;w=w?(w+"").toLowerCase():"text";let P=ZT([y,_&&_.toAbortSignal()],b),E=null;const L=P&&P.unsubscribe&&(()=>{P.unsubscribe()});let k;try{if(x&&u&&g!=="get"&&g!=="head"&&(k=await h(T,m))!==0){let H=new r(p,{method:"POST",body:m,duplex:"half"}),z;if(O.isFormData(m)&&(z=H.headers.get("content-type"))&&T.setContentType(z),H.body){const[J,ce]=Bd(k,tl(Fd(x)));m=Hd(H.body,Ud,J,ce)}}O.isString(M)||(M=M?"include":"omit");const N=a&&"credentials"in r.prototype,$={...A,signal:P,method:g.toUpperCase(),headers:T.normalize().toJSON(),body:m,duplex:"half",credentials:N?M:void 0};E=a&&new r(p,$);let B=await(a?D(E,A):D(p,$));const U=c&&(w==="stream"||w==="response");if(c&&(S||U&&L)){const H={};["status","statusText","headers"].forEach(Pe=>{H[Pe]=B[Pe]});const z=O.toFiniteNumber(B.headers.get("content-length")),[J,ce]=S&&Bd(z,tl(Fd(S),!0))||[];B=new n(Hd(B.body,Ud,J,()=>{ce&&ce(),L&&L()}),H)}w=w||"text";let j=await f[O.findKey(f,w)||"text"](B,d);return!U&&L&&L(),await new Promise((H,z)=>{w0(H,z,{data:j,headers:ut.from(B.headers),status:B.status,statusText:B.statusText,config:d,request:E})})}catch(N){throw L&&L(),N&&N.name==="TypeError"&&/Load failed|fetch/i.test(N.message)?Object.assign(new Q("Network Error",Q.ERR_NETWORK,d,E,N&&N.response),{cause:N.cause||N}):Q.from(N,N&&N.code,d,E,N&&N.response)}}},rC=new Map,D0=t=>{let e=t&&t.env||{};const{fetch:r,Request:n,Response:i}=e,a=[n,i,r];let o=a.length,s=o,l,u,c=rC;for(;s--;)l=a[s],u=c.get(l),u===void 0&&c.set(l,u=s?new Map:tC(e)),c=u;return u};D0();const Kh={http:_T,xhr:XT,fetch:{get:D0}};O.forEach(Kh,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const jd=t=>`- ${t}`,nC=t=>O.isFunction(t)||t===null||t===!1;function iC(t,e){t=O.isArray(t)?t:[t];const{length:r}=t;let n,i;const a={};for(let o=0;o<r;o++){n=t[o];let s;if(i=n,!nC(n)&&(i=Kh[(s=String(n)).toLowerCase()],i===void 0))throw new Q(`Unknown adapter '${s}'`);if(i&&(O.isFunction(i)||(i=i.get(e))))break;a[s||"#"+o]=i}if(!i){const o=Object.entries(a).map(([l,u])=>`adapter ${l} `+(u===!1?"is not supported by the environment":"is not available in the build"));let s=r?o.length>1?`since :
|
|
4
|
-
`+o.map(jd).join(`
|
|
5
|
-
`):" "+jd(o[0]):"as no adapter specified";throw new Q("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return i}const M0={getAdapter:iC,adapters:Kh};function ku(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new _o(null,t)}function $d(t){return ku(t),t.headers=ut.from(t.headers),t.data=Ou.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),M0.getAdapter(t.adapter||yo.adapter,t)(t).then(function(n){return ku(t),n.data=Ou.call(t,t.transformResponse,n),n.headers=ut.from(n.headers),n},function(n){return x0(n)||(ku(t),n&&n.response&&(n.response.data=Ou.call(t,t.transformResponse,n.response),n.response.headers=ut.from(n.response.headers))),Promise.reject(n)})}const A0="1.13.5",Xl={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{Xl[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}});const Yd={};Xl.transitional=function(e,r,n){function i(a,o){return"[Axios v"+A0+"] Transitional option '"+a+"'"+o+(n?". "+n:"")}return(a,o,s)=>{if(e===!1)throw new Q(i(o," has been removed"+(r?" in "+r:"")),Q.ERR_DEPRECATED);return r&&!Yd[o]&&(Yd[o]=!0,console.warn(i(o," has been deprecated since v"+r+" and will be removed in the near future"))),e?e(a,o,s):!0}};Xl.spelling=function(e){return(r,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};function aC(t,e,r){if(typeof t!="object")throw new Q("options must be an object",Q.ERR_BAD_OPTION_VALUE);const n=Object.keys(t);let i=n.length;for(;i-- >0;){const a=n[i],o=e[a];if(o){const s=t[a],l=s===void 0||o(s,a,t);if(l!==!0)throw new Q("option "+a+" must be "+l,Q.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new Q("Unknown option "+a,Q.ERR_BAD_OPTION)}}const Os={assertOptions:aC,validators:Xl},bt=Os.validators;let Gn=class{constructor(e){this.defaults=e||{},this.interceptors={request:new kd,response:new kd}}async request(e,r){try{return await this._request(e,r)}catch(n){if(n instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const a=i.stack?i.stack.replace(/^.+\n/,""):"";try{n.stack?a&&!String(n.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(n.stack+=`
|
|
6
|
-
`+a):n.stack=a}catch{}}throw n}}_request(e,r){typeof e=="string"?(r=r||{},r.url=e):r=e||{},r=Zn(this.defaults,r);const{transitional:n,paramsSerializer:i,headers:a}=r;n!==void 0&&Os.assertOptions(n,{silentJSONParsing:bt.transitional(bt.boolean),forcedJSONParsing:bt.transitional(bt.boolean),clarifyTimeoutError:bt.transitional(bt.boolean),legacyInterceptorReqResOrdering:bt.transitional(bt.boolean)},!1),i!=null&&(O.isFunction(i)?r.paramsSerializer={serialize:i}:Os.assertOptions(i,{encode:bt.function,serialize:bt.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),Os.assertOptions(r,{baseUrl:bt.spelling("baseURL"),withXsrfToken:bt.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let o=a&&O.merge(a.common,a[r.method]);a&&O.forEach(["delete","get","head","post","put","patch","common"],d=>{delete a[d]}),r.headers=ut.concat(o,a);const s=[];let l=!0;this.interceptors.request.forEach(function(p){if(typeof p.runWhen=="function"&&p.runWhen(r)===!1)return;l=l&&p.synchronous;const g=r.transitional||Xh;g&&g.legacyInterceptorReqResOrdering?s.unshift(p.fulfilled,p.rejected):s.push(p.fulfilled,p.rejected)});const u=[];this.interceptors.response.forEach(function(p){u.push(p.fulfilled,p.rejected)});let c,f=0,v;if(!l){const d=[$d.bind(this),void 0];for(d.unshift(...s),d.push(...u),v=d.length,c=Promise.resolve(r);f<v;)c=c.then(d[f++],d[f++]);return c}v=s.length;let h=r;for(;f<v;){const d=s[f++],p=s[f++];try{h=d(h)}catch(g){p.call(this,g);break}}try{c=$d.call(this,h)}catch(d){return Promise.reject(d)}for(f=0,v=u.length;f<v;)c=c.then(u[f++],u[f++]);return c}getUri(e){e=Zn(this.defaults,e);const r=T0(e.baseURL,e.url,e.allowAbsoluteUrls);return b0(r,e.params,e.paramsSerializer)}};O.forEach(["delete","get","head","options"],function(e){Gn.prototype[e]=function(r,n){return this.request(Zn(n||{},{method:e,url:r,data:(n||{}).data}))}});O.forEach(["post","put","patch"],function(e){function r(n){return function(a,o,s){return this.request(Zn(s||{},{method:e,headers:n?{"Content-Type":"multipart/form-data"}:{},url:a,data:o}))}}Gn.prototype[e]=r(),Gn.prototype[e+"Form"]=r(!0)});let oC=class E0{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(a){r=a});const n=this;this.promise.then(i=>{if(!n._listeners)return;let a=n._listeners.length;for(;a-- >0;)n._listeners[a](i);n._listeners=null}),this.promise.then=i=>{let a;const o=new Promise(s=>{n.subscribe(s),a=s}).then(i);return o.cancel=function(){n.unsubscribe(a)},o},e(function(a,o,s){n.reason||(n.reason=new _o(a,o,s),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const r=this._listeners.indexOf(e);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const e=new AbortController,r=n=>{e.abort(n)};return this.subscribe(r),e.signal.unsubscribe=()=>this.unsubscribe(r),e.signal}static source(){let e;return{token:new E0(function(i){e=i}),cancel:e}}};function sC(t){return function(r){return t.apply(null,r)}}function lC(t){return O.isObject(t)&&t.isAxiosError===!0}const wf={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(wf).forEach(([t,e])=>{wf[e]=t});function R0(t){const e=new Gn(t),r=u0(Gn.prototype.request,e);return O.extend(r,Gn.prototype,e,{allOwnKeys:!0}),O.extend(r,e,null,{allOwnKeys:!0}),r.create=function(i){return R0(Zn(t,i))},r}const Me=R0(yo);Me.Axios=Gn;Me.CanceledError=_o;Me.CancelToken=oC;Me.isCancel=x0;Me.VERSION=A0;Me.toFormData=ql;Me.AxiosError=Q;Me.Cancel=Me.CanceledError;Me.all=function(e){return Promise.all(e)};Me.spread=sC;Me.isAxiosError=lC;Me.mergeConfig=Zn;Me.AxiosHeaders=ut;Me.formToJSON=t=>S0(O.isHTMLForm(t)?new FormData(t):t);Me.getAdapter=M0.getAdapter;Me.HttpStatusCode=wf;Me.default=Me;const{Axios:Cz,AxiosError:Dz,CanceledError:Mz,isCancel:Az,CancelToken:Ez,VERSION:Rz,all:Lz,Cancel:Pz,isAxiosError:Iz,spread:Oz,toFormData:kz,AxiosHeaders:Nz,HttpStatusCode:Bz,formToJSON:Fz,getAdapter:zz,mergeConfig:Hz}=Me;var Tf=function(t,e){return Tf=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},Tf(t,e)};function G(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Tf(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var Cf=function(){return Cf=Object.assign||function(e){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},Cf.apply(this,arguments)};function uC(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(t);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(r[n[i]]=t[n[i]]);return r}function cC(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}function fC(t,e){return function(r,n){e(r,n,t)}}function hC(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}function vC(t,e,r,n){function i(a){return a instanceof r?a:new r(function(o){o(a)})}return new(r||(r=Promise))(function(a,o){function s(c){try{u(n.next(c))}catch(f){o(f)}}function l(c){try{u(n.throw(c))}catch(f){o(f)}}function u(c){c.done?a(c.value):i(c.value).then(s,l)}u((n=n.apply(t,e||[])).next())})}function dC(t,e){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(u){return function(c){return l([u,c])}}function l(u){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(a=u[0]&2?i.return:u[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,u[1])).done)return a;switch(i=0,a&&(u=[u[0]&2,a.value]),u[0]){case 0:case 1:a=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,i=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]<a[3])){r.label=u[1];break}if(u[0]===6&&r.label<a[1]){r.label=a[1],a=u;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(u);break}a[2]&&r.ops.pop(),r.trys.pop();continue}u=e.call(t,r)}catch(c){u=[6,c],i=0}finally{n=a=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}var Qh=Object.create?(function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]});function pC(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&Qh(e,t,r)}function Df(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function L0(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),i,a=[],o;try{for(;(e===void 0||e-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return a}function gC(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(L0(arguments[e]));return t}function mC(){for(var t=0,e=0,r=arguments.length;e<r;e++)t+=arguments[e].length;for(var n=Array(t),i=0,e=0;e<r;e++)for(var a=arguments[e],o=0,s=a.length;o<s;o++,i++)n[i]=a[o];return n}function yC(t,e,r){if(r||arguments.length===2)for(var n=0,i=e.length,a;n<i;n++)(a||!(n in e))&&(a||(a=Array.prototype.slice.call(e,0,n)),a[n]=e[n]);return t.concat(a||e)}function Va(t){return this instanceof Va?(this.v=t,this):new Va(t)}function _C(t,e,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(t,e||[]),i,a=[];return i={},o("next"),o("throw"),o("return"),i[Symbol.asyncIterator]=function(){return this},i;function o(v){n[v]&&(i[v]=function(h){return new Promise(function(d,p){a.push([v,h,d,p])>1||s(v,h)})})}function s(v,h){try{l(n[v](h))}catch(d){f(a[0][3],d)}}function l(v){v.value instanceof Va?Promise.resolve(v.value.v).then(u,c):f(a[0][2],v)}function u(v){s("next",v)}function c(v){s("throw",v)}function f(v,h){v(h),a.shift(),a.length&&s(a[0][0],a[0][1])}}function bC(t){var e,r;return e={},n("next"),n("throw",function(i){throw i}),n("return"),e[Symbol.iterator]=function(){return this},e;function n(i,a){e[i]=t[i]?function(o){return(r=!r)?{value:Va(t[i](o)),done:i==="return"}:a?a(o):o}:a}}function SC(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof Df=="function"?Df(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(a){r[a]=t[a]&&function(o){return new Promise(function(s,l){o=t[a](o),i(s,l,o.done,o.value)})}}function i(a,o,s,l){Promise.resolve(l).then(function(u){a({value:u,done:s})},o)}}function xC(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}var wC=Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e};function TC(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Qh(e,t,r);return wC(e,t),e}function CC(t){return t&&t.__esModule?t:{default:t}}function DC(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)}function MC(t,e,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(t,r):i?i.value=r:e.set(t,r),r}const AC=Object.freeze(Object.defineProperty({__proto__:null,get __assign(){return Cf},__asyncDelegator:bC,__asyncGenerator:_C,__asyncValues:SC,__await:Va,__awaiter:vC,__classPrivateFieldGet:DC,__classPrivateFieldSet:MC,__createBinding:Qh,__decorate:cC,__exportStar:pC,__extends:G,__generator:dC,__importDefault:CC,__importStar:TC,__makeTemplateObject:xC,__metadata:hC,__param:fC,__read:L0,__rest:uC,__spread:gC,__spreadArray:yC,__spreadArrays:mC,__values:Df},Symbol.toStringTag,{value:"Module"}));var Jh=12,EC="sans-serif",rn=Jh+"px "+EC,RC=20,LC=100,PC="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function IC(t){var e={};if(typeof JSON>"u")return e;for(var r=0;r<t.length;r++){var n=String.fromCharCode(r+32),i=(t.charCodeAt(r)-RC)/LC;e[n]=i}return e}var OC=IC(PC),Pt={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:(function(){var t,e;return function(r,n){if(!t){var i=Pt.createCanvas();t=i&&i.getContext("2d")}if(t)return e!==n&&(e=t.font=n||rn),t.measureText(r);r=r||"",n=n||rn;var a=/((?:\d+)?\.?\d*)px/.exec(n),o=a&&+a[1]||Jh,s=0;if(n.indexOf("mono")>=0)s=o*r.length;else for(var l=0;l<r.length;l++){var u=OC[r[l]];s+=u==null?o:u*o}return{width:s}}})(),loadImage:function(t,e,r){var n=new Image;return n.onload=e,n.onerror=r,n.src=t,n}};function P0(t){for(var e in Pt)t[e]&&(Pt[e]=t[e])}var I0=cr(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(t,e){return t["[object "+e+"]"]=!0,t},{}),O0=cr(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(t,e){return t["[object "+e+"Array]"]=!0,t},{}),$i=Object.prototype.toString,Zl=Array.prototype,kC=Zl.forEach,NC=Zl.filter,ev=Zl.slice,BC=Zl.map,qd=(function(){}).constructor,ko=qd?qd.prototype:null,tv="__proto__",FC=2311;function rv(){return FC++}function Kl(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];typeof console<"u"&&console.error.apply(console,t)}function oe(t){if(t==null||typeof t!="object")return t;var e=t,r=$i.call(t);if(r==="[object Array]"){if(!Ri(t)){e=[];for(var n=0,i=t.length;n<i;n++)e[n]=oe(t[n])}}else if(O0[r]){if(!Ri(t)){var a=t.constructor;if(a.from)e=a.from(t);else{e=new a(t.length);for(var n=0,i=t.length;n<i;n++)e[n]=t[n]}}}else if(!I0[r]&&!Ri(t)&&!ki(t)){e={};for(var o in t)t.hasOwnProperty(o)&&o!==tv&&(e[o]=oe(t[o]))}return e}function ue(t,e,r){if(!q(e)||!q(t))return r?oe(e):t;for(var n in e)if(e.hasOwnProperty(n)&&n!==tv){var i=t[n],a=e[n];q(a)&&q(i)&&!W(a)&&!W(i)&&!ki(a)&&!ki(i)&&!Mf(a)&&!Mf(i)&&!Ri(a)&&!Ri(i)?ue(i,a,r):(r||!(n in t))&&(t[n]=oe(e[n]))}return t}function zC(t,e){for(var r=t[0],n=1,i=t.length;n<i;n++)r=ue(r,t[n],e);return r}function F(t,e){if(Object.assign)Object.assign(t,e);else for(var r in e)e.hasOwnProperty(r)&&r!==tv&&(t[r]=e[r]);return t}function pe(t,e,r){for(var n=Se(e),i=0,a=n.length;i<a;i++){var o=n[i];(r?e[o]!=null:t[o]==null)&&(t[o]=e[o])}return t}var HC=Pt.createCanvas;function le(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r}return-1}function nv(t,e){var r=t.prototype;function n(){}n.prototype=e.prototype,t.prototype=new n;for(var i in r)r.hasOwnProperty(i)&&(t.prototype[i]=r[i]);t.prototype.constructor=t,t.superClass=e}function It(t,e,r){if(t="prototype"in t?t.prototype:t,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"&&(r?e[a]!=null:t[a]==null)&&(t[a]=e[a])}else pe(t,e,r)}function rt(t){return!t||typeof t=="string"?!1:typeof t.length=="number"}function C(t,e,r){if(t&&e)if(t.forEach&&t.forEach===kC)t.forEach(e,r);else if(t.length===+t.length)for(var n=0,i=t.length;n<i;n++)e.call(r,t[n],n,t);else for(var a in t)t.hasOwnProperty(a)&&e.call(r,t[a],a,t)}function X(t,e,r){if(!t)return[];if(!e)return Ql(t);if(t.map&&t.map===BC)return t.map(e,r);for(var n=[],i=0,a=t.length;i<a;i++)n.push(e.call(r,t[i],i,t));return n}function cr(t,e,r,n){if(t&&e){for(var i=0,a=t.length;i<a;i++)r=e.call(n,r,t[i],i,t);return r}}function Re(t,e,r){if(!t)return[];if(!e)return Ql(t);if(t.filter&&t.filter===NC)return t.filter(e,r);for(var n=[],i=0,a=t.length;i<a;i++)e.call(r,t[i],i,t)&&n.push(t[i]);return n}function k0(t,e,r){if(t&&e){for(var n=0,i=t.length;n<i;n++)if(e.call(r,t[n],n,t))return t[n]}}function Se(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e=[];for(var r in t)t.hasOwnProperty(r)&&e.push(r);return e}function UC(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return function(){return t.apply(e,r.concat(ev.call(arguments)))}}var de=ko&&ie(ko.bind)?ko.call.bind(ko.bind):UC;function we(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return function(){return t.apply(this,e.concat(ev.call(arguments)))}}function W(t){return Array.isArray?Array.isArray(t):$i.call(t)==="[object Array]"}function ie(t){return typeof t=="function"}function Y(t){return typeof t=="string"}function rl(t){return $i.call(t)==="[object String]"}function me(t){return typeof t=="number"}function q(t){var e=typeof t;return e==="function"||!!t&&e==="object"}function Mf(t){return!!I0[$i.call(t)]}function nt(t){return!!O0[$i.call(t)]}function ki(t){return typeof t=="object"&&typeof t.nodeType=="number"&&typeof t.ownerDocument=="object"}function bo(t){return t.colorStops!=null}function N0(t){return t.image!=null}function GC(t){return $i.call(t)==="[object RegExp]"}function Ni(t){return t!==t}function Wa(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r=0,n=t.length;r<n;r++)if(t[r]!=null)return t[r]}function K(t,e){return t??e}function Zr(t,e,r){return t??e??r}function Ql(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return ev.apply(t,e)}function Jl(t){if(typeof t=="number")return[t,t,t,t];var e=t.length;return e===2?[t[0],t[1],t[0],t[1]]:e===3?[t[0],t[1],t[2],t[1]]:t}function fr(t,e){if(!t)throw new Error(e)}function Ut(t){return t==null?null:typeof t.trim=="function"?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var B0="__ec_primitive__";function nl(t){t[B0]=!0}function Ri(t){return t[B0]}var VC=(function(){function t(){this.data={}}return t.prototype.delete=function(e){var r=this.has(e);return r&&delete this.data[e],r},t.prototype.has=function(e){return this.data.hasOwnProperty(e)},t.prototype.get=function(e){return this.data[e]},t.prototype.set=function(e,r){return this.data[e]=r,this},t.prototype.keys=function(){return Se(this.data)},t.prototype.forEach=function(e){var r=this.data;for(var n in r)r.hasOwnProperty(n)&&e(r[n],n)},t})(),F0=typeof Map=="function";function WC(){return F0?new Map:new VC}var z0=(function(){function t(e){var r=W(e);this.data=WC();var n=this;e instanceof t?e.each(i):e&&C(e,i);function i(a,o){r?n.set(a,o):n.set(o,a)}}return t.prototype.hasKey=function(e){return this.data.has(e)},t.prototype.get=function(e){return this.data.get(e)},t.prototype.set=function(e,r){return this.data.set(e,r),r},t.prototype.each=function(e,r){this.data.forEach(function(n,i){e.call(r,n,i)})},t.prototype.keys=function(){var e=this.data.keys();return F0?Array.from(e):e},t.prototype.removeKey=function(e){this.data.delete(e)},t})();function ae(t){return new z0(t)}function H0(t,e){for(var r=new t.constructor(t.length+e.length),n=0;n<t.length;n++)r[n]=t[n];for(var i=t.length,n=0;n<e.length;n++)r[n+i]=e[n];return r}function So(t,e){var r;if(Object.create)r=Object.create(t);else{var n=function(){};n.prototype=t,r=new n}return e&&F(r,e),r}function iv(t){var e=t.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function Lt(t,e){return t.hasOwnProperty(e)}function Je(){}var U0=180/Math.PI,jC=Number.EPSILON||Math.pow(2,-52);const $C=Object.freeze(Object.defineProperty({__proto__:null,EPSILON:jC,HashMap:z0,RADIAN_TO_DEGREE:U0,assert:fr,bind:de,clone:oe,concatArray:H0,createCanvas:HC,createHashMap:ae,createObject:So,curry:we,defaults:pe,disableUserSelect:iv,each:C,eqNaN:Ni,extend:F,filter:Re,find:k0,guid:rv,hasOwn:Lt,indexOf:le,inherits:nv,isArray:W,isArrayLike:rt,isBuiltInObject:Mf,isDom:ki,isFunction:ie,isGradientObject:bo,isImagePatternObject:N0,isNumber:me,isObject:q,isPrimitive:Ri,isRegExp:GC,isString:Y,isStringSafe:rl,isTypedArray:nt,keys:Se,logError:Kl,map:X,merge:ue,mergeAll:zC,mixin:It,noop:Je,normalizeCssArray:Jl,reduce:cr,retrieve:Wa,retrieve2:K,retrieve3:Zr,setAsPrimitive:nl,slice:Ql,trim:Ut},Symbol.toStringTag,{value:"Module"}));var YC=(function(){function t(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return t})(),qC=(function(){function t(){this.browser=new YC,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return t})(),te=new qC;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(te.wxa=!0,te.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?te.worker=!0:!te.hasGlobalWindow||"Deno"in window||typeof navigator<"u"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Node.js")>-1?(te.node=!0,te.svgSupported=!0):XC(navigator.userAgent,te);function XC(t,e){var r=e.browser,n=t.match(/Firefox\/([\d.]+)/),i=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),a=t.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(t);n&&(r.firefox=!0,r.version=n[1]),i&&(r.ie=!0,r.version=i[1]),a&&(r.edge=!0,r.version=a[1],r.newEdge=+a[1].split(".")[0]>18),o&&(r.weChat=!0),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,e.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11);var s=e.domSupported=typeof document<"u";if(s){var l=document.documentElement.style;e.transform3dSupported=(r.ie&&"transition"in l||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in l)&&!("OTransition"in l),e.transformSupported=e.transform3dSupported||r.ie&&+r.version>=9}}var ZC=".",hn="___EC__COMPONENT__CONTAINER___",G0="___EC__EXTENDED_CLASS___";function nr(t){var e={main:"",sub:""};if(t){var r=t.split(ZC);e.main=r[0]||"",e.sub=r[1]||""}return e}function KC(t){fr(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}function QC(t){return!!(t&&t[G0])}function av(t,e){t.$constructor=t,t.extend=function(r){var n=this,i;return JC(n)?i=(function(a){G(o,a);function o(){return a.apply(this,arguments)||this}return o})(n):(i=function(){(r.$constructor||n).apply(this,arguments)},nv(i,this)),F(i.prototype,r),i[G0]=!0,i.extend=this.extend,i.superCall=rD,i.superApply=nD,i.superClass=n,i}}function JC(t){return ie(t)&&/^class\s/.test(Function.prototype.toString.call(t))}function V0(t,e){t.extend=e.extend}var eD=Math.round(Math.random()*10);function tD(t){var e=["__\0is_clz",eD++].join("_");t.prototype[e]=!0,t.isInstance=function(r){return!!(r&&r[e])}}function rD(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return this.superClass.prototype[e].apply(t,r)}function nD(t,e,r){return this.superClass.prototype[e].apply(t,r)}function eu(t){var e={};t.registerClass=function(n){var i=n.type||n.prototype.type;if(i){KC(i),n.prototype.type=i;var a=nr(i);if(!a.sub)e[a.main]=n;else if(a.sub!==hn){var o=r(a);o[a.sub]=n}}return n},t.getClass=function(n,i,a){var o=e[n];if(o&&o[hn]&&(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},t.getClassesByMainType=function(n){var i=nr(n),a=[],o=e[i.main];return o&&o[hn]?C(o,function(s,l){l!==hn&&a.push(s)}):a.push(o),a},t.hasClass=function(n){var i=nr(n);return!!e[i.main]},t.getAllClassMainTypes=function(){var n=[];return C(e,function(i,a){n.push(a)}),n},t.hasSubTypes=function(n){var i=nr(n),a=e[i.main];return a&&a[hn]};function r(n){var i=e[n.main];return(!i||!i[hn])&&(i=e[n.main]={},i[hn]=!0),i}}function ja(t,e){for(var r=0;r<t.length;r++)t[r][1]||(t[r][1]=t[r][0]);return e=e||!1,function(n,i,a){for(var o={},s=0;s<t.length;s++){var l=t[s][1];if(!(i&&le(i,l)>=0||a&&le(a,l)<0)){var u=n.getShallow(l,e);u!=null&&(o[t[s][0]]=u)}}return o}}var iD=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],aD=ja(iD),oD=(function(){function t(){}return t.prototype.getAreaStyle=function(e,r){return aD(this,e,r)},t})(),W0=(function(){function t(e){this.value=e}return t})(),sD=(function(){function t(){this._len=0}return t.prototype.insert=function(e){var r=new W0(e);return this.insertEntry(r),r},t.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},t.prototype.remove=function(e){var r=e.prev,n=e.next;r?r.next=n:this.head=n,n?n.prev=r:this.tail=r,e.next=e.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t})(),Bi=(function(){function t(e){this._list=new sD,this._maxSize=10,this._map={},this._maxSize=e}return t.prototype.put=function(e,r){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=r:s=new W0(r),s.key=e,n.insertEntry(s),i[e]=s}return a},t.prototype.get=function(e){var r=this._map[e],n=this._list;if(r!=null)return r!==n.tail&&(n.remove(r),n.insertEntry(r)),r.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t})(),Af=new Bi(50);function lD(t){if(typeof t=="string"){var e=Af.get(t);return e&&e.image}else return t}function j0(t,e,r,n,i){if(t)if(typeof t=="string"){if(e&&e.__zrImageSrc===t||!r)return e;var a=Af.get(t),o={hostEl:r,cb:n,cbPayload:i};return a?(e=a.image,!tu(e)&&a.pending.push(o)):(e=Pt.loadImage(t,Xd,Xd),e.__zrImageSrc=t,Af.put(t,e.__cachedImgObj={image:e,pending:[o]})),e}else return t;else return e}function Xd(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<t.pending.length;e++){var r=t.pending[e],n=r.cb;n&&n(this,r.cbPayload),r.hostEl.dirty()}t.pending.length=0}function tu(t){return t&&t.width&&t.height}function Gt(){return[1,0,0,1,0,0]}function xo(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function ru(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function Vn(t,e,r){var n=e[0]*r[0]+e[2]*r[1],i=e[1]*r[0]+e[3]*r[1],a=e[0]*r[2]+e[2]*r[3],o=e[1]*r[2]+e[3]*r[3],s=e[0]*r[4]+e[2]*r[5]+e[4],l=e[1]*r[4]+e[3]*r[5]+e[5];return t[0]=n,t[1]=i,t[2]=a,t[3]=o,t[4]=s,t[5]=l,t}function il(t,e,r){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+r[0],t[5]=e[5]+r[1],t}function nu(t,e,r,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],c=Math.sin(r),f=Math.cos(r);return t[0]=i*f+s*c,t[1]=-i*c+s*f,t[2]=a*f+l*c,t[3]=-a*c+f*l,t[4]=f*(o-n[0])+c*(u-n[1])+n[0],t[5]=f*(u-n[1])-c*(o-n[0])+n[1],t}function $0(t,e,r){var n=r[0],i=r[1];return t[0]=e[0]*n,t[1]=e[1]*i,t[2]=e[2]*n,t[3]=e[3]*i,t[4]=e[4]*n,t[5]=e[5]*i,t}function Jn(t,e){var r=e[0],n=e[2],i=e[4],a=e[1],o=e[3],s=e[5],l=r*o-a*n;return l?(l=1/l,t[0]=o*l,t[1]=-a*l,t[2]=-n*l,t[3]=r*l,t[4]=(n*s-o*i)*l,t[5]=(a*i-r*s)*l,t):null}function uD(t){var e=Gt();return ru(e,t),e}const cD=Object.freeze(Object.defineProperty({__proto__:null,clone:uD,copy:ru,create:Gt,identity:xo,invert:Jn,mul:Vn,rotate:nu,scale:$0,translate:il},Symbol.toStringTag,{value:"Module"}));var ne=(function(){function t(e,r){this.x=e||0,this.y=r||0}return t.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(e,r){return this.x=e,this.y=r,this},t.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},t.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},t.prototype.scale=function(e){this.x*=e,this.y*=e},t.prototype.scaleAndAdd=function(e,r){this.x+=e.x*r,this.y+=e.y*r},t.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},t.prototype.dot=function(e){return this.x*e.x+this.y*e.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},t.prototype.distance=function(e){var r=this.x-e.x,n=this.y-e.y;return Math.sqrt(r*r+n*n)},t.prototype.distanceSquare=function(e){var r=this.x-e.x,n=this.y-e.y;return r*r+n*n},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(e){if(e){var r=this.x,n=this.y;return this.x=e[0]*r+e[2]*n+e[4],this.y=e[1]*r+e[3]*n+e[5],this}},t.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},t.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},t.set=function(e,r,n){e.x=r,e.y=n},t.copy=function(e,r){e.x=r.x,e.y=r.y},t.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},t.lenSquare=function(e){return e.x*e.x+e.y*e.y},t.dot=function(e,r){return e.x*r.x+e.y*r.y},t.add=function(e,r,n){e.x=r.x+n.x,e.y=r.y+n.y},t.sub=function(e,r,n){e.x=r.x-n.x,e.y=r.y-n.y},t.scale=function(e,r,n){e.x=r.x*n,e.y=r.y*n},t.scaleAndAdd=function(e,r,n,i){e.x=r.x+n.x*i,e.y=r.y+n.y*i},t.lerp=function(e,r,n,i){var a=1-i;e.x=a*r.x+i*n.x,e.y=a*r.y+i*n.y},t})(),Bn=Math.min,Di=Math.max,Ef=Math.abs,Zd=["x","y"],fD=["width","height"],vn=new ne,dn=new ne,pn=new ne,gn=new ne,vt=Y0(),xa=vt.minTv,Rf=vt.maxTv,Pa=[0,0],re=(function(){function t(e,r,n,i){t.set(this,e,r,n,i)}return t.set=function(e,r,n,i,a){return i<0&&(r=r+i,i=-i),a<0&&(n=n+a,a=-a),e.x=r,e.y=n,e.width=i,e.height=a,e},t.prototype.union=function(e){var r=Bn(e.x,this.x),n=Bn(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Di(e.x+e.width,this.x+this.width)-r:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=Di(e.y+e.height,this.y+this.height)-n:this.height=e.height,this.x=r,this.y=n},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(e){var r=this,n=e.width/r.width,i=e.height/r.height,a=Gt();return il(a,a,[-r.x,-r.y]),$0(a,a,[n,i]),il(a,a,[e.x,e.y]),a},t.prototype.intersect=function(e,r,n){return t.intersect(this,e,r,n)},t.intersect=function(e,r,n,i){n&&ne.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||!r)return!1;e instanceof t||(e=t.set(hD,e.x,e.y,e.width,e.height)),r instanceof t||(r=t.set(vD,r.x,r.y,r.width,r.height));var s=!!n;vt.reset(i,s);var l=vt.touchThreshold,u=e.x+l,c=e.x+e.width-l,f=e.y+l,v=e.y+e.height-l,h=r.x+l,d=r.x+r.width-l,p=r.y+l,g=r.y+r.height-l;if(u>c||f>v||h>d||p>g)return!1;var m=!(c<h||d<u||v<p||g<f);return(s||a)&&(Pa[0]=1/0,Pa[1]=0,Kd(u,c,h,d,0,s,a,o),Kd(f,v,p,g,1,s,a,o),s&&ne.copy(n,m?vt.useDir?vt.dirMinTv:xa:Rf)),m},t.contain=function(e,r,n){return r>=e.x&&r<=e.x+e.width&&n>=e.y&&n<=e.y+e.height},t.prototype.contain=function(e,r){return t.contain(this,e,r)},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){t.copy(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return this.width===0||this.height===0},t.create=function(e){return new t(e.x,e.y,e.width,e.height)},t.copy=function(e,r){return e.x=r.x,e.y=r.y,e.width=r.width,e.height=r.height,e},t.applyTransform=function(e,r,n){if(!n){e!==r&&t.copy(e,r);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=r.x*i+o,e.y=r.y*a+s,e.width=r.width*i,e.height=r.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}vn.x=pn.x=r.x,vn.y=gn.y=r.y,dn.x=gn.x=r.x+r.width,dn.y=pn.y=r.y+r.height,vn.transform(n),gn.transform(n),dn.transform(n),pn.transform(n),e.x=Bn(vn.x,dn.x,pn.x,gn.x),e.y=Bn(vn.y,dn.y,pn.y,gn.y);var l=Di(vn.x,dn.x,pn.x,gn.x),u=Di(vn.y,dn.y,pn.y,gn.y);e.width=l-e.x,e.height=u-e.y},t})(),hD=new re(0,0,0,0),vD=new re(0,0,0,0);function Kd(t,e,r,n,i,a,o,s){var l=Ef(e-r),u=Ef(n-t),c=Bn(l,u),f=Zd[i],v=Zd[1-i],h=fD[i];e<r||n<t?l<u?(a&&(Rf[f]=-l),s&&(o[f]=e,o[h]=0)):(a&&(Rf[f]=u),s&&(o[f]=t,o[h]=0)):(o&&(o[f]=Di(t,r),o[h]=Bn(e,n)-o[f]),a&&(c<Pa[0]||vt.useDir)&&(Pa[0]=Bn(c,Pa[0]),(l<u||!vt.bidirectional)&&(xa[f]=l,xa[v]=0,vt.useDir&&vt.calcDirMTV()),(l>=u||!vt.bidirectional)&&(xa[f]=-u,xa[v]=0,vt.useDir&&vt.calcDirMTV())))}function Y0(){var t=0,e=new ne,r=new ne,n={minTv:new ne,maxTv:new ne,useDir:!1,dirMinTv:new ne,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(a,o){n.touchThreshold=0,a&&a.touchThreshold!=null&&(n.touchThreshold=Di(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),r.copy(n.minTv),t=a.direction,n.bidirectional=a.bidirectional==null||!!a.bidirectional,n.bidirectional||e.set(Math.cos(t),Math.sin(t))))},calcDirMTV:function(){var a=n.minTv,o=n.dirMinTv,s=a.y*a.y+a.x*a.x,l=Math.sin(t),u=Math.cos(t),c=l*a.y+u*a.x;if(i(c)){i(a.x)&&i(a.y)&&o.set(0,0);return}if(r.x=s*u/c,r.y=s*l/c,i(r.x)&&i(r.y)){o.set(0,0);return}(n.bidirectional||e.dot(r)>0)&&r.len()<o.len()&&o.copy(r)}};function i(a){return Ef(a)<1e-10}return n}function ar(t){No||(No=new Bi(100)),t=t||rn;var e=No.get(t);return e||(e={font:t,strWidthCache:new Bi(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:Pt.measureText("国",t).width,asciiCharWidth:Pt.measureText("a",t).width},No.put(t,e)),e}var No;function dD(t){if(!(Nu>=Qd)){t=t||rn;for(var e=[],r=+new Date,n=0;n<=127;n++)e[n]=Pt.measureText(String.fromCharCode(n),t).width;var i=+new Date-r;return i>16?Nu=Qd:i>2&&Nu++,e}}var Nu=0,Qd=5;function q0(t,e){return t.asciiWidthMapTried||(t.asciiWidthMap=dD(t.font),t.asciiWidthMapTried=!0),0<=e&&e<=127?t.asciiWidthMap!=null?t.asciiWidthMap[e]:t.asciiCharWidth:t.stWideCharWidth}function or(t,e){var r=t.strWidthCache,n=r.get(e);return n==null&&(n=Pt.measureText(e,t.font).width,r.put(e,n)),n}function Jd(t,e,r,n){var i=or(ar(e),t),a=iu(e),o=Fi(0,i,r),s=Wn(0,a,n),l=new re(o,s,i,a);return l}function X0(t,e,r,n){var i=((t||"")+"").split(`
|
|
7
|
-
`),a=i.length;if(a===1)return Jd(i[0],e,r,n);for(var o=new re(0,0,0,0),s=0;s<i.length;s++){var l=Jd(i[s],e,r,n);s===0?o.copy(l):o.union(l)}return o}function Fi(t,e,r,n){return r==="right"?n?t+=e:t-=e:r==="center"&&(n?t+=e/2:t-=e/2),t}function Wn(t,e,r,n){return r==="middle"?n?t+=e/2:t-=e/2:r==="bottom"&&(n?t+=e:t-=e),t}function iu(t){return ar(t).stWideCharWidth}function nn(t,e){return typeof t=="string"?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function al(t,e,r){var n=e.position||"inside",i=e.distance!=null?e.distance:5,a=r.height,o=r.width,s=a/2,l=r.x,u=r.y,c="left",f="top";if(n instanceof Array)l+=nn(n[0],r.width),u+=nn(n[1],r.height),c=null,f=null;else switch(n){case"left":l-=i,u+=s,c="right",f="middle";break;case"right":l+=i+o,u+=s,f="middle";break;case"top":l+=o/2,u-=i,c="center",f="bottom";break;case"bottom":l+=o/2,u+=a+i,c="center";break;case"inside":l+=o/2,u+=s,c="center",f="middle";break;case"insideLeft":l+=i,u+=s,f="middle";break;case"insideRight":l+=o-i,u+=s,c="right",f="middle";break;case"insideTop":l+=o/2,u+=i,c="center";break;case"insideBottom":l+=o/2,u+=a-i,c="center",f="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=o-i,u+=i,c="right";break;case"insideBottomLeft":l+=i,u+=a-i,f="bottom";break;case"insideBottomRight":l+=o-i,u+=a-i,c="right",f="bottom";break}return t=t||{},t.x=l,t.y=u,t.align=c,t.verticalAlign=f,t}var Bu=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function pD(t,e,r,n,i){var a={};return Z0(a,t,e,r,n,i),a.text}function Z0(t,e,r,n,i,a){if(!r){t.text="",t.isTruncated=!1;return}var o=(e+"").split(`
|
|
8
|
-
`);a=K0(r,n,i,a);for(var s=!1,l={},u=0,c=o.length;u<c;u++)Q0(l,o[u],a),o[u]=l.textLine,s=s||l.isTruncated;t.text=o.join(`
|
|
9
|
-
`),t.isTruncated=s}function K0(t,e,r,n){n=n||{};var i=F({},n);r=K(r,"..."),i.maxIterations=K(n.maxIterations,2);var a=i.minChar=K(n.minChar,0),o=i.fontMeasureInfo=ar(e),s=o.asciiCharWidth;i.placeholder=K(n.placeholder,"");for(var l=t=Math.max(0,t-1),u=0;u<a&&l>=s;u++)l-=s;var c=or(o,r);return c>l&&(r="",c=0),l=t-c,i.ellipsis=r,i.ellipsisWidth=c,i.contentWidth=l,i.containerWidth=t,i}function Q0(t,e,r){var n=r.containerWidth,i=r.contentWidth,a=r.fontMeasureInfo;if(!n){t.textLine="",t.isTruncated=!1;return}var o=or(a,e);if(o<=n){t.textLine=e,t.isTruncated=!1;return}for(var s=0;;s++){if(o<=i||s>=r.maxIterations){e+=r.ellipsis;break}var l=s===0?gD(e,i,a):o>0?Math.floor(e.length*i/o):0;e=e.substr(0,l),o=or(a,e)}e===""&&(e=r.placeholder),t.textLine=e,t.isTruncated=!0}function gD(t,e,r){for(var n=0,i=0,a=t.length;i<a&&n<e;i++)n+=q0(r,t.charCodeAt(i));return i}function mD(t,e,r,n){var i=ov(t),a=e.overflow,o=e.padding,s=o?o[1]+o[3]:0,l=o?o[0]+o[2]:0,u=e.font,c=a==="truncate",f=iu(u),v=K(e.lineHeight,f),h=e.lineOverflow==="truncate",d=!1,p=e.width;p==null&&r!=null&&(p=r-s);var g=e.height;g==null&&n!=null&&(g=n-l);var m;p!=null&&(a==="break"||a==="breakAll")?m=i?J0(i,e.font,p,a==="breakAll",0).lines:[]:m=i?i.split(`
|
|
10
|
-
`):[];var y=m.length*v;if(g==null&&(g=y),y>g&&h){var _=Math.floor(g/v);d=d||m.length>_,m=m.slice(0,_),y=m.length*v}if(i&&c&&p!=null)for(var b=K0(p,u,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),S={},x=0;x<m.length;x++)Q0(S,m[x],b),m[x]=S.textLine,d=d||S.isTruncated;for(var w=g,T=0,M=ar(u),x=0;x<m.length;x++)T=Math.max(or(M,m[x]),T);p==null&&(p=T);var A=p;return w+=l,A+=s,{lines:m,height:g,outerWidth:A,outerHeight:w,lineHeight:v,calculatedLineHeight:f,contentWidth:T,contentHeight:y,width:p,isTruncated:d}}var yD=(function(){function t(){}return t})(),ep=(function(){function t(e){this.tokens=[],e&&(this.tokens=e)}return t})(),_D=(function(){function t(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return t})();function bD(t,e,r,n,i){var a=new _D,o=ov(t);if(!o)return a;var s=e.padding,l=s?s[1]+s[3]:0,u=s?s[0]+s[2]:0,c=e.width;c==null&&r!=null&&(c=r-l);var f=e.height;f==null&&n!=null&&(f=n-u);for(var v=e.overflow,h=(v==="break"||v==="breakAll")&&c!=null?{width:c,accumWidth:0,breakAll:v==="breakAll"}:null,d=Bu.lastIndex=0,p;(p=Bu.exec(o))!=null;){var g=p.index;g>d&&Fu(a,o.substring(d,g),e,h),Fu(a,p[2],e,h,p[1]),d=Bu.lastIndex}d<o.length&&Fu(a,o.substring(d,o.length),e,h);var m=[],y=0,_=0,b=v==="truncate",S=e.lineOverflow==="truncate",x={};function w(ht,Ye,He){ht.width=Ye,ht.lineHeight=He,y+=He,_=Math.max(_,Ye)}e:for(var T=0;T<a.lines.length;T++){for(var M=a.lines[T],A=0,D=0,P=0;P<M.tokens.length;P++){var E=M.tokens[P],L=E.styleName&&e.rich[E.styleName]||{},k=E.textPadding=L.padding,N=k?k[1]+k[3]:0,$=E.font=L.font||e.font;E.contentHeight=iu($);var B=K(L.height,E.contentHeight);if(E.innerHeight=B,k&&(B+=k[0]+k[2]),E.height=B,E.lineHeight=Zr(L.lineHeight,e.lineHeight,B),E.align=L&&L.align||i,E.verticalAlign=L&&L.verticalAlign||"middle",S&&f!=null&&y+E.lineHeight>f){var U=a.lines.length;P>0?(M.tokens=M.tokens.slice(0,P),w(M,D,A),a.lines=a.lines.slice(0,T+1)):a.lines=a.lines.slice(0,T),a.isTruncated=a.isTruncated||a.lines.length<U;break e}var j=L.width,H=j==null||j==="auto";if(typeof j=="string"&&j.charAt(j.length-1)==="%")E.percentWidth=j,m.push(E),E.contentWidth=or(ar($),E.text);else{if(H){var z=L.backgroundColor,J=z&&z.image;J&&(J=lD(J),tu(J)&&(E.width=Math.max(E.width,J.width*B/J.height)))}var ce=b&&c!=null?c-D:null;ce!=null&&ce<E.width?!H||ce<N?(E.text="",E.width=E.contentWidth=0):(Z0(x,E.text,ce-N,$,e.ellipsis,{minChar:e.truncateMinChar}),E.text=x.text,a.isTruncated=a.isTruncated||x.isTruncated,E.width=E.contentWidth=or(ar($),E.text)):E.contentWidth=or(ar($),E.text)}E.width+=N,D+=E.width,L&&(A=Math.max(A,E.lineHeight))}w(M,D,A)}a.outerWidth=a.width=K(c,_),a.outerHeight=a.height=K(f,y),a.contentHeight=y,a.contentWidth=_,a.outerWidth+=l,a.outerHeight+=u;for(var T=0;T<m.length;T++){var E=m[T],Pe=E.percentWidth;E.width=parseInt(Pe,10)/100*a.width}return a}function Fu(t,e,r,n,i){var a=e==="",o=i&&r.rich[i]||{},s=t.lines,l=o.font||r.font,u=!1,c,f;if(n){var v=o.padding,h=v?v[1]+v[3]:0;if(o.width!=null&&o.width!=="auto"){var d=nn(o.width,n.width)+h;s.length>0&&d+n.accumWidth>n.width&&(c=e.split(`
|
|
11
|
-
`),u=!0),n.accumWidth=d}else{var p=J0(e,l,n.width,n.breakAll,n.accumWidth);n.accumWidth=p.accumWidth+h,f=p.linesWidths,c=p.lines}}c||(c=e.split(`
|
|
12
|
-
`));for(var g=ar(l),m=0;m<c.length;m++){var y=c[m],_=new yD;if(_.styleName=i,_.text=y,_.isLineHolder=!y&&!a,typeof o.width=="number"?_.width=o.width:_.width=f?f[m]:or(g,y),!m&&!u){var b=(s[s.length-1]||(s[0]=new ep)).tokens,S=b.length;S===1&&b[0].isLineHolder?b[0]=_:(y||!S||a)&&b.push(_)}else s.push(new ep([_]))}}function SD(t){var e=t.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var xD=cr(",&?/;] ".split(""),function(t,e){return t[e]=!0,t},{});function wD(t){return SD(t)?!!xD[t]:!0}function J0(t,e,r,n,i){for(var a=[],o=[],s="",l="",u=0,c=0,f=ar(e),v=0;v<t.length;v++){var h=t.charAt(v);if(h===`
|
|
13
|
-
`){l&&(s+=l,c+=u),a.push(s),o.push(c),s="",l="",u=0,c=0;continue}var d=q0(f,h.charCodeAt(0)),p=n?!1:!wD(h);if(a.length?c+d>r:i+c+d>r){c?(s||l)&&(p?(s||(s=l,l="",u=0,c=u),a.push(s),o.push(c-u),l+=h,u+=d,s="",c=u):(l&&(s+=l,l="",u=0),a.push(s),o.push(c),s=h,c=d)):p?(a.push(l),o.push(u),l=h,u=d):(a.push(h),o.push(d));continue}c+=d,p?(l+=h,u+=d):(l&&(s+=l,l="",u=0),s+=h)}return l&&(s+=l),s&&(a.push(s),o.push(c)),a.length===1&&(c+=i),{accumWidth:c,lines:a,linesWidths:o}}function tp(t,e,r,n,i,a){if(t.baseX=r,t.baseY=n,t.outerWidth=t.outerHeight=null,!!e){var o=e.width*2,s=e.height*2;re.set(rp,Fi(r,o,i),Wn(n,s,a),o,s),re.intersect(e,rp,null,np);var l=np.outIntersectRect;t.outerWidth=l.width,t.outerHeight=l.height,t.baseX=Fi(l.x,l.width,i,!0),t.baseY=Wn(l.y,l.height,a,!0)}}var rp=new re(0,0,0,0),np={outIntersectRect:{},clamp:!0};function ov(t){return t!=null?t+="":t=""}function TD(t){var e=ov(t.text),r=t.font,n=or(ar(r),e),i=iu(r);return Lf(t,n,i,null)}function Lf(t,e,r,n){var i=new re(Fi(t.x||0,e,t.textAlign),Wn(t.y||0,r,t.textBaseline),e,r),a=n??(e_(t)?t.lineWidth:0);return a>0&&(i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a),i}function e_(t){var e=t.stroke;return e!=null&&e!=="none"&&t.lineWidth>0}function ei(t,e){return t==null&&(t=0),e==null&&(e=0),[t,e]}function CD(t,e){return t[0]=e[0],t[1]=e[1],t}function t_(t){return[t[0],t[1]]}function DD(t,e,r){return t[0]=e,t[1]=r,t}function Pf(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t}function MD(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t}function r_(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t}function sv(t){return Math.sqrt(lv(t))}var AD=sv;function lv(t){return t[0]*t[0]+t[1]*t[1]}var ED=lv;function RD(t,e,r){return t[0]=e[0]*r[0],t[1]=e[1]*r[1],t}function LD(t,e,r){return t[0]=e[0]/r[0],t[1]=e[1]/r[1],t}function PD(t,e){return t[0]*e[0]+t[1]*e[1]}function ks(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t}function n_(t,e){var r=sv(e);return r===0?(t[0]=0,t[1]=0):(t[0]=e[0]/r,t[1]=e[1]/r),t}function ol(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var sl=ol;function i_(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var jn=i_;function ID(t,e){return t[0]=-e[0],t[1]=-e[1],t}function Ns(t,e,r,n){return t[0]=e[0]+n*(r[0]-e[0]),t[1]=e[1]+n*(r[1]-e[1]),t}function et(t,e,r){var n=e[0],i=e[1];return t[0]=r[0]*n+r[2]*i+r[4],t[1]=r[1]*n+r[3]*i+r[5],t}function Vr(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t}function Wr(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t}const OD=Object.freeze(Object.defineProperty({__proto__:null,add:Pf,applyTransform:et,clone:t_,copy:CD,create:ei,dist:sl,distSquare:jn,distance:ol,distanceSquare:i_,div:LD,dot:PD,len:sv,lenSquare:lv,length:AD,lengthSquare:ED,lerp:Ns,max:Wr,min:Vr,mul:RD,negate:ID,normalize:n_,scale:ks,scaleAndAdd:MD,set:DD,sub:r_},Symbol.toStringTag,{value:"Module"}));var ip=xo,ap=5e-5;function mn(t){return t>ap||t<-ap}var yn=[],ai=[],zu=Gt(),Hu=Math.abs,uv=(function(){function t(){}return t.prototype.getLocalTransform=function(e){return t.getLocalTransform(this,e)},t.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},t.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},t.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},t.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},t.prototype.needLocalTransform=function(){return mn(this.rotation)||mn(this.x)||mn(this.y)||mn(this.scaleX-1)||mn(this.scaleY-1)||mn(this.skewX)||mn(this.skewY)},t.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,r=this.needLocalTransform(),n=this.transform;if(!(r||e)){n&&(ip(n),this.invTransform=null);return}n=n||Gt(),r?this.getLocalTransform(n):ip(n),e&&(r?Vn(n,e,n):ru(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n)},t.prototype._resolveGlobalScaleRatio=function(e){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(yn);var n=yn[0]<0?-1:1,i=yn[1]<0?-1:1,a=((yn[0]-n)*r+n)/yn[0]||0,o=((yn[1]-i)*r+i)/yn[1]||0;e[0]*=a,e[1]*=a,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||Gt(),Jn(this.invTransform,e)},t.prototype.getComputedTransform=function(){for(var e=this,r=[];e;)r.push(e),e=e.parent;for(;e=r.pop();)e.updateTransform();return this.transform},t.prototype.setLocalTransform=function(e){if(e){var r=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),r=Math.sqrt(r),this.skewX=a,this.skewY=0,this.rotation=-i,this.x=+e[4],this.y=+e[5],this.scaleX=r,this.scaleY=n,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,r=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||Gt(),Vn(ai,e.invTransform,r),r=ai);var n=this.originX,i=this.originY;(n||i)&&(zu[4]=n,zu[5]=i,Vn(ai,r,zu),ai[4]-=n,ai[5]-=i,r=ai),this.setLocalTransform(r)}},t.prototype.getGlobalScale=function(e){var r=this.transform;return e=e||[],r?(e[0]=Math.sqrt(r[0]*r[0]+r[1]*r[1]),e[1]=Math.sqrt(r[2]*r[2]+r[3]*r[3]),r[0]<0&&(e[0]=-e[0]),r[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},t.prototype.transformCoordToLocal=function(e,r){var n=[e,r],i=this.invTransform;return i&&et(n,n,i),n},t.prototype.transformCoordToGlobal=function(e,r){var n=[e,r],i=this.transform;return i&&et(n,n,i),n},t.prototype.getLineScale=function(){var e=this.transform;return e&&Hu(e[0]-1)>1e-10&&Hu(e[3]-1)>1e-10?Math.sqrt(Hu(e[0]*e[3]-e[2]*e[1])):1},t.prototype.copyTransform=function(e){If(this,e)},t.getLocalTransform=function(e,r){r=r||[];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,c=e.x,f=e.y,v=e.skewX?Math.tan(e.skewX):0,h=e.skewY?Math.tan(-e.skewY):0;if(n||i||s||l){var d=n+s,p=i+l;r[4]=-d*a-v*p*o,r[5]=-p*o-h*d*a}else r[4]=r[5]=0;return r[0]=a,r[3]=o,r[1]=h*a,r[2]=v*o,u&&nu(r,r,u),r[4]+=n+c,r[5]+=i+f,r},t.initDefaultProps=(function(){var e=t.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0})(),t})(),$a=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function If(t,e){for(var r=0;r<$a.length;r++){var n=$a[r];t[n]=e[n]}}var Ia={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return .5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return t===0?0:Math.pow(1024,t-1)},exponentialOut:function(t){return t===1?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return t===0?0:t===1?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(-Math.pow(2,-10*(t-1))+2)},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,r=.1,n=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=n/4):e=n*Math.asin(1/r)/(2*Math.PI),-(r*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)))},elasticOut:function(t){var e,r=.1,n=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=n/4):e=n*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/n)+1)},elasticInOut:function(t){var e,r=.1,n=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=n/4):e=n*Math.asin(1/r)/(2*Math.PI),(t*=2)<1?-.5*(r*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)):r*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?.5*(t*t*((e+1)*t-e)):.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-Ia.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?Ia.bounceIn(t*2)*.5:Ia.bounceOut(t*2-1)*.5+.5}},Bo=Math.pow,Kr=Math.sqrt,ll=1e-8,a_=1e-4,op=Kr(3),Fo=1/3,er=ei(),Dt=ei(),Li=ei();function jr(t){return t>-ll&&t<ll}function o_(t){return t>ll||t<-ll}function Ke(t,e,r,n,i){var a=1-i;return a*a*(a*t+3*i*e)+i*i*(i*n+3*a*r)}function sp(t,e,r,n,i){var a=1-i;return 3*(((e-t)*a+2*(r-e)*i)*a+(n-r)*i*i)}function s_(t,e,r,n,i,a){var o=n+3*(e-r)-t,s=3*(r-e*2+t),l=3*(e-t),u=t-i,c=s*s-3*o*l,f=s*l-9*o*u,v=l*l-3*s*u,h=0;if(jr(c)&&jr(f))if(jr(s))a[0]=0;else{var d=-l/s;d>=0&&d<=1&&(a[h++]=d)}else{var p=f*f-4*c*v;if(jr(p)){var g=f/c,d=-s/o+g,m=-g/2;d>=0&&d<=1&&(a[h++]=d),m>=0&&m<=1&&(a[h++]=m)}else if(p>0){var y=Kr(p),_=c*s+1.5*o*(-f+y),b=c*s+1.5*o*(-f-y);_<0?_=-Bo(-_,Fo):_=Bo(_,Fo),b<0?b=-Bo(-b,Fo):b=Bo(b,Fo);var d=(-s-(_+b))/(3*o);d>=0&&d<=1&&(a[h++]=d)}else{var S=(2*c*s-3*o*f)/(2*Kr(c*c*c)),x=Math.acos(S)/3,w=Kr(c),T=Math.cos(x),d=(-s-2*w*T)/(3*o),m=(-s+w*(T+op*Math.sin(x)))/(3*o),M=(-s+w*(T-op*Math.sin(x)))/(3*o);d>=0&&d<=1&&(a[h++]=d),m>=0&&m<=1&&(a[h++]=m),M>=0&&M<=1&&(a[h++]=M)}}return h}function l_(t,e,r,n,i){var a=6*r-12*e+6*t,o=9*e+3*n-3*t-9*r,s=3*e-3*t,l=0;if(jr(o)){if(o_(a)){var u=-s/a;u>=0&&u<=1&&(i[l++]=u)}}else{var c=a*a-4*o*s;if(jr(c))i[0]=-a/(2*o);else if(c>0){var f=Kr(c),u=(-a+f)/(2*o),v=(-a-f)/(2*o);u>=0&&u<=1&&(i[l++]=u),v>=0&&v<=1&&(i[l++]=v)}}return l}function ul(t,e,r,n,i,a){var o=(e-t)*i+t,s=(r-e)*i+e,l=(n-r)*i+r,u=(s-o)*i+o,c=(l-s)*i+s,f=(c-u)*i+u;a[0]=t,a[1]=o,a[2]=u,a[3]=f,a[4]=f,a[5]=c,a[6]=l,a[7]=n}function kD(t,e,r,n,i,a,o,s,l,u,c){var f,v=.005,h=1/0,d,p,g,m;er[0]=l,er[1]=u;for(var y=0;y<1;y+=.05)Dt[0]=Ke(t,r,i,o,y),Dt[1]=Ke(e,n,a,s,y),g=jn(er,Dt),g<h&&(f=y,h=g);h=1/0;for(var _=0;_<32&&!(v<a_);_++)d=f-v,p=f+v,Dt[0]=Ke(t,r,i,o,d),Dt[1]=Ke(e,n,a,s,d),g=jn(Dt,er),d>=0&&g<h?(f=d,h=g):(Li[0]=Ke(t,r,i,o,p),Li[1]=Ke(e,n,a,s,p),m=jn(Li,er),p<=1&&m<h?(f=p,h=m):v*=.5);return Kr(h)}function ND(t,e,r,n,i,a,o,s,l){for(var u=t,c=e,f=0,v=1/l,h=1;h<=l;h++){var d=h*v,p=Ke(t,r,i,o,d),g=Ke(e,n,a,s,d),m=p-u,y=g-c;f+=Math.sqrt(m*m+y*y),u=p,c=g}return f}function at(t,e,r,n){var i=1-n;return i*(i*t+2*n*e)+n*n*r}function lp(t,e,r,n){return 2*((1-n)*(e-t)+n*(r-e))}function BD(t,e,r,n,i){var a=t-2*e+r,o=2*(e-t),s=t-n,l=0;if(jr(a)){if(o_(o)){var u=-s/o;u>=0&&u<=1&&(i[l++]=u)}}else{var c=o*o-4*a*s;if(jr(c)){var u=-o/(2*a);u>=0&&u<=1&&(i[l++]=u)}else if(c>0){var f=Kr(c),u=(-o+f)/(2*a),v=(-o-f)/(2*a);u>=0&&u<=1&&(i[l++]=u),v>=0&&v<=1&&(i[l++]=v)}}return l}function u_(t,e,r){var n=t+r-2*e;return n===0?.5:(t-e)/n}function cl(t,e,r,n,i){var a=(e-t)*n+t,o=(r-e)*n+e,s=(o-a)*n+a;i[0]=t,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=r}function FD(t,e,r,n,i,a,o,s,l){var u,c=.005,f=1/0;er[0]=o,er[1]=s;for(var v=0;v<1;v+=.05){Dt[0]=at(t,r,i,v),Dt[1]=at(e,n,a,v);var h=jn(er,Dt);h<f&&(u=v,f=h)}f=1/0;for(var d=0;d<32&&!(c<a_);d++){var p=u-c,g=u+c;Dt[0]=at(t,r,i,p),Dt[1]=at(e,n,a,p);var h=jn(Dt,er);if(p>=0&&h<f)u=p,f=h;else{Li[0]=at(t,r,i,g),Li[1]=at(e,n,a,g);var m=jn(Li,er);g<=1&&m<f?(u=g,f=m):c*=.5}}return Kr(f)}function zD(t,e,r,n,i,a,o){for(var s=t,l=e,u=0,c=1/o,f=1;f<=o;f++){var v=f*c,h=at(t,r,i,v),d=at(e,n,a,v),p=h-s,g=d-l;u+=Math.sqrt(p*p+g*g),s=h,l=d}return u}var HD=/cubic-bezier\(([0-9,\.e ]+)\)/;function c_(t){var e=t&&HD.exec(t);if(e){var r=e[1].split(","),n=+Ut(r[0]),i=+Ut(r[1]),a=+Ut(r[2]),o=+Ut(r[3]);if(isNaN(n+i+a+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:s_(0,n,a,1,l,s)&&Ke(0,i,o,1,s[0])}}}var UD=(function(){function t(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||Je,this.ondestroy=e.ondestroy||Je,this.onrestart=e.onrestart||Je,e.easing&&this.setEasing(e.easing)}return t.prototype.step=function(e,r){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=r;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},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(e){this.easing=e,this.easingFunc=ie(e)?e:Ia[e]||c_(e)},t})(),up={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function Vt(t){return t=Math.round(t),t<0?0:t>255?255:t}function GD(t){return t=Math.round(t),t<0?0:t>360?360:t}function Ya(t){return t<0?0:t>1?1:t}function Bs(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?Vt(parseFloat(e)/100*255):Vt(parseInt(e,10))}function Qr(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?Ya(parseFloat(e)/100):Ya(parseFloat(e))}function Uu(t,e,r){return r<0?r+=1:r>1&&(r-=1),r*6<1?t+(e-t)*r*6:r*2<1?e:r*3<2?t+(e-t)*(2/3-r)*6:t}function $r(t,e,r){return t+(e-t)*r}function xt(t,e,r,n,i){return t[0]=e,t[1]=r,t[2]=n,t[3]=i,t}function Of(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var f_=new Bi(20),zo=null;function oi(t,e){zo&&Of(zo,e),zo=f_.put(t,zo||e.slice())}function gt(t,e){if(t){e=e||[];var r=f_.get(t);if(r)return Of(e,r);t=t+"";var n=t.replace(/ /g,"").toLowerCase();if(n in up)return Of(e,up[n]),oi(t,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)){xt(e,0,0,0,1);return}return xt(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),oi(t,e),e}else if(i===7||i===9){var a=parseInt(n.slice(1,7),16);if(!(a>=0&&a<=16777215)){xt(e,0,0,0,1);return}return xt(e,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(n.slice(7),16)/255:1),oi(t,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(","),c=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?xt(e,+u[0],+u[1],+u[2],1):xt(e,0,0,0,1);c=Qr(u.pop());case"rgb":if(u.length>=3)return xt(e,Bs(u[0]),Bs(u[1]),Bs(u[2]),u.length===3?c:Qr(u[3])),oi(t,e),e;xt(e,0,0,0,1);return;case"hsla":if(u.length!==4){xt(e,0,0,0,1);return}return u[3]=Qr(u[3]),kf(u,e),oi(t,e),e;case"hsl":if(u.length!==3){xt(e,0,0,0,1);return}return kf(u,e),oi(t,e),e;default:return}}xt(e,0,0,0,1)}}function kf(t,e){var r=(parseFloat(t[0])%360+360)%360/360,n=Qr(t[1]),i=Qr(t[2]),a=i<=.5?i*(n+1):i+n-i*n,o=i*2-a;return e=e||[],xt(e,Vt(Uu(o,a,r+1/3)*255),Vt(Uu(o,a,r)*255),Vt(Uu(o,a,r-1/3)*255),1),t.length===4&&(e[3]=t[3]),e}function VD(t){if(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.min(e,r,n),a=Math.max(e,r,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 c=((a-e)/6+o/2)/o,f=((a-r)/6+o/2)/o,v=((a-n)/6+o/2)/o;e===a?l=v-f:r===a?l=1/3+c-v:n===a&&(l=2/3+f-c),l<0&&(l+=1),l>1&&(l-=1)}var h=[l*360,u,s];return t[3]!=null&&h.push(t[3]),h}}function Nf(t,e){var r=gt(t);if(r){for(var n=0;n<3;n++)e<0?r[n]=r[n]*(1-e)|0:r[n]=(255-r[n])*e+r[n]|0,r[n]>255?r[n]=255:r[n]<0&&(r[n]=0);return un(r,r.length===4?"rgba":"rgb")}}function WD(t){var e=gt(t);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)}function h_(t,e,r){if(!(!(e&&e.length)||!(t>=0&&t<=1))){r=r||[];var n=t*(e.length-1),i=Math.floor(n),a=Math.ceil(n),o=e[i],s=e[a],l=n-i;return r[0]=Vt($r(o[0],s[0],l)),r[1]=Vt($r(o[1],s[1],l)),r[2]=Vt($r(o[2],s[2],l)),r[3]=Ya($r(o[3],s[3],l)),r}}var jD=h_;function v_(t,e,r){if(!(!(e&&e.length)||!(t>=0&&t<=1))){var n=t*(e.length-1),i=Math.floor(n),a=Math.ceil(n),o=gt(e[i]),s=gt(e[a]),l=n-i,u=un([Vt($r(o[0],s[0],l)),Vt($r(o[1],s[1],l)),Vt($r(o[2],s[2],l)),Ya($r(o[3],s[3],l))],"rgba");return r?{color:u,leftIndex:i,rightIndex:a,value:n}:u}}var $D=v_;function fl(t,e,r,n){var i=gt(t);if(t)return i=VD(i),e!=null&&(i[0]=GD(ie(e)?e(i[0]):e)),r!=null&&(i[1]=Qr(ie(r)?r(i[1]):r)),n!=null&&(i[2]=Qr(ie(n)?n(i[2]):n)),un(kf(i),"rgba")}function YD(t,e){var r=gt(t);if(r&&e!=null)return r[3]=Ya(e),un(r,"rgba")}function un(t,e){if(!(!t||!t.length)){var r=t[0]+","+t[1]+","+t[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(r+=","+t[3]),e+"("+r+")"}}function qa(t,e){var r=gt(t);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*e:0}function qD(){return un([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],"rgb")}var cp=new Bi(100);function Bf(t){if(Y(t)){var e=cp.get(t);return e||(e=Nf(t,-.1),cp.put(t,e)),e}else if(bo(t)){var r=F({},t);return r.colorStops=X(t.colorStops,function(n){return{offset:n.offset,color:Nf(n.color,-.1)}}),r}return t}const XD=Object.freeze(Object.defineProperty({__proto__:null,fastLerp:h_,fastMapToColor:jD,lerp:v_,lift:Nf,liftColor:Bf,lum:qa,mapToColor:$D,modifyAlpha:YD,modifyHSL:fl,parse:gt,parseCssFloat:Qr,parseCssInt:Bs,random:qD,stringify:un,toHex:WD},Symbol.toStringTag,{value:"Module"}));function ZD(t){return t.type==="linear"}function KD(t){return t.type==="radial"}(function(){return te.hasGlobalWindow&&ie(window.btoa)?function(t){return window.btoa(unescape(encodeURIComponent(t)))}:typeof Buffer<"u"?function(t){return Buffer.from(t).toString("base64")}:function(t){return null}})();var Ff=Array.prototype.slice;function wr(t,e,r){return(e-t)*r+t}function Gu(t,e,r,n){for(var i=e.length,a=0;a<i;a++)t[a]=wr(e[a],r[a],n);return t}function QD(t,e,r,n){for(var i=e.length,a=i&&e[0].length,o=0;o<i;o++){t[o]||(t[o]=[]);for(var s=0;s<a;s++)t[o][s]=wr(e[o][s],r[o][s],n)}return t}function Ho(t,e,r,n){for(var i=e.length,a=0;a<i;a++)t[a]=e[a]+r[a]*n;return t}function fp(t,e,r,n){for(var i=e.length,a=i&&e[0].length,o=0;o<i;o++){t[o]||(t[o]=[]);for(var s=0;s<a;s++)t[o][s]=e[o][s]+r[o][s]*n}return t}function JD(t,e){for(var r=t.length,n=e.length,i=r>n?e:t,a=Math.min(r,n),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(r,n);s++)i.push({offset:o.offset,color:o.color.slice()})}function eM(t,e,r){var n=t,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(r===1?i[l]:Ff.call(i[l]))}for(var u=n[0]&&n[0].length,l=0;l<n.length;l++)if(r===1)isNaN(n[l])&&(n[l]=i[l]);else for(var c=0;c<u;c++)isNaN(n[l][c])&&(n[l][c]=i[l][c])}}function Fs(t){if(rt(t)){var e=t.length;if(rt(t[0])){for(var r=[],n=0;n<e;n++)r.push(Ff.call(t[n]));return r}return Ff.call(t)}return t}function zs(t){return t[0]=Math.floor(t[0])||0,t[1]=Math.floor(t[1])||0,t[2]=Math.floor(t[2])||0,t[3]=t[3]==null?1:t[3],"rgba("+t.join(",")+")"}function tM(t){return rt(t&&t[0])?2:1}var Uo=0,Hs=1,d_=2,wa=3,zf=4,Hf=5,hp=6;function vp(t){return t===zf||t===Hf}function Go(t){return t===Hs||t===d_}var Ki=[0,0,0,0],rM=(function(){function t(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return t.prototype.isFinished=function(){return this._finished},t.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},t.prototype.needsAnimate=function(){return this.keyframes.length>=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(e,r,n){this._needsSort=!0;var i=this.keyframes,a=i.length,o=!1,s=hp,l=r;if(rt(r)){var u=tM(r);s=u,(u===1&&!me(r[0])||u===2&&!me(r[0][0]))&&(o=!0)}else if(me(r)&&!Ni(r))s=Uo;else if(Y(r))if(!isNaN(+r))s=Uo;else{var c=gt(r);c&&(l=c,s=wa)}else if(bo(r)){var f=F({},l);f.colorStops=X(r.colorStops,function(h){return{offset:h.offset,color:gt(h.color)}}),ZD(r)?s=zf:KD(r)&&(s=Hf),l=f}a===0?this.valType=s:(s!==this.valType||s===hp)&&(o=!0),this.discrete=this.discrete||o;var v={time:e,value:l,rawValue:r,percent:0};return n&&(v.easing=n,v.easingFunc=ie(n)?n:Ia[n]||c_(n)),i.push(v),v},t.prototype.prepare=function(e,r){var n=this.keyframes;this._needsSort&&n.sort(function(p,g){return p.time-g.time});for(var i=this.valType,a=n.length,o=n[a-1],s=this.discrete,l=Go(i),u=vp(i),c=0;c<a;c++){var f=n[c],v=f.value,h=o.value;f.percent=f.time/e,s||(l&&c!==a-1?eM(v,h,i):u&&JD(v.colorStops,h.colorStops))}if(!s&&i!==Hf&&r&&this.needsAnimate()&&r.needsAnimate()&&i===r.valType&&!r._finished){this._additiveTrack=r;for(var d=n[0].value,c=0;c<a;c++)i===Uo?n[c].additiveValue=n[c].value-d:i===wa?n[c].additiveValue=Ho([],n[c].value,d,-1):Go(i)&&(n[c].additiveValue=i===Hs?Ho([],n[c].value,d,-1):fp([],n[c].value,d,-1))}},t.prototype.step=function(e,r){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===wa,c,f=this._lastFr,v=Math.min,h,d;if(s===1)h=d=o[0];else{if(r<0)c=0;else if(r<this._lastFrP){var p=v(f+1,s-1);for(c=p;c>=0&&!(o[c].percent<=r);c--);c=v(c,s-2)}else{for(c=f;c<s&&!(o[c].percent>r);c++);c=v(c-1,s-2)}d=o[c+1],h=o[c]}if(h&&d){this._lastFr=c,this._lastFrP=r;var g=d.percent-h.percent,m=g===0?1:v((r-h.percent)/g,1);d.easingFunc&&(m=d.easingFunc(m));var y=n?this._additiveValue:u?Ki:e[l];if((Go(a)||u)&&!y&&(y=this._additiveValue=[]),this.discrete)e[l]=m<1?h.rawValue:d.rawValue;else if(Go(a))a===Hs?Gu(y,h[i],d[i],m):QD(y,h[i],d[i],m);else if(vp(a)){var _=h[i],b=d[i],S=a===zf;e[l]={type:S?"linear":"radial",x:wr(_.x,b.x,m),y:wr(_.y,b.y,m),colorStops:X(_.colorStops,function(w,T){var M=b.colorStops[T];return{offset:wr(w.offset,M.offset,m),color:zs(Gu([],w.color,M.color,m))}}),global:b.global},S?(e[l].x2=wr(_.x2,b.x2,m),e[l].y2=wr(_.y2,b.y2,m)):e[l].r=wr(_.r,b.r,m)}else if(u)Gu(y,h[i],d[i],m),n||(e[l]=zs(y));else{var x=wr(h[i],d[i],m);n?this._additiveValue=x:e[l]=x}n&&this._addToTarget(e)}}},t.prototype._addToTarget=function(e){var r=this.valType,n=this.propName,i=this._additiveValue;r===Uo?e[n]=e[n]+i:r===wa?(gt(e[n],Ki),Ho(Ki,Ki,i,1),e[n]=zs(Ki)):r===Hs?Ho(e[n],e[n],i,1):r===d_&&fp(e[n],e[n],i,1)},t})(),cv=(function(){function t(e,r,n,i){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=r,r&&i){Kl("Can' use additive animation on looped animation.");return}this._additiveAnimators=i,this._allowDiscrete=n}return t.prototype.getMaxTime=function(){return this._maxTime},t.prototype.getDelay=function(){return this._delay},t.prototype.getLoop=function(){return this._loop},t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(e){this._target=e},t.prototype.when=function(e,r,n){return this.whenWithKeys(e,r,Se(r),n)},t.prototype.whenWithKeys=function(e,r,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 rM(s);var u=void 0,c=this._getAdditiveTrack(s);if(c){var f=c.keyframes,v=f[f.length-1];u=v&&v.value,c.valType===wa&&u&&(u=zs(u))}else u=this._target[s];if(u==null)continue;e>0&&l.addKeyframe(0,Fs(u),i),this._trackKeys.push(s)}l.addKeyframe(e,Fs(r[s]),i)}return this._maxTime=Math.max(this._maxTime,e),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var r=e.length,n=0;n<r;n++)e[n].call(this)},t.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,r=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,r)for(var n=0;n<r.length;n++)r[n].call(this)},t.prototype._setTracksFinished=function(){for(var e=this._tracks,r=this._trackKeys,n=0;n<r.length;n++)e[r[n]].setFinished()},t.prototype._getAdditiveTrack=function(e){var r,n=this._additiveAnimators;if(n)for(var i=0;i<n.length;i++){var a=n[i].getTrack(e);a&&(r=a)}return r},t.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var r=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,c=u.length;if(s.prepare(i,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var f=u[c-1];f&&(r._target[s.propName]=f.rawValue),s.setFinished()}else n.push(s)}if(n.length||this._force){var v=new UD({life:i,loop:this._loop,delay:this._delay||0,onframe:function(h){r._started=2;var d=r._additiveAnimators;if(d){for(var p=!1,g=0;g<d.length;g++)if(d[g]._clip){p=!0;break}p||(r._additiveAnimators=null)}for(var g=0;g<n.length;g++)n[g].step(r._target,h);var m=r._onframeCbs;if(m)for(var g=0;g<m.length;g++)m[g](r._target,h)},ondestroy:function(){r._doneCallback()}});this._clip=v,this.animation&&this.animation.addClip(v),e&&v.setEasing(e)}else this._doneCallback();return this}},t.prototype.stop=function(e){if(this._clip){var r=this._clip;e&&r.onframe(1),this._abortedCallback()}},t.prototype.delay=function(e){return this._delay=e,this},t.prototype.during=function(e){return e&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(e)),this},t.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},t.prototype.aborted=function(e){return e&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(e)),this},t.prototype.getClip=function(){return this._clip},t.prototype.getTrack=function(e){return this._tracks[e]},t.prototype.getTracks=function(){var e=this;return X(this._trackKeys,function(r){return e._tracks[r]})},t.prototype.stopTracks=function(e,r){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()&&(r?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},t.prototype.saveTo=function(e,r,n){if(e){r=r||this._trackKeys;for(var i=0;i<r.length;i++){var a=r[i],o=this._tracks[a];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[n?0:s.length-1];l&&(e[a]=Fs(l.rawValue))}}}},t.prototype.__changeFinalValue=function(e,r){r=r||Se(e);for(var n=0;n<r.length;n++){var i=r[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())}}}},t})(),dr=(function(){function t(e){e&&(this._$eventProcessor=e)}return t.prototype.on=function(e,r,n,i){this._$handlers||(this._$handlers={});var a=this._$handlers;if(typeof r=="function"&&(i=n,n=r,r=null),!n||!e)return this;var o=this._$eventProcessor;r!=null&&o&&o.normalizeQuery&&(r=o.normalizeQuery(r)),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:r,ctx:i||this,callAtLast:n.zrEventfulCallAtLast},u=a[e].length-1,c=a[e][u];return c&&c.callAtLast?a[e].splice(u,0,l):a[e].push(l),this},t.prototype.isSilent=function(e){var r=this._$handlers;return!r||!r[e]||!r[e].length},t.prototype.off=function(e,r){var n=this._$handlers;if(!n)return this;if(!e)return this._$handlers={},this;if(r){if(n[e]){for(var i=[],a=0,o=n[e].length;a<o;a++)n[e][a].h!==r&&i.push(n[e][a]);n[e]=i}n[e]&&n[e].length===0&&delete n[e]}else delete n[e];return this},t.prototype.trigger=function(e){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[e],a=this._$eventProcessor;if(i)for(var o=r.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,r[0]);break;case 2:u.h.call(u.ctx,r[0],r[1]);break;default:u.h.apply(u.ctx,r);break}}return a&&a.afterTrigger&&a.afterTrigger(e),this},t.prototype.triggerWithContext=function(e){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[e],a=this._$eventProcessor;if(i)for(var o=r.length,s=r[o-1],l=i.length,u=0;u<l;u++){var c=i[u];if(!(a&&a.filter&&c.query!=null&&!a.filter(e,c.query)))switch(o){case 0:c.h.call(s);break;case 1:c.h.call(s,r[0]);break;case 2:c.h.call(s,r[0],r[1]);break;default:c.h.apply(s,r.slice(1,o-1));break}}return a&&a.afterTrigger&&a.afterTrigger(e),this},t})(),p_=1;te.hasGlobalWindow&&(p_=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var hl=p_,Uf=.4,Gf="#333",Vf="#ccc",nM="#eee",dt=1,Ta=2,Ci=4,Vu="__zr_normal__",Wu=$a.concat(["ignore"]),iM=cr($a,function(t,e){return t[e]=!0,t},{ignore:!1}),si={},aM=new re(0,0,0,0),Vo=[],au=(function(){function t(e){this.id=rv(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return t.prototype._init=function(e){this.attr(e)},t.prototype.drift=function(e,r,n){switch(this.draggable){case"horizontal":r=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]+=r,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(e){var r=this._textContent;if(r&&(!r.ignore||e)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,a=r.innerTransformable,o=void 0,s=void 0,l=!1;a.parent=i?this:null;var u=!1;a.copyTransform(r);var c=n.position!=null,f=n.autoOverflowArea,v=void 0;if((f||c)&&(v=aM,n.layoutRect?v.copy(n.layoutRect):v.copy(this.getBoundingRect()),i||v.applyTransform(this.transform)),c){this.calculateTextPosition?this.calculateTextPosition(si,n,v):al(si,n,v),a.x=si.x,a.y=si.y,o=si.align,s=si.verticalAlign;var h=n.origin;if(h&&n.rotation!=null){var d=void 0,p=void 0;h==="center"?(d=v.width*.5,p=v.height*.5):(d=nn(h[0],v.width),p=nn(h[1],v.height)),u=!0,a.originX=-a.x+d+(i?0:v.x),a.originY=-a.y+p+(i?0:v.y)}}n.rotation!=null&&(a.rotation=n.rotation);var g=n.offset;g&&(a.x+=g[0],a.y+=g[1],u||(a.originX=-g[0],a.originY=-g[1]));var m=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={});if(f){var y=m.overflowRect=m.overflowRect||new re(0,0,0,0);a.getLocalTransform(Vo),Jn(Vo,Vo),re.copy(y,v),y.applyTransform(Vo)}else m.overflowRect=null;var _=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,b=void 0,S=void 0,x=void 0;_&&this.canBeInsideText()?(b=n.insideFill,S=n.insideStroke,(b==null||b==="auto")&&(b=this.getInsideTextFill()),(S==null||S==="auto")&&(S=this.getInsideTextStroke(b),x=!0)):(b=n.outsideFill,S=n.outsideStroke,(b==null||b==="auto")&&(b=this.getOutsideFill()),(S==null||S==="auto")&&(S=this.getOutsideStroke(b),x=!0)),b=b||"#000",(b!==m.fill||S!==m.stroke||x!==m.autoStroke||o!==m.align||s!==m.verticalAlign)&&(l=!0,m.fill=b,m.stroke=S,m.autoStroke=x,m.align=o,m.verticalAlign=s,r.setDefaultTextStyle(m)),r.__dirty|=dt,l&&r.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(e){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Vf:Gf},t.prototype.getOutsideStroke=function(e){var r=this.__zr&&this.__zr.getBackgroundColor(),n=typeof r=="string"&>(r);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,un(n,"rgba")},t.prototype.traverse=function(e,r){},t.prototype.attrKV=function(e,r){e==="textConfig"?this.setTextConfig(r):e==="textContent"?this.setTextContent(r):e==="clipPath"?this.setClipPath(r):e==="extra"?(this.extra=this.extra||{},F(this.extra,r)):this[e]=r},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(e,r){if(typeof e=="string")this.attrKV(e,r);else if(q(e))for(var n=e,i=Se(n),a=0;a<i.length;a++){var o=i[a];this.attrKV(o,e[o])}return this.markRedraw(),this},t.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var r=this._normalState,n=0;n<this.animators.length;n++){var i=this.animators[n],a=i.__fromStateTransition;if(!(i.getLoop()||a&&a!==Vu)){var o=i.targetName,s=o?r[o]:r;i.saveTo(s)}}},t.prototype._innerSaveToNormal=function(e){var r=this._normalState;r||(r=this._normalState={}),e.textConfig&&!r.textConfig&&(r.textConfig=this.textConfig),this._savePrimaryToNormal(e,r,Wu)},t.prototype._savePrimaryToNormal=function(e,r,n){for(var i=0;i<n.length;i++){var a=n[i];e[a]!=null&&!(a in r)&&(r[a]=this[a])}},t.prototype.hasState=function(){return this.currentStates.length>0},t.prototype.getState=function(e){return this.states[e]},t.prototype.ensureState=function(e){var r=this.states;return r[e]||(r[e]={}),r[e]},t.prototype.clearStates=function(e){this.useState(Vu,!1,e)},t.prototype.useState=function(e,r,n,i){var a=e===Vu,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,l=this.stateTransition;if(!(le(s,e)>=0&&(r||s.length===1))){var u;if(this.stateProxy&&!a&&(u=this.stateProxy(e)),u||(u=this.states&&this.states[e]),!u&&!a){Kl("State "+e+" not exists.");return}a||this.saveCurrentToNormalState(u);var c=!!(u&&u.hoverLayer||i);c&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,u,this._normalState,r,!n&&!this.__inHover&&l&&l.duration>0,l);var f=this._textContent,v=this._textGuide;return f&&f.useState(e,r,n,c),v&&v.useState(e,r,n,c),a?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~dt),u}}},t.prototype.useStates=function(e,r,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],c=void 0;this.stateProxy&&(c=this.stateProxy(u,e)),c||(c=this.states[u]),c&&i.push(c)}var f=i[o-1],v=!!(f&&f.hoverLayer||n);v&&this._toggleHoverLayerFlag(!0);var h=this._mergeStates(i),d=this.stateTransition;this.saveCurrentToNormalState(h),this._applyStateObj(e.join(","),h,this._normalState,!1,!r&&!this.__inHover&&d&&d.duration>0,d);var p=this._textContent,g=this._textGuide;p&&p.useStates(e,r,v),g&&g.useStates(e,r,v),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!v&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~dt)}},t.prototype.isSilent=function(){for(var e=this;e;){if(e.silent)return!0;var r=e.__hostTarget;e=r?e.ignoreHostSilent?null:r:e.parent}return!1},t.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var r=this.animators[e];r.targetName&&r.changeTarget(this[r.targetName])}},t.prototype.removeState=function(e){var r=le(this.currentStates,e);if(r>=0){var n=this.currentStates.slice();n.splice(r,1),this.useStates(n)}},t.prototype.replaceState=function(e,r,n){var i=this.currentStates.slice(),a=le(i,e),o=le(i,r)>=0;a>=0?o?i.splice(a,1):i[a]=r:n&&!o&&i.push(r),this.useStates(i)},t.prototype.toggleState=function(e,r){r?this.useState(e,!0):this.removeState(e)},t.prototype._mergeStates=function(e){for(var r={},n,i=0;i<e.length;i++){var a=e[i];F(r,a),a.textConfig&&(n=n||{},F(n,a.textConfig))}return n&&(r.textConfig=n),r},t.prototype._applyStateObj=function(e,r,n,i,a,o){var s=!(r&&i);r&&r.textConfig?(this.textConfig=F({},i?this.textConfig:n.textConfig),F(this.textConfig,r.textConfig)):s&&n.textConfig&&(this.textConfig=n.textConfig);for(var l={},u=!1,c=0;c<Wu.length;c++){var f=Wu[c],v=a&&iM[f];r&&r[f]!=null?v?(u=!0,l[f]=r[f]):this[f]=r[f]:s&&n[f]!=null&&(v?(u=!0,l[f]=n[f]):this[f]=n[f])}if(!a)for(var c=0;c<this.animators.length;c++){var h=this.animators[c],d=h.targetName;h.getLoop()||h.__changeFinalValue(d?(r||n)[d]:r||n)}u&&this._transitionState(e,l,o)},t.prototype._attachComponent=function(e){if(!(e.__zr&&!e.__hostTarget)&&e!==this){var r=this.__zr;r&&e.addSelfToZr(r),e.__zr=r,e.__hostTarget=this}},t.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},t.prototype.getClipPath=function(){return this._clipPath},t.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},t.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},t.prototype.getTextContent=function(){return this._textContent},t.prototype.setTextContent=function(e){var r=this._textContent;r!==e&&(r&&r!==e&&this.removeTextContent(),e.innerTransformable=new uv,this._attachComponent(e),this._textContent=e,this.markRedraw())},t.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),F(this.textConfig,e),this.markRedraw()},t.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},t.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},t.prototype.getTextGuideLine=function(){return this._textGuide},t.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},t.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},t.prototype.markRedraw=function(){this.__dirty|=dt;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},t.prototype.dirty=function(){this.markRedraw()},t.prototype._toggleHoverLayerFlag=function(e){this.__inHover=e;var r=this._textContent,n=this._textGuide;r&&(r.__inHover=e),n&&(n.__inHover=e)},t.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var r=this.animators;if(r)for(var n=0;n<r.length;n++)e.animation.addAnimator(r[n]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},t.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var r=this.animators;if(r)for(var n=0;n<r.length;n++)e.animation.removeAnimator(r[n]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},t.prototype.animate=function(e,r,n){var i=e?this[e]:this,a=new cv(i,r,n);return e&&(a.targetName=e),this.addAnimator(a,e),a},t.prototype.addAnimator=function(e,r){var n=this.__zr,i=this;e.during(function(){i.updateDuringAnimation(r)}).done(function(){var a=i.animators,o=le(a,e);o>=0&&a.splice(o,1)}),this.animators.push(e),n&&n.animation.addAnimator(e),n&&n.wakeUp()},t.prototype.updateDuringAnimation=function(e){this.markRedraw()},t.prototype.stopAnimation=function(e,r){for(var n=this.animators,i=n.length,a=[],o=0;o<i;o++){var s=n[o];!e||e===s.scope?s.stop(r):a.push(s)}return this.animators=a,this},t.prototype.animateTo=function(e,r,n){ju(this,e,r,n)},t.prototype.animateFrom=function(e,r,n){ju(this,e,r,n,!0)},t.prototype._transitionState=function(e,r,n,i){for(var a=ju(this,r,n,i),o=0;o<a.length;o++)a[o].__fromStateTransition=e},t.prototype.getBoundingRect=function(){return null},t.prototype.getPaintRect=function(){return null},t.initDefaultProps=(function(){var e=t.prototype;e.type="element",e.name="",e.ignore=e.silent=e.ignoreHostSilent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=e.__inHover=!1,e.__dirty=dt;function r(n,i,a,o){Object.defineProperty(e,n,{get:function(){if(!this[i]){var l=this[i]=[];s(this,l)}return this[i]},set:function(l){this[a]=l[0],this[o]=l[1],this[i]=l,s(this,l)}});function s(l,u){Object.defineProperty(u,0,{get:function(){return l[a]},set:function(c){l[a]=c}}),Object.defineProperty(u,1,{get:function(){return l[o]},set:function(c){l[o]=c}})}}Object.defineProperty&&(r("position","_legacyPos","x","y"),r("scale","_legacyScale","scaleX","scaleY"),r("origin","_legacyOrigin","originX","originY"))})(),t})();It(au,dr);It(au,uv);function ju(t,e,r,n,i){r=r||{};var a=[];g_(t,"",t,e,r,n,a,i);var o=a.length,s=!1,l=r.done,u=r.aborted,c=function(){s=!0,o--,o<=0&&(s?l&&l():u&&u())},f=function(){o--,o<=0&&(s?l&&l():u&&u())};o||l&&l(),a.length>0&&r.during&&a[0].during(function(d,p){r.during(p)});for(var v=0;v<a.length;v++){var h=a[v];c&&h.done(c),f&&h.aborted(f),r.force&&h.duration(r.duration),h.start(r.easing)}return a}function $u(t,e,r){for(var n=0;n<r;n++)t[n]=e[n]}function oM(t){return rt(t[0])}function sM(t,e,r){if(rt(e[r]))if(rt(t[r])||(t[r]=[]),nt(e[r])){var n=e[r].length;t[r].length!==n&&(t[r]=new e[r].constructor(n),$u(t[r],e[r],n))}else{var i=e[r],a=t[r],o=i.length;if(oM(i))for(var s=i[0].length,l=0;l<o;l++)a[l]?$u(a[l],i[l],s):a[l]=Array.prototype.slice.call(i[l]);else $u(a,i,o);a.length=i.length}else t[r]=e[r]}function lM(t,e){return t===e||rt(t)&&rt(e)&&uM(t,e)}function uM(t,e){var r=t.length;if(r!==e.length)return!1;for(var n=0;n<r;n++)if(t[n]!==e[n])return!1;return!0}function g_(t,e,r,n,i,a,o,s){for(var l=Se(n),u=i.duration,c=i.delay,f=i.additive,v=i.setToFinal,h=!q(a),d=t.animators,p=[],g=0;g<l.length;g++){var m=l[g],y=n[m];if(y!=null&&r[m]!=null&&(h||a[m]))if(q(y)&&!rt(y)&&!bo(y)){if(e){s||(r[m]=y,t.updateDuringAnimation(e));continue}g_(t,m,r[m],y,i,a&&a[m],o,s)}else p.push(m);else s||(r[m]=y,t.updateDuringAnimation(e),p.push(m))}var _=p.length;if(!f&&_)for(var b=0;b<d.length;b++){var S=d[b];if(S.targetName===e){var x=S.stopTracks(p);if(x){var w=le(d,S);d.splice(w,1)}}}if(i.force||(p=Re(p,function(D){return!lM(n[D],r[D])}),_=p.length),_>0||i.force&&!o.length){var T=void 0,M=void 0,A=void 0;if(s){M={},v&&(T={});for(var b=0;b<_;b++){var m=p[b];M[m]=r[m],v?T[m]=n[m]:r[m]=n[m]}}else if(v){A={};for(var b=0;b<_;b++){var m=p[b];A[m]=Fs(r[m]),sM(r,n,m)}}var S=new cv(r,!1,!1,f?Re(d,function(P){return P.targetName===e}):null);S.targetName=e,i.scope&&(S.scope=i.scope),v&&T&&S.whenWithKeys(0,T,p),A&&S.whenWithKeys(0,A,p),S.whenWithKeys(u??500,s?M:n,p).delay(c||0),t.addAnimator(S,e),o.push(S)}}var Wf="__zr_style_"+Math.round(Math.random()*10),$n={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},ou={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};$n[Wf]=!0;var dp=["z","z2","invisible"],cM=["invisible"],wo=(function(t){G(e,t);function e(r){return t.call(this,r)||this}return e.prototype._init=function(r){for(var n=Se(r),i=0;i<n.length;i++){var a=n[i];a==="style"?this.useStyle(r[a]):t.prototype.attrKV.call(this,a,r[a])}this.style||this.useStyle({})},e.prototype.beforeBrush=function(){},e.prototype.afterBrush=function(){},e.prototype.innerBeforeBrush=function(){},e.prototype.innerAfterBrush=function(){},e.prototype.shouldBePainted=function(r,n,i,a){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&fM(this,r,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(r,n){return this.rectContain(r,n)},e.prototype.traverse=function(r,n){r.call(n,this)},e.prototype.rectContain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect();return a.contain(i[0],i[1])},e.prototype.getPaintRect=function(){var r=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;r=this._paintRect||(this._paintRect=new re(0,0,0,0)),n?re.applyTransform(r,i,n):r.copy(i),(o||s||l)&&(r.width+=o*2+Math.abs(s),r.height+=o*2+Math.abs(l),r.x=Math.min(r.x,r.x+s-o),r.y=Math.min(r.y,r.y+l-o));var u=this.dirtyRectTolerance;r.isZero()||(r.x=Math.floor(r.x-u),r.y=Math.floor(r.y-u),r.width=Math.ceil(r.width+1+u*2),r.height=Math.ceil(r.height+1+u*2))}return r},e.prototype.setPrevPaintRect=function(r){r?(this._prevPaintRect=this._prevPaintRect||new re(0,0,0,0),this._prevPaintRect.copy(r)):this._prevPaintRect=null},e.prototype.getPrevPaintRect=function(){return this._prevPaintRect},e.prototype.animateStyle=function(r){return this.animate("style",r)},e.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():this.markRedraw()},e.prototype.attrKV=function(r,n){r!=="style"?t.prototype.attrKV.call(this,r,n):this.style?this.setStyle(n):this.useStyle(n)},e.prototype.setStyle=function(r,n){return typeof r=="string"?this.style[r]=n:F(this.style,r),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(r){r||this.markRedraw(),this.__dirty|=Ta,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(this.__dirty&Ta)},e.prototype.styleUpdated=function(){this.__dirty&=~Ta},e.prototype.createStyle=function(r){return So($n,r)},e.prototype.useStyle=function(r){r[Wf]||(r=this.createStyle(r)),this.__inHover?this.__hoverStyle=r:this.style=r,this.dirtyStyle()},e.prototype.isStyleObject=function(r){return r[Wf]},e.prototype._innerSaveToNormal=function(r){t.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(r,n,dp)},e.prototype._applyStateObj=function(r,n,i,a,o,s){t.prototype._applyStateObj.call(this,r,n,i,a,o,s);var l=!(n&&a),u;if(n&&n.style?o?a?u=n.style:(u=this._mergeStyle(this.createStyle(),i.style),this._mergeStyle(u,n.style)):(u=this._mergeStyle(this.createStyle(),a?this.style:i.style),this._mergeStyle(u,n.style)):l&&(u=i.style),u)if(o){var c=this.style;if(this.style=this.createStyle(l?{}:c),l)for(var f=Se(c),v=0;v<f.length;v++){var h=f[v];h in u&&(u[h]=u[h],this.style[h]=c[h])}for(var d=Se(u),v=0;v<d.length;v++){var h=d[v];this.style[h]=this.style[h]}this._transitionState(r,{style:u},s,this.getAnimationStyleProps())}else this.useStyle(u);for(var p=this.__inHover?cM:dp,v=0;v<p.length;v++){var h=p[v];n&&n[h]!=null?this[h]=n[h]:l&&i[h]!=null&&(this[h]=i[h])}},e.prototype._mergeStates=function(r){for(var n=t.prototype._mergeStates.call(this,r),i,a=0;a<r.length;a++){var o=r[a];o.style&&(i=i||{},this._mergeStyle(i,o.style))}return i&&(n.style=i),n},e.prototype._mergeStyle=function(r,n){return F(r,n),r},e.prototype.getAnimationStyleProps=function(){return ou},e.initDefaultProps=(function(){var r=e.prototype;r.type="displayable",r.invisible=!1,r.z=0,r.z2=0,r.zlevel=0,r.culling=!1,r.cursor="pointer",r.rectHover=!1,r.incremental=!1,r._rect=null,r.dirtyRectTolerance=0,r.__dirty=dt|Ta})(),e})(au),Yu=new re(0,0,0,0),qu=new re(0,0,0,0);function fM(t,e,r){return Yu.copy(t.getBoundingRect()),t.transform&&Yu.applyTransform(t.transform),qu.width=e,qu.height=r,!Yu.intersect(qu)}var Mt=Math.min,At=Math.max,Xu=Math.sin,Zu=Math.cos,_n=Math.PI*2,Wo=ei(),jo=ei(),$o=ei();function pp(t,e,r,n,i,a){i[0]=Mt(t,r),i[1]=Mt(e,n),a[0]=At(t,r),a[1]=At(e,n)}var gp=[],mp=[];function hM(t,e,r,n,i,a,o,s,l,u){var c=l_,f=Ke,v=c(t,r,i,o,gp);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var h=0;h<v;h++){var d=f(t,r,i,o,gp[h]);l[0]=Mt(d,l[0]),u[0]=At(d,u[0])}v=c(e,n,a,s,mp);for(var h=0;h<v;h++){var p=f(e,n,a,s,mp[h]);l[1]=Mt(p,l[1]),u[1]=At(p,u[1])}l[0]=Mt(t,l[0]),u[0]=At(t,u[0]),l[0]=Mt(o,l[0]),u[0]=At(o,u[0]),l[1]=Mt(e,l[1]),u[1]=At(e,u[1]),l[1]=Mt(s,l[1]),u[1]=At(s,u[1])}function vM(t,e,r,n,i,a,o,s){var l=u_,u=at,c=At(Mt(l(t,r,i),1),0),f=At(Mt(l(e,n,a),1),0),v=u(t,r,i,c),h=u(e,n,a,f);o[0]=Mt(t,i,v),o[1]=Mt(e,a,h),s[0]=At(t,i,v),s[1]=At(e,a,h)}function dM(t,e,r,n,i,a,o,s,l){var u=Vr,c=Wr,f=Math.abs(i-a);if(f%_n<1e-4&&f>1e-4){s[0]=t-r,s[1]=e-n,l[0]=t+r,l[1]=e+n;return}if(Wo[0]=Zu(i)*r+t,Wo[1]=Xu(i)*n+e,jo[0]=Zu(a)*r+t,jo[1]=Xu(a)*n+e,u(s,Wo,jo),c(l,Wo,jo),i=i%_n,i<0&&(i=i+_n),a=a%_n,a<0&&(a=a+_n),i>a&&!o?a+=_n:i<a&&o&&(i+=_n),o){var v=a;a=i,i=v}for(var h=0;h<a;h+=Math.PI/2)h>i&&($o[0]=Zu(h)*r+t,$o[1]=Xu(h)*n+e,u(s,$o,s),c(l,$o,l))}var ve={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},bn=[],Sn=[],Xt=[],Or=[],Zt=[],Kt=[],Ku=Math.min,Qu=Math.max,xn=Math.cos,wn=Math.sin,gr=Math.abs,jf=Math.PI,zr=jf*2,Ju=typeof Float32Array<"u",Qi=[];function ec(t){var e=Math.round(t/jf*1e8)/1e8;return e%2*jf}function m_(t,e){var r=ec(t[0]);r<0&&(r+=zr);var n=r-t[0],i=t[1];i+=n,!e&&i-r>=zr?i=r+zr:e&&r-i>=zr?i=r-zr:!e&&r>i?i=r+(zr-ec(r-i)):e&&r<i&&(i=r-(zr-ec(i-r))),t[0]=r,t[1]=i}var zi=(function(){function t(e){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,e&&(this._saveData=!1),this._saveData&&(this.data=[])}return t.prototype.increaseVersion=function(){this._version++},t.prototype.getVersion=function(){return this._version},t.prototype.setScale=function(e,r,n){n=n||0,n>0&&(this._ux=gr(n/hl/e)||0,this._uy=gr(n/hl/r)||0)},t.prototype.setDPR=function(e){this.dpr=e},t.prototype.setContext=function(e){this._ctx=e},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(e,r){return this._drawPendingPt(),this.addData(ve.M,e,r),this._ctx&&this._ctx.moveTo(e,r),this._x0=e,this._y0=r,this._xi=e,this._yi=r,this},t.prototype.lineTo=function(e,r){var n=gr(e-this._xi),i=gr(r-this._yi),a=n>this._ux||i>this._uy;if(this.addData(ve.L,e,r),this._ctx&&a&&this._ctx.lineTo(e,r),a)this._xi=e,this._yi=r,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=r,this._pendingPtDist=o)}return this},t.prototype.bezierCurveTo=function(e,r,n,i,a,o){return this._drawPendingPt(),this.addData(ve.C,e,r,n,i,a,o),this._ctx&&this._ctx.bezierCurveTo(e,r,n,i,a,o),this._xi=a,this._yi=o,this},t.prototype.quadraticCurveTo=function(e,r,n,i){return this._drawPendingPt(),this.addData(ve.Q,e,r,n,i),this._ctx&&this._ctx.quadraticCurveTo(e,r,n,i),this._xi=n,this._yi=i,this},t.prototype.arc=function(e,r,n,i,a,o){this._drawPendingPt(),Qi[0]=i,Qi[1]=a,m_(Qi,o),i=Qi[0],a=Qi[1];var s=a-i;return this.addData(ve.A,e,r,n,n,i,s,0,o?0:1),this._ctx&&this._ctx.arc(e,r,n,i,a,o),this._xi=xn(a)*n+e,this._yi=wn(a)*n+r,this},t.prototype.arcTo=function(e,r,n,i,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,r,n,i,a),this},t.prototype.rect=function(e,r,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,r,n,i),this.addData(ve.R,e,r,n,i),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(ve.Z);var e=this._ctx,r=this._x0,n=this._y0;return e&&e.closePath(),this._xi=r,this._yi=n,this},t.prototype.fill=function(e){e&&e.fill(),this.toStatic()},t.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(e){if(this._saveData){var r=e.length;!(this.data&&this.data.length===r)&&Ju&&(this.data=new Float32Array(r));for(var n=0;n<r;n++)this.data[n]=e[n];this._len=r}},t.prototype.appendPath=function(e){if(this._saveData){e instanceof Array||(e=[e]);for(var r=e.length,n=0,i=this._len,a=0;a<r;a++)n+=e[a].len();var o=this.data;if(Ju&&(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<r;a++)for(var l=e[a].data,s=0;s<l.length;s++)this.data[i++]=l[s];this._len=i}},t.prototype.addData=function(e,r,n,i,a,o,s,l,u){if(this._saveData){var c=this.data;this._len+arguments.length>c.length&&(this._expandData(),c=this.data);for(var f=0;f<arguments.length;f++)c[this._len++]=arguments[f]}},t.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],r=0;r<this._len;r++)e[r]=this.data[r];this.data=e}},t.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,Ju&&this._len>11&&(this.data=new Float32Array(e)))}},t.prototype.getBoundingRect=function(){Xt[0]=Xt[1]=Zt[0]=Zt[1]=Number.MAX_VALUE,Or[0]=Or[1]=Kt[0]=Kt[1]=-Number.MAX_VALUE;var e=this.data,r=0,n=0,i=0,a=0,o;for(o=0;o<this._len;){var s=e[o++],l=o===1;switch(l&&(r=e[o],n=e[o+1],i=r,a=n),s){case ve.M:r=i=e[o++],n=a=e[o++],Zt[0]=i,Zt[1]=a,Kt[0]=i,Kt[1]=a;break;case ve.L:pp(r,n,e[o],e[o+1],Zt,Kt),r=e[o++],n=e[o++];break;case ve.C:hM(r,n,e[o++],e[o++],e[o++],e[o++],e[o],e[o+1],Zt,Kt),r=e[o++],n=e[o++];break;case ve.Q:vM(r,n,e[o++],e[o++],e[o],e[o+1],Zt,Kt),r=e[o++],n=e[o++];break;case ve.A:var u=e[o++],c=e[o++],f=e[o++],v=e[o++],h=e[o++],d=e[o++]+h;o+=1;var p=!e[o++];l&&(i=xn(h)*f+u,a=wn(h)*v+c),dM(u,c,f,v,h,d,p,Zt,Kt),r=xn(d)*f+u,n=wn(d)*v+c;break;case ve.R:i=r=e[o++],a=n=e[o++];var g=e[o++],m=e[o++];pp(i,a,i+g,a+m,Zt,Kt);break;case ve.Z:r=i,n=a;break}Vr(Xt,Xt,Zt),Wr(Or,Or,Kt)}return o===0&&(Xt[0]=Xt[1]=Or[0]=Or[1]=0),new re(Xt[0],Xt[1],Or[0]-Xt[0],Or[1]-Xt[1])},t.prototype._calculateLength=function(){var e=this.data,r=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,c=0,f=0,v=0;v<r;){var h=e[v++],d=v===1;d&&(a=e[v],o=e[v+1],s=a,l=o);var p=-1;switch(h){case ve.M:a=s=e[v++],o=l=e[v++];break;case ve.L:{var g=e[v++],m=e[v++],y=g-a,_=m-o;(gr(y)>n||gr(_)>i||v===r-1)&&(p=Math.sqrt(y*y+_*_),a=g,o=m);break}case ve.C:{var b=e[v++],S=e[v++],g=e[v++],m=e[v++],x=e[v++],w=e[v++];p=ND(a,o,b,S,g,m,x,w,10),a=x,o=w;break}case ve.Q:{var b=e[v++],S=e[v++],g=e[v++],m=e[v++];p=zD(a,o,b,S,g,m,10),a=g,o=m;break}case ve.A:var T=e[v++],M=e[v++],A=e[v++],D=e[v++],P=e[v++],E=e[v++],L=E+P;v+=1,d&&(s=xn(P)*A+T,l=wn(P)*D+M),p=Qu(A,D)*Ku(zr,Math.abs(E)),a=xn(L)*A+T,o=wn(L)*D+M;break;case ve.R:{s=a=e[v++],l=o=e[v++];var k=e[v++],N=e[v++];p=k*2+N*2;break}case ve.Z:{var y=s-a,_=l-o;p=Math.sqrt(y*y+_*_),a=s,o=l;break}}p>=0&&(u[f++]=p,c+=p)}return this._pathLen=c,c},t.prototype.rebuildPath=function(e,r){var n=this.data,i=this._ux,a=this._uy,o=this._len,s,l,u,c,f,v,h=r<1,d,p,g=0,m=0,y,_=0,b,S;if(!(h&&(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,p=this._pathLen,y=r*p,!y)))e:for(var x=0;x<o;){var w=n[x++],T=x===1;switch(T&&(u=n[x],c=n[x+1],s=u,l=c),w!==ve.L&&_>0&&(e.lineTo(b,S),_=0),w){case ve.M:s=u=n[x++],l=c=n[x++],e.moveTo(u,c);break;case ve.L:{f=n[x++],v=n[x++];var M=gr(f-u),A=gr(v-c);if(M>i||A>a){if(h){var D=d[m++];if(g+D>y){var P=(y-g)/D;e.lineTo(u*(1-P)+f*P,c*(1-P)+v*P);break e}g+=D}e.lineTo(f,v),u=f,c=v,_=0}else{var E=M*M+A*A;E>_&&(b=f,S=v,_=E)}break}case ve.C:{var L=n[x++],k=n[x++],N=n[x++],$=n[x++],B=n[x++],U=n[x++];if(h){var D=d[m++];if(g+D>y){var P=(y-g)/D;ul(u,L,N,B,P,bn),ul(c,k,$,U,P,Sn),e.bezierCurveTo(bn[1],Sn[1],bn[2],Sn[2],bn[3],Sn[3]);break e}g+=D}e.bezierCurveTo(L,k,N,$,B,U),u=B,c=U;break}case ve.Q:{var L=n[x++],k=n[x++],N=n[x++],$=n[x++];if(h){var D=d[m++];if(g+D>y){var P=(y-g)/D;cl(u,L,N,P,bn),cl(c,k,$,P,Sn),e.quadraticCurveTo(bn[1],Sn[1],bn[2],Sn[2]);break e}g+=D}e.quadraticCurveTo(L,k,N,$),u=N,c=$;break}case ve.A:var j=n[x++],H=n[x++],z=n[x++],J=n[x++],ce=n[x++],Pe=n[x++],ht=n[x++],Ye=!n[x++],He=z>J?z:J,Be=gr(z-J)>.001,Ae=ce+Pe,ee=!1;if(h){var D=d[m++];g+D>y&&(Ae=ce+Pe*(y-g)/D,ee=!0),g+=D}if(Be&&e.ellipse?e.ellipse(j,H,z,J,ht,ce,Ae,Ye):e.arc(j,H,He,ce,Ae,Ye),ee)break e;T&&(s=xn(ce)*z+j,l=wn(ce)*J+H),u=xn(Ae)*z+j,c=wn(Ae)*J+H;break;case ve.R:s=u=n[x],l=c=n[x+1],f=n[x++],v=n[x++];var se=n[x++],qt=n[x++];if(h){var D=d[m++];if(g+D>y){var Ie=y-g;e.moveTo(f,v),e.lineTo(f+Ku(Ie,se),v),Ie-=se,Ie>0&&e.lineTo(f+se,v+Ku(Ie,qt)),Ie-=qt,Ie>0&&e.lineTo(f+Qu(se-Ie,0),v+qt),Ie-=se,Ie>0&&e.lineTo(f,v+Qu(qt-Ie,0));break e}g+=D}e.rect(f,v,se,qt);break;case ve.Z:if(h){var D=d[m++];if(g+D>y){var P=(y-g)/D;e.lineTo(u*(1-P)+s*P,c*(1-P)+l*P);break e}g+=D}e.closePath(),u=s,c=l}}},t.prototype.clone=function(){var e=new t,r=this.data;return e.data=r.slice?r.slice():Array.prototype.slice.call(r),e._len=this._len,e},t.prototype.canSave=function(){return!!this._saveData},t.CMD=ve,t.initDefaultProps=(function(){var e=t.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0})(),t})();function li(t,e,r,n,i,a,o){if(i===0)return!1;var s=i,l=0,u=t;if(o>e+s&&o>n+s||o<e-s&&o<n-s||a>t+s&&a>r+s||a<t-s&&a<r-s)return!1;if(t!==r)l=(e-n)/(t-r),u=(t*n-r*e)/(t-r);else return Math.abs(a-t)<=s/2;var c=l*a-o+u,f=c*c/(l*l+1);return f<=s/2*s/2}function pM(t,e,r,n,i,a,o,s,l,u,c){if(l===0)return!1;var f=l;if(c>e+f&&c>n+f&&c>a+f&&c>s+f||c<e-f&&c<n-f&&c<a-f&&c<s-f||u>t+f&&u>r+f&&u>i+f&&u>o+f||u<t-f&&u<r-f&&u<i-f&&u<o-f)return!1;var v=kD(t,e,r,n,i,a,o,s,u,c);return v<=f/2}function gM(t,e,r,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>t+u&&s>r+u&&s>i+u||s<t-u&&s<r-u&&s<i-u)return!1;var c=FD(t,e,r,n,i,a,s,l);return c<=u/2}var yp=Math.PI*2;function Yo(t){return t%=yp,t<0&&(t+=yp),t}var Ji=Math.PI*2;function mM(t,e,r,n,i,a,o,s,l){if(o===0)return!1;var u=o;s-=t,l-=e;var c=Math.sqrt(s*s+l*l);if(c-u>r||c+u<r)return!1;if(Math.abs(n-i)%Ji<1e-4)return!0;if(a){var f=n;n=Yo(i),i=Yo(f)}else n=Yo(n),i=Yo(i);n>i&&(i+=Ji);var v=Math.atan2(l,s);return v<0&&(v+=Ji),v>=n&&v<=i||v+Ji>=n&&v+Ji<=i}function Tr(t,e,r,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*(r-t)+t;return l===i?1/0:l>i?s:0}var kr=zi.CMD,Tn=Math.PI*2,yM=1e-4;function _M(t,e){return Math.abs(t-e)<yM}var qe=[-1,-1,-1],Ct=[-1,-1];function bM(){var t=Ct[0];Ct[0]=Ct[1],Ct[1]=t}function SM(t,e,r,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 c=s_(e,n,a,s,u,qe);if(c===0)return 0;for(var f=0,v=-1,h=void 0,d=void 0,p=0;p<c;p++){var g=qe[p],m=g===0||g===1?.5:1,y=Ke(t,r,i,o,g);y<l||(v<0&&(v=l_(e,n,a,s,Ct),Ct[1]<Ct[0]&&v>1&&bM(),h=Ke(e,n,a,s,Ct[0]),v>1&&(d=Ke(e,n,a,s,Ct[1]))),v===2?g<Ct[0]?f+=h<e?m:-m:g<Ct[1]?f+=d<h?m:-m:f+=s<d?m:-m:g<Ct[0]?f+=h<e?m:-m:f+=s<h?m:-m)}return f}function xM(t,e,r,n,i,a,o,s){if(s>e&&s>n&&s>a||s<e&&s<n&&s<a)return 0;var l=BD(e,n,a,s,qe);if(l===0)return 0;var u=u_(e,n,a);if(u>=0&&u<=1){for(var c=0,f=at(e,n,a,u),v=0;v<l;v++){var h=qe[v]===0||qe[v]===1?.5:1,d=at(t,r,i,qe[v]);d<o||(qe[v]<u?c+=f<e?h:-h:c+=a<f?h:-h)}return c}else{var h=qe[0]===0||qe[0]===1?.5:1,d=at(t,r,i,qe[0]);return d<o?0:a<e?h:-h}}function wM(t,e,r,n,i,a,o,s){if(s-=e,s>r||s<-r)return 0;var l=Math.sqrt(r*r-s*s);qe[0]=-l,qe[1]=l;var u=Math.abs(n-i);if(u<1e-4)return 0;if(u>=Tn-1e-4){n=0,i=Tn;var c=a?1:-1;return o>=qe[0]+t&&o<=qe[1]+t?c:0}if(n>i){var f=n;n=i,i=f}n<0&&(n+=Tn,i+=Tn);for(var v=0,h=0;h<2;h++){var d=qe[h];if(d+t>o){var p=Math.atan2(s,d),c=a?1:-1;p<0&&(p=Tn+p),(p>=n&&p<=i||p+Tn>=n&&p+Tn<=i)&&(p>Math.PI/2&&p<Math.PI*1.5&&(c=-c),v+=c)}}return v}function y_(t,e,r,n,i){for(var a=t.data,o=t.len(),s=0,l=0,u=0,c=0,f=0,v,h,d=0;d<o;){var p=a[d++],g=d===1;switch(p===kr.M&&d>1&&(r||(s+=Tr(l,u,c,f,n,i))),g&&(l=a[d],u=a[d+1],c=l,f=u),p){case kr.M:c=a[d++],f=a[d++],l=c,u=f;break;case kr.L:if(r){if(li(l,u,a[d],a[d+1],e,n,i))return!0}else s+=Tr(l,u,a[d],a[d+1],n,i)||0;l=a[d++],u=a[d++];break;case kr.C:if(r){if(pM(l,u,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],e,n,i))return!0}else s+=SM(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 kr.Q:if(r){if(gM(l,u,a[d++],a[d++],a[d],a[d+1],e,n,i))return!0}else s+=xM(l,u,a[d++],a[d++],a[d],a[d+1],n,i)||0;l=a[d++],u=a[d++];break;case kr.A:var m=a[d++],y=a[d++],_=a[d++],b=a[d++],S=a[d++],x=a[d++];d+=1;var w=!!(1-a[d++]);v=Math.cos(S)*_+m,h=Math.sin(S)*b+y,g?(c=v,f=h):s+=Tr(l,u,v,h,n,i);var T=(n-m)*b/_+m;if(r){if(mM(m,y,b,S,S+x,w,e,T,i))return!0}else s+=wM(m,y,b,S,S+x,w,T,i);l=Math.cos(S+x)*_+m,u=Math.sin(S+x)*b+y;break;case kr.R:c=l=a[d++],f=u=a[d++];var M=a[d++],A=a[d++];if(v=c+M,h=f+A,r){if(li(c,f,v,f,e,n,i)||li(v,f,v,h,e,n,i)||li(v,h,c,h,e,n,i)||li(c,h,c,f,e,n,i))return!0}else s+=Tr(v,f,v,h,n,i),s+=Tr(c,h,c,f,n,i);break;case kr.Z:if(r){if(li(l,u,c,f,e,n,i))return!0}else s+=Tr(l,u,c,f,n,i);l=c,u=f;break}}return!r&&!_M(u,f)&&(s+=Tr(l,u,c,f,n,i)||0),s!==0}function TM(t,e,r){return y_(t,0,!1,e,r)}function CM(t,e,r,n){return y_(t,e,!0,r,n)}var __=pe({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},$n),DM={style:pe({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},ou.style)},tc=$a.concat(["invisible","culling","z","z2","zlevel","parent"]),ge=(function(t){G(e,t);function e(r){return t.call(this,r)||this}return e.prototype.update=function(){var r=this;t.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){r.buildPath(l,r.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<tc.length;++s)i[tc[s]]=this[tc[s]];i.__dirty|=dt}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(r){var n=Se(r);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=r[o];o==="style"?this.style?F(this.style,s):this.useStyle(s):o==="shape"?F(this.shape,s):t.prototype.attrKV.call(this,o,s)}this.style||this.useStyle({})},e.prototype.getDefaultStyle=function(){return null},e.prototype.getDefaultShape=function(){return{}},e.prototype.canBeInsideText=function(){return this.hasFill()},e.prototype.getInsideTextFill=function(){var r=this.style.fill;if(r!=="none"){if(Y(r)){var n=qa(r,0);return n>.5?Gf:n>.2?nM:Vf}else if(r)return Vf}return Gf},e.prototype.getInsideTextStroke=function(r){var n=this.style.fill;if(Y(n)){var i=this.__zr,a=!!(i&&i.isDarkMode()),o=qa(r,0)<Uf;if(a===o)return n}},e.prototype.buildPath=function(r,n,i){},e.prototype.pathUpdated=function(){this.__dirty&=~Ci},e.prototype.getUpdatedPathProxy=function(r){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,r),this.path},e.prototype.createPathProxy=function(){this.path=new zi(!1)},e.prototype.hasStroke=function(){var r=this.style,n=r.stroke;return!(n==null||n==="none"||!(r.lineWidth>0))},e.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},e.prototype.getBoundingRect=function(){var r=this._rect,n=this.style,i=!r;if(i){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&Ci)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),r=o.getBoundingRect()}if(this._rect=r,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=r.clone());if(this.__dirty||i){s.copy(r);var l=n.strokeNoScale?this.getLineScale():1,u=n.lineWidth;if(!this.hasFill()){var c=this.strokeContainThreshold;u=Math.max(u,c??4)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return r},e.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect(),o=this.style;if(r=i[0],n=i[1],a.contain(r,n)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),CM(s,l/u,r,n)))return!0}if(this.hasFill())return TM(s,r,n)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=Ci,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(r){return this.animate("shape",r)},e.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():r==="shape"?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(r,n){r==="shape"?this.setShape(n):t.prototype.attrKV.call(this,r,n)},e.prototype.setShape=function(r,n){var i=this.shape;return i||(i=this.shape={}),typeof r=="string"?i[r]=n:F(i,r),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&Ci)},e.prototype.createStyle=function(r){return So(__,r)},e.prototype._innerSaveToNormal=function(r){t.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.shape&&!n.shape&&(n.shape=F({},this.shape))},e.prototype._applyStateObj=function(r,n,i,a,o,s){t.prototype._applyStateObj.call(this,r,n,i,a,o,s);var l=!(n&&a),u;if(n&&n.shape?o?a?u=n.shape:(u=F({},i.shape),F(u,n.shape)):(u=F({},a?this.shape:i.shape),F(u,n.shape)):l&&(u=i.shape),u)if(o){this.shape=F({},this.shape);for(var c={},f=Se(u),v=0;v<f.length;v++){var h=f[v];typeof u[h]=="object"?this.shape[h]=u[h]:c[h]=u[h]}this._transitionState(r,{shape:c},s)}else this.shape=u,this.dirtyShape()},e.prototype._mergeStates=function(r){for(var n=t.prototype._mergeStates.call(this,r),i,a=0;a<r.length;a++){var o=r[a];o.shape&&(i=i||{},this._mergeStyle(i,o.shape))}return i&&(n.shape=i),n},e.prototype.getAnimationStyleProps=function(){return DM},e.prototype.isZeroArea=function(){return!1},e.extend=function(r){var n=(function(a){G(o,a);function o(s){var l=a.call(this,s)||this;return r.init&&r.init.call(l,s),l}return o.prototype.getDefaultStyle=function(){return oe(r.style)},o.prototype.getDefaultShape=function(){return oe(r.shape)},o})(e);for(var i in r)typeof r[i]=="function"&&(n.prototype[i]=r[i]);return n},e.initDefaultProps=(function(){var r=e.prototype;r.type="path",r.strokeContainThreshold=5,r.segmentIgnoreThreshold=0,r.subPixelOptimize=!1,r.autoBatch=!1,r.__dirty=dt|Ta|Ci})(),e})(wo),MM=pe({strokeFirst:!0,font:rn,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},__),vl=(function(t){G(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.hasStroke=function(){return e_(this.style)},e.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},e.prototype.createStyle=function(r){return So(MM,r)},e.prototype.setBoundingRect=function(r){this._rect=r},e.prototype.getBoundingRect=function(){return this._rect||(this._rect=TD(this.style)),this._rect},e.initDefaultProps=(function(){var r=e.prototype;r.dirtyRectTolerance=10})(),e})(wo);vl.prototype.type="tspan";var AM=pe({x:0,y:0},$n),EM={style:pe({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},ou.style)};function RM(t){return!!(t&&typeof t!="string"&&t.width&&t.height)}var Ar=(function(t){G(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.createStyle=function(r){return So(AM,r)},e.prototype._getSize=function(r){var n=this.style,i=n[r];if(i!=null)return i;var a=RM(n.image)?n.image:this.__image;if(!a)return 0;var o=r==="width"?"height":"width",s=n[o];return s==null?a[r]:a[r]/a[o]*s},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return EM},e.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new re(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},e})(wo);Ar.prototype.type="image";function LM(t,e){var r=e.x,n=e.y,i=e.width,a=e.height,o=e.r,s,l,u,c;i<0&&(r=r+i,i=-i),a<0&&(n=n+a,a=-a),typeof o=="number"?s=l=u=c=o:o instanceof Array?o.length===1?s=l=u=c=o[0]:o.length===2?(s=u=o[0],l=c=o[1]):o.length===3?(s=o[0],l=c=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],c=o[3]):s=l=u=c=0;var f;s+l>i&&(f=s+l,s*=i/f,l*=i/f),u+c>i&&(f=u+c,u*=i/f,c*=i/f),l+u>a&&(f=l+u,l*=a/f,u*=a/f),s+c>a&&(f=s+c,s*=a/f,c*=a/f),t.moveTo(r+s,n),t.lineTo(r+i-l,n),l!==0&&t.arc(r+i-l,n+l,l,-Math.PI/2,0),t.lineTo(r+i,n+a-u),u!==0&&t.arc(r+i-u,n+a-u,u,0,Math.PI/2),t.lineTo(r+c,n+a),c!==0&&t.arc(r+c,n+a-c,c,Math.PI/2,Math.PI),t.lineTo(r,n+s),s!==0&&t.arc(r+s,n+s,s,Math.PI,Math.PI*1.5)}var Mi=Math.round;function b_(t,e,r){if(e){var n=e.x1,i=e.x2,a=e.y1,o=e.y2;t.x1=n,t.x2=i,t.y1=a,t.y2=o;var s=r&&r.lineWidth;return s&&(Mi(n*2)===Mi(i*2)&&(t.x1=t.x2=Fn(n,s,!0)),Mi(a*2)===Mi(o*2)&&(t.y1=t.y2=Fn(a,s,!0))),t}}function S_(t,e,r){if(e){var n=e.x,i=e.y,a=e.width,o=e.height;t.x=n,t.y=i,t.width=a,t.height=o;var s=r&&r.lineWidth;return s&&(t.x=Fn(n,s,!0),t.y=Fn(i,s,!0),t.width=Math.max(Fn(n+a,s,!1)-t.x,a===0?0:1),t.height=Math.max(Fn(i+o,s,!1)-t.y,o===0?0:1)),t}}function Fn(t,e,r){if(!e)return t;var n=Mi(t*2);return(n+Mi(e))%2===0?n/2:(n+(r?1:-1))/2}var PM=(function(){function t(){this.x=0,this.y=0,this.width=0,this.height=0}return t})(),IM={},De=(function(t){G(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new PM},e.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var l=S_(IM,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?LM(r,n):r.rect(i,a,o,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e})(ge);De.prototype.type="rect";var _p={fill:"#000"},bp=2,Qt={},OM={style:pe({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},ou.style)},je=(function(t){G(e,t);function e(r){var n=t.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=_p,n.attr(r),n}return e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){t.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var r=0;r<this._children.length;r++){var n=this._children[r];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 r=this.innerTransformable;r?(r.updateTransform(),r.transform&&(this.transform=r.transform)):t.prototype.updateTransform.call(this)},e.prototype.getLocalTransform=function(r){var n=this.innerTransformable;return n?n.getLocalTransform(r):t.prototype.getLocalTransform.call(this,r)},e.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),t.prototype.getComputedTransform.call(this)},e.prototype._updateSubTexts=function(){this._childCursor=0,zM(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},e.prototype.addSelfToZr=function(r){t.prototype.addSelfToZr.call(this,r);for(var n=0;n<this._children.length;n++)this._children[n].__zr=r},e.prototype.removeSelfFromZr=function(r){t.prototype.removeSelfFromZr.call(this,r);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 r=new re(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?(r.copy(l),r.applyTransform(u),a=a||r.clone(),a.union(r)):(a=a||l.clone(),a.union(l))}this._rect=a||r}return this._rect},e.prototype.setDefaultTextStyle=function(r){this._defaultStyle=r||_p},e.prototype.setTextContent=function(r){},e.prototype._mergeStyle=function(r,n){if(!n)return r;var i=n.rich,a=r.rich||i&&{};return F(r,n),i&&a?(this._mergeRich(a,i),r.rich=a):a&&(r.rich=a),r},e.prototype._mergeRich=function(r,n){for(var i=Se(n),a=0;a<i.length;a++){var o=i[a];r[o]=r[o]||{},F(r[o],n[o])}},e.prototype.getAnimationStyleProps=function(){return OM},e.prototype._getOrCreateChild=function(r){var n=this._children[this._childCursor];return(!n||!(n instanceof r))&&(n=new r),this._children[this._childCursor++]=n,n.__zr=this.__zr,n.parent=this,n},e.prototype._updatePlainTexts=function(){var r=this.style,n=r.font||rn,i=r.padding,a=this._defaultStyle,o=r.x||0,s=r.y||0,l=r.align||a.align||"left",u=r.verticalAlign||a.verticalAlign||"top";tp(Qt,a.overflowRect,o,s,l,u),o=Qt.baseX,s=Qt.baseY;var c=Mp(r),f=mD(c,r,Qt.outerWidth,Qt.outerHeight),v=rc(r),h=!!r.backgroundColor,d=f.outerHeight,p=f.outerWidth,g=f.lines,m=f.lineHeight;this.isTruncated=!!f.isTruncated;var y=o,_=Wn(s,f.contentHeight,u);if(v||i){var b=Fi(o,p,l),S=Wn(s,d,u);v&&this._renderBackground(r,r,b,S,p,d)}_+=m/2,i&&(y=Dp(o,l,i),u==="top"?_+=i[0]:u==="bottom"&&(_-=i[2]));for(var x=0,w=!1,T=!1,M=Cp("fill"in r?r.fill:(T=!0,a.fill)),A=Tp("stroke"in r?r.stroke:!h&&(!a.autoStroke||T)?(x=bp,w=!0,a.stroke):null),D=r.textShadowBlur>0,P=0;P<g.length;P++){var E=this._getOrCreateChild(vl),L=E.createStyle();E.useStyle(L),L.text=g[P],L.x=y,L.y=_,L.textAlign=l,L.textBaseline="middle",L.opacity=r.opacity,L.strokeFirst=!0,D&&(L.shadowBlur=r.textShadowBlur||0,L.shadowColor=r.textShadowColor||"transparent",L.shadowOffsetX=r.textShadowOffsetX||0,L.shadowOffsetY=r.textShadowOffsetY||0),L.stroke=A,L.fill=M,A&&(L.lineWidth=r.lineWidth||x,L.lineDash=r.lineDash,L.lineDashOffset=r.lineDashOffset||0),L.font=n,xp(L,r),_+=m,E.setBoundingRect(Lf(L,f.contentWidth,f.calculatedLineHeight,w?0:null))}},e.prototype._updateRichTexts=function(){var r=this.style,n=this._defaultStyle,i=r.align||n.align,a=r.verticalAlign||n.verticalAlign,o=r.x||0,s=r.y||0;tp(Qt,n.overflowRect,o,s,i,a),o=Qt.baseX,s=Qt.baseY;var l=Mp(r),u=bD(l,r,Qt.outerWidth,Qt.outerHeight,i),c=u.width,f=u.outerWidth,v=u.outerHeight,h=r.padding;this.isTruncated=!!u.isTruncated;var d=Fi(o,f,i),p=Wn(s,v,a),g=d,m=p;h&&(g+=h[3],m+=h[0]);var y=g+c;rc(r)&&this._renderBackground(r,r,d,p,f,v);for(var _=!!r.backgroundColor,b=0;b<u.lines.length;b++){for(var S=u.lines[b],x=S.tokens,w=x.length,T=S.lineHeight,M=S.width,A=0,D=g,P=y,E=w-1,L=void 0;A<w&&(L=x[A],!L.align||L.align==="left");)this._placeToken(L,r,T,m,D,"left",_),M-=L.width,D+=L.width,A++;for(;E>=0&&(L=x[E],L.align==="right");)this._placeToken(L,r,T,m,P,"right",_),M-=L.width,P-=L.width,E--;for(D+=(c-(D-g)-(y-P)-M)/2;A<=E;)L=x[A],this._placeToken(L,r,T,m,D+L.width/2,"center",_),D+=L.width,A++;m+=T}},e.prototype._placeToken=function(r,n,i,a,o,s,l){var u=n.rich[r.styleName]||{};u.text=r.text;var c=r.verticalAlign,f=a+i/2;c==="top"?f=a+r.height/2:c==="bottom"&&(f=a+i-r.height/2);var v=!r.isLineHolder&&rc(u);v&&this._renderBackground(u,n,s==="right"?o-r.width:s==="center"?o-r.width/2:o,f-r.height/2,r.width,r.height);var h=!!u.backgroundColor,d=r.textPadding;d&&(o=Dp(o,s,d),f-=r.height/2-d[0]-r.innerHeight/2);var p=this._getOrCreateChild(vl),g=p.createStyle();p.useStyle(g);var m=this._defaultStyle,y=!1,_=0,b=!1,S=Cp("fill"in u?u.fill:"fill"in n?n.fill:(y=!0,m.fill)),x=Tp("stroke"in u?u.stroke:"stroke"in n?n.stroke:!h&&!l&&(!m.autoStroke||y)?(_=bp,b=!0,m.stroke):null),w=u.textShadowBlur>0||n.textShadowBlur>0;g.text=r.text,g.x=o,g.y=f,w&&(g.shadowBlur=u.textShadowBlur||n.textShadowBlur||0,g.shadowColor=u.textShadowColor||n.textShadowColor||"transparent",g.shadowOffsetX=u.textShadowOffsetX||n.textShadowOffsetX||0,g.shadowOffsetY=u.textShadowOffsetY||n.textShadowOffsetY||0),g.textAlign=s,g.textBaseline="middle",g.font=r.font||rn,g.opacity=Zr(u.opacity,n.opacity,1),xp(g,u),x&&(g.lineWidth=Zr(u.lineWidth,n.lineWidth,_),g.lineDash=K(u.lineDash,n.lineDash),g.lineDashOffset=n.lineDashOffset||0,g.stroke=x),S&&(g.fill=S),p.setBoundingRect(Lf(g,r.contentWidth,r.contentHeight,b?0:null))},e.prototype._renderBackground=function(r,n,i,a,o,s){var l=r.backgroundColor,u=r.borderWidth,c=r.borderColor,f=l&&l.image,v=l&&!f,h=r.borderRadius,d=this,p,g;if(v||r.lineHeight||u&&c){p=this._getOrCreateChild(De),p.useStyle(p.createStyle()),p.style.fill=null;var m=p.shape;m.x=i,m.y=a,m.width=o,m.height=s,m.r=h,p.dirtyShape()}if(v){var y=p.style;y.fill=l||null,y.fillOpacity=K(r.fillOpacity,1)}else if(f){g=this._getOrCreateChild(Ar),g.onload=function(){d.dirtyStyle()};var _=g.style;_.image=l.image,_.x=i,_.y=a,_.width=o,_.height=s}if(u&&c){var y=p.style;y.lineWidth=u,y.stroke=c,y.strokeOpacity=K(r.strokeOpacity,1),y.lineDash=r.borderDash,y.lineDashOffset=r.borderDashOffset||0,p.strokeContainThreshold=0,p.hasFill()&&p.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var b=(p||g).style;b.shadowBlur=r.shadowBlur||0,b.shadowColor=r.shadowColor||"transparent",b.shadowOffsetX=r.shadowOffsetX||0,b.shadowOffsetY=r.shadowOffsetY||0,b.opacity=Zr(r.opacity,n.opacity,1)},e.makeFont=function(r){var n="";return FM(r)&&(n=[r.fontStyle,r.fontWeight,BM(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),n&&Ut(n)||r.textFont||r.font},e})(wo),kM={left:!0,right:1,center:1},NM={top:1,bottom:1,middle:1},Sp=["fontStyle","fontWeight","fontSize","fontFamily"];function BM(t){return typeof t=="string"&&(t.indexOf("px")!==-1||t.indexOf("rem")!==-1||t.indexOf("em")!==-1)?t:isNaN(+t)?Jh+"px":t+"px"}function xp(t,e){for(var r=0;r<Sp.length;r++){var n=Sp[r],i=e[n];i!=null&&(t[n]=i)}}function FM(t){return t.fontSize!=null||t.fontFamily||t.fontWeight}function zM(t){return wp(t),C(t.rich,wp),t}function wp(t){if(t){t.font=je.makeFont(t);var e=t.align;e==="middle"&&(e="center"),t.align=e==null||kM[e]?e:"left";var r=t.verticalAlign;r==="center"&&(r="middle"),t.verticalAlign=r==null||NM[r]?r:"top";var n=t.padding;n&&(t.padding=Jl(t.padding))}}function Tp(t,e){return t==null||e<=0||t==="transparent"||t==="none"?null:t.image||t.colorStops?"#000":t}function Cp(t){return t==null||t==="none"?null:t.image||t.colorStops?"#000":t}function Dp(t,e,r){return e==="right"?t-r[1]:e==="center"?t+r[3]/2-r[1]/2:t+r[3]}function Mp(t){var e=t.text;return e!=null&&(e+=""),e}function rc(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}var Ap=1e-4,x_=20;function HM(t){return t.replace(/^\s+|\s+$/g,"")}var Xa=Math.min,pt=Math.max,ir=Math.abs;function dl(t,e,r,n){var i=e[0],a=e[1],o=r[0],s=r[1],l=a-i,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(n)if(l>0){if(t<=i)return o;if(t>=a)return s}else{if(t>=i)return o;if(t<=a)return s}else{if(t===i)return o;if(t===a)return s}return(t-i)/l*u+o}var be=UM;function UM(t,e,r){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%";break}return $f(t,e,r)}function $f(t,e,r){return Y(t)?HM(t).match(/%$/)?parseFloat(t)/100*e+(r||0):parseFloat(t):t==null?NaN:+t}function We(t,e,r){return e==null&&(e=10),e=Math.min(Math.max(0,e),x_),t=(+t).toFixed(e),r?t:+t}function GM(t){return t.sort(function(e,r){return e-r}),t}function Hi(t){if(t=+t,isNaN(t))return 0;if(t>1e-14){for(var e=1,r=0;r<15;r++,e*=10)if(Math.round(t*e)/e===t)return r}return w_(t)}function w_(t){var e=t.toString().toLowerCase(),r=e.indexOf("e"),n=r>0?+e.slice(r+1):0,i=r>0?r:e.length,a=e.indexOf("."),o=a<0?0:i-1-a;return Math.max(0,o-n)}function T_(t,e){var r=Math.log,n=Math.LN10,i=Math.floor(r(t[1]-t[0])/n),a=Math.round(r(ir(e[1]-e[0]))/n),o=Math.min(Math.max(-i+a,0),20);return isFinite(o)?o:20}function VM(t,e,r){if(!t[e])return 0;var n=C_(t,r);return n[e]||0}function C_(t,e){var r=cr(t,function(h,d){return h+(isNaN(d)?0:d)},0);if(r===0)return[];for(var n=Math.pow(10,e),i=X(t,function(h){return(isNaN(h)?0:h)/r*n*100}),a=n*100,o=X(i,function(h){return Math.floor(h)}),s=cr(o,function(h,d){return h+d},0),l=X(i,function(h,d){return h-o[d]});s<a;){for(var u=Number.NEGATIVE_INFINITY,c=null,f=0,v=l.length;f<v;++f)l[f]>u&&(u=l[f],c=f);++o[c],l[c]=0,++s}return X(o,function(h){return h/n})}function WM(t,e){var r=Math.max(Hi(t),Hi(e)),n=t+e;return r>x_?n:We(n,r)}var jM=9007199254740991;function fv(t){var e=Math.PI*2;return(t%e+e)%e}function Za(t){return t>-Ap&&t<Ap}var $M=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function Er(t){if(t instanceof Date)return t;if(Y(t)){var e=$M.exec(t);if(!e)return new Date(NaN);if(e[8]){var r=+e[4]||0;return e[8].toUpperCase()!=="Z"&&(r-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,r,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}else return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0)}else if(t==null)return new Date(NaN);return new Date(Math.round(t))}function D_(t){return Math.pow(10,su(t))}function su(t){if(t===0)return 0;var e=Math.floor(Math.log(t)/Math.LN10);return t/Math.pow(10,e)>=10&&e++,e}function hv(t,e){var r=su(t),n=Math.pow(10,r),i=t/n,a;return 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,t=a*n,r>=-20?+t.toFixed(r<0?-r:0):t}function YM(t,e){var r=(t.length-1)*e+1,n=Math.floor(r),i=+t[n-1],a=r-n;return a?i+a*(t[n]-i):i}function qM(t){t.sort(function(l,u){return s(l,u,0)?-1:1});for(var e=-1/0,r=1,n=0;n<t.length;){for(var i=t[n].interval,a=t[n].close,o=0;o<2;o++)i[o]<=e&&(i[o]=e,a[o]=o?1:1-r),e=i[o],r=a[o];i[0]===i[1]&&a[0]*a[1]!==1?t.splice(n,1):n++}return t;function s(l,u,c){return l.interval[c]<u.interval[c]||l.interval[c]===u.interval[c]&&(l.close[c]-u.close[c]===(c?-1:1)||!c&&s(l,u,1))}}function Ka(t){var e=parseFloat(t);return e==t&&(e!==0||!Y(t)||t.indexOf("x")<=0)?e:NaN}function M_(t){return!isNaN(Ka(t))}function A_(){return Math.round(Math.random()*9)}function E_(t,e){return e===0?t:E_(e,t%e)}function Ep(t,e){return t==null?e:e==null?t:t*e/E_(t,e)}var XM="[ECharts] ",ZM=typeof console<"u"&&console.warn&&console.log;function KM(t,e,r){ZM&&console[t](XM+e)}function R_(t,e){KM("error",t)}function ot(t){throw new Error(t)}var L_="series\0",QM="\0_ec_\0";function tt(t){return t instanceof Array?t:t==null?[]:[t]}function Yf(t,e,r){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var n=0,i=r.length;n<i;n++){var a=r[n];!t.emphasis[e].hasOwnProperty(a)&&t[e].hasOwnProperty(a)&&(t.emphasis[e][a]=t[e][a])}}}var Rp=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function To(t){return q(t)&&!W(t)&&!(t instanceof Date)?t.value:t}function JM(t){return q(t)&&!(t instanceof Array)}function eA(t,e,r){var n=r==="normalMerge",i=r==="replaceMerge",a=r==="replaceAll";t=t||[],e=(e||[]).slice();var o=ae();C(e,function(l,u){if(!q(l)){e[u]=null;return}});var s=tA(t,o,r);return(n||i)&&rA(s,t,o,e),n&&nA(s,e),n||i?iA(s,e,i):a&&aA(s,e),oA(s),s}function tA(t,e,r){var n=[];if(r==="replaceAll")return n;for(var i=0;i<t.length;i++){var a=t[i];a&&a.id!=null&&e.set(a.id,i),n.push({existing:r==="replaceMerge"||Qa(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return n}function rA(t,e,r,n){C(n,function(i,a){if(!(!i||i.id==null)){var o=Oa(i.id),s=r.get(o);if(s!=null){var l=t[s];fr(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=i,l.existing=e[s],n[a]=null}}})}function nA(t,e){C(e,function(r,n){if(!(!r||r.name==null))for(var i=0;i<t.length;i++){var a=t[i].existing;if(!t[i].newOption&&a&&(a.id==null||r.id==null)&&!Qa(r)&&!Qa(a)&&P_("name",a,r)){t[i].newOption=r,e[n]=null;return}}})}function iA(t,e,r){C(e,function(n){if(n){for(var i,a=0;(i=t[a])&&(i.newOption||Qa(i.existing)||i.existing&&n.id!=null&&!P_("id",n,i.existing));)a++;i?(i.newOption=n,i.brandNew=r):t.push({newOption:n,brandNew:r,existing:null,keyInfo:null}),a++}})}function aA(t,e){C(e,function(r){t.push({newOption:r,brandNew:!0,existing:null,keyInfo:null})})}function oA(t){var e=ae();C(t,function(r){var n=r.existing;n&&e.set(n.id,r)}),C(t,function(r){var n=r.newOption;fr(!n||n.id==null||!e.get(n.id)||e.get(n.id)===r,"id duplicates: "+(n&&n.id)),n&&n.id!=null&&e.set(n.id,r),!r.keyInfo&&(r.keyInfo={})}),C(t,function(r,n){var i=r.existing,a=r.newOption,o=r.keyInfo;if(q(a)){if(o.name=a.name!=null?Oa(a.name):i?i.name:L_+n,i)o.id=Oa(i.id);else if(a.id!=null)o.id=Oa(a.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(e.get(o.id))}e.set(o.id,r)}})}function P_(t,e,r){var n=sr(e[t],null),i=sr(r[t],null);return n!=null&&i!=null&&n===i}function Oa(t){return sr(t,"")}function sr(t,e){return t==null?e:Y(t)?t:me(t)||rl(t)?t+"":e}function vv(t){var e=t.name;return!!(e&&e.indexOf(L_))}function Qa(t){return t&&t.id!=null&&Oa(t.id).indexOf(QM)===0}function sA(t,e,r){C(t,function(n){var i=n.newOption;q(i)&&(n.keyInfo.mainType=e,n.keyInfo.subType=lA(e,i,n.existing,r))})}function lA(t,e,r,n){var i=e.type?e.type:r?r.subType:n.determineSubType(t,e);return i}function Co(t,e){if(e.dataIndexInside!=null)return e.dataIndexInside;if(e.dataIndex!=null)return W(e.dataIndex)?X(e.dataIndex,function(r){return t.indexOfRawIndex(r)}):t.indexOfRawIndex(e.dataIndex);if(e.name!=null)return W(e.name)?X(e.name,function(r){return t.indexOfName(r)}):t.indexOfName(e.name)}function xe(){var t="__ec_inner_"+uA++;return function(e){return e[t]||(e[t]={})}}var uA=A_();function nc(t,e,r){var n=dv(e,r),i=n.mainTypeSpecified,a=n.queryOptionMap,o=n.others,s=o,l=r?r.defaultMainType:null;return!i&&l&&a.set(l,{}),a.each(function(u,c){var f=Do(t,c,u,{useDefault:l===c,enableAll:r&&r.enableAll!=null?r.enableAll:!0,enableNone:r&&r.enableNone!=null?r.enableNone:!0});s[c+"Models"]=f.models,s[c+"Model"]=f.models[0]}),s}function dv(t,e){var r;if(Y(t)){var n={};n[t+"Index"]=0,r=n}else r=t;var i=ae(),a={},o=!1;return C(r,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){a[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],c=u[1],f=(u[2]||"").toLowerCase();if(!(!c||!f||e&&e.includeMainTypes&&le(e.includeMainTypes,c)<0)){o=o||!!c;var v=i.get(c)||i.set(c,{});v[f]=s}}),{mainTypeSpecified:o,queryOptionMap:i,others:a}}var Et={useDefault:!0,enableAll:!1,enableNone:!1};function Do(t,e,r,n){n=n||Et;var i=r.index,a=r.id,o=r.name,s={models:null,specified:i!=null||a!=null||o!=null};if(!s.specified){var l=void 0;return s.models=n.useDefault&&(l=t.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=t.queryComponents({mainType:e,index:i,id:a,name:o}),s}function I_(t,e,r){t.setAttribute?t.setAttribute(e,r):t[e]=r}function cA(t,e){return t.getAttribute?t.getAttribute(e):t[e]}function fA(t){return t==="auto"?te.domSupported?"html":"richText":t||"html"}var he=xe(),hA=function(t,e,r,n){if(n){var i=he(n);i.dataIndex=r,i.dataType=e,i.seriesIndex=t,i.ssrType="chart",n.type==="group"&&n.traverse(function(a){var o=he(a);o.seriesIndex=t,o.dataIndex=r,o.dataType=e,o.ssrType="chart"})}},Lp=1,Pp={},O_=xe(),pv=xe(),k_=0,gv=1,mv=2,hr=["emphasis","blur","select"],pl=["normal","emphasis","blur","select"],vA=10,dA=9,Yn="highlight",Us="downplay",gl="select",qf="unselect",ml="toggleSelect",yv="selectchanged";function ui(t){return t!=null&&t!=="none"}function lu(t,e,r){t.onHoverStateChange&&(t.hoverState||0)!==r&&t.onHoverStateChange(e),t.hoverState=r}function N_(t){lu(t,"emphasis",mv)}function B_(t){t.hoverState===mv&&lu(t,"normal",k_)}function _v(t){lu(t,"blur",gv)}function F_(t){t.hoverState===gv&&lu(t,"normal",k_)}function pA(t){t.selected=!0}function gA(t){t.selected=!1}function Ip(t,e,r){e(t,r)}function Rr(t,e,r){Ip(t,e,r),t.isGroup&&t.traverse(function(n){Ip(n,e,r)})}function mA(t,e,r,n){for(var i=t.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<t.animators.length;o++){var u=t.animators[o];u.__fromStateTransition&&u.__fromStateTransition.indexOf(r)<0&&u.targetName==="style"&&u.saveTo(a,e)}return a}function yA(t,e,r,n){var i=r&&le(r,"select")>=0,a=!1;if(t instanceof ge){var o=O_(t),s=i&&o.selectFill||o.normalFill,l=i&&o.selectStroke||o.normalStroke;if(ui(s)||ui(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(a=!0,n=F({},n),u=F({},u),u.fill=s):!ui(u.fill)&&ui(s)?(a=!0,n=F({},n),u=F({},u),u.fill=Bf(s)):!ui(u.stroke)&&ui(l)&&(a||(n=F({},n),u=F({},u)),u.stroke=Bf(l)),n.style=u}}if(n&&n.z2==null){a||(n=F({},n));var c=t.z2EmphasisLift;n.z2=t.z2+(c??vA)}return n}function _A(t,e,r){if(r&&r.z2==null){r=F({},r);var n=t.z2SelectLift;r.z2=t.z2+(n??dA)}return r}function bA(t,e,r){var n=le(t.currentStates,e)>=0,i=t.style.opacity,a=n?null:mA(t,["opacity"],e,{opacity:1});r=r||{};var o=r.style||{};return o.opacity==null&&(r=F({},r),o=F({opacity:n?i:a.opacity*.1},o),r.style=o),r}function ic(t,e){var r=this.states[t];if(this.style){if(t==="emphasis")return yA(this,t,e,r);if(t==="blur")return bA(this,t,r);if(t==="select")return _A(this,t,r)}return r}function SA(t){t.stateProxy=ic;var e=t.getTextContent(),r=t.getTextGuideLine();e&&(e.stateProxy=ic),r&&(r.stateProxy=ic)}function Op(t,e){!G_(t,e)&&!t.__highByOuter&&Rr(t,N_)}function kp(t,e){!G_(t,e)&&!t.__highByOuter&&Rr(t,B_)}function yl(t,e){t.__highByOuter|=1<<(e||0),Rr(t,N_)}function _l(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&Rr(t,B_)}function xA(t){Rr(t,_v)}function z_(t){Rr(t,F_)}function H_(t){Rr(t,pA)}function U_(t){Rr(t,gA)}function G_(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function V_(t){var e=t.getModel(),r=[],n=[];e.eachComponent(function(i,a){var o=pv(a),s=i==="series",l=s?t.getViewOfSeriesModel(a):t.getViewOfComponentModel(a);!s&&n.push(l),o.isBlured&&(l.group.traverse(function(u){F_(u)}),s&&r.push(a)),o.isBlured=!1}),C(n,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(r,!1,e)})}function Xf(t,e,r,n){var i=n.getModel();r=r||"coordinateSystem";function a(u,c){for(var f=0;f<c.length;f++){var v=u.getItemGraphicEl(c[f]);v&&z_(v)}}if(t!=null&&!(!e||e==="none")){var o=i.getSeriesByIndex(t),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];i.eachSeries(function(u){var c=o===u,f=u.coordinateSystem;f&&f.master&&(f=f.master);var v=f&&s?f===s:c;if(!(r==="series"&&!c||r==="coordinateSystem"&&!v||e==="series"&&c)){var h=n.getViewOfSeriesModel(u);if(h.group.traverse(function(g){g.__highByOuter&&c&&e==="self"||_v(g)}),rt(e))a(u.getData(),e);else if(q(e))for(var d=Se(e),p=0;p<d.length;p++)a(u.getData(d[p]),e[d[p]]);l.push(u),pv(u).isBlured=!0}}),i.eachComponent(function(u,c){if(u!=="series"){var f=n.getViewOfComponentModel(c);f&&f.toggleBlurSeries&&f.toggleBlurSeries(l,!0,i)}})}}function Zf(t,e,r){if(!(t==null||e==null)){var n=r.getModel().getComponent(t,e);if(n){pv(n).isBlured=!0;var i=r.getViewOfComponentModel(n);!i||!i.focusBlurEnabled||i.group.traverse(function(a){_v(a)})}}}function wA(t,e,r){var n=t.seriesIndex,i=t.getData(e.dataType);if(i){var a=Co(i,e);a=(W(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=he(o);Xf(n,u.focus,u.blurScope,r)}else{var c=t.get(["emphasis","focus"]),f=t.get(["emphasis","blurScope"]);c!=null&&Xf(n,c,f,r)}}}function bv(t,e,r,n){var i={focusSelf:!1,dispatchers:null};if(t==null||t==="series"||e==null||r==null)return i;var a=n.getModel().getComponent(t,e);if(!a)return i;var o=n.getViewOfComponentModel(a);if(!o||!o.findHighDownDispatchers)return i;for(var s=o.findHighDownDispatchers(r),l,u=0;u<s.length;u++)if(he(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function TA(t,e,r){var n=he(t),i=bv(n.componentMainType,n.componentIndex,n.componentHighDownName,r),a=i.dispatchers,o=i.focusSelf;a?(o&&Zf(n.componentMainType,n.componentIndex,r),C(a,function(s){return Op(s,e)})):(Xf(n.seriesIndex,n.focus,n.blurScope,r),n.focus==="self"&&Zf(n.componentMainType,n.componentIndex,r),Op(t,e))}function CA(t,e,r){V_(r);var n=he(t),i=bv(n.componentMainType,n.componentIndex,n.componentHighDownName,r).dispatchers;i?C(i,function(a){return kp(a,e)}):kp(t,e)}function DA(t,e,r){if(Qf(e)){var n=e.dataType,i=t.getData(n),a=Co(i,e);W(a)||(a=[a]),t[e.type===ml?"toggleSelect":e.type===gl?"select":"unselect"](a,n)}}function Np(t){var e=t.getAllData();C(e,function(r){var n=r.data,i=r.type;n.eachItemGraphicEl(function(a,o){t.isSelected(o,i)?H_(a):U_(a)})})}function MA(t){var e=[];return t.eachSeries(function(r){var n=r.getAllData();C(n,function(i){i.data;var a=i.type,o=r.getSelectedDataIndices();if(o.length>0){var s={dataIndex:o,seriesIndex:r.seriesIndex};a!=null&&(s.dataType=a),e.push(s)}})}),e}function bl(t,e,r){j_(t,!0),Rr(t,SA),EA(t,e,r)}function AA(t){j_(t,!1)}function Sv(t,e,r,n){n?AA(t):bl(t,e,r)}function EA(t,e,r){var n=he(t);e!=null?(n.focus=e,n.blurScope=r):n.focus&&(n.focus=null)}var Bp=["emphasis","blur","select"],RA={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function W_(t,e,r,n){r=r||"itemStyle";for(var i=0;i<Bp.length;i++){var a=Bp[i],o=e.getModel([a,r]),s=t.ensureState(a);s.style=o[RA[r]]()}}function j_(t,e){var r=e===!1,n=t;t.highDownSilentOnTouch&&(n.__highDownSilentOnTouch=t.highDownSilentOnTouch),(!r||n.__highDownDispatcher)&&(n.__highByOuter=n.__highByOuter||0,n.__highDownDispatcher=!r)}function Kf(t){return!!(t&&t.__highDownDispatcher)}function LA(t){var e=Pp[t];return e==null&&Lp<=32&&(e=Pp[t]=Lp++),e}function Qf(t){var e=t.type;return e===gl||e===qf||e===ml}function Fp(t){var e=t.type;return e===Yn||e===Us}function PA(t){var e=O_(t);e.normalFill=t.style.fill,e.normalStroke=t.style.stroke;var r=t.states.select||{};e.selectFill=r.style&&r.style.fill||null,e.selectStroke=r.style&&r.style.stroke||null}var ci=zi.CMD,IA=[[],[],[]],zp=Math.sqrt,OA=Math.atan2;function kA(t,e){if(e){var r=t.data,n=t.len(),i,a,o,s,l,u,c=ci.M,f=ci.C,v=ci.L,h=ci.R,d=ci.A,p=ci.Q;for(o=0,s=0;o<n;){switch(i=r[o++],s=o,a=0,i){case c:a=1;break;case v:a=1;break;case f:a=3;break;case p:a=2;break;case d:var g=e[4],m=e[5],y=zp(e[0]*e[0]+e[1]*e[1]),_=zp(e[2]*e[2]+e[3]*e[3]),b=OA(-e[1]/_,e[0]/y);r[o]*=y,r[o++]+=g,r[o]*=_,r[o++]+=m,r[o++]*=y,r[o++]*=_,r[o++]+=b,r[o++]+=b,o+=2,s=o;break;case h:u[0]=r[o++],u[1]=r[o++],et(u,u,e),r[s++]=u[0],r[s++]=u[1],u[0]+=r[o++],u[1]+=r[o++],et(u,u,e),r[s++]=u[0],r[s++]=u[1]}for(l=0;l<a;l++){var S=IA[l];S[0]=r[o++],S[1]=r[o++],et(S,S,e),r[s++]=S[0],r[s++]=S[1]}}t.increaseVersion()}}var ac=Math.sqrt,qo=Math.sin,Xo=Math.cos,ea=Math.PI;function Hp(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function Jf(t,e){return(t[0]*e[0]+t[1]*e[1])/(Hp(t)*Hp(e))}function Up(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(Jf(t,e))}function Gp(t,e,r,n,i,a,o,s,l,u,c){var f=l*(ea/180),v=Xo(f)*(t-r)/2+qo(f)*(e-n)/2,h=-1*qo(f)*(t-r)/2+Xo(f)*(e-n)/2,d=v*v/(o*o)+h*h/(s*s);d>1&&(o*=ac(d),s*=ac(d));var p=(i===a?-1:1)*ac((o*o*(s*s)-o*o*(h*h)-s*s*(v*v))/(o*o*(h*h)+s*s*(v*v)))||0,g=p*o*h/s,m=p*-s*v/o,y=(t+r)/2+Xo(f)*g-qo(f)*m,_=(e+n)/2+qo(f)*g+Xo(f)*m,b=Up([1,0],[(v-g)/o,(h-m)/s]),S=[(v-g)/o,(h-m)/s],x=[(-1*v-g)/o,(-1*h-m)/s],w=Up(S,x);if(Jf(S,x)<=-1&&(w=ea),Jf(S,x)>=1&&(w=0),w<0){var T=Math.round(w/ea*1e6)/1e6;w=ea*2+T%2*ea}c.addData(u,y,_,o,s,b,w,f,a)}var NA=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,BA=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function FA(t){var e=new zi;if(!t)return e;var r=0,n=0,i=r,a=n,o,s=zi.CMD,l=t.match(NA);if(!l)return e;for(var u=0;u<l.length;u++){for(var c=l[u],f=c.charAt(0),v=void 0,h=c.match(BA)||[],d=h.length,p=0;p<d;p++)h[p]=parseFloat(h[p]);for(var g=0;g<d;){var m=void 0,y=void 0,_=void 0,b=void 0,S=void 0,x=void 0,w=void 0,T=r,M=n,A=void 0,D=void 0;switch(f){case"l":r+=h[g++],n+=h[g++],v=s.L,e.addData(v,r,n);break;case"L":r=h[g++],n=h[g++],v=s.L,e.addData(v,r,n);break;case"m":r+=h[g++],n+=h[g++],v=s.M,e.addData(v,r,n),i=r,a=n,f="l";break;case"M":r=h[g++],n=h[g++],v=s.M,e.addData(v,r,n),i=r,a=n,f="L";break;case"h":r+=h[g++],v=s.L,e.addData(v,r,n);break;case"H":r=h[g++],v=s.L,e.addData(v,r,n);break;case"v":n+=h[g++],v=s.L,e.addData(v,r,n);break;case"V":n=h[g++],v=s.L,e.addData(v,r,n);break;case"C":v=s.C,e.addData(v,h[g++],h[g++],h[g++],h[g++],h[g++],h[g++]),r=h[g-2],n=h[g-1];break;case"c":v=s.C,e.addData(v,h[g++]+r,h[g++]+n,h[g++]+r,h[g++]+n,h[g++]+r,h[g++]+n),r+=h[g-2],n+=h[g-1];break;case"S":m=r,y=n,A=e.len(),D=e.data,o===s.C&&(m+=r-D[A-4],y+=n-D[A-3]),v=s.C,T=h[g++],M=h[g++],r=h[g++],n=h[g++],e.addData(v,m,y,T,M,r,n);break;case"s":m=r,y=n,A=e.len(),D=e.data,o===s.C&&(m+=r-D[A-4],y+=n-D[A-3]),v=s.C,T=r+h[g++],M=n+h[g++],r+=h[g++],n+=h[g++],e.addData(v,m,y,T,M,r,n);break;case"Q":T=h[g++],M=h[g++],r=h[g++],n=h[g++],v=s.Q,e.addData(v,T,M,r,n);break;case"q":T=h[g++]+r,M=h[g++]+n,r+=h[g++],n+=h[g++],v=s.Q,e.addData(v,T,M,r,n);break;case"T":m=r,y=n,A=e.len(),D=e.data,o===s.Q&&(m+=r-D[A-4],y+=n-D[A-3]),r=h[g++],n=h[g++],v=s.Q,e.addData(v,m,y,r,n);break;case"t":m=r,y=n,A=e.len(),D=e.data,o===s.Q&&(m+=r-D[A-4],y+=n-D[A-3]),r+=h[g++],n+=h[g++],v=s.Q,e.addData(v,m,y,r,n);break;case"A":_=h[g++],b=h[g++],S=h[g++],x=h[g++],w=h[g++],T=r,M=n,r=h[g++],n=h[g++],v=s.A,Gp(T,M,r,n,x,w,_,b,S,v,e);break;case"a":_=h[g++],b=h[g++],S=h[g++],x=h[g++],w=h[g++],T=r,M=n,r+=h[g++],n+=h[g++],v=s.A,Gp(T,M,r,n,x,w,_,b,S,v,e);break}}(f==="z"||f==="Z")&&(v=s.Z,e.addData(v),r=i,n=a),o=v}return e.toStatic(),e}var $_=(function(t){G(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.applyTransform=function(r){},e})(ge);function Y_(t){return t.setData!=null}function q_(t,e){var r=FA(t),n=F({},e);return n.buildPath=function(i){var a=Y_(i);if(a&&i.canSave()){i.appendPath(r);var o=i.getContext();o&&i.rebuildPath(o,1)}else{var o=a?i.getContext():i;o&&r.rebuildPath(o,1)}},n.applyTransform=function(i){kA(r,i),this.dirtyShape()},n}function zA(t,e){return new $_(q_(t,e))}function HA(t,e){var r=q_(t,e),n=(function(i){G(a,i);function a(o){var s=i.call(this,o)||this;return s.applyTransform=r.applyTransform,s.buildPath=r.buildPath,s}return a})($_);return n}function UA(t,e){for(var r=[],n=t.length,i=0;i<n;i++){var a=t[i];r.push(a.getUpdatedPathProxy(!0))}var o=new ge(e);return o.createPathProxy(),o.buildPath=function(s){if(Y_(s)){s.appendPath(r);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}var Ne=(function(t){G(e,t);function e(r){var n=t.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(r),n}return e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(r){return this._children[r]},e.prototype.childOfName=function(r){for(var n=this._children,i=0;i<n.length;i++)if(n[i].name===r)return n[i]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(r){return r&&r!==this&&r.parent!==this&&(this._children.push(r),this._doAdd(r)),this},e.prototype.addBefore=function(r,n){if(r&&r!==this&&r.parent!==this&&n&&n.parent===this){var i=this._children,a=i.indexOf(n);a>=0&&(i.splice(a,0,r),this._doAdd(r))}return this},e.prototype.replace=function(r,n){var i=le(this._children,r);return i>=0&&this.replaceAt(n,i),this},e.prototype.replaceAt=function(r,n){var i=this._children,a=i[n];if(r&&r!==this&&r.parent!==this&&r!==a){i[n]=r,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(r)}return this},e.prototype._doAdd=function(r){r.parent&&r.parent.remove(r),r.parent=this;var n=this.__zr;n&&n!==r.__zr&&r.addSelfToZr(n),n&&n.refresh()},e.prototype.remove=function(r){var n=this.__zr,i=this._children,a=le(i,r);return a<0?this:(i.splice(a,1),r.parent=null,n&&r.removeSelfFromZr(n),n&&n.refresh(),this)},e.prototype.removeAll=function(){for(var r=this._children,n=this.__zr,i=0;i<r.length;i++){var a=r[i];n&&a.removeSelfFromZr(n),a.parent=null}return r.length=0,this},e.prototype.eachChild=function(r,n){for(var i=this._children,a=0;a<i.length;a++){var o=i[a];r.call(n,o,a)}return this},e.prototype.traverse=function(r,n){for(var i=0;i<this._children.length;i++){var a=this._children[i],o=r.call(n,a);a.isGroup&&!o&&a.traverse(r,n)}return this},e.prototype.addSelfToZr=function(r){t.prototype.addSelfToZr.call(this,r);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.addSelfToZr(r)}},e.prototype.removeSelfFromZr=function(r){t.prototype.removeSelfFromZr.call(this,r);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.removeSelfFromZr(r)}},e.prototype.getBoundingRect=function(r){for(var n=new re(0,0,0,0),i=r||this._children,a=[],o=null,s=0;s<i.length;s++){var l=i[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),c=l.getLocalTransform(a);c?(re.applyTransform(n,u,c),o=o||n.clone(),o.union(n)):(o=o||u.clone(),o.union(u))}}return o||n},e})(au);Ne.prototype.type="group";var GA=(function(){function t(){this.cx=0,this.cy=0,this.r=0}return t})(),Mo=(function(t){G(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new GA},e.prototype.buildPath=function(r,n){r.moveTo(n.cx+n.r,n.cy),r.arc(n.cx,n.cy,n.r,0,Math.PI*2)},e})(ge);Mo.prototype.type="circle";var VA=(function(){function t(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return t})(),uu=(function(t){G(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new VA},e.prototype.buildPath=function(r,n){var i=.5522848,a=n.cx,o=n.cy,s=n.rx,l=n.ry,u=s*i,c=l*i;r.moveTo(a-s,o),r.bezierCurveTo(a-s,o-c,a-u,o-l,a,o-l),r.bezierCurveTo(a+u,o-l,a+s,o-c,a+s,o),r.bezierCurveTo(a+s,o+c,a+u,o+l,a,o+l),r.bezierCurveTo(a-u,o+l,a-s,o+c,a-s,o),r.closePath()},e})(ge);uu.prototype.type="ellipse";var X_=Math.PI,oc=X_*2,Cn=Math.sin,fi=Math.cos,WA=Math.acos,Ue=Math.atan2,Vp=Math.abs,ka=Math.sqrt,Ca=Math.max,Jt=Math.min,Bt=1e-4;function jA(t,e,r,n,i,a,o,s){var l=r-t,u=n-e,c=o-i,f=s-a,v=f*l-c*u;if(!(v*v<Bt))return v=(c*(e-a)-f*(t-i))/v,[t+v*l,e+v*u]}function Zo(t,e,r,n,i,a,o){var s=t-r,l=e-n,u=(o?a:-a)/ka(s*s+l*l),c=u*l,f=-u*s,v=t+c,h=e+f,d=r+c,p=n+f,g=(v+d)/2,m=(h+p)/2,y=d-v,_=p-h,b=y*y+_*_,S=i-a,x=v*p-d*h,w=(_<0?-1:1)*ka(Ca(0,S*S*b-x*x)),T=(x*_-y*w)/b,M=(-x*y-_*w)/b,A=(x*_+y*w)/b,D=(-x*y+_*w)/b,P=T-g,E=M-m,L=A-g,k=D-m;return P*P+E*E>L*L+k*k&&(T=A,M=D),{cx:T,cy:M,x0:-c,y0:-f,x1:T*(i/S-1),y1:M*(i/S-1)}}function $A(t){var e;if(W(t)){var r=t.length;if(!r)return t;r===1?e=[t[0],t[0],0,0]:r===2?e=[t[0],t[0],t[1],t[1]]:r===3?e=t.concat(t[2]):e=t}else e=[t,t,t,t];return e}function YA(t,e){var r,n=Ca(e.r,0),i=Ca(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 c=e.cx,f=e.cy,v=!!e.clockwise,h=Vp(u-l),d=h>oc&&h%oc;if(d>Bt&&(h=d),!(n>Bt))t.moveTo(c,f);else if(h>oc-Bt)t.moveTo(c+n*fi(l),f+n*Cn(l)),t.arc(c,f,n,l,u,!v),i>Bt&&(t.moveTo(c+i*fi(u),f+i*Cn(u)),t.arc(c,f,i,u,l,v));else{var p=void 0,g=void 0,m=void 0,y=void 0,_=void 0,b=void 0,S=void 0,x=void 0,w=void 0,T=void 0,M=void 0,A=void 0,D=void 0,P=void 0,E=void 0,L=void 0,k=n*fi(l),N=n*Cn(l),$=i*fi(u),B=i*Cn(u),U=h>Bt;if(U){var j=e.cornerRadius;j&&(r=$A(j),p=r[0],g=r[1],m=r[2],y=r[3]);var H=Vp(n-i)/2;if(_=Jt(H,m),b=Jt(H,y),S=Jt(H,p),x=Jt(H,g),M=w=Ca(_,b),A=T=Ca(S,x),(w>Bt||T>Bt)&&(D=n*fi(u),P=n*Cn(u),E=i*fi(l),L=i*Cn(l),h<X_)){var z=jA(k,N,E,L,D,P,$,B);if(z){var J=k-z[0],ce=N-z[1],Pe=D-z[0],ht=P-z[1],Ye=1/Cn(WA((J*Pe+ce*ht)/(ka(J*J+ce*ce)*ka(Pe*Pe+ht*ht)))/2),He=ka(z[0]*z[0]+z[1]*z[1]);M=Jt(w,(n-He)/(Ye+1)),A=Jt(T,(i-He)/(Ye-1))}}}if(!U)t.moveTo(c+k,f+N);else if(M>Bt){var Be=Jt(m,M),Ae=Jt(y,M),ee=Zo(E,L,k,N,n,Be,v),se=Zo(D,P,$,B,n,Ae,v);t.moveTo(c+ee.cx+ee.x0,f+ee.cy+ee.y0),M<w&&Be===Ae?t.arc(c+ee.cx,f+ee.cy,M,Ue(ee.y0,ee.x0),Ue(se.y0,se.x0),!v):(Be>0&&t.arc(c+ee.cx,f+ee.cy,Be,Ue(ee.y0,ee.x0),Ue(ee.y1,ee.x1),!v),t.arc(c,f,n,Ue(ee.cy+ee.y1,ee.cx+ee.x1),Ue(se.cy+se.y1,se.cx+se.x1),!v),Ae>0&&t.arc(c+se.cx,f+se.cy,Ae,Ue(se.y1,se.x1),Ue(se.y0,se.x0),!v))}else t.moveTo(c+k,f+N),t.arc(c,f,n,l,u,!v);if(!(i>Bt)||!U)t.lineTo(c+$,f+B);else if(A>Bt){var Be=Jt(p,A),Ae=Jt(g,A),ee=Zo($,B,D,P,i,-Ae,v),se=Zo(k,N,E,L,i,-Be,v);t.lineTo(c+ee.cx+ee.x0,f+ee.cy+ee.y0),A<T&&Be===Ae?t.arc(c+ee.cx,f+ee.cy,A,Ue(ee.y0,ee.x0),Ue(se.y0,se.x0),!v):(Ae>0&&t.arc(c+ee.cx,f+ee.cy,Ae,Ue(ee.y0,ee.x0),Ue(ee.y1,ee.x1),!v),t.arc(c,f,i,Ue(ee.cy+ee.y1,ee.cx+ee.x1),Ue(se.cy+se.y1,se.cx+se.x1),v),Be>0&&t.arc(c+se.cx,f+se.cy,Be,Ue(se.y1,se.x1),Ue(se.y0,se.x0),!v))}else t.lineTo(c+$,f+B),t.arc(c,f,i,u,l,v)}t.closePath()}}}var qA=(function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return t})(),Lr=(function(t){G(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new qA},e.prototype.buildPath=function(r,n){YA(r,n)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e})(ge);Lr.prototype.type="sector";var XA=(function(){function t(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return t})(),cu=(function(t){G(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new XA},e.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.PI*2;r.moveTo(i+n.r,a),r.arc(i,a,n.r,0,o,!1),r.moveTo(i+n.r0,a),r.arc(i,a,n.r0,0,o,!0)},e})(ge);cu.prototype.type="ring";function ZA(t,e,r,n){var i=[],a=[],o=[],s=[],l,u,c,f;if(n){c=[1/0,1/0],f=[-1/0,-1/0];for(var v=0,h=t.length;v<h;v++)Vr(c,c,t[v]),Wr(f,f,t[v]);Vr(c,c,n[0]),Wr(f,f,n[1])}for(var v=0,h=t.length;v<h;v++){var d=t[v];if(r)l=t[v?v-1:h-1],u=t[(v+1)%h];else if(v===0||v===h-1){i.push(t_(t[v]));continue}else l=t[v-1],u=t[v+1];r_(a,u,l),ks(a,a,e);var p=ol(d,l),g=ol(d,u),m=p+g;m!==0&&(p/=m,g/=m),ks(o,a,-p),ks(s,a,g);var y=Pf([],d,o),_=Pf([],d,s);n&&(Wr(y,y,c),Vr(y,y,f),Wr(_,_,c),Vr(_,_,f)),i.push(y),i.push(_)}return r&&i.push(i.shift()),i}function Z_(t,e,r){var n=e.smooth,i=e.points;if(i&&i.length>=2){if(n){var a=ZA(i,n,r,e.smoothConstraint);t.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(r?o:o-1);s++){var l=a[s*2],u=a[s*2+1],c=i[(s+1)%o];t.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{t.moveTo(i[0][0],i[0][1]);for(var s=1,f=i.length;s<f;s++)t.lineTo(i[s][0],i[s][1])}r&&t.closePath()}}var KA=(function(){function t(){this.points=null,this.smooth=0,this.smoothConstraint=null}return t})(),fu=(function(t){G(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new KA},e.prototype.buildPath=function(r,n){Z_(r,n,!0)},e})(ge);fu.prototype.type="polygon";var QA=(function(){function t(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return t})(),Yi=(function(t){G(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new QA},e.prototype.buildPath=function(r,n){Z_(r,n,!1)},e})(ge);Yi.prototype.type="polyline";var JA={},eE=(function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return t})(),Mr=(function(t){G(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new eE},e.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var l=b_(JA,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&&(r.moveTo(i,a),u<1&&(o=i*(1-u)+o*u,s=a*(1-u)+s*u),r.lineTo(o,s))},e.prototype.pointAt=function(r){var n=this.shape;return[n.x1*(1-r)+n.x2*r,n.y1*(1-r)+n.y2*r]},e})(ge);Mr.prototype.type="line";var it=[],tE=(function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return t})();function Wp(t,e,r){var n=t.cpx2,i=t.cpy2;return n!=null||i!=null?[(r?sp:Ke)(t.x1,t.cpx1,t.cpx2,t.x2,e),(r?sp:Ke)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(r?lp:at)(t.x1,t.cpx1,t.x2,e),(r?lp:at)(t.y1,t.cpy1,t.y2,e)]}var hu=(function(t){G(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new tE},e.prototype.buildPath=function(r,n){var i=n.x1,a=n.y1,o=n.x2,s=n.y2,l=n.cpx1,u=n.cpy1,c=n.cpx2,f=n.cpy2,v=n.percent;v!==0&&(r.moveTo(i,a),c==null||f==null?(v<1&&(cl(i,l,o,v,it),l=it[1],o=it[2],cl(a,u,s,v,it),u=it[1],s=it[2]),r.quadraticCurveTo(l,u,o,s)):(v<1&&(ul(i,l,c,o,v,it),l=it[1],c=it[2],o=it[3],ul(a,u,f,s,v,it),u=it[1],f=it[2],s=it[3]),r.bezierCurveTo(l,u,c,f,o,s)))},e.prototype.pointAt=function(r){return Wp(this.shape,r,!1)},e.prototype.tangentAt=function(r){var n=Wp(this.shape,r,!0);return n_(n,n)},e})(ge);hu.prototype.type="bezier-curve";var rE=(function(){function t(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return t})(),Ao=(function(t){G(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new rE},e.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.max(n.r,0),s=n.startAngle,l=n.endAngle,u=n.clockwise,c=Math.cos(s),f=Math.sin(s);r.moveTo(c*o+i,f*o+a),r.arc(i,a,o,s,l,!u)},e})(ge);Ao.prototype.type="arc";var K_=(function(t){G(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="compound",r}return e.prototype._updatePathDirty=function(){for(var r=this.shape.paths,n=this.shapeChanged(),i=0;i<r.length;i++)n=n||r[i].shapeChanged();n&&this.dirtyShape()},e.prototype.beforeBrush=function(){this._updatePathDirty();for(var r=this.shape.paths||[],n=this.getGlobalScale(),i=0;i<r.length;i++)r[i].path||r[i].createPathProxy(),r[i].path.setScale(n[0],n[1],r[i].segmentIgnoreThreshold)},e.prototype.buildPath=function(r,n){for(var i=n.paths||[],a=0;a<i.length;a++)i[a].buildPath(r,i[a].shape,!0)},e.prototype.afterBrush=function(){for(var r=this.shape.paths||[],n=0;n<r.length;n++)r[n].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),ge.prototype.getBoundingRect.call(this)},e})(ge),Q_=(function(){function t(e){this.colorStops=e||[]}return t.prototype.addColorStop=function(e,r){this.colorStops.push({offset:e,color:r})},t})(),J_=(function(t){G(e,t);function e(r,n,i,a,o,s){var l=t.call(this,o)||this;return l.x=r??0,l.y=n??0,l.x2=i??1,l.y2=a??0,l.type="linear",l.global=s||!1,l}return e})(Q_),eb=(function(t){G(e,t);function e(r,n,i,a,o){var s=t.call(this,a)||this;return s.x=r??.5,s.y=n??.5,s.r=i??.5,s.type="radial",s.global=o||!1,s}return e})(Q_),sc=Math.min,nE=Math.max,Ko=Math.abs,Dn=[0,0],Mn=[0,0],ke=Y0(),Qo=ke.minTv,Jo=ke.maxTv,tb=(function(){function t(e,r){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new ne;for(var n=0;n<2;n++)this._axes[n]=new ne;e&&this.fromBoundingRect(e,r)}return t.prototype.fromBoundingRect=function(e,r){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),r)for(var u=0;u<4;u++)n[u].transform(r);ne.sub(i[0],n[1],n[0]),ne.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])},t.prototype.intersect=function(e,r,n){var i=!0,a=!r;return r&&ne.set(r,0,0),ke.reset(n,!a),!this._intersectCheckOneSide(this,e,a,1)&&(i=!1,a)||!this._intersectCheckOneSide(e,this,a,-1)&&(i=!1,a)||!a&&!ke.negativeSize&&ne.copy(r,i?ke.useDir?ke.dirMinTv:Qo:Jo),i},t.prototype._intersectCheckOneSide=function(e,r,n,i){for(var a=!0,o=0;o<2;o++){var s=e._axes[o];if(e._getProjMinMaxOnAxis(o,e._corners,Dn),e._getProjMinMaxOnAxis(o,r._corners,Mn),ke.negativeSize||Dn[1]<Mn[0]||Dn[0]>Mn[1]){if(a=!1,ke.negativeSize||n)return a;var l=Ko(Mn[0]-Dn[1]),u=Ko(Dn[0]-Mn[1]);sc(l,u)>Jo.len()&&(l<u?ne.scale(Jo,s,-l*i):ne.scale(Jo,s,u*i))}else if(!n){var l=Ko(Mn[0]-Dn[1]),u=Ko(Dn[0]-Mn[1]);(ke.useDir||sc(l,u)<Qo.len())&&((l<u||!ke.bidirectional)&&(ne.scale(Qo,s,l*i),ke.useDir&&ke.calcDirMTV()),(l>=u||!ke.bidirectional)&&(ne.scale(Qo,s,-u*i),ke.useDir&&ke.calcDirMTV()))}}return a},t.prototype._getProjMinMaxOnAxis=function(e,r,n){for(var i=this._axes[e],a=this._origin,o=r[0].dot(i)+a[e],s=o,l=o,u=1;u<r.length;u++){var c=r[u].dot(i)+a[e];s=sc(c,s),l=nE(c,l)}n[0]=s+ke.touchThreshold,n[1]=l-ke.touchThreshold,ke.negativeSize=n[1]<n[0]},t})(),iE=[],rb=(function(t){G(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.notClear=!0,r.incremental=!0,r._displayables=[],r._temporaryDisplayables=[],r._cursor=0,r}return e.prototype.traverse=function(r,n){r.call(n,this)},e.prototype.useStyle=function(){this.style={}},e.prototype.getCursor=function(){return this._cursor},e.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},e.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},e.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},e.prototype.addDisplayable=function(r,n){n?this._temporaryDisplayables.push(r):this._displayables.push(r),this.markRedraw()},e.prototype.addDisplayables=function(r,n){n=n||!1;for(var i=0;i<r.length;i++)this.addDisplayable(r[i],n)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.prototype.eachPendingDisplayable=function(r){for(var n=this._cursor;n<this._displayables.length;n++)r&&r(this._displayables[n]);for(var n=0;n<this._temporaryDisplayables.length;n++)r&&r(this._temporaryDisplayables[n])},e.prototype.update=function(){this.updateTransform();for(var r=this._cursor;r<this._displayables.length;r++){var n=this._displayables[r];n.parent=this,n.update(),n.parent=null}for(var r=0;r<this._temporaryDisplayables.length;r++){var n=this._temporaryDisplayables[r];n.parent=this,n.update(),n.parent=null}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var r=new re(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(iE)),r.union(a)}this._rect=r}return this._rect},e.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,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(r,n))return!0}return!1},e})(wo),aE=xe();function oE(t,e,r,n,i){var a;if(e&&e.ecModel){var o=e.ecModel.getUpdatePayload();a=o&&o.animation}var s=e&&e.isAnimationEnabled(),l=t==="update";if(s){var u=void 0,c=void 0,f=void 0;n?(u=K(n.duration,200),c=K(n.easing,"cubicOut"),f=0):(u=e.getShallow(l?"animationDurationUpdate":"animationDuration"),c=e.getShallow(l?"animationEasingUpdate":"animationEasing"),f=e.getShallow(l?"animationDelayUpdate":"animationDelay")),a&&(a.duration!=null&&(u=a.duration),a.easing!=null&&(c=a.easing),a.delay!=null&&(f=a.delay)),ie(f)&&(f=f(r,i)),ie(u)&&(u=u(r));var v={duration:u||0,delay:f,easing:c};return v}else return null}function xv(t,e,r,n,i,a,o){var s=!1,l;ie(i)?(o=a,a=i,i=null):q(i)&&(a=i.cb,o=i.during,s=i.isFrom,l=i.removeOpt,i=i.dataIndex);var u=t==="leave";u||e.stopAnimation("leave");var c=oE(t,n,i,u?l||{}:null,n&&n.getAnimationDelayParams?n.getAnimationDelayParams(e,i):null);if(c&&c.duration>0){var f=c.duration,v=c.delay,h=c.easing,d={duration:f,delay:v||0,easing:h,done:a,force:!!a||!!o,setToFinal:!u,scope:t,during:o};s?e.animateFrom(r,d):e.animateTo(r,d)}else e.stopAnimation(),!s&&e.attr(r),o&&o(1),a&&a()}function ct(t,e,r,n,i,a){xv("update",t,e,r,n,i,a)}function lr(t,e,r,n,i,a){xv("enter",t,e,r,n,i,a)}function Na(t){if(!t.__zr)return!0;for(var e=0;e<t.animators.length;e++){var r=t.animators[e];if(r.scope==="leave")return!0}return!1}function Sl(t,e,r,n,i,a){Na(t)||xv("leave",t,e,r,n,i,a)}function jp(t,e,r,n){t.removeTextContent(),t.removeTextGuideLine(),Sl(t,{style:{opacity:0}},e,r,n)}function Ba(t,e,r){function n(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse(function(i){i.isGroup||jp(i,e,r,n)}):jp(t,e,r,n)}function wv(t){aE(t).oldStyle=t.style}var eh={},Gr=["x","y"],Ui=["width","height"];function nb(t){return ge.extend(t)}var sE=HA;function ib(t,e){return sE(t,e)}function Ot(t,e){eh[t]=e}function ab(t){if(eh.hasOwnProperty(t))return eh[t]}function vu(t,e,r,n){var i=zA(t,e);return r&&(n==="center"&&(r=ob(r,i.getBoundingRect())),Cv(i,r)),i}function Tv(t,e,r){var n=new Ar({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(i){if(r==="center"){var a={width:i.width,height:i.height};n.setStyle(ob(e,a))}}});return n}function ob(t,e){var r=e.width/e.height,n=t.height*r,i;n<=t.width?i=t.height:(n=t.width,i=n/r);var a=t.x+t.width/2,o=t.y+t.height/2;return{x:a-n/2,y:o-i/2,width:n,height:i}}var sb=UA;function Cv(t,e){if(t.applyTransform){var r=t.getBoundingRect(),n=r.calculateTransform(e);t.applyTransform(n)}}function Ja(t,e){return b_(t,t,{lineWidth:e}),t}function lE(t,e){return S_(t,t,e),t}var uE=Fn;function lb(t,e){for(var r=xo([]);t&&t!==e;)Vn(r,t.getLocalTransform(),r),t=t.parent;return r}function Dv(t,e,r){return e&&!rt(e)&&(e=uv.getLocalTransform(e)),r&&(e=Jn([],e)),et([],t,e)}function cE(t,e,r){var n=e[4]===0||e[5]===0||e[0]===0?1:ir(2*e[4]/e[0]),i=e[4]===0||e[5]===0||e[2]===0?1:ir(2*e[4]/e[2]),a=[t==="left"?-n:t==="right"?n:0,t==="top"?-i:t==="bottom"?i:0];return a=Dv(a,e,r),ir(a[0])>ir(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function $p(t){return!t.isGroup}function fE(t){return t.shape!=null}function ub(t,e,r){if(!t||!e)return;function n(o){var s={};return o.traverse(function(l){$p(l)&&l.anid&&(s[l.anid]=l)}),s}function i(o){var s={x:o.x,y:o.y,rotation:o.rotation};return fE(o)&&(s.shape=oe(o.shape)),s}var a=n(t);e.traverse(function(o){if($p(o)&&o.anid){var s=a[o.anid];if(s){var l=i(o);o.attr(i(s)),ct(o,l,r,he(o).dataIndex)}}})}function cb(t,e){return X(t,function(r){var n=r[0];n=pt(n,e.x),n=Xa(n,e.x+e.width);var i=r[1];return i=pt(i,e.y),i=Xa(i,e.y+e.height),[n,i]})}function fb(t,e){var r=pt(t.x,e.x),n=Xa(t.x+t.width,e.x+e.width),i=pt(t.y,e.y),a=Xa(t.y+t.height,e.y+e.height);if(n>=r&&a>=i)return{x:r,y:i,width:n-r,height:a-i}}function du(t,e,r){var n=F({rectHover:!0},e),i=n.style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},t)return t.indexOf("image://")===0?(i.image=t.slice(8),pe(i,r),new Ar(n)):vu(t.replace("path://",""),n,r,"center")}function hE(t,e,r,n,i){for(var a=0,o=i[i.length-1];a<i.length;a++){var s=i[a];if(hb(t,e,r,n,s[0],s[1],o[0],o[1]))return!0;o=s}}function hb(t,e,r,n,i,a,o,s){var l=r-t,u=n-e,c=o-i,f=s-a,v=lc(c,f,l,u);if(vE(v))return!1;var h=t-i,d=e-a,p=lc(h,d,l,u)/v;if(p<0||p>1)return!1;var g=lc(h,d,c,f)/v;return!(g<0||g>1)}function lc(t,e,r,n){return t*n-r*e}function vE(t){return t<=1e-6&&t>=-1e-6}function xl(t,e,r,n,i){return e==null||(me(e)?ye[0]=ye[1]=ye[2]=ye[3]=e:(ye[0]=e[0],ye[1]=e[1],ye[2]=e[2],ye[3]=e[3]),n&&(ye[0]=pt(0,ye[0]),ye[1]=pt(0,ye[1]),ye[2]=pt(0,ye[2]),ye[3]=pt(0,ye[3])),r&&(ye[0]=-ye[0],ye[1]=-ye[1],ye[2]=-ye[2],ye[3]=-ye[3]),Yp(t,ye,"x","width",3,1,i&&i[0]||0),Yp(t,ye,"y","height",0,2,i&&i[1]||0)),t}var ye=[0,0,0,0];function Yp(t,e,r,n,i,a,o){var s=e[a]+e[i],l=t[n];t[n]+=s,o=pt(0,Xa(o,l)),t[n]<o?(t[n]=o,t[r]+=e[i]>=0?-e[i]:e[a]>=0?l+e[a]:ir(s)>1e-8?(l-o)*e[i]/s:0):t[r]-=e[i]}function pu(t){var e=t.itemTooltipOption,r=t.componentModel,n=t.itemName,i=Y(e)?{formatter:e}:e,a=r.mainType,o=r.componentIndex,s={componentType:a,name:n,$vars:["name"]};s[a+"Index"]=o;var l=t.formatterParamsExtra;l&&C(Se(l),function(c){Lt(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=he(t.el);u.componentMainType=a,u.componentIndex=o,u.tooltipConfig={name:n,option:pe({content:n,encodeHTMLContent:!0,formatterParams:s},i)}}function th(t,e){var r;t.isGroup&&(r=e(t)),r||t.traverse(e)}function gu(t,e){if(t)if(W(t))for(var r=0;r<t.length;r++)th(t[r],e);else th(t,e)}function Mv(t){return!t||ir(t[1])<es&&ir(t[2])<es||ir(t[0])<es&&ir(t[3])<es}var es=1e-5;function eo(t,e){return t?re.copy(t,e):e.clone()}function Av(t,e){return e?ru(t||Gt(),e):void 0}function vb(t){return{z:t.get("z")||0,zlevel:t.get("zlevel")||0}}function dE(t){var e=-1/0,r=1/0;th(t,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<r&&(r=o)}}return r>e&&(r=e=0),{min:r,max:e}}function db(t,e,r){pb(t,e,r,-1/0)}function pb(t,e,r,n){if(t.ignoreModelZ)return n;var i=t.getTextContent(),a=t.getTextGuideLine(),o=t.isGroup;if(o)for(var s=t.childrenRef(),l=0;l<s.length;l++)n=pt(pb(s[l],e,r,n),n);else t.z=e,t.zlevel=r,n=pt(t.z2||0,n);if(i&&(i.z=e,i.zlevel=r,isFinite(n)&&(i.z2=n+2)),a){var u=t.textGuideLineConfig;a.z=e,a.zlevel=r,isFinite(n)&&(a.z2=n+(u&&u.showAbove?1:-1))}return n}Ot("circle",Mo);Ot("ellipse",uu);Ot("sector",Lr);Ot("ring",cu);Ot("polygon",fu);Ot("polyline",Yi);Ot("rect",De);Ot("line",Mr);Ot("bezierCurve",hu);Ot("arc",Ao);const pE=Object.freeze(Object.defineProperty({__proto__:null,Arc:Ao,BezierCurve:hu,BoundingRect:re,Circle:Mo,CompoundPath:K_,Ellipse:uu,Group:Ne,Image:Ar,IncrementalDisplayable:rb,Line:Mr,LinearGradient:J_,OrientedBoundingRect:tb,Path:ge,Point:ne,Polygon:fu,Polyline:Yi,RadialGradient:eb,Rect:De,Ring:cu,Sector:Lr,Text:je,WH:Ui,XY:Gr,applyTransform:Dv,calcZ2Range:dE,clipPointsByRect:cb,clipRectByRect:fb,createIcon:du,ensureCopyRect:eo,ensureCopyTransform:Av,expandOrShrinkRect:xl,extendPath:ib,extendShape:nb,getShapeClass:ab,getTransform:lb,groupTransition:ub,initProps:lr,isBoundingRectAxisAligned:Mv,isElementRemoved:Na,lineLineIntersect:hb,linePolygonIntersect:hE,makeImage:Tv,makePath:vu,mergePath:sb,registerShape:Ot,removeElement:Sl,removeElementWithFadeOut:Ba,resizePath:Cv,retrieveZInfo:vb,setTooltipConfig:pu,subPixelOptimize:uE,subPixelOptimizeLine:Ja,subPixelOptimizeRect:lE,transformDirection:cE,traverseElements:gu,traverseUpdateZ:db,updateProps:ct},Symbol.toStringTag,{value:"Module"}));var mu={};function gE(t,e){for(var r=0;r<hr.length;r++){var n=hr[r],i=e[n],a=t.ensureState(n);a.style=a.style||{},a.style.text=i}var o=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(o,!0)}function qp(t,e,r){var n=t.labelFetcher,i=t.labelDataIndex,a=t.labelDimIndex,o=e.normal,s;n&&(s=n.getFormattedLabel(i,"normal",null,a,o&&o.get("formatter"),r!=null?{interpolatedValue:r}:null)),s==null&&(s=ie(t.defaultText)?t.defaultText(i,t,r):t.defaultText);for(var l={normal:s},u=0;u<hr.length;u++){var c=hr[u],f=e[c];l[c]=K(n?n.getFormattedLabel(i,c,null,a,f&&f.get("formatter")):null,s)}return l}function yu(t,e,r,n){r=r||mu;for(var i=t instanceof je,a=!1,o=0;o<pl.length;o++){var s=e[pl[o]];if(s&&s.getShallow("show")){a=!0;break}}var l=i?t:t.getTextContent();if(a){i||(l||(l=new je,t.setTextContent(l)),t.stateProxy&&(l.stateProxy=t.stateProxy));var u=qp(r,e),c=e.normal,f=!!c.getShallow("show"),v=Kn(c,n,r,!1,!i);v.text=u.normal,i||t.setTextConfig(Xp(c,r,!1));for(var o=0;o<hr.length;o++){var h=hr[o],s=e[h];if(s){var d=l.ensureState(h),p=!!K(s.getShallow("show"),f);if(p!==f&&(d.ignore=!p),d.style=Kn(s,n,r,!0,!i),d.style.text=u[h],!i){var g=t.ensureState(h);g.textConfig=Xp(s,r,!0)}}}l.silent=!!c.getShallow("silent"),l.style.x!=null&&(v.x=l.style.x),l.style.y!=null&&(v.y=l.style.y),l.ignore=!f,l.useStyle(v),l.dirty(),r.enableTextSetter&&(Ev(l).setLabelText=function(m){var y=qp(r,e,m);gE(l,y)})}else l&&(l.ignore=!0);t.dirty()}function _u(t,e){e=e||"label";for(var r={normal:t.getModel(e)},n=0;n<hr.length;n++){var i=hr[n];r[i]=t.getModel([i,e])}return r}function Kn(t,e,r,n,i){var a={};return mE(a,t,r,n,i),e&&F(a,e),a}function Xp(t,e,r){e=e||{};var n={},i,a=t.getShallow("rotate"),o=K(t.getShallow("distance"),r?null:5),s=t.getShallow("offset");return i=t.getShallow("position")||(r?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=t.get("color")==="inherit"?e.inheritColor||null:"auto",e.autoOverflowArea!=null&&(n.autoOverflowArea=e.autoOverflowArea),e.layoutRect!=null&&(n.layoutRect=e.layoutRect),n}function mE(t,e,r,n,i){r=r||mu;var a=e.ecModel,o=a&&a.option.textStyle,s=yE(e),l;if(s){l={};var u="richInheritPlainLabel",c=K(e.get(u),a?a.get(u):void 0);for(var f in s)if(s.hasOwnProperty(f)){var v=e.getModel(["rich",f]);Jp(l[f]={},v,o,e,c,r,n,i,!1,!0)}}l&&(t.rich=l);var h=e.get("overflow");h&&(t.overflow=h);var d=e.get("lineOverflow");d&&(t.lineOverflow=d);var p=t,g=e.get("minMargin");if(g!=null)g=me(g)?g/2:0,p.margin=[g,g,g,g],p.__marginType=Ai.minMargin;else{var m=e.get("textMargin");m!=null&&(p.margin=Jl(m),p.__marginType=Ai.textMargin)}Jp(t,e,o,null,null,r,n,i,!0,!1)}function yE(t){for(var e;t&&t!==t.ecModel;){var r=(t.option||mu).rich;if(r){e=e||{};for(var n=Se(r),i=0;i<n.length;i++){var a=n[i];e[a]=1}}t=t.parentModel}return e}var Zp=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],Kp=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],Qp=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function Jp(t,e,r,n,i,a,o,s,l,u){r=!o&&r||mu;var c=a&&a.inheritColor,f=e.getShallow("color"),v=e.getShallow("textBorderColor"),h=K(e.getShallow("opacity"),r.opacity);(f==="inherit"||f==="auto")&&(c?f=c:f=null),(v==="inherit"||v==="auto")&&(c?v=c:v=null),s||(f=f||r.color,v=v||r.textBorderColor),f!=null&&(t.fill=f),v!=null&&(t.stroke=v);var d=K(e.getShallow("textBorderWidth"),r.textBorderWidth);d!=null&&(t.lineWidth=d);var p=K(e.getShallow("textBorderType"),r.textBorderType);p!=null&&(t.lineDash=p);var g=K(e.getShallow("textBorderDashOffset"),r.textBorderDashOffset);g!=null&&(t.lineDashOffset=g),!o&&h==null&&!u&&(h=a&&a.defaultOpacity),h!=null&&(t.opacity=h),!o&&!s&&t.fill==null&&a.inheritColor&&(t.fill=a.inheritColor);for(var m=0;m<Zp.length;m++){var y=Zp[m],_=i!==!1&&n?Zr(e.getShallow(y),n.getShallow(y),r[y]):K(e.getShallow(y),r[y]);_!=null&&(t[y]=_)}for(var m=0;m<Kp.length;m++){var y=Kp[m],_=e.getShallow(y);_!=null&&(t[y]=_)}if(t.verticalAlign==null){var b=e.getShallow("baseline");b!=null&&(t.verticalAlign=b)}if(!l||!a.disableBox){for(var m=0;m<Qp.length;m++){var y=Qp[m],_=e.getShallow(y);_!=null&&(t[y]=_)}var S=e.getShallow("borderType");S!=null&&(t.borderDash=S),(t.backgroundColor==="auto"||t.backgroundColor==="inherit")&&c&&(t.backgroundColor=c),(t.borderColor==="auto"||t.borderColor==="inherit")&&c&&(t.borderColor=c)}}function _E(t,e){var r=e&&e.getModel("textStyle");return Ut([t.fontStyle||r&&r.getShallow("fontStyle")||"",t.fontWeight||r&&r.getShallow("fontWeight")||"",(t.fontSize||r&&r.getShallow("fontSize")||12)+"px",t.fontFamily||r&&r.getShallow("fontFamily")||"sans-serif"].join(" "))}var Ev=xe();function bE(t,e,r,n){if(t){var i=Ev(t);i.prevValue=i.value,i.value=r;var a=e.normal;i.valueAnimation=a.get("valueAnimation"),i.valueAnimation&&(i.precision=a.get("precision"),i.defaultInterpolatedText=n,i.statesModels=e)}}var Ai={minMargin:1,textMargin:2},SE=["textStyle","color"],uc=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],cc=new je,xE=(function(){function t(){}return t.prototype.getTextColor=function(e){var r=this.ecModel;return this.getShallow("color")||(!e&&r?r.get(SE):null)},t.prototype.getFont=function(){return _E({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},t.prototype.getTextRect=function(e){for(var r={text:e,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<uc.length;n++)r[uc[n]]=this.getShallow(uc[n]);return cc.useStyle(r),cc.update(),cc.getBoundingRect()},t})(),gb=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],wE=ja(gb),TE=(function(){function t(){}return t.prototype.getLineStyle=function(e){return wE(this,e)},t})(),mb=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],CE=ja(mb),DE=(function(){function t(){}return t.prototype.getItemStyle=function(e,r){return CE(this,e,r)},t})(),_e=(function(){function t(e,r,n){this.parentModel=r,this.ecModel=n,this.option=e}return t.prototype.init=function(e,r,n){},t.prototype.mergeOption=function(e,r){ue(this.option,e,!0)},t.prototype.get=function(e,r){return e==null?this.option:this._doGet(this.parsePath(e),!r&&this.parentModel)},t.prototype.getShallow=function(e,r){var n=this.option,i=n==null?n:n[e];if(i==null&&!r){var a=this.parentModel;a&&(i=a.getShallow(e))}return i},t.prototype.getModel=function(e,r){var n=e!=null,i=n?this.parsePath(e):null,a=n?this._doGet(i):this.option;return r=r||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),new t(a,r,this.ecModel)},t.prototype.isEmpty=function(){return this.option==null},t.prototype.restoreData=function(){},t.prototype.clone=function(){var e=this.constructor;return new e(oe(this.option))},t.prototype.parsePath=function(e){return typeof e=="string"?e.split("."):e},t.prototype.resolveParentPath=function(e){return e},t.prototype.isAnimationEnabled=function(){if(!te.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},t.prototype._doGet=function(e,r){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&&r&&(n=r._doGet(this.resolveParentPath(e),r.parentModel)),n},t})();av(_e);tD(_e);It(_e,TE);It(_e,DE);It(_e,oD);It(_e,xE);function ta(t){return t==null?0:t.length||1}function eg(t){return t}var ME=(function(){function t(e,r,n,i,a,o){this._old=e,this._new=r,this._oldKeyGetter=n||eg,this._newKeyGetter=i||eg,this.context=a,this._diffModeMultiple=o==="multiple"}return t.prototype.add=function(e){return this._add=e,this},t.prototype.update=function(e){return this._update=e,this},t.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},t.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},t.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},t.prototype.remove=function(e){return this._remove=e,this},t.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},t.prototype._executeOneToOne=function(){var e=this._old,r=this._new,n={},i=new Array(e.length),a=new Array(r.length);this._initIndexMap(e,null,i,"_oldKeyGetter"),this._initIndexMap(r,n,a,"_newKeyGetter");for(var o=0;o<e.length;o++){var s=i[o],l=n[s],u=ta(l);if(u>1){var c=l.shift();l.length===1&&(n[s]=l[0]),this._update&&this._update(c,o)}else u===1?(n[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(a,n)},t.prototype._executeMultiple=function(){var e=this._old,r=this._new,n={},i={},a=[],o=[];this._initIndexMap(e,n,a,"_oldKeyGetter"),this._initIndexMap(r,i,o,"_newKeyGetter");for(var s=0;s<a.length;s++){var l=a[s],u=n[l],c=i[l],f=ta(u),v=ta(c);if(f>1&&v===1)this._updateManyToOne&&this._updateManyToOne(c,u),i[l]=null;else if(f===1&&v>1)this._updateOneToMany&&this._updateOneToMany(c,u),i[l]=null;else if(f===1&&v===1)this._update&&this._update(c,u),i[l]=null;else if(f>1&&v>1)this._updateManyToMany&&this._updateManyToMany(c,u),i[l]=null;else if(f>1)for(var h=0;h<f;h++)this._remove&&this._remove(u[h]);else this._remove&&this._remove(u)}this._performRestAdd(o,i)},t.prototype._performRestAdd=function(e,r){for(var n=0;n<e.length;n++){var i=e[n],a=r[i],o=ta(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);r[i]=null}},t.prototype._initIndexMap=function(e,r,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),!!r){var l=r[s],u=ta(l);u===0?(r[s]=o,a&&n.push(s)):u===1?r[s]=[l,o]:l.push(o)}}},t})(),yb=ae(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),_t="original",$e="arrayRows",kt="objectRows",$t="keyedColumns",Jr="typedArray",_b="unknown",ur="column",ti="row",Fe={Must:1,Might:2,Not:3},bb=xe();function AE(t){bb(t).datasetMap=ae()}function EE(t,e,r){var n={},i=Rv(e);if(!i||!t)return n;var a=[],o=[],s=e.ecModel,l=bb(s).datasetMap,u=i.uid+"_"+r.seriesLayoutBy,c,f;t=t.slice(),C(t,function(p,g){var m=q(p)?p:t[g]={name:p};m.type==="ordinal"&&c==null&&(c=g,f=d(m)),n[m.name]=[]});var v=l.get(u)||l.set(u,{categoryWayDim:f,valueWayDim:0});C(t,function(p,g){var m=p.name,y=d(p);if(c==null){var _=v.valueWayDim;h(n[m],_,y),h(o,_,y),v.valueWayDim+=y}else if(c===g)h(n[m],0,y),h(a,0,y);else{var _=v.categoryWayDim;h(n[m],_,y),h(o,_,y),v.categoryWayDim+=y}});function h(p,g,m){for(var y=0;y<m;y++)p.push(g+y)}function d(p){var g=p.dimsDef;return g?g.length:1}return a.length&&(n.itemName=a),o.length&&(n.seriesName=o),n}function RE(t,e,r){var n={},i=Rv(t);if(!i)return n;var a=e.sourceFormat,o=e.dimensionsDefine,s;(a===kt||a===$t)&&C(o,function(c,f){(q(c)?c.name:c)==="name"&&(s=f)});var l=(function(){for(var c={},f={},v=[],h=0,d=Math.min(5,r);h<d;h++){var p=xb(e.data,a,e.seriesLayoutBy,o,e.startIndex,h);v.push(p);var g=p===Fe.Not;if(g&&c.v==null&&h!==s&&(c.v=h),(c.n==null||c.n===c.v||!g&&v[c.n]===Fe.Not)&&(c.n=h),m(c)&&v[c.n]!==Fe.Not)return c;g||(p===Fe.Might&&f.v==null&&h!==s&&(f.v=h),(f.n==null||f.n===f.v)&&(f.n=h))}function m(y){return y.v!=null&&y.n!=null}return m(c)?c:m(f)?f:null})();if(l){n.value=[l.v];var u=s??l.n;n.itemName=[u],n.seriesName=[u]}return n}function Rv(t){var e=t.get("data",!0);if(!e)return Do(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},Et).models[0]}function LE(t){return!t.get("transform",!0)&&!t.get("fromTransformResult",!0)?[]:Do(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},Et).models}function Sb(t,e){return xb(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function xb(t,e,r,n,i,a){var o,s=5;if(nt(t))return Fe.Not;var l,u;if(n){var c=n[a];q(c)?(l=c.name,u=c.type):Y(c)&&(l=c)}if(u!=null)return u==="ordinal"?Fe.Must:Fe.Not;if(e===$e){var f=t;if(r===ti){for(var v=f[a],h=0;h<(v||[]).length&&h<s;h++)if((o=b(v[i+h]))!=null)return o}else for(var h=0;h<f.length&&h<s;h++){var d=f[i+h];if(d&&(o=b(d[a]))!=null)return o}}else if(e===kt){var p=t;if(!l)return Fe.Not;for(var h=0;h<p.length&&h<s;h++){var g=p[h];if(g&&(o=b(g[l]))!=null)return o}}else if(e===$t){var m=t;if(!l)return Fe.Not;var v=m[l];if(!v||nt(v))return Fe.Not;for(var h=0;h<v.length&&h<s;h++)if((o=b(v[h]))!=null)return o}else if(e===_t)for(var y=t,h=0;h<y.length&&h<s;h++){var g=y[h],_=To(g);if(!W(_))return Fe.Not;if((o=b(_[a]))!=null)return o}function b(S){var x=Y(S);if(S!=null&&Number.isFinite(Number(S))&&S!=="")return x?Fe.Might:Fe.Not;if(x&&S!=="-")return Fe.Must}return Fe.Not}var bu=(function(){function t(e){this.data=e.data||(e.sourceFormat===$t?{}:[]),this.sourceFormat=e.sourceFormat||_b,this.seriesLayoutBy=e.seriesLayoutBy||ur,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var r=this.dimensionsDefine=e.dimensionsDefine;if(r)for(var n=0;n<r.length;n++){var i=r[n];i.type==null&&Sb(this,n)===Fe.Must&&(i.type="ordinal")}}return t})();function Lv(t){return t instanceof bu}function rh(t,e,r){r=r||Tb(t);var n=e.seriesLayoutBy,i=IE(t,r,n,e.sourceHeader,e.dimensions),a=new bu({data:t,sourceFormat:r,seriesLayoutBy:n,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:oe(e)});return a}function wb(t){return new bu({data:t,sourceFormat:nt(t)?Jr:_t})}function PE(t){return new bu({data:t.data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:oe(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})}function Tb(t){var e=_b;if(nt(t))e=Jr;else if(W(t)){t.length===0&&(e=$e);for(var r=0,n=t.length;r<n;r++){var i=t[r];if(i!=null){if(W(i)||nt(i)){e=$e;break}else if(q(i)){e=kt;break}}}}else if(q(t)){for(var a in t)if(Lt(t,a)&&rt(t[a])){e=$t;break}}return e}function IE(t,e,r,n,i){var a,o;if(!t)return{dimensionsDefine:tg(i),startIndex:o,dimensionsDetectedCount:a};if(e===$e){var s=t;n==="auto"||n==null?rg(function(u){u!=null&&u!=="-"&&(Y(u)?o==null&&(o=1):o=0)},r,s,10):o=me(n)?n:n?1:0,!i&&o===1&&(i=[],rg(function(u,c){i[c]=u!=null?u+"":""},r,s,1/0)),a=i?i.length:r===ti?s.length:s[0]?s[0].length:null}else if(e===kt)i||(i=OE(t));else if(e===$t)i||(i=[],C(t,function(u,c){i.push(c)}));else if(e===_t){var l=To(t[0]);a=W(l)&&l.length||1}return{startIndex:o,dimensionsDefine:tg(i),dimensionsDetectedCount:a}}function OE(t){for(var e=0,r;e<t.length&&!(r=t[e++]););if(r)return Se(r)}function tg(t){if(t){var e=ae();return X(t,function(r,n){r=q(r)?r:{name:r};var i={name:r.name,displayName:r.displayName,type:r.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 rg(t,e,r,n){if(e===ti)for(var i=0;i<r.length&&i<n;i++)t(r[i]?r[i][0]:null,i);else for(var a=r[0]||[],i=0;i<a.length&&i<n;i++)t(a[i],i)}function Cb(t){var e=t.sourceFormat;return e===kt||e===$t}var An,En,Rn,Ln,ng,ig,Db=(function(){function t(e,r){var n=Lv(e)?e:wb(e);this._source=n;var i=this._data=n.data,a=n.sourceFormat;n.seriesLayoutBy,a===Jr&&(this._offset=0,this._dimSize=r,this._data=i),ig(this,i,n)}return t.prototype.getSource=function(){return this._source},t.prototype.count=function(){return 0},t.prototype.getItem=function(e,r){},t.prototype.appendData=function(e){},t.prototype.clean=function(){},t.protoInitialize=(function(){var e=t.prototype;e.pure=!1,e.persistent=!0})(),t.internalField=(function(){var e;ig=function(o,s,l){var u=l.sourceFormat,c=l.seriesLayoutBy,f=l.startIndex,v=l.dimensionsDefine,h=ng[Pv(u,c)];if(F(o,h),u===Jr)o.getItem=r,o.count=i,o.fillStorage=n;else{var d=Mb(u,c);o.getItem=de(d,null,s,f,v);var p=Ab(u,c);o.count=de(p,null,s,f,v)}};var r=function(o,s){o=o-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,c=u*o,f=0;f<u;f++)s[f]=l[c+f];return s},n=function(o,s,l,u){for(var c=this._data,f=this._dimSize,v=0;v<f;v++){for(var h=u[v],d=h[0]==null?1/0:h[0],p=h[1]==null?-1/0:h[1],g=s-o,m=l[v],y=0;y<g;y++){var _=c[y*f+v];m[o+y]=_,_<d&&(d=_),_>p&&(p=_)}h[0]=d,h[1]=p}},i=function(){return this._data?this._data.length/this._dimSize:0};ng=(e={},e[$e+"_"+ur]={pure:!0,appendData:a},e[$e+"_"+ti]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[kt]={pure:!0,appendData:a},e[$t]={pure:!0,appendData:function(o){var s=this._data;C(o,function(l,u){for(var c=s[u]||(s[u]=[]),f=0;f<(l||[]).length;f++)c.push(l[f])})}},e[_t]={appendData:a},e[Jr]={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])}})(),t})(),ts=function(t){W(t)||R_("series.data or dataset.source must be an array.")};An={},An[$e+"_"+ur]=ts,An[$e+"_"+ti]=ts,An[kt]=ts,An[$t]=function(t,e){for(var r=0;r<e.length;r++){var n=e[r].name;n==null&&R_("dimension name must not be null/undefined.")}},An[_t]=ts;var ag=function(t,e,r,n){return t[n]},kE=(En={},En[$e+"_"+ur]=function(t,e,r,n){return t[n+e]},En[$e+"_"+ti]=function(t,e,r,n,i){n+=e;for(var a=i||[],o=t,s=0;s<o.length;s++){var l=o[s];a[s]=l?l[n]:null}return a},En[kt]=ag,En[$t]=function(t,e,r,n,i){for(var a=i||[],o=0;o<r.length;o++){var s=r[o].name,l=s!=null?t[s]:null;a[o]=l?l[n]:null}return a},En[_t]=ag,En);function Mb(t,e){var r=kE[Pv(t,e)];return r}var og=function(t,e,r){return t.length},NE=(Rn={},Rn[$e+"_"+ur]=function(t,e,r){return Math.max(0,t.length-e)},Rn[$e+"_"+ti]=function(t,e,r){var n=t[0];return n?Math.max(0,n.length-e):0},Rn[kt]=og,Rn[$t]=function(t,e,r){var n=r[0].name,i=n!=null?t[n]:null;return i?i.length:0},Rn[_t]=og,Rn);function Ab(t,e){var r=NE[Pv(t,e)];return r}var fc=function(t,e,r){return t[e]},BE=(Ln={},Ln[$e]=fc,Ln[kt]=function(t,e,r){return t[r]},Ln[$t]=fc,Ln[_t]=function(t,e,r){var n=To(t);return n instanceof Array?n[e]:n},Ln[Jr]=fc,Ln);function Eb(t){var e=BE[t];return e}function Pv(t,e){return t===$e?t+"_"+e:t}function Gi(t,e,r){if(t){var n=t.getRawDataItem(e);if(n!=null){var i=t.getStore(),a=i.getSource().sourceFormat;if(r!=null){var o=t.getDimensionIndex(r),s=i.getDimensionProperty(o);return Eb(a)(n,o,s)}else{var l=n;return a===_t&&(l=To(n)),l}}}}var FE=(function(){function t(e,r){this._encode=e,this._schema=r}return t.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},t.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},t})();function zE(t,e){var r={},n=r.encode={},i=ae(),a=[],o=[],s={};C(t.dimensions,function(v){var h=t.getDimensionInfo(v),d=h.coordDim;if(d){var p=h.coordDimIndex;hc(n,d)[p]=v,h.isExtraCoord||(i.set(d,1),UE(h.type)&&(a[0]=v),hc(s,d)[p]=t.getDimensionIndex(h.name)),h.defaultTooltip&&o.push(v)}yb.each(function(g,m){var y=hc(n,m),_=h.otherDims[m];_!=null&&_!==!1&&(y[_]=h.name)})});var l=[],u={};i.each(function(v,h){var d=n[h];u[h]=d[0],l=l.concat(d)}),r.dataDimsOnCoord=l,r.dataDimIndicesOnCoord=X(l,function(v){return t.getDimensionInfo(v).storeDimIndex}),r.encodeFirstDimNotExtra=u;var c=n.label;c&&c.length&&(a=c.slice());var f=n.tooltip;return f&&f.length?o=f.slice():o.length||(o=a.slice()),n.defaultedLabel=a,n.defaultedTooltip=o,r.userOutput=new FE(s,e),r}function hc(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function HE(t){return t==="category"?"ordinal":t==="time"?"time":"float"}function UE(t){return!(t==="ordinal"||t==="time")}var Gs=(function(){function t(e){this.otherDims={},e!=null&&F(this,e)}return t})();function Vs(t,e){var r=e&&e.type;return r==="ordinal"?t:(r==="time"&&!me(t)&&t!=null&&t!=="-"&&(t=+Er(t)),t==null||t===""?NaN:Number(t))}ae({number:function(t){return parseFloat(t)},time:function(t){return+Er(t)},trim:function(t){return Y(t)?Ut(t):t}});var GE=(function(){function t(e,r){var n=e==="desc";this._resultLT=n?1:-1,r==null&&(r=n?"min":"max"),this._incomparable=r==="min"?-1/0:1/0}return t.prototype.evaluate=function(e,r){var n=me(e)?e:Ka(e),i=me(r)?r:Ka(r),a=isNaN(n),o=isNaN(i);if(a&&(n=this._incomparable),o&&(i=this._incomparable),a&&o){var s=Y(e),l=Y(r);s&&(n=l?e:0),l&&(i=s?r:0)}return n<i?this._resultLT:n>i?-this._resultLT:0},t})(),Su="undefined",VE=typeof Uint32Array===Su?Array:Uint32Array,WE=typeof Uint16Array===Su?Array:Uint16Array,Rb=typeof Int32Array===Su?Array:Int32Array,sg=typeof Float64Array===Su?Array:Float64Array,Lb={float:sg,int:Rb,ordinal:Array,number:Array,time:sg},vc;function hi(t){return t>65535?VE:WE}function vi(){return[1/0,-1/0]}function jE(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function lg(t,e,r,n,i){var a=Lb[r||"float"];if(i){var o=t[e],s=o&&o.length;if(s!==n){for(var l=new a(n),u=0;u<s;u++)l[u]=o[u];t[e]=l}}else t[e]=new a(n)}var nh=(function(){function t(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=ae()}return t.prototype.initData=function(e,r,n){this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var i=e.getSource(),a=this.defaultDimValueGetter=vc[i.sourceFormat];this._dimValueGetter=n||a,this._rawExtent=[],Cb(i),this._dimensions=X(r,function(o){return{type:o.type,property:o.property}}),this._initDataFromProvider(0,e.count())},t.prototype.getProvider=function(){return this._provider},t.prototype.getSource=function(){return this._provider.getSource()},t.prototype.ensureCalculationDimension=function(e,r){var n=this._calcDimNameToIdx,i=this._dimensions,a=n.get(e);if(a!=null){if(i[a].type===r)return a}else a=i.length;return i[a]={type:r},n.set(e,a),this._chunks[a]=new Lb[r||"float"](this._rawCount),this._rawExtent[a]=vi(),a},t.prototype.collectOrdinalMeta=function(e,r){var n=this._chunks[e],i=this._dimensions[e],a=this._rawExtent,o=i.ordinalOffset||0,s=n.length;o===0&&(a[e]=vi());for(var l=a[e],u=o;u<s;u++){var c=n[u]=r.parseAndCollect(n[u]);isNaN(c)||(l[0]=Math.min(c,l[0]),l[1]=Math.max(c,l[1]))}i.ordinalMeta=r,i.ordinalOffset=s,i.type="ordinal"},t.prototype.getOrdinalMeta=function(e){var r=this._dimensions[e],n=r.ordinalMeta;return n},t.prototype.getDimensionProperty=function(e){var r=this._dimensions[e];return r&&r.property},t.prototype.appendData=function(e){var r=this._provider,n=this.count();r.appendData(e);var i=r.count();return r.persistent||(i+=n),n<i&&this._initDataFromProvider(n,i,!0),[n,i]},t.prototype.appendValues=function(e,r){for(var n=this._chunks,i=this._dimensions,a=i.length,o=this._rawExtent,s=this.count(),l=s+Math.max(e.length,r||0),u=0;u<a;u++){var c=i[u];lg(n,u,c.type,l,!0)}for(var f=[],v=s;v<l;v++)for(var h=v-s,d=0;d<a;d++){var c=i[d],p=vc.arrayRows.call(this,e[h]||f,c.property,h,d);n[d][v]=p;var g=o[d];p<g[0]&&(g[0]=p),p>g[1]&&(g[1]=p)}return this._rawCount=this._count=l,{start:s,end:l}},t.prototype._initDataFromProvider=function(e,r,n){for(var i=this._provider,a=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=X(o,function(y){return y.property}),c=0;c<s;c++){var f=o[c];l[c]||(l[c]=vi()),lg(a,c,f.type,r,n)}if(i.fillStorage)i.fillStorage(e,r,a,l);else for(var v=[],h=e;h<r;h++){v=i.getItem(h,v);for(var d=0;d<s;d++){var p=a[d],g=this._dimValueGetter(v,u[d],h,d);p[h]=g;var m=l[d];g<m[0]&&(m[0]=g),g>m[1]&&(m[1]=g)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=r,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(e,r){if(!(r>=0&&r<this._count))return NaN;var n=this._chunks[e];return n?n[this.getRawIndex(r)]:NaN},t.prototype.getValues=function(e,r){var n=[],i=[];if(r==null){r=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],r));return n},t.prototype.getByRawIndex=function(e,r){if(!(r>=0&&r<this._rawCount))return NaN;var n=this._chunks[e];return n?n[r]:NaN},t.prototype.getSum=function(e){var r=this._chunks[e],n=0;if(r)for(var i=0,a=this.count();i<a;i++){var o=this.get(e,i);isNaN(o)||(n+=o)}return n},t.prototype.getMedian=function(e){var r=[];this.each([e],function(a){isNaN(a)||r.push(a)});var n=r.sort(function(a,o){return a-o}),i=this.count();return i===0?0:i%2===1?n[(i-1)/2]:(n[i/2]+n[i/2-1])/2},t.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var r=this._indices,n=r[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(r[o]<e)i=o+1;else if(r[o]>e)a=o-1;else return o}return-1},t.prototype.getIndices=function(){var e,r=this._indices;if(r){var n=r.constructor,i=this._count;if(n===Array){e=new n(i);for(var a=0;a<i;a++)e[a]=r[a]}else e=new n(r.buffer,0,i)}else{var n=hi(this._rawCount);e=new n(this.count());for(var a=0;a<e.length;a++)e[a]=a}return e},t.prototype.filter=function(e,r){if(!this._count)return this;for(var n=this.clone(),i=n.count(),a=hi(n._rawCount),o=new a(i),s=[],l=e.length,u=0,c=e[0],f=n._chunks,v=0;v<i;v++){var h=void 0,d=n.getRawIndex(v);if(l===0)h=r(v);else if(l===1){var p=f[c][d];h=r(p,v)}else{for(var g=0;g<l;g++)s[g]=f[e[g]][d];s[g]=v,h=r.apply(null,s)}h&&(o[u++]=d)}return u<i&&(n._indices=o),n._count=u,n._extent=[],n._updateGetRawIdx(),n},t.prototype.selectRange=function(e){var r=this.clone(),n=r._count;if(!n)return this;var i=Se(e),a=i.length;if(!a)return this;var o=r.count(),s=hi(r._rawCount),l=new s(o),u=0,c=i[0],f=e[c][0],v=e[c][1],h=r._chunks,d=!1;if(!r._indices){var p=0;if(a===1){for(var g=h[i[0]],m=0;m<n;m++){var y=g[m];(y>=f&&y<=v||isNaN(y))&&(l[u++]=p),p++}d=!0}else if(a===2){for(var g=h[i[0]],_=h[i[1]],b=e[i[1]][0],S=e[i[1]][1],m=0;m<n;m++){var y=g[m],x=_[m];(y>=f&&y<=v||isNaN(y))&&(x>=b&&x<=S||isNaN(x))&&(l[u++]=p),p++}d=!0}}if(!d)if(a===1)for(var m=0;m<o;m++){var w=r.getRawIndex(m),y=h[i[0]][w];(y>=f&&y<=v||isNaN(y))&&(l[u++]=w)}else for(var m=0;m<o;m++){for(var T=!0,w=r.getRawIndex(m),M=0;M<a;M++){var A=i[M],y=h[A][w];(y<e[A][0]||y>e[A][1])&&(T=!1)}T&&(l[u++]=r.getRawIndex(m))}return u<o&&(r._indices=l),r._count=u,r._extent=[],r._updateGetRawIdx(),r},t.prototype.map=function(e,r){var n=this.clone(e);return this._updateDims(n,e,r),n},t.prototype.modify=function(e,r){this._updateDims(this,e,r)},t.prototype._updateDims=function(e,r,n){for(var i=e._chunks,a=[],o=r.length,s=e.count(),l=[],u=e._rawExtent,c=0;c<r.length;c++)u[r[c]]=vi();for(var f=0;f<s;f++){for(var v=e.getRawIndex(f),h=0;h<o;h++)l[h]=i[r[h]][v];l[o]=f;var d=n&&n.apply(null,l);if(d!=null){typeof d!="object"&&(a[0]=d,d=a);for(var c=0;c<d.length;c++){var p=r[c],g=d[c],m=u[p],y=i[p];y&&(y[v]=g),g<m[0]&&(m[0]=g),g>m[1]&&(m[1]=g)}}}},t.prototype.lttbDownSample=function(e,r){var n=this.clone([e],!0),i=n._chunks,a=i[e],o=this.count(),s=0,l=Math.floor(1/r),u=this.getRawIndex(0),c,f,v,h=new(hi(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 p=Math.min(d+l,o-1),g=Math.min(d+l*2,o),m=(g+p)/2,y=0,_=p;_<g;_++){var b=this.getRawIndex(_),S=a[b];isNaN(S)||(y+=S)}y/=g-p;var x=d,w=Math.min(d+l,o),T=d-1,M=a[u];c=-1,v=x;for(var A=-1,D=0,_=x;_<w;_++){var b=this.getRawIndex(_),S=a[b];if(isNaN(S)){D++,A<0&&(A=b);continue}f=Math.abs((T-m)*(S-M)-(T-_)*(y-M)),f>c&&(c=f,v=b)}D>0&&D<w-x&&(h[s++]=Math.min(A,v),v=Math.max(A,v)),h[s++]=v,u=v}return h[s++]=this.getRawIndex(o-1),n._count=s,n._indices=h,n.getRawIndex=this._getRawIdx,n},t.prototype.minmaxDownSample=function(e,r){for(var n=this.clone([e],!0),i=n._chunks,a=Math.floor(1/r),o=i[e],s=this.count(),l=new(hi(this._rawCount))(Math.ceil(s/a)*2),u=0,c=0;c<s;c+=a){var f=c,v=o[this.getRawIndex(f)],h=c,d=o[this.getRawIndex(h)],p=a;c+a>s&&(p=s-c);for(var g=0;g<p;g++){var m=this.getRawIndex(c+g),y=o[m];y<v&&(v=y,f=c+g),y>d&&(d=y,h=c+g)}var _=this.getRawIndex(f),b=this.getRawIndex(h);f<h?(l[u++]=_,l[u++]=b):(l[u++]=b,l[u++]=_)}return n._count=u,n._indices=l,n._updateGetRawIdx(),n},t.prototype.downSample=function(e,r,n,i){for(var a=this.clone([e],!0),o=a._chunks,s=[],l=Math.floor(1/r),u=o[e],c=this.count(),f=a._rawExtent[e]=vi(),v=new(hi(this._rawCount))(Math.ceil(c/l)),h=0,d=0;d<c;d+=l){l>c-d&&(l=c-d,s.length=l);for(var p=0;p<l;p++){var g=this.getRawIndex(d+p);s[p]=u[g]}var m=n(s),y=this.getRawIndex(Math.min(d+i(s,m)||0,c-1));u[y]=m,m<f[0]&&(f[0]=m),m>f[1]&&(f[1]=m),v[h++]=y}return a._count=h,a._indices=v,a._updateGetRawIdx(),a},t.prototype.each=function(e,r){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:r(a);break;case 1:r(i[e[0]][s],a);break;case 2:r(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,r.apply(null,u)}}},t.prototype.getDataExtent=function(e){var r=this._chunks[e],n=vi();if(!r)return n;var i=this.count(),a=!this._indices,o;if(a)return this._rawExtent[e].slice();if(o=this._extent[e],o)return o.slice();o=n;for(var s=o[0],l=o[1],u=0;u<i;u++){var c=this.getRawIndex(u),f=r[c];f<s&&(s=f),f>l&&(l=f)}return o=[s,l],this._extent[e]=o,o},t.prototype.getRawDataItem=function(e){var r=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(r);for(var n=[],i=this._chunks,a=0;a<i.length;a++)n.push(i[a][r]);return n},t.prototype.clone=function(e,r){var n=new t,i=this._chunks,a=e&&cr(e,function(s,l){return s[l]=!0,s},{});if(a)for(var o=0;o<i.length;o++)n._chunks[o]=a[o]?jE(i[o]):i[o];else n._chunks=i;return this._copyCommonProps(n),r||(n._indices=this._cloneIndices()),n._updateGetRawIdx(),n},t.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=oe(this._extent),e._rawExtent=oe(this._rawExtent)},t.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,r=void 0;if(e===Array){var n=this._indices.length;r=new e(n);for(var i=0;i<n;i++)r[i]=this._indices[i]}else r=new e(this._indices);return r}return null},t.prototype._getRawIdxIdentity=function(e){return e},t.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=(function(){function e(r,n,i,a){return Vs(r[a],this._dimensions[a])}vc={arrayRows:e,objectRows:function(r,n,i,a){return Vs(r[n],this._dimensions[a])},keyedColumns:e,original:function(r,n,i,a){var o=r&&(r.value==null?r:r.value);return Vs(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(r,n,i,a){return r[a]}}})(),t})(),$E=xe(),YE={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},Pb=(function(){function t(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return t.prototype.isDimensionOmitted=function(){return this._dimOmitted},t.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||(this._dimNameMap=kb(this.source)))},t.prototype.getSourceDimensionIndex=function(e){return K(this._dimNameMap.get(e),-1)},t.prototype.getSourceDimension=function(e){var r=this.source.dimensionsDefine;if(r)return r[e]},t.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,r=Cb(this.source),n=!Nb(e),i="",a=[],o=0,s=0;o<e;o++){var l=void 0,u=void 0,c=void 0,f=this.dimensions[s];if(f&&f.storeDimIndex===o)l=r?f.name:null,u=f.type,c=f.ordinalMeta,s++;else{var v=this.getSourceDimension(o);v&&(l=r?v.name:null,u=v.type)}a.push({property:l,type:u,ordinalMeta:c}),r&&l!=null&&(!f||!f.isCalculationCoord)&&(i+=n?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),i+="$",i+=YE[u]||"f",c&&(i+=c.uid),i+="$"}var h=this.source,d=[h.seriesLayoutBy,h.startIndex,i].join("$$");return{dimensions:a,hash:d}},t.prototype.makeOutputDimensionNames=function(){for(var e=[],r=0,n=0;r<this._fullDimCount;r++){var i=void 0,a=this.dimensions[n];if(a&&a.storeDimIndex===r)a.isCalculationCoord||(i=a.name),n++;else{var o=this.getSourceDimension(r);o&&(i=o.name)}e.push(i)}return e},t.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},t})();function Ib(t){return t instanceof Pb}function Ob(t){for(var e=ae(),r=0;r<(t||[]).length;r++){var n=t[r],i=q(n)?n.name:n;i!=null&&e.get(i)==null&&e.set(i,r)}return e}function kb(t){var e=$E(t);return e.dimNameMap||(e.dimNameMap=Ob(t.dimensionsDefine))}function Nb(t){return t>30}var ra=q,Nr=X,qE=typeof Int32Array>"u"?Array:Int32Array,XE="e\0\0",ug=-1,ZE=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],KE=["_approximateExtent"],cg,rs,na,ia,dc,aa,pc,Iv=(function(){function t(e,r){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var n,i=!1;Ib(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={},c=0;c<n.length;c++){var f=n[c],v=Y(f)?new Gs({name:f}):f instanceof Gs?f:new Gs(f),h=v.name;v.type=v.type||"float",v.coordDim||(v.coordDim=h,v.coordDimIndex=0);var d=v.otherDims=v.otherDims||{};o.push(h),a[h]=v,u[h]!=null&&(l=!0),v.createInvertedIndices&&(s[h]=[]);var p=c;me(v.storeDimIndex)&&(p=v.storeDimIndex),d.itemName===0&&(this._nameDimIdx=p),d.itemId===0&&(this._idDimIdx=p),i&&(v.storeDimIndex=c)}if(this.dimensions=o,this._dimInfos=a,this._initGetDimensionInfo(l),this.hostModel=r,this._invertedIndicesMap=s,this._dimOmitted){var g=this._dimIdxToName=ae();C(o,function(m){g.set(a[m].storeDimIndex,m)})}}return t.prototype.getDimension=function(e){var r=this._recognizeDimIndex(e);if(r==null)return e;if(r=e,!this._dimOmitted)return this.dimensions[r];var n=this._dimIdxToName.get(r);if(n!=null)return n;var i=this._schema.getSourceDimension(r);if(i)return i.name},t.prototype.getDimensionIndex=function(e){var r=this._recognizeDimIndex(e);if(r!=null)return r;if(e==null)return-1;var n=this._getDimInfo(e);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},t.prototype._recognizeDimIndex=function(e){if(me(e)||e!=null&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},t.prototype._getStoreDimIndex=function(e){var r=this.getDimensionIndex(e);return r},t.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},t.prototype._initGetDimensionInfo=function(e){var r=this._dimInfos;this._getDimInfo=e?function(n){return r.hasOwnProperty(n)?r[n]:void 0}:function(n){return r[n]}},t.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},t.prototype.mapDimension=function(e,r){var n=this._dimSummary;if(r==null)return n.encodeFirstDimNotExtra[e];var i=n.encode[e];return i?i[r]:null},t.prototype.mapDimensionsAll=function(e){var r=this._dimSummary,n=r.encode[e];return(n||[]).slice()},t.prototype.getStore=function(){return this._store},t.prototype.initData=function(e,r,n){var i=this,a;if(e instanceof nh&&(a=e),!a){var o=this.dimensions,s=Lv(e)||rt(e)?new Db(e,o.length):e;a=new nh;var l=Nr(o,function(u){return{type:i._dimInfos[u].type,property:u}});a.initData(s,l,n)}this._store=a,this._nameList=(r||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,a.count()),this._dimSummary=zE(this,this._schema),this.userOutput=this._dimSummary.userOutput},t.prototype.appendData=function(e){var r=this._store.appendData(e);this._doInit(r[0],r[1])},t.prototype.appendValues=function(e,r){var n=this._store.appendValues(e,r&&r.length),i=n.start,a=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),r)for(var s=i;s<a;s++){var l=s-i;this._nameList[s]=r[l],o&&pc(this,s)}},t.prototype._updateOrdinalMeta=function(){for(var e=this._store,r=this.dimensions,n=0;n<r.length;n++){var i=this._dimInfos[r[n]];i.ordinalMeta&&e.collectOrdinalMeta(i.storeDimIndex,i.ordinalMeta)}},t.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return this._idDimIdx==null&&e.getSource().sourceFormat!==Jr&&!e.fillStorage},t.prototype._doInit=function(e,r){if(!(e>=r)){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=[],c=e;c<r;c++){var f=i.getItem(c,u);if(!this.hasItemOption&&JM(f)&&(this.hasItemOption=!0),f){var v=f.name;a[c]==null&&v!=null&&(a[c]=sr(v,null));var h=f.id;o[c]==null&&h!=null&&(o[c]=sr(h,null))}}if(this._shouldMakeIdFromName())for(var c=e;c<r;c++)pc(this,c);cg(this)}},t.prototype.getApproximateExtent=function(e){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e))},t.prototype.setApproximateExtent=function(e,r){r=this.getDimension(r),this._approximateExtent[r]=e.slice()},t.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},t.prototype.setCalculationInfo=function(e,r){ra(e)?F(this._calculationInfo,e):this._calculationInfo[e]=r},t.prototype.getName=function(e){var r=this.getRawIndex(e),n=this._nameList[r];return n==null&&this._nameDimIdx!=null&&(n=na(this,this._nameDimIdx,r)),n==null&&(n=""),n},t.prototype._getCategory=function(e,r){var n=this._store.get(e,r),i=this._store.getOrdinalMeta(e);return i?i.categories[n]:n},t.prototype.getId=function(e){return rs(this,this.getRawIndex(e))},t.prototype.count=function(){return this._store.count()},t.prototype.get=function(e,r){var n=this._store,i=this._dimInfos[e];if(i)return n.get(i.storeDimIndex,r)},t.prototype.getByRawIndex=function(e,r){var n=this._store,i=this._dimInfos[e];if(i)return n.getByRawIndex(i.storeDimIndex,r)},t.prototype.getIndices=function(){return this._store.getIndices()},t.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e))},t.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},t.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},t.prototype.getValues=function(e,r){var n=this,i=this._store;return W(e)?i.getValues(Nr(e,function(a){return n._getStoreDimIndex(a)}),r):i.getValues(e)},t.prototype.hasValue=function(e){for(var r=this._dimSummary.dataDimIndicesOnCoord,n=0,i=r.length;n<i;n++)if(isNaN(this._store.get(r[n],e)))return!1;return!0},t.prototype.indexOfName=function(e){for(var r=0,n=this._store.count();r<n;r++)if(this.getName(r)===e)return r;return-1},t.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},t.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},t.prototype.rawIndexOf=function(e,r){var n=e&&this._invertedIndicesMap[e],i=n&&n[r];return i==null||isNaN(i)?ug:i},t.prototype.each=function(e,r,n){ie(e)&&(n=r,r=e,e=[]);var i=n||this,a=Nr(ia(e),this._getStoreDimIndex,this);this._store.each(a,i?de(r,i):r)},t.prototype.filterSelf=function(e,r,n){ie(e)&&(n=r,r=e,e=[]);var i=n||this,a=Nr(ia(e),this._getStoreDimIndex,this);return this._store=this._store.filter(a,i?de(r,i):r),this},t.prototype.selectRange=function(e){var r=this,n={},i=Se(e);return C(i,function(a){var o=r._getStoreDimIndex(a);n[o]=e[a]}),this._store=this._store.selectRange(n),this},t.prototype.mapArray=function(e,r,n){ie(e)&&(n=r,r=e,e=[]),n=n||this;var i=[];return this.each(e,function(){i.push(r&&r.apply(this,arguments))},n),i},t.prototype.map=function(e,r,n,i){var a=n||i||this,o=Nr(ia(e),this._getStoreDimIndex,this),s=aa(this);return s._store=this._store.map(o,a?de(r,a):r),s},t.prototype.modify=function(e,r,n,i){var a=n||i||this,o=Nr(ia(e),this._getStoreDimIndex,this);this._store.modify(o,a?de(r,a):r)},t.prototype.downSample=function(e,r,n,i){var a=aa(this);return a._store=this._store.downSample(this._getStoreDimIndex(e),r,n,i),a},t.prototype.minmaxDownSample=function(e,r){var n=aa(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),r),n},t.prototype.lttbDownSample=function(e,r){var n=aa(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(e),r),n},t.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},t.prototype.getItemModel=function(e){var r=this.hostModel,n=this.getRawDataItem(e);return new _e(n,r,r&&r.ecModel)},t.prototype.diff=function(e){var r=this;return new ME(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(n){return rs(e,n)},function(n){return rs(r,n)})},t.prototype.getVisual=function(e){var r=this._visual;return r&&r[e]},t.prototype.setVisual=function(e,r){this._visual=this._visual||{},ra(e)?F(this._visual,e):this._visual[e]=r},t.prototype.getItemVisual=function(e,r){var n=this._itemVisuals[e],i=n&&n[r];return i??this.getVisual(r)},t.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},t.prototype.ensureUniqueItemVisual=function(e,r){var n=this._itemVisuals,i=n[e];i||(i=n[e]={});var a=i[r];return a==null&&(a=this.getVisual(r),W(a)?a=a.slice():ra(a)&&(a=F({},a)),i[r]=a),a},t.prototype.setItemVisual=function(e,r,n){var i=this._itemVisuals[e]||{};this._itemVisuals[e]=i,ra(r)?F(i,r):i[r]=n},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(e,r){ra(e)?F(this._layout,e):this._layout[e]=r},t.prototype.getLayout=function(e){return this._layout[e]},t.prototype.getItemLayout=function(e){return this._itemLayouts[e]},t.prototype.setItemLayout=function(e,r,n){this._itemLayouts[e]=n?F(this._itemLayouts[e]||{},r):r},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(e,r){var n=this.hostModel&&this.hostModel.seriesIndex;hA(n,this.dataType,e,r),this._graphicEls[e]=r},t.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},t.prototype.eachItemGraphicEl=function(e,r){C(this._graphicEls,function(n,i){n&&e&&e.call(r,n,i)})},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:Nr(this.dimensions,this._getDimInfo,this),this.hostModel)),dc(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(e,r){var n=this[e];ie(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var i=n.apply(this,arguments);return r.apply(this,[i].concat(Ql(arguments)))})},t.internalField=(function(){cg=function(e){var r=e._invertedIndicesMap;C(r,function(n,i){var a=e._dimInfos[i],o=a.ordinalMeta,s=e._store;if(o){n=r[i]=new qE(o.categories.length);for(var l=0;l<n.length;l++)n[l]=ug;for(var l=0;l<s.count();l++)n[s.get(a.storeDimIndex,l)]=l}})},na=function(e,r,n){return sr(e._getCategory(r,n),null)},rs=function(e,r){var n=e._idList[r];return n==null&&e._idDimIdx!=null&&(n=na(e,e._idDimIdx,r)),n==null&&(n=XE+r),n},ia=function(e){return W(e)||(e=e!=null?[e]:[]),e},aa=function(e){var r=new t(e._schema?e._schema:Nr(e.dimensions,e._getDimInfo,e),e.hostModel);return dc(r,e),r},dc=function(e,r){C(ZE.concat(r.__wrappedMethods||[]),function(n){r.hasOwnProperty(n)&&(e[n]=r[n])}),e.__wrappedMethods=r.__wrappedMethods,C(KE,function(n){e[n]=oe(r[n])}),e._calculationInfo=F({},r._calculationInfo)},pc=function(e,r){var n=e._nameList,i=e._idList,a=e._nameDimIdx,o=e._idDimIdx,s=n[r],l=i[r];if(s==null&&a!=null&&(n[r]=s=na(e,a,r)),l==null&&o!=null&&(i[r]=l=na(e,o,r)),l==null&&s!=null){var u=e._nameRepeatCount,c=u[s]=(u[s]||0)+1;l=s,c>1&&(l+="__ec__"+c),i[r]=l}}})(),t})();function QE(t,e){return Ov(t,e).dimensions}function Ov(t,e){Lv(t)||(t=wb(t)),e=e||{};var r=e.coordDimensions||[],n=e.dimensionsDefine||t.dimensionsDefine||[],i=ae(),a=[],o=eR(t,r,n,e.dimensionsCount),s=e.canOmitUnusedDimensions&&Nb(o),l=n===t.dimensionsDefine,u=l?kb(t):Ob(n),c=e.encodeDefine;!c&&e.encodeDefaulter&&(c=e.encodeDefaulter(t,o));for(var f=ae(c),v=new Rb(o),h=0;h<v.length;h++)v[h]=-1;function d(M){var A=v[M];if(A<0){var D=n[M],P=q(D)?D:{name:D},E=new Gs,L=P.name;L!=null&&u.get(L)!=null&&(E.name=E.displayName=L),P.type!=null&&(E.type=P.type),P.displayName!=null&&(E.displayName=P.displayName);var k=a.length;return v[M]=k,E.storeDimIndex=M,a.push(E),E}return a[A]}if(!s)for(var h=0;h<o;h++)d(h);f.each(function(M,A){var D=tt(M).slice();if(D.length===1&&!Y(D[0])&&D[0]<0){f.set(A,!1);return}var P=f.set(A,[]);C(D,function(E,L){var k=Y(E)?u.get(E):E;k!=null&&k<o&&(P[L]=k,g(d(k),A,L))})});var p=0;C(r,function(M){var A,D,P,E;if(Y(M))A=M,E={};else{E=M,A=E.name;var L=E.ordinalMeta;E.ordinalMeta=null,E=F({},E),E.ordinalMeta=L,D=E.dimsDef,P=E.otherDims,E.name=E.coordDim=E.coordDimIndex=E.dimsDef=E.otherDims=null}var k=f.get(A);if(k!==!1){if(k=tt(k),!k.length)for(var N=0;N<(D&&D.length||1);N++){for(;p<o&&d(p).coordDim!=null;)p++;p<o&&k.push(p++)}C(k,function($,B){var U=d($);if(l&&E.type!=null&&(U.type=E.type),g(pe(U,E),A,B),U.name==null&&D){var j=D[B];!q(j)&&(j={name:j}),U.name=U.displayName=j.name,U.defaultTooltip=j.defaultTooltip}P&&pe(U.otherDims,P)})}});function g(M,A,D){yb.get(A)!=null?M.otherDims[A]=D:(M.coordDim=A,M.coordDimIndex=D,i.set(A,!0))}var m=e.generateCoord,y=e.generateCoordCount,_=y!=null;y=m?y||1:0;var b=m||"value";function S(M){M.name==null&&(M.name=M.coordDim)}if(s)C(a,function(M){S(M)}),a.sort(function(M,A){return M.storeDimIndex-A.storeDimIndex});else for(var x=0;x<o;x++){var w=d(x),T=w.coordDim;T==null&&(w.coordDim=tR(b,i,_),w.coordDimIndex=0,(!m||y<=0)&&(w.isExtraCoord=!0),y--),S(w),w.type==null&&(Sb(t,x)===Fe.Must||w.isExtraCoord&&(w.otherDims.itemName!=null||w.otherDims.seriesName!=null))&&(w.type="ordinal")}return JE(a),new Pb({source:t,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function JE(t){for(var e=ae(),r=0;r<t.length;r++){var n=t[r],i=n.name,a=e.get(i)||0;a>0&&(n.name=i+(a-1)),a++,e.set(i,a)}}function eR(t,e,r,n){var i=Math.max(t.dimensionsDetectedCount||1,e.length,r.length,n||0);return C(e,function(a){var o;q(a)&&(o=a.dimsDef)&&(i=Math.max(i,o.length))}),i}function tR(t,e,r){if(r||e.hasKey(t)){for(var n=0;e.hasKey(t+n);)n++;t+=n}return e.set(t,!0),t}var Ws={},gc={},xu=(function(){function t(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return t.prototype.create=function(e,r){this._nonSeriesBoxMasterList=n(Ws),this._normalMasterList=n(gc);function n(i,a){var o=[];return C(i,function(s,l){var u=s.create(e,r);o=o.concat(u||[])}),o}},t.prototype.update=function(e,r){C(this._normalMasterList,function(n){n.update&&n.update(e,r)})},t.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},t.register=function(e,r){if(e==="matrix"||e==="calendar"){Ws[e]=r;return}gc[e]=r},t.get=function(e){return gc[e]||Ws[e]},t})();function rR(t){return!!Ws[t]}var ih={coord:1,coord2:2};function nR(t){Bb.set(t.fullType,{getCoord2:void 0}).getCoord2=t.getCoord2}var Bb=ae();function iR(t){var e=t.getShallow("coord",!0),r=ih.coord;if(e==null){var n=Bb.get(t.type);n&&n.getCoord2&&(r=ih.coord2,e=n.getCoord2(t))}return{coord:e,from:r}}var Cr={none:0,dataCoordSys:1,boxCoordSys:2};function aR(t,e){var r=t.getShallow("coordinateSystem"),n=t.getShallow("coordinateSystemUsage",!0),i=Cr.none;if(r){var a=t.mainType==="series";n==null&&(n=a?"data":"box"),n==="data"?(i=Cr.dataCoordSys,a||(i=Cr.none)):n==="box"&&(i=Cr.boxCoordSys,!a&&!rR(r)&&(i=Cr.none))}return{coordSysType:r,kind:i}}function oR(t){var e=t.targetModel,r=t.coordSysType,n=t.coordSysProvider,i=t.isDefaultDataCoordSys,a=aR(e),o=a.kind,s=a.coordSysType;if(i&&o!==Cr.dataCoordSys&&(o=Cr.dataCoordSys,s=r),o===Cr.none||s!==r)return!1;var l=n(r,e);return l?(o===Cr.dataCoordSys?e.coordinateSystem=l:e.boxCoordinateSystem=l,!0):!1}var sR=(function(){function t(e){this.coordSysDims=[],this.axisMap=ae(),this.categoryAxisMap=ae(),this.coordSysName=e}return t})();function lR(t){var e=t.get("coordinateSystem"),r=new sR(e),n=uR[e];if(n)return n(t,r,r.axisMap,r.categoryAxisMap),r}var uR={cartesian2d:function(t,e,r,n){var i=t.getReferringComponents("xAxis",Et).models[0],a=t.getReferringComponents("yAxis",Et).models[0];e.coordSysDims=["x","y"],r.set("x",i),r.set("y",a),di(i)&&(n.set("x",i),e.firstCategoryDimIndex=0),di(a)&&(n.set("y",a),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,r,n){var i=t.getReferringComponents("singleAxis",Et).models[0];e.coordSysDims=["single"],r.set("single",i),di(i)&&(n.set("single",i),e.firstCategoryDimIndex=0)},polar:function(t,e,r,n){var i=t.getReferringComponents("polar",Et).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],r.set("radius",a),r.set("angle",o),di(a)&&(n.set("radius",a),e.firstCategoryDimIndex=0),di(o)&&(n.set("angle",o),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(t,e,r,n){e.coordSysDims=["lng","lat"]},parallel:function(t,e,r,n){var i=t.ecModel,a=i.getComponent("parallel",t.get("parallelIndex")),o=e.coordSysDims=a.dimensions.slice();C(a.parallelAxisIndex,function(s,l){var u=i.getComponent("parallelAxis",s),c=o[l];r.set(c,u),di(u)&&(n.set(c,u),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=l))})},matrix:function(t,e,r,n){var i=t.getReferringComponents("matrix",Et).models[0];e.coordSysDims=["x","y"];var a=i.getDimensionModel("x"),o=i.getDimensionModel("y");r.set("x",a),r.set("y",o),n.set("x",a),n.set("y",o)}};function di(t){return t.get("type")==="category"}function Fb(t,e,r){r=r||{};var n=r.byIndex,i=r.stackedCoordDimension,a,o,s;cR(e)?a=e:(o=e.schema,a=o.dimensions,s=e.store);var l=!!(t&&t.get("stack")),u,c,f,v;if(C(a,function(y,_){Y(y)&&(a[_]=y={name:y}),l&&!y.isExtraCoord&&(!n&&!u&&y.ordinalMeta&&(u=y),!c&&y.type!=="ordinal"&&y.type!=="time"&&(!i||i===y.coordDim)&&(c=y))}),c&&!n&&!u&&(n=!0),c){f="__\0ecstackresult_"+t.id,v="__\0ecstackedover_"+t.id,u&&(u.createInvertedIndices=!0);var h=c.coordDim,d=c.type,p=0;C(a,function(y){y.coordDim===h&&p++});var g={name:f,coordDim:h,coordDimIndex:p,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},m={name:v,coordDim:v,coordDimIndex:p+1,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(g.storeDimIndex=s.ensureCalculationDimension(v,d),m.storeDimIndex=s.ensureCalculationDimension(f,d)),o.appendCalculationDimension(g),o.appendCalculationDimension(m)):(a.push(g),a.push(m))}return{stackedDimension:c&&c.name,stackedByDimension:u&&u.name,isStackedByIndex:n,stackedOverDimension:v,stackResultDimension:f}}function cR(t){return!Ib(t.schema)}function to(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function zb(t,e){return to(t,e)?t.getCalculationInfo("stackResultDimension"):e}function fR(t,e){var r=t.get("coordinateSystem"),n=xu.get(r),i;return e&&e.coordSysDims&&(i=X(e.coordSysDims,function(a){var o={name:a},s=e.axisMap.get(a);if(s){var l=s.get("type");o.type=HE(l)}return o})),i||(i=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),i}function hR(t,e,r){var n,i;return r&&C(t,function(a,o){var s=a.coordDim,l=r.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&&(t[n].otherDims.itemName=0),n}function wu(t,e,r){r=r||{};var n=e.getSourceManager(),i,a=!1;i=n.getSource(),a=i.sourceFormat===_t;var o=lR(e),s=fR(e,o),l=r.useEncodeDefaulter,u=ie(l)?l:l?we(EE,s,e):null,c={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},f=Ov(i,c),v=hR(f.dimensions,r.createInvertedIndices,o),h=a?null:n.getSharedDataStore(f),d=Fb(e,{schema:f,store:h}),p=new Iv(f,e);p.setCalculationInfo(d);var g=v!=null&&vR(i)?function(m,y,_,b){return b===v?_:this.defaultDimValueGetter(m,y,_,b)}:null;return p.hasItemOption=!1,p.initData(a?i:h,null,g),p}function vR(t){if(t.sourceFormat===_t){var e=dR(t.data||[]);return!W(To(e))}}function dR(t){for(var e=0;e<t.length&&t[e]==null;)e++;return t[e]}var pR=Math.round(Math.random()*10);function Tu(t){return[t||"",pR++].join("_")}function gR(t){var e={};t.registerSubTypeDefaulter=function(r,n){var i=nr(r);e[i.main]=n},t.determineSubType=function(r,n){var i=n.type;if(!i){var a=nr(r).main;t.hasSubTypes(r)&&e[a]&&(i=e[a](n))}return i}}function mR(t,e){t.topologicalTravel=function(a,o,s,l){if(!a.length)return;var u=r(o),c=u.graph,f=u.noEntryList,v={};for(C(a,function(y){v[y]=!0});f.length;){var h=f.pop(),d=c[h],p=!!v[h];p&&(s.call(l,h,d.originalDeps.slice()),delete v[h]),C(d.successor,p?m:g)}C(v,function(){var y="";throw new Error(y)});function g(y){c[y].entryCount--,c[y].entryCount===0&&f.push(y)}function m(y){v[y]=!0,g(y)}};function r(a){var o={},s=[];return C(a,function(l){var u=n(o,l),c=u.originalDeps=e(l),f=i(c,a);u.entryCount=f.length,u.entryCount===0&&s.push(l),C(f,function(v){le(u.predecessor,v)<0&&u.predecessor.push(v);var h=n(o,v);le(h.successor,v)<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 C(a,function(l){le(o,l)>=0&&s.push(l)}),s}}function Hb(t,e){return ue(ue({},t,!0),e,!0)}var yR=Math.log(2);function ah(t,e,r,n,i,a){var o=n+"-"+i,s=t.length;if(a.hasOwnProperty(o))return a[o];if(e===1){var l=Math.round(Math.log((1<<s)-1&~i)/yR);return t[r][l]}for(var u=n|1<<r,c=r+1;n&1<<c;)c++;for(var f=0,v=0,h=0;v<s;v++){var d=1<<v;d&i||(f+=(h%2?-1:1)*t[r][v]*ah(t,e-1,c,u,i|d,a),h++)}return a[o]=f,f}function fg(t,e){var r=[[t[0],t[1],1,0,0,0,-e[0]*t[0],-e[0]*t[1]],[0,0,0,t[0],t[1],1,-e[1]*t[0],-e[1]*t[1]],[t[2],t[3],1,0,0,0,-e[2]*t[2],-e[2]*t[3]],[0,0,0,t[2],t[3],1,-e[3]*t[2],-e[3]*t[3]],[t[4],t[5],1,0,0,0,-e[4]*t[4],-e[4]*t[5]],[0,0,0,t[4],t[5],1,-e[5]*t[4],-e[5]*t[5]],[t[6],t[7],1,0,0,0,-e[6]*t[6],-e[6]*t[7]],[0,0,0,t[6],t[7],1,-e[7]*t[6],-e[7]*t[7]]],n={},i=ah(r,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)*ah(r,7,o===0?1:0,1<<o,1<<s,n)/i*e[o];return function(l,u,c){var f=u*a[6]+c*a[7]+1;l[0]=(u*a[0]+c*a[1]+a[2])/f,l[1]=(u*a[3]+c*a[4]+a[5])/f}}}var wl="___zrEVENTSAVED",mc=[];function _R(t,e,r,n,i){return oh(mc,e,n,i,!0)&&oh(t,r,mc[0],mc[1])}function bR(t,e){t&&r(t),e&&r(e);function r(n){var i=n[wl];i&&(i.clearMarkers&&i.clearMarkers(),delete n[wl])}}function oh(t,e,r,n,i){if(e.getBoundingClientRect&&te.domSupported&&!Ub(e)){var a=e[wl]||(e[wl]={}),o=SR(e,a),s=xR(o,a,i);if(s)return s(t,r,n),!0}return!1}function SR(t,e){var r=e.markers;if(r)return r;r=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;"),t.appendChild(o),r.push(o)}return e.clearMarkers=function(){C(r,function(c){c.parentNode&&c.parentNode.removeChild(c)})},r}function xR(t,e,r){for(var n=r?"invTrans":"trans",i=e[n],a=e.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var c=t[u].getBoundingClientRect(),f=2*u,v=c.left,h=c.top;o.push(v,h),l=l&&a&&v===a[f]&&h===a[f+1],s.push(t[u].offsetLeft,t[u].offsetTop)}return l&&i?i:(e.srcCoords=o,e[n]=r?fg(s,o):fg(o,s))}function Ub(t){return t.nodeName.toUpperCase()==="CANVAS"}var wR=/([&<>"'])/g,TR={"&":"&","<":"<",">":">",'"':""","'":"'"};function Qe(t){return t==null?"":(t+"").replace(wR,function(e,r){return TR[r]})}const CR={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:". "}}}},DR={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}};var Tl="ZH",kv="EN",Pi=kv,js={},Nv={},Gb=te.domSupported?(function(){var t=(document.documentElement.lang||navigator.language||navigator.browserLanguage||Pi).toUpperCase();return t.indexOf(Tl)>-1?Tl:Pi})():Pi;function Bv(t,e){t=t.toUpperCase(),Nv[t]=new _e(e),js[t]=e}function MR(t){if(Y(t)){var e=js[t.toUpperCase()]||{};return t===Tl||t===kv?oe(e):ue(oe(e),oe(js[Pi]),!1)}else return ue(oe(t),oe(js[Pi]),!1)}function AR(t){return Nv[t]}function ER(){return Nv[Pi]}Bv(kv,CR);Bv(Tl,DR);var RR=null;function Cl(){return RR}var Fv=1e3,zv=Fv*60,Fa=zv*60,Rt=Fa*24,hg=Rt*365,LR={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})/},$s={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}"},PR="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}",ns="{yyyy}-{MM}-{dd}",vg={year:"{yyyy}",month:"{yyyy}-{MM}",day:ns,hour:ns+" "+$s.hour,minute:ns+" "+$s.minute,second:ns+" "+$s.second,millisecond:PR},qn=["year","month","day","hour","minute","second","millisecond"],IR=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function OR(t){return!Y(t)&&!ie(t)?kR(t):t}function kR(t){t=t||{};var e={},r=!0;return C(qn,function(n){r&&(r=t[n]==null)}),C(qn,function(n,i){var a=t[n];e[n]={};for(var o=null,s=i;s>=0;s--){var l=qn[s],u=q(a)&&!W(a)?a[l]:a,c=void 0;W(u)?(c=u.slice(),o=c[0]||""):Y(u)?(o=u,c=[o]):(o==null?o=$s[n]:LR[l].test(o)||(o=e[l][l][0]+" "+o),c=[o],r&&(c[1]="{primary|"+o+"}")),e[n][l]=c}}),e}function Xe(t,e){return t+="","0000".substr(0,e-t.length)+t}function za(t){switch(t){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return t}}function NR(t){return t===za(t)}function BR(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Eo(t,e,r,n){var i=Er(t),a=i[Vb(r)](),o=i[Hv(r)]()+1,s=Math.floor((o-1)/3)+1,l=i[Uv(r)](),u=i["get"+(r?"UTC":"")+"Day"](),c=i[Gv(r)](),f=(c-1)%12+1,v=i[Vv(r)](),h=i[Wv(r)](),d=i[jv(r)](),p=c>=12?"pm":"am",g=p.toUpperCase(),m=n instanceof _e?n:AR(n||Gb)||ER(),y=m.getModel("time"),_=y.get("month"),b=y.get("monthAbbr"),S=y.get("dayOfWeek"),x=y.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,p+"").replace(/{A}/g,g+"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,Xe(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,b[o-1]).replace(/{MM}/g,Xe(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Xe(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,S[u]).replace(/{ee}/g,x[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Xe(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,Xe(f+"",2)).replace(/{h}/g,f+"").replace(/{mm}/g,Xe(v,2)).replace(/{m}/g,v+"").replace(/{ss}/g,Xe(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,Xe(d,3)).replace(/{S}/g,d+"")}function FR(t,e,r,n,i){var a=null;if(Y(r))a=r;else if(ie(r)){var o={time:t.time,level:t.time.level},s=Cl();s&&s.makeAxisLabelFormatterParamBreak(o,t.break),a=r(t.value,e,o)}else{var l=t.time;if(l){var u=r[l.lowerTimeUnit][l.upperTimeUnit];a=u[Math.min(l.level,u.length-1)]||""}else{var c=Dl(t.value,i);a=r[c][c][0]}}return Eo(new Date(t.value),a,i,n)}function Dl(t,e){var r=Er(t),n=r[Hv(e)]()+1,i=r[Uv(e)](),a=r[Gv(e)](),o=r[Vv(e)](),s=r[Wv(e)](),l=r[jv(e)](),u=l===0,c=u&&s===0,f=c&&o===0,v=f&&a===0,h=v&&i===1,d=h&&n===1;return d?"year":h?"month":v?"day":f?"hour":c?"minute":u?"second":"millisecond"}function Ml(t,e,r){switch(e){case"year":t[Wb(r)](0);case"month":t[jb(r)](1);case"day":t[$b(r)](0);case"hour":t[Yb(r)](0);case"minute":t[qb(r)](0);case"second":t[Xb(r)](0)}return t}function Vb(t){return t?"getUTCFullYear":"getFullYear"}function Hv(t){return t?"getUTCMonth":"getMonth"}function Uv(t){return t?"getUTCDate":"getDate"}function Gv(t){return t?"getUTCHours":"getHours"}function Vv(t){return t?"getUTCMinutes":"getMinutes"}function Wv(t){return t?"getUTCSeconds":"getSeconds"}function jv(t){return t?"getUTCMilliseconds":"getMilliseconds"}function zR(t){return t?"setUTCFullYear":"setFullYear"}function Wb(t){return t?"setUTCMonth":"setMonth"}function jb(t){return t?"setUTCDate":"setDate"}function $b(t){return t?"setUTCHours":"setHours"}function Yb(t){return t?"setUTCMinutes":"setMinutes"}function qb(t){return t?"setUTCSeconds":"setSeconds"}function Xb(t){return t?"setUTCMilliseconds":"setMilliseconds"}function HR(t,e,r,n,i,a,o,s){var l=new je({style:{text:t,font:e,align:r,verticalAlign:n,padding:i,rich:a,overflow:o?"truncate":null,lineHeight:s}});return l.getBoundingRect()}function $v(t){if(!M_(t))return Y(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function Yv(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,function(r,n){return n.toUpperCase()}),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}var Ro=Jl;function sh(t,e,r){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(c){return c&&Ut(c)?c:"-"}function a(c){return!!(c!=null&&!isNaN(c)&&isFinite(c))}var o=e==="time",s=t instanceof Date;if(o||s){var l=o?Er(t):t;if(isNaN(+l)){if(s)return"-"}else return Eo(l,n,r)}if(e==="ordinal")return rl(t)?i(t):me(t)&&a(t)?t+"":"-";var u=Ka(t);return a(u)?$v(u):rl(t)?i(t):typeof t=="boolean"?t+"":"-"}var dg=["a","b","c","d","e","f","g"],yc=function(t,e){return"{"+t+(e??"")+"}"};function qv(t,e,r){W(e)||(e=[e]);var n=e.length;if(!n)return"";for(var i=e[0].$vars||[],a=0;a<i.length;a++){var o=dg[a];t=t.replace(yc(o),yc(o,0))}for(var s=0;s<n;s++)for(var l=0;l<i.length;l++){var u=e[s][i[l]];t=t.replace(yc(dg[l],s),r?Qe(u):u)}return t}function Zb(t,e){var r=Y(t)?{color:t,extraCssText:e}:t||{},n=r.color,i=r.type;e=r.extraCssText;var a=r.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:'+Qe(n)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Qe(n)+";"+(e||"")+'"></span>';var o=r.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 UR(t,e,r){(t==="week"||t==="month"||t==="quarter"||t==="half-year"||t==="year")&&(t=`MM-dd
|
|
14
|
-
yyyy`);var n=Er(e),i=r?"getUTC":"get",a=n[i+"FullYear"](),o=n[i+"Month"]()+1,s=n[i+"Date"](),l=n[i+"Hours"](),u=n[i+"Minutes"](),c=n[i+"Seconds"](),f=n[i+"Milliseconds"]();return t=t.replace("MM",Xe(o,2)).replace("M",o).replace("yyyy",a).replace("yy",Xe(a%100+"",2)).replace("dd",Xe(s,2)).replace("d",s).replace("hh",Xe(l,2)).replace("h",l).replace("mm",Xe(u,2)).replace("m",u).replace("ss",Xe(c,2)).replace("s",c).replace("SSS",Xe(f,3)),t}function GR(t){return t&&t.charAt(0).toUpperCase()+t.substr(1)}function ro(t,e){return e=e||"transparent",Y(t)?t:q(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}var Ys=C,VR=["left","right","top","bottom","width","height"],is=[["width","left","right"],["height","top","bottom"]];function Xv(t,e,r,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 c=l.getBoundingRect(),f=e.childAt(u+1),v=f&&f.getBoundingRect(),h,d;if(t==="horizontal"){var p=c.width+(v?-v.x+c.x:0);h=a+p,h>n||l.newline?(a=0,h=p,o+=s+r,s=c.height):s=Math.max(s,c.height)}else{var g=c.height+(v?-v.y+c.y:0);d=o+g,d>i||l.newline?(a+=s+r,o=0,d=g,s=c.width):s=Math.max(s,c.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),t==="horizontal"?a=h+r:o=d+r)})}var Ha=Xv;we(Xv,"vertical");we(Xv,"horizontal");function WR(t,e){return{left:t.getShallow("left",e),top:t.getShallow("top",e),right:t.getShallow("right",e),bottom:t.getShallow("bottom",e),width:t.getShallow("width",e),height:t.getShallow("height",e)}}function jR(t,e){var r=Zv(t,e,{enableLayoutOnlyByCenter:!0}),n=t.getBoxLayoutParams(),i,a;if(r.type===Da.point)a=r.refPoint,i=an(n,{width:e.getWidth(),height:e.getHeight()});else{var o=t.get("center"),s=W(o)?o:[o,o];i=an(n,r.refContainer),a=r.boxCoordFrom===ih.coord2?r.refPoint:[be(s[0],i.width)+i.x,be(s[1],i.height)+i.y]}return{viewRect:i,center:a}}function $R(t,e){var r=jR(t,e),n=r.viewRect,i=r.center,a=t.get("radius");W(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),c=be(a[1],l/2);return{cx:i[0],cy:i[1],r0:u,r:c,viewRect:n}}function an(t,e,r){r=Ro(r||0);var n=e.width,i=e.height,a=be(t.left,n),o=be(t.top,i),s=be(t.right,n),l=be(t.bottom,i),u=be(t.width,n),c=be(t.height,i),f=r[2]+r[0],v=r[1]+r[3],h=t.aspect;switch(isNaN(u)&&(u=n-s-v-a),isNaN(c)&&(c=i-l-f-o),h!=null&&(isNaN(u)&&isNaN(c)&&(h>n/i?u=n*.8:c=i*.8),isNaN(u)&&(u=h*c),isNaN(c)&&(c=u/h)),isNaN(a)&&(a=n-s-u-v),isNaN(o)&&(o=i-l-c-f),t.left||t.right){case"center":a=n/2-u/2-r[3];break;case"right":a=n-u-v;break}switch(t.top||t.bottom){case"middle":case"center":o=i/2-c/2-r[0];break;case"bottom":o=i-c-f;break}a=a||0,o=o||0,isNaN(u)&&(u=n-v-a-(s||0)),isNaN(c)&&(c=i-f-o-(l||0));var d=new re((e.x||0)+a+r[3],(e.y||0)+o+r[0],u,c);return d.margin=r,d}var Da={rect:1,point:2};function Zv(t,e,r){var n,i,a,o=t.boxCoordinateSystem,s;if(o){var l=iR(t),u=l.coord,c=l.from;if(o.dataToLayout){a=Da.rect,s=c;var f=o.dataToLayout(u);n=f.contentRect||f.rect}else r&&r.enableLayoutOnlyByCenter&&o.dataToPoint&&(a=Da.point,s=c,i=o.dataToPoint(u))}return a==null&&(a=Da.rect),a===Da.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 no(t){var e=t.layoutMode||t.constructor.layoutMode;return q(e)?e:e?{type:e}:null}function on(t,e,r){var n=r&&r.ignoreSize;!W(n)&&(n=[n,n]);var i=o(is[0],0),a=o(is[1],1);l(is[0],t,i),l(is[1],t,a);function o(u,c){var f={},v=0,h={},d=0,p=2;if(Ys(u,function(y){h[y]=t[y]}),Ys(u,function(y){Lt(e,y)&&(f[y]=h[y]=e[y]),s(f,y)&&v++,s(h,y)&&d++}),n[c])return s(e,u[1])?h[u[2]]=null:s(e,u[2])&&(h[u[1]]=null),h;if(d===p||!v)return h;if(v>=p)return f;for(var g=0;g<u.length;g++){var m=u[g];if(!Lt(f,m)&&Lt(t,m)){f[m]=t[m];break}}return f}function s(u,c){return u[c]!=null&&u[c]!=="auto"}function l(u,c,f){Ys(u,function(v){c[v]=f[v]})}}function Lo(t){return YR({},t)}function YR(t,e){return e&&t&&Ys(VR,function(r){Lt(e,r)&&(t[r]=e[r])}),t}var qR=xe(),fe=(function(t){G(e,t);function e(r,n,i){var a=t.call(this,r,n,i)||this;return a.uid=Tu("ec_cpt_model"),a}return e.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i)},e.prototype.mergeDefaultAndTheme=function(r,n){var i=no(this),a=i?Lo(r):{},o=n.getTheme();ue(r,o.get(this.mainType)),ue(r,this.getDefaultOption()),i&&on(r,a,i)},e.prototype.mergeOption=function(r,n){ue(this.option,r,!0);var i=no(this);i&&on(this.option,r,i)},e.prototype.optionUpdated=function(r,n){},e.prototype.getDefaultOption=function(){var r=this.constructor;if(!QC(r))return r.defaultOption;var n=qR(this);if(!n.defaultOption){for(var i=[],a=r;a;){var o=a.prototype.defaultOption;o&&i.push(o),a=a.superClass}for(var s={},l=i.length-1;l>=0;l--)s=ue(s,i[l],!0);n.defaultOption=s}return n.defaultOption},e.prototype.getReferringComponents=function(r,n){var i=r+"Index",a=r+"Id";return Do(this.ecModel,r,{index:this.get(i,!0),id:this.get(a,!0)},n)},e.prototype.getBoxLayoutParams=function(){return WR(this,!1)},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(r){this.option.zlevel=r},e.protoInitialize=(function(){var r=e.prototype;r.type="component",r.id="",r.name="",r.mainType="",r.subType="",r.componentIndex=0})(),e})(_e);V0(fe,_e);eu(fe);gR(fe);mR(fe,XR);function XR(t){var e=[];return C(fe.getClassesByMainType(t),function(r){e=e.concat(r.dependencies||r.prototype.dependencies||[])}),e=X(e,function(r){return nr(r).main}),t!=="dataset"&&le(e,"dataset")<=0&&e.unshift("dataset"),e}var pg=xe();xe();var Kv=(function(){function t(){}return t.prototype.getColorFromPalette=function(e,r,n){var i=tt(this.get("color",!0)),a=this.get("colorLayer",!0);return KR(this,pg,i,a,e,r,n)},t.prototype.clearColorPalette=function(){QR(this,pg)},t})();function ZR(t,e){for(var r=t.length,n=0;n<r;n++)if(t[n].length>e)return t[n];return t[r-1]}function KR(t,e,r,n,i,a,o){a=a||t;var s=e(a),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(i))return u[i];var c=o==null||!n?r:ZR(n,o);if(c=c||r,!(!c||!c.length)){var f=c[l];return i&&(u[i]=f),s.paletteIdx=(l+1)%c.length,f}}function QR(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}var JR=/\{@(.+?)\}/g,eL=(function(){function t(){}return t.prototype.getDataParams=function(e,r){var n=this.getData(r),i=this.getRawValue(e,r),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"],c=l&&l.stroke,f=this.mainType,v=f==="series",h=n.userOutput&&n.userOutput.get();return{componentType:f,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:v?this.subType:null,seriesIndex:this.seriesIndex,seriesId:v?this.id:null,seriesName:v?this.name:null,name:o,dataIndex:a,data:s,dataType:r,value:i,color:u,borderColor:c,dimensionNames:h?h.fullDimensions:null,encode:h?h.encode:null,$vars:["seriesName","name","value"]}},t.prototype.getFormattedLabel=function(e,r,n,i,a,o){r=r||"normal";var s=this.getData(n),l=this.getDataParams(e,n);if(o&&(l.value=o.interpolatedValue),i!=null&&W(l.value)&&(l.value=l.value[i]),!a){var u=s.getItemModel(e);a=u.get(r==="normal"?["label","formatter"]:[r,"label","formatter"])}if(ie(a))return l.status=r,l.dimensionIndex=i,a(l);if(Y(a)){var c=qv(a,l);return c.replace(JR,function(f,v){var h=v.length,d=v;d.charAt(0)==="["&&d.charAt(h-1)==="]"&&(d=+d.slice(1,h-1));var p=Gi(s,e,d);if(o&&W(o.interpolatedValue)){var g=s.getDimensionIndex(d);g>=0&&(p=o.interpolatedValue[g])}return p!=null?p+"":""})}},t.prototype.getRawValue=function(e,r){return Gi(this.getData(r),e)},t.prototype.formatTooltip=function(e,r,n){},t})();function gg(t){var e,r;return q(t)?t.type&&(r=t):e=t,{text:e,frag:r}}function Ua(t){return new tL(t)}var tL=(function(){function t(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return t.prototype.perform=function(e){var r=this._upstream,n=e&&e.skip;if(this._dirty&&r){var i=this.context;i.data=i.outputData=r.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!n&&(a=this._plan(this.context));var o=c(this._modBy),s=this._modDataCount||0,l=c(e&&e.modBy),u=e&&e.modDataCount||0;(o!==l||s!==u)&&(a="reset");function c(y){return!(y>=1)&&(y=1),y}var f;(this._dirty||a==="reset")&&(this._dirty=!1,f=this._doReset(n)),this._modBy=l,this._modDataCount=u;var v=e&&e.step;if(r?this._dueEnd=r._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var h=this._dueIndex,d=Math.min(v!=null?this._dueIndex+v:1/0,this._dueEnd);if(!n&&(f||h<d)){var p=this._progress;if(W(p))for(var g=0;g<p.length;g++)this._doProgress(p[g],h,d,l,u);else this._doProgress(p,h,d,l,u)}this._dueIndex=d;var m=this._settedOutputEnd!=null?this._settedOutputEnd:d;this._outputDueEnd=m}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},t.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},t.prototype._doProgress=function(e,r,n,i,a){mg.reset(r,n,i,a),this._callingProgress=e,this._callingProgress({start:r,end:n,count:n-r,next:mg.next},this.context)},t.prototype._doReset=function(e){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var r,n;!e&&this._reset&&(r=this._reset(this.context),r&&r.progress&&(n=r.forceFirstProgress,r=r.progress),W(r)&&!r.length&&(r=null)),this._progress=r,this._modBy=this._modDataCount=null;var i=this._downstream;return i&&i.dirty(),n},t.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},t.prototype.pipe=function(e){(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},t.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},t.prototype.getUpstream=function(){return this._upstream},t.prototype.getDownstream=function(){return this._downstream},t.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},t})(),mg=(function(){var t,e,r,n,i,a={reset:function(l,u,c,f){e=l,t=u,r=c,n=f,i=Math.ceil(n/r),a.next=r>1&&n>0?s:o}};return a;function o(){return e<t?e++:null}function s(){var l=e%i*r+Math.ceil(e/i),u=e>=t?null:l<n?l:e;return e++,u}})(),rL=(function(){function t(){}return t.prototype.getRawData=function(){throw new Error("not supported")},t.prototype.getRawDataItem=function(e){throw new Error("not supported")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(e){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(e,r){},t.prototype.retrieveValueFromItem=function(e,r){},t.prototype.convertValue=function(e,r){return Vs(e,r)},t})();function nL(t,e){var r=new rL,n=t.data,i=r.sourceFormat=t.sourceFormat,a=t.startIndex,o="";t.seriesLayoutBy!==ur&&ot(o);var s=[],l={},u=t.dimensionsDefine;if(u)C(u,function(p,g){var m=p.name,y={index:g,name:m,displayName:p.displayName};if(s.push(y),m!=null){var _="";Lt(l,m)&&ot(_),l[m]=y}});else for(var c=0;c<t.dimensionsDetectedCount;c++)s.push({index:c});var f=Mb(i,ur);e.__isBuiltIn&&(r.getRawDataItem=function(p){return f(n,a,s,p)},r.getRawData=de(iL,null,t)),r.cloneRawData=de(aL,null,t);var v=Ab(i,ur);r.count=de(v,null,n,a,s);var h=Eb(i);r.retrieveValue=function(p,g){var m=f(n,a,s,p);return d(m,g)};var d=r.retrieveValueFromItem=function(p,g){if(p!=null){var m=s[g];if(m)return h(p,g,m.name)}};return r.getDimensionInfo=de(oL,null,s,l),r.cloneAllDimensionInfo=de(sL,null,s),r}function iL(t){var e=t.sourceFormat;if(!Qv(e)){var r="";ot(r)}return t.data}function aL(t){var e=t.sourceFormat,r=t.data;if(!Qv(e)){var n="";ot(n)}if(e===$e){for(var i=[],a=0,o=r.length;a<o;a++)i.push(r[a].slice());return i}else if(e===kt){for(var i=[],a=0,o=r.length;a<o;a++)i.push(F({},r[a]));return i}}function oL(t,e,r){if(r!=null){if(me(r)||!isNaN(r)&&!Lt(e,r))return t[r];if(Lt(e,r))return e[r]}}function sL(t){return oe(t)}var Kb=ae();function lL(t){t=oe(t);var e=t.type,r="";e||ot(r);var n=e.split(":");n.length!==2&&ot(r);var i=!1;n[0]==="echarts"&&(e=n[1],i=!0),t.__isBuiltIn=i,Kb.set(e,t)}function uL(t,e,r){var n=tt(t),i=n.length,a="";i||ot(a);for(var o=0,s=i;o<s;o++){var l=n[o];e=cL(l,e),o!==s-1&&(e.length=Math.max(e.length,1))}return e}function cL(t,e,r,n){var i="";e.length||ot(i),q(t)||ot(i);var a=t.type,o=Kb.get(a);o||ot(i);var s=X(e,function(u){return nL(u,o)}),l=tt(o.transform({upstream:s[0],upstreamList:s,config:oe(t.config)}));return X(l,function(u,c){var f="";q(u)||ot(f),u.data||ot(f);var v=Tb(u.data);Qv(v)||ot(f);var h,d=e[0];if(d&&c===0&&!u.dimensions){var p=d.startIndex;p&&(u.data=d.data.slice(0,p).concat(u.data)),h={seriesLayoutBy:ur,sourceHeader:p,dimensions:d.metaRawOption.dimensions}}else h={seriesLayoutBy:ur,sourceHeader:0,dimensions:u.dimensions};return rh(u.data,h,null)})}function Qv(t){return t===$e||t===kt}var fL=(function(){function t(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return t.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},t.prototype._setLocalSource=function(e,r){this._sourceList=e,this._upstreamSignList=r,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},t.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,r=this._getUpstreamSourceManagers(),n=!!r.length,i,a;if(as(e)){var o=e,s=void 0,l=void 0,u=void 0;if(n){var c=r[0];c.prepareSource(),u=c.getSource(),s=u.data,l=u.sourceFormat,a=[c._getVersionSign()]}else s=o.get("data",!0),l=nt(s)?Jr:_t,a=[];var f=this._getSourceMetaRawOption()||{},v=u&&u.metaRawOption||{},h=K(f.seriesLayoutBy,v.seriesLayoutBy)||null,d=K(f.sourceHeader,v.sourceHeader),p=K(f.dimensions,v.dimensions),g=h!==v.seriesLayoutBy||!!d!=!!v.sourceHeader||p;i=g?[rh(s,{seriesLayoutBy:h,sourceHeader:d,dimensions:p},l)]:[]}else{var m=e;if(n){var y=this._applyTransform(r);i=y.sourceList,a=y.upstreamSignList}else{var _=m.get("source",!0);i=[rh(_,this._getSourceMetaRawOption(),null)],a=[]}}this._setLocalSource(i,a)},t.prototype._applyTransform=function(e){var r=this._sourceHost,n=r.get("transform",!0),i=r.get("fromTransformResult",!0);if(i!=null){var a="";e.length!==1&&yg(a)}var o,s=[],l=[];return C(e,function(u){u.prepareSource();var c=u.getSource(i||0),f="";i!=null&&!c&&yg(f),s.push(c),l.push(u._getVersionSign())}),n?o=uL(n,s,{datasetIndex:r.componentIndex}):i!=null&&(o=[PE(s[0])]),{sourceList:o,upstreamSignList:l}},t.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),r=0;r<e.length;r++){var n=e[r];if(n._isDirty()||this._upstreamSignList[r]!==n._getVersionSign())return!0}},t.prototype.getSource=function(e){e=e||0;var r=this._sourceList[e];if(!r){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(e)}return r},t.prototype.getSharedDataStore=function(e){var r=e.makeStoreSchema();return this._innerGetDataStore(r.dimensions,e.source,r.hash)},t.prototype._innerGetDataStore=function(e,r,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];as(this._sourceHost)&&l?s=l._innerGetDataStore(e,r,n):(s=new nh,s.initData(new Db(r,e.length),e)),o[n]=s}return s},t.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(as(e)){var r=Rv(e);return r?[r.getSourceManager()]:[]}else return X(LE(e),function(n){return n.getSourceManager()})},t.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,r,n,i;if(as(e))r=e.get("seriesLayoutBy",!0),n=e.get("sourceHeader",!0),i=e.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var a=e;r=a.get("seriesLayoutBy",!0),n=a.get("sourceHeader",!0),i=a.get("dimensions",!0)}return{seriesLayoutBy:r,sourceHeader:n,dimensions:i}},t})();function as(t){return t.mainType==="series"}function yg(t){throw new Error(t)}var Z={color:{},darkColor:{},size:{}},Te=Z.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)"};F(Te,{primary:Te.neutral80,secondary:Te.neutral70,tertiary:Te.neutral60,quaternary:Te.neutral50,disabled:Te.neutral20,border:Te.neutral30,borderTint:Te.neutral20,borderShade:Te.neutral40,background:Te.neutral05,backgroundTint:"rgba(234,237,245,0.5)",backgroundTransparent:"rgba(255,255,255,0)",backgroundShade:Te.neutral10,shadow:"rgba(0,0,0,0.2)",shadowTint:"rgba(129,130,136,0.2)",axisLine:Te.neutral70,axisLineTint:Te.neutral40,axisTick:Te.neutral70,axisTickMinor:Te.neutral60,axisLabel:Te.neutral70,axisSplitLine:Te.neutral15,axisMinorSplitLine:Te.neutral05});for(var Pn in Te)if(Te.hasOwnProperty(Pn)){var _g=Te[Pn];Pn==="theme"?Z.darkColor.theme=Te.theme.slice():Pn==="highlight"?Z.darkColor.highlight="rgba(255,231,130,0.4)":Pn.indexOf("accent")===0?Z.darkColor[Pn]=fl(_g,null,function(t){return t*.5},function(t){return Math.min(1,1.3-t)}):Z.darkColor[Pn]=fl(_g,null,function(t){return t*.9},function(t){return 1-Math.pow(t,1.5)})}Z.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};var hL="line-height:1";function Qb(t){var e=t.lineHeight;return e==null?hL:"line-height:"+Qe(e+"")+"px"}function Jb(t,e){var r=t.color||Z.color.tertiary,n=t.fontSize||12,i=t.fontWeight||"400",a=t.color||Z.color.secondary,o=t.fontSize||14,s=t.fontWeight||"900";return e==="html"?{nameStyle:"font-size:"+Qe(n+"")+"px;color:"+Qe(r)+";font-weight:"+Qe(i+""),valueStyle:"font-size:"+Qe(o+"")+"px;color:"+Qe(a)+";font-weight:"+Qe(s+"")}:{nameStyle:{fontSize:n,fill:r,fontWeight:i},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var vL=[0,10,20,30],dL=["",`
|
|
15
|
-
`,`
|
|
16
|
-
|
|
17
|
-
`,`
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
`];function io(t,e){return e.type=t,e}function lh(t){return t.type==="section"}function eS(t){return lh(t)?pL:gL}function tS(t){if(lh(t)){var e=0,r=t.blocks.length,n=r>1||r>0&&!t.noHeader;return C(t.blocks,function(i){var a=tS(i);a>=e&&(e=a+ +(n&&(!a||lh(i)&&!i.noHeader)))}),e}return 0}function pL(t,e,r,n){var i=e.noHeader,a=mL(tS(e)),o=[],s=e.blocks||[];fr(!s||W(s)),s=s||[];var l=t.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Lt(u,l)){var c=new GE(u[l],null);s.sort(function(p,g){return c.evaluate(p.sortParam,g.sortParam)})}else l==="seriesDesc"&&s.reverse()}C(s,function(p,g){var m=e.valueFormatter,y=eS(p)(m?F(F({},t),{valueFormatter:m}):t,p,g>0?a.html:0,n);y!=null&&o.push(y)});var f=t.renderMode==="richText"?o.join(a.richText):uh(n,o.join(""),i?r:a.html);if(i)return f;var v=sh(e.header,"ordinal",t.useUTC),h=Jb(n,t.renderMode).nameStyle,d=Qb(n);return t.renderMode==="richText"?rS(t,v,h)+a.richText+f:uh(n,'<div style="'+h+";"+d+';">'+Qe(v)+"</div>"+f,r)}function gL(t,e,r,n){var i=t.renderMode,a=e.noName,o=e.noValue,s=!e.markerType,l=e.name,u=t.useUTC,c=e.valueFormatter||t.valueFormatter||function(b){return b=W(b)?b:[b],X(b,function(S,x){return sh(S,W(h)?h[x]:h,u)})};if(!(a&&o)){var f=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||Z.color.secondary,i),v=a?"":sh(l,"ordinal",u),h=e.valueType,d=o?[]:c(e.value,e.dataIndex),p=!s||!a,g=!s&&a,m=Jb(n,i),y=m.nameStyle,_=m.valueStyle;return i==="richText"?(s?"":f)+(a?"":rS(t,v,y))+(o?"":bL(t,d,p,g,_)):uh(n,(s?"":f)+(a?"":yL(v,!s,y))+(o?"":_L(d,p,g,_)),r)}}function bg(t,e,r,n,i,a){if(t){var o=eS(t),s={useUTC:i,renderMode:r,orderMode:n,markupStyleCreator:e,valueFormatter:t.valueFormatter};return o(s,t,0,a)}}function mL(t){return{html:vL[t],richText:dL[t]}}function uh(t,e,r){var n='<div style="clear:both"></div>',i="margin: "+r+"px 0 0",a=Qb(t);return'<div style="'+i+";"+a+';">'+e+n+"</div>"}function yL(t,e,r){var n=e?"margin-left:2px":"";return'<span style="'+r+";"+n+'">'+Qe(t)+"</span>"}function _L(t,e,r,n){var i=r?"10px":"20px",a=e?"float:right;margin-left:"+i:"";return t=W(t)?t:[t],'<span style="'+a+";"+n+'">'+X(t,function(o){return Qe(o)}).join(" ")+"</span>"}function rS(t,e,r){return t.markupStyleCreator.wrapRichTextStyle(e,r)}function bL(t,e,r,n,i){var a=[i],o=n?10:20;return r&&a.push({padding:[0,0,0,o],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(W(e)?e.join(" "):e,a)}function SL(t,e){var r=t.getData().getItemVisual(e,"style"),n=r[t.visualDrawType];return ro(n)}function nS(t,e){var r=t.get("padding");return r??(e==="richText"?[8,10]:10)}var _c=(function(){function t(){this.richTextStyles={},this._nextStyleNameId=A_()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(e,r,n){var i=n==="richText"?this._generateStyleName():null,a=Zb({color:r,type:e,renderMode:n,markerId:i});return Y(a)?a:(this.richTextStyles[i]=a.style,a.content)},t.prototype.wrapRichTextStyle=function(e,r){var n={};W(r)?C(r,function(a){return F(n,a)}):F(n,r);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+e+"}"},t})();function xL(t){var e=t.series,r=t.dataIndex,n=t.multipleSeries,i=e.getData(),a=i.mapDimensionsAll("defaultedTooltip"),o=a.length,s=e.getRawValue(r),l=W(s),u=SL(e,r),c,f,v,h;if(o>1||l&&!o){var d=wL(s,e,r,a,u);c=d.inlineValues,f=d.inlineValueTypes,v=d.blocks,h=d.inlineValues[0]}else if(o){var p=i.getDimensionInfo(a[0]);h=c=Gi(i,r,a[0]),f=p.type}else h=c=l?s[0]:s;var g=vv(e),m=g&&e.name||"",y=i.getName(r),_=n?m:y;return io("section",{header:m,noHeader:n||!g,sortParam:h,blocks:[io("nameValue",{markerType:"item",markerColor:u,name:_,noName:!Ut(_),value:c,valueType:f,dataIndex:r})].concat(v||[])})}function wL(t,e,r,n,i){var a=e.getData(),o=cr(t,function(f,v,h){var d=a.getDimensionInfo(h);return f=f||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],l=[],u=[];n.length?C(n,function(f){c(Gi(a,r,f),f)}):C(t,c);function c(f,v){var h=a.getDimensionInfo(v);!h||h.otherDims.tooltip===!1||(o?u.push(io("nameValue",{markerType:"subItem",markerColor:i,name:h.displayName,value:f,valueType:h.type})):(s.push(f),l.push(h.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Br=xe();function os(t,e){return t.getName(e)||t.getId(e)}var TL="__universalTransitionEnabled",ft=(function(t){G(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r._selectedDataIndicesMap={},r}return e.prototype.init=function(r,n,i){this.seriesIndex=this.componentIndex,this.dataTask=Ua({count:DL,reset:ML}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,i);var a=Br(this).sourceManager=new fL(this);a.prepareSource();var o=this.getInitialData(r,i);xg(o,this),this.dataTask.context.data=o,Br(this).dataBeforeProcessed=o,Sg(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(r,n){var i=no(this),a=i?Lo(r):{},o=this.subType;fe.hasClass(o)&&(o+="Series"),ue(r,n.getTheme().get(this.subType)),ue(r,this.getDefaultOption()),Yf(r,"label",["show"]),this.fillDataTextStyle(r.data),i&&on(r,a,i)},e.prototype.mergeOption=function(r,n){r=ue(this.option,r,!0),this.fillDataTextStyle(r.data);var i=no(this);i&&on(this.option,r,i);var a=Br(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(r,n);xg(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Br(this).dataBeforeProcessed=o,Sg(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(r){if(r&&!nt(r))for(var n=["show"],i=0;i<r.length;i++)r[i]&&r[i].label&&Yf(r[i],"label",n)},e.prototype.getInitialData=function(r,n){},e.prototype.appendData=function(r){var n=this.getRawData();n.appendData(r.data)},e.prototype.getData=function(r){var n=ch(this);if(n){var i=n.context.data;return r==null||!i.getLinkedData?i:i.getLinkedData(r)}else return Br(this).data},e.prototype.getAllData=function(){var r=this.getData();return r&&r.getLinkedDataAll?r.getLinkedDataAll():[{data:r}]},e.prototype.setData=function(r){var n=ch(this);if(n){var i=n.context;i.outputData=r,n!==this.dataTask&&(i.data=r)}Br(this).data=r},e.prototype.getEncode=function(){var r=this.get("encode",!0);if(r)return ae(r)},e.prototype.getSourceManager=function(){return Br(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return Br(this).dataBeforeProcessed},e.prototype.getColorBy=function(){var r=this.get("colorBy");return r||"series"},e.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},e.prototype.getBaseAxis=function(){var r=this.coordinateSystem;return r&&r.getBaseAxis&&r.getBaseAxis()},e.prototype.indicesOfNearest=function(r,n,i,a){var o=this.getData(),s=this.coordinateSystem,l=s&&s.getAxis(r);if(!s||!l)return[];var u=l.dataToCoord(i);a==null&&(a=1/0);var c=[],f=1/0,v=-1,h=0;return o.each(n,function(d,p){var g=l.dataToCoord(d),m=u-g,y=Math.abs(m);y<=a&&((y<f||y===f&&m>=0&&v<0)&&(f=y,v=m,h=0),m===v&&(c[h++]=p))}),c.length=h,c},e.prototype.formatTooltip=function(r,n,i){return xL({series:this,dataIndex:r,multipleSeries:n})},e.prototype.isAnimationEnabled=function(){var r=this.ecModel;if(te.node&&!(r&&r.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(r,n,i){var a=this.ecModel,o=Kv.prototype.getColorFromPalette.call(this,r,n,i);return o||(o=a.getColorFromPalette(r,n,i)),o},e.prototype.coordDimToDataDim=function(r){return this.getRawData().mapDimensionsAll(r)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(r,n){this._innerSelect(this.getData(n),r)},e.prototype.unselect=function(r,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<r.length;s++){var l=r[s],u=os(o,l);i[u]=!1,this._selectedDataIndicesMap[u]=-1}}},e.prototype.toggleSelect=function(r,n){for(var i=[],a=0;a<r.length;a++)i[0]=r[a],this.isSelected(r[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 r=this._selectedDataIndicesMap,n=Se(r),i=[],a=0;a<n.length;a++){var o=r[n[a]];o>=0&&i.push(o)}return i},e.prototype.isSelected=function(r,n){var i=this.option.selectedMap;if(!i)return!1;var a=this.getData(n);return(i==="all"||i[os(a,r)])&&!a.getItemModel(r).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[TL])return!0;var r=this.option.universalTransition;return r?r===!0?!0:r&&r.enabled:!1},e.prototype._innerSelect=function(r,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"){q(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,c=0;c<l;c++){var f=n[c],v=os(r,f);u[v]=!0,this._selectedDataIndicesMap[v]=r.getRawIndex(f)}}else if(s==="single"||s===!0){var h=n[l-1],v=os(r,h);o.selectedMap=(i={},i[v]=!0,i),this._selectedDataIndicesMap=(a={},a[v]=r.getRawIndex(h),a)}}},e.prototype._initSelectedMapFromData=function(r){if(!this.option.selectedMap){var n=[];r.hasItemOption&&r.each(function(i){var a=r.getRawDataItem(i);a&&a.selected&&n.push(i)}),n.length>0&&this._innerSelect(r,n)}},e.registerClass=function(r){return fe.registerClass(r)},e.protoInitialize=(function(){var r=e.prototype;r.type="series.__base__",r.seriesIndex=0,r.ignoreStyleOnData=!1,r.hasSymbolVisual=!1,r.defaultSymbol="circle",r.visualStyleAccessPath="itemStyle",r.visualDrawType="fill"})(),e})(fe);It(ft,eL);It(ft,Kv);V0(ft,fe);function Sg(t){var e=t.name;vv(t)||(t.name=CL(t)||e)}function CL(t){var e=t.getRawData(),r=e.mapDimensionsAll("seriesName"),n=[];return C(r,function(i){var a=e.getDimensionInfo(i);a.displayName&&n.push(a.displayName)}),n.join(" ")}function DL(t){return t.model.getRawData().count()}function ML(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),AL}function AL(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function xg(t,e){C(H0(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),function(r){t.wrapMethod(r,we(EL,e))})}function EL(t,e){var r=ch(t);return r&&r.setOutputEnd((e||this).count()),e}function ch(t){var e=(t.ecModel||{}).scheduler,r=e&&e.getPipeline(t.uid);if(r){var n=r.currentTask;if(n){var i=n.agentStubMap;i&&(n=i.get(t.uid))}return n}}var RL=ge.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var r=e.cx,n=e.cy,i=e.width/2,a=e.height/2;t.moveTo(r,n-a),t.lineTo(r+i,n+a),t.lineTo(r-i,n+a),t.closePath()}}),LL=ge.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var r=e.cx,n=e.cy,i=e.width/2,a=e.height/2;t.moveTo(r,n-a),t.lineTo(r+i,n),t.lineTo(r,n+a),t.lineTo(r-i,n),t.closePath()}}),PL=ge.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var r=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),c=Math.cos(u)*o,f=Math.sin(u),v=Math.cos(u),h=o*.6,d=o*.7;t.moveTo(r-c,l+s),t.arc(r,l,o,Math.PI-u,Math.PI*2+u),t.bezierCurveTo(r+c-f*h,l+s+v*h,r,n-d,r,n),t.bezierCurveTo(r,n-d,r-c+f*h,l+s+v*h,r-c,l+s),t.closePath()}}),IL=ge.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var r=e.height,n=e.width,i=e.x,a=e.y,o=n/3*2;t.moveTo(i,a),t.lineTo(i+o,a+r),t.lineTo(i,a+r/4*3),t.lineTo(i-o,a+r),t.lineTo(i,a),t.closePath()}}),OL={line:Mr,rect:De,roundRect:De,square:De,circle:Mo,diamond:LL,pin:PL,arrow:IL,triangle:RL},kL={line:function(t,e,r,n,i){i.x1=t,i.y1=e+n/2,i.x2=t+r,i.y2=e+n/2},rect:function(t,e,r,n,i){i.x=t,i.y=e,i.width=r,i.height=n},roundRect:function(t,e,r,n,i){i.x=t,i.y=e,i.width=r,i.height=n,i.r=Math.min(r,n)/4},square:function(t,e,r,n,i){var a=Math.min(r,n);i.x=t,i.y=e,i.width=a,i.height=a},circle:function(t,e,r,n,i){i.cx=t+r/2,i.cy=e+n/2,i.r=Math.min(r,n)/2},diamond:function(t,e,r,n,i){i.cx=t+r/2,i.cy=e+n/2,i.width=r,i.height=n},pin:function(t,e,r,n,i){i.x=t+r/2,i.y=e+n/2,i.width=r,i.height=n},arrow:function(t,e,r,n,i){i.x=t+r/2,i.y=e+n/2,i.width=r,i.height=n},triangle:function(t,e,r,n,i){i.cx=t+r/2,i.cy=e+n/2,i.width=r,i.height=n}},fh={};C(OL,function(t,e){fh[e]=new t});var NL=ge.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,r){var n=al(t,e,r),i=this.shape;return i&&i.symbolType==="pin"&&e.position==="inside"&&(n.y=r.y+r.height*.4),n},buildPath:function(t,e,r){var n=e.symbolType;if(n!=="none"){var i=fh[n];i||(n="rect",i=fh[n]),kL[n](e.x,e.y,e.width,e.height,i.shape),i.buildPath(t,i.shape,r)}}});function BL(t,e){if(this.type!=="image"){var r=this.style;this.__isEmptyBrush?(r.stroke=t,r.fill=e||Z.color.neutral00,r.lineWidth=2):this.shape.symbolType==="line"?r.stroke=t:r.fill=t,this.markRedraw()}}function qi(t,e,r,n,i,a,o){var s=t.indexOf("empty")===0;s&&(t=t.substr(5,1).toLowerCase()+t.substr(6));var l;return t.indexOf("image://")===0?l=Tv(t.slice(8),new re(e,r,n,i),o?"center":"cover"):t.indexOf("path://")===0?l=vu(t.slice(7),{},new re(e,r,n,i),o?"center":"cover"):l=new NL({shape:{symbolType:t,x:e,y:r,width:n,height:i}}),l.__isEmptyBrush=s,l.setColor=BL,a&&l.setColor(a),l}function FL(t){return W(t)||(t=[+t,+t]),[t[0]||0,t[1]||0]}function iS(t,e){if(t!=null)return W(t)||(t=[t,t]),[be(t[0],e[0])||0,be(K(t[1],t[0]),e[1])||0]}function aS(t,e){var r=t.mapDimensionsAll("defaultedLabel"),n=r.length;if(n===1){var i=Gi(t,e,r[0]);return i!=null?i+"":null}else if(n){for(var a=[],o=0;o<r.length;o++)a.push(Gi(t,e,r[o]));return a.join(" ")}}function zL(t,e){var r=t.mapDimensionsAll("defaultedLabel");if(!W(e))return e+"";for(var n=[],i=0;i<r.length;i++){var a=t.getDimensionIndex(r[i]);a>=0&&n.push(e[a])}return n.join(" ")}var HL=(function(t){G(e,t);function e(r,n,i,a){var o=t.call(this)||this;return o.updateData(r,n,i,a),o}return e.prototype._createSymbol=function(r,n,i,a,o,s){this.removeAll();var l=qi(r,-1,-1,2,2,null,s);l.attr({z2:K(o,100),culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),l.drift=UL,this._symbolType=r,this.add(l)},e.prototype.stopSymbolAnimation=function(r){this.childAt(0).stopAnimation(null,r)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){yl(this.childAt(0))},e.prototype.downplay=function(){_l(this.childAt(0))},e.prototype.setZ=function(r,n){var i=this.childAt(0);i.zlevel=r,i.z=n},e.prototype.setDraggable=function(r,n){var i=this.childAt(0);i.draggable=r,i.cursor=!n&&r?"move":i.cursor},e.prototype.updateData=function(r,n,i,a){this.silent=!1;var o=r.getItemVisual(n,"symbol")||"circle",s=r.hostModel,l=e.getSymbolSize(r,n),u=e.getSymbolZ2(r,n),c=o!==this._symbolType,f=a&&a.disableAnimation;if(c){var v=r.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,r,n,l,u,v)}else{var h=this.childAt(0);h.silent=!1;var d={scaleX:l[0]/2,scaleY:l[1]/2};f?h.attr(d):ct(h,d,s,n),wv(h)}if(this._updateCommon(r,n,l,i,a),c){var h=this.childAt(0);if(!f){var d={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,lr(h,d,s,n)}}f&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(r,n,i,a,o){var s=this.childAt(0),l=r.hostModel,u,c,f,v,h,d,p,g,m;if(a&&(u=a.emphasisItemStyle,c=a.blurItemStyle,f=a.selectItemStyle,v=a.focus,h=a.blurScope,p=a.labelStatesModels,g=a.hoverScale,m=a.cursorStyle,d=a.emphasisDisabled),!a||r.hasItemOption){var y=a&&a.itemModel?a.itemModel:r.getItemModel(n),_=y.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),f=y.getModel(["select","itemStyle"]).getItemStyle(),c=y.getModel(["blur","itemStyle"]).getItemStyle(),v=_.get("focus"),h=_.get("blurScope"),d=_.get("disabled"),p=_u(y),g=_.getShallow("scale"),m=y.getShallow("cursor")}var b=r.getItemVisual(n,"symbolRotate");s.attr("rotation",(b||0)*Math.PI/180||0);var S=iS(r.getItemVisual(n,"symbolOffset"),i);S&&(s.x=S[0],s.y=S[1]),m&&s.attr("cursor",m);var x=r.getItemVisual(n,"style"),w=x.fill;if(s instanceof Ar){var T=s.style;s.useStyle(F({image:T.image,x:T.x,y:T.y,width:T.width,height:T.height},x))}else s.__isEmptyBrush?s.useStyle(F({},x)):s.useStyle(x),s.style.decal=null,s.setColor(w,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var M=r.getItemVisual(n,"liftZ"),A=this._z2;M!=null?A==null&&(this._z2=s.z2,s.z2+=M):A!=null&&(s.z2=A,this._z2=null);var D=o&&o.useNameLabel;yu(s,p,{labelFetcher:l,labelDataIndex:n,defaultText:P,inheritColor:w,defaultOpacity:x.opacity});function P(k){return D?r.getName(k):aS(r,k)}this._sizeX=i[0]/2,this._sizeY=i[1]/2;var E=s.ensureState("emphasis");E.style=u,s.ensureState("select").style=f,s.ensureState("blur").style=c;var L=g==null||g===!0?Math.max(1.1,3/this._sizeY):isFinite(g)&&g>0?+g:1;E.scaleX=this._sizeX*L,E.scaleY=this._sizeY*L,this.setSymbolScale(1),Sv(this,v,h,d)},e.prototype.setSymbolScale=function(r){this.scaleX=this.scaleY=r},e.prototype.fadeOut=function(r,n,i){var a=this.childAt(0),o=he(this).dataIndex,s=i&&i.animation;if(this.silent=a.silent=!0,i&&i.fadeLabel){var l=a.getTextContent();l&&Sl(l,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();Sl(a,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:r,removeOpt:s})},e.getSymbolSize=function(r,n){return FL(r.getItemVisual(n,"symbolSize"))},e.getSymbolZ2=function(r,n){return r.getItemVisual(n,"z2")},e})(Ne);function UL(t,e){this.parent.drift(t,e)}function bc(t,e,r,n){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(n.isIgnore&&n.isIgnore(r))&&!(n.clipShape&&!n.clipShape.contain(e[0],e[1]))&&t.getItemVisual(r,"symbol")!=="none"}function wg(t){return t!=null&&!q(t)&&(t={isIgnore:t}),t||{}}function Tg(t){var e=t.hostModel,r=e.getModel("emphasis");return{emphasisItemStyle:r.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:r.get("focus"),blurScope:r.get("blurScope"),emphasisDisabled:r.get("disabled"),hoverScale:r.get("scale"),labelStatesModels:_u(e),cursorStyle:e.get("cursor")}}var GL=(function(){function t(e){this.group=new Ne,this._SymbolCtor=e||HL}return t.prototype.updateData=function(e,r){this._progressiveEls=null,r=wg(r);var n=this.group,i=e.hostModel,a=this._data,o=this._SymbolCtor,s=r.disableAnimation,l=Tg(e),u={disableAnimation:s},c=r.getSymbolPoint||function(f){return e.getItemLayout(f)};a||n.removeAll(),e.diff(a).add(function(f){var v=c(f);if(bc(e,v,f,r)){var h=new o(e,f,l,u);h.setPosition(v),e.setItemGraphicEl(f,h),n.add(h)}}).update(function(f,v){var h=a.getItemGraphicEl(v),d=c(f);if(!bc(e,d,f,r)){n.remove(h);return}var p=e.getItemVisual(f,"symbol")||"circle",g=h&&h.getSymbolType&&h.getSymbolType();if(!h||g&&g!==p)n.remove(h),h=new o(e,f,l,u),h.setPosition(d);else{h.updateData(e,f,l,u);var m={x:d[0],y:d[1]};s?h.attr(m):ct(h,m,i)}n.add(h),e.setItemGraphicEl(f,h)}).remove(function(f){var v=a.getItemGraphicEl(f);v&&v.fadeOut(function(){n.remove(v)},i)}).execute(),this._getSymbolPoint=c,this._data=e},t.prototype.updateLayout=function(){var e=this,r=this._data;r&&r.eachItemGraphicEl(function(n,i){var a=e._getSymbolPoint(i);n.setPosition(a),n.markRedraw()})},t.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=Tg(e),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(e,r,n){this._progressiveEls=[],n=wg(n);function i(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var a=e.start;a<e.end;a++){var o=r.getItemLayout(a);if(bc(r,o,a,n)){var s=new this._SymbolCtor(r,a,this._seriesScope);s.traverse(i),s.setPosition(o),this.group.add(s),r.setItemGraphicEl(a,s),this._progressiveEls.push(s)}}},t.prototype.eachRendered=function(e){gu(this._progressiveEls||this.group,e)},t.prototype.remove=function(e){var r=this.group,n=this._data;n&&e?n.eachItemGraphicEl(function(i){i.fadeOut(function(){r.remove(i)},n.hostModel)}):r.removeAll()},t})(),oS=typeof Float32Array<"u",VL=oS?Float32Array:Array;function qs(t){return W(t)?oS?new Float32Array(t):t:new VL(t)}function Jv(){var t=xe();return function(e){var r=t(e),n=e.pipelineContext,i=!!r.large,a=!!r.progressiveRender,o=r.large=!!(n&&n.large),s=r.progressiveRender=!!(n&&n.progressiveRender);return(i!==o||a!==s)&&"reset"}}var sS=xe(),WL=Jv(),mt=(function(){function t(){this.group=new Ne,this.uid=Tu("viewChart"),this.renderTask=Ua({plan:jL,reset:$L}),this.renderTask.context={view:this}}return t.prototype.init=function(e,r){},t.prototype.render=function(e,r,n,i){},t.prototype.highlight=function(e,r,n,i){var a=e.getData(i&&i.dataType);a&&Dg(a,i,"emphasis")},t.prototype.downplay=function(e,r,n,i){var a=e.getData(i&&i.dataType);a&&Dg(a,i,"normal")},t.prototype.remove=function(e,r){this.group.removeAll()},t.prototype.dispose=function(e,r){},t.prototype.updateView=function(e,r,n,i){this.render(e,r,n,i)},t.prototype.updateLayout=function(e,r,n,i){this.render(e,r,n,i)},t.prototype.updateVisual=function(e,r,n,i){this.render(e,r,n,i)},t.prototype.eachRendered=function(e){gu(this.group,e)},t.markUpdateMethod=function(e,r){sS(e).updateMethod=r},t.protoInitialize=(function(){var e=t.prototype;e.type="chart"})(),t})();function Cg(t,e,r){t&&Kf(t)&&(e==="emphasis"?yl:_l)(t,r)}function Dg(t,e,r){var n=Co(t,e),i=e&&e.highlightKey!=null?LA(e.highlightKey):null;n!=null?C(tt(n),function(a){Cg(t.getItemGraphicEl(a),r,i)}):t.eachItemGraphicEl(function(a){Cg(a,r,i)})}av(mt);eu(mt);function jL(t){return WL(t.model)}function $L(t){var e=t.model,r=t.ecModel,n=t.api,i=t.payload,a=e.pipelineContext.progressiveRender,o=t.view,s=i&&sS(i).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](e,r,n,i),YL[l]}var YL={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}};function qL(t,e,r,n,i){var a=t.getArea(),o=a.x,s=a.y,l=a.width,u=a.height,c=r.get(["lineStyle","width"])||0;o-=c/2,s-=c/2,l+=c,u+=c,l=Math.ceil(l),o!==Math.floor(o)&&(o=Math.floor(o),l++);var f=new De({shape:{x:o,y:s,width:l,height:u}});return f}function XL(t,e,r){var n=t.getArea(),i=We(n.r0,1),a=We(n.r,1),o=new Lr({shape:{cx:We(t.cx,1),cy:We(t.cy,1),r0:i,r:a,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}});return o}function ZL(t,e,r,n,i){if(t){if(t.type==="polar")return XL(t);if(t.type==="cartesian2d")return qL(t,e,r)}else return null;return null}function lS(t,e){return t.type===e}function uS(t,e){return{seriesType:t,plan:Jv(),reset:function(r){var n=r.getData(),i=r.coordinateSystem,a=r.pipelineContext,o=a.large;if(i){var s=X(i.dimensions,function(h){return n.mapDimension(h)}).slice(0,2),l=s.length,u=n.getCalculationInfo("stackResultDimension");to(n,s[0])&&(s[0]=u),to(n,s[1])&&(s[1]=u);var c=n.getStore(),f=n.getDimensionIndex(s[0]),v=n.getDimensionIndex(s[1]);return l&&{progress:function(h,d){for(var p=h.end-h.start,g=o&&qs(p*l),m=[],y=[],_=h.start,b=0;_<h.end;_++){var S=void 0;if(l===1){var x=c.get(f,_);S=i.dataToPoint(x,null,y)}else m[0]=c.get(f,_),m[1]=c.get(v,_),S=i.dataToPoint(m,null,y);o?(g[b++]=S[0],g[b++]=S[1]):d.setItemLayout(_,S.slice())}o&&d.setLayout("points",g)}}}}}}var KL={average:function(t){for(var e=0,r=0,n=0;n<t.length;n++)isNaN(t[n])||(e+=t[n],r++);return r===0?NaN:e/r},sum:function(t){for(var e=0,r=0;r<t.length;r++)e+=t[r]||0;return e},max:function(t){for(var e=-1/0,r=0;r<t.length;r++)t[r]>e&&(e=t[r]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,r=0;r<t.length;r++)t[r]<e&&(e=t[r]);return isFinite(e)?e:NaN},nearest:function(t){return t[0]}},QL=function(t){return Math.round(t.length/2)};function JL(t){return{seriesType:t,reset:function(e,r,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),c=l.getExtent(),f=n.getDevicePixelRatio(),v=Math.abs(c[1]-c[0])*(f||1),h=Math.round(s/v);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;Y(a)?d=KL[a]:ie(a)&&(d=a),d&&e.setData(i.downSample(i.mapDimension(u.dim),1/h,d,QL))}}}}}var eP="__ec_stack_";function cS(t){return t.get("stack")||eP+t.seriesIndex}function ed(t){return t.dim+t.index}function fS(t,e){var r=[];return e.eachSeriesByType(t,function(n){vS(n)&&r.push(n)}),r}function tP(t){var e={};C(t,function(l){var u=l.coordinateSystem,c=u.getBaseAxis();if(!(c.type!=="time"&&c.type!=="value"))for(var f=l.getData(),v=c.dim+"_"+c.index,h=f.getDimensionIndex(f.mapDimension(c.dim)),d=f.getStore(),p=0,g=d.count();p<g;++p){var m=d.get(h,p);e[v]?e[v].push(m):e[v]=[m]}});var r={};for(var n in e)if(e.hasOwnProperty(n)){var i=e[n];if(i){i.sort(function(l,u){return l-u});for(var a=null,o=1;o<i.length;++o){var s=i[o]-i[o-1];s>0&&(a=a===null?s:Math.min(a,s))}r[n]=a}}return r}function hS(t){var e=tP(t),r=[];return C(t,function(n){var i=n.coordinateSystem,a=i.getBaseAxis(),o=a.getExtent(),s;if(a.type==="category")s=a.getBandWidth();else if(a.type==="value"||a.type==="time"){var l=a.dim+"_"+a.index,u=e[l],c=Math.abs(o[1]-o[0]),f=a.scale.getExtent(),v=Math.abs(f[1]-f[0]);s=u?c/v*u:c}else{var h=n.getData();s=Math.abs(o[1]-o[0])/h.count()}var d=be(n.get("barWidth"),s),p=be(n.get("barMaxWidth"),s),g=be(n.get("barMinWidth")||(dS(n)?.5:1),s),m=n.get("barGap"),y=n.get("barCategoryGap"),_=n.get("defaultBarGap");r.push({bandWidth:s,barWidth:d,barMaxWidth:p,barMinWidth:g,barGap:m,barCategoryGap:y,defaultBarGap:_,axisKey:ed(a),stackId:cS(n)})}),rP(r)}function rP(t){var e={};C(t,function(n,i){var a=n.axisKey,o=n.bandWidth,s=e[a]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:n.defaultBarGap||0,stacks:{}},l=s.stacks;e[a]=s;var u=n.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var c=n.barWidth;c&&!l[u].width&&(l[u].width=c,c=Math.min(s.remainedWidth,c),s.remainedWidth-=c);var f=n.barMaxWidth;f&&(l[u].maxWidth=f);var v=n.barMinWidth;v&&(l[u].minWidth=v);var h=n.barGap;h!=null&&(s.gap=h);var d=n.barCategoryGap;d!=null&&(s.categoryGap=d)});var r={};return C(e,function(n,i){r[i]={};var a=n.stacks,o=n.bandWidth,s=n.categoryGap;if(s==null){var l=Se(a).length;s=Math.max(35-l*4,15)+"%"}var u=be(s,o),c=be(n.gap,1),f=n.remainedWidth,v=n.autoWidthCount,h=(f-u)/(v+(v-1)*c);h=Math.max(h,0),C(a,function(m){var y=m.maxWidth,_=m.minWidth;if(m.width){var b=m.width;y&&(b=Math.min(b,y)),_&&(b=Math.max(b,_)),m.width=b,f-=b+c*b,v--}else{var b=h;y&&y<b&&(b=Math.min(y,f)),_&&_>b&&(b=_),b!==h&&(m.width=b,f-=b+c*b,v--)}}),h=(f-u)/(v+(v-1)*c),h=Math.max(h,0);var d=0,p;C(a,function(m,y){m.width||(m.width=h),p=m,d+=m.width*(1+c)}),p&&(d-=p.width*c);var g=-d/2;C(a,function(m,y){r[i][y]=r[i][y]||{bandWidth:o,offset:g,width:m.width},g+=m.width*(1+c)})}),r}function nP(t,e,r){if(t&&e){var n=t[ed(e)];return n}}function iP(t,e){var r=fS(t,e),n=hS(r);C(r,function(i){var a=i.getData(),o=i.coordinateSystem,s=o.getBaseAxis(),l=cS(i),u=n[ed(s)][l],c=u.offset,f=u.width;a.setLayout({bandWidth:u.bandWidth,offset:c,size:f})})}function aP(t){return{seriesType:t,plan:Jv(),reset:function(e){if(vS(e)){var r=e.getData(),n=e.coordinateSystem,i=n.getBaseAxis(),a=n.getOtherAxis(i),o=r.getDimensionIndex(r.mapDimension(a.dim)),s=r.getDimensionIndex(r.mapDimension(i.dim)),l=e.get("showBackground",!0),u=r.mapDimension(a.dim),c=r.getCalculationInfo("stackResultDimension"),f=to(r,u)&&!!r.getCalculationInfo("stackedOnSeries"),v=a.isHorizontal(),h=oP(i,a),d=dS(e),p=e.get("barMinHeight")||0,g=c&&r.getDimensionIndex(c),m=r.getLayout("size"),y=r.getLayout("offset");return{progress:function(_,b){for(var S=_.count,x=d&&qs(S*3),w=d&&l&&qs(S*3),T=d&&qs(S),M=n.master.getRect(),A=v?M.width:M.height,D,P=b.getStore(),E=0;(D=_.next())!=null;){var L=P.get(f?g:o,D),k=P.get(s,D),N=h,$=void 0;f&&($=+L-P.get(o,D));var B=void 0,U=void 0,j=void 0,H=void 0;if(v){var z=n.dataToPoint([L,k]);if(f){var J=n.dataToPoint([$,k]);N=J[0]}B=N,U=z[1]+y,j=z[0]-N,H=m,Math.abs(j)<p&&(j=(j<0?-1:1)*p)}else{var z=n.dataToPoint([k,L]);if(f){var J=n.dataToPoint([k,$]);N=J[1]}B=z[0]+y,U=N,j=m,H=z[1]-N,Math.abs(H)<p&&(H=(H<=0?-1:1)*p)}d?(x[E]=B,x[E+1]=U,x[E+2]=v?j:H,w&&(w[E]=v?M.x:B,w[E+1]=v?U:M.y,w[E+2]=A),T[D]=D):b.setItemLayout(D,{x:B,y:U,width:j,height:H}),E+=3}d&&b.setLayout({largePoints:x,largeDataIndices:T,largeBackgroundPoints:w,valueAxisHorizontal:v})}}}}}}function vS(t){return t.coordinateSystem&&t.coordinateSystem.type==="cartesian2d"}function dS(t){return t.pipelineContext&&t.pipelineContext.large}function oP(t,e){var r=e.model.get("startValue");return r||(r=0),e.toGlobalCoord(e.dataToCoord(e.type==="log"?r>0?r:1:r))}var hh=(function(t){G(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.getInitialData=function(r,n){return wu(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(r,n,i){var a=this.coordinateSystem;if(a&&a.clampData){var o=a.clampData(r),s=a.dataToPoint(o);if(i)C(a.getAxes(),function(v,h){if(v.type==="category"&&n!=null){var d=v.getTicksCoords(),p=v.getTickModel().get("alignWithLabel"),g=o[h],m=n[h]==="x1"||n[h]==="y1";if(m&&!p&&(g+=1),d.length<2)return;if(d.length===2){s[h]=v.toGlobalCoord(v.getExtent()[m?1:0]);return}for(var y=void 0,_=void 0,b=1,S=0;S<d.length;S++){var x=d[S].coord,w=S===d.length-1?d[S-1].tickValue+b:d[S].tickValue;if(w===g){_=x;break}else if(w<g)y=x;else if(y!=null&&w>g){_=(x+y)/2;break}S===1&&(b=w-d[0].tickValue)}_==null&&(y?y&&(_=d[d.length-1].coord):_=d[0].coord),s[h]=v.toGlobalCoord(_)}});else{var l=this.getData(),u=l.getLayout("offset"),c=l.getLayout("size"),f=a.getBaseAxis().isHorizontal()?0:1;s[f]+=u+c/2}return s}return[NaN,NaN]},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod",defaultBarGap:"10%"},e})(ft);ft.registerClass(hh);var sP=(function(t){G(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.getInitialData=function(){return wu(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},e.prototype.getProgressiveThreshold=function(){var r=this.get("progressiveThreshold"),n=this.get("largeThreshold");return n>r&&(r=n),r},e.prototype.brushSelector=function(r,n,i){return i.rect(n.getItemLayout(r))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=Hb(hh.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:Z.color.primary,borderWidth:2}},realtimeSort:!1}),e})(hh),Al="\0__throttleOriginMethod",Mg="\0__throttleRate",Ag="\0__throttleType";function Cu(t,e,r){var n,i=0,a=0,o=null,s,l,u,c;e=e||0;function f(){a=new Date().getTime(),o=null,t.apply(l,u||[])}var v=function(){for(var h=[],d=0;d<arguments.length;d++)h[d]=arguments[d];n=new Date().getTime(),l=this,u=h;var p=c||e,g=c||r;c=null,s=n-(g?i:a)-p,clearTimeout(o),g?o=setTimeout(f,p):s>=0?f():o=setTimeout(f,-s),i=n};return v.clear=function(){o&&(clearTimeout(o),o=null)},v.debounceNextCall=function(h){c=h},v}function pS(t,e,r,n){var i=t[e];if(i){var a=i[Al]||i,o=i[Ag],s=i[Mg];if(s!==r||o!==n){if(r==null||!n)return t[e]=a;i=t[e]=Cu(a,r,n==="debounce"),i[Al]=a,i[Ag]=n,i[Mg]=r}return i}}function vh(t,e){var r=t[e];r&&r[Al]&&(r.clear&&r.clear(),t[e]=r[Al])}var lP=(function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return t})(),Eg=(function(t){G(e,t);function e(r){var n=t.call(this,r)||this;return n.type="sausage",n}return e.prototype.getDefaultShape=function(){return new lP},e.prototype.buildPath=function(r,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,c=n.startAngle,f=n.endAngle,v=n.clockwise,h=Math.PI*2,d=v?f-c<h:c-f<h;d||(c=f-(v?h:-h));var p=Math.cos(c),g=Math.sin(c),m=Math.cos(f),y=Math.sin(f);d?(r.moveTo(p*o+i,g*o+a),r.arc(p*u+i,g*u+a,l,-Math.PI+c,c,!v)):r.moveTo(p*s+i,g*s+a),r.arc(i,a,s,c,f,!v),r.arc(m*u+i,y*u+a,l,f-Math.PI*2,f-Math.PI,!v),o!==0&&r.arc(i,a,o,f,c,v)},e})(ge);function uP(t,e){e=e||{};var r=e.isRoundCap;return function(n,i,a){var o=i.position;if(!o||o instanceof Array)return al(n,i,a);var s=t(o),l=i.distance!=null?i.distance:5,u=this.shape,c=u.cx,f=u.cy,v=u.r,h=u.r0,d=(v+h)/2,p=u.startAngle,g=u.endAngle,m=(p+g)/2,y=r?Math.abs(v-h)/2:0,_=Math.cos,b=Math.sin,S=c+v*_(p),x=f+v*b(p),w="left",T="top";switch(s){case"startArc":S=c+(h-l)*_(m),x=f+(h-l)*b(m),w="center",T="top";break;case"insideStartArc":S=c+(h+l)*_(m),x=f+(h+l)*b(m),w="center",T="bottom";break;case"startAngle":S=c+d*_(p)+ss(p,l+y,!1),x=f+d*b(p)+ls(p,l+y,!1),w="right",T="middle";break;case"insideStartAngle":S=c+d*_(p)+ss(p,-l+y,!1),x=f+d*b(p)+ls(p,-l+y,!1),w="left",T="middle";break;case"middle":S=c+d*_(m),x=f+d*b(m),w="center",T="middle";break;case"endArc":S=c+(v+l)*_(m),x=f+(v+l)*b(m),w="center",T="bottom";break;case"insideEndArc":S=c+(v-l)*_(m),x=f+(v-l)*b(m),w="center",T="top";break;case"endAngle":S=c+d*_(g)+ss(g,l+y,!0),x=f+d*b(g)+ls(g,l+y,!0),w="left",T="middle";break;case"insideEndAngle":S=c+d*_(g)+ss(g,-l+y,!0),x=f+d*b(g)+ls(g,-l+y,!0),w="right",T="middle";break;default:return al(n,i,a)}return n=n||{},n.x=S,n.y=x,n.align=w,n.verticalAlign=T,n}}function cP(t,e,r,n){if(me(n)){t.setTextConfig({rotation:n});return}else if(W(e)){t.setTextConfig({rotation:0});return}var i=t.shape,a=i.clockwise?i.startAngle:i.endAngle,o=i.clockwise?i.endAngle:i.startAngle,s=(a+o)/2,l,u=r(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:t.setTextConfig({rotation:0});return}var c=Math.PI*1.5-l;u==="middle"&&c>Math.PI/2&&c<Math.PI*1.5&&(c-=Math.PI),t.setTextConfig({rotation:c})}function ss(t,e,r){return e*Math.sin(t)*(r?-1:1)}function ls(t,e,r){return e*Math.cos(t)*(r?1:-1)}function Ma(t,e,r){var n=t.get("borderRadius");if(n==null)return r?{cornerRadius:0}:null;W(n)||(n=[n,n,n,n]);var i=Math.abs(e.r||0-e.r0||0);return{cornerRadius:X(n,function(a){return nn(a,i)})}}var Sc=Math.max,xc=Math.min;function fP(t,e){var r=t.getArea&&t.getArea();if(lS(t,"cartesian2d")){var n=t.getBaseAxis();if(n.type!=="category"||!n.onBand){var i=e.getLayout("bandWidth");n.isHorizontal()?(r.x-=i,r.width+=i*2):(r.y-=i,r.height+=i*2)}}return r}var hP=(function(t){G(e,t);function e(){var r=t.call(this)||this;return r.type=e.type,r._isFirstFrame=!0,r}return e.prototype.render=function(r,n,i,a){this._model=r,this._removeOnRenderedListener(i),this._updateDrawMode(r);var o=r.get("coordinateSystem");(o==="cartesian2d"||o==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(r,n,i):this._renderNormal(r,n,i,a))},e.prototype.incrementalPrepareRender=function(r){this._clear(),this._updateDrawMode(r),this._updateLargeClip(r)},e.prototype.incrementalRender=function(r,n){this._progressiveEls=[],this._incrementalRenderLarge(r,n)},e.prototype.eachRendered=function(r){gu(this._progressiveEls||this.group,r)},e.prototype._updateDrawMode=function(r){var n=r.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},e.prototype._renderNormal=function(r,n,i,a){var o=this.group,s=r.getData(),l=this._data,u=r.coordinateSystem,c=u.getBaseAxis(),f;u.type==="cartesian2d"?f=c.isHorizontal():u.type==="polar"&&(f=c.dim==="angle");var v=r.isAnimationEnabled()?r:null,h=vP(r,u);h&&this._enableRealtimeSort(h,s,i);var d=r.get("clip",!0)||h,p=fP(u,s);o.removeClipPath();var g=r.get("roundCap",!0),m=r.get("showBackground",!0),y=r.getModel("backgroundStyle"),_=y.get("borderRadius")||0,b=[],S=this._backgroundEls,x=a&&a.isInitSort,w=a&&a.type==="changeAxisOrder";function T(D){var P=us[u.type](s,D);if(!P)return null;var E=bP(u,f,P);return E.useStyle(y.getItemStyle()),u.type==="cartesian2d"?E.setShape("r",_):E.setShape("cornerRadius",_),b[D]=E,E}s.diff(l).add(function(D){var P=s.getItemModel(D),E=us[u.type](s,D,P);if(E&&(m&&T(D),!(!s.hasValue(D)||!Og[u.type](E)))){var L=!1;d&&(L=Rg[u.type](p,E));var k=Lg[u.type](r,s,D,E,f,v,c.model,!1,g);h&&(k.forceLabelAnimation=!0),kg(k,s,D,P,E,r,f,u.type==="polar"),x?k.attr({shape:E}):h?Pg(h,v,k,E,D,f,!1,!1):lr(k,{shape:E},r,D),s.setItemGraphicEl(D,k),o.add(k),k.ignore=L}}).update(function(D,P){var E=s.getItemModel(D),L=us[u.type](s,D,E);if(L){if(m){var k=void 0;S.length===0?k=T(P):(k=S[P],k.useStyle(y.getItemStyle()),u.type==="cartesian2d"?k.setShape("r",_):k.setShape("cornerRadius",_),b[D]=k);var N=us[u.type](s,D),$=mS(f,N,u);ct(k,{shape:$},v,D)}var B=l.getItemGraphicEl(P);if(!s.hasValue(D)||!Og[u.type](L)){o.remove(B);return}var U=!1;d&&(U=Rg[u.type](p,L),U&&o.remove(B));var j=B&&(B.type==="sector"&&g||B.type==="sausage"&&!g);if(j&&(B&&Ba(B,r,P),B=null),B?wv(B):B=Lg[u.type](r,s,D,L,f,v,c.model,!0,g),h&&(B.forceLabelAnimation=!0),w){var H=B.getTextContent();if(H){var z=Ev(H);z.prevValue!=null&&(z.prevValue=z.value)}}else kg(B,s,D,E,L,r,f,u.type==="polar");x?B.attr({shape:L}):h?Pg(h,v,B,L,D,f,!0,w):ct(B,{shape:L},r,D,null),s.setItemGraphicEl(D,B),B.ignore=U,o.add(B)}}).remove(function(D){var P=l.getItemGraphicEl(D);P&&Ba(P,r,D)}).execute();var M=this._backgroundGroup||(this._backgroundGroup=new Ne);M.removeAll();for(var A=0;A<b.length;++A)M.add(b[A]);o.add(M),this._backgroundEls=b,this._data=s},e.prototype._renderLarge=function(r,n,i){this._clear(),Bg(r,this.group),this._updateLargeClip(r)},e.prototype._incrementalRenderLarge=function(r,n){this._removeBackground(),Bg(n,this.group,this._progressiveEls,!0)},e.prototype._updateLargeClip=function(r){var n=r.get("clip",!0)&&ZL(r.coordinateSystem,!1,r),i=this.group;n?i.setClipPath(n):i.removeClipPath()},e.prototype._enableRealtimeSort=function(r,n,i){var a=this;if(n.count()){var o=r.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(n,r,i),this._isFirstFrame=!1;else{var s=function(l){var u=n.getItemGraphicEl(l),c=u&&u.shape;return c&&Math.abs(o.isHorizontal()?c.height:c.width)||0};this._onRendered=function(){a._updateSortWithinSameData(n,s,o,i)},i.getZr().on("rendered",this._onRendered)}}},e.prototype._dataSort=function(r,n,i){var a=[];return r.each(r.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:X(a,function(o){return o.ordinalNumber})}},e.prototype._isOrderChangedWithinSameData=function(r,n,i){for(var a=i.scale,o=r.mapDimension(i.dim),s=Number.MAX_VALUE,l=0,u=a.getOrdinalMeta().categories.length;l<u;++l){var c=r.rawIndexOf(o,a.getRawOrdinalNumber(l)),f=c<0?Number.MIN_VALUE:n(r.indexOfRawIndex(c));if(f>s)return!0;s=f}return!1},e.prototype._isOrderDifferentInView=function(r,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(r.ordinalNumbers[o]!==i.getRawOrdinalNumber(o))return!0},e.prototype._updateSortWithinSameData=function(r,n,i,a){if(this._isOrderChangedWithinSameData(r,n,i)){var o=this._dataSort(r,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(r,n,i){var a=n.baseAxis,o=this._dataSort(r,a,function(s){return r.get(r.mapDimension(n.otherAxis.dim),s)});i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",isInitSort:!0,axisId:a.index,sortInfo:o})},e.prototype.remove=function(r,n){this._clear(this._model),this._removeOnRenderedListener(n)},e.prototype.dispose=function(r,n){this._removeOnRenderedListener(n)},e.prototype._removeOnRenderedListener=function(r){this._onRendered&&(r.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(r){var n=this.group,i=this._data;r&&r.isAnimationEnabled()&&i&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],i.eachItemGraphicEl(function(a){Ba(a,r,he(a).dataIndex)})):n.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e})(mt),Rg={cartesian2d:function(t,e){var r=e.width<0?-1:1,n=e.height<0?-1:1;r<0&&(e.x+=e.width,e.width=-e.width),n<0&&(e.y+=e.height,e.height=-e.height);var i=t.x+t.width,a=t.y+t.height,o=Sc(e.x,t.x),s=xc(e.x+e.width,i),l=Sc(e.y,t.y),u=xc(e.y+e.height,a),c=s<o,f=u<l;return e.x=c&&o>i?s:o,e.y=f&&l>a?u:l,e.width=c?0:s-o,e.height=f?0:u-l,r<0&&(e.x+=e.width,e.width=-e.width),n<0&&(e.y+=e.height,e.height=-e.height),c||f},polar:function(t,e){var r=e.r0<=e.r?1:-1;if(r<0){var n=e.r;e.r=e.r0,e.r0=n}var i=xc(e.r,t.r),a=Sc(e.r0,t.r0);e.r=i,e.r0=a;var o=i-a<0;if(r<0){var n=e.r;e.r=e.r0,e.r0=n}return o}},Lg={cartesian2d:function(t,e,r,n,i,a,o,s,l){var u=new De({shape:F({},n),z2:1});if(u.__dataIndex=r,u.name="item",a){var c=u.shape,f=i?"height":"width";c[f]=0}return u},polar:function(t,e,r,n,i,a,o,s,l){var u=!i&&l?Eg:Lr,c=new u({shape:n,z2:1});c.name="item";var f=gS(i);if(c.calculateTextPosition=uP(f,{isRoundCap:u===Eg}),a){var v=c.shape,h=i?"r":"endAngle",d={};v[h]=i?n.r0:n.startAngle,d[h]=n[h],(s?ct:lr)(c,{shape:d},a)}return c}};function vP(t,e){var r=t.get("realtimeSort",!0),n=e.getBaseAxis();if(r&&n.type==="category"&&e.type==="cartesian2d")return{baseAxis:n,otherAxis:e.getOtherAxis(n)}}function Pg(t,e,r,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?ct:lr)(r,{shape:l},e,i,null);var c=e?t.baseAxis.model:null;(o?ct:lr)(r,{shape:u},c,i)}function Ig(t,e){for(var r=0;r<e.length;r++)if(!isFinite(t[e[r]]))return!0;return!1}var dP=["x","y","width","height"],pP=["cx","cy","r","startAngle","endAngle"],Og={cartesian2d:function(t){return!Ig(t,dP)},polar:function(t){return!Ig(t,pP)}},us={cartesian2d:function(t,e,r){var n=t.getItemLayout(e);if(!n)return null;var i=r?mP(r,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(t,e,r){var n=t.getItemLayout(e);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}}};function gP(t){return t.startAngle!=null&&t.endAngle!=null&&t.startAngle===t.endAngle}function gS(t){return(function(e){var r=e?"Arc":"Angle";return function(n){switch(n){case"start":case"insideStart":case"end":case"insideEnd":return n+r;default:return n}}})(t)}function kg(t,e,r,n,i,a,o,s){var l=e.getItemVisual(r,"style");if(s){if(!a.get("roundCap")){var c=t.shape,f=Ma(n.getModel("itemStyle"),c,!0);F(c,f),t.setShape(c)}}else{var u=n.get(["itemStyle","borderRadius"])||0;t.setShape("r",u)}t.useStyle(l);var v=n.getShallow("cursor");v&&t.attr("cursor",v);var h=s?o?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":o?i.height>=0?"bottom":"top":i.width>=0?"right":"left",d=_u(n);yu(t,d,{labelFetcher:a,labelDataIndex:r,defaultText:aS(a.getData(),r),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:h});var p=t.getTextContent();if(s&&p){var g=n.get(["label","position"]);t.textConfig.inside=g==="middle"?!0:null,cP(t,g==="outside"?h:g,gS(o),n.get(["label","rotate"]))}bE(p,d,a.getRawValue(r),function(y){return zL(e,y)});var m=n.getModel(["emphasis"]);Sv(t,m.get("focus"),m.get("blurScope"),m.get("disabled")),W_(t,n),gP(i)&&(t.style.fill="none",t.style.stroke="none",C(t.states,function(y){y.style&&(y.style.fill=y.style.stroke="none")}))}function mP(t,e){var r=t.get(["itemStyle","borderColor"]);if(!r||r==="none")return 0;var n=t.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)}var yP=(function(){function t(){}return t})(),Ng=(function(t){G(e,t);function e(r){var n=t.call(this,r)||this;return n.type="largeBar",n}return e.prototype.getDefaultShape=function(){return new yP},e.prototype.buildPath=function(r,n){for(var i=n.points,a=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,c=0;c<i.length;c+=3)l[a]=u,l[o]=i[c+2],s[a]=i[c+a],s[o]=i[c+o],r.rect(s[0],s[1],l[0],l[1])},e})(ge);function Bg(t,e,r,n){var i=t.getData(),a=i.getLayout("valueAxisHorizontal")?1:0,o=i.getLayout("largeDataIndices"),s=i.getLayout("size"),l=t.getModel("backgroundStyle"),u=i.getLayout("largeBackgroundPoints");if(u){var c=new Ng({shape:{points:u},incremental:!!n,silent:!0,z2:0});c.baseDimIdx=a,c.largeDataIndices=o,c.barWidth=s,c.useStyle(l.getItemStyle()),e.add(c),r&&r.push(c)}var f=new Ng({shape:{points:i.getLayout("largePoints")},incremental:!!n,ignoreCoarsePointer:!0,z2:1});f.baseDimIdx=a,f.largeDataIndices=o,f.barWidth=s,e.add(f),f.useStyle(i.getVisual("style")),f.style.stroke=null,he(f).seriesIndex=t.seriesIndex,t.get("silent")||(f.on("mousedown",Fg),f.on("mousemove",Fg)),r&&r.push(f)}var Fg=Cu(function(t){var e=this,r=_P(e,t.offsetX,t.offsetY);he(e).dataIndex=r>=0?r:null},30,!1);function _P(t,e,r){for(var n=t.baseDimIdx,i=1-n,a=t.shape.points,o=t.largeDataIndices,s=[],l=[],u=t.barWidth,c=0,f=a.length/3;c<f;c++){var v=c*3;if(l[n]=u,l[i]=a[v+2],s[n]=a[v+n],s[i]=a[v+i],l[i]<0&&(s[i]+=l[i],l[i]=-l[i]),e>=s[0]&&e<=s[0]+l[0]&&r>=s[1]&&r<=s[1]+l[1])return o[c]}return-1}function mS(t,e,r){if(lS(r,"cartesian2d")){var n=e,i=r.getArea();return{x:t?n.x:i.x,y:t?i.y:n.y,width:t?n.width:i.width,height:t?i.height:n.height}}else{var i=r.getArea(),a=e;return{cx:i.cx,cy:i.cy,r0:t?i.r0:a.r0,r:t?i.r:a.r,startAngle:t?a.startAngle:0,endAngle:t?a.endAngle:Math.PI*2}}}function bP(t,e,r){var n=t.type==="polar"?Lr:De;return new n({shape:mS(e,r,t),silent:!0,z2:0})}function SP(t){t.registerChartView(hP),t.registerSeriesModel(sP),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,we(iP,"bar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,aP("bar")),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,JL("bar")),t.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,r){var n=e.componentType||"series";r.eachComponent({mainType:n,query:e},function(i){e.sortInfo&&i.axis.setCategorySortInfo(e.sortInfo)})})}function xP(t,e){function r(n,i){var a=[];return n.eachComponent({mainType:"series",subType:t,query:i},function(o){a.push(o.seriesIndex)}),a}C([[t+"ToggleSelect","toggleSelect"],[t+"Select","select"],[t+"UnSelect","unselect"]],function(n){e(n[0],function(i,a,o){i=F({},i),o.dispatchAction(F(i,{type:n[1],seriesIndex:r(a,i)}))})})}function pi(t,e,r,n,i){var a=t+e;r.isSilent(a)||n.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,u=i.selected,c=0;c<u.length;c++)if(u[c].seriesIndex===s){var f=o.getData(),v=Co(f,i.fromActionPayload);r.trigger(a,{type:a,seriesId:o.id,name:W(v)?f.getName(v[0]):f.getName(v),selected:Y(l)?l:F({},l)})}})}function wP(t,e,r){t.on("selectchanged",function(n){var i=r.getModel();n.isFromClick?(pi("map","selectchanged",e,i,n),pi("pie","selectchanged",e,i,n)):n.fromAction==="select"?(pi("map","selected",e,i,n),pi("pie","selected",e,i,n)):n.fromAction==="unselect"&&(pi("map","unselected",e,i,n),pi("pie","unselected",e,i,n))})}var zg=Math.PI*2,cs=Math.PI/180;function TP(t,e,r){e.eachSeriesByType(t,function(n){var i=n.getData(),a=i.mapDimension("value"),o=$R(n,r),s=o.cx,l=o.cy,u=o.r,c=o.r0,f=o.viewRect,v=-n.get("startAngle")*cs,h=n.get("endAngle"),d=n.get("padAngle")*cs;h=h==="auto"?v-zg:-h*cs;var p=n.get("minAngle")*cs,g=p+d,m=0;i.each(a,function($){!isNaN($)&&m++});var y=i.getSum(a),_=Math.PI/(y||m)*2,b=n.get("clockwise"),S=n.get("roseType"),x=n.get("stillShowZeroSum"),w=i.getDataExtent(a);w[0]=0;var T=b?1:-1,M=[v,h],A=T*d/2;m_(M,!b),v=M[0],h=M[1];var D=yS(n);D.startAngle=v,D.endAngle=h,D.clockwise=b,D.cx=s,D.cy=l,D.r=u,D.r0=c;var P=Math.abs(h-v),E=P,L=0,k=v;if(i.setLayout({viewRect:f,r:u}),i.each(a,function($,B){var U;if(isNaN($)){i.setItemLayout(B,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:b,cx:s,cy:l,r0:c,r:S?NaN:u});return}S!=="area"?U=y===0&&x?_:$*_:U=P/m,U<g?(U=g,E-=g):L+=$;var j=k+T*U,H=0,z=0;d>U?(H=k+T*U/2,z=H):(H=k+A,z=j-A),i.setItemLayout(B,{angle:U,startAngle:H,endAngle:z,clockwise:b,cx:s,cy:l,r0:c,r:S?dl($,w,[c,u]):u}),k=j}),E<zg&&m)if(E<=.001){var N=P/m;i.each(a,function($,B){if(!isNaN($)){var U=i.getItemLayout(B);U.angle=N;var j=0,H=0;N<d?(j=v+T*(B+1/2)*N,H=j):(j=v+T*B*N+A,H=v+T*(B+1)*N-A),U.startAngle=j,U.endAngle=H}})}else _=E/L,k=v,i.each(a,function($,B){if(!isNaN($)){var U=i.getItemLayout(B),j=U.angle===g?g:$*_,H=0,z=0;j<d?(H=k+T*j/2,z=H):(H=k+A,z=k+T*j-A),U.startAngle=H,U.endAngle=z,k+=T*j}})})}var yS=xe();function CP(t){return{seriesType:t,reset:function(e,r){var n=r.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})}}}}function _S(t,e,r,n,i,a,o,s){var l=i-t,u=a-e,c=r-t,f=n-e,v=Math.sqrt(c*c+f*f);c/=v,f/=v;var h=l*c+u*f,d=h/v;d*=v;var p=o[0]=t+d*c,g=o[1]=e+d*f;return Math.sqrt((p-i)*(p-i)+(g-a)*(g-a))}var Yr=new ne,Ce=new ne,ze=new ne,qr=new ne,tr=new ne,El=[],Ze=new ne;function DP(t,e){if(e<=180&&e>0){e=e/180*Math.PI,Yr.fromArray(t[0]),Ce.fromArray(t[1]),ze.fromArray(t[2]),ne.sub(qr,Yr,Ce),ne.sub(tr,ze,Ce);var r=qr.len(),n=tr.len();if(!(r<.001||n<.001)){qr.scale(1/r),tr.scale(1/n);var i=qr.dot(tr),a=Math.cos(e);if(a<i){var o=_S(Ce.x,Ce.y,ze.x,ze.y,Yr.x,Yr.y,El);Ze.fromArray(El),Ze.scaleAndAdd(tr,o/Math.tan(Math.PI-e));var s=ze.x!==Ce.x?(Ze.x-Ce.x)/(ze.x-Ce.x):(Ze.y-Ce.y)/(ze.y-Ce.y);if(isNaN(s))return;s<0?ne.copy(Ze,Ce):s>1&&ne.copy(Ze,ze),Ze.toArray(t[1])}}}}function MP(t,e,r){if(r<=180&&r>0){r=r/180*Math.PI,Yr.fromArray(t[0]),Ce.fromArray(t[1]),ze.fromArray(t[2]),ne.sub(qr,Ce,Yr),ne.sub(tr,ze,Ce);var n=qr.len(),i=tr.len();if(!(n<.001||i<.001)){qr.scale(1/n),tr.scale(1/i);var a=qr.dot(e),o=Math.cos(r);if(a<o){var s=_S(Ce.x,Ce.y,ze.x,ze.y,Yr.x,Yr.y,El);Ze.fromArray(El);var l=Math.PI/2,u=Math.acos(tr.dot(e)),c=l+u-r;if(c>=l)ne.copy(Ze,ze);else{Ze.scaleAndAdd(tr,s/Math.tan(Math.PI/2-c));var f=ze.x!==Ce.x?(Ze.x-Ce.x)/(ze.x-Ce.x):(Ze.y-Ce.y)/(ze.y-Ce.y);if(isNaN(f))return;f<0?ne.copy(Ze,Ce):f>1&&ne.copy(Ze,ze)}Ze.toArray(t[1])}}}}function wc(t,e,r,n){var i=r==="normal",a=i?t:t.ensureState(r);a.ignore=e;var o=n.get("smooth");o&&o===!0&&(o=.3),a.shape=a.shape||{},o>0&&(a.shape.smooth=o);var s=n.getModel("lineStyle").getLineStyle();i?t.useStyle(s):a.style=s}function AP(t,e){var r=e.smooth,n=e.points;if(n)if(t.moveTo(n[0][0],n[0][1]),r>0&&n.length>=3){var i=sl(n[0],n[1]),a=sl(n[1],n[2]);if(!i||!a){t.lineTo(n[1][0],n[1][1]),t.lineTo(n[2][0],n[2][1]);return}var o=Math.min(i,a)*r,s=Ns([],n[1],n[0],o/i),l=Ns([],n[1],n[2],o/a),u=Ns([],s,l,.5);t.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),t.bezierCurveTo(l[0],l[1],l[0],l[1],n[2][0],n[2][1])}else for(var c=1;c<n.length;c++)t.lineTo(n[c][0],n[c][1])}function EP(t,e,r){var n=t.getTextGuideLine(),i=t.getTextContent();if(!i){n&&t.removeTextGuideLine();return}for(var a=e.normal,o=a.get("show"),s=i.ignore,l=0;l<pl.length;l++){var u=pl[l],c=e[u],f=u==="normal";if(c){var v=c.get("show"),h=f?s:K(i.states[u]&&i.states[u].ignore,s);if(h||!K(v,o)){var d=f?n:n&&n.states[u];d&&(d.ignore=!0),n&&wc(n,!0,u,c);continue}n||(n=new Yi,t.setTextGuideLine(n),!f&&(s||!o)&&wc(n,!0,"normal",e.normal),t.stateProxy&&(n.stateProxy=t.stateProxy)),wc(n,!1,u,c)}}if(n){pe(n.style,r),n.style.fill=null;var p=a.get("showAbove"),g=t.textGuideLineConfig=t.textGuideLineConfig||{};g.showAbove=p||!1,n.buildPath=AP}}function RP(t,e){e=e||"labelLine";for(var r={normal:t.getModel(e)},n=0;n<hr.length;n++){var i=hr[n];r[i]=t.getModel([i,e])}return r}var Hg=["label","labelLine","layoutOption","priority","defaultAttr","marginForce","minMarginForce","marginDefault","suggestIgnore"],LP=1,Rl=2,bS=LP|Rl;function Ll(t,e,r){r=r||bS,e?t.dirty|=r:t.dirty&=~r}function SS(t,e){return e=e||bS,t.dirty==null||!!(t.dirty&e)}function sn(t){if(t)return SS(t)&&xS(t,t.label,t),t}function xS(t,e,r){var n=e.getComputedTransform();t.transform=Av(t.transform,n);var i=t.localRect=eo(t.localRect,e.getBoundingRect()),a=e.style,o=a.margin,s=r&&r.marginForce,l=r&&r.minMarginForce,u=r&&r.marginDefault,c=a.__marginType;c==null&&u&&(o=u,c=Ai.textMargin);for(var f=0;f<4;f++)Tc[f]=c===Ai.minMargin&&l&&l[f]!=null?l[f]:s&&s[f]!=null?s[f]:o?o[f]:0;c===Ai.textMargin&&xl(i,Tc,!1,!1);var v=t.rect=eo(t.rect,i);return n&&v.applyTransform(n),c===Ai.minMargin&&xl(v,Tc,!1,!1),t.axisAligned=Mv(n),(t.label=t.label||{}).ignore=e.ignore,Ll(t,!1),Ll(t,!0,Rl),t}var Tc=[0,0,0,0];function PP(t,e,r){return t.transform=Av(t.transform,r),t.localRect=eo(t.localRect,e),t.rect=eo(t.rect,e),r&&t.rect.applyTransform(r),t.axisAligned=Mv(r),t.obb=void 0,(t.label=t.label||{}).ignore=!1,t}function IP(t,e){if(t){t.label.x+=e.x,t.label.y+=e.y,t.label.markRedraw();var r=t.transform;r&&(r[4]+=e.x,r[5]+=e.y);var n=t.rect;n&&(n.x+=e.x,n.y+=e.y);var i=t.obb;i&&i.fromBoundingRect(t.localRect,r)}}function Ug(t,e){for(var r=0;r<Hg.length;r++){var n=Hg[r];t[n]==null&&(t[n]=e[n])}return sn(t)}function Gg(t){var e=t.obb;return(!e||SS(t,Rl))&&(t.obb=e=e||new tb,e.fromBoundingRect(t.localRect,t.transform),Ll(t,!1,Rl)),e}function OP(t,e,r,n,i){var a=t.length,o=Gr[e],s=Ui[e];if(a<2)return!1;t.sort(function(w,T){return w.rect[o]-T.rect[o]});for(var l=0,u,c=!1,f=0;f<a;f++){var v=t[f],h=v.rect;u=h[o]-l,u<0&&(h[o]-=u,v.label[o]-=u,c=!0),l=h[o]+h[s]}var d=t[0],p=t[a-1],g,m;y(),g<0&&S(-g,.8),m<0&&S(m,.8),y(),_(g,m,1),_(m,g,-1),y(),g<0&&x(-g),m<0&&x(m);function y(){g=d.rect[o]-r,m=n-p.rect[o]-p.rect[s]}function _(w,T,M){if(w<0){var A=Math.min(T,-w);if(A>0){b(A*M,0,a);var D=A+w;D<0&&S(-D*M,1)}else S(-w*M,1)}}function b(w,T,M){w!==0&&(c=!0);for(var A=T;A<M;A++){var D=t[A],P=D.rect;P[o]+=w,D.label[o]+=w}}function S(w,T){for(var M=[],A=0,D=1;D<a;D++){var P=t[D-1].rect,E=Math.max(t[D].rect[o]-P[o]-P[s],0);M.push(E),A+=E}if(A){var L=Math.min(Math.abs(w)/A,T);if(w>0)for(var D=0;D<a-1;D++){var k=M[D]*L;b(k,0,D+1)}else for(var D=a-1;D>0;D--){var k=M[D-1]*L;b(-k,D,a)}}}function x(w){var T=w<0?-1:1;w=Math.abs(w);for(var M=Math.ceil(w/(a-1)),A=0;A<a-1;A++)if(T>0?b(M,0,A+1):b(-M,a-A-1,a),w-=M,w<=0)return}return c}function kP(t){var e=[];t.sort(function(u,c){return(c.suggestIgnore?1:0)-(u.suggestIgnore?1:0)||c.priority-u.priority});function r(u){if(!u.ignore){var c=u.ensureState("emphasis");c.ignore==null&&(c.ignore=!1)}u.ignore=!0}for(var n=0;n<t.length;n++){var i=sn(t[n]);if(!i.label.ignore){for(var a=i.label,o=i.labelLine,s=!1,l=0;l<e.length;l++)if(td(i,e[l],null,{touchThreshold:.05})){s=!0;break}s?(r(a),o&&r(o)):e.push(i)}}}function td(t,e,r,n){return!t||!e||t.label&&t.label.ignore||e.label&&e.label.ignore||!t.rect.intersect(e.rect,r,n)?!1:t.axisAligned&&e.axisAligned?!0:Gg(t).intersect(Gg(e),r,n)}var NP=Math.PI/180;function Vg(t,e,r,n,i,a,o,s,l,u){if(t.length<2)return;function c(p){for(var g=p.rB,m=g*g,y=0;y<p.list.length;y++){var _=p.list[y],b=Math.abs(_.label.y-r),S=n+_.len,x=S*S,w=Math.sqrt(Math.abs((1-b*b/m)*x)),T=e+(w+_.len2)*i,M=T-_.label.x,A=_.targetTextWidth-M*i;wS(_,A,!0),_.label.x=T}}function f(p){for(var g={list:[],maxY:0},m={list:[],maxY:0},y=0;y<p.length;y++)if(p[y].labelAlignTo==="none"){var _=p[y],b=_.label.y>r?m:g,S=Math.abs(_.label.y-r);if(S>=b.maxY){var x=_.label.x-e-_.len2*i,w=n+_.len,T=Math.abs(x)<w?Math.sqrt(S*S/(1-x*x/w/w)):w;b.rB=T,b.maxY=S}b.list.push(_)}c(g),c(m)}for(var v=t.length,h=0;h<v;h++)if(t[h].position==="outer"&&t[h].labelAlignTo==="labelLine"){var d=t[h].label.x-u;t[h].linePoints[1][0]+=d,t[h].label.x=u}OP(t,1,l,l+o)&&f(t)}function BP(t,e,r,n,i,a,o,s){for(var l=[],u=[],c=Number.MAX_VALUE,f=-Number.MAX_VALUE,v=0;v<t.length;v++){var h=t[v].label;Cc(t[v])||(h.x<e?(c=Math.min(c,h.x),l.push(t[v])):(f=Math.max(f,h.x),u.push(t[v])))}for(var v=0;v<t.length;v++){var d=t[v];if(!Cc(d)&&d.linePoints){if(d.labelStyleWidth!=null)continue;var h=d.label,p=d.linePoints,g=void 0;d.labelAlignTo==="edge"?h.x<e?g=p[2][0]-d.labelDistance-o-d.edgeDistance:g=o+i-d.edgeDistance-p[2][0]-d.labelDistance:d.labelAlignTo==="labelLine"?h.x<e?g=c-o-d.bleedMargin:g=o+i-f-d.bleedMargin:h.x<e?g=h.x-o-d.bleedMargin:g=o+i-h.x-d.bleedMargin,d.targetTextWidth=g,wS(d,g,!1)}}Vg(u,e,r,n,1,i,a,o,s,f),Vg(l,e,r,n,-1,i,a,o,s,c);for(var v=0;v<t.length;v++){var d=t[v];if(!Cc(d)&&d.linePoints){var h=d.label,p=d.linePoints,m=d.labelAlignTo==="edge",y=h.style.padding,_=y?y[1]+y[3]:0,b=h.style.backgroundColor?0:_,S=d.rect.width+b,x=p[1][0]-p[2][0];m?h.x<e?p[2][0]=o+d.edgeDistance+S+d.labelDistance:p[2][0]=o+i-d.edgeDistance-S-d.labelDistance:(h.x<e?p[2][0]=h.x+d.labelDistance:p[2][0]=h.x-d.labelDistance,p[1][0]=p[2][0]+x),p[1][1]=p[2][1]=h.y}}}function wS(t,e,r){if(t.labelStyleWidth==null){var n=t.label,i=n.style,a=t.rect,o=i.backgroundColor,s=i.padding,l=s?s[1]+s[3]:0,u=i.overflow,c=a.width+(o?0:l);if(e<c||r){if(u&&u.match("break")){n.setStyle("backgroundColor",null),n.setStyle("width",e-l);var f=n.getBoundingRect();n.setStyle("width",Math.ceil(f.width)),n.setStyle("backgroundColor",o)}else{var v=e-l,h=e<c?v:r?v>t.unconstrainedWidth?null:v:null;n.setStyle("width",h)}TS(a,n)}}}function TS(t,e){Wg.rect=t,xS(Wg,e,FP)}var FP={minMarginForce:[null,0,null,0],marginDefault:[1,0,1,0]},Wg={};function Cc(t){return t.position==="center"}function zP(t){var e=t.getData(),r=[],n,i,a=!1,o=(t.get("minShowLabelAngle")||0)*NP,s=e.getLayout("viewRect"),l=e.getLayout("r"),u=s.width,c=s.x,f=s.y,v=s.height;function h(x){x.ignore=!0}function d(x){if(!x.ignore)return!0;for(var w in x.states)if(x.states[w].ignore===!1)return!0;return!1}e.each(function(x){var w=e.getItemGraphicEl(x),T=w.shape,M=w.getTextContent(),A=w.getTextGuideLine(),D=e.getItemModel(x),P=D.getModel("label"),E=P.get("position")||D.get(["emphasis","label","position"]),L=P.get("distanceToLabelLine"),k=P.get("alignTo"),N=be(P.get("edgeDistance"),u),$=P.get("bleedMargin");$==null&&($=Math.min(u,v)>200?10:2);var B=D.getModel("labelLine"),U=B.get("length");U=be(U,u);var j=B.get("length2");if(j=be(j,u),Math.abs(T.endAngle-T.startAngle)<o){C(M.states,h),M.ignore=!0,A&&(C(A.states,h),A.ignore=!0);return}if(d(M)){var H=(T.startAngle+T.endAngle)/2,z=Math.cos(H),J=Math.sin(H),ce,Pe,ht,Ye;n=T.cx,i=T.cy;var He=E==="inside"||E==="inner";if(E==="center")ce=T.cx,Pe=T.cy,Ye="center";else{var Be=(He?(T.r+T.r0)/2*z:T.r*z)+n,Ae=(He?(T.r+T.r0)/2*J:T.r*J)+i;if(ce=Be+z*3,Pe=Ae+J*3,!He){var ee=Be+z*(U+l-T.r),se=Ae+J*(U+l-T.r),qt=ee+(z<0?-1:1)*j,Ie=se;k==="edge"?ce=z<0?c+N:c+u-N:ce=qt+(z<0?-L:L),Pe=Ie,ht=[[Be,Ae],[ee,se],[qt,Ie]]}Ye=He?"center":k==="edge"?z>0?"right":"left":z>0?"left":"right"}var Ir=Math.PI,pr=0,Xi=P.get("rotate");if(me(Xi))pr=Xi*(Ir/180);else if(E==="center")pr=0;else if(Xi==="radial"||Xi===!0){var $1=z<0?-H+Ir:-H;pr=$1}else if(Xi==="tangential"&&E!=="outside"&&E!=="outer"){var ii=Math.atan2(z,J);ii<0&&(ii=Ir*2+ii);var Y1=J>0;Y1&&(ii=Ir+ii),pr=ii-Ir}if(a=!!pr,M.x=ce,M.y=Pe,M.rotation=pr,M.setStyle({verticalAlign:"middle"}),He){M.setStyle({align:Ye});var Pu=M.states.select;Pu&&(Pu.x+=M.x,Pu.y+=M.y)}else{var Lu=new re(0,0,0,0);TS(Lu,M),r.push({label:M,labelLine:A,position:E,len:U,len2:j,minTurnAngle:B.get("minTurnAngle"),maxSurfaceAngle:B.get("maxSurfaceAngle"),surfaceNormal:new ne(z,J),linePoints:ht,textAlign:Ye,labelDistance:L,labelAlignTo:k,edgeDistance:N,bleedMargin:$,rect:Lu,unconstrainedWidth:Lu.width,labelStyleWidth:M.style.width})}w.setTextConfig({inside:He})}}),!a&&t.get("avoidLabelOverlap")&&BP(r,n,i,l,u,v,c,f);for(var p=0;p<r.length;p++){var g=r[p],m=g.label,y=g.labelLine,_=isNaN(m.x)||isNaN(m.y);if(m){m.setStyle({align:g.textAlign}),_&&(C(m.states,h),m.ignore=!0);var b=m.states.select;b&&(b.x+=m.x,b.y+=m.y)}if(y){var S=g.linePoints;_||!S?(C(y.states,h),y.ignore=!0):(DP(S,g.minTurnAngle),MP(S,g.surfaceNormal,g.maxSurfaceAngle),y.setShape({points:S}),m.__hostTarget.textGuideLineConfig={anchor:new ne(S[0][0],S[0][1])})}}}var HP=(function(t){G(e,t);function e(r,n,i){var a=t.call(this)||this;a.z2=2;var o=new je;return a.setTextContent(o),a.updateData(r,n,i,!0),a}return e.prototype.updateData=function(r,n,i,a){var o=this,s=r.hostModel,l=r.getItemModel(n),u=l.getModel("emphasis"),c=r.getItemLayout(n),f=F(Ma(l.getModel("itemStyle"),c,!0),c);if(isNaN(f.startAngle)){o.setShape(f);return}if(a){o.setShape(f);var v=s.getShallow("animationType");s.ecModel.ssr?(lr(o,{scaleX:0,scaleY:0},s,{dataIndex:n,isFrom:!0}),o.originX=f.cx,o.originY=f.cy):v==="scale"?(o.shape.r=c.r0,lr(o,{shape:{r:c.r}},s,n)):i!=null?(o.setShape({startAngle:i,endAngle:i}),lr(o,{shape:{startAngle:c.startAngle,endAngle:c.endAngle}},s,n)):(o.shape.endAngle=c.startAngle,ct(o,{shape:{endAngle:c.endAngle}},s,n))}else wv(o),ct(o,{shape:f},s,n);o.useStyle(r.getItemVisual(n,"style")),W_(o,l);var h=(c.startAngle+c.endAngle)/2,d=s.get("selectedOffset"),p=Math.cos(h)*d,g=Math.sin(h)*d,m=l.getShallow("cursor");m&&o.attr("cursor",m),this._updateLabel(s,r,n),o.ensureState("emphasis").shape=F({r:c.r+(u.get("scale")&&u.get("scaleSize")||0)},Ma(u.getModel("itemStyle"),c)),F(o.ensureState("select"),{x:p,y:g,shape:Ma(l.getModel(["select","itemStyle"]),c)}),F(o.ensureState("blur"),{shape:Ma(l.getModel(["blur","itemStyle"]),c)});var y=o.getTextGuideLine(),_=o.getTextContent();y&&F(y.ensureState("select"),{x:p,y:g}),F(_.ensureState("select"),{x:p,y:g}),Sv(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(r,n,i){var a=this,o=n.getItemModel(i),s=o.getModel("labelLine"),l=n.getItemVisual(i,"style"),u=l&&l.fill,c=l&&l.opacity;yu(a,_u(o),{labelFetcher:n.hostModel,labelDataIndex:i,inheritColor:u,defaultOpacity:c,defaultText:r.getFormattedLabel(i,"normal")||n.getName(i)});var f=a.getTextContent();a.setTextConfig({position:null,rotation:null}),f.attr({z2:10});var v=o.get(["label","position"]);if(v!=="outside"&&v!=="outer")a.removeTextGuideLine();else{var h=this.getTextGuideLine();h||(h=new Yi,this.setTextGuideLine(h)),EP(this,RP(o),{stroke:u,opacity:Zr(s.get(["lineStyle","opacity"]),c,1)})}},e})(Lr),UP=(function(t){G(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.ignoreLabelLineUpdate=!0,r}return e.prototype.render=function(r,n,i,a){var o=r.getData(),s=this._data,l=this.group,u;if(!s&&o.count()>0){for(var c=o.getItemLayout(0),f=1;isNaN(c&&c.startAngle)&&f<o.count();++f)c=o.getItemLayout(f);c&&(u=c.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),o.count()===0&&r.get("showEmptyCircle")){var v=yS(r),h=new Lr({shape:oe(v)});h.useStyle(r.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=h,l.add(h)}o.diff(s).add(function(d){var p=new HP(o,d,u);o.setItemGraphicEl(d,p),l.add(p)}).update(function(d,p){var g=s.getItemGraphicEl(p);g.updateData(o,d,u),g.off("click"),l.add(g),o.setItemGraphicEl(d,g)}).remove(function(d){var p=s.getItemGraphicEl(d);Ba(p,r,d)}).execute(),zP(r),r.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},e.prototype.dispose=function(){},e.prototype.containPoint=function(r,n){var i=n.getData(),a=i.getItemLayout(0);if(a){var o=r[0]-a.cx,s=r[1]-a.cy,l=Math.sqrt(o*o+s*s);return l<=a.r&&l>=a.r0}},e.type="pie",e})(mt);function GP(t,e,r){e=W(e)&&{coordDimensions:e}||F({encodeDefine:t.getEncode()},e);var n=t.getSource(),i=Ov(n,e).dimensions,a=new Iv(i,t);return a.initData(n,r),a}var VP=(function(){function t(e,r){this._getDataWithEncodedVisual=e,this._getRawData=r}return t.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},t.prototype.containName=function(e){var r=this._getRawData();return r.indexOfName(e)>=0},t.prototype.indexOfName=function(e){var r=this._getDataWithEncodedVisual();return r.indexOfName(e)},t.prototype.getItemVisual=function(e,r){var n=this._getDataWithEncodedVisual();return n.getItemVisual(e,r)},t})(),WP=xe(),CS=(function(t){G(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(r){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new VP(de(this.getData,this),de(this.getRawData,this)),this._defaultLabelLine(r)},e.prototype.mergeOption=function(){t.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return GP(this,{coordDimensions:["value"],encodeDefaulter:we(RE,this)})},e.prototype.getDataParams=function(r){var n=this.getData(),i=WP(n),a=i.seats;if(!a){var o=[];n.each(n.mapDimension("value"),function(l){o.push(l)}),a=i.seats=C_(o,n.hostModel.get("percentPrecision"))}var s=t.prototype.getDataParams.call(this,r);return s.percent=a[r]||0,s.$vars.push("percent"),s},e.prototype._defaultLabelLine=function(r){Yf(r,"labelLine",["show"]);var n=r.labelLine,i=r.emphasis.labelLine;n.show=n.show&&r.label.show,i.show=i.show&&r.emphasis.label.show},e.type="series.pie",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})(ft);nR({fullType:CS.type,getCoord2:function(t){return t.getShallow("center")}});function jP(t){return{seriesType:t,reset:function(e,r){var n=e.getData();n.filterSelf(function(i){var a=n.mapDimension("value"),o=n.get(a,i);return!(me(o)&&!isNaN(o)&&o<0)})}}}function $P(t){t.registerChartView(UP),t.registerSeriesModel(CS),xP("pie",t.registerAction),t.registerLayout(we(TP,"pie")),t.registerProcessor(CP("pie")),t.registerProcessor(jP("pie"))}var gi=(function(){function t(e,r){this.target=e,this.topTarget=r&&r.topTarget}return t})(),YP=(function(){function t(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return t.prototype._dragStart=function(e){for(var r=e.target;r&&!r.draggable;)r=r.parent||r.__hostTarget;r&&(this._draggingTarget=r,r.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new gi(r,e),"dragstart",e.event))},t.prototype._drag=function(e){var r=this._draggingTarget;if(r){var n=e.offsetX,i=e.offsetY,a=n-this._x,o=i-this._y;this._x=n,this._y=i,r.drift(a,o,e),this.handler.dispatchToElement(new gi(r,e),"drag",e.event);var s=this.handler.findHover(n,i,r).target,l=this._dropTarget;this._dropTarget=s,r!==s&&(l&&s!==l&&this.handler.dispatchToElement(new gi(l,e),"dragleave",e.event),s&&s!==l&&this.handler.dispatchToElement(new gi(s,e),"dragenter",e.event))}},t.prototype._dragEnd=function(e){var r=this._draggingTarget;r&&(r.dragging=!1),this.handler.dispatchToElement(new gi(r,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new gi(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},t})(),qP=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Dc=[],XP=te.browser.firefox&&+te.browser.version.split(".")[0]<39;function dh(t,e,r,n){return r=r||{},n?jg(t,e,r):XP&&e.layerX!=null&&e.layerX!==e.offsetX?(r.zrX=e.layerX,r.zrY=e.layerY):e.offsetX!=null?(r.zrX=e.offsetX,r.zrY=e.offsetY):jg(t,e,r),r}function jg(t,e,r){if(te.domSupported&&t.getBoundingClientRect){var n=e.clientX,i=e.clientY;if(Ub(t)){var a=t.getBoundingClientRect();r.zrX=n-a.left,r.zrY=i-a.top;return}else if(oh(Dc,t,n,i)){r.zrX=Dc[0],r.zrY=Dc[1];return}}r.zrX=r.zrY=0}function rd(t){return t||window.event}function wt(t,e,r){if(e=rd(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&&dh(t,o,e,r)}else{dh(t,e,e,r);var a=ZP(e);e.zrDelta=a?a/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&qP.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function ZP(t){var e=t.wheelDelta;if(e)return e;var r=t.deltaX,n=t.deltaY;if(r==null||n==null)return e;var i=Math.abs(n!==0?n:r),a=n>0?-1:n<0?1:r>0?-1:1;return 3*i*a}function KP(t,e,r,n){t.addEventListener(e,r,n)}function QP(t,e,r,n){t.removeEventListener(e,r,n)}var DS=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0},JP=(function(){function t(){this._track=[]}return t.prototype.recognize=function(e,r,n){return this._doTrack(e,r,n),this._recognize(e)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(e,r,n){var i=e.touches;if(i){for(var a={points:[],touches:[],target:r,event:e},o=0,s=i.length;o<s;o++){var l=i[o],u=dh(n,l,{});a.points.push([u.zrX,u.zrY]),a.touches.push(l)}this._track.push(a)}},t.prototype._recognize=function(e){for(var r in Mc)if(Mc.hasOwnProperty(r)){var n=Mc[r](this._track,e);if(n)return n}},t})();function $g(t){var e=t[1][0]-t[0][0],r=t[1][1]-t[0][1];return Math.sqrt(e*e+r*r)}function e2(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}var Mc={pinch:function(t,e){var r=t.length;if(r){var n=(t[r-1]||{}).points,i=(t[r-2]||{}).points||n;if(i&&i.length>1&&n&&n.length>1){var a=$g(n)/$g(i);!isFinite(a)&&(a=1),e.pinchScale=a;var o=e2(n);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:t[0].target,event:e}}}}},MS="silent";function t2(t,e,r){return{type:t,event:r,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:r.zrX,offsetY:r.zrY,gestureEvent:r.gestureEvent,pinchX:r.pinchX,pinchY:r.pinchY,pinchScale:r.pinchScale,wheelDelta:r.zrDelta,zrByTouch:r.zrByTouch,which:r.which,stop:r2}}function r2(){DS(this.event)}var n2=(function(t){G(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.handler=null,r}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e})(dr),oa=(function(){function t(e,r){this.x=e,this.y=r}return t})(),i2=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Ac=new re(0,0,0,0),AS=(function(t){G(e,t);function e(r,n,i,a,o){var s=t.call(this)||this;return s._hovered=new oa(0,0),s.storage=r,s.painter=n,s.painterRoot=a,s._pointerSize=o,i=i||new n2,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new YP(s),s}return e.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(C(i2,function(n){r.on&&r.on(n,this[n],this)},this),r.handler=this),this.proxy=r},e.prototype.mousemove=function(r){var n=r.zrX,i=r.zrY,a=ES(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 oa(n,i):this.findHover(n,i),u=l.target,c=this.proxy;c.setCursor&&c.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",r),this.dispatchToElement(l,"mousemove",r),u&&u!==s&&this.dispatchToElement(l,"mouseover",r)},e.prototype.mouseout=function(r){var n=r.zrEventControl;n!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",r),n!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:r})},e.prototype.resize=function(){this._hovered=new oa(0,0)},e.prototype.dispatch=function(r,n){var i=this[r];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(r){var n=this.proxy;n.setCursor&&n.setCursor(r)},e.prototype.dispatchToElement=function(r,n,i){r=r||{};var a=r.target;if(!(a&&a.silent)){for(var o="on"+n,s=t2(n,r,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(r,n,i){var a=this.storage.getDisplayList(),o=new oa(r,n);if(Yg(a,o,r,n,i),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,c=new re(r-u,n-u,l,l),f=a.length-1;f>=0;f--){var v=a[f];v!==i&&!v.ignore&&!v.ignoreCoarsePointer&&(!v.parent||!v.parent.ignoreCoarsePointer)&&(Ac.copy(v.getBoundingRect()),v.transform&&Ac.applyTransform(v.transform),Ac.intersect(c)&&s.push(v))}if(s.length)for(var h=4,d=Math.PI/12,p=Math.PI*2,g=0;g<u;g+=h)for(var m=0;m<p;m+=d){var y=r+g*Math.cos(m),_=n+g*Math.sin(m);if(Yg(s,o,y,_,i),o.target)return o}}return o},e.prototype.processGesture=function(r,n){this._gestureMgr||(this._gestureMgr=new JP);var i=this._gestureMgr;n==="start"&&i.clear();var a=i.recognize(r,this.findHover(r.zrX,r.zrY,null).target,this.proxy.dom);if(n==="end"&&i.clear(),a){var o=a.type;r.gestureEvent=o;var s=new oa;s.target=a.target,this.dispatchToElement(s,o,a.event)}},e})(dr);C(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){AS.prototype[t]=function(e){var r=e.zrX,n=e.zrY,i=ES(this,r,n),a,o;if((t!=="mouseup"||!i)&&(a=this.findHover(r,n),o=a.target),t==="mousedown")this._downEl=o,this._downPoint=[e.zrX,e.zrY],this._upEl=o;else if(t==="mouseup")this._upEl=o;else if(t==="click"){if(this._downEl!==this._upEl||!this._downPoint||sl(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,t,e)}});function a2(t,e,r){if(t[t.rectHover?"rectContain":"contain"](e,r)){for(var n=t,i=void 0,a=!1;n;){if(n.ignoreClip&&(a=!0),!a){var o=n.getClipPath();if(o&&!o.contain(e,r))return!1}n.silent&&(i=!0);var s=n.__hostTarget;n=s?n.ignoreHostSilent?null:s:n.parent}return i?MS:!0}return!1}function Yg(t,e,r,n,i){for(var a=t.length-1;a>=0;a--){var o=t[a],s=void 0;if(o!==i&&!o.ignore&&(s=a2(o,r,n))&&(!e.topTarget&&(e.topTarget=o),s!==MS)){e.target=o;break}}}function ES(t,e,r){var n=t.painter;return e<0||e>n.getWidth()||r<0||r>n.getHeight()}var RS=32,sa=7;function o2(t){for(var e=0;t>=RS;)e|=t&1,t>>=1;return t+e}function qg(t,e,r,n){var i=e+1;if(i===r)return 1;if(n(t[i++],t[e])<0){for(;i<r&&n(t[i],t[i-1])<0;)i++;s2(t,e,i)}else for(;i<r&&n(t[i],t[i-1])>=0;)i++;return i-e}function s2(t,e,r){for(r--;e<r;){var n=t[e];t[e++]=t[r],t[r--]=n}}function Xg(t,e,r,n,i){for(n===e&&n++;n<r;n++){for(var a=t[n],o=e,s=n,l;o<s;)l=o+s>>>1,i(a,t[l])<0?s=l:o=l+1;var u=n-o;switch(u){case 3:t[o+3]=t[o+2];case 2:t[o+2]=t[o+1];case 1:t[o+1]=t[o];break;default:for(;u>0;)t[o+u]=t[o+u-1],u--}t[o]=a}}function Ec(t,e,r,n,i,a){var o=0,s=0,l=1;if(a(t,e[r+i])>0){for(s=n-i;l<s&&a(t,e[r+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(t,e[r+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 c=o+(l-o>>>1);a(t,e[r+c])>0?o=c+1:l=c}return l}function Rc(t,e,r,n,i,a){var o=0,s=0,l=1;if(a(t,e[r+i])<0){for(s=i+1;l<s&&a(t,e[r+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(t,e[r+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 c=o+(l-o>>>1);a(t,e[r+c])<0?l=c:o=c+1}return l}function l2(t,e){var r=sa,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;c(h)}}function u(){for(;a>1;){var h=a-2;h>0&&i[h-1]<i[h+1]&&h--,c(h)}}function c(h){var d=n[h],p=i[h],g=n[h+1],m=i[h+1];i[h]=p+m,h===a-3&&(n[h+1]=n[h+2],i[h+1]=i[h+2]),a--;var y=Rc(t[g],t,d,p,0,e);d+=y,p-=y,p!==0&&(m=Ec(t[d+p-1],t,g,m,m-1,e),m!==0&&(p<=m?f(d,p,g,m):v(d,p,g,m)))}function f(h,d,p,g){var m=0;for(m=0;m<d;m++)o[m]=t[h+m];var y=0,_=p,b=h;if(t[b++]=t[_++],--g===0){for(m=0;m<d;m++)t[b+m]=o[y+m];return}if(d===1){for(m=0;m<g;m++)t[b+m]=t[_+m];t[b+g]=o[y];return}for(var S=r,x,w,T;;){x=0,w=0,T=!1;do if(e(t[_],o[y])<0){if(t[b++]=t[_++],w++,x=0,--g===0){T=!0;break}}else if(t[b++]=o[y++],x++,w=0,--d===1){T=!0;break}while((x|w)<S);if(T)break;do{if(x=Rc(t[_],o,y,d,0,e),x!==0){for(m=0;m<x;m++)t[b+m]=o[y+m];if(b+=x,y+=x,d-=x,d<=1){T=!0;break}}if(t[b++]=t[_++],--g===0){T=!0;break}if(w=Ec(o[y],t,_,g,0,e),w!==0){for(m=0;m<w;m++)t[b+m]=t[_+m];if(b+=w,_+=w,g-=w,g===0){T=!0;break}}if(t[b++]=o[y++],--d===1){T=!0;break}S--}while(x>=sa||w>=sa);if(T)break;S<0&&(S=0),S+=2}if(r=S,r<1&&(r=1),d===1){for(m=0;m<g;m++)t[b+m]=t[_+m];t[b+g]=o[y]}else{if(d===0)throw new Error;for(m=0;m<d;m++)t[b+m]=o[y+m]}}function v(h,d,p,g){var m=0;for(m=0;m<g;m++)o[m]=t[p+m];var y=h+d-1,_=g-1,b=p+g-1,S=0,x=0;if(t[b--]=t[y--],--d===0){for(S=b-(g-1),m=0;m<g;m++)t[S+m]=o[m];return}if(g===1){for(b-=d,y-=d,x=b+1,S=y+1,m=d-1;m>=0;m--)t[x+m]=t[S+m];t[b]=o[_];return}for(var w=r;;){var T=0,M=0,A=!1;do if(e(o[_],t[y])<0){if(t[b--]=t[y--],T++,M=0,--d===0){A=!0;break}}else if(t[b--]=o[_--],M++,T=0,--g===1){A=!0;break}while((T|M)<w);if(A)break;do{if(T=d-Rc(o[_],t,h,d,d-1,e),T!==0){for(b-=T,y-=T,d-=T,x=b+1,S=y+1,m=T-1;m>=0;m--)t[x+m]=t[S+m];if(d===0){A=!0;break}}if(t[b--]=o[_--],--g===1){A=!0;break}if(M=g-Ec(t[y],o,0,g,g-1,e),M!==0){for(b-=M,_-=M,g-=M,x=b+1,S=_+1,m=0;m<M;m++)t[x+m]=o[S+m];if(g<=1){A=!0;break}}if(t[b--]=t[y--],--d===0){A=!0;break}w--}while(T>=sa||M>=sa);if(A)break;w<0&&(w=0),w+=2}if(r=w,r<1&&(r=1),g===1){for(b-=d,y-=d,x=b+1,S=y+1,m=d-1;m>=0;m--)t[x+m]=t[S+m];t[b]=o[_]}else{if(g===0)throw new Error;for(S=b-(g-1),m=0;m<g;m++)t[S+m]=o[m]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function Xs(t,e,r,n){r||(r=0),n||(n=t.length);var i=n-r;if(!(i<2)){var a=0;if(i<RS){a=qg(t,r,n,e),Xg(t,r,n,r+a,e);return}var o=l2(t,e),s=o2(i);do{if(a=qg(t,r,n,e),a<s){var l=i;l>s&&(l=s),Xg(t,r,r+l,r+a,e),a=l}o.pushRun(r,a),o.mergeRuns(),i-=a,r+=a}while(i!==0);o.forceMergeRuns()}}var Zg=!1;function Lc(){Zg||(Zg=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Kg(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var u2=(function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Kg}return t.prototype.traverse=function(e,r){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(e,r)},t.prototype.getDisplayList=function(e,r){r=r||!1;var n=this._displayList;return(e||!n.length)&&this.updateDisplayList(r),n},t.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var r=this._roots,n=this._displayList,i=0,a=r.length;i<a;i++)this._updateAndAddDisplayable(r[i],null,e);n.length=this._displayListLen,Xs(n,Kg)},t.prototype._updateAndAddDisplayable=function(e,r,n){if(!(e.ignore&&!n)){e.beforeUpdate(),e.update(),e.afterUpdate();var i=e.getClipPath(),a=r&&r.length,o=0,s=e.__clipPaths;if(!e.ignoreClip&&(a||i)){if(s||(s=e.__clipPaths=[]),a)for(var l=0;l<r.length;l++)s[o++]=r[l];for(var u=i,c=e;u;)u.parent=c,u.updateTransform(),s[o++]=u,c=u,u=u.getClipPath()}if(s&&(s.length=o),e.childrenRef){for(var f=e.childrenRef(),v=0;v<f.length;v++){var h=f[v];e.__dirty&&(h.__dirty|=dt),this._updateAndAddDisplayable(h,s,n)}e.__dirty=0}else{var d=e;isNaN(d.z)&&(Lc(),d.z=0),isNaN(d.z2)&&(Lc(),d.z2=0),isNaN(d.zlevel)&&(Lc(),d.zlevel=0),this._displayList[this._displayListLen++]=d}var p=e.getDecalElement&&e.getDecalElement();p&&this._updateAndAddDisplayable(p,s,n);var g=e.getTextGuideLine();g&&this._updateAndAddDisplayable(g,s,n);var m=e.getTextContent();m&&this._updateAndAddDisplayable(m,s,n)}},t.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},t.prototype.delRoot=function(e){if(e instanceof Array){for(var r=0,n=e.length;r<n;r++)this.delRoot(e[r]);return}var i=le(this._roots,e);i>=0&&this._roots.splice(i,1)},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t})(),Pl;Pl=te.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};function Ei(){return new Date().getTime()}var c2=(function(t){G(e,t);function e(r){var n=t.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,r=r||{},n.stage=r.stage||{},n}return e.prototype.addClip=function(r){r.animation&&this.removeClip(r),this._head?(this._tail.next=r,r.prev=this._tail,r.next=null,this._tail=r):this._head=this._tail=r,r.animation=this},e.prototype.addAnimator=function(r){r.animation=this;var n=r.getClip();n&&this.addClip(n)},e.prototype.removeClip=function(r){if(r.animation){var n=r.prev,i=r.next;n?n.next=i:this._head=i,i?i.prev=n:this._tail=n,r.next=r.prev=r.animation=null}},e.prototype.removeAnimator=function(r){var n=r.getClip();n&&this.removeClip(n),r.animation=null},e.prototype.update=function(r){for(var n=Ei()-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,r||(this.trigger("frame",i),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var r=this;this._running=!0;function n(){r._running&&(Pl(n),!r._paused&&r.update())}Pl(n)},e.prototype.start=function(){this._running||(this._time=Ei(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=Ei(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=Ei()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var r=this._head;r;){var n=r.next;r.prev=r.next=r.animation=null,r=n}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(r,n){n=n||{},this.start();var i=new cv(r,n.loop);return this.addAnimator(i),i},e})(dr),f2=300,Pc=te.domSupported,Ic=(function(){var t=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=X(t,function(i){var a=i.replace("mouse","pointer");return r.hasOwnProperty(a)?a:i});return{mouse:t,touch:e,pointer:n}})(),Qg={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},Jg=!1;function ph(t){var e=t.pointerType;return e==="pen"||e==="touch"}function h2(t){t.touching=!0,t.touchTimer!=null&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout(function(){t.touching=!1,t.touchTimer=null},700)}function Oc(t){t&&(t.zrByTouch=!0)}function v2(t,e){return wt(t.dom,new d2(t,e),!0)}function LS(t,e){for(var r=e,n=!1;r&&r.nodeType!==9&&!(n=r.domBelongToZr||r!==e&&r===t.painterRoot);)r=r.parentNode;return n}var d2=(function(){function t(e,r){this.stopPropagation=Je,this.stopImmediatePropagation=Je,this.preventDefault=Je,this.type=r.type,this.target=this.currentTarget=e.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return t})(),Ft={mousedown:function(t){t=wt(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=wt(this.dom,t);var e=this.__mayPointerCapture;e&&(t.zrX!==e[0]||t.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=wt(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){t=wt(this.dom,t);var e=t.toElement||t.relatedTarget;LS(this,e)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){Jg=!0,t=wt(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){Jg||(t=wt(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){t=wt(this.dom,t),Oc(t),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),Ft.mousemove.call(this,t),Ft.mousedown.call(this,t)},touchmove:function(t){t=wt(this.dom,t),Oc(t),this.handler.processGesture(t,"change"),Ft.mousemove.call(this,t)},touchend:function(t){t=wt(this.dom,t),Oc(t),this.handler.processGesture(t,"end"),Ft.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<f2&&Ft.click.call(this,t)},pointerdown:function(t){Ft.mousedown.call(this,t)},pointermove:function(t){ph(t)||Ft.mousemove.call(this,t)},pointerup:function(t){Ft.mouseup.call(this,t)},pointerout:function(t){ph(t)||Ft.mouseout.call(this,t)}};C(["click","dblclick","contextmenu"],function(t){Ft[t]=function(e){e=wt(this.dom,e),this.trigger(t,e)}});var gh={pointermove:function(t){ph(t)||gh.mousemove.call(this,t)},pointerup:function(t){gh.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}};function p2(t,e){var r=e.domHandlers;te.pointerEventsSupported?C(Ic.pointer,function(n){Zs(e,n,function(i){r[n].call(t,i)})}):(te.touchEventsSupported&&C(Ic.touch,function(n){Zs(e,n,function(i){r[n].call(t,i),h2(e)})}),C(Ic.mouse,function(n){Zs(e,n,function(i){i=rd(i),e.touching||r[n].call(t,i)})}))}function g2(t,e){te.pointerEventsSupported?C(Qg.pointer,r):te.touchEventsSupported||C(Qg.mouse,r);function r(n){function i(a){a=rd(a),LS(t,a.target)||(a=v2(t,a),e.domHandlers[n].call(t,a))}Zs(e,n,i,{capture:!0})}}function Zs(t,e,r,n){t.mounted[e]=r,t.listenerOpts[e]=n,KP(t.domTarget,e,r,n)}function kc(t){var e=t.mounted;for(var r in e)e.hasOwnProperty(r)&&QP(t.domTarget,r,e[r],t.listenerOpts[r]);t.mounted={}}var em=(function(){function t(e,r){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=r}return t})(),m2=(function(t){G(e,t);function e(r,n){var i=t.call(this)||this;return i.__pointerCapturing=!1,i.dom=r,i.painterRoot=n,i._localHandlerScope=new em(r,Ft),Pc&&(i._globalHandlerScope=new em(document,gh)),p2(i,i._localHandlerScope),i}return e.prototype.dispose=function(){kc(this._localHandlerScope),Pc&&kc(this._globalHandlerScope)},e.prototype.setCursor=function(r){this.dom.style&&(this.dom.style.cursor=r||"default")},e.prototype.__togglePointerCapture=function(r){if(this.__mayPointerCapture=null,Pc&&+this.__pointerCapturing^+r){this.__pointerCapturing=r;var n=this._globalHandlerScope;r?g2(this,n):kc(n)}},e})(dr);var Ks={},zn={};function y2(t){delete zn[t]}function _2(t){if(!t)return!1;if(typeof t=="string")return qa(t,1)<Uf;if(t.colorStops){for(var e=t.colorStops,r=0,n=e.length,i=0;i<n;i++)r+=qa(e[i].color,1);return r/=n,r<Uf}return!1}var b2=(function(){function t(e,r,n){var i=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=r,this.id=e;var a=new u2,o=n.renderer||"canvas";Ks[o]||(o=Se(Ks)[0]),n.useDirtyRect=n.useDirtyRect==null?!1:n.useDirtyRect;var s=new Ks[o](r,a,n,e),l=n.ssr||s.ssrOnly;this.storage=a,this.painter=s;var u=!te.node&&!te.worker&&!l?new m2(s.getViewportRoot(),s.root):null,c=n.useCoarsePointer,f=c==null||c==="auto"?te.touchEventsSupported:!!c,v=44,h;f&&(h=K(n.pointerSize,v)),this.handler=new AS(a,s,u,s.root,h),this.animation=new c2({stage:{update:l?null:function(){return i._flush(!0)}}}),l||this.animation.start()}return t.prototype.add=function(e){this._disposed||!e||(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},t.prototype.remove=function(e){this._disposed||!e||(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},t.prototype.configLayer=function(e,r){this._disposed||(this.painter.configLayer&&this.painter.configLayer(e,r),this.refresh())},t.prototype.setBackgroundColor=function(e){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=_2(e))},t.prototype.getBackgroundColor=function(){return this._backgroundColor},t.prototype.setDarkMode=function(e){this._darkMode=e},t.prototype.isDarkMode=function(){return this._darkMode},t.prototype.refreshImmediately=function(e){this._disposed||(e||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},t.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},t.prototype.flush=function(){this._disposed||this._flush(!1)},t.prototype._flush=function(e){var r,n=Ei();this._needsRefresh&&(r=!0,this.refreshImmediately(e)),this._needsRefreshHover&&(r=!0,this.refreshHoverImmediately());var i=Ei();r?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:i-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},t.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},t.prototype.resize=function(e){this._disposed||(e=e||{},this.painter.resize(e.width,e.height),this.handler.resize())},t.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},t.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},t.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},t.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},t.prototype.findHover=function(e,r){if(!this._disposed)return this.handler.findHover(e,r)},t.prototype.on=function(e,r,n){return this._disposed||this.handler.on(e,r,n),this},t.prototype.off=function(e,r){this._disposed||this.handler.off(e,r)},t.prototype.trigger=function(e,r){this._disposed||this.handler.trigger(e,r)},t.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),r=0;r<e.length;r++)e[r]instanceof Ne&&e[r].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},t.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,y2(this.id))},t})();function mh(t,e){var r=new b2(rv(),t,e);return zn[r.id]=r,r}function S2(t){t.dispose()}function x2(){for(var t in zn)zn.hasOwnProperty(t)&&zn[t].dispose();zn={}}function w2(t){return zn[t]}function PS(t,e){Ks[t]=e}var yh;function T2(t){if(typeof yh=="function")return yh(t)}function IS(t){yh=t}var C2="6.0.0";const D2=Object.freeze(Object.defineProperty({__proto__:null,dispose:S2,disposeAll:x2,getElementSSRData:T2,getInstance:w2,init:mh,registerPainter:PS,registerSSRDataGetter:IS,version:C2},Symbol.toStringTag,{value:"Module"}));var OS="";typeof navigator<"u"&&(OS=navigator.platform||"");var mi="rgba(0, 0, 0, 0.2)",kS=Z.color.theme[0],M2=fl(kS,null,null,.9);const A2={darkMode:"auto",colorBy:"series",color:Z.color.theme,gradientColor:[M2,kS],aria:{decal:{decals:[{color:mi,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:mi,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:mi,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:mi,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:mi,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:mi,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:OS.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var E2=ae();function R2(t,e,r){var n=E2.get(e);if(!n)return r;var i=n(t);return i?r.concat(i):r}var fs,la,tm,rm="\0_ec_inner",L2=1,nd=(function(t){G(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(r,n,i,a,o,s){a=a||{},this.option=null,this._theme=new _e(a),this._locale=new _e(o),this._optionManager=s},e.prototype.setOption=function(r,n,i){var a=am(n);this._optionManager.setOption(r,i,a),this._resetOption(null,a)},e.prototype.resetOption=function(r,n){return this._resetOption(r,am(n))},e.prototype._resetOption=function(r,n){var i=!1,a=this._optionManager;if(!r||r==="recreate"){var o=a.mountOption(r==="recreate");!this.option||r==="recreate"?tm(this,o):(this.restoreData(),this._mergeOption(o,n)),i=!0}if((r==="timeline"||r==="media")&&this.restoreData(),!r||r==="recreate"||r==="timeline"){var s=a.getTimelineOption(this);s&&(i=!0,this._mergeOption(s,n))}if(!r||r==="recreate"||r==="media"){var l=a.getMediaOption(this);l.length&&C(l,function(u){i=!0,this._mergeOption(u,n)},this)}return i},e.prototype.mergeOption=function(r){this._mergeOption(r,null)},e.prototype._mergeOption=function(r,n){var i=this.option,a=this._componentsMap,o=this._componentsCount,s=[],l=ae(),u=n&&n.replaceMergeMainTypeMap;AE(this),C(r,function(f,v){f!=null&&(fe.hasClass(v)?v&&(s.push(v),l.set(v,!0)):i[v]=i[v]==null?oe(f):ue(i[v],f,!0))}),u&&u.each(function(f,v){fe.hasClass(v)&&!l.get(v)&&(s.push(v),l.set(v,!0))}),fe.topologicalTravel(s,fe.getAllClassMainTypes(),c,this);function c(f){var v=R2(this,f,tt(r[f])),h=a.get(f),d=h?u&&u.get(f)?"replaceMerge":"normalMerge":"replaceAll",p=eA(h,v,d);sA(p,f,fe),i[f]=null,a.set(f,null),o.set(f,0);var g=[],m=[],y=0,_;C(p,function(b,S){var x=b.existing,w=b.newOption;if(!w)x&&(x.mergeOption({},this),x.optionUpdated({},!1));else{var T=f==="series",M=fe.getClass(f,b.keyInfo.subType,!T);if(!M)return;if(f==="tooltip"){if(_)return;_=!0}if(x&&x.constructor===M)x.name=b.keyInfo.name,x.mergeOption(w,this),x.optionUpdated(w,!1);else{var A=F({componentIndex:S},b.keyInfo);x=new M(w,this,this,A),F(x,A),b.brandNew&&(x.__requireNewView=!0),x.init(w,this,this),x.optionUpdated(null,!0)}}x?(g.push(x.option),m.push(x),y++):(g.push(void 0),m.push(void 0))},this),i[f]=g,a.set(f,m),o.set(f,y),f==="series"&&fs(this)}this._seriesIndices||fs(this)},e.prototype.getOption=function(){var r=oe(this.option);return C(r,function(n,i){if(fe.hasClass(i)){for(var a=tt(n),o=a.length,s=!1,l=o-1;l>=0;l--)a[l]&&!Qa(a[l])?s=!0:(a[l]=null,!s&&o--);a.length=o,r[i]=a}}),delete r[rm],r},e.prototype.setTheme=function(r){this._theme=new _e(r),this._resetOption("recreate",null)},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(r){this._payload=r},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(r,n){var i=this._componentsMap.get(r);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(r){var n=r.mainType;if(!n)return[];var i=r.index,a=r.id,o=r.name,s=this._componentsMap.get(n);if(!s||!s.length)return[];var l;return i!=null?(l=[],C(tt(i),function(u){s[u]&&l.push(s[u])})):a!=null?l=nm("id",a,s):o!=null?l=nm("name",o,s):l=Re(s,function(u){return!!u}),im(l,r)},e.prototype.findComponents=function(r){var n=r.query,i=r.mainType,a=s(n),o=a?this.queryComponents(a):Re(this._componentsMap.get(i),function(u){return!!u});return l(im(o,r));function s(u){var c=i+"Index",f=i+"Id",v=i+"Name";return u&&(u[c]!=null||u[f]!=null||u[v]!=null)?{mainType:i,index:u[c],id:u[f],name:u[v]}:null}function l(u){return r.filter?Re(u,r.filter):u}},e.prototype.eachComponent=function(r,n,i){var a=this._componentsMap;if(ie(r)){var o=n,s=r;a.each(function(f,v){for(var h=0;f&&h<f.length;h++){var d=f[h];d&&s.call(o,v,d,d.componentIndex)}})}else for(var l=Y(r)?a.get(r):q(r)?this.findComponents(r):null,u=0;l&&u<l.length;u++){var c=l[u];c&&n.call(i,c,c.componentIndex)}},e.prototype.getSeriesByName=function(r){var n=sr(r,null);return Re(this._componentsMap.get("series"),function(i){return!!i&&n!=null&&i.name===n})},e.prototype.getSeriesByIndex=function(r){return this._componentsMap.get("series")[r]},e.prototype.getSeriesByType=function(r){return Re(this._componentsMap.get("series"),function(n){return!!n&&n.subType===r})},e.prototype.getSeries=function(){return Re(this._componentsMap.get("series"),function(r){return!!r})},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(r,n){la(this),C(this._seriesIndices,function(i){var a=this._componentsMap.get("series")[i];r.call(n,a,i)},this)},e.prototype.eachRawSeries=function(r,n){C(this._componentsMap.get("series"),function(i){i&&r.call(n,i,i.componentIndex)})},e.prototype.eachSeriesByType=function(r,n,i){la(this),C(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];o.subType===r&&n.call(i,o,a)},this)},e.prototype.eachRawSeriesByType=function(r,n,i){return C(this.getSeriesByType(r),n,i)},e.prototype.isSeriesFiltered=function(r){return la(this),this._seriesIndicesMap.get(r.componentIndex)==null},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(r,n){la(this);var i=[];C(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];r.call(n,o,a)&&i.push(a)},this),this._seriesIndices=i,this._seriesIndicesMap=ae(i)},e.prototype.restoreData=function(r){fs(this);var n=this._componentsMap,i=[];n.each(function(a,o){fe.hasClass(o)&&i.push(o)}),fe.topologicalTravel(i,fe.getAllClassMainTypes(),function(a){C(n.get(a),function(o){o&&(a!=="series"||!P2(o,r))&&o.restoreData()})})},e.internalField=(function(){fs=function(r){var n=r._seriesIndices=[];C(r._componentsMap.get("series"),function(i){i&&n.push(i.componentIndex)}),r._seriesIndicesMap=ae(n)},la=function(r){},tm=function(r,n){r.option={},r.option[rm]=L2,r._componentsMap=ae({series:[]}),r._componentsCount=ae();var i=n.aria;q(i)&&i.enabled==null&&(i.enabled=!0),I2(n,r._theme.option),ue(n,A2,!1),r._mergeOption(n,null)}})(),e})(_e);function P2(t,e){if(e){var r=e.seriesIndex,n=e.seriesId,i=e.seriesName;return r!=null&&t.componentIndex!==r||n!=null&&t.id!==n||i!=null&&t.name!==i}}function I2(t,e){var r=t.color&&!t.colorLayer;C(e,function(n,i){i==="colorLayer"&&r||i==="color"&&t.color||fe.hasClass(i)||(typeof n=="object"?t[i]=t[i]?ue(t[i],n,!1):oe(n):t[i]==null&&(t[i]=n))})}function nm(t,e,r){if(W(e)){var n=ae();return C(e,function(a){if(a!=null){var o=sr(a,null);o!=null&&n.set(a,!0)}}),Re(r,function(a){return a&&n.get(a[t])})}else{var i=sr(e,null);return Re(r,function(a){return a&&i!=null&&a[t]===i})}}function im(t,e){return e.hasOwnProperty("subType")?Re(t,function(r){return r&&r.subType===e.subType}):t}function am(t){var e=ae();return t&&C(tt(t.replaceMerge),function(r){e.set(r,!0)}),{replaceMergeMainTypeMap:e}}It(nd,Kv);var O2=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],NS=(function(){function t(e){C(O2,function(r){this[r]=de(e[r],e)},this)}return t})(),k2=/^(min|max)?(.+)$/,N2=(function(){function t(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return t.prototype.setOption=function(e,r,n){e&&(C(tt(e.series),function(o){o&&o.data&&nt(o.data)&&nl(o.data)}),C(tt(e.dataset),function(o){o&&o.source&&nt(o.source)&&nl(o.source)})),e=oe(e);var i=this._optionBackup,a=B2(e,r,!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},t.prototype.mountOption=function(e){var r=this._optionBackup;return this._timelineOptions=r.timelineOptions,this._mediaList=r.mediaList,this._mediaDefault=r.mediaDefault,this._currentMediaIndices=[],oe(e?r.baseOption:this._newBaseOption)},t.prototype.getTimelineOption=function(e){var r,n=this._timelineOptions;if(n.length){var i=e.getComponent("timeline");i&&(r=oe(n[i.getCurrentIndex()]))}return r},t.prototype.getMediaOption=function(e){var r=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++)F2(i[l].query,r,n)&&o.push(l);return!o.length&&a&&(o=[-1]),o.length&&!H2(o,this._currentMediaIndices)&&(s=X(o,function(c){return oe(c===-1?a.option:i[c].option)})),this._currentMediaIndices=o,s},t})();function B2(t,e,r){var n=[],i,a,o=t.baseOption,s=t.timeline,l=t.options,u=t.media,c=!!t.media,f=!!(l||s||o&&o.timeline);o?(a=o,a.timeline||(a.timeline=s)):((f||c)&&(t.options=t.media=null),a=t),c&&W(u)&&C(u,function(h){h&&h.option&&(h.query?n.push(h):i||(i=h))}),v(a),C(l,function(h){return v(h)}),C(n,function(h){return v(h.option)});function v(h){C(e,function(d){d(h,r)})}return{baseOption:a,timelineOptions:l||[],mediaDefault:i,mediaList:n}}function F2(t,e,r){var n={width:e,height:r,aspectratio:e/r},i=!0;return C(t,function(a,o){var s=o.match(k2);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();z2(n[u],a,l)||(i=!1)}}),i}function z2(t,e,r){return r==="min"?t>=e:r==="max"?t<=e:t===e}function H2(t,e){return t.join(",")===e.join(",")}var Nt=C,ao=q,om=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Nc(t){var e=t&&t.itemStyle;if(e)for(var r=0,n=om.length;r<n;r++){var i=om[r],a=e.normal,o=e.emphasis;a&&a[i]&&(t[i]=t[i]||{},t[i].normal?ue(t[i].normal,a[i]):t[i].normal=a[i],a[i]=null),o&&o[i]&&(t[i]=t[i]||{},t[i].emphasis?ue(t[i].emphasis,o[i]):t[i].emphasis=o[i],o[i]=null)}}function Ge(t,e,r){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var n=t[e].normal,i=t[e].emphasis;n&&(r?(t[e].normal=t[e].emphasis=null,pe(t[e],n)):t[e]=n),i&&(t.emphasis=t.emphasis||{},t.emphasis[e]=i,i.focus&&(t.emphasis.focus=i.focus),i.blurScope&&(t.emphasis.blurScope=i.blurScope))}}function Aa(t){Ge(t,"itemStyle"),Ge(t,"lineStyle"),Ge(t,"areaStyle"),Ge(t,"label"),Ge(t,"labelLine"),Ge(t,"upperLabel"),Ge(t,"edgeLabel")}function Ee(t,e){var r=ao(t)&&t[e],n=ao(r)&&r.textStyle;if(n)for(var i=0,a=Rp.length;i<a;i++){var o=Rp[i];n.hasOwnProperty(o)&&(r[o]=n[o])}}function Tt(t){t&&(Aa(t),Ee(t,"label"),t.emphasis&&Ee(t.emphasis,"label"))}function U2(t){if(ao(t)){Nc(t),Aa(t),Ee(t,"label"),Ee(t,"upperLabel"),Ee(t,"edgeLabel"),t.emphasis&&(Ee(t.emphasis,"label"),Ee(t.emphasis,"upperLabel"),Ee(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(Nc(e),Tt(e));var r=t.markLine;r&&(Nc(r),Tt(r));var n=t.markArea;n&&Tt(n);var i=t.data;if(t.type==="graph"){i=i||t.nodes;var a=t.links||t.edges;if(a&&!nt(a))for(var o=0;o<a.length;o++)Tt(a[o]);C(t.categories,function(u){Aa(u)})}if(i&&!nt(i))for(var o=0;o<i.length;o++)Tt(i[o]);if(e=t.markPoint,e&&e.data)for(var s=e.data,o=0;o<s.length;o++)Tt(s[o]);if(r=t.markLine,r&&r.data)for(var l=r.data,o=0;o<l.length;o++)W(l[o])?(Tt(l[o][0]),Tt(l[o][1])):Tt(l[o]);t.type==="gauge"?(Ee(t,"axisLabel"),Ee(t,"title"),Ee(t,"detail")):t.type==="treemap"?(Ge(t.breadcrumb,"itemStyle"),C(t.levels,function(u){Aa(u)})):t.type==="tree"&&Aa(t.leaves)}}function mr(t){return W(t)?t:t?[t]:[]}function sm(t){return(W(t)?t[0]:t)||{}}function G2(t,e){Nt(mr(t.series),function(n){ao(n)&&U2(n)});var r=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&r.push("valueAxis","categoryAxis","logAxis","timeAxis"),Nt(r,function(n){Nt(mr(t[n]),function(i){i&&(Ee(i,"axisLabel"),Ee(i.axisPointer,"label"))})}),Nt(mr(t.parallel),function(n){var i=n&&n.parallelAxisDefault;Ee(i,"axisLabel"),Ee(i&&i.axisPointer,"label")}),Nt(mr(t.calendar),function(n){Ge(n,"itemStyle"),Ee(n,"dayLabel"),Ee(n,"monthLabel"),Ee(n,"yearLabel")}),Nt(mr(t.radar),function(n){Ee(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)}),Nt(mr(t.geo),function(n){ao(n)&&(Tt(n),Nt(mr(n.regions),function(i){Tt(i)}))}),Nt(mr(t.timeline),function(n){Tt(n),Ge(n,"label"),Ge(n,"itemStyle"),Ge(n,"controlStyle",!0);var i=n.data;W(i)&&C(i,function(a){q(a)&&(Ge(a,"label"),Ge(a,"itemStyle"))})}),Nt(mr(t.toolbox),function(n){Ge(n,"iconStyle"),Nt(n.feature,function(i){Ge(i,"iconStyle")})}),Ee(sm(t.axisPointer),"label"),Ee(sm(t.tooltip).axisPointer,"label")}function V2(t,e){for(var r=e.split(","),n=t,i=0;i<r.length&&(n=n&&n[r[i]],n!=null);i++);return n}function W2(t,e,r,n){for(var i=e.split(","),a=t,o,s=0;s<i.length-1;s++)o=i[s],a[o]==null&&(a[o]={}),a=a[o];a[i[s]]==null&&(a[i[s]]=r)}function lm(t){t&&C(j2,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}var j2=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],$2=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Bc=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function ua(t){var e=t&&t.itemStyle;if(e)for(var r=0;r<Bc.length;r++){var n=Bc[r][1],i=Bc[r][0];e[n]!=null&&(e[i]=e[n])}}function um(t){t&&t.alignTo==="edge"&&t.margin!=null&&t.edgeDistance==null&&(t.edgeDistance=t.margin)}function cm(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function Y2(t){t&&t.focusNodeAdjacency!=null&&(t.emphasis=t.emphasis||{},t.emphasis.focus==null&&(t.emphasis.focus="adjacency"))}function BS(t,e){if(t)for(var r=0;r<t.length;r++)e(t[r]),t[r]&&BS(t[r].children,e)}function FS(t,e){G2(t,e),t.series=tt(t.series),C(t.series,function(r){if(q(r)){var n=r.type;if(n==="line")r.clipOverflow!=null&&(r.clip=r.clipOverflow);else if(n==="pie"||n==="gauge"){r.clockWise!=null&&(r.clockwise=r.clockWise),um(r.label);var i=r.data;if(i&&!nt(i))for(var a=0;a<i.length;a++)um(i[a]);r.hoverOffset!=null&&(r.emphasis=r.emphasis||{},(r.emphasis.scaleSize=null)&&(r.emphasis.scaleSize=r.hoverOffset))}else if(n==="gauge"){var o=V2(r,"pointer.color");o!=null&&W2(r,"itemStyle.color",o)}else if(n==="bar"){ua(r),ua(r.backgroundStyle),ua(r.emphasis);var i=r.data;if(i&&!nt(i))for(var a=0;a<i.length;a++)typeof i[a]=="object"&&(ua(i[a]),ua(i[a]&&i[a].emphasis))}else if(n==="sunburst"){var s=r.highlightPolicy;s&&(r.emphasis=r.emphasis||{},r.emphasis.focus||(r.emphasis.focus=s)),cm(r),BS(r.data,cm)}else n==="graph"||n==="sankey"?Y2(r):n==="map"&&(r.mapType&&!r.map&&(r.map=r.mapType),r.mapLocation&&pe(r,r.mapLocation));r.hoverAnimation!=null&&(r.emphasis=r.emphasis||{},r.emphasis&&r.emphasis.scale==null&&(r.emphasis.scale=r.hoverAnimation)),lm(r)}}),t.dataRange&&(t.visualMap=t.dataRange),C($2,function(r){var n=t[r];n&&(W(n)||(n=[n]),C(n,function(i){lm(i)}))})}function q2(t){var e=ae();t.eachSeries(function(r){var n=r.get("stack");if(n){var i=e.get(n)||e.set(n,[]),a=r.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:r};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;i.push(o)}}),e.each(function(r){if(r.length!==0){var n=r[0].seriesModel,i=n.get("stackOrder")||"seriesAsc";i==="seriesDesc"&&r.reverse(),C(r,function(a,o){a.data.setCalculationInfo("stackedOnSeries",o>0?r[o-1].seriesModel:null)}),X2(r)}})}function X2(t){C(t,function(e,r){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,c,f){var v=o.get(e.stackedDimension,f);if(isNaN(v))return i;var h,d;s?d=o.getRawIndex(f):h=o.get(e.stackedByDimension,f);for(var p=NaN,g=r-1;g>=0;g--){var m=t[g];if(s||(d=m.data.rawIndexOf(m.stackedByDimension,h)),d>=0){var y=m.data.getByRawIndex(m.stackResultDimension,d);if(l==="all"||l==="positive"&&y>0||l==="negative"&&y<0||l==="samesign"&&v>=0&&y>0||l==="samesign"&&v<=0&&y<0){v=WM(v,y),p=y;break}}}return n[0]=v,n[1]=p,n})})}var yt=(function(){function t(){this.group=new Ne,this.uid=Tu("viewComponent")}return t.prototype.init=function(e,r){},t.prototype.render=function(e,r,n,i){},t.prototype.dispose=function(e,r){},t.prototype.updateView=function(e,r,n,i){},t.prototype.updateLayout=function(e,r,n,i){},t.prototype.updateVisual=function(e,r,n,i){},t.prototype.toggleBlurSeries=function(e,r,n){},t.prototype.eachRendered=function(e){var r=this.group;r&&r.traverse(e)},t})();av(yt);eu(yt);var fm=xe(),hm={itemStyle:ja(mb,!0),lineStyle:ja(gb,!0)},Z2={lineStyle:"stroke",itemStyle:"fill"};function zS(t,e){var r=t.visualStyleMapper||hm[e];return r||(console.warn("Unknown style type '"+e+"'."),hm.itemStyle)}function HS(t,e){var r=t.visualDrawType||Z2[e];return r||(console.warn("Unknown style type '"+e+"'."),"fill")}var K2={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var r=t.getData(),n=t.visualStyleAccessPath||"itemStyle",i=t.getModel(n),a=zS(t,n),o=a(i),s=i.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var l=HS(t,n),u=o[l],c=ie(u)?u:null,f=o.fill==="auto"||o.stroke==="auto";if(!o[l]||c||f){var v=t.getColorFromPalette(t.name,null,e.getSeriesCount());o[l]||(o[l]=v,r.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||ie(o.fill)?v:o.fill,o.stroke=o.stroke==="auto"||ie(o.stroke)?v:o.stroke}if(r.setVisual("style",o),r.setVisual("drawType",l),!e.isSeriesFiltered(t)&&c)return r.setVisual("colorFromPalette",!1),{dataEach:function(h,d){var p=t.getDataParams(d),g=F({},o);g[l]=c(p),h.setItemVisual(d,"style",g)}}}},ca=new _e,Q2={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!(t.ignoreStyleOnData||e.isSeriesFiltered(t))){var r=t.getData(),n=t.visualStyleAccessPath||"itemStyle",i=zS(t,n),a=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){ca.option=l[n];var u=i(ca),c=o.ensureUniqueItemVisual(s,"style");F(c,u),ca.option.decal&&(o.setItemVisual(s,"decal",ca.option.decal),ca.option.decal.dirty=!0),a in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},J2={performRawSeries:!0,overallReset:function(t){var e=ae();t.eachSeries(function(r){var n=r.getColorBy();if(!r.isColorBySeries()){var i=r.type+"-"+n,a=e.get(i);a||(a={},e.set(i,a)),fm(r).scope=a}}),t.eachSeries(function(r){if(!(r.isColorBySeries()||t.isSeriesFiltered(r))){var n=r.getRawData(),i={},a=r.getData(),o=fm(r).scope,s=r.visualStyleAccessPath||"itemStyle",l=HS(r,s);a.each(function(u){var c=a.getRawIndex(u);i[c]=u}),n.each(function(u){var c=i[u],f=a.getItemVisual(c,"colorFromPalette");if(f){var v=a.ensureUniqueItemVisual(c,"style"),h=n.getName(u)||u+"",d=n.count();v[l]=r.getColorFromPalette(h,o,d)}})}})}},hs=Math.PI;function eI(t,e){e=e||{},pe(e,{text:"loading",textColor:Z.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:Z.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var r=new Ne,n=new De({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});r.add(n);var i=new je({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 De({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});r.add(a);var o;return e.showSpinner&&(o=new Ao({shape:{startAngle:-hs/2,endAngle:-hs/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:hs*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:hs*3/2}).delay(300).start("circularInOut"),r.add(o)),r.resize=function(){var s=i.getBoundingRect().width,l=e.showSpinner?e.spinnerRadius:0,u=(t.getWidth()-l*2-(e.showSpinner&&s?10:0)-s)/2-(e.showSpinner&&s?0:5+s/2)+(e.showSpinner?0:s/2)+(s?0:l),c=t.getHeight()/2;e.showSpinner&&o.setShape({cx:u,cy:c}),a.setShape({x:u-l,y:c-l,width:l*2,height:l*2}),n.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},r.resize(),r}var US=(function(){function t(e,r,n,i){this._stageTaskMap=ae(),this.ecInstance=e,this.api=r,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return t.prototype.restoreData=function(e,r){e.restoreData(r),this._stageTaskMap.each(function(n){var i=n.overallTask;i&&i.dirty()})},t.prototype.getPerformArgs=function(e,r){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),i=n.context,a=!r&&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}}},t.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},t.prototype.updateStreamModes=function(e,r){var n=this._pipelineMap.get(e.uid),i=e.getData(),a=i.count(),o=n.progressiveEnabled&&r.incrementalPrepareRender&&a>=n.threshold,s=e.get("large")&&a>=e.get("largeThreshold"),l=e.get("progressiveChunkMode")==="mod"?a:null;e.pipelineContext=n.context={progressiveRender:o,modDataCount:l,large:s}},t.prototype.restorePipelines=function(e){var r=this,n=r._pipelineMap=ae();e.eachSeries(function(i){var a=i.getProgressive(),o=i.uid;n.set(o,{id:o,head:null,tail:null,threshold:i.getProgressiveThreshold(),progressiveEnabled:a&&!(i.preventIncremental&&i.preventIncremental()),blockIndex:-1,step:Math.round(a||700),count:0}),r._pipe(i,i.dataTask)})},t.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,r=this.api.getModel(),n=this.api;C(this._allHandlers,function(i){var a=e.get(i.uid)||e.set(i.uid,{}),o="";fr(!(i.reset&&i.overallReset),o),i.reset&&this._createSeriesStageTask(i,a,r,n),i.overallReset&&this._createOverallStageTask(i,a,r,n)},this)},t.prototype.prepareView=function(e,r,n,i){var a=e.renderTask,o=a.context;o.model=r,o.ecModel=n,o.api=i,a.__block=!e.incrementalPrepareRender,this._pipe(r,a)},t.prototype.performDataProcessorTasks=function(e,r){this._performStageTasks(this._dataProcessorHandlers,e,r,{block:!0})},t.prototype.performVisualTasks=function(e,r,n){this._performStageTasks(this._visualHandlers,e,r,n)},t.prototype._performStageTasks=function(e,r,n,i){i=i||{};var a=!1,o=this;C(e,function(l,u){if(!(i.visualType&&i.visualType!==l.visualType)){var c=o._stageTaskMap.get(l.uid),f=c.seriesTaskMap,v=c.overallTask;if(v){var h,d=v.agentStubMap;d.each(function(g){s(i,g)&&(g.dirty(),h=!0)}),h&&v.dirty(),o.updatePayload(v,n);var p=o.getPerformArgs(v,i.block);d.each(function(g){g.perform(p)}),v.perform(p)&&(a=!0)}else f&&f.each(function(g,m){s(i,g)&&g.dirty();var y=o.getPerformArgs(g,i.block);y.skip=!l.performRawSeries&&r.isSeriesFiltered(g.context.model),o.updatePayload(g,n),g.perform(y)&&(a=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=a||this.unfinished},t.prototype.performSeriesTasks=function(e){var r;e.eachSeries(function(n){r=n.dataTask.perform()||r}),this.unfinished=r||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each(function(e){var r=e.tail;do{if(r.__block){e.blockIndex=r.__idxInPipeline;break}r=r.getUpstream()}while(r)})},t.prototype.updatePayload=function(e,r){r!=="remain"&&(e.context.payload=r)},t.prototype._createSeriesStageTask=function(e,r,n,i){var a=this,o=r.seriesTaskMap,s=r.seriesTaskMap=ae(),l=e.seriesType,u=e.getTargetSeries;e.createOnAllSeries?n.eachRawSeries(c):l?n.eachRawSeriesByType(l,c):u&&u(n,i).each(c);function c(f){var v=f.uid,h=s.set(v,o&&o.get(v)||Ua({plan:aI,reset:oI,count:lI}));h.context={model:f,ecModel:n,api:i,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:a},a._pipe(f,h)}},t.prototype._createOverallStageTask=function(e,r,n,i){var a=this,o=r.overallTask=r.overallTask||Ua({reset:tI});o.context={ecModel:n,api:i,overallReset:e.overallReset,scheduler:a};var s=o.agentStubMap,l=o.agentStubMap=ae(),u=e.seriesType,c=e.getTargetSeries,f=!0,v=!1,h="";fr(!e.createOnAllSeries,h),u?n.eachRawSeriesByType(u,d):c?c(n,i).each(d):(f=!1,C(n.getSeries(),d));function d(p){var g=p.uid,m=l.set(g,s&&s.get(g)||(v=!0,Ua({reset:rI,onDirty:iI})));m.context={model:p,overallProgress:f},m.agent=o,m.__block=f,a._pipe(p,m)}v&&o.dirty()},t.prototype._pipe=function(e,r){var n=e.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=r),i.tail&&i.tail.pipe(r),i.tail=r,r.__idxInPipeline=i.count++,r.__pipeline=i},t.wrapStageHandler=function(e,r){return ie(e)&&(e={overallReset:e,seriesType:uI(e)}),e.uid=Tu("stageHandler"),r&&(e.visualType=r),e},t})();function tI(t){t.overallReset(t.ecModel,t.api,t.payload)}function rI(t){return t.overallProgress&&nI}function nI(){this.agent.dirty(),this.getDownstream().dirty()}function iI(){this.agent&&this.agent.dirty()}function aI(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function oI(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=tt(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?X(e,function(r,n){return GS(n)}):sI}var sI=GS(0);function GS(t){return function(e,r){var n=r.data,i=r.resetDefines[t];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 lI(t){return t.data.count()}function uI(t){Il=null;try{t(oo,VS)}catch{}return Il}var oo={},VS={},Il;WS(oo,nd);WS(VS,NS);oo.eachSeriesByType=oo.eachRawSeriesByType=function(t){Il=t};oo.eachComponent=function(t){t.mainType==="series"&&t.subType&&(Il=t.subType)};function WS(t,e){for(var r in e.prototype)t[r]=Je}var V=Z.darkColor,cI=V.background,fa=function(){return{axisLine:{lineStyle:{color:V.axisLine}},splitLine:{lineStyle:{color:V.axisSplitLine}},splitArea:{areaStyle:{color:[V.backgroundTint,V.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:V.axisMinorSplitLine}},axisLabel:{color:V.axisLabel},axisName:{}}},vm={label:{color:V.secondary},itemStyle:{borderColor:V.borderTint},dividerLineStyle:{color:V.border}},jS={darkMode:!0,color:V.theme,backgroundColor:cI,axisPointer:{lineStyle:{color:V.border},crossStyle:{color:V.borderShade},label:{color:V.tertiary}},legend:{textStyle:{color:V.secondary},pageTextStyle:{color:V.tertiary}},textStyle:{color:V.secondary},title:{textStyle:{color:V.primary},subtextStyle:{color:V.quaternary}},toolbox:{iconStyle:{borderColor:V.accent50}},tooltip:{backgroundColor:V.neutral20,defaultBorderColor:V.border,textStyle:{color:V.tertiary}},dataZoom:{borderColor:V.accent10,textStyle:{color:V.tertiary},brushStyle:{color:V.backgroundTint},handleStyle:{color:V.neutral00,borderColor:V.accent20},moveHandleStyle:{color:V.accent40},emphasis:{handleStyle:{borderColor:V.accent50}},dataBackground:{lineStyle:{color:V.accent30},areaStyle:{color:V.accent20}},selectedDataBackground:{lineStyle:{color:V.accent50},areaStyle:{color:V.accent30}}},visualMap:{textStyle:{color:V.secondary},handleStyle:{borderColor:V.neutral30}},timeline:{lineStyle:{color:V.accent10},label:{color:V.tertiary},controlStyle:{color:V.accent30,borderColor:V.accent30}},calendar:{itemStyle:{color:V.neutral00,borderColor:V.neutral20},dayLabel:{color:V.tertiary},monthLabel:{color:V.secondary},yearLabel:{color:V.secondary}},matrix:{x:vm,y:vm,backgroundColor:{borderColor:V.axisLine},body:{itemStyle:{borderColor:V.borderTint}}},timeAxis:fa(),logAxis:fa(),valueAxis:fa(),categoryAxis:fa(),line:{symbol:"circle"},graph:{color:V.theme},gauge:{title:{color:V.secondary},axisLine:{lineStyle:{color:[[1,V.neutral05]]}},axisLabel:{color:V.axisLabel},detail:{color:V.primary}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}},funnel:{itemStyle:{borderColor:V.background}},radar:(function(){var t=fa();return t.axisName={color:V.axisLabel},t.axisLine.lineStyle.color=V.neutral20,t})(),treemap:{breadcrumb:{itemStyle:{color:V.neutral20,textStyle:{color:V.secondary}},emphasis:{itemStyle:{color:V.neutral30}}}},sunburst:{itemStyle:{borderColor:V.background}},map:{itemStyle:{borderColor:V.border,areaColor:V.neutral10},label:{color:V.tertiary},emphasis:{label:{color:V.primary},itemStyle:{areaColor:V.highlight}},select:{label:{color:V.primary},itemStyle:{areaColor:V.highlight}}},geo:{itemStyle:{borderColor:V.border,areaColor:V.neutral10},emphasis:{label:{color:V.primary},itemStyle:{areaColor:V.highlight}},select:{label:{color:V.primary},itemStyle:{color:V.highlight}}}};jS.categoryAxis.splitLine.show=!1;var fI=(function(){function t(){}return t.prototype.normalizeQuery=function(e){var r={},n={},i={};if(Y(e)){var a=nr(e);r.mainType=a.main||null,r.subType=a.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};C(e,function(l,u){for(var c=!1,f=0;f<o.length;f++){var v=o[f],h=u.lastIndexOf(v);if(h>0&&h===u.length-v.length){var d=u.slice(0,h);d!=="data"&&(r.mainType=d,r[v.toLowerCase()]=l,c=!0)}}s.hasOwnProperty(u)&&(n[u]=l,c=!0),c||(i[u]=l)})}return{cptQuery:r,dataQuery:n,otherQuery:i}},t.prototype.filter=function(e,r){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=r.cptQuery,u=r.dataQuery;return c(l,o,"mainType")&&c(l,o,"subType")&&c(l,o,"index","componentIndex")&&c(l,o,"name")&&c(l,o,"id")&&c(u,a,"name")&&c(u,a,"dataIndex")&&c(u,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,r.otherQuery,i,a));function c(f,v,h,d){return f[h]==null||v[d||h]===f[h]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t})(),_h=["symbol","symbolSize","symbolRotate","symbolOffset"],dm=_h.concat(["symbolKeepAspect"]),hI={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var r=t.getData();if(t.legendIcon&&r.setVisual("legendIcon",t.legendIcon),!t.hasSymbolVisual)return;for(var n={},i={},a=!1,o=0;o<_h.length;o++){var s=_h[o],l=t.get(s);ie(l)?(a=!0,i[s]=l):n[s]=l}if(n.symbol=n.symbol||t.defaultSymbol,r.setVisual(F({legendIcon:t.legendIcon||n.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},n)),e.isSeriesFiltered(t))return;var u=Se(i);function c(f,v){for(var h=t.getRawValue(v),d=t.getDataParams(v),p=0;p<u.length;p++){var g=u[p];f.setItemVisual(v,g,i[g](h,d))}}return{dataEach:a?c:null}}},vI={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.hasSymbolVisual||e.isSeriesFiltered(t))return;var r=t.getData();function n(i,a){for(var o=i.getItemModel(a),s=0;s<dm.length;s++){var l=dm[s],u=o.getShallow(l,!0);u!=null&&i.setItemVisual(a,l,u)}}return{dataEach:r.hasItemOption?n:null}}};function dI(t,e,r){switch(r){case"color":var n=t.getItemVisual(e,"style");return n[t.getVisual("drawType")];case"opacity":return t.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getItemVisual(e,r)}}function pI(t,e){switch(e){case"color":var r=t.getVisual("style");return r[t.getVisual("drawType")];case"opacity":return t.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getVisual(e)}}function Ea(t,e,r){for(var n;t&&!(e(t)&&(n=t,r));)t=t.__hostTarget||t.parent;return n}var gI=Math.round(Math.random()*9),mI=typeof Object.defineProperty=="function",yI=(function(){function t(){this._id="__ec_inner_"+gI++}return t.prototype.get=function(e){return this._guard(e)[this._id]},t.prototype.set=function(e,r){var n=this._guard(e);return mI?Object.defineProperty(n,this._id,{value:r,enumerable:!1,configurable:!0}):n[this._id]=r,this},t.prototype.delete=function(e){return this.has(e)?(delete this._guard(e)[this._id],!0):!1},t.prototype.has=function(e){return!!this._guard(e)[this._id]},t.prototype._guard=function(e){if(e!==Object(e))throw TypeError("Value of WeakMap is not a non-null object.");return e},t})();function Hn(t){return isFinite(t)}function _I(t,e,r){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*r.width+r.x,i=i*r.width+r.x,a=a*r.height+r.y,o=o*r.height+r.y),n=Hn(n)?n:0,i=Hn(i)?i:1,a=Hn(a)?a:0,o=Hn(o)?o:0;var s=t.createLinearGradient(n,a,i,o);return s}function bI(t,e,r){var n=r.width,i=r.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+r.x,s=s*i+r.y,l=l*a),o=Hn(o)?o:.5,s=Hn(s)?s:.5,l=l>=0&&Hn(l)?l:.5;var u=t.createRadialGradient(o,s,0,o,s,l);return u}function bh(t,e,r){for(var n=e.type==="radial"?bI(t,e,r):_I(t,e,r),i=e.colorStops,a=0;a<i.length;a++)n.addColorStop(i[a].offset,i[a].color);return n}function SI(t,e){if(t===e||!t&&!e)return!1;if(!t||!e||t.length!==e.length)return!0;for(var r=0;r<t.length;r++)if(t[r]!==e[r])return!0;return!1}function vs(t){return parseInt(t,10)}function ds(t,e,r){var n=["width","height"][e],i=["clientWidth","clientHeight"][e],a=["paddingLeft","paddingTop"][e],o=["paddingRight","paddingBottom"][e];if(r[n]!=null&&r[n]!=="auto")return parseFloat(r[n]);var s=document.defaultView.getComputedStyle(t);return(t[i]||vs(s[n])||vs(t.style[n]))-(vs(s[a])||0)-(vs(s[o])||0)|0}function xI(t,e){return!t||t==="solid"||!(e>0)?null:t==="dashed"?[4*e,2*e]:t==="dotted"?[e]:me(t)?[t]:W(t)?t:null}function $S(t){var e=t.style,r=e.lineDash&&e.lineWidth>0&&xI(e.lineDash,e.lineWidth),n=e.lineDashOffset;if(r){var i=e.strokeNoScale&&t.getLineScale?t.getLineScale():1;i&&i!==1&&(r=X(r,function(a){return a/i}),n/=i)}return[r,n]}var wI=new zi(!0);function Ol(t){var e=t.stroke;return!(e==null||e==="none"||!(t.lineWidth>0))}function pm(t){return typeof t=="string"&&t!=="none"}function kl(t){var e=t.fill;return e!=null&&e!=="none"}function gm(t,e){if(e.fillOpacity!=null&&e.fillOpacity!==1){var r=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=r}else t.fill()}function mm(t,e){if(e.strokeOpacity!=null&&e.strokeOpacity!==1){var r=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=r}else t.stroke()}function Sh(t,e,r){var n=j0(e.image,e.__image,r);if(tu(n)){var i=t.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)*U0),a.scaleSelf(e.scaleX||1,e.scaleY||1),i.setTransform(a)}return i}}function TI(t,e,r,n){var i,a=Ol(r),o=kl(r),s=r.strokePercent,l=s<1,u=!e.path;(!e.silent||l)&&u&&e.createPathProxy();var c=e.path||wI,f=e.__dirty;if(!n){var v=r.fill,h=r.stroke,d=o&&!!v.colorStops,p=a&&!!h.colorStops,g=o&&!!v.image,m=a&&!!h.image,y=void 0,_=void 0,b=void 0,S=void 0,x=void 0;(d||p)&&(x=e.getBoundingRect()),d&&(y=f?bh(t,v,x):e.__canvasFillGradient,e.__canvasFillGradient=y),p&&(_=f?bh(t,h,x):e.__canvasStrokeGradient,e.__canvasStrokeGradient=_),g&&(b=f||!e.__canvasFillPattern?Sh(t,v,e):e.__canvasFillPattern,e.__canvasFillPattern=b),m&&(S=f||!e.__canvasStrokePattern?Sh(t,h,e):e.__canvasStrokePattern,e.__canvasStrokePattern=S),d?t.fillStyle=y:g&&(b?t.fillStyle=b:o=!1),p?t.strokeStyle=_:m&&(S?t.strokeStyle=S:a=!1)}var w=e.getGlobalScale();c.setScale(w[0],w[1],e.segmentIgnoreThreshold);var T,M;t.setLineDash&&r.lineDash&&(i=$S(e),T=i[0],M=i[1]);var A=!0;(u||f&Ci)&&(c.setDPR(t.dpr),l?c.setContext(null):(c.setContext(t),A=!1),c.reset(),e.buildPath(c,e.shape,n),c.toStatic(),e.pathUpdated()),A&&c.rebuildPath(t,l?s:1),T&&(t.setLineDash(T),t.lineDashOffset=M),n||(r.strokeFirst?(a&&mm(t,r),o&&gm(t,r)):(o&&gm(t,r),a&&mm(t,r))),T&&t.setLineDash([])}function CI(t,e,r){var n=e.__image=j0(r.image,e.__image,e,e.onload);if(!(!n||!tu(n))){var i=r.x||0,a=r.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),r.sWidth&&r.sHeight){var u=r.sx||0,c=r.sy||0;t.drawImage(n,u,c,r.sWidth,r.sHeight,i,a,o,s)}else if(r.sx&&r.sy){var u=r.sx,c=r.sy,f=o-u,v=s-c;t.drawImage(n,u,c,f,v,i,a,o,s)}else t.drawImage(n,i,a,o,s)}}function DI(t,e,r){var n,i=r.text;if(i!=null&&(i+=""),i){t.font=r.font||rn,t.textAlign=r.textAlign,t.textBaseline=r.textBaseline;var a=void 0,o=void 0;t.setLineDash&&r.lineDash&&(n=$S(e),a=n[0],o=n[1]),a&&(t.setLineDash(a),t.lineDashOffset=o),r.strokeFirst?(Ol(r)&&t.strokeText(i,r.x,r.y),kl(r)&&t.fillText(i,r.x,r.y)):(kl(r)&&t.fillText(i,r.x,r.y),Ol(r)&&t.strokeText(i,r.x,r.y)),a&&t.setLineDash([])}}var ym=["shadowBlur","shadowOffsetX","shadowOffsetY"],_m=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function YS(t,e,r,n,i){var a=!1;if(!n&&(r=r||{},e===r))return!1;if(n||e.opacity!==r.opacity){st(t,i),a=!0;var o=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(o)?$n.opacity:o}(n||e.blend!==r.blend)&&(a||(st(t,i),a=!0),t.globalCompositeOperation=e.blend||$n.blend);for(var s=0;s<ym.length;s++){var l=ym[s];(n||e[l]!==r[l])&&(a||(st(t,i),a=!0),t[l]=t.dpr*(e[l]||0))}return(n||e.shadowColor!==r.shadowColor)&&(a||(st(t,i),a=!0),t.shadowColor=e.shadowColor||$n.shadowColor),a}function bm(t,e,r,n,i){var a=so(e,i.inHover),o=n?null:r&&so(r,i.inHover)||{};if(a===o)return!1;var s=YS(t,a,o,n,i);if((n||a.fill!==o.fill)&&(s||(st(t,i),s=!0),pm(a.fill)&&(t.fillStyle=a.fill)),(n||a.stroke!==o.stroke)&&(s||(st(t,i),s=!0),pm(a.stroke)&&(t.strokeStyle=a.stroke)),(n||a.opacity!==o.opacity)&&(s||(st(t,i),s=!0),t.globalAlpha=a.opacity==null?1:a.opacity),e.hasStroke()){var l=a.lineWidth,u=l/(a.strokeNoScale&&e.getLineScale?e.getLineScale():1);t.lineWidth!==u&&(s||(st(t,i),s=!0),t.lineWidth=u)}for(var c=0;c<_m.length;c++){var f=_m[c],v=f[0];(n||a[v]!==o[v])&&(s||(st(t,i),s=!0),t[v]=a[v]||f[1])}return s}function MI(t,e,r,n,i){return YS(t,so(e,i.inHover),r&&so(r,i.inHover),n,i)}function qS(t,e){var r=e.transform,n=t.dpr||1;r?t.setTransform(n*r[0],n*r[1],n*r[2],n*r[3],n*r[4],n*r[5]):t.setTransform(n,0,0,n,0,0)}function AI(t,e,r){for(var n=!1,i=0;i<t.length;i++){var a=t[i];n=n||a.isZeroArea(),qS(e,a),e.beginPath(),a.buildPath(e,a.shape),e.clip()}r.allClipped=n}function EI(t,e){return t&&e?t[0]!==e[0]||t[1]!==e[1]||t[2]!==e[2]||t[3]!==e[3]||t[4]!==e[4]||t[5]!==e[5]:!(!t&&!e)}var Sm=1,xm=2,wm=3,Tm=4;function RI(t){var e=kl(t),r=Ol(t);return!(t.lineDash||!(+e^+r)||e&&typeof t.fill!="string"||r&&typeof t.stroke!="string"||t.strokePercent<1||t.strokeOpacity<1||t.fillOpacity<1)}function st(t,e){e.batchFill&&t.fill(),e.batchStroke&&t.stroke(),e.batchFill="",e.batchStroke=""}function so(t,e){return e&&t.__hoverStyle||t.style}function id(t,e){Un(t,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function Un(t,e,r,n){var i=e.transform;if(!e.shouldBePainted(r.viewWidth,r.viewHeight,!1,!1)){e.__dirty&=~dt,e.__isRendered=!1;return}var a=e.__clipPaths,o=r.prevElClipPaths,s=!1,l=!1;if((!o||SI(a,o))&&(o&&o.length&&(st(t,r),t.restore(),l=s=!0,r.prevElClipPaths=null,r.allClipped=!1,r.prevEl=null),a&&a.length&&(st(t,r),t.save(),AI(a,t,r),s=!0),r.prevElClipPaths=a),r.allClipped){e.__isRendered=!1;return}e.beforeBrush&&e.beforeBrush(),e.innerBeforeBrush();var u=r.prevEl;u||(l=s=!0);var c=e instanceof ge&&e.autoBatch&&RI(e.style);s||EI(i,u.transform)?(st(t,r),qS(t,e)):c||st(t,r);var f=so(e,r.inHover);e instanceof ge?(r.lastDrawType!==Sm&&(l=!0,r.lastDrawType=Sm),bm(t,e,u,l,r),(!c||!r.batchFill&&!r.batchStroke)&&t.beginPath(),TI(t,e,f,c),c&&(r.batchFill=f.fill||"",r.batchStroke=f.stroke||"")):e instanceof vl?(r.lastDrawType!==wm&&(l=!0,r.lastDrawType=wm),bm(t,e,u,l,r),DI(t,e,f)):e instanceof Ar?(r.lastDrawType!==xm&&(l=!0,r.lastDrawType=xm),MI(t,e,u,l,r),CI(t,e,f)):e.getTemporalDisplayables&&(r.lastDrawType!==Tm&&(l=!0,r.lastDrawType=Tm),LI(t,e,r)),c&&n&&st(t,r),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),r.prevEl=e,e.__dirty=0,e.__isRendered=!0}function LI(t,e,r){var n=e.getDisplayables(),i=e.getTemporalDisplayables();t.save();var a={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:r.viewWidth,viewHeight:r.viewHeight,inHover:r.inHover},o,s;for(o=e.getCursor(),s=n.length;o<s;o++){var l=n[o];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),Un(t,l,a,o===s-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}for(var u=0,c=i.length;u<c;u++){var l=i[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),Un(t,l,a,u===c-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}e.clearTemporalDisplayables(),e.notClear=!0,t.restore()}var Fc=new yI,Cm=new Bi(100),Dm=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function xh(t,e){if(t==="none")return null;var r=e.getDevicePixelRatio(),n=e.getZr(),i=n.painter.type==="svg";t.dirty&&Fc.delete(t);var a=Fc.get(t);if(a)return a;var o=pe(t,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});o.backgroundColor==="none"&&(o.backgroundColor=null);var s={repeat:"repeat"};return l(s),s.rotation=o.rotation,s.scaleX=s.scaleY=i?1:1/r,Fc.set(t,s),t.dirty=!1,s;function l(u){for(var c=[r],f=!0,v=0;v<Dm.length;++v){var h=o[Dm[v]];if(h!=null&&!W(h)&&!Y(h)&&!me(h)&&typeof h!="boolean"){f=!1;break}c.push(h)}var d;if(f){d=c.join(",")+(i?"-svg":"");var p=Cm.get(d);p&&(i?u.svgElement=p:u.image=p)}var g=ZS(o.dashArrayX),m=PI(o.dashArrayY),y=XS(o.symbol),_=II(g),b=KS(m),S=!i&&Pt.createCanvas(),x=i&&{tag:"g",attrs:{},key:"dcl",children:[]},w=M(),T;S&&(S.width=w.width*r,S.height=w.height*r,T=S.getContext("2d")),A(),f&&Cm.put(d,S||x),u.image=S,u.svgElement=x,u.svgWidth=w.width,u.svgHeight=w.height;function M(){for(var D=1,P=0,E=_.length;P<E;++P)D=Ep(D,_[P]);for(var L=1,P=0,E=y.length;P<E;++P)L=Ep(L,y[P].length);D*=L;var k=b*_.length*y.length;return{width:Math.max(1,Math.min(D,o.maxTileWidth)),height:Math.max(1,Math.min(k,o.maxTileHeight))}}function A(){T&&(T.clearRect(0,0,S.width,S.height),o.backgroundColor&&(T.fillStyle=o.backgroundColor,T.fillRect(0,0,S.width,S.height)));for(var D=0,P=0;P<m.length;++P)D+=m[P];if(D<=0)return;for(var E=-b,L=0,k=0,N=0;E<w.height;){if(L%2===0){for(var $=k/2%y.length,B=0,U=0,j=0;B<w.width*2;){for(var H=0,P=0;P<g[N].length;++P)H+=g[N][P];if(H<=0)break;if(U%2===0){var z=(1-o.symbolSize)*.5,J=B+g[N][U]*z,ce=E+m[L]*z,Pe=g[N][U]*o.symbolSize,ht=m[L]*o.symbolSize,Ye=j/2%y[$].length;He(J,ce,Pe,ht,y[$][Ye])}B+=g[N][U],++j,++U,U===g[N].length&&(U=0)}++N,N===g.length&&(N=0)}E+=m[L],++k,++L,L===m.length&&(L=0)}function He(Be,Ae,ee,se,qt){var Ie=i?1:r,Ir=qi(qt,Be*Ie,Ae*Ie,ee*Ie,se*Ie,o.color,o.symbolKeepAspect);if(i){var pr=n.painter.renderOneToVNode(Ir);pr&&x.children.push(pr)}else id(T,Ir)}}}}function XS(t){if(!t||t.length===0)return[["rect"]];if(Y(t))return[[t]];for(var e=!0,r=0;r<t.length;++r)if(!Y(t[r])){e=!1;break}if(e)return XS([t]);for(var n=[],r=0;r<t.length;++r)Y(t[r])?n.push([t[r]]):n.push(t[r]);return n}function ZS(t){if(!t||t.length===0)return[[0,0]];if(me(t)){var e=Math.ceil(t);return[[e,e]]}for(var r=!0,n=0;n<t.length;++n)if(!me(t[n])){r=!1;break}if(r)return ZS([t]);for(var i=[],n=0;n<t.length;++n)if(me(t[n])){var e=Math.ceil(t[n]);i.push([e,e])}else{var e=X(t[n],function(s){return Math.ceil(s)});e.length%2===1?i.push(e.concat(e)):i.push(e)}return i}function PI(t){if(!t||typeof t=="object"&&t.length===0)return[0,0];if(me(t)){var e=Math.ceil(t);return[e,e]}var r=X(t,function(n){return Math.ceil(n)});return t.length%2?r.concat(r):r}function II(t){return X(t,function(e){return KS(e)})}function KS(t){for(var e=0,r=0;r<t.length;++r)e+=t[r];return t.length%2===1?e*2:e}function OI(t,e){t.eachRawSeries(function(r){if(!t.isSeriesFiltered(r)){var n=r.getData();n.hasItemVisual()&&n.each(function(o){var s=n.getItemVisual(o,"decal");if(s){var l=n.ensureUniqueItemVisual(o,"style");l.decal=xh(s,e)}});var i=n.getVisual("decal");if(i){var a=n.getVisual("style");a.decal=xh(i,e)}}})}var zt=new dr,QS={};function kI(t,e){QS[t]=e}function JS(t){return QS[t]}var NI="6.0.0",BI={zrender:"6.0.0"},FI=1,zI=800,HI=900,UI=1e3,GI=2e3,VI=5e3,ex=1e3,WI=1100,ad=2e3,tx=3e3,jI=4e3,Du=4500,$I=4600,YI=5e3,qI=6e3,rx=7e3,nx={PROCESSOR:{FILTER:UI,SERIES_FILTER:zI,STATISTIC:VI},VISUAL:{LAYOUT:ex,PROGRESSIVE_LAYOUT:WI,GLOBAL:ad,CHART:tx,POST_CHART_LAYOUT:$I,COMPONENT:jI,BRUSH:YI,CHART_ITEM:Du,ARIA:qI,DECAL:rx}},Le="__flagInMainProcess",ps="__mainProcessVersion",Oe="__pendingUpdate",zc="__needsUpdateStatus",Mm=/^[a-zA-Z0-9_]+$/,Hc="__connectUpdateStatus",Am=0,XI=1,ZI=2;function ix(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];if(this.isDisposed()){this.id;return}return ox(this,t,e)}}function ax(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return ox(this,t,e)}}function ox(t,e,r){return r[0]=r[0]&&r[0].toLowerCase(),dr.prototype[e].apply(t,r)}var sx=(function(t){G(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(dr),lx=sx.prototype;lx.on=ax("on");lx.off=ax("off");var In,Uc,gs,yr,ms,Gc,Vc,yi,_i,Em,Rm,Wc,Lm,ys,Pm,ux,St,Im,bi,Nl=(function(t){G(e,t);function e(r,n,i){var a=t.call(this,new fI)||this;a._chartsViews=[],a._chartsMap={},a._componentsViews=[],a._componentsMap={},a._pendingActions=[],i=i||{},a._dom=r;var o="canvas",s="auto",l=!1;a[ps]=1,i.ssr&&IS(function(v){var h=he(v),d=h.dataIndex;if(d!=null){var p=ae();return p.set("series_index",h.seriesIndex),p.set("data_index",d),h.ssrType&&p.set("ssr_type",h.ssrType),p}});var u=a._zr=mh(r,{renderer:i.renderer||o,devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:K(i.useDirtyRect,l),useCoarsePointer:K(i.useCoarsePointer,s),pointerSize:i.pointerSize});a._ssr=i.ssr,a._throttledZrFlush=Cu(de(u.flush,u),17),a._updateTheme(n),a._locale=MR(i.locale||Gb),a._coordSysMgr=new xu;var c=a._api=Pm(a);function f(v,h){return v.__prio-h.__prio}return Xs(Fl,f),Xs(Ch,f),a._scheduler=new US(a,c,Ch,Fl),a._messageCenter=new sx,a._initEvents(),a.resize=de(a.resize,a),u.animation.on("frame",a._onframe,a),Em(u,a),Rm(u,a),nl(a),a}return e.prototype._onframe=function(){if(!this._disposed){Im(this);var r=this._scheduler;if(this[Oe]){var n=this[Oe].silent;this[Le]=!0,bi(this);try{In(this),yr.update.call(this,null,this[Oe].updateParams)}catch(l){throw this[Le]=!1,this[Oe]=null,l}this._zr.flush(),this[Le]=!1,this[Oe]=null,yi.call(this,n),_i.call(this,n)}else if(r.unfinished){var i=FI,a=this._model,o=this._api;r.unfinished=!1;do{var s=+new Date;r.performSeriesTasks(a),r.performDataProcessorTasks(a),Gc(this,a),r.performVisualTasks(a),ys(this,this._model,o,"remain",{}),i-=+new Date-s}while(i>0&&r.unfinished);r.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(r,n,i){if(!this[Le]){if(this._disposed){this.id;return}var a,o,s;if(q(n)&&(i=n.lazyUpdate,a=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[Le]=!0,bi(this),!this._model||n){var l=new N2(this._api),u=this._theme,c=this._model=new nd;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(r,{replaceMerge:o},Dh);var f={seriesTransition:s,optionChanged:!0};if(i)this[Oe]={silent:a,updateParams:f},this[Le]=!1,this.getZr().wakeUp();else{try{In(this),yr.update.call(this,null,f)}catch(v){throw this[Oe]=null,this[Le]=!1,v}this._ssr||this._zr.flush(),this[Oe]=null,this[Le]=!1,yi.call(this,a),_i.call(this,a)}}},e.prototype.setTheme=function(r,n){if(!this[Le]){if(this._disposed){this.id;return}var i=this._model;if(i){var a=n&&n.silent,o=null;this[Oe]&&(a==null&&(a=this[Oe].silent),o=this[Oe].updateParams,this[Oe]=null),this[Le]=!0,bi(this);try{this._updateTheme(r),i.setTheme(this._theme),In(this),yr.update.call(this,{type:"setTheme"},o)}catch(s){throw this[Le]=!1,s}this[Le]=!1,yi.call(this,a),_i.call(this,a)}}},e.prototype._updateTheme=function(r){Y(r)&&(r=cx[r]),r&&(r=oe(r),r&&FS(r,!0),this._theme=r)},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||te.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(r){return this.renderToCanvas(r)},e.prototype.renderToCanvas=function(r){r=r||{};var n=this._zr.painter;return n.getRenderedCanvas({backgroundColor:r.backgroundColor||this._model.get("backgroundColor"),pixelRatio:r.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(r){r=r||{};var n=this._zr.painter;return n.renderToString({useViewBox:r.useViewBox})},e.prototype.getSvgDataURL=function(){var r=this._zr,n=r.storage.getDisplayList();return C(n,function(i){i.stopAnimation(null,!0)}),r.painter.toDataURL()},e.prototype.getDataURL=function(r){if(this._disposed){this.id;return}r=r||{};var n=r.excludeComponents,i=this._model,a=[],o=this;C(n,function(l){i.eachComponent({mainType:l},function(u){var c=o._componentsMap[u.__viewId];c.group.ignore||(a.push(c),c.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(r).toDataURL("image/"+(r&&r.type||"png"));return C(a,function(l){l.group.ignore=!1}),s},e.prototype.getConnectedDataURL=function(r){if(this._disposed){this.id;return}var n=r.type==="svg",i=this.group,a=Math.min,o=Math.max,s=1/0;if(zl[i]){var l=s,u=s,c=-s,f=-s,v=[],h=r&&r.pixelRatio||this.getDevicePixelRatio();C(Xn,function(_,b){if(_.group===i){var S=n?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(oe(r)),x=_.getDom().getBoundingClientRect();l=a(x.left,l),u=a(x.top,u),c=o(x.right,c),f=o(x.bottom,f),v.push({dom:S,left:x.left,top:x.top})}}),l*=h,u*=h,c*=h,f*=h;var d=c-l,p=f-u,g=Pt.createCanvas(),m=mh(g,{renderer:n?"svg":"canvas"});if(m.resize({width:d,height:p}),n){var y="";return C(v,function(_){var b=_.left-l,S=_.top-u;y+='<g transform="translate('+b+","+S+')">'+_.dom+"</g>"}),m.painter.getSvgRoot().innerHTML=y,r.connectedBackgroundColor&&m.painter.setBackgroundColor(r.connectedBackgroundColor),m.refreshImmediately(),m.painter.toDataURL()}else return r.connectedBackgroundColor&&m.add(new De({shape:{x:0,y:0,width:d,height:p},style:{fill:r.connectedBackgroundColor}})),C(v,function(_){var b=new Ar({style:{x:_.left*h-l,y:_.top*h-u,image:_.dom}});m.add(b)}),m.refreshImmediately(),g.toDataURL("image/"+(r&&r.type||"png"))}else return this.getDataURL(r)},e.prototype.convertToPixel=function(r,n,i){return ms(this,"convertToPixel",r,n,i)},e.prototype.convertToLayout=function(r,n,i){return ms(this,"convertToLayout",r,n,i)},e.prototype.convertFromPixel=function(r,n,i){return ms(this,"convertFromPixel",r,n,i)},e.prototype.containPixel=function(r,n){if(this._disposed){this.id;return}var i=this._model,a,o=nc(i,r);return C(o,function(s,l){l.indexOf("Models")>=0&&C(s,function(u){var c=u.coordinateSystem;if(c&&c.containPoint)a=a||!!c.containPoint(n);else if(l==="seriesModels"){var f=this._chartsMap[u.__viewId];f&&f.containPoint&&(a=a||f.containPoint(n,u))}},this)},this),!!a},e.prototype.getVisual=function(r,n){var i=this._model,a=nc(i,r,{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?dI(s,l,n):pI(s,n)},e.prototype.getViewOfComponentModel=function(r){return this._componentsMap[r.__viewId]},e.prototype.getViewOfSeriesModel=function(r){return this._chartsMap[r.__viewId]},e.prototype._initEvents=function(){var r=this;C(KI,function(i){var a=function(o){var s=r.getModel(),l=o.target,u,c=i==="globalout";if(c?u={}:l&&Ea(l,function(p){var g=he(p);if(g&&g.dataIndex!=null){var m=g.dataModel||s.getSeriesByIndex(g.seriesIndex);return u=m&&m.getDataParams(g.dataIndex,g.dataType,l)||{},!0}else if(g.eventData)return u=F({},g.eventData),!0},!0),u){var f=u.componentType,v=u.componentIndex;(f==="markLine"||f==="markPoint"||f==="markArea")&&(f="series",v=u.seriesIndex);var h=f&&v!=null&&s.getComponent(f,v),d=h&&r[h.mainType==="series"?"_chartsMap":"_componentsMap"][h.__viewId];u.event=o,u.type=i,r._$eventProcessor.eventInfo={targetEl:l,packedEvent:u,model:h,view:d},r.trigger(i,u)}};a.zrEventfulCallAtLast=!0,r._zr.on(i,a,r)});var n=this._messageCenter;C(Th,function(i,a){n.on(a,function(o){r.trigger(a,o)})}),wP(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 r=this.getDom();r&&I_(this.getDom(),sd,"");var n=this,i=n._api,a=n._model;C(n._componentsViews,function(o){o.dispose(a,i)}),C(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 Xn[n.id]},e.prototype.resize=function(r){if(!this[Le]){if(this._disposed){this.id;return}this._zr.resize(r);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var i=n.resetOption("media"),a=r&&r.silent;this[Oe]&&(a==null&&(a=this[Oe].silent),i=!0,this[Oe]=null),this[Le]=!0,bi(this);try{i&&In(this),yr.update.call(this,{type:"resize",animation:F({duration:0},r&&r.animation)})}catch(o){throw this[Le]=!1,o}this[Le]=!1,yi.call(this,a),_i.call(this,a)}}},e.prototype.showLoading=function(r,n){if(this._disposed){this.id;return}if(q(r)&&(n=r,r=""),r=r||"default",this.hideLoading(),!!Mh[r]){var i=Mh[r](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(r){var n=F({},r);return n.type=wh[r.type],n},e.prototype.dispatchAction=function(r,n){if(this._disposed){this.id;return}if(q(n)||(n={silent:!!n}),!!Bl[r.type]&&this._model){if(this[Le]){this._pendingActions.push(r);return}var i=n.silent;Vc.call(this,r,i);var a=n.flush;a?this._zr.flush():a!==!1&&te.browser.weChat&&this._throttledZrFlush(),yi.call(this,i),_i.call(this,i)}},e.prototype.updateLabelLayout=function(){zt.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(r){if(this._disposed){this.id;return}var n=r.seriesIndex,i=this.getModel(),a=i.getSeriesByIndex(n);a.appendData(r),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=(function(){In=function(f){var v=f._scheduler;v.restorePipelines(f._model),v.prepareStageTasks(),Uc(f,!0),Uc(f,!1),v.plan()},Uc=function(f,v){for(var h=f._model,d=f._scheduler,p=v?f._componentsViews:f._chartsViews,g=v?f._componentsMap:f._chartsMap,m=f._zr,y=f._api,_=0;_<p.length;_++)p[_].__alive=!1;v?h.eachComponent(function(x,w){x!=="series"&&b(w)}):h.eachSeries(b);function b(x){var w=x.__requireNewView;x.__requireNewView=!1;var T="_ec_"+x.id+"_"+x.type,M=!w&&g[T];if(!M){var A=nr(x.type),D=v?yt.getClass(A.main,A.sub):mt.getClass(A.sub);M=new D,M.init(h,y),g[T]=M,p.push(M),m.add(M.group)}x.__viewId=M.__id=T,M.__alive=!0,M.__model=x,M.group.__ecComponentInfo={mainType:x.mainType,index:x.componentIndex},!v&&d.prepareView(M,x,h,y)}for(var _=0;_<p.length;){var S=p[_];S.__alive?_++:(!v&&S.renderTask.dispose(),m.remove(S.group),S.dispose(h,y),p.splice(_,1),g[S.__id]===S&&delete g[S.__id],S.__id=S.group.__ecComponentInfo=null)}},gs=function(f,v,h,d,p){var g=f._model;if(g.setUpdatePayload(h),!d){C([].concat(f._componentsViews).concat(f._chartsViews),S);return}var m={};m[d+"Id"]=h[d+"Id"],m[d+"Index"]=h[d+"Index"],m[d+"Name"]=h[d+"Name"];var y={mainType:d,query:m};p&&(y.subType=p);var _=h.excludeSeriesId,b;_!=null&&(b=ae(),C(tt(_),function(x){var w=sr(x,null);w!=null&&b.set(w,!0)})),g&&g.eachComponent(y,function(x){var w=b&&b.get(x.id)!=null;if(!w)if(Fp(h))if(x instanceof ft)h.type===Yn&&!h.notBlur&&!x.get(["emphasis","disabled"])&&wA(x,h,f._api);else{var T=bv(x.mainType,x.componentIndex,h.name,f._api),M=T.focusSelf,A=T.dispatchers;h.type===Yn&&M&&!h.notBlur&&Zf(x.mainType,x.componentIndex,f._api),A&&C(A,function(D){h.type===Yn?yl(D):_l(D)})}else Qf(h)&&x instanceof ft&&(DA(x,h,f._api),Np(x),St(f))},f),g&&g.eachComponent(y,function(x){var w=b&&b.get(x.id)!=null;w||S(f[d==="series"?"_chartsMap":"_componentsMap"][x.__viewId])},f);function S(x){x&&x.__alive&&x[v]&&x[v](x.__model,g,f._api,h)}},yr={prepareAndUpdate:function(f){In(this),yr.update.call(this,f,f&&{optionChanged:f.newOption!=null})},update:function(f,v){var h=this._model,d=this._api,p=this._zr,g=this._coordSysMgr,m=this._scheduler;if(h){h.setUpdatePayload(f),m.restoreData(h,f),m.performSeriesTasks(h),g.create(h,d),m.performDataProcessorTasks(h,f),Gc(this,h),g.update(h,d),n(h),m.performVisualTasks(h,f);var y=h.get("backgroundColor")||"transparent";p.setBackgroundColor(y);var _=h.get("darkMode");_!=null&&_!=="auto"&&p.setDarkMode(_),Wc(this,h,d,f,v),zt.trigger("afterupdate",h,d)}},updateTransform:function(f){var v=this,h=this._model,d=this._api;if(h){h.setUpdatePayload(f);var p=[];h.eachComponent(function(m,y){if(m!=="series"){var _=v.getViewOfComponentModel(y);if(_&&_.__alive)if(_.updateTransform){var b=_.updateTransform(y,h,d,f);b&&b.update&&p.push(_)}else p.push(_)}});var g=ae();h.eachSeries(function(m){var y=v._chartsMap[m.__viewId];if(y.updateTransform){var _=y.updateTransform(m,h,d,f);_&&_.update&&g.set(m.uid,1)}else g.set(m.uid,1)}),n(h),this._scheduler.performVisualTasks(h,f,{setDirty:!0,dirtyMap:g}),ys(this,h,d,f,{},g),zt.trigger("afterupdate",h,d)}},updateView:function(f){var v=this._model;v&&(v.setUpdatePayload(f),mt.markUpdateMethod(f,"updateView"),n(v),this._scheduler.performVisualTasks(v,f,{setDirty:!0}),Wc(this,v,this._api,f,{}),zt.trigger("afterupdate",v,this._api))},updateVisual:function(f){var v=this,h=this._model;h&&(h.setUpdatePayload(f),h.eachSeries(function(d){d.getData().clearAllVisual()}),mt.markUpdateMethod(f,"updateVisual"),n(h),this._scheduler.performVisualTasks(h,f,{visualType:"visual",setDirty:!0}),h.eachComponent(function(d,p){if(d!=="series"){var g=v.getViewOfComponentModel(p);g&&g.__alive&&g.updateVisual(p,h,v._api,f)}}),h.eachSeries(function(d){var p=v._chartsMap[d.__viewId];p.updateVisual(d,h,v._api,f)}),zt.trigger("afterupdate",h,this._api))},updateLayout:function(f){yr.update.call(this,f)}};function r(f,v,h,d,p){if(f._disposed){f.id;return}for(var g=f._model,m=f._coordSysMgr.getCoordinateSystems(),y,_=nc(g,h),b=0;b<m.length;b++){var S=m[b];if(S[v]&&(y=S[v](g,_,d,p))!=null)return y}}ms=r,Gc=function(f,v){var h=f._chartsMap,d=f._scheduler;v.eachSeries(function(p){d.updateStreamModes(p,h[p.__viewId])})},Vc=function(f,v){var h=this,d=this.getModel(),p=f.type,g=f.escapeConnect,m=Bl[p],y=(m.update||"update").split(":"),_=y.pop(),b=y[0]!=null&&nr(y[0]);this[Le]=!0,bi(this);var S=[f],x=!1;f.batch&&(x=!0,S=X(f.batch,function(N){return N=pe(F({},N),f),N.batch=null,N}));var w=[],T,M=[],A=m.nonRefinedEventType,D=Qf(f),P=Fp(f);if(P&&V_(this._api),C(S,function(N){var $=m.action(N,d,h._api);if(m.refineEvent?M.push($):T=$,T=T||F({},N),T.type=A,w.push(T),P){var B=dv(f),U=B.queryOptionMap,j=B.mainTypeSpecified,H=j?U.keys()[0]:"series";gs(h,_,N,H),St(h)}else D?(gs(h,_,N,"series"),St(h)):b&&gs(h,_,N,b.main,b.sub)}),_!=="none"&&!P&&!D&&!b)try{this[Oe]?(In(this),yr.update.call(this,f),this[Oe]=null):yr[_].call(this,f)}catch(N){throw this[Le]=!1,N}if(x?T={type:A,escapeConnect:g,batch:w}:T=w[0],this[Le]=!1,!v){var E=void 0;if(m.refineEvent){var L=m.refineEvent(M,f,d,this._api).eventContent;fr(q(L)),E=pe({type:m.refinedEventType},L),E.fromAction=f.type,E.fromActionPayload=f,E.escapeConnect=!0}var k=this._messageCenter;k.trigger(T.type,T),E&&k.trigger(E.type,E)}},yi=function(f){for(var v=this._pendingActions;v.length;){var h=v.shift();Vc.call(this,h,f)}},_i=function(f){!f&&this.trigger("updated")},Em=function(f,v){f.on("rendered",function(h){v.trigger("rendered",h),f.animation.isFinished()&&!v[Oe]&&!v._scheduler.unfinished&&!v._pendingActions.length&&v.trigger("finished")})},Rm=function(f,v){f.on("mouseover",function(h){var d=h.target,p=Ea(d,Kf);p&&(TA(p,h,v._api),St(v))}).on("mouseout",function(h){var d=h.target,p=Ea(d,Kf);p&&(CA(p,h,v._api),St(v))}).on("click",function(h){var d=h.target,p=Ea(d,function(y){return he(y).dataIndex!=null},!0);if(p){var g=p.selected?"unselect":"select",m=he(p);v._api.dispatchAction({type:g,dataType:m.dataType,dataIndexInside:m.dataIndex,seriesIndex:m.seriesIndex,isFromClick:!0})}})};function n(f){f.clearColorPalette(),f.eachSeries(function(v){v.clearColorPalette()})}function i(f){var v=[],h=[],d=!1;if(f.eachComponent(function(y,_){var b=_.get("zlevel")||0,S=_.get("z")||0,x=_.getZLevelKey();d=d||!!x,(y==="series"?h:v).push({zlevel:b,z:S,idx:_.componentIndex,type:y,key:x})}),d){var p=v.concat(h),g,m;Xs(p,function(y,_){return y.zlevel===_.zlevel?y.z-_.z:y.zlevel-_.zlevel}),C(p,function(y){var _=f.getComponent(y.type,y.idx),b=y.zlevel,S=y.key;g!=null&&(b=Math.max(g,b)),S?(b===g&&S!==m&&b++,m=S):m&&(b===g&&b++,m=""),g=b,_.setZLevel(b)})}}Wc=function(f,v,h,d,p){i(v),Lm(f,v,h,d,p),C(f._chartsViews,function(g){g.__alive=!1}),ys(f,v,h,d,p),C(f._chartsViews,function(g){g.__alive||g.remove(v,h)})},Lm=function(f,v,h,d,p,g){C(g||f._componentsViews,function(m){var y=m.__model;u(y,m),m.render(y,v,h,d),l(y,m),c(y,m)})},ys=function(f,v,h,d,p,g){var m=f._scheduler;p=F(p||{},{updatedSeries:v.getSeries()}),zt.trigger("series:beforeupdate",v,h,p);var y=!1;v.eachSeries(function(_){var b=f._chartsMap[_.__viewId];b.__alive=!0;var S=b.renderTask;m.updatePayload(S,d),u(_,b),g&&g.get(_.uid)&&S.dirty(),S.perform(m.getPerformArgs(S))&&(y=!0),b.group.silent=!!_.get("silent"),s(_,b),Np(_)}),m.unfinished=y||m.unfinished,zt.trigger("series:layoutlabels",v,h,p),zt.trigger("series:transition",v,h,p),v.eachSeries(function(_){var b=f._chartsMap[_.__viewId];l(_,b),c(_,b)}),o(f,v),zt.trigger("series:afterupdate",v,h,p)},St=function(f){f[zc]=!0,f.getZr().wakeUp()},bi=function(f){f[ps]=(f[ps]+1)%1e3},Im=function(f){f[zc]&&(f.getZr().storage.traverse(function(v){Na(v)||a(v)}),f[zc]=!1)};function a(f){for(var v=[],h=f.currentStates,d=0;d<h.length;d++){var p=h[d];p==="emphasis"||p==="blur"||p==="select"||v.push(p)}f.selected&&f.states.select&&v.push("select"),f.hoverState===mv&&f.states.emphasis?v.push("emphasis"):f.hoverState===gv&&f.states.blur&&v.push("blur"),f.useStates(v)}function o(f,v){var h=f._zr,d=h.storage,p=0;d.traverse(function(g){g.isGroup||p++}),p>v.get("hoverLayerThreshold")&&!te.node&&!te.worker&&v.eachSeries(function(g){if(!g.preventUsingHoverLayer){var m=f._chartsMap[g.__viewId];m.__alive&&m.eachRendered(function(y){y.states.emphasis&&(y.states.emphasis.hoverLayer=!0)})}})}function s(f,v){var h=f.get("blendMode")||null;v.eachRendered(function(d){d.isGroup||(d.style.blend=h)})}function l(f,v){if(!f.preventAutoZ){var h=vb(f);v.eachRendered(function(d){return db(d,h.z,h.zlevel),!0})}}function u(f,v){v.eachRendered(function(h){if(!Na(h)){var d=h.getTextContent(),p=h.getTextGuideLine();h.stateTransition&&(h.stateTransition=null),d&&d.stateTransition&&(d.stateTransition=null),p&&p.stateTransition&&(p.stateTransition=null),h.hasState()?(h.prevStates=h.currentStates,h.clearStates()):h.prevStates&&(h.prevStates=null)}})}function c(f,v){var h=f.getModel("stateAnimation"),d=f.isAnimationEnabled(),p=h.get("duration"),g=p>0?{duration:p,delay:h.get("delay"),easing:h.get("easing")}:null;v.eachRendered(function(m){if(m.states&&m.states.emphasis){if(Na(m))return;if(m instanceof ge&&PA(m),m.__dirty){var y=m.prevStates;y&&m.useStates(y)}if(d){m.stateTransition=g;var _=m.getTextContent(),b=m.getTextGuideLine();_&&(_.stateTransition=g),b&&(b.stateTransition=g)}m.__dirty&&a(m)}})}Pm=function(f){return new((function(v){G(h,v);function h(){return v!==null&&v.apply(this,arguments)||this}return h.prototype.getCoordinateSystems=function(){return f._coordSysMgr.getCoordinateSystems()},h.prototype.getComponentByElement=function(d){for(;d;){var p=d.__ecComponentInfo;if(p!=null)return f._model.getComponent(p.mainType,p.index);d=d.parent}},h.prototype.enterEmphasis=function(d,p){yl(d,p),St(f)},h.prototype.leaveEmphasis=function(d,p){_l(d,p),St(f)},h.prototype.enterBlur=function(d){xA(d),St(f)},h.prototype.leaveBlur=function(d){z_(d),St(f)},h.prototype.enterSelect=function(d){H_(d),St(f)},h.prototype.leaveSelect=function(d){U_(d),St(f)},h.prototype.getModel=function(){return f.getModel()},h.prototype.getViewOfComponentModel=function(d){return f.getViewOfComponentModel(d)},h.prototype.getViewOfSeriesModel=function(d){return f.getViewOfSeriesModel(d)},h.prototype.getMainProcessVersion=function(){return f[ps]},h})(NS))(f)},ux=function(f){function v(h,d){for(var p=0;p<h.length;p++){var g=h[p];g[Hc]=d}}C(wh,function(h,d){f._messageCenter.on(d,function(p){if(zl[f.group]&&f[Hc]!==Am){if(p&&p.escapeConnect)return;var g=f.makeActionFromEvent(p),m=[];C(Xn,function(y){y!==f&&y.group===f.group&&m.push(y)}),v(m,Am),C(m,function(y){y[Hc]!==XI&&y.dispatchAction(g)}),v(m,ZI)}})})}})(),e})(dr),od=Nl.prototype;od.on=ix("on");od.off=ix("off");od.one=function(t,e,r){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(t,i)}this.on.call(this,t,i,r)};var KI=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var Bl={},wh={},Th={},Ch=[],Dh=[],Fl=[],cx={},Mh={},Xn={},zl={},QI=+new Date-0,JI=+new Date-0,sd="_echarts_instance_";function eO(t,e,r){var n=!(r&&r.ssr);if(n){var i=ld(t);if(i)return i}var a=new Nl(t,e,r);return a.id="ec_"+QI++,Xn[a.id]=a,n&&I_(t,sd,a.id),ux(a),zt.trigger("afterinit",a),a}function tO(t){if(W(t)){var e=t;t=null,C(e,function(r){r.group!=null&&(t=r.group)}),t=t||"g_"+JI++,C(e,function(r){r.group=t})}return zl[t]=!0,t}function fx(t){zl[t]=!1}var rO=fx;function nO(t){Y(t)?t=Xn[t]:t instanceof Nl||(t=ld(t)),t instanceof Nl&&!t.isDisposed()&&t.dispose()}function ld(t){return Xn[cA(t,sd)]}function iO(t){return Xn[t]}function ud(t,e){cx[t]=e}function cd(t){le(Dh,t)<0&&Dh.push(t)}function fd(t,e){hd(Ch,t,e,GI)}function hx(t){Mu("afterinit",t)}function vx(t){Mu("afterupdate",t)}function Mu(t,e){zt.on(t,e)}function ri(t,e,r){var n,i,a,o,s;ie(e)&&(r=e,e=""),q(t)?(n=t.type,i=t.event,o=t.update,s=t.publishNonRefinedEvent,r||(r=t.action),a=t.refineEvent):(n=t,i=e);function l(c){return c.toLowerCase()}i=l(i||n);var u=a?l(n):i;Bl[n]||(fr(Mm.test(n)&&Mm.test(i)),a&&fr(i!==n),Bl[n]={actionType:n,refinedEventType:i,nonRefinedEventType:u,update:o,action:r,refineEvent:a},Th[i]=1,a&&s&&(Th[u]=1),wh[u]=n)}function dx(t,e){xu.register(t,e)}function aO(t){var e=xu.get(t);if(e)return e.getDimensionsInfo?e.getDimensionsInfo():e.dimensions.slice()}function oO(t,e){}function px(t,e){hd(Fl,t,e,ex,"layout")}function cn(t,e){hd(Fl,t,e,tx,"visual")}var Om=[];function hd(t,e,r,n,i){if((ie(e)||q(e))&&(r=e,e=n),!(le(Om,r)>=0)){Om.push(r);var a=US.wrapStageHandler(r,i);a.__prio=e,a.__raw=r,t.push(a)}}function vd(t,e){Mh[t]=e}function sO(t){P0({createCanvas:t})}function gx(t,e,r){var n=JS("registerMap");n&&n(t,e,r)}function lO(t){var e=JS("getMap");return e&&e(t)}var mx=lL;cn(ad,K2);cn(Du,Q2);cn(Du,J2);cn(ad,hI);cn(Du,vI);cn(rx,OI);cd(FS);fd(HI,q2);vd("default",eI);ri({type:Yn,event:Yn,update:Yn},Je);ri({type:Us,event:Us,update:Us},Je);ri({type:gl,event:yv,update:gl,action:Je,refineEvent:dd,publishNonRefinedEvent:!0});ri({type:qf,event:yv,update:qf,action:Je,refineEvent:dd,publishNonRefinedEvent:!0});ri({type:ml,event:yv,update:ml,action:Je,refineEvent:dd,publishNonRefinedEvent:!0});function dd(t,e,r,n){return{eventContent:{selected:MA(r),isFromClick:e.isFromClick||!1}}}ud("default",{});ud("dark",jS);var uO={},km=[],cO={registerPreprocessor:cd,registerProcessor:fd,registerPostInit:hx,registerPostUpdate:vx,registerUpdateLifecycle:Mu,registerAction:ri,registerCoordinateSystem:dx,registerLayout:px,registerVisual:cn,registerTransform:mx,registerLoading:vd,registerMap:gx,registerImpl:kI,PRIORITY:nx,ComponentModel:fe,ComponentView:yt,SeriesModel:ft,ChartView:mt,registerComponentModel:function(t){fe.registerClass(t)},registerComponentView:function(t){yt.registerClass(t)},registerSeriesModel:function(t){ft.registerClass(t)},registerChartView:function(t){mt.registerClass(t)},registerCustomSeries:function(t,e){},registerSubTypeDefaulter:function(t,e){fe.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){PS(t,e)}};function vr(t){if(W(t)){C(t,function(e){vr(e)});return}le(km,t)>=0||(km.push(t),ie(t)&&(t={install:t}),t.install(cO))}var fO=(function(t){G(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.hasSymbolVisual=!0,r}return e.prototype.getInitialData=function(r,n){return wu(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var r=this.option.progressive;return r??(this.option.large?5e3:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var r=this.option.progressiveThreshold;return r??(this.option.large?1e4:this.get("progressiveThreshold"))},e.prototype.brushSelector=function(r,n,i){return i.point(n.getItemLayout(r))},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:Z.color.primary}},universalTransition:{divideShape:"clone"}},e})(ft),yx=4,hO=(function(){function t(){}return t})(),vO=(function(t){G(e,t);function e(r){var n=t.call(this,r)||this;return n._off=0,n.hoverDataIdx=-1,n}return e.prototype.getDefaultShape=function(){return new hO},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.buildPath=function(r,n){var i=n.points,a=n.size,o=this.symbolProxy,s=o.shape,l=r.getContext?r.getContext():r,u=l&&a[0]<yx,c=this.softClipShape,f;if(u){this._ctx=l;return}for(this._ctx=null,f=this._off;f<i.length;){var v=i[f++],h=i[f++];isNaN(v)||isNaN(h)||c&&!c.contain(v,h)||(s.x=v-a[0]/2,s.y=h-a[1]/2,s.width=a[0],s.height=a[1],o.buildPath(r,s,!0))}this.incremental&&(this._off=f,this.notClear=!0)},e.prototype.afterBrush=function(){var r=this.shape,n=r.points,i=r.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(r,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 c=u*2,f=a[c]-s/2,v=a[c+1]-l/2;if(r>=f&&n>=v&&r<=f+s&&n<=v+l)return u}return-1},e.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect();if(r=i[0],n=i[1],a.contain(r,n)){var o=this.hoverDataIdx=this.findDataIndex(r,n);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var r=this._rect;if(!r){for(var n=this.shape,i=n.points,a=n.size,o=a[0],s=a[1],l=1/0,u=1/0,c=-1/0,f=-1/0,v=0;v<i.length;){var h=i[v++],d=i[v++];l=Math.min(h,l),c=Math.max(h,c),u=Math.min(d,u),f=Math.max(d,f)}r=this._rect=new re(l-o/2,u-s/2,c-l+o,f-u+s)}return r},e})(ge),dO=(function(){function t(){this.group=new Ne}return t.prototype.updateData=function(e,r){this._clear();var n=this._create();n.setShape({points:e.getLayout("points")}),this._setCommon(n,e,r)},t.prototype.updateLayout=function(e){var r=e.getLayout("points");this.group.eachChild(function(n){if(n.startIndex!=null){var i=(n.endIndex-n.startIndex)*2,a=n.startIndex*4*2;r=new Float32Array(r.buffer,a,i)}n.setShape("points",r),n.reset()})},t.prototype.incrementalPrepareUpdate=function(e){this._clear()},t.prototype.incrementalUpdate=function(e,r,n){var i=this._newAdded[0],a=r.getLayout("points"),o=i&&i.shape.points;if(o&&o.length<2e4){var s=o.length,l=new Float32Array(s+a.length);l.set(o),l.set(a,s),i.endIndex=e.end,i.setShape({points:l})}else{this._newAdded=[];var u=this._create();u.startIndex=e.start,u.endIndex=e.end,u.incremental=!0,u.setShape({points:a}),this._setCommon(u,r,n)}},t.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},t.prototype._create=function(){var e=new vO({cursor:"default"});return e.ignoreCoarsePointer=!0,this.group.add(e),this._newAdded.push(e),e},t.prototype._setCommon=function(e,r,n){var i=r.hostModel;n=n||{};var a=r.getVisual("symbolSize");e.setShape("size",a instanceof Array?a:[a,a]),e.softClipShape=n.clipShape||null,e.symbolProxy=qi(r.getVisual("symbol"),0,0,0,0),e.setColor=e.symbolProxy.setColor;var o=e.shape.size[0]<yx;e.useStyle(i.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var s=r.getVisual("style"),l=s&&s.fill;l&&e.setColor(l);var u=he(e);u.seriesIndex=i.seriesIndex,e.on("mousemove",function(c){u.dataIndex=null;var f=e.hoverDataIdx;f>=0&&(u.dataIndex=f+(e.startIndex||0))})},t.prototype.remove=function(){this._clear()},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t})(),pO=(function(t){G(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,i){var a=r.getData(),o=this._updateSymbolDraw(a,r);o.updateData(a,{clipShape:this._getClipShape(r)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(r,n,i){var a=r.getData(),o=this._updateSymbolDraw(a,r);o.incrementalPrepareUpdate(a),this._finished=!1},e.prototype.incrementalRender=function(r,n,i){this._symbolDraw.incrementalUpdate(r,n.getData(),{clipShape:this._getClipShape(n)}),this._finished=r.end===n.getData().count()},e.prototype.updateTransform=function(r,n,i){var a=r.getData();if(this.group.dirty(),!this._finished||a.count()>1e4)return{update:!0};var o=uS("").reset(r,n,i);o.progress&&o.progress({start:0,end:a.count(),count:a.count()},a),this._symbolDraw.updateLayout(a)},e.prototype.eachRendered=function(r){this._symbolDraw&&this._symbolDraw.eachRendered(r)},e.prototype._getClipShape=function(r){if(r.get("clip",!0)){var n=r.coordinateSystem;return n&&n.getArea&&n.getArea(.1)}},e.prototype._updateSymbolDraw=function(r,n){var i=this._symbolDraw,a=n.pipelineContext,o=a.large;return(!i||o!==this._isLargeDraw)&&(i&&i.remove(),i=this._symbolDraw=o?new dO:new GL,this._isLargeDraw=o,this.group.removeAll()),this.group.add(i.group),i},e.prototype.remove=function(r,n){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e})(mt),_x={left:0,right:0,top:0,bottom:0},Hl=["25%","25%"],gO=(function(t){G(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.mergeDefaultAndTheme=function(r,n){var i=Lo(r.outerBounds);t.prototype.mergeDefaultAndTheme.apply(this,arguments),i&&r.outerBounds&&on(r.outerBounds,i)},e.prototype.mergeOption=function(r,n){t.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&r.outerBounds&&on(this.option.outerBounds,r.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:_x,outerBoundsContain:"all",outerBoundsClampWidth:Hl[0],outerBoundsClampHeight:Hl[1],backgroundColor:Z.color.transparent,borderWidth:1,borderColor:Z.color.neutral30},e})(fe),bx=(function(){function t(){}return t.prototype.getNeedCrossZero=function(){var e=this.option;return!e.scale},t.prototype.getCoordSysModel=function(){},t})(),Ah=(function(t){G(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Et).models[0]},e.type="cartesian2dAxis",e})(fe);It(Ah,bx);var Sx={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:Z.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:Z.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:Z.color.axisSplitLine,width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:[Z.color.backgroundTint,Z.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:Z.color.neutral00,borderColor:Z.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:"auto"}},mO=ue({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto",show:"auto"},axisLabel:{interval:"auto"}},Sx),pd=ue({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:Z.color.axisMinorSplitLine,width:1}}},Sx),yO=ue({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},pd),_O=pe({logBase:10},pd);const bO={category:mO,value:pd,time:yO,log:_O};var SO=0,Eh=(function(){function t(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++SO,this._onCollect=e.onCollect}return t.createByAxisModel=function(e){var r=e.option,n=r.data,i=n&&X(n,xO);return new t({categories:i,needCollect:!i,deduplication:r.dedplication!==!1})},t.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},t.prototype.parseAndCollect=function(e){var r,n=this._needCollect;if(!Y(e)&&!n)return e;if(n&&!this._deduplication)return r=this.categories.length,this.categories[r]=e,this._onCollect&&this._onCollect(e,r),r;var i=this._getOrCreateMap();return r=i.get(e),r==null&&(n?(r=this.categories.length,this.categories[r]=e,i.set(e,r),this._onCollect&&this._onCollect(e,r)):r=NaN),r},t.prototype._getOrCreateMap=function(){return this._map||(this._map=ae(this.categories))},t})();function xO(t){return q(t)&&t.value!=null?t.value:t+""}var wO={value:1,category:1,time:1,log:1},TO=null;function CO(){return TO}function Nm(t,e,r,n){C(wO,function(i,a){var o=ue(ue({},bO[a],!0),n,!0),s=(function(l){G(u,l);function u(){var c=l!==null&&l.apply(this,arguments)||this;return c.type=e+"Axis."+a,c}return u.prototype.mergeDefaultAndTheme=function(c,f){var v=no(this),h=v?Lo(c):{},d=f.getTheme();ue(c,d.get(a+"Axis")),ue(c,this.getDefaultOption()),c.type=Bm(c),v&&on(c,h,v)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=Eh.createByAxisModel(this))},u.prototype.getCategories=function(c){var f=this.option;if(f.type==="category")return c?f.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.prototype.updateAxisBreaks=function(c){return{breaks:[]}},u.type=e+"Axis."+a,u.defaultOption=o,u})(r);t.registerComponentModel(s)}),t.registerSubTypeDefaulter(e+"Axis",Bm)}function Bm(t){return t.type||(t.data?"category":"value")}function Rh(t){return t.type==="interval"||t.type==="log"}function DO(t,e,r,n,i){var a={},o=a.interval=hv(e/r,!0);n!=null&&o<n&&(o=a.interval=n),i!=null&&o>i&&(o=a.interval=i);var s=a.intervalPrecision=lo(o),l=a.niceTickExtent=[We(Math.ceil(t[0]/o)*o,s),We(Math.floor(t[1]/o)*o,s)];return MO(l,t),a}function jc(t){var e=Math.pow(10,su(t)),r=t/e;return r?r===2?r=3:r===3?r=5:r*=2:r=1,We(r*e)}function lo(t){return Hi(t)+2}function Fm(t,e,r){t[e]=Math.max(Math.min(t[e],r[1]),r[0])}function MO(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),Fm(t,0,e),Fm(t,1,e),t[0]>t[1]&&(t[0]=t[1])}function gd(t,e){return t>=e[0]&&t<=e[1]}var AO=(function(){function t(){this.normalize=zm,this.scale=Hm}return t.prototype.updateMethods=function(e){e.hasBreaks()?(this.normalize=de(e.normalize,e),this.scale=de(e.scale,e)):(this.normalize=zm,this.scale=Hm)},t})();function zm(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function Hm(t,e){return t*(e[1]-e[0])+e[0]}function Lh(t,e,r){var n=Math.log(t);return[Math.log(r?e[0]:Math.max(0,e[0]))/n,Math.log(r?e[1]:Math.max(0,e[1]))/n]}var fn=(function(){function t(e){this._calculator=new AO,this._setting=e||{},this._extent=[1/0,-1/0]}return t.prototype.getSetting=function(e){return this._setting[e]},t.prototype._innerUnionExtent=function(e){var r=this._extent;this._innerSetExtent(e[0]<r[0]?e[0]:r[0],e[1]>r[1]?e[1]:r[1])},t.prototype.unionExtentFromData=function(e,r){this._innerUnionExtent(e.getApproximateExtent(r))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(e,r){this._innerSetExtent(e,r)},t.prototype._innerSetExtent=function(e,r){var n=this._extent;isNaN(e)||(n[0]=e),isNaN(r)||(n[1]=r),this._brkCtx&&this._brkCtx.update(n)},t.prototype.setBreaksFromOption=function(e){},t.prototype._innerSetBreak=function(e){this._brkCtx&&(this._brkCtx.setBreaks(e),this._calculator.updateMethods(this._brkCtx),this._brkCtx.update(this._extent))},t.prototype._innerGetBreaks=function(){return this._brkCtx?this._brkCtx.breaks:[]},t.prototype.hasBreaks=function(){return this._brkCtx?this._brkCtx.hasBreaks():!1},t.prototype._getExtentSpanWithBreaks=function(){return this._brkCtx&&this._brkCtx.hasBreaks()?this._brkCtx.getExtentSpan():this._extent[1]-this._extent[0]},t.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(e){this._isBlank=e},t})();eu(fn);var xx=(function(t){G(e,t);function e(r){var n=t.call(this,r)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new Eh({})),W(i)&&(i=new Eh({categories:X(i,function(a){return q(a)?a.value:a})})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return e.prototype.parse=function(r){return r==null?NaN:Y(r)?this._ordinalMeta.getOrdinal(r):Math.round(r)},e.prototype.contain=function(r){return gd(r,this._extent)&&r>=0&&r<this._ordinalMeta.categories.length},e.prototype.normalize=function(r){return r=this._getTickNumber(r),this._calculator.normalize(r,this._extent)},e.prototype.scale=function(r){return r=Math.round(this._calculator.scale(r,this._extent)),this.getRawOrdinalNumber(r)},e.prototype.getTicks=function(){for(var r=[],n=this._extent,i=n[0];i<=n[1];)r.push({value:i}),i++;return r},e.prototype.getMinorTicks=function(r){},e.prototype.setSortInfo=function(r){if(r==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var n=r.ordinalNumbers,i=this._ordinalNumbersByTick=[],a=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,n.length);o<l;++o){var u=n[o];i[o]=u,a[u]=o}for(var c=0;o<s;++o){for(;a[c]!=null;)c++;i.push(c),a[c]=o}},e.prototype._getTickNumber=function(r){var n=this._ticksByOrdinalNumber;return n&&r>=0&&r<n.length?n[r]:r},e.prototype.getRawOrdinalNumber=function(r){var n=this._ordinalNumbersByTick;return n&&r>=0&&r<n.length?n[r]:r},e.prototype.getLabel=function(r){if(!this.isBlank()){var n=this.getRawOrdinalNumber(r.value),i=this._ordinalMeta.categories[n];return i==null?"":i+""}},e.prototype.count=function(){return this._extent[1]-this._extent[0]+1},e.prototype.isInExtentRange=function(r){return r=this._getTickNumber(r),this._extent[0]<=r&&this._extent[1]>=r},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e})(fn);fn.registerClass(xx);var Fr=We,Vi=(function(t){G(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="interval",r._interval=0,r._intervalPrecision=2,r}return e.prototype.parse=function(r){return r==null||r===""?NaN:Number(r)},e.prototype.contain=function(r){return gd(r,this._extent)},e.prototype.normalize=function(r){return this._calculator.normalize(r,this._extent)},e.prototype.scale=function(r){return this._calculator.scale(r,this._extent)},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(r){this._interval=r,this._niceExtent=this._extent.slice(),this._intervalPrecision=lo(r)},e.prototype.getTicks=function(r){r=r||{};var n=this._interval,i=this._extent,a=this._niceExtent,o=this._intervalPrecision,s=Cl(),l=[];if(!n)return l;r.breakTicks;var u=1e4;i[0]<a[0]&&(r.expandToNicedExtent?l.push({value:Fr(a[0]-n,o)}):l.push({value:i[0]}));for(var c=function(d,p){return Math.round((p-d)/n)},f=a[0];f<=a[1];){if(l.push({value:f}),f=Fr(f+n,o),this._brkCtx){var v=this._brkCtx.calcNiceTickMultiple(f,c);v>=0&&(f=Fr(f+v*n,o))}if(l.length>0&&f===l[l.length-1].value)break;if(l.length>u)return[]}var h=l.length?l[l.length-1].value:a[1];return i[1]>h&&(r.expandToNicedExtent?l.push({value:Fr(h+n,o)}):l.push({value:i[1]})),r.breakTicks,l},e.prototype.getMinorTicks=function(r){for(var n=this.getTicks({expandToNicedExtent:!0}),i=[],a=this.getExtent(),o=1;o<n.length;o++){var s=n[o],l=n[o-1];if(!(l.break||s.break)){for(var u=0,c=[],f=s.value-l.value,v=f/r,h=lo(v);u<r-1;){var d=Fr(l.value+(u+1)*v,h);d>a[0]&&d<a[1]&&c.push(d),u++}var p=Cl();p&&p.pruneTicksByBreak("auto",c,this._getNonTransBreaks(),function(g){return g},this._interval,a),i.push(c)}}return i},e.prototype._getNonTransBreaks=function(){return this._brkCtx?this._brkCtx.breaks:[]},e.prototype.getLabel=function(r,n){if(r==null)return"";var i=n&&n.precision;i==null?i=Hi(r.value)||0:i==="auto"&&(i=this._intervalPrecision);var a=Fr(r.value,i,!0);return $v(a)},e.prototype.calcNiceTicks=function(r,n,i){r=r||5;var a=this._extent.slice(),o=this._getExtentSpanWithBreaks();if(isFinite(o)){o<0&&(o=-o,a.reverse(),this._innerSetExtent(a[0],a[1]),a=this._extent.slice());var s=DO(a,o,r,n,i);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},e.prototype.calcNiceExtent=function(r){var n=this._extent.slice();if(n[0]===n[1])if(n[0]!==0){var i=Math.abs(n[0]);r.fixMax||(n[1]+=i/2),n[0]-=i/2}else n[1]=1;var a=n[1]-n[0];isFinite(a)||(n[0]=0,n[1]=1),this._innerSetExtent(n[0],n[1]),n=this._extent.slice(),this.calcNiceTicks(r.splitNumber,r.minInterval,r.maxInterval);var o=this._interval,s=this._intervalPrecision;r.fixMin||(n[0]=Fr(Math.floor(n[0]/o)*o,s)),r.fixMax||(n[1]=Fr(Math.ceil(n[1]/o)*o,s)),this._innerSetExtent(n[0],n[1])},e.prototype.setNiceExtent=function(r,n){this._niceExtent=[r,n]},e.type="interval",e})(fn);fn.registerClass(Vi);var EO=function(t,e,r,n){for(;r<n;){var i=r+n>>>1;t[i][1]<e?r=i+1:n=i}return r},Tx=(function(t){G(e,t);function e(r){var n=t.call(this,r)||this;return n.type="time",n}return e.prototype.getLabel=function(r){var n=this.getSetting("useUTC");return Eo(r.value,vg[BR(za(this._minLevelUnit))]||vg.second,n,this.getSetting("locale"))},e.prototype.getFormattedLabel=function(r,n,i){var a=this.getSetting("useUTC"),o=this.getSetting("locale");return FR(r,n,i,o,a)},e.prototype.getTicks=function(r){var n=this._interval,i=this._extent,a=[];if(!n)return a;var o=this.getSetting("useUTC"),s=Dl(i[1],o);a.push({value:i[0],time:{level:0,upperTimeUnit:s,lowerTimeUnit:s}});var l=BO(this._minLevelUnit,this._approxInterval,o,i,this._getExtentSpanWithBreaks(),this._brkCtx);a=a.concat(l);var u=Dl(i[1],o);a.push({value:i[1],time:{level:0,upperTimeUnit:u,lowerTimeUnit:u}}),this.getSetting("useUTC");var c=qn.length-1,f=0;return C(a,function(v){c=Math.min(c,le(qn,v.time.upperTimeUnit)),f=Math.max(f,v.time.level)}),a},e.prototype.calcNiceExtent=function(r){var n=this.getExtent();if(n[0]===n[1]&&(n[0]-=Rt,n[1]+=Rt),n[1]===-1/0&&n[0]===1/0){var i=new Date;n[1]=+new Date(i.getFullYear(),i.getMonth(),i.getDate()),n[0]=n[1]-Rt}this._innerSetExtent(n[0],n[1]),this.calcNiceTicks(r.splitNumber,r.minInterval,r.maxInterval)},e.prototype.calcNiceTicks=function(r,n,i){r=r||10;var a=this._getExtentSpanWithBreaks();this._approxInterval=a/r,n!=null&&this._approxInterval<n&&(this._approxInterval=n),i!=null&&this._approxInterval>i&&(this._approxInterval=i);var o=_s.length,s=Math.min(EO(_s,this._approxInterval,0,o),o-1);this._interval=_s[s][1],this._intervalPrecision=lo(this._interval),this._minLevelUnit=_s[Math.max(s-1,0)][0]},e.prototype.parse=function(r){return me(r)?r:+Er(r)},e.prototype.contain=function(r){return gd(r,this._extent)},e.prototype.normalize=function(r){return this._calculator.normalize(r,this._extent)},e.prototype.scale=function(r){return this._calculator.scale(r,this._extent)},e.type="time",e})(Vi),_s=[["second",Fv],["minute",zv],["hour",Fa],["quarter-day",Fa*6],["half-day",Fa*12],["day",Rt*1.2],["half-week",Rt*3.5],["week",Rt*7],["month",Rt*31],["quarter",Rt*95],["half-year",hg/2],["year",hg]];function RO(t,e,r,n){return Ml(new Date(e),t,n).getTime()===Ml(new Date(r),t,n).getTime()}function LO(t,e){return t/=Rt,t>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function PO(t){var e=30*Rt;return t/=e,t>6?6:t>3?3:t>2?2:1}function IO(t){return t/=Fa,t>12?12:t>6?6:t>3.5?4:t>2?2:1}function Um(t,e){return t/=e?zv:Fv,t>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function OO(t){return hv(t,!0)}function kO(t,e,r){var n=Math.max(0,le(qn,e)-1);return Ml(new Date(t),qn[n],r).getTime()}function NO(t,e){var r=new Date(0);r[t](1);var n=r.getTime();r[t](1+e);var i=r.getTime()-n;return function(a,o){return Math.max(0,Math.round((o-a)/i))}}function BO(t,e,r,n,i,a){var o=1e4,s=IR,l=0;function u(E,L,k,N,$,B,U){for(var j=NO($,E),H=L,z=new Date(H);H<k&&H<=n[1]&&(U.push({value:H}),!(l++>o));)if(z[$](z[N]()+E),H=z.getTime(),a){var J=a.calcNiceTickMultiple(H,j);J>0&&(z[$](z[N]()+J*E),H=z.getTime())}U.push({value:H,notAdd:!0})}function c(E,L,k){var N=[],$=!L.length;if(!RO(za(E),n[0],n[1],r)){$&&(L=[{value:kO(n[0],E,r)},{value:n[1]}]);for(var B=0;B<L.length-1;B++){var U=L[B].value,j=L[B+1].value;if(U!==j){var H=void 0,z=void 0,J=void 0,ce=!1;switch(E){case"year":H=Math.max(1,Math.round(e/Rt/365)),z=Vb(r),J=zR(r);break;case"half-year":case"quarter":case"month":H=PO(e),z=Hv(r),J=Wb(r);break;case"week":case"half-week":case"day":H=LO(e),z=Uv(r),J=jb(r),ce=!0;break;case"half-day":case"quarter-day":case"hour":H=IO(e),z=Gv(r),J=$b(r);break;case"minute":H=Um(e,!0),z=Vv(r),J=Yb(r);break;case"second":H=Um(e,!1),z=Wv(r),J=qb(r);break;case"millisecond":H=OO(e),z=jv(r),J=Xb(r);break}j>=n[0]&&U<=n[1]&&u(H,U,j,z,J,ce,N),E==="year"&&k.length>1&&B===0&&k.unshift({value:k[0].value-H})}}for(var B=0;B<N.length;B++)k.push(N[B])}}for(var f=[],v=[],h=0,d=0,p=0;p<s.length;++p){var g=za(s[p]);if(NR(s[p])){c(s[p],f[f.length-1]||[],v);var m=s[p+1]?za(s[p+1]):null;if(g!==m){if(v.length){d=h,v.sort(function(E,L){return E.value-L.value});for(var y=[],_=0;_<v.length;++_){var b=v[_].value;(_===0||v[_-1].value!==b)&&(y.push(v[_]),b>=n[0]&&b<=n[1]&&h++)}var S=i/e;if(h>S*1.5&&d>S/1.5||(f.push(y),h>S||t===s[p]))break}v=[]}}}for(var x=Re(X(f,function(E){return Re(E,function(L){return L.value>=n[0]&&L.value<=n[1]&&!L.notAdd})}),function(E){return E.length>0}),w=[],T=x.length-1,p=0;p<x.length;++p)for(var M=x[p],A=0;A<M.length;++A){var D=Dl(M[A].value,r);w.push({value:M[A].value,time:{level:T-p,upperTimeUnit:D,lowerTimeUnit:D}})}w.sort(function(E,L){return E.value-L.value});for(var P=[],p=0;p<w.length;++p)(p===0||w[p].value!==w[p-1].value)&&P.push(w[p]);return P}fn.registerClass(Tx);var Ph=We,FO=Math.floor,zO=Math.ceil,bs=Math.pow,Ss=Math.log,Cx=(function(t){G(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="log",r.base=10,r._originalScale=new Vi,r}return e.prototype.getTicks=function(r){r=r||{};var n=this._extent.slice(),i=this._originalScale.getExtent(),a=t.prototype.getTicks.call(this,r),o=this.base;return this._originalScale._innerGetBreaks(),X(a,function(s){var l=s.value,u=null,c=bs(o,l);l===n[0]&&this._fixMin?u=i[0]:l===n[1]&&this._fixMax&&(u=i[1]);var f;return u!=null&&(c=$c(c,u)),{value:c,break:f}},this)},e.prototype._getNonTransBreaks=function(){return this._originalScale._innerGetBreaks()},e.prototype.setExtent=function(r,n){this._originalScale.setExtent(r,n);var i=Lh(this.base,[r,n]);t.prototype.setExtent.call(this,i[0],i[1])},e.prototype.getExtent=function(){var r=this.base,n=t.prototype.getExtent.call(this);n[0]=bs(r,n[0]),n[1]=bs(r,n[1]);var i=this._originalScale.getExtent();return this._fixMin&&(n[0]=$c(n[0],i[0])),this._fixMax&&(n[1]=$c(n[1],i[1])),n},e.prototype.unionExtentFromData=function(r,n){this._originalScale.unionExtentFromData(r,n);var i=Lh(this.base,r.getApproximateExtent(n),!0);this._innerUnionExtent(i)},e.prototype.calcNiceTicks=function(r){r=r||10;var n=this._extent.slice(),i=this._getExtentSpanWithBreaks();if(!(!isFinite(i)||i<=0)){var a=D_(i),o=r/i*a;for(o<=.5&&(a*=10);!isNaN(a)&&Math.abs(a)<1&&Math.abs(a)>0;)a*=10;var s=[Ph(zO(n[0]/a)*a),Ph(FO(n[1]/a)*a)];this._interval=a,this._intervalPrecision=lo(a),this._niceExtent=s}},e.prototype.calcNiceExtent=function(r){t.prototype.calcNiceExtent.call(this,r),this._fixMin=r.fixMin,this._fixMax=r.fixMax},e.prototype.contain=function(r){return r=Ss(r)/Ss(this.base),t.prototype.contain.call(this,r)},e.prototype.normalize=function(r){return r=Ss(r)/Ss(this.base),t.prototype.normalize.call(this,r)},e.prototype.scale=function(r){return r=t.prototype.scale.call(this,r),bs(this.base,r)},e.prototype.setBreaksFromOption=function(r){},e.type="log",e})(Vi);function $c(t,e){return Ph(t,Hi(e))}fn.registerClass(Cx);var HO=(function(){function t(e,r,n){this._prepareParams(e,r,n)}return t.prototype._prepareParams=function(e,r,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var i=this._isOrdinal=e.type==="ordinal";this._needCrossZero=e.type==="interval"&&r.getNeedCrossZero&&r.getNeedCrossZero();var a=r.get("min",!0);a==null&&(a=r.get("startValue",!0));var o=this._modelMinRaw=a;ie(o)?this._modelMinNum=xs(e,o({min:n[0],max:n[1]})):o!=="dataMin"&&(this._modelMinNum=xs(e,o));var s=this._modelMaxRaw=r.get("max",!0);if(ie(s)?this._modelMaxNum=xs(e,s({min:n[0],max:n[1]})):s!=="dataMax"&&(this._modelMaxNum=xs(e,s)),i)this._axisDataLen=r.getCategories().length;else{var l=r.get("boundaryGap"),u=W(l)?l:[l||0,l||0];typeof u[0]=="boolean"||typeof u[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[nn(u[0],1),nn(u[1],1)]}},t.prototype.calculate=function(){var e=this._isOrdinal,r=this._dataMin,n=this._dataMax,i=this._axisDataLen,a=this._boundaryGapInner,o=e?null:n-r||Math.abs(r),s=this._modelMinRaw==="dataMin"?r:this._modelMinNum,l=this._modelMaxRaw==="dataMax"?n:this._modelMaxNum,u=s!=null,c=l!=null;s==null&&(s=e?i?0:NaN:r-a[0]*o),l==null&&(l=e?i?i-1:NaN:n+a[1]*o),(s==null||!isFinite(s))&&(s=NaN),(l==null||!isFinite(l))&&(l=NaN);var f=Ni(s)||Ni(l)||e&&!i;this._needCrossZero&&(s>0&&l>0&&!u&&(s=0),s<0&&l<0&&!c&&(l=0));var v=this._determinedMin,h=this._determinedMax;return v!=null&&(s=v,u=!0),h!=null&&(l=h,c=!0),{min:s,max:l,minFixed:u,maxFixed:c,isBlank:f}},t.prototype.modifyDataMinMax=function(e,r){this[GO[e]]=r},t.prototype.setDeterminedMinMax=function(e,r){var n=UO[e];this[n]=r},t.prototype.freeze=function(){this.frozen=!0},t})(),UO={min:"_determinedMin",max:"_determinedMax"},GO={min:"_dataMin",max:"_dataMax"};function VO(t,e,r){var n=t.rawExtentInfo;return n||(n=new HO(t,e,r),t.rawExtentInfo=n,n)}function xs(t,e){return e==null?null:Ni(e)?NaN:t.parse(e)}function Dx(t,e){var r=t.type,n=VO(t,e,t.getExtent()).calculate();t.setBlank(n.isBlank);var i=n.min,a=n.max,o=e.ecModel;if(o&&r==="time"){var s=fS("bar",o),l=!1;if(C(s,function(f){l=l||f.getBaseAxis()===e.axis}),l){var u=hS(s),c=WO(i,a,e,u);i=c.min,a=c.max}}return{extent:[i,a],fixMin:n.minFixed,fixMax:n.maxFixed}}function WO(t,e,r,n){var i=r.axis.getExtent(),a=Math.abs(i[1]-i[0]),o=nP(n,r.axis);if(o===void 0)return{min:t,max:e};var s=1/0;C(o,function(h){s=Math.min(h.offset,s)});var l=-1/0;C(o,function(h){l=Math.max(h.offset+h.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=e-t,f=1-(s+l)/a,v=c/f-c;return e+=v*(l/u),t-=v*(s/u),{min:t,max:e}}function Ih(t,e){var r=e,n=Dx(t,r),i=n.extent,a=r.get("splitNumber");t instanceof Cx&&(t.base=r.get("logBase"));var o=t.type,s=r.get("interval"),l=o==="interval"||o==="time";t.setBreaksFromOption(Ex(r)),t.setExtent(i[0],i[1]),t.calcNiceExtent({splitNumber:a,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:l?r.get("minInterval"):null,maxInterval:l?r.get("maxInterval"):null}),s!=null&&t.setInterval&&t.setInterval(s)}function Mx(t,e){if(e=e||t.get("type"),e)switch(e){case"category":return new xx({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new Tx({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(fn.getClass(e)||Vi)}}function jO(t){var e=t.scale.getExtent(),r=e[0],n=e[1];return!(r>0&&n>0||r<0&&n<0)}function Po(t){var e=t.getLabelModel().get("formatter");if(t.type==="time"){var r=OR(e);return function(i,a){return t.scale.getFormattedLabel(i,a,r)}}else{if(Y(e))return function(i){var a=t.scale.getLabel(i),o=e.replace("{value}",a??"");return o};if(ie(e)){if(t.type==="category")return function(i,a){return e(Ul(t,i),i.value-t.scale.getExtent()[0],null)};var n=Cl();return function(i,a){var o=null;return n&&(o=n.makeAxisLabelFormatterParamBreak(o,i.break)),e(Ul(t,i),a,o)}}else return function(i){return t.scale.getLabel(i)}}}function Ul(t,e){return t.type==="category"?t.scale.getLabel(e):e.value}function md(t){var e=t.get("interval");return e??"auto"}function Ax(t){return t.type==="category"&&md(t.getLabelModel())===0}function $O(t,e){var r={};return C(t.mapDimensionsAll(e),function(n){r[zb(t,n)]=!0}),Se(r)}function Wi(t){return t==="middle"||t==="center"}function uo(t){return t.getShallow("show")}function Ex(t){var e=t.get("breaks",!0);e==null}var YO=(function(){function t(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return t.prototype.getAxis=function(e){return this._axes[e]},t.prototype.getAxes=function(){return X(this._dimList,function(e){return this._axes[e]},this)},t.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),Re(this.getAxes(),function(r){return r.scale.type===e})},t.prototype.addAxis=function(e){var r=e.dim;this._axes[r]=e,this._dimList.push(r)},t})(),Oh=["x","y"];function Gm(t){return(t.type==="interval"||t.type==="time")&&!t.hasBreaks()}var qO=(function(t){G(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="cartesian2d",r.dimensions=Oh,r}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var r=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!Gm(r)||!Gm(n))){var i=r.getExtent(),a=n.getExtent(),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 c=(s[0]-o[0])/l,f=(s[1]-o[1])/u,v=o[0]-i[0]*c,h=o[1]-a[0]*f,d=this._transform=[c,0,0,f,v,h];this._invTransform=Jn([],d)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(r){var n=this.getAxis("x"),i=this.getAxis("y");return n.contain(n.toLocalCoord(r[0]))&&i.contain(i.toLocalCoord(r[1]))},e.prototype.containData=function(r){return this.getAxis("x").containData(r[0])&&this.getAxis("y").containData(r[1])},e.prototype.containZone=function(r,n){var i=this.dataToPoint(r),a=this.dataToPoint(n),o=this.getArea(),s=new re(i[0],i[1],a[0]-i[0],a[1]-i[1]);return o.intersect(s)},e.prototype.dataToPoint=function(r,n,i){i=i||[];var a=r[0],o=r[1];if(this._transform&&a!=null&&isFinite(a)&&o!=null&&isFinite(o))return et(i,r,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(r,n){var i=this.getAxis("x").scale,a=this.getAxis("y").scale,o=i.getExtent(),s=a.getExtent(),l=i.parse(r[0]),u=a.parse(r[1]);return n=n||[],n[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),n[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),n},e.prototype.pointToData=function(r,n,i){if(i=i||[],this._invTransform)return et(i,r,this._invTransform);var a=this.getAxis("x"),o=this.getAxis("y");return i[0]=a.coordToData(a.toLocalCoord(r[0]),n),i[1]=o.coordToData(o.toLocalCoord(r[1]),n),i},e.prototype.getOtherAxis=function(r){return this.getAxis(r.dim==="x"?"y":"x")},e.prototype.getArea=function(r){r=r||0;var n=this.getAxis("x").getGlobalExtent(),i=this.getAxis("y").getGlobalExtent(),a=Math.min(n[0],n[1])-r,o=Math.min(i[0],i[1])-r,s=Math.max(n[0],n[1])-a+r,l=Math.max(i[0],i[1])-o+r;return new re(a,o,s,l)},e})(YO),XO=xe(),Ga=xe(),Wt={estimate:1,determine:2};function Gl(t){return{out:{noPxChangeTryDetermine:[]},kind:t}}function Rx(t,e){var r=X(e,function(n){return t.scale.parse(n)});return t.type==="time"&&r.length>0&&(r.sort(),r.unshift(r[0]),r.push(r[r.length-1])),r}function ZO(t,e){var r=t.getLabelModel().get("customValues");if(r){var n=Po(t),i=t.scale.getExtent(),a=Rx(t,r),o=Re(a,function(s){return s>=i[0]&&s<=i[1]});return{labels:X(o,function(s){var l={value:s};return{formattedLabel:n(l),rawLabel:t.scale.getLabel(l),tickValue:s,time:void 0,break:void 0}})}}return t.type==="category"?QO(t,e):ek(t)}function KO(t,e,r){var n=t.getTickModel().get("customValues");if(n){var i=t.scale.getExtent(),a=Rx(t,n);return{ticks:Re(a,function(o){return o>=i[0]&&o<=i[1]})}}return t.type==="category"?JO(t,e):{ticks:X(t.scale.getTicks(r),function(o){return o.value})}}function QO(t,e){var r=t.getLabelModel(),n=Lx(t,r,e);return!r.get("show")||t.scale.isBlank()?{labels:[]}:n}function Lx(t,e,r){var n=rk(t),i=md(e),a=r.kind===Wt.estimate;if(!a){var o=Ix(n,i);if(o)return o}var s,l;ie(i)?s=Nx(t,i):(l=i==="auto"?nk(t,r):i,s=kx(t,l));var u={labels:s,labelCategoryInterval:l};return a?r.out.noPxChangeTryDetermine.push(function(){return kh(n,i,u),!0}):kh(n,i,u),u}function JO(t,e){var r=tk(t),n=md(e),i=Ix(r,n);if(i)return i;var a,o;if((!e.get("show")||t.scale.isBlank())&&(a=[]),ie(n))a=Nx(t,n,!0);else if(n==="auto"){var s=Lx(t,t.getLabelModel(),Gl(Wt.determine));o=s.labelCategoryInterval,a=X(s.labels,function(l){return l.tickValue})}else o=n,a=kx(t,o,!0);return kh(r,n,{ticks:a,tickCategoryInterval:o})}function ek(t){var e=t.scale.getTicks(),r=Po(t);return{labels:X(e,function(n,i){return{formattedLabel:r(n,i),rawLabel:t.scale.getLabel(n),tickValue:n.value,time:n.time,break:n.break}})}}var tk=Px("axisTick"),rk=Px("axisLabel");function Px(t){return function(r){return Ga(r)[t]||(Ga(r)[t]={list:[]})}}function Ix(t,e){for(var r=0;r<t.list.length;r++)if(t.list[r].key===e)return t.list[r].value}function kh(t,e,r){return t.list.push({key:e,value:r}),r}function nk(t,e){if(e.kind===Wt.estimate){var r=t.calculateCategoryInterval(e);return e.out.noPxChangeTryDetermine.push(function(){return Ga(t).autoInterval=r,!0}),r}var n=Ga(t).autoInterval;return n??(Ga(t).autoInterval=t.calculateCategoryInterval(e))}function ik(t,e){var r=e.kind,n=ok(t),i=Po(t),a=(n.axisRotate-n.labelRotate)/180*Math.PI,o=t.scale,s=o.getExtent(),l=o.count();if(s[1]-s[0]<1)return 0;var u=1,c=40;l>c&&(u=Math.max(1,Math.floor(l/c)));for(var f=s[0],v=t.dataToCoord(f+1)-t.dataToCoord(f),h=Math.abs(v*Math.cos(a)),d=Math.abs(v*Math.sin(a)),p=0,g=0;f<=s[1];f+=u){var m=0,y=0,_=X0(i({value:f}),n.font,"center","top");m=_.width*1.3,y=_.height*1.3,p=Math.max(p,m,7),g=Math.max(g,y,7)}var b=p/h,S=g/d;isNaN(b)&&(b=1/0),isNaN(S)&&(S=1/0);var x=Math.max(0,Math.floor(Math.min(b,S)));if(r===Wt.estimate)return e.out.noPxChangeTryDetermine.push(de(ak,null,t,x,l)),x;var w=Ox(t,x,l);return w??x}function ak(t,e,r){return Ox(t,e,r)==null}function Ox(t,e,r){var n=XO(t.model),i=t.getExtent(),a=n.lastAutoInterval,o=n.lastTickCount;if(a!=null&&o!=null&&Math.abs(a-e)<=1&&Math.abs(o-r)<=1&&a>e&&n.axisExtent0===i[0]&&n.axisExtent1===i[1])return a;n.lastTickCount=r,n.lastAutoInterval=e,n.axisExtent0=i[0],n.axisExtent1=i[1]}function ok(t){var e=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function kx(t,e,r){var n=Po(t),i=t.scale,a=i.getExtent(),o=t.getLabelModel(),s=[],l=Math.max((e||0)+1,1),u=a[0],c=i.count();u!==0&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var f=Ax(t),v=o.get("showMinLabel")||f,h=o.get("showMaxLabel")||f;v&&u!==a[0]&&p(a[0]);for(var d=u;d<=a[1];d+=l)p(d);h&&d-l!==a[1]&&p(a[1]);function p(g){var m={value:g};s.push(r?g:{formattedLabel:n(m),rawLabel:i.getLabel(m),tickValue:g,time:void 0,break:void 0})}return s}function Nx(t,e,r){var n=t.scale,i=Po(t),a=[];return C(n.getTicks(),function(o){var s=n.getLabel(o),l=o.value;e(o.value,s)&&a.push(r?l:{formattedLabel:i(o),rawLabel:s,tickValue:l,time:void 0,break:void 0})}),a}var Vm=[0,1],Bx=(function(){function t(e,r,n){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=r,this._extent=n||[0,0]}return t.prototype.contain=function(e){var r=this._extent,n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]);return e>=n&&e<=i},t.prototype.containData=function(e){return this.scale.contain(this.scale.parse(e))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.getPixelPrecision=function(e){return T_(e||this.scale.getExtent(),this._extent)},t.prototype.setExtent=function(e,r){var n=this._extent;n[0]=e,n[1]=r},t.prototype.dataToCoord=function(e,r){var n=this._extent,i=this.scale;return e=i.normalize(i.parse(e)),this.onBand&&i.type==="ordinal"&&(n=n.slice(),Wm(n,i.count())),dl(e,Vm,n,r)},t.prototype.coordToData=function(e,r){var n=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(n=n.slice(),Wm(n,i.count()));var a=dl(e,n,Vm,r);return this.scale.scale(a)},t.prototype.pointToData=function(e,r){},t.prototype.getTicksCoords=function(e){e=e||{};var r=e.tickModel||this.getTickModel(),n=KO(this,r,{breakTicks:e.breakTicks,pruneByBreak:e.pruneByBreak}),i=n.ticks,a=X(i,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=r.get("alignWithLabel");return sk(this,a,o,e.clamp),a},t.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var e=this.model.getModel("minorTick"),r=e.get("splitNumber");r>0&&r<100||(r=5);var n=this.scale.getMinorTicks(r),i=X(n,function(a){return X(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return i},t.prototype.getViewLabels=function(e){return e=e||Gl(Wt.determine),ZO(this,e).labels},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){var e=this._extent,r=this.scale.getExtent(),n=r[1]-r[0]+(this.onBand?1:0);n===0&&(n=1);var i=Math.abs(e[1]-e[0]);return Math.abs(i)/n},t.prototype.calculateCategoryInterval=function(e){return e=e||Gl(Wt.determine),ik(this,e)},t})();function Wm(t,e){var r=t[1]-t[0],n=e,i=r/n/2;t[0]+=i,t[1]-=i}function sk(t,e,r,n){var i=e.length;if(!t.onBand||r||!i)return;var a=t.getExtent(),o,s;if(i===1)e[0].coord=a[0],e[0].onBand=!0,o=e[1]={coord:a[1],tickValue:e[0].tickValue,onBand:!0};else{var l=e[i-1].tickValue-e[0].tickValue,u=(e[i-1].coord-e[0].coord)/l;C(e,function(h){h.coord-=u/2,h.onBand=!0});var c=t.scale.getExtent();s=1+c[1]-e[i-1].tickValue,o={coord:e[i-1].coord+u*s,tickValue:c[1]+1,onBand:!0},e.push(o)}var f=a[0]>a[1];v(e[0].coord,a[0])&&(n?e[0].coord=a[0]:e.shift()),n&&v(a[0],e[0].coord)&&e.unshift({coord:a[0],onBand:!0}),v(a[1],o.coord)&&(n?o.coord=a[1]:e.pop()),n&&v(o.coord,a[1])&&e.push({coord:a[1],onBand:!0});function v(h,d){return h=We(h),d=We(d),f?h>d:h<d}}var lk=(function(t){G(e,t);function e(r,n,i,a,o){var s=t.call(this,r,n,i)||this;return s.index=0,s.type=a||"value",s.position=o||"bottom",s}return e.prototype.isHorizontal=function(){var r=this.position;return r==="top"||r==="bottom"},e.prototype.getGlobalExtent=function(r){var n=this.getExtent();return n[0]=this.toGlobalCoord(n[0]),n[1]=this.toGlobalCoord(n[1]),r&&n[0]>n[1]&&n.reverse(),n},e.prototype.pointToData=function(r,n){return this.coordToData(this.toLocalCoord(r[this.dim==="x"?0:1]),n)},e.prototype.setCategorySortInfo=function(r){if(this.type!=="category")return!1;this.model.option.categorySortInfo=r,this.scale.setSortInfo(r)},e})(Bx),uk="expandAxisBreak",Xr=Math.PI,ck=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],fk=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],co=xe(),Fx=xe(),zx=(function(){function t(e){this.recordMap={},this.resolveAxisNameOverlap=e}return t.prototype.ensureRecord=function(e){var r=e.axis.dim,n=e.componentIndex,i=this.recordMap,a=i[r]||(i[r]=[]);return a[n]||(a[n]={ready:{}})},t})();function hk(t,e,r,n){var i=r.axis,a=e.ensureRecord(r),o=[],s,l=yd(t.axisName)&&Wi(t.nameLocation);C(n,function(d){var p=sn(d);if(!(!p||p.label.ignore)){o.push(p);var g=a.transGroup;l&&(g.transform?Jn(ha,g.transform):xo(ha),p.transform&&Vn(ha,ha,p.transform),re.copy(ws,p.localRect),ws.applyTransform(ha),s?s.union(ws):re.copy(s=new re(0,0,0,0),ws))}});var u=Math.abs(a.dirVec.x)>.1?"x":"y",c=a.transGroup[u];if(o.sort(function(d,p){return Math.abs(d.label[u]-c)-Math.abs(p.label[u]-c)}),l&&s){var f=i.getExtent(),v=Math.min(f[0],f[1]),h=Math.max(f[0],f[1])-v;s.union(new re(v,0,h,1))}a.stOccupiedRect=s,a.labelInfoList=o}var ha=Gt(),ws=new re(0,0,0,0),Hx=function(t,e,r,n,i,a){if(Wi(t.nameLocation)){var o=a.stOccupiedRect;o&&Ux(PP({},o,a.transGroup.transform),n,i)}else Gx(a.labelInfoList,a.dirVec,n,i)};function Ux(t,e,r){var n=new ne;td(t,e,n,{direction:Math.atan2(r.y,r.x),bidirectional:!1,touchThreshold:.05})&&IP(e,n)}function Gx(t,e,r,n){for(var i=ne.dot(n,e)>=0,a=0,o=t.length;a<o;a++){var s=t[i?a:o-1-a];s.label.ignore||Ux(s,r,n)}}var en=(function(){function t(e,r,n,i){this.group=new Ne,this._axisModel=e,this._api=r,this._local={},this._shared=i||new zx(Hx),this._resetCfgDetermined(n)}return t.prototype.updateCfg=function(e){var r=this._cfg.raw;r.position=e.position,r.labelOffset=e.labelOffset,this._resetCfgDetermined(r)},t.prototype.__getRawCfg=function(){return this._cfg.raw},t.prototype._resetCfgDetermined=function(e){var r=this._axisModel,n=r.getDefaultOption?r.getDefaultOption():{},i=K(e.axisName,r.get("name")),a=r.get("nameMoveOverlap");(a==null||a==="auto")&&(a=K(e.defaultNameMoveOverlap,!0));var o={raw:e,position:e.position,rotation:e.rotation,nameDirection:K(e.nameDirection,1),tickDirection:K(e.tickDirection,1),labelDirection:K(e.labelDirection,1),labelOffset:K(e.labelOffset,0),silent:K(e.silent,!0),axisName:i,nameLocation:Zr(r.get("nameLocation"),n.nameLocation,"end"),shouldNameMoveOverlap:yd(i)&&a,optionHideOverlap:r.get(["axisLabel","hideOverlap"]),showMinorTicks:r.get(["minorTick","show"])};this._cfg=o;var s=new Ne({x:o.position[0],y:o.position[1],rotation:o.rotation});s.updateTransform(),this._transformGroup=s;var l=this._shared.ensureRecord(r);l.transGroup=this._transformGroup,l.dirVec=new ne(Math.cos(-o.rotation),Math.sin(-o.rotation))},t.prototype.build=function(e,r){var n=this;return e||(e={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0}),C(vk,function(i){e[i]&&dk[i](n._cfg,n._local,n._shared,n._axisModel,n.group,n._transformGroup,n._api,r||{})}),this},t.innerTextLayout=function(e,r,n){var i=fv(r-e),a,o;return Za(i)?(o=n>0?"top":"bottom",a="center"):Za(i-Xr)?(o=n>0?"bottom":"top",a="center"):(o="middle",i>0&&i<Xr?a=n>0?"right":"left":a=n>0?"left":"right"),{rotation:i,textAlign:a,textVerticalAlign:o}},t.makeAxisEventDataBase=function(e){var r={componentType:e.mainType,componentIndex:e.componentIndex};return r[e.mainType+"Index"]=e.componentIndex,r},t.isLabelSilent=function(e){var r=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||r&&r.show)},t})(),vk=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],dk={axisLine:function(t,e,r,n,i,a,o){var s=n.get(["axisLine","show"]);if(s==="auto"&&(s=!0,t.raw.axisLineAutoShow!=null&&(s=!!t.raw.axisLineAutoShow)),!!s){var l=n.axis.getExtent(),u=a.transform,c=[l[0],0],f=[l[1],0],v=c[0]>f[0];u&&(et(c,c,u),et(f,f,u));var h=F({lineCap:"round"},n.getModel(["axisLine","lineStyle"]).getLineStyle()),d={strokeContainThreshold:t.raw.strokeContainThreshold||5,silent:!0,z2:1,style:h};if(n.get(["axisLine","breakLine"])&&n.axis.scale.hasBreaks())CO().buildAxisBreakLine(n,i,a,d);else{var p=new Mr(F({shape:{x1:c[0],y1:c[1],x2:f[0],y2:f[1]}},d));Ja(p.shape,p.style.lineWidth),p.anid="line",i.add(p)}var g=n.get(["axisLine","symbol"]);if(g!=null){var m=n.get(["axisLine","symbolSize"]);Y(g)&&(g=[g,g]),(Y(m)||me(m))&&(m=[m,m]);var y=iS(n.get(["axisLine","symbolOffset"])||0,m),_=m[0],b=m[1];C([{rotate:t.rotation+Math.PI/2,offset:y[0],r:0},{rotate:t.rotation-Math.PI/2,offset:y[1],r:Math.sqrt((c[0]-f[0])*(c[0]-f[0])+(c[1]-f[1])*(c[1]-f[1]))}],function(S,x){if(g[x]!=="none"&&g[x]!=null){var w=qi(g[x],-_/2,-b/2,_,b,h.stroke,!0),T=S.r+S.offset,M=v?f:c;w.attr({rotation:S.rotate,x:M[0]+T*Math.cos(t.rotation),y:M[1]-T*Math.sin(t.rotation),silent:!0,z2:11}),i.add(w)}})}}},axisTickLabelEstimate:function(t,e,r,n,i,a,o,s){var l=$m(e,i,s);l&&jm(t,e,r,n,i,a,o,Wt.estimate)},axisTickLabelDetermine:function(t,e,r,n,i,a,o,s){var l=$m(e,i,s);l&&jm(t,e,r,n,i,a,o,Wt.determine);var u=yk(t,i,a,n);mk(t,e.labelLayoutList,u),_k(t,i,a,n,t.tickDirection)},axisName:function(t,e,r,n,i,a,o,s){var l=r.ensureRecord(n);e.nameEl&&(i.remove(e.nameEl),e.nameEl=l.nameLayout=l.nameLocation=null);var u=t.axisName;if(yd(u)){var c=t.nameLocation,f=t.nameDirection,v=n.getModel("nameTextStyle"),h=n.get("nameGap")||0,d=n.axis.getExtent(),p=n.axis.inverse?-1:1,g=new ne(0,0),m=new ne(0,0);c==="start"?(g.x=d[0]-p*h,m.x=-p):c==="end"?(g.x=d[1]+p*h,m.x=p):(g.x=(d[0]+d[1])/2,g.y=t.labelOffset+f*h,m.y=f);var y=Gt();m.transform(nu(y,y,t.rotation));var _=n.get("nameRotate");_!=null&&(_=_*Xr/180);var b,S;Wi(c)?b=en.innerTextLayout(t.rotation,_??t.rotation,f):(b=pk(t.rotation,c,_||0,d),S=t.raw.axisNameAvailableWidth,S!=null&&(S=Math.abs(S/Math.sin(b.rotation)),!isFinite(S)&&(S=null)));var x=v.getFont(),w=n.get("nameTruncate",!0)||{},T=w.ellipsis,M=Wa(t.raw.nameTruncateMaxWidth,w.maxWidth,S),A=s.nameMarginLevel||0,D=new je({x:g.x,y:g.y,rotation:b.rotation,silent:en.isLabelSilent(n),style:Kn(v,{text:u,font:x,overflow:"truncate",width:M,ellipsis:T,fill:v.getTextColor()||n.get(["axisLine","lineStyle","color"]),align:v.get("align")||b.textAlign,verticalAlign:v.get("verticalAlign")||b.textVerticalAlign}),z2:1});if(pu({el:D,componentModel:n,itemName:u}),D.__fullText=u,D.anid="name",n.get("triggerEvent")){var P=en.makeAxisEventDataBase(n);P.targetType="axisName",P.name=u,he(D).eventData=P}a.add(D),D.updateTransform(),e.nameEl=D;var E=l.nameLayout=sn({label:D,priority:D.z2,defaultAttr:{ignore:D.ignore},marginDefault:Wi(c)?ck[A]:fk[A]});if(l.nameLocation=c,i.add(D),D.decomposeTransform(),t.shouldNameMoveOverlap&&E){var L=r.ensureRecord(n);r.resolveAxisNameOverlap(t,r,n,E,m,L)}}}};function jm(t,e,r,n,i,a,o,s){Wx(e)||bk(t,e,i,s,n,o);var l=e.labelLayoutList;Sk(t,n,l,a),t.rotation;var u=t.optionHideOverlap;gk(n,l,u),u&&kP(Re(l,function(c){return c&&!c.label.ignore})),hk(t,r,n,l)}function pk(t,e,r,n){var i=fv(r-t),a,o,s=n[0]>n[1],l=e==="start"&&!s||e!=="start"&&s;return Za(i-Xr/2)?(o=l?"bottom":"top",a="center"):Za(i-Xr*1.5)?(o=l?"top":"bottom",a="center"):(o="middle",i<Xr*1.5&&i>Xr/2?a=l?"left":"right":a=l?"right":"left"),{rotation:i,textAlign:a,textVerticalAlign:o}}function gk(t,e,r){if(Ax(t.axis))return;function n(s,l,u){var c=sn(e[l]),f=sn(e[u]);if(!(!c||!f)){if(s===!1||c.suggestIgnore){Ra(c.label);return}if(f.suggestIgnore){Ra(f.label);return}var v=.1;if(!r){var h=[0,0,0,0];c=Ug({marginForce:h},c),f=Ug({marginForce:h},f)}td(c,f,null,{touchThreshold:v})&&Ra(s?f.label:c.label)}}var i=t.get(["axisLabel","showMinLabel"]),a=t.get(["axisLabel","showMaxLabel"]),o=e.length;n(i,0,1),n(a,o-1,o-2)}function mk(t,e,r){t.showMinorTicks||C(e,function(n){if(n&&n.label.ignore)for(var i=0;i<r.length;i++){var a=r[i],o=Fx(a),s=co(n.label);if(o.tickValue!=null&&!o.onBand&&o.tickValue===s.tickValue){Ra(a);return}}})}function Ra(t){t&&(t.ignore=!0)}function Vx(t,e,r,n,i){for(var a=[],o=[],s=[],l=0;l<t.length;l++){var u=t[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=r,e&&(et(o,o,e),et(s,s,e));var c=new Mr({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:n,z2:2,autoBatch:!0,silent:!0});Ja(c.shape,c.style.lineWidth),c.anid=i+"_"+t[l].tickValue,a.push(c);var f=Fx(c);f.onBand=!!t[l].onBand,f.tickValue=t[l].tickValue}return a}function yk(t,e,r,n){var i=n.axis,a=n.getModel("axisTick"),o=a.get("show");if(o==="auto"&&(o=!0,t.raw.axisTickAutoShow!=null&&(o=!!t.raw.axisTickAutoShow)),!o||i.scale.isBlank())return[];for(var s=a.getModel("lineStyle"),l=t.tickDirection*a.get("length"),u=i.getTicksCoords(),c=Vx(u,r.transform,l,pe(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),f=0;f<c.length;f++)e.add(c[f]);return c}function _k(t,e,r,n,i){var a=n.axis,o=n.getModel("minorTick");if(!(!t.showMinorTicks||a.scale.isBlank())){var s=a.getMinorTicksCoords();if(s.length)for(var l=o.getModel("lineStyle"),u=i*o.get("length"),c=pe(l.getLineStyle(),pe(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),f=0;f<s.length;f++)for(var v=Vx(s[f],r.transform,u,c,"minorticks_"+f),h=0;h<v.length;h++)e.add(v[h])}}function $m(t,e,r){if(Wx(t)){var n=t.axisLabelsCreationContext,i=n.out.noPxChangeTryDetermine;if(r.noPxChange){for(var a=!0,o=0;o<i.length;o++)a=a&&i[o]();if(a)return!1}i.length&&(e.remove(t.labelGroup),Nh(t,null,null,null))}return!0}function bk(t,e,r,n,i,a){var o=i.axis,s=Wa(t.raw.axisLabelShow,i.get(["axisLabel","show"])),l=new Ne;r.add(l);var u=Gl(n);if(!s||o.scale.isBlank()){Nh(e,[],l,u);return}var c=i.getModel("axisLabel"),f=o.getViewLabels(u),v=(Wa(t.raw.labelRotate,c.get("rotate"))||0)*Xr/180,h=en.innerTextLayout(t.rotation,v,t.labelDirection),d=i.getCategories&&i.getCategories(!0),p=[],g=i.get("triggerEvent"),m=1/0,y=-1/0;C(f,function(b,S){var x,w=o.scale.type==="ordinal"?o.scale.getRawOrdinalNumber(b.tickValue):b.tickValue,T=b.formattedLabel,M=b.rawLabel,A=c;if(d&&d[w]){var D=d[w];q(D)&&D.textStyle&&(A=new _e(D.textStyle,c,i.ecModel))}var P=A.getTextColor()||i.get(["axisLine","lineStyle","color"]),E=A.getShallow("align",!0)||h.textAlign,L=K(A.getShallow("alignMinLabel",!0),E),k=K(A.getShallow("alignMaxLabel",!0),E),N=A.getShallow("verticalAlign",!0)||A.getShallow("baseline",!0)||h.textVerticalAlign,$=K(A.getShallow("verticalAlignMinLabel",!0),N),B=K(A.getShallow("verticalAlignMaxLabel",!0),N),U=10+(((x=b.time)===null||x===void 0?void 0:x.level)||0);m=Math.min(m,U),y=Math.max(y,U);var j=new je({x:0,y:0,rotation:0,silent:en.isLabelSilent(i),z2:U,style:Kn(A,{text:T,align:S===0?L:S===f.length-1?k:E,verticalAlign:S===0?$:S===f.length-1?B:N,fill:ie(P)?P(o.type==="category"?M:o.type==="value"?w+"":w,S):P})});j.anid="label_"+w;var H=co(j);if(H.break=b.break,H.tickValue=w,H.layoutRotation=h.rotation,pu({el:j,componentModel:i,itemName:T,formatterParamsExtra:{isTruncated:function(){return j.isTruncated},value:M,tickIndex:S}}),g){var z=en.makeAxisEventDataBase(i);z.targetType="axisLabel",z.value=M,z.tickIndex=S,b.break&&(z.break={start:b.break.parsedBreak.vmin,end:b.break.parsedBreak.vmax}),o.type==="category"&&(z.dataIndex=w),he(j).eventData=z,b.break&&wk(i,a,j,b.break)}p.push(j),l.add(j)});var _=X(p,function(b){return{label:b,priority:co(b).break?b.z2+(y-m+1):b.z2,defaultAttr:{ignore:b.ignore}}});Nh(e,_,l,u)}function Wx(t){return!!t.labelLayoutList}function Nh(t,e,r,n){t.labelLayoutList=e,t.labelGroup=r,t.axisLabelsCreationContext=n}function Sk(t,e,r,n){var i=e.get(["axisLabel","margin"]);C(r,function(a,o){var s=sn(a);if(s){var l=s.label,u=co(l);s.suggestIgnore=l.ignore,l.ignore=!1,If(_r,xk),_r.x=e.axis.dataToCoord(u.tickValue),_r.y=t.labelOffset+t.labelDirection*i,_r.rotation=u.layoutRotation,n.add(_r),_r.updateTransform(),n.remove(_r),_r.decomposeTransform(),If(l,_r),l.markRedraw(),Ll(s,!0),sn(s)}})}var _r=new De,xk=new De;function yd(t){return!!t}function wk(t,e,r,n){r.on("click",function(i){var a={type:uk,breaks:[{start:n.parsedBreak.breakOption.start,end:n.parsedBreak.breakOption.end}]};a[t.axis.dim+"AxisIndex"]=t.componentIndex,e.dispatchAction(a)})}function Vl(t,e,r){r=r||{};var n=e.axis,i={},a=n.getAxesOnZeroOf()[0],o=n.position,s=a?"onZero":o,l=n.dim,u=[t.x,t.x+t.width,t.y,t.y+t.height],c={left:0,right:1,top:0,bottom:1,onZero:2},f=e.get("offset")||0,v=l==="x"?[u[2]-f,u[3]+f]:[u[0]-f,u[1]+f];if(a){var h=a.toGlobalCoord(a.dataToCoord(0));v[c.onZero]=Math.max(Math.min(h,v[1]),v[0])}i.position=[l==="y"?v[c[s]]:u[0],l==="x"?v[c[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?v[c[o]]-v[c.onZero]:0,e.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),Wa(r.labelInside,e.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var p=e.get(["axisLabel","rotate"]);return i.labelRotate=s==="top"?-p:p,i.z2=1,i}function Tk(t){return t.coordinateSystem&&t.coordinateSystem.type==="cartesian2d"}function Ym(t){var e={xAxisModel:null,yAxisModel:null};return C(e,function(r,n){var i=n.replace(/Model$/,""),a=t.getReferringComponents(i,Et).models[0];e[n]=a}),e}function Ck(t,e,r,n,i,a){for(var o=Vl(t,r),s=!1,l=!1,u=0;u<e.length;u++)Rh(e[u].getOtherAxis(r.axis).scale)&&(s=l=!0,r.axis.type==="category"&&r.axis.onBand&&(l=!1));return o.axisLineAutoShow=s,o.axisTickAutoShow=l,o.defaultNameMoveOverlap=a,new en(r,n,o,i)}function Dk(t,e,r){var n=Vl(e,r);t.updateCfg(n)}function Mk(t,e,r){var n=Vi.prototype,i=n.getTicks.call(r),a=n.getTicks.call(r,{expandToNicedExtent:!0}),o=i.length-1,s=n.getInterval.call(r),l=Dx(t,e),u=l.extent,c=l.fixMin,f=l.fixMax;t.type==="log"&&(u=Lh(t.base,u,!0)),t.setBreaksFromOption(Ex(e)),t.setExtent(u[0],u[1]),t.calcNiceExtent({splitNumber:o,fixMin:c,fixMax:f});var v=n.getExtent.call(t);c&&(u[0]=v[0]),f&&(u[1]=v[1]);var h=n.getInterval.call(t),d=u[0],p=u[1];if(c&&f)h=(p-d)/o;else if(c)for(p=u[0]+h*o;p<u[1]&&isFinite(p)&&isFinite(u[1]);)h=jc(h),p=u[0]+h*o;else if(f)for(d=u[1]-h*o;d>u[0]&&isFinite(d)&&isFinite(u[0]);)h=jc(h),d=u[1]-h*o;else{var g=t.getTicks().length-1;g>o&&(h=jc(h));var m=h*o;p=Math.ceil(u[1]/h)*h,d=We(p-m),d<0&&u[0]>=0?(d=0,p=We(m)):p>0&&u[1]<=0&&(p=0,d=-We(m))}var y=(i[0].value-a[0].value)/s,_=(i[o].value-a[o].value)/s;n.setExtent.call(t,d+h*y,p+h*_),n.setInterval.call(t,h),(y||_)&&n.setNiceExtent.call(t,d+h,p-h)}var qm=[[3,1],[0,2]],Ak=(function(){function t(e,r,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Oh,this._initCartesian(e,r,n),this.model=e}return t.prototype.getRect=function(){return this._rect},t.prototype.update=function(e,r){var n=this._axesMap;this._updateScale(e,this.model);function i(o){var s,l=Se(o),u=l.length;if(u){for(var c=[],f=u-1;f>=0;f--){var v=+l[f],h=o[v],d=h.model,p=h.scale;Rh(p)&&d.get("alignTicks")&&d.get("interval")==null?c.push(h):(Ih(p,d),Rh(p)&&(s=h))}c.length&&(s||(s=c.pop(),Ih(s.scale,s.model)),C(c,function(g){Mk(g.scale,g.model,s.scale)}))}}i(n.x),i(n.y);var a={};C(n.x,function(o){Xm(n,"y",o,a)}),C(n.y,function(o){Xm(n,"x",o,a)}),this.resize(this.model,r)},t.prototype.resize=function(e,r,n){var i=Zv(e,r),a=this._rect=an(e.getBoxLayoutParams(),i.refContainer),o=this._axesMap,s=this._coordsList,l=e.get("containLabel");if(jx(o,a),!n){var u=Rk(a,s,o,l,r),c=void 0;if(l)c=Qm(a.clone(),"axisLabel",null,a,o,u,i);else{var f=Lk(e,a,i),v=f.outerBoundsRect,h=f.parsedOuterBoundsContain,d=f.outerBoundsClamp;v&&(c=Qm(v,h,d,a,o,u,i))}$x(a,o,Wt.determine,null,c,i)}C(this._coordsList,function(p){p.calcAffineTransform()})},t.prototype.getAxis=function(e,r){var n=this._axesMap[e];if(n!=null)return n[r||0]},t.prototype.getAxes=function(){return this._axesList.slice()},t.prototype.getCartesian=function(e,r){if(e!=null&&r!=null){var n="x"+e+"y"+r;return this._coordsMap[n]}q(e)&&(r=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===r)return a[i]},t.prototype.getCartesians=function(){return this._coordsList.slice()},t.prototype.convertToPixel=function(e,r,n){var i=this._findConvertTarget(r);return i.cartesian?i.cartesian.dataToPoint(n):i.axis?i.axis.toGlobalCoord(i.axis.dataToCoord(n)):null},t.prototype.convertFromPixel=function(e,r,n){var i=this._findConvertTarget(r);return i.cartesian?i.cartesian.pointToData(n):i.axis?i.axis.coordToData(i.axis.toLocalCoord(n)):null},t.prototype._findConvertTarget=function(e){var r=e.seriesModel,n=e.xAxisModel||r&&r.getReferringComponents("xAxis",Et).models[0],i=e.yAxisModel||r&&r.getReferringComponents("yAxis",Et).models[0],a=e.gridModel,o=this._coordsList,s,l;if(r)s=r.coordinateSystem,le(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}},t.prototype.containPoint=function(e){var r=this._coordsList[0];if(r)return r.containPoint(e)},t.prototype._initCartesian=function(e,r,n){var i=this,a=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(r.eachComponent("xAxis",u("x"),this),r.eachComponent("yAxis",u("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,C(s.x,function(c,f){C(s.y,function(v,h){var d="x"+f+"y"+h,p=new qO(d);p.master=i,p.model=e,i._coordsMap[d]=p,i._coordsList.push(p),p.addAxis(c),p.addAxis(v)})});function u(c){return function(f,v){if(Yc(f,e)){var h=f.get("position");c==="x"?h!=="top"&&h!=="bottom"&&(h=o.bottom?"top":"bottom"):h!=="left"&&h!=="right"&&(h=o.left?"right":"left"),o[h]=!0;var d=new lk(c,Mx(f),[0,0],f.get("type"),h),p=d.type==="category";d.onBand=p&&f.get("boundaryGap"),d.inverse=f.get("inverse"),f.axis=d,d.model=f,d.grid=a,d.index=v,a._axesList.push(d),s[c][v]=d,l[c]++}}}},t.prototype._updateScale=function(e,r){C(this._axesList,function(i){if(i.scale.setExtent(1/0,-1/0),i.type==="category"){var a=i.model.get("categorySortInfo");i.scale.setSortInfo(a)}}),e.eachSeries(function(i){if(Tk(i)){var a=Ym(i),o=a.xAxisModel,s=a.yAxisModel;if(!Yc(o,r)||!Yc(s,r))return;var l=this.getCartesian(o.componentIndex,s.componentIndex),u=i.getData(),c=l.getAxis("x"),f=l.getAxis("y");n(u,c),n(u,f)}},this);function n(i,a){C($O(i,a.dim),function(o){a.scale.unionExtentFromData(i,o)})}},t.prototype.getTooltipAxes=function(e){var r=[],n=[];return C(this.getCartesians(),function(i){var a=e!=null&&e!=="auto"?i.getAxis(e):i.getBaseAxis(),o=i.getOtherAxis(a);le(r,a)<0&&r.push(a),le(n,o)<0&&n.push(o)}),{baseAxes:r,otherAxes:n}},t.create=function(e,r){var n=[];return e.eachComponent("grid",function(i,a){var o=new t(i,e,r);o.name="grid_"+a,o.resize(i,r,!0),i.coordinateSystem=o,n.push(o)}),e.eachSeries(function(i){oR({targetModel:i,coordSysType:"cartesian2d",coordSysProvider:a});function a(){var o=Ym(i),s=o.xAxisModel,l=o.yAxisModel,u=s.getCoordSysModel(),c=u.coordinateSystem;return c.getCartesian(s.componentIndex,l.componentIndex)}}),n},t.dimensions=Oh,t})();function Yc(t,e){return t.getCoordSysModel()===e}function Xm(t,e,r,n){r.getAxesOnZeroOf=function(){return a?[a]:[]};var i=t[e],a,o=r.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)Zm(i[l])&&(a=i[l]);else for(var u in i)if(i.hasOwnProperty(u)&&Zm(i[u])&&!n[c(i[u])]){a=i[u];break}a&&(n[c(a)]=!0);function c(f){return f.dim+"_"+f.index}}function Zm(t){return t&&t.type!=="category"&&t.type!=="time"&&jO(t)}function Ek(t,e){var r=t.getExtent(),n=r[0]+r[1];t.toGlobalCoord=t.dim==="x"?function(i){return i+e}:function(i){return n-i+e},t.toLocalCoord=t.dim==="x"?function(i){return i-e}:function(i){return n-i+e}}function jx(t,e){C(t.x,function(r){return Km(r,e.x,e.width)}),C(t.y,function(r){return Km(r,e.y,e.height)})}function Km(t,e,r){var n=[0,r],i=t.inverse?1:0;t.setExtent(n[i],n[1-i]),Ek(t,e)}function Qm(t,e,r,n,i,a,o){$x(n,i,Wt.estimate,e,!1,o);var s=[0,0,0,0];u(0),u(1),c(n,0,NaN),c(n,1,NaN);var l=k0(s,function(v){return v>0})==null;return xl(n,s,!0,!0,r),jx(i,n),l;function u(v){C(i[Gr[v]],function(h){if(uo(h.model)){var d=a.ensureRecord(h.model),p=d.labelInfoList;if(p)for(var g=0;g<p.length;g++){var m=p[g],y=h.scale.normalize(co(m.label).tickValue);y=v===1?1-y:y,c(m.rect,v,y),c(m.rect,1-v,NaN)}var _=d.nameLayout;if(_){var y=Wi(d.nameLocation)?.5:NaN;c(_.rect,v,y),c(_.rect,1-v,NaN)}}})}function c(v,h,d){var p=t[Gr[h]]-v[Gr[h]],g=v[Ui[h]]+v[Gr[h]]-(t[Ui[h]]+t[Gr[h]]);p=f(p,1-d),g=f(g,d);var m=qm[h][0],y=qm[h][1];s[m]=pt(s[m],p),s[y]=pt(s[y],g)}function f(v,h){return v>0&&!Ni(h)&&h>1e-4&&(v/=h),v}}function Rk(t,e,r,n,i){var a=new zx(Pk);return C(r,function(o){return C(o,function(s){if(uo(s.model)){var l=!n;s.axisBuilder=Ck(t,e,s.model,i,a,l)}})}),a}function $x(t,e,r,n,i,a){var o=r===Wt.determine;C(e,function(u){return C(u,function(c){uo(c.model)&&(Dk(c.axisBuilder,t,c.model),c.axisBuilder.build(o?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:i}))})});var s={x:0,y:0};l(0),l(1);function l(u){s[Gr[1-u]]=t[Ui[u]]<=a.refContainer[Ui[u]]*.5?0:1-u===1?2:1}C(e,function(u,c){return C(u,function(f){uo(f.model)&&((n==="all"||o)&&f.axisBuilder.build({axisName:!0},{nameMarginLevel:s[c]}),o&&f.axisBuilder.build({axisLine:!0}))})})}function Lk(t,e,r){var n,i=t.get("outerBoundsMode",!0);i==="same"?n=e.clone():(i==null||i==="auto")&&(n=an(t.get("outerBounds",!0)||_x,r.refContainer));var a=t.get("outerBoundsContain",!0),o;a==null||a==="auto"||le(["all","axisLabel"],a)<0?o="all":o=a;var s=[$f(K(t.get("outerBoundsClampWidth",!0),Hl[0]),e.width),$f(K(t.get("outerBoundsClampHeight",!0),Hl[1]),e.height)];return{outerBoundsRect:n,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var Pk=function(t,e,r,n,i,a){var o=r.axis.dim==="x"?"y":"x";Hx(t,e,r,n,i,a),Wi(t.nameLocation)||C(e.recordMap[o],function(s){s&&s.labelInfoList&&s.dirVec&&Gx(s.labelInfoList,s.dirVec,n,i)})};function Ik(t,e){var r={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return Ok(r,t,e),r.seriesInvolved&&Nk(r,t),r}function Ok(t,e,r){var n=e.getComponent("tooltip"),i=e.getComponent("axisPointer"),a=i.get("link",!0)||[],o=[];C(r.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=fo(s.model),u=t.coordSysAxesInfo[l]={};t.coordSysMap[l]=s;var c=s.model,f=c.getModel("tooltip",n);if(C(s.getAxes(),we(p,!1,null)),s.getTooltipAxes&&n&&f.get("show")){var v=f.get("trigger")==="axis",h=f.get(["axisPointer","type"])==="cross",d=s.getTooltipAxes(f.get(["axisPointer","axis"]));(v||h)&&C(d.baseAxes,we(p,h?"cross":!0,v)),h&&C(d.otherAxes,we(p,"cross",!1))}function p(g,m,y){var _=y.model.getModel("axisPointer",i),b=_.get("show");if(!(!b||b==="auto"&&!g&&!Bh(_))){m==null&&(m=_.get("triggerTooltip")),_=g?kk(y,f,i,e,g,m):_;var S=_.get("snap"),x=_.get("triggerEmphasis"),w=fo(y.model),T=m||S||y.type==="category",M=t.axesInfo[w]={key:w,axis:y,coordSys:s,axisPointerModel:_,triggerTooltip:m,triggerEmphasis:x,involveSeries:T,snap:S,useHandle:Bh(_),seriesModels:[],linkGroup:null};u[w]=M,t.seriesInvolved=t.seriesInvolved||T;var A=Bk(a,y);if(A!=null){var D=o[A]||(o[A]={axesInfo:{}});D.axesInfo[w]=M,D.mapper=a[A].mapper,M.linkGroup=D}}}})}function kk(t,e,r,n,i,a){var o=e.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};C(s,function(v){l[v]=oe(o.get(v))}),l.snap=t.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 c=o.get(["label","show"]);if(u.show=c??!0,!a){var f=l.lineStyle=o.get("crossStyle");f&&pe(u,f.textStyle)}}return t.model.getModel("axisPointer",new _e(l,r,n))}function Nk(t,e){e.eachSeries(function(r){var n=r.coordinateSystem,i=r.get(["tooltip","trigger"],!0),a=r.get(["tooltip","show"],!0);!n||!n.model||i==="none"||i===!1||i==="item"||a===!1||r.get(["axisPointer","show"],!0)===!1||C(t.coordSysAxesInfo[fo(n.model)],function(o){var s=o.axis;n.getAxis(s.dim)===s&&(o.seriesModels.push(r),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=r.getData().count())})})}function Bk(t,e){for(var r=e.model,n=e.dim,i=0;i<t.length;i++){var a=t[i]||{};if(qc(a[n+"AxisId"],r.id)||qc(a[n+"AxisIndex"],r.componentIndex)||qc(a[n+"AxisName"],r.name))return i}}function qc(t,e){return t==="all"||W(t)&&le(t,e)>=0||t===e}function Fk(t){var e=_d(t);if(e){var r=e.axisPointerModel,n=e.axis.scale,i=r.option,a=r.get("status"),o=r.get("value");o!=null&&(o=n.parse(o));var s=Bh(r);a==null&&(i.status=s?"show":"hide");var l=n.getExtent().slice();l[0]>l[1]&&l.reverse(),(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 _d(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[fo(t)]}function zk(t){var e=_d(t);return e&&e.axisPointerModel}function Bh(t){return!!t.get(["handle","show"])}function fo(t){return t.type+"||"+t.id}var Jm={},Yx=(function(t){G(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,i,a){this.axisPointerClass&&Fk(r),t.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(r,i,!0)},e.prototype.updateAxisPointer=function(r,n,i,a){this._doUpdateAxisPointerClass(r,i,!1)},e.prototype.remove=function(r,n){var i=this._axisPointer;i&&i.remove(n)},e.prototype.dispose=function(r,n){this._disposeAxisPointer(n),t.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(r,n,i){var a=e.getAxisPointerClass(this.axisPointerClass);if(a){var o=zk(r);o?(this._axisPointer||(this._axisPointer=new a)).render(r,o,n,i):this._disposeAxisPointer(n)}},e.prototype._disposeAxisPointer=function(r){this._axisPointer&&this._axisPointer.dispose(r),this._axisPointer=null},e.registerAxisPointerClass=function(r,n){Jm[r]=n},e.getAxisPointerClass=function(r){return r&&Jm[r]},e.type="axis",e})(yt),Fh=xe();function Hk(t,e,r,n){var i=r.axis;if(!i.scale.isBlank()){var a=r.getModel("splitArea"),o=a.getModel("areaStyle"),s=o.get("color"),l=n.coordinateSystem.getRect(),u=i.getTicksCoords({tickModel:a,clamp:!0,breakTicks:"none",pruneByBreak:"preserve_extent_bound"});if(u.length){var c=s.length,f=Fh(t).splitAreaColors,v=ae(),h=0;if(f)for(var d=0;d<u.length;d++){var p=f.get(u[d].tickValue);if(p!=null){h=(p+(c-1)*d)%c;break}}var g=i.toGlobalCoord(u[0].coord),m=o.getAreaStyle();s=W(s)?s:[s];for(var d=1;d<u.length;d++){var y=i.toGlobalCoord(u[d].coord),_=void 0,b=void 0,S=void 0,x=void 0;i.isHorizontal()?(_=g,b=l.y,S=y-_,x=l.height,g=_+S):(_=l.x,b=g,S=l.width,x=y-b,g=b+x);var w=u[d-1].tickValue;w!=null&&v.set(w,h),e.add(new De({anid:w!=null?"area_"+w:null,shape:{x:_,y:b,width:S,height:x},style:pe({fill:s[h]},m),autoBatch:!0,silent:!0})),h=(h+1)%c}Fh(t).splitAreaColors=v}}}function Uk(t){Fh(t).splitAreaColors=null}var Gk=["splitArea","splitLine","minorSplitLine","breakArea"],qx=(function(t){G(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.axisPointerClass="CartesianAxisPointer",r}return e.prototype.render=function(r,n,i,a){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Ne,this.group.add(this._axisGroup),!!uo(r)){this._axisGroup.add(r.axis.axisBuilder.group),C(Gk,function(l){r.get([l,"show"])&&Vk[l](this,this._axisGroup,r,r.getCoordSysModel(),i)},this);var s=a&&a.type==="changeAxisOrder"&&a.isInitSort;s||ub(o,this._axisGroup,r),t.prototype.render.call(this,r,n,i,a)}},e.prototype.remove=function(){Uk(this)},e.type="cartesianAxis",e})(Yx),Vk={splitLine:function(t,e,r,n,i){var a=r.axis;if(!a.scale.isBlank()){var o=r.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=o.get("showMinLine")!==!1,c=o.get("showMaxLine")!==!1;l=W(l)?l:[l];for(var f=n.coordinateSystem.getRect(),v=a.isHorizontal(),h=0,d=a.getTicksCoords({tickModel:o,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),p=[],g=[],m=s.getLineStyle(),y=0;y<d.length;y++){var _=a.toGlobalCoord(d[y].coord);if(!(y===0&&!u||y===d.length-1&&!c)){var b=d[y].tickValue;v?(p[0]=_,p[1]=f.y,g[0]=_,g[1]=f.y+f.height):(p[0]=f.x,p[1]=_,g[0]=f.x+f.width,g[1]=_);var S=h++%l.length,x=new Mr({anid:b!=null?"line_"+b:null,autoBatch:!0,shape:{x1:p[0],y1:p[1],x2:g[0],y2:g[1]},style:pe({stroke:l[S]},m),silent:!0});Ja(x.shape,m.lineWidth),e.add(x)}}}},minorSplitLine:function(t,e,r,n,i){var a=r.axis,o=r.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=n.coordinateSystem.getRect(),u=a.isHorizontal(),c=a.getMinorTicksCoords();if(c.length)for(var f=[],v=[],h=s.getLineStyle(),d=0;d<c.length;d++)for(var p=0;p<c[d].length;p++){var g=a.toGlobalCoord(c[d][p].coord);u?(f[0]=g,f[1]=l.y,v[0]=g,v[1]=l.y+l.height):(f[0]=l.x,f[1]=g,v[0]=l.x+l.width,v[1]=g);var m=new Mr({anid:"minor_line_"+c[d][p].tickValue,autoBatch:!0,shape:{x1:f[0],y1:f[1],x2:v[0],y2:v[1]},style:h,silent:!0});Ja(m.shape,h.lineWidth),e.add(m)}},splitArea:function(t,e,r,n,i){Hk(t,e,r,n)},breakArea:function(t,e,r,n,i){r.axis.scale}},Xx=(function(t){G(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="xAxis",e})(qx),Wk=(function(t){G(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=Xx.type,r}return e.type="yAxis",e})(qx),jk=(function(t){G(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="grid",r}return e.prototype.render=function(r,n){this.group.removeAll(),r.get("show")&&this.group.add(new De({shape:r.coordinateSystem.getRect(),style:pe({fill:r.get("backgroundColor")},r.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e})(yt),ey={offset:0};function Zx(t){t.registerComponentView(jk),t.registerComponentModel(gO),t.registerCoordinateSystem("cartesian2d",Ak),Nm(t,"x",Ah,ey),Nm(t,"y",Ah,ey),t.registerComponentView(Xx),t.registerComponentView(Wk),t.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}function $k(t){vr(Zx),t.registerSeriesModel(fO),t.registerChartView(pO),t.registerLayout(uS("scatter"))}var Yk=1e-8;function ty(t,e){return Math.abs(t-e)<Yk}function ry(t,e,r){var n=0,i=t[0];if(!i)return!1;for(var a=1;a<t.length;a++){var o=t[a];n+=Tr(i[0],i[1],o[0],o[1],e,r),i=o}var s=t[0];return(!ty(i[0],s[0])||!ty(i[1],s[1]))&&(n+=Tr(i[0],i[1],s[0],s[1],e,r)),n!==0}var qk=[];function Xc(t,e){for(var r=0;r<t.length;r++)et(t[r],t[r],e)}function ny(t,e,r,n){for(var i=0;i<t.length;i++){var a=t[i];n&&(a=n.project(a)),a&&isFinite(a[0])&&isFinite(a[1])&&(Vr(e,e,a),Wr(r,r,a))}}function Xk(t){for(var e=0,r=0,n=0,i=t.length,a=t[i-1][0],o=t[i-1][1],s=0;s<i;s++){var l=t[s][0],u=t[s][1],c=a*u-l*o;e+=c,r+=(a+l)*c,n+=(o+u)*c,a=l,o=u}return e?[r/e/3,n/e/3,e]:[t[0][0]||0,t[0][1]||0]}var Kx=(function(){function t(e){this.name=e}return t.prototype.setCenter=function(e){this._center=e},t.prototype.getCenter=function(){var e=this._center;return e||(e=this._center=this.calcCenter()),e},t})(),iy=(function(){function t(e,r){this.type="polygon",this.exterior=e,this.interiors=r}return t})(),ay=(function(){function t(e){this.type="linestring",this.points=e}return t})(),Zk=(function(t){G(e,t);function e(r,n,i){var a=t.call(this,r)||this;return a.type="geoJSON",a.geometries=n,a._center=i&&[i[0],i[1]],a}return e.prototype.calcCenter=function(){for(var r=this.geometries,n,i=0,a=0;a<r.length;a++){var o=r[a],s=o.exterior,l=s&&s.length;l>i&&(n=o,i=l)}if(n)return Xk(n.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},e.prototype.getBoundingRect=function(r){var n=this._rect;if(n&&!r)return n;var i=[1/0,1/0],a=[-1/0,-1/0],o=this.geometries;return C(o,function(s){s.type==="polygon"?ny(s.exterior,i,a,r):C(s.points,function(l){ny(l,i,a,r)})}),isFinite(i[0])&&isFinite(i[1])&&isFinite(a[0])&&isFinite(a[1])||(i[0]=i[1]=a[0]=a[1]=0),n=new re(i[0],i[1],a[0]-i[0],a[1]-i[1]),r||(this._rect=n),n},e.prototype.contain=function(r){var n=this.getBoundingRect(),i=this.geometries;if(!n.contain(r[0],r[1]))return!1;e:for(var a=0,o=i.length;a<o;a++){var s=i[a];if(s.type==="polygon"){var l=s.exterior,u=s.interiors;if(ry(l,r[0],r[1])){for(var c=0;c<(u?u.length:0);c++)if(ry(u[c],r[0],r[1]))continue e;return!0}}}return!1},e.prototype.transformTo=function(r,n,i,a){var o=this.getBoundingRect(),s=o.width/o.height;i?a||(a=i/s):i=s*a;for(var l=new re(r,n,i,a),u=o.calculateTransform(l),c=this.geometries,f=0;f<c.length;f++){var v=c[f];v.type==="polygon"?(Xc(v.exterior,u),C(v.interiors,function(h){Xc(h,u)})):C(v.points,function(h){Xc(h,u)})}o=this._rect,o.copy(l),this._center=[o.x+o.width/2,o.y+o.height/2]},e.prototype.cloneShallow=function(r){r==null&&(r=this.name);var n=new e(r,this.geometries,this._center);return n._rect=this._rect,n.transformTo=null,n},e})(Kx);(function(t){G(e,t);function e(r,n){var i=t.call(this,r)||this;return i.type="geoSVG",i._elOnlyForCalculate=n,i}return e.prototype.calcCenter=function(){for(var r=this._elOnlyForCalculate,n=r.getBoundingRect(),i=[n.x+n.width/2,n.y+n.height/2],a=xo(qk),o=r;o&&!o.isGeoSVGGraphicRoot;)Vn(a,o.getLocalTransform(),a),o=o.parent;return Jn(a,a),et(i,i,a),i},e})(Kx);function Kk(t){if(!t.UTF8Encoding)return t;var e=t,r=e.UTF8Scale;r==null&&(r=1024);var n=e.features;return C(n,function(i){var a=i.geometry,o=a.encodeOffsets,s=a.coordinates;if(o)switch(a.type){case"LineString":a.coordinates=Qx(s,o,r);break;case"Polygon":Zc(s,o,r);break;case"MultiLineString":Zc(s,o,r);break;case"MultiPolygon":C(s,function(l,u){return Zc(l,o[u],r)})}}),e.UTF8Encoding=!1,e}function Zc(t,e,r){for(var n=0;n<t.length;n++)t[n]=Qx(t[n],e[n],r)}function Qx(t,e,r){for(var n=[],i=e[0],a=e[1],o=0;o<t.length;o+=2){var s=t.charCodeAt(o)-64,l=t.charCodeAt(o+1)-64;s=s>>1^-(s&1),l=l>>1^-(l&1),s+=i,l+=a,i=s,a=l,n.push([s/r,l/r])}return n}function oy(t,e){return t=Kk(t),X(Re(t.features,function(r){return r.geometry&&r.properties&&r.geometry.coordinates.length>0}),function(r){var n=r.properties,i=r.geometry,a=[];switch(i.type){case"Polygon":var o=i.coordinates;a.push(new iy(o[0],o.slice(1)));break;case"MultiPolygon":C(i.coordinates,function(l){l[0]&&a.push(new iy(l[0],l.slice(1)))});break;case"LineString":a.push(new ay([i.coordinates]));break;case"MultiLineString":a.push(new ay(i.coordinates))}var s=new Zk(n[e||"name"],a,n.cp);return s.properties=n,s})}var kn=xe(),sy=oe,Kc=de,Qk=(function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(e,r,n,i){var a=r.get("value"),o=r.get("status");if(this._axisModel=e,this._axisPointerModel=r,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,r,n);var c=u.graphicKey;c!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=c;var f=this._moveAnimation=this.determineAnimation(e,r);if(!s)s=this._group=new Ne,this.createPointerEl(s,u,e,r),this.createLabelEl(s,u,e,r),n.getZr().add(s);else{var v=we(ly,r,f);this.updatePointerEl(s,u,v),this.updateLabelEl(s,u,v,r)}cy(s,r,!0),this._renderHandle(a)}},t.prototype.remove=function(e){this.clear(e)},t.prototype.dispose=function(e){this.clear(e)},t.prototype.determineAnimation=function(e,r){var n=r.get("animation"),i=e.axis,a=i.type==="category",o=r.get("snap");if(!o&&!a)return!1;if(n==="auto"||n==null){var s=this.animationThreshold;if(a&&i.getBandWidth()>s)return!0;if(o){var l=_d(e).seriesDataCount,u=i.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return n===!0},t.prototype.makeElOption=function(e,r,n,i,a){},t.prototype.createPointerEl=function(e,r,n,i){var a=r.pointer;if(a){var o=kn(e).pointerEl=new pE[a.type](sy(r.pointer));e.add(o)}},t.prototype.createLabelEl=function(e,r,n,i){if(r.label){var a=kn(e).labelEl=new je(sy(r.label));e.add(a),uy(a,i)}},t.prototype.updatePointerEl=function(e,r,n){var i=kn(e).pointerEl;i&&r.pointer&&(i.setStyle(r.pointer.style),n(i,{shape:r.pointer.shape}))},t.prototype.updateLabelEl=function(e,r,n,i){var a=kn(e).labelEl;a&&(a.setStyle(r.label.style),n(a,{x:r.label.x,y:r.label.y}),uy(a,i))},t.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var r=this._axisPointerModel,n=this._api.getZr(),i=this._handle,a=r.getModel("handle"),o=r.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=du(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){DS(u.event)},onmousedown:Kc(this._onHandleDragMove,this,0,0),drift:Kc(this._onHandleDragMove,this),ondragend:Kc(this._onHandleDragEnd,this)}),n.add(i)),cy(i,r,!1),i.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=a.get("size");W(l)||(l=[l,l]),i.scaleX=l[0]/2,i.scaleY=l[1]/2,pS(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},t.prototype._moveHandleToValue=function(e,r){ly(this._axisPointerModel,!r&&this._moveAnimation,this._handle,Qc(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(e,r){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(Qc(n),[e,r],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(Qc(i)),kn(n).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){var r=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:r.cursorPoint[0],y:r.cursorPoint[1],tooltipOption:r.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},t.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(e){var r=this._axisPointerModel.get("value");this._moveHandleToValue(r),this._api.dispatchAction({type:"hideTip"})}},t.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var r=e.getZr(),n=this._group,i=this._handle;r&&n&&(this._lastGraphicKey=null,n&&r.remove(n),i&&r.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),vh(this,"_doDispatchAxisPointer")},t.prototype.doClear=function(){},t.prototype.buildLabel=function(e,r,n){return n=n||0,{x:e[n],y:e[1-n],width:r[n],height:r[1-n]}},t})();function ly(t,e,r,n){Jx(kn(r).lastProp,n)||(kn(r).lastProp=n,e?ct(r,n,t):(r.stopAnimation(),r.attr(n)))}function Jx(t,e){if(q(t)&&q(e)){var r=!0;return C(e,function(n,i){r=r&&Jx(t[i],n)}),!!r}else return t===e}function uy(t,e){t[e.get(["label","show"])?"show":"hide"]()}function Qc(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function cy(t,e,r){var n=e.get("z"),i=e.get("zlevel");t&&t.traverse(function(a){a.type!=="group"&&(n!=null&&(a.z=n),i!=null&&(a.zlevel=i),a.silent=r)})}function Jk(t){var e=t.get("type"),r=t.getModel(e+"Style"),n;return e==="line"?(n=r.getLineStyle(),n.fill=null):e==="shadow"&&(n=r.getAreaStyle(),n.stroke=null),n}function eN(t,e,r,n,i){var a=r.get("value"),o=e1(a,e.axis,e.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),s=r.getModel("label"),l=Ro(s.get("padding")||0),u=s.getFont(),c=X0(o,u),f=i.position,v=c.width+l[1]+l[3],h=c.height+l[0]+l[2],d=i.align;d==="right"&&(f[0]-=v),d==="center"&&(f[0]-=v/2);var p=i.verticalAlign;p==="bottom"&&(f[1]-=h),p==="middle"&&(f[1]-=h/2),tN(f,v,h,n);var g=s.get("backgroundColor");(!g||g==="auto")&&(g=e.get(["axisLine","lineStyle","color"])),t.label={x:f[0],y:f[1],style:Kn(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function tN(t,e,r,n){var i=n.getWidth(),a=n.getHeight();t[0]=Math.min(t[0]+e,i)-e,t[1]=Math.min(t[1]+r,a)-r,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}function e1(t,e,r,n,i){t=e.scale.parse(t);var a=e.scale.getLabel({value:t},{precision:i.precision}),o=i.formatter;if(o){var s={value:Ul(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};C(n,function(l){var u=r.getSeriesByIndex(l.seriesIndex),c=l.dataIndexInside,f=u&&u.getDataParams(c);f&&s.seriesData.push(f)}),Y(o)?a=o.replace("{value}",a):ie(o)&&(a=o(s))}return a}function t1(t,e,r){var n=Gt();return nu(n,n,r.rotation),il(n,n,r.position),Dv([t.dataToCoord(e),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],n)}function rN(t,e,r,n,i,a){var o=en.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=i.get(["label","margin"]),eN(e,n,i,a,{position:t1(n.axis,t,r),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function nN(t,e,r){return r=r||0,{x1:t[r],y1:t[1-r],x2:e[r],y2:e[1-r]}}function iN(t,e,r){return r=r||0,{x:t[r],y:t[1-r],width:e[r],height:e[1-r]}}var aN=(function(t){G(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.makeElOption=function(r,n,i,a,o){var s=i.axis,l=s.grid,u=a.get("type"),c=fy(l,s).getOtherAxis(s).getGlobalExtent(),f=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var v=Jk(a),h=oN[u](s,f,c);h.style=v,r.graphicKey=h.type,r.pointer=h}var d=Vl(l.getRect(),i);rN(n,r,d,i,a,o)},e.prototype.getHandleTransform=function(r,n,i){var a=Vl(n.axis.grid.getRect(),n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=t1(n.axis,r,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(r,n,i,a){var o=i.axis,s=o.grid,l=o.getGlobalExtent(!0),u=fy(s,o).getOtherAxis(o).getGlobalExtent(),c=o.dim==="x"?0:1,f=[r.x,r.y];f[c]+=n[c],f[c]=Math.min(l[1],f[c]),f[c]=Math.max(l[0],f[c]);var v=(u[1]+u[0])/2,h=[v,v];h[c]=f[c];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:f[0],y:f[1],rotation:r.rotation,cursorPoint:h,tooltipOption:d[c]}},e})(Qk);function fy(t,e){var r={};return r[e.dim+"AxisIndex"]=e.index,t.getCartesian(r)}var oN={line:function(t,e,r){var n=nN([e,r[0]],[e,r[1]],hy(t));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(t,e,r){var n=Math.max(1,t.getBandWidth()),i=r[1]-r[0];return{type:"Rect",shape:iN([e-n/2,r[0]],[n,i],hy(t))}}};function hy(t){return t.dim==="x"?0:1}var sN=(function(t){G(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}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:Z.color.border,width:1,type:"dashed"},shadowStyle:{color:Z.color.shadowTint},label:{show:!0,formatter:null,precision:"auto",margin:3,color:Z.color.neutral00,padding:[5,7,5,7],backgroundColor:Z.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:Z.color.accent40,throttle:40}},e})(fe),Dr=xe(),lN=C;function r1(t,e,r){if(!te.node){var n=e.getZr();Dr(n).records||(Dr(n).records={}),uN(n,e);var i=Dr(n).records[t]||(Dr(n).records[t]={});i.handler=r}}function uN(t,e){if(Dr(t).initialized)return;Dr(t).initialized=!0,r("click",we(vy,"click")),r("mousemove",we(vy,"mousemove")),r("globalout",fN);function r(n,i){t.on(n,function(a){var o=hN(e);lN(Dr(t).records,function(s){s&&i(s,a,o.dispatchAction)}),cN(o.pendings,e)})}}function cN(t,e){var r=t.showTip.length,n=t.hideTip.length,i;r?i=t.showTip[r-1]:n&&(i=t.hideTip[n-1]),i&&(i.dispatchAction=null,e.dispatchAction(i))}function fN(t,e,r){t.handler("leave",null,r)}function vy(t,e,r,n){e.handler(t,r,n)}function hN(t){var e={showTip:[],hideTip:[]},r=function(n){var i=e[n.type];i?i.push(n):(n.dispatchAction=r,t.dispatchAction(n))};return{dispatchAction:r,pendings:e}}function zh(t,e){if(!te.node){var r=e.getZr(),n=(Dr(r).records||{})[t];n&&(Dr(r).records[t]=null)}}var vN=(function(t){G(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,i){var a=n.getComponent("tooltip"),o=r.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click";r1("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(r,n){zh("axisPointer",n)},e.prototype.dispose=function(r,n){zh("axisPointer",n)},e.type="axisPointer",e})(yt);function n1(t,e){var r=[],n=t.seriesIndex,i;if(n==null||!(i=e.getSeriesByIndex(n)))return{point:[]};var a=i.getData(),o=Co(a,t);if(o==null||o<0||W(o))return{point:[]};var s=a.getItemGraphicEl(o),l=i.coordinateSystem;if(i.getTooltipPosition)r=i.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(t.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u),f=c.dim,v=u.dim,h=f==="x"||f==="radius"?1:0,d=a.mapDimension(v),p=[];p[h]=a.get(d,o),p[1-h]=a.get(a.getCalculationInfo("stackResultDimension"),o),r=l.dataToPoint(p)||[]}else r=l.dataToPoint(a.getValues(X(l.dimensions,function(m){return a.mapDimension(m)}),o))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),r=[g.x+g.width/2,g.y+g.height/2]}return{point:r,el:s}}var dy=xe();function dN(t,e,r){var n=t.currTrigger,i=[t.x,t.y],a=t,o=t.dispatchAction||de(r.dispatchAction,r),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){Qs(i)&&(i=n1({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},e).point);var l=Qs(i),u=a.axesInfo,c=s.axesInfo,f=n==="leave"||Qs(i),v={},h={},d={list:[],map:{}},p={showPointer:we(gN,h),showTooltip:we(mN,d)};C(s.coordSysMap,function(m,y){var _=l||m.containPoint(i);C(s.coordSysAxesInfo[y],function(b,S){var x=b.axis,w=SN(u,b);if(!f&&_&&(!u||w)){var T=w&&w.value;T==null&&!l&&(T=x.pointToData(i)),T!=null&&py(b,T,p,!1,v)}})});var g={};return C(c,function(m,y){var _=m.linkGroup;_&&!h[y]&&C(_.axesInfo,function(b,S){var x=h[S];if(b!==m&&x){var w=x.value;_.mapper&&(w=m.axis.scale.parse(_.mapper(w,gy(b),gy(m)))),g[m.key]=w}})}),C(g,function(m,y){py(c[y],m,p,!0,v)}),yN(h,c,v),_N(d,i,t,o),bN(c,o,r),v}}function py(t,e,r,n,i){var a=t.axis;if(!(a.scale.isBlank()||!a.containData(e))){if(!t.involveSeries){r.showPointer(t,e);return}var o=pN(e,t),s=o.payloadBatch,l=o.snapToValue;s[0]&&i.seriesIndex==null&&F(i,s[0]),!n&&t.snap&&a.containData(l)&&l!=null&&(e=l),r.showPointer(t,e,s),r.showTooltip(t,o,l)}}function pN(t,e){var r=e.axis,n=r.dim,i=t,a=[],o=Number.MAX_VALUE,s=-1;return C(e.seriesModels,function(l,u){var c=l.getData().mapDimensionsAll(n),f,v;if(l.getAxisTooltipData){var h=l.getAxisTooltipData(c,t,r);v=h.dataIndices,f=h.nestestValue}else{if(v=l.indicesOfNearest(n,c[0],t,r.type==="category"?.5:null),!v.length)return;f=l.getData().get(c[0],v[0])}if(!(f==null||!isFinite(f))){var d=t-f,p=Math.abs(d);p<=o&&((p<o||d>=0&&s<0)&&(o=p,s=d,i=f,a.length=0),C(v,function(g){a.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:a,snapToValue:i}}function gN(t,e,r,n){t[e.key]={value:r,payloadBatch:n}}function mN(t,e,r,n){var i=r.payloadBatch,a=e.axis,o=a.model,s=e.axisPointerModel;if(!(!e.triggerTooltip||!i.length)){var l=e.coordSys.model,u=fo(l),c=t.map[u];c||(c=t.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(c)),c.dataByAxis.push({axisDim: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 yN(t,e,r){var n=r.axesInfo=[];C(e,function(i,a){var o=i.axisPointerModel.option,s=t[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 _N(t,e,r,n){if(Qs(e)||!t.list.length){n({type:"hideTip"});return}var i=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:r.tooltipOption,position:r.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:t.list})}function bN(t,e,r){var n=r.getZr(),i="axisPointerLastHighlights",a=dy(n)[i]||{},o=dy(n)[i]={};C(t,function(u,c){var f=u.axisPointerModel.option;f.status==="show"&&u.triggerEmphasis&&C(f.seriesDataIndices,function(v){var h=v.seriesIndex+" | "+v.dataIndex;o[h]=v})});var s=[],l=[];C(a,function(u,c){!o[c]&&l.push(u)}),C(o,function(u,c){!a[c]&&s.push(u)}),l.length&&r.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&r.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function SN(t,e){for(var r=0;r<(t||[]).length;r++){var n=t[r];if(e.axis.dim===n.axisDim&&e.axis.model.componentIndex===n.axisIndex)return n}}function gy(t){var e=t.axis.model,r={},n=r.axisDim=t.axis.dim;return r.axisIndex=r[n+"AxisIndex"]=e.componentIndex,r.axisName=r[n+"AxisName"]=e.name,r.axisId=r[n+"AxisId"]=e.id,r}function Qs(t){return!t||t[0]==null||isNaN(t[0])||t[1]==null||isNaN(t[1])}function i1(t){Yx.registerAxisPointerClass("CartesianAxisPointer",aN),t.registerComponentModel(sN),t.registerComponentView(vN),t.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var r=e.axisPointer.link;r&&!W(r)&&(e.axisPointer.link=[r])}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,function(e,r){e.getComponent("axisPointer").coordSysAxesInfo=Ik(e,r)}),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},dN)}function xN(t){vr(Zx),vr(i1)}function wN(t,e){var r=Ro(e.get("padding")),n=e.getItemStyle(["color","opacity"]);n.fill=e.get("backgroundColor");var i=new De({shape:{x:t.x-r[3],y:t.y-r[0],width:t.width+r[1]+r[3],height:t.height+r[0]+r[2],r:e.get("borderRadius")},style:n,silent:!0,z2:-1});return i}var TN=(function(t){G(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:Z.color.neutral00,shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:Z.color.border,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:Z.color.borderShade,width:1,type:"dashed",textStyle:{}}},textStyle:{color:Z.color.tertiary,fontSize:14}},e})(fe);function a1(t){var e=t.get("confine");return e!=null?!!e:t.get("renderMode")==="richText"}function o1(t){if(te.domSupported){for(var e=document.documentElement.style,r=0,n=t.length;r<n;r++)if(t[r]in e)return t[r]}}var s1=o1(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),CN=o1(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function l1(t,e){if(!t)return e;e=Yv(e,!0);var r=t.indexOf(e);return t=r===-1?e:"-"+t.slice(0,r)+"-"+e,t.toLowerCase()}function DN(t,e){var r=t.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(t);return r?r[e]:null}var MN=l1(CN,"transition"),bd=l1(s1,"transform"),AN="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(te.transform3dSupported?"will-change:transform;":"");function EN(t){return t=t==="left"?"right":t==="right"?"left":t==="top"?"bottom":"top",t}function RN(t,e,r){if(!Y(r)||r==="inside")return"";var n=t.get("backgroundColor"),i=t.get("borderWidth");e=ro(e);var a=EN(r),o=Math.max(Math.round(i)*1.5,6),s="",l=bd+":",u;le(["left","right"],a)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=a==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=a==="top"?225:45)+"deg)");var c=u*Math.PI/180,f=o+i,v=f*Math.abs(Math.cos(c))+f*Math.abs(Math.sin(c)),h=Math.round(((v-Math.SQRT2*i)/2+Math.SQRT2*i-(v-f)/2)*100)/100;s+=";"+a+":-"+h+"px";var d=e+" solid "+i+"px;",p=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+d,"border-right:"+d,"background-color:"+n+";"];return'<div style="'+p.join("")+'"></div>'}function LN(t,e,r){var n="cubic-bezier(0.23,1,0.32,1)",i="",a="";return r&&(i=" "+t/2+"s "+n,a="opacity"+i+",visibility"+i),e||(i=" "+t+"s "+n,a+=(a.length?",":"")+(te.transformSupported?""+bd+i:",left"+i+",top"+i)),MN+":"+a}function my(t,e,r){var n=t.toFixed(0)+"px",i=e.toFixed(0)+"px";if(!te.transformSupported)return r?"top:"+i+";left:"+n+";":[["top",i],["left",n]];var a=te.transform3dSupported,o="translate"+(a?"3d":"")+"("+n+","+i+(a?",0":"")+")";return r?"top:0;left:0;"+bd+":"+o+";":[["top",0],["left",0],[s1,o]]}function PN(t){var e=[],r=t.get("fontSize"),n=t.getTextColor();n&&e.push("color:"+n),e.push("font:"+t.getFont());var i=K(t.get("lineHeight"),Math.round(r*3/2));r&&e.push("line-height:"+i+"px");var a=t.get("textShadowColor"),o=t.get("textShadowBlur")||0,s=t.get("textShadowOffsetX")||0,l=t.get("textShadowOffsetY")||0;return a&&o&&e.push("text-shadow:"+s+"px "+l+"px "+o+"px "+a),C(["decoration","align"],function(u){var c=t.get(u);c&&e.push("text-"+u+":"+c)}),e.join(";")}function IN(t,e,r,n){var i=[],a=t.get("transitionDuration"),o=t.get("backgroundColor"),s=t.get("shadowBlur"),l=t.get("shadowColor"),u=t.get("shadowOffsetX"),c=t.get("shadowOffsetY"),f=t.getModel("textStyle"),v=nS(t,"html"),h=u+"px "+c+"px "+s+"px "+l;return i.push("box-shadow:"+h),e&&a>0&&i.push(LN(a,r,n)),o&&i.push("background-color:"+o),C(["width","color","radius"],function(d){var p="border-"+d,g=Yv(p),m=t.get(g);m!=null&&i.push(p+":"+m+(d==="color"?"":"px"))}),i.push(PN(f)),v!=null&&i.push("padding:"+Ro(v).join("px ")+"px"),i.join(";")+";"}function yy(t,e,r,n,i){var a=e&&e.painter;if(r){var o=a&&a.getViewportRoot();o&&_R(t,o,r,n,i)}else{t[0]=n,t[1]=i;var s=a&&a.getViewportRootOffset();s&&(t[0]+=s.offsetLeft,t[1]+=s.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var ON=(function(){function t(e,r){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,te.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var i=this._zr=e.getZr(),a=r.appendTo,o=a&&(Y(a)?document.querySelector(a):ki(a)?a:ie(a)&&a(e.getDom()));yy(this._styleCoord,i,o,e.getWidth()/2,e.getHeight()/2),(o||e.getDom()).appendChild(n),this._api=e,this._container=o;var s=this;n.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},n.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=i.handler,c=i.painter.getViewportRoot();wt(c,l,!0),u.dispatch("mousemove",l)}},n.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return t.prototype.update=function(e){if(!this._container){var r=this._api.getDom(),n=DN(r,"position"),i=r.style;i.position!=="absolute"&&n!=="absolute"&&(i.position="relative")}var a=e.get("alwaysShowContent");a&&this._moveIfResized(),this._alwaysShowContent=a,this._enableDisplayTransition=e.get("displayTransition")&&e.get("transitionDuration")>0,this.el.className=e.get("className")||""},t.prototype.show=function(e,r){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,a=this._styleCoord;n.innerHTML?i.cssText=AN+IN(e,!this._firstShow,this._longHide,this._enableDisplayTransition)+my(a[0],a[1],!0)+("border-color:"+ro(r)+";")+(e.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(e,r,n,i,a){var o=this.el;if(e==null){o.innerHTML="";return}var s="";if(Y(a)&&n.get("trigger")==="item"&&!a1(n)&&(s=RN(n,i,a)),Y(e))o.innerHTML=e+s;else if(e){o.innerHTML="",W(e)||(e=[e]);for(var l=0;l<e.length;l++)ki(e[l])&&e[l].parentNode!==o&&o.appendChild(e[l]);if(s&&o.childNodes.length){var u=document.createElement("div");u.innerHTML=s,o.appendChild(u)}}},t.prototype.setEnterable=function(e){this._enterable=e},t.prototype.getSize=function(){var e=this.el;return e?[e.offsetWidth,e.offsetHeight]:[0,0]},t.prototype.moveTo=function(e,r){if(this.el){var n=this._styleCoord;if(yy(n,this._zr,this._container,e,r),n[0]!=null&&n[1]!=null){var i=this.el.style,a=my(n[0],n[1]);C(a,function(o){i[o[0]]=o[1]})}}},t.prototype._moveIfResized=function(){var e=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),r*this._zr.getHeight())},t.prototype.hide=function(){var e=this,r=this.el.style;this._enableDisplayTransition?(r.visibility="hidden",r.opacity="0"):r.display="none",te.transform3dSupported&&(r.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return e._longHide=!0},500)},t.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(de(this.hide,this),e)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var e=this._zr;bR(e&&e.painter&&e.painter.getViewportRoot(),this._container);var r=this.el;if(r){r.onmouseenter=r.onmousemove=r.onmouseleave=null;var n=r.parentNode;n&&n.removeChild(r)}this.el=this._container=null},t})(),kN=(function(){function t(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),by(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return t.prototype.update=function(e){var r=e.get("alwaysShowContent");r&&this._moveIfResized(),this._alwaysShowContent=r},t.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},t.prototype.setContent=function(e,r,n,i,a){var o=this;q(e)&&ot(""),this.el&&this._zr.remove(this.el);var s=n.getModel("textStyle");this.el=new je({style:{rich:r.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:s.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:nS(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),C(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=n.get(u)}),C(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(u){o.el.style[u]=s.get(u)||0}),this._zr.add(this.el);var l=this;this.el.on("mouseover",function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0}),this.el.on("mouseout",function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1})},t.prototype.setEnterable=function(e){this._enterable=e},t.prototype.getSize=function(){var e=this.el,r=this.el.getBoundingRect(),n=_y(e.style);return[r.width+n.left+n.right,r.height+n.top+n.bottom]},t.prototype.moveTo=function(e,r){var n=this.el;if(n){var i=this._styleCoord;by(i,this._zr,e,r),e=i[0],r=i[1];var a=n.style,o=Hr(a.borderWidth||0),s=_y(a);n.x=e+o+s.left,n.y=r+o+s.top,n.markRedraw()}},t.prototype._moveIfResized=function(){var e=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),r*this._zr.getHeight())},t.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},t.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(de(this.hide,this),e)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this._zr.remove(this.el)},t})();function Hr(t){return Math.max(0,t)}function _y(t){var e=Hr(t.shadowBlur||0),r=Hr(t.shadowOffsetX||0),n=Hr(t.shadowOffsetY||0);return{left:Hr(e-r),right:Hr(e+r),top:Hr(e-n),bottom:Hr(e+n)}}function by(t,e,r,n){t[0]=r,t[1]=n,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var NN=new De({shape:{x:-1,y:-1,width:2,height:2}}),BN=(function(t){G(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.init=function(r,n){if(!(te.node||!n.getDom())){var i=r.getComponent("tooltip"),a=this._renderMode=fA(i.get("renderMode"));this._tooltipContent=a==="richText"?new kN(n):new ON(n,{appendTo:i.get("appendToBody",!0)?"body":i.get("appendTo",!0)})}},e.prototype.render=function(r,n,i){if(!(te.node||!i.getDom())){this.group.removeAll(),this._tooltipModel=r,this._ecModel=n,this._api=i;var a=this._tooltipContent;a.update(r),a.setEnterable(r.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&r.get("transitionDuration")?pS(this,"_updatePosition",50,"fixRate"):vh(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var r=this._tooltipModel,n=r.get("triggerOn");r1("itemTooltip",this._api,de(function(i,a,o){n!=="none"&&(n.indexOf(i)>=0?this._tryShow(a,o):i==="leave"&&this._hide(o))},this))},e.prototype._keepShow=function(){var r=this._tooltipModel,n=this._ecModel,i=this._api,a=r.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&a!=="none"&&a!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!i.isDisposed()&&o.manuallyShowTip(r,n,i,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(r,n,i,a){if(!(a.from===this.uid||te.node||!i.getDom())){var o=Sy(a,i);this._ticket="";var s=a.dataByCoordSys,l=UN(a,n,i);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:a.position,positionDefault:"bottom"},o)}else if(a.tooltip&&a.x!=null&&a.y!=null){var c=NN;c.x=a.x,c.y=a.y,c.update(),he(c).tooltipConfig={name:null,option:a.tooltip},this._tryShow({offsetX:a.x,offsetY:a.y,target:c},o)}else if(s)this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,dataByCoordSys:s,tooltipOption:a.tooltipOption},o);else if(a.seriesIndex!=null){if(this._manuallyAxisShowTip(r,n,i,a))return;var f=n1(a,n),v=f.point[0],h=f.point[1];v!=null&&h!=null&&this._tryShow({offsetX:v,offsetY:h,target:f.el,position:a.position,positionDefault:"bottom"},o)}else a.x!=null&&a.y!=null&&(i.dispatchAction({type:"updateAxisPointer",x:a.x,y:a.y}),this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,target:i.getZr().findHover(a.x,a.y).target},o))}},e.prototype.manuallyHideTip=function(r,n,i,a){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,a.from!==this.uid&&this._hide(Sy(a,i))},e.prototype._manuallyAxisShowTip=function(r,n,i,a){var o=a.seriesIndex,s=a.dataIndex,l=n.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=n.getSeriesByIndex(o);if(u){var c=u.getData(),f=va([c.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(f.get("trigger")==="axis")return i.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:a.position}),!0}}},e.prototype._tryShow=function(r,n){var i=r.target,a=this._tooltipModel;if(a){this._lastX=r.offsetX,this._lastY=r.offsetY;var o=r.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,r);else if(i){var s=he(i);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;Ea(i,function(c){if(c.tooltipDisabled)return l=u=null,!0;l||u||(he(c).dataIndex!=null?l=c:he(c).tooltipConfig!=null&&(u=c))},!0),l?this._showSeriesItemTooltip(r,l,n):u?this._showComponentItemTooltip(r,u,n):this._hide(n)}else this._lastDataByCoordSys=null,this._hide(n)}},e.prototype._showOrMove=function(r,n){var i=r.get("showDelay");n=de(n,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(n,i):n()},e.prototype._showAxisTooltip=function(r,n){var i=this._ecModel,a=this._tooltipModel,o=[n.offsetX,n.offsetY],s=va([n.tooltipOption],a),l=this._renderMode,u=[],c=io("section",{blocks:[],noHeader:!0}),f=[],v=new _c;C(r,function(y){C(y.dataByAxis,function(_){var b=i.getComponent(_.axisDim+"Axis",_.axisIndex),S=_.value;if(!(!b||S==null)){var x=e1(S,b.axis,i,_.seriesDataIndices,_.valueLabelOpt),w=io("section",{header:x,noHeader:!Ut(x),sortBlocks:!0,blocks:[]});c.blocks.push(w),C(_.seriesDataIndices,function(T){var M=i.getSeriesByIndex(T.seriesIndex),A=T.dataIndexInside,D=M.getDataParams(A);if(!(D.dataIndex<0)){D.axisDim=_.axisDim,D.axisIndex=_.axisIndex,D.axisType=_.axisType,D.axisId=_.axisId,D.axisValue=Ul(b.axis,{value:S}),D.axisValueLabel=x,D.marker=v.makeTooltipMarker("item",ro(D.color),l);var P=gg(M.formatTooltip(A,!0,null)),E=P.frag;if(E){var L=va([M],a).get("valueFormatter");w.blocks.push(L?F({valueFormatter:L},E):E)}P.text&&f.push(P.text),u.push(D)}})}})}),c.blocks.reverse(),f.reverse();var h=n.position,d=s.get("order"),p=bg(c,v,l,d,i.get("useUTC"),s.get("textStyle"));p&&f.unshift(p);var g=l==="richText"?`
|
|
21
|
-
|
|
22
|
-
`:"<br/>",m=f.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(r,u)?this._updatePosition(s,h,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,m,u,Math.random()+"",o[0],o[1],h,null,v)})},e.prototype._showSeriesItemTooltip=function(r,n,i){var a=this._ecModel,o=he(n),s=o.seriesIndex,l=a.getSeriesByIndex(s),u=o.dataModel||l,c=o.dataIndex,f=o.dataType,v=u.getData(f),h=this._renderMode,d=r.positionDefault,p=va([v.getItemModel(c),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),g=p.get("trigger");if(!(g!=null&&g!=="item")){var m=u.getDataParams(c,f),y=new _c;m.marker=y.makeTooltipMarker("item",ro(m.color),h);var _=gg(u.formatTooltip(c,!1,f)),b=p.get("order"),S=p.get("valueFormatter"),x=_.frag,w=x?bg(S?F({valueFormatter:S},x):x,y,h,b,a.get("useUTC"),p.get("textStyle")):_.text,T="item_"+u.name+"_"+c;this._showOrMove(p,function(){this._showTooltipContent(p,w,m,T,r.offsetX,r.offsetY,r.position,r.target,y)}),i({type:"showTip",dataIndexInside:c,dataIndex:v.getRawIndex(c),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(r,n,i){var a=this._renderMode==="html",o=he(n),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(Y(l)){var c=l;l={content:c,formatter:c},u=!0}u&&a&&l.content&&(l=oe(l),l.content=Qe(l.content));var f=[l],v=this._ecModel.getComponent(o.componentMainType,o.componentIndex);v&&f.push(v),f.push({formatter:l.content});var h=r.positionDefault,d=va(f,this._tooltipModel,h?{position:h}:null),p=d.get("content"),g=Math.random()+"",m=new _c;this._showOrMove(d,function(){var y=oe(d.get("formatterParams")||{});this._showTooltipContent(d,p,y,g,r.offsetX,r.offsetY,r.position,n,m)}),i({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(r,n,i,a,o,s,l,u,c){if(this._ticket="",!(!r.get("showContent")||!r.get("show"))){var f=this._tooltipContent;f.setEnterable(r.get("enterable"));var v=r.get("formatter");l=l||r.get("position");var h=n,d=this._getNearestPoint([o,s],i,r.get("trigger"),r.get("borderColor"),r.get("defaultBorderColor",!0)),p=d.color;if(v)if(Y(v)){var g=r.ecModel.get("useUTC"),m=W(i)?i[0]:i,y=m&&m.axisType&&m.axisType.indexOf("time")>=0;h=v,y&&(h=Eo(m.axisValue,h,g)),h=qv(h,i,!0)}else if(ie(v)){var _=de(function(b,S){b===this._ticket&&(f.setContent(S,c,r,p,l),this._updatePosition(r,l,o,s,f,i,u))},this);this._ticket=a,h=v(i,a,_)}else h=v;f.setContent(h,c,r,p,l),f.show(r,p),this._updatePosition(r,l,o,s,f,i,u)}},e.prototype._getNearestPoint=function(r,n,i,a,o){if(i==="axis"||W(n))return{color:a||o};if(!W(n))return{color:a||n.color||n.borderColor}},e.prototype._updatePosition=function(r,n,i,a,o,s,l){var u=this._api.getWidth(),c=this._api.getHeight();n=n||r.get("position");var f=o.getSize(),v=r.get("align"),h=r.get("verticalAlign"),d=l&&l.getBoundingRect().clone();if(l&&d.applyTransform(l.transform),ie(n)&&(n=n([i,a],s,o.el,d,{viewSize:[u,c],contentSize:f.slice()})),W(n))i=be(n[0],u),a=be(n[1],c);else if(q(n)){var p=n;p.width=f[0],p.height=f[1];var g=an(p,{width:u,height:c});i=g.x,a=g.y,v=null,h=null}else if(Y(n)&&l){var m=HN(n,d,f,r.get("borderWidth"));i=m[0],a=m[1]}else{var m=FN(i,a,o,u,c,v?null:20,h?null:20);i=m[0],a=m[1]}if(v&&(i-=xy(v)?f[0]/2:v==="right"?f[0]:0),h&&(a-=xy(h)?f[1]/2:h==="bottom"?f[1]:0),a1(r)){var m=zN(i,a,o,u,c);i=m[0],a=m[1]}o.moveTo(i,a)},e.prototype._updateContentNotChangedOnAxis=function(r,n){var i=this._lastDataByCoordSys,a=this._cbParamsList,o=!!i&&i.length===r.length;return o&&C(i,function(s,l){var u=s.dataByAxis||[],c=r[l]||{},f=c.dataByAxis||[];o=o&&u.length===f.length,o&&C(u,function(v,h){var d=f[h]||{},p=v.seriesDataIndices||[],g=d.seriesDataIndices||[];o=o&&v.value===d.value&&v.axisType===d.axisType&&v.axisId===d.axisId&&p.length===g.length,o&&C(p,function(m,y){var _=g[y];o=o&&m.seriesIndex===_.seriesIndex&&m.dataIndex===_.dataIndex}),a&&C(v.seriesDataIndices,function(m){var y=m.seriesIndex,_=n[y],b=a[y];_&&b&&b.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=r,this._cbParamsList=n,!!o},e.prototype._hide=function(r){this._lastDataByCoordSys=null,r({type:"hideTip",from:this.uid})},e.prototype.dispose=function(r,n){te.node||!n.getDom()||(vh(this,"_updatePosition"),this._tooltipContent.dispose(),zh("itemTooltip",n))},e.type="tooltip",e})(yt);function va(t,e,r){var n=e.ecModel,i;r?(i=new _e(r,n,n),i=new _e(e.option,i,n)):i=e;for(var a=t.length-1;a>=0;a--){var o=t[a];o&&(o instanceof _e&&(o=o.get("tooltip",!0)),Y(o)&&(o={formatter:o}),o&&(i=new _e(o,i,n)))}return i}function Sy(t,e){return t.dispatchAction||de(e.dispatchAction,e)}function FN(t,e,r,n,i,a,o){var s=r.getSize(),l=s[0],u=s[1];return a!=null&&(t+l+a+2>n?t-=l+a:t+=a),o!=null&&(e+u+o>i?e-=u+o:e+=o),[t,e]}function zN(t,e,r,n,i){var a=r.getSize(),o=a[0],s=a[1];return t=Math.min(t+o,n)-o,e=Math.min(e+s,i)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}function HN(t,e,r,n){var i=r[0],a=r[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,u=e.width,c=e.height;switch(t){case"inside":s=e.x+u/2-i/2,l=e.y+c/2-a/2;break;case"top":s=e.x+u/2-i/2,l=e.y-a-o;break;case"bottom":s=e.x+u/2-i/2,l=e.y+c+o;break;case"left":s=e.x-i-o,l=e.y+c/2-a/2;break;case"right":s=e.x+u+o,l=e.y+c/2-a/2}return[s,l]}function xy(t){return t==="center"||t==="middle"}function UN(t,e,r){var n=dv(t).queryOptionMap,i=n.keys()[0];if(!(!i||i==="series")){var a=Do(e,i,n.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),o=a.models[0];if(o){var s=r.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var c=he(u).tooltipConfig;if(c&&c.name===t.name)return l=u,!0}),l)return{componentMainType:i,componentIndex:o.componentIndex,el:l}}}}function GN(t){vr(i1),t.registerComponentModel(TN),t.registerComponentView(BN),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Je),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Je)}var VN=function(t,e){if(e==="all")return{type:"all",title:t.getLocaleModel().get(["legend","selector","all"])};if(e==="inverse")return{type:"inverse",title:t.getLocaleModel().get(["legend","selector","inverse"])}},Hh=(function(t){G(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.layoutMode={type:"box",ignoreSize:!0},r}return e.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i),r.selected=r.selected||{},this._updateSelector(r)},e.prototype.mergeOption=function(r,n){t.prototype.mergeOption.call(this,r,n),this._updateSelector(r)},e.prototype._updateSelector=function(r){var n=r.selector,i=this.ecModel;n===!0&&(n=r.selector=["all","inverse"]),W(n)&&C(n,function(a,o){Y(a)&&(a={type:a}),n[o]=ue(a,VN(i,a.type))})},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var r=this._data;if(r[0]&&this.get("selectedMode")==="single"){for(var n=!1,i=0;i<r.length;i++){var a=r[i].get("name");if(this.isSelected(a)){this.select(a),n=!0;break}}!n&&this.select(r[0].get("name"))}},e.prototype._updateData=function(r){var n=[],i=[];r.eachRawSeries(function(l){var u=l.name;i.push(u);var c;if(l.legendVisualProvider){var f=l.legendVisualProvider,v=f.getAllNames();r.isSeriesFiltered(l)||(i=i.concat(v)),v.length?n=n.concat(v):c=!0}else c=!0;c&&vv(l)&&n.push(l.name)}),this._availableNames=i;var a=this.get("data")||n,o=ae(),s=X(a,function(l){return(Y(l)||me(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new _e(l,this,this.ecModel))},this);this._data=Re(s,function(l){return!!l})},e.prototype.getData=function(){return this._data},e.prototype.select=function(r){var n=this.option.selected,i=this.get("selectedMode");if(i==="single"){var a=this._data;C(a,function(o){n[o.get("name")]=!1})}n[r]=!0},e.prototype.unSelect=function(r){this.get("selectedMode")!=="single"&&(this.option.selected[r]=!1)},e.prototype.toggleSelected=function(r){var n=this.option.selected;n.hasOwnProperty(r)||(n[r]=!0),this[n[r]?"unSelect":"select"](r)},e.prototype.allSelect=function(){var r=this._data,n=this.option.selected;C(r,function(i){n[i.get("name",!0)]=!0})},e.prototype.inverseSelect=function(){var r=this._data,n=this.option.selected;C(r,function(i){var a=i.get("name",!0);n.hasOwnProperty(a)||(n[a]=!0),n[a]=!n[a]})},e.prototype.isSelected=function(r){var n=this.option.selected;return!(n.hasOwnProperty(r)&&!n[r])&&le(this._availableNames,r)>=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:Z.size.m,align:"auto",backgroundColor:Z.color.transparent,borderColor:Z.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:Z.color.disabled,inactiveBorderColor:Z.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:Z.color.disabled,inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:Z.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:Z.color.tertiary,borderWidth:1,borderColor:Z.color.border},emphasis:{selectorLabel:{show:!0,color:Z.color.quaternary}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},e})(fe),Si=we,Uh=C,Ts=Ne,u1=(function(t){G(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.newlineDisabled=!1,r}return e.prototype.init=function(){this.group.add(this._contentGroup=new Ts),this.group.add(this._selectorGroup=new Ts),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(r,n,i){var a=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!r.get("show",!0)){var o=r.get("align"),s=r.get("orient");(!o||o==="auto")&&(o=r.get("left")==="right"&&s==="vertical"?"right":"left");var l=r.get("selector",!0),u=r.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,r,n,i,l,s,u);var c=Zv(r,i).refContainer,f=r.getBoxLayoutParams(),v=r.get("padding"),h=an(f,c,v),d=this.layoutInner(r,o,h,a,l,u),p=an(pe({width:d.width,height:d.height},f),c,v);this.group.x=p.x-d.x,this.group.y=p.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=wN(d,r))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(r,n,i,a,o,s,l){var u=this.getContentGroup(),c=ae(),f=n.get("selectedMode"),v=n.get("triggerEvent"),h=[];i.eachRawSeries(function(d){!d.get("legendHoverLink")&&h.push(d.id)}),Uh(n.getData(),function(d,p){var g=this,m=d.get("name");if(!this.newlineDisabled&&(m===""||m===`
|
|
23
|
-
`)){var y=new Ts;y.newline=!0,u.add(y);return}var _=i.getSeriesByName(m)[0];if(!c.get(m))if(_){var b=_.getData(),S=b.getVisual("legendLineStyle")||{},x=b.getVisual("legendIcon"),w=b.getVisual("style"),T=this._createItem(_,m,p,d,n,r,S,w,x,f,a);T.on("click",Si(wy,m,null,a,h)).on("mouseover",Si(Gh,_.name,null,a,h)).on("mouseout",Si(Vh,_.name,null,a,h)),i.ssr&&T.eachChild(function(M){var A=he(M);A.seriesIndex=_.seriesIndex,A.dataIndex=p,A.ssrType="legend"}),v&&T.eachChild(function(M){g.packEventData(M,n,_,p,m)}),c.set(m,!0)}else i.eachRawSeries(function(M){var A=this;if(!c.get(m)&&M.legendVisualProvider){var D=M.legendVisualProvider;if(!D.containName(m))return;var P=D.indexOfName(m),E=D.getItemVisual(P,"style"),L=D.getItemVisual(P,"legendIcon"),k=gt(E.fill);k&&k[3]===0&&(k[3]=.2,E=F(F({},E),{fill:un(k,"rgba")}));var N=this._createItem(M,m,p,d,n,r,{},E,L,f,a);N.on("click",Si(wy,null,m,a,h)).on("mouseover",Si(Gh,null,m,a,h)).on("mouseout",Si(Vh,null,m,a,h)),i.ssr&&N.eachChild(function($){var B=he($);B.seriesIndex=M.seriesIndex,B.dataIndex=p,B.ssrType="legend"}),v&&N.eachChild(function($){A.packEventData($,n,M,p,m)}),c.set(m,!0)}},this)},this),o&&this._createSelector(o,n,a,s,l)},e.prototype.packEventData=function(r,n,i,a,o){var s={componentType:"legend",componentIndex:n.componentIndex,dataIndex:a,value:o,seriesIndex:i.seriesIndex};he(r).eventData=s},e.prototype._createSelector=function(r,n,i,a,o){var s=this.getSelectorGroup();Uh(r,function(u){var c=u.type,f=new je({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:c==="all"?"legendAllSelect":"legendInverseSelect",legendId:n.id})}});s.add(f);var v=n.getModel("selectorLabel"),h=n.getModel(["emphasis","selectorLabel"]);yu(f,{normal:v,emphasis:h},{defaultText:u.title}),bl(f)})},e.prototype._createItem=function(r,n,i,a,o,s,l,u,c,f,v){var h=r.visualDrawType,d=o.get("itemWidth"),p=o.get("itemHeight"),g=o.isSelected(n),m=a.get("symbolRotate"),y=a.get("symbolKeepAspect"),_=a.get("icon");c=_||c||"roundRect";var b=WN(c,a,l,u,h,g,v),S=new Ts,x=a.getModel("textStyle");if(ie(r.getLegendIcon)&&(!_||_==="inherit"))S.add(r.getLegendIcon({itemWidth:d,itemHeight:p,icon:c,iconRotate:m,itemStyle:b.itemStyle,lineStyle:b.lineStyle,symbolKeepAspect:y}));else{var w=_==="inherit"&&r.getData().getVisual("symbol")?m==="inherit"?r.getData().getVisual("symbolRotate"):m:0;S.add(jN({itemWidth:d,itemHeight:p,icon:c,iconRotate:w,itemStyle:b.itemStyle,symbolKeepAspect:y}))}var T=s==="left"?d+5:-5,M=s,A=o.get("formatter"),D=n;Y(A)&&A?D=A.replace("{name}",n??""):ie(A)&&(D=A(n));var P=g?x.getTextColor():a.get("inactiveColor");S.add(new je({style:Kn(x,{text:D,x:T,y:p/2,fill:P,align:M,verticalAlign:"middle"},{inheritColor:P})}));var E=new De({shape:S.getBoundingRect(),style:{fill:"transparent"}}),L=a.getModel("tooltip");return L.get("show")&&pu({el:E,componentModel:o,itemName:n,itemTooltipOption:L.option}),S.add(E),S.eachChild(function(k){k.silent=!0}),E.silent=!f,this.getContentGroup().add(S),bl(S),S.__legendDataIndex=i,S},e.prototype.layoutInner=function(r,n,i,a,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();Ha(r.get("orient"),l,r.get("itemGap"),i.width,i.height);var c=l.getBoundingRect(),f=[-c.x,-c.y];if(u.markRedraw(),l.markRedraw(),o){Ha("horizontal",u,r.get("selectorItemGap",!0));var v=u.getBoundingRect(),h=[-v.x,-v.y],d=r.get("selectorButtonGap",!0),p=r.getOrient().index,g=p===0?"width":"height",m=p===0?"height":"width",y=p===0?"y":"x";s==="end"?h[p]+=c[g]+d:f[p]+=v[g]+d,h[1-p]+=c[m]/2-v[m]/2,u.x=h[0],u.y=h[1],l.x=f[0],l.y=f[1];var _={x:0,y:0};return _[g]=c[g]+d+v[g],_[m]=Math.max(c[m],v[m]),_[y]=Math.min(0,v[y]+h[1-p]),_}else return l.x=f[0],l.y=f[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e})(yt);function WN(t,e,r,n,i,a,o){function s(g,m){g.lineWidth==="auto"&&(g.lineWidth=m.lineWidth>0?2:0),Uh(g,function(y,_){g[_]==="inherit"&&(g[_]=m[_])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),c=t.lastIndexOf("empty",0)===0?"fill":"stroke",f=l.getShallow("decal");u.decal=!f||f==="inherit"?n.decal:xh(f,o),u.fill==="inherit"&&(u.fill=n[i]),u.stroke==="inherit"&&(u.stroke=n[c]),u.opacity==="inherit"&&(u.opacity=(i==="fill"?n:r).opacity),s(u,n);var v=e.getModel("lineStyle"),h=v.getLineStyle();if(s(h,r),u.fill==="auto"&&(u.fill=n.fill),u.stroke==="auto"&&(u.stroke=n.fill),h.stroke==="auto"&&(h.stroke=n.fill),!a){var d=e.get("inactiveBorderWidth"),p=u[c];u.lineWidth=d==="auto"?n.lineWidth>0&&p?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),h.stroke=v.get("inactiveColor"),h.lineWidth=v.get("inactiveWidth")}return{itemStyle:u,lineStyle:h}}function jN(t){var e=t.icon||"roundRect",r=qi(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill,t.symbolKeepAspect);return r.setStyle(t.itemStyle),r.rotation=(t.iconRotate||0)*Math.PI/180,r.setOrigin([t.itemWidth/2,t.itemHeight/2]),e.indexOf("empty")>-1&&(r.style.stroke=r.style.fill,r.style.fill=Z.color.neutral00,r.style.lineWidth=2),r}function wy(t,e,r,n){Vh(t,e,r,n),r.dispatchAction({type:"legendToggleSelect",name:t??e}),Gh(t,e,r,n)}function c1(t){for(var e=t.getZr().storage.getDisplayList(),r,n=0,i=e.length;n<i&&!(r=e[n].states.emphasis);)n++;return r&&r.hoverLayer}function Gh(t,e,r,n){c1(r)||r.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:n})}function Vh(t,e,r,n){c1(r)||r.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:n})}function $N(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.filterSeries(function(r){for(var n=0;n<e.length;n++)if(!e[n].isSelected(r.name))return!1;return!0})}function da(t,e,r){var n=t==="allSelect"||t==="inverseSelect",i={},a=[];r.eachComponent({mainType:"legend",query:e},function(s){n?s[t]():s[t](e.name),Ty(s,i),a.push(s.componentIndex)});var o={};return r.eachComponent("legend",function(s){C(i,function(l,u){s[l?"select":"unSelect"](u)}),Ty(s,o)}),n?{selected:o,legendIndex:a}:{name:e.name,selected:o}}function Ty(t,e){var r=e||{};return C(t.getData(),function(n){var i=n.get("name");if(!(i===`
|
|
24
|
-
`||i==="")){var a=t.isSelected(i);Lt(r,i)?r[i]=r[i]&&a:r[i]=a}}),r}function YN(t){t.registerAction("legendToggleSelect","legendselectchanged",we(da,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",we(da,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",we(da,"inverseSelect")),t.registerAction("legendSelect","legendselected",we(da,"select")),t.registerAction("legendUnSelect","legendunselected",we(da,"unSelect"))}function f1(t){t.registerComponentModel(Hh),t.registerComponentView(u1),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,$N),t.registerSubTypeDefaulter("legend",function(){return"plain"}),YN(t)}var qN=(function(t){G(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.setScrollDataIndex=function(r){this.option.scrollDataIndex=r},e.prototype.init=function(r,n,i){var a=Lo(r);t.prototype.init.call(this,r,n,i),Cy(this,r,a)},e.prototype.mergeOption=function(r,n){t.prototype.mergeOption.call(this,r,n),Cy(this,this.option,r)},e.type="legend.scroll",e.defaultOption=Hb(Hh.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:Z.color.accent50,pageIconInactiveColor:Z.color.accent10,pageIconSize:15,pageTextStyle:{color:Z.color.tertiary},animationDurationUpdate:800}),e})(Hh);function Cy(t,e,r){var n=t.getOrient(),i=[1,1];i[n.index]=0,on(e,r,{type:"box",ignoreSize:!!i})}var Dy=Ne,Jc=["width","height"],ef=["x","y"],XN=(function(t){G(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.newlineDisabled=!0,r._currentIndex=0,r}return e.prototype.init=function(){t.prototype.init.call(this),this.group.add(this._containerGroup=new Dy),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new Dy)},e.prototype.resetInner=function(){t.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(r,n,i,a,o,s,l){var u=this;t.prototype.renderInner.call(this,r,n,i,a,o,s,l);var c=this._controllerGroup,f=n.get("pageIconSize",!0),v=W(f)?f:[f,f];d("pagePrev",0);var h=n.getModel("pageTextStyle");c.add(new je({name:"pageText",style:{text:"xx/xx",fill:h.getTextColor(),font:h.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),d("pageNext",1);function d(p,g){var m=p+"DataIndex",y=du(n.get("pageIcons",!0)[n.getOrient().name][g],{onclick:de(u._pageGo,u,m,n,a)},{x:-v[0]/2,y:-v[1]/2,width:v[0],height:v[1]});y.name=p,c.add(y)}},e.prototype.layoutInner=function(r,n,i,a,o,s){var l=this.getSelectorGroup(),u=r.getOrient().index,c=Jc[u],f=ef[u],v=Jc[1-u],h=ef[1-u];o&&Ha("horizontal",l,r.get("selectorItemGap",!0));var d=r.get("selectorButtonGap",!0),p=l.getBoundingRect(),g=[-p.x,-p.y],m=oe(i);o&&(m[c]=i[c]-p[c]-d);var y=this._layoutContentAndController(r,a,m,u,c,v,h,f);if(o){if(s==="end")g[u]+=y[c]+d;else{var _=p[c]+d;g[u]-=_,y[f]-=_}y[c]+=p[c]+d,g[1-u]+=y[h]+y[v]/2-p[v]/2,y[v]=Math.max(y[v],p[v]),y[h]=Math.min(y[h],p[h]+g[1-u]),l.x=g[0],l.y=g[1],l.markRedraw()}return y},e.prototype._layoutContentAndController=function(r,n,i,a,o,s,l,u){var c=this.getContentGroup(),f=this._containerGroup,v=this._controllerGroup;Ha(r.get("orient"),c,r.get("itemGap"),a?i.width:null,a?null:i.height),Ha("horizontal",v,r.get("pageButtonItemGap",!0));var h=c.getBoundingRect(),d=v.getBoundingRect(),p=this._showController=h[o]>i[o],g=[-h.x,-h.y];n||(g[a]=c[u]);var m=[0,0],y=[-d.x,-d.y],_=K(r.get("pageButtonGap",!0),r.get("itemGap",!0));if(p){var b=r.get("pageButtonPosition",!0);b==="end"?y[a]+=i[o]-d[o]:m[a]+=d[o]+_}y[1-a]+=h[s]/2-d[s]/2,c.setPosition(g),f.setPosition(m),v.setPosition(y);var S={x:0,y:0};if(S[o]=p?i[o]:h[o],S[s]=Math.max(h[s],d[s]),S[l]=Math.min(0,d[l]+y[1-a]),f.__rectSize=i[o],p){var x={x:0,y:0};x[o]=Math.max(i[o]-d[o]-_,0),x[s]=S[s],f.setClipPath(new De({shape:x})),f.__rectSize=x[o]}else v.eachChild(function(T){T.attr({invisible:!0,silent:!0})});var w=this._getPageInfo(r);return w.pageIndex!=null&&ct(c,{x:w.contentPosition[0],y:w.contentPosition[1]},p?r:null),this._updatePageInfoView(r,w),S},e.prototype._pageGo=function(r,n,i){var a=this._getPageInfo(n)[r];a!=null&&i.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:n.id})},e.prototype._updatePageInfoView=function(r,n){var i=this._controllerGroup;C(["pagePrev","pageNext"],function(c){var f=c+"DataIndex",v=n[f]!=null,h=i.childOfName(c);h&&(h.setStyle("fill",v?r.get("pageIconColor",!0):r.get("pageIconInactiveColor",!0)),h.cursor=v?"pointer":"default")});var a=i.childOfName("pageText"),o=r.get("pageFormatter"),s=n.pageIndex,l=s!=null?s+1:0,u=n.pageCount;a&&o&&a.setStyle("text",Y(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},e.prototype._getPageInfo=function(r){var n=r.get("scrollDataIndex",!0),i=this.getContentGroup(),a=this._containerGroup.__rectSize,o=r.getOrient().index,s=Jc[o],l=ef[o],u=this._findTargetItemIndex(n),c=i.children(),f=c[u],v=c.length,h=v?1:0,d={contentPosition:[i.x,i.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!f)return d;var p=b(f);d.contentPosition[o]=-p.s;for(var g=u+1,m=p,y=p,_=null;g<=v;++g)_=b(c[g]),(!_&&y.e>m.s+a||_&&!S(_,m.s))&&(y.i>m.i?m=y:m=_,m&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=m.i),++d.pageCount)),y=_;for(var g=u-1,m=p,y=p,_=null;g>=-1;--g)_=b(c[g]),(!_||!S(y,_.s))&&m.i<y.i&&(y=m,d.pagePrevDataIndex==null&&(d.pagePrevDataIndex=m.i),++d.pageCount,++d.pageIndex),m=_;return d;function b(x){if(x){var w=x.getBoundingRect(),T=w[l]+x[l];return{s:T,e:T+w[s],i:x.__legendDataIndex}}}function S(x,w){return x.e>=w&&x.s<=w+a}},e.prototype._findTargetItemIndex=function(r){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===r&&(n=s)}),n??a},e.type="legend.scroll",e})(u1);function ZN(t){t.registerAction("legendScroll","legendscroll",function(e,r){var n=e.scrollDataIndex;n!=null&&r.eachComponent({mainType:"legend",subType:"scroll",query:e},function(i){i.setScrollDataIndex(n)})})}function KN(t){vr(f1),t.registerComponentModel(qN),t.registerComponentView(XN),ZN(t)}function QN(t){vr(f1),vr(KN)}function JN(t){return wu(null,t)}var eB={isDimensionStacked:to,enableDataStack:Fb,getStackedDimension:zb};function tB(t,e){var r=e;e instanceof _e||(r=new _e(e));var n=Mx(r);return n.setExtent(t[0],t[1]),Ih(n,r),n}function rB(t){It(t,bx)}function nB(t,e){return e=e||{},Kn(t,null,null,e.state!=="normal")}const iB=Object.freeze(Object.defineProperty({__proto__:null,createDimensions:QE,createList:JN,createScale:tB,createSymbol:qi,createTextStyle:nB,dataStack:eB,enableHoverEmphasis:bl,getECData:he,getLayoutRect:an,mixinAxisModelCommonMethods:rB},Symbol.toStringTag,{value:"Module"})),aB=Object.freeze(Object.defineProperty({__proto__:null,MAX_SAFE_INTEGER:jM,asc:GM,getPercentWithPrecision:VM,getPixelPrecision:T_,getPrecision:Hi,getPrecisionSafe:w_,isNumeric:M_,isRadianAroundZero:Za,linearMap:dl,nice:hv,numericToNumber:Ka,parseDate:Er,parsePercent:be,quantile:YM,quantity:D_,quantityExponent:su,reformIntervals:qM,remRadian:fv,round:We},Symbol.toStringTag,{value:"Module"})),oB=Object.freeze(Object.defineProperty({__proto__:null,format:Eo,parse:Er,roundTime:Ml},Symbol.toStringTag,{value:"Module"})),sB=Object.freeze(Object.defineProperty({__proto__:null,Arc:Ao,BezierCurve:hu,BoundingRect:re,Circle:Mo,CompoundPath:K_,Ellipse:uu,Group:Ne,Image:Ar,IncrementalDisplayable:rb,Line:Mr,LinearGradient:J_,Polygon:fu,Polyline:Yi,RadialGradient:eb,Rect:De,Ring:cu,Sector:Lr,Text:je,clipPointsByRect:cb,clipRectByRect:fb,createIcon:du,extendPath:ib,extendShape:nb,getShapeClass:ab,getTransform:lb,initProps:lr,makeImage:Tv,makePath:vu,mergePath:sb,registerShape:Ot,resizePath:Cv,updateProps:ct},Symbol.toStringTag,{value:"Module"})),lB=Object.freeze(Object.defineProperty({__proto__:null,addCommas:$v,capitalFirst:GR,encodeHTML:Qe,formatTime:UR,formatTpl:qv,getTextRect:HR,getTooltipMarker:Zb,normalizeCssArray:Ro,toCamelCase:Yv,truncateText:pD},Symbol.toStringTag,{value:"Module"})),uB=Object.freeze(Object.defineProperty({__proto__:null,bind:de,clone:oe,curry:we,defaults:pe,each:C,extend:F,filter:Re,indexOf:le,inherits:nv,isArray:W,isFunction:ie,isObject:q,isString:Y,map:X,merge:ue,reduce:cr},Symbol.toStringTag,{value:"Module"}));function cB(t){var e=fe.extend(t);return fe.registerClass(e),e}function fB(t){var e=yt.extend(t);return yt.registerClass(e),e}function hB(t){var e=ft.extend(t);return ft.registerClass(e),e}function vB(t){var e=mt.extend(t);return mt.registerClass(e),e}const tf=Object.freeze(Object.defineProperty({__proto__:null,Axis:Bx,ChartView:mt,ComponentModel:fe,ComponentView:yt,List:Iv,Model:_e,PRIORITY:nx,SeriesModel:ft,color:XD,connect:tO,dataTool:uO,dependencies:BI,disConnect:rO,disconnect:fx,dispose:nO,env:te,extendChartView:vB,extendComponentModel:cB,extendComponentView:fB,extendSeriesModel:hB,format:lB,getCoordinateSystemDimensions:aO,getInstanceByDom:ld,getInstanceById:iO,getMap:lO,graphic:sB,helper:iB,init:eO,innerDrawElementOnCanvas:id,matrix:cD,number:aB,parseGeoJSON:oy,parseGeoJson:oy,registerAction:ri,registerCoordinateSystem:dx,registerCustomSeries:oO,registerLayout:px,registerLoading:vd,registerLocale:Bv,registerMap:gx,registerPostInit:hx,registerPostUpdate:vx,registerPreprocessor:cd,registerProcessor:fd,registerTheme:ud,registerTransform:mx,registerUpdateLifecycle:Mu,registerVisual:cn,setCanvasCreator:sO,setPlatformAPI:P0,throttle:Cu,time:oB,use:vr,util:uB,vector:OD,version:NI,zrUtil:$C,zrender:D2},Symbol.toStringTag,{value:"Module"}));function My(t,e,r){var n=Pt.createCanvas(),i=e.getWidth(),a=e.getHeight(),o=n.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=i+"px",o.height=a+"px",n.setAttribute("data-zr-dom-id",t)),n.width=i*r,n.height=a*r,n}var rf=(function(t){G(e,t);function e(r,n,i){var a=t.call(this)||this;a.motionBlur=!1,a.lastFrameAlpha=.7,a.dpr=1,a.virtual=!1,a.config={},a.incremental=!1,a.zlevel=0,a.maxRepaintRectCount=5,a.__dirty=!0,a.__firstTimePaint=!0,a.__used=!1,a.__drawIndex=0,a.__startIndex=0,a.__endIndex=0,a.__prevStartIndex=null,a.__prevEndIndex=null;var o;i=i||hl,typeof r=="string"?o=My(r,n,i):q(r)&&(o=r,r=o.id),a.id=r,a.dom=o;var s=o.style;return s&&(iv(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),a.painter=n,a.dpr=i,a}return e.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},e.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},e.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},e.prototype.setUnpainted=function(){this.__firstTimePaint=!0},e.prototype.createBackBuffer=function(){var r=this.dpr;this.domBack=My("back-"+this.id,this.painter,r),this.ctxBack=this.domBack.getContext("2d"),r!==1&&this.ctxBack.scale(r,r)},e.prototype.createRepaintRects=function(r,n,i,a){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,l=!1,u=new re(0,0,0,0);function c(y){if(!(!y.isFinite()||y.isZero()))if(o.length===0){var _=new re(0,0,0,0);_.copy(y),o.push(_)}else{for(var b=!1,S=1/0,x=0,w=0;w<o.length;++w){var T=o[w];if(T.intersect(y)){var M=new re(0,0,0,0);M.copy(T),M.union(y),o[w]=M,b=!0;break}else if(l){u.copy(y),u.union(T);var A=y.width*y.height,D=T.width*T.height,P=u.width*u.height,E=P-A-D;E<S&&(S=E,x=w)}}if(l&&(o[x].union(y),b=!0),!b){var _=new re(0,0,0,0);_.copy(y),o.push(_)}l||(l=o.length>=s)}}for(var f=this.__startIndex;f<this.__endIndex;++f){var v=r[f];if(v){var h=v.shouldBePainted(i,a,!0,!0),d=v.__isRendered&&(v.__dirty&dt||!h)?v.getPrevPaintRect():null;d&&c(d);var p=h&&(v.__dirty&dt||!v.__isRendered)?v.getPaintRect():null;p&&c(p)}}for(var f=this.__prevStartIndex;f<this.__prevEndIndex;++f){var v=n[f],h=v&&v.shouldBePainted(i,a,!0,!0);if(v&&(!h||!v.__zr)&&v.__isRendered){var d=v.getPrevPaintRect();d&&c(d)}}var g;do{g=!1;for(var f=0;f<o.length;){if(o[f].isZero()){o.splice(f,1);continue}for(var m=f+1;m<o.length;)o[f].intersect(o[m])?(g=!0,o[f].union(o[m]),o.splice(m,1)):m++;f++}}while(g);return this._paintRects=o,o},e.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},e.prototype.resize=function(r,n){var i=this.dpr,a=this.dom,o=a.style,s=this.domBack;o&&(o.width=r+"px",o.height=n+"px"),a.width=r*i,a.height=n*i,s&&(s.width=r*i,s.height=n*i,i!==1&&this.ctxBack.scale(i,i))},e.prototype.clear=function(r,n,i){var a=this.dom,o=this.ctx,s=a.width,l=a.height;n=n||this.clearColor;var u=this.motionBlur&&!r,c=this.lastFrameAlpha,f=this.dpr,v=this;u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(a,0,0,s/f,l/f));var h=this.domBack;function d(p,g,m,y){if(o.clearRect(p,g,m,y),n&&n!=="transparent"){var _=void 0;if(bo(n)){var b=n.global||n.__width===m&&n.__height===y;_=b&&n.__canvasGradient||bh(o,n,{x:0,y:0,width:m,height:y}),n.__canvasGradient=_,n.__width=m,n.__height=y}else N0(n)&&(n.scaleX=n.scaleX||f,n.scaleY=n.scaleY||f,_=Sh(o,n,{dirty:function(){v.setUnpainted(),v.painter.refresh()}}));o.save(),o.fillStyle=_||n,o.fillRect(p,g,m,y),o.restore()}u&&(o.save(),o.globalAlpha=c,o.drawImage(h,p,g,m,y),o.restore())}!i||u?d(0,0,s,l):i.length&&C(i,function(p){d(p.x*f,p.y*f,p.width*f,p.height*f)})},e})(dr),Ay=1e5,On=314159,Cs=.01,dB=.001;function pB(t){return t?t.__builtin__?!0:!(typeof t.resize!="function"||typeof t.refresh!="function"):!1}function gB(t,e){var r=document.createElement("div");return r.style.cssText=["position:relative","width:"+t+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",r}var mB=(function(){function t(e,r,n,i){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var a=!e.nodeName||e.nodeName.toUpperCase()==="CANVAS";this._opts=n=F({},n||{}),this.dpr=n.devicePixelRatio||hl,this._singleCanvas=a,this.root=e;var o=e.style;o&&(iv(e),e.innerHTML=""),this.storage=r;var s=this._zlevelList;this._prevDisplayList=[];var l=this._layers;if(a){var c=e,f=c.width,v=c.height;n.width!=null&&(f=n.width),n.height!=null&&(v=n.height),this.dpr=n.devicePixelRatio||1,c.width=f*this.dpr,c.height=v*this.dpr,this._width=f,this._height=v;var h=new rf(c,this,this.dpr);h.__builtin__=!0,h.initContext(),l[On]=h,h.zlevel=On,s.push(On),this._domRoot=e}else{this._width=ds(e,0,n),this._height=ds(e,1,n);var u=this._domRoot=gB(this._width,this._height);e.appendChild(u)}}return t.prototype.getType=function(){return"canvas"},t.prototype.isSingleCanvas=function(){return this._singleCanvas},t.prototype.getViewportRoot=function(){return this._domRoot},t.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},t.prototype.refresh=function(e){var r=this.storage.getDisplayList(!0),n=this._prevDisplayList,i=this._zlevelList;this._redrawId=Math.random(),this._paintList(r,n,e,this._redrawId);for(var a=0;a<i.length;a++){var o=i[a],s=this._layers[o];if(!s.__builtin__&&s.refresh){var l=a===0?this._backgroundColor:null;s.refresh(l)}}return this._opts.useDirtyRect&&(this._prevDisplayList=r.slice()),this},t.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},t.prototype._paintHoverList=function(e){var r=e.length,n=this._hoverlayer;if(n&&n.clear(),!!r){for(var i={inHover:!0,viewWidth:this._width,viewHeight:this._height},a,o=0;o<r;o++){var s=e[o];s.__inHover&&(n||(n=this._hoverlayer=this.getLayer(Ay)),a||(a=n.ctx,a.save()),Un(a,s,i,o===r-1))}a&&a.restore()}},t.prototype.getHoverLayer=function(){return this.getLayer(Ay)},t.prototype.paintOne=function(e,r){id(e,r)},t.prototype._paintList=function(e,r,n,i){if(this._redrawId===i){n=n||!1,this._updateLayerStatus(e);var a=this._doPaintList(e,r,n),o=a.finished,s=a.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),s&&this._paintHoverList(e),o)this.eachLayer(function(u){u.afterBrush&&u.afterBrush()});else{var l=this;Pl(function(){l._paintList(e,r,n,i)})}}},t.prototype._compositeManually=function(){var e=this.getLayer(On).ctx,r=this._domRoot.width,n=this._domRoot.height;e.clearRect(0,0,r,n),this.eachBuiltinLayer(function(i){i.virtual&&e.drawImage(i.dom,0,0,r,n)})},t.prototype._doPaintList=function(e,r,n){for(var i=this,a=[],o=this._opts.useDirtyRect,s=0;s<this._zlevelList.length;s++){var l=this._zlevelList[s],u=this._layers[l];u.__builtin__&&u!==this._hoverlayer&&(u.__dirty||n)&&a.push(u)}for(var c=!0,f=!1,v=function(p){var g=a[p],m=g.ctx,y=o&&g.createRepaintRects(e,r,h._width,h._height),_=n?g.__startIndex:g.__drawIndex,b=!n&&g.incremental&&Date.now,S=b&&Date.now(),x=g.zlevel===h._zlevelList[0]?h._backgroundColor:null;if(g.__startIndex===g.__endIndex)g.clear(!1,x,y);else if(_===g.__startIndex){var w=e[_];(!w.incremental||!w.notClear||n)&&g.clear(!1,x,y)}_===-1&&(console.error("For some unknown reason. drawIndex is -1"),_=g.__startIndex);var T,M=function(E){var L={inHover:!1,allClipped:!1,prevEl:null,viewWidth:i._width,viewHeight:i._height};for(T=_;T<g.__endIndex;T++){var k=e[T];if(k.__inHover&&(f=!0),i._doPaintEl(k,g,o,E,L,T===g.__endIndex-1),b){var N=Date.now()-S;if(N>15)break}}L.prevElClipPaths&&m.restore()};if(y)if(y.length===0)T=g.__endIndex;else for(var A=h.dpr,D=0;D<y.length;++D){var P=y[D];m.save(),m.beginPath(),m.rect(P.x*A,P.y*A,P.width*A,P.height*A),m.clip(),M(P),m.restore()}else m.save(),M(),m.restore();g.__drawIndex=T,g.__drawIndex<g.__endIndex&&(c=!1)},h=this,d=0;d<a.length;d++)v(d);return te.wxa&&C(this._layers,function(p){p&&p.ctx&&p.ctx.draw&&p.ctx.draw()}),{finished:c,needsRefreshHover:f}},t.prototype._doPaintEl=function(e,r,n,i,a,o){var s=r.ctx;if(n){var l=e.getPaintRect();(!i||l&&l.intersect(i))&&(Un(s,e,a,o),e.setPrevPaintRect(l))}else Un(s,e,a,o)},t.prototype.getLayer=function(e,r){this._singleCanvas&&!this._needsManuallyCompositing&&(e=On);var n=this._layers[e];return n||(n=new rf("zr_"+e,this,this.dpr),n.zlevel=e,n.__builtin__=!0,this._layerConfig[e]?ue(n,this._layerConfig[e],!0):this._layerConfig[e-Cs]&&ue(n,this._layerConfig[e-Cs],!0),r&&(n.virtual=r),this.insertLayer(e,n),n.initContext()),n},t.prototype.insertLayer=function(e,r){var n=this._layers,i=this._zlevelList,a=i.length,o=this._domRoot,s=null,l=-1;if(!n[e]&&pB(r)){if(a>0&&e>i[0]){for(l=0;l<a-1&&!(i[l]<e&&i[l+1]>e);l++);s=n[i[l]]}if(i.splice(l+1,0,e),n[e]=r,!r.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(r.dom,u.nextSibling):o.appendChild(r.dom)}else o.firstChild?o.insertBefore(r.dom,o.firstChild):o.appendChild(r.dom);r.painter||(r.painter=this)}},t.prototype.eachLayer=function(e,r){for(var n=this._zlevelList,i=0;i<n.length;i++){var a=n[i];e.call(r,this._layers[a],a)}},t.prototype.eachBuiltinLayer=function(e,r){for(var n=this._zlevelList,i=0;i<n.length;i++){var a=n[i],o=this._layers[a];o.__builtin__&&e.call(r,o,a)}},t.prototype.eachOtherLayer=function(e,r){for(var n=this._zlevelList,i=0;i<n.length;i++){var a=n[i],o=this._layers[a];o.__builtin__||e.call(r,o,a)}},t.prototype.getLayers=function(){return this._layers},t.prototype._updateLayerStatus=function(e){this.eachBuiltinLayer(function(f,v){f.__dirty=f.__used=!1});function r(f){a&&(a.__endIndex!==f&&(a.__dirty=!0),a.__endIndex=f)}if(this._singleCanvas)for(var n=1;n<e.length;n++){var i=e[n];if(i.zlevel!==e[n-1].zlevel||i.incremental){this._needsManuallyCompositing=!0;break}}var a=null,o=0,s,l;for(l=0;l<e.length;l++){var i=e[l],u=i.zlevel,c=void 0;s!==u&&(s=u,o=0),i.incremental?(c=this.getLayer(u+dB,this._needsManuallyCompositing),c.incremental=!0,o=1):c=this.getLayer(u+(o>0?Cs:0),this._needsManuallyCompositing),c.__builtin__||Kl("ZLevel "+u+" has been used by unkown layer "+c.id),c!==a&&(c.__used=!0,c.__startIndex!==l&&(c.__dirty=!0),c.__startIndex=l,c.incremental?c.__drawIndex=-1:c.__drawIndex=l,r(l),a=c),i.__dirty&dt&&!i.__inHover&&(c.__dirty=!0,c.incremental&&c.__drawIndex<0&&(c.__drawIndex=l))}r(l),this.eachBuiltinLayer(function(f,v){!f.__used&&f.getElementCount()>0&&(f.__dirty=!0,f.__startIndex=f.__endIndex=f.__drawIndex=0),f.__dirty&&f.__drawIndex<0&&(f.__drawIndex=f.__startIndex)})},t.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},t.prototype._clearLayer=function(e){e.clear()},t.prototype.setBackgroundColor=function(e){this._backgroundColor=e,C(this._layers,function(r){r.setUnpainted()})},t.prototype.configLayer=function(e,r){if(r){var n=this._layerConfig;n[e]?ue(n[e],r,!0):n[e]=r;for(var i=0;i<this._zlevelList.length;i++){var a=this._zlevelList[i];if(a===e||a===e+Cs){var o=this._layers[a];ue(o,n[e],!0)}}}},t.prototype.delLayer=function(e){var r=this._layers,n=this._zlevelList,i=r[e];i&&(i.dom.parentNode.removeChild(i.dom),delete r[e],n.splice(le(n,e),1))},t.prototype.resize=function(e,r){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var i=this._opts,a=this.root;if(e!=null&&(i.width=e),r!=null&&(i.height=r),e=ds(a,0,i),r=ds(a,1,i),n.style.display="",this._width!==e||r!==this._height){n.style.width=e+"px",n.style.height=r+"px";for(var o in this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(e,r);this.refresh(!0)}this._width=e,this._height=r}else{if(e==null||r==null)return;this._width=e,this._height=r,this.getLayer(On).resize(e,r)}return this},t.prototype.clearLayer=function(e){var r=this._layers[e];r&&r.clear()},t.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},t.prototype.getRenderedCanvas=function(e){if(e=e||{},this._singleCanvas&&!this._compositeManually)return this._layers[On].dom;var r=new rf("image",this,e.pixelRatio||this.dpr);r.initContext(),r.clear(!1,e.backgroundColor||this._backgroundColor);var n=r.ctx;if(e.pixelRatio<=this.dpr){this.refresh();var i=r.dom.width,a=r.dom.height;this.eachLayer(function(f){f.__builtin__?n.drawImage(f.dom,0,0,i,a):f.renderToCanvas&&(n.save(),f.renderToCanvas(n),n.restore())})}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},s=this.storage.getDisplayList(!0),l=0,u=s.length;l<u;l++){var c=s[l];Un(n,c,o,l===u-1)}return r.dom},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t})();function yB(t){t.registerPainter("canvas",mB)}var Ds={};const h1=J1(AC);var br={},Sr={},nf={},Ey;function _B(){return Ey||(Ey=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var e=1;t.default=function(){return"".concat(e++)}})(nf)),nf}var pa={},ga={},af={},Ry;function v1(){return Ry||(Ry=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:60,i=null;return function(){for(var a=this,o=arguments.length,s=new Array(o),l=0;l<o;l++)s[l]=arguments[l];clearTimeout(i),i=setTimeout(function(){r.apply(a,s)},n)}}})(af)),af}var xr={},Ly;function Sd(){return Ly||(Ly=1,Object.defineProperty(xr,"__esModule",{value:!0}),xr.SizeSensorId=xr.SensorTabIndex=xr.SensorClassName=void 0,xr.SizeSensorId="size-sensor-id",xr.SensorClassName="size-sensor-object",xr.SensorTabIndex="-1"),xr}var Py;function bB(){if(Py)return ga;Py=1,Object.defineProperty(ga,"__esModule",{value:!0}),ga.createSensor=void 0;var t=r(v1()),e=Sd();function r(n){return n&&n.__esModule?n:{default:n}}return ga.createSensor=function(i,a){var o=void 0,s=[],l=function(){getComputedStyle(i).position==="static"&&(i.style.position="relative");var d=document.createElement("object");return d.onload=function(){d.contentDocument.defaultView.addEventListener("resize",u),u()},d.style.display="block",d.style.position="absolute",d.style.top="0",d.style.left="0",d.style.height="100%",d.style.width="100%",d.style.overflow="hidden",d.style.pointerEvents="none",d.style.zIndex="-1",d.style.opacity="0",d.setAttribute("class",e.SensorClassName),d.setAttribute("tabindex",e.SensorTabIndex),d.type="text/html",i.appendChild(d),d.data="about:blank",d},u=(0,t.default)(function(){s.forEach(function(h){h(i)})}),c=function(d){o||(o=l()),s.indexOf(d)===-1&&s.push(d)},f=function(){o&&o.parentNode&&(o.contentDocument&&o.contentDocument.defaultView.removeEventListener("resize",u),o.parentNode.removeChild(o),i.removeAttribute(e.SizeSensorId),o=void 0,s=[],a&&a())},v=function(d){var p=s.indexOf(d);p!==-1&&s.splice(p,1),s.length===0&&o&&f()};return{element:i,bind:c,destroy:f,unbind:v}},ga}var ma={},Iy;function SB(){if(Iy)return ma;Iy=1,Object.defineProperty(ma,"__esModule",{value:!0}),ma.createSensor=void 0;var t=Sd(),e=r(v1());function r(n){return n&&n.__esModule?n:{default:n}}return ma.createSensor=function(i,a){var o=void 0,s=[],l=(0,e.default)(function(){s.forEach(function(h){h(i)})}),u=function(){var d=new ResizeObserver(l);return d.observe(i),l(),d},c=function(d){o||(o=u()),s.indexOf(d)===-1&&s.push(d)},f=function(){o&&o.disconnect(),s=[],o=void 0,i.removeAttribute(t.SizeSensorId),a&&a()},v=function(d){var p=s.indexOf(d);p!==-1&&s.splice(p,1),s.length===0&&o&&f()};return{element:i,bind:c,destroy:f,unbind:v}},ma}var Oy;function xB(){if(Oy)return pa;Oy=1,Object.defineProperty(pa,"__esModule",{value:!0}),pa.createSensor=void 0;var t=bB(),e=SB();return pa.createSensor=typeof ResizeObserver<"u"?e.createSensor:t.createSensor,pa}var ky;function wB(){if(ky)return Sr;ky=1,Object.defineProperty(Sr,"__esModule",{value:!0}),Sr.removeSensor=Sr.getSensor=Sr.Sensors=void 0;var t=n(_B()),e=xB(),r=Sd();function n(o){return o&&o.__esModule?o:{default:o}}var i=Sr.Sensors={};function a(o){o&&i[o]&&delete i[o]}return Sr.getSensor=function(s){var l=s.getAttribute(r.SizeSensorId);if(l&&i[l])return i[l];var u=(0,t.default)();s.setAttribute(r.SizeSensorId,u);var c=(0,e.createSensor)(s,function(){return a(u)});return i[u]=c,c},Sr.removeSensor=function(s){var l=s.element.getAttribute(r.SizeSensorId);s.destroy(),a(l)},Sr}var Ny;function TB(){if(Ny)return br;Ny=1,Object.defineProperty(br,"__esModule",{value:!0}),br.ver=br.clear=br.bind=void 0;var t=wB();return br.bind=function(r,n){var i=(0,t.getSensor)(r);return i.bind(n),function(){i.unbind(n)}},br.clear=function(r){var n=(0,t.getSensor)(r);(0,t.removeSensor)(n)},br.ver="1.0.3",br}var ya={},By;function CB(){if(By)return ya;By=1,Object.defineProperty(ya,"__esModule",{value:!0}),ya.pick=void 0;function t(e,r){var n={};return r.forEach(function(i){n[i]=e[i]}),n}return ya.pick=t,ya}var _a={},Fy;function DB(){if(Fy)return _a;Fy=1,Object.defineProperty(_a,"__esModule",{value:!0}),_a.isFunction=void 0;function t(e){return typeof e=="function"}return _a.isFunction=t,_a}var ba={},zy;function MB(){if(zy)return ba;zy=1,Object.defineProperty(ba,"__esModule",{value:!0}),ba.isString=void 0;function t(e){return typeof e=="string"}return ba.isString=t,ba}var Sa={},of,Hy;function AB(){return Hy||(Hy=1,of=function t(e,r){if(e===r)return!0;if(e&&r&&typeof e=="object"&&typeof r=="object"){if(e.constructor!==r.constructor)return!1;var n,i,a;if(Array.isArray(e)){if(n=e.length,n!=r.length)return!1;for(i=n;i--!==0;)if(!t(e[i],r[i]))return!1;return!0}if(e.constructor===RegExp)return e.source===r.source&&e.flags===r.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===r.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===r.toString();if(a=Object.keys(e),n=a.length,n!==Object.keys(r).length)return!1;for(i=n;i--!==0;)if(!Object.prototype.hasOwnProperty.call(r,a[i]))return!1;for(i=n;i--!==0;){var o=a[i];if(!t(e[o],r[o]))return!1}return!0}return e!==e&&r!==r}),of}var Uy;function EB(){if(Uy)return Sa;Uy=1,Object.defineProperty(Sa,"__esModule",{value:!0}),Sa.isEqual=void 0;var t=h1,e=t.__importDefault(AB());return Sa.isEqual=e.default,Sa}var Gy;function RB(){if(Gy)return Ds;Gy=1,Object.defineProperty(Ds,"__esModule",{value:!0});var t=h1,e=t.__importStar(ew()),r=TB(),n=CB(),i=DB(),a=MB(),o=EB(),s=(function(l){t.__extends(u,l);function u(c){var f=l.call(this,c)||this;return f.echarts=c.echarts,f.ele=null,f.isInitialResize=!0,f.eventHandlerRefs={},f}return u.prototype.componentDidMount=function(){this.renderNewEcharts()},u.prototype.componentDidUpdate=function(c){var f=this.props.shouldSetOption;if(!((0,i.isFunction)(f)&&!f(c,this.props))){if(!(0,o.isEqual)(c.theme,this.props.theme)||!(0,o.isEqual)(c.opts,this.props.opts)){this.dispose(),this.renderNewEcharts();return}var v=this.getEchartsInstance();(0,o.isEqual)(c.onEvents,this.props.onEvents)||(this.unbindEvents(v),this.bindEvents(v,this.props.onEvents));var h=["option","notMerge","replaceMerge","lazyUpdate","showLoading","loadingOption"];(0,o.isEqual)((0,n.pick)(this.props,h),(0,n.pick)(c,h))||this.updateEChartsOption(),(!(0,o.isEqual)(c.style,this.props.style)||!(0,o.isEqual)(c.className,this.props.className))&&this.resize()}},u.prototype.componentWillUnmount=function(){this.dispose()},u.prototype.initEchartsInstance=function(){return t.__awaiter(this,void 0,void 0,function(){var c=this;return t.__generator(this,function(f){return[2,new Promise(function(v){c.echarts.init(c.ele,c.props.theme,c.props.opts);var h=c.getEchartsInstance();h.on("finished",function(){var d=c.ele.clientWidth,p=c.ele.clientHeight;c.echarts.dispose(c.ele);var g=t.__assign({width:d,height:p},c.props.opts);v(c.echarts.init(c.ele,c.props.theme,g))})})]})})},u.prototype.getEchartsInstance=function(){return this.echarts.getInstanceByDom(this.ele)},u.prototype.dispose=function(){if(this.ele){try{(0,r.clear)(this.ele)}catch(c){console.warn(c)}this.echarts.dispose(this.ele)}},u.prototype.renderNewEcharts=function(){return t.__awaiter(this,void 0,void 0,function(){var c,f,v,h,d,p,g=this;return t.__generator(this,function(m){switch(m.label){case 0:return c=this.props,f=c.onEvents,v=c.onChartReady,h=c.autoResize,d=h===void 0?!0:h,[4,this.initEchartsInstance()];case 1:return m.sent(),p=this.updateEChartsOption(),this.bindEvents(p,f||{}),(0,i.isFunction)(v)&&v(p),this.ele&&d&&(0,r.bind)(this.ele,function(){g.resize()}),[2]}})})},u.prototype.bindEvents=function(c,f){var v=this,h=function(p,g){if((0,a.isString)(p)&&(0,i.isFunction)(g)){var m=function(y){g(y,c)};c.on(p,m),v.eventHandlerRefs[p]=m}};for(var d in f)Object.prototype.hasOwnProperty.call(f,d)&&h(d,f[d])},u.prototype.unbindEvents=function(c){for(var f=0,v=Object.entries(this.eventHandlerRefs);f<v.length;f++){var h=v[f],d=h[0],p=h[1];c.off(d,p)}this.eventHandlerRefs={}},u.prototype.updateEChartsOption=function(){var c=this.props,f=c.option,v=c.notMerge,h=v===void 0?!1:v,d=c.replaceMerge,p=d===void 0?null:d,g=c.lazyUpdate,m=g===void 0?!1:g,y=c.showLoading,_=c.loadingOption,b=_===void 0?null:_,S=this.getEchartsInstance();return S.setOption(f,{notMerge:h,replaceMerge:p,lazyUpdate:m}),y?S.showLoading(b):S.hideLoading(),S},u.prototype.resize=function(){var c=this.getEchartsInstance();if(!this.isInitialResize)try{c.resize({width:"auto",height:"auto"})}catch(f){console.warn(f)}this.isInitialResize=!1},u.prototype.render=function(){var c=this,f=this.props,v=f.style,h=f.className,d=h===void 0?"":h;f.echarts,f.option,f.theme,f.notMerge,f.replaceMerge,f.lazyUpdate,f.showLoading,f.loadingOption,f.opts,f.onChartReady,f.onEvents,f.shouldSetOption,f.autoResize;var p=t.__rest(f,["style","className","echarts","option","theme","notMerge","replaceMerge","lazyUpdate","showLoading","loadingOption","opts","onChartReady","onEvents","shouldSetOption","autoResize"]),g=t.__assign({height:300},v);return e.default.createElement("div",t.__assign({ref:function(m){c.ele=m},style:g,className:"echarts-for-react ".concat(d)},p))},u})(e.PureComponent);return Ds.default=s,Ds}var LB=RB();const PB=i0(LB);function IB(){return l0({queryKey:["projects"],queryFn:async()=>{const{data:t}=await Me.get("/api/projects");return t}})}function tn(t,e,{checkForDefaultPrevented:r=!0}={}){return function(i){if(t?.(i),r===!1||!i.defaultPrevented)return e?.(i)}}function Vy(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function d1(...t){return e=>{let r=!1;const n=t.map(i=>{const a=Vy(i,e);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let i=0;i<n.length;i++){const a=n[i];typeof a=="function"?a():Vy(t[i],null)}}}}function ni(...t){return I.useCallback(d1(...t),t)}function OB(t,e){const r=I.createContext(e),n=a=>{const{children:o,...s}=a,l=I.useMemo(()=>s,Object.values(s));return R.jsx(r.Provider,{value:l,children:o})};n.displayName=t+"Provider";function i(a){const o=I.useContext(r);if(o)return o;if(e!==void 0)return e;throw new Error(`\`${a}\` must be used within \`${t}\``)}return[n,i]}function kB(t,e=[]){let r=[];function n(a,o){const s=I.createContext(o),l=r.length;r=[...r,o];const u=f=>{const{scope:v,children:h,...d}=f,p=v?.[t]?.[l]||s,g=I.useMemo(()=>d,Object.values(d));return R.jsx(p.Provider,{value:g,children:h})};u.displayName=a+"Provider";function c(f,v){const h=v?.[t]?.[l]||s,d=I.useContext(h);if(d)return d;if(o!==void 0)return o;throw new Error(`\`${f}\` must be used within \`${a}\``)}return[u,c]}const i=()=>{const a=r.map(o=>I.createContext(o));return function(s){const l=s?.[t]||a;return I.useMemo(()=>({[`__scope${t}`]:{...s,[t]:l}}),[s,l])}};return i.scopeName=t,[n,NB(i,...e)]}function NB(...t){const e=t[0];if(t.length===1)return e;const r=()=>{const n=t.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(a){const o=n.reduce((s,{useScope:l,scopeName:u})=>{const f=l(a)[`__scope${u}`];return{...s,...f}},{});return I.useMemo(()=>({[`__scope${e.scopeName}`]:o}),[o])}};return r.scopeName=e.scopeName,r}var ho=globalThis?.document?I.useLayoutEffect:()=>{},BB=a0[" useId ".trim().toString()]||(()=>{}),FB=0;function sf(t){const[e,r]=I.useState(BB());return ho(()=>{r(n=>n??String(FB++))},[t]),t||(e?`radix-${e}`:"")}var zB=a0[" useInsertionEffect ".trim().toString()]||ho;function HB({prop:t,defaultProp:e,onChange:r=()=>{},caller:n}){const[i,a,o]=UB({defaultProp:e,onChange:r}),s=t!==void 0,l=s?t:i;{const c=I.useRef(t!==void 0);I.useEffect(()=>{const f=c.current;f!==s&&console.warn(`${n} is changing from ${f?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),c.current=s},[s,n])}const u=I.useCallback(c=>{if(s){const f=GB(c)?c(t):c;f!==t&&o.current?.(f)}else a(c)},[s,t,a,o]);return[l,u]}function UB({defaultProp:t,onChange:e}){const[r,n]=I.useState(t),i=I.useRef(r),a=I.useRef(e);return zB(()=>{a.current=e},[e]),I.useEffect(()=>{i.current!==r&&(a.current?.(r),i.current=r)},[r,i]),[r,n,a]}function GB(t){return typeof t=="function"}var p1=tw();const VB=i0(p1);function g1(t){const e=WB(t),r=I.forwardRef((n,i)=>{const{children:a,...o}=n,s=I.Children.toArray(a),l=s.find($B);if(l){const u=l.props.children,c=s.map(f=>f===l?I.Children.count(u)>1?I.Children.only(null):I.isValidElement(u)?u.props.children:null:f);return R.jsx(e,{...o,ref:i,children:I.isValidElement(u)?I.cloneElement(u,void 0,c):null})}return R.jsx(e,{...o,ref:i,children:a})});return r.displayName=`${t}.Slot`,r}function WB(t){const e=I.forwardRef((r,n)=>{const{children:i,...a}=r;if(I.isValidElement(i)){const o=qB(i),s=YB(a,i.props);return i.type!==I.Fragment&&(s.ref=n?d1(n,o):o),I.cloneElement(i,s)}return I.Children.count(i)>1?I.Children.only(null):null});return e.displayName=`${t}.SlotClone`,e}var jB=Symbol("radix.slottable");function $B(t){return I.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===jB}function YB(t,e){const r={...e};for(const n in e){const i=t[n],a=e[n];/^on[A-Z]/.test(n)?i&&a?r[n]=(...s)=>{const l=a(...s);return i(...s),l}:i&&(r[n]=i):n==="style"?r[n]={...i,...a}:n==="className"&&(r[n]=[i,a].filter(Boolean).join(" "))}return{...t,...r}}function qB(t){let e=Object.getOwnPropertyDescriptor(t.props,"ref")?.get,r=e&&"isReactWarning"in e&&e.isReactWarning;return r?t.ref:(e=Object.getOwnPropertyDescriptor(t,"ref")?.get,r=e&&"isReactWarning"in e&&e.isReactWarning,r?t.props.ref:t.props.ref||t.ref)}var XB=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Pr=XB.reduce((t,e)=>{const r=g1(`Primitive.${e}`),n=I.forwardRef((i,a)=>{const{asChild:o,...s}=i,l=o?r:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),R.jsx(l,{...s,ref:a})});return n.displayName=`Primitive.${e}`,{...t,[e]:n}},{});function ZB(t,e){t&&p1.flushSync(()=>t.dispatchEvent(e))}function vo(t){const e=I.useRef(t);return I.useEffect(()=>{e.current=t}),I.useMemo(()=>(...r)=>e.current?.(...r),[])}function KB(t,e=globalThis?.document){const r=vo(t);I.useEffect(()=>{const n=i=>{i.key==="Escape"&&r(i)};return e.addEventListener("keydown",n,{capture:!0}),()=>e.removeEventListener("keydown",n,{capture:!0})},[r,e])}var QB="DismissableLayer",Wh="dismissableLayer.update",JB="dismissableLayer.pointerDownOutside",eF="dismissableLayer.focusOutside",Wy,m1=I.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),y1=I.forwardRef((t,e)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:o,onDismiss:s,...l}=t,u=I.useContext(m1),[c,f]=I.useState(null),v=c?.ownerDocument??globalThis?.document,[,h]=I.useState({}),d=ni(e,w=>f(w)),p=Array.from(u.layers),[g]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),m=p.indexOf(g),y=c?p.indexOf(c):-1,_=u.layersWithOutsidePointerEventsDisabled.size>0,b=y>=m,S=nF(w=>{const T=w.target,M=[...u.branches].some(A=>A.contains(T));!b||M||(i?.(w),o?.(w),w.defaultPrevented||s?.())},v),x=iF(w=>{const T=w.target;[...u.branches].some(A=>A.contains(T))||(a?.(w),o?.(w),w.defaultPrevented||s?.())},v);return KB(w=>{y===u.layers.size-1&&(n?.(w),!w.defaultPrevented&&s&&(w.preventDefault(),s()))},v),I.useEffect(()=>{if(c)return r&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Wy=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(c)),u.layers.add(c),jy(),()=>{r&&u.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=Wy)}},[c,v,r,u]),I.useEffect(()=>()=>{c&&(u.layers.delete(c),u.layersWithOutsidePointerEventsDisabled.delete(c),jy())},[c,u]),I.useEffect(()=>{const w=()=>h({});return document.addEventListener(Wh,w),()=>document.removeEventListener(Wh,w)},[]),R.jsx(Pr.div,{...l,ref:d,style:{pointerEvents:_?b?"auto":"none":void 0,...t.style},onFocusCapture:tn(t.onFocusCapture,x.onFocusCapture),onBlurCapture:tn(t.onBlurCapture,x.onBlurCapture),onPointerDownCapture:tn(t.onPointerDownCapture,S.onPointerDownCapture)})});y1.displayName=QB;var tF="DismissableLayerBranch",rF=I.forwardRef((t,e)=>{const r=I.useContext(m1),n=I.useRef(null),i=ni(e,n);return I.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),R.jsx(Pr.div,{...t,ref:i})});rF.displayName=tF;function nF(t,e=globalThis?.document){const r=vo(t),n=I.useRef(!1),i=I.useRef(()=>{});return I.useEffect(()=>{const a=s=>{if(s.target&&!n.current){let l=function(){_1(JB,r,u,{discrete:!0})};const u={originalEvent:s};s.pointerType==="touch"?(e.removeEventListener("click",i.current),i.current=l,e.addEventListener("click",i.current,{once:!0})):l()}else e.removeEventListener("click",i.current);n.current=!1},o=window.setTimeout(()=>{e.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(o),e.removeEventListener("pointerdown",a),e.removeEventListener("click",i.current)}},[e,r]),{onPointerDownCapture:()=>n.current=!0}}function iF(t,e=globalThis?.document){const r=vo(t),n=I.useRef(!1);return I.useEffect(()=>{const i=a=>{a.target&&!n.current&&_1(eF,r,{originalEvent:a},{discrete:!1})};return e.addEventListener("focusin",i),()=>e.removeEventListener("focusin",i)},[e,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function jy(){const t=new CustomEvent(Wh);document.dispatchEvent(t)}function _1(t,e,r,{discrete:n}){const i=r.originalEvent.target,a=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:r});e&&i.addEventListener(t,e,{once:!0}),n?ZB(i,a):i.dispatchEvent(a)}var lf="focusScope.autoFocusOnMount",uf="focusScope.autoFocusOnUnmount",$y={bubbles:!1,cancelable:!0},aF="FocusScope",b1=I.forwardRef((t,e)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...o}=t,[s,l]=I.useState(null),u=vo(i),c=vo(a),f=I.useRef(null),v=ni(e,p=>l(p)),h=I.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;I.useEffect(()=>{if(n){let p=function(_){if(h.paused||!s)return;const b=_.target;s.contains(b)?f.current=b:Ur(f.current,{select:!0})},g=function(_){if(h.paused||!s)return;const b=_.relatedTarget;b!==null&&(s.contains(b)||Ur(f.current,{select:!0}))},m=function(_){if(document.activeElement===document.body)for(const S of _)S.removedNodes.length>0&&Ur(s)};document.addEventListener("focusin",p),document.addEventListener("focusout",g);const y=new MutationObserver(m);return s&&y.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",p),document.removeEventListener("focusout",g),y.disconnect()}}},[n,s,h.paused]),I.useEffect(()=>{if(s){qy.add(h);const p=document.activeElement;if(!s.contains(p)){const m=new CustomEvent(lf,$y);s.addEventListener(lf,u),s.dispatchEvent(m),m.defaultPrevented||(oF(fF(S1(s)),{select:!0}),document.activeElement===p&&Ur(s))}return()=>{s.removeEventListener(lf,u),setTimeout(()=>{const m=new CustomEvent(uf,$y);s.addEventListener(uf,c),s.dispatchEvent(m),m.defaultPrevented||Ur(p??document.body,{select:!0}),s.removeEventListener(uf,c),qy.remove(h)},0)}}},[s,u,c,h]);const d=I.useCallback(p=>{if(!r&&!n||h.paused)return;const g=p.key==="Tab"&&!p.altKey&&!p.ctrlKey&&!p.metaKey,m=document.activeElement;if(g&&m){const y=p.currentTarget,[_,b]=sF(y);_&&b?!p.shiftKey&&m===b?(p.preventDefault(),r&&Ur(_,{select:!0})):p.shiftKey&&m===_&&(p.preventDefault(),r&&Ur(b,{select:!0})):m===y&&p.preventDefault()}},[r,n,h.paused]);return R.jsx(Pr.div,{tabIndex:-1,...o,ref:v,onKeyDown:d})});b1.displayName=aF;function oF(t,{select:e=!1}={}){const r=document.activeElement;for(const n of t)if(Ur(n,{select:e}),document.activeElement!==r)return}function sF(t){const e=S1(t),r=Yy(e,t),n=Yy(e.reverse(),t);return[r,n]}function S1(t){const e=[],r=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const i=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||i?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)e.push(r.currentNode);return e}function Yy(t,e){for(const r of t)if(!lF(r,{upTo:e}))return r}function lF(t,{upTo:e}){if(getComputedStyle(t).visibility==="hidden")return!0;for(;t;){if(e!==void 0&&t===e)return!1;if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1}function uF(t){return t instanceof HTMLInputElement&&"select"in t}function Ur(t,{select:e=!1}={}){if(t&&t.focus){const r=document.activeElement;t.focus({preventScroll:!0}),t!==r&&uF(t)&&e&&t.select()}}var qy=cF();function cF(){let t=[];return{add(e){const r=t[0];e!==r&&r?.pause(),t=Xy(t,e),t.unshift(e)},remove(e){t=Xy(t,e),t[0]?.resume()}}}function Xy(t,e){const r=[...t],n=r.indexOf(e);return n!==-1&&r.splice(n,1),r}function fF(t){return t.filter(e=>e.tagName!=="A")}var hF="Portal",x1=I.forwardRef((t,e)=>{const{container:r,...n}=t,[i,a]=I.useState(!1);ho(()=>a(!0),[]);const o=r||i&&globalThis?.document?.body;return o?VB.createPortal(R.jsx(Pr.div,{...n,ref:e}),o):null});x1.displayName=hF;function vF(t,e){return I.useReducer((r,n)=>e[r][n]??r,t)}var Au=t=>{const{present:e,children:r}=t,n=dF(e),i=typeof r=="function"?r({present:n.isPresent}):I.Children.only(r),a=ni(n.ref,pF(i));return typeof r=="function"||n.isPresent?I.cloneElement(i,{ref:a}):null};Au.displayName="Presence";function dF(t){const[e,r]=I.useState(),n=I.useRef(null),i=I.useRef(t),a=I.useRef("none"),o=t?"mounted":"unmounted",[s,l]=vF(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return I.useEffect(()=>{const u=Ms(n.current);a.current=s==="mounted"?u:"none"},[s]),ho(()=>{const u=n.current,c=i.current;if(c!==t){const v=a.current,h=Ms(u);t?l("MOUNT"):h==="none"||u?.display==="none"?l("UNMOUNT"):l(c&&v!==h?"ANIMATION_OUT":"UNMOUNT"),i.current=t}},[t,l]),ho(()=>{if(e){let u;const c=e.ownerDocument.defaultView??window,f=h=>{const p=Ms(n.current).includes(CSS.escape(h.animationName));if(h.target===e&&p&&(l("ANIMATION_END"),!i.current)){const g=e.style.animationFillMode;e.style.animationFillMode="forwards",u=c.setTimeout(()=>{e.style.animationFillMode==="forwards"&&(e.style.animationFillMode=g)})}},v=h=>{h.target===e&&(a.current=Ms(n.current))};return e.addEventListener("animationstart",v),e.addEventListener("animationcancel",f),e.addEventListener("animationend",f),()=>{c.clearTimeout(u),e.removeEventListener("animationstart",v),e.removeEventListener("animationcancel",f),e.removeEventListener("animationend",f)}}else l("ANIMATION_END")},[e,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:I.useCallback(u=>{n.current=u?getComputedStyle(u):null,r(u)},[])}}function Ms(t){return t?.animationName||"none"}function pF(t){let e=Object.getOwnPropertyDescriptor(t.props,"ref")?.get,r=e&&"isReactWarning"in e&&e.isReactWarning;return r?t.ref:(e=Object.getOwnPropertyDescriptor(t,"ref")?.get,r=e&&"isReactWarning"in e&&e.isReactWarning,r?t.props.ref:t.props.ref||t.ref)}var cf=0;function gF(){I.useEffect(()=>{const t=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",t[0]??Zy()),document.body.insertAdjacentElement("beforeend",t[1]??Zy()),cf++,()=>{cf===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),cf--}},[])}function Zy(){const t=document.createElement("span");return t.setAttribute("data-radix-focus-guard",""),t.tabIndex=0,t.style.outline="none",t.style.opacity="0",t.style.position="fixed",t.style.pointerEvents="none",t}var rr=function(){return rr=Object.assign||function(e){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},rr.apply(this,arguments)};function w1(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(t);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(r[n[i]]=t[n[i]]);return r}function mF(t,e,r){if(r||arguments.length===2)for(var n=0,i=e.length,a;n<i;n++)(a||!(n in e))&&(a||(a=Array.prototype.slice.call(e,0,n)),a[n]=e[n]);return t.concat(a||Array.prototype.slice.call(e))}var Js="right-scroll-bar-position",el="width-before-scroll-bar",yF="with-scroll-bars-hidden",_F="--removed-body-scroll-bar-size";function ff(t,e){return typeof t=="function"?t(e):t&&(t.current=e),t}function bF(t,e){var r=I.useState(function(){return{value:t,callback:e,facade:{get current(){return r.value},set current(n){var i=r.value;i!==n&&(r.value=n,r.callback(n,i))}}}})[0];return r.callback=e,r.facade}var SF=typeof window<"u"?I.useLayoutEffect:I.useEffect,Ky=new WeakMap;function xF(t,e){var r=bF(null,function(n){return t.forEach(function(i){return ff(i,n)})});return SF(function(){var n=Ky.get(r);if(n){var i=new Set(n),a=new Set(t),o=r.current;i.forEach(function(s){a.has(s)||ff(s,null)}),a.forEach(function(s){i.has(s)||ff(s,o)})}Ky.set(r,t)},[t]),r}function wF(t){return t}function TF(t,e){e===void 0&&(e=wF);var r=[],n=!1,i={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:t},useMedium:function(a){var o=e(a,n);return r.push(o),function(){r=r.filter(function(s){return s!==o})}},assignSyncMedium:function(a){for(n=!0;r.length;){var o=r;r=[],o.forEach(a)}r={push:function(s){return a(s)},filter:function(){return r}}},assignMedium:function(a){n=!0;var o=[];if(r.length){var s=r;r=[],s.forEach(a),o=r}var l=function(){var c=o;o=[],c.forEach(a)},u=function(){return Promise.resolve().then(l)};u(),r={push:function(c){o.push(c),u()},filter:function(c){return o=o.filter(c),r}}}};return i}function CF(t){t===void 0&&(t={});var e=TF(null);return e.options=rr({async:!0,ssr:!1},t),e}var T1=function(t){var e=t.sideCar,r=w1(t,["sideCar"]);if(!e)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=e.read();if(!n)throw new Error("Sidecar medium not found");return I.createElement(n,rr({},r))};T1.isSideCarExport=!0;function DF(t,e){return t.useMedium(e),T1}var C1=CF(),hf=function(){},Eu=I.forwardRef(function(t,e){var r=I.useRef(null),n=I.useState({onScrollCapture:hf,onWheelCapture:hf,onTouchMoveCapture:hf}),i=n[0],a=n[1],o=t.forwardProps,s=t.children,l=t.className,u=t.removeScrollBar,c=t.enabled,f=t.shards,v=t.sideCar,h=t.noRelative,d=t.noIsolation,p=t.inert,g=t.allowPinchZoom,m=t.as,y=m===void 0?"div":m,_=t.gapMode,b=w1(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=v,x=xF([r,e]),w=rr(rr({},b),i);return I.createElement(I.Fragment,null,c&&I.createElement(S,{sideCar:C1,removeScrollBar:u,shards:f,noRelative:h,noIsolation:d,inert:p,setCallbacks:a,allowPinchZoom:!!g,lockRef:r,gapMode:_}),o?I.cloneElement(I.Children.only(s),rr(rr({},w),{ref:x})):I.createElement(y,rr({},w,{className:l,ref:x}),s))});Eu.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Eu.classNames={fullWidth:el,zeroRight:Js};var MF=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function AF(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var e=MF();return e&&t.setAttribute("nonce",e),t}function EF(t,e){t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e))}function RF(t){var e=document.head||document.getElementsByTagName("head")[0];e.appendChild(t)}var LF=function(){var t=0,e=null;return{add:function(r){t==0&&(e=AF())&&(EF(e,r),RF(e)),t++},remove:function(){t--,!t&&e&&(e.parentNode&&e.parentNode.removeChild(e),e=null)}}},PF=function(){var t=LF();return function(e,r){I.useEffect(function(){return t.add(e),function(){t.remove()}},[e&&r])}},D1=function(){var t=PF(),e=function(r){var n=r.styles,i=r.dynamic;return t(n,i),null};return e},IF={left:0,top:0,right:0,gap:0},vf=function(t){return parseInt(t||"",10)||0},OF=function(t){var e=window.getComputedStyle(document.body),r=e[t==="padding"?"paddingLeft":"marginLeft"],n=e[t==="padding"?"paddingTop":"marginTop"],i=e[t==="padding"?"paddingRight":"marginRight"];return[vf(r),vf(n),vf(i)]},kF=function(t){if(t===void 0&&(t="margin"),typeof window>"u")return IF;var e=OF(t),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:e[0],top:e[1],right:e[2],gap:Math.max(0,n-r+e[2]-e[0])}},NF=D1(),Ii="data-scroll-locked",BF=function(t,e,r,n){var i=t.left,a=t.top,o=t.right,s=t.gap;return r===void 0&&(r="margin"),`
|
|
25
|
-
.`.concat(yF,` {
|
|
26
|
-
overflow: hidden `).concat(n,`;
|
|
27
|
-
padding-right: `).concat(s,"px ").concat(n,`;
|
|
28
|
-
}
|
|
29
|
-
body[`).concat(Ii,`] {
|
|
30
|
-
overflow: hidden `).concat(n,`;
|
|
31
|
-
overscroll-behavior: contain;
|
|
32
|
-
`).concat([e&&"position: relative ".concat(n,";"),r==="margin"&&`
|
|
33
|
-
padding-left: `.concat(i,`px;
|
|
34
|
-
padding-top: `).concat(a,`px;
|
|
35
|
-
padding-right: `).concat(o,`px;
|
|
36
|
-
margin-left:0;
|
|
37
|
-
margin-top:0;
|
|
38
|
-
margin-right: `).concat(s,"px ").concat(n,`;
|
|
39
|
-
`),r==="padding"&&"padding-right: ".concat(s,"px ").concat(n,";")].filter(Boolean).join(""),`
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.`).concat(Js,` {
|
|
43
|
-
right: `).concat(s,"px ").concat(n,`;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
.`).concat(el,` {
|
|
47
|
-
margin-right: `).concat(s,"px ").concat(n,`;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.`).concat(Js," .").concat(Js,` {
|
|
51
|
-
right: 0 `).concat(n,`;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.`).concat(el," .").concat(el,` {
|
|
55
|
-
margin-right: 0 `).concat(n,`;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
body[`).concat(Ii,`] {
|
|
59
|
-
`).concat(_F,": ").concat(s,`px;
|
|
60
|
-
}
|
|
61
|
-
`)},Qy=function(){var t=parseInt(document.body.getAttribute(Ii)||"0",10);return isFinite(t)?t:0},FF=function(){I.useEffect(function(){return document.body.setAttribute(Ii,(Qy()+1).toString()),function(){var t=Qy()-1;t<=0?document.body.removeAttribute(Ii):document.body.setAttribute(Ii,t.toString())}},[])},zF=function(t){var e=t.noRelative,r=t.noImportant,n=t.gapMode,i=n===void 0?"margin":n;FF();var a=I.useMemo(function(){return kF(i)},[i]);return I.createElement(NF,{styles:BF(a,!e,i,r?"":"!important")})},jh=!1;if(typeof window<"u")try{var As=Object.defineProperty({},"passive",{get:function(){return jh=!0,!0}});window.addEventListener("test",As,As),window.removeEventListener("test",As,As)}catch{jh=!1}var xi=jh?{passive:!1}:!1,HF=function(t){return t.tagName==="TEXTAREA"},M1=function(t,e){if(!(t instanceof Element))return!1;var r=window.getComputedStyle(t);return r[e]!=="hidden"&&!(r.overflowY===r.overflowX&&!HF(t)&&r[e]==="visible")},UF=function(t){return M1(t,"overflowY")},GF=function(t){return M1(t,"overflowX")},Jy=function(t,e){var r=e.ownerDocument,n=e;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var i=A1(t,n);if(i){var a=E1(t,n),o=a[1],s=a[2];if(o>s)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},VF=function(t){var e=t.scrollTop,r=t.scrollHeight,n=t.clientHeight;return[e,r,n]},WF=function(t){var e=t.scrollLeft,r=t.scrollWidth,n=t.clientWidth;return[e,r,n]},A1=function(t,e){return t==="v"?UF(e):GF(e)},E1=function(t,e){return t==="v"?VF(e):WF(e)},jF=function(t,e){return t==="h"&&e==="rtl"?-1:1},$F=function(t,e,r,n,i){var a=jF(t,window.getComputedStyle(e).direction),o=a*n,s=r.target,l=e.contains(s),u=!1,c=o>0,f=0,v=0;do{if(!s)break;var h=E1(t,s),d=h[0],p=h[1],g=h[2],m=p-g-a*d;(d||m)&&A1(t,s)&&(f+=m,v+=d);var y=s.parentNode;s=y&&y.nodeType===Node.DOCUMENT_FRAGMENT_NODE?y.host:y}while(!l&&s!==document.body||l&&(e.contains(s)||e===s));return(c&&Math.abs(f)<1||!c&&Math.abs(v)<1)&&(u=!0),u},Es=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},e0=function(t){return[t.deltaX,t.deltaY]},t0=function(t){return t&&"current"in t?t.current:t},YF=function(t,e){return t[0]===e[0]&&t[1]===e[1]},qF=function(t){return`
|
|
62
|
-
.block-interactivity-`.concat(t,` {pointer-events: none;}
|
|
63
|
-
.allow-interactivity-`).concat(t,` {pointer-events: all;}
|
|
64
|
-
`)},XF=0,wi=[];function ZF(t){var e=I.useRef([]),r=I.useRef([0,0]),n=I.useRef(),i=I.useState(XF++)[0],a=I.useState(D1)[0],o=I.useRef(t);I.useEffect(function(){o.current=t},[t]),I.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(i));var p=mF([t.lockRef.current],(t.shards||[]).map(t0),!0).filter(Boolean);return p.forEach(function(g){return g.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),p.forEach(function(g){return g.classList.remove("allow-interactivity-".concat(i))})}}},[t.inert,t.lockRef.current,t.shards]);var s=I.useCallback(function(p,g){if("touches"in p&&p.touches.length===2||p.type==="wheel"&&p.ctrlKey)return!o.current.allowPinchZoom;var m=Es(p),y=r.current,_="deltaX"in p?p.deltaX:y[0]-m[0],b="deltaY"in p?p.deltaY:y[1]-m[1],S,x=p.target,w=Math.abs(_)>Math.abs(b)?"h":"v";if("touches"in p&&w==="h"&&x.type==="range")return!1;var T=window.getSelection(),M=T&&T.anchorNode,A=M?M===x||M.contains(x):!1;if(A)return!1;var D=Jy(w,x);if(!D)return!0;if(D?S=w:(S=w==="v"?"h":"v",D=Jy(w,x)),!D)return!1;if(!n.current&&"changedTouches"in p&&(_||b)&&(n.current=S),!S)return!0;var P=n.current||S;return $F(P,g,p,P==="h"?_:b)},[]),l=I.useCallback(function(p){var g=p;if(!(!wi.length||wi[wi.length-1]!==a)){var m="deltaY"in g?e0(g):Es(g),y=e.current.filter(function(S){return S.name===g.type&&(S.target===g.target||g.target===S.shadowParent)&&YF(S.delta,m)})[0];if(y&&y.should){g.cancelable&&g.preventDefault();return}if(!y){var _=(o.current.shards||[]).map(t0).filter(Boolean).filter(function(S){return S.contains(g.target)}),b=_.length>0?s(g,_[0]):!o.current.noIsolation;b&&g.cancelable&&g.preventDefault()}}},[]),u=I.useCallback(function(p,g,m,y){var _={name:p,delta:g,target:m,should:y,shadowParent:KF(m)};e.current.push(_),setTimeout(function(){e.current=e.current.filter(function(b){return b!==_})},1)},[]),c=I.useCallback(function(p){r.current=Es(p),n.current=void 0},[]),f=I.useCallback(function(p){u(p.type,e0(p),p.target,s(p,t.lockRef.current))},[]),v=I.useCallback(function(p){u(p.type,Es(p),p.target,s(p,t.lockRef.current))},[]);I.useEffect(function(){return wi.push(a),t.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:v}),document.addEventListener("wheel",l,xi),document.addEventListener("touchmove",l,xi),document.addEventListener("touchstart",c,xi),function(){wi=wi.filter(function(p){return p!==a}),document.removeEventListener("wheel",l,xi),document.removeEventListener("touchmove",l,xi),document.removeEventListener("touchstart",c,xi)}},[]);var h=t.removeScrollBar,d=t.inert;return I.createElement(I.Fragment,null,d?I.createElement(a,{styles:qF(i)}):null,h?I.createElement(zF,{noRelative:t.noRelative,gapMode:t.gapMode}):null)}function KF(t){for(var e=null;t!==null;)t instanceof ShadowRoot&&(e=t.host,t=t.host),t=t.parentNode;return e}const QF=DF(C1,ZF);var R1=I.forwardRef(function(t,e){return I.createElement(Eu,rr({},t,{ref:e,sideCar:QF}))});R1.classNames=Eu.classNames;var JF=function(t){if(typeof document>"u")return null;var e=Array.isArray(t)?t[0]:t;return e.ownerDocument.body},Ti=new WeakMap,Rs=new WeakMap,Ls={},df=0,L1=function(t){return t&&(t.host||L1(t.parentNode))},ez=function(t,e){return e.map(function(r){if(t.contains(r))return r;var n=L1(r);return n&&t.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",t,". Doing nothing"),null)}).filter(function(r){return!!r})},tz=function(t,e,r,n){var i=ez(e,Array.isArray(t)?t:[t]);Ls[r]||(Ls[r]=new WeakMap);var a=Ls[r],o=[],s=new Set,l=new Set(i),u=function(f){!f||s.has(f)||(s.add(f),u(f.parentNode))};i.forEach(u);var c=function(f){!f||l.has(f)||Array.prototype.forEach.call(f.children,function(v){if(s.has(v))c(v);else try{var h=v.getAttribute(n),d=h!==null&&h!=="false",p=(Ti.get(v)||0)+1,g=(a.get(v)||0)+1;Ti.set(v,p),a.set(v,g),o.push(v),p===1&&d&&Rs.set(v,!0),g===1&&v.setAttribute(r,"true"),d||v.setAttribute(n,"true")}catch(m){console.error("aria-hidden: cannot operate on ",v,m)}})};return c(e),s.clear(),df++,function(){o.forEach(function(f){var v=Ti.get(f)-1,h=a.get(f)-1;Ti.set(f,v),a.set(f,h),v||(Rs.has(f)||f.removeAttribute(n),Rs.delete(f)),h||f.removeAttribute(r)}),df--,df||(Ti=new WeakMap,Ti=new WeakMap,Rs=new WeakMap,Ls={})}},rz=function(t,e,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(t)?t:[t]),i=JF(t);return i?(n.push.apply(n,Array.from(i.querySelectorAll("[aria-live], script"))),tz(n,i,r,"aria-hidden")):function(){return null}},Ru="Dialog",[P1]=kB(Ru),[nz,Yt]=P1(Ru),I1=t=>{const{__scopeDialog:e,children:r,open:n,defaultOpen:i,onOpenChange:a,modal:o=!0}=t,s=I.useRef(null),l=I.useRef(null),[u,c]=HB({prop:n,defaultProp:i??!1,onChange:a,caller:Ru});return R.jsx(nz,{scope:e,triggerRef:s,contentRef:l,contentId:sf(),titleId:sf(),descriptionId:sf(),open:u,onOpenChange:c,onOpenToggle:I.useCallback(()=>c(f=>!f),[c]),modal:o,children:r})};I1.displayName=Ru;var O1="DialogTrigger",iz=I.forwardRef((t,e)=>{const{__scopeDialog:r,...n}=t,i=Yt(O1,r),a=ni(e,i.triggerRef);return R.jsx(Pr.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":Td(i.open),...n,ref:a,onClick:tn(t.onClick,i.onOpenToggle)})});iz.displayName=O1;var xd="DialogPortal",[az,k1]=P1(xd,{forceMount:void 0}),N1=t=>{const{__scopeDialog:e,forceMount:r,children:n,container:i}=t,a=Yt(xd,e);return R.jsx(az,{scope:e,forceMount:r,children:I.Children.map(n,o=>R.jsx(Au,{present:r||a.open,children:R.jsx(x1,{asChild:!0,container:i,children:o})}))})};N1.displayName=xd;var Wl="DialogOverlay",B1=I.forwardRef((t,e)=>{const r=k1(Wl,t.__scopeDialog),{forceMount:n=r.forceMount,...i}=t,a=Yt(Wl,t.__scopeDialog);return a.modal?R.jsx(Au,{present:n||a.open,children:R.jsx(sz,{...i,ref:e})}):null});B1.displayName=Wl;var oz=g1("DialogOverlay.RemoveScroll"),sz=I.forwardRef((t,e)=>{const{__scopeDialog:r,...n}=t,i=Yt(Wl,r);return R.jsx(R1,{as:oz,allowPinchZoom:!0,shards:[i.contentRef],children:R.jsx(Pr.div,{"data-state":Td(i.open),...n,ref:e,style:{pointerEvents:"auto",...n.style}})})}),Qn="DialogContent",F1=I.forwardRef((t,e)=>{const r=k1(Qn,t.__scopeDialog),{forceMount:n=r.forceMount,...i}=t,a=Yt(Qn,t.__scopeDialog);return R.jsx(Au,{present:n||a.open,children:a.modal?R.jsx(lz,{...i,ref:e}):R.jsx(uz,{...i,ref:e})})});F1.displayName=Qn;var lz=I.forwardRef((t,e)=>{const r=Yt(Qn,t.__scopeDialog),n=I.useRef(null),i=ni(e,r.contentRef,n);return I.useEffect(()=>{const a=n.current;if(a)return rz(a)},[]),R.jsx(z1,{...t,ref:i,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:tn(t.onCloseAutoFocus,a=>{a.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:tn(t.onPointerDownOutside,a=>{const o=a.detail.originalEvent,s=o.button===0&&o.ctrlKey===!0;(o.button===2||s)&&a.preventDefault()}),onFocusOutside:tn(t.onFocusOutside,a=>a.preventDefault())})}),uz=I.forwardRef((t,e)=>{const r=Yt(Qn,t.__scopeDialog),n=I.useRef(!1),i=I.useRef(!1);return R.jsx(z1,{...t,ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{t.onCloseAutoFocus?.(a),a.defaultPrevented||(n.current||r.triggerRef.current?.focus(),a.preventDefault()),n.current=!1,i.current=!1},onInteractOutside:a=>{t.onInteractOutside?.(a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(i.current=!0));const o=a.target;r.triggerRef.current?.contains(o)&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&i.current&&a.preventDefault()}})}),z1=I.forwardRef((t,e)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:i,onCloseAutoFocus:a,...o}=t,s=Yt(Qn,r),l=I.useRef(null),u=ni(e,l);return gF(),R.jsxs(R.Fragment,{children:[R.jsx(b1,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:i,onUnmountAutoFocus:a,children:R.jsx(y1,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":Td(s.open),...o,ref:u,onDismiss:()=>s.onOpenChange(!1)})}),R.jsxs(R.Fragment,{children:[R.jsx(fz,{titleId:s.titleId}),R.jsx(vz,{contentRef:l,descriptionId:s.descriptionId})]})]})}),wd="DialogTitle",H1=I.forwardRef((t,e)=>{const{__scopeDialog:r,...n}=t,i=Yt(wd,r);return R.jsx(Pr.h2,{id:i.titleId,...n,ref:e})});H1.displayName=wd;var U1="DialogDescription",cz=I.forwardRef((t,e)=>{const{__scopeDialog:r,...n}=t,i=Yt(U1,r);return R.jsx(Pr.p,{id:i.descriptionId,...n,ref:e})});cz.displayName=U1;var G1="DialogClose",V1=I.forwardRef((t,e)=>{const{__scopeDialog:r,...n}=t,i=Yt(G1,r);return R.jsx(Pr.button,{type:"button",...n,ref:e,onClick:tn(t.onClick,()=>i.onOpenChange(!1))})});V1.displayName=G1;function Td(t){return t?"open":"closed"}var W1="DialogTitleWarning",[Uz,j1]=OB(W1,{contentName:Qn,titleName:wd,docsSlug:"dialog"}),fz=({titleId:t})=>{const e=j1(W1),r=`\`${e.contentName}\` requires a \`${e.titleName}\` for the component to be accessible for screen reader users.
|
|
65
|
-
|
|
66
|
-
If you want to hide the \`${e.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
67
|
-
|
|
68
|
-
For more information, see https://radix-ui.com/primitives/docs/components/${e.docsSlug}`;return I.useEffect(()=>{t&&(document.getElementById(t)||console.error(r))},[r,t]),null},hz="DialogDescriptionWarning",vz=({contentRef:t,descriptionId:e})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${j1(hz).contentName}}.`;return I.useEffect(()=>{const i=t.current?.getAttribute("aria-describedby");e&&i&&(document.getElementById(e)||console.warn(n))},[n,t,e]),null},dz=I1,pz=N1,gz=B1,mz=F1,yz=H1,_z=V1;function bz({job:t,onClose:e}){return t?R.jsx(dz,{open:!!t,onOpenChange:r=>!r&&e(),children:R.jsxs(pz,{children:[R.jsx(gz,{className:"fixed inset-0 bg-black/50 backdrop-blur-sm z-50 animate-in fade-in duration-200"}),R.jsxs(mz,{className:"fixed right-0 top-0 h-full w-full max-w-md bg-zinc-950 border-l border-zinc-800 p-6 z-50 animate-in slide-in-from-right duration-300 shadow-2xl flex flex-col",children:[R.jsxs("div",{className:"flex items-center justify-between mb-8",children:[R.jsxs(yz,{className:"text-lg font-semibold text-zinc-100 flex items-center gap-2",children:[R.jsx(rw,{className:"w-5 h-5 text-blue-500"}),"Job Details"]}),R.jsx(_z,{className:"text-zinc-400 hover:text-zinc-100 transition-colors",children:R.jsx(Lw,{className:"w-5 h-5"})})]}),R.jsxs("div",{className:"flex-1 space-y-8 overflow-y-auto pr-2",children:[R.jsxs("div",{className:"space-y-1",children:[R.jsx("h2",{className:"text-2xl font-bold text-zinc-100",children:t.gitlab_job_name||`Job ${t.gitlab_job_id}`}),R.jsxs("div",{className:"flex items-center gap-2 text-zinc-400 text-sm font-mono",children:[R.jsxs("span",{children:["ID: ",t.gitlab_job_id]}),R.jsx("span",{children:"•"}),R.jsxs("span",{className:"flex items-center gap-1",children:[R.jsx(Ld,{className:"w-3 h-3"}),new Date(t.ingested_at.value).toLocaleString()]})]})]}),R.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[R.jsxs("div",{className:"bg-zinc-900/50 border border-zinc-800 rounded-lg p-4 space-y-1",children:[R.jsxs("div",{className:"flex items-center gap-2 text-zinc-400 text-xs uppercase tracking-wider font-medium",children:[R.jsx(o0,{className:"w-3 h-3"}),"Emissions"]}),R.jsxs("div",{className:"text-2xl font-mono text-zinc-100 font-medium",children:[t.total_emissions_g.toFixed(2)," ",R.jsx("span",{className:"text-sm text-zinc-500",children:"gCO2e"})]})]}),R.jsxs("div",{className:"bg-zinc-900/50 border border-zinc-800 rounded-lg p-4 space-y-1",children:[R.jsxs("div",{className:"flex items-center gap-2 text-zinc-400 text-xs uppercase tracking-wider font-medium",children:[R.jsx(Iw,{className:"w-3 h-3"}),"Energy"]}),R.jsxs("div",{className:"text-2xl font-mono text-zinc-100 font-medium",children:[(t.energy_kwh*1e3).toFixed(2)," ",R.jsx("span",{className:"text-sm text-zinc-500",children:"Wh"})]})]})]}),R.jsxs("div",{className:"space-y-4",children:[R.jsx("h3",{className:"text-sm font-medium text-zinc-400 uppercase tracking-wider",children:"Resource Utilization"}),R.jsxs("div",{className:"bg-zinc-900/30 border border-zinc-800 rounded-lg p-4 space-y-4",children:[R.jsxs("div",{className:"space-y-2",children:[R.jsxs("div",{className:"flex justify-between text-sm",children:[R.jsxs("span",{className:"flex items-center gap-2 text-zinc-300",children:[R.jsx(Sw,{className:"w-4 h-4 text-zinc-500"})," CPU Usage"]}),R.jsxs("span",{className:"font-mono text-zinc-100",children:[(t.cpu_utilization_avg*100).toFixed(1),"%"]})]}),R.jsx("div",{className:"h-1.5 w-full bg-zinc-800 rounded-full overflow-hidden",children:R.jsx("div",{className:"h-full bg-blue-500 rounded-full transition-all duration-500",style:{width:`${t.cpu_utilization_avg*100}%`}})})]}),R.jsxs("div",{className:"space-y-2",children:[R.jsxs("div",{className:"flex justify-between text-sm",children:[R.jsxs("span",{className:"flex items-center gap-2 text-zinc-300",children:[R.jsx(nw,{className:"w-4 h-4 text-zinc-500"})," RAM Usage"]}),R.jsxs("span",{className:"font-mono text-zinc-100",children:[(t.ram_utilization_avg*100).toFixed(1),"%"]})]}),R.jsx("div",{className:"h-1.5 w-full bg-zinc-800 rounded-full overflow-hidden",children:R.jsx("div",{className:"h-full bg-purple-500 rounded-full transition-all duration-500",style:{width:`${t.ram_utilization_avg*100}%`}})})]})]})]}),R.jsxs("div",{className:"space-y-4",children:[R.jsx("h3",{className:"text-sm font-medium text-zinc-400 uppercase tracking-wider",children:"Environment Details"}),R.jsxs("div",{className:"space-y-3 text-sm",children:[R.jsxs("div",{className:"flex justify-between items-center py-2 border-b border-zinc-800/50",children:[R.jsxs("span",{className:"text-zinc-500 flex items-center gap-2",children:[R.jsx(Mw,{className:"w-4 h-4"})," Machine Type"]}),R.jsx("span",{className:"font-mono text-zinc-300 bg-zinc-900 px-2 py-0.5 rounded border border-zinc-800",children:t.machine_type})]}),R.jsxs("div",{className:"flex justify-between items-center py-2 border-b border-zinc-800/50",children:[R.jsxs("span",{className:"text-zinc-500 flex items-center gap-2",children:[R.jsx(Cw,{className:"w-4 h-4"})," Region"]}),R.jsx("span",{className:"text-zinc-300",children:t.region||"us-central1"})]}),R.jsxs("div",{className:"flex justify-between items-center py-2 border-b border-zinc-800/50",children:[R.jsxs("span",{className:"text-zinc-500 flex items-center gap-2",children:[R.jsx(Ew,{className:"w-4 h-4"})," Triggered By"]}),R.jsx("span",{className:"text-zinc-300",children:t.gitlab_user_name||"Unknown User"})]}),R.jsxs("div",{className:"flex justify-between items-center py-2 border-b border-zinc-800/50",children:[R.jsxs("span",{className:"text-zinc-500 flex items-center gap-2",children:[R.jsx(Ld,{className:"w-4 h-4"})," Duration"]}),R.jsxs("span",{className:"font-mono text-zinc-300",children:[t.runtime_seconds?.toFixed(1),"s"]})]})]})]}),R.jsx("div",{className:"pt-4",children:R.jsxs("a",{href:`https://gitlab.com/projects/${t.gitlab_project_id}/jobs/${t.gitlab_job_id}`,target:"_blank",rel:"noopener noreferrer",className:"flex w-full items-center justify-center gap-2 bg-zinc-100 hover:bg-zinc-200 text-zinc-950 font-medium py-2.5 rounded-md transition-colors",children:[R.jsx(iw,{className:"w-5 h-5"}),"View Job on GitLab"]})})]})]})]})}):null}vr([SP,$P,$k,xN,QN,GN,yB]);const pf=PB;function Gz(){const[t,e]=I.useState(""),[r,n]=I.useState(""),[i,a]=I.useState(null),{data:o,isLoading:s}=IB(),{data:l,isLoading:u,error:c}=l0({queryKey:["metrics",r],queryFn:async()=>r?(await Me.get(`/api/metrics?projectId=${r}`)).data:[],enabled:!!r}),v={click:y=>{if(!l)return;let _;if(y.seriesType==="scatter")_=y.data[2];else if(y.seriesType==="bar"){const b=y.name.match(/Job (\d+)/);b&&(_=parseInt(b[1]))}if(_){const b=l.find(S=>S.gitlab_job_id===_);b&&a(b)}}},h=I.useMemo(()=>{if(!l||l.length===0)return{};const y=[...l].reverse();return{tooltip:{trigger:"axis",backgroundColor:"#18181b",borderColor:"#27272a",textStyle:{color:"#e4e4e7"}},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:{type:"category",data:y.map(_=>`Job ${_.gitlab_job_id}`),axisLine:{show:!1},axisTick:{show:!1},axisLabel:{color:"#71717a"}},yAxis:{type:"value",splitLine:{lineStyle:{color:"#27272a"}},axisLabel:{color:"#71717a",formatter:"{value} g"}},series:[{name:"Emissions",type:"bar",data:y.map(_=>_.total_emissions_g),itemStyle:{color:"#3b82f6",borderRadius:[4,4,0,0]},barMaxWidth:50,cursor:"pointer"}]}},[l]),d=I.useMemo(()=>{if(!l||l.length===0)return{};const y={};l.forEach(b=>{y[b.machine_type]=(y[b.machine_type]||0)+b.total_emissions_g});const _=Object.entries(y).map(([b,S])=>({name:b,value:parseFloat(S.toFixed(2))}));return{tooltip:{trigger:"item",backgroundColor:"#18181b",borderColor:"#27272a",textStyle:{color:"#e4e4e7"},formatter:"{b}: {c}g ({d}%)"},legend:{top:"5%",left:"center",textStyle:{color:"#a1a1aa"}},series:[{name:"Emissions by Machine Type",type:"pie",radius:["40%","70%"],avoidLabelOverlap:!1,itemStyle:{borderRadius:10,borderColor:"#09090b",borderWidth:2},label:{show:!1,position:"center"},emphasis:{label:{show:!0,fontSize:20,fontWeight:"bold",color:"#fff"}},labelLine:{show:!1},data:_}]}},[l]),p=I.useMemo(()=>!l||l.length===0?{}:{tooltip:{backgroundColor:"#18181b",borderColor:"#27272a",textStyle:{color:"#e4e4e7"},formatter:y=>{const[_,b,S,x]=y.data;return`Job ${S}<br/>
|
|
69
|
-
Runtime: ${_}s<br/>
|
|
70
|
-
Emissions: ${b}g<br/>
|
|
71
|
-
Type: ${x}`}},grid:{left:"8%",right:"8%",bottom:"8%",containLabel:!0},xAxis:{name:"Runtime (s)",nameTextStyle:{color:"#71717a"},splitLine:{lineStyle:{color:"#27272a"}},axisLabel:{color:"#71717a"}},yAxis:{name:"Emissions (g)",nameTextStyle:{color:"#71717a"},splitLine:{lineStyle:{color:"#27272a"}},axisLabel:{color:"#71717a"}},series:[{symbolSize:10,data:l.map(y=>[y.runtime_seconds||0,y.total_emissions_g,y.gitlab_job_id,y.machine_type]),type:"scatter",itemStyle:{color:"#10b981"},cursor:"pointer"}]},[l]),g=l?.reduce((y,_)=>y+_.total_emissions_g,0)||0,m=l?.length?g/l.length:0;return R.jsxs("div",{className:"p-6 space-y-6 max-w-6xl mx-auto",children:[R.jsx(bz,{job:i,onClose:()=>a(null)}),R.jsx("div",{className:"flex items-end gap-4",children:R.jsxs("div",{className:"flex-1 max-w-sm space-y-2",children:[R.jsx("label",{className:"text-xs font-medium text-zinc-400 uppercase tracking-wider",children:"GitLab Project ID"}),R.jsx("div",{className:"flex gap-2",children:R.jsxs("select",{className:"flex-1 bg-zinc-900 border border-zinc-800 rounded-md px-3 py-2 text-sm text-zinc-100 focus:outline-none focus:border-zinc-700",value:r,onChange:y=>{e(y.target.value),n(y.target.value)},children:[R.jsx("option",{value:"",disabled:!0,children:"Select a project"}),o?.map(y=>R.jsx("option",{value:y,children:y},y)),!s&&o?.length===0&&R.jsx("option",{disabled:!0,children:"No projects found"})]})}),R.jsx("div",{className:"text-xs text-zinc-500",children:"Or verify manually:"}),R.jsxs("div",{className:"flex gap-2",children:[R.jsx("input",{type:"text",value:t,onChange:y=>e(y.target.value),className:"flex-1 bg-zinc-900 border border-zinc-800 rounded-md px-3 py-2 text-sm text-zinc-100 focus:outline-none focus:border-zinc-700",placeholder:"e.g. 12345678"}),R.jsx("button",{onClick:()=>n(t),className:"bg-zinc-100 text-zinc-950 px-4 py-2 rounded-md text-sm font-medium hover:bg-zinc-200 transition-colors",children:"Load"})]})]})}),u&&R.jsx("div",{className:"flex justify-center py-12",children:R.jsx(ww,{className:"w-8 h-8 text-zinc-600 animate-spin"})}),c&&R.jsxs("div",{className:"p-4 bg-red-900/20 border border-red-900/50 rounded-lg text-red-200 text-sm",children:["Failed to load metrics: ",String(c)]}),l&&l.length>0&&R.jsxs(R.Fragment,{children:[R.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[R.jsxs("div",{className:"p-4 bg-zinc-900/50 border border-zinc-800 rounded-lg",children:[R.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[R.jsx(o0,{className:"w-3 h-3 text-zinc-500"}),R.jsx("h3",{className:"text-xs text-zinc-500 uppercase tracking-wider",children:"Total Emissions"})]}),R.jsxs("p",{className:"text-2xl font-mono font-medium text-zinc-100",children:[g.toFixed(2)," gCO2e"]})]}),R.jsxs("div",{className:"p-4 bg-zinc-900/50 border border-zinc-800 rounded-lg",children:[R.jsx("h3",{className:"text-xs text-zinc-500 uppercase tracking-wider mb-1",children:"Avg per Job"}),R.jsxs("p",{className:"text-2xl font-mono font-medium text-zinc-100",children:[m.toFixed(2)," gCO2e"]})]}),R.jsxs("div",{className:"p-4 bg-zinc-900/50 border border-zinc-800 rounded-lg",children:[R.jsx("h3",{className:"text-xs text-zinc-500 uppercase tracking-wider mb-1",children:"Jobs Analyzed"}),R.jsx("p",{className:"text-2xl font-mono font-medium text-zinc-100",children:l.length})]})]}),R.jsxs("div",{className:"space-y-2",children:[R.jsx("h3",{className:"text-sm font-medium text-zinc-400",children:"Emissions History"}),R.jsx("div",{className:"h-80 w-full bg-zinc-900/30 border border-zinc-800 rounded-lg p-4",children:R.jsx(pf,{echarts:tf,option:h,style:{height:"100%",width:"100%"},theme:"dark",onEvents:v})})]}),R.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[R.jsxs("div",{className:"space-y-2",children:[R.jsx("h3",{className:"text-sm font-medium text-zinc-400",children:"Emissions by Machine Type"}),R.jsx("div",{className:"h-80 w-full bg-zinc-900/30 border border-zinc-800 rounded-lg p-4",children:R.jsx(pf,{echarts:tf,option:d,style:{height:"100%",width:"100%"},theme:"dark",onEvents:v})})]}),R.jsxs("div",{className:"space-y-2",children:[R.jsx("h3",{className:"text-sm font-medium text-zinc-400",children:"Runtime vs Emissions"}),R.jsx("div",{className:"h-80 w-full bg-zinc-900/30 border border-zinc-800 rounded-lg p-4",children:R.jsx(pf,{echarts:tf,option:p,style:{height:"100%",width:"100%"},theme:"dark",onEvents:v})})]})]}),R.jsxs("div",{className:"space-y-2",children:[R.jsx("h3",{className:"text-sm font-medium text-zinc-400",children:"Top Carbon-Intensive Jobs"}),R.jsx("div",{className:"w-full bg-zinc-900/30 border border-zinc-800 rounded-lg overflow-hidden",children:R.jsx("div",{className:"overflow-x-auto",children:R.jsxs("table",{className:"w-full text-sm text-left",children:[R.jsx("thead",{className:"text-xs text-zinc-400 uppercase bg-zinc-900/50 border-b border-zinc-800",children:R.jsxs("tr",{children:[R.jsx("th",{className:"px-6 py-3 font-medium",children:"Job ID"}),R.jsx("th",{className:"px-6 py-3 font-medium",children:"Machine Type"}),R.jsx("th",{className:"px-6 py-3 font-medium text-right",children:"Runtime (s)"}),R.jsx("th",{className:"px-6 py-3 font-medium text-right",children:"Energy (Wh)"}),R.jsx("th",{className:"px-6 py-3 font-medium text-right",children:"Emissions (gCO2e)"})]})}),R.jsx("tbody",{children:l.sort((y,_)=>_.total_emissions_g-y.total_emissions_g).slice(0,10).map(y=>R.jsxs("tr",{className:"border-b border-zinc-800/50 hover:bg-zinc-800/20 transition-colors cursor-pointer",onClick:()=>a(y),children:[R.jsx("td",{className:"px-6 py-3 font-mono text-zinc-300",children:y.gitlab_job_id}),R.jsx("td",{className:"px-6 py-3 text-zinc-400",children:R.jsx("span",{className:"px-2 py-0.5 rounded bg-zinc-800 text-xs border border-zinc-700",children:y.machine_type})}),R.jsx("td",{className:"px-6 py-3 text-right font-mono text-zinc-400",children:y.runtime_seconds?.toFixed(1)||"-"}),R.jsx("td",{className:"px-6 py-3 text-right font-mono text-zinc-400",children:(y.energy_kwh*1e3).toFixed(2)}),R.jsx("td",{className:"px-6 py-3 text-right font-mono text-blue-400 font-medium",children:y.total_emissions_g.toFixed(2)})]},y.gitlab_job_id))})]})})})]})]}),l&&l.length===0&&r&&!u&&R.jsx("div",{className:"text-center py-12 text-zinc-500",children:"No metrics found for this project. Have you run a pipeline with the measurement component?"})]})}export{Gz as MetricsDashboard};
|