@nexa-stack/framework 1.1.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -7
- package/bin/nexa.ts +25 -11
- package/docs/UI_RULES.md +19 -0
- package/package.json +4 -15
- package/packages/core/src/app.ts +1 -1
- package/public/admin-assets/nexa.umd.js +80 -0
- package/public/admin.html +6 -4
- package/public/app.html +19 -0
- package/public/index.html +22 -66
- package/public/assets/blog-CGOdzgkO.js +0 -1
- package/public/assets/blog-ML7LFtff.js +0 -1
- package/public/assets/components-B_D1ccvJ.js +0 -50
- package/public/assets/components-C67m2tNE.js +0 -1
- package/public/assets/components-DCNIrNdJ.js +0 -50
- package/public/assets/components-DZ9oc9zI.js +0 -1
- package/public/assets/contact-CAfovn36.js +0 -1
- package/public/assets/contact-bMUqmce3.js +0 -1
- package/public/assets/docs-B92Otuxs.js +0 -20
- package/public/assets/docs-BGOHuCe3.js +0 -20
- package/public/assets/docs-BUkg7Pd2.css +0 -1
- package/public/assets/echarts-mount-DdBiYEc1.js +0 -19
- package/public/assets/echarts-mount-kJrXh_za.js +0 -19
- package/public/assets/echarts-nexa-BsAEVjT0.js +0 -1
- package/public/assets/integration-BNpFB3SL.js +0 -1
- package/public/assets/integration-Br6tmvWh.js +0 -1
- package/public/assets/integration-D7vdPco_.js +0 -1
- package/public/assets/main-BBkehs0N.js +0 -1
- package/public/assets/main-Cx_-Fq0O.css +0 -1
- package/public/assets/main-ny0uOGg1.js +0 -1
- package/public/assets/src-B4_Kaae6.css +0 -1
- package/public/assets/src-BfdoaLcc.js +0 -1
- package/public/assets/src-D__MdyFu.js +0 -1
- package/public/cards/README.md +0 -17
- package/public/cards/bloom.jpg +0 -0
- package/public/compare.html +0 -66
- package/public/docs.html +0 -315
- package/public/favicon.svg +0 -11
- package/public/nexa-hero-sculpture-1280.png +0 -0
- package/public/nexa-hero-sculpture-640.png +0 -0
- package/public/nexa-hero-sculpture-960.png +0 -0
- package/public/nexa-hero-sculpture.png +0 -0
- package/public/nexa-hero-sculpture.webp +0 -0
- package/public/nexa-mark-24.png +0 -0
- package/public/nexa-mark-256.png +0 -0
- package/public/nexa-mark-32.png +0 -0
- package/public/nexa-mark-40.png +0 -0
- package/public/nexa-mark-48.png +0 -0
- package/public/nexa-mark-512.png +0 -0
- package/public/nexa-mark-64.png +0 -0
- package/public/nexa-mark-96.png +0 -0
- package/public/nexa-mark-apple.png +0 -0
- package/public/nexa-mark-product-256.png +0 -0
- package/public/nexa-mark-product.png +0 -0
- package/public/nexa-mark-source.png +0 -0
- package/public/nexa-mark-trim.png +0 -0
- package/public/nexa-mark.png +0 -0
- package/public/nexa-mark.webp +0 -0
- package/public/nexa-palette-vision.png +0 -0
- package/public/nexa-wordmark.png +0 -0
- package/public/nexa-wordmark.webp +0 -0
- package/public/og.png +0 -0
- package/public/site/about.html +0 -101
- package/public/site/blog.html +0 -87
- package/public/site/components.html +0 -251
- package/public/site/contact.html +0 -72
- package/public/site/docs/buttons.html +0 -157
- package/public/site/docs/cards.html +0 -159
- package/public/site/docs/colors.html +0 -216
- package/public/site/docs/commands.html +0 -170
- package/public/site/docs/data.html +0 -122
- package/public/site/docs/feedback.html +0 -111
- package/public/site/docs/forms.html +0 -117
- package/public/site/docs/icons.html +0 -125
- package/public/site/docs/index.html +0 -82
- package/public/site/docs/installation.html +0 -83
- package/public/site/docs/layout.html +0 -116
- package/public/site/docs/media.html +0 -96
- package/public/site/docs/navigation.html +0 -122
- package/public/site/docs/overlays.html +0 -95
- package/public/site/docs/pickers.html +0 -126
- package/public/site/docs/sections.html +0 -111
- package/public/site/docs/typography.html +0 -97
- package/public/site/docs/usage.html +0 -76
- package/public/site/features.html +0 -107
- package/public/site/index.html +0 -117
- package/public/site/integration.html +0 -43
- package/public/site/pricing.html +0 -87
- package/ui/cards/README.md +0 -17
- package/ui/cards/bloom.jpg +0 -0
- package/ui/echarts-mount-DWNKcqeo.js +0 -22945
- package/ui/echarts-nexa-BY8eW9ug.js +0 -456
- package/ui/favicon.svg +0 -11
- package/ui/nexa-hero-sculpture-1280.png +0 -0
- package/ui/nexa-hero-sculpture-640.png +0 -0
- package/ui/nexa-hero-sculpture-960.png +0 -0
- package/ui/nexa-hero-sculpture.png +0 -0
- package/ui/nexa-hero-sculpture.webp +0 -0
- package/ui/nexa-mark-24.png +0 -0
- package/ui/nexa-mark-256.png +0 -0
- package/ui/nexa-mark-32.png +0 -0
- package/ui/nexa-mark-40.png +0 -0
- package/ui/nexa-mark-48.png +0 -0
- package/ui/nexa-mark-512.png +0 -0
- package/ui/nexa-mark-64.png +0 -0
- package/ui/nexa-mark-96.png +0 -0
- package/ui/nexa-mark-apple.png +0 -0
- package/ui/nexa-mark-product-256.png +0 -0
- package/ui/nexa-mark-product.png +0 -0
- package/ui/nexa-mark-source.png +0 -0
- package/ui/nexa-mark-trim.png +0 -0
- package/ui/nexa-mark.png +0 -0
- package/ui/nexa-mark.webp +0 -0
- package/ui/nexa-palette-vision.png +0 -0
- package/ui/nexa-wordmark.png +0 -0
- package/ui/nexa-wordmark.webp +0 -0
- package/ui/nexa.js +0 -2971
- package/ui/nexa.umd.js +0 -80
- package/ui/og.png +0 -0
- package/ui/types/components/art.d.ts +0 -11
- package/ui/types/components/card-layouts.d.ts +0 -11
- package/ui/types/components/card.d.ts +0 -11
- package/ui/types/components/charts.d.ts +0 -7
- package/ui/types/components/extra.d.ts +0 -2
- package/ui/types/components/helpers.d.ts +0 -18
- package/ui/types/components/icons.d.ts +0 -24
- package/ui/types/components/index.d.ts +0 -2
- package/ui/types/components/pickers.d.ts +0 -8
- package/ui/types/components/structure.d.ts +0 -2
- package/ui/types/core/behaviors.d.ts +0 -2
- package/ui/types/core/brand-assets.d.ts +0 -44
- package/ui/types/core/colormap.d.ts +0 -49
- package/ui/types/core/echarts-mount.d.ts +0 -5
- package/ui/types/core/echarts-nexa.d.ts +0 -71
- package/ui/types/core/parser.d.ts +0 -11
- package/ui/types/core/registry.d.ts +0 -13
- package/ui/types/core/renderer.d.ts +0 -14
- package/ui/types/core/schema.d.ts +0 -8
- package/ui/types/core/toast.d.ts +0 -11
- package/ui/types/core/validate.d.ts +0 -1
- package/ui/types/index.d.ts +0 -50
- /package/{ui → public/admin-assets}/nexa.css +0 -0
package/ui/nexa.umd.js
DELETED
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
(function(e,t){typeof exports==`object`&&typeof module<`u`?t(exports):typeof define==`function`&&define.amd?define([`exports`],t):(e=typeof globalThis<`u`?globalThis:e||self,t(e.Nexa={}))})(this,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=Object.defineProperty,n=(e,t)=>()=>(e&&(t=e(e=0)),t),r=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},i=[`violet`,`azure`,`gold`,`emerald`,`coral`],a=[50,100,200,300,400,500,600,700,800,900],o={purple:`violet`,violet:`violet`,blue:`azure`,azure:`azure`,gold:`gold`,green:`emerald`,emerald:`emerald`,orange:`coral`,coral:`coral`},s={pink:`#ec4899`,rose:`#f43f5e`,violet:`#7c5cfc`,azure:`#3b82f6`,gold:`#b08d45`,emerald:`#10b981`,coral:`#f97316`},c=`nexa-saved-maps`;function l(e){return e.trim().toLowerCase().replace(/^map:/,``).replace(/\s+/g,`-`)}function u(){if(typeof localStorage>`u`)return{};try{let e=localStorage.getItem(c);return e?JSON.parse(e):{}}catch{return{}}}function d(e,t){let n=l(e);if(!n)throw Error(`Map name required`);let r=y(t);if(!r)throw Error(`Invalid hex for saved map`);let i=u();return i[n]=r,typeof localStorage<`u`&&localStorage.setItem(c,JSON.stringify(i)),r}function f(e){let t=l(e),n=u();return n[t]?(delete n[t],typeof localStorage<`u`&&localStorage.setItem(c,JSON.stringify(n)),!0):!1}function p(){return Object.keys(u()).sort()}function m(e){return y(e)||s[e.toLowerCase()]||u()[l(e)]||null}var h=a,g={50:97,100:93,200:87,300:78,400:68,500:null,600:50,700:42,800:34,900:26};function _(e){e.style.setProperty(`--nexa-primary`,`var(--nexa-brand-500)`),e.style.setProperty(`--nexa-primary-soft`,`var(--nexa-brand-100)`),e.style.setProperty(`--nexa-primary-muted`,`var(--nexa-brand-300)`),e.style.setProperty(`--nexa-primary-strong`,`var(--nexa-brand-700)`),e.style.setProperty(`--nexa-primary-glow`,`color-mix(in oklch, var(--nexa-brand-400) 42%, transparent)`),e.style.setProperty(`--nexa-accent`,`var(--nexa-brand-300)`),e.style.setProperty(`--nexa-accent-2`,`var(--nexa-brand-200)`)}function v(e){let t=e.find(e=>e.toLowerCase().startsWith(`map:`));if(t)return m(t.slice(4));if(!e.includes(`map`))return null;let n=e.find(e=>y(e));if(n)return n;for(let t of e){if(t===`map`)continue;let e=m(t);if(e)return e}return null}function y(e){let t=e.trim().replace(/^#/,``);return/^[0-9a-f]{3}$/i.test(t)?`#${t.split(``).map(e=>e+e).join(``)}`.toLowerCase():/^[0-9a-f]{6}$/i.test(t)?`#${t}`.toLowerCase():null}function b(e){let t=y(e);if(!t)return null;let n=Number.parseInt(t.slice(1),16);return{r:n>>16&255,g:n>>8&255,b:n&255}}function x(e,t,n){let r=e=>Math.max(0,Math.min(255,Math.round(e)));return`#${[r(e),r(t),r(n)].map(e=>e.toString(16).padStart(2,`0`)).join(``)}`}function S(e,t,n){e/=255,t/=255,n/=255;let r=Math.max(e,t,n),i=Math.min(e,t,n),a=0,o=0,s=(r+i)/2;if(r!==i){let c=r-i;switch(o=s>.5?c/(2-r-i):c/(r+i),r){case e:a=(t-n)/c+(t<n?6:0);break;case t:a=(n-e)/c+2;break;default:a=(e-t)/c+4}a/=6}return{h:a*360,s:o*100,l:s*100}}function C(e,t,n){t/=100,n/=100;let r=(1-Math.abs(2*n-1))*t,i=r*(1-Math.abs(e/60%2-1)),a=n-r/2,o=0,s=0,c=0;return e<60?[o,s,c]=[r,i,0]:e<120?[o,s,c]=[i,r,0]:e<180?[o,s,c]=[0,r,i]:e<240?[o,s,c]=[0,i,r]:e<300?[o,s,c]=[i,0,r]:[o,s,c]=[r,0,i],x((o+a)*255,(s+a)*255,(c+a)*255)}function w(e){let t=y(e);if(!t)throw Error(`Invalid hex color. Use #7c5cfc or 7c5cfc`);let{r:n,g:r,b:i}=b(t),{h:a,s:o}=S(n,r,i),s={};for(let e of h){if(e===500){s[500]=t;continue}let n=g[e],r=e<500?(500-e)*.04:(e-500)*.05;s[e]=C(a,Math.max(18,Math.min(100,o-r)),n)}return s}function T(e,t){for(let n of h)e.style.setProperty(`--nexa-brand-${n}`,t[n]);return _(e),e.dataset.nexaBrand=t[500],delete e.dataset.nexaMap,delete e.dataset.nexaHue,t}function E(e,t){return T(e,w(t))}function D(e,t=`:root`){return`${t} {\n${h.map(t=>` --nexa-brand-${t}: ${e[t]};`).join(`
|
|
2
|
-
`)}\n --nexa-primary: var(--nexa-brand-500);
|
|
3
|
-
--nexa-primary-soft: var(--nexa-brand-100);
|
|
4
|
-
--nexa-primary-muted: var(--nexa-brand-300);
|
|
5
|
-
--nexa-primary-strong: var(--nexa-brand-700);
|
|
6
|
-
--nexa-primary-glow: color-mix(in oklch, var(--nexa-brand-400) 42%, transparent);
|
|
7
|
-
--nexa-accent: var(--nexa-brand-300);
|
|
8
|
-
--nexa-accent-2: var(--nexa-brand-200);\n}`}function O(e,t){let n=o[t]??(i.includes(t)?t:null);if(!n)return!1;for(let t of h)e.style.setProperty(`--nexa-brand-${t}`,`var(--nexa-hue-${n}-${t})`);return _(e),e.dataset.nexaMap=n,delete e.dataset.nexaBrand,!0}function k(e,t,n=.22){let r=(t%360+360)%360,i={50:[.97,.03],100:[.93,.05],200:[.87,.09],300:[.78,.14],400:[.68,.18],500:[.58,n],600:[.5,n],700:[.42,Math.min(n,.2)],800:[.34,.12],900:[.26,.08]};for(let t of h){let[n,a]=i[t];e.style.setProperty(`--nexa-brand-${t}`,`oklch(${n} ${a} ${r})`)}return _(e),e.dataset.nexaHue=String(Math.round(r)),delete e.dataset.nexaMap,delete e.dataset.nexaBrand,!0}var A={btn:`button`,buttons:`button`,ico:`ico`,c:`card`,card:`card`,hdr:`header`,foot:`footer`,feat:`features`,price:`pricing`,quote:`testimonials`,testimonial:`testimonials`,banner:`cta`,post:`posts`,posts:`posts`,tbl:`table`,stats:`stat`,"btn-group":`button-group`,igroup:`input-group`,placeholder:`skeleton`,graphs:`chart`,drop:`dropdown`,menu:`dropdown`,dd:`dropdown`,date:`datepicker`,dp:`datepicker`,time:`timepicker`,tp:`timepicker`,stars:`rating`,steps:`stepper`,ac:`autocomplete`,combo:`autocomplete`,combobox:`autocomplete`,sheet:`sheet`,bottomsheet:`sheet`,bs:`sheet`,tl:`timeline`,xfer:`transfer`},j={s:[`shadow`],"s-soft":[`shadow`,`soft`],"s-strong":[`shadow`,`strong`],g:[`glass`],r:[`round`],p:[`pill`],sm:[`small`,`compact`],lg:[`large`,`tall`],prod:[`product`],kit:[`product`],plan:[`pricing`],user:[`profile`],stat:[`analytics`],vid:[`video`],evt:[`event`],css:[`css`],e:[`end`]},ee=new Set(`primary.secondary.outline.ghost.danger.small.medium.large.block.disabled.loading.elevated.plain.bordered.glass.horizontal.square.interactive.media.icon.metric.profile.cover.product.video.event.promo.pricing.analytics.quote.tasks.feature.text.email.password.number.date.file.search.tel.url.color.range.checkbox.radio.hidden.required.readonly.error.success.checked.cols-1.cols-2.cols-3.cols-4.cols-6.auto-fit.masonry.gap-none.gap-small.gap-medium.gap-large.landscape.simple.centered.split.mega.transparent.static.sticky.fixed.float.bar.dock.overlay.light.dark.image-left.image-right.minimal.fullscreen.cards-1.cards-2.cards-3.cards-4.popular.featured.bold.narrow.modern.luxury.minimal.blue.purple.gold.green.orange.black.violet.azure.emerald.coral.light.ivory.round.rounded.pill.shadow.soft.sharp.strong.sm.md.lg.xl.compact.tall.s.s-soft.s-strong.g.r.p.fill.filled.solid.thin.outline.light.fat.full.regular.saas.theme.page.map.auth.portfolio.dashboard.store.blog.checkout.essential.brand.vision.alert.modal.tabs.accordion.dropdown.spinner.progress.toast.compact.male.user.end.e.drop.menu.dd.breadcrumb.pagination.divider.avatar.warning.danger.info.open.carousel.offcanvas.popover.tooltip.list.ordered.fade.slide.zoom.bounce.float.glow.lift.tilt.flip.magnetic.shine.aurora.reveal.pulse.soft.static.prod.kit.plan.user.vid.evt.css.posts.checkout.table.collapse.stat.nav.button-group.list-group.navbar.input-group.close.switch.scrollspy.skeleton.figure.chart.bar.line.area.donut.pie.spark.sparkline.css.pro.vertical.flush.checked.float.lines-1.lines-2.lines-3.lines-4.lines-5.ratio-1x1.ratio-4x3.ratio-16x9.ratio-21x9.datepicker.timepicker.date.dp.time.tp.chip.chips.rating.stars.stepper.steps.fab.autocomplete.ac.combo.combobox.striped.hover.sheet.bottomsheet.bs.autoplay.auto.validate.tree.timeline.tl.transfer.xfer.pills.segmented.removable.x.extended.bottom-start.readonly.static`.split(`.`));function te(e){return A[e]??e}function ne(e){let t=[];for(let n of e){let e=j[n];e?t.push(...e):t.push(n)}return[...new Set(t)]}function M(e){let t=e.trim();if(!t)throw Error(`Nexa command is empty`);let n=t.match(/[^\s"'=]+=(?:"(?:\\.|[^"])*"|'(?:\\.|[^'])*')|"(?:\\.|[^"])*"|'(?:\\.|[^'])*'|\S+/g)??[],r=te((n[0]??``).toLowerCase()),i=[],a={},o=[],s=!1;for(let e of n.slice(1)){let t=e.match(/^([a-z][\w:-]*)=(.*)$/i);if(t){let e=t[2].replace(/^(?:"([\s\S]*)"|'([\s\S]*)')$/,`$1$2`).replace(/\\([\\"'])/g,`$1`);a[t[1].toLowerCase()]=e;continue}let n=e.toLowerCase(),r=y(e);if(s){i.push(r??n),s=!1;continue}if(n===`map`||e.startsWith(`map:`)){i.push(r??n),s=n===`map`;continue}if(!o.length&&(ee.has(n)||r)){i.push(r??n);continue}o.push(e.replace(/^(?:"([\s\S]*)"|'([\s\S]*)')$/,`$1$2`))}return{component:r,modifiers:ne(i),attributes:a,raw:t,label:o.length?o.join(` `):void 0}}function re(e){return e.split(/\r?\n/).map(e=>e.trim()).filter(e=>e&&!e.startsWith(`#`)).map(M)}var ie={header:{variants:[`simple`,`vision`,`float`,`bar`,`dock`,`mega`,`glass`,`transparent`,`overlay`],states:[`static`,`sticky`,`fixed`,`light`,`dark`,`s`,`g`,`shadow`,`soft`,`strong`,`sm`,`lg`,`compact`,`tall`]},hero:{variants:[`centered`,`split`,`image-left`,`image-right`,`minimal`,`vision`],sizes:[`small`,`medium`,`large`,`fullscreen`]},badge:{variants:[`primary`,`secondary`,`outline`,`ghost`,`danger`],states:[`soft`,`pill`,`dot`]},chips:{},input:{variants:[`text`,`email`,`password`,`number`,`search`,`tel`,`url`,`date`],states:[`required`,`disabled`,`readonly`,`error`,`success`,`float`]},grid:{layout:[`cols-1`,`cols-2`,`cols-3`,`cols-4`,`cols-6`,`auto-fit`,`masonry`],variants:[`square`,`landscape`],sizes:[`gap-none`,`gap-small`,`gap-medium`,`gap-large`]},stack:{sizes:[`gap-none`,`gap-small`,`gap-medium`,`gap-large`]},container:{variants:[`narrow`]},form:{states:[`validate`]},card:{variants:[`plain`,`bordered`,`elevated`,`glass`,`horizontal`,`square`,`interactive`,`media`,`icon`,`metric`,`profile`,`cover`,`product`,`video`,`event`,`promo`,`pricing`,`analytics`,`quote`,`tasks`,`feature`],states:[`soft`,`fade`,`slide`,`zoom`,`bounce`,`float`,`glow`,`lift`,`tilt`,`flip`,`magnetic`,`shine`,`aurora`,`reveal`,`pulse`,`static`]},field:{variants:[`text`,`email`,`password`,`number`,`date`,`file`,`search`,`tel`,`url`,`color`,`range`,`checkbox`,`radio`,`hidden`],states:[`required`,`disabled`,`readonly`,`error`,`success`,`float`,`checked`],sizes:[`small`,`medium`,`large`]},button:{variants:[`primary`,`secondary`,`outline`,`ghost`,`danger`,`blue`,`purple`,`gold`,`green`,`orange`,`black`,`glass`],sizes:[`small`,`medium`,`large`,`compact`,`sm`],states:[`block`,`disabled`,`loading`,`round`,`rounded`,`pill`,`sharp`,`shadow`,`soft`,`strong`,`s`,`g`]},footer:{variants:[`dark`,`mega`,`simple`],states:[`light`]},cta:{variants:[`bold`]},testimonials:{variants:[`featured`]},features:{variants:[`cards-1`,`cards-2`,`cards-3`,`cards-4`]},logos:{variants:[`dark`,`light`,`mono`],states:[`bordered`,`muted`]},alert:{variants:[`success`,`warning`,`danger`,`info`]},modal:{states:[`open`]},tabs:{variants:[`pills`,`segmented`]},accordion:{},dropdown:{variants:[`primary`,`ghost`],states:[`open`,`end`]},spinner:{sizes:[`small`,`large`,`sm`,`lg`]},progress:{},toast:{variants:[`success`,`warning`,`danger`,`info`]},breadcrumb:{},pagination:{},divider:{},avatar:{sizes:[`small`,`large`,`sm`,`lg`],variants:[`male`,`user`]},auth:{states:[`compact`]},carousel:{states:[`autoplay`,`auto`]},sheet:{states:[`open`]},offcanvas:{variants:[`left`,`right`],states:[`open`]},popover:{states:[`open`]},tooltip:{},list:{variants:[`ordered`]},posts:{variants:[`cards-1`,`cards-2`,`cards-3`,`cards-4`],states:[`compact`]},checkout:{states:[`compact`]},table:{variants:[`striped`,`hover`],states:[`compact`]},collapse:{},stat:{},nav:{},"button-group":{variants:[`primary`,`secondary`,`outline`,`ghost`,`danger`],states:[`vertical`]},"list-group":{states:[`flush`]},navbar:{variants:[`fixed`,`dark`,`light`]},"input-group":{variants:[`text`,`email`,`password`,`search`,`tel`,`url`,`number`]},close:{},switch:{states:[`checked`,`disabled`]},scrollspy:{},skeleton:{variants:[`card`,`avatar`],layout:[`lines-1`,`lines-2`,`lines-3`,`lines-4`,`lines-5`]},figure:{layout:[`ratio-1x1`,`ratio-4x3`,`ratio-16x9`,`ratio-21x9`]},chart:{variants:[`bar`,`line`,`area`,`donut`,`pie`,`spark`,`sparkline`,`css`,`pro`],states:[`static`]},ico:{sizes:[`sm`,`md`,`lg`,`xl`,`small`,`medium`,`large`,`compact`,`tall`],variants:[`regular`,`bold`,`thin`,`fill`,`filled`,`solid`,`outline`,`light`,`fat`,`full`]},select:{states:[`required`,`disabled`,`float`]},textarea:{states:[`required`,`disabled`,`float`]},datepicker:{states:[`required`,`disabled`]},timepicker:{states:[`required`,`disabled`]},chip:{variants:[`outline`],states:[`active`,`removable`,`x`]},rating:{states:[`readonly`,`static`]},stepper:{},fab:{variants:[`extended`],states:[`bottom-start`]},autocomplete:{states:[`required`,`disabled`]},tree:{},timeline:{states:[`compact`]},transfer:{}};function ae(e){return ie[e]}var oe=new Set(`modern.luxury.minimal.blue.purple.gold.green.orange.black.violet.azure.emerald.coral.light.ivory.brand.glass.shadow.soft.strong.round.rounded.pill.sharp.compact.tall.s.g.r.p.s-soft.s-strong.sm.lg.map.font-inter.font-geist.font-dm.font-system`.split(`.`));function se(e){return new Set([...e.variants??[],...e.sizes??[],...e.states??[],...e.layout??[]])}function ce(e,t){if(!t.length||e===`ico`)return null;let n=ae(e);if(!n){let n=t.filter(e=>!oe.has(e));return n.length?`Unknown modifiers for “${e}”: ${n.join(`, `)}`:null}let r=se(n),i=t.filter(e=>!r.has(e)&&!oe.has(e));return i.length?`Unknown modifiers for “${e}”: ${i.join(`, `)}. Allowed: ${[...r].slice(0,12).join(`, `)}${r.size>12?`…`:``}`:null}function le(e=document){e.querySelectorAll(`[data-nexa-tabs]`).forEach(e=>{let t=[...e.querySelectorAll(`[data-tab]`)],n=[...e.querySelectorAll(`[data-panel]`)];t.forEach((e,r)=>{e.onclick=()=>{t.forEach(e=>e.classList.remove(`is-active`)),n.forEach(e=>e.hidden=!0),e.classList.add(`is-active`),n[r]&&(n[r].hidden=!1)}}),t[0]?.click()}),e.querySelectorAll(`[data-nexa-accordion]`).forEach(e=>{e.querySelectorAll(`[data-acc-trigger]`).forEach(e=>{e.onclick=()=>{let t=e.closest(`[data-acc-item]`)?.classList.toggle(`is-open`);e.setAttribute(`aria-expanded`,t?`true`:`false`)}})}),e.querySelectorAll(`[data-nexa-dropdown]`).forEach(e=>{if(e.dataset.nexaDropWired===`1`)return;e.dataset.nexaDropWired=`1`;let t=e.querySelector(`[data-drop-toggle]`),n=e.querySelector(`[data-drop-menu]`);!t||!n||t.addEventListener(`click`,n=>{n.stopPropagation();let r=!e.classList.contains(`is-open`);document.querySelectorAll(`[data-nexa-dropdown].is-open`).forEach(t=>{t!==e&&(t.classList.remove(`is-open`),t.querySelector(`[data-drop-toggle]`)?.setAttribute(`aria-expanded`,`false`))}),e.classList.toggle(`is-open`,r),t.setAttribute(`aria-expanded`,r?`true`:`false`)})}),document.__nexaDropDoc||(document.__nexaDropDoc=!0,document.addEventListener(`click`,()=>{document.querySelectorAll(`[data-nexa-dropdown].is-open`).forEach(e=>{e.classList.remove(`is-open`),e.querySelector(`[data-drop-toggle]`)?.setAttribute(`aria-expanded`,`false`)})})),e.querySelectorAll(`[data-nexa-modal]`).forEach(e=>{e.querySelectorAll(`[data-modal-close]`).forEach(t=>{t.addEventListener(`click`,()=>e.classList.remove(`is-open`))})}),e.querySelectorAll(`[data-nexa-toast]`).forEach(e=>{e.querySelector(`[data-toast-close]`)?.addEventListener(`click`,()=>e.remove())}),e.querySelectorAll(`[data-modal-open]`).forEach(e=>{e.addEventListener(`click`,()=>{let t=e.getAttribute(`data-modal-open`);(t?document.getElementById(t):document.querySelector(`[data-nexa-modal]`))?.classList.add(`is-open`)})}),e.querySelectorAll(`[data-nexa-carousel]`).forEach(e=>{if(e.dataset.nexaCarouselWired===`1`)return;e.dataset.nexaCarouselWired=`1`;let t=e.closest(`.nexa-host.nexa-carousel`)??e,n=[...e.querySelectorAll(`[data-slide]`)],r=[...e.querySelectorAll(`[data-carousel-dot]`)],i=0,a=0,o=e=>{n.length&&(i=(e+n.length)%n.length,n.forEach((e,t)=>{e.hidden=t!==i}),r.forEach((e,t)=>e.classList.toggle(`is-active`,t===i)))},s=()=>{a&&=(window.clearInterval(a),0)},c=()=>{if(s(),!t.hasAttribute(`data-autoplay`)&&!e.closest(`[data-autoplay]`))return;let n=Number(t.getAttribute(`data-interval`)??t.getAttribute(`interval`)??`4000`)||4e3;a=window.setInterval(()=>o(i+1),n)};e.querySelector(`[data-carousel-prev]`)?.addEventListener(`click`,()=>{o(i-1),c()}),e.querySelector(`[data-carousel-next]`)?.addEventListener(`click`,()=>{o(i+1),c()}),r.forEach(e=>{e.addEventListener(`click`,()=>{o(Number(e.getAttribute(`data-carousel-dot`)||0)),c()})}),e.addEventListener(`mouseenter`,s),e.addEventListener(`mouseleave`,c),c()}),e.querySelectorAll(`[data-nexa-sheet]`).forEach(e=>{e.dataset.nexaSheetWired!==`1`&&(e.dataset.nexaSheetWired=`1`,e.querySelectorAll(`[data-sheet-close]`).forEach(t=>{t.addEventListener(`click`,()=>e.classList.remove(`is-open`))}))}),e.querySelectorAll(`[data-sheet-open]`).forEach(e=>{e.dataset.nexaSheetOpenWired!==`1`&&(e.dataset.nexaSheetOpenWired=`1`,e.addEventListener(`click`,()=>{let t=e.getAttribute(`data-sheet-open`);(t?document.getElementById(t):document.querySelector(`[data-nexa-sheet]`))?.classList.add(`is-open`)}))}),e.querySelectorAll(`[data-nexa-form="validate"]`).forEach(e=>{if(e.dataset.nexaFormWired===`1`)return;e.dataset.nexaFormWired=`1`;let t=e.tagName.toLowerCase()===`form`?e:null,n=t=>{t.preventDefault();let n=!0;e.querySelectorAll(`.nexa-field-wrap, .nexa-field-float`).forEach(e=>{let t=e.querySelector(`input,textarea,select`);if(!t||t.type===`hidden`||t.disabled)return;let r=t.required||t.hasAttribute(`required`),i=!String(t.value??``).trim(),a=r&&i;!a&&t.type===`email`&&t.value&&(a=!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(t.value)),e.classList.toggle(`is-error`,a),e.classList.toggle(`is-success`,!a&&!!t.value);let o=e.querySelector(`em`);if(a)if(n=!1,o)o.textContent=t.type===`email`&&t.value?`بريد غير صالح`:`هذا الحقل مطلوب`;else{let n=document.createElement(`em`);n.textContent=t.type===`email`&&t.value?`بريد غير صالح`:`هذا الحقل مطلوب`,e.appendChild(n)}else o&&(o.textContent===`هذا الحقل مطلوب`||o.textContent===`بريد غير صالح`)&&o.remove()}),n?(e.dispatchEvent(new CustomEvent(`nexa:valid`,{bubbles:!0})),e.classList.add(`is-valid`)):(e.classList.remove(`is-valid`),e.dispatchEvent(new CustomEvent(`nexa:invalid`,{bubbles:!0})))};t?t.addEventListener(`submit`,n):e.querySelector(`[type="submit"], [data-form-submit]`)?.addEventListener(`click`,n)}),e.querySelectorAll(`[data-nexa-offcanvas]`).forEach(e=>{e.querySelectorAll(`[data-offcanvas-close]`).forEach(t=>{t.addEventListener(`click`,()=>e.classList.remove(`is-open`))})}),e.querySelectorAll(`[data-offcanvas-open]`).forEach(e=>{e.addEventListener(`click`,()=>{let t=e.getAttribute(`data-offcanvas-open`);(t?document.getElementById(t):document.querySelector(`[data-nexa-offcanvas]`))?.classList.add(`is-open`)})}),e.querySelectorAll(`[data-nexa-popover]`).forEach(e=>{let t=e.querySelector(`[data-pop-trigger]`),n=e.querySelector(`[data-pop-card]`);!t||!n||(t.onclick=e=>{e.stopPropagation();let t=n.hidden;document.querySelectorAll(`[data-pop-card]`).forEach(e=>{e.hidden=!0}),n.hidden=!t})}),document.addEventListener(`click`,()=>{document.querySelectorAll(`[data-pop-card]`).forEach(e=>{e.hidden=!0})}),e.querySelectorAll(`[data-nexa-collapse]`).forEach(e=>{let t=e.querySelector(`[data-collapse-trigger]`),n=e.querySelector(`[data-collapse-panel]`);!t||!n||(t.onclick=()=>{let r=n.hidden;n.hidden=!r,t.setAttribute(`aria-expanded`,r?`true`:`false`),e.classList.toggle(`is-open`,r)})}),e.querySelectorAll(`.nexa-host.nexa-card[class*="nexa-anim-"]`).forEach(e=>{let t=e.classList.contains(`nexa-anim-reveal`),n=()=>{t||e.classList.add(`nexa-enter-done`)};e.addEventListener(`animationend`,r=>{r.target!==e||t||String(r.animationName).startsWith(`nexa-enter-`)&&n()}),e.addEventListener(`mouseenter`,()=>e.classList.add(`is-active`)),e.addEventListener(`mouseleave`,()=>e.classList.remove(`is-active`)),t||window.setTimeout(n,900)}),e.querySelectorAll(`[data-nexa-reveal]`).forEach(e=>{if(typeof IntersectionObserver>`u`){e.classList.add(`is-visible`);return}let t=new IntersectionObserver(e=>{e.forEach(e=>{e.isIntersecting&&(e.target.classList.add(`is-visible`),t.unobserve(e.target))})},{threshold:.08,rootMargin:`0px 0px -5% 0px`});t.observe(e)}),e.querySelectorAll(`[data-nexa-tilt]`).forEach(e=>{e.addEventListener(`mousemove`,t=>{let n=e.getBoundingClientRect(),r=(t.clientX-n.left)/n.width-.5,i=(t.clientY-n.top)/n.height-.5;e.style.setProperty(`--nexa-tilt-x`,`${r*14*2}deg`),e.style.setProperty(`--nexa-tilt-y`,`${-i*14*2}deg`),e.classList.add(`is-active`)}),e.addEventListener(`mouseleave`,()=>{e.style.setProperty(`--nexa-tilt-x`,`0deg`),e.style.setProperty(`--nexa-tilt-y`,`0deg`),e.classList.remove(`is-active`)})}),e.querySelectorAll(`[data-nexa-magnetic]`).forEach(e=>{e.addEventListener(`mousemove`,t=>{let n=e.getBoundingClientRect(),r=(t.clientX-n.left)/n.width-.5,i=(t.clientY-n.top)/n.height-.5;e.style.setProperty(`--nexa-mag-x`,`${r*16}px`),e.style.setProperty(`--nexa-mag-y`,`${i*16-6}px`),e.classList.add(`is-active`)}),e.addEventListener(`mouseleave`,()=>{e.style.setProperty(`--nexa-mag-x`,`0px`),e.style.setProperty(`--nexa-mag-y`,`0px`),e.classList.remove(`is-active`)})}),e.querySelectorAll(`[data-nexa-navbar]`).forEach(e=>{e.querySelector(`[data-nav-toggle]`)?.addEventListener(`click`,()=>e.classList.toggle(`is-open`))}),e.querySelectorAll(`[data-nexa-tasks]`).forEach(e=>{e.querySelectorAll(`input[type=checkbox]`).forEach(e=>{e.addEventListener(`change`,()=>{e.closest(`li`)?.classList.toggle(`is-done`,e.checked)})})}),e.querySelectorAll(`[data-nexa-header-scroll]`).forEach(e=>{if(e.dataset.nexaHeaderScrollWired)return;e.dataset.nexaHeaderScrollWired=`1`;let t=Number(e.getAttribute(`data-scroll-threshold`)??e.getAttribute(`data-overlay-threshold`)??`24`),n=()=>e.classList.toggle(`is-scrolled`,window.scrollY>t);n(),window.addEventListener(`scroll`,n,{passive:!0})}),e.querySelectorAll(`[data-nexa-scrollspy]`).forEach(e=>{let t=[...e.querySelectorAll(`[data-spy-link]`)],n=t.map(e=>document.querySelector(e.getAttribute(`href`)??``)).filter(Boolean);if(!n.length)return;if(typeof IntersectionObserver>`u`){t[0]?.classList.add(`is-active`);return}let r=new IntersectionObserver(e=>{e.forEach(e=>{if(!e.isIntersecting)return;let n=`#${e.target.id}`;t.forEach(e=>e.classList.toggle(`is-active`,e.getAttribute(`href`)===n))})},{rootMargin:`-45% 0px -50% 0px`,threshold:0});n.forEach(e=>r.observe(e))}),document.querySelectorAll(`[data-nexa-close]`).forEach(e=>{e.addEventListener(`click`,()=>{(e.closest(`.nexa-host`)??e.closest(`[role="alert"]`)??e.parentElement)?.remove()})}),me(e),he(e),ge(e),_e(e),pe(e),ue(e),de(e)}function ue(e){e.querySelectorAll(`[data-nexa-tree]`).forEach(e=>{e.dataset.nexaTreeWired!==`1`&&(e.dataset.nexaTreeWired=`1`,e.querySelectorAll(`[data-tree-toggle]`).forEach(e=>{e.addEventListener(`click`,()=>{let t=e.closest(`[data-tree-node]`),n=t?.querySelector(`:scope > [data-tree-children]`);if(!n)return;let r=e.getAttribute(`aria-expanded`)!==`true`;e.setAttribute(`aria-expanded`,r?`true`:`false`),n.hidden=!r,t?.classList.toggle(`is-collapsed`,!r)})}))})}function de(e){e.querySelectorAll(`[data-nexa-transfer]`).forEach(e=>{if(e.dataset.nexaTransferWired===`1`)return;e.dataset.nexaTransferWired=`1`;let t=e.querySelector(`[data-transfer-left]`),n=e.querySelector(`[data-transfer-right]`);if(!t||!n)return;let r=()=>[...e.querySelectorAll(`.nexa-transfer-opt.is-selected`)],i=e=>{e.querySelector(`[data-transfer-opt]`)?e.querySelector(`.nexa-transfer-empty`)?.remove():e.innerHTML=`<span class="nexa-transfer-empty">Empty</span>`},a=a=>{let o=r();if(!o.length)return;o.forEach(e=>{e.classList.remove(`is-selected`),e.dataset.side=a===n?`right`:`left`,a.appendChild(e)}),i(t),i(n);let s=[...n.querySelectorAll(`[data-transfer-opt]`)].map(e=>e.dataset.value??``);e.dispatchEvent(new CustomEvent(`nexa:change`,{detail:{value:s},bubbles:!0}))};e.addEventListener(`click`,e=>{let r=e.target,i=r?.closest(`[data-transfer-opt]`);if(i){i.classList.toggle(`is-selected`);return}r?.closest(`[data-transfer-to-right]`)&&a(n),r?.closest(`[data-transfer-to-left]`)&&a(t)})})}function fe(e){return String(e).padStart(2,`0`)}function pe(e){e.querySelectorAll(`[data-nexa-autocomplete]`).forEach(e=>{if(e.dataset.nexaAcWired===`1`)return;e.dataset.nexaAcWired=`1`;let t=e.querySelector(`[data-ac-input]`),n=e.querySelector(`[data-ac-value]`),r=e.querySelector(`[data-ac-menu]`),i=e.querySelector(`[data-ac-list]`),a=e.querySelector(`[data-ac-empty]`),o=e.querySelector(`[data-ac-clear]`);if(!t||!n||!r||!i||!a)return;let s=[...i.querySelectorAll(`[data-ac-opt]`)],c=-1,l=()=>{o&&(o.hidden=!t.value)},u=()=>{r.hidden=!0,e.classList.remove(`is-open`),t.setAttribute(`aria-expanded`,`false`),c=-1,s.forEach(e=>e.classList.remove(`is-active`))},d=()=>{document.querySelectorAll(`[data-nexa-autocomplete].is-open`).forEach(t=>{if(t===e)return;t.classList.remove(`is-open`);let n=t.querySelector(`[data-ac-menu]`);n&&(n.hidden=!0)}),r.hidden=!1,e.classList.add(`is-open`),t.setAttribute(`aria-expanded`,`true`)},f=()=>{let e=t.value.trim().toLowerCase(),n=0;s.forEach(t=>{let r=(t.dataset.value??t.textContent??``).toLowerCase(),i=!e||r.includes(e);t.hidden=!i,i&&(n+=1)}),a.hidden=n>0,i.hidden=n===0,n>0?d():(d(),c=-1),l()},p=r=>{let i=r.dataset.value??r.textContent??``;t.value=i,n.value=i,l(),u(),e.dispatchEvent(new CustomEvent(`nexa:change`,{detail:{value:i},bubbles:!0}))},m=e=>{let t=s.filter(e=>!e.hidden);t.length&&(d(),c=(c+e+t.length)%t.length,t.forEach((e,t)=>e.classList.toggle(`is-active`,t===c)),t[c]?.scrollIntoView({block:`nearest`}))};t.addEventListener(`focus`,()=>{f()}),t.addEventListener(`input`,()=>{n.value=``,f()}),t.addEventListener(`keydown`,e=>{if(e.key===`ArrowDown`)e.preventDefault(),m(1);else if(e.key===`ArrowUp`)e.preventDefault(),m(-1);else if(e.key===`Enter`){let t=s.filter(e=>!e.hidden);if(r.hidden||!t.length)return;e.preventDefault(),p(t[Math.max(0,c)]??t[0])}else e.key===`Escape`&&u()}),s.forEach(e=>{e.addEventListener(`mousedown`,t=>{t.preventDefault(),p(e)})}),o?.addEventListener(`click`,r=>{r.stopPropagation(),t.value=``,n.value=``,l(),t.focus(),f(),e.dispatchEvent(new CustomEvent(`nexa:change`,{detail:{value:``},bubbles:!0}))}),l()}),document.__nexaAcDoc||(document.__nexaAcDoc=!0,document.addEventListener(`click`,e=>{let t=e.target;document.querySelectorAll(`[data-nexa-autocomplete].is-open`).forEach(e=>{if(t&&e.contains(t))return;e.classList.remove(`is-open`);let n=e.querySelector(`[data-ac-menu]`);n&&(n.hidden=!0),e.querySelector(`[data-ac-input]`)?.setAttribute(`aria-expanded`,`false`)})}))}function me(e){let t=[`يناير`,`فبراير`,`مارس`,`أبريل`,`مايو`,`يونيو`,`يوليو`,`أغسطس`,`سبتمبر`,`أكتوبر`,`نوفمبر`,`ديسمبر`],n=(e,t,n)=>{let r=n.match(/^(\d{4})-(\d{2})-(\d{2})$/),i=r?Number(r[1]):0,a=r?Number(r[2]):0,o=r?Number(r[3]):0,s=new Date(e,t-1,1).getDay(),c=new Date(e,t,0).getDate(),l=new Date,u=``;for(let e=0;e<s;e++)u+=`<span class="nexa-cal-empty"></span>`;for(let n=1;n<=c;n++){let r=i===e&&a===t&&o===n,s=l.getFullYear()===e&&l.getMonth()+1===t&&l.getDate()===n;u+=`<button type="button" class="nexa-cal-day${r?` is-selected`:``}${s?` is-today`:``}" data-day="${n}">${n}</button>`}return u},r=e=>{let n=e.match(/^(\d{4})-(\d{2})-(\d{2})$/);return n?`${Number(n[3])} ${t[Number(n[2])-1]} ${n[1]}`:``};e.querySelectorAll(`[data-nexa-datepicker]`).forEach(e=>{if(e.dataset.nexaDpWired===`1`)return;e.dataset.nexaDpWired=`1`;let i=e.querySelector(`[data-dp-toggle]`),a=e.querySelector(`[data-dp-panel]`),o=e.querySelector(`[data-dp-grid]`),s=e.querySelector(`[data-dp-title]`),c=e.querySelector(`[data-dp-display]`),l=e.querySelector(`[data-dp-value]`);if(!i||!a||!o||!s||!c||!l)return;let u=()=>{a.hidden=!0,i.setAttribute(`aria-expanded`,`false`),e.classList.remove(`is-open`)},d=()=>{document.querySelectorAll(`[data-nexa-datepicker].is-open,[data-nexa-timepicker].is-open`).forEach(t=>{if(t===e)return;t.classList.remove(`is-open`);let n=t.querySelector(`[data-dp-panel],[data-tp-panel]`);n&&(n.hidden=!0),t.querySelector(`[data-dp-toggle],[data-tp-toggle]`)?.setAttribute(`aria-expanded`,`false`)}),a.hidden=!1,i.setAttribute(`aria-expanded`,`true`),e.classList.add(`is-open`)},f=()=>{let i=Number(o.dataset.year),a=Number(o.dataset.month);s.textContent=`${t[a-1]} ${i}`,o.innerHTML=n(i,a,l.value),o.querySelectorAll(`[data-day]`).forEach(t=>{t.onclick=n=>{n.stopPropagation();let o=Number(t.dataset.day);l.value=`${i}-${fe(a)}-${fe(o)}`,c.textContent=r(l.value),c.classList.add(`has-value`),u(),e.dispatchEvent(new CustomEvent(`nexa:change`,{detail:{value:l.value},bubbles:!0}))}})};i.addEventListener(`click`,e=>{e.stopPropagation(),a.hidden?(d(),f()):u()}),e.querySelector(`[data-dp-prev]`)?.addEventListener(`click`,e=>{e.stopPropagation();let t=Number(o.dataset.year),n=Number(o.dataset.month)-1;n<1&&(n=12,--t),o.dataset.year=String(t),o.dataset.month=String(n),f()}),e.querySelector(`[data-dp-next]`)?.addEventListener(`click`,e=>{e.stopPropagation();let t=Number(o.dataset.year),n=Number(o.dataset.month)+1;n>12&&(n=1,t+=1),o.dataset.year=String(t),o.dataset.month=String(n),f()}),e.querySelector(`[data-dp-today]`)?.addEventListener(`click`,t=>{t.stopPropagation();let n=new Date;l.value=`${n.getFullYear()}-${fe(n.getMonth()+1)}-${fe(n.getDate())}`,c.textContent=r(l.value),o.dataset.year=String(n.getFullYear()),o.dataset.month=String(n.getMonth()+1),f(),u(),e.dispatchEvent(new CustomEvent(`nexa:change`,{detail:{value:l.value},bubbles:!0}))});let p=c.textContent&&!l.value?c.textContent:`اختر تاريخاً`;e.querySelector(`[data-dp-clear]`)?.addEventListener(`click`,e=>{e.stopPropagation(),l.value=``,c.textContent=p,c.classList.remove(`has-value`),u()}),a.addEventListener(`click`,e=>e.stopPropagation())}),document.__nexaDpDoc||(document.__nexaDpDoc=!0,document.addEventListener(`click`,()=>{document.querySelectorAll(`[data-nexa-datepicker].is-open`).forEach(e=>{e.classList.remove(`is-open`);let t=e.querySelector(`[data-dp-panel]`);t&&(t.hidden=!0),e.querySelector(`[data-dp-toggle]`)?.setAttribute(`aria-expanded`,`false`)})}))}function he(e){e.querySelectorAll(`[data-nexa-timepicker]`).forEach(e=>{if(e.dataset.nexaTpWired===`1`)return;e.dataset.nexaTpWired=`1`;let t=e.querySelector(`[data-tp-toggle]`),n=e.querySelector(`[data-tp-panel]`),r=e.querySelector(`[data-tp-display]`),i=e.querySelector(`[data-tp-value]`);if(!t||!n||!r||!i)return;let a=12,o=0;(()=>{let e=i.value.match(/^(\d{1,2}):(\d{2})$/);e&&(a=Number(e[1]),o=Number(e[2]))})();let s=()=>{e.querySelectorAll(`[data-tp-h]`).forEach(e=>e.classList.toggle(`is-selected`,Number(e.getAttribute(`data-tp-h`))===a)),e.querySelectorAll(`[data-tp-m]`).forEach(e=>e.classList.toggle(`is-selected`,Number(e.getAttribute(`data-tp-m`))===o))},c=()=>{n.hidden=!0,t.setAttribute(`aria-expanded`,`false`),e.classList.remove(`is-open`)},l=()=>{document.querySelectorAll(`[data-nexa-datepicker].is-open,[data-nexa-timepicker].is-open`).forEach(t=>{if(t===e)return;t.classList.remove(`is-open`);let n=t.querySelector(`[data-dp-panel],[data-tp-panel]`);n&&(n.hidden=!0)}),n.hidden=!1,t.setAttribute(`aria-expanded`,`true`),e.classList.add(`is-open`),s()};t.addEventListener(`click`,e=>{e.stopPropagation(),n.hidden?l():c()}),e.querySelectorAll(`[data-tp-h]`).forEach(e=>{e.onclick=t=>{t.stopPropagation(),a=Number(e.dataset.tpH),s()}}),e.querySelectorAll(`[data-tp-m]`).forEach(e=>{e.onclick=t=>{t.stopPropagation(),o=Number(e.dataset.tpM),s()}}),e.querySelector(`[data-tp-apply]`)?.addEventListener(`click`,t=>{t.stopPropagation(),i.value=`${fe(a)}:${fe(o)}`,r.textContent=i.value,r.classList.add(`has-value`),c(),e.dispatchEvent(new CustomEvent(`nexa:change`,{detail:{value:i.value},bubbles:!0}))}),e.querySelector(`[data-tp-clear]`)?.addEventListener(`click`,e=>{e.stopPropagation(),i.value=``,r.textContent=`اختر وقتاً`,r.classList.remove(`has-value`),c()}),n.addEventListener(`click`,e=>e.stopPropagation())}),document.__nexaTpDoc||(document.__nexaTpDoc=!0,document.addEventListener(`click`,()=>{document.querySelectorAll(`[data-nexa-timepicker].is-open`).forEach(e=>{e.classList.remove(`is-open`);let t=e.querySelector(`[data-tp-panel]`);t&&(t.hidden=!0)})}))}function ge(e){e.querySelectorAll(`[data-nexa-rating]`).forEach(e=>{if(e.dataset.nexaRatingWired===`1`||e.classList.contains(`is-readonly`)||e.classList.contains(`nexa-readonly`))return;e.dataset.nexaRatingWired=`1`;let t=e.querySelector(`[data-rating-value]`),n=[...e.querySelectorAll(`[data-star]`)],r=e=>n.forEach(t=>t.classList.toggle(`is-on`,Number(t.dataset.star)<=e));n.forEach(n=>{n.onclick=()=>{let i=Number(n.dataset.star);t&&(t.value=String(i)),r(i),e.dispatchEvent(new CustomEvent(`nexa:change`,{detail:{value:i},bubbles:!0}))}})})}function _e(e){e.querySelectorAll(`[data-chip-remove]`).forEach(e=>{e.__wired||(e.__wired=!0,e.addEventListener(`click`,()=>{(e.closest(`.nexa-host.nexa-chip`)??e.closest(`.nexa-chip`))?.remove()}))})}function N(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Class extends value `+String(t)+` is not a constructor or null`);ve(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var ve,P=n((()=>{ve=function(e,t){return ve=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},ve(e,t)}}));function ye(e,t){var n=t.browser,r=e.match(/Firefox\/([\d.]+)/),i=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),a=e.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(e);if(r&&(n.firefox=!0,n.version=r[1]),i&&(n.ie=!0,n.version=i[1]),a&&(n.edge=!0,n.version=a[1],n.newEdge=+a[1].split(`.`)[0]>18),o&&(n.weChat=!0),t.svgSupported=typeof SVGRect<`u`,t.touchEventsSupported=`ontouchstart`in window&&!n.ie&&!n.edge,t.pointerEventsSupported=`onpointerdown`in window&&(n.edge||n.ie&&+n.version>=11),t.domSupported=typeof document<`u`){var s=document.documentElement.style;t.transform3dSupported=(n.ie&&`transition`in s||n.edge||`WebKitCSSMatrix`in window&&`m11`in new WebKitCSSMatrix||`MozPerspective`in s)&&!(`OTransition`in s),t.transformSupported=t.transform3dSupported||n.ie&&+n.version>=9}}var be,F,xe=n((()=>{be=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),F=new(function(){function e(){this.browser=new be,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<`u`}return e}()),typeof wx==`object`&&typeof wx.getSystemInfoSync==`function`?(F.wxa=!0,F.touchEventsSupported=!0):typeof document>`u`&&typeof self<`u`?F.worker=!0:!F.hasGlobalWindow||`Deno`in window||typeof navigator<`u`&&typeof navigator.userAgent==`string`&&navigator.userAgent.indexOf(`Node.js`)>-1?(F.node=!0,F.svgSupported=!0):ye(navigator.userAgent,F)}));function Se(e){var t={};if(typeof JSON>`u`)return t;for(var n=0;n<e.length;n++){var r=String.fromCharCode(n+32);t[r]=(e.charCodeAt(n)-Ee)/De}return t}function Ce(e){for(var t in Ae)Ae.hasOwnProperty(t)&&e[t]&&(Ae[t]=e[t])}var we,Te,Ee,De,Oe,ke,Ae,je=n((()=>{we=`sans-serif`,Te=`12px `+we,Ee=20,De=100,Oe=`007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N`,ke=Se(Oe),Ae={createCanvas:function(){return typeof document<`u`&&document.createElement(`canvas`)},measureText:(function(){var e,t;return function(n,r){if(!e){var i=Ae.createCanvas();e=i&&i.getContext(`2d`)}if(e)return t!==r&&(t=e.font=r||`12px sans-serif`),e.measureText(n);n||=``,r||=`12px sans-serif`;var a=/((?:\d+)?\.?\d*)px/.exec(r),o=a&&+a[1]||12,s=0;if(r.indexOf(`mono`)>=0)s=o*n.length;else for(var c=0;c<n.length;c++){var l=ke[n[c]];s+=l==null?o:l*o}return{width:s}}})(),loadImage:function(e,t,n){var r=new Image;return r.onload=t,r.onerror=n,r.src=e,r},getTime:function(){return Date.now?Date.now():+new Date}}})),Me=r({EPSILON:()=>Rt,HashMap:()=>It,RADIAN_TO_DEGREE:()=>Lt,assert:()=>W,assignProps:()=>Re,bind:()=>Mt,clone:()=>Fe,concatArray:()=>pt,createCanvas:()=>jt,createHashMap:()=>G,createObject:()=>mt,curry:()=>Ye,defaults:()=>ze,disableUserSelect:()=>ht,each:()=>L,eqNaN:()=>it,extend:()=>I,filter:()=>Ge,find:()=>Ke,guid:()=>Ne,hasOwn:()=>gt,indexOf:()=>Be,inherits:()=>Ve,isArray:()=>z,isArrayLike:()=>Ue,isBuiltInObject:()=>Qe,isDom:()=>et,isFunction:()=>B,isGradientObject:()=>tt,isImagePatternObject:()=>nt,isNumber:()=>Ze,isObject:()=>H,isPrimitive:()=>dt,isRegExp:()=>rt,isString:()=>V,isStringSafe:()=>Xe,isTypedArray:()=>$e,keys:()=>qe,logError:()=>Pe,map:()=>R,merge:()=>Ie,mergeAll:()=>Le,mixin:()=>He,noop:()=>_t,normalizeCssArray:()=>ct,reduce:()=>We,retrieve:()=>at,retrieve2:()=>U,retrieve3:()=>ot,setAsPrimitive:()=>ut,slice:()=>st,trim:()=>lt});function Ne(){return kt>=At&&(kt=0),kt++}function Pe(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];typeof console<`u`&&console.error.apply(console,e)}function Fe(e){if(typeof e!=`object`||!e)return e;var t=e,n=bt.call(e);if(n===`[object Array]`){if(!dt(e)){t=[];for(var r=0,i=e.length;r<i;r++)t[r]=Fe(e[r])}}else if(yt[n]){if(!dt(e)){var a=e.constructor;if(a.from)t=a.from(e);else{t=new a(e.length);for(var r=0,i=e.length;r<i;r++)t[r]=e[r]}}}else if(!vt[n]&&!dt(e)&&!et(e))for(var o in t={},e)e.hasOwnProperty(o)&&o!==Ot&&(t[o]=Fe(e[o]));return t}function Ie(e,t,n){if(!H(t)||!H(e))return n?Fe(t):e;for(var r in t)if(t.hasOwnProperty(r)&&r!==Ot){var i=e[r],a=t[r];H(a)&&H(i)&&!z(a)&&!z(i)&&!et(a)&&!et(i)&&!Qe(a)&&!Qe(i)&&!dt(a)&&!dt(i)?Ie(i,a,n):(n||!(r in e))&&(e[r]=Fe(t[r]))}return e}function Le(e,t){for(var n=e[0],r=1,i=e.length;r<i;r++)n=Ie(n,e[r],t);return n}function I(e,t){if(Object.assign)Object.assign(e,t);else for(var n in t)t.hasOwnProperty(n)&&n!==Ot&&(e[n]=t[n]);return e}function Re(e,t,n){e||={};for(var r=0;r<n.length;r++){var i=n[r];e[i]=t[i]}return e}function ze(e,t,n){for(var r=qe(t),i=0,a=r.length;i<a;i++){var o=r[i];(n?t[o]!=null:e[o]==null)&&(e[o]=t[o])}return e}function Be(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n}return-1}function Ve(e,t){var n=e.prototype;function r(){}for(var i in r.prototype=t.prototype,e.prototype=new r,n)n.hasOwnProperty(i)&&(e.prototype[i]=n[i]);e.prototype.constructor=e,e.superClass=t}function He(e,t,n){if(e=`prototype`in e?e.prototype:e,t=`prototype`in t?t.prototype:t,Object.getOwnPropertyNames)for(var r=Object.getOwnPropertyNames(t),i=0;i<r.length;i++){var a=r[i];a!==`constructor`&&(n?t[a]!=null:e[a]==null)&&(e[a]=t[a])}else ze(e,t,n)}function Ue(e){return!e||typeof e==`string`?!1:typeof e.length==`number`}function L(e,t,n){if(e&&t)if(e.forEach&&e.forEach===St)e.forEach(t,n);else if(e.length===+e.length)for(var r=0,i=e.length;r<i;r++)t.call(n,e[r],r,e);else for(var a in e)e.hasOwnProperty(a)&&t.call(n,e[a],a,e)}function R(e,t,n){if(!e)return[];if(!t)return st(e);if(e.map&&e.map===Tt)return e.map(t,n);for(var r=[],i=0,a=e.length;i<a;i++)r.push(t.call(n,e[i],i,e));return r}function We(e,t,n,r){if(e&&t){for(var i=0,a=e.length;i<a;i++)n=t.call(r,n,e[i],i,e);return n}}function Ge(e,t,n){if(!e)return[];if(!t)return st(e);if(e.filter&&e.filter===Ct)return e.filter(t,n);for(var r=[],i=0,a=e.length;i<a;i++)t.call(n,e[i],i,e)&&r.push(e[i]);return r}function Ke(e,t,n){if(e&&t){for(var r=0,i=e.length;r<i;r++)if(t.call(n,e[r],r,e))return e[r]}}function qe(e){if(!e)return[];if(Object.keys)return Object.keys(e);var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);return t}function Je(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return function(){return e.apply(t,n.concat(wt.call(arguments)))}}function Ye(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return function(){return e.apply(this,t.concat(wt.call(arguments)))}}function z(e){return Array.isArray?Array.isArray(e):bt.call(e)===`[object Array]`}function B(e){return typeof e==`function`}function V(e){return typeof e==`string`}function Xe(e){return bt.call(e)===`[object String]`}function Ze(e){return typeof e==`number`}function H(e){var t=typeof e;return t===`function`||!!e&&t===`object`}function Qe(e){return!!vt[bt.call(e)]}function $e(e){return!!yt[bt.call(e)]}function et(e){return typeof e==`object`&&typeof e.nodeType==`number`&&typeof e.ownerDocument==`object`}function tt(e){return e.colorStops!=null}function nt(e){return e.image!=null}function rt(e){return bt.call(e)===`[object RegExp]`}function it(e){return e!==e}function at(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0,r=e.length;n<r;n++)if(e[n]!=null)return e[n]}function U(e,t){return e??t}function ot(e,t,n){return e??t??n}function st(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return wt.apply(e,t)}function ct(e){if(typeof e==`number`)return[e,e,e,e];var t=e.length;return t===2?[e[0],e[1],e[0],e[1]]:t===3?[e[0],e[1],e[2],e[1]]:e}function W(e,t){if(!e)throw Error(t)}function lt(e){return e==null?null:typeof e.trim==`function`?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,``)}function ut(e){e[Nt]=!0}function dt(e){return e[Nt]}function ft(){return Ft?new Map:new Pt}function G(e){return new It(e)}function pt(e,t){for(var n=new e.constructor(e.length+t.length),r=0;r<e.length;r++)n[r]=e[r];for(var i=e.length,r=0;r<t.length;r++)n[r+i]=t[r];return n}function mt(e,t){var n;if(Object.create)n=Object.create(e);else{var r=function(){};r.prototype=e,n=new r}return t&&I(n,t),n}function ht(e){var t=e.style;t.webkitUserSelect=`none`,t.userSelect=`none`,t.webkitTapHighlightColor=`rgba(0,0,0,0)`,t[`-webkit-touch-callout`]=`none`}function gt(e,t){return e.hasOwnProperty(t)}function _t(){}var vt,yt,bt,xt,St,Ct,wt,Tt,Et,Dt,Ot,kt,At,jt,Mt,Nt,Pt,Ft,It,Lt,Rt,K=n((()=>{je(),vt=We([`Function`,`RegExp`,`Date`,`Error`,`CanvasGradient`,`CanvasPattern`,`Image`,`Canvas`],function(e,t){return e[`[object `+t+`]`]=!0,e},{}),yt=We([`Int8`,`Uint8`,`Uint8Clamped`,`Int16`,`Uint16`,`Int32`,`Uint32`,`Float32`,`Float64`],function(e,t){return e[`[object `+t+`Array]`]=!0,e},{}),bt=Object.prototype.toString,xt=Array.prototype,St=xt.forEach,Ct=xt.filter,wt=xt.slice,Tt=xt.map,Et=function(){}.constructor,Dt=Et?Et.prototype:null,Ot=`__proto__`,kt=2311,At=2**53-1,jt=Ae.createCanvas,Mt=Dt&&B(Dt.bind)?Dt.call.bind(Dt.bind):Je,Nt=`__ec_primitive__`,Pt=function(){function e(){this.data={}}return e.prototype.delete=function(e){var t=this.has(e);return t&&delete this.data[e],t},e.prototype.has=function(e){return this.data.hasOwnProperty(e)},e.prototype.get=function(e){return this.data[e]},e.prototype.set=function(e,t){return this.data[e]=t,this},e.prototype.keys=function(){return qe(this.data)},e.prototype.forEach=function(e){var t=this.data;for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)},e}(),Ft=typeof Map==`function`,It=function(){function e(t){var n=z(t);this.data=ft();var r=this;t instanceof e?t.each(i):t&&L(t,i);function i(e,t){n?r.set(e,t):r.set(t,e)}}return e.prototype.hasKey=function(e){return this.data.has(e)},e.prototype.get=function(e){return this.data.get(e)},e.prototype.set=function(e,t){return this.data.set(e,t),t},e.prototype.each=function(e,t){this.data.forEach(function(n,r){e.call(t,n,r)})},e.prototype.keys=function(){var e=this.data.keys();return Ft?Array.from(e):e},e.prototype.removeKey=function(e){this.data.delete(e)},e}(),Lt=180/Math.PI,Rt=2**-52||2**-52})),zt=r({add:()=>Wt,applyTransform:()=>an,clone:()=>Ht,copy:()=>Vt,create:()=>Bt,dist:()=>un,distSquare:()=>dn,distance:()=>en,distanceSquare:()=>tn,div:()=>Xt,dot:()=>Zt,len:()=>qt,lenSquare:()=>Jt,length:()=>cn,lengthSquare:()=>ln,lerp:()=>rn,max:()=>sn,min:()=>on,mul:()=>Yt,negate:()=>nn,normalize:()=>$t,scale:()=>Qt,scaleAndAdd:()=>Gt,set:()=>Ut,sub:()=>Kt});function Bt(e,t){return e??=0,t??=0,[e,t]}function Vt(e,t){return e[0]=t[0],e[1]=t[1],e}function Ht(e){return[e[0],e[1]]}function Ut(e,t,n){return e[0]=t,e[1]=n,e}function Wt(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e}function Gt(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e}function Kt(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e}function qt(e){return Math.sqrt(Jt(e))}function Jt(e){return e[0]*e[0]+e[1]*e[1]}function Yt(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e}function Xt(e,t,n){return e[0]=t[0]/n[0],e[1]=t[1]/n[1],e}function Zt(e,t){return e[0]*t[0]+e[1]*t[1]}function Qt(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e}function $t(e,t){var n=qt(t);return n===0?(e[0]=0,e[1]=0):(e[0]=t[0]/n,e[1]=t[1]/n),e}function en(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}function tn(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}function nn(e,t){return e[0]=-t[0],e[1]=-t[1],e}function rn(e,t,n,r){return e[0]=t[0]+r*(n[0]-t[0]),e[1]=t[1]+r*(n[1]-t[1]),e}function an(e,t,n){var r=t[0],i=t[1];return e[0]=n[0]*r+n[2]*i+n[4],e[1]=n[1]*r+n[3]*i+n[5],e}function on(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e}function sn(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e}var cn,ln,un,dn,fn=n((()=>{cn=qt,ln=Jt,un=en,dn=tn})),pn,mn,hn=n((()=>{pn=function(){function e(e,t){this.target=e,this.topTarget=t&&t.topTarget}return e}(),mn=function(){function e(e){this.handler=e,e.on(`mousedown`,this._dragStart,this),e.on(`mousemove`,this._drag,this),e.on(`mouseup`,this._dragEnd,this)}return e.prototype._dragStart=function(e){for(var t=e.target;t&&!t.draggable;)t=t.parent||t.__hostTarget;t&&(this._draggingTarget=t,t.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new pn(t,e),`dragstart`,e.event))},e.prototype._drag=function(e){var t=this._draggingTarget;if(t){var n=e.offsetX,r=e.offsetY,i=n-this._x,a=r-this._y;this._x=n,this._y=r,t.drift(i,a,e),this.handler.dispatchToElement(new pn(t,e),`drag`,e.event);var o=this.handler.findHover(n,r,t).target,s=this._dropTarget;this._dropTarget=o,t!==o&&(s&&o!==s&&this.handler.dispatchToElement(new pn(s,e),`dragleave`,e.event),o&&o!==s&&this.handler.dispatchToElement(new pn(o,e),`dragenter`,e.event))}},e.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new pn(t,e),`dragend`,e.event),this._dropTarget&&this.handler.dispatchToElement(new pn(this._dropTarget,e),`drop`,e.event),this._draggingTarget=null,this._dropTarget=null},e}()})),gn,_n=n((()=>{gn=function(){function e(e){e&&(this._$eventProcessor=e)}return e.prototype.on=function(e,t,n,r){this._$handlers||={};var i=this._$handlers;if(typeof t==`function`&&(r=n,n=t,t=null),!n||!e)return this;var a=this._$eventProcessor;t!=null&&a&&a.normalizeQuery&&(t=a.normalizeQuery(t)),i[e]||(i[e]=[]);for(var o=0;o<i[e].length;o++)if(i[e][o].h===n)return this;var s={h:n,query:t,ctx:r||this,callAtLast:n.zrEventfulCallAtLast},c=i[e].length-1,l=i[e][c];return l&&l.callAtLast?i[e].splice(c,0,s):i[e].push(s),this},e.prototype.isSilent=function(e){var t=this._$handlers;return!t||!t[e]||!t[e].length},e.prototype.off=function(e,t){var n=this._$handlers;if(!n)return this;if(!e)return this._$handlers={},this;if(t){if(n[e]){for(var r=[],i=0,a=n[e].length;i<a;i++)n[e][i].h!==t&&r.push(n[e][i]);n[e]=r}n[e]&&n[e].length===0&&delete n[e]}else delete n[e];return this},e.prototype.trigger=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!this._$handlers)return this;var r=this._$handlers[e],i=this._$eventProcessor;if(r)for(var a=t.length,o=r.length,s=0;s<o;s++){var c=r[s];if(!(i&&i.filter&&c.query!=null&&!i.filter(e,c.query)))switch(a){case 0:c.h.call(c.ctx);break;case 1:c.h.call(c.ctx,t[0]);break;case 2:c.h.call(c.ctx,t[0],t[1]);break;default:c.h.apply(c.ctx,t);break}}return i&&i.afterTrigger&&i.afterTrigger(e),this},e.prototype.triggerWithContext=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!this._$handlers)return this;var r=this._$handlers[e],i=this._$eventProcessor;if(r)for(var a=t.length,o=t[a-1],s=r.length,c=0;c<s;c++){var l=r[c];if(!(i&&i.filter&&l.query!=null&&!i.filter(e,l.query)))switch(a){case 0:l.h.call(o);break;case 1:l.h.call(o,t[0]);break;case 2:l.h.call(o,t[0],t[1]);break;default:l.h.apply(o,t.slice(1,a-1));break}}return i&&i.afterTrigger&&i.afterTrigger(e),this},e}()}));function vn(e,t,n,r,i,a){var o=r+`-`+i,s=e.length;if(a.hasOwnProperty(o))return a[o];if(t===1){var c=Math.round(Math.log((1<<s)-1&~i)/bn);return e[n][c]}for(var l=r|1<<n,u=n+1;r&1<<u;)u++;for(var d=0,f=0,p=0;f<s;f++){var m=1<<f;m&i||(d+=(p%2?-1:1)*e[n][f]*vn(e,t-1,u,l,i|m,a),p++)}return a[o]=d,d}function yn(e,t){var n=[[e[0],e[1],1,0,0,0,-t[0]*e[0],-t[0]*e[1]],[0,0,0,e[0],e[1],1,-t[1]*e[0],-t[1]*e[1]],[e[2],e[3],1,0,0,0,-t[2]*e[2],-t[2]*e[3]],[0,0,0,e[2],e[3],1,-t[3]*e[2],-t[3]*e[3]],[e[4],e[5],1,0,0,0,-t[4]*e[4],-t[4]*e[5]],[0,0,0,e[4],e[5],1,-t[5]*e[4],-t[5]*e[5]],[e[6],e[7],1,0,0,0,-t[6]*e[6],-t[6]*e[7]],[0,0,0,e[6],e[7],1,-t[7]*e[6],-t[7]*e[7]]],r={},i=vn(n,8,0,0,0,r);if(i!==0){for(var a=[],o=0;o<8;o++)for(var s=0;s<8;s++)a[s]??(a[s]=0),a[s]+=((o+s)%2?-1:1)*vn(n,7,+(o===0),1<<o,1<<s,r)/i*t[o];return function(e,t,n){var r=t*a[6]+n*a[7]+1;e[0]=(t*a[0]+n*a[1]+a[2])/r,e[1]=(t*a[3]+n*a[4]+a[5])/r}}}var bn,xn=n((()=>{bn=Math.log(2)}));function Sn(e,t,n,r,i){return wn(An,t,r,i,!0)&&wn(e,n,An[0],An[1])}function Cn(e,t){e&&n(e),t&&n(t);function n(e){var t=e[kn];t&&(t.clearMarkers&&t.clearMarkers(),delete e[kn])}}function wn(e,t,n,r,i){if(t.getBoundingClientRect&&F.domSupported&&!Dn(t)){var a=t[kn]||(t[kn]={}),o=En(Tn(t,a),a,i);if(o)return o(e,n,r),!0}return!1}function Tn(e,t){var n=t.markers;if(n)return n;n=t.markers=[];for(var r=[`left`,`right`],i=[`top`,`bottom`],a=0;a<4;a++){var o=document.createElement(`div`),s=o.style,c=a%2,l=(a>>1)%2;s.cssText=[`position: absolute`,`visibility: hidden`,`padding: 0`,`margin: 0`,`border-width: 0`,`user-select: none`,`width:0`,`height:0`,r[c]+`:0`,i[l]+`:0`,r[1-c]+`:auto`,i[1-l]+`:auto`,``].join(`!important;`),e.appendChild(o),n.push(o)}return t.clearMarkers=function(){L(n,function(e){e.parentNode&&e.parentNode.removeChild(e)})},n}function En(e,t,n){for(var r=n?`invTrans`:`trans`,i=t[r],a=t.srcCoords,o=[],s=[],c=!0,l=0;l<4;l++){var u=e[l].getBoundingClientRect(),d=2*l,f=u.left,p=u.top;o.push(f,p),c=c&&a&&f===a[d]&&p===a[d+1],s.push(e[l].offsetLeft,e[l].offsetTop)}return c&&i?i:(t.srcCoords=o,t[r]=n?yn(s,o):yn(o,s))}function Dn(e){return e.nodeName.toUpperCase()===`CANVAS`}function On(e){return e==null?``:(e+``).replace(jn,function(e,t){return Mn[t]})}var kn,An,jn,Mn,Nn=n((()=>{xe(),xn(),K(),kn=`___zrEVENTSAVED`,An=[],jn=/([&<>"'])/g,Mn={"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`}}));function Pn(e,t,n,r){return n||={},r?Fn(e,t,n):Un&&t.layerX!=null&&t.layerX!==t.offsetX?(n.zrX=t.layerX,n.zrY=t.layerY):t.offsetX==null?Fn(e,t,n):(n.zrX=t.offsetX,n.zrY=t.offsetY),n}function Fn(e,t,n){if(F.domSupported&&e.getBoundingClientRect){var r=t.clientX,i=t.clientY;if(Dn(e)){var a=e.getBoundingClientRect();n.zrX=r-a.left,n.zrY=i-a.top;return}else if(wn(Hn,e,r,i)){n.zrX=Hn[0],n.zrY=Hn[1];return}}n.zrX=n.zrY=0}function In(e){return e||window.event}function Ln(e,t,n){if(t=In(t),t.zrX!=null)return t;var r=t.type;if(r&&r.indexOf(`touch`)>=0){var i=r===`touchend`?t.changedTouches[0]:t.targetTouches[0];i&&Pn(e,i,t,n)}else{Pn(e,t,t,n);var a=Rn(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var o=t.button;return t.which==null&&o!==void 0&&Vn.test(t.type)&&(t.which=o&1?1:o&2?3:o&4?2:0),t}function Rn(e){var t=e.wheelDelta;if(t)return t;var n=e.deltaX,r=e.deltaY;if(n==null||r==null)return t;var i=Math.abs(r===0?n:r),a=r>0?-1:r<0?1:n>0?-1:1;return 3*i*a}function zn(e,t,n,r){e.addEventListener(t,n,r)}function Bn(e,t,n,r){e.removeEventListener(t,n,r)}var Vn,Hn,Un,Wn,Gn=n((()=>{xe(),Nn(),Vn=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Hn=[],Un=F.browser.firefox&&+F.browser.version.split(`.`)[0]<39,Wn=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0}}));function Kn(e){var t=e[1][0]-e[0][0],n=e[1][1]-e[0][1];return Math.sqrt(t*t+n*n)}function qn(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}var Jn,Yn,Xn=n((()=>{Gn(),Jn=function(){function e(){this._track=[]}return e.prototype.recognize=function(e,t,n){return this._doTrack(e,t,n),this._recognize(e)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(e,t,n){var r=e.touches;if(r){for(var i={points:[],touches:[],target:t,event:e},a=0,o=r.length;a<o;a++){var s=r[a],c=Pn(n,s,{});i.points.push([c.zrX,c.zrY]),i.touches.push(s)}this._track.push(i)}},e.prototype._recognize=function(e){for(var t in Yn)if(Yn.hasOwnProperty(t)){var n=Yn[t](this._track,e);if(n)return n}},e}(),Yn={pinch:function(e,t){var n=e.length;if(n){var r=(e[n-1]||{}).points,i=(e[n-2]||{}).points||r;if(i&&i.length>1&&r&&r.length>1){var a=Kn(r)/Kn(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=qn(r);return t.pinchX=o[0],t.pinchY=o[1],{type:`pinch`,target:e[0].target,event:t}}}}}})),Zn=r({clone:()=>or,copy:()=>er,create:()=>Qn,identity:()=>$n,invert:()=>ar,mul:()=>tr,rotate:()=>rr,scale:()=>ir,translate:()=>nr});function Qn(){return[1,0,0,1,0,0]}function $n(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function er(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function tr(e,t,n){var r=t[0]*n[0]+t[2]*n[1],i=t[1]*n[0]+t[3]*n[1],a=t[0]*n[2]+t[2]*n[3],o=t[1]*n[2]+t[3]*n[3],s=t[0]*n[4]+t[2]*n[5]+t[4],c=t[1]*n[4]+t[3]*n[5]+t[5];return e[0]=r,e[1]=i,e[2]=a,e[3]=o,e[4]=s,e[5]=c,e}function nr(e,t,n){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+n[0],e[5]=t[5]+n[1],e}function rr(e,t,n,r){r===void 0&&(r=[0,0]);var i=t[0],a=t[2],o=t[4],s=t[1],c=t[3],l=t[5],u=Math.sin(n),d=Math.cos(n);return e[0]=i*d+s*u,e[1]=-i*u+s*d,e[2]=a*d+c*u,e[3]=-a*u+d*c,e[4]=d*(o-r[0])+u*(l-r[1])+r[0],e[5]=d*(l-r[1])-u*(o-r[0])+r[1],e}function ir(e,t,n){var r=n[0],i=n[1];return e[0]=t[0]*r,e[1]=t[1]*i,e[2]=t[2]*r,e[3]=t[3]*i,e[4]=t[4]*r,e[5]=t[5]*i,e}function ar(e,t){var n=t[0],r=t[2],i=t[4],a=t[1],o=t[3],s=t[5],c=n*o-a*r;return c?(c=1/c,e[0]=o*c,e[1]=-a*c,e[2]=-r*c,e[3]=n*c,e[4]=(r*s-o*i)*c,e[5]=(a*i-n*s)*c,e):null}function or(e){var t=Qn();return er(t,e),t}var sr=n((()=>{})),q,cr=n((()=>{q=function(){function e(e,t){this.x=e||0,this.y=t||0}return e.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(e,t){return this.x=e,this.y=t,this},e.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},e.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},e.prototype.scale=function(e){this.x*=e,this.y*=e},e.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},e.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},e.prototype.dot=function(e){return this.x*e.x+this.y*e.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},e.prototype.distance=function(e){var t=this.x-e.x,n=this.y-e.y;return Math.sqrt(t*t+n*n)},e.prototype.distanceSquare=function(e){var t=this.x-e.x,n=this.y-e.y;return t*t+n*n},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(e){if(e){var t=this.x,n=this.y;return this.x=e[0]*t+e[2]*n+e[4],this.y=e[1]*t+e[3]*n+e[5],this}},e.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},e.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},e.set=function(e,t,n){e.x=t,e.y=n},e.copy=function(e,t){e.x=t.x,e.y=t.y},e.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},e.lenSquare=function(e){return e.x*e.x+e.y*e.y},e.dot=function(e,t){return e.x*t.x+e.y*t.y},e.add=function(e,t,n){e.x=t.x+n.x,e.y=t.y+n.y},e.sub=function(e,t,n){e.x=t.x-n.x,e.y=t.y-n.y},e.scale=function(e,t,n){e.x=t.x*n,e.y=t.y*n},e.scaleAndAdd=function(e,t,n,r){e.x=t.x+n.x*r,e.y=t.y+n.y*r},e.lerp=function(e,t,n,r){var i=1-r;e.x=i*t.x+r*n.x,e.y=i*t.y+r*n.y},e}()}));function lr(e,t,n,r,i,a,o,s){var c=pr(t-n),l=pr(r-e),u=dr(c,l),d=mr[i],f=mr[1-i],p=hr[i];t<n||r<e?c<l?(a&&(Sr[d]=-c),s&&(o[d]=t,o[p]=0)):(a&&(Sr[d]=l),s&&(o[d]=e,o[p]=0)):(o&&(o[d]=fr(e,n),o[p]=dr(t,r)-o[d]),a&&(u<Cr[0]||br.useDir)&&(Cr[0]=dr(u,Cr[0]),(c<l||!br.bidirectional)&&(xr[d]=c,xr[f]=0,br.useDir&&br.calcDirMTV()),(c>=l||!br.bidirectional)&&(xr[d]=-l,xr[f]=0,br.useDir&&br.calcDirMTV())))}function ur(){var e=0,t=new q,n=new q,r={minTv:new q,maxTv:new q,useDir:!1,dirMinTv:new q,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(i,a){r.touchThreshold=0,i&&i.touchThreshold!=null&&(r.touchThreshold=fr(0,i.touchThreshold)),r.negativeSize=!1,a&&(r.minTv.set(1/0,1/0),r.maxTv.set(0,0),r.useDir=!1,i&&i.direction!=null&&(r.useDir=!0,r.dirMinTv.copy(r.minTv),n.copy(r.minTv),e=i.direction,r.bidirectional=i.bidirectional==null||!!i.bidirectional,r.bidirectional||t.set(Math.cos(e),Math.sin(e))))},calcDirMTV:function(){var a=r.minTv,o=r.dirMinTv,s=a.y*a.y+a.x*a.x,c=Math.sin(e),l=Math.cos(e),u=c*a.y+l*a.x;if(i(u)){i(a.x)&&i(a.y)&&o.set(0,0);return}if(n.x=s*l/u,n.y=s*c/u,i(n.x)&&i(n.y)){o.set(0,0);return}(r.bidirectional||t.dot(n)>0)&&n.len()<o.len()&&o.copy(n)}};function i(e){return pr(e)<1e-10}return r}var dr,fr,pr,mr,hr,gr,_r,vr,yr,br,xr,Sr,Cr,J,wr,Tr,Er,Dr,Or,kr,Ar=n((()=>{sr(),fn(),cr(),dr=Math.min,fr=Math.max,pr=Math.abs,mr=[`x`,`y`],hr=[`width`,`height`],gr=new q,_r=new q,vr=new q,yr=new q,br=ur(),xr=br.minTv,Sr=br.maxTv,Cr=[0,0],J=function(){function e(e,t,n,r){wr(this,e,t,n,r)}return e.set=function(e,t,n,r,i){return r<0&&(t+=r,r=-r),i<0&&(n+=i,i=-i),e.x=t,e.y=n,e.width=r,e.height=i,e},e.prototype.union=function(e){var t=dr(e.x,this.x),n=dr(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=fr(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=fr(e.y+e.height,this.y+this.height)-n:this.height=e.height,this.x=t,this.y=n},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(e){return Er(Qn(),this,e)},e.prototype.intersect=function(t,n,r){return e.intersect(this,t,n,r)},e.intersect=function(t,n,r,i){r&&q.set(r,0,0);var a=i&&i.outIntersectRect||null,o=i&&i.clamp;if(a&&(a.x=a.y=a.width=a.height=NaN),!t||!n)return!1;t instanceof e||(t=wr(Dr,t.x,t.y,t.width,t.height)),n instanceof e||(n=wr(Or,n.x,n.y,n.width,n.height));var s=!!r;br.reset(i,s);var c=br.touchThreshold,l=t.x+c,u=t.x+t.width-c,d=t.y+c,f=t.y+t.height-c,p=n.x+c,m=n.x+n.width-c,h=n.y+c,g=n.y+n.height-c;if(l>u||d>f||p>m||h>g)return!1;var _=!(u<p||m<l||f<h||g<d);return(s||a)&&(Cr[0]=1/0,Cr[1]=0,lr(l,u,p,m,0,s,a,o),lr(d,f,h,g,1,s,a,o),s&&q.copy(r,_?br.useDir?br.dirMinTv:xr:Sr)),_},e.contain=function(e,t,n){return t>=e.x&&t<=e.x+e.width&&n>=e.y&&n<=e.y+e.height},e.prototype.contain=function(t,n){return e.contain(this,t,n)},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(e){Tr(this,e)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return this.width===0||this.height===0},e.create=function(t){return new e(t?t.x:0,t?t.y:0,t?t.width:0,t?t.height:0)},e.copy=function(e,t){return e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height,e},e.applyTransform=function(e,t,n){if(!n){e!==t&&Tr(e,t);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var r=n[0],i=n[3],a=n[4],o=n[5];e.x=t.x*r+a,e.y=t.y*i+o,e.width=t.width*r,e.height=t.height*i,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}gr.x=vr.x=t.x,gr.y=yr.y=t.y,_r.x=yr.x=t.x+t.width,_r.y=vr.y=t.y+t.height,gr.transform(n),yr.transform(n),_r.transform(n),vr.transform(n),e.x=dr(gr.x,_r.x,vr.x,yr.x),e.y=dr(gr.y,_r.y,vr.y,yr.y);var s=fr(gr.x,_r.x,vr.x,yr.x),c=fr(gr.y,_r.y,vr.y,yr.y);e.width=s-e.x,e.height=c-e.y},e.calculateTransform=function(e,t,n){var r=n.width/t.width,i=n.height/t.height;return e=$n(e||[]),nr(e,e,Ut(kr,-t.x,-t.y)),ir(e,e,Ut(kr,r,i)),nr(e,e,Ut(kr,n.x,n.y)),e},e}(),J.create,wr=J.set,Tr=J.copy,Er=J.calculateTransform,J.applyTransform,J.contain,Dr=new J(0,0,0,0),Or=new J(0,0,0,0),kr=[]}));function jr(e,t,n){return{type:e,event:n,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:Mr}}function Mr(){Wn(this.event)}function Nr(e,t,n){if(e[e.rectHover?`rectContain`:`contain`](t,n)){for(var r=e,i=void 0,a=!1;r;){if(r.ignoreClip&&(a=!0),!a){var o=r.getClipPath();if(o&&!o.contain(t,n))return!1}r.silent&&(i=!0);var s=r.__hostTarget;r=s?r.ignoreHostSilent?null:s:r.parent}return i?Ir:!0}return!1}function Pr(e,t,n,r,i){for(var a=e.length-1;a>=0;a--){var o=e[a],s=void 0;if(o!==i&&!o.ignore&&(s=Nr(o,n,r))&&(!t.topTarget&&(t.topTarget=o),s!==Ir)){t.target=o;break}}}function Fr(e,t,n){var r=e.painter;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}var Ir,Lr,Rr,zr,Br,Vr,Hr=n((()=>{P(),K(),fn(),hn(),_n(),Gn(),Xn(),Ar(),Ir=`silent`,Lr=function(e){N(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.handler=null,t}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(gn),Rr=function(){function e(e,t){this.x=e,this.y=t}return e}(),zr=[`click`,`dblclick`,`mousewheel`,`mouseout`,`mouseup`,`mousedown`,`mousemove`,`contextmenu`],Br=new J(0,0,0,0),Vr=function(e){N(t,e);function t(t,n,r,i,a){var o=e.call(this)||this;return o._hovered=new Rr(0,0),o.storage=t,o.painter=n,o.painterRoot=i,o._pointerSize=a,r||=new Lr,o.proxy=null,o.setHandlerProxy(r),o._draggingMgr=new mn(o),o}return t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(L(zr,function(t){e.on&&e.on(t,this[t],this)},this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var t=e.zrX,n=e.zrY,r=Fr(this,t,n),i=this._hovered,a=i.target;a&&!a.__zr&&(i=this.findHover(i.x,i.y),a=i.target);var o=this._hovered=r?new Rr(t,n):this.findHover(t,n),s=o.target,c=this.proxy;c.setCursor&&c.setCursor(s?s.cursor:`default`),a&&s!==a&&this.dispatchToElement(i,`mouseout`,e),this.dispatchToElement(o,`mousemove`,e),s&&s!==a&&this.dispatchToElement(o,`mouseover`,e)},t.prototype.mouseout=function(e){var t=e.zrEventControl;t!==`only_globalout`&&this.dispatchToElement(this._hovered,`mouseout`,e),t!==`no_globalout`&&this.trigger(`globalout`,{type:`globalout`,event:e})},t.prototype.resize=function(){this._hovered=new Rr(0,0)},t.prototype.dispatch=function(e,t){var n=this[e];n&&n.call(this,t)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var t=this.proxy;t.setCursor&&t.setCursor(e)},t.prototype.dispatchToElement=function(e,t,n){e||={};var r=e.target;if(!(r&&r.silent)){for(var i=`on`+t,a=jr(t,e,n);r&&(r[i]&&(a.cancelBubble=!!r[i].call(r,a)),r.trigger(t,a),r=r.__hostTarget?r.__hostTarget:r.parent,!a.cancelBubble););a.cancelBubble||(this.trigger(t,a),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(e){typeof e[i]==`function`&&e[i].call(e,a),e.trigger&&e.trigger(t,a)}))}},t.prototype.findHover=function(e,t,n){var r=this.storage.getDisplayList(),i=new Rr(e,t);if(Pr(r,i,e,t,n),this._pointerSize&&!i.target){for(var a=[],o=this._pointerSize,s=o/2,c=new J(e-s,t-s,o,o),l=r.length-1;l>=0;l--){var u=r[l];u!==n&&!u.ignore&&!u.ignoreCoarsePointer&&(!u.parent||!u.parent.ignoreCoarsePointer)&&(Br.copy(u.getBoundingRect()),u.transform&&Br.applyTransform(u.transform),Br.intersect(c)&&a.push(u))}if(a.length){for(var d=4,f=Math.PI/12,p=Math.PI*2,m=0;m<s;m+=d)for(var h=0;h<p;h+=f)if(Pr(a,i,e+m*Math.cos(h),t+m*Math.sin(h),n),i.target)return i}}return i},t.prototype.processGesture=function(e,t){this._gestureMgr||=new Jn;var n=this._gestureMgr;t===`start`&&n.clear();var r=n.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom);if(t===`end`&&n.clear(),r){var i=r.type;e.gestureEvent=i;var a=new Rr;a.target=r.target,this.dispatchToElement(a,i,r.event)}},t}(gn),L([`click`,`mousedown`,`mouseup`,`mousewheel`,`dblclick`,`contextmenu`],function(e){Vr.prototype[e]=function(t){var n=t.zrX,r=t.zrY,i=Fr(this,n,r),a,o;if((e!==`mouseup`||!i)&&(a=this.findHover(n,r),o=a.target),e===`mousedown`)this._downEl=o,this._downPoint=[t.zrX,t.zrY],this._upEl=o;else if(e===`mouseup`)this._upEl=o;else if(e===`click`){if(this._downEl!==this._upEl||!this._downPoint||un(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,e,t)}})}));function Ur(e){for(var t=0;e>=Zr;)t|=e&1,e>>=1;return e+t}function Wr(e,t,n,r){var i=t+1;if(i===n)return 1;if(r(e[i++],e[t])<0){for(;i<n&&r(e[i],e[i-1])<0;)i++;Gr(e,t,i)}else for(;i<n&&r(e[i],e[i-1])>=0;)i++;return i-t}function Gr(e,t,n){for(n--;t<n;){var r=e[t];e[t++]=e[n],e[n--]=r}}function Kr(e,t,n,r,i){for(r===t&&r++;r<n;r++){for(var a=e[r],o=t,s=r,c;o<s;)c=o+s>>>1,i(a,e[c])<0?s=c:o=c+1;var l=r-o;switch(l){case 3:e[o+3]=e[o+2];case 2:e[o+2]=e[o+1];case 1:e[o+1]=e[o];break;default:for(;l>0;)e[o+l]=e[o+l-1],l--}e[o]=a}}function qr(e,t,n,r,i,a){var o=0,s=0,c=1;if(a(e,t[n+i])>0){for(s=r-i;c<s&&a(e,t[n+i+c])>0;)o=c,c=(c<<1)+1,c<=0&&(c=s);c>s&&(c=s),o+=i,c+=i}else{for(s=i+1;c<s&&a(e,t[n+i-c])<=0;)o=c,c=(c<<1)+1,c<=0&&(c=s);c>s&&(c=s);var l=o;o=i-c,c=i-l}for(o++;o<c;){var u=o+(c-o>>>1);a(e,t[n+u])>0?o=u+1:c=u}return c}function Jr(e,t,n,r,i,a){var o=0,s=0,c=1;if(a(e,t[n+i])<0){for(s=i+1;c<s&&a(e,t[n+i-c])<0;)o=c,c=(c<<1)+1,c<=0&&(c=s);c>s&&(c=s);var l=o;o=i-c,c=i-l}else{for(s=r-i;c<s&&a(e,t[n+i+c])>=0;)o=c,c=(c<<1)+1,c<=0&&(c=s);c>s&&(c=s),o+=i,c+=i}for(o++;o<c;){var u=o+(c-o>>>1);a(e,t[n+u])<0?c=u:o=u+1}return c}function Yr(e,t){var n=Qr,r,i,a=0,o=[];r=[],i=[];function s(e,t){r[a]=e,i[a]=t,a+=1}function c(){for(;a>1;){var e=a-2;if(e>=1&&i[e-1]<=i[e]+i[e+1]||e>=2&&i[e-2]<=i[e]+i[e-1])i[e-1]<i[e+1]&&e--;else if(i[e]>i[e+1])break;u(e)}}function l(){for(;a>1;){var e=a-2;e>0&&i[e-1]<i[e+1]&&e--,u(e)}}function u(n){var o=r[n],s=i[n],c=r[n+1],l=i[n+1];i[n]=s+l,n===a-3&&(r[n+1]=r[n+2],i[n+1]=i[n+2]),a--;var u=Jr(e[c],e,o,s,0,t);o+=u,s-=u,s!==0&&(l=qr(e[o+s-1],e,c,l,l-1,t),l!==0&&(s<=l?d(o,s,c,l):f(o,s,c,l)))}function d(r,i,a,s){var c=0;for(c=0;c<i;c++)o[c]=e[r+c];var l=0,u=a,d=r;if(e[d++]=e[u++],--s===0){for(c=0;c<i;c++)e[d+c]=o[l+c];return}if(i===1){for(c=0;c<s;c++)e[d+c]=e[u+c];e[d+s]=o[l];return}for(var f=n,p,m,h;;){p=0,m=0,h=!1;do if(t(e[u],o[l])<0){if(e[d++]=e[u++],m++,p=0,--s===0){h=!0;break}}else if(e[d++]=o[l++],p++,m=0,--i===1){h=!0;break}while((p|m)<f);if(h)break;do{if(p=Jr(e[u],o,l,i,0,t),p!==0){for(c=0;c<p;c++)e[d+c]=o[l+c];if(d+=p,l+=p,i-=p,i<=1){h=!0;break}}if(e[d++]=e[u++],--s===0){h=!0;break}if(m=qr(o[l],e,u,s,0,t),m!==0){for(c=0;c<m;c++)e[d+c]=e[u+c];if(d+=m,u+=m,s-=m,s===0){h=!0;break}}if(e[d++]=o[l++],--i===1){h=!0;break}f--}while(p>=Qr||m>=Qr);if(h)break;f<0&&(f=0),f+=2}if(n=f,n<1&&(n=1),i===1){for(c=0;c<s;c++)e[d+c]=e[u+c];e[d+s]=o[l]}else if(i===0)throw Error();else for(c=0;c<i;c++)e[d+c]=o[l+c]}function f(r,i,a,s){var c=0;for(c=0;c<s;c++)o[c]=e[a+c];var l=r+i-1,u=s-1,d=a+s-1,f=0,p=0;if(e[d--]=e[l--],--i===0){for(f=d-(s-1),c=0;c<s;c++)e[f+c]=o[c];return}if(s===1){for(d-=i,l-=i,p=d+1,f=l+1,c=i-1;c>=0;c--)e[p+c]=e[f+c];e[d]=o[u];return}for(var m=n;;){var h=0,g=0,_=!1;do if(t(o[u],e[l])<0){if(e[d--]=e[l--],h++,g=0,--i===0){_=!0;break}}else if(e[d--]=o[u--],g++,h=0,--s===1){_=!0;break}while((h|g)<m);if(_)break;do{if(h=i-Jr(o[u],e,r,i,i-1,t),h!==0){for(d-=h,l-=h,i-=h,p=d+1,f=l+1,c=h-1;c>=0;c--)e[p+c]=e[f+c];if(i===0){_=!0;break}}if(e[d--]=o[u--],--s===1){_=!0;break}if(g=s-qr(e[l],o,0,s,s-1,t),g!==0){for(d-=g,u-=g,s-=g,p=d+1,f=u+1,c=0;c<g;c++)e[p+c]=o[f+c];if(s<=1){_=!0;break}}if(e[d--]=e[l--],--i===0){_=!0;break}m--}while(h>=Qr||g>=Qr);if(_)break;m<0&&(m=0),m+=2}if(n=m,n<1&&(n=1),s===1){for(d-=i,l-=i,p=d+1,f=l+1,c=i-1;c>=0;c--)e[p+c]=e[f+c];e[d]=o[u]}else if(s===0)throw Error();else for(f=d-(s-1),c=0;c<s;c++)e[f+c]=o[c]}return{mergeRuns:c,forceMergeRuns:l,pushRun:s}}function Xr(e,t,n,r){n||=0,r||=e.length;var i=r-n;if(!(i<2)){var a=0;if(i<Zr){a=Wr(e,n,r,t),Kr(e,n,r,n+a,t);return}var o=Yr(e,t),s=Ur(i);do{if(a=Wr(e,n,r,t),a<s){var c=i;c>s&&(c=s),Kr(e,n,n+c,n+a,t),a=c}o.pushRun(n,a),o.mergeRuns(),i-=a,n+=a}while(i!==0);o.forceMergeRuns()}}var Zr,Qr,$r=n((()=>{Zr=32,Qr=7})),ei=n((()=>{}));function ti(){ri||(ri=!0,console.warn(`z / z2 / zlevel of displayable is invalid, which may cause unexpected errors`))}function ni(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var ri,ii,ai=n((()=>{K(),$r(),ei(),ri=!1,ii=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=ni}return e.prototype.traverse=function(e,t){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(e,t)},e.prototype.getDisplayList=function(e,t){t||=!1;var n=this._displayList;return(e||!n.length)&&this.updateDisplayList(t),n},e.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var t=this._roots,n=this._displayList,r=0,i=t.length;r<i;r++)this._updateAndAddDisplayable(t[r],null,e);n.length=this._displayListLen,Xr(n,ni)},e.prototype._updateAndAddDisplayable=function(e,t,n){if(!(e.ignore&&!n)){e.beforeUpdate(),e.update(),e.afterUpdate();var r=e.getClipPath(),i=t&&t.length,a=0,o=e.__clipPaths;if(!e.ignoreClip&&(i||r)){if(o||=e.__clipPaths=[],i)for(var s=0;s<t.length;s++)o[a++]=t[s];for(var c=r,l=e;c;)c.parent=l,c.updateTransform(),o[a++]=c,l=c,c=c.getClipPath()}if(o&&(o.length=a),e.childrenRef){for(var u=e.childrenRef(),d=0;d<u.length;d++){var f=u[d];e.__dirty&&(f.__dirty|=1),this._updateAndAddDisplayable(f,o,n)}e.__dirty=0}else{var p=e;isNaN(p.z)&&(ti(),p.z=0),isNaN(p.z2)&&(ti(),p.z2=0),isNaN(p.zlevel)&&(ti(),p.zlevel=0),this._displayList[this._displayListLen++]=p}var m=e.getDecalElement&&e.getDecalElement();m&&this._updateAndAddDisplayable(m,o,n);var h=e.getTextGuideLine();h&&this._updateAndAddDisplayable(h,o,n);var g=e.getTextContent();g&&this._updateAndAddDisplayable(g,o,n)}},e.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},e.prototype.delRoot=function(e){if(e instanceof Array){for(var t=0,n=e.length;t<n;t++)this.delRoot(e[t]);return}var r=Be(this._roots,e);r>=0&&this._roots.splice(r,1)},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e}()})),oi,si=n((()=>{xe(),oi=F.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)}})),ci,li=n((()=>{ci={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return .5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return e===0?0:1024**(e-1)},exponentialOut:function(e){return e===1?1:1-2**(-10*e)},exponentialInOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*1024**(e-1):.5*(-(2**(-10*(e-1)))+2)},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),-(n*2**(10*--e)*Math.sin((e-t)*(2*Math.PI)/r)))},elasticOut:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),n*2**(-10*e)*Math.sin((e-t)*(2*Math.PI)/r)+1)},elasticInOut:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),(e*=2)<1?-.5*(n*2**(10*--e)*Math.sin((e-t)*(2*Math.PI)/r)):n*2**(-10*--e)*Math.sin((e-t)*(2*Math.PI)/r)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=1.70158*1.525;return(e*=2)<1?.5*(e*e*((t+1)*e-t)):.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-ci.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?ci.bounceIn(e*2)*.5:ci.bounceOut(e*2-1)*.5+.5}}}));function ui(e){return e>-Oi&&e<Oi}function di(e){return e>Oi||e<-Oi}function fi(e,t,n,r,i){var a=1-i;return a*a*(a*e+3*i*t)+i*i*(i*r+3*a*n)}function pi(e,t,n,r,i){var a=1-i;return 3*(((t-e)*a+2*(n-t)*i)*a+(r-n)*i*i)}function mi(e,t,n,r,i,a){var o=r+3*(t-n)-e,s=3*(n-t*2+e),c=3*(t-e),l=e-i,u=s*s-3*o*c,d=s*c-9*o*l,f=c*c-3*s*l,p=0;if(ui(u)&&ui(d))if(ui(s))a[0]=0;else{var m=-c/s;m>=0&&m<=1&&(a[p++]=m)}else{var h=d*d-4*u*f;if(ui(h)){var g=d/u,m=-s/o+g,_=-g/2;m>=0&&m<=1&&(a[p++]=m),_>=0&&_<=1&&(a[p++]=_)}else if(h>0){var v=Di(h),y=u*s+1.5*o*(-d+v),b=u*s+1.5*o*(-d-v);y=y<0?-Ei(-y,ji):Ei(y,ji),b=b<0?-Ei(-b,ji):Ei(b,ji);var m=(-s-(y+b))/(3*o);m>=0&&m<=1&&(a[p++]=m)}else{var x=(2*u*s-3*o*d)/(2*Di(u*u*u)),S=Math.acos(x)/3,C=Di(u),w=Math.cos(S),m=(-s-2*C*w)/(3*o),_=(-s+C*(w+Ai*Math.sin(S)))/(3*o),T=(-s+C*(w-Ai*Math.sin(S)))/(3*o);m>=0&&m<=1&&(a[p++]=m),_>=0&&_<=1&&(a[p++]=_),T>=0&&T<=1&&(a[p++]=T)}}return p}function hi(e,t,n,r,i){var a=6*n-12*t+6*e,o=9*t+3*r-3*e-9*n,s=3*t-3*e,c=0;if(ui(o)){if(di(a)){var l=-s/a;l>=0&&l<=1&&(i[c++]=l)}}else{var u=a*a-4*o*s;if(ui(u))i[0]=-a/(2*o);else if(u>0){var d=Di(u),l=(-a+d)/(2*o),f=(-a-d)/(2*o);l>=0&&l<=1&&(i[c++]=l),f>=0&&f<=1&&(i[c++]=f)}}return c}function gi(e,t,n,r,i,a){var o=(t-e)*i+e,s=(n-t)*i+t,c=(r-n)*i+n,l=(s-o)*i+o,u=(c-s)*i+s,d=(u-l)*i+l;a[0]=e,a[1]=o,a[2]=l,a[3]=d,a[4]=d,a[5]=u,a[6]=c,a[7]=r}function _i(e,t,n,r,i,a,o,s,c,l,u){var d,f=.005,p=1/0,m,h,g,_;Mi[0]=c,Mi[1]=l;for(var v=0;v<1;v+=.05)Ni[0]=fi(e,n,i,o,v),Ni[1]=fi(t,r,a,s,v),g=dn(Mi,Ni),g<p&&(d=v,p=g);p=1/0;for(var y=0;y<32&&!(f<ki);y++)m=d-f,h=d+f,Ni[0]=fi(e,n,i,o,m),Ni[1]=fi(t,r,a,s,m),g=dn(Ni,Mi),m>=0&&g<p?(d=m,p=g):(Pi[0]=fi(e,n,i,o,h),Pi[1]=fi(t,r,a,s,h),_=dn(Pi,Mi),h<=1&&_<p?(d=h,p=_):f*=.5);return u&&(u[0]=fi(e,n,i,o,d),u[1]=fi(t,r,a,s,d)),Di(p)}function vi(e,t,n,r,i,a,o,s,c){for(var l=e,u=t,d=0,f=1/c,p=1;p<=c;p++){var m=p*f,h=fi(e,n,i,o,m),g=fi(t,r,a,s,m),_=h-l,v=g-u;d+=Math.sqrt(_*_+v*v),l=h,u=g}return d}function yi(e,t,n,r){var i=1-r;return i*(i*e+2*r*t)+r*r*n}function bi(e,t,n,r){return 2*((1-r)*(t-e)+r*(n-t))}function xi(e,t,n,r,i){var a=e-2*t+n,o=2*(t-e),s=e-r,c=0;if(ui(a)){if(di(o)){var l=-s/o;l>=0&&l<=1&&(i[c++]=l)}}else{var u=o*o-4*a*s;if(ui(u)){var l=-o/(2*a);l>=0&&l<=1&&(i[c++]=l)}else if(u>0){var d=Di(u),l=(-o+d)/(2*a),f=(-o-d)/(2*a);l>=0&&l<=1&&(i[c++]=l),f>=0&&f<=1&&(i[c++]=f)}}return c}function Si(e,t,n){var r=e+n-2*t;return r===0?.5:(e-t)/r}function Ci(e,t,n,r,i){var a=(t-e)*r+e,o=(n-t)*r+t,s=(o-a)*r+a;i[0]=e,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=n}function wi(e,t,n,r,i,a,o,s,c){var l,u=.005,d=1/0;Mi[0]=o,Mi[1]=s;for(var f=0;f<1;f+=.05){Ni[0]=yi(e,n,i,f),Ni[1]=yi(t,r,a,f);var p=dn(Mi,Ni);p<d&&(l=f,d=p)}d=1/0;for(var m=0;m<32&&!(u<ki);m++){var h=l-u,g=l+u;Ni[0]=yi(e,n,i,h),Ni[1]=yi(t,r,a,h);var p=dn(Ni,Mi);if(h>=0&&p<d)l=h,d=p;else{Pi[0]=yi(e,n,i,g),Pi[1]=yi(t,r,a,g);var _=dn(Pi,Mi);g<=1&&_<d?(l=g,d=_):u*=.5}}return c&&(c[0]=yi(e,n,i,l),c[1]=yi(t,r,a,l)),Di(d)}function Ti(e,t,n,r,i,a,o){for(var s=e,c=t,l=0,u=1/o,d=1;d<=o;d++){var f=d*u,p=yi(e,n,i,f),m=yi(t,r,a,f),h=p-s,g=m-c;l+=Math.sqrt(h*h+g*g),s=p,c=m}return l}var Ei,Di,Oi,ki,Ai,ji,Mi,Ni,Pi,Fi=n((()=>{fn(),Ei=Math.pow,Di=Math.sqrt,Oi=1e-8,ki=1e-4,Ai=Di(3),ji=1/3,Mi=Bt(),Ni=Bt(),Pi=Bt()}));function Ii(e){var t=e&&Li.exec(e);if(t){var n=t[1].split(`,`),r=+lt(n[0]),i=+lt(n[1]),a=+lt(n[2]),o=+lt(n[3]);if(isNaN(r+i+a+o))return;var s=[];return function(e){return e<=0?0:e>=1?1:mi(0,r,a,1,e,s)&&fi(0,i,o,1,s[0])}}}var Li,Ri=n((()=>{Fi(),K(),Li=/cubic-bezier\(([0-9,\.e ]+)\)/})),zi,Bi=n((()=>{li(),K(),Ri(),zi=function(){function e(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||_t,this.ondestroy=e.ondestroy||_t,this.onrestart=e.onrestart||_t,e.easing&&this.setEasing(e.easing)}return e.prototype.step=function(e,t){if(this._inited||=(this._startTime=e+this._delay,!0),this._paused){this._pausedTime+=t;return}var n=this._life,r=e-this._startTime-this._pausedTime,i=r/n;i<0&&(i=0),i=Math.min(i,1);var a=this.easingFunc,o=a?a(i):i;if(this.onframe(o),i===1)if(this.loop){var s=r%n;this._startTime=e-s,this._pausedTime=0,this.onrestart()}else return!0;return!1},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(e){this.easing=e,this.easingFunc=B(e)?e:ci[e]||Ii(e)},e}()})),Vi,Hi,Ui,Wi=n((()=>{Vi=function(){function e(e){this.value=e}return e}(),Hi=function(){function e(){this._len=0}return e.prototype.insert=function(e){var t=new Vi(e);return this.insertEntry(t),t},e.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++},e.prototype.remove=function(e){var t=e.prev,n=e.next;t?t.next=n:this.head=n,n?n.prev=t:this.tail=t,e.next=e.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e}(),Ui=function(){function e(e){this._list=new Hi,this._maxSize=10,this._map={},this._maxSize=e}return e.prototype.put=function(e,t){var n=this._list,r=this._map,i=null;if(r[e]==null){var a=n.len(),o=this._lastRemovedEntry;if(a>=this._maxSize&&a>0){var s=n.head;n.remove(s),delete r[s.key],i=s.value,this._lastRemovedEntry=s}o?o.value=t:o=new Vi(t),o.key=e,n.insertEntry(o),r[e]=o}return i},e.prototype.get=function(e){var t=this._map[e],n=this._list;if(t!=null)return t!==n.tail&&(n.remove(t),n.insertEntry(t)),t.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}()})),Gi=r({fastLerp:()=>sa,fastMapToColor:()=>va,lerp:()=>ca,lift:()=>aa,liftColor:()=>ma,lum:()=>fa,mapToColor:()=>ya,modifyAlpha:()=>ua,modifyHSL:()=>la,parse:()=>na,parseCssFloat:()=>Xi,parseCssInt:()=>Yi,random:()=>pa,stringify:()=>da,toHex:()=>oa});function Ki(e){return e=Math.round(e),e<0?0:e>255?255:e}function qi(e){return e=Math.round(e),e<0?0:e>360?360:e}function Ji(e){return e<0?0:e>1?1:e}function Yi(e){var t=e;return t.length&&t.charAt(t.length-1)===`%`?Ki(parseFloat(t)/100*255):Ki(parseInt(t,10))}function Xi(e){var t=e;return t.length&&t.charAt(t.length-1)===`%`?Ji(parseFloat(t)/100):Ji(parseFloat(t))}function Zi(e,t,n){return n<0?n+=1:n>1&&--n,n*6<1?e+(t-e)*n*6:n*2<1?t:n*3<2?e+(t-e)*(2/3-n)*6:e}function Qi(e,t,n){return e+(t-e)*n}function $i(e,t,n,r,i){return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e}function ea(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}function ta(e,t){_a&&ea(_a,t),_a=ga.put(e,_a||t.slice())}function na(e,t){if(e){t||=[];var n=ga.get(e);if(n)return ea(t,n);e+=``;var r=e.replace(/ /g,``).toLowerCase();if(r in ha)return ea(t,ha[r]),ta(e,t),t;var i=r.length;if(r.charAt(0)===`#`){if(i===4||i===5){var a=parseInt(r.slice(1,4),16);if(!(a>=0&&a<=4095)){$i(t,0,0,0,1);return}return $i(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(r.slice(4),16)/15:1),ta(e,t),t}else if(i===7||i===9){var a=parseInt(r.slice(1,7),16);if(!(a>=0&&a<=16777215)){$i(t,0,0,0,1);return}return $i(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(r.slice(7),16)/255:1),ta(e,t),t}return}var o=r.indexOf(`(`),s=r.indexOf(`)`);if(o!==-1&&s+1===i){var c=r.substr(0,o),l=r.substr(o+1,s-(o+1)).split(`,`),u=1;switch(c){case`rgba`:if(l.length!==4)return l.length===3?$i(t,+l[0],+l[1],+l[2],1):$i(t,0,0,0,1);u=Xi(l.pop());case`rgb`:if(l.length>=3)return $i(t,Yi(l[0]),Yi(l[1]),Yi(l[2]),l.length===3?u:Xi(l[3])),ta(e,t),t;$i(t,0,0,0,1);return;case`hsla`:if(l.length!==4){$i(t,0,0,0,1);return}return l[3]=Xi(l[3]),ra(l,t),ta(e,t),t;case`hsl`:if(l.length!==3){$i(t,0,0,0,1);return}return ra(l,t),ta(e,t),t;default:return}}$i(t,0,0,0,1)}}function ra(e,t){var n=(parseFloat(e[0])%360+360)%360/360,r=Xi(e[1]),i=Xi(e[2]),a=i<=.5?i*(r+1):i+r-i*r,o=i*2-a;return t||=[],$i(t,Ki(Zi(o,a,n+1/3)*255),Ki(Zi(o,a,n)*255),Ki(Zi(o,a,n-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function ia(e){if(e){var t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=a-i,s=(a+i)/2,c,l;if(o===0)c=0,l=0;else{l=s<.5?o/(a+i):o/(2-a-i);var u=((a-t)/6+o/2)/o,d=((a-n)/6+o/2)/o,f=((a-r)/6+o/2)/o;t===a?c=f-d:n===a?c=1/3+u-f:r===a&&(c=2/3+d-u),c<0&&(c+=1),c>1&&--c}var p=[c*360,l,s];return e[3]!=null&&p.push(e[3]),p}}function aa(e,t){var n=na(e);if(n){for(var r=0;r<3;r++)t<0?n[r]=n[r]*(1-t)|0:n[r]=(255-n[r])*t+n[r]|0,n[r]>255?n[r]=255:n[r]<0&&(n[r]=0);return da(n,n.length===4?`rgba`:`rgb`)}}function oa(e){var t=na(e);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)}function sa(e,t,n){if(!(!(t&&t.length)||!(e>=0&&e<=1))){n||=[];var r=e*(t.length-1),i=Math.floor(r),a=Math.ceil(r),o=t[i],s=t[a],c=r-i;return n[0]=Ki(Qi(o[0],s[0],c)),n[1]=Ki(Qi(o[1],s[1],c)),n[2]=Ki(Qi(o[2],s[2],c)),n[3]=Ji(Qi(o[3],s[3],c)),n}}function ca(e,t,n){if(!(!(t&&t.length)||!(e>=0&&e<=1))){var r=e*(t.length-1),i=Math.floor(r),a=Math.ceil(r),o=na(t[i]),s=na(t[a]),c=r-i,l=da([Ki(Qi(o[0],s[0],c)),Ki(Qi(o[1],s[1],c)),Ki(Qi(o[2],s[2],c)),Ji(Qi(o[3],s[3],c))],`rgba`);return n?{color:l,leftIndex:i,rightIndex:a,value:r}:l}}function la(e,t,n,r){var i=na(e);if(e)return i=ia(i),t!=null&&(i[0]=qi(B(t)?t(i[0]):t)),n!=null&&(i[1]=Xi(B(n)?n(i[1]):n)),r!=null&&(i[2]=Xi(B(r)?r(i[2]):r)),da(ra(i),`rgba`)}function ua(e,t){var n=na(e);if(n&&t!=null)return n[3]=Ji(t),da(n,`rgba`)}function da(e,t){if(!(!e||!e.length)){var n=e[0]+`,`+e[1]+`,`+e[2];return(t===`rgba`||t===`hsva`||t===`hsla`)&&(n+=`,`+e[3]),t+`(`+n+`)`}}function fa(e,t){var n=na(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}function pa(){return da([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],`rgb`)}function ma(e){if(V(e)){var t=ba.get(e);return t||(t=aa(e,-.1),ba.put(e,t)),t}else if(tt(e)){var n=I({},e);return n.colorStops=R(e.colorStops,function(e){return{offset:e.offset,color:aa(e.color,-.1)}}),n}return e}var ha,ga,_a,va,ya,ba,xa=n((()=>{Wi(),K(),ha={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]},ga=new Ui(20),_a=null,va=sa,ya=ca,ba=new Ui(100)}));function Sa(e){return e.type===`linear`}function Ca(e){return e.type===`radial`}var wa=n((()=>{K(),(function(){return typeof Buffer<`u`&&typeof Buffer.from==`function`?function(e){return Buffer.from(e).toString(`base64`)}:typeof btoa==`function`&&typeof unescape==`function`&&typeof encodeURIComponent==`function`?function(e){return btoa(unescape(encodeURIComponent(e)))}:function(e){return process.env.NODE_ENV!==`production`&&Pe(`Base64 isn't natively supported in the current environment.`),null}})()}));function Ta(e,t,n){return(t-e)*n+e}function Ea(e,t,n,r){for(var i=t.length,a=0;a<i;a++)e[a]=Ta(t[a],n[a],r);return e}function Da(e,t,n,r){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=Ta(t[o][s],n[o][s],r)}return e}function Oa(e,t,n,r){for(var i=t.length,a=0;a<i;a++)e[a]=t[a]+n[a]*r;return e}function ka(e,t,n,r){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=t[o][s]+n[o][s]*r}return e}function Aa(e,t){for(var n=e.length,r=t.length,i=n>r?t:e,a=Math.min(n,r),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(n,r);s++)i.push({offset:o.offset,color:o.color.slice()})}function ja(e,t,n){var r=e,i=t;if(!(!r.push||!i.push)){var a=r.length,o=i.length;if(a!==o)if(a>o)r.length=o;else for(var s=a;s<o;s++)r.push(n===1?i[s]:La.call(i[s]));for(var c=r[0]&&r[0].length,s=0;s<r.length;s++)if(n===1)isNaN(r[s])&&(r[s]=i[s]);else for(var l=0;l<c;l++)isNaN(r[s][l])&&(r[s][l]=i[s][l])}}function Ma(e){if(Ue(e)){var t=e.length;if(Ue(e[0])){for(var n=[],r=0;r<t;r++)n.push(La.call(e[r]));return n}return La.call(e)}return e}function Na(e){return e[0]=Math.floor(e[0])||0,e[1]=Math.floor(e[1])||0,e[2]=Math.floor(e[2])||0,e[3]=e[3]==null?1:e[3],`rgba(`+e.join(`,`)+`)`}function Pa(e){return Ue(e&&e[0])?2:1}function Fa(e){return e===Ha||e===Ua}function Ia(e){return e===za||e===Ba}var La,Ra,za,Ba,Va,Ha,Ua,Wa,Ga,Ka,qa,Ja=n((()=>{Bi(),xa(),K(),li(),Ri(),wa(),La=Array.prototype.slice,Ra=0,za=1,Ba=2,Va=3,Ha=4,Ua=5,Wa=6,Ga=[0,0,0,0],Ka=function(){function e(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return e.prototype.isFinished=function(){return this._finished},e.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},e.prototype.needsAnimate=function(){return this.keyframes.length>=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(e,t,n){this._needsSort=!0;var r=this.keyframes,i=r.length,a=!1,o=Wa,s=t;if(Ue(t)){var c=Pa(t);o=c,(c===1&&!Ze(t[0])||c===2&&!Ze(t[0][0]))&&(a=!0)}else if(Ze(t)&&!it(t))o=Ra;else if(V(t))if(!isNaN(+t))o=Ra;else{var l=na(t);l&&(s=l,o=Va)}else if(tt(t)){var u=I({},s);u.colorStops=R(t.colorStops,function(e){return{offset:e.offset,color:na(e.color)}}),Sa(t)?o=Ha:Ca(t)&&(o=Ua),s=u}i===0?this.valType=o:(o!==this.valType||o===Wa)&&(a=!0),this.discrete=this.discrete||a;var d={time:e,value:s,rawValue:t,percent:0};return n&&(d.easing=n,d.easingFunc=B(n)?n:ci[n]||Ii(n)),r.push(d),d},e.prototype.prepare=function(e,t){var n=this.keyframes;this._needsSort&&n.sort(function(e,t){return e.time-t.time});for(var r=this.valType,i=n.length,a=n[i-1],o=this.discrete,s=Ia(r),c=Fa(r),l=0;l<i;l++){var u=n[l],d=u.value,f=a.value;u.percent=u.time/e,o||(s&&l!==i-1?ja(d,f,r):c&&Aa(d.colorStops,f.colorStops))}if(!o&&r!==Ua&&t&&this.needsAnimate()&&t.needsAnimate()&&r===t.valType&&!t._finished){this._additiveTrack=t;for(var p=n[0].value,l=0;l<i;l++)r===Ra?n[l].additiveValue=n[l].value-p:r===Va?n[l].additiveValue=Oa([],n[l].value,p,-1):Ia(r)&&(n[l].additiveValue=r===za?Oa([],n[l].value,p,-1):ka([],n[l].value,p,-1))}},e.prototype.step=function(e,t){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n=this._additiveTrack!=null,r=n?`additiveValue`:`value`,i=this.valType,a=this.keyframes,o=a.length,s=this.propName,c=i===Va,l,u=this._lastFr,d=Math.min,f,p;if(o===1)f=p=a[0];else{if(t<0)l=0;else if(t<this._lastFrP){for(l=d(u+1,o-1);l>=0&&!(a[l].percent<=t);l--);l=d(l,o-2)}else{for(l=u;l<o&&!(a[l].percent>t);l++);l=d(l-1,o-2)}p=a[l+1],f=a[l]}if(f&&p){this._lastFr=l,this._lastFrP=t;var m=p.percent-f.percent,h=m===0?1:d((t-f.percent)/m,1);p.easingFunc&&(h=p.easingFunc(h));var g=n?this._additiveValue:c?Ga:e[s];if((Ia(i)||c)&&!g&&(g=this._additiveValue=[]),this.discrete)e[s]=h<1?f.rawValue:p.rawValue;else if(Ia(i))i===za?Ea(g,f[r],p[r],h):Da(g,f[r],p[r],h);else if(Fa(i)){var _=f[r],v=p[r],y=i===Ha;e[s]={type:y?`linear`:`radial`,x:Ta(_.x,v.x,h),y:Ta(_.y,v.y,h),colorStops:R(_.colorStops,function(e,t){var n=v.colorStops[t];return{offset:Ta(e.offset,n.offset,h),color:Na(Ea([],e.color,n.color,h))}}),global:v.global},y?(e[s].x2=Ta(_.x2,v.x2,h),e[s].y2=Ta(_.y2,v.y2,h)):e[s].r=Ta(_.r,v.r,h)}else if(c)Ea(g,f[r],p[r],h),n||(e[s]=Na(g));else{var b=Ta(f[r],p[r],h);n?this._additiveValue=b:e[s]=b}n&&this._addToTarget(e)}}},e.prototype._addToTarget=function(e){var t=this.valType,n=this.propName,r=this._additiveValue;t===Ra?e[n]=e[n]+r:t===Va?(na(e[n],Ga),Oa(Ga,Ga,r,1),e[n]=Na(Ga)):t===za?Oa(e[n],e[n],r,1):t===Ba&&ka(e[n],e[n],r,1)},e}(),qa=function(){function e(e,t,n,r){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&r){Pe(`Can' use additive animation on looped animation.`);return}this._additiveAnimators=r,this._allowDiscrete=n}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(e){this._target=e},e.prototype.when=function(e,t,n){return this.whenWithKeys(e,t,qe(t),n)},e.prototype.whenWithKeys=function(e,t,n,r){for(var i=this._tracks,a=0;a<n.length;a++){var o=n[a],s=i[o];if(!s){s=i[o]=new Ka(o);var c=void 0,l=this._getAdditiveTrack(o);if(l){var u=l.keyframes,d=u[u.length-1];c=d&&d.value,l.valType===Va&&c&&(c=Na(c))}else c=this._target[o];if(c==null)continue;e>0&&s.addKeyframe(0,Ma(c),r),this._trackKeys.push(o)}s.addKeyframe(e,Ma(t[o]),r)}return this._maxTime=Math.max(this._maxTime,e),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,n=0;n<t;n++)e[n].call(this)},e.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,t=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,t)for(var n=0;n<t.length;n++)t[n].call(this)},e.prototype._setTracksFinished=function(){for(var e=this._tracks,t=this._trackKeys,n=0;n<t.length;n++)e[t[n]].setFinished()},e.prototype._getAdditiveTrack=function(e){var t,n=this._additiveAnimators;if(n)for(var r=0;r<n.length;r++){var i=n[r].getTrack(e);i&&(t=i)}return t},e.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var t=this,n=[],r=this._maxTime||0,i=0;i<this._trackKeys.length;i++){var a=this._trackKeys[i],o=this._tracks[a],s=this._getAdditiveTrack(a),c=o.keyframes,l=c.length;if(o.prepare(r,s),o.needsAnimate())if(!this._allowDiscrete&&o.discrete){var u=c[l-1];u&&(t._target[o.propName]=u.rawValue),o.setFinished()}else n.push(o)}if(n.length||this._force){var d=new zi({life:r,loop:this._loop,delay:this._delay||0,onframe:function(e){t._started=2;var r=t._additiveAnimators;if(r){for(var i=!1,a=0;a<r.length;a++)if(r[a]._clip){i=!0;break}i||(t._additiveAnimators=null)}for(var a=0;a<n.length;a++)n[a].step(t._target,e);var o=t._onframeCbs;if(o)for(var a=0;a<o.length;a++)o[a](t._target,e)},ondestroy:function(){t._doneCallback()}});this._clip=d,this.animation&&this.animation.addClip(d),e&&d.setEasing(e)}else this._doneCallback();return this}},e.prototype.stop=function(e){if(this._clip){var t=this._clip;e&&t.onframe(1),this._abortedCallback()}},e.prototype.delay=function(e){return this._delay=e,this},e.prototype.during=function(e){return e&&(this._onframeCbs||=[],this._onframeCbs.push(e)),this},e.prototype.done=function(e){return e&&(this._doneCbs||=[],this._doneCbs.push(e)),this},e.prototype.aborted=function(e){return e&&(this._abortedCbs||=[],this._abortedCbs.push(e)),this},e.prototype.getClip=function(){return this._clip},e.prototype.getTrack=function(e){return this._tracks[e]},e.prototype.getTracks=function(){var e=this;return R(this._trackKeys,function(t){return e._tracks[t]})},e.prototype.stopTracks=function(e,t){if(!e.length||!this._clip)return!0;for(var n=this._tracks,r=this._trackKeys,i=0;i<e.length;i++){var a=n[e[i]];a&&!a.isFinished()&&(t?a.step(this._target,1):this._started===1&&a.step(this._target,0),a.setFinished())}for(var o=!0,i=0;i<r.length;i++)if(!n[r[i]].isFinished()){o=!1;break}return o&&this._abortedCallback(),o},e.prototype.saveTo=function(e,t,n){if(e){t||=this._trackKeys;for(var r=0;r<t.length;r++){var i=t[r],a=this._tracks[i];if(!(!a||a.isFinished())){var o=a.keyframes,s=o[n?0:o.length-1];s&&(e[i]=Ma(s.rawValue))}}}},e.prototype.__changeFinalValue=function(e,t){t||=qe(e);for(var n=0;n<t.length;n++){var r=t[n],i=this._tracks[r];if(i){var a=i.keyframes;if(a.length>1){var o=a.pop();i.addKeyframe(o.time,e[r]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},e}()}));function Ya(){return new Date().getTime()}var Xa,Za=n((()=>{P(),_n(),si(),Ja(),Xa=function(e){N(t,e);function t(t){var n=e.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,t||={},n.stage=t.stage||{},n}return t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var t=e.getClip();t&&this.addClip(t)},t.prototype.removeClip=function(e){if(e.animation){var t=e.prev,n=e.next;t?t.next=n:this._head=n,n?n.prev=t:this._tail=t,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var t=e.getClip();t&&this.removeClip(t),e.animation=null},t.prototype.update=function(e){for(var t=Ya()-this._pausedTime,n=t-this._time,r=this._head;r;){var i=r.next;r.step(t,n)?(r.ondestroy(),this.removeClip(r),r=i):r=i}this._time=t,e||(this.trigger(`frame`,n),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0;function t(){e._running&&(oi(t),!e._paused&&e.update())}oi(t)},t.prototype.start=function(){this._running||(this._time=Ya(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||=(this._pauseStart=Ya(),!0)},t.prototype.resume=function(){this._paused&&=(this._pausedTime+=Ya()-this._pauseStart,!1)},t.prototype.clear=function(){for(var e=this._head;e;){var t=e.next;e.prev=e.next=e.animation=null,e=t}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(e,t){t||={},this.start();var n=new qa(e,t.loop);return this.addAnimator(n),n},t}(gn)}));function Qa(e){var t=e.pointerType;return t===`pen`||t===`touch`}function $a(e){e.touching=!0,e.touchTimer!=null&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout(function(){e.touching=!1,e.touchTimer=null},700)}function eo(e){e&&(e.zrByTouch=!0)}function to(e,t){return Ln(e.dom,new po(e,t),!0)}function no(e,t){for(var n=t,r=!1;n&&n.nodeType!==9&&!(r=n.domBelongToZr||n!==t&&n===e.painterRoot);)n=n.parentNode;return r}function ro(e,t){var n=t.domHandlers;F.pointerEventsSupported?L(lo.pointer,function(r){ao(t,r,function(t){n[r].call(e,t)})}):(F.touchEventsSupported&&L(lo.touch,function(r){ao(t,r,function(i){n[r].call(e,i),$a(t)})}),L(lo.mouse,function(r){ao(t,r,function(i){i=In(i),t.touching||n[r].call(e,i)})}))}function io(e,t){F.pointerEventsSupported?L(uo.pointer,n):F.touchEventsSupported||L(uo.mouse,n);function n(n){function r(r){r=In(r),no(e,r.target)||(r=to(e,r),t.domHandlers[n].call(e,r))}ao(t,n,r,{capture:!0})}}function ao(e,t,n,r){e.mounted[t]=n,e.listenerOpts[t]=r,zn(e.domTarget,t,n,r)}function oo(e){var t=e.mounted;for(var n in t)t.hasOwnProperty(n)&&Bn(e.domTarget,n,t[n],e.listenerOpts[n]);e.mounted={}}var so,co,lo,uo,fo,po,mo,ho,go,_o,vo=n((()=>{P(),Gn(),K(),_n(),xe(),so=300,co=F.domSupported,lo=(function(){var e=[`click`,`dblclick`,`mousewheel`,`wheel`,`mouseout`,`mouseup`,`mousedown`,`mousemove`,`contextmenu`],t=[`touchstart`,`touchend`,`touchmove`],n={pointerdown:1,pointerup:1,pointermove:1,pointerout:1};return{mouse:e,touch:t,pointer:R(e,function(e){var t=e.replace(`mouse`,`pointer`);return n.hasOwnProperty(t)?t:e})}})(),uo={mouse:[`mousemove`,`mouseup`],pointer:[`pointermove`,`pointerup`]},fo=!1,po=function(){function e(e,t){this.stopPropagation=_t,this.stopImmediatePropagation=_t,this.preventDefault=_t,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return e}(),mo={mousedown:function(e){e=Ln(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger(`mousedown`,e)},mousemove:function(e){e=Ln(this.dom,e);var t=this.__mayPointerCapture;t&&(e.zrX!==t[0]||e.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger(`mousemove`,e)},mouseup:function(e){e=Ln(this.dom,e),this.__togglePointerCapture(!1),this.trigger(`mouseup`,e)},mouseout:function(e){e=Ln(this.dom,e);var t=e.toElement||e.relatedTarget;no(this,t)||(this.__pointerCapturing&&(e.zrEventControl=`no_globalout`),this.trigger(`mouseout`,e))},wheel:function(e){fo=!0,e=Ln(this.dom,e),this.trigger(`mousewheel`,e)},mousewheel:function(e){fo||(e=Ln(this.dom,e),this.trigger(`mousewheel`,e))},touchstart:function(e){e=Ln(this.dom,e),eo(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,`start`),mo.mousemove.call(this,e),mo.mousedown.call(this,e)},touchmove:function(e){e=Ln(this.dom,e),eo(e),this.handler.processGesture(e,`change`),mo.mousemove.call(this,e)},touchend:function(e){e=Ln(this.dom,e),eo(e),this.handler.processGesture(e,`end`),mo.mouseup.call(this,e),new Date-+this.__lastTouchMoment<so&&mo.click.call(this,e)},pointerdown:function(e){mo.mousedown.call(this,e)},pointermove:function(e){Qa(e)||mo.mousemove.call(this,e)},pointerup:function(e){mo.mouseup.call(this,e)},pointerout:function(e){Qa(e)||mo.mouseout.call(this,e)}},L([`click`,`dblclick`,`contextmenu`],function(e){mo[e]=function(t){t=Ln(this.dom,t),this.trigger(e,t)}}),ho={pointermove:function(e){Qa(e)||ho.mousemove.call(this,e)},pointerup:function(e){ho.mouseup.call(this,e)},mousemove:function(e){this.trigger(`mousemove`,e)},mouseup:function(e){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger(`mouseup`,e),t&&(e.zrEventControl=`only_globalout`,this.trigger(`mouseout`,e))}},go=function(){function e(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t}return e}(),_o=function(e){N(t,e);function t(t,n){var r=e.call(this)||this;return r.__pointerCapturing=!1,r.dom=t,r.painterRoot=n,r._localHandlerScope=new go(t,mo),co&&(r._globalHandlerScope=new go(document,ho)),ro(r,r._localHandlerScope),r}return t.prototype.dispose=function(){oo(this._localHandlerScope),co&&oo(this._globalHandlerScope)},t.prototype.setCursor=function(e){this.dom.style&&(this.dom.style.cursor=e||`default`)},t.prototype.__togglePointerCapture=function(e){if(this.__mayPointerCapture=null,co&&this.__pointerCapturing^+e){this.__pointerCapturing=e;var t=this._globalHandlerScope;e?io(this,t):oo(t)}},t}(gn)})),yo,bo,xo,So,Co,wo,To=n((()=>{xe(),yo=1,F.hasGlobalWindow&&(yo=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1)),bo=yo,xo=.4,So=`#333`,Co=`#ccc`,wo=`#eee`}));function Eo(e){return e>ko||e<-ko}function Do(e,t){return Re(e,t,Io)}var Oo,ko,Ao,jo,Mo,No,Po,Fo,Io,Lo=n((()=>{sr(),K(),fn(),Oo=$n,ko=5e-5,Ao=[],jo=[],Mo=Qn(),No=Math.abs,Po=function(){function e(){}return e.prototype.getLocalTransform=function(e){return Fo(this,e)},e.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},e.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},e.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},e.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},e.prototype.needLocalTransform=function(){return Eo(this.rotation)||Eo(this.x)||Eo(this.y)||Eo(this.scaleX-1)||Eo(this.scaleY-1)||Eo(this.skewX)||Eo(this.skewY)},e.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),n=this.transform;if(!(t||e)){n&&(Oo(n),this.invTransform=null);return}n||=Qn(),t?this.getLocalTransform(n):Oo(n),e&&(t?tr(n,e,n):er(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n),this.invTransform=this.invTransform||Qn(),ar(this.invTransform,n)},e.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(Ao);var n=Ao[0]<0?-1:1,r=Ao[1]<0?-1:1,i=((Ao[0]-n)*t+n)/Ao[0]||0,a=((Ao[1]-r)*t+r)/Ao[1]||0;e[0]*=i,e[1]*=i,e[2]*=a,e[3]*=a}},e.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},e.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],r=Math.atan2(e[1],e[0]),i=Math.PI/2+r-Math.atan2(e[3],e[2]);n=Math.sqrt(n)*Math.cos(i),t=Math.sqrt(t),this.skewX=i,this.skewY=0,this.rotation=-r,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=n,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||Qn(),tr(jo,e.invTransform,t),t=jo);var n=this.originX,r=this.originY;(n||r)&&(Mo[4]=n,Mo[5]=r,tr(jo,t,Mo),jo[4]-=n,jo[5]-=r,t=jo),this.setLocalTransform(t)}},e.prototype.getGlobalScale=function(e){var t=this.transform;return e||=[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},e.prototype.transformCoordToLocal=function(e,t){var n=[e,t],r=this.invTransform;return r&&an(n,n,r),n},e.prototype.transformCoordToGlobal=function(e,t){var n=[e,t],r=this.transform;return r&&an(n,n,r),n},e.prototype.getLineScale=function(){var e=this.transform;return e&&No(e[0]-1)>1e-10&&No(e[3]-1)>1e-10?Math.sqrt(No(e[0]*e[3]-e[2]*e[1])):1},e.prototype.copyTransform=function(e){Do(this,e)},e.getLocalTransform=function(e,t){t||=[];var n=e.originX||0,r=e.originY||0,i=e.scaleX,a=e.scaleY,o=e.anchorX,s=e.anchorY,c=e.rotation||0,l=e.x,u=e.y,d=e.skewX?Math.tan(e.skewX):0,f=e.skewY?Math.tan(-e.skewY):0;if(n||r||o||s){var p=n+o,m=r+s;t[4]=-p*i-d*m*a,t[5]=-m*a-f*p*i}else t[4]=t[5]=0;return t[0]=i,t[3]=a,t[1]=f*i,t[2]=d*a,c&&rr(t,t,c),t[4]+=n+l,t[5]+=r+u,t},e.initDefaultProps=(function(){var t=e.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0})(),e}(),Fo=Po.getLocalTransform,Io=[`x`,`y`,`originX`,`originY`,`anchorX`,`anchorY`,`rotation`,`scaleX`,`scaleY`,`skewX`,`skewY`]}));function Ro(e){Yo||=new Ui(100),e||=`12px sans-serif`;var t=Yo.get(e);return t||(t={font:e,strWidthCache:new Ui(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:Ae.measureText(`国`,e).width,asciiCharWidth:Ae.measureText(`a`,e).width},Yo.put(e,t)),t}function zo(e){if(!(Xo>=Zo)){e||=`12px sans-serif`;for(var t=[],n=+new Date,r=0;r<=127;r++)t[r]=Ae.measureText(String.fromCharCode(r),e).width;var i=+new Date-n;return i>16?Xo=Zo:i>2&&Xo++,t}}function Bo(e,t){return e.asciiWidthMapTried||=(e.asciiWidthMap=zo(e.font),!0),0<=t&&t<=127?e.asciiWidthMap==null?e.asciiCharWidth:e.asciiWidthMap[t]:e.stWideCharWidth}function Vo(e,t){var n=e.strWidthCache,r=n.get(t);return r??(r=Ae.measureText(t,e.font).width,n.put(t,r)),r}function Ho(e,t,n,r){var i=Vo(Ro(t),e),a=Ko(t);return new J(Wo(0,i,n),Go(0,a,r),i,a)}function Uo(e,t,n,r){var i=((e||``)+``).split(`
|
|
9
|
-
`);if(i.length===1)return Ho(i[0],t,n,r);for(var a=new J(0,0,0,0),o=0;o<i.length;o++){var s=Ho(i[o],t,n,r);o===0?a.copy(s):a.union(s)}return a}function Wo(e,t,n,r){return n===`right`?r?e+=t:e-=t:n===`center`&&(r?e+=t/2:e-=t/2),e}function Go(e,t,n,r){return n===`middle`?r?e+=t/2:e-=t/2:n===`bottom`&&(r?e+=t:e-=t),e}function Ko(e){return Ro(e).stWideCharWidth}function qo(e,t){return typeof e==`string`?e.lastIndexOf(`%`)>=0?parseFloat(e)/100*t:parseFloat(e):e}function Jo(e,t,n){var r=t.position||`inside`,i=t.distance==null?5:t.distance,a=n.height,o=n.width,s=a/2,c=n.x,l=n.y,u=`left`,d=`top`;if(r instanceof Array)c+=qo(r[0],n.width),l+=qo(r[1],n.height),u=null,d=null;else switch(r){case`left`:c-=i,l+=s,u=`right`,d=`middle`;break;case`right`:c+=i+o,l+=s,d=`middle`;break;case`top`:c+=o/2,l-=i,u=`center`,d=`bottom`;break;case`bottom`:c+=o/2,l+=a+i,u=`center`;break;case`inside`:c+=o/2,l+=s,u=`center`,d=`middle`;break;case`insideLeft`:c+=i,l+=s,d=`middle`;break;case`insideRight`:c+=o-i,l+=s,u=`right`,d=`middle`;break;case`insideTop`:c+=o/2,l+=i,u=`center`;break;case`insideBottom`:c+=o/2,l+=a-i,u=`center`,d=`bottom`;break;case`insideTopLeft`:c+=i,l+=i;break;case`insideTopRight`:c+=o-i,l+=i,u=`right`;break;case`insideBottomLeft`:c+=i,l+=a-i,d=`bottom`;break;case`insideBottomRight`:c+=o-i,l+=a-i,u=`right`,d=`bottom`;break}return e||={},e.x=c,e.y=l,e.align=u,e.verticalAlign=d,e}var Yo,Xo,Zo,Qo=n((()=>{Ar(),Wi(),je(),Xo=0,Zo=5}));function $o(e,t,n,r,i){n||={};var a=[];as(e,``,e,t,n,r,a,i);var o=a.length,s=!1,c=n.done,l=n.aborted,u=function(){s=!0,o--,o<=0&&(s?c&&c():l&&l())},d=function(){o--,o<=0&&(s?c&&c():l&&l())};o||c&&c(),a.length>0&&n.during&&a[0].during(function(e,t){n.during(t)});for(var f=0;f<a.length;f++){var p=a[f];u&&p.done(u),d&&p.aborted(d),n.force&&p.duration(n.duration),p.start(n.easing)}return a}function es(e,t,n){for(var r=0;r<n;r++)e[r]=t[r]}function ts(e){return Ue(e[0])}function ns(e,t,n){if(Ue(t[n]))if(Ue(e[n])||(e[n]=[]),$e(t[n])){var r=t[n].length;e[n].length!==r&&(e[n]=new t[n].constructor(r),es(e[n],t[n],r))}else{var i=t[n],a=e[n],o=i.length;if(ts(i))for(var s=i[0].length,c=0;c<o;c++)a[c]?es(a[c],i[c],s):a[c]=Array.prototype.slice.call(i[c]);else es(a,i,o);a.length=i.length}else e[n]=t[n]}function rs(e,t){return e===t||Ue(e)&&Ue(t)&&is(e,t)}function is(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}function as(e,t,n,r,i,a,o,s){for(var c=qe(r),l=i.duration,u=i.delay,d=i.additive,f=i.setToFinal,p=!H(a),m=e.animators,h=[],g=0;g<c.length;g++){var _=c[g],v=r[_];if(v!=null&&n[_]!=null&&(p||a[_]))if(H(v)&&!Ue(v)&&!tt(v)){if(t){s||(n[_]=v,e.updateDuringAnimation(t));continue}as(e,_,n[_],v,i,a&&a[_],o,s)}else h.push(_);else s||(n[_]=v,e.updateDuringAnimation(t),h.push(_))}var y=h.length;if(!d&&y)for(var b=0;b<m.length;b++){var x=m[b];if(x.targetName===t&&x.stopTracks(h)){var S=Be(m,x);m.splice(S,1)}}if(i.force||(h=Ge(h,function(e){return!rs(r[e],n[e])}),y=h.length),y>0||i.force&&!o.length){var C=void 0,w=void 0,T=void 0;if(s){w={},f&&(C={});for(var b=0;b<y;b++){var _=h[b];w[_]=n[_],f?C[_]=r[_]:n[_]=r[_]}}else if(f){T={};for(var b=0;b<y;b++){var _=h[b];T[_]=Ma(n[_]),ns(n,r,_)}}var x=new qa(n,!1,!1,d?Ge(m,function(e){return e.targetName===t}):null);x.targetName=t,i.scope&&(x.scope=i.scope),f&&C&&x.whenWithKeys(0,C,h),T&&x.whenWithKeys(0,T,h),x.whenWithKeys(l??500,s?w:r,h).delay(u||0),e.addAnimator(x,t),o.push(x)}}function os(e,t,n,r){return!(n&&n.hoverLayer||r)||ss(e)||t&&ss(t)?0:1}function ss(e){return e.type===`text`||e.type===`tspan`}function cs(e,t,n){return!t&&!e.__inHover&&n&&n.duration>0}var ls,us,ds,fs,ps,ms,hs,gs=n((()=>{Lo(),Ja(),Ar(),_n(),Qo(),K(),To(),xa(),ei(),sr(),ls=`__zr_normal__`,us=Io.concat([`ignore`]),ds=We(Io,function(e,t){return e[t]=!0,e},{ignore:!1}),fs={},ps=new J(0,0,0,0),ms=[],hs=function(){function e(e){this.id=Ne(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return e.prototype._init=function(e){this.attr(e)},e.prototype.drift=function(e,t,n){switch(this.draggable){case`horizontal`:t=0;break;case`vertical`:e=0;break}var r=this.transform;r||=this.transform=[1,0,0,1,0,0],r[4]+=e,r[5]+=t,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||={};var n=this.textConfig,r=n.local,i=t.innerTransformable,a=void 0,o=void 0,s=!1;i.parent=r?this:null;var c=!1;i.copyTransform(t);var l=n.position!=null,u=n.autoOverflowArea,d=void 0;if((u||l)&&(d=ps,n.layoutRect?d.copy(n.layoutRect):d.copy(this.getBoundingRect()),r||d.applyTransform(this.transform)),l){this.calculateTextPosition?this.calculateTextPosition(fs,n,d):Jo(fs,n,d),i.x=fs.x,i.y=fs.y,a=fs.align,o=fs.verticalAlign;var f=n.origin;if(f&&n.rotation!=null){var p=void 0,m=void 0;f===`center`?(p=d.width*.5,m=d.height*.5):(p=qo(f[0],d.width),m=qo(f[1],d.height)),c=!0,i.originX=-i.x+p+(r?0:d.x),i.originY=-i.y+m+(r?0:d.y)}}n.rotation!=null&&(i.rotation=n.rotation);var h=n.offset;h&&(i.x+=h[0],i.y+=h[1],c||(i.originX=-h[0],i.originY=-h[1]));var g=this._innerTextDefaultStyle||={};if(u){var _=g.overflowRect=g.overflowRect||new J(0,0,0,0);i.getLocalTransform(ms),ar(ms,ms),J.copy(_,d),_.applyTransform(ms)}else g.overflowRect=null;var v=n.inside==null?typeof n.position==`string`&&n.position.indexOf(`inside`)>=0:n.inside,y=void 0,b=void 0,x=void 0;v&&this.canBeInsideText()?(y=n.insideFill,b=n.insideStroke,(y==null||y===`auto`)&&(y=this.getInsideTextFill()),(b==null||b===`auto`)&&(b=this.getInsideTextStroke(y),x=!0)):(y=n.outsideFill,b=n.outsideStroke,(y==null||y===`auto`)&&(y=this.getOutsideFill()),(b==null||b===`auto`)&&(b=this.getOutsideStroke(y),x=!0)),y||=`#000`,(y!==g.fill||b!==g.stroke||x!==g.autoStroke||a!==g.align||o!==g.verticalAlign)&&(s=!0,g.fill=y,g.stroke=b,g.autoStroke=x,g.align=a,g.verticalAlign=o,t.setDefaultTextStyle(g)),t.__dirty|=1,s&&t.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return`#fff`},e.prototype.getInsideTextStroke=function(e){return`#000`},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Co:So},e.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),n=typeof t==`string`&&na(t);n||=[255,255,255,1];for(var r=n[3],i=this.__zr.isDarkMode(),a=0;a<3;a++)n[a]=n[a]*r+(i?0:255)*(1-r);return n[3]=1,da(n,`rgba`)},e.prototype.traverse=function(e,t){},e.prototype.attrKV=function(e,t){e===`textConfig`?this.setTextConfig(t):e===`textContent`?this.setTextContent(t):e===`clipPath`?this.setClipPath(t):e===`extra`?(this.extra=this.extra||{},I(this.extra,t)):this[e]=t},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(e,t){if(typeof e==`string`)this.attrKV(e,t);else if(H(e))for(var n=qe(e),r=0;r<n.length;r++){var i=n[r];this.attrKV(i,e[i])}return this.markRedraw(),this},e.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var t=this._normalState,n=0;n<this.animators.length;n++){var r=this.animators[n],i=r.__fromStateTransition;if(!(r.getLoop()||i&&i!==`__zr_normal__`)){var a=r.targetName,o=a?t[a]:t;r.saveTo(o)}}},e.prototype._innerSaveToNormal=function(e){var t=this._normalState;t||=this._normalState={},e.textConfig&&!t.textConfig&&(t.textConfig=this.textConfig),this._savePrimaryToNormal(e,t,us)},e.prototype._savePrimaryToNormal=function(e,t,n){for(var r=0;r<n.length;r++){var i=n[r];e[i]!=null&&!(i in t)&&(t[i]=this[i])}},e.prototype.hasState=function(){return this.currentStates.length>0},e.prototype.getState=function(e){return this.states[e]},e.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},e.prototype.clearStates=function(e){this.useState(ls,!1,e)},e.prototype.useState=function(e,t,n,r){var i=e===ls;if(!(!this.hasState()&&i)){var a=this.currentStates,o=this.stateTransition;if(!(Be(a,e)>=0&&(t||a.length===1))){var s;if(this.stateProxy&&!i&&(s=this.stateProxy(e)),s||=this.states&&this.states[e],!s&&!i){Pe(`State `+e+` not exists.`);return}i||this.saveCurrentToNormalState(s);var c=this._textContent,l=os(this,c,s,r);l&&!this.__inHover&&(this.__inHover=l),this._applyStateObj(e,s,this._normalState,t,cs(this,n,o),o);var u=this._textGuide;return c&&c.useState(e,t,n,!!l),u&&u.useState(e,t,n,!!l),i?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!l&&this.__inHover&&(this.__inHover=0,this.__dirty&=-2),s}}},e.prototype.useStates=function(e,t,n){if(!e.length)this.clearStates();else{var r=[],i=this.currentStates,a=e.length,o=a===i.length;if(o){for(var s=0;s<a;s++)if(e[s]!==i[s]){o=!1;break}}if(o)return;for(var s=0;s<a;s++){var c=e[s],l=void 0;this.stateProxy&&(l=this.stateProxy(c,e)),l||=this.states[c],l&&r.push(l)}var u=r[a-1],d=this._textContent,f=os(this,d,u,n);f&&!this.__inHover&&(this.__inHover=f);var p=this._mergeStates(r),m=this.stateTransition;this.saveCurrentToNormalState(p),this._applyStateObj(e.join(`,`),p,this._normalState,!1,cs(this,t,m),m);var h=this._textGuide;d&&d.useStates(e,t,!!f),h&&h.useStates(e,t,!!f),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!f&&this.__inHover&&(this.__inHover=0,this.__dirty&=-2)}},e.prototype.isSilent=function(){for(var e=this;e;){if(e.silent)return!0;var t=e.__hostTarget;e=t?e.ignoreHostSilent?null:t:e.parent}return!1},e.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var t=this.animators[e];t.targetName&&t.changeTarget(this[t.targetName])}},e.prototype.removeState=function(e){var t=Be(this.currentStates,e);if(t>=0){var n=this.currentStates.slice();n.splice(t,1),this.useStates(n)}},e.prototype.replaceState=function(e,t,n){var r=this.currentStates.slice(),i=Be(r,e),a=Be(r,t)>=0;i>=0?a?r.splice(i,1):r[i]=t:n&&!a&&r.push(t),this.useStates(r)},e.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},e.prototype._mergeStates=function(e){for(var t={},n,r=0;r<e.length;r++){var i=e[r];I(t,i),i.textConfig&&(n||={},I(n,i.textConfig))}return n&&(t.textConfig=n),t},e.prototype._applyStateObj=function(e,t,n,r,i,a){if(this.__inHover!==1){var o=!(t&&r);t&&t.textConfig?(this.textConfig=I({},r?this.textConfig:n.textConfig),I(this.textConfig,t.textConfig)):o&&n.textConfig&&(this.textConfig=n.textConfig);for(var s={},c=!1,l=0;l<us.length;l++){var u=us[l],d=i&&ds[u];t&&t[u]!=null?d?(c=!0,s[u]=t[u]):this[u]=t[u]:o&&n[u]!=null&&(d?(c=!0,s[u]=n[u]):this[u]=n[u])}if(!i)for(var l=0;l<this.animators.length;l++){var f=this.animators[l],p=f.targetName;f.getLoop()||f.__changeFinalValue(p?(t||n)[p]:t||n)}c&&this._transitionState(e,s,a)}},e.prototype._attachComponent=function(e){if(e.__zr&&!e.__hostTarget){if(process.env.NODE_ENV!==`production`)throw Error(`Text element has been added to zrender.`);return}if(e===this){if(process.env.NODE_ENV!==`production`)throw Error(`Recursive component attachment.`);return}var t=this.__zr;t&&e.addSelfToZr(t),e.__zr=t,e.__hostTarget=this},e.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},e.prototype.getClipPath=function(){return this._clipPath},e.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},e.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},e.prototype.getTextContent=function(){return this._textContent},e.prototype.setTextContent=function(e){var t=this._textContent;if(t!==e){if(t&&t!==e&&this.removeTextContent(),process.env.NODE_ENV!==`production`&&e.__zr&&!e.__hostTarget)throw Error(`Text element has been added to zrender.`);e.innerTransformable=new Po,this._attachComponent(e),this._textContent=e,this.markRedraw()}},e.prototype.setTextConfig=function(e){this.textConfig||={},I(this.textConfig,e),this.markRedraw()},e.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},e.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},e.prototype.getTextGuideLine=function(){return this._textGuide},e.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},e.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},e.prototype.markRedraw=function(){this.__dirty|=1;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},e.prototype.dirty=function(){this.markRedraw()},e.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.addAnimator(t[n]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},e.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.removeAnimator(t[n]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},e.prototype.animate=function(e,t,n){var r=e?this[e]:this;if(process.env.NODE_ENV!==`production`&&!r){Pe(`Property "`+e+`" is not existed in element `+this.id);return}var i=new qa(r,t,n);return e&&(i.targetName=e),this.addAnimator(i,e),i},e.prototype.addAnimator=function(e,t){var n=this.__zr,r=this;e.during(function(){r.updateDuringAnimation(t)}).done(function(){var t=r.animators,n=Be(t,e);n>=0&&t.splice(n,1)}),this.animators.push(e),n&&n.animation.addAnimator(e),n&&n.wakeUp()},e.prototype.updateDuringAnimation=function(e){this.markRedraw()},e.prototype.stopAnimation=function(e,t){for(var n=this.animators,r=n.length,i=[],a=0;a<r;a++){var o=n[a];!e||e===o.scope?o.stop(t):i.push(o)}return this.animators=i,this},e.prototype.animateTo=function(e,t,n){$o(this,e,t,n)},e.prototype.animateFrom=function(e,t,n){$o(this,e,t,n,!0)},e.prototype._transitionState=function(e,t,n,r){for(var i=$o(this,t,n,r),a=0;a<i.length;a++)i[a].__fromStateTransition=e},e.prototype.getBoundingRect=function(){return null},e.prototype.getPaintRect=function(){return null},e.initDefaultProps=(function(){var t=e.prototype;t.type=`element`,t.name=``,t.ignore=t.silent=t.ignoreHostSilent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=!1,t.__inHover=0,t.__dirty=1;var n={};function r(e,t,r){n[e+t+r]||(console.warn(`DEPRECATED: '`+e+`' has been deprecated. use '`+t+`', '`+r+`' instead`),n[e+t+r]=!0)}function i(e,n,i,a){Object.defineProperty(t,e,{get:function(){if(process.env.NODE_ENV!==`production`&&r(e,i,a),!this[n]){var t=this[n]=[];o(this,t)}return this[n]},set:function(t){process.env.NODE_ENV!==`production`&&r(e,i,a),this[i]=t[0],this[a]=t[1],this[n]=t,o(this,t)}});function o(e,t){Object.defineProperty(t,0,{get:function(){return e[i]},set:function(t){e[i]=t}}),Object.defineProperty(t,1,{get:function(){return e[a]},set:function(t){e[a]=t}})}}Object.defineProperty&&(i(`position`,`_legacyPos`,`x`,`y`),i(`scale`,`_legacyScale`,`scaleX`,`scaleY`),i(`origin`,`_legacyOrigin`,`originX`,`originY`))})(),e}(),He(hs,gn),He(hs,Po)})),_s,vs=n((()=>{P(),K(),gs(),Ar(),_s=function(e){N(t,e);function t(t){var n=e.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(t),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(e){return this._children[e]},t.prototype.childOfName=function(e){for(var t=this._children,n=0;n<t.length;n++)if(t[n].name===e)return t[n]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(e){if(e&&(e!==this&&e.parent!==this&&(this._children.push(e),this._doAdd(e)),process.env.NODE_ENV!==`production`&&e.__hostTarget))throw`This elemenet has been used as an attachment`;return this},t.prototype.addBefore=function(e,t){if(e&&e!==this&&e.parent!==this&&t&&t.parent===this){var n=this._children,r=n.indexOf(t);r>=0&&(n.splice(r,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,t){var n=Be(this._children,e);return n>=0&&this.replaceAt(t,n),this},t.prototype.replaceAt=function(e,t){var n=this._children,r=n[t];if(e&&e!==this&&e.parent!==this&&e!==r){n[t]=e,r.parent=null;var i=this.__zr;i&&r.removeSelfFromZr(i),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var t=this.__zr;t&&t!==e.__zr&&e.addSelfToZr(t),t&&t.refresh()},t.prototype.remove=function(e){var t=this.__zr,n=this._children,r=Be(n,e);return r<0?this:(n.splice(r,1),e.parent=null,t&&e.removeSelfFromZr(t),t&&t.refresh(),this)},t.prototype.removeAll=function(){for(var e=this._children,t=this.__zr,n=0;n<e.length;n++){var r=e[n];t&&r.removeSelfFromZr(t),r.parent=null}return e.length=0,this},t.prototype.eachChild=function(e,t){for(var n=this._children,r=0;r<n.length;r++){var i=n[r];e.call(t,i,r)}return this},t.prototype.traverse=function(e,t){for(var n=0;n<this._children.length;n++){var r=this._children[n],i=e.call(t,r);r.isGroup&&!i&&r.traverse(e,t)}return this},t.prototype.addSelfToZr=function(t){e.prototype.addSelfToZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].addSelfToZr(t)},t.prototype.removeSelfFromZr=function(t){e.prototype.removeSelfFromZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].removeSelfFromZr(t)},t.prototype.getBoundingRect=function(e){for(var t=new J(0,0,0,0),n=e||this._children,r=[],i=null,a=0;a<n.length;a++){var o=n[a];if(!(o.ignore||o.invisible)){var s=o.getBoundingRect(),c=o.getLocalTransform(r);c?(J.applyTransform(t,s,c),i||=t.clone(),i.union(t)):(i||=s.clone(),i.union(s))}}return i||t},t}(hs),_s.prototype.type=`group`})),ys=r({dispose:()=>Cs,disposeAll:()=>ws,getElementSSRData:()=>Ds,getInstance:()=>Ts,init:()=>Ss,registerPainter:()=>Es,registerSSRDataGetter:()=>Os,version:()=>Ns});function bs(e){delete As[e]}function xs(e){if(!e)return!1;if(typeof e==`string`)return fa(e,1)<xo;if(e.colorStops){for(var t=e.colorStops,n=0,r=t.length,i=0;i<r;i++)n+=fa(t[i].color,1);return n/=r,n<xo}return!1}function Ss(e,t){var n=new js(Ne(),e,t);return As[n.id]=n,n}function Cs(e){e.dispose()}function ws(){for(var e in As)As.hasOwnProperty(e)&&As[e].dispose();As={}}function Ts(e){return As[e]}function Es(e,t){ks[e]=t}function Ds(e){if(typeof Ms==`function`)return Ms(e)}function Os(e){Ms=e}var ks,As,js,Ms,Ns,Ps=n((()=>{xe(),K(),Hr(),ai(),Za(),vo(),xa(),To(),vs(),ks={},As={},js=function(){function e(e,t,n){var r=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!1,this._darkMode=!1,n||={},this.dom=t,this.id=e;var i=new ii,a=n.renderer||`canvas`;if(ks[a]||(a=qe(ks)[0]),process.env.NODE_ENV!==`production`&&!ks[a])throw Error(`Renderer '`+a+`' is not imported. Please import it first.`);n.useDirtyRect=n.useDirtyRect==null?!1:n.useDirtyRect;var o=new ks[a](t,i,n,e),s=n.ssr||o.ssrOnly;this.storage=i,this.painter=o;var c=!F.node&&!F.worker&&!s?new _o(o.getViewportRoot(),o.root):null,l=n.useCoarsePointer,u=l==null||l===`auto`?F.touchEventsSupported:!!l,d=44,f;u&&(f=U(n.pointerSize,d)),this.handler=new Vr(i,o,c,o.root,f),this.animation=new Xa({stage:{update:s?null:function(){return r._flush(!1)}}}),s||this.animation.start()}return e.prototype.add=function(e){this._disposed||!e||(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},e.prototype.remove=function(e){this._disposed||!e||(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},e.prototype.configLayer=function(e,t){this._disposed||(this.painter.configLayer&&this.painter.configLayer(e,t),this.refresh())},e.prototype.setBackgroundColor=function(e){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=xs(e))},e.prototype.getBackgroundColor=function(){return this._backgroundColor},e.prototype.setDarkMode=function(e){this._darkMode=e},e.prototype.isDarkMode=function(){return this._darkMode},e.prototype.refreshImmediately=function(e){this._disposed||this._refresh({animUpdate:!e,refresh:!0,refreshHover:!1})},e.prototype._refresh=function(e){e.animUpdate&&this.animation.update(!0),this._needsRefresh=this._needsRefreshHover=!1,this.painter.refresh({refresh:e.refresh,refreshHover:e.refreshHover}),this._needsRefresh=this._needsRefreshHover=!1},e.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},e.prototype.flush=function(){this._disposed||this._flush(!0)},e.prototype._flush=function(e){var t,n=Ya(),r=this._needsRefresh,i=this._needsRefreshHover;(r||i)&&(t=!0,this._refresh({animUpdate:e,refresh:r,refreshHover:i}));var a=Ya();t?(this._stillFrameAccum=0,this.trigger(`rendered`,{elapsedTime:a-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},e.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._disposed||this._refresh({animUpdate:!1,refresh:!1,refreshHover:!0})},e.prototype.resize=function(e){this._disposed||(e||={},this.painter.resize(e.width,e.height),this.handler.resize())},e.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},e.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},e.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},e.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},e.prototype.findHover=function(e,t){if(!this._disposed)return this.handler.findHover(e,t)},e.prototype.on=function(e,t,n){return this._disposed||this.handler.on(e,t,n),this},e.prototype.off=function(e,t){this._disposed||this.handler.off(e,t)},e.prototype.trigger=function(e,t){this._disposed||this.handler.trigger(e,t)},e.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),t=0;t<e.length;t++)e[t]instanceof _s&&e[t].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},e.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,bs(this.id))},e}(),Ns=`6.1.0`}));function Fs(e){return e.replace(/^\s+|\s+$/g,``)}function Is(e,t,n,r){var i=t[0],a=t[1],o=n[0],s=n[1],c=a-i,l=s-o;if(c===0)return l===0?o:(o+s)/2;if(r){if(c>0){if(e<=i)return o;if(e>=a)return s}else if(e>=i)return o;else if(e<=a)return s}else{if(e===i)return o;if(e===a)return s}return(e-i)/c*l+o}function Ls(e,t,n){switch(e){case`center`:case`middle`:e=`50%`;break;case`left`:case`top`:e=`0%`;break;case`right`:case`bottom`:e=`100%`;break}return Rs(e,t,n)}function Rs(e,t,n){return V(e)?zs(e)?parseFloat(e)/100*t+(n||0):parseFloat(e):e==null?NaN:+e}function zs(e){return!!Fs(e).match(/%$/)}function Bs(e,t,n){return process.env.NODE_ENV!==`production`&&W(t!=null),isNaN(t)?n?``+e:+e:(t=fc(pc(0,t),dc),e=(+e).toFixed(t),n?e:+e)}function Vs(e,t,n){return t??=10,Bs(e,t,n)}function Hs(e){return e.sort(function(e,t){return e-t}),e}function Us(e){if(e=+e,isNaN(e))return 0;if(e>1e-14){for(var t=1,n=0;n<15;n++,t*=10)if(hc(e*t)/t===e)return n}return Ws(e)}function Ws(e){var t=e.toString().toLowerCase(),n=t.indexOf(`e`),r=n>0?+t.slice(n+1):0,i=n>0?n:t.length,a=t.indexOf(`.`);return pc(0,(a<0?0:i-1-a)-r)}function Gs(e,t){var n=gc(yc(e[1]-e[0])/bc),r=hc(yc(mc(t[1]-t[0]))/bc),i=fc(pc(-n+r,0),dc);return isFinite(i)?i:dc}function Ks(e,t,n){var r=mc(e[1]-e[0]);if(!isFinite(r)||r===0)return NaN;var i=yc(2*mc(n||1)*mc(r))/bc,a=yc(mc(t))/bc,o=pc(0,_c(-i+a));return isFinite(o)||(o=NaN),o}function qs(e,t,n){return e[t]&&Js(e,n)[t]||0}function Js(e,t){var n=We(e,function(e,t){return e+(isNaN(t)?0:t)},0);if(n===0)return[];for(var r=vc(10,t),i=R(e,function(e){return(isNaN(e)?0:e)/n*r*100}),a=r*100,o=R(i,function(e){return gc(e)}),s=We(o,function(e,t){return e+t},0),c=R(i,function(e,t){return e-o[t]});s<a;){for(var l=-1/0,u=null,d=0,f=c.length;d<f;++d)c[d]>l&&(l=c[d],u=d);++o[u],c[u]=0,++s}return R(o,function(e){return e/r})}function Ys(e,t){var n=pc(Us(e),Us(t)),r=e+t;return n>dc?r:Bs(r,n)}function Xs(e){var t=xc*2;return(e%t+t)%t}function Zs(e){return e>-uc&&e<uc}function Qs(e){if(e instanceof Date)return e;if(V(e)){var t=Tc.exec(e);if(!t)return new Date(NaN);if(t[8]){var n=+t[4]||0;return t[8].toUpperCase()!==`Z`&&(n-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],(t[2]||1)-1,+t[3]||1,n,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}else return new Date(+t[1],(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0)}else if(e==null)return new Date(NaN);return new Date(hc(e))}function $s(e){return vc(10,ec(e))}function ec(e){if(e===0)return 0;var t=gc(yc(e)/bc);return e/vc(10,t)>=10&&t++,t}function tc(e,t){var n=ec(e),r=vc(10,n),i=e/r;return e=(t===2?1:t?i<1.5?1:i<2.5?2:i<4?3:i<7?5:10:i<1?1:i<2?2:i<3?3:i<5?5:10)*r,Bs(e,-n)}function nc(e,t){var n=(e.length-1)*t+1,r=gc(n),i=+e[r-1],a=n-r;return a?i+a*(e[r]-i):i}function rc(e){e.sort(function(e,t){return s(e,t,0)?-1:1});for(var t=-1/0,n=1,r=0;r<e.length;){for(var i=e[r].interval,a=e[r].close,o=0;o<2;o++)i[o]<=t&&(i[o]=t,a[o]=o?1:1-n),t=i[o],n=a[o];i[0]===i[1]&&a[0]*a[1]!==1?e.splice(r,1):r++}return e;function s(e,t,n){return e.interval[n]<t.interval[n]||e.interval[n]===t.interval[n]&&(e.close[n]-t.close[n]===(n?-1:1)||!n&&s(e,t,1))}}function ic(e){var t=parseFloat(e);return t==e&&(t!==0||!V(e)||e.indexOf(`x`)<=0)?t:NaN}function ac(e){return!isNaN(ic(e))}function oc(){return hc(Sc()*9)}function sc(e,t){return t===0?e:sc(t,e%t)}function cc(e,t){return e==null?t:t==null?e:e*t/sc(e,t)}function lc(e){return e!=null&&isFinite(e)}var uc,dc,fc,pc,mc,hc,gc,_c,vc,yc,bc,xc,Sc,Cc,wc,Tc,Y=n((()=>{K(),uc=1e-4,dc=20,fc=Math.min,pc=Math.max,mc=Math.abs,hc=Math.round,gc=Math.floor,_c=Math.ceil,vc=Math.pow,yc=Math.log,bc=Math.LN10,xc=Math.PI,Sc=Math.random,Cc=Ls,wc=vc(2,53)-1,Tc=/^(?:(\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 Ec(e,t,n){if(Ic){if(n){if(Fc[t])return;Fc[t]=!0}console[e](Pc+t)}}function Dc(e,t){Ec(`log`,e,t)}function Oc(e,t){Ec(`warn`,e,t)}function kc(e,t){Ec(`error`,e,t)}function Ac(e){process.env.NODE_ENV!==`production`&&Ec(`warn`,`DEPRECATED: `+e,!0)}function jc(e,t,n){process.env.NODE_ENV!==`production`&&Ac((n?`[`+n+`]`:``)+(e+` is deprecated; use `+t+` instead.`))}function Mc(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=``;if(process.env.NODE_ENV!==`production`){var r=function(e){return e===void 0?`undefined`:e===1/0?`Infinity`:e===-1/0?`-Infinity`:it(e)?`NaN`:e instanceof Date?`Date(`+e.toISOString()+`)`:B(e)?`function () { ... }`:rt(e)?e+``:null};n=R(e,function(e){if(V(e))return e;var t=r(e);if(t!=null)return t;if(typeof JSON<`u`&&JSON.stringify)try{return JSON.stringify(e,function(e,t){return r(t)??t})}catch{return`?`}else return`?`}).join(` `)}return n}function Nc(e){throw Error(e)}var Pc,Fc,Ic,Lc=n((()=>{K(),Pc=`[ECharts] `,Fc={},Ic=typeof console<`u`&&console.warn&&console.log}));function Rc(e,t,n){return(t-e)*n+e}function zc(e){return e instanceof Array?e:e==null?[]:[e]}function Bc(e,t,n){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var r=0,i=n.length;r<i;r++){var a=n[r];!e.emphasis[t].hasOwnProperty(a)&&e[t].hasOwnProperty(a)&&(e.emphasis[t][a]=e[t][a])}}}function Vc(e){return H(e)&&!z(e)&&!(e instanceof Date)?e.value:e}function Hc(e){return H(e)&&!(e instanceof Array)}function Uc(e,t,n){var r=n===`normalMerge`,i=n===`replaceMerge`,a=n===`replaceAll`;e||=[],t=(t||[]).slice();var o=G();L(t,function(e,n){if(!H(e)){t[n]=null;return}process.env.NODE_ENV!==`production`&&(e.id!=null&&!el(e.id)&&$c(e.id),e.name!=null&&!el(e.name)&&$c(e.name))});var s=Wc(e,o,n);return(r||i)&&Gc(s,e,o,t),r&&Kc(s,t),r||i?qc(s,t,i):a&&Jc(s,t),Yc(s),s}function Wc(e,t,n){var r=[];if(n===`replaceAll`)return r;for(var i=0;i<e.length;i++){var a=e[i];a&&a.id!=null&&t.set(a.id,i),r.push({existing:n===`replaceMerge`||nl(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return r}function Gc(e,t,n,r){L(r,function(i,a){if(!(!i||i.id==null)){var o=Zc(i.id),s=n.get(o);if(s!=null){var c=e[s];W(!c.newOption,`Duplicated option on id "`+o+`".`),c.newOption=i,c.existing=t[s],r[a]=null}}})}function Kc(e,t){L(t,function(n,r){if(!(!n||n.name==null))for(var i=0;i<e.length;i++){var a=e[i].existing;if(!e[i].newOption&&a&&(a.id==null||n.id==null)&&!nl(n)&&!nl(a)&&Xc(`name`,a,n)){e[i].newOption=n,t[r]=null;return}}})}function qc(e,t,n){L(t,function(t){if(t){for(var r,i=0;(r=e[i])&&(r.newOption||nl(r.existing)||r.existing&&t.id!=null&&!Xc(`id`,t,r.existing));)i++;r?(r.newOption=t,r.brandNew=n):e.push({newOption:t,brandNew:n,existing:null,keyInfo:null}),i++}})}function Jc(e,t){L(t,function(t){e.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})})}function Yc(e){var t=G();L(e,function(e){var n=e.existing;n&&t.set(n.id,e)}),L(e,function(e){var n=e.newOption;W(!n||n.id==null||!t.get(n.id)||t.get(n.id)===e,`id duplicates: `+(n&&n.id)),n&&n.id!=null&&t.set(n.id,e),!e.keyInfo&&(e.keyInfo={})}),L(e,function(e,n){var r=e.existing,i=e.newOption,a=e.keyInfo;if(H(i)){if(a.name=i.name==null?r?r.name:Ml+n:Zc(i.name),r)a.id=Zc(r.id);else if(i.id!=null)a.id=Zc(i.id);else{var o=0;do a.id=`\0`+a.name+`\0`+ o++;while(t.get(a.id))}t.set(a.id,e)}})}function Xc(e,t,n){var r=Qc(t[e],null),i=Qc(n[e],null);return r!=null&&i!=null&&r===i}function Zc(e){if(process.env.NODE_ENV!==`production`&&e==null)throw Error();return Qc(e,``)}function Qc(e,t){return e==null?t:V(e)?e:Ze(e)||Xe(e)?e+``:t}function $c(e){process.env.NODE_ENV!==`production`&&Oc("`"+e+"` is invalid id or name. Must be a string or number.")}function el(e){return Xe(e)||ac(e)}function tl(e){var t=e.name;return!!(t&&t.indexOf(Ml))}function nl(e){return e&&e.id!=null&&Zc(e.id).indexOf(Nl)===0}function rl(e,t,n){L(e,function(e){var r=e.newOption;H(r)&&(e.keyInfo.mainType=t,e.keyInfo.subType=il(t,r,e.existing,n))})}function il(e,t,n,r){return t.type?t.type:n?n.subType:r.determineSubType(e,t)}function al(e,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return z(t.dataIndex)?R(t.dataIndex,function(t){return e.indexOfRawIndex(t)}):e.indexOfRawIndex(t.dataIndex);if(t.name!=null)return z(t.name)?R(t.name,function(t){return e.indexOfName(t)}):e.indexOfName(t.name)}function ol(){var e=`__ec_inner_`+ Fl++;return function(t){return t[e]||(t[e]={})}}function sl(e,t,n){var r=cl(t,n),i=r.mainTypeSpecified,a=r.queryOptionMap,o=r.others,s=n?n.defaultMainType:null;return!i&&s&&a.set(s,{}),a.each(function(t,r){var i=ll(e,r,t,{useDefault:s===r,enableAll:n&&n.enableAll!=null?n.enableAll:!0,enableNone:n&&n.enableNone!=null?n.enableNone:!0});o[r+`Models`]=i.models,o[r+`Model`]=i.models[0]}),o}function cl(e,t){var n;if(V(e)){var r={};r[e+`Index`]=0,n=r}else n=e;var i=G(),a={},o=!1;return L(n,function(e,n){if(n===`dataIndex`||n===`dataIndexInside`){a[n]=e;return}var r=n.match(/^(\w+)(Index|Id|Name)$/)||[],s=r[1],c=(r[2]||``).toLowerCase();if(!(!s||!c||t&&t.includeMainTypes&&Be(t.includeMainTypes,s)<0)){o||=!!s;var l=i.get(s)||i.set(s,{});l[c]=e}}),{mainTypeSpecified:o,queryOptionMap:i,others:a}}function ll(e,t,n,r){r||=Il;var i=n.index,a=n.id,o=n.name,s={models:null,specified:i!=null||a!=null||o!=null};if(!s.specified){var c=void 0;return s.models=r.useDefault&&(c=e.getComponent(t))?[c]:[],s}if(i===`none`||i===!1){if(r.enableNone)return s.models=[],s;process.env.NODE_ENV!==`production`&&kc('`"none"` or `false` is not a valid value on index option.'),i=-1}return i===`all`&&(r.enableAll?i=a=o=null:(process.env.NODE_ENV!==`production`&&kc('`"all"` is not a valid value on index option.'),i=-1)),s.models=e.queryComponents({mainType:t,index:i,id:a,name:o}),s}function ul(e,t,n){process.env.NODE_ENV!==`production`&&W(t);var r={};r[t+`Id`]=e[t+`Id`],r[t+`Index`]=e[t+`Index`],r[t+`Name`]=e[t+`Name`];var i={mainType:t,query:r};return n&&(i.subType=n),i}function dl(e,t,n){e.setAttribute?e.setAttribute(t,n):e[t]=n}function fl(e,t){return e.getAttribute?e.getAttribute(t):e[t]}function pl(e){return e===`auto`?F.domSupported?`html`:`richText`:e||`html`}function ml(e,t,n,r,i){var a=t==null||t===`auto`;if(r==null)return r;if(Ze(r)){var o=Rc(n||0,r,i);return Bs(o,a?Math.max(Us(n||0),Us(r)):t)}else if(V(r))return i<1?n:r;else{for(var s=[],c=n,l=r,u=Math.max(c?c.length:0,l.length),d=0;d<u;++d){var f=e.getDimensionInfo(d);if(f&&f.type===`ordinal`)s[d]=(i<1&&c?c:l)[d];else{var p=c&&c[d]?c[d]:0,m=l[d],o=Rc(p,m,i);s[d]=Bs(o,a?Math.max(Us(p),Us(m)):t)}}return s}}function hl(){return[1/0,-1/0]}function gl(e,t){bl(t)&&(t<e[0]&&(e[0]=t),t>e[1]&&(e[1]=t))}function _l(e,t){bl(t)&&t<e[0]&&(e[0]=t)}function vl(e,t){bl(t)&&t>e[1]&&(e[1]=t)}function yl(e,t){xl(t[0],t[1])&&(t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1]))}function bl(e){return e!=null&&isFinite(e)}function xl(e,t){return bl(e)&&bl(t)&&e<=t}function Sl(e){var t=e[1]-e[0];return isFinite(t)&&t>=0}function Cl(e){xl(e[0],e[1])&&e[0]>e[1]&&(e[0]=e[1])}function wl(){var e=`__ec_once_`+ Ll++;return function(t,n){process.env.NODE_ENV!==`production`&&W(t),gt(t,e)||(t[e]=1,n())}}function Tl(e,t,n){var r=G(),i=0;L(e,function(a){var o=t(a);process.env.NODE_ENV!==`production`&&W(V(o));var s=r.get(o)||0;n&&n(a,s),!s&&!n&&(e[i++]=a),r.set(o,s+1)}),n||(e.length=i)}function El(e){return process.env.NODE_ENV!==`production`&&W(e.value!=null),e.value+``}function Dl(e){return process.env.NODE_ENV!==`production`&&W(e!=null),e+``}function Ol(e,t){return U(t,!0)?e.seriesIndex+2:0}function kl(e,t,n){var r=e.getData().count();return{progressiveRender:n.progressiveEnabled&&t.incrementalPrepareRender&&r>=n.threshold,large:e.get(`large`)&&r>=e.get(`largeThreshold`),modDataCount:e.get(`progressiveChunkMode`)===`mod`?e.getData().count():null}}function Al(e,t){return{seriesType:e,overallReset:t}}function jl(e){return{overallReset:e}}var Ml,Nl,Pl,Fl,Il,Ll,X=n((()=>{K(),xe(),Y(),Lc(),Ml=`series\0`,Nl=`\0_ec_\0`,Pl=`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`.split(`.`),Fl=oc(),Il={useDefault:!0,enableAll:!1,enableNone:!1},function(){function e(){}return e.prototype.reset=function(e,t,n,r){return this._list=e,this._step=r||=1,this._idx=t,this._end=n??(r>0?e.length:0),this.item=null,this.key=NaN,this},e.prototype.next=function(){return(this._step>0?this._idx<this._end:this._idx>=this._end)?(this.item=this._list[this._idx],this.key=this._idx+=this._step,!0):!1},e}(),Ll=oc()}));function Rl(e){var t={main:``,sub:``};if(e){var n=e.split(Jl);t.main=n[0]||``,t.sub=n[1]||``}return t}function zl(e){W(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),`componentType "`+e+`" illegal`)}function Bl(e){return!!(e&&e[Xl])}function Vl(e,t){e.$constructor=e,e.extend=function(e){process.env.NODE_ENV!==`production`&&L(t,function(t){e[t]||console.warn("Method `"+t+"` should be implemented"+(e.type?` in `+e.type:``)+`.`)});var n=this,r;return Hl(n)?r=function(e){N(t,e);function t(){return e.apply(this,arguments)||this}return t}(n):(r=function(){(e.$constructor||n).apply(this,arguments)},Ve(r,this)),I(r.prototype,e),r[Xl]=!0,r.extend=this.extend,r.superCall=Gl,r.superApply=Kl,r.superClass=n,r}}function Hl(e){return B(e)&&/^class\s/.test(Function.prototype.toString.call(e))}function Ul(e,t){e.extend=t.extend}function Wl(e){var t=[`__\0is_clz`,Zl++].join(`_`);e.prototype[t]=!0,process.env.NODE_ENV!==`production`&&W(!e.isInstance,`The method "is" can not be defined.`),e.isInstance=function(e){return!!(e&&e[t])}}function Gl(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return this.superClass.prototype[t].apply(e,n)}function Kl(e,t,n){return this.superClass.prototype[t].apply(e,n)}function ql(e){var t={};e.registerClass=function(e){var r=e.type||e.prototype.type;if(r){zl(r),e.prototype.type=r;var i=Rl(r);if(!i.sub)process.env.NODE_ENV!==`production`&&t[i.main]&&console.warn(i.main+` exists.`),t[i.main]=e;else if(i.sub!==Yl){var a=n(i);a[i.sub]=e}}return e},e.getClass=function(e,n,r){var i=t[e];if(i&&i[Yl]&&(i=n?i[n]:null),r&&!i)throw Error(n?`Component `+e+`.`+(n||``)+` is used but not imported.`:e+`.type should be specified.`);return i},e.getClassesByMainType=function(e){var n=Rl(e),r=[],i=t[n.main];return i&&i[Yl]?L(i,function(e,t){t!==Yl&&r.push(e)}):r.push(i),r},e.hasClass=function(e){return!!t[Rl(e).main]},e.getAllClassMainTypes=function(){var e=[];return L(t,function(t,n){e.push(n)}),e},e.hasSubTypes=function(e){var n=t[Rl(e).main];return n&&n[Yl]};function n(e){var n=t[e.main];return(!n||!n[Yl])&&(n=t[e.main]={},n[Yl]=!0),n}}var Jl,Yl,Xl,Zl,Ql=n((()=>{P(),K(),Jl=`.`,Yl=`___EC__COMPONENT__CONTAINER___`,Xl=`___EC__EXTENDED_CLASS___`,Zl=Math.round(Math.random()*10)}));function $l(e,t){for(var n=0;n<e.length;n++)e[n][1]||(e[n][1]=e[n][0]);return t||=!1,function(n,r,i){for(var a={},o=0;o<e.length;o++){var s=e[o][1];if(!(r&&Be(r,s)>=0||i&&Be(i,s)<0)){var c=n.getShallow(s,t);c!=null&&(a[e[o][0]]=c)}}return a}}var eu=n((()=>{K()})),tu,nu,ru,iu=n((()=>{eu(),tu=[[`fill`,`color`],[`shadowBlur`],[`shadowOffsetX`],[`shadowOffsetY`],[`opacity`],[`shadowColor`]],nu=$l(tu),ru=function(){function e(){}return e.prototype.getAreaStyle=function(e,t){return nu(this,e,t)},e}()}));function au(e){if(typeof e==`string`){var t=lu.get(e);return t&&t.image}else return e}function ou(e,t,n,r,i){if(!e)return t;if(typeof e==`string`){if(t&&t.__zrImageSrc===e||!n)return t;var a=lu.get(e),o={hostEl:n,cb:r,cbPayload:i};return a?(t=a.image,!cu(t)&&a.pending.push(o)):(t=Ae.loadImage(e,su,su),t.__zrImageSrc=e,lu.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}else return e}function su(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<e.pending.length;t++){var n=e.pending[t],r=n.cb;r&&r(this,n.cbPayload),n.hostEl.dirty()}e.pending.length=0}function cu(e){return e&&e.width&&e.height}var lu,uu=n((()=>{Wi(),je(),lu=new Ui(50)}));function du(e,t,n,r,i){var a={};return fu(a,e,t,n,r,i),a.text}function fu(e,t,n,r,i,a){if(!n){e.text=``,e.isTruncated=!1;return}var o=(t+``).split(`
|
|
10
|
-
`);a=pu(n,r,i,a);for(var s=!1,c={},l=0,u=o.length;l<u;l++)mu(c,o[l],a),o[l]=c.textLine,s||=c.isTruncated;e.text=o.join(`
|
|
11
|
-
`),e.isTruncated=s}function pu(e,t,n,r){r||={};var i=I({},r);n=U(n,`...`),i.maxIterations=U(r.maxIterations,2);var a=i.minChar=U(r.minChar,0),o=i.fontMeasureInfo=Ro(t),s=o.asciiCharWidth;i.placeholder=U(r.placeholder,``);for(var c=e=Math.max(0,e-1),l=0;l<a&&c>=s;l++)c-=s;var u=Vo(o,n);return u>c&&(n=``,u=0),c=e-u,i.ellipsis=n,i.ellipsisWidth=u,i.contentWidth=c,i.containerWidth=e,i}function mu(e,t,n){var r=n.containerWidth,i=n.contentWidth,a=n.fontMeasureInfo;if(!r){e.textLine=``,e.isTruncated=!1;return}var o=Vo(a,t);if(o<=r){e.textLine=t,e.isTruncated=!1;return}for(var s=0;;s++){if(o<=i||s>=n.maxIterations){t+=n.ellipsis;break}var c=s===0?hu(t,i,a):o>0?Math.floor(t.length*i/o):0;t=t.substr(0,c),o=Vo(a,t)}t===``&&(t=n.placeholder),e.textLine=t,e.isTruncated=!0}function hu(e,t,n){for(var r=0,i=0,a=e.length;i<a&&r<t;i++)r+=Bo(n,e.charCodeAt(i));return i}function gu(e,t,n,r){var i=Cu(e),a=t.overflow,o=t.padding,s=o?o[1]+o[3]:0,c=o?o[0]+o[2]:0,l=t.font,u=a===`truncate`,d=Ko(l),f=U(t.lineHeight,d),p=t.lineOverflow===`truncate`,m=!1,h=t.width;h==null&&n!=null&&(h=n-s);var g=t.height;g==null&&r!=null&&(g=r-c);var _=h!=null&&(a===`break`||a===`breakAll`)?i?xu(i,t.font,h,a===`breakAll`,0).lines:[]:i?i.split(`
|
|
12
|
-
`):[],v=_.length*f;if(g??=v,v>g&&p){var y=Math.floor(g/f);m||=_.length>y,_=_.slice(0,y),v=_.length*f}if(i&&u&&h!=null)for(var b=pu(h,l,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),x={},S=0;S<_.length;S++)mu(x,_[S],b),_[S]=x.textLine,m||=x.isTruncated;for(var C=g,w=0,T=Ro(l),S=0;S<_.length;S++)w=Math.max(Vo(T,_[S]),w);h??=w;var E=h;return C+=c,E+=s,{lines:_,height:g,outerWidth:E,outerHeight:C,lineHeight:f,calculatedLineHeight:d,contentWidth:w,contentHeight:v,width:h,isTruncated:m}}function _u(e,t,n,r,i){var a=new Au,o=Cu(e);if(!o)return a;var s=t.padding,c=s?s[1]+s[3]:0,l=s?s[0]+s[2]:0,u=t.width;u==null&&n!=null&&(u=n-c);var d=t.height;d==null&&r!=null&&(d=r-l);for(var f=t.overflow,p=(f===`break`||f===`breakAll`)&&u!=null?{width:u,accumWidth:0,breakAll:f===`breakAll`}:null,m=Du.lastIndex=0,h;(h=Du.exec(o))!=null;){var g=h.index;g>m&&vu(a,o.substring(m,g),t,p),vu(a,h[2],t,p,h[1]),m=Du.lastIndex}m<o.length&&vu(a,o.substring(m,o.length),t,p);var _=[],v=0,y=0,b=f===`truncate`,x=t.lineOverflow===`truncate`,S={};function C(e,t,n){e.width=t,e.lineHeight=n,v+=n,y=Math.max(y,t)}outer:for(var w=0;w<a.lines.length;w++){for(var T=a.lines[w],E=0,D=0,O=0;O<T.tokens.length;O++){var k=T.tokens[O],A=k.styleName&&t.rich[k.styleName]||{},j=k.textPadding=A.padding,ee=j?j[1]+j[3]:0,te=k.font=A.font||t.font;k.contentHeight=Ko(te);var ne=U(A.height,k.contentHeight);if(k.innerHeight=ne,j&&(ne+=j[0]+j[2]),k.height=ne,k.lineHeight=ot(A.lineHeight,t.lineHeight,ne),k.align=A&&A.align||i,k.verticalAlign=A&&A.verticalAlign||`middle`,x&&d!=null&&v+k.lineHeight>d){var M=a.lines.length;O>0?(T.tokens=T.tokens.slice(0,O),C(T,D,E),a.lines=a.lines.slice(0,w+1)):a.lines=a.lines.slice(0,w),a.isTruncated=a.isTruncated||a.lines.length<M;break outer}var re=A.width,ie=re==null||re===`auto`;if(typeof re==`string`&&re.charAt(re.length-1)===`%`)k.percentWidth=re,_.push(k),k.contentWidth=Vo(Ro(te),k.text);else{if(ie){var ae=A.backgroundColor,oe=ae&&ae.image;oe&&(oe=au(oe),cu(oe)&&(k.width=Math.max(k.width,oe.width*ne/oe.height)))}var se=b&&u!=null?u-D:null;se!=null&&se<k.width?!ie||se<ee?(k.text=``,k.width=k.contentWidth=0):(fu(S,k.text,se-ee,te,t.ellipsis,{minChar:t.truncateMinChar}),k.text=S.text,a.isTruncated=a.isTruncated||S.isTruncated,k.width=k.contentWidth=Vo(Ro(te),k.text)):k.contentWidth=Vo(Ro(te),k.text)}k.width+=ee,D+=k.width,A&&(E=Math.max(E,k.lineHeight))}C(T,D,E)}a.outerWidth=a.width=U(u,y),a.outerHeight=a.height=U(d,v),a.contentHeight=v,a.contentWidth=y,a.outerWidth+=c,a.outerHeight+=l;for(var w=0;w<_.length;w++){var k=_[w],ce=k.percentWidth;k.width=parseInt(ce,10)/100*a.width}return a}function vu(e,t,n,r,i){var a=t===``,o=i&&n.rich[i]||{},s=e.lines,c=o.font||n.font,l=!1,u,d;if(r){var f=o.padding,p=f?f[1]+f[3]:0;if(o.width!=null&&o.width!==`auto`){var m=qo(o.width,r.width)+p;s.length>0&&m+r.accumWidth>r.width&&(u=t.split(`
|
|
13
|
-
`),l=!0),r.accumWidth=m}else{var h=xu(t,c,r.width,r.breakAll,r.accumWidth);r.accumWidth=h.accumWidth+p,d=h.linesWidths,u=h.lines}}u||=t.split(`
|
|
14
|
-
`);for(var g=Ro(c),_=0;_<u.length;_++){var v=u[_],y=new Ou;if(y.styleName=i,y.text=v,y.isLineHolder=!v&&!a,typeof o.width==`number`?y.width=o.width:y.width=d?d[_]:Vo(g,v),!_&&!l){var b=(s[s.length-1]||(s[0]=new ku)).tokens,x=b.length;x===1&&b[0].isLineHolder?b[0]=y:(v||!x||a)&&b.push(y)}else s.push(new ku([y]))}}function yu(e){var t=e.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}function bu(e){return yu(e)?!!ju[e]:!0}function xu(e,t,n,r,i){for(var a=[],o=[],s=``,c=``,l=0,u=0,d=Ro(t),f=0;f<e.length;f++){var p=e.charAt(f);if(p===`
|
|
15
|
-
`){c&&(s+=c,u+=l),a.push(s),o.push(u),s=``,c=``,l=0,u=0;continue}var m=Bo(d,p.charCodeAt(0)),h=r?!1:!bu(p);if(a.length?u+m>n:i+u+m>n){u?(s||c)&&(h?(s||(s=c,c=``,l=0,u=l),a.push(s),o.push(u-l),c+=p,l+=m,s=``,u=l):(c&&(s+=c,c=``,l=0),a.push(s),o.push(u),s=p,u=m)):h?(a.push(c),o.push(l),c=p,l=m):(a.push(p),o.push(m));continue}u+=m,h?(c+=p,l+=m):(c&&(s+=c,c=``,l=0),s+=p)}return c&&(s+=c),s&&(a.push(s),o.push(u)),a.length===1&&(u+=i),{accumWidth:u,lines:a,linesWidths:o}}function Su(e,t,n,r,i,a){if(e.baseX=n,e.baseY=r,e.outerWidth=e.outerHeight=null,t){var o=t.width*2,s=t.height*2;J.set(Mu,Wo(n,o,i),Go(r,s,a),o,s),J.intersect(t,Mu,null,Nu);var c=Nu.outIntersectRect;e.outerWidth=c.width,e.outerHeight=c.height,e.baseX=Wo(c.x,c.width,i,!0),e.baseY=Go(c.y,c.height,a,!0)}}function Cu(e){return e==null?e=``:e+=``}function wu(e){var t=Cu(e.text),n=e.font;return Tu(e,Vo(Ro(n),t),Ko(n),null)}function Tu(e,t,n,r){var i=new J(Wo(e.x||0,t,e.textAlign),Go(e.y||0,n,e.textBaseline),t,n),a=r??(Eu(e)?e.lineWidth:0);return a>0&&(i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a),i}function Eu(e){var t=e.stroke;return t!=null&&t!==`none`&&e.lineWidth>0}var Du,Ou,ku,Au,ju,Mu,Nu,Pu=n((()=>{uu(),K(),Qo(),Ar(),Du=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g,Ou=function(){function e(){}return e}(),ku=function(){function e(e){this.tokens=[],e&&(this.tokens=e)}return e}(),Au=function(){function e(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return e}(),ju=We(`,&?/;] `.split(``),function(e,t){return e[t]=!0,e},{}),Mu=new J(0,0,0,0),Nu={outIntersectRect:{},clamp:!0}}));function Fu(e,t,n){return Hu.copy(e.getBoundingRect()),e.transform&&Hu.applyTransform(e.transform),Uu.width=t,Uu.height=n,!Hu.intersect(Uu)}var Iu,Lu,Ru,zu,Bu,Vu,Hu,Uu,Wu=n((()=>{P(),gs(),Ar(),K(),ei(),Iu=`__zr_style_`+Math.round(Math.random()*10),Lu={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:`#000`,opacity:1,blend:`source-over`},Ru={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}},Lu[Iu]=!0,zu=[`z`,`z2`,`invisible`],Bu=[`invisible`],Vu=function(e){N(t,e);function t(t){return e.call(this,t)||this}return t.prototype._init=function(t){for(var n=qe(t),r=0;r<n.length;r++){var i=n[r];i===`style`?this.useStyle(t[i]):e.prototype.attrKV.call(this,i,t[i])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(e){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(e,t,n,r){var i=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&Fu(this,e,t)||i&&!i[0]&&!i[3])return!1;if(n&&this.__clipPaths&&this.__clipPaths.length){for(var a=0;a<this.__clipPaths.length;++a)if(this.__clipPaths[a].isZeroArea())return!1}if(r&&this.parent)for(var o=this.parent;o;){if(o.ignore)return!1;o=o.parent}return!0},t.prototype.contain=function(e,t){return this.rectContain(e,t)},t.prototype.traverse=function(e,t){e.call(t,this)},t.prototype.rectContain=function(e,t){var n=this.transformCoordToLocal(e,t);return this.getBoundingRect().contain(n[0],n[1])},t.prototype.getPaintRect=function(){var e=this._paintRect;if(!this._paintRect||this.__dirty){var t=this.transform,n=this.getBoundingRect(),r=this.style,i=r.shadowBlur||0,a=r.shadowOffsetX||0,o=r.shadowOffsetY||0;e=this._paintRect||=new J(0,0,0,0),t?J.applyTransform(e,n,t):e.copy(n),(i||a||o)&&(e.width+=i*2+Math.abs(a),e.height+=i*2+Math.abs(o),e.x=Math.min(e.x,e.x+a-i),e.y=Math.min(e.y,e.y+o-i));var s=this.dirtyRectTolerance;e.isZero()||(e.x=Math.floor(e.x-s),e.y=Math.floor(e.y-s),e.width=Math.ceil(e.width+1+s*2),e.height=Math.ceil(e.height+1+s*2))}return e},t.prototype.setPrevPaintRect=function(e){e?(this._prevPaintRect=this._prevPaintRect||new J(0,0,0,0),this._prevPaintRect.copy(e)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(e){return this.animate(`style`,e)},t.prototype.updateDuringAnimation=function(e){e===`style`?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(t,n){t===`style`?this.style?this.setStyle(n):this.useStyle(n):e.prototype.attrKV.call(this,t,n)},t.prototype.setStyle=function(e,t){return typeof e==`string`?this.style[e]=t:I(this.style,e),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(e){e||this.markRedraw(),this.__dirty|=2,this._rect&&=null},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&2)},t.prototype.styleUpdated=function(){this.__dirty&=-3},t.prototype.createStyle=function(e){return mt(Lu,e)},t.prototype.useStyle=function(e){e[Iu]||(e=this.createStyle(e)),this.style=e,this.dirtyStyle()},t.prototype._useHoverStyle=function(e){this.__hoverStyle=e},t.prototype.isStyleObject=function(e){return e[Iu]},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(t,n,zu)},t.prototype._applyStateObj=function(t,n,r,i,a,o){e.prototype._applyStateObj.call(this,t,n,r,i,a,o);var s=!(n&&i),c=this.__inHover===1,l;if(n&&n.style?a?i?l=n.style:(l=this._mergeStyle(this.createStyle(),r.style),this._mergeStyle(l,n.style)):(l=this._mergeStyle(this.createStyle(),i?this.style:r.style),this._mergeStyle(l,n.style)):s&&(l=r.style),l)if(a){var u=this.style;if(this.style=this.createStyle(s?{}:u),s)for(var d=qe(u),f=0;f<d.length;f++){var p=d[f];p in l&&(l[p]=l[p],this.style[p]=u[p])}for(var m=qe(l),f=0;f<m.length;f++){var p=m[f];this.style[p]=this.style[p]}this._transitionState(t,{style:l},o,this.getAnimationStyleProps())}else c?this._useHoverStyle(l):this.useStyle(l);if(!c)for(var h=this.__inHover?Bu:zu,f=0;f<h.length;f++){var p=h[f];n&&n[p]!=null?this[p]=n[p]:s&&r[p]!=null&&(this[p]=r[p])}},t.prototype._mergeStates=function(t){for(var n=e.prototype._mergeStates.call(this,t),r,i=0;i<t.length;i++){var a=t[i];a.style&&(r||={},this._mergeStyle(r,a.style))}return r&&(n.style=r),n},t.prototype._mergeStyle=function(e,t){return I(e,t),e},t.prototype.getAnimationStyleProps=function(){return Ru},t.initDefaultProps=(function(){var e=t.prototype;e.type=`displayable`,e.invisible=!1,e.z=0,e.z2=0,e.zlevel=0,e.culling=!1,e.cursor=`pointer`,e.rectHover=!1,e.incremental=0,e._rect=null,e.dirtyRectTolerance=0,e.__dirty=3})(),t}(hs),Hu=new J(0,0,0,0),Uu=new J(0,0,0,0)}));function Gu(e,t,n,r,i,a){i[0]=Yu(e,n),i[1]=Yu(t,r),a[0]=Xu(e,n),a[1]=Xu(t,r)}function Ku(e,t,n,r,i,a,o,s,c,l){var u=hi,d=fi,f=u(e,n,i,o,rd);c[0]=1/0,c[1]=1/0,l[0]=-1/0,l[1]=-1/0;for(var p=0;p<f;p++){var m=d(e,n,i,o,rd[p]);c[0]=Yu(m,c[0]),l[0]=Xu(m,l[0])}f=u(t,r,a,s,id);for(var p=0;p<f;p++){var h=d(t,r,a,s,id[p]);c[1]=Yu(h,c[1]),l[1]=Xu(h,l[1])}c[0]=Yu(e,c[0]),l[0]=Xu(e,l[0]),c[0]=Yu(o,c[0]),l[0]=Xu(o,l[0]),c[1]=Yu(t,c[1]),l[1]=Xu(t,l[1]),c[1]=Yu(s,c[1]),l[1]=Xu(s,l[1])}function qu(e,t,n,r,i,a,o,s){var c=Si,l=yi,u=Xu(Yu(c(e,n,i),1),0),d=Xu(Yu(c(t,r,a),1),0),f=l(e,n,i,u),p=l(t,r,a,d);o[0]=Yu(e,i,f),o[1]=Yu(t,a,p),s[0]=Xu(e,i,f),s[1]=Xu(t,a,p)}function Ju(e,t,n,r,i,a,o,s,c){var l=on,u=sn,d=Math.abs(i-a);if(d%$u<1e-4&&d>1e-4){s[0]=e-n,s[1]=t-r,c[0]=e+n,c[1]=t+r;return}if(ed[0]=Qu(i)*n+e,ed[1]=Zu(i)*r+t,td[0]=Qu(a)*n+e,td[1]=Zu(a)*r+t,l(s,ed,td),u(c,ed,td),i%=$u,i<0&&(i+=$u),a%=$u,a<0&&(a+=$u),i>a&&!o?a+=$u:i<a&&o&&(i+=$u),o){var f=a;a=i,i=f}for(var p=0;p<a;p+=Math.PI/2)p>i&&(nd[0]=Qu(p)*n+e,nd[1]=Zu(p)*r+t,l(s,nd,s),u(c,nd,c))}var Yu,Xu,Zu,Qu,$u,ed,td,nd,rd,id,ad=n((()=>{fn(),Fi(),Yu=Math.min,Xu=Math.max,Zu=Math.sin,Qu=Math.cos,$u=Math.PI*2,ed=Bt(),td=Bt(),nd=Bt(),rd=[],id=[]}));function od(e){return Math.round(e/bd*1e8)/1e8%2*bd}function sd(e,t){var n=od(e[0]);n<0&&(n+=xd);var r=n-e[0],i=e[1];i+=r,!t&&i-n>=xd?i=n+xd:t&&n-i>=xd?i=n-xd:!t&&n>i?i=n+(xd-od(n-i)):t&&n<i&&(i=n-(xd-od(i-n))),e[0]=n,e[1]=i}var cd,ld,ud,dd,fd,pd,md,hd,gd,_d,vd,yd,bd,xd,Sd,Cd,wd,Td=n((()=>{fn(),Ar(),To(),ad(),Fi(),cd={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},ld=[],ud=[],dd=[],fd=[],pd=[],md=[],hd=Math.min,gd=Math.max,_d=Math.cos,vd=Math.sin,yd=Math.abs,bd=Math.PI,xd=bd*2,Sd=typeof Float32Array<`u`,Cd=[],wd=function(){function e(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 e.prototype.increaseVersion=function(){this._version++},e.prototype.getVersion=function(){return this._version},e.prototype.setScale=function(e,t,n){n||=0,n>0&&(this._ux=yd(n/bo/e)||0,this._uy=yd(n/bo/t)||0)},e.prototype.setDPR=function(e){this.dpr=e},e.prototype.setContext=function(e){this._ctx=e},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(e,t){return this._drawPendingPt(),this.addData(cd.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},e.prototype.lineTo=function(e,t){var n=yd(e-this._xi),r=yd(t-this._yi),i=n>this._ux||r>this._uy;if(this.addData(cd.L,e,t),this._ctx&&i&&this._ctx.lineTo(e,t),i)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var a=n*n+r*r;a>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=a)}return this},e.prototype.bezierCurveTo=function(e,t,n,r,i,a){return this._drawPendingPt(),this.addData(cd.C,e,t,n,r,i,a),this._ctx&&this._ctx.bezierCurveTo(e,t,n,r,i,a),this._xi=i,this._yi=a,this},e.prototype.quadraticCurveTo=function(e,t,n,r){return this._drawPendingPt(),this.addData(cd.Q,e,t,n,r),this._ctx&&this._ctx.quadraticCurveTo(e,t,n,r),this._xi=n,this._yi=r,this},e.prototype.arc=function(e,t,n,r,i,a){this._drawPendingPt(),Cd[0]=r,Cd[1]=i,sd(Cd,a),r=Cd[0],i=Cd[1];var o=i-r;return this.addData(cd.A,e,t,n,n,r,o,0,+!a),this._ctx&&this._ctx.arc(e,t,n,r,i,a),this._xi=_d(i)*n+e,this._yi=vd(i)*n+t,this},e.prototype.arcTo=function(e,t,n,r,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,n,r,i),this},e.prototype.rect=function(e,t,n,r){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,n,r),this.addData(cd.R,e,t,n,r),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(cd.Z);var e=this._ctx,t=this._x0,n=this._y0;return e&&e.closePath(),this._xi=t,this._yi=n,this},e.prototype.fill=function(e){e&&e.fill(),this.toStatic()},e.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(e){if(this._saveData){var t=e.length;!(this.data&&this.data.length===t)&&Sd&&(this.data=new Float32Array(t));for(var n=0;n<t;n++)this.data[n]=e[n];this._len=t}},e.prototype.appendPath=function(e){if(this._saveData){e instanceof Array||(e=[e]);for(var t=e.length,n=0,r=this._len,i=0;i<t;i++)n+=e[i].len();var a=this.data;if(Sd&&(a instanceof Float32Array||!a)&&(this.data=new Float32Array(r+n),r>0&&a))for(var o=0;o<r;o++)this.data[o]=a[o];for(var i=0;i<t;i++)for(var s=e[i].data,o=0;o<s.length;o++)this.data[r++]=s[o];this._len=r}},e.prototype.addData=function(e,t,n,r,i,a,o,s,c){if(this._saveData){var l=this.data;this._len+arguments.length>l.length&&(this._expandData(),l=this.data);for(var u=0;u<arguments.length;u++)l[this._len++]=arguments[u]}},e.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t<this._len;t++)e[t]=this.data[t];this.data=e}},e.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,Sd&&this._len>11&&(this.data=new Float32Array(e)))}},e.prototype.getBoundingRect=function(){dd[0]=dd[1]=pd[0]=pd[1]=Number.MAX_VALUE,fd[0]=fd[1]=md[0]=md[1]=-Number.MAX_VALUE;var e=this.data,t=0,n=0,r=0,i=0,a;for(a=0;a<this._len;){var o=e[a++],s=a===1;switch(s&&(t=e[a],n=e[a+1],r=t,i=n),o){case cd.M:t=r=e[a++],n=i=e[a++],pd[0]=r,pd[1]=i,md[0]=r,md[1]=i;break;case cd.L:Gu(t,n,e[a],e[a+1],pd,md),t=e[a++],n=e[a++];break;case cd.C:Ku(t,n,e[a++],e[a++],e[a++],e[a++],e[a],e[a+1],pd,md),t=e[a++],n=e[a++];break;case cd.Q:qu(t,n,e[a++],e[a++],e[a],e[a+1],pd,md),t=e[a++],n=e[a++];break;case cd.A:var c=e[a++],l=e[a++],u=e[a++],d=e[a++],f=e[a++],p=e[a++]+f;a+=1;var m=!e[a++];s&&(r=_d(f)*u+c,i=vd(f)*d+l),Ju(c,l,u,d,f,p,m,pd,md),t=_d(p)*u+c,n=vd(p)*d+l;break;case cd.R:r=t=e[a++],i=n=e[a++];var h=e[a++],g=e[a++];Gu(r,i,r+h,i+g,pd,md);break;case cd.Z:t=r,n=i;break}on(dd,dd,pd),sn(fd,fd,md)}return a===0&&(dd[0]=dd[1]=fd[0]=fd[1]=0),new J(dd[0],dd[1],fd[0]-dd[0],fd[1]-dd[1])},e.prototype._calculateLength=function(){var e=this.data,t=this._len,n=this._ux,r=this._uy,i=0,a=0,o=0,s=0;this._pathSegLen||=[];for(var c=this._pathSegLen,l=0,u=0,d=0;d<t;){var f=e[d++],p=d===1;p&&(i=e[d],a=e[d+1],o=i,s=a);var m=-1;switch(f){case cd.M:i=o=e[d++],a=s=e[d++];break;case cd.L:var h=e[d++],g=e[d++],_=h-i,v=g-a;(yd(_)>n||yd(v)>r||d===t-1)&&(m=Math.sqrt(_*_+v*v),i=h,a=g);break;case cd.C:var y=e[d++],b=e[d++],h=e[d++],g=e[d++],x=e[d++],S=e[d++];m=vi(i,a,y,b,h,g,x,S,10),i=x,a=S;break;case cd.Q:var y=e[d++],b=e[d++],h=e[d++],g=e[d++];m=Ti(i,a,y,b,h,g,10),i=h,a=g;break;case cd.A:var C=e[d++],w=e[d++],T=e[d++],E=e[d++],D=e[d++],O=e[d++],k=O+D;d+=1,p&&(o=_d(D)*T+C,s=vd(D)*E+w),m=gd(T,E)*hd(xd,Math.abs(O)),i=_d(k)*T+C,a=vd(k)*E+w;break;case cd.R:o=i=e[d++],s=a=e[d++];var A=e[d++],j=e[d++];m=A*2+j*2;break;case cd.Z:var _=o-i,v=s-a;m=Math.sqrt(_*_+v*v),i=o,a=s;break}m>=0&&(c[u++]=m,l+=m)}return this._pathLen=l,l},e.prototype.rebuildPath=function(e,t){var n=this.data,r=this._ux,i=this._uy,a=this._len,o,s,c,l,u,d,f=t<1,p,m,h=0,g=0,_,v=0,y,b;if(!(f&&(this._pathSegLen||this._calculateLength(),p=this._pathSegLen,m=this._pathLen,_=t*m,!_)))lo:for(var x=0;x<a;){var S=n[x++],C=x===1;switch(C&&(c=n[x],l=n[x+1],o=c,s=l),S!==cd.L&&v>0&&(e.lineTo(y,b),v=0),S){case cd.M:o=c=n[x++],s=l=n[x++],e.moveTo(c,l);break;case cd.L:u=n[x++],d=n[x++];var w=yd(u-c),T=yd(d-l);if(w>r||T>i){if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;e.lineTo(c*(1-D)+u*D,l*(1-D)+d*D);break lo}h+=E}e.lineTo(u,d),c=u,l=d,v=0}else{var O=w*w+T*T;O>v&&(y=u,b=d,v=O)}break;case cd.C:var k=n[x++],A=n[x++],j=n[x++],ee=n[x++],te=n[x++],ne=n[x++];if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;gi(c,k,j,te,D,ld),gi(l,A,ee,ne,D,ud),e.bezierCurveTo(ld[1],ud[1],ld[2],ud[2],ld[3],ud[3]);break lo}h+=E}e.bezierCurveTo(k,A,j,ee,te,ne),c=te,l=ne;break;case cd.Q:var k=n[x++],A=n[x++],j=n[x++],ee=n[x++];if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;Ci(c,k,j,D,ld),Ci(l,A,ee,D,ud),e.quadraticCurveTo(ld[1],ud[1],ld[2],ud[2]);break lo}h+=E}e.quadraticCurveTo(k,A,j,ee),c=j,l=ee;break;case cd.A:var M=n[x++],re=n[x++],ie=n[x++],ae=n[x++],oe=n[x++],se=n[x++],ce=n[x++],le=!n[x++],ue=ie>ae?ie:ae,de=yd(ie-ae)>.001,fe=oe+se,pe=!1;if(f){var E=p[g++];h+E>_&&(fe=oe+se*(_-h)/E,pe=!0),h+=E}if(de&&e.ellipse?e.ellipse(M,re,ie,ae,ce,oe,fe,le):e.arc(M,re,ue,oe,fe,le),pe)break lo;C&&(o=_d(oe)*ie+M,s=vd(oe)*ae+re),c=_d(fe)*ie+M,l=vd(fe)*ae+re;break;case cd.R:o=c=n[x],s=l=n[x+1],u=n[x++],d=n[x++];var me=n[x++],he=n[x++];if(f){var E=p[g++];if(h+E>_){var ge=_-h;e.moveTo(u,d),e.lineTo(u+hd(ge,me),d),ge-=me,ge>0&&e.lineTo(u+me,d+hd(ge,he)),ge-=he,ge>0&&e.lineTo(u+gd(me-ge,0),d+he),ge-=me,ge>0&&e.lineTo(u,d+gd(he-ge,0));break lo}h+=E}e.rect(u,d,me,he);break;case cd.Z:if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;e.lineTo(c*(1-D)+o*D,l*(1-D)+s*D);break lo}h+=E}e.closePath(),c=o,l=s}}},e.prototype.clone=function(){var t=new e,n=this.data;return t.data=n.slice?n.slice():Array.prototype.slice.call(n),t._len=this._len,t},e.prototype.canSave=function(){return!!this._saveData},e.CMD=cd,e.initDefaultProps=(function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0})(),e}()}));function Ed(e,t,n,r,i,a,o){if(i===0)return!1;var s=i,c=0,l=e;if(o>t+s&&o>r+s||o<t-s&&o<r-s||a>e+s&&a>n+s||a<e-s&&a<n-s)return!1;if(e!==n)c=(t-r)/(e-n),l=(e*r-n*t)/(e-n);else return Math.abs(a-e)<=s/2;var u=c*a-o+l;return u*u/(c*c+1)<=s/2*s/2}var Dd=n((()=>{}));function Od(e,t,n,r,i,a,o,s,c,l,u){if(c===0)return!1;var d=c;return u>t+d&&u>r+d&&u>a+d&&u>s+d||u<t-d&&u<r-d&&u<a-d&&u<s-d||l>e+d&&l>n+d&&l>i+d&&l>o+d||l<e-d&&l<n-d&&l<i-d&&l<o-d?!1:_i(e,t,n,r,i,a,o,s,l,u,null)<=d/2}var kd=n((()=>{Fi()}));function Ad(e,t,n,r,i,a,o,s,c){if(o===0)return!1;var l=o;return c>t+l&&c>r+l&&c>a+l||c<t-l&&c<r-l&&c<a-l||s>e+l&&s>n+l&&s>i+l||s<e-l&&s<n-l&&s<i-l?!1:wi(e,t,n,r,i,a,s,c,null)<=l/2}var jd=n((()=>{Fi()}));function Md(e){return e%=Nd,e<0&&(e+=Nd),e}var Nd,Pd=n((()=>{Nd=Math.PI*2}));function Fd(e,t,n,r,i,a,o,s,c){if(o===0)return!1;var l=o;s-=e,c-=t;var u=Math.sqrt(s*s+c*c);if(u-l>n||u+l<n)return!1;if(Math.abs(r-i)%Id<1e-4)return!0;if(a){var d=r;r=Md(i),i=Md(d)}else r=Md(r),i=Md(i);r>i&&(i+=Id);var f=Math.atan2(c,s);return f<0&&(f+=Id),f>=r&&f<=i||f+Id>=r&&f+Id<=i}var Id,Ld=n((()=>{Pd(),Id=Math.PI*2}));function Rd(e,t,n,r,i,a){if(a>t&&a>r||a<t&&a<r||r===t)return 0;var o=(a-t)/(r-t),s=r<t?1:-1;(o===1||o===0)&&(s=r<t?.5:-.5);var c=o*(n-e)+e;return c===i?1/0:c>i?s:0}var zd=n((()=>{}));function Bd(e,t){return Math.abs(e-t)<Xd}function Vd(){var e=Qd[0];Qd[0]=Qd[1],Qd[1]=e}function Hd(e,t,n,r,i,a,o,s,c,l){if(l>t&&l>r&&l>a&&l>s||l<t&&l<r&&l<a&&l<s)return 0;var u=mi(t,r,a,s,l,Zd);if(u===0)return 0;for(var d=0,f=-1,p=void 0,m=void 0,h=0;h<u;h++){var g=Zd[h],_=g===0||g===1?.5:1;fi(e,n,i,o,g)<c||(f<0&&(f=hi(t,r,a,s,Qd),Qd[1]<Qd[0]&&f>1&&Vd(),p=fi(t,r,a,s,Qd[0]),f>1&&(m=fi(t,r,a,s,Qd[1]))),f===2?g<Qd[0]?d+=p<t?_:-_:g<Qd[1]?d+=m<p?_:-_:d+=s<m?_:-_:g<Qd[0]?d+=p<t?_:-_:d+=s<p?_:-_)}return d}function Ud(e,t,n,r,i,a,o,s){if(s>t&&s>r&&s>a||s<t&&s<r&&s<a)return 0;var c=xi(t,r,a,s,Zd);if(c===0)return 0;var l=Si(t,r,a);if(l>=0&&l<=1){for(var u=0,d=yi(t,r,a,l),f=0;f<c;f++){var p=Zd[f]===0||Zd[f]===1?.5:1,m=yi(e,n,i,Zd[f]);m<o||(Zd[f]<l?u+=d<t?p:-p:u+=a<d?p:-p)}return u}else{var p=Zd[0]===0||Zd[0]===1?.5:1,m=yi(e,n,i,Zd[0]);return m<o?0:a<t?p:-p}}function Wd(e,t,n,r,i,a,o,s){if(s-=t,s>n||s<-n)return 0;var c=Math.sqrt(n*n-s*s);Zd[0]=-c,Zd[1]=c;var l=Math.abs(r-i);if(l<1e-4)return 0;if(l>=Yd-1e-4){r=0,i=Yd;var u=a?1:-1;return o>=Zd[0]+e&&o<=Zd[1]+e?u:0}if(r>i){var d=r;r=i,i=d}r<0&&(r+=Yd,i+=Yd);for(var f=0,p=0;p<2;p++){var m=Zd[p];if(m+e>o){var h=Math.atan2(s,m),u=a?1:-1;h<0&&(h=Yd+h),(h>=r&&h<=i||h+Yd>=r&&h+Yd<=i)&&(h>Math.PI/2&&h<Math.PI*1.5&&(u=-u),f+=u)}}return f}function Gd(e,t,n,r,i){for(var a=e.data,o=e.len(),s=0,c=0,l=0,u=0,d=0,f,p,m=0;m<o;){var h=a[m++],g=m===1;switch(h===Jd.M&&m>1&&(n||(s+=Rd(c,l,u,d,r,i))),g&&(c=a[m],l=a[m+1],u=c,d=l),h){case Jd.M:u=a[m++],d=a[m++],c=u,l=d;break;case Jd.L:if(n){if(Ed(c,l,a[m],a[m+1],t,r,i))return!0}else s+=Rd(c,l,a[m],a[m+1],r,i)||0;c=a[m++],l=a[m++];break;case Jd.C:if(n){if(Od(c,l,a[m++],a[m++],a[m++],a[m++],a[m],a[m+1],t,r,i))return!0}else s+=Hd(c,l,a[m++],a[m++],a[m++],a[m++],a[m],a[m+1],r,i)||0;c=a[m++],l=a[m++];break;case Jd.Q:if(n){if(Ad(c,l,a[m++],a[m++],a[m],a[m+1],t,r,i))return!0}else s+=Ud(c,l,a[m++],a[m++],a[m],a[m+1],r,i)||0;c=a[m++],l=a[m++];break;case Jd.A:var _=a[m++],v=a[m++],y=a[m++],b=a[m++],x=a[m++],S=a[m++];m+=1;var C=!!(1-a[m++]);f=Math.cos(x)*y+_,p=Math.sin(x)*b+v,g?(u=f,d=p):s+=Rd(c,l,f,p,r,i);var w=(r-_)*b/y+_;if(n){if(Fd(_,v,b,x,x+S,C,t,w,i))return!0}else s+=Wd(_,v,b,x,x+S,C,w,i);c=Math.cos(x+S)*y+_,l=Math.sin(x+S)*b+v;break;case Jd.R:u=c=a[m++],d=l=a[m++];var T=a[m++],E=a[m++];if(f=u+T,p=d+E,n){if(Ed(u,d,f,d,t,r,i)||Ed(f,d,f,p,t,r,i)||Ed(f,p,u,p,t,r,i)||Ed(u,p,u,d,t,r,i))return!0}else s+=Rd(f,d,f,p,r,i),s+=Rd(u,p,u,d,r,i);break;case Jd.Z:if(n){if(Ed(c,l,u,d,t,r,i))return!0}else s+=Rd(c,l,u,d,r,i);c=u,l=d;break}}return!n&&!Bd(l,d)&&(s+=Rd(c,l,u,d,r,i)||0),s!==0}function Kd(e,t,n){return Gd(e,0,!1,t,n)}function qd(e,t,n,r){return Gd(e,t,!0,n,r)}var Jd,Yd,Xd,Zd,Qd,$d=n((()=>{Td(),Dd(),kd(),jd(),Ld(),Fi(),zd(),Jd=wd.CMD,Yd=Math.PI*2,Xd=1e-4,Zd=[-1,-1,-1],Qd=[-1,-1]})),ef,tf,nf,rf,af=n((()=>{P(),Wu(),gs(),Td(),$d(),K(),xa(),To(),ei(),Lo(),ef=ze({fill:`#000`,stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:`butt`,miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Lu),tf={style:ze({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Ru.style)},nf=Io.concat([`invisible`,`culling`,`z`,`z2`,`zlevel`,`parent`]),rf=function(e){N(t,e);function t(t){return e.call(this,t)||this}return t.prototype.update=function(){var n=this;e.prototype.update.call(this);var r=this.style;if(r.decal){var i=this._decalEl=this._decalEl||new t;i.buildPath===t.prototype.buildPath&&(i.buildPath=function(e){n.buildPath(e,n.shape)}),i.silent=!0;var a=i.style;for(var o in r)a[o]!==r[o]&&(a[o]=r[o]);a.fill=r.fill?r.decal:null,a.decal=null,a.shadowColor=null,r.strokeFirst&&(a.stroke=null);for(var s=0;s<nf.length;++s)i[nf[s]]=this[nf[s]];i.__dirty|=1}else this._decalEl&&=null},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(t){var n=qe(t);this.shape=this.getDefaultShape();var r=this.getDefaultStyle();r&&this.useStyle(r);for(var i=0;i<n.length;i++){var a=n[i],o=t[a];a===`style`?this.style?I(this.style,o):this.useStyle(o):a===`shape`?I(this.shape,o):e.prototype.attrKV.call(this,a,o)}this.style||this.useStyle({})},t.prototype.getDefaultStyle=function(){return null},t.prototype.getDefaultShape=function(){return{}},t.prototype.canBeInsideText=function(){return this.hasFill()},t.prototype.getInsideTextFill=function(){var e=this.style.fill;if(e!==`none`){if(V(e)){var t=fa(e,0);return t>.5?So:t>.2?wo:Co}else if(e)return Co}return So},t.prototype.getInsideTextStroke=function(e){var t=this.style.fill;if(V(t)){var n=this.__zr;if(!!(n&&n.isDarkMode())==fa(e,0)<.4)return t}},t.prototype.buildPath=function(e,t,n){},t.prototype.pathUpdated=function(){this.__dirty&=-5},t.prototype.getUpdatedPathProxy=function(e){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,e),this.path},t.prototype.createPathProxy=function(){this.path=new wd(!1)},t.prototype.hasStroke=function(){var e=this.style,t=e.stroke;return!(t==null||t===`none`||!(e.lineWidth>0))},t.prototype.hasFill=function(){var e=this.style.fill;return e!=null&&e!==`none`},t.prototype.getBoundingRect=function(){var e=this._rect,t=this.style,n=!e;if(n){var r=!1;this.path||(r=!0,this.createPathProxy());var i=this.path;(r||this.__dirty&4)&&(i.beginPath(),this.buildPath(i,this.shape,!1),this.pathUpdated()),e=i.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var a=this._rectStroke||=e.clone();if(this.__dirty||n){a.copy(e);var o=t.strokeNoScale?this.getLineScale():1,s=t.lineWidth;if(!this.hasFill()){var c=this.strokeContainThreshold;s=Math.max(s,c??4)}o>1e-10&&(a.width+=s/o,a.height+=s/o,a.x-=s/o/2,a.y-=s/o/2)}return a}return e},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),r=this.getBoundingRect(),i=this.style;if(e=n[0],t=n[1],r.contain(e,t)){var a=this.path;if(this.hasStroke()){var o=i.lineWidth,s=i.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(o=Math.max(o,this.strokeContainThreshold)),qd(a,o/s,e,t)))return!0}if(this.hasFill())return Kd(a,e,t)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=4,this._rect&&=null,this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate(`shape`,e)},t.prototype.updateDuringAnimation=function(e){e===`style`?this.dirtyStyle():e===`shape`?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(t,n){t===`shape`?this.setShape(n):e.prototype.attrKV.call(this,t,n)},t.prototype.setShape=function(e,t){var n=this.shape;return n||=this.shape={},typeof e==`string`?n[e]=t:I(n,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&4)},t.prototype.createStyle=function(e){return mt(ef,e)},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.shape&&!n.shape&&(n.shape=I({},this.shape))},t.prototype._applyStateObj=function(t,n,r,i,a,o){if(e.prototype._applyStateObj.call(this,t,n,r,i,a,o),this.__inHover!==1){var s=!(n&&i),c;if(n&&n.shape?a?i?c=n.shape:(c=I({},r.shape),I(c,n.shape)):(c=I({},i?this.shape:r.shape),I(c,n.shape)):s&&(c=r.shape),c)if(a){this.shape=I({},this.shape);for(var l={},u=qe(c),d=0;d<u.length;d++){var f=u[d];typeof c[f]==`object`?this.shape[f]=c[f]:l[f]=c[f]}this._transitionState(t,{shape:l},o)}else this.shape=c,this.dirtyShape()}},t.prototype._mergeStates=function(t){for(var n=e.prototype._mergeStates.call(this,t),r,i=0;i<t.length;i++){var a=t[i];a.shape&&(r||={},this._mergeStyle(r,a.shape))}return r&&(n.shape=r),n},t.prototype.getAnimationStyleProps=function(){return tf},t.prototype.isZeroArea=function(){return!1},t.extend=function(e){var n=function(t){N(n,t);function n(n){var r=t.call(this,n)||this;return e.init&&e.init.call(r,n),r}return n.prototype.getDefaultStyle=function(){return Fe(e.style)},n.prototype.getDefaultShape=function(){return Fe(e.shape)},n}(t);for(var r in e)typeof e[r]==`function`&&(n.prototype[r]=e[r]);return n},t.initDefaultProps=(function(){var e=t.prototype;e.type=`path`,e.strokeContainThreshold=5,e.segmentIgnoreThreshold=0,e.subPixelOptimize=!1,e.autoBatch=!1,e.__dirty=7})(),t}(Vu)})),of,sf,cf=n((()=>{P(),Wu(),af(),K(),je(),Pu(),of=ze({strokeFirst:!0,font:Te,x:0,y:0,textAlign:`left`,textBaseline:`top`,miterLimit:2},ef),sf=function(e){N(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.hasStroke=function(){return Eu(this.style)},t.prototype.hasFill=function(){var e=this.style.fill;return e!=null&&e!==`none`},t.prototype.createStyle=function(e){return mt(of,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){return this._rect||=wu(this.style),this._rect},t.initDefaultProps=(function(){var e=t.prototype;e.dirtyRectTolerance=10})(),t}(Vu),sf.prototype.type=`tspan`}));function lf(e){return!!(e&&typeof e!=`string`&&e.width&&e.height)}var uf,df,ff,pf=n((()=>{P(),Wu(),Ar(),K(),uf=ze({x:0,y:0},Lu),df={style:ze({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Ru.style)},ff=function(e){N(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(e){return mt(uf,e)},t.prototype._getSize=function(e){var t=this.style,n=t[e];if(n!=null)return n;var r=lf(t.image)?t.image:this.__image;if(!r)return 0;var i=e===`width`?`height`:`width`,a=t[i];return a==null?r[e]:r[e]/r[i]*a},t.prototype.getWidth=function(){return this._getSize(`width`)},t.prototype.getHeight=function(){return this._getSize(`height`)},t.prototype.getAnimationStyleProps=function(){return df},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||=new J(e.x||0,e.y||0,this.getWidth(),this.getHeight()),this._rect},t}(Vu),ff.prototype.type=`image`}));function mf(e,t){var n=t.x,r=t.y,i=t.width,a=t.height,o=t.r,s,c,l,u;i<0&&(n+=i,i=-i),a<0&&(r+=a,a=-a),typeof o==`number`?s=c=l=u=o:o instanceof Array?o.length===1?s=c=l=u=o[0]:o.length===2?(s=l=o[0],c=u=o[1]):o.length===3?(s=o[0],c=u=o[1],l=o[2]):(s=o[0],c=o[1],l=o[2],u=o[3]):s=c=l=u=0;var d;s+c>i&&(d=s+c,s*=i/d,c*=i/d),l+u>i&&(d=l+u,l*=i/d,u*=i/d),c+l>a&&(d=c+l,c*=a/d,l*=a/d),s+u>a&&(d=s+u,s*=a/d,u*=a/d),e.moveTo(n+s,r),e.lineTo(n+i-c,r),c!==0&&e.arc(n+i-c,r+c,c,-Math.PI/2,0),e.lineTo(n+i,r+a-l),l!==0&&e.arc(n+i-l,r+a-l,l,0,Math.PI/2),e.lineTo(n+u,r+a),u!==0&&e.arc(n+u,r+a-u,u,Math.PI/2,Math.PI),e.lineTo(n,r+s),s!==0&&e.arc(n+s,r+s,s,Math.PI,Math.PI*1.5),e.closePath()}var hf=n((()=>{}));function gf(e,t,n){if(t){var r=t.x1,i=t.x2,a=t.y1,o=t.y2;e.x1=r,e.x2=i,e.y1=a,e.y2=o;var s=n&&n.lineWidth;return s?(yf(r*2)===yf(i*2)&&(e.x1=e.x2=vf(r,s,!0)),yf(a*2)===yf(o*2)&&(e.y1=e.y2=vf(a,s,!0)),e):e}}function _f(e,t,n){if(t){var r=t.x,i=t.y,a=t.width,o=t.height;e.x=r,e.y=i,e.width=a,e.height=o;var s=n&&n.lineWidth;return s?(e.x=vf(r,s,!0),e.y=vf(i,s,!0),e.width=Math.max(vf(r+a,s,!1)-e.x,a===0?0:1),e.height=Math.max(vf(i+o,s,!1)-e.y,o===0?0:1),e):e}}function vf(e,t,n){if(!t)return e;var r=yf(e*2);return(r+yf(t))%2==0?r/2:(r+(n?1:-1))/2}var yf,bf=n((()=>{yf=Math.round})),xf,Sf,Cf,wf=n((()=>{P(),af(),hf(),bf(),xf=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),Sf={},Cf=function(e){N(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new xf},t.prototype.buildPath=function(e,t){var n,r,i,a;if(this.subPixelOptimize){var o=_f(Sf,t,this.style);n=o.x,r=o.y,i=o.width,a=o.height,o.r=t.r,t=o}else n=t.x,r=t.y,i=t.width,a=t.height;t.r?mf(e,t):e.rect(n,r,i,a)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(rf),Cf.prototype.type=`rect`}));function Tf(e){return typeof e==`string`&&(e.indexOf(`px`)!==-1||e.indexOf(`rem`)!==-1||e.indexOf(`em`)!==-1)?e:isNaN(+e)?`12px`:e+`px`}function Ef(e,t){for(var n=0;n<Hf.length;n++){var r=Hf[n],i=t[r];i!=null&&(e[r]=i)}}function Df(e){return e.fontSize!=null||e.fontFamily||e.fontWeight}function Of(e){return kf(e),L(e.rich,kf),e}function kf(e){if(e){e.font=zf.makeFont(e);var t=e.align;t===`middle`&&(t=`center`),e.align=t==null||Bf[t]?t:`left`;var n=e.verticalAlign;n===`center`&&(n=`middle`),e.verticalAlign=n==null||Vf[n]?n:`top`,e.padding&&=ct(e.padding)}}function Af(e,t){return e==null||t<=0||e===`transparent`||e===`none`?null:e.image||e.colorStops?`#000`:e}function jf(e){return e==null||e===`none`?null:e.image||e.colorStops?`#000`:e}function Mf(e,t,n){return t===`right`?e-n[1]:t===`center`?e+n[3]/2-n[1]/2:e+n[3]}function Nf(e){var t=e.text;return t!=null&&(t+=``),t}function Pf(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}var Ff,If,Lf,Rf,zf,Bf,Vf,Hf,Uf=n((()=>{P(),Pu(),cf(),K(),Qo(),pf(),wf(),Ar(),Wu(),je(),Ff={fill:`#000`},If=2,Lf={},Rf={style:ze({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},Ru.style)},zf=function(e){N(t,e);function t(t){var n=e.call(this)||this;return n.type=`text`,n._children=[],n._defaultStyle=Ff,n.attr(t),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t<this._children.length;t++){var n=this._children[t];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},t.prototype.updateTransform=function(){var t=this.innerTransformable;t?(t.updateTransform(),t.transform&&(this.transform=t.transform)):e.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(t){var n=this.innerTransformable;return n?n.getLocalTransform(t):e.prototype.getLocalTransform.call(this,t)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),e.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){this._childCursor=0,Of(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(t){e.prototype.addSelfToZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].__zr=t},t.prototype.removeSelfFromZr=function(t){e.prototype.removeSelfFromZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var e=new J(0,0,0,0),t=this._children,n=[],r=null,i=0;i<t.length;i++){var a=t[i],o=a.getBoundingRect(),s=a.getLocalTransform(n);s?(e.copy(o),e.applyTransform(s),r||=e.clone(),r.union(e)):(r||=o.clone(),r.union(o))}this._rect=r||e}return this._rect},t.prototype.setDefaultTextStyle=function(e){this._defaultStyle=e||Ff},t.prototype.setTextContent=function(e){if(process.env.NODE_ENV!==`production`)throw Error(`Can't attach text on another text`)},t.prototype._mergeStyle=function(e,t){if(!t)return e;var n=t.rich,r=e.rich||n&&{};return I(e,t),n&&r?(this._mergeRich(r,n),e.rich=r):r&&(e.rich=r),e},t.prototype._mergeRich=function(e,t){for(var n=qe(t),r=0;r<n.length;r++){var i=n[r];e[i]=e[i]||{},I(e[i],t[i])}},t.prototype.getAnimationStyleProps=function(){return Rf},t.prototype._getOrCreateChild=function(e){var t=this._children[this._childCursor];return(!t||!(t instanceof e))&&(t=new e),this._children[this._childCursor++]=t,t.__zr=this.__zr,t.parent=this,t},t.prototype._updatePlainTexts=function(){var e=this.style,t=e.font||`12px sans-serif`,n=e.padding,r=this._defaultStyle,i=e.x||0,a=e.y||0,o=e.align||r.align||`left`,s=e.verticalAlign||r.verticalAlign||`top`;Su(Lf,r.overflowRect,i,a,o,s),i=Lf.baseX,a=Lf.baseY;var c=gu(Nf(e),e,Lf.outerWidth,Lf.outerHeight),l=Pf(e),u=!!e.backgroundColor,d=c.outerHeight,f=c.outerWidth,p=c.lines,m=c.lineHeight;this.isTruncated=!!c.isTruncated;var h=i,g=Go(a,c.contentHeight,s);if(l||n){var _=Wo(i,f,o),v=Go(a,d,s);l&&this._renderBackground(e,e,_,v,f,d)}g+=m/2,n&&(h=Mf(i,o,n),s===`top`?g+=n[0]:s===`bottom`&&(g-=n[2]));for(var y=0,b=!1,x=!1,S=jf(`fill`in e?e.fill:(x=!0,r.fill)),C=Af(`stroke`in e?e.stroke:!u&&(!r.autoStroke||x)?(y=If,b=!0,r.stroke):null),w=e.textShadowBlur>0,T=0;T<p.length;T++){var E=this._getOrCreateChild(sf),D=E.createStyle();E.useStyle(D),D.text=p[T],D.x=h,D.y=g,o&&(D.textAlign=o),D.textBaseline=`middle`,D.opacity=e.opacity,D.strokeFirst=!0,w&&(D.shadowBlur=e.textShadowBlur||0,D.shadowColor=e.textShadowColor||`transparent`,D.shadowOffsetX=e.textShadowOffsetX||0,D.shadowOffsetY=e.textShadowOffsetY||0),D.stroke=C,D.fill=S,C&&(D.lineWidth=e.lineWidth||y,D.lineDash=e.lineDash,D.lineDashOffset=e.lineDashOffset||0),D.font=t,Ef(D,e),g+=m,E.setBoundingRect(Tu(D,c.contentWidth,c.calculatedLineHeight,b?0:null))}},t.prototype._updateRichTexts=function(){var e=this.style,t=this._defaultStyle,n=e.align||t.align,r=e.verticalAlign||t.verticalAlign,i=e.x||0,a=e.y||0;Su(Lf,t.overflowRect,i,a,n,r),i=Lf.baseX,a=Lf.baseY;var o=_u(Nf(e),e,Lf.outerWidth,Lf.outerHeight,n),s=o.width,c=o.outerWidth,l=o.outerHeight,u=e.padding;this.isTruncated=!!o.isTruncated;var d=Wo(i,c,n),f=Go(a,l,r),p=d,m=f;u&&(p+=u[3],m+=u[0]);var h=p+s;Pf(e)&&this._renderBackground(e,e,d,f,c,l);for(var g=!!e.backgroundColor,_=0;_<o.lines.length;_++){for(var v=o.lines[_],y=v.tokens,b=y.length,x=v.lineHeight,S=v.width,C=0,w=p,T=h,E=b-1,D=void 0;C<b&&(D=y[C],!D.align||D.align===`left`);)this._placeToken(D,e,x,m,w,`left`,g),S-=D.width,w+=D.width,C++;for(;E>=0&&(D=y[E],D.align===`right`);)this._placeToken(D,e,x,m,T,`right`,g),S-=D.width,T-=D.width,E--;for(w+=(s-(w-p)-(h-T)-S)/2;C<=E;)D=y[C],this._placeToken(D,e,x,m,w+D.width/2,`center`,g),w+=D.width,C++;m+=x}},t.prototype._placeToken=function(e,t,n,r,i,a,o){var s=t.rich[e.styleName]||{};s.text=e.text;var c=e.verticalAlign,l=r+n/2;c===`top`?l=r+e.height/2:c===`bottom`&&(l=r+n-e.height/2),!e.isLineHolder&&Pf(s)&&this._renderBackground(s,t,a===`right`?i-e.width:a===`center`?i-e.width/2:i,l-e.height/2,e.width,e.height);var u=!!s.backgroundColor,d=e.textPadding;d&&(i=Mf(i,a,d),l-=e.height/2-d[0]-e.innerHeight/2);var f=this._getOrCreateChild(sf),p=f.createStyle();f.useStyle(p);var m=this._defaultStyle,h=!1,g=0,_=!1,v=jf(`fill`in s?s.fill:`fill`in t?t.fill:(h=!0,m.fill)),y=Af(`stroke`in s?s.stroke:`stroke`in t?t.stroke:!u&&!o&&(!m.autoStroke||h)?(g=If,_=!0,m.stroke):null),b=s.textShadowBlur>0||t.textShadowBlur>0;p.text=e.text,p.x=i,p.y=l,b&&(p.shadowBlur=s.textShadowBlur||t.textShadowBlur||0,p.shadowColor=s.textShadowColor||t.textShadowColor||`transparent`,p.shadowOffsetX=s.textShadowOffsetX||t.textShadowOffsetX||0,p.shadowOffsetY=s.textShadowOffsetY||t.textShadowOffsetY||0),p.textAlign=a,p.textBaseline=`middle`,p.font=e.font||`12px sans-serif`,p.opacity=ot(s.opacity,t.opacity,1),Ef(p,s),y&&(p.lineWidth=ot(s.lineWidth,t.lineWidth,g),p.lineDash=U(s.lineDash,t.lineDash),p.lineDashOffset=t.lineDashOffset||0,p.stroke=y),v&&(p.fill=v),f.setBoundingRect(Tu(p,e.contentWidth,e.contentHeight,_?0:null))},t.prototype._renderBackground=function(e,t,n,r,i,a){var o=e.backgroundColor,s=e.borderWidth,c=e.borderColor,l=o&&o.image,u=o&&!l,d=e.borderRadius,f=this,p,m;if(u||e.lineHeight||s&&c){p=this._getOrCreateChild(Cf),p.useStyle(p.createStyle()),p.style.fill=null;var h=p.shape;h.x=n,h.y=r,h.width=i,h.height=a,h.r=d,p.dirtyShape()}if(u){var g=p.style;g.fill=o||null,g.fillOpacity=U(e.fillOpacity,1)}else if(l){m=this._getOrCreateChild(ff),m.onload=function(){f.dirtyStyle()};var _=m.style;_.image=o.image,_.x=n,_.y=r,_.width=i,_.height=a}if(s&&c){var g=p.style;g.lineWidth=s,g.stroke=c,g.strokeOpacity=U(e.strokeOpacity,1),g.lineDash=e.borderDash,g.lineDashOffset=e.borderDashOffset||0,p.strokeContainThreshold=0,p.hasFill()&&p.hasStroke()&&(g.strokeFirst=!0,g.lineWidth*=2)}var v=(p||m).style;v.shadowBlur=e.shadowBlur||0,v.shadowColor=e.shadowColor||`transparent`,v.shadowOffsetX=e.shadowOffsetX||0,v.shadowOffsetY=e.shadowOffsetY||0,v.opacity=ot(e.opacity,t.opacity,1)},t.makeFont=function(e){var t=``;return Df(e)&&(t=[e.fontStyle,e.fontWeight,Tf(e.fontSize),e.fontFamily||`sans-serif`].join(` `)),t&<(t)||e.textFont||e.font},t}(Vu),Bf={left:!0,right:1,center:1},Vf={top:1,bottom:1,middle:1},Hf=[`fontStyle`,`fontWeight`,`fontSize`,`fontFamily`]})),Wf,Gf,Kf=n((()=>{X(),Wf=ol(),Gf=function(e,t,n,r){if(r){var i=Wf(r);i.dataIndex=n,i.dataType=t,i.seriesIndex=e,i.ssrType=`chart`,r.type===`group`&&r.traverse(function(r){var i=Wf(r);i.seriesIndex=e,i.dataIndex=n,i.dataType=t,i.ssrType=`chart`})}}})),qf,Jf,Yf,Xf,Zf,Qf,$f,ep,tp=n((()=>{K(),qf=G([`tooltip`,`label`,`itemName`,`itemId`,`itemGroupId`,`itemChildGroupId`,`seriesName`]),Jf=`original`,Yf=`arrayRows`,Xf=`objectRows`,Zf=`keyedColumns`,Qf=`typedArray`,$f=`unknown`,ep=`column`}));function np(e,t){return t.mainType===`series`?e.getViewOfSeriesModel(t):e.getViewOfComponentModel(t)}var rp,ip,ap=n((()=>{K(),tp(),rp=[`getDom`,`getZr`,`getWidth`,`getHeight`,`getDevicePixelRatio`,`dispatchAction`,`isSSR`,`isDisposed`,`on`,`off`,`getDataURL`,`getConnectedDataURL`,`getOption`,`getId`,`updateLabelLayout`],ip=function(){function e(e){L(rp,function(t){this[t]=Mt(e[t],e)},this)}return e}()}));function op(e){return e!=null&&e!==`none`}function sp(e,t,n){e.onHoverStateChange&&(e.hoverState||0)!==n&&e.onHoverStateChange(t),e.hoverState=n}function cp(e){sp(e,`emphasis`,2)}function lp(e){e.hoverState===2&&sp(e,`normal`,0)}function up(e){sp(e,`blur`,1)}function dp(e){e.hoverState===1&&sp(e,`normal`,0)}function fp(e){e.selected=!0}function pp(e){e.selected=!1}function mp(e,t,n){t(e,n)}function hp(e,t,n){mp(e,t,n),e.isGroup&&e.traverse(function(e){mp(e,t,n)})}function gp(e,t){switch(t){case`emphasis`:e.hoverState=2;break;case`normal`:e.hoverState=0;break;case`blur`:e.hoverState=1;break;case`select`:e.selected=!0}}function _p(e,t,n,r){for(var i=e.style,a={},o=0;o<t.length;o++){var s=t[o];a[s]=i[s]??(r&&r[s])}for(var o=0;o<e.animators.length;o++){var c=e.animators[o];c.__fromStateTransition&&c.__fromStateTransition.indexOf(n)<0&&c.targetName===`style`&&c.saveTo(a,t)}return a}function vp(e,t,n,r){var i=n&&Be(n,`select`)>=0,a=!1;if(e instanceof rf){var o=tm(e),s=i&&o.selectFill||o.normalFill,c=i&&o.selectStroke||o.normalStroke;if(op(s)||op(c)){r||={};var l=r.style||{};l.fill===`inherit`?(a=!0,r=I({},r),l=I({},l),l.fill=s):!op(l.fill)&&op(s)?(a=!0,r=I({},r),l=I({},l),l.fill=ma(s)):!op(l.stroke)&&op(c)&&(a||(r=I({},r),l=I({},l)),l.stroke=ma(c)),r.style=l}}if(r&&r.z2==null){a||(r=I({},r));var u=e.z2EmphasisLift;r.z2=e.z2+(u??10)}return r}function yp(e,t,n){if(n&&n.z2==null){n=I({},n);var r=e.z2SelectLift;n.z2=e.z2+(r??9)}return n}function bp(e,t,n){var r=Be(e.currentStates,t)>=0,i=e.style.opacity,a=r?null:_p(e,[`opacity`],t,{opacity:1});n||={};var o=n.style||{};return o.opacity??(n=I({},n),o=I({opacity:r?i:a.opacity*.1},o),n.style=o),n}function xp(e,t){var n=this.states[e];if(this.style){if(e===`emphasis`)return vp(this,e,t,n);if(e===`blur`)return bp(this,e,n);if(e===`select`)return yp(this,e,n)}return n}function Sp(e){e.stateProxy=xp;var t=e.getTextContent(),n=e.getTextGuideLine();t&&(t.stateProxy=xp),n&&(n.stateProxy=xp)}function Cp(e,t){!jp(e,t)&&!e.__highByOuter&&hp(e,cp)}function wp(e,t){!jp(e,t)&&!e.__highByOuter&&hp(e,lp)}function Tp(e,t){e.__highByOuter|=1<<(t||0),hp(e,cp)}function Ep(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&hp(e,lp)}function Dp(e){hp(e,up)}function Op(e){hp(e,dp)}function kp(e){hp(e,fp)}function Ap(e){hp(e,pp)}function jp(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function Mp(e){var t=e.getModel(),n=[],r=[];t.eachComponent(function(t,i){var a=nm(i),o=np(e,i),s=t===`series`;!s&&r.push(o),a.isBlured&&(o.group.traverse(function(e){dp(e)}),s&&n.push(i)),a.isBlured=!1}),L(r,function(e){e&&e.toggleBlurSeries&&e.toggleBlurSeries(n,!1,t)})}function Np(e,t,n,r){var i=r.getModel();n||=`coordinateSystem`;function a(e,t){for(var n=0;n<t.length;n++){var r=e.getItemGraphicEl(t[n]);r&&Op(r)}}if(e!=null&&!(!t||t===`none`)){var o=i.getSeriesByIndex(e),s=o.coordinateSystem;s&&s.master&&(s=s.master);var c=[];i.eachSeries(function(e){var i=o===e,l=e.coordinateSystem;if(l&&l.master&&(l=l.master),!(n===`series`&&!i||n===`coordinateSystem`&&!(l&&s?l===s:i)||t===`series`&&i)){if(r.getViewOfSeriesModel(e).group.traverse(function(e){e.__highByOuter&&i&&t===`self`||up(e)}),Ue(t))a(e.getData(),t);else if(H(t))for(var u=qe(t),d=0;d<u.length;d++)a(e.getData(u[d]),t[u[d]]);c.push(e),nm(e).isBlured=!0}}),i.eachComponent(function(e,t){if(e!==`series`){var n=r.getViewOfComponentModel(t);n&&n.toggleBlurSeries&&n.toggleBlurSeries(c,!0,i)}})}}function Pp(e,t,n){if(!(e==null||t==null)){var r=n.getModel().getComponent(e,t);if(r){nm(r).isBlured=!0;var i=n.getViewOfComponentModel(r);!i||!i.focusBlurEnabled||i.group.traverse(function(e){up(e)})}}}function Fp(e,t,n){var r=e.seriesIndex,i=e.getData(t.dataType);if(!i){process.env.NODE_ENV!==`production`&&kc(`Unknown dataType `+t.dataType);return}var a=al(i,t);a=(z(a)?a[0]:a)||0;var o=i.getItemGraphicEl(a);if(!o)for(var s=i.count(),c=0;!o&&c<s;)o=i.getItemGraphicEl(c++);if(o){var l=Wf(o);Np(r,l.focus,l.blurScope,n)}else{var u=e.get([`emphasis`,`focus`]),d=e.get([`emphasis`,`blurScope`]);u!=null&&Np(r,u,d,n)}}function Ip(e,t,n,r){var i={focusSelf:!1,dispatchers:null};if(e==null||e===`series`||t==null||n==null)return i;var a=r.getModel().getComponent(e,t);if(!a)return i;var o=r.getViewOfComponentModel(a);if(!o||!o.findHighDownDispatchers)return i;for(var s=o.findHighDownDispatchers(n),c,l=0;l<s.length;l++)if(process.env.NODE_ENV!==`production`&&!Jp(s[l])&&kc(`param should be highDownDispatcher`),Wf(s[l]).focus===`self`){c=!0;break}return{focusSelf:c,dispatchers:s}}function Lp(e,t,n){process.env.NODE_ENV!==`production`&&!Jp(e)&&kc(`param should be highDownDispatcher`);var r=Wf(e),i=Ip(r.componentMainType,r.componentIndex,r.componentHighDownName,n),a=i.dispatchers,o=i.focusSelf;a?(o&&Pp(r.componentMainType,r.componentIndex,n),L(a,function(e){return Cp(e,t)})):(Np(r.seriesIndex,r.focus,r.blurScope,n),r.focus===`self`&&Pp(r.componentMainType,r.componentIndex,n),Cp(e,t))}function Rp(e,t,n){process.env.NODE_ENV!==`production`&&!Jp(e)&&kc(`param should be highDownDispatcher`),Mp(n);var r=Wf(e),i=Ip(r.componentMainType,r.componentIndex,r.componentHighDownName,n).dispatchers;i?L(i,function(e){return wp(e,t)}):wp(e,t)}function zp(e,t,n){if(Xp(t)){var r=t.dataType,i=al(e.getData(r),t);z(i)||(i=[i]),e[t.type===`toggleSelect`?`toggleSelect`:t.type===`select`?`select`:`unselect`](i,r)}}function Bp(e){L(e.getAllData(),function(t){var n=t.data,r=t.type;n.eachItemGraphicEl(function(t,n){e.isSelected(n,r)?kp(t):Ap(t)})})}function Vp(e){var t=[];return e.eachSeries(function(e){L(e.getAllData(),function(n){n.data;var r=n.type,i=e.getSelectedDataIndices();if(i.length>0){var a={dataIndex:i,seriesIndex:e.seriesIndex};r!=null&&(a.dataType=r),t.push(a)}})}),t}function Hp(e,t,n){qp(e,!0),hp(e,Sp),Gp(e,t,n)}function Up(e){qp(e,!1)}function Wp(e,t,n,r){r?Up(e):Hp(e,t,n)}function Gp(e,t,n){var r=Wf(e);t==null?r.focus&&=null:(r.focus=t,r.blurScope=n)}function Kp(e,t,n,r){n||=`itemStyle`;for(var i=0;i<dm.length;i++){var a=dm[i],o=t.getModel([a,n]),s=e.ensureState(a);s.style=r?r(o):o[fm[n]]()}}function qp(e,t){var n=t===!1,r=e;e.highDownSilentOnTouch&&(r.__highDownSilentOnTouch=e.highDownSilentOnTouch),(!n||r.__highDownDispatcher)&&(r.__highByOuter=r.__highByOuter||0,r.__highDownDispatcher=!n)}function Jp(e){return!!(e&&e.__highDownDispatcher)}function Yp(e){var t=em[e];return t==null&&$p<=32&&(t=em[e]=$p++),t}function Xp(e){var t=e.type;return t===`select`||t===`unselect`||t===`toggleSelect`}function Zp(e){var t=e.type;return t===`highlight`||t===`downplay`}function Qp(e){var t=tm(e);t.normalFill=e.style.fill,t.normalStroke=e.style.stroke;var n=e.states.select||{};t.selectFill=n.style&&n.style.fill||null,t.selectStroke=n.style&&n.style.stroke||null}var $p,em,tm,nm,rm,im,am,om,sm,cm,lm,um,dm,fm,pm=n((()=>{K(),Kf(),xa(),X(),af(),ap(),Lc(),$p=1,em={},tm=ol(),nm=ol(),rm=[`emphasis`,`blur`,`select`],im=[`normal`,`emphasis`,`blur`,`select`],am=`highlight`,om=`downplay`,sm=`select`,cm=`unselect`,lm=`toggleSelect`,um=`selectchanged`,dm=[`emphasis`,`blur`,`select`],fm={itemStyle:`getItemStyle`,lineStyle:`getLineStyle`,areaStyle:`getAreaStyle`}}));function mm(e,t){if(t){var n=e.data,r=e.len(),i,a,o,s,c,l,u=hm.M,d=hm.C,f=hm.L,p=hm.R,m=hm.A,h=hm.Q;for(o=0,s=0;o<r;){switch(i=n[o++],s=o,a=0,i){case u:a=1;break;case f:a=1;break;case d:a=3;break;case h:a=2;break;case m:var g=t[4],_=t[5],v=_m(t[0]*t[0]+t[1]*t[1]),y=_m(t[2]*t[2]+t[3]*t[3]),b=vm(-t[1]/y,t[0]/v);n[o]*=v,n[o++]+=g,n[o]*=y,n[o++]+=_,n[o++]*=v,n[o++]*=y,n[o++]+=b,n[o++]+=b,o+=2,s=o;break;case p:l[0]=n[o++],l[1]=n[o++],an(l,l,t),n[s++]=l[0],n[s++]=l[1],l[0]+=n[o++],l[1]+=n[o++],an(l,l,t),n[s++]=l[0],n[s++]=l[1]}for(c=0;c<a;c++){var x=gm[c];x[0]=n[o++],x[1]=n[o++],an(x,x,t),n[s++]=x[0],n[s++]=x[1]}}e.increaseVersion()}}var hm,gm,_m,vm,ym=n((()=>{Td(),fn(),hm=wd.CMD,gm=[[],[],[]],_m=Math.sqrt,vm=Math.atan2}));function bm(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function xm(e,t){return(e[0]*t[0]+e[1]*t[1])/(bm(e)*bm(t))}function Sm(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(xm(e,t))}function Cm(e,t,n,r,i,a,o,s,c,l,u){var d=Nm/180*c,f=Mm(d)*(e-n)/2+jm(d)*(t-r)/2,p=-1*jm(d)*(e-n)/2+Mm(d)*(t-r)/2,m=f*f/(o*o)+p*p/(s*s);m>1&&(o*=Am(m),s*=Am(m));var h=(i===a?-1:1)*Am((o*o*(s*s)-o*o*(p*p)-s*s*(f*f))/(o*o*(p*p)+s*s*(f*f)))||0,g=h*o*p/s,_=h*-s*f/o,v=(e+n)/2+Mm(d)*g-jm(d)*_,y=(t+r)/2+jm(d)*g+Mm(d)*_,b=Sm([1,0],[(f-g)/o,(p-_)/s]),x=[(f-g)/o,(p-_)/s],S=[(-1*f-g)/o,(-1*p-_)/s],C=Sm(x,S);if(xm(x,S)<=-1&&(C=Nm),xm(x,S)>=1&&(C=0),C<0){var w=Math.round(C/Nm*1e6)/1e6;C=Nm*2+w%2*Nm}u.addData(l,v,y,o,s,b,C,d,a)}function wm(e){var t=new wd;if(!e)return t;var n=0,r=0,i=n,a=r,o,s=wd.CMD,c=e.match(Pm);if(!c)return t;for(var l=0;l<c.length;l++){for(var u=c[l],d=u.charAt(0),f=void 0,p=u.match(Fm)||[],m=p.length,h=0;h<m;h++)p[h]=parseFloat(p[h]);for(var g=0;g<m;){var _=void 0,v=void 0,y=void 0,b=void 0,x=void 0,S=void 0,C=void 0,w=n,T=r,E=void 0,D=void 0;switch(d){case`l`:n+=p[g++],r+=p[g++],f=s.L,t.addData(f,n,r);break;case`L`:n=p[g++],r=p[g++],f=s.L,t.addData(f,n,r);break;case`m`:n+=p[g++],r+=p[g++],f=s.M,t.addData(f,n,r),i=n,a=r,d=`l`;break;case`M`:n=p[g++],r=p[g++],f=s.M,t.addData(f,n,r),i=n,a=r,d=`L`;break;case`h`:n+=p[g++],f=s.L,t.addData(f,n,r);break;case`H`:n=p[g++],f=s.L,t.addData(f,n,r);break;case`v`:r+=p[g++],f=s.L,t.addData(f,n,r);break;case`V`:r=p[g++],f=s.L,t.addData(f,n,r);break;case`C`:f=s.C,t.addData(f,p[g++],p[g++],p[g++],p[g++],p[g++],p[g++]),n=p[g-2],r=p[g-1];break;case`c`:f=s.C,t.addData(f,p[g++]+n,p[g++]+r,p[g++]+n,p[g++]+r,p[g++]+n,p[g++]+r),n+=p[g-2],r+=p[g-1];break;case`S`:_=n,v=r,E=t.len(),D=t.data,o===s.C&&(_+=n-D[E-4],v+=r-D[E-3]),f=s.C,w=p[g++],T=p[g++],n=p[g++],r=p[g++],t.addData(f,_,v,w,T,n,r);break;case`s`:_=n,v=r,E=t.len(),D=t.data,o===s.C&&(_+=n-D[E-4],v+=r-D[E-3]),f=s.C,w=n+p[g++],T=r+p[g++],n+=p[g++],r+=p[g++],t.addData(f,_,v,w,T,n,r);break;case`Q`:w=p[g++],T=p[g++],n=p[g++],r=p[g++],f=s.Q,t.addData(f,w,T,n,r);break;case`q`:w=p[g++]+n,T=p[g++]+r,n+=p[g++],r+=p[g++],f=s.Q,t.addData(f,w,T,n,r);break;case`T`:_=n,v=r,E=t.len(),D=t.data,o===s.Q&&(_+=n-D[E-4],v+=r-D[E-3]),n=p[g++],r=p[g++],f=s.Q,t.addData(f,_,v,n,r);break;case`t`:_=n,v=r,E=t.len(),D=t.data,o===s.Q&&(_+=n-D[E-4],v+=r-D[E-3]),n+=p[g++],r+=p[g++],f=s.Q,t.addData(f,_,v,n,r);break;case`A`:y=p[g++],b=p[g++],x=p[g++],S=p[g++],C=p[g++],w=n,T=r,n=p[g++],r=p[g++],f=s.A,Cm(w,T,n,r,S,C,y,b,x,f,t);break;case`a`:y=p[g++],b=p[g++],x=p[g++],S=p[g++],C=p[g++],w=n,T=r,n+=p[g++],r+=p[g++],f=s.A,Cm(w,T,n,r,S,C,y,b,x,f,t);break}}(d===`z`||d===`Z`)&&(f=s.Z,t.addData(f),n=i,r=a),o=f}return t.toStatic(),t}function Tm(e){return e.setData!=null}function Em(e,t){var n=wm(e),r=I({},t);return r.buildPath=function(e){var t=Tm(e);if(t&&e.canSave()){e.appendPath(n);var r=e.getContext();r&&e.rebuildPath(r,1)}else{var r=t?e.getContext():e;r&&n.rebuildPath(r,1)}},r.applyTransform=function(e){mm(n,e),this.dirtyShape()},r}function Dm(e,t){return new Im(Em(e,t))}function Om(e,t){var n=Em(e,t);return function(e){N(t,e);function t(t){var r=e.call(this,t)||this;return r.applyTransform=n.applyTransform,r.buildPath=n.buildPath,r}return t}(Im)}function km(e,t){for(var n=[],r=e.length,i=0;i<r;i++){var a=e[i];n.push(a.getUpdatedPathProxy(!0))}var o=new rf(t);return o.createPathProxy(),o.buildPath=function(e){if(Tm(e)){e.appendPath(n);var t=e.getContext();t&&e.rebuildPath(t,1)}},o}var Am,jm,Mm,Nm,Pm,Fm,Im,Lm=n((()=>{P(),af(),Td(),ym(),K(),Am=Math.sqrt,jm=Math.sin,Mm=Math.cos,Nm=Math.PI,Pm=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,Fm=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g,Im=function(e){N(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.applyTransform=function(e){},t}(rf)})),Rm,zm,Bm=n((()=>{P(),af(),Rm=function(){function e(){this.cx=0,this.cy=0,this.r=0}return e}(),zm=function(e){N(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new Rm},t.prototype.buildPath=function(e,t){e.moveTo(t.cx+t.r,t.cy),e.arc(t.cx,t.cy,t.r,0,Math.PI*2)},t}(rf),zm.prototype.type=`circle`})),Vm,Hm,Um=n((()=>{P(),af(),Vm=function(){function e(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return e}(),Hm=function(e){N(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new Vm},t.prototype.buildPath=function(e,t){var n=.5522848,r=t.cx,i=t.cy,a=t.rx,o=t.ry,s=a*n,c=o*n;e.moveTo(r-a,i),e.bezierCurveTo(r-a,i-c,r-s,i-o,r,i-o),e.bezierCurveTo(r+s,i-o,r+a,i-c,r+a,i),e.bezierCurveTo(r+a,i+c,r+s,i+o,r,i+o),e.bezierCurveTo(r-s,i+o,r-a,i+c,r-a,i),e.closePath()},t}(rf),Hm.prototype.type=`ellipse`}));function Wm(e,t,n,r,i,a,o,s){var c=n-e,l=r-t,u=o-i,d=s-a,f=d*c-u*l;if(!(f*f<ih))return f=(u*(t-a)-d*(e-i))/f,[e+f*c,t+f*l]}function Gm(e,t,n,r,i,a,o){var s=e-n,c=t-r,l=(o?a:-a)/th(s*s+c*c),u=l*c,d=-l*s,f=e+u,p=t+d,m=n+u,h=r+d,g=(f+m)/2,_=(p+h)/2,v=m-f,y=h-p,b=v*v+y*y,x=i-a,S=f*h-m*p,C=(y<0?-1:1)*th(nh(0,x*x*b-S*S)),w=(S*y-v*C)/b,T=(-S*v-y*C)/b,E=(S*y+v*C)/b,D=(-S*v+y*C)/b,O=w-g,k=T-_,A=E-g,j=D-_;return O*O+k*k>A*A+j*j&&(w=E,T=D),{cx:w,cy:T,x0:-u,y0:-d,x1:w*(i/x-1),y1:T*(i/x-1)}}function Km(e){var t;if(z(e)){var n=e.length;if(!n)return e;t=n===1?[e[0],e[0],0,0]:n===2?[e[0],e[0],e[1],e[1]]:n===3?e.concat(e[2]):e}else t=[e,e,e,e];return t}function qm(e,t){var n,r=nh(t.r,0),i=nh(t.r0||0,0),a=r>0;if(!(!a&&!(i>0))){if(a||(r=i,i=0),i>r){var o=r;r=i,i=o}var s=t.startAngle,c=t.endAngle;if(!(isNaN(s)||isNaN(c))){var l=t.cx,u=t.cy,d=!!t.clockwise,f=eh(c-s),p=f>Ym&&f%Ym;if(p>ih&&(f=p),!(r>ih))e.moveTo(l,u);else if(f>Ym-ih)e.moveTo(l+r*Zm(s),u+r*Xm(s)),e.arc(l,u,r,s,c,!d),i>ih&&(e.moveTo(l+i*Zm(c),u+i*Xm(c)),e.arc(l,u,i,c,s,d));else{var m=void 0,h=void 0,g=void 0,_=void 0,v=void 0,y=void 0,b=void 0,x=void 0,S=void 0,C=void 0,w=void 0,T=void 0,E=void 0,D=void 0,O=void 0,k=void 0,A=r*Zm(s),j=r*Xm(s),ee=i*Zm(c),te=i*Xm(c),ne=f>ih;if(ne){var M=t.cornerRadius;M&&(n=Km(M),m=n[0],h=n[1],g=n[2],_=n[3]);var re=eh(r-i)/2;if(v=rh(re,g),y=rh(re,_),b=rh(re,m),x=rh(re,h),w=S=nh(v,y),T=C=nh(b,x),(S>ih||C>ih)&&(E=r*Zm(c),D=r*Xm(c),O=i*Zm(s),k=i*Xm(s),f<Jm)){var ie=Wm(A,j,O,k,E,D,ee,te);if(ie){var ae=A-ie[0],oe=j-ie[1],se=E-ie[0],ce=D-ie[1],le=1/Xm(Qm((ae*se+oe*ce)/(th(ae*ae+oe*oe)*th(se*se+ce*ce)))/2),ue=th(ie[0]*ie[0]+ie[1]*ie[1]);w=rh(S,(r-ue)/(le+1)),T=rh(C,(i-ue)/(le-1))}}}if(!ne)e.moveTo(l+A,u+j);else if(w>ih){var de=rh(g,w),fe=rh(_,w),pe=Gm(O,k,A,j,r,de,d),me=Gm(E,D,ee,te,r,fe,d);e.moveTo(l+pe.cx+pe.x0,u+pe.cy+pe.y0),w<S&&de===fe?e.arc(l+pe.cx,u+pe.cy,w,$m(pe.y0,pe.x0),$m(me.y0,me.x0),!d):(de>0&&e.arc(l+pe.cx,u+pe.cy,de,$m(pe.y0,pe.x0),$m(pe.y1,pe.x1),!d),e.arc(l,u,r,$m(pe.cy+pe.y1,pe.cx+pe.x1),$m(me.cy+me.y1,me.cx+me.x1),!d),fe>0&&e.arc(l+me.cx,u+me.cy,fe,$m(me.y1,me.x1),$m(me.y0,me.x0),!d))}else e.moveTo(l+A,u+j),e.arc(l,u,r,s,c,!d);if(!(i>ih)||!ne)e.lineTo(l+ee,u+te);else if(T>ih){var de=rh(m,T),fe=rh(h,T),pe=Gm(ee,te,E,D,i,-fe,d),me=Gm(A,j,O,k,i,-de,d);e.lineTo(l+pe.cx+pe.x0,u+pe.cy+pe.y0),T<C&&de===fe?e.arc(l+pe.cx,u+pe.cy,T,$m(pe.y0,pe.x0),$m(me.y0,me.x0),!d):(fe>0&&e.arc(l+pe.cx,u+pe.cy,fe,$m(pe.y0,pe.x0),$m(pe.y1,pe.x1),!d),e.arc(l,u,i,$m(pe.cy+pe.y1,pe.cx+pe.x1),$m(me.cy+me.y1,me.cx+me.x1),d),de>0&&e.arc(l+me.cx,u+me.cy,de,$m(me.y1,me.x1),$m(me.y0,me.x0),!d))}else e.lineTo(l+ee,u+te),e.arc(l,u,i,c,s,d)}e.closePath()}}}var Jm,Ym,Xm,Zm,Qm,$m,eh,th,nh,rh,ih,ah=n((()=>{K(),Jm=Math.PI,Ym=Jm*2,Xm=Math.sin,Zm=Math.cos,Qm=Math.acos,$m=Math.atan2,eh=Math.abs,th=Math.sqrt,nh=Math.max,rh=Math.min,ih=1e-4})),oh,sh,ch=n((()=>{P(),af(),ah(),oh=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return e}(),sh=function(e){N(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new oh},t.prototype.buildPath=function(e,t){qm(e,t)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(rf),sh.prototype.type=`sector`})),lh,uh,dh=n((()=>{P(),af(),lh=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),uh=function(e){N(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new lh},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.PI*2;e.moveTo(n+t.r,r),e.arc(n,r,t.r,0,i,!1),e.moveTo(n+t.r0,r),e.arc(n,r,t.r0,0,i,!0)},t}(rf),uh.prototype.type=`ring`}));function fh(e,t,n,r){var i=[],a=[],o=[],s=[],c,l,u,d;if(r){u=[1/0,1/0],d=[-1/0,-1/0];for(var f=0,p=e.length;f<p;f++)on(u,u,e[f]),sn(d,d,e[f]);on(u,u,r[0]),sn(d,d,r[1])}for(var f=0,p=e.length;f<p;f++){var m=e[f];if(n)c=e[f?f-1:p-1],l=e[(f+1)%p];else if(f===0||f===p-1){i.push(Ht(e[f]));continue}else c=e[f-1],l=e[f+1];Kt(a,l,c),Qt(a,a,t);var h=en(m,c),g=en(m,l),_=h+g;_!==0&&(h/=_,g/=_),Qt(o,a,-h),Qt(s,a,g);var v=Wt([],m,o),y=Wt([],m,s);r&&(sn(v,v,u),on(v,v,d),sn(y,y,u),on(y,y,d)),i.push(v),i.push(y)}return n&&i.push(i.shift()),i}var ph=n((()=>{fn()}));function mh(e,t,n){var r=t.smooth,i=t.points;if(i&&i.length>=2){if(r){var a=fh(i,r,n,t.smoothConstraint);e.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(n?o:o-1);s++){var c=a[s*2],l=a[s*2+1],u=i[(s+1)%o];e.bezierCurveTo(c[0],c[1],l[0],l[1],u[0],u[1])}}else{e.moveTo(i[0][0],i[0][1]);for(var s=1,d=i.length;s<d;s++)e.lineTo(i[s][0],i[s][1])}n&&e.closePath()}}var hh=n((()=>{ph()})),gh,_h,vh=n((()=>{P(),af(),hh(),gh=function(){function e(){this.points=null,this.smooth=0,this.smoothConstraint=null}return e}(),_h=function(e){N(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new gh},t.prototype.buildPath=function(e,t){mh(e,t,!0)},t}(rf),_h.prototype.type=`polygon`})),yh,bh,xh=n((()=>{P(),af(),hh(),yh=function(){function e(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return e}(),bh=function(e){N(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultStyle=function(){return{stroke:`#000`,fill:null}},t.prototype.getDefaultShape=function(){return new yh},t.prototype.buildPath=function(e,t){mh(e,t,!1)},t}(rf),bh.prototype.type=`polyline`})),Sh,Ch,wh,Th=n((()=>{P(),af(),bf(),Sh={},Ch=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}(),wh=function(e){N(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultStyle=function(){return{stroke:`#000`,fill:null}},t.prototype.getDefaultShape=function(){return new Ch},t.prototype.buildPath=function(e,t){var n,r,i,a;if(this.subPixelOptimize){var o=gf(Sh,t,this.style);n=o.x1,r=o.y1,i=o.x2,a=o.y2}else n=t.x1,r=t.y1,i=t.x2,a=t.y2;var s=t.percent;s!==0&&(e.moveTo(n,r),s<1&&(i=n*(1-s)+i*s,a=r*(1-s)+a*s),e.lineTo(i,a))},t.prototype.pointAt=function(e){var t=this.shape;return[t.x1*(1-e)+t.x2*e,t.y1*(1-e)+t.y2*e]},t}(rf),wh.prototype.type=`line`}));function Eh(e,t,n){var r=e.cpx2,i=e.cpy2;return r!=null||i!=null?[(n?pi:fi)(e.x1,e.cpx1,e.cpx2,e.x2,t),(n?pi:fi)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(n?bi:yi)(e.x1,e.cpx1,e.x2,t),(n?bi:yi)(e.y1,e.cpy1,e.y2,t)]}var Dh,Oh,kh,Ah=n((()=>{P(),af(),fn(),Fi(),Dh=[],Oh=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return e}(),kh=function(e){N(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultStyle=function(){return{stroke:`#000`,fill:null}},t.prototype.getDefaultShape=function(){return new Oh},t.prototype.buildPath=function(e,t){var n=t.x1,r=t.y1,i=t.x2,a=t.y2,o=t.cpx1,s=t.cpy1,c=t.cpx2,l=t.cpy2,u=t.percent;u!==0&&(e.moveTo(n,r),c==null||l==null?(u<1&&(Ci(n,o,i,u,Dh),o=Dh[1],i=Dh[2],Ci(r,s,a,u,Dh),s=Dh[1],a=Dh[2]),e.quadraticCurveTo(o,s,i,a)):(u<1&&(gi(n,o,c,i,u,Dh),o=Dh[1],c=Dh[2],i=Dh[3],gi(r,s,l,a,u,Dh),s=Dh[1],l=Dh[2],a=Dh[3]),e.bezierCurveTo(o,s,c,l,i,a)))},t.prototype.pointAt=function(e){return Eh(this.shape,e,!1)},t.prototype.tangentAt=function(e){var t=Eh(this.shape,e,!0);return $t(t,t)},t}(rf),kh.prototype.type=`bezier-curve`})),jh,Mh,Nh=n((()=>{P(),af(),jh=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e}(),Mh=function(e){N(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultStyle=function(){return{stroke:`#000`,fill:null}},t.prototype.getDefaultShape=function(){return new jh},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.max(t.r,0),a=t.startAngle,o=t.endAngle,s=t.clockwise,c=Math.cos(a),l=Math.sin(a);e.moveTo(c*i+n,l*i+r),e.arc(n,r,i,a,o,!s)},t}(rf),Mh.prototype.type=`arc`})),Ph,Fh=n((()=>{P(),af(),Ph=function(e){N(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`compound`,t}return t.prototype._updatePathDirty=function(){for(var e=this.shape.paths,t=this.shapeChanged(),n=0;n<e.length;n++)t||=e[n].shapeChanged();t&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var e=this.shape.paths||[],t=this.getGlobalScale(),n=0;n<e.length;n++)e[n].path||e[n].createPathProxy(),e[n].path.setScale(t[0],t[1],e[n].segmentIgnoreThreshold)},t.prototype.buildPath=function(e,t){for(var n=t.paths||[],r=0;r<n.length;r++)n[r].buildPath(e,n[r].shape,!0)},t.prototype.afterBrush=function(){for(var e=this.shape.paths||[],t=0;t<e.length;t++)e[t].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),rf.prototype.getBoundingRect.call(this)},t}(rf)})),Ih,Lh=n((()=>{Ih=function(){function e(e){this.colorStops=e||[]}return e.prototype.addColorStop=function(e,t){this.colorStops.push({offset:e,color:t})},e}()})),Rh,zh=n((()=>{P(),Lh(),Rh=function(e){N(t,e);function t(t,n,r,i,a,o){var s=e.call(this,a)||this;return s.x=t??0,s.y=n??0,s.x2=r??1,s.y2=i??0,s.type=`linear`,s.global=o||!1,s}return t}(Ih)})),Bh,Vh=n((()=>{P(),Lh(),Bh=function(e){N(t,e);function t(t,n,r,i,a){var o=e.call(this,i)||this;return o.x=t??.5,o.y=n??.5,o.r=r??.5,o.type=`radial`,o.global=a||!1,o}return t}(Ih)})),Hh,Uh,Wh,Gh,Kh,qh,Jh,Yh,Xh,Zh=n((()=>{cr(),Ar(),Hh=Math.min,Uh=Math.max,Wh=Math.abs,Gh=[0,0],Kh=[0,0],qh=ur(),Jh=qh.minTv,Yh=qh.maxTv,Xh=function(){function e(e,t){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new q;for(var n=0;n<2;n++)this._axes[n]=new q;e&&this.fromBoundingRect(e,t)}return e.prototype.fromBoundingRect=function(e,t){var n=this._corners,r=this._axes,i=e.x,a=e.y,o=i+e.width,s=a+e.height;if(n[0].set(i,a),n[1].set(o,a),n[2].set(o,s),n[3].set(i,s),t)for(var c=0;c<4;c++)n[c].transform(t);q.sub(r[0],n[1],n[0]),q.sub(r[1],n[3],n[0]),r[0].normalize(),r[1].normalize();for(var c=0;c<2;c++)this._origin[c]=r[c].dot(n[0])},e.prototype.intersect=function(e,t,n){var r=!0,i=!t;return t&&q.set(t,0,0),qh.reset(n,!i),!this._intersectCheckOneSide(this,e,i,1)&&(r=!1,i)||!this._intersectCheckOneSide(e,this,i,-1)&&(r=!1,i)||!i&&!qh.negativeSize&&q.copy(t,r?qh.useDir?qh.dirMinTv:Jh:Yh),r},e.prototype._intersectCheckOneSide=function(e,t,n,r){for(var i=!0,a=0;a<2;a++){var o=e._axes[a];if(e._getProjMinMaxOnAxis(a,e._corners,Gh),e._getProjMinMaxOnAxis(a,t._corners,Kh),qh.negativeSize||Gh[1]<Kh[0]||Gh[0]>Kh[1]){if(i=!1,qh.negativeSize||n)return i;var s=Wh(Kh[0]-Gh[1]),c=Wh(Gh[0]-Kh[1]);Hh(s,c)>Yh.len()&&(s<c?q.scale(Yh,o,-s*r):q.scale(Yh,o,c*r))}else if(!n){var s=Wh(Kh[0]-Gh[1]),c=Wh(Gh[0]-Kh[1]);(qh.useDir||Hh(s,c)<Jh.len())&&((s<c||!qh.bidirectional)&&(q.scale(Jh,o,s*r),qh.useDir&&qh.calcDirMTV()),(s>=c||!qh.bidirectional)&&(q.scale(Jh,o,-c*r),qh.useDir&&qh.calcDirMTV()))}}return i},e.prototype._getProjMinMaxOnAxis=function(e,t,n){for(var r=this._axes[e],i=this._origin,a=t[0].dot(r)+i[e],o=a,s=a,c=1;c<t.length;c++){var l=t[c].dot(r)+i[e];o=Hh(l,o),s=Uh(l,s)}n[0]=o+qh.touchThreshold,n[1]=s-qh.touchThreshold,qh.negativeSize=n[1]<n[0]},e}()})),Qh=n((()=>{})),$h,eg,tg=n((()=>{P(),Wu(),Ar(),Qh(),$h=[],eg=function(e){N(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.notClear=!0,t.incremental=1,t._displayables=[],t._temporaryDisplayables=[],t._cursor=0,t}return t.prototype.traverse=function(e,t){e.call(t,this)},t.prototype.useStyle=function(){this.style={}},t.prototype._useHoverStyle=function(){this.__hoverStyle=null},t.prototype.getCursor=function(){return this._cursor},t.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},t.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},t.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},t.prototype.addDisplayable=function(e,t){t?this._temporaryDisplayables.push(e):this._displayables.push(e),this.markRedraw()},t.prototype.addDisplayables=function(e,t){t||=!1;for(var n=0;n<e.length;n++)this.addDisplayable(e[n],t)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(e){for(var t=this._cursor;t<this._displayables.length;t++)e&&e(this._displayables[t]);for(var t=0;t<this._temporaryDisplayables.length;t++)e&&e(this._temporaryDisplayables[t])},t.prototype.update=function(){this.updateTransform();for(var e=this._cursor;e<this._displayables.length;e++){var t=this._displayables[e];t.parent=this,t.update(),t.parent=null}for(var e=0;e<this._temporaryDisplayables.length;e++){var t=this._temporaryDisplayables[e];t.parent=this,t.update(),t.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var e=new J(1/0,1/0,-1/0,-1/0),t=0;t<this._displayables.length;t++){var n=this._displayables[t],r=n.getBoundingRect().clone();n.needLocalTransform()&&r.applyTransform(n.getLocalTransform($h)),e.union(r)}this._rect=e}return this._rect},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t);if(this.getBoundingRect().contain(n[0],n[1])){for(var r=0;r<this._displayables.length;r++)if(this._displayables[r].contain(e,t))return!0}return!1},t}(Vu)}));function ng(e,t,n,r,i){var a;if(t&&t.ecModel){var o=t.ecModel.getUpdatePayload();a=o&&o.animation}var s=t&&t.isAnimationEnabled(),c=e===`update`;if(s){var l=void 0,u=void 0,d=void 0;return r?(l=U(r.duration,200),u=U(r.easing,`cubicOut`),d=0):(l=t.getShallow(c?`animationDurationUpdate`:`animationDuration`),u=t.getShallow(c?`animationEasingUpdate`:`animationEasing`),d=t.getShallow(c?`animationDelayUpdate`:`animationDelay`)),a&&(a.duration!=null&&(l=a.duration),a.easing!=null&&(u=a.easing),a.delay!=null&&(d=a.delay)),B(d)&&(d=d(n,i)),B(l)&&(l=l(n)),{duration:l||0,delay:d,easing:u}}else return null}function rg(e,t,n,r,i,a,o){var s=!1,c;B(i)?(o=a,a=i,i=null):H(i)&&(a=i.cb,o=i.during,s=i.isFrom,c=i.removeOpt,i=i.dataIndex);var l=e===`leave`;l||t.stopAnimation(`leave`);var u=ng(e,r,i,l?c||{}:null,r&&r.getAnimationDelayParams?r.getAnimationDelayParams(t,i):null);if(u&&u.duration>0){var d=u.duration,f=u.delay,p=u.easing,m={duration:d,delay:f||0,easing:p,done:a,force:!!a||!!o,setToFinal:!l,scope:e,during:o};s?t.animateFrom(n,m):t.animateTo(n,m)}else t.stopAnimation(),!s&&t.attr(n),o&&o(1),a&&a()}function ig(e,t,n,r,i,a){rg(`update`,e,t,n,r,i,a)}function ag(e,t,n,r,i,a){rg(`enter`,e,t,n,r,i,a)}function og(e){if(!e.__zr)return!0;for(var t=0;t<e.animators.length;t++)if(e.animators[t].scope===`leave`)return!0;return!1}function sg(e,t,n,r,i,a){og(e)||rg(`leave`,e,t,n,r,i,a)}function cg(e,t,n,r){e.removeTextContent(),e.removeTextGuideLine(),sg(e,{style:{opacity:0}},t,n,r)}function lg(e,t,n){function r(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse(function(e){e.isGroup||cg(e,t,n,r)}):cg(e,t,n,r)}function ug(e){dg(e).oldStyle=e.style}var dg,fg=n((()=>{K(),X(),dg=ol()})),pg=r({Arc:()=>Mh,BezierCurve:()=>kh,BoundingRect:()=>J,Circle:()=>zm,CompoundPath:()=>Ph,Ellipse:()=>Hm,Group:()=>_s,HOVER_LAYER_FOR_INCREMENTAL:()=>2,HOVER_LAYER_FROM_THRESHOLD:()=>1,HOVER_LAYER_NO:()=>0,Image:()=>ff,IncrementalDisplayable:()=>eg,Line:()=>wh,LinearGradient:()=>Rh,OrientedBoundingRect:()=>Xh,Path:()=>rf,Point:()=>q,Polygon:()=>_h,Polyline:()=>bh,RadialGradient:()=>Bh,Rect:()=>Cf,Ring:()=>uh,Sector:()=>sh,Text:()=>zf,WH:()=>e_,XY:()=>$g,applyTransform:()=>Tg,calcZ2Range:()=>Kg,clipPointsByRect:()=>Ag,clipRectByRect:()=>jg,createIcon:()=>Mg,decomposeTransform:()=>Xg,ensureCopyRect:()=>Ug,ensureCopyTransform:()=>Wg,expandOrShrinkRect:()=>Lg,extendPath:()=>hg,extendShape:()=>mg,getCurrentCanvasPainter:()=>Zg,getShapeClass:()=>_g,getTransform:()=>wg,groupTransition:()=>kg,initProps:()=>ag,isBoundingRectAxisAligned:()=>Hg,isElementRemoved:()=>og,lineLineIntersect:()=>Pg,linePolygonIntersect:()=>Ng,makeImage:()=>yg,makePath:()=>vg,mergePath:()=>n_,payloadDisableAnimation:()=>Yg,registerShape:()=>gg,removeElement:()=>sg,removeElementWithFadeOut:()=>lg,resizePath:()=>xg,retrieveZInfo:()=>Gg,setTooltipConfig:()=>zg,subPixelOptimize:()=>r_,subPixelOptimizeLine:()=>Sg,subPixelOptimizeRect:()=>Cg,transformDirection:()=>Eg,traverseElements:()=>Vg,traverseUpdateZ:()=>qg,updateProps:()=>ig});function mg(e){return rf.extend(e)}function hg(e,t){return t_(e,t)}function gg(e,t){Qg[e]=t}function _g(e){if(Qg.hasOwnProperty(e))return Qg[e]}function vg(e,t,n,r){var i=Dm(e,t);return n&&(r===`center`&&(n=bg(n,i.getBoundingRect())),xg(i,n)),i}function yg(e,t,n){var r=new ff({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(e){if(n===`center`){var i={width:e.width,height:e.height};r.setStyle(bg(t,i))}}});return r}function bg(e,t){var n=t.width/t.height,r=e.height*n,i;r<=e.width?i=e.height:(r=e.width,i=r/n);var a=e.x+e.width/2,o=e.y+e.height/2;return{x:a-r/2,y:o-i/2,width:r,height:i}}function xg(e,t){if(e.applyTransform){var n=e.getBoundingRect().calculateTransform(t);e.applyTransform(n)}}function Sg(e,t){return gf(e,e,{lineWidth:t}),e}function Cg(e,t){return _f(e,e,t),e}function wg(e,t){for(var n=$n([]);e&&e!==t;)tr(n,e.getLocalTransform(),n),e=e.parent;return n}function Tg(e,t,n){return t&&!Ue(t)&&(t=Po.getLocalTransform(t)),n&&(t=ar([],t)),an([],e,t)}function Eg(e,t,n){var r=t[4]===0||t[5]===0||t[0]===0?1:mc(2*t[4]/t[0]),i=t[4]===0||t[5]===0||t[2]===0?1:mc(2*t[4]/t[2]),a=[e===`left`?-r:e===`right`?r:0,e===`top`?-i:e===`bottom`?i:0];return a=Tg(a,t,n),mc(a[0])>mc(a[1])?a[0]>0?`right`:`left`:a[1]>0?`bottom`:`top`}function Dg(e){return!e.isGroup}function Og(e){return e.shape!=null}function kg(e,t,n){if(!e||!t)return;function r(e){var t={};return e.traverse(function(e){Dg(e)&&e.anid&&(t[e.anid]=e)}),t}function i(e){var t={x:e.x,y:e.y,rotation:e.rotation};return Og(e)&&(t.shape=Fe(e.shape)),t}var a=r(e);t.traverse(function(e){if(Dg(e)&&e.anid){var t=a[e.anid];if(t){var r=i(e);e.attr(i(t)),ig(e,r,n,Wf(e).dataIndex)}}})}function Ag(e,t){return R(e,function(e){var n=e[0];n=pc(n,t.x),n=fc(n,t.x+t.width);var r=e[1];return r=pc(r,t.y),r=fc(r,t.y+t.height),[n,r]})}function jg(e,t){var n=pc(e.x,t.x),r=fc(e.x+e.width,t.x+t.width),i=pc(e.y,t.y),a=fc(e.y+e.height,t.y+t.height);if(r>=n&&a>=i)return{x:n,y:i,width:r-n,height:a-i}}function Mg(e,t,n){var r=I({rectHover:!0},t),i=r.style={strokeNoScale:!0};if(n||={x:-1,y:-1,width:2,height:2},e)return e.indexOf(`image://`)===0?(i.image=e.slice(8),ze(i,n),new ff(r)):vg(e.replace(`path://`,``),r,n,`center`)}function Ng(e,t,n,r,i){for(var a=0,o=i[i.length-1];a<i.length;a++){var s=i[a];if(Pg(e,t,n,r,s[0],s[1],o[0],o[1]))return!0;o=s}}function Pg(e,t,n,r,i,a,o,s){var c=n-e,l=r-t,u=o-i,d=s-a,f=Fg(u,d,c,l);if(Ig(f))return!1;var p=e-i,m=t-a,h=Fg(p,m,c,l)/f;if(h<0||h>1)return!1;var g=Fg(p,m,u,d)/f;return!(g<0||g>1)}function Fg(e,t,n,r){return e*r-n*t}function Ig(e){return e<=1e-6&&e>=-1e-6}function Lg(e,t,n,r,i){return t==null?e:(Ze(t)?i_[0]=i_[1]=i_[2]=i_[3]=t:(process.env.NODE_ENV!==`production`&&W(t.length===4),i_[0]=t[0],i_[1]=t[1],i_[2]=t[2],i_[3]=t[3]),r&&(i_[0]=pc(0,i_[0]),i_[1]=pc(0,i_[1]),i_[2]=pc(0,i_[2]),i_[3]=pc(0,i_[3])),n&&(i_[0]=-i_[0],i_[1]=-i_[1],i_[2]=-i_[2],i_[3]=-i_[3]),Rg(e,i_,`x`,`width`,3,1,i&&i[0]||0),Rg(e,i_,`y`,`height`,0,2,i&&i[1]||0),e)}function Rg(e,t,n,r,i,a,o){var s=t[a]+t[i],c=e[r];e[r]+=s,o=pc(0,fc(o,c)),e[r]<o?(e[r]=o,e[n]+=t[i]>=0?-t[i]:t[a]>=0?c+t[a]:mc(s)>1e-8?(c-o)*t[i]/s:0):e[n]-=t[i]}function zg(e){var t=e.itemTooltipOption,n=e.componentModel,r=e.itemName,i=V(t)?{formatter:t}:t,a=n.mainType,o=n.componentIndex,s={componentType:a,name:r,$vars:[`name`]};s[a+`Index`]=o;var c=e.formatterParamsExtra;c&&L(qe(c),function(e){gt(s,e)||(s[e]=c[e],s.$vars.push(e))});var l=Wf(e.el);l.componentMainType=a,l.componentIndex=o,l.tooltipConfig={name:r,option:ze({content:r,encodeHTMLContent:!0,formatterParams:s},i)}}function Bg(e,t){var n;e.isGroup&&(n=t(e)),n||e.traverse(t)}function Vg(e,t){if(e)if(z(e))for(var n=0;n<e.length;n++)Bg(e[n],t);else Bg(e,t)}function Hg(e){return!e||mc(e[1])<a_&&mc(e[2])<a_||mc(e[0])<a_&&mc(e[3])<a_}function Ug(e,t){return e?J.copy(e,t):t.clone()}function Wg(e,t){return t?er(e||Qn(),t):void 0}function Gg(e){return{z:e.get(`z`)||0,zlevel:e.get(`zlevel`)||0}}function Kg(e){var t=-1/0,n=1/0;Bg(e,function(e){r(e),r(e.getTextContent()),r(e.getTextGuideLine())});function r(e){if(!(!e||e.isGroup)){var t=e.currentStates;if(t.length)for(var n=0;n<t.length;n++)i(e.states[t[n]]);i(e)}}function i(e){if(e){var r=e.z2;r>t&&(t=r),r<n&&(n=r)}}return n>t&&(n=t=0),{min:n,max:t}}function qg(e,t,n){Jg(e,t,n,-1/0)}function Jg(e,t,n,r){if(e.ignoreModelZ)return r;var i=e.getTextContent(),a=e.getTextGuideLine();if(e.isGroup)for(var o=e.childrenRef(),s=0;s<o.length;s++)r=pc(Jg(o[s],t,n,r),r);else e.z=t,e.zlevel=n,r=pc(e.z2||0,r);if(i&&(i.z=t,i.zlevel=n,isFinite(r)&&(i.z2=r+2)),a){var c=e.textGuideLineConfig;a.z=t,a.zlevel=n,isFinite(r)&&(a.z2=r+(c&&c.showAbove?1:-1))}return r}function Yg(e){return e.animation={duration:0},e}function Xg(e,t){return t?er(o_.transform,t):$n(o_.transform),o_.decomposeTransform(),Do(e,o_),e}function Zg(e){var t=e.getZr().painter;return t.getType()===`canvas`?t:null}var Qg,$g,e_,t_,n_,r_,i_,a_,o_,s_=n((()=>{Lm(),sr(),fn(),af(),Lo(),pf(),vs(),Uf(),Bm(),Um(),ch(),dh(),vh(),xh(),wf(),Th(),Ah(),Nh(),Fh(),zh(),Vh(),Ar(),Zh(),cr(),tg(),bf(),K(),Kf(),fg(),Y(),Qg={},$g=[`x`,`y`],e_=[`width`,`height`],t_=Om,n_=km,r_=vf,i_=[0,0,0,0],a_=1e-5,o_=new Po,o_.transform=Qn(),gg(`circle`,zm),gg(`ellipse`,Hm),gg(`sector`,sh),gg(`ring`,uh),gg(`polygon`,_h),gg(`polyline`,bh),gg(`rect`,Cf),gg(`line`,wh),gg(`bezierCurve`,kh),gg(`arc`,Mh)}));function c_(e,t){for(var n=0;n<rm.length;n++){var r=rm[n],i=t[r],a=e.ensureState(r);a.style=a.style||{},a.style.text=i}var o=e.currentStates.slice();e.clearStates(!0),e.setStyle({text:t.normal}),e.useStates(o,!0)}function l_(e,t,n){var r=e.labelFetcher,i=e.labelDataIndex,a=e.labelDimIndex,o=t.normal,s;r&&(s=r.getFormattedLabel(i,`normal`,null,a,o&&o.get(`formatter`),n==null?null:{interpolatedValue:n})),s??=B(e.defaultText)?e.defaultText(i,e,n):e.defaultText;for(var c={normal:s},l=0;l<rm.length;l++){var u=rm[l],d=t[u];c[u]=U(r?r.getFormattedLabel(i,u,null,a,d&&d.get(`formatter`)):null,s)}return c}function u_(e,t,n,r){n||=b_;for(var i=e instanceof zf,a=!1,o=0;o<im.length;o++){var s=t[im[o]];if(s&&s.getShallow(`show`)){a=!0;break}}var c=i?e:e.getTextContent();if(a){i||(c||(c=new zf,e.setTextContent(c)),e.stateProxy&&(c.stateProxy=e.stateProxy));var l=l_(n,t),u=t.normal,d=!!u.getShallow(`show`),f=f_(u,r&&r.normal,n,!1,!i);f.text=l.normal,i||e.setTextConfig(p_(u,n,!1));for(var o=0;o<rm.length;o++){var p=rm[o],s=t[p];if(s){var m=c.ensureState(p),h=!!U(s.getShallow(`show`),d);if(h!==d&&(m.ignore=!h),m.style=f_(s,r&&r[p],n,!0,!i),m.style.text=l[p],!i){var g=e.ensureState(p);g.textConfig=p_(s,n,!0)}}}c.silent=!!u.getShallow(`silent`),c.style.x!=null&&(f.x=c.style.x),c.style.y!=null&&(f.y=c.style.y),c.ignore=!d,c.useStyle(f),c.dirty(),n.enableTextSetter&&(w_(c).setLabelText=function(e){var r=l_(n,t,e);c_(c,r)})}else c&&(c.ignore=!0);e.dirty()}function d_(e,t){t||=`label`;for(var n={normal:e.getModel(t)},r=0;r<rm.length;r++){var i=rm[r];n[i]=e.getModel([i,t])}return n}function f_(e,t,n,r,i){var a={};return m_(a,e,n,r,i),t&&I(a,t),a}function p_(e,t,n){t||={};var r={},i,a=e.getShallow(`rotate`),o=U(e.getShallow(`distance`),n?null:5),s=e.getShallow(`offset`);return i=e.getShallow(`position`)||(n?null:`inside`),i===`outside`&&(i=t.defaultOutsidePosition||`top`),i!=null&&(r.position=i),s!=null&&(r.offset=s),a!=null&&(a*=Math.PI/180,r.rotation=a),o!=null&&(r.distance=o),r.outsideFill=e.get(`color`)===`inherit`?t.inheritColor||null:`auto`,t.autoOverflowArea!=null&&(r.autoOverflowArea=t.autoOverflowArea),t.layoutRect!=null&&(r.layoutRect=t.layoutRect),r}function m_(e,t,n,r,i){n||=b_;var a=t.ecModel,o=a&&a.option.textStyle,s=h_(t),c;if(s){c={};var l=`richInheritPlainLabel`,u=U(t.get(l),a?a.get(l):void 0);for(var d in s)if(s.hasOwnProperty(d)){var f=t.getModel([`rich`,d]);g_(c[d]={},f,o,t,u,n,r,i,!1,!0)}}c&&(e.rich=c);var p=t.get(`overflow`);p&&(e.overflow=p);var m=t.get(`lineOverflow`);m&&(e.lineOverflow=m);var h=e,g=t.get(`minMargin`);if(g!=null)g=Ze(g)?g/2:0,h.margin=[g,g,g,g],h.__marginType=T_.minMargin;else{var _=t.get(`textMargin`);_!=null&&(h.margin=ct(_),h.__marginType=T_.textMargin)}g_(e,t,o,null,null,n,r,i,!0,!1)}function h_(e){for(var t;e&&e!==e.ecModel;){var n=(e.option||b_).rich;if(n){t||={};for(var r=qe(n),i=0;i<r.length;i++){var a=r[i];t[a]=1}}e=e.parentModel}return t}function g_(e,t,n,r,i,a,o,s,c,l){n=!o&&n||b_;var u=a&&a.inheritColor,d=t.getShallow(`color`),f=t.getShallow(`textBorderColor`),p=U(t.getShallow(`opacity`),n.opacity);(d===`inherit`||d===`auto`)&&(process.env.NODE_ENV!==`production`&&d===`auto`&&jc(`color: 'auto'`,`color: 'inherit'`),d=u||null),(f===`inherit`||f===`auto`)&&(process.env.NODE_ENV!==`production`&&f===`auto`&&jc(`color: 'auto'`,`color: 'inherit'`),f=u||null),s||(d||=n.color,f||=n.textBorderColor),d!=null&&(e.fill=d),f!=null&&(e.stroke=f);var m=U(t.getShallow(`textBorderWidth`),n.textBorderWidth);m!=null&&(e.lineWidth=m);var h=U(t.getShallow(`textBorderType`),n.textBorderType);h!=null&&(e.lineDash=h);var g=U(t.getShallow(`textBorderDashOffset`),n.textBorderDashOffset);g!=null&&(e.lineDashOffset=g),!o&&p==null&&!l&&(p=a&&a.defaultOpacity),p!=null&&(e.opacity=p),!o&&!s&&e.fill==null&&a.inheritColor&&(e.fill=a.inheritColor);for(var _=0;_<x_.length;_++){var v=x_[_],y=i!==!1&&r?ot(t.getShallow(v),r.getShallow(v),n[v]):U(t.getShallow(v),n[v]);y!=null&&(e[v]=y)}for(var _=0;_<S_.length;_++){var v=S_[_],y=t.getShallow(v);y!=null&&(e[v]=y)}if(e.verticalAlign==null){var b=t.getShallow(`baseline`);b!=null&&(e.verticalAlign=b)}if(!c||!a.disableBox){for(var _=0;_<C_.length;_++){var v=C_[_],y=t.getShallow(v);y!=null&&(e[v]=y)}var x=t.getShallow(`borderType`);x!=null&&(e.borderDash=x),(e.backgroundColor===`auto`||e.backgroundColor===`inherit`)&&u&&(process.env.NODE_ENV!==`production`&&e.backgroundColor===`auto`&&jc(`backgroundColor: 'auto'`,`backgroundColor: 'inherit'`),e.backgroundColor=u),(e.borderColor===`auto`||e.borderColor===`inherit`)&&u&&(process.env.NODE_ENV!==`production`&&e.borderColor===`auto`&&jc(`borderColor: 'auto'`,`borderColor: 'inherit'`),e.borderColor=u)}}function __(e,t){var n=t&&t.getModel(`textStyle`);return lt([e.fontStyle||n&&n.getShallow(`fontStyle`)||``,e.fontWeight||n&&n.getShallow(`fontWeight`)||``,(e.fontSize||n&&n.getShallow(`fontSize`)||12)+`px`,e.fontFamily||n&&n.getShallow(`fontFamily`)||`sans-serif`].join(` `))}function v_(e,t,n,r){if(e){var i=w_(e);i.prevValue=i.value,i.value=n;var a=t.normal;i.valueAnimation=a.get(`valueAnimation`),i.valueAnimation&&(i.precision=a.get(`precision`),i.defaultInterpolatedText=r,i.statesModels=t)}}function y_(e,t,n,r,i){var a=w_(e);if(!a.valueAnimation||a.prevValue===a.value)return;var o=a.defaultInterpolatedText,s=U(a.interpolatedValue,a.prevValue),c=a.value;function l(r){var l=ml(n,a.precision,s,c,r);a.interpolatedValue=r===1?null:l,c_(e,l_({labelDataIndex:t,labelFetcher:i,defaultText:o?o(l):l+``},a.statesModels,l))}e.percent=0,(a.prevValue==null?ag:ig)(e,{percent:1},r,t,null,l)}var b_,x_,S_,C_,w_,T_,E_=n((()=>{Uf(),K(),pm(),Lc(),X(),s_(),b_={},x_=[`fontStyle`,`fontWeight`,`fontSize`,`fontFamily`,`textShadowColor`,`textShadowBlur`,`textShadowOffsetX`,`textShadowOffsetY`],S_=[`align`,`lineHeight`,`width`,`height`,`tag`,`verticalAlign`,`ellipsis`],C_=[`padding`,`borderWidth`,`borderRadius`,`borderDashOffset`,`backgroundColor`,`borderColor`,`shadowColor`,`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`],w_=ol(),T_={minMargin:1,textMargin:2}})),D_,O_,k_,A_,j_=n((()=>{E_(),Uf(),D_=[`textStyle`,`color`],O_=[`fontStyle`,`fontWeight`,`fontSize`,`fontFamily`,`padding`,`lineHeight`,`rich`,`width`,`height`,`overflow`],k_=new zf,A_=function(){function e(){}return e.prototype.getTextColor=function(e){var t=this.ecModel;return this.getShallow(`color`)||(!e&&t?t.get(D_):null)},e.prototype.getFont=function(){return __({fontStyle:this.getShallow(`fontStyle`),fontWeight:this.getShallow(`fontWeight`),fontSize:this.getShallow(`fontSize`),fontFamily:this.getShallow(`fontFamily`)},this.ecModel)},e.prototype.getTextRect=function(e){for(var t={text:e,verticalAlign:this.getShallow(`verticalAlign`)||this.getShallow(`baseline`)},n=0;n<O_.length;n++)t[O_[n]]=this.getShallow(O_[n]);return k_.useStyle(t),k_.update(),k_.getBoundingRect()},e}()})),M_,N_,P_,F_=n((()=>{eu(),M_=[[`lineWidth`,`width`],[`stroke`,`color`],[`opacity`],[`shadowBlur`],[`shadowOffsetX`],[`shadowOffsetY`],[`shadowColor`],[`lineDash`,`type`],[`lineDashOffset`,`dashOffset`],[`lineCap`,`cap`],[`lineJoin`,`join`],[`miterLimit`]],N_=$l(M_),P_=function(){function e(){}return e.prototype.getLineStyle=function(e){return N_(this,e)},e}()})),I_,L_,R_,z_=n((()=>{eu(),I_=[[`fill`,`color`],[`stroke`,`borderColor`],[`lineWidth`,`borderWidth`],[`opacity`],[`shadowBlur`],[`shadowOffsetX`],[`shadowOffsetY`],[`shadowColor`],[`lineDash`,`borderType`],[`lineDashOffset`,`borderDashOffset`],[`lineCap`,`borderCap`],[`lineJoin`,`borderJoin`],[`miterLimit`,`borderMiterLimit`]],L_=$l(I_),R_=function(){function e(){}return e.prototype.getItemStyle=function(e,t){return L_(this,e,t)},e}()})),B_,V_=n((()=>{xe(),Ql(),iu(),j_(),F_(),z_(),K(),B_=function(){function e(e,t,n){this.parentModel=t,this.ecModel=n,this.option=e}return e.prototype.init=function(e,t,n){for(var r=[],i=3;i<arguments.length;i++)r[i-3]=arguments[i]},e.prototype.mergeOption=function(e,t){Ie(this.option,e,!0)},e.prototype.get=function(e,t){return e==null?this.option:this._doGet(this.parsePath(e),!t&&this.parentModel)},e.prototype.getShallow=function(e,t){var n=this.option,r=n==null?n:n[e];if(r==null&&!t){var i=this.parentModel;i&&(r=i.getShallow(e))}return r},e.prototype.getModel=function(t,n){var r=t!=null,i=r?this.parsePath(t):null,a=r?this._doGet(i):this.option;return n||=this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),new e(a,n,this.ecModel)},e.prototype.isEmpty=function(){return this.option==null},e.prototype.restoreData=function(){},e.prototype.clone=function(){var e=this.constructor;return new e(Fe(this.option))},e.prototype.parsePath=function(e){return typeof e==`string`?e.split(`.`):e},e.prototype.resolveParentPath=function(e){return e},e.prototype.isAnimationEnabled=function(){if(!F.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},e.prototype._doGet=function(e,t){var n=this.option;if(!e)return n;for(var r=0;r<e.length&&!(e[r]&&(n=n&&typeof n==`object`?n[e[r]]:null,n==null));r++);return n==null&&t&&(n=t._doGet(this.resolveParentPath(e),t.parentModel)),n},e}(),Vl(B_),Wl(B_),He(B_,P_),He(B_,R_),He(B_,ru),He(B_,A_)}));function H_(e){return[e||``,K_++].join(`_`)}function U_(e){var t={};e.registerSubTypeDefaulter=function(e,n){var r=Rl(e);t[r.main]=n},e.determineSubType=function(n,r){var i=r.type;if(!i){var a=Rl(n).main;e.hasSubTypes(n)&&t[a]&&(i=t[a](r))}return i}}function W_(e,t){e.topologicalTravel=function(e,t,r,i){if(!e.length)return;var a=n(t),o=a.graph,s=a.noEntryList,c={};for(L(e,function(e){c[e]=!0});s.length;){var l=s.pop(),u=o[l],d=!!c[l];d&&(r.call(i,l,u.originalDeps.slice()),delete c[l]),L(u.successor,d?p:f)}L(c,function(){var n=``;throw process.env.NODE_ENV!==`production`&&(n=Mc(`Circular dependency may exists: `,c,e,t)),Error(n)});function f(e){o[e].entryCount--,o[e].entryCount===0&&s.push(e)}function p(e){c[e]=!0,f(e)}};function n(e){var n={},a=[];return L(e,function(o){var s=r(n,o),c=i(s.originalDeps=t(o),e);s.entryCount=c.length,s.entryCount===0&&a.push(o),L(c,function(e){Be(s.predecessor,e)<0&&s.predecessor.push(e);var t=r(n,e);Be(t.successor,e)<0&&t.successor.push(o)})}),{graph:n,noEntryList:a}}function r(e,t){return e[t]||(e[t]={predecessor:[],successor:[]}),e[t]}function i(e,t){var n=[];return L(e,function(e){Be(t,e)>=0&&n.push(e)}),n}}function G_(e,t){return Ie(Ie({},e,!0),t,!0)}var K_,q_=n((()=>{K(),Ql(),Lc(),K_=Math.round(Math.random()*10)})),J_,Y_=n((()=>{J_={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:`. `}}}}})),X_,Z_=n((()=>{X_={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:``}}}}}));function Q_(e,t){e=e.toUpperCase(),ov[e]=new B_(t),av[e]=t}function $_(e){if(V(e)){var t=av[e.toUpperCase()]||{};return e===nv||e===rv?Fe(t):Ie(Fe(t),Fe(av[iv]),!1)}else return Ie(Fe(e),Fe(av[iv]),!1)}function ev(e){return ov[e]}function tv(){return ov[iv]}var nv,rv,iv,av,ov,sv,cv=n((()=>{V_(),xe(),Y_(),Z_(),K(),nv=`ZH`,rv=`EN`,iv=rv,av={},ov={},sv=F.domSupported?function(){return(document.documentElement.lang||navigator.language||navigator.browserLanguage||iv).toUpperCase().indexOf(nv)>-1?nv:iv}():iv,Q_(rv,J_),Q_(nv,X_)}));function lv(){return pv}function uv(e,t){var n=lv(),r=t.breakOption,i=t.breakParsed;return!i&&n&&(i=n.parseAxisBreakOption(r,e)),i}function dv(e){var t=e.brk;return t?t.breaks:[]}function fv(e){var t=e.brk;return t?t.hasBreaks():!1}var pv,mv=n((()=>{pv=null}));function hv(e){return!V(e)&&!B(e)?gv(e):e}function gv(e){e||={};var t={},n=!0;return L(Yv,function(t){n&&=e[t]==null}),L(Yv,function(r,i){var a=e[r];t[r]={};for(var o=null,s=i;s>=0;s--){var c=Yv[s],l=H(a)&&!z(a)?a[c]:a,u=void 0;z(l)?(u=l.slice(),o=u[0]||``):V(l)?(o=l,u=[o]):(o==null?o=Gv[r]:Wv[c].test(o)||(o=t[c][c][0]+` `+o),u=[o],n&&(u[1]=`{primary|`+o+`}`)),t[r][c]=u}}),t}function _v(e,t){return e+=``,`0000`.substr(0,t-e.length)+e}function vv(e){switch(e){case`half-year`:case`quarter`:return`month`;case`week`:case`half-week`:return`day`;case`half-day`:case`quarter-day`:return`hour`;default:return e}}function yv(e){return e===vv(e)}function bv(e){switch(e){case`year`:case`month`:return`day`;case`millisecond`:return`millisecond`;default:return`second`}}function xv(e,t,n,r){var i=Qs(e),a=i[Tv(n)](),o=i[Ev(n)]()+1,s=Math.floor((o-1)/3)+1,c=i[Dv(n)](),l=i[`get`+(n?`UTC`:``)+`Day`](),u=i[Ov(n)](),d=(u-1)%12+1,f=i[kv(n)](),p=i[Av(n)](),m=i[jv(n)](),h=u>=12?`pm`:`am`,g=h.toUpperCase(),_=(r instanceof B_?r:ev(r||sv)||tv()).getModel(`time`),v=_.get(`month`),y=_.get(`monthAbbr`),b=_.get(`dayOfWeek`),x=_.get(`dayOfWeekAbbr`);return(t||``).replace(/{a}/g,h+``).replace(/{A}/g,g+``).replace(/{yyyy}/g,a+``).replace(/{yy}/g,_v(a%100+``,2)).replace(/{Q}/g,s+``).replace(/{MMMM}/g,v[o-1]).replace(/{MMM}/g,y[o-1]).replace(/{MM}/g,_v(o,2)).replace(/{M}/g,o+``).replace(/{dd}/g,_v(c,2)).replace(/{d}/g,c+``).replace(/{eeee}/g,b[l]).replace(/{ee}/g,x[l]).replace(/{e}/g,l+``).replace(/{HH}/g,_v(u,2)).replace(/{H}/g,u+``).replace(/{hh}/g,_v(d+``,2)).replace(/{h}/g,d+``).replace(/{mm}/g,_v(f,2)).replace(/{m}/g,f+``).replace(/{ss}/g,_v(p,2)).replace(/{s}/g,p+``).replace(/{SSS}/g,_v(m,3)).replace(/{S}/g,m+``)}function Sv(e,t,n,r,i){var a=null;if(V(n))a=n;else if(B(n)){var o={time:e.time,level:e.time?e.time.level:0},s=lv();s&&s.makeAxisLabelFormatterParamBreak(o,e.break),a=n(e.value,t,o)}else{var c=e.time;if(c){var l=n[c.lowerTimeUnit][c.upperTimeUnit];a=l[Math.min(c.level,l.length-1)]||``}else{var u=Cv(e.value,i);a=n[u][u][0]}}return xv(new Date(e.value),a,i,r)}function Cv(e,t){var n=Qs(e),r=n[Ev(t)]()+1,i=n[Dv(t)](),a=n[Ov(t)](),o=n[kv(t)](),s=n[Av(t)](),c=n[jv(t)]()===0,l=c&&s===0,u=l&&o===0,d=u&&a===0,f=d&&i===1;return f&&r===1?`year`:f?`month`:d?`day`:u?`hour`:l?`minute`:c?`second`:`millisecond`}function wv(e,t,n){switch(t){case`year`:e[Nv(n)](0);case`month`:e[Pv(n)](1);case`day`:e[Fv(n)](0);case`hour`:e[Iv(n)](0);case`minute`:e[Lv(n)](0);case`second`:e[Rv(n)](0)}return e}function Tv(e){return e?`getUTCFullYear`:`getFullYear`}function Ev(e){return e?`getUTCMonth`:`getMonth`}function Dv(e){return e?`getUTCDate`:`getDate`}function Ov(e){return e?`getUTCHours`:`getHours`}function kv(e){return e?`getUTCMinutes`:`getMinutes`}function Av(e){return e?`getUTCSeconds`:`getSeconds`}function jv(e){return e?`getUTCMilliseconds`:`getMilliseconds`}function Mv(e){return e?`setUTCFullYear`:`setFullYear`}function Nv(e){return e?`setUTCMonth`:`setMonth`}function Pv(e){return e?`setUTCDate`:`setDate`}function Fv(e){return e?`setUTCHours`:`setHours`}function Iv(e){return e?`setUTCMinutes`:`setMinutes`}function Lv(e){return e?`setUTCSeconds`:`setSeconds`}function Rv(e){return e?`setUTCMilliseconds`:`setMilliseconds`}var zv,Bv,Vv,Hv,Uv,Wv,Gv,Kv,qv,Jv,Yv,Xv,Zv=n((()=>{K(),Y(),cv(),V_(),mv(),zv=1e3,Bv=zv*60,Vv=Bv*60,Hv=Vv*24,Uv=Hv*365,Wv={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})/},Gv={year:`{yyyy}`,month:`{MMM}`,day:`{d}`,hour:`{HH}:{mm}`,minute:`{HH}:{mm}`,second:`{HH}:{mm}:{ss}`,millisecond:`{HH}:{mm}:{ss} {SSS}`},Kv=`{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}`,qv=`{yyyy}-{MM}-{dd}`,Jv={year:`{yyyy}`,month:`{yyyy}-{MM}`,day:qv,hour:qv+` `+Gv.hour,minute:qv+` `+Gv.minute,second:qv+` `+Gv.second,millisecond:Kv},Yv=[`year`,`month`,`day`,`hour`,`minute`,`second`,`millisecond`],Xv=[`year`,`half-year`,`quarter`,`month`,`week`,`half-week`,`day`,`half-day`,`quarter-day`,`hour`,`minute`,`second`,`millisecond`]}));function Qv(e,t,n,r,i,a,o,s){return new zf({style:{text:e,font:t,align:n,verticalAlign:r,padding:i,rich:a,overflow:o?`truncate`:null,lineHeight:s}}).getBoundingRect()}var $v=n((()=>{s_()}));function ey(e){if(!ac(e))return V(e)?e:`-`;var t=(e+``).split(`.`);return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,`$1,`)+(t.length>1?`.`+t[1]:``)}function ty(e,t){return e=(e||``).toLowerCase().replace(/-(.)/g,function(e,t){return t.toUpperCase()}),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}function ny(e,t,n){var r=`{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}`;function i(e){return e&<(e)?e:`-`}function a(e){return lc(e)}var o=t===`time`,s=e instanceof Date;if(o||s){var c=o?Qs(e):e;if(!isNaN(+c))return xv(c,r,n);if(s)return`-`}if(t===`ordinal`)return Xe(e)?i(e):Ze(e)&&a(e)?e+``:`-`;var l=ic(e);return a(l)?ey(l):Xe(e)?i(e):typeof e==`boolean`?e+``:`-`}function ry(e,t,n){z(t)||(t=[t]);var r=t.length;if(!r)return``;for(var i=t[0].$vars||[],a=0;a<i.length;a++){var o=ly[a];e=e.replace(uy(o),uy(o,0))}for(var s=0;s<r;s++)for(var c=0;c<i.length;c++){var l=t[s][i[c]];e=e.replace(uy(ly[c],s),n?On(l):l)}return e}function iy(e,t){var n=V(e)?{color:e,extraCssText:t}:e||{},r=n.color,i=n.type;t=n.extraCssText;var a=n.renderMode||`html`;return r?a===`html`?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:`+On(r)+`;`+(t||``)+`"></span>`:`<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:`+On(r)+`;`+(t||``)+`"></span>`:{renderMode:a,content:`{`+(n.markerId||`markerX`)+`|} `,style:i===`subItem`?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}:``}function ay(e,t,n){process.env.NODE_ENV!==`production`&&jc(`echarts.format.formatTime`,`echarts.time.format`),(e===`week`||e===`month`||e===`quarter`||e===`half-year`||e===`year`)&&(e=`MM-dd
|
|
16
|
-
yyyy`);var r=Qs(t),i=n?`getUTC`:`get`,a=r[i+`FullYear`](),o=r[i+`Month`]()+1,s=r[i+`Date`](),c=r[i+`Hours`](),l=r[i+`Minutes`](),u=r[i+`Seconds`](),d=r[i+`Milliseconds`]();return e=e.replace(`MM`,_v(o,2)).replace(`M`,o).replace(`yyyy`,a).replace(`yy`,_v(a%100+``,2)).replace(`dd`,_v(s,2)).replace(`d`,s).replace(`hh`,_v(c,2)).replace(`h`,c).replace(`mm`,_v(l,2)).replace(`m`,l).replace(`ss`,_v(u,2)).replace(`s`,u).replace(`SSS`,_v(d,3)),e}function oy(e){return e&&e.charAt(0).toUpperCase()+e.substr(1)}function sy(e,t){return t||=`transparent`,V(e)?e:H(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}var cy,ly,uy,dy=n((()=>{K(),Nn(),Y(),Zv(),Lc(),Pu(),$v(),cy=ct,ly=[`a`,`b`,`c`,`d`,`e`,`f`,`g`],uy=function(e,t){return`{`+e+(t??``)+`}`}}));function fy(e){return!!_y[e]}function py(e){process.env.NODE_ENV!==`production`&&W(!by.get(e.fullType)),by.set(e.fullType,{getCoord2:void 0}).getCoord2=e.getCoord2}function my(e){var t=e.getShallow(`coord`,!0),n=1;if(t==null){var r=by.get(e.type);r&&r.getCoord2&&(n=2,t=r.getCoord2(e))}return{coord:t,from:n}}function hy(e,t){var n=e.getShallow(`coordinateSystem`),r=e.getShallow(`coordinateSystemUsage`,!0),i=r!=null,a=0;if(n){var o=e.mainType===`series`;r??=o?`data`:`box`,r===`data`?(a=1,o||(process.env.NODE_ENV!==`production`&&i&&t&&kc(`coordinateSystemUsage "data" is not supported in non-series components.`),a=0)):r===`box`&&(a=2,!o&&!fy(n)&&(process.env.NODE_ENV!==`production`&&i&&t&&kc(`coordinateSystem "`+n+`" cannot be used`+(` as coordinateSystemUsage "box" for "`+e.type+`" yet.`)),a=0))}return{coordSysType:n,kind:a}}function gy(e){var t=e.targetModel,n=e.coordSysType,r=e.coordSysProvider,i=e.isDefaultDataCoordSys,a=e.allowNotFound;process.env.NODE_ENV!==`production`&&W(!!n);var o=hy(t,!0),s=o.kind,c=o.coordSysType;if(i&&s!==1&&(s=1,c=n),s===0||c!==n)return 0;var l=r(n,t);return l?(s===1?(process.env.NODE_ENV!==`production`&&W(t.mainType===`series`),t.coordinateSystem=l):t.boxCoordinateSystem=l,s):(process.env.NODE_ENV!==`production`&&(a||kc(n+` cannot be found for`+(` `+t.type+` (index: `+t.componentIndex+`).`))),0)}var _y,vy,yy,by,xy=n((()=>{K(),Lc(),_y={},vy={},yy=function(){function e(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return e.prototype.create=function(e,t){this._nonSeriesBoxMasterList=n(_y,!0),this._normalMasterList=n(vy,!1);function n(n,r){var i=[];return L(n,function(n,a){var o=n.create(e,t);i=i.concat(o||[]),process.env.NODE_ENV!==`production`&&r&&L(o,function(e){return W(!e.update)})}),i}},e.prototype.update=function(e,t){L(this._normalMasterList,function(n){n.update&&n.update(e,t)})},e.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},e.register=function(e,t){if(e===`matrix`||e===`calendar`){_y[e]=t;return}vy[e]=t},e.get=function(e){return vy[e]||_y[e]},e}(),by=G()}));function Sy(e,t,n,r,i){var a=0,o=0;r??=1/0,i??=1/0;var s=0;t.eachChild(function(c,l){var u=c.getBoundingRect(),d=t.childAt(l+1),f=d&&d.getBoundingRect(),p,m;if(e===`horizontal`){var h=u.width+(f?-f.x+u.x:0);p=a+h,p>r||c.newline?(a=0,p=h,o+=s+n,s=u.height):s=Math.max(s,u.height)}else{var g=u.height+(f?-f.y+u.y:0);m=o+g,m>i||c.newline?(a+=s+n,o=0,m=g,s=u.width):s=Math.max(s,u.width)}c.newline||(c.x=a,c.y=o,c.markRedraw(),e===`horizontal`?a=p+n:o=m+n)})}function Cy(e,t){return{left:e.getShallow(`left`,t),top:e.getShallow(`top`,t),right:e.getShallow(`right`,t),bottom:e.getShallow(`bottom`,t),width:e.getShallow(`width`,t),height:e.getShallow(`height`,t)}}function wy(e,t){var n=Dy(e,t,{enableLayoutOnlyByCenter:!0}),r=e.getBoxLayoutParams(),i,a;if(n.type===Iy.point)a=n.refPoint,i=Ey(r,{width:t.getWidth(),height:t.getHeight()});else{var o=e.get(`center`),s=z(o)?o:[o,o];i=Ey(r,n.refContainer),a=n.boxCoordFrom===2?n.refPoint:[Cc(s[0],i.width)+i.x,Cc(s[1],i.height)+i.y]}return{viewRect:i,center:a}}function Ty(e,t){var n=wy(e,t),r=n.viewRect,i=n.center,a=e.get(`radius`);z(a)||(a=[0,a]);var o=Cc(r.width,t.getWidth()),s=Cc(r.height,t.getHeight()),c=Math.min(o,s),l=Cc(a[0],c/2),u=Cc(a[1],c/2);return{cx:i[0],cy:i[1],r0:l,r:u,viewRect:r}}function Ey(e,t,n){n=cy(n||0);var r=t.width,i=t.height,a=Cc(e.left,r),o=Cc(e.top,i),s=Cc(e.right,r),c=Cc(e.bottom,i),l=Cc(e.width,r),u=Cc(e.height,i),d=n[2]+n[0],f=n[1]+n[3],p=e.aspect;switch(isNaN(l)&&(l=r-s-f-a),isNaN(u)&&(u=i-c-d-o),p!=null&&(isNaN(l)&&isNaN(u)&&(p>r/i?l=r*.8:u=i*.8),isNaN(l)&&(l=p*u),isNaN(u)&&(u=l/p)),isNaN(a)&&(a=r-s-l-f),isNaN(o)&&(o=i-c-u-d),e.left||e.right){case`center`:a=r/2-l/2-n[3];break;case`right`:a=r-l-f;break}switch(e.top||e.bottom){case`middle`:case`center`:o=i/2-u/2-n[0];break;case`bottom`:o=i-u-d;break}a||=0,o||=0,isNaN(l)&&(l=r-f-a-(s||0)),isNaN(u)&&(u=i-d-o-(c||0));var m=new J((t.x||0)+a+n[3],(t.y||0)+o+n[0],l,u);return m.margin=n,m}function Dy(e,t,n){var r,i,a,o=e.boxCoordinateSystem,s;if(o){var c=my(e),l=c.coord,u=c.from;if(o.dataToLayout){a=Iy.rect,s=u;var d=o.dataToLayout(l);r=d.contentRect||d.rect}else n&&n.enableLayoutOnlyByCenter&&o.dataToPoint?(a=Iy.point,s=u,i=o.dataToPoint(l)):process.env.NODE_ENV!==`production`&&kc(e.type+`[`+e.componentIndex+`]`+(` layout based on `+o.type+` is not supported.`))}return a??=Iy.rect,a===Iy.rect&&(r||={x:0,y:0,width:t.getWidth(),height:t.getHeight()},i=[r.x+r.width/2,r.y+r.height/2]),{type:a,refContainer:r,refPoint:i,boxCoordFrom:s}}function Oy(e){var t=e.layoutMode||e.constructor.layoutMode;return H(t)?t:t?{type:t}:null}function ky(e,t,n){var r=n&&n.ignoreSize;!z(r)&&(r=[r,r]);var i=o(Py[0],0),a=o(Py[1],1);c(Py[0],e,i),c(Py[1],e,a);function o(n,i){var a={},o=0,c={},l=0,u=2;if(My(n,function(t){c[t]=e[t]}),My(n,function(e){gt(t,e)&&(a[e]=c[e]=t[e]),s(a,e)&&o++,s(c,e)&&l++}),r[i])return s(t,n[1])?c[n[2]]=null:s(t,n[2])&&(c[n[1]]=null),c;if(l===u||!o)return c;if(o>=u)return a;for(var d=0;d<n.length;d++){var f=n[d];if(!gt(a,f)&>(e,f)){a[f]=e[f];break}}return a}function s(e,t){return e[t]!=null&&e[t]!==`auto`}function c(e,t,n){My(e,function(e){t[e]=n[e]})}}function Ay(e){return jy({},e)}function jy(e,t){return t&&e&&My(Ny,function(n){gt(t,n)&&(e[n]=t[n])}),e}var My,Ny,Py,Fy,Iy,Ly=n((()=>{K(),Ar(),Y(),dy(),Lc(),xy(),My=L,Ny=[`left`,`right`,`top`,`bottom`,`width`,`height`],Py=[[`width`,`left`,`right`],[`height`,`top`,`bottom`]],Fy=Sy,Ye(Sy,`vertical`),Ye(Sy,`horizontal`),Iy={rect:1,point:2}}));function Ry(e){var t=[];return L(By.getClassesByMainType(e),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=R(t,function(e){return Rl(e).main}),e!==`dataset`&&Be(t,`dataset`)<=0&&t.unshift(`dataset`),t}var zy,By,Vy=n((()=>{P(),K(),V_(),q_(),Ql(),X(),Ly(),zy=ol(),By=function(e){N(t,e);function t(t,n,r){var i=e.call(this,t,n,r)||this;return i.uid=H_(`ec_cpt_model`),i}return t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=Oy(this),r=n?Ay(e):{};Ie(e,t.getTheme().get(this.mainType)),Ie(e,this.getDefaultOption()),n&&ky(e,r,n)},t.prototype.mergeOption=function(e,t){Ie(this.option,e,!0);var n=Oy(this);n&&ky(this.option,e,n)},t.prototype.optionUpdated=function(e,t){},t.prototype.getDefaultOption=function(){var e=this.constructor;if(!Bl(e))return e.defaultOption;var t=zy(this);if(!t.defaultOption){for(var n=[],r=e;r;){var i=r.prototype.defaultOption;i&&n.push(i),r=r.superClass}for(var a={},o=n.length-1;o>=0;o--)a=Ie(a,n[o],!0);t.defaultOption=a}return t.defaultOption},t.prototype.getReferringComponents=function(e,t){var n=e+`Index`,r=e+`Id`;return ll(this.ecModel,e,{index:this.get(n,!0),id:this.get(r,!0)},t)},t.prototype.getBoxLayoutParams=function(){return Cy(this,!1)},t.prototype.getZLevelKey=function(){return``},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=function(){var e=t.prototype;e.type=`component`,e.id=``,e.name=``,e.mainType=``,e.subType=``,e.componentIndex=0}(),t}(B_),Ul(By,B_),ql(By),U_(By),W_(By,Ry)})),Z,Hy,Uy,Wy=n((()=>{for(var e in K(),xa(),Z={color:{},darkColor:{},size:{}},Hy=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)`},I(Hy,{primary:Hy.neutral80,secondary:Hy.neutral70,tertiary:Hy.neutral60,quaternary:Hy.neutral50,disabled:Hy.neutral20,border:Hy.neutral30,borderTint:Hy.neutral20,borderShade:Hy.neutral40,background:Hy.neutral05,backgroundTint:`rgba(234,237,245,0.5)`,backgroundTransparent:`rgba(255,255,255,0)`,backgroundShade:Hy.neutral10,shadow:`rgba(0,0,0,0.2)`,shadowTint:`rgba(129,130,136,0.2)`,axisLine:Hy.neutral70,axisLineTint:Hy.neutral40,axisTick:Hy.neutral70,axisTickMinor:Hy.neutral60,axisLabel:Hy.neutral70,axisSplitLine:Hy.neutral15,axisMinorSplitLine:Hy.neutral05}),Hy)Hy.hasOwnProperty(e)&&(Uy=Hy[e],e===`theme`?Z.darkColor.theme=Hy.theme.slice():e===`highlight`?Z.darkColor.highlight=`rgba(255,231,130,0.4)`:e.indexOf(`accent`)===0?Z.darkColor[e]=la(Uy,null,function(e){return e*.5},function(e){return Math.min(1,1.3-e)}):Z.darkColor[e]=la(Uy,null,function(e){return e*.9},function(e){return 1-e**1.5}));Z.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50}})),Gy,Ky,qy,Jy,Yy,Xy=n((()=>{xa(),Wy(),Gy=``,typeof navigator<`u`&&(Gy=navigator.platform||``),Ky=`rgba(0, 0, 0, 0.2)`,qy=Z.color.theme[0],Jy=la(qy,null,null,.9),Yy={darkMode:`auto`,colorBy:`series`,color:Z.color.theme,gradientColor:[Jy,qy],aria:{decal:{decals:[{color:Ky,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Ky,symbol:`circle`,dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Ky,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Ky,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Ky,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Ky,symbol:`triangle`,dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Gy.match(/^Win/)?`Microsoft YaHei`:`sans-serif`,fontSize:12,fontStyle:`normal`,fontWeight:`normal`},blendMode:null,stateAnimation:{duration:300,easing:`cubicOut`},animation:`auto`,animationDuration:1e3,animationDurationUpdate:500,animationEasing:`cubicInOut`,animationEasingUpdate:`cubicInOut`,animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1}}));function Zy(e){ab(e).datasetMap=G()}function Qy(e,t,n){var r={},i=eb(t);if(!i||!e)return r;var a=[],o=[],s=t.ecModel,c=ab(s).datasetMap,l=i.uid+`_`+n.seriesLayoutBy,u,d;e=e.slice(),L(e,function(t,n){var i=H(t)?t:e[n]={name:t};i.type===`ordinal`&&u==null&&(u=n,d=m(i)),r[i.name]=[]});var f=c.get(l)||c.set(l,{categoryWayDim:d,valueWayDim:0});L(e,function(e,t){var n=e.name,i=m(e);if(u==null){var s=f.valueWayDim;p(r[n],s,i),p(o,s,i),f.valueWayDim+=i}else if(u===t)p(r[n],0,i),p(a,0,i);else{var s=f.categoryWayDim;p(r[n],s,i),p(o,s,i),f.categoryWayDim+=i}});function p(e,t,n){for(var r=0;r<n;r++)e.push(t+r)}function m(e){var t=e.dimsDef;return t?t.length:1}return a.length&&(r.itemName=a),o.length&&(r.seriesName=o),r}function $y(e,t,n){var r={};if(!eb(e))return r;var i=t.sourceFormat,a=t.dimensionsDefine,o;(i===`objectRows`||i===`keyedColumns`)&&L(a,function(e,t){(H(e)?e.name:e)===`name`&&(o=t)});var s=function(){for(var e={},r={},s=[],c=0,l=Math.min(5,n);c<l;c++){var u=rb(t.data,i,t.seriesLayoutBy,a,t.startIndex,c);s.push(u);var d=u===ib.Not;if(d&&e.v==null&&c!==o&&(e.v=c),(e.n==null||e.n===e.v||!d&&s[e.n]===ib.Not)&&(e.n=c),f(e)&&s[e.n]!==ib.Not)return e;d||(u===ib.Might&&r.v==null&&c!==o&&(r.v=c),(r.n==null||r.n===r.v)&&(r.n=c))}function f(e){return e.v!=null&&e.n!=null}return f(e)?e:f(r)?r:null}();if(s){r.value=[s.v];var c=o??s.n;r.itemName=[c],r.seriesName=[c]}return r}function eb(e){if(!e.get(`data`,!0))return ll(e.ecModel,`dataset`,{index:e.get(`datasetIndex`,!0),id:e.get(`datasetId`,!0)},Il).models[0]}function tb(e){return!e.get(`transform`,!0)&&!e.get(`fromTransformResult`,!0)?[]:ll(e.ecModel,`dataset`,{index:e.get(`fromDatasetIndex`,!0),id:e.get(`fromDatasetId`,!0)},Il).models}function nb(e,t){return rb(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function rb(e,t,n,r,i,a){var o,s=5;if($e(e))return ib.Not;var c,l;if(r){var u=r[a];H(u)?(c=u.name,l=u.type):V(u)&&(c=u)}if(l!=null)return l===`ordinal`?ib.Must:ib.Not;if(t===`arrayRows`){var d=e;if(n===`row`){for(var f=d[a],p=0;p<(f||[]).length&&p<s;p++)if((o=b(f[i+p]))!=null)return o}else for(var p=0;p<d.length&&p<s;p++){var m=d[i+p];if(m&&(o=b(m[a]))!=null)return o}}else if(t===`objectRows`){var h=e;if(!c)return ib.Not;for(var p=0;p<h.length&&p<s;p++){var g=h[p];if(g&&(o=b(g[c]))!=null)return o}}else if(t===`keyedColumns`){var _=e;if(!c)return ib.Not;var f=_[c];if(!f||$e(f))return ib.Not;for(var p=0;p<f.length&&p<s;p++)if((o=b(f[p]))!=null)return o}else if(t===`original`)for(var v=e,p=0;p<v.length&&p<s;p++){var g=v[p],y=Vc(g);if(!z(y))return ib.Not;if((o=b(y[a]))!=null)return o}function b(e){var t=V(e);if(e!=null&&isFinite(Number(e))&&e!==``)return t?ib.Might:ib.Not;if(t&&e!==`-`)return ib.Must}return ib.Not}var ib,ab,ob=n((()=>{X(),K(),tp(),ib={Must:1,Might:2,Not:3},ab=ol()}));function sb(e,t,n){var r=cb.get(t);if(!r)return n;var i=r(e);if(!i)return n;if(process.env.NODE_ENV!==`production`)for(var a=0;a<i.length;a++)W(nl(i[a]));return n.concat(i)}var cb,lb=n((()=>{K(),X(),cb=G()}));function ub(e,t){for(var n=e.length,r=0;r<n;r++)if(e[r].length>t)return e[r];return e[n-1]}function db(e,t,n,r,i,a,o){a||=e;var s=t(a),c=s.paletteIdx||0,l=s.paletteNameMap=s.paletteNameMap||{};if(l.hasOwnProperty(i))return l[i];var u=o==null||!r?n:ub(r,o);if(u||=n,!(!u||!u.length)){var d=u[c];return i&&(l[i]=d),s.paletteIdx=(c+1)%u.length,d}}function fb(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var pb,mb,hb=n((()=>{X(),pb=ol(),ol(),mb=function(){function e(){}return e.prototype.getColorFromPalette=function(e,t,n){var r=zc(this.get(`color`,!0)),i=this.get(`colorLayer`,!0);return db(this,pb,r,i,e,t,n)},e.prototype.clearColorPalette=function(){fb(this,pb)},e}()}));function gb(e){L(e,function(e,t){if(!By.hasClass(t)){var n=Db[t];n&&!kb[n]&&(kc(`Component `+t+` is used but not imported.
|
|
17
|
-
import { `+n+` } from 'echarts/components';
|
|
18
|
-
echarts.use([`+n+`]);`),kb[n]=!0)}})}function _b(e,t){if(t){var n=t.seriesIndex,r=t.seriesId,i=t.seriesName;return n!=null&&e.componentIndex!==n||r!=null&&e.id!==r||i!=null&&e.name!==i}}function vb(e,t){var n=e.color&&!e.colorLayer;L(t,function(t,r){r===`colorLayer`&&n||r===`color`&&e.color||By.hasClass(r)||(typeof t==`object`?e[r]=e[r]?Ie(e[r],t,!1):Fe(t):e[r]??(e[r]=t))})}function yb(e,t,n){if(z(t)){var r=G();return L(t,function(e){e!=null&&Qc(e,null)!=null&&r.set(e,!0)}),Ge(n,function(t){return t&&r.get(t[e])})}else{var i=Qc(t,null);return Ge(n,function(t){return t&&i!=null&&t[e]===i})}}function bb(e,t){return t.hasOwnProperty(`subType`)?Ge(e,function(e){return e&&e.subType===t.subType}):e}function xb(e){var t=G();return e&&L(zc(e.replaceMerge),function(e){process.env.NODE_ENV!==`production`&&W(By.hasClass(e),`"`+e+`" is not valid component main type in "replaceMerge"`),t.set(e,!0)}),{replaceMergeMainTypeMap:t}}var Sb,Cb,wb,Tb,Eb,Db,Ob,kb,Ab,jb=n((()=>{P(),K(),X(),V_(),Vy(),Xy(),ob(),lb(),hb(),Lc(),Tb=`\0_ec_inner`,Eb=1,Db={grid:`GridComponent`,polar:`PolarComponent`,geo:`GeoComponent`,singleAxis:`SingleAxisComponent`,parallel:`ParallelComponent`,calendar:`CalendarComponent`,matrix:`MatrixComponent`,graphic:`GraphicComponent`,toolbox:`ToolboxComponent`,tooltip:`TooltipComponent`,axisPointer:`AxisPointerComponent`,brush:`BrushComponent`,title:`TitleComponent`,timeline:`TimelineComponent`,markPoint:`MarkPointComponent`,markLine:`MarkLineComponent`,markArea:`MarkAreaComponent`,legend:`LegendComponent`,dataZoom:`DataZoomComponent`,visualMap:`VisualMapComponent`,xAxis:`GridComponent`,yAxis:`GridComponent`,angleAxis:`PolarComponent`,radiusAxis:`PolarComponent`},Ob={line:`LineChart`,bar:`BarChart`,pie:`PieChart`,scatter:`ScatterChart`,radar:`RadarChart`,map:`MapChart`,tree:`TreeChart`,treemap:`TreemapChart`,graph:`GraphChart`,chord:`ChordChart`,gauge:`GaugeChart`,funnel:`FunnelChart`,parallel:`ParallelChart`,sankey:`SankeyChart`,boxplot:`BoxplotChart`,candlestick:`CandlestickChart`,effectScatter:`EffectScatterChart`,lines:`LinesChart`,heatmap:`HeatmapChart`,pictorialBar:`PictorialBarChart`,themeRiver:`ThemeRiverChart`,sunburst:`SunburstChart`,custom:`CustomChart`},kb={},Ab=function(e){N(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(e,t,n,r,i,a){r||={},this.option=null,this._theme=new B_(r),this._locale=new B_(i),this._optionManager=a},t.prototype.setOption=function(e,t,n){process.env.NODE_ENV!==`production`&&(W(e!=null,`option is null/undefined`),W(e[Tb]!==Eb,`please use chart.getOption()`));var r=xb(t);this._optionManager.setOption(e,n,r),this._resetOption(null,r)},t.prototype.resetOption=function(e,t){return this._resetOption(e,xb(t))},t.prototype._resetOption=function(e,t){var n=!1,r=this._optionManager;if(!e||e===`recreate`){var i=r.mountOption(e===`recreate`);process.env.NODE_ENV!==`production`&&gb(i),!this.option||e===`recreate`?wb(this,i):(this.restoreData(),this._mergeOption(i,t)),n=!0}if((e===`timeline`||e===`media`)&&this.restoreData(),!e||e===`recreate`||e===`timeline`){var a=r.getTimelineOption(this);a&&(n=!0,this._mergeOption(a,t))}if(!e||e===`recreate`||e===`media`){var o=r.getMediaOption(this);o.length&&L(o,function(e){n=!0,this._mergeOption(e,t)},this)}return n},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,t){var n=this.option,r=this._componentsMap,i=this._componentsCount,a=[],o=G(),s=t&&t.replaceMergeMainTypeMap;Zy(this),L(e,function(e,t){e!=null&&(By.hasClass(t)?t&&(a.push(t),o.set(t,!0)):n[t]=n[t]==null?Fe(e):Ie(n[t],e,!0))}),s&&s.each(function(e,t){By.hasClass(t)&&!o.get(t)&&(a.push(t),o.set(t,!0))}),By.topologicalTravel(a,By.getAllClassMainTypes(),c,this);function c(t){var a=sb(this,t,zc(e[t])),o=r.get(t),c=Uc(o,a,o?s&&s.get(t)?`replaceMerge`:`normalMerge`:`replaceAll`);rl(c,t,By),n[t]=null,r.set(t,null),i.set(t,0);var l=[],u=[],d=0,f,p;L(c,function(e,n){var r=e.existing,i=e.newOption;if(!i)r&&(r.mergeOption({},this),r.optionUpdated({},!1));else{var a=t===`series`,o=By.getClass(t,e.keyInfo.subType,!a);if(!o){if(process.env.NODE_ENV!==`production`){var s=e.keyInfo.subType,c=Ob[s];kb[s]||(kb[s]=!0,kc(c?`Series `+s+` is used but not imported.
|
|
19
|
-
import { `+c+` } from 'echarts/charts';
|
|
20
|
-
echarts.use([`+c+`]);`:`Unknown series `+s))}return}if(t===`tooltip`){if(f){process.env.NODE_ENV!==`production`&&(p||=(Oc(`Currently only one tooltip component is allowed.`),!0));return}f=!0}if(r&&r.constructor===o)r.name=e.keyInfo.name,r.mergeOption(i,this),r.optionUpdated(i,!1);else{var m=I({componentIndex:n},e.keyInfo);r=new o(i,this,this,m),I(r,m),e.brandNew&&(r.__requireNewView=!0),r.init(i,this,this),r.optionUpdated(null,!0)}}r?(l.push(r.option),u.push(r),d++):(l.push(void 0),u.push(void 0))},this),n[t]=l,r.set(t,u),i.set(t,d),t===`series`&&Sb(this)}this._seriesIndices||Sb(this)},t.prototype.getOption=function(){var e=Fe(this.option);return L(e,function(t,n){if(By.hasClass(n)){for(var r=zc(t),i=r.length,a=!1,o=i-1;o>=0;o--)r[o]&&!nl(r[o])?a=!0:(r[o]=null,!a&&i--);r.length=i,e[n]=r}}),delete e[Tb],e},t.prototype.setTheme=function(e){this._theme=new B_(e),this._resetOption(`recreate`,null)},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,t){var n=this._componentsMap.get(e);if(n){var r=n[t||0];if(r)return r;if(t==null){for(var i=0;i<n.length;i++)if(n[i])return n[i]}}},t.prototype.queryComponents=function(e){var t=e.mainType;if(!t)return[];var n=e.index,r=e.id,i=e.name,a=this._componentsMap.get(t);if(!a||!a.length)return[];var o;return n==null?o=r==null?i==null?Ge(a,function(e){return!!e}):yb(`name`,i,a):yb(`id`,r,a):(o=[],L(zc(n),function(e){a[e]&&o.push(a[e])})),bb(o,e)},t.prototype.findComponents=function(e){var t=e.query,n=e.mainType,r=i(t);return a(bb(r?this.queryComponents(r):Ge(this._componentsMap.get(n),function(e){return!!e}),e));function i(e){var t=n+`Index`,r=n+`Id`,i=n+`Name`;return e&&(e[t]!=null||e[r]!=null||e[i]!=null)?{mainType:n,index:e[t],id:e[r],name:e[i]}:null}function a(t){return e.filter?Ge(t,e.filter):t}},t.prototype.eachComponent=function(e,t,n){var r=this._componentsMap;if(B(e)){var i=t,a=e;r.each(function(e,t){for(var n=0;e&&n<e.length;n++){var r=e[n];r&&a.call(i,t,r,r.componentIndex)}})}else for(var o=V(e)?r.get(e):H(e)?this.findComponents(e):null,s=0;o&&s<o.length;s++){var c=o[s];c&&t.call(n,c,c.componentIndex)}},t.prototype.getSeriesByName=function(e){var t=Qc(e,null);return Ge(this._componentsMap.get(`series`),function(e){return!!e&&t!=null&&e.name===t})},t.prototype.getSeriesByIndex=function(e){return this._componentsMap.get(`series`)[e]},t.prototype.getSeriesByType=function(e){return Ge(this._componentsMap.get(`series`),function(t){return!!t&&t.subType===e})},t.prototype.getSeries=function(){return Ge(this._componentsMap.get(`series`),function(e){return!!e})},t.prototype.getSeriesCount=function(){return this._componentsCount.get(`series`)},t.prototype.eachSeries=function(e,t){Cb(this),L(this._seriesIndices,function(n){var r=this._componentsMap.get(`series`)[n];e.call(t,r,n)},this)},t.prototype.eachRawSeries=function(e,t){L(this._componentsMap.get(`series`),function(n){n&&e.call(t,n,n.componentIndex)})},t.prototype.eachSeriesByType=function(e,t,n){Cb(this),L(this._seriesIndices,function(r){var i=this._componentsMap.get(`series`)[r];i.subType===e&&t.call(n,i,r)},this)},t.prototype.eachRawSeriesByType=function(e,t,n){return L(this.getSeriesByType(e),t,n)},t.prototype.isSeriesFiltered=function(e){return Cb(this),this._seriesIndicesMap.get(e.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(e,t){Cb(this);var n=[];L(this._seriesIndices,function(r){var i=this._componentsMap.get(`series`)[r];e.call(t,i,r)&&n.push(r)},this),this._seriesIndices=n,this._seriesIndicesMap=G(n)},t.prototype.restoreData=function(e){Sb(this);var t=this._componentsMap,n=[];t.each(function(e,t){By.hasClass(t)&&n.push(t)}),By.topologicalTravel(n,By.getAllClassMainTypes(),function(n){L(t.get(n),function(t){t&&(n!==`series`||!_b(t,e))&&t.restoreData()})})},t.internalField=function(){Sb=function(e){var t=e._seriesIndices=[];L(e._componentsMap.get(`series`),function(e){e&&t.push(e.componentIndex)}),e._seriesIndicesMap=G(t)},Cb=function(e){if(process.env.NODE_ENV!==`production`&&!e._seriesIndices)throw Error(`Option should contains series.`)},wb=function(e,t){e.option={},e.option[Tb]=Eb,e._componentsMap=G({series:[]}),e._componentsCount=G();var n=t.aria;H(n)&&n.enabled==null&&(n.enabled=!0),vb(t,e._theme.option),Ie(t,Yy,!1),e._mergeOption(t,null)}}(),t}(B_),He(Ab,mb)}));function Mb(e,t,n){var r=[],i,a,o=e.baseOption,s=e.timeline,c=e.options,l=e.media,u=!!e.media,d=!!(c||s||o&&o.timeline);o?(a=o,a.timeline||=s):((d||u)&&(e.options=e.media=null),a=e),u&&(z(l)?L(l,function(e){process.env.NODE_ENV!==`production`&&e&&!e.option&&H(e.query)&&H(e.query.option)&&kc(`Illegal media option. Must be like { media: [ { query: {}, option: {} } ] }`),e&&e.option&&(e.query?r.push(e):i||=e)}):process.env.NODE_ENV!==`production`&&kc(`Illegal media option. Must be an array. Like { media: [ {...}, {...} ] }`)),f(a),L(c,function(e){return f(e)}),L(r,function(e){return f(e.option)});function f(e){L(t,function(t){t(e,n)})}return{baseOption:a,timelineOptions:c||[],mediaDefault:i,mediaList:r}}function Nb(e,t,n){var r={width:t,height:n,aspectratio:t/n},i=!0;return L(e,function(e,t){var n=t.match(Ib);if(!(!n||!n[1]||!n[2])){var a=n[1];Pb(r[n[2].toLowerCase()],e,a)||(i=!1)}}),i}function Pb(e,t,n){return n===`min`?e>=t:n===`max`?e<=t:e===t}function Fb(e,t){return e.join(`,`)===t.join(`,`)}var Ib,Lb,Rb=n((()=>{X(),K(),Lc(),Ib=/^(min|max)?(.+)$/,Lb=function(){function e(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return e.prototype.setOption=function(e,t,n){e&&(L(zc(e.series),function(e){e&&e.data&&$e(e.data)&&ut(e.data)}),L(zc(e.dataset),function(e){e&&e.source&&$e(e.source)&&ut(e.source)})),e=Fe(e);var r=this._optionBackup,i=Mb(e,t,!r);this._newBaseOption=i.baseOption,r?(i.timelineOptions.length&&(r.timelineOptions=i.timelineOptions),i.mediaList.length&&(r.mediaList=i.mediaList),i.mediaDefault&&(r.mediaDefault=i.mediaDefault)):this._optionBackup=i},e.prototype.mountOption=function(e){var t=this._optionBackup;return this._timelineOptions=t.timelineOptions,this._mediaList=t.mediaList,this._mediaDefault=t.mediaDefault,this._currentMediaIndices=[],Fe(e?t.baseOption:this._newBaseOption)},e.prototype.getTimelineOption=function(e){var t,n=this._timelineOptions;if(n.length){var r=e.getComponent(`timeline`);r&&(t=Fe(n[r.getCurrentIndex()]))}return t},e.prototype.getMediaOption=function(e){var t=this._api.getWidth(),n=this._api.getHeight(),r=this._mediaList,i=this._mediaDefault,a=[],o=[];if(!r.length&&!i)return o;for(var s=0,c=r.length;s<c;s++)Nb(r[s].query,t,n)&&a.push(s);return!a.length&&i&&(a=[-1]),a.length&&!Fb(a,this._currentMediaIndices)&&(o=R(a,function(e){return Fe(e===-1?i.option:r[e].option)})),this._currentMediaIndices=a,o},e}()}));function zb(e){var t=e&&e.itemStyle;if(t)for(var n=0,r=Xb.length;n<r;n++){var i=Xb[n],a=t.normal,o=t.emphasis;a&&a[i]&&(process.env.NODE_ENV!==`production`&&jc(`itemStyle.normal.`+i,i),e[i]=e[i]||{},e[i].normal?Ie(e[i].normal,a[i]):e[i].normal=a[i],a[i]=null),o&&o[i]&&(process.env.NODE_ENV!==`production`&&jc(`itemStyle.emphasis.`+i,`emphasis.`+i),e[i]=e[i]||{},e[i].emphasis?Ie(e[i].emphasis,o[i]):e[i].emphasis=o[i],o[i]=null)}}function Bb(e,t,n){if(e&&e[t]&&(e[t].normal||e[t].emphasis)){var r=e[t].normal,i=e[t].emphasis;r&&(process.env.NODE_ENV!==`production`&&Ac(`'normal' hierarchy in `+t+` has been removed since 4.0. All style properties are configured in `+t+` directly now.`),n?(e[t].normal=e[t].emphasis=null,ze(e[t],r)):e[t]=r),i&&(process.env.NODE_ENV!==`production`&&Ac(t+`.emphasis has been changed to emphasis.`+t+` since 4.0`),e.emphasis=e.emphasis||{},e.emphasis[t]=i,i.focus&&(e.emphasis.focus=i.focus),i.blurScope&&(e.emphasis.blurScope=i.blurScope))}}function Vb(e){Bb(e,`itemStyle`),Bb(e,`lineStyle`),Bb(e,`areaStyle`),Bb(e,`label`),Bb(e,`labelLine`),Bb(e,`upperLabel`),Bb(e,`edgeLabel`)}function Hb(e,t){var n=Yb(e)&&e[t],r=Yb(n)&&n.textStyle;if(r){process.env.NODE_ENV!==`production`&&Ac(`textStyle hierarchy in `+t+` has been removed since 4.0. All textStyle properties are configured in `+t+` directly now.`);for(var i=0,a=Pl.length;i<a;i++){var o=Pl[i];r.hasOwnProperty(o)&&(n[o]=r[o])}}}function Ub(e){e&&(Vb(e),Hb(e,`label`),e.emphasis&&Hb(e.emphasis,`label`))}function Wb(e){if(Yb(e)){zb(e),Vb(e),Hb(e,`label`),Hb(e,`upperLabel`),Hb(e,`edgeLabel`),e.emphasis&&(Hb(e.emphasis,`label`),Hb(e.emphasis,`upperLabel`),Hb(e.emphasis,`edgeLabel`));var t=e.markPoint;t&&(zb(t),Ub(t));var n=e.markLine;n&&(zb(n),Ub(n));var r=e.markArea;r&&Ub(r);var i=e.data;if(e.type===`graph`){i||=e.nodes;var a=e.links||e.edges;if(a&&!$e(a))for(var o=0;o<a.length;o++)Ub(a[o]);L(e.categories,function(e){Vb(e)})}if(i&&!$e(i))for(var o=0;o<i.length;o++)Ub(i[o]);if(t=e.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)Ub(s[o]);if(n=e.markLine,n&&n.data)for(var c=n.data,o=0;o<c.length;o++)z(c[o])?(Ub(c[o][0]),Ub(c[o][1])):Ub(c[o]);e.type===`gauge`?(Hb(e,`axisLabel`),Hb(e,`title`),Hb(e,`detail`)):e.type===`treemap`?(Bb(e.breadcrumb,`itemStyle`),L(e.levels,function(e){Vb(e)})):e.type===`tree`&&Vb(e.leaves)}}function Gb(e){return z(e)?e:e?[e]:[]}function Kb(e){return(z(e)?e[0]:e)||{}}function qb(e,t){Jb(Gb(e.series),function(e){Yb(e)&&Wb(e)});var n=[`xAxis`,`yAxis`,`radiusAxis`,`angleAxis`,`singleAxis`,`parallelAxis`,`radar`];t&&n.push(`valueAxis`,`categoryAxis`,`logAxis`,`timeAxis`),Jb(n,function(t){Jb(Gb(e[t]),function(e){e&&(Hb(e,`axisLabel`),Hb(e.axisPointer,`label`))})}),Jb(Gb(e.parallel),function(e){var t=e&&e.parallelAxisDefault;Hb(t,`axisLabel`),Hb(t&&t.axisPointer,`label`)}),Jb(Gb(e.calendar),function(e){Bb(e,`itemStyle`),Hb(e,`dayLabel`),Hb(e,`monthLabel`),Hb(e,`yearLabel`)}),Jb(Gb(e.radar),function(e){Hb(e,`name`),e.name&&e.axisName==null&&(e.axisName=e.name,delete e.name,process.env.NODE_ENV!==`production`&&Ac(`name property in radar component has been changed to axisName`)),e.nameGap!=null&&e.axisNameGap==null&&(e.axisNameGap=e.nameGap,delete e.nameGap,process.env.NODE_ENV!==`production`&&Ac(`nameGap property in radar component has been changed to axisNameGap`)),process.env.NODE_ENV!==`production`&&Jb(e.indicator,function(e){e.text&&jc(`text`,`name`,`radar.indicator`)})}),Jb(Gb(e.geo),function(e){Yb(e)&&(Ub(e),Jb(Gb(e.regions),function(e){Ub(e)}))}),Jb(Gb(e.timeline),function(e){Ub(e),Bb(e,`label`),Bb(e,`itemStyle`),Bb(e,`controlStyle`,!0);var t=e.data;z(t)&&L(t,function(e){H(e)&&(Bb(e,`label`),Bb(e,`itemStyle`))})}),Jb(Gb(e.toolbox),function(e){Bb(e,`iconStyle`),Jb(e.feature,function(e){Bb(e,`iconStyle`)})}),Hb(Kb(e.axisPointer),`label`),Hb(Kb(e.tooltip).axisPointer,`label`)}var Jb,Yb,Xb,Zb=n((()=>{K(),X(),Lc(),Jb=L,Yb=H,Xb=[`areaStyle`,`lineStyle`,`nodeStyle`,`linkStyle`,`chordStyle`,`label`,`labelLine`]}));function Qb(e,t){for(var n=t.split(`,`),r=e,i=0;i<n.length&&(r&&=r[n[i]],r!=null);i++);return r}function $b(e,t,n,r){for(var i=t.split(`,`),a=e,o,s=0;s<i.length-1;s++)o=i[s],a[o]??(a[o]={}),a=a[o];(r||a[i[s]]==null)&&(a[i[s]]=n)}function ex(e){e&&L(sx,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}function tx(e){var t=e&&e.itemStyle;if(t)for(var n=0;n<lx.length;n++){var r=lx[n][1],i=lx[n][0];t[r]!=null&&(t[i]=t[r],process.env.NODE_ENV!==`production`&&jc(r,i))}}function nx(e){e&&e.alignTo===`edge`&&e.margin!=null&&e.edgeDistance==null&&(process.env.NODE_ENV!==`production`&&jc(`label.margin`,`label.edgeDistance`,`pie`),e.edgeDistance=e.margin)}function rx(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay,process.env.NODE_ENV!==`production`&&jc(`downplay`,`blur`,`sunburst`))}function ix(e){e&&e.focusNodeAdjacency!=null&&(e.emphasis=e.emphasis||{},e.emphasis.focus??(process.env.NODE_ENV!==`production`&&jc(`focusNodeAdjacency`,`emphasis: { focus: 'adjacency'}`,`graph/sankey`),e.emphasis.focus=`adjacency`))}function ax(e,t){if(e)for(var n=0;n<e.length;n++)t(e[n]),e[n]&&ax(e[n].children,t)}function ox(e,t){qb(e,t),e.series=zc(e.series),L(e.series,function(e){if(H(e)){var t=e.type;if(t===`line`)e.clipOverflow!=null&&(e.clip=e.clipOverflow,process.env.NODE_ENV!==`production`&&jc(`clipOverflow`,`clip`,`line`));else if(t===`pie`||t===`gauge`){e.clockWise!=null&&(e.clockwise=e.clockWise,process.env.NODE_ENV!==`production`&&jc(`clockWise`,`clockwise`)),nx(e.label);var n=e.data;if(n&&!$e(n))for(var r=0;r<n.length;r++)nx(n[r]);e.hoverOffset!=null&&(e.emphasis=e.emphasis||{},(e.emphasis.scaleSize=null)&&(process.env.NODE_ENV!==`production`&&jc(`hoverOffset`,`emphasis.scaleSize`),e.emphasis.scaleSize=e.hoverOffset))}else if(t===`gauge`){var i=Qb(e,`pointer.color`);i!=null&&$b(e,`itemStyle.color`,i)}else if(t===`bar`){tx(e),tx(e.backgroundStyle),tx(e.emphasis);var n=e.data;if(n&&!$e(n))for(var r=0;r<n.length;r++)typeof n[r]==`object`&&(tx(n[r]),tx(n[r]&&n[r].emphasis))}else if(t===`sunburst`){var a=e.highlightPolicy;a&&(e.emphasis=e.emphasis||{},e.emphasis.focus||(e.emphasis.focus=a,process.env.NODE_ENV!==`production`&&jc(`highlightPolicy`,`emphasis.focus`,`sunburst`))),rx(e),ax(e.data,rx)}else t===`graph`||t===`sankey`?ix(e):t===`map`&&(e.mapType&&!e.map&&(process.env.NODE_ENV!==`production`&&jc(`mapType`,`map`,`map`),e.map=e.mapType),e.mapLocation&&(process.env.NODE_ENV!==`production`&&Ac("`mapLocation` is not used anymore."),ze(e,e.mapLocation)));e.hoverAnimation!=null&&(e.emphasis=e.emphasis||{},e.emphasis&&e.emphasis.scale==null&&(process.env.NODE_ENV!==`production`&&jc(`hoverAnimation`,`emphasis.scale`),e.emphasis.scale=e.hoverAnimation)),ex(e)}}),e.dataRange&&(e.visualMap=e.dataRange),L(cx,function(t){var n=e[t];n&&(z(n)||(n=[n]),L(n,function(e){ex(e)}))})}var sx,cx,lx,ux=n((()=>{K(),Zb(),X(),Lc(),sx=[[`x`,`left`],[`y`,`top`],[`x2`,`right`],[`y2`,`bottom`]],cx=[`grid`,`geo`,`parallel`,`legend`,`toolbox`,`title`,`visualMap`,`dataZoom`,`timeline`],lx=[[`borderRadius`,`barBorderRadius`],[`borderColor`,`barBorderColor`],[`borderWidth`,`barBorderWidth`]]}));function dx(e){var t=G();e.eachSeries(function(e){var n=e.get(`stack`);if(n){var r=t.get(n)||t.set(n,[]),i=e.getData(),a={stackResultDimension:i.getCalculationInfo(`stackResultDimension`),stackedOverDimension:i.getCalculationInfo(`stackedOverDimension`),stackedDimension:i.getCalculationInfo(`stackedDimension`),stackedByDimension:i.getCalculationInfo(`stackedByDimension`),isStackedByIndex:i.getCalculationInfo(`isStackedByIndex`),data:i,seriesModel:e};if(!a.stackedDimension||!(a.isStackedByIndex||a.stackedByDimension))return;r.push(a)}}),t.each(function(e){e.length!==0&&((e[0].seriesModel.get(`stackOrder`)||`seriesAsc`)===`seriesDesc`&&e.reverse(),L(e,function(t,n){t.data.setCalculationInfo(`stackedOnSeries`,n>0?e[n-1].seriesModel:null)}),fx(e))})}function fx(e){L(e,function(t,n){var r=[],i=[NaN,NaN],a=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,c=t.seriesModel.get(`stackStrategy`)||`samesign`;o.modify(a,function(a,l,u){var d=o.get(t.stackedDimension,u);if(isNaN(d))return i;var f,p;s?p=o.getRawIndex(u):f=o.get(t.stackedByDimension,u);for(var m=NaN,h=n-1;h>=0;h--){var g=e[h];if(s||(p=g.data.rawIndexOf(g.stackedByDimension,f)),p>=0){var _=g.data.getByRawIndex(g.stackResultDimension,p);if(c===`all`||c===`positive`&&_>0||c===`negative`&&_<0||c===`samesign`&&d>=0&&_>0||c===`samesign`&&d<=0&&_<0){d=Ys(d,_),m=_;break}}}return r[0]=d,r[1]=m,r})})}var px,mx=n((()=>{K(),Y(),X(),px=jl(dx)}));function hx(e){return e instanceof Ex}function gx(e,t,n){n||=yx(e);var r=t.seriesLayoutBy,i=bx(e,n,r,t.sourceHeader,t.dimensions);return new Ex({data:e,sourceFormat:n,seriesLayoutBy:r,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:Fe(t)})}function _x(e){return new Ex({data:e,sourceFormat:$e(e)?Qf:Jf})}function vx(e){return new Ex({data:e.data,sourceFormat:e.sourceFormat,seriesLayoutBy:e.seriesLayoutBy,dimensionsDefine:Fe(e.dimensionsDefine),startIndex:e.startIndex,dimensionsDetectedCount:e.dimensionsDetectedCount})}function yx(e){var t=$f;if($e(e))t=Qf;else if(z(e)){e.length===0&&(t=Yf);for(var n=0,r=e.length;n<r;n++){var i=e[n];if(i!=null){if(z(i)||$e(i)){t=Yf;break}else if(H(i)){t=Xf;break}}}}else if(H(e)){for(var a in e)if(gt(e,a)&&Ue(e[a])){t=Zf;break}}return t}function bx(e,t,n,r,i){var a,o;if(!e)return{dimensionsDefine:Sx(i),startIndex:o,dimensionsDetectedCount:a};if(t===`arrayRows`){var s=e;r===`auto`||r==null?Cx(function(e){e!=null&&e!==`-`&&(V(e)?o??=1:o=0)},n,s,10):o=Ze(r)?r:+!!r,!i&&o===1&&(i=[],Cx(function(e,t){i[t]=e==null?``:e+``},n,s,1/0)),a=i?i.length:n===`row`?s.length:s[0]?s[0].length:null}else if(t===`objectRows`)i||=xx(e);else if(t===`keyedColumns`)i||(i=[],L(e,function(e,t){i.push(t)}));else if(t===`original`){var c=Vc(e[0]);a=z(c)&&c.length||1}else t===`typedArray`&&process.env.NODE_ENV!==`production`&&W(!!i,`dimensions must be given if data is TypedArray.`);return{startIndex:o,dimensionsDefine:Sx(i),dimensionsDetectedCount:a}}function xx(e){for(var t=0,n;t<e.length&&!(n=e[t++]););if(n)return qe(n)}function Sx(e){if(e){var t=G();return R(e,function(e,n){e=H(e)?e:{name:e};var r={name:e.name,displayName:e.displayName,type:e.type};if(r.name==null)return r;r.name+=``,r.displayName??=r.name;var i=t.get(r.name);return i?r.name+=`-`+ i.count++:t.set(r.name,{count:1}),r})}}function Cx(e,t,n,r){if(t===`row`)for(var i=0;i<n.length&&i<r;i++)e(n[i]?n[i][0]:null,i);else for(var a=n[0]||[],i=0;i<a.length&&i<r;i++)e(a[i],i)}function Tx(e){var t=e.sourceFormat;return t===`objectRows`||t===`keyedColumns`}var Ex,Dx=n((()=>{K(),tp(),X(),ob(),Ex=function(){function e(e){this.data=e.data||(e.sourceFormat===`keyedColumns`?{}:[]),this.sourceFormat=e.sourceFormat||`unknown`,this.seriesLayoutBy=e.seriesLayoutBy||`column`,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var n=0;n<t.length;n++){var r=t[n];r.type==null&&nb(this,n)===ib.Must&&(r.type=`ordinal`)}}return e}()}));function Ox(e,t){var n=Ux[jx(e,t)];return process.env.NODE_ENV!==`production`&&W(n,`Do not support get item on "`+e+`", "`+t+`".`),n}function kx(e,t){var n=Gx[jx(e,t)];return process.env.NODE_ENV!==`production`&&W(n,`Do not support count on "`+e+`", "`+t+`".`),n}function Ax(e){var t=qx[e];return process.env.NODE_ENV!==`production`&&W(t,`Do not support get value on "`+e+`".`),t}function jx(e,t){return e===`arrayRows`?e+`_`+t:e}function Mx(e,t,n){if(e){var r=e.getRawDataItem(t);if(r!=null){var i=e.getStore(),a=i.getSource().sourceFormat;if(n!=null){var o=e.getDimensionIndex(n),s=i.getDimensionProperty(o);return Ax(a)(r,o,s)}else{var c=r;return a===`original`&&(c=Vc(r)),c}}}}var Nx,Px,Fx,Ix,Lx,Rx,zx,Bx,Vx,Hx,Ux,Wx,Gx,Kx,qx,Jx=n((()=>{K(),X(),Dx(),tp(),Lc(),zx=function(){function e(e,t){var n=hx(e)?e:_x(e);this._source=n;var r=this._data=n.data,i=n.sourceFormat,a=n.seriesLayoutBy;if(i===`typedArray`){if(process.env.NODE_ENV!==`production`&&t==null)throw Error(`Typed array data must specify dimension size`);this._offset=0,this._dimSize=t,this._data=r}if(process.env.NODE_ENV!==`production`){var o=Vx[jx(i,a)];o&&o(r,n.dimensionsDefine)}Rx(this,r,n)}return e.prototype.getSource=function(){return this._source},e.prototype.count=function(){return 0},e.prototype.getItem=function(e,t){},e.prototype.appendData=function(e){},e.prototype.clean=function(){},e.protoInitialize=function(){var t=e.prototype;t.pure=!1,t.persistent=!0}(),e.internalField=function(){var e;Rx=function(e,i,a){var o=a.sourceFormat,s=a.seriesLayoutBy,c=a.startIndex,l=a.dimensionsDefine,u=Lx[jx(o,s)];process.env.NODE_ENV!==`production`&&W(u,`Invalide sourceFormat: `+o),I(e,u),o===`typedArray`?(e.getItem=t,e.count=r,e.fillStorage=n):(e.getItem=Mt(Ox(o,s),null,i,c,l),e.count=Mt(kx(o,s),null,i,c,l))};var t=function(e,t){e-=this._offset,t||=[];for(var n=this._data,r=this._dimSize,i=r*e,a=0;a<r;a++)t[a]=n[i+a];return t},n=function(e,t,n,r){for(var i=this._data,a=this._dimSize,o=0;o<a;o++){for(var s=r[o],c=s[0]==null?1/0:s[0],l=s[1]==null?-1/0:s[1],u=t-e,d=n[o],f=0;f<u;f++){var p=i[f*a+o];d[e+f]=p,p<c&&(c=p),p>l&&(l=p)}s[0]=c,s[1]=l}},r=function(){return this._data?this._data.length/this._dimSize:0};Lx=(e={},e[Yf+`_`+ep]={pure:!0,appendData:i},e[Yf+`_row`]={pure:!0,appendData:function(){throw Error(`Do not support appendData when set seriesLayoutBy: "row".`)}},e[Xf]={pure:!0,appendData:i},e[Zf]={pure:!0,appendData:function(e){var t=this._data;L(e,function(e,n){for(var r=t[n]||(t[n]=[]),i=0;i<(e||[]).length;i++)r.push(e[i])})}},e[Jf]={appendData:i},e[Qf]={persistent:!1,pure:!0,appendData:function(e){process.env.NODE_ENV!==`production`&&W($e(e),`Added data must be TypedArray if data in initialization is TypedArray`),this._data=e},clean:function(){this._offset+=this.count(),this._data=null}},e);function i(e){for(var t=0;t<e.length;t++)this._data.push(e[t])}}(),e}(),Bx=function(e){z(e)||kc(`series.data or dataset.source must be an array.`)},Vx=(Nx={},Nx[Yf+`_`+ep]=Bx,Nx[Yf+`_row`]=Bx,Nx[Xf]=Bx,Nx[Zf]=function(e,t){for(var n=0;n<t.length;n++)t[n].name??kc(`dimension name must not be null/undefined.`)},Nx[Jf]=Bx,Nx),Hx=function(e,t,n,r){return e[r]},Ux=(Px={},Px[Yf+`_`+ep]=function(e,t,n,r){return e[r+t]},Px[Yf+`_row`]=function(e,t,n,r,i){r+=t;for(var a=i||[],o=e,s=0;s<o.length;s++){var c=o[s];a[s]=c?c[r]:null}return a},Px[Xf]=Hx,Px[Zf]=function(e,t,n,r,i){for(var a=i||[],o=0;o<n.length;o++){var s=n[o].name,c=s==null?null:e[s];a[o]=c?c[r]:null}return a},Px[Jf]=Hx,Px),Wx=function(e,t,n){return e.length},Gx=(Fx={},Fx[Yf+`_`+ep]=function(e,t,n){return Math.max(0,e.length-t)},Fx[Yf+`_row`]=function(e,t,n){var r=e[0];return r?Math.max(0,r.length-t):0},Fx[Xf]=Wx,Fx[Zf]=function(e,t,n){var r=n[0].name,i=r==null?null:e[r];return i?i.length:0},Fx[Jf]=Wx,Fx),Kx=function(e,t,n){return e[t]},qx=(Ix={},Ix[Yf]=Kx,Ix[Xf]=function(e,t,n){return e[n]},Ix[Zf]=Kx,Ix[Jf]=function(e,t,n){var r=Vc(e);return r instanceof Array?r[t]:r},Ix[Qf]=Kx,Ix)}));function Yx(e){var t,n;return H(e)?e.type?n=e:process.env.NODE_ENV!==`production`&&console.warn("The return type of `formatTooltip` is not supported: "+Mc(e)):t=e,{text:t,frag:n}}var Xx,Zx,Qx=n((()=>{K(),Jx(),dy(),Lc(),Xx=/\{@(.+?)\}/g,Zx=function(){function e(){}return e.prototype.getDataParams=function(e,t){var n=this.getData(t),r=this.getRawValue(e,t),i=n.getRawIndex(e),a=n.getName(e),o=n.getRawDataItem(e),s=n.getItemVisual(e,`style`),c=s&&s[n.getItemVisual(e,`drawType`)||`fill`],l=s&&s.stroke,u=this.mainType,d=u===`series`,f=n.userOutput&&n.userOutput.get();return{componentType:u,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:d?this.subType:null,seriesIndex:this.seriesIndex,seriesId:d?this.id:null,seriesName:d?this.name:null,name:a,dataIndex:i,data:o,dataType:t,value:r,color:c,borderColor:l,dimensionNames:f?f.fullDimensions:null,encode:f?f.encode:null,$vars:[`seriesName`,`name`,`value`]}},e.prototype.getFormattedLabel=function(e,t,n,r,i,a){t||=`normal`;var o=this.getData(n),s=this.getDataParams(e,n);if(a&&(s.value=a.interpolatedValue),r!=null&&z(s.value)&&(s.value=s.value[r]),i||=o.getItemModel(e).get(t===`normal`?[`label`,`formatter`]:[t,`label`,`formatter`]),B(i))return s.status=t,s.dimensionIndex=r,i(s);if(V(i))return ry(i,s).replace(Xx,function(t,n){var r=n.length,i=n;i.charAt(0)===`[`&&i.charAt(r-1)===`]`&&(i=+i.slice(1,r-1),process.env.NODE_ENV!==`production`&&isNaN(i)&&kc(`Invalide label formatter: @`+n+`, only support @[0], @[1], @[2], ...`));var s=Mx(o,e,i);if(a&&z(a.interpolatedValue)){var c=o.getDimensionIndex(i);c>=0&&(s=a.interpolatedValue[c])}return s==null?``:s+``})},e.prototype.getRawValue=function(e,t){return Mx(this.getData(t),e)},e.prototype.formatTooltip=function(e,t,n){},e}()}));function $x(e){return new eS(e)}var eS,tS,nS=n((()=>{K(),eS=function(){function e(e){e||={},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return e.prototype.perform=function(e){var t=this._upstream,n=e&&e.skip;if(this._dirty&&t){var r=this.context;r.data=r.outputData=t.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!n&&(i=this._plan(this.context));var a=l(this._modBy),o=this._modDataCount||0,s=l(e&&e.modBy),c=e&&e.modDataCount||0;(a!==s||o!==c)&&(i=`reset`);function l(e){return!(e>=1)&&(e=1),e}var u;(this._dirty||i===`reset`)&&(this._dirty=!1,u=this._doReset(n)),this._modBy=s,this._modDataCount=c;var d=e&&e.step;if(t?(process.env.NODE_ENV!==`production`&&W(t._outputDueEnd!=null),this._dueEnd=t._outputDueEnd):(process.env.NODE_ENV!==`production`&&W(!this._progress||this._count),this._dueEnd=this._count?this._count(this.context):1/0),this._progress){var f=this._dueIndex,p=Math.min(d==null?1/0:this._dueIndex+d,this._dueEnd);if(!n&&(u||f<p)){var m=this._progress;if(z(m))for(var h=0;h<m.length;h++)this._doProgress(m[h],f,p,s,c);else this._doProgress(m,f,p,s,c)}this._dueIndex=p;var g=this._settedOutputEnd==null?p:this._settedOutputEnd;process.env.NODE_ENV!==`production`&&W(g>=this._outputDueEnd),this._outputDueEnd=g}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd==null?this._dueEnd:this._settedOutputEnd;return this.unfinished()},e.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},e.prototype._doProgress=function(e,t,n,r,i){tS.reset(t,n,r,i),this._callingProgress=e,this._callingProgress({start:t,end:n,count:n-t,next:tS.next},this.context)},e.prototype._doReset=function(e){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var t,n;!e&&this._reset&&(t=this._reset(this.context),t&&t.progress&&(n=t.forceFirstProgress,t=t.progress),z(t)&&!t.length&&(t=null)),this._progress=t,this._modBy=this._modDataCount=null;var r=this._downstream;return r&&r.dirty(),n},e.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},e.prototype.pipe=function(e){process.env.NODE_ENV!==`production`&&W(e&&!e._disposed&&e!==this),(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},e.prototype.dispose=function(){this._disposed||=(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,!0)},e.prototype.getUpstream=function(){return this._upstream},e.prototype.getDownstream=function(){return this._downstream},e.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},e}(),tS=function(){var e,t,n,r,i,a={reset:function(c,l,u,d){t=c,e=l,n=u,r=d,i=Math.ceil(r/n),a.next=n>1&&r>0?s:o}};return a;function o(){return t<e?t++:null}function s(){var a=t%i*n+Math.ceil(t/i),o=t>=e?null:a<r?a:t;return t++,o}}()}));function rS(e,t){var n=t&&t.type;return n===`ordinal`?e:(n===`time`&&!Ze(e)&&e!=null&&e!==`-`&&(e=+Qs(e)),e==null||e===``?NaN:Number(e))}function iS(e){var t=``,n=-1/0,r=-1/0,i=1/0,a=1/0;return e&&(e.g!=null&&(t+=`G`+e.g,n=e.g),e.ge!=null&&(t+=`GE`+e.ge,r=e.ge),e.l!=null&&(t+=`L`+e.l,i=e.l),e.le!=null&&(t+=`LE`+e.le,a=e.le)),{key:t,g:n,ge:r,l:i,le:a}}function aS(e,t){return t>e.g&&t>=e.ge&&t<e.l&&t<=e.le}var oS,sS,cS=n((()=>{Y(),K(),Lc(),G({number:function(e){return parseFloat(e)},time:function(e){return+Qs(e)},trim:function(e){return V(e)?lt(e):e}}),oS={lt:function(e,t){return e<t},lte:function(e,t){return e<=t},gt:function(e,t){return e>t},gte:function(e,t){return e>=t}},function(){function e(e,t){if(!Ze(t)){var n=``;process.env.NODE_ENV!==`production`&&(n=`rvalue of "<", ">", "<=", ">=" can only be number in filter.`),Nc(n)}this._opFn=oS[e],this._rvalFloat=ic(t)}return e.prototype.evaluate=function(e){return Ze(e)?this._opFn(e,this._rvalFloat):this._opFn(ic(e),this._rvalFloat)},e}(),sS=function(){function e(e,t){var n=e===`desc`;this._resultLT=n?1:-1,t??=n?`min`:`max`,this._incomparable=t===`min`?-1/0:1/0}return e.prototype.evaluate=function(e,t){var n=Ze(e)?e:ic(e),r=Ze(t)?t:ic(t),i=isNaN(n),a=isNaN(r);if(i&&(n=this._incomparable),a&&(r=this._incomparable),i&&a){var o=V(e),s=V(t);o&&(n=s?e:0),s&&(r=o?t:0)}return n<r?this._resultLT:n>r?-this._resultLT:0},e}(),function(){function e(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=ic(t)}return e.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var n=typeof e;n!==this._rvalTypeof&&(n===`number`||this._rvalTypeof===`number`)&&(t=ic(e)===this._rvalFloat)}return this._isEQ?t:!t},e}()}));function lS(e,t){var n=new vS,r=e.data,i=n.sourceFormat=e.sourceFormat,a=e.startIndex,o=``;e.seriesLayoutBy!==`column`&&(process.env.NODE_ENV!==`production`&&(o='`seriesLayoutBy` of upstream dataset can only be "column" in data transform.'),Nc(o));var s=[],c={},l=e.dimensionsDefine;if(l)L(l,function(e,t){var n=e.name,r={index:t,name:n,displayName:e.displayName};if(s.push(r),n!=null){var i=``;gt(c,n)&&(process.env.NODE_ENV!==`production`&&(i=`dimension name "`+n+`" duplicated.`),Nc(i)),c[n]=r}});else for(var u=0;u<e.dimensionsDetectedCount;u++)s.push({index:u});var d=Ox(i,ep);t.__isBuiltIn&&(n.getRawDataItem=function(e){return d(r,a,s,e)},n.getRawData=Mt(uS,null,e)),n.cloneRawData=Mt(dS,null,e),n.count=Mt(kx(i,ep),null,r,a,s);var f=Ax(i);n.retrieveValue=function(e,t){return p(d(r,a,s,e),t)};var p=n.retrieveValueFromItem=function(e,t){if(e!=null){var n=s[t];if(n)return f(e,t,n.name)}};return n.getDimensionInfo=Mt(fS,null,s,c),n.cloneAllDimensionInfo=Mt(pS,null,s),n}function uS(e){var t=e.sourceFormat;if(!_S(t)){var n=``;process.env.NODE_ENV!==`production`&&(n="`getRawData` is not supported in source format "+t),Nc(n)}return e.data}function dS(e){var t=e.sourceFormat,n=e.data;if(!_S(t)){var r=``;process.env.NODE_ENV!==`production`&&(r="`cloneRawData` is not supported in source format "+t),Nc(r)}if(t===`arrayRows`){for(var i=[],a=0,o=n.length;a<o;a++)i.push(n[a].slice());return i}else if(t===`objectRows`){for(var i=[],a=0,o=n.length;a<o;a++)i.push(I({},n[a]));return i}}function fS(e,t,n){if(n!=null){if(Ze(n)||!isNaN(n)&&!gt(t,n))return e[n];if(gt(t,n))return t[n]}}function pS(e){return Fe(e)}function mS(e){e=Fe(e);var t=e.type,n=``;t||(process.env.NODE_ENV!==`production`&&(n="Must have a `type` when `registerTransform`."),Nc(n));var r=t.split(`:`);r.length!==2&&(process.env.NODE_ENV!==`production`&&(n=`Name must include namespace like "ns:regression".`),Nc(n));var i=!1;r[0]===`echarts`&&(t=r[1],i=!0),e.__isBuiltIn=i,yS.set(t,e)}function hS(e,t,n){var r=zc(e),i=r.length,a=``;i||(process.env.NODE_ENV!==`production`&&(a="If `transform` declared, it should at least contain one transform."),Nc(a));for(var o=0,s=i;o<s;o++){var c=r[o];t=gS(c,t,n,i===1?null:o),o!==s-1&&(t.length=Math.max(t.length,1))}return t}function gS(e,t,n,r){var i=``;t.length||(process.env.NODE_ENV!==`production`&&(i=`Must have at least one upstream dataset.`),Nc(i)),H(e)||(process.env.NODE_ENV!==`production`&&(i=`transform declaration must be an object rather than `+typeof e+`.`),Nc(i));var a=e.type,o=yS.get(a);o||(process.env.NODE_ENV!==`production`&&(i=`Can not find transform on type "`+a+`".`),Nc(i));var s=R(t,function(e){return lS(e,o)}),c=zc(o.transform({upstream:s[0],upstreamList:s,config:Fe(e.config)}));return process.env.NODE_ENV!==`production`&&e.print&&Dc(R(c,function(e){var t=r==null?``:` === pipe index: `+r;return[`=== dataset index: `+n.datasetIndex+t+` ===`,`- transform result data:`,Mc(e.data),`- transform result dimensions:`,Mc(e.dimensions)].join(`
|
|
21
|
-
`)}).join(`
|
|
22
|
-
`)),R(c,function(e,n){var r=``;H(e)||(process.env.NODE_ENV!==`production`&&(r=`A transform should not return some empty results.`),Nc(r)),e.data||(process.env.NODE_ENV!==`production`&&(r=`Transform result data should be not be null or undefined`),Nc(r)),_S(yx(e.data))||(process.env.NODE_ENV!==`production`&&(r=`Transform result data should be array rows or object rows.`),Nc(r));var i,a=t[0];if(a&&n===0&&!e.dimensions){var o=a.startIndex;o&&(e.data=a.data.slice(0,o).concat(e.data)),i={seriesLayoutBy:ep,sourceHeader:o,dimensions:a.metaRawOption.dimensions}}else i={seriesLayoutBy:ep,sourceHeader:0,dimensions:e.dimensions};return gx(e.data,i,null)})}function _S(e){return e===`arrayRows`||e===`objectRows`}var vS,yS,bS=n((()=>{tp(),X(),K(),Jx(),cS(),Lc(),Dx(),vS=function(){function e(){}return e.prototype.getRawData=function(){throw Error(`not supported`)},e.prototype.getRawDataItem=function(e){throw Error(`not supported`)},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(e){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(e,t){},e.prototype.retrieveValueFromItem=function(e,t){},e.prototype.convertValue=function(e,t){return rS(e,t)},e}(),yS=G()}));function xS(e){return e>65535?wS:TS}function SS(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function CS(e,t,n,r,i){var a=OS[n||`float`];if(i){var o=e[t],s=o&&o.length;if(s!==r){for(var c=new a(r),l=0;l<s;l++)c[l]=o[l];e[t]=c}}else e[t]=new a(r)}var wS,TS,ES,DS,OS,kS,AS,jS=n((()=>{K(),tp(),cS(),Dx(),X(),Y(),wS=typeof Uint32Array>`u`?Array:Uint32Array,TS=typeof Uint16Array>`u`?Array:Uint16Array,ES=typeof Int32Array>`u`?Array:Int32Array,DS=typeof Float64Array>`u`?Array:Float64Array,OS={float:DS,int:ES,ordinal:Array,number:Array,time:DS},AS=function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=G()}return e.prototype.initData=function(e,t,n){process.env.NODE_ENV!==`production`&&W(B(e.getItem)&&B(e.count),`Invalid data provider.`),this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var r=e.getSource(),i=this.defaultDimValueGetter=kS[r.sourceFormat];this._dimValueGetter=n||i,this._rawExtent=[];var a=Tx(r);this._dimensions=R(t,function(e){return process.env.NODE_ENV!==`production`&&a&&W(e.property!=null),{type:e.type,property:e.property}}),this._initDataFromProvider(0,e.count())},e.prototype.getProvider=function(){return this._provider},e.prototype.getSource=function(){return this._provider.getSource()},e.prototype.ensureCalculationDimension=function(e,t){var n=this._calcDimNameToIdx,r=this._dimensions,i=n.get(e);if(i!=null){if(r[i].type===t)return i}else i=r.length;return r[i]={type:t},n.set(e,i),this._chunks[i]=new OS[t||`float`](this._rawCount),this._rawExtent[i]=hl(),i},e.prototype.collectOrdinalMeta=function(e,t){var n=this._chunks[e],r=this._dimensions[e],i=this._rawExtent,a=r.ordinalOffset||0,o=n.length;a===0&&(i[e]=hl());for(var s=i[e],c=a;c<o;c++){var l=n[c]=t.parseAndCollect(n[c]);isNaN(l)||(s[0]=Math.min(l,s[0]),s[1]=Math.max(l,s[1]))}r.ordinalMeta=t,r.ordinalOffset=o,r.type=`ordinal`},e.prototype.getOrdinalMeta=function(e){return this._dimensions[e].ordinalMeta},e.prototype.getDimensionProperty=function(e){var t=this._dimensions[e];return t&&t.property},e.prototype.appendData=function(e){process.env.NODE_ENV!==`production`&&W(!this._indices,`appendData can only be called on raw data.`);var t=this._provider,n=this.count();t.appendData(e);var r=t.count();return t.persistent||(r+=n),n<r&&this._initDataFromProvider(n,r,!0),[n,r]},e.prototype.appendValues=function(e,t){for(var n=this._chunks,r=this._dimensions,i=r.length,a=this._rawExtent,o=this.count(),s=o+Math.max(e.length,t||0),c=0;c<i;c++){var l=r[c];CS(n,c,l.type,s,!0)}for(var u=[],d=o;d<s;d++)for(var f=d-o,p=0;p<i;p++){var l=r[p],m=kS.arrayRows.call(this,e[f]||u,l.property,f,p);n[p][d]=m;var h=a[p];m<h[0]&&(h[0]=m),m>h[1]&&(h[1]=m)}return this._rawCount=this._count=s,{start:o,end:s}},e.prototype._initDataFromProvider=function(e,t,n){for(var r=this._provider,i=this._chunks,a=this._dimensions,o=a.length,s=this._rawExtent,c=R(a,function(e){return e.property}),l=0;l<o;l++){var u=a[l];s[l]||(s[l]=hl()),CS(i,l,u.type,t,n)}if(r.fillStorage)r.fillStorage(e,t,i,s);else for(var d=[],f=e;f<t;f++){d=r.getItem(f,d);for(var p=0;p<o;p++){var m=i[p],h=this._dimValueGetter(d,c[p],f,p);m[f]=h;var g=s[p];h<g[0]&&(g[0]=h),h>g[1]&&(g[1]=h)}}!r.persistent&&r.clean&&r.clean(),this._rawCount=this._count=t,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(e,t){if(!(t>=0&&t<this._count))return NaN;var n=this._chunks[e];return n?n[this.getRawIndex(t)]:NaN},e.prototype.getValues=function(e,t){var n=[],r=[];if(t==null){t=e,e=[];for(var i=0;i<this._dimensions.length;i++)r.push(i)}else r=e;for(var i=0,a=r.length;i<a;i++)n.push(this.get(r[i],t));return n},e.prototype.getByRawIndex=function(e,t){if(!(t>=0&&t<this._rawCount))return NaN;var n=this._chunks[e];return n?n[t]:NaN},e.prototype.getSum=function(e){var t=this._chunks[e],n=0;if(t)for(var r=0,i=this.count();r<i;r++){var a=this.get(e,r);isNaN(a)||(n+=a)}return n},e.prototype.getMedian=function(e){var t=[];this.each([e],function(e){isNaN(e)||t.push(e)}),Hs(t);var n=this.count();return n===0?0:n%2==1?t[(n-1)/2]:(t[n/2]+t[n/2-1])/2},e.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,n=t[e];if(n!=null&&n<this._count&&n===e)return e;for(var r=0,i=this._count-1;r<=i;){var a=(r+i)/2|0;if(t[a]<e)r=a+1;else if(t[a]>e)i=a-1;else return a}return-1},e.prototype.getIndices=function(){var e,t=this._indices;if(t){var n=t.constructor,r=this._count;if(n===Array){e=new n(r);for(var i=0;i<r;i++)e[i]=t[i]}else e=new n(t.buffer,0,r)}else{var n=xS(this._rawCount);e=new n(this.count());for(var i=0;i<e.length;i++)e[i]=i}return e},e.prototype.filter=function(e,t){if(!this._count)return this;for(var n=this.clone(),r=n.count(),i=new(xS(n._rawCount))(r),a=[],o=e.length,s=0,c=e[0],l=n._chunks,u=0;u<r;u++){var d=void 0,f=n.getRawIndex(u);if(o===0)d=t(u);else if(o===1){var p=l[c][f];d=t(p,u)}else{for(var m=0;m<o;m++)a[m]=l[e[m]][f];a[m]=u,d=t.apply(null,a)}d&&(i[s++]=f)}return s<r&&(n._indices=i),n._count=s,n._extent=[],n._updateGetRawIdx(),n},e.prototype.selectRange=function(e){var t=this.clone(),n=t._count;if(!n)return this;var r=qe(e),i=r.length;if(!i)return this;var a=t.count(),o=new(xS(t._rawCount))(a),s=0,c=r[0],l=e[c][0],u=e[c][1],d=t._chunks,f=!1;if(!t._indices){var p=0;if(i===1){for(var m=d[r[0]],h=0;h<n;h++){var g=m[h];(g>=l&&g<=u||isNaN(g))&&(o[s++]=p),p++}f=!0}else if(i===2){for(var m=d[r[0]],_=d[r[1]],v=e[r[1]][0],y=e[r[1]][1],h=0;h<n;h++){var g=m[h],b=_[h];(g>=l&&g<=u||isNaN(g))&&(b>=v&&b<=y||isNaN(b))&&(o[s++]=p),p++}f=!0}}if(!f)if(i===1)for(var h=0;h<a;h++){var x=t.getRawIndex(h),g=d[r[0]][x];(g>=l&&g<=u||isNaN(g))&&(o[s++]=x)}else for(var h=0;h<a;h++){for(var S=!0,x=t.getRawIndex(h),C=0;C<i;C++){var w=r[C],g=d[w][x];(g<e[w][0]||g>e[w][1])&&(S=!1)}S&&(o[s++]=t.getRawIndex(h))}return s<a&&(t._indices=o),t._count=s,t._extent=[],t._updateGetRawIdx(),t},e.prototype.map=function(e,t){var n=this.clone(e);return this._updateDims(n,e,t),n},e.prototype.modify=function(e,t){this._updateDims(this,e,t)},e.prototype._updateDims=function(e,t,n){for(var r=e._chunks,i=[],a=t.length,o=e.count(),s=[],c=e._rawExtent,l=0;l<t.length;l++)c[t[l]]=hl();for(var u=0;u<o;u++){for(var d=e.getRawIndex(u),f=0;f<a;f++)s[f]=r[t[f]][d];s[a]=u;var p=n&&n.apply(null,s);if(p!=null){typeof p!=`object`&&(i[0]=p,p=i);for(var l=0;l<p.length;l++){var m=t[l],h=p[l],g=c[m],_=r[m];_&&(_[d]=h),h<g[0]&&(g[0]=h),h>g[1]&&(g[1]=h)}}}},e.prototype.lttbDownSample=function(e,t){var n=this.clone([e],!0),r=n._chunks[e],i=this.count(),a=0,o=Math.floor(1/t),s=this.getRawIndex(0),c,l,u,d=new(xS(this._rawCount))(Math.min((Math.ceil(i/o)+2)*2,i));d[a++]=s;for(var f=1;f<i-1;f+=o){for(var p=Math.min(f+o,i-1),m=Math.min(f+o*2,i),h=(m+p)/2,g=0,_=p;_<m;_++){var v=this.getRawIndex(_),y=r[v];isNaN(y)||(g+=y)}g/=m-p;var b=f,x=Math.min(f+o,i),S=f-1,C=r[s];c=-1,u=b;for(var w=-1,T=0,_=b;_<x;_++){var v=this.getRawIndex(_),y=r[v];if(isNaN(y)){T++,w<0&&(w=v);continue}l=Math.abs((S-h)*(y-C)-(S-_)*(g-C)),l>c&&(c=l,u=v)}T>0&&T<x-b&&(d[a++]=Math.min(w,u),u=Math.max(w,u)),d[a++]=u,s=u}return d[a++]=this.getRawIndex(i-1),n._count=a,n._indices=d,n.getRawIndex=this._getRawIdx,n},e.prototype.minmaxDownSample=function(e,t){for(var n=this.clone([e],!0),r=n._chunks,i=Math.floor(1/t),a=r[e],o=this.count(),s=new(xS(this._rawCount))(Math.ceil(o/i)*2),c=0,l=0;l<o;l+=i){var u=l,d=a[this.getRawIndex(u)],f=l,p=a[this.getRawIndex(f)],m=i;l+i>o&&(m=o-l);for(var h=0;h<m;h++){var g=a[this.getRawIndex(l+h)];g<d&&(d=g,u=l+h),g>p&&(p=g,f=l+h)}var _=this.getRawIndex(u),v=this.getRawIndex(f);u<f?(s[c++]=_,s[c++]=v):(s[c++]=v,s[c++]=_)}return n._count=c,n._indices=s,n._updateGetRawIdx(),n},e.prototype.downSample=function(e,t,n,r){for(var i=this.clone([e],!0),a=i._chunks,o=[],s=Math.floor(1/t),c=a[e],l=this.count(),u=i._rawExtent[e]=hl(),d=new(xS(this._rawCount))(Math.ceil(l/s)),f=0,p=0;p<l;p+=s){s>l-p&&(s=l-p,o.length=s);for(var m=0;m<s;m++)o[m]=c[this.getRawIndex(p+m)];var h=n(o),g=this.getRawIndex(Math.min(p+r(o,h)||0,l-1));c[g]=h,h<u[0]&&(u[0]=h),h>u[1]&&(u[1]=h),d[f++]=g}return i._count=f,i._indices=d,i._updateGetRawIdx(),i},e.prototype.each=function(e,t){if(this._count)for(var n=e.length,r=this._chunks,i=0,a=this.count();i<a;i++){var o=this.getRawIndex(i);switch(n){case 0:t(i);break;case 1:t(r[e[0]][o],i);break;case 2:t(r[e[0]][o],r[e[1]][o],i);break;default:for(var s=0,c=[];s<n;s++)c[s]=r[e[s]][o];c[s]=i,t.apply(null,c)}}},e.prototype.getDataExtent=function(e,t){var n=this._chunks[e],r=hl();if(!n)return r;var i=this.count();if(!this._indices&&!t)return this._rawExtent[e].slice();var a=this._extent,o=a[e]||(a[e]={}),s=iS(t),c=s.key,l=o[c];if(l)return l.slice();for(var u=r[0],d=r[1],f=0;f<i;f++){var p=n[this.getRawIndex(f)];(!t||aS(s,p))&&(p<u&&(u=p),p>d&&(d=p))}return o[c]=[u,d]},e.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var n=[],r=this._chunks,i=0;i<r.length;i++)n.push(r[i][t]);return n},e.prototype.clone=function(t,n){var r=new e,i=this._chunks,a=t&&We(t,function(e,t){return e[t]=!0,e},{});if(a)for(var o=0;o<i.length;o++)r._chunks[o]=a[o]?SS(i[o]):i[o];else r._chunks=i;return this._copyCommonProps(r),n||(r._indices=this._cloneIndices()),r._updateGetRawIdx(),r},e.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=Fe(this._extent),e._rawExtent=Fe(this._rawExtent)},e.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,t=void 0;if(e===Array){var n=this._indices.length;t=new e(n);for(var r=0;r<n;r++)t[r]=this._indices[r]}else t=new e(this._indices);return t}return null},e.prototype._getRawIdxIdentity=function(e){return e},e.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function e(e,t,n,r){return rS(e[r],this._dimensions[r])}kS={arrayRows:e,objectRows:function(e,t,n,r){return rS(e[t],this._dimensions[r])},keyedColumns:e,original:function(e,t,n,r){var i=e&&(e.value==null?e:e.value);return rS(i instanceof Array?i[r]:i,this._dimensions[r])},typedArray:function(e,t,n,r){return e[r]}}}(),e}()}));function MS(e){e.option.transform&&ut(e.option.transform)}function NS(e){return e.mainType===`series`}function PS(e){throw Error(e)}var FS,IS=n((()=>{K(),Dx(),tp(),ob(),bS(),jS(),Jx(),FS=function(){function e(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+`_`+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,t=this._getUpstreamSourceManagers(),n=!!t.length,r,i;if(NS(e)){var a=e,o=void 0,s=void 0,c=void 0;if(n){var l=t[0];l.prepareSource(),c=l.getSource(),o=c.data,s=c.sourceFormat,i=[l._getVersionSign()]}else o=a.get(`data`,!0),s=$e(o)?Qf:Jf,i=[];var u=this._getSourceMetaRawOption()||{},d=c&&c.metaRawOption||{},f=U(u.seriesLayoutBy,d.seriesLayoutBy)||null,p=U(u.sourceHeader,d.sourceHeader),m=U(u.dimensions,d.dimensions);r=f!==d.seriesLayoutBy||!!p!=!!d.sourceHeader||m?[gx(o,{seriesLayoutBy:f,sourceHeader:p,dimensions:m},s)]:[]}else{var h=e;if(n){var g=this._applyTransform(t);r=g.sourceList,i=g.upstreamSignList}else r=[gx(h.get(`source`,!0),this._getSourceMetaRawOption(),null)],i=[]}process.env.NODE_ENV!==`production`&&W(r&&i),this._setLocalSource(r,i)},e.prototype._applyTransform=function(e){var t=this._sourceHost,n=t.get(`transform`,!0),r=t.get(`fromTransformResult`,!0);if(process.env.NODE_ENV!==`production`&&W(r!=null||n!=null),r!=null){var i=``;e.length!==1&&(process.env.NODE_ENV!==`production`&&(i="When using `fromTransformResult`, there should be only one upstream dataset"),PS(i))}var a,o=[],s=[];return L(e,function(e){e.prepareSource();var t=e.getSource(r||0),n=``;r!=null&&!t&&(process.env.NODE_ENV!==`production`&&(n="Can not retrieve result by `fromTransformResult`: "+r),PS(n)),o.push(t),s.push(e._getVersionSign())}),n?a=hS(n,o,{datasetIndex:t.componentIndex}):r!=null&&(a=[vx(o[0])]),{sourceList:a,upstreamSignList:s}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t<e.length;t++){var n=e[t];if(n._isDirty()||this._upstreamSignList[t]!==n._getVersionSign())return!0}},e.prototype.getSource=function(e){e||=0;var t=this._sourceList[e];if(!t){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(e)}return t},e.prototype.getSharedDataStore=function(e){process.env.NODE_ENV!==`production`&&W(NS(this._sourceHost),`Can only call getDataStore on series source manager.`);var t=e.makeStoreSchema();return this._innerGetDataStore(t.dimensions,e.source,t.hash)},e.prototype._innerGetDataStore=function(e,t,n){var r=0,i=this._storeList,a=i[r];a||=i[r]={};var o=a[n];if(!o){var s=this._getUpstreamSourceManagers()[0];NS(this._sourceHost)&&s?o=s._innerGetDataStore(e,t,n):(o=new AS,o.initData(new zx(t,e.length),e)),a[n]=o}return o},e.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(NS(e)){var t=eb(e);return t?[t.getSourceManager()]:[]}else return R(tb(e),function(e){return e.getSourceManager()})},e.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,t,n,r;if(NS(e))t=e.get(`seriesLayoutBy`,!0),n=e.get(`sourceHeader`,!0),r=e.get(`dimensions`,!0);else if(!this._getUpstreamSourceManagers().length){var i=e;t=i.get(`seriesLayoutBy`,!0),n=i.get(`sourceHeader`,!0),r=i.get(`dimensions`,!0)}return{seriesLayoutBy:t,sourceHeader:n,dimensions:r}},e}()}));function LS(e){var t=e.lineHeight;return t==null?eC:`line-height:`+On(t+``)+`px`}function RS(e,t){var n=e.color||Z.color.tertiary,r=e.fontSize||12,i=e.fontWeight||`400`,a=e.color||Z.color.secondary,o=e.fontSize||14,s=e.fontWeight||`900`;return t===`html`?{nameStyle:`font-size:`+On(r+``)+`px;color:`+On(n)+`;font-weight:`+On(i+``),valueStyle:`font-size:`+On(o+``)+`px;color:`+On(a)+`;font-weight:`+On(s+``)}:{nameStyle:{fontSize:r,fill:n,fontWeight:i},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}function zS(e,t){return t.type=e,t}function BS(e){return e.type===`section`}function VS(e){return BS(e)?US:WS}function HS(e){if(BS(e)){var t=0,n=e.blocks.length,r=n>1||n>0&&!e.noHeader;return L(e.blocks,function(e){var n=HS(e);n>=t&&(t=n+ +(r&&(!n||BS(e)&&!e.noHeader)))}),t}return 0}function US(e,t,n,r){var i=t.noHeader,a=KS(HS(t)),o=[],s=t.blocks||[];W(!s||z(s)),s||=[];var c=e.orderMode;if(t.sortBlocks&&c){s=s.slice();var l={valueAsc:`asc`,valueDesc:`desc`};if(gt(l,c)){var u=new sS(l[c],null);s.sort(function(e,t){return u.evaluate(e.sortParam,t.sortParam)})}else c===`seriesDesc`&&s.reverse()}L(s,function(n,i){var s=t.valueFormatter,c=VS(n)(s?I(I({},e),{valueFormatter:s}):e,n,i>0?a.html:0,r);c!=null&&o.push(c)});var d=e.renderMode===`richText`?o.join(a.richText):qS(r,o.join(``),i?n:a.html);if(i)return d;var f=ny(t.header,`ordinal`,e.useUTC),p=RS(r,e.renderMode).nameStyle,m=LS(r);return e.renderMode===`richText`?XS(e,f,p)+a.richText+d:qS(r,`<div style="`+p+`;`+m+`;">`+On(f)+`</div>`+d,n)}function WS(e,t,n,r){var i=e.renderMode,a=t.noName,o=t.noValue,s=!t.markerType,c=t.name,l=e.useUTC,u=t.valueFormatter||e.valueFormatter||function(e){return e=z(e)?e:[e],R(e,function(e,t){return ny(e,z(p)?p[t]:p,l)})};if(!(a&&o)){var d=s?``:e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||Z.color.secondary,i),f=a?``:ny(c,`ordinal`,l),p=t.valueType,m=o?[]:u(t.value,t.rawDataIndex),h=!s||!a,g=!s&&a,_=RS(r,i),v=_.nameStyle,y=_.valueStyle;return i===`richText`?(s?``:d)+(a?``:XS(e,f,v))+(o?``:ZS(e,m,h,g,y)):qS(r,(s?``:d)+(a?``:JS(f,!s,v))+(o?``:YS(m,h,g,y)),n)}}function GS(e,t,n,r,i,a){if(e)return VS(e)({useUTC:i,renderMode:n,orderMode:r,markupStyleCreator:t,valueFormatter:e.valueFormatter},e,0,a)}function KS(e){return{html:tC[e],richText:nC[e]}}function qS(e,t,n){var r=`<div style="clear:both"></div>`,i=`margin: `+n+`px 0 0`,a=LS(e);return`<div style="`+i+`;`+a+`;">`+t+r+`</div>`}function JS(e,t,n){var r=t?`margin-left:2px`:``;return`<span style="`+n+`;`+r+`">`+On(e)+`</span>`}function YS(e,t,n,r){var i=t?`float:right;margin-left:`+(n?`10px`:`20px`):``;return e=z(e)?e:[e],`<span style="`+i+`;`+r+`">`+R(e,function(e){return On(e)}).join(` `)+`</span>`}function XS(e,t,n){return e.markupStyleCreator.wrapRichTextStyle(t,n)}function ZS(e,t,n,r,i){var a=[i],o=r?10:20;return n&&a.push({padding:[0,0,0,o],align:`right`}),e.markupStyleCreator.wrapRichTextStyle(z(t)?t.join(` `):t,a)}function QS(e,t){var n=e.getData().getItemVisual(t,`style`)[e.visualDrawType];return sy(n)}function $S(e,t){return e.get(`padding`)??(t===`richText`?[8,10]:10)}var eC,tC,nC,rC,iC=n((()=>{dy(),K(),cS(),Y(),Wy(),eC=`line-height:1`,tC=[0,10,20,30],nC=[``,`
|
|
23
|
-
`,`
|
|
24
|
-
|
|
25
|
-
`,`
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
`],rC=function(){function e(){this.richTextStyles={},this._nextStyleNameId=oc()}return e.prototype._generateStyleName=function(){return`__EC_aUTo_`+ this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(e,t,n){var r=n===`richText`?this._generateStyleName():null,i=iy({color:t,type:e,renderMode:n,markerId:r});return V(i)?i:(process.env.NODE_ENV!==`production`&&W(r),this.richTextStyles[r]=i.style,i.content)},e.prototype.wrapRichTextStyle=function(e,t){var n={};z(t)?L(t,function(e){return I(n,e)}):I(n,t);var r=this._generateStyleName();return this.richTextStyles[r]=n,`{`+r+`|`+e+`}`},e}()}));function aC(e){var t=e.series,n=e.dataIndex,r=e.multipleSeries,i=t.getData(),a=i.mapDimensionsAll(`defaultedTooltip`),o=a.length,s=t.getRawValue(n),c=z(s),l=QS(t,n),u,d,f,p;if(o>1||c&&!o){var m=oC(s,t,n,a,l);u=m.inlineValues,d=m.inlineValueTypes,f=m.blocks,p=m.inlineValues[0]}else if(o){var h=i.getDimensionInfo(a[0]);p=u=Mx(i,n,a[0]),d=h.type}else p=u=c?s[0]:s;var g=tl(t),_=g&&t.name||``,v=i.getName(n),y=r?_:v;return zS(`section`,{header:_,noHeader:r||!g,sortParam:p,blocks:[zS(`nameValue`,{markerType:`item`,markerColor:l,name:y,noName:!lt(y),value:u,valueType:d,rawDataIndex:i.getRawIndex(n)})].concat(f||[])})}function oC(e,t,n,r,i){var a=t.getData(),o=We(e,function(e,t,n){var r=a.getDimensionInfo(n);return e||=r&&r.tooltip!==!1&&r.displayName!=null},!1),s=[],c=[],l=[];r.length?L(r,function(e){u(Mx(a,n,e),e)}):L(e,u);function u(e,t){var n=a.getDimensionInfo(t);!n||n.otherDims.tooltip===!1||(o?l.push(zS(`nameValue`,{markerType:`subItem`,markerColor:i,name:n.displayName,value:e,valueType:n.type})):(s.push(e),c.push(n.type)))}return{inlineValues:s,inlineValueTypes:c,blocks:l}}var sC=n((()=>{K(),iC(),Jx(),X()}));function cC(e,t){return e.getName(t)||e.getId(t)}function lC(e){var t=e.name;tl(e)||(e.name=uC(e)||t)}function uC(e){var t=e.getRawData(),n=t.mapDimensionsAll(`seriesName`),r=[];return L(n,function(e){var n=t.getDimensionInfo(e);n.displayName&&r.push(n.displayName)}),r.join(` `)}function dC(e){return e.model.getRawData().count()}function fC(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),pC}function pC(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function mC(e,t){L(pt(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(n){e.wrapMethod(n,Ye(hC,t))})}function hC(e,t){var n=gC(e);return n&&n.setOutputEnd((t||this).count()),t}function gC(e){var t=(e.ecModel||{}).scheduler,n=t&&t.getPipeline(e.uid);if(n){var r=n.currentTask;if(r){var i=r.agentStubMap;i&&(r=i.get(e.uid))}return r}}var _C,vC,yC=n((()=>{P(),K(),xe(),X(),Vy(),hb(),Qx(),Ly(),nS(),Ql(),IS(),sC(),_C=ol(),vC=function(e){N(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return t.prototype.init=function(e,t,n){this.seriesIndex=this.componentIndex,this.dataTask=$x({count:dC,reset:fC}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n),(_C(this).sourceManager=new FS(this)).prepareSource();var r=this.getInitialData(e,n);mC(r,this),this.dataTask.context.data=r,process.env.NODE_ENV!==`production`&&W(r,`getInitialData returned invalid data.`),_C(this).dataBeforeProcessed=r,lC(this),this._initSelectedMapFromData(r)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=Oy(this),r=n?Ay(e):{},i=this.subType;By.hasClass(i)&&(i+=`Series`),Ie(e,t.getTheme().get(this.subType)),Ie(e,this.getDefaultOption()),Bc(e,`label`,[`show`]),this.fillDataTextStyle(e.data),n&&ky(e,r,n)},t.prototype.mergeOption=function(e,t){e=Ie(this.option,e,!0),this.fillDataTextStyle(e.data);var n=Oy(this);n&&ky(this.option,e,n);var r=_C(this).sourceManager;r.dirty(),r.prepareSource();var i=this.getInitialData(e,t);mC(i,this),this.dataTask.dirty(),this.dataTask.context.data=i,_C(this).dataBeforeProcessed=i,lC(this),this._initSelectedMapFromData(i)},t.prototype.fillDataTextStyle=function(e){if(e&&!$e(e))for(var t=[`show`],n=0;n<e.length;n++)e[n]&&e[n].label&&Bc(e[n],`label`,t)},t.prototype.getInitialData=function(e,t){},t.prototype.appendData=function(e){this.getRawData().appendData(e.data)},t.prototype.getData=function(e){var t=gC(this);if(t){var n=t.context.data;return e==null||!n.getLinkedData?n:n.getLinkedData(e)}else return _C(this).data},t.prototype.getAllData=function(){var e=this.getData();return e&&e.getLinkedDataAll?e.getLinkedDataAll():[{data:e}]},t.prototype.setData=function(e){var t=gC(this);if(t){var n=t.context;n.outputData=e,t!==this.dataTask&&(n.data=e)}_C(this).data=e},t.prototype.getEncode=function(){var e=this.get(`encode`,!0);if(e)return G(e)},t.prototype.getSourceManager=function(){return _C(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return _C(this).dataBeforeProcessed},t.prototype.getColorBy=function(){return this.get(`colorBy`)||`series`},t.prototype.isColorBySeries=function(){return this.getColorBy()===`series`},t.prototype.getBaseAxis=function(){var e=this.coordinateSystem;return e&&e.getBaseAxis&&e.getBaseAxis()},t.prototype.indicesOfNearest=function(e,t,n,r){var i=this.getData(),a=this.coordinateSystem,o=a&&a.getAxis(e);if(!a||!o)return[];var s=o.dataToCoord(n);r??=1/0;for(var c=[],l=1/0,u=-1,d=0,f=i.getDimensionIndex(t),p=i.getStore(),m=0,h=p.count();m<h;m++){var g=p.get(f,m),_=s-o.dataToCoord(g),v=Math.abs(_);v<=r&&((v<l||v===l&&_>=0&&u<0)&&(l=v,u=_,d=0),_===u&&(c[d++]=m))}return c.length=d,c},t.prototype.formatTooltip=function(e,t,n){return aC({series:this,dataIndex:e,multipleSeries:t})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(F.node&&!(e&&e.ssr))return!1;var t=this.getShallow(`animation`);return t&&this.getData().count()>this.getShallow(`animationThreshold`)&&(t=!1),!!t},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,t,n){var r=this.ecModel,i=mb.prototype.getColorFromPalette.call(this,e,t,n);return i||=r.getColorFromPalette(e,t,n),i},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get(`progressive`)},t.prototype.getProgressiveThreshold=function(){return this.get(`progressiveThreshold`)},t.prototype.select=function(e,t){this._innerSelect(this.getData(t),e)},t.prototype.unselect=function(e,t){var n=this.option.selectedMap;if(n){var r=this.option.selectedMode,i=this.getData(t);if(r===`series`||n===`all`){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var a=0;a<e.length;a++){var o=e[a],s=cC(i,o);n[s]=!1,this._selectedDataIndicesMap[s]=-1}}},t.prototype.toggleSelect=function(e,t){for(var n=[],r=0;r<e.length;r++)n[0]=e[r],this.isSelected(e[r],t)?this.unselect(n,t):this.select(n,t)},t.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap===`all`)return[].slice.call(this.getData().getIndices());for(var e=this._selectedDataIndicesMap,t=qe(e),n=[],r=0;r<t.length;r++){var i=e[t[r]];i>=0&&n.push(i)}return n},t.prototype.isSelected=function(e,t){var n=this.option.selectedMap;if(!n)return!1;var r=this.getData(t);return(n===`all`||n[cC(r,e)])&&!r.getItemModel(e).get([`select`,`disabled`])},t.prototype.isUniversalTransitionEnabled=function(){if(this.__universalTransitionEnabled)return!0;var e=this.option.universalTransition;return e?e===!0?!0:e&&e.enabled:!1},t.prototype._innerSelect=function(e,t){var n,r,i=this.option,a=i.selectedMode,o=t.length;if(!(!a||!o)){if(a===`series`)i.selectedMap=`all`;else if(a===`multiple`){H(i.selectedMap)||(i.selectedMap={});for(var s=i.selectedMap,c=0;c<o;c++){var l=t[c],u=cC(e,l);s[u]=!0,this._selectedDataIndicesMap[u]=e.getRawIndex(l)}}else if(a===`single`||a===!0){var d=t[o-1],u=cC(e,d);i.selectedMap=(n={},n[u]=!0,n),this._selectedDataIndicesMap=(r={},r[u]=e.getRawIndex(d),r)}}},t.prototype._initSelectedMapFromData=function(e){if(!this.option.selectedMap){var t=[];e.hasItemOption&&e.each(function(n){var r=e.getRawDataItem(n);r&&r.selected&&t.push(n)}),t.length>0&&this._innerSelect(e,t)}},t.registerClass=function(e){return By.registerClass(e)},t.protoInitialize=function(){var e=t.prototype;e.type=`series.__base__`,e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol=`circle`,e.visualStyleAccessPath=`itemStyle`,e.visualDrawType=`fill`}(),t}(By),He(vC,Zx),He(vC,mb),Ul(vC,By)})),bC,xC=n((()=>{vs(),q_(),Ql(),bC=function(){function e(){this.group=new _s,this.uid=H_(`viewComponent`)}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,r){},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,r){},e.prototype.updateLayout=function(e,t,n,r){},e.prototype.updateVisual=function(e,t,n,r){},e.prototype.toggleBlurSeries=function(e,t,n){},e.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},e}(),Vl(bC),ql(bC)}));function SC(){var e=ol();return function(t){var n=e(t),r=t.pipelineContext,i=!!n.large,a=!!n.progressiveRender,o=n.large=!!(r&&r.large),s=n.progressiveRender=!!(r&&r.progressiveRender);return(i!==o||a!==s)&&`reset`}}var CC=n((()=>{X()}));function wC(e,t,n){e&&Jp(e)&&(t===`emphasis`?Tp:Ep)(e,n)}function TC(e,t,n){var r=al(e,t),i=t&&t.highlightKey!=null?Yp(t.highlightKey):null;r==null?e.eachItemGraphicEl(function(e){wC(e,n,i)}):L(zc(r),function(t){wC(e.getItemGraphicEl(t),n,i)})}function EC(e){return kC(e.model)}function DC(e){var t=e.model,n=e.ecModel,r=e.api,i=e.payload,a=t.pipelineContext.progressiveRender,o=e.view,s=i&&OC(i).updateMethod,c=a?`incrementalPrepareRender`:s&&o[s]?s:`render`;return c!==`render`&&o[c](t,n,r,i),jC[c]}var OC,kC,AC,jC,MC=n((()=>{K(),vs(),q_(),Ql(),X(),pm(),nS(),CC(),s_(),Lc(),OC=ol(),kC=SC(),AC=function(){function e(){this.group=new _s,this.uid=H_(`viewChart`),this.renderTask=$x({plan:EC,reset:DC}),this.renderTask.context={view:this}}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,r){if(process.env.NODE_ENV!==`production`)throw Error(`render method must been implemented`)},e.prototype.highlight=function(e,t,n,r){var i=e.getData(r&&r.dataType);if(!i){process.env.NODE_ENV!==`production`&&kc(`Unknown dataType `+r.dataType);return}TC(i,r,`emphasis`)},e.prototype.downplay=function(e,t,n,r){var i=e.getData(r&&r.dataType);if(!i){process.env.NODE_ENV!==`production`&&kc(`Unknown dataType `+r.dataType);return}TC(i,r,`normal`)},e.prototype.remove=function(e,t){this.group.removeAll()},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,r){this.render(e,t,n,r)},e.prototype.updateVisual=function(e,t,n,r){this.render(e,t,n,r)},e.prototype.eachRendered=function(e){Vg(this.group,e)},e.markUpdateMethod=function(e,t){OC(e).updateMethod=t},e.protoInitialize=function(){var t=e.prototype;t.type=`chart`}(),e}(),Vl(AC,[`dispose`]),ql(AC),jC={incrementalPrepareRender:{progress:function(e,t){t.view.incrementalRender(e,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(e,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}}}));function NC(e,t,n){var r,i=0,a=0,o=null,s,c,l,u;t||=0;function d(){a=new Date().getTime(),o=null,e.apply(c,l||[])}var f=function(){for(var e=[],f=0;f<arguments.length;f++)e[f]=arguments[f];r=new Date().getTime(),c=this,l=e;var p=u||t,m=u||n;u=null,s=r-(m?i:a)-p,clearTimeout(o),m?o=setTimeout(d,p):s>=0?d():o=setTimeout(d,-s),i=r};return f.clear=function(){o&&=(clearTimeout(o),null)},f.debounceNextCall=function(e){u=e},f}function PC(e,t,n,r){var i=e[t];if(i){var a=i[IC]||i,o=i[RC];if(i[LC]!==n||o!==r){if(n==null||!r)return e[t]=a;i=e[t]=NC(a,n,r===`debounce`),i[IC]=a,i[RC]=r,i[LC]=n}return i}}function FC(e,t){var n=e[t];n&&n[IC]&&(n.clear&&n.clear(),e[t]=n[IC])}var IC,LC,RC,zC=n((()=>{IC=`\0__throttleOriginMethod`,LC=`\0__throttleRate`,RC=`\0__throttleType`}));function BC(e,t){return e.visualStyleMapper||UC[t]||(console.warn(`Unknown style type '`+t+`'.`),UC.itemStyle)}function VC(e,t){return e.visualDrawType||WC[t]||(console.warn(`Unknown style type '`+t+`'.`),`fill`)}var HC,UC,WC,GC,KC,qC,JC,YC=n((()=>{K(),eu(),z_(),F_(),V_(),X(),HC=ol(),UC={itemStyle:$l(I_,!0),lineStyle:$l(M_,!0)},WC={lineStyle:`stroke`,itemStyle:`fill`},GC={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),r=e.visualStyleAccessPath||`itemStyle`,i=e.getModel(r),a=BC(e,r)(i),o=i.getShallow(`decal`);o&&(n.setVisual(`decal`,o),o.dirty=!0);var s=VC(e,r),c=a[s],l=B(c)?c:null,u=a.fill===`auto`||a.stroke===`auto`;if(!a[s]||l||u){var d=e.getColorFromPalette(e.name,null,t.getSeriesCount());a[s]||(a[s]=d,n.setVisual(`colorFromPalette`,!0)),a.fill=a.fill===`auto`||B(a.fill)?d:a.fill,a.stroke=a.stroke===`auto`||B(a.stroke)?d:a.stroke}if(n.setVisual(`style`,a),n.setVisual(`drawType`,s),!t.isSeriesFiltered(e)&&l)return n.setVisual(`colorFromPalette`,!1),{dataEach:function(t,n){var r=e.getDataParams(n),i=I({},a);i[s]=l(r),t.setItemVisual(n,`style`,i)}}}},KC=new B_,qC={createOnAllSeries:!0,reset:function(e,t){if(!e.ignoreStyleOnData){var n=e.getData(),r=e.visualStyleAccessPath||`itemStyle`,i=BC(e,r),a=n.getVisual(`drawType`);return{dataEach:n.hasItemOption?function(e,t){var n=e.getRawDataItem(t);if(n&&n[r]){KC.option=n[r];var o=i(KC);I(e.ensureUniqueItemVisual(t,`style`),o),KC.option.decal&&(e.setItemVisual(t,`decal`,KC.option.decal),KC.option.decal.dirty=!0),a in o&&e.setItemVisual(t,`colorFromPalette`,!1)}}:null}}}},JC={performRawSeries:!0,overallReset:function(e){var t=G();e.eachSeries(function(e){if(!e.isColorBySeries()){var n=e.type+`-`+e.getColorBy();HC(e).scope=t.get(n)||t.set(n,{})}}),e.eachSeries(function(e){if(!e.isColorBySeries()){var t=e.getRawData(),n={},r=e.getData(),i=HC(e).scope,a=VC(e,e.visualStyleAccessPath||`itemStyle`);r.each(function(e){var t=r.getRawIndex(e);n[t]=e}),t.each(function(o){var s=n[o];if(r.getItemVisual(s,`colorFromPalette`)){var c=r.ensureUniqueItemVisual(s,`style`),l=t.getName(o)||o+``,u=t.count();c[a]=e.getColorFromPalette(l,i,u)}})}})}}}));function XC(e,t){t||={},ze(t,{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 n=new _s,r=new Cf({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});n.add(r);var i=new zf({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),a=new Cf({style:{fill:`none`},textContent:i,textConfig:{position:`right`,distance:10},zlevel:t.zlevel,z:10001});n.add(a);var o;return t.showSpinner&&(o=new Mh({shape:{startAngle:-ZC/2,endAngle:-ZC/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:`round`,lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:ZC*3/2}).start(`circularInOut`),o.animateShape(!0).when(1e3,{startAngle:ZC*3/2}).delay(300).start(`circularInOut`),n.add(o)),n.resize=function(){var n=i.getBoundingRect().width,s=t.showSpinner?t.spinnerRadius:0,c=(e.getWidth()-s*2-(t.showSpinner&&n?10:0)-n)/2-(t.showSpinner&&n?0:5+n/2)+(t.showSpinner?0:n/2)+(n?0:s),l=e.getHeight()/2;t.showSpinner&&o.setShape({cx:c,cy:l}),a.setShape({x:c-s,y:l-s,width:s*2,height:s*2}),r.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},n.resize(),n}var ZC,QC=n((()=>{K(),s_(),Wy(),ZC=Math.PI}));function $C(e){e.overallReset(e.ecModel,e.api,e.payload)}function ew(e){return e.dirtyOnOverallProgress&&tw}function tw(){this.agent.dirty(),this.getDownstream().dirty()}function nw(){this.agent&&this.agent.dirty()}function rw(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function iw(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=zc(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?R(t,function(e,t){return aw(t)}):uw}function aw(e){return function(t,n){var r=n.data,i=n.resetDefines[e];if(i&&i.dataEach)for(var a=t.start;a<t.end;a++)i.dataEach(r,a);else i&&i.progress&&i.progress(t,r)}}function ow(e){return e.data.count()}function sw(e){pw=null;try{e(dw,fw)}catch{}return pw}function cw(e,t){for(var n in t.prototype)e[n]=_t}var lw,uw,dw,fw,pw,mw=n((()=>{K(),nS(),q_(),jb(),ap(),X(),lw=function(){function e(e,t,n,r){this._stageTaskMap=G(),this.ecInstance=e,this.api=t,n=this._dataProcessorHandlers=n.slice(),r=this._visualHandlers=r.slice(),this._allHandlers=n.concat(r)}return e.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each(function(e){var t=e.overallTask;t&&t.dirty()})},e.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),r=n.context,i=!t&&n.progressiveEnabled&&(!r||r.progressiveRender)&&e.__idxInPipeline>n.blockIndex?n.step:null,a=r&&r.modDataCount;return{step:i,modBy:a==null?null:Math.ceil(a/i),modDataCount:a}}},e.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},e.prototype.updateStreamModes=function(e,t){var n=this._pipelineMap.get(e.uid);e.pipelineContext=n.context=e.__preparePipelineContext?e.__preparePipelineContext(t,n):kl(e,t,n)},e.prototype.restorePipelines=function(e,t){var n=this,r=n._pipelineMap=G();t.eachSeries(function(t){var i=e.painter.type===`canvas`&&t.getProgressive(),a=t.uid;r.set(a,{id:a,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:i&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),n._pipe(t,t.dataTask)})},e.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),n=this.api;L(this._allHandlers,function(r){var i=e.get(r.uid)||e.set(r.uid,{}),a=``;process.env.NODE_ENV!==`production`&&(a=`"reset" and "overallReset" must not be both specified.`),W(!(r.reset&&r.overallReset),a),r.reset&&this._createSeriesStageTask(r,i,t,n),r.overallReset&&this._createOverallStageTask(r,i,t,n)},this)},e.prototype.prepareView=function(e,t,n,r){var i=e.renderTask,a=i.context;a.model=t,a.ecModel=n,a.api=r,i.__block=!e.incrementalPrepareRender,this._pipe(t,i)},e.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},e.prototype.performVisualTasks=function(e,t,n){this._performStageTasks(this._visualHandlers,e,t,n)},e.prototype._performStageTasks=function(e,t,n,r){r||={};var i=!1,a=this;L(e,function(e,s){if(!(r.visualType&&r.visualType!==e.visualType)){var c=a._stageTaskMap.get(e.uid),l=c.seriesTaskMap,u=c.overallTask;if(u){var d,f=u.agentStubMap;f.each(function(e){o(r,e)&&(e.dirty(),d=!0)}),d&&u.dirty(),a.updatePayload(u,n);var p=a.getPerformArgs(u,r.block);f.each(function(e){e.perform(p)}),u.perform(p)&&(i=!0)}else l&&l.each(function(s,c){o(r,s)&&s.dirty();var l=a.getPerformArgs(s,r.block);l.skip=!e.performRawSeries&&t.isSeriesFiltered(s.context.model),a.updatePayload(s,n),s.perform(l)&&(i=!0)})}});function o(e,t){return e.setDirty&&(!e.dirtyMap||e.dirtyMap.get(t.__pipeline.id))}this.unfinished=i||this.unfinished},e.prototype.performSeriesTasks=function(e){var t;e.eachSeries(function(e){t=e.dataTask.perform()||t}),this.unfinished=t||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each(function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)})},e.prototype.updatePayload=function(e,t){t!==`remain`&&(e.context.payload=t)},e.prototype._createSeriesStageTask=function(e,t,n,r){var i=this,a=t.seriesTaskMap,o=t.seriesTaskMap=G(),s=e.seriesType,c=e.getTargetSeries;e.createOnAllSeries?n.eachRawSeries(l):s?n.eachRawSeriesByType(s,l):c&&c(n,r).each(l);function l(t){var s=t.uid,c=o.set(s,a&&a.get(s)||$x({plan:rw,reset:iw,count:ow}));c.context={model:t,ecModel:n,api:r,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:i},i._pipe(t,c)}},e.prototype._createOverallStageTask=function(e,t,n,r){var i=this,a=t.overallTask=t.overallTask||$x({reset:$C});a.context={ecModel:n,api:r,overallReset:e.overallReset,scheduler:i};var o=a.agentStubMap,s=a.agentStubMap=G(),c=e.seriesType,l=e.getTargetSeries,u=e.dirtyOnOverallProgress,d=!1,f=``;process.env.NODE_ENV!==`production`&&(f=`"createOnAllSeries" is not supported for "overallReset", because it will block all streams.`),W(!e.createOnAllSeries,f),c?n.eachRawSeriesByType(c,p):l?l(n,r).each(p):L(n.getSeries(),p);function p(e){var t=e.uid,n=s.set(t,o&&o.get(t)||(d=!0,$x({reset:ew,onDirty:nw})));n.context={model:e,dirtyOnOverallProgress:u},n.agent=a,n.__block=u,i._pipe(e,n)}d&&a.dirty()},e.prototype._pipe=function(e,t){var n=e.uid,r=this._pipelineMap.get(n);!r.head&&(r.head=t),r.tail&&r.tail.pipe(t),r.tail=t,t.__idxInPipeline=r.count++,t.__pipeline=r},e.wrapStageHandler=function(e,t){return B(e)&&(e={overallReset:e,seriesType:sw(e)}),e.uid=H_(`stageHandler`),t&&(e.visualType=t),e},e}(),uw=aw(0),dw={},fw={},cw(dw,Ab),cw(fw,ip),dw.eachSeriesByType=dw.eachRawSeriesByType=function(e){pw=e},dw.eachComponent=function(e){e.mainType===`series`&&e.subType&&(pw=e.subType)}})),Q,hw,gw,_w,vw,yw=n((()=>{Wy(),Q=Z.darkColor,hw=Q.background,gw=function(){return{axisLine:{lineStyle:{color:Q.axisLine}},splitLine:{lineStyle:{color:Q.axisSplitLine}},splitArea:{areaStyle:{color:[Q.backgroundTint,Q.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:Q.axisMinorSplitLine}},axisLabel:{color:Q.axisLabel},axisName:{}}},_w={label:{color:Q.secondary},itemStyle:{borderColor:Q.borderTint},dividerLineStyle:{color:Q.border}},vw={darkMode:!0,color:Q.theme,backgroundColor:hw,axisPointer:{lineStyle:{color:Q.border},crossStyle:{color:Q.borderShade},label:{color:Q.tertiary}},legend:{textStyle:{color:Q.secondary},pageTextStyle:{color:Q.tertiary}},textStyle:{color:Q.secondary},title:{textStyle:{color:Q.primary},subtextStyle:{color:Q.quaternary}},toolbox:{iconStyle:{borderColor:Q.accent50},feature:{dataView:{backgroundColor:hw,textColor:Q.primary,textareaColor:Q.background,textareaBorderColor:Q.border,buttonColor:Q.accent50,buttonTextColor:Q.neutral00}}},tooltip:{backgroundColor:Q.neutral20,defaultBorderColor:Q.border,textStyle:{color:Q.tertiary}},dataZoom:{borderColor:Q.accent10,textStyle:{color:Q.tertiary},brushStyle:{color:Q.backgroundTint},handleStyle:{color:Q.neutral00,borderColor:Q.accent20},moveHandleStyle:{color:Q.accent40},emphasis:{handleStyle:{borderColor:Q.accent50}},dataBackground:{lineStyle:{color:Q.accent30},areaStyle:{color:Q.accent20}},selectedDataBackground:{lineStyle:{color:Q.accent50},areaStyle:{color:Q.accent30}}},visualMap:{textStyle:{color:Q.secondary},handleStyle:{borderColor:Q.neutral30}},timeline:{lineStyle:{color:Q.accent10},label:{color:Q.tertiary},controlStyle:{color:Q.accent30,borderColor:Q.accent30}},calendar:{itemStyle:{color:Q.neutral00,borderColor:Q.neutral20},dayLabel:{color:Q.tertiary},monthLabel:{color:Q.secondary},yearLabel:{color:Q.secondary}},matrix:{x:_w,y:_w,backgroundColor:{borderColor:Q.axisLine},body:{itemStyle:{borderColor:Q.borderTint}}},timeAxis:gw(),logAxis:gw(),valueAxis:gw(),categoryAxis:gw(),line:{symbol:`circle`},graph:{color:Q.theme},gauge:{title:{color:Q.secondary},axisLine:{lineStyle:{color:[[1,Q.neutral05]]}},axisLabel:{color:Q.axisLabel},detail:{color:Q.primary}},candlestick:{itemStyle:{color:`#f64e56`,color0:`#54ea92`,borderColor:`#f64e56`,borderColor0:`#54ea92`}},funnel:{itemStyle:{borderColor:Q.background}},radar:function(){var e=gw();return e.axisName={color:Q.axisLabel},e.axisLine.lineStyle.color=Q.neutral20,e}(),treemap:{breadcrumb:{itemStyle:{color:Q.neutral20,textStyle:{color:Q.secondary}},emphasis:{itemStyle:{color:Q.neutral30}}}},sunburst:{itemStyle:{borderColor:Q.background}},map:{itemStyle:{borderColor:Q.border,areaColor:Q.neutral10},label:{color:Q.tertiary},emphasis:{label:{color:Q.primary},itemStyle:{areaColor:Q.highlight}},select:{label:{color:Q.primary},itemStyle:{areaColor:Q.highlight}}},geo:{itemStyle:{borderColor:Q.border,areaColor:Q.neutral10},emphasis:{label:{color:Q.primary},itemStyle:{areaColor:Q.highlight}},select:{label:{color:Q.primary},itemStyle:{color:Q.highlight}}}},vw.categoryAxis.splitLine.show=!1})),bw,xw=n((()=>{K(),Ql(),bw=function(){function e(){}return e.prototype.normalizeQuery=function(e){var t={},n={},r={};if(V(e)){var i=Rl(e);t.mainType=i.main||null,t.subType=i.sub||null}else{var a=[`Index`,`Name`,`Id`],o={name:1,dataIndex:1,dataType:1};L(e,function(e,i){for(var s=!1,c=0;c<a.length;c++){var l=a[c],u=i.lastIndexOf(l);if(u>0&&u===i.length-l.length){var d=i.slice(0,u);d!==`data`&&(t.mainType=d,t[l.toLowerCase()]=e,s=!0)}}o.hasOwnProperty(i)&&(n[i]=e,s=!0),s||(r[i]=e)})}return{cptQuery:t,dataQuery:n,otherQuery:r}},e.prototype.filter=function(e,t){var n=this.eventInfo;if(!n)return!0;var r=n.targetEl,i=n.packedEvent,a=n.model,o=n.view;if(!a||!o)return!0;var s=t.cptQuery,c=t.dataQuery;return l(s,a,`mainType`)&&l(s,a,`subType`)&&l(s,a,`index`,`componentIndex`)&&l(s,a,`name`)&&l(s,a,`id`)&&l(c,i,`name`)&&l(c,i,`dataIndex`)&&l(c,i,`dataType`)&&(!o.filterForExposedEvent||o.filterForExposedEvent(e,t.otherQuery,r,i));function l(e,t,n,r){return e[n]==null||t[r||n]===e[n]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}()})),Sw,Cw,ww,Tw,Ew=n((()=>{K(),Sw=[`symbol`,`symbolSize`,`symbolRotate`,`symbolOffset`],Cw=Sw.concat([`symbolKeepAspect`]),ww={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData();if(e.legendIcon&&n.setVisual(`legendIcon`,e.legendIcon),!e.hasSymbolVisual)return;for(var r={},i={},a=!1,o=0;o<Sw.length;o++){var s=Sw[o],c=e.get(s);B(c)?(a=!0,i[s]=c):r[s]=c}if(r.symbol=r.symbol||e.defaultSymbol,n.setVisual(I({legendIcon:e.legendIcon||r.symbol,symbolKeepAspect:e.get(`symbolKeepAspect`)},r)),t.isSeriesFiltered(e))return;var l=qe(i);function u(t,n){for(var r=e.getRawValue(n),a=e.getDataParams(n),o=0;o<l.length;o++){var s=l[o];t.setItemVisual(n,s,i[s](r,a))}}return{dataEach:a?u:null}}},Tw={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!e.hasSymbolVisual||t.isSeriesFiltered(e))return;var n=e.getData();function r(e,t){for(var n=e.getItemModel(t),r=0;r<Cw.length;r++){var i=Cw[r],a=n.getShallow(i,!0);a!=null&&e.setItemVisual(t,i,a)}}return{dataEach:n.hasItemOption?r:null}}}}));function Dw(e,t,n){switch(n){case`color`:return e.getItemVisual(t,`style`)[e.getVisual(`drawType`)];case`opacity`:return e.getItemVisual(t,`style`).opacity;case`symbol`:case`symbolSize`:case`liftZ`:return e.getItemVisual(t,n);default:process.env.NODE_ENV!==`production`&&console.warn(`Unknown visual type `+n)}}function Ow(e,t){switch(t){case`color`:return e.getVisual(`style`)[e.getVisual(`drawType`)];case`opacity`:return e.getVisual(`style`).opacity;case`symbol`:case`symbolSize`:case`liftZ`:return e.getVisual(t);default:process.env.NODE_ENV!==`production`&&console.warn(`Unknown visual type `+t)}}var kw=n((()=>{}));function Aw(e,t){function n(t,n){var r=[];return t.eachComponent({mainType:`series`,subType:e,query:n},function(e){r.push(e.seriesIndex)}),r}L([[e+`ToggleSelect`,`toggleSelect`],[e+`Select`,`select`],[e+`UnSelect`,`unselect`]],function(e){t(e[0],function(t,r,i){t=I({},t),process.env.NODE_ENV!==`production`&&jc(t.type,e[1]),i.dispatchAction(I(t,{type:e[1],seriesIndex:n(r,t)}))})})}function jw(e,t,n,r,i){var a=e+t;n.isSilent(a)||(process.env.NODE_ENV!==`production`&&Ac(`event `+a+` is deprecated.`),r.eachComponent({mainType:`series`,subType:`pie`},function(e){for(var t=e.seriesIndex,r=e.option.selectedMap,o=i.selected,s=0;s<o.length;s++)if(o[s].seriesIndex===t){var c=e.getData(),l=al(c,i.fromActionPayload);n.trigger(a,{type:a,seriesId:e.id,name:z(l)?c.getName(l[0]):c.getName(l),selected:V(r)?r:I({},r)})}}))}function Mw(e,t,n){e.on(`selectchanged`,function(e){var r=n.getModel();e.isFromClick?(jw(`map`,`selectchanged`,t,r,e),jw(`pie`,`selectchanged`,t,r,e)):e.fromAction===`select`?(jw(`map`,`selected`,t,r,e),jw(`pie`,`selected`,t,r,e)):e.fromAction===`unselect`&&(jw(`map`,`unselected`,t,r,e),jw(`pie`,`unselected`,t,r,e))})}var Nw=n((()=>{K(),Lc(),X()}));function Pw(e,t,n){for(var r;e&&!(t(e)&&(r=e,n));)e=e.__hostTarget||e.parent;return r}var Fw=n((()=>{})),Iw,Lw=n((()=>{_n(),Iw=new gn}));function Rw(e,t){process.env.NODE_ENV!==`production`&&Bw[e]&&kc(`Already has an implementation of `+e+`.`),Bw[e]=t}function zw(e){return process.env.NODE_ENV!==`production`&&(Bw[e]||kc(`Implementation of `+e+` doesn't exists.`)),Bw[e]}var Bw,Vw=n((()=>{Lc(),Bw={}}));function Hw(e,t){Uw[e]=t}var Uw,Ww=n((()=>{Uw={}}));function Gw(e){Yw(e).prepare={}}function Kw(e){Yw(e).fullUpdate={}}function qw(e){return Yw(e).prepare}function Jw(e){return Yw(e).fullUpdate}var Yw,Xw=n((()=>{X(),Yw=ol()})),Zw,Qw,$w,eT=n((()=>{Zw=Math.round(Math.random()*9),Qw=typeof Object.defineProperty==`function`,$w=function(){function e(){this._id=`__ec_inner_`+ Zw++}return e.prototype.get=function(e){return this._guard(e)[this._id]},e.prototype.set=function(e,t){var n=this._guard(e);return Qw?Object.defineProperty(n,this._id,{value:t,enumerable:!1,configurable:!0}):n[this._id]=t,this},e.prototype.delete=function(e){return this.has(e)?(delete this._guard(e)[this._id],!0):!1},e.prototype.has=function(e){return!!this._guard(e)[this._id]},e.prototype._guard=function(e){if(e!==Object(e))throw TypeError(`Value of WeakMap is not a non-null object.`);return e},e}()}));function tT(e,t){if(this.type!==`image`){var n=this.style;this.__isEmptyBrush?(n.stroke=e,n.fill=t||Z.color.neutral00,n.lineWidth=2):this.shape.symbolType===`line`?n.stroke=e:n.fill=e,this.markRedraw()}}function nT(e,t,n,r,i,a,o){var s=e.indexOf(`empty`)===0;s&&(e=e.substr(5,1).toLowerCase()+e.substr(6));var c=e.indexOf(`image://`)===0?yg(e.slice(8),new J(t,n,r,i),o?`center`:`cover`):e.indexOf(`path://`)===0?vg(e.slice(7),{},new J(t,n,r,i),o?`center`:`cover`):new fT({shape:{symbolType:e,x:t,y:n,width:r,height:i}});return c.__isEmptyBrush=s,c.setColor=tT,a&&c.setColor(a),c}function rT(e){return z(e)||(e=[+e,+e]),[e[0]||0,e[1]||0]}function iT(e,t){if(e!=null)return z(e)||(e=[e,e]),[Cc(e[0],t[0])||0,Cc(U(e[1],e[0]),t[1])||0]}var aT,oT,sT,cT,lT,uT,dT,fT,pT=n((()=>{K(),s_(),Ar(),Qo(),Y(),Wy(),aT=rf.extend({type:`triangle`,shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,r=t.cy,i=t.width/2,a=t.height/2;e.moveTo(n,r-a),e.lineTo(n+i,r+a),e.lineTo(n-i,r+a),e.closePath()}}),oT=rf.extend({type:`diamond`,shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,r=t.cy,i=t.width/2,a=t.height/2;e.moveTo(n,r-a),e.lineTo(n+i,r),e.lineTo(n,r+a),e.lineTo(n-i,r),e.closePath()}}),sT=rf.extend({type:`pin`,shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.x,r=t.y,i=t.width/5*3,a=Math.max(i,t.height),o=i/2,s=o*o/(a-o),c=r-a+o+s,l=Math.asin(s/o),u=Math.cos(l)*o,d=Math.sin(l),f=Math.cos(l),p=o*.6,m=o*.7;e.moveTo(n-u,c+s),e.arc(n,c,o,Math.PI-l,Math.PI*2+l),e.bezierCurveTo(n+u-d*p,c+s+f*p,n,r-m,n,r),e.bezierCurveTo(n,r-m,n-u+d*p,c+s+f*p,n-u,c+s),e.closePath()}}),cT=rf.extend({type:`arrow`,shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.height,r=t.width,i=t.x,a=t.y,o=r/3*2;e.moveTo(i,a),e.lineTo(i+o,a+n),e.lineTo(i,a+n/4*3),e.lineTo(i-o,a+n),e.lineTo(i,a),e.closePath()}}),lT={line:wh,rect:Cf,roundRect:Cf,square:Cf,circle:zm,diamond:oT,pin:sT,arrow:cT,triangle:aT},uT={line:function(e,t,n,r,i){i.x1=e,i.y1=t+r/2,i.x2=e+n,i.y2=t+r/2},rect:function(e,t,n,r,i){i.x=e,i.y=t,i.width=n,i.height=r},roundRect:function(e,t,n,r,i){i.x=e,i.y=t,i.width=n,i.height=r,i.r=Math.min(n,r)/4},square:function(e,t,n,r,i){var a=Math.min(n,r);i.x=e,i.y=t,i.width=a,i.height=a},circle:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.r=Math.min(n,r)/2},diamond:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.width=n,i.height=r},pin:function(e,t,n,r,i){i.x=e+n/2,i.y=t+r/2,i.width=n,i.height=r},arrow:function(e,t,n,r,i){i.x=e+n/2,i.y=t+r/2,i.width=n,i.height=r},triangle:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.width=n,i.height=r}},dT={},L(lT,function(e,t){dT[t]=new e}),fT=rf.extend({type:`symbol`,shape:{symbolType:``,x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,n){var r=Jo(e,t,n),i=this.shape;return i&&i.symbolType===`pin`&&t.position===`inside`&&(r.y=n.y+n.height*.4),r},buildPath:function(e,t,n){var r=t.symbolType;if(r!==`none`){var i=dT[r];i||=(r=`rect`,dT[r]),uT[r](t.x,t.y,t.width,t.height,i.shape),i.buildPath(e,i.shape,n)}}})}));function mT(e){return isFinite(e)}function hT(e,t,n){var r=t.x==null?0:t.x,i=t.x2==null?1:t.x2,a=t.y==null?0:t.y,o=t.y2==null?0:t.y2;return t.global||(r=r*n.width+n.x,i=i*n.width+n.x,a=a*n.height+n.y,o=o*n.height+n.y),r=mT(r)?r:0,i=mT(i)?i:1,a=mT(a)?a:0,o=mT(o)?o:0,e.createLinearGradient(r,a,i,o)}function gT(e,t,n){var r=n.width,i=n.height,a=Math.min(r,i),o=t.x==null?.5:t.x,s=t.y==null?.5:t.y,c=t.r==null?.5:t.r;return t.global||(o=o*r+n.x,s=s*i+n.y,c*=a),o=mT(o)?o:.5,s=mT(s)?s:.5,c=c>=0&&mT(c)?c:.5,e.createRadialGradient(o,s,0,o,s,c)}function _T(e,t,n){for(var r=t.type===`radial`?gT(e,t,n):hT(e,t,n),i=t.colorStops,a=0;a<i.length;a++)r.addColorStop(i[a].offset,i[a].color);return r}function vT(e,t){if(e===t||!e&&!t)return!1;if(!e||!t||e.length!==t.length)return!0;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!0;return!1}function yT(e){return parseInt(e,10)}function bT(e,t,n){var r=[`width`,`height`][t],i=[`clientWidth`,`clientHeight`][t],a=[`paddingLeft`,`paddingTop`][t],o=[`paddingRight`,`paddingBottom`][t];if(n[r]!=null&&n[r]!==`auto`)return parseFloat(n[r]);var s=document.defaultView.getComputedStyle(e);return(e[i]||yT(s[r])||yT(e.style[r]))-(yT(s[a])||0)-(yT(s[o])||0)||0}var xT=n((()=>{}));function ST(e,t){return!e||e===`solid`||!(t>0)?null:e===`dashed`?[4*t,2*t]:e===`dotted`?[t]:Ze(e)?[e]:z(e)?e:null}function CT(e){var t=e.style,n=t.lineDash&&t.lineWidth>0&&ST(t.lineDash,t.lineWidth),r=t.lineDashOffset;if(n){var i=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;i&&i!==1&&(n=R(n,function(e){return e/i}),r/=i)}return[n,r]}var wT=n((()=>{K()}));function TT(e){var t=e.stroke;return!(t==null||t===`none`||!(e.lineWidth>0))}function ET(e){return typeof e==`string`&&e!==`none`}function DT(e){var t=e.fill;return t!=null&&t!==`none`}function OT(e,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var n=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=n}else e.fill()}function kT(e,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var n=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=n}else e.stroke()}function AT(e,t,n){var r=ou(t.image,t.__image,n);if(cu(r)){var i=e.createPattern(r,t.repeat||`repeat`);if(typeof DOMMatrix==`function`&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*Lt),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function jT(e,t,n,r,i){var a,o=TT(n),s=DT(n),c=n.strokePercent,l=c<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var d=t.path||KT,f=t.__dirty;if(!r){var p=n.fill,m=n.stroke,h=s&&!!p.colorStops,g=o&&!!m.colorStops,_=s&&!!p.image,v=o&&!!m.image,y=void 0,b=void 0,x=void 0,S=void 0,C=void 0;(h||g)&&(C=t.getBoundingRect()),h&&(y=f?_T(e,p,C):t.__canvasFillGradient,t.__canvasFillGradient=y),g&&(b=f?_T(e,m,C):t.__canvasStrokeGradient,t.__canvasStrokeGradient=b),_&&(x=f||!t.__canvasFillPattern?AT(e,p,t):t.__canvasFillPattern,t.__canvasFillPattern=x),v&&(S=f||!t.__canvasStrokePattern?AT(e,m,t):t.__canvasStrokePattern,t.__canvasStrokePattern=S),h?e.fillStyle=y:_&&(x?e.fillStyle=x:s=!1),g?e.strokeStyle=b:v&&(S?e.strokeStyle=S:o=!1)}var w=t.getGlobalScale();d.setScale(w[0],w[1],t.segmentIgnoreThreshold);var T,E;e.setLineDash&&n.lineDash&&(a=CT(t),T=a[0],E=a[1]);var D=!0;(u||f&4)&&(d.setDPR(e.dpr),l?d.setContext(null):(d.setContext(e),D=!1),d.reset(),t.buildPath(d,t.shape,r),d.toStatic(),t.pathUpdated()),D&&d.rebuildPath(e,l?c:1),T&&(e.setLineDash(T),e.lineDashOffset=E),r?(i.batchFill=s,i.batchStroke=o):n.strokeFirst?(o&&kT(e,n),s&&OT(e,n)):(s&&OT(e,n),o&&kT(e,n)),T&&e.setLineDash([])}function MT(e,t,n){var r=t.__image=ou(n.image,t.__image,t,t.onload);if(!(!r||!cu(r))){var i=n.x||0,a=n.y||0,o=t.getWidth(),s=t.getHeight(),c=r.width/r.height;if(o==null&&s!=null?o=s*c:s==null&&o!=null?s=o/c:o==null&&s==null&&(o=r.width,s=r.height),n.sWidth&&n.sHeight){var l=n.sx||0,u=n.sy||0;e.drawImage(r,l,u,n.sWidth,n.sHeight,i,a,o,s)}else if(n.sx&&n.sy){var l=n.sx,u=n.sy,d=o-l,f=s-u;e.drawImage(r,l,u,d,f,i,a,o,s)}else e.drawImage(r,i,a,o,s)}}function NT(e,t,n){var r,i=n.text;if(i!=null&&(i+=``),i){e.font=n.font||`12px sans-serif`,e.textAlign=n.textAlign,e.textBaseline=n.textBaseline;var a=void 0,o=void 0;e.setLineDash&&n.lineDash&&(r=CT(t),a=r[0],o=r[1]),a&&(e.setLineDash(a),e.lineDashOffset=o),n.strokeFirst?(TT(n)&&e.strokeText(i,n.x,n.y),DT(n)&&e.fillText(i,n.x,n.y)):(DT(n)&&e.fillText(i,n.x,n.y),TT(n)&&e.strokeText(i,n.x,n.y)),a&&e.setLineDash([])}}function PT(e,t,n,r,i){var a=!1;if(!r&&(n||={},t===n))return!1;if(r||t.opacity!==n.opacity){VT(e,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?Lu.opacity:o}(r||t.blend!==n.blend)&&(a||=(VT(e,i),!0),e.globalCompositeOperation=t.blend||Lu.blend);for(var s=0;s<qT.length;s++){var c=qT[s];(r||t[c]!==n[c])&&(a||=(VT(e,i),!0),e[c]=e.dpr*(t[c]||0))}return(r||t.shadowColor!==n.shadowColor)&&(a||=(VT(e,i),!0),e.shadowColor=t.shadowColor||Lu.shadowColor),a}function FT(e,t,n,r,i){var a=t.style,o=r?null:n&&n.style||{};if(a===o)return!1;var s=PT(e,a,o,r,i);if((r||a.fill!==o.fill)&&(s||=(VT(e,i),!0),ET(a.fill)&&(e.fillStyle=a.fill)),(r||a.stroke!==o.stroke)&&(s||=(VT(e,i),!0),ET(a.stroke)&&(e.strokeStyle=a.stroke)),(r||a.opacity!==o.opacity)&&(s||=(VT(e,i),!0),e.globalAlpha=a.opacity==null?1:a.opacity),t.hasStroke()){var c=a.lineWidth/(a.strokeNoScale&&t.getLineScale?t.getLineScale():1);e.lineWidth!==c&&(s||=(VT(e,i),!0),e.lineWidth=c)}for(var l=0;l<JT.length;l++){var u=JT[l],d=u[0];(r||a[d]!==o[d])&&(s||=(VT(e,i),!0),e[d]=a[d]||u[1])}return s}function IT(e,t,n,r,i){return PT(e,t.style,n&&n.style,r,i)}function LT(e,t){var n=t.transform,r=e.dpr||1;n?e.setTransform(r*n[0],r*n[1],r*n[2],r*n[3],r*n[4],r*n[5]):e.setTransform(r,0,0,r,0,0)}function RT(e,t,n){for(var r=!1,i=0;i<e.length;i++){var a=e[i];r||=a.isZeroArea(),LT(t,a),t.beginPath(),a.buildPath(t,a.shape),t.clip()}n.allClipped=r}function zT(e,t){return e&&t?e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||e[3]!==t[3]||e[4]!==t[4]||e[5]!==t[5]:!(!e&&!t)}function BT(e){var t=DT(e),n=TT(e);return!(e.lineDash||!(t^+n)||t&&typeof e.fill!=`string`||n&&typeof e.stroke!=`string`||e.strokePercent<1||e.strokeOpacity<1||e.fillOpacity<1)}function VT(e,t){t.batchFill&&(t.batchFill=!1,e.fill()),t.batchStroke&&(t.batchStroke=!1,e.stroke())}function HT(e,t){var n={inHover:!1,viewWidth:0,viewHeight:0,beforeBrushParam:{}};UT(e,t,n),WT(e,n)}function UT(e,t,n){var r=t.transform;if(!t.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1)){t.__dirty&=-2,t.__isRendered=!1;return}var i=t.__clipPaths,a=n.prevElClipPaths,o=t.style,s=!1,c=!1;if((!a||vT(i,a))&&(a&&(VT(e,n),e.restore(),c=s=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),i&&i.length&&(VT(e,n),e.save(),RT(i,e,n),s=!0,n.prevElClipPaths=i)),n.allClipped){t.__dirty&=-2,t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(n.beforeBrushParam),t.innerBeforeBrush();var l=n.prevEl;l||(c=s=!0);var u=t instanceof rf&&t.autoBatch&&BT(o);s||zT(r,l.transform)?(VT(e,n),LT(e,t)):u||VT(e,n),t instanceof rf?(n.lastDrawType!==YT&&(c=!0,n.lastDrawType=YT),FT(e,t,l,c,n),(!u||!n.batchFill&&!n.batchStroke)&&e.beginPath(),jT(e,t,o,u,n)):t instanceof sf?(n.lastDrawType!==ZT&&(c=!0,n.lastDrawType=ZT),FT(e,t,l,c,n),NT(e,t,o)):t instanceof ff?(n.lastDrawType!==XT&&(c=!0,n.lastDrawType=XT),IT(e,t,l,c,n),MT(e,t,o)):t.getTemporalDisplayables&&(n.lastDrawType!==QT&&(c=!0,n.lastDrawType=QT),GT(e,t,n)),t.innerAfterBrush(),t.afterBrush&&(u&&VT(e,n),t.afterBrush()),n.prevEl=t,t.__dirty=0,t.__isRendered=!0}function WT(e,t){VT(e,t),t.prevElClipPaths&&e.restore()}function GT(e,t,n){var r=t.getDisplayables(),i=t.getTemporalDisplayables();e.save();var a={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover,beforeBrushParam:{}},o,s;for(o=t.getCursor(),s=r.length;o<s;o++){var c=r[o];c.beforeBrush&&c.beforeBrush(n.beforeBrushParam),c.innerBeforeBrush(),UT(e,c,a),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),a.prevEl=c}WT(e,a);for(var l=0,u=i.length;l<u;l++){var c=i[l];c.beforeBrush&&c.beforeBrush(n.beforeBrushParam),c.innerBeforeBrush(),UT(e,c,a),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),a.prevEl=c}WT(e,a),t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}var KT,qT,JT,YT,XT,ZT,QT,$T=n((()=>{Wu(),Td(),uu(),xT(),af(),pf(),cf(),K(),wT(),ei(),je(),KT=new wd(!0),qT=[`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`],JT=[[`lineCap`,`butt`],[`lineJoin`,`miter`],[`miterLimit`,10]],YT=1,XT=2,ZT=3,QT=4}));function eE(e,t){if(e===`none`)return null;var n=t.getDevicePixelRatio(),r=t.getZr(),i=r.painter.type===`svg`;e.dirty&&oE.delete(e);var a=oE.get(e);if(a)return a;var o=ze(e,{symbol:`rect`,symbolSize:1,symbolKeepAspect:!0,color:`rgba(0, 0, 0, 0.2)`,backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});o.backgroundColor===`none`&&(o.backgroundColor=null);var s={repeat:`repeat`};return c(s),s.rotation=o.rotation,s.scaleX=s.scaleY=i?1:1/n,oE.set(e,s),e.dirty=!1,s;function c(e){for(var t=[n],a=!0,s=0;s<cE.length;++s){var c=o[cE[s]];if(c!=null&&!z(c)&&!V(c)&&!Ze(c)&&typeof c!=`boolean`){a=!1;break}t.push(c)}var l;if(a){l=t.join(`,`)+(i?`-svg`:``);var u=sE.get(l);u&&(i?e.svgElement=u:e.image=u)}var d=nE(o.dashArrayX),f=rE(o.dashArrayY),p=tE(o.symbol),m=iE(d),h=aE(f),g=!i&&Ae.createCanvas(),_=i&&{tag:`g`,attrs:{},key:`dcl`,children:[]},v=b(),y;g&&(g.width=v.width*n,g.height=v.height*n,y=g.getContext(`2d`)),x(),a&&sE.put(l,g||_),e.image=g,e.svgElement=_,e.svgWidth=v.width,e.svgHeight=v.height;function b(){for(var e=1,t=0,n=m.length;t<n;++t)e=cc(e,m[t]);for(var r=1,t=0,n=p.length;t<n;++t)r=cc(r,p[t].length);e*=r;var i=h*m.length*p.length;if(process.env.NODE_ENV!==`production`){var a=function(e){console.warn(`Calculated decal size is greater than `+e+` due to decal option settings so `+e+` is used for the decal size. Please consider changing the decal option to make a smaller decal or set `+e+` to be larger to avoid incontinuity.`)};e>o.maxTileWidth&&a(`maxTileWidth`),i>o.maxTileHeight&&a(`maxTileHeight`)}return{width:Math.max(1,Math.min(e,o.maxTileWidth)),height:Math.max(1,Math.min(i,o.maxTileHeight))}}function x(){y&&(y.clearRect(0,0,g.width,g.height),o.backgroundColor&&(y.fillStyle=o.backgroundColor,y.fillRect(0,0,g.width,g.height)));for(var e=0,t=0;t<f.length;++t)e+=f[t];if(e<=0)return;for(var a=-h,s=0,c=0,l=0;a<v.height;){if(s%2==0){for(var u=c/2%p.length,m=0,b=0,x=0;m<v.width*2;){for(var S=0,t=0;t<d[l].length;++t)S+=d[l][t];if(S<=0)break;if(b%2==0){var C=(1-o.symbolSize)*.5,w=m+d[l][b]*C,T=a+f[s]*C,E=d[l][b]*o.symbolSize,D=f[s]*o.symbolSize,O=x/2%p[u].length;k(w,T,E,D,p[u][O])}m+=d[l][b],++x,++b,b===d[l].length&&(b=0)}++l,l===d.length&&(l=0)}a+=f[s],++c,++s,s===f.length&&(s=0)}function k(e,t,a,s,c){var l=i?1:n,u=nT(c,e*l,t*l,a*l,s*l,o.color,o.symbolKeepAspect);if(i){var d=r.painter.renderOneToVNode(u);d&&_.children.push(d)}else HT(y,u)}}}}function tE(e){if(!e||e.length===0)return[[`rect`]];if(V(e))return[[e]];for(var t=!0,n=0;n<e.length;++n)if(!V(e[n])){t=!1;break}if(t)return tE([e]);for(var r=[],n=0;n<e.length;++n)V(e[n])?r.push([e[n]]):r.push(e[n]);return r}function nE(e){if(!e||e.length===0)return[[0,0]];if(Ze(e)){var t=Math.ceil(e);return[[t,t]]}for(var n=!0,r=0;r<e.length;++r)if(!Ze(e[r])){n=!1;break}if(n)return nE([e]);for(var i=[],r=0;r<e.length;++r)if(Ze(e[r])){var t=Math.ceil(e[r]);i.push([t,t])}else{var t=R(e[r],function(e){return Math.ceil(e)});t.length%2==1?i.push(t.concat(t)):i.push(t)}return i}function rE(e){if(!e||typeof e==`object`&&e.length===0)return[0,0];if(Ze(e)){var t=Math.ceil(e);return[t,t]}var n=R(e,function(e){return Math.ceil(e)});return e.length%2?n.concat(n):n}function iE(e){return R(e,function(e){return aE(e)})}function aE(e){for(var t=0,n=0;n<e.length;++n)t+=e[n];return e.length%2==1?t*2:t}var oE,sE,cE,lE=n((()=>{eT(),Wi(),K(),Y(),pT(),$T(),je(),oE=new $w,sE=new Ui(100),cE=[`symbol`,`symbolSize`,`symbolKeepAspect`,`color`,`backgroundColor`,`dashArrayX`,`dashArrayY`,`maxTileWidth`,`maxTileHeight`]}));function uE(e,t){e.eachRawSeries(function(n){if(!e.isSeriesFiltered(n)){var r=n.getData();r.hasItemVisual()&&r.each(function(e){var n=r.getItemVisual(e,`decal`);if(n){var i=r.ensureUniqueItemVisual(e,`style`);i.decal=eE(n,t)}});var i=r.getVisual(`decal`);if(i){var a=r.getVisual(`style`);a.decal=eE(i,t)}}})}var dE,fE=n((()=>{lE(),X(),dE=jl(uE)}));function pE(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(this.isDisposed()){gE(this.id);return}return hE(this,e,t)}}function mE(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return hE(this,e,t)}}function hE(e,t,n){return n[0]=n[0]&&n[0].toLowerCase(),gn.prototype[t].apply(e,n)}function gE(e){process.env.NODE_ENV!==`production`&&Oc(`Instance `+e+` has been disposed`)}function _E(e,t,n){var r=!(n&&n.ssr);if(r){if(process.env.NODE_ENV!==`production`&&!e)throw Error(`Initialize failed: invalid dom.`);var i=xE(e);if(i)return process.env.NODE_ENV!==`production`&&Oc(`There is a chart instance already initialized on the dom.`),i;process.env.NODE_ENV!==`production`&&et(e)&&e.nodeName.toUpperCase()!==`CANVAS`&&(!e.clientWidth&&(!n||n.width==null)||!e.clientHeight&&(!n||n.height==null))&&Oc(`Can't get DOM width or height. Please check dom.clientWidth and dom.clientHeight. They should not be 0.For example, you may need to call this in the callback of window.onload.`)}var a=new LD(e,t,n);return a.id=`ec_`+ XD++,JD[a.id]=a,r&&dl(e,QD,a.id),ND(a),Iw.trigger(`afterinit`,a),a}function vE(e){if(z(e)){var t=e;e=null,L(t,function(t){t.group!=null&&(e=t.group)}),e||=`g_`+ ZD++,L(t,function(t){t.group=e})}return YD[e]=!0,e}function yE(e){YD[e]=!1}function bE(e){V(e)?e=JD[e]:e instanceof LD||(e=xE(e)),e instanceof LD&&!e.isDisposed()&&e.dispose()}function xE(e){return JD[fl(e,QD)]}function SE(e){return JD[e]}function CE(e,t){KD[e]=t}function wE(e){Be(WD,e)<0&&WD.push(e)}function TE(e,t){FE(UD,e,t,JE)}function EE(e){OE(`afterinit`,e)}function DE(e){OE(`afterupdate`,e)}function OE(e,t){Iw.on(e,t)}function kE(e,t,n){var r,i,a,o,s;B(t)&&(n=t,t=``),H(e)?(r=e.type,i=e.event,o=e.update,s=e.publishNonRefinedEvent,n||=e.action,a=e.refineEvent):(r=e,i=t);function c(e){return e.toLowerCase()}i=c(i||r);var l=a?c(r):i;BD[r]||(W(dD.test(r)&&dD.test(i)),a&&W(i!==r),BD[r]={actionType:r,refinedEventType:i,nonRefinedEventType:l,update:o,action:n,refineEvent:a},HD[i]=1,a&&s&&(HD[l]=1),process.env.NODE_ENV!==`production`&&VD[l]&&kc(l+` must not be shared; use "refineEvent" if you intend to share an event name.`),VD[l]=r)}function AE(e,t){yy.register(e,t)}function jE(e){var t=yy.get(e);if(t)return t.getDimensionsInfo?t.getDimensionsInfo():t.dimensions.slice()}function ME(e,t){Hw(e,t)}function NE(e,t){FE(GD,e,t,XE,`layout`,!0)}function PE(e,t){FE(GD,e,t,$E,`visual`,!0)}function FE(e,t,n,r,i,a){if((B(t)||H(t))&&(n=t,t=r),process.env.NODE_ENV!==`production`){if(isNaN(t)||t==null)throw Error(`Illegal priority`);L(e,function(e){W(e.__raw!==n)})}if(!(Be(eO,n)>=0)){eO.push(n);var o=lw.wrapStageHandler(n,i);o.__prio=t,o.__raw=n,e.push(o),process.env.NODE_ENV!==`production`&&a&&W(!o.dirtyOnOverallProgress,`dirtyOnOverallProgress is not allowed in `+i+` stage; otherwise progressive rendering is disabled on all series.`)}}function IE(e,t){qD[e]=t}function LE(e){process.env.NODE_ENV!==`production`&&Ac(`setCanvasCreator is deprecated. Use setPlatformAPI({ createCanvas }) instead.`),Ce({createCanvas:e})}function RE(e,t,n){var r=zw(`registerMap`);r&&r(e,t,n)}function zE(e){var t=zw(`getMap`);return t&&t(e)}function BE(e,t,n,r){return{eventContent:{selected:Vp(n),isFromClick:t.isFromClick||!1}}}var VE,HE,UE,WE,GE,KE,qE,JE,YE,XE,ZE,QE,$E,eD,tD,nD,rD,iD,aD,oD,sD,cD,lD,uD,dD,fD,pD,mD,hD,gD,_D,vD,yD,bD,xD,SD,CD,wD,TD,ED,DD,OD,kD,AD,jD,MD,ND,PD,FD,ID,LD,RD,zD,BD,VD,HD,UD,WD,GD,KD,qD,JD,YD,XD,ZD,QD,$D,eO,tO,nO,rO=n((()=>{P(),Ps(),K(),xe(),$r(),_n(),jb(),ap(),xy(),Rb(),ux(),mx(),yC(),xC(),MC(),s_(),Kf(),pm(),X(),zC(),YC(),QC(),mw(),yw(),Ql(),xw(),tp(),Ew(),kw(),Lc(),Nw(),bS(),cv(),Fw(),Lw(),je(),Vw(),Ww(),Xw(),Xy(),fE(),VE=`6.1.0`,HE={zrender:`6.1.0`},UE=1,WE=800,GE=900,KE=920,qE=1e3,JE=2e3,YE=5e3,XE=1e3,ZE=1100,QE=2e3,$E=3e3,eD=4e3,tD=4500,nD=4600,rD=5e3,iD=6e3,aD=7e3,oD={PROCESSOR:{SERIES_FILTER:WE,AXIS_STATISTICS:KE,FILTER:qE,STATISTIC:YE,STATISTICS:YE},VISUAL:{LAYOUT:XE,PROGRESSIVE_LAYOUT:ZE,GLOBAL:QE,CHART:$E,POST_CHART_LAYOUT:nD,COMPONENT:eD,BRUSH:rD,CHART_ITEM:tD,ARIA:iD,DECAL:aD}},sD=`__flagInMainProcess`,cD=`__mainProcessVersion`,lD=`__pendingUpdate`,uD=`__needsUpdateStatus`,dD=/^[a-zA-Z0-9_]+$/,fD=`__connectUpdateStatus`,pD=0,mD=1,hD=2,gD=function(e){N(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(gn),_D=gD.prototype,_D.on=mE(`on`),_D.off=mE(`off`),LD=function(e){N(t,e);function t(t,n,r){var i=e.call(this,new bw)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],r||={},i.__v_skip=!0,i._dom=t;var a=`canvas`,o=`auto`,s=!1;if(i[cD]=1,process.env.NODE_ENV!==`production`){var c=F.hasGlobalWindow?window:global;c&&(a=U(c.__ECHARTS__DEFAULT__RENDERER__,a),o=U(c.__ECHARTS__DEFAULT__COARSE_POINTER,o),s=U(c.__ECHARTS__DEFAULT__USE_DIRTY_RECT__,s))}r.ssr&&Os(function(e){var t=Wf(e),n=t.dataIndex;if(n!=null){var r=G();return r.set(`series_index`,t.seriesIndex),r.set(`data_index`,n),t.ssrType&&r.set(`ssr_type`,t.ssrType),r}});var l=i._zr=Ss(t,{renderer:r.renderer||a,devicePixelRatio:r.devicePixelRatio,width:r.width,height:r.height,ssr:r.ssr,useDirtyRect:U(r.useDirtyRect,s),useCoarsePointer:U(r.useCoarsePointer,o),pointerSize:r.pointerSize});i._ssr=r.ssr,i._throttledZrFlush=NC(Mt(l.flush,l),17),i._updateTheme(n),i._locale=$_(r.locale||sv),i._coordSysMgr=new yy;var u=i._api=MD(i);function d(e,t){return e.__prio-t.__prio}return Xr(GD,d),Xr(UD,d),i._scheduler=new lw(i,u,UD,GD),i._messageCenter=new gD,i._initEvents(),i.resize=Mt(i.resize,i),l.animation.on(`frame`,i._onframe,i),DD(l,i),OD(l,i),ut(i),i}return t.prototype._onframe=function(){if(!this._disposed){var e=this._scheduler,t=this._model,n=this._api;if(FD(this),this[lD]){var r=this[lD].silent;this[sD]=!0,ID(this);try{vD(this),xD.update.call(this,null,this[lD].updateParams)}catch(e){throw this[sD]=!1,this[lD]=null,e}this._zr.flush(),this[sD]=!1,this[lD]=null,TD.call(this,r),ED.call(this,r)}else if(e.unfinished){var i=UE;do{e.unfinished=!1;var a=Ae.getTime();e.performSeriesTasks(t),e.performDataProcessorTasks(t),CD(this,t),e.performVisualTasks(t),jD(this,this._model,n,`remain`,{}),i-=Ae.getTime()-a}while(i>0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,t,n){if(this[sD]){process.env.NODE_ENV!==`production`&&kc("`setOption` should not be called during main process.");return}if(this._disposed){gE(this.id);return}var r,i,a;if(H(t)&&(n=t.lazyUpdate,r=t.silent,i=t.replaceMerge,a=t.transition,t=t.notMerge),this[sD]=!0,ID(this),!this._model||t){var o=new Lb(this._api),s=this._theme,c=this._model=new Ab;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,s,this._locale,o)}this._model.setOption(e,{replaceMerge:i},WD);var l={seriesTransition:a,optionChanged:!0};if(n)this[lD]={silent:r,updateParams:l},this[sD]=!1,this.getZr().wakeUp();else{try{vD(this),xD.update.call(this,null,l)}catch(e){throw this[lD]=null,this[sD]=!1,e}this._ssr||this._zr.flush(),this[lD]=null,this[sD]=!1,TD.call(this,r),ED.call(this,r)}},t.prototype.setTheme=function(e,t){if(this[sD]){process.env.NODE_ENV!==`production`&&kc("`setTheme` should not be called during main process.");return}if(this._disposed){gE(this.id);return}var n=this._model;if(n){var r=t&&t.silent,i=null;this[lD]&&(r??=this[lD].silent,i=this[lD].updateParams,this[lD]=null),this[sD]=!0,ID(this);try{this._updateTheme(e),n.setTheme(this._theme),vD(this),xD.update.call(this,{type:`setTheme`},i)}catch(e){throw this[sD]=!1,e}this[sD]=!1,TD.call(this,r),ED.call(this,r)}},t.prototype._updateTheme=function(e){V(e)&&(e=KD[e]),e&&(e=Fe(e),e&&ox(e,!0),this._theme=e)},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||F.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return process.env.NODE_ENV!==`production`&&jc(`getRenderedCanvas`,`renderToCanvas`),this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){e||={};var t=this._zr.painter;if(process.env.NODE_ENV!==`production`&&t.type!==`canvas`)throw Error(`renderToCanvas can only be used in the canvas renderer.`);return t.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get(`backgroundColor`),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){e||={};var t=this._zr.painter;if(process.env.NODE_ENV!==`production`&&t.type!==`svg`)throw Error(`renderToSVGString can only be used in the svg renderer.`);return t.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){var e=this._zr;return L(e.storage.getDisplayList(),function(e){e.stopAnimation(null,!0)}),e.painter.toDataURL()},t.prototype.getDataURL=function(e){if(this._disposed){gE(this.id);return}e||={};var t=e.excludeComponents,n=this._model,r=[],i=this;L(t,function(e){n.eachComponent({mainType:e},function(e){var t=i._componentsMap[e.__viewId];t.group.ignore||(r.push(t),t.group.ignore=!0)})});var a=this._zr.painter.getType()===`svg`?this.getSvgDataURL():this.renderToCanvas(e).toDataURL(`image/`+(e&&e.type||`png`));return L(r,function(e){e.group.ignore=!1}),a},t.prototype.getConnectedDataURL=function(e){if(this._disposed){gE(this.id);return}var t=e.type===`svg`,n=this.group,r=Math.min,i=Math.max,a=1/0;if(YD[n]){var o=a,s=a,c=-a,l=-a,u=[],d=e&&e.pixelRatio||this.getDevicePixelRatio();L(JD,function(a,d){if(a.group===n){var f=t?a.getZr().painter.getSvgDom().innerHTML:a.renderToCanvas(Fe(e)),p=a.getDom().getBoundingClientRect();o=r(p.left,o),s=r(p.top,s),c=i(p.right,c),l=i(p.bottom,l),u.push({dom:f,left:p.left,top:p.top})}}),o*=d,s*=d,c*=d,l*=d;var f=c-o,p=l-s,m=Ae.createCanvas(),h=Ss(m,{renderer:t?`svg`:`canvas`});if(h.resize({width:f,height:p}),t){var g=``;return L(u,function(e){var t=e.left-o,n=e.top-s;g+=`<g transform="translate(`+t+`,`+n+`)">`+e.dom+`</g>`}),h.painter.getSvgRoot().innerHTML=g,e.connectedBackgroundColor&&h.painter.setBackgroundColor(e.connectedBackgroundColor),h.refreshImmediately(),h.painter.toDataURL()}else return e.connectedBackgroundColor&&h.add(new Cf({shape:{x:0,y:0,width:f,height:p},style:{fill:e.connectedBackgroundColor}})),L(u,function(e){var t=new ff({style:{x:e.left*d-o,y:e.top*d-s,image:e.dom}});h.add(t)}),h.refreshImmediately(),m.toDataURL(`image/`+(e&&e.type||`png`))}else return this.getDataURL(e)},t.prototype.convertToPixel=function(e,t,n){return SD(this,`convertToPixel`,e,t,n)},t.prototype.convertToLayout=function(e,t,n){return SD(this,`convertToLayout`,e,t,n)},t.prototype.convertFromPixel=function(e,t,n){return SD(this,`convertFromPixel`,e,t,n)},t.prototype.containPixel=function(e,t){if(this._disposed){gE(this.id);return}var n=this._model,r;return L(sl(n,e),function(e,n){n.indexOf(`Models`)>=0&&L(e,function(e){var i=e.coordinateSystem;if(i&&i.containPoint)r||=!!i.containPoint(t);else if(n===`seriesModels`){var a=this._chartsMap[e.__viewId];a&&a.containPoint?r||=a.containPoint(t,e):process.env.NODE_ENV!==`production`&&Oc(n+`: `+(a?`The found component do not support containPoint.`:`No view mapping to the found component.`))}else process.env.NODE_ENV!==`production`&&Oc(n+`: containPoint is not supported`)},this)},this),!!r},t.prototype.getVisual=function(e,t){var n=this._model,r=sl(n,e,{defaultMainType:`series`}),i=r.seriesModel;process.env.NODE_ENV!==`production`&&(i||Oc(`There is no specified series model`));var a=i.getData(),o=r.hasOwnProperty(`dataIndexInside`)?r.dataIndexInside:r.hasOwnProperty(`dataIndex`)?a.indexOfRawIndex(r.dataIndex):null;return o==null?Ow(a,t):Dw(a,o,t)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e=this;L(zD,function(t){var n=function(n){var r=e.getModel(),i=n.target,a,o=t===`globalout`;if(o?a={}:i&&Pw(i,function(e){var t=Wf(e);if(t&&t.dataIndex!=null){var n=t.dataModel||r.getSeriesByIndex(t.seriesIndex);return a=n&&n.getDataParams(t.dataIndex,t.dataType,i)||{},!0}else if(t.eventData)return a=I({},t.eventData),!0},!0),a){var s=a.componentType,c=a.componentIndex;(s===`markLine`||s===`markPoint`||s===`markArea`)&&(s=`series`,c=a.seriesIndex);var l=s&&c!=null&&r.getComponent(s,c),u=l&&e[l.mainType===`series`?`_chartsMap`:`_componentsMap`][l.__viewId];process.env.NODE_ENV!==`production`&&!o&&!(l&&u)&&Oc(`model or view can not be found by params`),a.event=n,a.type=t,e._$eventProcessor.eventInfo={targetEl:i,packedEvent:a,model:l,view:u},e.trigger(t,a)}};n.zrEventfulCallAtLast=!0,e._zr.on(t,n,e)});var t=this._messageCenter;L(HD,function(n,r){t.on(r,function(t){e.trigger(r,t)})}),Mw(t,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){gE(this.id);return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){gE(this.id);return}this._disposed=!0,this.getDom()&&dl(this.getDom(),QD,``);var e=this,t=e._api,n=e._model;L(e._componentsViews,function(e){e.dispose(n,t)}),L(e._chartsViews,function(e){e.dispose(n,t)}),e._zr.dispose(),e._dom=e._model=e._chartsMap=e._componentsMap=e._chartsViews=e._componentsViews=e._scheduler=e._api=e._zr=e._throttledZrFlush=e._theme=e._coordSysMgr=e._messageCenter=null,delete JD[e.id]},t.prototype.resize=function(e){if(this[sD]){process.env.NODE_ENV!==`production`&&kc("`resize` should not be called during main process.");return}if(this._disposed){gE(this.id);return}this._zr.resize(e);var t=this._model;if(this._loadingFX&&this._loadingFX.resize(),t){var n=t.resetOption(`media`),r=e&&e.silent;this[lD]&&(r??=this[lD].silent,n=!0,this[lD]=null),this[sD]=!0,ID(this);try{n&&vD(this),xD.update.call(this,{type:`resize`,animation:I({duration:0},e&&e.animation)})}catch(e){throw this[sD]=!1,e}this[sD]=!1,TD.call(this,r),ED.call(this,r)}},t.prototype.showLoading=function(e,t){if(this._disposed){gE(this.id);return}if(H(e)&&(t=e,e=``),e||=`default`,this.hideLoading(),!qD[e]){process.env.NODE_ENV!==`production`&&Oc(`Loading effects `+e+` not exists.`);return}var n=qD[e](this._api,t),r=this._zr;this._loadingFX=n,r.add(n)},t.prototype.hideLoading=function(){if(this._disposed){gE(this.id);return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(e){var t=I({},e);return t.type=VD[e.type],t},t.prototype.dispatchAction=function(e,t){if(this._disposed){gE(this.id);return}if(H(t)||(t={silent:!!t}),BD[e.type]&&this._model){if(this[sD]){this._pendingActions.push(e);return}var n=t.silent;wD.call(this,e,n);var r=t.flush;r?this._zr.flush():r!==!1&&F.browser.weChat&&this._throttledZrFlush(),TD.call(this,n),ED.call(this,n)}},t.prototype.updateLabelLayout=function(){Iw.trigger(`series:layoutlabels`,this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed){gE(this.id);return}var t=e.seriesIndex,n=this.getModel().getSeriesByIndex(t);process.env.NODE_ENV!==`production`&&W(e.data&&n),n.appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){vD=function(e){Gw(e._model);var t=e._scheduler;t.restorePipelines(e._zr,e._model),t.prepareStageTasks(),yD(e,!0),yD(e,!1),t.plan()},yD=function(e,t){for(var n=e._model,r=e._scheduler,i=t?e._componentsViews:e._chartsViews,a=t?e._componentsMap:e._chartsMap,o=e._zr,s=e._api,c=0;c<i.length;c++)i[c].__alive=!1;t?n.eachComponent(function(e,t){e!==`series`&&l(t)}):n.eachSeries(l);function l(e){var c=e.__requireNewView;e.__requireNewView=!1;var l=`_ec_`+e.id+`_`+e.type,u=!c&&a[l];if(!u){var d=Rl(e.type),f=t?bC.getClass(d.main,d.sub):AC.getClass(d.sub);process.env.NODE_ENV!==`production`&&W(f,d.sub+` does not exist.`),u=new f,u.init(n,s),a[l]=u,i.push(u),o.add(u.group)}e.__viewId=u.__id=l,u.__alive=!0,u.__model=e,u.group.__ecComponentInfo={mainType:e.mainType,index:e.componentIndex},!t&&r.prepareView(u,e,n,s)}for(var c=0;c<i.length;){var u=i[c];u.__alive?c++:(!t&&u.renderTask.dispose(),o.remove(u.group),u.dispose(n,s),i.splice(c,1),a[u.__id]===u&&delete a[u.__id],u.__id=u.group.__ecComponentInfo=null)}},bD=function(e,t,n,r,i){var a=e._model;if(a.setUpdatePayload(n),!r){L([].concat(e._componentsViews,e._chartsViews),l);return}var o=ul(n,r,i),s=n.excludeSeriesId,c;s!=null&&(c=G(),L(zc(s),function(e){var t=Qc(e,null);t!=null&&c.set(t,!0)})),a&&a.eachComponent(o,function(t){if(!(c&&c.get(t.id)!=null))if(Zp(n))if(t instanceof vC)n.type===`highlight`&&!n.notBlur&&!t.get([`emphasis`,`disabled`])&&Fp(t,n,e._api);else{var r=Ip(t.mainType,t.componentIndex,n.name,e._api),i=r.focusSelf,a=r.dispatchers;n.type===`highlight`&&i&&!n.notBlur&&Pp(t.mainType,t.componentIndex,e._api),a&&L(a,function(e){n.type===`highlight`?Tp(e):Ep(e)})}else Xp(n)&&t instanceof vC&&(zp(t,n,e._api),Bp(t),PD(e))},e),a&&a.eachComponent(o,function(t){c&&c.get(t.id)!=null||l(e[r===`series`?`_chartsMap`:`_componentsMap`][t.__viewId])},e);function l(r){r&&r.__alive&&r[t]&&r[t](r.__model,a,e._api,n)}},xD={prepareAndUpdate:function(e){vD(this),xD.update.call(this,e,e&&{optionChanged:e.newOption!=null})},update:function(e,n){var r=this._model,i=this._api,a=this._zr,o=this._coordSysMgr,s=this._scheduler;if(r){Kw(r),r.setUpdatePayload(e),s.restoreData(r,e),s.performSeriesTasks(r),o.create(r,i),Iw.trigger(`coordsys:aftercreate`,r,i),s.performDataProcessorTasks(r,e),CD(this,r),o.update(r,i),t(r),s.performVisualTasks(r,e);var c=r.get(`backgroundColor`)||`transparent`;a.setBackgroundColor(c);var l=r.get(`darkMode`);l!=null&&l!==`auto`&&a.setDarkMode(l),kD(this,r,i,e,n),Iw.trigger(`afterupdate`,r,i)}},updateTransform:function(e){var t=this,n=t._model,r=t._api;if(n){n.setUpdatePayload(e);var i=[];n.eachComponent(function(a,o){if(a!==`series`){var s=t.getViewOfComponentModel(o);if(s&&s.__alive)if(s.updateTransform){var c=s.updateTransform(o,n,r,e);c&&c.update&&i.push(s)}else i.push(s)}});var a=G();n.eachSeries(function(i){var o=t._chartsMap[i.__viewId],s=i.pipelineContext;if(o.updateTransform&&!s.progressiveRender){var c=o.updateTransform(i,n,r,e);c&&c.update&&a.set(i.uid,1)}else a.set(i.uid,1)}),t._scheduler.performVisualTasks(n,e,{setDirty:!0,dirtyMap:a}),jD(t,n,r,e,{},a),Iw.trigger(`afterupdate`,n,r)}},updateView:function(e){var n=this._model;n&&(n.setUpdatePayload(e),AC.markUpdateMethod(e,`updateView`),t(n),this._scheduler.performVisualTasks(n,e,{setDirty:!0}),kD(this,n,this._api,e,{}),Iw.trigger(`afterupdate`,n,this._api))},updateVisual:function(e){var n=this,r=this._model;r&&(r.setUpdatePayload(e),r.eachSeries(function(e){e.getData().clearAllVisual()}),AC.markUpdateMethod(e,`updateVisual`),t(r),this._scheduler.performVisualTasks(r,e,{visualType:`visual`,setDirty:!0}),r.eachComponent(function(t,i){if(t!==`series`){var a=n.getViewOfComponentModel(i);a&&a.__alive&&a.updateVisual(i,r,n._api,e)}}),r.eachSeries(function(t){n._chartsMap[t.__viewId].updateVisual(t,r,n._api,e)}),Iw.trigger(`afterupdate`,r,this._api))},updateLayout:function(e){xD.update.call(this,e)}};function e(e,t,n,r,i){if(e._disposed){gE(e.id);return}for(var a=e._model,o=e._coordSysMgr.getCoordinateSystems(),s,c=sl(a,n),l=0;l<o.length;l++){var u=o[l];if(u[t]&&(s=u[t](a,c,r,i))!=null)return s}process.env.NODE_ENV!==`production`&&Oc(`No coordinate system that supports `+t+` found by the given finder.`)}SD=e,CD=function(e,t){var n=e._chartsMap,r=e._scheduler;t.eachSeries(function(e){r.updateStreamModes(e,n[e.__viewId])})},wD=function(e,t){var n=this,r=this.getModel(),i=e.type,a=e.escapeConnect,o=BD[i],s=(o.update||`update`).split(`:`),c=s.pop(),l=s[0]!=null&&Rl(s[0]);this[sD]=!0,ID(this);var u=[e],d=!1;e.batch&&(d=!0,u=R(e.batch,function(t){return t=ze(I({},t),e),t.batch=null,t}));var f=[],p,m=[],h=o.nonRefinedEventType,g=Xp(e),_=Zp(e);if(_&&Mp(this._api),L(u,function(t){var i=o.action(t,r,n._api);if(o.refineEvent?m.push(i):p=i,p||=I({},t),p.type=h,f.push(p),_){var a=cl(e),s=a.queryOptionMap,u=a.mainTypeSpecified?s.keys()[0]:`series`;bD(n,c,t,u),PD(n)}else g?(bD(n,c,t,`series`),PD(n)):l&&bD(n,c,t,l.main,l.sub)}),c!==`none`&&!_&&!g&&!l)try{this[lD]?(vD(this),xD.update.call(this,e),this[lD]=null):xD[c].call(this,e)}catch(e){throw this[sD]=!1,e}if(p=d?{type:h,escapeConnect:a,batch:f}:f[0],this[sD]=!1,!t){var v=void 0;if(o.refineEvent){var y=o.refineEvent(m,e,r,this._api).eventContent;W(H(y)),v=ze({type:o.refinedEventType},y),v.fromAction=e.type,v.fromActionPayload=e,v.escapeConnect=!0}var b=this._messageCenter;b.trigger(p.type,p),v&&b.trigger(v.type,v)}},TD=function(e){for(var t=this._pendingActions;t.length;){var n=t.shift();wD.call(this,n,e)}},ED=function(e){!e&&this.trigger(`updated`)},DD=function(e,t){e.on(`rendered`,function(n){t.trigger(`rendered`,n),e.animation.isFinished()&&!t[lD]&&!t._scheduler.unfinished&&!t._pendingActions.length?t.trigger(`finished`):e.refresh()})},OD=function(e,t){e.on(`mouseover`,function(e){var n=e.target,r=Pw(n,Jp);r&&(Lp(r,e,t._api),PD(t))}).on(`mouseout`,function(e){var n=e.target,r=Pw(n,Jp);r&&(Rp(r,e,t._api),PD(t))}).on(`click`,function(e){var n=e.target,r=Pw(n,function(e){return Wf(e).dataIndex!=null},!0);if(r){var i=r.selected?`unselect`:`select`,a=Wf(r);t._api.dispatchAction({type:i,dataType:a.dataType,dataIndexInside:a.dataIndex,seriesIndex:a.seriesIndex,isFromClick:!0})}})};function t(e){e.clearColorPalette(),e.eachSeries(function(e){e.clearColorPalette()})}function n(e){var t=[],n=[],r=!1;if(e.eachComponent(function(e,i){var a=i.get(`zlevel`)||0,o=i.get(`z`)||0,s=i.getZLevelKey();r||=!!s,(e===`series`?n:t).push({zlevel:a,z:o,idx:i.componentIndex,type:e,key:s})}),r){var i=t.concat(n),a,o;Xr(i,function(e,t){return e.zlevel===t.zlevel?e.z-t.z:e.zlevel-t.zlevel}),L(i,function(t){var n=e.getComponent(t.type,t.idx),r=t.zlevel,i=t.key;a!=null&&(r=Math.max(a,r)),i?(r===a&&i!==o&&r++,o=i):o&&=(r===a&&r++,``),a=r,n.setZLevel(r)})}}kD=function(e,t,r,i,a){n(t),AD(e,t,r,i,a),L(e._chartsViews,function(e){e.__alive=!1}),jD(e,t,r,i,a),L(e._chartsViews,function(e){e.__alive||e.remove(t,r)})},AD=function(e,t,n,r,i,a){L(a||e._componentsViews,function(e){var i=e.__model;s(i,e),e.render(i,t,n,r),o(i,e),c(i,e)})},jD=function(e,t,n,r,l,u){var d=e._scheduler;l=I(l||{},{updatedSeries:t.getSeries()}),Iw.trigger(`series:beforeupdate`,t,n,l);var f=!1;t.eachSeries(function(t){var n=e._chartsMap[t.__viewId];n.__alive=!0;var i=n.renderTask;d.updatePayload(i,r),s(t,n),u&&u.get(t.uid)&&i.dirty(),i.perform(d.getPerformArgs(i))&&(f=!0),n.group.silent=!!t.get(`silent`),a(t,n),Bp(t)}),d.unfinished=f||d.unfinished,Iw.trigger(`series:layoutlabels`,t,n,l),Iw.trigger(`series:transition`,t,n,l),t.eachSeries(function(t){var n=e._chartsMap[t.__viewId];o(t,n),c(t,n)}),i(e,t),Iw.trigger(`series:afterupdate`,t,n,l)},PD=function(e){e[uD]=!0,e.getZr().wakeUp()},ID=function(e){e[cD]=(e[cD]+1)%1e6},FD=function(e){e[uD]&&(e.getZr().storage.traverse(function(e){og(e)||r(e)}),e[uD]=!1)};function r(e){for(var t=[],n=e.currentStates,r=0;r<n.length;r++){var i=n[r];i===`emphasis`||i===`blur`||i===`select`||t.push(i)}e.selected&&e.states.select&&t.push(`select`),e.hoverState===2&&e.states.emphasis?t.push(`emphasis`):e.hoverState===1&&e.states.blur&&t.push(`blur`),e.useStates(t)}function i(e,t){var n=e._zr;if(n.painter.type===`canvas`){var r=n.storage,i=0;r.traverse(function(e){e.isGroup||i++});var a=i>U(t.get(`hoverLayerThreshold`),Yy.hoverLayerThreshold)&&!F.node&&!F.worker;(e._usingTHL||a)&&(t.eachSeries(function(t){if(!t.preventUsingHoverLayer){var n=e._chartsMap[t.__viewId];n.__alive&&n.eachRendered(function(e){var t=e.states.emphasis;t&&t.hoverLayer!==2&&(t.hoverLayer=+!!a)})}}),e._usingTHL=a)}}function a(e,t){var n=e.get(`blendMode`)||null;t.eachRendered(function(e){e.isGroup||(e.style.blend=n)})}function o(e,t){if(!e.preventAutoZ){var n=Gg(e);t.eachRendered(function(e){return qg(e,n.z,n.zlevel),!0})}}function s(e,t){t.eachRendered(function(e){if(!og(e)){var t=e.getTextContent(),n=e.getTextGuideLine();e.stateTransition&&=null,t&&t.stateTransition&&(t.stateTransition=null),n&&n.stateTransition&&(n.stateTransition=null),e.hasState()?(e.prevStates=e.currentStates,e.clearStates()):e.prevStates&&=null}})}function c(e,t){var n=e.getModel(`stateAnimation`),i=e.isAnimationEnabled(),a=n.get(`duration`),o=a>0?{duration:a,delay:n.get(`delay`),easing:n.get(`easing`)}:null;t.eachRendered(function(e){if(e.states&&e.states.emphasis){if(og(e))return;if(e instanceof rf&&Qp(e),e.__dirty){var t=e.prevStates;t&&e.useStates(t)}if(i){e.stateTransition=o;var n=e.getTextContent(),a=e.getTextGuideLine();n&&(n.stateTransition=o),a&&(a.stateTransition=o)}e.__dirty&&r(e)}})}MD=function(e){return new(function(t){N(n,t);function n(){return t!==null&&t.apply(this,arguments)||this}return n.prototype.getCoordinateSystems=function(){return e._coordSysMgr.getCoordinateSystems()},n.prototype.getComponentByElement=function(t){for(;t;){var n=t.__ecComponentInfo;if(n!=null)return e._model.getComponent(n.mainType,n.index);t=t.parent}},n.prototype.enterEmphasis=function(t,n){Tp(t,n),PD(e)},n.prototype.leaveEmphasis=function(t,n){Ep(t,n),PD(e)},n.prototype.enterBlur=function(t){Dp(t),PD(e)},n.prototype.leaveBlur=function(t){Op(t),PD(e)},n.prototype.enterSelect=function(t){kp(t),PD(e)},n.prototype.leaveSelect=function(t){Ap(t),PD(e)},n.prototype.getModel=function(){return e.getModel()},n.prototype.getViewOfComponentModel=function(t){return e.getViewOfComponentModel(t)},n.prototype.getViewOfSeriesModel=function(t){return e.getViewOfSeriesModel(t)},n.prototype.getECUpdateCycleVersion=function(){return e[cD]},n.prototype.usingTHL=function(){return e._usingTHL},n}(ip))(e)},ND=function(e){function t(e,t){for(var n=0;n<e.length;n++){var r=e[n];r[fD]=t}}L(VD,function(n,r){e._messageCenter.on(r,function(n){if(YD[e.group]&&e[fD]!==pD){if(n&&n.escapeConnect)return;var r=e.makeActionFromEvent(n),i=[];L(JD,function(t){t!==e&&t.group===e.group&&i.push(t)}),t(i,pD),L(i,function(e){e[fD]!==mD&&e.dispatchAction(r)}),t(i,hD)}})})}}(),t}(gn),RD=LD.prototype,RD.on=pE(`on`),RD.off=pE(`off`),RD.one=function(e,t,n){var r=this;Ac(`ECharts#one is deprecated.`);function i(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];t&&t.apply&&t.apply(this,n),r.off(e,i)}this.on.call(this,e,i,n)},zD=[`click`,`dblclick`,`mouseover`,`mouseout`,`mousemove`,`mousedown`,`mouseup`,`globalout`,`contextmenu`],BD={},VD={},HD={},UD=[],WD=[],GD=[],KD={},qD={},JD={},YD={},XD=new Date-0,ZD=new Date-0,QD=`_echarts_instance_`,$D=yE,eO=[],tO=mS,PE(QE,GC),PE(tD,qC),PE(tD,JC),PE(QE,ww),PE(tD,Tw),PE(aD,dE),wE(ox),TE(GE,px),IE(`default`,XC),kE({type:am,event:am,update:am},_t),kE({type:om,event:om,update:om},_t),kE({type:sm,event:um,update:sm,action:_t,refineEvent:BE,publishNonRefinedEvent:!0}),kE({type:cm,event:um,update:cm,action:_t,refineEvent:BE,publishNonRefinedEvent:!0}),kE({type:lm,event:um,update:lm,action:_t,refineEvent:BE,publishNonRefinedEvent:!0}),CE(`default`,{}),CE(`dark`,vw),nO={}}));function iO(e){return e==null?0:e.length||1}function aO(e){return e}var oO,sO=n((()=>{oO=function(){function e(e,t,n,r,i,a){this._old=e,this._new=t,this._oldKeyGetter=n||aO,this._newKeyGetter=r||aO,this.context=i,this._diffModeMultiple=a===`multiple`}return e.prototype.add=function(e){return this._add=e,this},e.prototype.update=function(e){return this._update=e,this},e.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},e.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},e.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},e.prototype.remove=function(e){return this._remove=e,this},e.prototype.execute=function(){this[this._diffModeMultiple?`_executeMultiple`:`_executeOneToOne`]()},e.prototype._executeOneToOne=function(){var e=this._old,t=this._new,n={},r=Array(e.length),i=Array(t.length);this._initIndexMap(e,null,r,`_oldKeyGetter`),this._initIndexMap(t,n,i,`_newKeyGetter`);for(var a=0;a<e.length;a++){var o=r[a],s=n[o],c=iO(s);if(c>1){var l=s.shift();s.length===1&&(n[o]=s[0]),this._update&&this._update(l,a)}else c===1?(n[o]=null,this._update&&this._update(s,a)):this._remove&&this._remove(a)}this._performRestAdd(i,n)},e.prototype._executeMultiple=function(){var e=this._old,t=this._new,n={},r={},i=[],a=[];this._initIndexMap(e,n,i,`_oldKeyGetter`),this._initIndexMap(t,r,a,`_newKeyGetter`);for(var o=0;o<i.length;o++){var s=i[o],c=n[s],l=r[s],u=iO(c),d=iO(l);if(u>1&&d===1)this._updateManyToOne&&this._updateManyToOne(l,c),r[s]=null;else if(u===1&&d>1)this._updateOneToMany&&this._updateOneToMany(l,c),r[s]=null;else if(u===1&&d===1)this._update&&this._update(l,c),r[s]=null;else if(u>1&&d>1)this._updateManyToMany&&this._updateManyToMany(l,c),r[s]=null;else if(u>1)for(var f=0;f<u;f++)this._remove&&this._remove(c[f]);else this._remove&&this._remove(c)}this._performRestAdd(a,r)},e.prototype._performRestAdd=function(e,t){for(var n=0;n<e.length;n++){var r=e[n],i=t[r],a=iO(i);if(a>1)for(var o=0;o<a;o++)this._add&&this._add(i[o]);else a===1&&this._add&&this._add(i);t[r]=null}},e.prototype._initIndexMap=function(e,t,n,r){for(var i=this._diffModeMultiple,a=0;a<e.length;a++){var o=`_ec_`+this[r](e[a],a);if(i||(n[a]=o),t){var s=t[o],c=iO(s);c===0?(t[o]=a,i&&n.push(o)):c===1?t[o]=[s,a]:s.push(a)}}},e}()}));function cO(e,t){var n={},r=n.encode={},i=G(),a=[],o=[],s={};L(e.dimensions,function(t){var n=e.getDimensionInfo(t),c=n.coordDim;if(c){process.env.NODE_ENV!==`production`&&W(qf.get(c)==null);var l=n.coordDimIndex;lO(r,c)[l]=t,n.isExtraCoord||(i.set(c,1),dO(n.type)&&(a[0]=t),lO(s,c)[l]=e.getDimensionIndex(n.name)),n.defaultTooltip&&o.push(t)}qf.each(function(e,t){var i=lO(r,t),a=n.otherDims[t];a!=null&&a!==!1&&(i[a]=n.name)})});var c=[],l={};i.each(function(e,t){var n=r[t];l[t]=n[0],c=c.concat(n)}),n.dataDimsOnCoord=c,n.dataDimIndicesOnCoord=R(c,function(t){return e.getDimensionInfo(t).storeDimIndex}),n.encodeFirstDimNotExtra=l;var u=r.label;u&&u.length&&(a=u.slice());var d=r.tooltip;return d&&d.length?o=d.slice():o.length||(o=a.slice()),r.defaultedLabel=a,r.defaultedTooltip=o,n.userOutput=new fO(s,t),n}function lO(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function uO(e){return e===`category`?`ordinal`:e===`time`?`time`:`float`}function dO(e){return!(e===`ordinal`||e===`time`)}var fO,pO=n((()=>{K(),tp(),fO=function(){function e(e,t){this._encode=e,this._schema=t}return e.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},e.prototype._getFullDimensionNames=function(){return this._cachedDimNames||=this._schema?this._schema.makeOutputDimensionNames():[],this._cachedDimNames},e}()})),mO,hO=n((()=>{K(),mO=function(){function e(e){this.otherDims={},e!=null&&I(this,e)}return e}()}));function gO(e){return e instanceof SO}function _O(e){for(var t=G(),n=0;n<(e||[]).length;n++){var r=e[n],i=H(r)?r.name:r;i!=null&&t.get(i)==null&&t.set(i,n)}return t}function vO(e){var t=bO(e);return t.dimNameMap||=_O(e.dimensionsDefine)}function yO(e){return e>30}var bO,xO,SO,CO=n((()=>{K(),X(),Dx(),bO=ol(),xO={float:`f`,int:`i`,ordinal:`o`,number:`n`,time:`t`},SO=function(){function e(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return e.prototype.isDimensionOmitted=function(){return this._dimOmitted},e.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||=vO(this.source))},e.prototype.getSourceDimensionIndex=function(e){return U(this._dimNameMap.get(e),-1)},e.prototype.getSourceDimension=function(e){var t=this.source.dimensionsDefine;if(t)return t[e]},e.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,t=Tx(this.source),n=!yO(e),r=``,i=[],a=0,o=0;a<e;a++){var s=void 0,c=void 0,l=void 0,u=this.dimensions[o];if(u&&u.storeDimIndex===a)s=t?u.name:null,c=u.type,l=u.ordinalMeta,o++;else{var d=this.getSourceDimension(a);d&&(s=t?d.name:null,c=d.type)}i.push({property:s,type:c,ordinalMeta:l}),t&&s!=null&&(!u||!u.isCalculationCoord)&&(r+=n?s.replace(/\`/g,"`1").replace(/\$/g,"`2"):s),r+=`$`,r+=xO[c]||`f`,l&&(r+=l.uid),r+=`$`}var f=this.source;return{dimensions:i,hash:[f.seriesLayoutBy,f.startIndex,r].join(`$$`)}},e.prototype.makeOutputDimensionNames=function(){for(var e=[],t=0,n=0;t<this._fullDimCount;t++){var r=void 0,i=this.dimensions[n];if(i&&i.storeDimIndex===t)i.isCalculationCoord||(r=i.name),n++;else{var a=this.getSourceDimension(t);a&&(r=a.name)}e.push(r)}return e},e.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},e}()})),wO,TO,EO,DO,OO,kO,AO,jO,MO,NO,PO,FO,IO,LO,RO,zO=n((()=>{K(),V_(),sO(),Jx(),pO(),hO(),tp(),X(),Kf(),Dx(),jS(),CO(),wO=H,TO=R,EO=typeof Int32Array>`u`?Array:Int32Array,DO=`e\0\0`,OO=-1,kO=[`hasItemOption`,`_nameList`,`_idList`,`_invertedIndicesMap`,`_dimSummary`,`userOutput`,`_rawData`,`_dimValueGetter`,`_nameDimIdx`,`_idDimIdx`,`_nameRepeatCount`],AO=[`_approximateExtent`],RO=function(){function e(e,t){this.type=`list`,this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=[`cloneShallow`,`downSample`,`minmaxDownSample`,`lttbDownSample`,`map`],this.CHANGABLE_METHODS=[`filterSelf`,`selectRange`],this.DOWNSAMPLE_METHODS=[`downSample`,`minmaxDownSample`,`lttbDownSample`];var n,r=!1;gO(e)?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(r=!0,n=e),n||=[`x`,`y`];for(var i={},a=[],o={},s=!1,c={},l=0;l<n.length;l++){var u=n[l],d=V(u)?new mO({name:u}):u instanceof mO?u:new mO(u),f=d.name;d.type=d.type||`float`,d.coordDim||(d.coordDim=f,d.coordDimIndex=0);var p=d.otherDims=d.otherDims||{};a.push(f),i[f]=d,c[f]!=null&&(s=!0),d.createInvertedIndices&&(o[f]=[]),process.env.NODE_ENV!==`production`&&W(r||d.storeDimIndex>=0),r&&(d.storeDimIndex=l),p.itemName===0&&(this._nameDimIdx=d.storeDimIndex),p.itemId===0&&(this._idDimIdx=d.storeDimIndex)}if(this.dimensions=a,this._dimInfos=i,this._initGetDimensionInfo(s),this.hostModel=t,this._invertedIndicesMap=o,this._dimOmitted){var m=this._dimIdxToName=G();L(a,function(e){m.set(i[e].storeDimIndex,e)})}}return e.prototype.getDimension=function(e){var t=this._recognizeDimIndex(e);if(t==null)return e;if(t=e,!this._dimOmitted)return this.dimensions[t];var n=this._dimIdxToName.get(t);if(n!=null)return n;var r=this._schema.getSourceDimension(t);if(r)return r.name},e.prototype.getDimensionIndex=function(e){var t=this._recognizeDimIndex(e);if(t!=null)return t;if(e==null)return-1;var n=this._getDimInfo(e);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},e.prototype._recognizeDimIndex=function(e){if(Ze(e)||e!=null&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},e.prototype._getStoreDimIndex=function(e){var t=this.getDimensionIndex(e);if(process.env.NODE_ENV!==`production`&&t==null)throw Error(`Unknown dimension `+e);return t},e.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},e.prototype._initGetDimensionInfo=function(e){var t=this._dimInfos;this._getDimInfo=e?function(e){return t.hasOwnProperty(e)?t[e]:void 0}:function(e){return t[e]}},e.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},e.prototype.mapDimension=function(e,t){var n=this._dimSummary;if(t==null)return n.encodeFirstDimNotExtra[e];var r=n.encode[e];return r?r[t]:null},e.prototype.mapDimensionsAll=function(e){return(this._dimSummary.encode[e]||[]).slice()},e.prototype.getStore=function(){return this._store},e.prototype.initData=function(e,t,n){var r=this,i;if(e instanceof AS&&(i=e),!i){var a=this.dimensions,o=hx(e)||Ue(e)?new zx(e,a.length):e;i=new AS;var s=TO(a,function(e){return{type:r._dimInfos[e].type,property:e}});i.initData(o,s,n)}this._store=i,this._nameList=(t||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=cO(this,this._schema),this.userOutput=this._dimSummary.userOutput},e.prototype.appendData=function(e){var t=this._store.appendData(e);this._doInit(t[0],t[1])},e.prototype.appendValues=function(e,t){var n=this._store.appendValues(e,t&&t.length),r=n.start,i=n.end,a=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),t)for(var o=r;o<i;o++){var s=o-r;this._nameList[o]=t[s],a&&LO(this,o)}},e.prototype._updateOrdinalMeta=function(){for(var e=this._store,t=this.dimensions,n=0;n<t.length;n++){var r=this._dimInfos[t[n]];r.ordinalMeta&&e.collectOrdinalMeta(r.storeDimIndex,r.ordinalMeta)}},e.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return this._idDimIdx==null&&e.getSource().sourceFormat!==`typedArray`&&!e.fillStorage},e.prototype._doInit=function(e,t){if(!(e>=t)){var n=this._store.getProvider();this._updateOrdinalMeta();var r=this._nameList,i=this._idList;if(n.getSource().sourceFormat===`original`&&!n.pure)for(var a=[],o=e;o<t;o++){var s=n.getItem(o,a);if(!this.hasItemOption&&Hc(s)&&(this.hasItemOption=!0),s){var c=s.name;r[o]==null&&c!=null&&(r[o]=Qc(c,null));var l=s.id;i[o]==null&&l!=null&&(i[o]=Qc(l,null))}}if(this._shouldMakeIdFromName())for(var o=e;o<t;o++)LO(this,o);jO(this)}},e.prototype.getApproximateExtent=function(e,t){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e),t)},e.prototype.setApproximateExtent=function(e,t){t=this.getDimension(t),this._approximateExtent[t]=e.slice()},e.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},e.prototype.setCalculationInfo=function(e,t){wO(e)?I(this._calculationInfo,e):this._calculationInfo[e]=t},e.prototype.getName=function(e){var t=this.getRawIndex(e),n=this._nameList[t];return n==null&&this._nameDimIdx!=null&&(n=NO(this,this._nameDimIdx,t)),n??=``,n},e.prototype._getCategory=function(e,t){var n=this._store.get(e,t),r=this._store.getOrdinalMeta(e);return r?r.categories[n]:n},e.prototype.getId=function(e){return MO(this,this.getRawIndex(e))},e.prototype.count=function(){return this._store.count()},e.prototype.get=function(e,t){var n=this._store,r=this._dimInfos[e];if(r)return n.get(r.storeDimIndex,t)},e.prototype.getByRawIndex=function(e,t){var n=this._store,r=this._dimInfos[e];if(r)return n.getByRawIndex(r.storeDimIndex,t)},e.prototype.getIndices=function(){return this._store.getIndices()},e.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e),null)},e.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},e.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},e.prototype.getValues=function(e,t){var n=this,r=this._store;return z(e)?r.getValues(TO(e,function(e){return n._getStoreDimIndex(e)}),t):r.getValues(e)},e.prototype.hasValue=function(e){for(var t=this._dimSummary.dataDimIndicesOnCoord,n=0,r=t.length;n<r;n++)if(isNaN(this._store.get(t[n],e)))return!1;return!0},e.prototype.indexOfName=function(e){for(var t=0,n=this._store.count();t<n;t++)if(this.getName(t)===e)return t;return-1},e.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},e.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},e.prototype.rawIndexOf=function(e,t){var n=e&&this._invertedIndicesMap[e];if(process.env.NODE_ENV!==`production`&&!n)throw Error(`Do not supported yet`);var r=n&&n[t];return r==null||isNaN(r)?OO:r},e.prototype.each=function(e,t,n){"use strict";B(e)&&(n=t,t=e,e=[]);var r=n||this,i=TO(PO(e),this._getStoreDimIndex,this);this._store.each(i,r?Mt(t,r):t)},e.prototype.filterSelf=function(e,t,n){"use strict";B(e)&&(n=t,t=e,e=[]);var r=n||this,i=TO(PO(e),this._getStoreDimIndex,this);return this._store=this._store.filter(i,r?Mt(t,r):t),this},e.prototype.selectRange=function(e){"use strict";var t=this,n={},r=qe(e),i=[];return L(r,function(r){var a=t._getStoreDimIndex(r);n[a]=e[r],i.push(a)}),this._store=this._store.selectRange(n),this},e.prototype.mapArray=function(e,t,n){"use strict";B(e)&&(n=t,t=e,e=[]),n||=this;var r=[];return this.each(e,function(){r.push(t&&t.apply(this,arguments))},n),r},e.prototype.map=function(e,t,n,r){"use strict";var i=n||r||this,a=TO(PO(e),this._getStoreDimIndex,this),o=IO(this);return o._store=this._store.map(a,i?Mt(t,i):t),o},e.prototype.modify=function(e,t,n,r){var i=this,a=n||r||this;process.env.NODE_ENV!==`production`&&L(PO(e),function(e){i.getDimensionInfo(e).isCalculationCoord||console.error(`Danger: only stack dimension can be modified`)});var o=TO(PO(e),this._getStoreDimIndex,this);this._store.modify(o,a?Mt(t,a):t)},e.prototype.downSample=function(e,t,n,r){var i=IO(this);return i._store=this._store.downSample(this._getStoreDimIndex(e),t,n,r),i},e.prototype.minmaxDownSample=function(e,t){var n=IO(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),t),n},e.prototype.lttbDownSample=function(e,t){var n=IO(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(e),t),n},e.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},e.prototype.getItemModel=function(e){var t=this.hostModel;return new B_(this.getRawDataItem(e),t,t&&t.ecModel)},e.prototype.diff=function(e){var t=this;return new oO(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(t){return MO(e,t)},function(e){return MO(t,e)})},e.prototype.getVisual=function(e){var t=this._visual;return t&&t[e]},e.prototype.setVisual=function(e,t){this._visual=this._visual||{},wO(e)?I(this._visual,e):this._visual[e]=t},e.prototype.getItemVisual=function(e,t){var n=this._itemVisuals[e];return(n&&n[t])??this.getVisual(t)},e.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},e.prototype.ensureUniqueItemVisual=function(e,t){var n=this._itemVisuals,r=n[e];r||=n[e]={};var i=r[t];return i??(i=this.getVisual(t),z(i)?i=i.slice():wO(i)&&(i=I({},i)),r[t]=i),i},e.prototype.setItemVisual=function(e,t,n){var r=this._itemVisuals[e]||{};this._itemVisuals[e]=r,wO(t)?I(r,t):r[t]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(e,t){wO(e)?I(this._layout,e):this._layout[e]=t},e.prototype.getLayout=function(e){return this._layout[e]},e.prototype.getItemLayout=function(e){return this._itemLayouts[e]},e.prototype.setItemLayout=function(e,t,n){this._itemLayouts[e]=n?I(this._itemLayouts[e]||{},t):t},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(e,t){Gf(this.hostModel&&this.hostModel.seriesIndex,this.dataType,e,t),this._graphicEls[e]=t},e.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},e.prototype.eachItemGraphicEl=function(e,t){L(this._graphicEls,function(n,r){n&&e&&e.call(t,n,r)})},e.prototype.cloneShallow=function(t){return t||=new e(this._schema?this._schema:TO(this.dimensions,this._getDimInfo,this),this.hostModel),FO(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(e,t){var n=this[e];B(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var e=n.apply(this,arguments);return t.apply(this,[e].concat(st(arguments)))})},e.internalField=function(){jO=function(e){var t=e._invertedIndicesMap;L(t,function(n,r){var i=e._dimInfos[r],a=i.ordinalMeta,o=e._store;if(a){n=t[r]=new EO(a.categories.length);for(var s=0;s<n.length;s++)n[s]=OO;for(var s=0;s<o.count();s++)n[o.get(i.storeDimIndex,s)]=s}})},NO=function(e,t,n){return Qc(e._getCategory(t,n),null)},MO=function(e,t){var n=e._idList[t];return n==null&&e._idDimIdx!=null&&(n=NO(e,e._idDimIdx,t)),n??=DO+t,n},PO=function(e){return z(e)||(e=e==null?[]:[e]),e},IO=function(t){var n=new e(t._schema?t._schema:TO(t.dimensions,t._getDimInfo,t),t.hostModel);return FO(n,t),n},FO=function(e,t){L(kO.concat(t.__wrappedMethods||[]),function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e.__wrappedMethods=t.__wrappedMethods,L(AO,function(n){e[n]=Fe(t[n])}),e._calculationInfo=I({},t._calculationInfo)},LO=function(e,t){var n=e._nameList,r=e._idList,i=e._nameDimIdx,a=e._idDimIdx,o=n[t],s=r[t];if(o==null&&i!=null&&(n[t]=o=NO(e,i,t)),s==null&&a!=null&&(r[t]=s=NO(e,a,t)),s==null&&o!=null){var c=e._nameRepeatCount,l=c[o]=(c[o]||0)+1;s=o,l>1&&(s+=`__ec__`+l),r[t]=s}}}(),e}()}));function BO(e,t){return VO(e,t).dimensions}function VO(e,t){hx(e)||(e=_x(e)),t||={};var n=t.coordDimensions||[],r=t.dimensionsDefine||e.dimensionsDefine||[],i=G(),a=[],o=HO(e,n,r,t.dimensionsCount),s=t.canOmitUnusedDimensions&&yO(o),c=r===e.dimensionsDefine,l=c?vO(e):_O(r),u=t.encodeDefine;!u&&t.encodeDefaulter&&(u=t.encodeDefaulter(e,o));for(var d=G(u),f=new ES(o),p=0;p<f.length;p++)f[p]=-1;function m(e){var t=f[e];if(t<0){var n=r[e],i=H(n)?n:{name:n},o=new mO,s=i.name;return s!=null&&l.get(s)!=null&&(o.name=o.displayName=s),i.type!=null&&(o.type=i.type),i.displayName!=null&&(o.displayName=i.displayName),f[e]=a.length,o.storeDimIndex=e,a.push(o),o}return a[t]}if(!s)for(var p=0;p<o;p++)m(p);d.each(function(e,t){var n=zc(e).slice();if(n.length===1&&!V(n[0])&&n[0]<0){d.set(t,!1);return}var r=d.set(t,[]);L(n,function(e,n){var i=V(e)?l.get(e):e;i!=null&&i<o&&(r[n]=i,g(m(i),t,n))})});var h=0;L(n,function(e){var t,n,r,i;if(V(e))t=e,i={};else{i=e,t=i.name;var a=i.ordinalMeta;i.ordinalMeta=null,i=I({},i),i.ordinalMeta=a,n=i.dimsDef,r=i.otherDims,i.name=i.coordDim=i.coordDimIndex=i.dimsDef=i.otherDims=null}var s=d.get(t);if(s!==!1){if(s=zc(s),!s.length)for(var l=0;l<(n&&n.length||1);l++){for(;h<o&&m(h).coordDim!=null;)h++;h<o&&s.push(h++)}L(s,function(e,a){var o=m(e);if(c&&i.type!=null&&(o.type=i.type),g(ze(o,i),t,a),o.name==null&&n){var s=n[a];!H(s)&&(s={name:s}),o.name=o.displayName=s.name,o.defaultTooltip=s.defaultTooltip}r&&ze(o.otherDims,r)})}});function g(e,t,n){qf.get(t)==null?(e.coordDim=t,e.coordDimIndex=n,i.set(t,!0)):e.otherDims[t]=n}var _=t.generateCoord,v=t.generateCoordCount,y=v!=null;v=_?v||1:0;var b=_||`value`;function x(e){e.name??=e.coordDim}if(s)L(a,function(e){x(e)}),a.sort(function(e,t){return e.storeDimIndex-t.storeDimIndex});else for(var S=0;S<o;S++){var C=m(S);C.coordDim??(C.coordDim=UO(b,i,y),C.coordDimIndex=0,(!_||v<=0)&&(C.isExtraCoord=!0),v--),x(C),C.type==null&&(nb(e,S)===ib.Must||C.isExtraCoord&&(C.otherDims.itemName!=null||C.otherDims.seriesName!=null))&&(C.type=`ordinal`)}return Tl(a,function(e){return e.name},function(e,t){t>0&&(e.name+=t-1)}),new SO({source:e,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function HO(e,t,n,r){var i=Math.max(e.dimensionsDetectedCount||1,t.length,n.length,r||0);return L(t,function(e){var t;H(e)&&(t=e.dimsDef)&&(i=Math.max(i,t.length))}),i}function UO(e,t,n){if(n||t.hasKey(e)){for(var r=0;t.hasKey(e+r);)r++;e+=r}return t.set(e,!0),e}var WO=n((()=>{tp(),hO(),K(),Dx(),jS(),X(),ob(),CO()}));function GO(e){var t=e.get(`coordinateSystem`),n=new qO(t),r=JO[t];if(r)return r(e,n,n.axisMap,n.categoryAxisMap),n}function KO(e){return e.get(`type`)===`category`}var qO,JO,YO=n((()=>{K(),X(),qO=function(){function e(e){this.coordSysDims=[],this.axisMap=G(),this.categoryAxisMap=G(),this.coordSysName=e}return e}(),JO={cartesian2d:function(e,t,n,r){var i=e.getReferringComponents(`xAxis`,Il).models[0],a=e.getReferringComponents(`yAxis`,Il).models[0];if(process.env.NODE_ENV!==`production`){if(!i)throw Error(`xAxis "`+at(e.get(`xAxisIndex`),e.get(`xAxisId`),0)+`" not found`);if(!a)throw Error(`yAxis "`+at(e.get(`xAxisIndex`),e.get(`yAxisId`),0)+`" not found`)}t.coordSysDims=[`x`,`y`],n.set(`x`,i),n.set(`y`,a),KO(i)&&(r.set(`x`,i),t.firstCategoryDimIndex=0),KO(a)&&(r.set(`y`,a),t.firstCategoryDimIndex??=1)},singleAxis:function(e,t,n,r){var i=e.getReferringComponents(`singleAxis`,Il).models[0];if(process.env.NODE_ENV!==`production`&&!i)throw Error(`singleAxis should be specified.`);t.coordSysDims=[`single`],n.set(`single`,i),KO(i)&&(r.set(`single`,i),t.firstCategoryDimIndex=0)},polar:function(e,t,n,r){var i=e.getReferringComponents(`polar`,Il).models[0],a=i.findAxisModel(`radiusAxis`),o=i.findAxisModel(`angleAxis`);if(process.env.NODE_ENV!==`production`){if(!o)throw Error(`angleAxis option not found`);if(!a)throw Error(`radiusAxis option not found`)}t.coordSysDims=[`radius`,`angle`],n.set(`radius`,a),n.set(`angle`,o),KO(a)&&(r.set(`radius`,a),t.firstCategoryDimIndex=0),KO(o)&&(r.set(`angle`,o),t.firstCategoryDimIndex??=1)},geo:function(e,t,n,r){t.coordSysDims=[`lng`,`lat`]},parallel:function(e,t,n,r){var i=e.ecModel,a=i.getComponent(`parallel`,e.get(`parallelIndex`)),o=t.coordSysDims=a.dimensions.slice();L(a.parallelAxisIndex,function(e,a){var s=i.getComponent(`parallelAxis`,e),c=o[a];n.set(c,s),KO(s)&&(r.set(c,s),t.firstCategoryDimIndex??=a)})},matrix:function(e,t,n,r){var i=e.getReferringComponents(`matrix`,Il).models[0];if(process.env.NODE_ENV!==`production`&&!i)throw Error(`matrix coordinate system should be specified.`);t.coordSysDims=[`x`,`y`];var a=i.getDimensionModel(`x`),o=i.getDimensionModel(`y`);n.set(`x`,a),n.set(`y`,o),r.set(`x`,a),r.set(`y`,o)}}}));function XO(e,t,n){n||={};var r=n.byIndex,i=n.stackedCoordDimension,a,o,s;ZO(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var c=!!(e&&e.get(`stack`)),l,u,d,f,p=!0;function m(e){return e.type!==`ordinal`&&e.type!==`time`}if(L(a,function(e,t){V(e)&&(a[t]=e={name:e}),m(e)||(p=!1)}),L(a,function(e,t){c&&!e.isExtraCoord&&(!r&&!l&&e.ordinalMeta&&(l=e),!u&&m(e)&&(!p||e.coordDim!==`x`&&e.coordDim!==`angle`)&&(!i||i===e.coordDim)&&(u=e))}),u&&!r&&!l&&(r=!0),u){d=`__\0ecstackresult_`+e.id,f=`__\0ecstackedover_`+e.id,l&&(l.createInvertedIndices=!0);var h=u.coordDim,g=u.type,_=0;L(a,function(e){e.coordDim===h&&_++});var v={name:d,coordDim:h,coordDimIndex:_,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},y={name:f,coordDim:f,coordDimIndex:_+1,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(v.storeDimIndex=s.ensureCalculationDimension(f,g),y.storeDimIndex=s.ensureCalculationDimension(d,g)),o.appendCalculationDimension(v),o.appendCalculationDimension(y)):(a.push(v),a.push(y))}return{stackedDimension:u&&u.name,stackedByDimension:l&&l.name,isStackedByIndex:r,stackedOverDimension:f,stackResultDimension:d}}function ZO(e){return!gO(e.schema)}function QO(e,t){return!!t&&t===e.getCalculationInfo(`stackedDimension`)}function $O(e,t){return QO(e,t)?e.getCalculationInfo(`stackResultDimension`):t}var ek=n((()=>{K(),CO()}));function tk(e,t){var n=e.get(`coordinateSystem`),r=yy.get(n),i;return t&&t.coordSysDims&&(i=R(t.coordSysDims,function(e){var n={name:e},r=t.axisMap.get(e);return r&&(n.type=uO(r.get(`type`))),n})),i||=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||[`x`,`y`],i}function nk(e,t,n){var r,i;return n&&L(e,function(e,a){var o=e.coordDim,s=n.categoryAxisMap.get(o);s&&(r??=a,e.ordinalMeta=s.getOrdinalMeta(),t&&(e.createInvertedIndices=!0)),e.otherDims.itemName!=null&&(i=!0)}),!i&&r!=null&&(e[r].otherDims.itemName=0),r}function rk(e,t,n){n||={};var r=t.getSourceManager(),i,a=!1;e?(a=!0,i=_x(e)):(i=r.getSource(),a=i.sourceFormat===Jf);var o=GO(t),s=tk(t,o),c=n.useEncodeDefaulter,l=B(c)?c:c?Ye(Qy,s,t):null,u={coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:l,canOmitUnusedDimensions:!a},d=VO(i,u),f=nk(d.dimensions,n.createInvertedIndices,o),p=a?null:r.getSharedDataStore(d),m=XO(t,{schema:d,store:p}),h=new RO(d,t);h.setCalculationInfo(m);var g=f!=null&&ik(i)?function(e,t,n,r){return r===f?n:this.defaultDimValueGetter(e,t,n,r)}:null;return h.hasItemOption=!1,h.initData(a?i:p,null,g),h}function ik(e){if(e.sourceFormat===`original`)return!z(Vc(ak(e.data||[])))}function ak(e){for(var t=0;t<e.length&&e[t]==null;)t++;return e[t]}var ok=n((()=>{K(),zO(),WO(),pO(),X(),xy(),YO(),Dx(),ek(),ob(),tp()})),sk,ck=n((()=>{Ql(),sk=function(){function e(){}return e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(e){this._isBlank=e},e}(),ql(sk)}));function lk(e){return H(e)&&e.value!=null?e.value:e+``}var uk,dk,fk=n((()=>{K(),uk=0,dk=function(){function e(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++uk,this._onCollect=e.onCollect}return e.createByAxisModel=function(t){var n=t.option,r=n.data,i=r&&R(r,lk);return new e({categories:i,needCollect:!i,deduplication:n.dedplication!==!1})},e.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},e.prototype.parseAndCollect=function(e){var t,n=this._needCollect;if(!V(e)&&!n)return e;if(n&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,this._onCollect&&this._onCollect(e,t),t;var r=this._getOrCreateMap();return t=r.get(e),t??(n?(t=this.categories.length,this.categories[t]=e,r.set(e,t),this._onCollect&&this._onCollect(e,t)):t=NaN),t},e.prototype._getOrCreateMap=function(){return this._map||=G(this.categories)},e}()}));function pk(e,t,n){var r;e||={};var i=lv();if(i){var a=i.createBreakScaleMapper(t,n);a.hasBreaks()&&(L(Sk,function(t){a[t]&&(e[t]=Mt(a[t],a))}),r=a)}return r??bk(e,n),{brk:r,mapper:e}}function mk(e,t){L(Sk,function(n){e[n]=t[n]})}function hk(e,t){e.freeze=_t,process.env.NODE_ENV!==`production`&&(e.freeze=function(){t.freeze()})}function gk(e){return e.getExtentUnsafe(0,2)}function _k(e,t){return e.getExtentUnsafe(1,t)||e.getExtentUnsafe(0,t)}function vk(e){var t=_k(e,3);return t[1]-t[0]}function yk(e){var t=e.getExtentUnsafe(0,3);return t[1]-t[0]}function bk(e,t){var n=e||{},r=[];return n._extents=r,r[0]=t?t.slice():hl(),I(n,Ck),n}function xk(e,t,n,r){xl(n,r)?(e[t][0]=n,e[t][1]=r):process.env.NODE_ENV!==`production`&&n!=null&&r!=null&&n<=r&&kc(`Invalid setExtent call - start: `+n+`, end: `+r)}var Sk,Ck,wk=n((()=>{K(),X(),mv(),Lc(),Sk=qe({needTransform:1,normalize:1,scale:1,transformIn:1,transformOut:1,contain:1,getExtent:1,getExtentUnsafe:1,setExtent:1,setExtent2:1,getFilter:1,sanitize:1,getDefaultStartValue:1,freeze:1}),Ck={needTransform:function(){return!1},normalize:function(e){var t=this._extents[1]||this._extents[0];return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])},scale:function(e){var t=this._extents[1]||this._extents[0];return e*(t[1]-t[0])+t[0]},transformIn:function(e){return e},transformOut:function(e){return e},contain:function(e){var t=_k(this,null);return e>=t[0]&&e<=t[1]},getExtent:function(){return this._extents[0].slice()},getExtentUnsafe:function(e){return this._extents[e]},setExtent:function(e,t){process.env.NODE_ENV!==`production`&&W(!this._frozen),xk(this._extents,0,e,t)},setExtent2:function(e,t,n){process.env.NODE_ENV!==`production`&&W(!this._frozen);var r=this._extents;r[e]||(r[e]=r[0].slice()),xk(r,e,t,n)},freeze:function(){process.env.NODE_ENV!==`production`&&(this._frozen=!0)}}}));function Tk(e){return Ek(e)||Ok(e)}function Ek(e){return e.type===`interval`}function Dk(e){return e.type===`time`}function Ok(e){return e.type===`log`}function kk(e){return e.type===`ordinal`}function Ak(e){var t=ec(e),n=vc(10,t),r=hc(e/n);return r?r===2?r=3:r===3?r=5:r*=2:r=1,Bs(r*n,-t)}function jk(e){return Us(e)+2}function Mk(e,t){return yc(e)/yc(t)}function Nk(e,t,n){var r=n&&n.lookup;if(r){for(var i=0;i<r.from.length;i++)if(e===r.from[i])return r.to[i]}return vc(t,e)}function Pk(e,t,n){var r=e.slice();if(r[0]===r[1]){var i=n&&n.ctnShp;if(r[0]!==0){var a=mc(r[0]);t[1]||(r[1]+=a/2),r[0]-=a/2}else i&&(r[0]=-1),r[1]=1}return(!bl(r[0])||!bl(r[1]))&&(r[0]=0,r[1]=1),r[1]<r[0]&&r.reverse(),r}function Fk(e,t){return[e[0]!==t[0],e[1]!==t[1]]}function Ik(e,t){return e||=t,hc(pc(e,1))}function Lk(e,t,n){var r=gk(e),i=r[0],a=e.count(),o=Math.max((t||0)+1,1);i!==0&&o>1&&a/o>2&&(i=Math.round(Math.ceil(i/o)*o)),i!==r[0]&&c(r[0],!0,!0);for(var s=i;s<=r[1];s+=o)c(s,!1,s===r[0]||s===r[1]);s-o!==r[1]&&c(r[1],!0,!0);function c(e,t,r){n({value:e,offInterval:t},r)}}var Rk=n((()=>{Y(),X(),wk()})),zk,Bk=n((()=>{P(),ck(),fk(),K(),Y(),wk(),Rk(),zk=function(e){N(t,e);function t(n){var r=e.call(this)||this;r.type=`ordinal`,r.parse=t.parse,mk(r,t.decoratedMethods);var i=n.ordinalMeta;i||=new dk({}),z(i)&&(i=new dk({categories:R(i,function(e){return H(e)?e.value:e})})),r._ordinalMeta=i;var a=pk(null,null,n.extent||[0,i.categories.length-1]);return r._mapper=a.mapper,hk(r,a.mapper),r}return t.parse=function(e){return e==null?e=NaN:V(e)?(e=this._ordinalMeta.getOrdinal(e),e??=NaN):e=hc(e),e},t.prototype.getTicks=function(){var e=[];return Lk(this,0,function(t){e.push(t)}),e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(e==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var t=e.ordinalNumbers,n=this._ordinalNumbersByTick=[],r=this._ticksByOrdinalNumber=[],i=0,a=this._ordinalMeta.categories.length,o=fc(a,t.length);i<o;++i){var s=n[i]=t[i];r[s]=i}for(var c=0;i<a;++i){for(;r[c]!=null;)c++;n[i]=c,r[c]=i}},t.prototype._getTickNumber=function(e){var t=this._ticksByOrdinalNumber;return t&&e>=0&&e<t.length?t[e]:e},t.prototype.getRawOrdinalNumber=function(e){var t=this._ordinalNumbersByTick;return t&&e>=0&&e<t.length?t[e]:e},t.prototype.getLabel=function(e){if(!this.isBlank()){var t=this.getRawOrdinalNumber(e.value),n=this._ordinalMeta.categories[t];return n==null?``:n+``}},t.prototype.count=function(){var e=gk(this._mapper);return e[1]-e[0]+1},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.type=`ordinal`,t.decoratedMethods={needTransform:function(){return this._mapper.needTransform()},contain:function(e){return this._mapper.contain(this._getTickNumber(e))&&e>=0&&e<this._ordinalMeta.categories.length},normalize:function(e){return this._mapper.normalize(this._getTickNumber(e))},scale:function(e){return this.getRawOrdinalNumber(hc(this._mapper.scale(e)))},transformIn:function(e,t){return this._mapper.transformIn(this._getTickNumber(e),t)},transformOut:function(e,t){return this.getRawOrdinalNumber(this._mapper.transformOut(e,t))},getExtent:function(){return this._mapper.getExtent()},getExtentUnsafe:function(e,t){return this._mapper.getExtentUnsafe(e,t)},setExtent:function(e,t){return this._mapper.setExtent(e,t)},setExtent2:function(e,t,n){return this._mapper.setExtent2(e,t,n)}},t}(sk),sk.registerClass(zk)}));function Vk(e,t,n,r){for(var i=e.getTicks({expandToNicedExtent:!0}),a=[],o=e.getExtent(),s=1;s<i.length;s++){var c=i[s],l=i[s-1];if(!(l.break||c.break)){for(var u=0,d=[],f=(c.value-l.value)/t,p=jk(f);u<t-1;){var m=Bs(l.value+(u+1)*f,p);m>o[0]&&m<o[1]&&d.push(m),u++}var h=lv();h&&h.pruneTicksByBreak(`auto`,d,n,function(e){return e},r,o),a.push(d)}}return a}var Hk=n((()=>{Y(),mv(),Rk()})),Uk,Wk=n((()=>{P(),Y(),dy(),ck(),Rk(),mv(),K(),Hk(),wk(),Lc(),Uk=function(e){N(t,e);function t(n){var r=e.call(this)||this;return r.type=`interval`,r.parse=t.parse,n||={},r.brk=pk(r,uv(r,n),null).brk,r._cfg={interval:0,intervalPrecision:2,intervalCount:void 0,niceExtent:void 0},r}return t.parse=function(e){return e==null||e===``?NaN:Number(e)},t.prototype.getConfig=function(){return Fe(this._cfg)},t.prototype.setConfig=function(e){var t=gk(this);process.env.NODE_ENV!==`production`&&(W(e.interval!=null),e.intervalCount!=null&&W(e.intervalCount>=-1&&e.intervalPrecision!=null&&!fv(this)),e.niceExtent!=null&&(W(isFinite(e.niceExtent[0])&&isFinite(e.niceExtent[1])),W(t[0]<=e.niceExtent[0]&&e.niceExtent[1]<=t[1]),W(Bs(e.niceExtent[0]-e.niceExtent[1],Us(e.interval))<=e.interval))),this._cfg=e=Fe(e),e.niceExtent??=t.slice(),e.intervalPrecision??=jk(e.interval)},t.prototype.getTicks=function(e){e||={};var t=this._cfg,n=t.interval,r=gk(this),i=t.niceExtent,a=t.intervalPrecision,o=lv(),s=this.brk,c=o&&s,l=[];if(!n)return l;if(e.breakTicks===`only_break`&&c)return o.addBreaksToTicks(l,s.breaks,r),l;process.env.NODE_ENV!==`production`&&W(i!=null);var u=3e3;r[0]<i[0]&&l.push({value:e.expandToNicedExtent?Bs(i[0]-n,a):r[0]});for(var d=function(e,t){return hc((t-e)/n)},f=t.intervalCount,p=i[0],m=0;;m++){if(f==null){if(p>i[1]||!isFinite(p)||!isFinite(i[1]))break}else{if(m>f)break;p=fc(p,i[1]),m===f&&(p=i[1])}if(l.push({value:p}),p=Bs(p+n,a),s){var h=s.calcNiceTickMultiple(p,d);h>=0&&(p=Bs(p+h*n,a))}if(l.length>0&&p===l[l.length-1].value)break;if(l.length>u)return process.env.NODE_ENV!==`production`&&Oc(`Exceed safe limit in IntervalScale["getTicks"].`),[]}var g=l.length?l[l.length-1].value:i[1];return r[1]>g&&l.push({value:e.expandToNicedExtent?Bs(g+n,a):r[1]}),c&&o.pruneTicksByBreak(e.pruneByBreak,l,s.breaks,function(e){return e.value},t.interval,r),c&&e.breakTicks!==`none`&&o.addBreaksToTicks(l,s.breaks,r),l},t.prototype.getMinorTicks=function(e){return Vk(this,e,dv(this),this._cfg.interval)},t.prototype.getLabel=function(e,t){if(e==null)return``;var n=t&&t.precision;return n==null?n=Us(e.value)||0:n===`auto`&&(n=this._cfg.intervalPrecision),ey(Bs(e.value,n,!0))},t.type=`interval`,t}(sk),sk.registerClass(Uk)}));function Gk(e,t,n,r){return wv(new Date(t),e,r).getTime()===wv(new Date(n),e,r).getTime()}function Kk(e,t){return e/=Hv,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function qk(e){var t=30*Hv;return e/=t,e>6?6:e>3?3:e>2?2:1}function Jk(e){return e/=Vv,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function Yk(e,t){return e/=t?Bv:zv,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function Xk(e){return pc(tc(e,!0),1)}function Zk(e,t,n){var r=Math.max(0,Be(Yv,t)-1);return wv(new Date(e),Yv[r],n).getTime()}function Qk(e,t){var n=new Date(0);n[e](1);var r=n.getTime();n[e](1+t);var i=n.getTime()-r;return function(e,t){return Math.max(0,Math.round((t-e)/i))}}function $k(e,t,n,r,i,a){var o=3e3,s=Xv,c=0;function l(e,t,n,i,s,l,u){for(var d=Qk(s,e),f=t,p=new Date(f);f<n&&f<=r[1];){if(u.push({value:f}),c++>o){process.env.NODE_ENV!==`production`&&Oc(`Exceed safe limit in TimeScale["getTicks"].`);break}if(p[s](p[i]()+e),f=p.getTime(),a){var m=a.calcNiceTickMultiple(f,d);m>0&&(p[s](p[i]()+m*e),f=p.getTime())}}u.push({value:f,notAdd:f>r[1]})}function u(e,i,a){var o=[],s=!i.length;if(!Gk(vv(e),r[0],r[1],n)){s&&(i=[{value:Zk(r[0],e,n)},{value:r[1]}]);for(var c=0;c<i.length-1;c++){var u=i[c].value,d=i[c+1].value;if(u!==d){var f=void 0,p=void 0,m=void 0,h=!1;switch(e){case`year`:f=Math.max(1,Math.round(t/Hv/365)),p=Tv(n),m=Mv(n);break;case`half-year`:case`quarter`:case`month`:f=qk(t),p=Ev(n),m=Nv(n);break;case`week`:case`half-week`:case`day`:f=Kk(t,31),p=Dv(n),m=Pv(n),h=!0;break;case`half-day`:case`quarter-day`:case`hour`:f=Jk(t),p=Ov(n),m=Fv(n);break;case`minute`:f=Yk(t,!0),p=kv(n),m=Iv(n);break;case`second`:f=Yk(t,!1),p=Av(n),m=Lv(n);break;case`millisecond`:f=Xk(t),p=jv(n),m=Rv(n);break}d>=r[0]&&u<=r[1]&&l(f,u,d,p,m,h,o),e===`year`&&a.length>1&&c===0&&a.unshift({value:a[0].value-f})}}for(var c=0;c<o.length;c++)a.push(o[c])}}for(var d=[],f=[],p=0,m=0,h=0;h<s.length;++h){var g=vv(s[h]);if(yv(s[h])&&(u(s[h],d[d.length-1]||[],f),g!==(s[h+1]?vv(s[h+1]):null))){if(f.length){m=p,f.sort(function(e,t){return e.value-t.value});for(var _=[],v=0;v<f.length;++v){var y=f[v].value;(v===0||f[v-1].value!==y)&&(_.push(f[v]),y>=r[0]&&y<=r[1]&&p++)}var b=i/t;if(p>b*1.5&&m>b/1.5||(d.push(_),p>b||e===s[h]))break}f=[]}}for(var x=Ge(R(d,function(e){return Ge(e,function(e){return e.value>=r[0]&&e.value<=r[1]&&!e.notAdd})}),function(e){return e.length>0}),S=x.length-1,C=[],h=0;h<x.length;++h)for(var w=x[h],T=0;T<w.length;++T){var E=Cv(w[T].value,n);C.push({value:w[T].value,time:{level:S-h,upperTimeUnit:E,lowerTimeUnit:E}})}Tl(C,El,null),C.sort(function(e,t){return e.value-t.value});var D=C[0],O=C[C.length-1],k=Cv(r[0],n),A=Cv(r[1],n);return(!D||D.value>r[0])&&C.unshift({value:r[0],time:{level:0,upperTimeUnit:k,lowerTimeUnit:k},notNice:!0}),(!O||O.value<r[1])&&C.push({value:r[1],time:{level:0,upperTimeUnit:A,lowerTimeUnit:A},notNice:!0}),C}var eA,tA,nA,rA,iA=n((()=>{P(),Y(),Zv(),Rk(),ck(),Lc(),K(),mv(),Hk(),wk(),X(),eA=function(e,t,n,r){for(;n<r;){var i=n+r>>>1;e[i][1]<t?n=i+1:r=i}return n},tA=function(e){N(t,e);function t(n){var r=e.call(this)||this;return r.type=`time`,r.parse=t.parse,r._locale=n.locale,r._useUTC=n.useUTC,r._interval=0,r.brk=pk(r,uv(r,n),null).brk,r}return t.prototype.getLabel=function(e){return xv(e.value,Jv[bv(vv(this._minLevelUnit))]||Jv.second,this._useUTC,this._locale)},t.prototype.getFormattedLabel=function(e,t,n){return Sv(e,t,n,this._locale,this._useUTC)},t.prototype.getTicks=function(e){e||={};var t=this._interval,n=gk(this),r=lv(),i=this.brk,a=r&&i,o=[];if(!t)return o;var s=this._useUTC;if(a&&e.breakTicks===`only_break`)return lv().addBreaksToTicks(o,i.breaks,n),o;o=$k(this._minLevelUnit,this._approxInterval,s,n,yk(this),i);var c=Yv.length-1,l=0;return L(o,function(e){e.time&&(c=Math.min(c,Be(Yv,e.time.upperTimeUnit)),l=Math.max(l,e.time.level))}),a&&lv().pruneTicksByBreak(e.pruneByBreak,o,i.breaks,function(e){return e.value},this._approxInterval,n),a&&e.breakTicks!==`none`&&lv().addBreaksToTicks(o,i.breaks,n,function(e){for(var t=Math.max(Be(Yv,Cv(e.vmin,s)),Be(Yv,Cv(e.vmax,s))),n=0,r=0;r<Yv.length;r++)if(!Gk(Yv[r],e.vmin,e.vmax,s)){n=r;break}var i=Math.min(n,c);return{level:l,lowerTimeUnit:Yv[Math.max(i,t)],upperTimeUnit:Yv[i]}}),o},t.prototype.getMinorTicks=function(e){return Vk(this,e,dv(this),this._interval)},t.prototype.setTimeInterval=function(e){this._interval=e.interval,this._approxInterval=e.approxInterval,this._minLevelUnit=e.minLevelUnit},t.parse=function(e){return Ze(e)?Math.round(e):+Qs(e)},t.type=`time`,t}(sk),nA=[[`second`,zv],[`minute`,Bv],[`hour`,Vv],[`quarter-day`,Vv*6],[`half-day`,Vv*12],[`day`,Hv*1.2],[`half-week`,Hv*3.5],[`week`,Hv*7],[`month`,Hv*31],[`quarter`,Hv*95],[`half-year`,Uv/2],[`year`,Uv]],rA=function(e,t){var n=e.getExtent();if(n[0]===n[1]&&(n[0]-=Hv,n[1]+=Hv),n[1]===-1/0&&n[0]===1/0){var r=new Date;n[1]=+new Date(r.getFullYear(),r.getMonth(),r.getDate()),n[0]=n[1]-Hv}e.setExtent(n[0],n[1]);var i=Ik(t.splitNumber,10),a=yk(e)/i,o=t.minInterval,s=t.maxInterval;o!=null&&a<o&&(a=o),s!=null&&a>s&&(a=s);var c=nA.length,l=Math.min(eA(nA,a,0,c),c-1),u=nA[l][1],d=nA[Math.max(l-1,0)][0];e.setTimeInterval({approxInterval:a,interval:u,minLevelUnit:d})},sk.registerClass(tA)})),aA,oA,sA,cA,lA,uA,dA,fA=n((()=>{P(),ck(),Wk(),Rk(),mv(),Hk(),wk(),K(),X(),Y(),aA=0,oA=1,sA=2,cA=function(e){N(t,e);function t(n){var r=e.call(this)||this;r.type=`log`,r.parse=Uk.parse,r.base=n.logBase||10;var i=[],a=[],o=r._lookup={from:i,to:a};i[aA]=i[oA]=a[aA]=a[oA]=NaN,mk(r,t.mapperMethods);var s=lv(),c=n.breakOption,l={lookup:o};return s&&s.parseAxisBreakOptionInwardTransform(c,r,{noNegative:!0},sA,l),r.powStub=new Uk({breakParsed:l.original}),r.intervalStub=new Uk({breakParsed:l.transformed}),hk(r,r.intervalStub),r}return t.prototype.getTicks=function(e){var t=this.base,n=this.powStub,r=lv(),i=this.intervalStub,a={lookup:{from:i.getExtent(),to:n.getExtent()}};return R(i.getTicks(e||{}),function(e){var i=e.value,o=Nk(i,t,a),s;if(r){var c=r.getTicksBreakOutwardTransform(this,e,dv(n),this._lookup);c&&(s=c.vBreak,o=c.tickVal)}return{value:o,break:s}},this)},t.prototype.getMinorTicks=function(e){return Vk(this,e,dv(this.powStub),this.intervalStub.getConfig().interval)},t.prototype.getLabel=function(e,t){return this.intervalStub.getLabel(e,t)},t.type=`log`,t.mapperMethods={needTransform:function(){return!0},normalize:function(e){return this.intervalStub.normalize(Mk(e,this.base))},scale:function(e){return Nk(this.intervalStub.scale(e),this.base,null)},transformIn:function(e,t){return e=Mk(e,this.base),t&&t.depth===2?e:this.intervalStub.transformIn(e,t)},transformOut:function(e,t){var n=t?t.depth:null;return lA.depth=n,uA.lookup=this._lookup,Nk(n===2?e:this.intervalStub.transformOut(e,lA),this.base,uA)},contain:function(e){return this.powStub.contain(e)},setExtent:function(e,t){this.setExtent2(0,e,t)},setExtent2:function(e,t,n){if(!(!xl(t,n)||t<=0||n<=0)){var r=dA,i=dA;if(e===0){var a=this._lookup;r=a.to,i=a.from}this.powStub.setExtent2(e,r[aA]=t,r[oA]=n);var o=this.base;this.intervalStub.setExtent2(e,i[aA]=Mk(t,o),i[oA]=Mk(n,o))}},getFilter:function(){return{g:0}},sanitize:function(e,t){return xl(t[0],t[1])&&lc(e)&&e<=0&&(e=t[0]),e},getDefaultStartValue:function(){return 1},getExtent:function(){return this.powStub.getExtent()},getExtentUnsafe:function(e,t){return t===null?this.powStub.getExtentUnsafe(e,null):this.intervalStub.getExtentUnsafe(e,t)}},t}(sk),sk.registerClass(cA),lA={},uA={},dA=[]})),pA,mA=n((()=>{pA={value:1,category:1,time:1,log:1}}));function hA(e){var t=e.get(`type`);return(t==null||!gt(pA,t)&&!sk.getClass(t))&&(t=`value`),t}function gA(e,t,n){var r=lv(),i;switch(r&&(i=DA(e,t,n)),t){case`category`:return new zk({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:hl()});case`time`:return new tA({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get(`useUTC`),breakOption:i});case`log`:return new cA({logBase:e.get(`logBase`),breakOption:i});case`value`:return new Uk({breakOption:i});default:return new((sk.getClass(t))||Uk)({})}}function _A(e,t,n){var r=n?_k(e,null):e.getExtentUnsafe(0,null),i=r[0],a=r[1];return xl(i,a)?i===t||a===t?2:i<t&&a>t?1:3:3}function vA(e){MA(e).noOnMyZero=!0}function yA(e){return MA(e).noOnMyZero}function bA(e){var t=e.getLabelModel().get(`formatter`);if(e.type===`time`){var n=hv(t);return function(t,r){return e.scale.getFormattedLabel(t,r,n)}}else if(V(t))return function(n){var r=e.scale.getLabel(n);return t.replace(`{value}`,r??``)};else if(B(t)){if(e.type===`category`)return function(n,r){return t(xA(e,n),n.value-e.scale.getExtent()[0],null)};var r=lv();return function(n,i){var a=null;return r&&(a=r.makeAxisLabelFormatterParamBreak(a,n.break)),t(xA(e,n),i,a)}}else return function(t){return e.scale.getLabel(t)}}function xA(e,t){var n=e.scale;return kk(n)?n.getLabel(t):t.value}function SA(e){return e.get(`interval`)??`auto`}function CA(e){return e.type===`category`&&SA(e.getLabelModel())===0}function wA(e,t){var n={};return L(e.mapDimensionsAll(t),function(t){n[$O(e,t)]=!0}),qe(n)}function TA(e){return e===`middle`||e===`center`}function EA(e){return e.getShallow(`show`)}function DA(e,t,n){var r=e.get(`breaks`,!0);if(r!=null){if(!lv()){process.env.NODE_ENV!==`production`&&kc('Must `import {AxisBreak} from "echarts/features.js"; use(AxisBreak);` first if using breaks option.');return}if(!n||!OA(t)){process.env.NODE_ENV!==`production`&&kc(`Axis`+(e instanceof By?` `+e.type+`[`+e.componentIndex+`]`:``)+` does not support break.`);return}return r}}function OA(e){return e!==`category`}function kA(e,t,n,r,i,a){var o=Ok(e),s=o?e.intervalStub:e;if(s.setExtent(r[0],r[1]),o){var c=e.powStub,l={depth:2},u=e.transformOut(r[0],l),d=e.transformOut(r[1],l),f=Fk(n,r);t[0]&&!f[0]&&(u=i[0]),t[1]&&!f[1]&&(d=i[1]),c.setExtent(u,d)}s.setConfig(a)}function AA(e,t){return kk(e)?e.getRawOrdinalNumber(t.value):t.value}function jA(e,t){return kk(e)&&!!t.get(`boundaryGap`)}var MA,NA=n((()=>{K(),Bk(),Wk(),ck(),iA(),fA(),mA(),ek(),Zv(),mv(),Lc(),Rk(),X(),wk(),Vy(),MA=ol()})),PA,FA=n((()=>{PA=function(){function e(){}return e.prototype.needIncludeZero=function(){return!this.option.scale},e.prototype.getCoordSysModel=function(){},e}()}));function IA(e,t){var n=e.model,r=QA(Jw(n.ecModel)).keyed,i=r&&r.get(t);return i&&i.get(n.uid)}function LA(e,t){return process.env.NODE_ENV!==`production`&&(W(t!=null),ej(e)),BA(IA(e,t))}function RA(e,t){process.env.NODE_ENV!==`production`&&ej(e);var n=[];return zA(e.model.ecModel,function(e){for(var r=0;r<t.length;r++)t[r]&&e.serByIdx[t[r].seriesIndex]&&n.push(BA(e))}),n}function zA(e,t){var n=QA(Jw(e)).keyed;n&&n.each(function(e,n){e.each(function(e,r){t(e,n,r)})})}function BA(e){return{liPosMinGap:e?e.liPosMinGap:void 0}}function VA(e,t){process.env.NODE_ENV!==`production`&&ej(e);var n=e.model.ecModel,r=QA(Jw(n)).axSer;r&&UA(n,r.get(e.model.uid),t)}function HA(e,t,n){process.env.NODE_ENV!==`production`&&(W(t!=null),ej(e));var r=IA(e,t);r&&UA(e.model.ecModel,r.sers,n)}function UA(e,t,n){if(t)for(var r=0;r<t.length;r++){var i=t[r];e.isSeriesFiltered(i)||n(i)}}function WA(e,t,n){process.env.NODE_ENV!==`production`&&W(t!=null);var r=QA(Jw(e)).keyed,i=r&&r.get(t);i&&i.each(function(e){process.env.NODE_ENV!==`production`&&W(e.sers.length>0),n(e.axis)})}function GA(e,t){process.env.NODE_ENV!==`production`&&ej(e);var n=e.model,r=QA(Jw(n.ecModel)).keys;r&&L(r.get(n.uid),function(n){if(process.env.NODE_ENV!==`production`){var r=IA(e,n);W(r&&r.sers.length>0)}t(n)})}function KA(e){var t=$A(qw(e)),n=t.keyed||=G();zA(e,function(t,r,i){var a=n.get(r)||n.set(r,G()),o=a.get(i)||a.set(i,{});t.metrics.liPosMinGap&&tj.liPosMinGap(e,t,o)})}function qA(e,t){tj[e]=t}function JA(e,t,n){if(e){var r=t.ecModel,i=QA(Jw(r)),a=e.model.uid;if(process.env.NODE_ENV!==`production`){ej(e);var o=i.axSerPairCheck||=G(),s=``+a+`|&`+t.uid;W(!o.get(s)),o.set(s,1)}var c=i.axSer||=G(),l=c.get(a)||c.set(a,[]);if(process.env.NODE_ENV!==`production`){var u=l[l.length-1];u&&W(u.seriesIndex<t.seriesIndex)}l.push(t);var d=t.subType,f=t.getBaseAxis()===e,p=rj.get(YA(d,f,n))||rj.get(YA(d,f,null));if(p){var m=i.keyed||=G(),h=i.keys||=G(),g=p.key,_=m.get(g)||m.set(g,G()),v=_.get(a);v||(v=_.set(a,{axis:e,sers:[],serByIdx:[]}),v.metrics=p.getMetrics(e),(h.get(a)||h.set(a,[])).push(g)),v.sers.push(t),v.serByIdx[t.seriesIndex]=t}}}function YA(e,t,n){return e+`|&`+U(t,!0)+`|&`+(n||``)}function XA(e,t){var n=YA(t.seriesType,t.baseAxis,t.coordSysType);process.env.NODE_ENV!==`production`&&(W(t.seriesType&&t.key&&!nj.get(t.key)&&!rj.get(n)),nj.set(t.key,1)),rj.set(n,t),ZA(e,function(){e.registerProcessor(e.PRIORITY.PROCESSOR.AXIS_STATISTICS,{overallReset:KA})})}var ZA,QA,$A,ej,tj,nj,rj,ij=n((()=>{K(),X(),Xw(),ZA=wl(),QA=ol(),$A=ol(),process.env.NODE_ENV!==`production`&&(ej=function(e){W(e&&e.model&&e.model.uid&&e.model.ecModel)}),tj={},process.env.NODE_ENV!==`production`&&(nj=G()),rj=G()}));function aj(e,t){var n=e.scale,r=e.dataMM;n.sanitize&&(t[0]=n.sanitize(t[0],r),t[1]=n.sanitize(t[1],r),Cl(t))}function oj(e,t){return t==null?null:it(t)?NaN:e.parse(t)}function sj(e,t){var n;if(kk(e))n=[0,0];else{var r=t.get(`boundaryGap`);typeof r==`boolean`&&(process.env.NODE_ENV!==`production`&&r===!0&&console.warn(`Boolean type for boundaryGap is only allowed for ordinal axis. Please use string in percentage instead, e.g., "20%". Currently, boundaryGap is set to 0.`),r=null),n=z(r)?r:[r,r]}return[cj(n[0]),cj(n[1])]}function cj(e){return qo(typeof e==`boolean`?0:e,1)||0}function lj(e){var t=yj(e.scale);return t.extent||=hl(),t}function uj(e,t){lj(e).dimIdxInCoord=t.get(e.dim)}function dj(e,t){var n=e.scale,r=e.model,i=e.dim;if(process.env.NODE_ENV!==`production`&&W(n&&r&&i),n.rawExtentInfo){process.env.NODE_ENV!==`production`&&W(n.rawExtentInfo.from!==t||t===2);return}fj(n,e,i,r,t)}function fj(e,t,n,r,i){var a=lj(t),o=a.extent,s=!1;VA(t,function(r){if(r.boxCoordinateSystem){var i=my(r).coord,c=a.dimIdxInCoord;if(!(c>=0))process.env.NODE_ENV!==`production`&&kc(`Property "series.coord" is not supported on axis `+r.boxCoordinateSystem.type+`.`);else if(z(i)){var l=i[c];l!=null&&!z(l)&&gl(o,e.parse(l))}}else if(r.coordinateSystem){var u=r.getData();if(u){var d=e.getFilter?e.getFilter():null;L(wA(u,n),function(e){yl(o,u.getApproximateExtent(e,d))})}r.__requireStartValue&&r.__requireStartValue(t)&&(s=!0)}});var c=_j(e,t,r);mj(e,new xj(e,r,o,s,c),i),a.extent=null}function pj(e,t){var n=e.scale;process.env.NODE_ENV!==`production`&&W(!n.rawExtentInfo),mj(n,new xj(n,e.model,t,!1,!1),bj)}function mj(e,t,n){e.rawExtentInfo=t,t.from=n}function hj(e,t){process.env.NODE_ENV!==`production`&&W(!Sj.get(e)),Sj.set(e,t)}function gj(e,t,n,r,i){process.env.NODE_ENV!==`production`&&W(!i||!e.rawExtentInfo),e.rawExtentInfo||pj({scale:e,model:t},i||hl());var a=e.rawExtentInfo.makeFinal(),o=a.effMM;return e.setExtent(o[0],o[1]),e.setBlank(a.isBlank),r&&a.tggAxInv&&n&&!n.get(`legacyMinMaxDontInverseAxis`)&&(r.inverse=!r.inverse),a}function _j(e,t,n){var r=jA(e,n),i=n.get(`containShape`,!0);if(i==null&&!r&&(i=!0),!i)return!1;var a=!1;return GA(t,function(e){a=!!Sj.get(e)||a}),a}function vj(e,t,n,r){if(n.ctnShp){var i;if(GA(e,function(t){var n=Sj.get(t);if(n){var a=n(e,r);a&&(i||=[0,0],_l(i,a[0]),vl(i,a[1]),vA(e))}}),i){var a=t.getExtent();if(kk(t))e.onBand||t.setExtent2(1,fc(a[0],a[0]+i[0]),pc(a[1],a[1]+i[1]));else{var o=a.slice();n.zoomFixMM[0]||(o[0]=fc(o[0],t.transformOut(t.transformIn(o[0],null)+i[0],null))),n.zoomFixMM[1]||(o[1]=pc(o[1],t.transformOut(t.transformIn(o[1],null)+i[1],null))),(o[0]<a[0]||o[1]>a[1])&&t.setExtent2(1,o[0],o[1])}}}}var yj,bj,xj,Sj,Cj=n((()=>{K(),Qo(),Rk(),X(),NA(),xy(),Lc(),Y(),wk(),ij(),yj=ol(),bj=3,xj=function(){function e(e,t,n,r,i){var a=kk(e),o=a?t.getCategories().length:null,s;if(a){var c=t.getCategories(!0);s=c&&!c.length}var l=n.slice();(Ek(e)||Ok(e)||Dk(e))&&(_l(l,oj(e,t.get(`dataMin`,!0))),vl(l,oj(e,t.get(`dataMax`,!0)))),Sl(l)||(l[0]=l[1]=NaN);var u=[],d=[!1,!1],f=t.get(`min`,!0);f===`dataMin`?(u[0]=l[0],d[0]=!0):(u[0]=oj(e,B(f)?f({min:l[0],max:l[1]}):f),d[0]=u[0]!=null);var p=t.get(`max`,!0);p===`dataMax`?(u[1]=l[1],d[1]=!0):(u[1]=oj(e,B(p)?p({min:l[0],max:l[1]}):p),d[1]=u[1]!=null);var m=sj(e,t),h=a?null:l[1]-l[0]||Math.abs(l[0]);u[0]??=a?s?l[0]:o?0:NaN:l[0]-m[0]*h,u[1]??=a?s?l[1]:o?o-1:NaN:l[1]+m[1]*h,!bl(u[0])&&(u[0]=NaN),!bl(u[1])&&(u[1]=NaN);var g=s||it(u[0])||it(u[1])||a&&!o,_=Ek(e),v=_&&t.needIncludeZero&&t.needIncludeZero();v&&(u[0]>0&&u[1]>0&&!d[0]&&(u[0]=0),u[0]<0&&u[1]<0&&!d[1]&&(u[1]=0));var y=!1;u[0]>u[1]&&(u.reverse(),y=!0);var b=oj(e,t.get(`startValue`,!0)),x=b!=null;!lc(b)&&r&&(b=e.getDefaultStartValue?e.getDefaultStartValue():0),lc(b)&&(x||!_||v)&&(b<u[0]&&!d[0]?(u[0]=b,d[0]=!0):b>u[1]&&!d[1]&&(u[1]=b,d[1]=!0)),aj(this._i={scale:e,dataMM:l,noZoomEffMM:u,zoomMM:[],fixMM:d,zoomFixMM:[!1,!1],startValue:b,isBlank:g,incl0:v,tggAxInv:y,ctnShp:i},u)}return e.prototype.makeNoZoom=function(){return this._i.noZoomEffMM.slice()},e.prototype.makeFinal=function(){var e=this._i,t=e.zoomMM,n=e.noZoomEffMM,r=e.zoomFixMM,i=e.fixMM,a={fixMM:i,zoomFixMM:r,isBlank:e.isBlank,incl0:e.incl0,tggAxInv:e.tggAxInv,ctnShp:e.ctnShp,effMM:n.slice()},o=a.effMM;return t[0]!=null&&(o[0]=t[0],i[0]=r[0]=!0),t[1]!=null&&(o[1]=t[1],i[1]=r[1]=!0),aj(e,o),a},e.prototype.makeRenderInfo=function(){return{startValue:this._i.startValue}},e.prototype.setZoomMM=function(e,t){this._i.zoomMM[e]=t},e}(),Sj=G()}));function wj(e,t){var n=Ok(e),r=n?e.intervalStub:e,i=t.fixMinMax||[],a=n?e.getExtent():null,o=r.getExtent(),s=Pk(o,i,t.rawExtentResult);r.setExtent(s[0],s[1]),s=r.getExtent();var c=n?Ej(r,t):Tj(r,t),l=c.intervalPrecision,u=c.interval,d=t.userInterval;d!=null&&(c.interval=d,c.intervalPrecision=jk(d)),i[0]||(s[0]=Bs(gc(s[0]/u)*u,l)),i[1]||(s[1]=Bs(_c(s[1]/u)*u,l)),d!=null&&(c.niceExtent=s.slice()),kA(e,i,o,s,a,c)}function Tj(e,t){var n=Ik(t.splitNumber,5),r=yk(e);process.env.NODE_ENV!==`production`&&W(isFinite(r)&&r>0);var i=t.minInterval,a=t.maxInterval,o=tc(r/n,!0);i!=null&&o<i&&(o=i),a!=null&&o>a&&(o=a);var s=jk(o),c=e.getExtent(),l=[Bs(_c(c[0]/o)*o,s),Bs(gc(c[1]/o)*o,s)];return{interval:o,intervalPrecision:s,niceExtent:l}}function Ej(e,t){var n=Ik(t.splitNumber,10),r=e.getExtent(),i=yk(e);process.env.NODE_ENV!==`production`&&W(isFinite(i)&&i>0);var a=pc($s(i),1);n/i*a<=.5&&(a*=10);var o=jk(a),s=[Bs(_c(r[0]/a)*a,o),Bs(gc(r[1]/a)*a,o)];return{intervalPrecision:o,interval:a,niceExtent:s}}function Dj(e){var t=e.scale,n=e.model,r=n.axis,i=n.ecModel;process.env.NODE_ENV!==`production`&&W(r&&i),Oj(t,n,r,i,null)}function Oj(e,t,n,r,i){var a=gj(e,t,r,n,i),o=Ek(e)||Dk(e);kj(e,{splitNumber:t.get(`splitNumber`),fixMinMax:a.fixMM,userInterval:t.get(`interval`),minInterval:o?t.get(`minInterval`):null,maxInterval:o?t.get(`maxInterval`):null,rawExtentResult:a}),n&&r&&vj(n,e,a,r),process.env.NODE_ENV!==`production`&&e.freeze()}function kj(e,t){Aj[e.type](e,t)}var Aj,jj=n((()=>{K(),Rk(),Y(),NA(),iA(),Cj(),wk(),Aj={interval:wj,log:wj,time:rA,ordinal:_t}})),Mj=r({createDimensions:()=>BO,createList:()=>Nj,createScale:()=>Pj,createSymbol:()=>nT,createTextStyle:()=>Ij,dataStack:()=>Lj,enableHoverEmphasis:()=>Hp,getECData:()=>Wf,getLayoutRect:()=>Ey,mixinAxisModelCommonMethods:()=>Fj});function Nj(e){return rk(null,e)}function Pj(e,t){var n=t;t instanceof B_||(n=new B_(t));var r=hA(n),i=gA(n,r,!1);return e[1]<e[0]&&(e=e.slice().reverse()),Oj(i,n,null,null,e),i}function Fj(e){He(e,PA)}function Ij(e,t){return t||={},f_(e,null,null,t.state!==`normal`)}var Lj,Rj=n((()=>{K(),ok(),NA(),FA(),V_(),Ly(),ek(),Kf(),E_(),jj(),WO(),pT(),pm(),Lj={isDimensionStacked:QO,enableDataStack:XO,getStackedDimension:$O}}));function zj(e){if(z(e)){L(e,function(e){zj(e)});return}Be(Bj,e)>=0||(Bj.push(e),B(e)&&(e={install:e}),e.install(Vj))}var Bj,Vj,Hj=n((()=>{rO(),xC(),MC(),Vy(),yC(),K(),Vw(),Ps(),Ww(),Bj=[],Vj={registerPreprocessor:wE,registerProcessor:TE,registerPostInit:EE,registerPostUpdate:DE,registerUpdateLifecycle:OE,registerAction:kE,registerCoordinateSystem:AE,registerLayout:NE,registerVisual:PE,registerTransform:tO,registerLoading:IE,registerMap:RE,registerImpl:Rw,PRIORITY:oD,ComponentModel:By,ComponentView:bC,SeriesModel:vC,ChartView:AC,registerComponentModel:function(e){By.registerClass(e)},registerComponentView:function(e){bC.registerClass(e)},registerSeriesModel:function(e){vC.registerClass(e)},registerChartView:function(e){AC.registerClass(e)},registerCustomSeries:function(e,t){Hw(e,t)},registerSubTypeDefaulter:function(e,t){By.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){Es(e,t)}}}));function Uj(e,t){return Math.abs(e-t)<Gj}function Wj(e,t,n){var r=0,i=e[0];if(!i)return!1;for(var a=1;a<e.length;a++){var o=e[a];r+=Rd(i[0],i[1],o[0],o[1],t,n),i=o}var s=e[0];return(!Uj(i[0],s[0])||!Uj(i[1],s[1]))&&(r+=Rd(i[0],i[1],s[0],s[1],t,n)),r!==0}var Gj,Kj=n((()=>{zd(),Gj=1e-8}));function qj(e,t){for(var n=0;n<e.length;n++)an(e[n],e[n],t)}function Jj(e,t,n,r){for(var i=0;i<e.length;i++){var a=e[i];r&&(a=r.project(a)),a&&isFinite(a[0])&&isFinite(a[1])&&(on(t,t,a),sn(n,n,a))}}function Yj(e){for(var t=0,n=0,r=0,i=e.length,a=e[i-1][0],o=e[i-1][1],s=0;s<i;s++){var c=e[s][0],l=e[s][1],u=a*l-c*o;t+=u,n+=(a+c)*u,r+=(o+l)*u,a=c,o=l}return t?[n/t/3,r/t/3,t]:[e[0][0]||0,e[0][1]||0]}var Xj,Zj,Qj,$j,eM,tM=n((()=>{P(),Ar(),fn(),Kj(),sr(),K(),Xj=[],Zj=function(){function e(e){this.name=e}return e.prototype.setCenter=function(e){this._center=e},e.prototype.getCenter=function(){var e=this._center;return e||=this._center=this.calcCenter(),e},e}(),Qj=function(){function e(e,t){this.type=`polygon`,this.exterior=e,this.interiors=t}return e}(),$j=function(){function e(e){this.type=`linestring`,this.points=e}return e}(),eM=function(e){N(t,e);function t(t,n,r){var i=e.call(this,t)||this;return i.type=`geoJSON`,i.geometries=n,i._center=r&&[r[0],r[1]],i}return t.prototype.calcCenter=function(){for(var e=this.geometries,t,n=0,r=0;r<e.length;r++){var i=e[r],a=i.exterior,o=a&&a.length;o>n&&(t=i,n=o)}if(t)return Yj(t.exterior);var s=this.getBoundingRect();return[s.x+s.width/2,s.y+s.height/2]},t.prototype.getBoundingRect=function(e){var t=this._rect;if(t&&!e)return t;var n=[1/0,1/0],r=[-1/0,-1/0],i=this.geometries;return L(i,function(t){t.type===`polygon`?Jj(t.exterior,n,r,e):L(t.points,function(t){Jj(t,n,r,e)})}),isFinite(n[0])&&isFinite(n[1])&&isFinite(r[0])&&isFinite(r[1])||(n[0]=n[1]=r[0]=r[1]=0),t=new J(n[0],n[1],r[0]-n[0],r[1]-n[1]),e||(this._rect=t),t},t.prototype.contain=function(e){var t=this.getBoundingRect(),n=this.geometries;if(!t.contain(e[0],e[1]))return!1;loopGeo:for(var r=0,i=n.length;r<i;r++){var a=n[r];if(a.type===`polygon`){var o=a.exterior,s=a.interiors;if(Wj(o,e[0],e[1])){for(var c=0;c<(s?s.length:0);c++)if(Wj(s[c],e[0],e[1]))continue loopGeo;return!0}}}return!1},t.prototype.transformTo=function(e,t,n,r){var i=this.getBoundingRect(),a=i.width/i.height;n?r||=n/a:n=a*r;for(var o=new J(e,t,n,r),s=i.calculateTransform(o),c=this.geometries,l=0;l<c.length;l++){var u=c[l];u.type===`polygon`?(qj(u.exterior,s),L(u.interiors,function(e){qj(e,s)})):L(u.points,function(e){qj(e,s)})}i=this._rect,i.copy(o),this._center=[i.x+i.width/2,i.y+i.height/2]},t.prototype.cloneShallow=function(e){e??=this.name;var n=new t(e,this.geometries,this._center);return n._rect=this._rect,n.transformTo=null,n},t}(Zj),function(e){N(t,e);function t(t,n){var r=e.call(this,t)||this;return r.type=`geoSVG`,r._elOnlyForCalculate=n,r}return t.prototype.calcCenter=function(){for(var e=this._elOnlyForCalculate,t=e.getBoundingRect(),n=[t.x+t.width/2,t.y+t.height/2],r=$n(Xj),i=e;i&&!i.isGeoSVGGraphicRoot;)tr(r,i.getLocalTransform(),r),i=i.parent;return ar(r,r),an(n,n,r),n},t}(Zj)}));function nM(e){if(!e.UTF8Encoding)return e;var t=e,n=t.UTF8Scale;n??=1024;var r=t.features;return L(r,function(e){var t=e.geometry,r=t.encodeOffsets,i=t.coordinates;if(r)switch(t.type){case`LineString`:t.coordinates=iM(i,r,n);break;case`Polygon`:rM(i,r,n);break;case`MultiLineString`:rM(i,r,n);break;case`MultiPolygon`:L(i,function(e,t){return rM(e,r[t],n)})}}),t.UTF8Encoding=!1,t}function rM(e,t,n){for(var r=0;r<e.length;r++)e[r]=iM(e[r],t[r],n)}function iM(e,t,n){for(var r=[],i=t[0],a=t[1],o=0;o<e.length;o+=2){var s=e.charCodeAt(o)-64,c=e.charCodeAt(o+1)-64;s=s>>1^-(s&1),c=c>>1^-(c&1),s+=i,c+=a,i=s,a=c,r.push([s/n,c/n])}return r}function aM(e,t){return e=nM(e),R(Ge(e.features,function(e){return e.geometry&&e.properties&&e.geometry.coordinates.length>0}),function(e){var n=e.properties,r=e.geometry,i=[];switch(r.type){case`Polygon`:var a=r.coordinates;i.push(new Qj(a[0],a.slice(1)));break;case`MultiPolygon`:L(r.coordinates,function(e){e[0]&&i.push(new Qj(e[0],e.slice(1)))});break;case`LineString`:i.push(new $j([r.coordinates]));break;case`MultiLineString`:i.push(new $j(r.coordinates))}var o=new eM(n[t||`name`],i,n.cp);return o.properties=n,o})}var oM=n((()=>{K(),tM()})),sM=r({MAX_SAFE_INTEGER:()=>wc,asc:()=>Hs,getPercentWithPrecision:()=>qs,getPixelPrecision:()=>Gs,getPrecision:()=>Us,getPrecisionSafe:()=>Ws,isNumeric:()=>ac,isRadianAroundZero:()=>Zs,linearMap:()=>Is,nice:()=>tc,numericToNumber:()=>ic,parseDate:()=>Qs,parsePercent:()=>Cc,quantile:()=>nc,quantity:()=>$s,quantityExponent:()=>ec,reformIntervals:()=>rc,remRadian:()=>Xs,round:()=>Vs}),cM=n((()=>{Y()})),lM=r({format:()=>xv,parse:()=>Qs,roundTime:()=>wv}),uM=n((()=>{Y(),Zv()})),dM=r({Arc:()=>Mh,BezierCurve:()=>kh,BoundingRect:()=>J,Circle:()=>zm,CompoundPath:()=>Ph,Ellipse:()=>Hm,Group:()=>_s,Image:()=>ff,IncrementalDisplayable:()=>eg,Line:()=>wh,LinearGradient:()=>Rh,Polygon:()=>_h,Polyline:()=>bh,RadialGradient:()=>Bh,Rect:()=>Cf,Ring:()=>uh,Sector:()=>sh,Text:()=>zf,clipPointsByRect:()=>Ag,clipRectByRect:()=>jg,createIcon:()=>Mg,extendPath:()=>hg,extendShape:()=>mg,getShapeClass:()=>_g,getTransform:()=>wg,initProps:()=>ag,makeImage:()=>yg,makePath:()=>vg,mergePath:()=>n_,registerShape:()=>gg,resizePath:()=>xg,updateProps:()=>ig}),fM=n((()=>{s_()})),pM=r({addCommas:()=>ey,capitalFirst:()=>oy,encodeHTML:()=>On,formatTime:()=>ay,formatTpl:()=>ry,getTextRect:()=>Qv,getTooltipMarker:()=>iy,normalizeCssArray:()=>cy,toCamelCase:()=>ty,truncateText:()=>du}),mM=n((()=>{dy()})),hM=r({bind:()=>Mt,clone:()=>Fe,curry:()=>Ye,defaults:()=>ze,each:()=>L,extend:()=>I,filter:()=>Ge,indexOf:()=>Be,inherits:()=>Ve,isArray:()=>z,isFunction:()=>B,isObject:()=>H,isString:()=>V,map:()=>R,merge:()=>Ie,reduce:()=>We}),gM=n((()=>{K()}));function _M(e){return{out:{noPxChangeTryDetermine:[]},kind:e}}function vM(e,t){var n=e.getLabelModel().get(`customValues`);if(n){var r=e.scale;return{labels:R(bM(n,r),function(t,n){return{formattedLabel:bA(e)(t,n),rawLabel:r.getLabel(t),tick:t}})}}return e.type===`category`?xM(e,t):wM(e)}function yM(e,t,n){var r=e.scale,i=e.getTickModel().get(`customValues`);return i?{ticks:bM(i,r)}:e.type===`category`?CM(e,t):{ticks:r.getTicks(n)}}function bM(e,t){var n=t.getExtent(),r=[];return L(e,function(e){e=t.parse(e),e>=n[0]&&e<=n[1]&&r.push(e)}),Tl(r,Dl,null),Hs(r),R(r,function(e){return{value:e}})}function xM(e,t){var n=e.getLabelModel(),r=SM(e,n,t);return!n.get(`show`)||e.scale.isBlank()?{labels:[]}:r}function SM(e,t,n){var r=RM(e),i=SA(t),a=n.kind===IM.estimate;if(!a){var o=EM(r,i);if(o)return o}var s,c;B(i)?s=NM(e,i,!1):(c=i===`auto`?OM(e,n):i,s=NM(e,c,!1));var l={labels:s,labelCategoryInterval:c};return a?n.out.noPxChangeTryDetermine.push(function(){return DM(r,i,l),!0}):DM(r,i,l),l}function CM(e,t){var n=LM(e),r=SA(t),i=EM(n,r);if(i)return i;var a,o;if((!t.get(`show`)||e.scale.isBlank())&&(a=[]),B(r))a=NM(e,r,!0);else if(r===`auto`){var s=SM(e,e.getLabelModel(),_M(IM.determine));o=s.labelCategoryInterval,a=R(s.labels,function(e){return e.tick})}else o=r,a=NM(e,o,!0);return DM(n,r,{ticks:a,tickCategoryInterval:o})}function wM(e){var t=e.scale.getTicks(),n=bA(e);return{labels:R(t,function(t,r){return{formattedLabel:n(t,r),rawLabel:e.scale.getLabel(t),tick:t}})}}function TM(e){return function(t){return FM(t)[e]||(FM(t)[e]={list:[]})}}function EM(e,t){for(var n=0;n<e.list.length;n++)if(e.list[n].key===t)return e.list[n].value}function DM(e,t,n){return e.list.push({key:t,value:n}),n}function OM(e,t){if(t.kind===IM.estimate){var n=e.calculateCategoryInterval(t);return t.out.noPxChangeTryDetermine.push(function(){return FM(e).autoInterval=n,!0}),n}return FM(e).autoInterval??(FM(e).autoInterval=e.calculateCategoryInterval(t))}function kM(e,t){var n=t.kind,r=MM(e),i=bA(e),a=(r.axisRotate-r.labelRotate)/180*Math.PI,o=e.scale,s=o.getExtent(),c=o.count();if(s[1]-s[0]<1)return 0;var l=1,u=40;c>u&&(l=Math.max(1,Math.floor(c/u)));for(var d=s[0],f=e.dataToCoord(d+1)-e.dataToCoord(d),p=Math.abs(f*Math.cos(a)),m=Math.abs(f*Math.sin(a)),h=0,g=0;d<=s[1];d+=l){var _=0,v=0,y=Uo(i({value:d}),r.font,`center`,`top`);_=y.width*1.3,v=y.height*1.3,h=Math.max(h,_,7),g=Math.max(g,v,7)}var b=h/p,x=g/m;isNaN(b)&&(b=1/0),isNaN(x)&&(x=1/0);var S=Math.max(0,Math.floor(Math.min(b,x)));return n===IM.estimate?(t.out.noPxChangeTryDetermine.push(Mt(AM,null,e,S,c)),S):jM(e,S,c)??S}function AM(e,t,n){return jM(e,t,n)==null}function jM(e,t,n){var r=PM(e.model),i=e.getExtent(),a=r.lastAutoInterval,o=r.lastTickCount;if(a!=null&&o!=null&&Math.abs(a-t)<=1&&Math.abs(o-n)<=1&&a>t&&r.axisExtent0===i[0]&&r.axisExtent1===i[1])return a;r.lastTickCount=n,r.lastAutoInterval=t,r.axisExtent0=i[0],r.axisExtent1=i[1]}function MM(e){var t=e.getLabelModel();return{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:t.get(`rotate`)||0,font:t.getFont()}}function NM(e,t,n){var r=bA(e),i=e.scale,a=[],o=B(t);return Lk(i,o?0:t,function(e,s){var c=i.getLabel(e);if(o){var l=!!t(e.value,c);if(e.offInterval=!l,!l&&!s)return}a.push(n?e:{formattedLabel:r(e),rawLabel:c,tick:e})}),a}var PM,FM,IM,LM,RM,zM=n((()=>{K(),Qo(),X(),NA(),Y(),Rk(),PM=ol(),FM=ol(),IM={estimate:1,determine:2},LM=TM(`axisTick`),RM=TM(`axisLabel`)}));function BM(e,t){t||={};var n={w:NaN,w2:NaN},r=e.scale,i=t.fromStat,a=t.min,o=vk(r);lc(o)||(o=NaN);var s=e.getExtent(),c=mc(s[1]-s[0]);return kk(r)?VM(n,e,o,c):i?HM(n,e,o,c,i):a==null&&process.env.NODE_ENV!==`production`&&W(!1),a!=null&&(n.w=lc(n.w)?pc(a,n.w):a),n}function VM(e,t,n,r){var i=t.onBand,a=n+ +!!i;a===0&&(a=1),e.w=r/a,!i&&n&&r&&(e.w2=e.w*n/r)}function HM(e,t,n,r,i){process.env.NODE_ENV!==`production`&&W(i);var a=!1,o=-1/0;L(i.key?[LA(t,i.key)]:RA(t,i.sers||[]),function(e){var t=e.liPosMinGap;t!=null&&(t>0?(t>o&&(o=t),a=!1):t===-2&&(a=!0))}),lc(n)&&n>0&&lc(o)?(e.w=r/n*o,e.w2=o):a&&(e.w=r*UM,e.w2=e.w*n/r)}var UM,WM=n((()=>{K(),Rk(),Y(),ij(),wk(),UM=.8}));function GM(e){var t=e.getExtent();if(e.onBand){var n=(t[1]-t[0])/e.scale.count()/2;t[0]+=n,t[1]-=n}return t}function KM(e,t,n){var r=t.length;if(!e.onBand||n||!r)return!1;var i=BM(e).w;if(!i)return!1;L(t,function(e){e.coord-=i/2});var a=e.scale.getExtent(),o=t[r-1];return o.tick.offInterval&&t.pop(),t.push({coord:o.coord+i,tick:{value:a[1]+1}}),!0}var qM,JM,YM=n((()=>{K(),Y(),zM(),Rk(),WM(),NA(),qM=[0,1],JM=function(){function e(e,t,n){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=n||[0,0]}return e.prototype.contain=function(e){var t=this._extent,n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]);return e>=n&&e<=r},e.prototype.containData=function(e){return this.scale.contain(this.scale.parse(e))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(e,t){var n=this._extent;n[0]=e,n[1]=t},e.prototype.dataToCoord=function(e,t){var n=this.scale;return e=n.normalize(n.parse(e)),Is(e,qM,GM(this),t)},e.prototype.coordToData=function(e,t){var n=Is(e,GM(this),qM,t);return this.scale.scale(n)},e.prototype.pointToData=function(e,t){},e.prototype.getTicksCoords=function(e){e||={};var t=e.tickModel||this.getTickModel(),n=R(yM(this,t,{breakTicks:e.breakTicks,pruneByBreak:e.pruneByBreak}).ticks,function(e){return{coord:this.dataToCoord(AA(this.scale,e)),tick:e}},this),r=t.get(`alignWithLabel`),i=KM(this,n,r);return R(n,function(e){return{coord:e.coord,tickValue:e.tick.value,onBand:i}})},e.prototype.getMinorTicksCoords=function(){if(kk(this.scale))return[];var e=this.model.getModel(`minorTick`).get(`splitNumber`);return e>0&&e<100||(e=5),R(this.scale.getMinorTicks(e),function(e){return R(e,function(e){return{coord:this.dataToCoord(e),tickValue:e}},this)},this)},e.prototype.getViewLabels=function(e){return e||=_M(IM.determine),vM(this,e).labels},e.prototype.getLabelModel=function(){return this.model.getModel(`axisLabel`)},e.prototype.getTickModel=function(){return this.model.getModel(`axisTick`)},e.prototype.getBandWidth=function(){return BM(this,{min:1}).w},e.prototype.calculateCategoryInterval=function(e){return e||=_M(IM.determine),kM(this,e)},e}()}));function XM(e){var t=By.extend(e);return By.registerClass(t),t}function ZM(e){var t=bC.extend(e);return bC.registerClass(t),t}function QM(e){var t=vC.extend(e);return vC.registerClass(t),t}function $M(e){var t=AC.extend(e);return AC.registerClass(t),t}var eN=n((()=>{Vy(),xC(),yC(),MC(),zO(),Ps(),sr(),fn(),K(),xa(),zC(),Rj(),Hj(),je(),oM(),cM(),uM(),fM(),mM(),gM(),xe(),V_(),YM(),$T()}));function tN(e,t,n,r,i){var a=n.width,o=n.height;switch(e){case`top`:r.set(n.x+a/2,n.y-t),i.set(0,-1);break;case`bottom`:r.set(n.x+a/2,n.y+o+t),i.set(0,1);break;case`left`:r.set(n.x-t,n.y+o/2),i.set(-1,0);break;case`right`:r.set(n.x+a+t,n.y+o/2),i.set(1,0);break}}function nN(e,t,n,r,i,a,o,s,c){o-=e,s-=t;var l=Math.sqrt(o*o+s*s);o/=l,s/=l;var u=o*n+e,d=s*n+t;if(Math.abs(r-i)%mN<1e-4)return c[0]=u,c[1]=d,l-n;if(a){var f=r;r=Md(i),i=Md(f)}else r=Md(r),i=Md(i);r>i&&(i+=mN);var p=Math.atan2(s,o);if(p<0&&(p+=mN),p>=r&&p<=i||p+mN>=r&&p+mN<=i)return c[0]=u,c[1]=d,l-n;var m=n*Math.cos(r)+e,h=n*Math.sin(r)+t,g=n*Math.cos(i)+e,_=n*Math.sin(i)+t,v=(m-o)*(m-o)+(h-s)*(h-s),y=(g-o)*(g-o)+(_-s)*(_-s);return v<y?(c[0]=m,c[1]=h,Math.sqrt(v)):(c[0]=g,c[1]=_,Math.sqrt(y))}function rN(e,t,n,r,i,a,o,s){var c=i-e,l=a-t,u=n-e,d=r-t,f=Math.sqrt(u*u+d*d);u/=f,d/=f;var p=(c*u+l*d)/f;s&&(p=Math.min(Math.max(p,0),1)),p*=f;var m=o[0]=e+p*u,h=o[1]=t+p*d;return Math.sqrt((m-i)*(m-i)+(h-a)*(h-a))}function iN(e,t,n,r,i,a,o){n<0&&(e+=n,n=-n),r<0&&(t+=r,r=-r);var s=e+n,c=t+r,l=o[0]=Math.min(Math.max(i,e),s),u=o[1]=Math.min(Math.max(a,t),c);return Math.sqrt((l-i)*(l-i)+(u-a)*(u-a))}function aN(e,t,n){var r=iN(t.x,t.y,t.width,t.height,e.x,e.y,_N);return n.set(_N[0],_N[1]),r}function oN(e,t,n){for(var r=0,i=0,a=0,o=0,s,c,l=1/0,u=t.data,d=e.x,f=e.y,p=0;p<u.length;){var m=u[p++];p===1&&(r=u[p],i=u[p+1],a=r,o=i);var h=l;switch(m){case hN.M:a=u[p++],o=u[p++],r=a,i=o;break;case hN.L:h=rN(r,i,u[p],u[p+1],d,f,_N,!0),r=u[p++],i=u[p++];break;case hN.C:h=_i(r,i,u[p++],u[p++],u[p++],u[p++],u[p],u[p+1],d,f,_N),r=u[p++],i=u[p++];break;case hN.Q:h=wi(r,i,u[p++],u[p++],u[p],u[p+1],d,f,_N),r=u[p++],i=u[p++];break;case hN.A:var g=u[p++],_=u[p++],v=u[p++],y=u[p++],b=u[p++],x=u[p++];p+=1;var S=!!(1-u[p++]);s=Math.cos(b)*v+g,c=Math.sin(b)*y+_,p<=1&&(a=s,o=c);var C=(d-g)*y/v+g;h=nN(g,_,y,b,b+x,S,C,f,_N),r=Math.cos(b+x)*v+g,i=Math.sin(b+x)*y+_;break;case hN.R:a=r=u[p++],o=i=u[p++];var w=u[p++],T=u[p++];h=iN(a,o,w,T,d,f,_N);break;case hN.Z:h=rN(r,i,a,o,d,f,_N,!0),r=a,i=o;break}h<l&&(l=h,n.set(_N[0],_N[1]))}return l}function sN(e,t){if(e){var n=e.getTextGuideLine(),r=e.getTextContent();if(r&&n){var i=e.textGuideLineConfig||{},a=[[0,0],[0,0],[0,0]],o=i.candidates||gN,s=r.getBoundingRect().clone();s.applyTransform(r.getComputedTransform());var c=1/0,l=i.anchor,u=e.getComputedTransform(),d=u&&ar([],u),f=t.get(`length2`)||0;l&&bN.copy(l);for(var p=0;p<o.length;p++){var m=o[p];tN(m,0,s,vN,xN),q.scaleAndAdd(yN,vN,xN,f),yN.transform(d);var h=e.getBoundingRect(),g=l?l.distance(yN):e instanceof rf?oN(yN,e.path,bN):aN(yN,h,bN);g<c&&(c=g,yN.transform(u),bN.transform(u),bN.toArray(a[0]),yN.toArray(a[1]),vN.toArray(a[2]))}cN(a,t.get(`minTurnAngle`)),n.setShape({points:a})}}}function cN(e,t){if(t<=180&&t>0){t=t/180*Math.PI,vN.fromArray(e[0]),yN.fromArray(e[1]),bN.fromArray(e[2]),q.sub(xN,vN,yN),q.sub(SN,bN,yN);var n=xN.len(),r=SN.len();if(!(n<.001||r<.001)){xN.scale(1/n),SN.scale(1/r);var i=xN.dot(SN);if(Math.cos(t)<i){var a=rN(yN.x,yN.y,bN.x,bN.y,vN.x,vN.y,CN,!1);wN.fromArray(CN),wN.scaleAndAdd(SN,a/Math.tan(Math.PI-t));var o=bN.x===yN.x?(wN.y-yN.y)/(bN.y-yN.y):(wN.x-yN.x)/(bN.x-yN.x);if(isNaN(o))return;o<0?q.copy(wN,yN):o>1&&q.copy(wN,bN),wN.toArray(e[1])}}}}function lN(e,t,n){if(n<=180&&n>0){n=n/180*Math.PI,vN.fromArray(e[0]),yN.fromArray(e[1]),bN.fromArray(e[2]),q.sub(xN,yN,vN),q.sub(SN,bN,yN);var r=xN.len(),i=SN.len();if(!(r<.001||i<.001)&&(xN.scale(1/r),SN.scale(1/i),xN.dot(t)<Math.cos(n))){var a=rN(yN.x,yN.y,bN.x,bN.y,vN.x,vN.y,CN,!1);wN.fromArray(CN);var o=Math.PI/2,s=o+Math.acos(SN.dot(t))-n;if(s>=o)q.copy(wN,bN);else{wN.scaleAndAdd(SN,a/Math.tan(Math.PI/2-s));var c=bN.x===yN.x?(wN.y-yN.y)/(bN.y-yN.y):(wN.x-yN.x)/(bN.x-yN.x);if(isNaN(c))return;c<0?q.copy(wN,yN):c>1&&q.copy(wN,bN)}wN.toArray(e[1])}}}function uN(e,t,n,r){var i=n===`normal`,a=i?e:e.ensureState(n);a.ignore=t;var o=r.get(`smooth`);o=o===!0?.3:Math.max(+o,0)||0,a.shape=a.shape||{},a.shape.smooth=o;var s=r.getModel(`lineStyle`).getLineStyle();i?e.useStyle(s):a.style=s}function dN(e,t){var n=t.smooth,r=t.points;if(r)if(e.moveTo(r[0][0],r[0][1]),n>0&&r.length>=3){var i=un(r[0],r[1]),a=un(r[1],r[2]);if(!i||!a){e.lineTo(r[1][0],r[1][1]),e.lineTo(r[2][0],r[2][1]);return}var o=Math.min(i,a)*n,s=rn([],r[1],r[0],o/i),c=rn([],r[1],r[2],o/a),l=rn([],s,c,.5);e.bezierCurveTo(s[0],s[1],s[0],s[1],l[0],l[1]),e.bezierCurveTo(c[0],c[1],c[0],c[1],r[2][0],r[2][1])}else for(var u=1;u<r.length;u++)e.lineTo(r[u][0],r[u][1])}function fN(e,t,n){var r=e.getTextGuideLine(),i=e.getTextContent();if(!i){r&&e.removeTextGuideLine();return}for(var a=t.normal,o=a.get(`show`),s=i.ignore,c=0;c<im.length;c++){var l=im[c],u=t[l],d=l===`normal`;if(u){var f=u.get(`show`);if((d?s:U(i.states[l]&&i.states[l].ignore,s))||!U(f,o)){var p=d?r:r&&r.states[l];p&&(p.ignore=!0),r&&uN(r,!0,l,u);continue}r||(r=new bh,e.setTextGuideLine(r),!d&&(s||!o)&&uN(r,!0,`normal`,t.normal),e.stateProxy&&(r.stateProxy=e.stateProxy)),uN(r,!1,l,u)}}if(r){ze(r.style,n),r.style.fill=null;var m=a.get(`showAbove`),h=e.textGuideLineConfig=e.textGuideLineConfig||{};h.showAbove=m||!1,r.buildPath=dN}}function pN(e,t){t||=`labelLine`;for(var n={normal:e.getModel(t)},r=0;r<rm.length;r++){var i=rm[r];n[i]=e.getModel([i,t])}return n}var mN,hN,gN,_N,vN,yN,bN,xN,SN,CN,wN,TN=n((()=>{s_(),Td(),Pd(),Fi(),K(),sr(),fn(),pm(),mN=Math.PI*2,hN=wd.CMD,gN=[`top`,`right`,`bottom`,`left`],_N=[],vN=new q,yN=new q,bN=new q,xN=new q,SN=new q,CN=[],wN=new q}));function EN(e,t,n){n||=VN,t?e.dirty|=n:e.dirty&=~n}function DN(e,t){return t||=VN,e.dirty==null||!!(e.dirty&t)}function ON(e){if(e)return DN(e)&&kN(e,e.label,e),e}function kN(e,t,n){var r=t.getComputedTransform();e.transform=Wg(e.transform,r);var i=e.localRect=Ug(e.localRect,t.getBoundingRect()),a=t.style,o=a.margin,s=n&&n.marginForce,c=n&&n.minMarginForce,l=n&&n.marginDefault,u=a.__marginType;u==null&&l&&(o=l,u=T_.textMargin);for(var d=0;d<4;d++)HN[d]=u===T_.minMargin&&c&&c[d]!=null?c[d]:s&&s[d]!=null?s[d]:o?o[d]:0;u===T_.textMargin&&Lg(i,HN,!1,!1);var f=e.rect=Ug(e.rect,i);return r&&f.applyTransform(r),u===T_.minMargin&&Lg(f,HN,!1,!1),e.axisAligned=Hg(r),(e.label=e.label||{}).ignore=t.ignore,EN(e,!1),EN(e,!0,BN),e}function AN(e,t,n){return e.transform=Wg(e.transform,n),e.localRect=Ug(e.localRect,t),e.rect=Ug(e.rect,t),n&&e.rect.applyTransform(n),e.axisAligned=Hg(n),e.obb=void 0,(e.label=e.label||{}).ignore=!1,e}function jN(e,t){if(e){e.label.x+=t.x,e.label.y+=t.y,e.label.markRedraw();var n=e.transform;n&&(n[4]+=t.x,n[5]+=t.y);var r=e.rect;r&&(r.x+=t.x,r.y+=t.y);var i=e.obb;i&&i.fromBoundingRect(e.localRect,n)}}function MN(e,t){for(var n=0;n<RN.length;n++){var r=RN[n];e[r]??(e[r]=t[r])}return ON(e)}function NN(e){var t=e.obb;return(!t||DN(e,BN))&&(e.obb=t||=new Xh,t.fromBoundingRect(e.localRect,e.transform),EN(e,!1,BN)),t}function PN(e,t,n,r,i){var a=e.length,o=$g[t],s=e_[t];if(a<2)return!1;e.sort(function(e,t){return e.rect[o]-t.rect[o]});for(var c=0,l,u=!1,d=0,f=0;f<a;f++){var p=e[f],m=p.rect;l=m[o]-c,l<0&&(m[o]-=l,p.label[o]-=l,u=!0);var h=Math.max(-l,0);d+=h,c=m[o]+m[s]}d>0&&i&&S(-d/a,0,a);var g=e[0],_=e[a-1],v,y;b(),v<0&&C(-v,.8),y<0&&C(y,.8),b(),x(v,y,1),x(y,v,-1),b(),v<0&&w(-v),y<0&&w(y);function b(){v=g.rect[o]-n,y=r-_.rect[o]-_.rect[s]}function x(e,t,n){if(e<0){var r=Math.min(t,-e);if(r>0){S(r*n,0,a);var i=r+e;i<0&&C(-i*n,1)}else C(-e*n,1)}}function S(t,n,r){t!==0&&(u=!0);for(var i=n;i<r;i++){var a=e[i],s=a.rect;s[o]+=t,a.label[o]+=t}}function C(t,n){for(var r=[],i=0,c=1;c<a;c++){var l=e[c-1].rect,u=Math.max(e[c].rect[o]-l[o]-l[s],0);r.push(u),i+=u}if(i){var d=Math.min(Math.abs(t)/i,n);if(t>0)for(var c=0;c<a-1;c++){var f=r[c]*d;S(f,0,c+1)}else for(var c=a-1;c>0;c--){var f=r[c-1]*d;S(-f,c,a)}}}function w(e){var t=e<0?-1:1;e=Math.abs(e);for(var n=Math.ceil(e/(a-1)),r=0;r<a-1;r++)if(t>0?S(n,0,r+1):S(-n,a-r-1,a),e-=n,e<=0)return}return u}function FN(e){for(var t=0;t<e.length;t++){var n=e[t],r=n.defaultAttr,i=n.labelLine;n.label.attr(`ignore`,r.ignore),i&&i.attr(`ignore`,r.labelGuideIgnore)}}function IN(e){var t=[];e.sort(function(e,t){return!!t.suggestIgnore-+!!e.suggestIgnore||t.priority-e.priority});function n(e){if(!e.ignore){var t=e.ensureState(`emphasis`);t.ignore??=!1}e.ignore=!0}for(var r=0;r<e.length;r++){var i=ON(e[r]);if(!i.label.ignore){for(var a=i.label,o=i.labelLine,s=!1,c=0;c<t.length;c++)if(LN(i,t[c],null,{touchThreshold:.05})){s=!0;break}s?(n(a),o&&n(o)):t.push(i)}}}function LN(e,t,n,r){return!e||!t||e.label&&e.label.ignore||t.label&&t.label.ignore||!e.rect.intersect(t.rect,n,r)?!1:e.axisAligned&&t.axisAligned?!0:NN(e).intersect(NN(t),n,r)}var RN,zN,BN,VN,HN,UN=n((()=>{s_(),E_(),RN=[`label`,`labelLine`,`layoutOption`,`priority`,`defaultAttr`,`marginForce`,`minMarginForce`,`marginDefault`,`suggestIgnore`],zN=1,BN=2,VN=zN|BN,HN=[0,0,0,0]}));function WN(e){if(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n].slice());return t}}function GN(e,t){var n=e.label,r=t&&t.getTextGuideLine();return{dataIndex:e.dataIndex,dataType:e.dataType,seriesIndex:e.seriesModel.seriesIndex,text:e.label.style.text,rect:e.hostRect,labelRect:e.rect,align:n.style.align,verticalAlign:n.style.verticalAlign,labelLinePoints:WN(r&&r.shape.points)}}function KN(e,t,n){for(var r=0;r<n.length;r++){var i=n[r];t[i]!=null&&(e[i]=t[i])}}var qN,JN,YN,XN,ZN,QN,$N=n((()=>{s_(),Kf(),Y(),Lo(),TN(),X(),K(),UN(),E_(),Pd(),qN=[`align`,`verticalAlign`,`width`,`height`,`fontSize`],JN=new Po,YN=ol(),XN=ol(),ZN=[`x`,`y`,`rotation`],QN=function(){function e(){this._labelList=[],this._chartViewList=[]}return e.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},e.prototype._addLabel=function(e,t,n,r,i){var a=r.style,o=r.__hostTarget.textConfig||{},s=r.getComputedTransform(),c=r.getBoundingRect().plain();J.applyTransform(c,c,s),s?JN.setLocalTransform(s):(JN.x=JN.y=JN.rotation=JN.originX=JN.originY=0,JN.scaleX=JN.scaleY=1),JN.rotation=Md(JN.rotation);var l=r.__hostTarget,u;if(l){u=l.getBoundingRect().plain();var d=l.getComputedTransform();J.applyTransform(u,u,d)}var f=u&&l.getTextGuideLine();this._labelList.push({label:r,labelLine:f,seriesModel:n,dataIndex:e,dataType:t,layoutOptionOrCb:i,layoutOption:null,rect:c,hostRect:u,priority:u?u.width*u.height:0,defaultAttr:{ignore:r.ignore,labelGuideIgnore:f&&f.ignore,x:JN.x,y:JN.y,scaleX:JN.scaleX,scaleY:JN.scaleY,rotation:JN.rotation,style:{x:a.x,y:a.y,align:a.align,verticalAlign:a.verticalAlign,width:a.width,height:a.height,fontSize:a.fontSize},cursor:r.cursor,attachedPos:o.position,attachedRot:o.rotation}})},e.prototype.addLabelsOfSeries=function(e){var t=this;this._chartViewList.push(e);var n=e.__model,r=n.get(`labelLayout`);(B(r)||qe(r).length)&&e.group.traverse(function(e){if(e.ignore)return!0;var i=e.getTextContent(),a=Wf(e);i&&!i.disableLabelLayout&&t._addLabel(a.dataIndex,a.dataType,n,i,r)})},e.prototype.updateLayoutConfig=function(e){var t=e.getWidth(),n=e.getHeight();function r(e,t){return function(){sN(e,t)}}for(var i=0;i<this._labelList.length;i++){var a=this._labelList[i],o=a.label,s=o.__hostTarget,c=a.defaultAttr,l=void 0;l=B(a.layoutOptionOrCb)?a.layoutOptionOrCb(GN(a,s)):a.layoutOptionOrCb,l||={},a.layoutOption=l;var u=Math.PI/180;s&&s.setTextConfig({local:!1,position:l.x!=null||l.y!=null?null:c.attachedPos,rotation:l.rotate==null?c.attachedRot:l.rotate*u,offset:[l.dx||0,l.dy||0]});var d=!1;if(l.x==null?(o.x=c.x,o.setStyle(`x`,c.style.x)):(o.x=Cc(l.x,t),o.setStyle(`x`,0),d=!0),l.y==null?(o.y=c.y,o.setStyle(`y`,c.style.y)):(o.y=Cc(l.y,n),o.setStyle(`y`,0),d=!0),l.labelLinePoints){var f=s.getTextGuideLine();f&&(f.setShape({points:l.labelLinePoints}),d=!1)}var p=YN(o);p.needsUpdateLabelLine=d,o.rotation=l.rotate==null?c.rotation:l.rotate*u,o.scaleX=c.scaleX,o.scaleY=c.scaleY;for(var m=0;m<qN.length;m++){var h=qN[m];o.setStyle(h,l[h]==null?c.style[h]:l[h])}if(l.draggable){if(o.draggable=!0,o.cursor=`move`,s){var g=a.seriesModel;a.dataIndex!=null&&(g=a.seriesModel.getData(a.dataType).getItemModel(a.dataIndex)),o.on(`drag`,r(s,g.getModel(`labelLine`)))}}else o.off(`drag`),o.cursor=c.cursor}},e.prototype.layout=function(e){var t=e.getWidth(),n=e.getHeight(),r=[];L(this._labelList,function(e){e.defaultAttr.ignore||r.push(MN({},e))});var i=Ge(r,function(e){return e.layoutOption.moveOverlap===`shiftX`}),a=Ge(r,function(e){return e.layoutOption.moveOverlap===`shiftY`});PN(i,0,0,t),PN(a,1,0,n);var o=Ge(r,function(e){return e.layoutOption.hideOverlap});FN(o),IN(o)},e.prototype.processLabelsOverall=function(){var e=this;L(this._chartViewList,function(t){var n=t.__model,r=t.ignoreLabelLineUpdate,i=n.isAnimationEnabled();t.group.traverse(function(t){if(t.ignore&&!t.forceLabelAnimation)return!0;var a=!r,o=t.getTextContent();!a&&o&&(a=YN(o).needsUpdateLabelLine),a&&e._updateLabelLine(t,n),i&&e._animateLabels(t,n)})})},e.prototype._updateLabelLine=function(e,t){var n=e.getTextContent(),r=Wf(e),i=r.dataIndex;if(n&&i!=null){var a=t.getData(r.dataType),o=a.getItemModel(i),s={},c=a.getItemVisual(i,`style`);c&&(s.stroke=c[a.getVisual(`drawType`)]);var l=o.getModel(`labelLine`);fN(e,pN(o),s),sN(e,l)}},e.prototype._animateLabels=function(e,t){var n=e.getTextContent(),r=e.getTextGuideLine();if(n&&(e.forceLabelAnimation||!n.ignore&&!n.invisible&&!e.disableLabelAnimation&&!og(e))){var i=YN(n),a=i.oldLayout,o=Wf(e),s=o.dataIndex,c={x:n.x,y:n.y,rotation:n.rotation},l=t.getData(o.dataType);if(a){n.attr(a);var u=e.prevStates;u&&(Be(u,`select`)>=0&&n.attr(i.oldLayoutSelect),Be(u,`emphasis`)>=0&&n.attr(i.oldLayoutEmphasis)),ig(n,c,t,s)}else if(n.attr(c),!w_(n).valueAnimation){var d=U(n.style.opacity,1);n.style.opacity=0,ag(n,{style:{opacity:d}},t,s)}if(i.oldLayout=c,n.states.select){var f=i.oldLayoutSelect={};KN(f,c,ZN),KN(f,n.states.select,ZN)}if(n.states.emphasis){var p=i.oldLayoutEmphasis={};KN(p,c,ZN),KN(p,n.states.emphasis,ZN)}y_(n,s,l,t,t)}if(r&&!r.ignore&&!r.invisible){var i=XN(r),a=i.oldLayout,m={points:r.shape.points};a?(r.attr({shape:a}),ig(r,{shape:m},t)):(r.setShape(m),r.style.strokePercent=0,ag(r,{style:{strokePercent:1}},t)),i.oldLayout=m}},e}()}));function eP(e){e.registerUpdateLifecycle(`series:beforeupdate`,function(e,t,n){var r=tP(t).labelManager;r||=tP(t).labelManager=new QN,r.clearLabels()}),e.registerUpdateLifecycle(`series:layoutlabels`,function(e,t,n){var r=tP(t).labelManager;L(n.updatedSeries,function(e){r.addLabelsOfSeries(t.getViewOfSeriesModel(e))}),r.updateLayoutConfig(t),r.layout(t),r.processLabelsOverall()})}var tP,nP=n((()=>{X(),$N(),K(),tP=ol()})),rP=n((()=>{rO(),eN(),Hj(),nP(),zj(eP)})),iP=r({Axis:()=>JM,ChartView:()=>AC,ComponentModel:()=>By,ComponentView:()=>bC,List:()=>RO,Model:()=>B_,PRIORITY:()=>oD,SeriesModel:()=>vC,color:()=>Gi,connect:()=>vE,dataTool:()=>nO,dependencies:()=>HE,disConnect:()=>$D,disconnect:()=>yE,dispose:()=>bE,env:()=>F,extendChartView:()=>$M,extendComponentModel:()=>XM,extendComponentView:()=>ZM,extendSeriesModel:()=>QM,format:()=>pM,getCoordinateSystemDimensions:()=>jE,getInstanceByDom:()=>xE,getInstanceById:()=>SE,getMap:()=>zE,graphic:()=>dM,helper:()=>Mj,init:()=>_E,innerDrawElementOnCanvas:()=>HT,matrix:()=>Zn,number:()=>sM,parseGeoJSON:()=>aM,parseGeoJson:()=>aM,registerAction:()=>kE,registerCoordinateSystem:()=>AE,registerCustomSeries:()=>ME,registerLayout:()=>NE,registerLoading:()=>IE,registerLocale:()=>Q_,registerMap:()=>RE,registerPostInit:()=>EE,registerPostUpdate:()=>DE,registerPreprocessor:()=>wE,registerProcessor:()=>TE,registerTheme:()=>CE,registerTransform:()=>tO,registerUpdateLifecycle:()=>OE,registerVisual:()=>PE,setCanvasCreator:()=>LE,setPlatformAPI:()=>Ce,throttle:()=>NC,time:()=>lM,use:()=>zj,util:()=>hM,vector:()=>zt,version:()=>VE,zrUtil:()=>Me,zrender:()=>ys}),aP=n((()=>{rP()})),oP,sP=n((()=>{P(),ok(),yC(),pT(),s_(),Wy(),oP=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return t.prototype.getInitialData=function(e){if(process.env.NODE_ENV!==`production`){var t=e.coordinateSystem;if(t!==`polar`&&t!==`cartesian2d`)throw Error(`Line not support coordinateSystem besides cartesian and polar`)}return rk(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(e){var t=new _s,n=nT(`line`,0,e.itemHeight/2,e.itemWidth,0,e.lineStyle.stroke,!1);t.add(n),n.setStyle(e.lineStyle);var r=this.getData().getVisual(`symbol`),i=this.getData().getVisual(`symbolRotate`),a=r===`none`?`circle`:r,o=e.itemHeight*.8,s=nT(a,(e.itemWidth-o)/2,(e.itemHeight-o)/2,o,o,e.itemStyle.fill);return t.add(s),s.setStyle(e.itemStyle),s.rotation=(e.iconRotate===`inherit`?i:e.iconRotate||0)*Math.PI/180,s.setOrigin([e.itemWidth/2,e.itemHeight/2]),a.indexOf(`empty`)>-1&&(s.style.stroke=s.style.fill,s.style.fill=Z.color.neutral00,s.style.lineWidth=2),t},t.type=`series.line`,t.dependencies=[`grid`,`polar`],t.defaultOption={z:3,coordinateSystem:`cartesian2d`,legendHoverLink:!0,clip:!0,label:{position:`top`},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:`solid`},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:`emptyCircle`,symbolSize:6,symbolRotate:null,showSymbol:!0,showAllSymbol:`auto`,connectNulls:!1,sampling:`none`,animationEasing:`linear`,progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:`clone`},triggerLineEvent:!1,triggerEvent:!1},t}(vC)}));function cP(e,t){var n=e.mapDimensionsAll(`defaultedLabel`),r=n.length;if(r===1){var i=Mx(e,t,n[0]);return i==null?null:i+``}else if(r){for(var a=[],o=0;o<n.length;o++)a.push(Mx(e,t,n[o]));return a.join(` `)}}function lP(e,t){var n=e.mapDimensionsAll(`defaultedLabel`);if(!z(t))return t+``;for(var r=[],i=0;i<n.length;i++){var a=e.getDimensionIndex(n[i]);a>=0&&r.push(t[a])}return r.join(` `)}var uP=n((()=>{Jx(),K()}));function dP(e,t){this.parent.drift(e,t)}var fP,pP=n((()=>{P(),pT(),s_(),Kf(),pm(),uP(),K(),E_(),pf(),fg(),fP=function(e){N(t,e);function t(t,n,r,i){var a=e.call(this)||this;return a.updateData(t,n,r,i),a}return t.prototype._createSymbol=function(e,t,n,r,i,a){this.removeAll();var o=nT(e,-1,-1,2,2,null,a);o.attr({z2:U(i,100),culling:!0,scaleX:r[0]/2,scaleY:r[1]/2}),o.drift=dP,this._symbolType=e,this.add(o)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){Tp(this.childAt(0))},t.prototype.downplay=function(){Ep(this.childAt(0))},t.prototype.setZ=function(e,t){var n=this.childAt(0);n.zlevel=e,n.z=t},t.prototype.setDraggable=function(e,t){var n=this.childAt(0);n.draggable=e,n.cursor=!t&&e?`move`:n.cursor},t.prototype.updateData=function(e,n,r,i){this.silent=!1;var a=e.getItemVisual(n,`symbol`)||`circle`,o=e.hostModel,s=t.getSymbolSize(e,n),c=t.getSymbolZ2(e,n),l=a!==this._symbolType,u=i&&i.disableAnimation;if(l){var d=e.getItemVisual(n,`symbolKeepAspect`);this._createSymbol(a,e,n,s,c,d)}else{var f=this.childAt(0);f.silent=!1;var p={scaleX:s[0]/2,scaleY:s[1]/2};u?f.attr(p):ig(f,p,o,n),ug(f)}if(this._updateCommon(e,n,s,r,i),l){var f=this.childAt(0);if(!u){var p={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:f.style.opacity}};f.scaleX=f.scaleY=0,f.style.opacity=0,ag(f,p,o,n)}}u&&this.childAt(0).stopAnimation(`leave`)},t.prototype._updateCommon=function(e,t,n,r,i){var a=this.childAt(0),o=e.hostModel,s,c,l,u,d,f,p,m,h;if(r&&(s=r.emphasisItemStyle,c=r.blurItemStyle,l=r.selectItemStyle,u=r.focus,d=r.blurScope,p=r.labelStatesModels,m=r.hoverScale,h=r.cursorStyle,f=r.emphasisDisabled),!r||e.hasItemOption){var g=r&&r.itemModel?r.itemModel:e.getItemModel(t),_=g.getModel(`emphasis`);s=_.getModel(`itemStyle`).getItemStyle(),l=g.getModel([`select`,`itemStyle`]).getItemStyle(),c=g.getModel([`blur`,`itemStyle`]).getItemStyle(),u=_.get(`focus`),d=_.get(`blurScope`),f=_.get(`disabled`),p=d_(g),m=_.getShallow(`scale`),h=g.getShallow(`cursor`)}var v=e.getItemVisual(t,`symbolRotate`);a.attr(`rotation`,(v||0)*Math.PI/180||0);var y=iT(e.getItemVisual(t,`symbolOffset`),n);y&&(a.x=y[0],a.y=y[1]),h&&a.attr(`cursor`,h);var b=e.getItemVisual(t,`style`),x=b.fill;if(a instanceof ff){var S=a.style;a.useStyle(I({image:S.image,x:S.x,y:S.y,width:S.width,height:S.height},b))}else a.__isEmptyBrush?a.useStyle(I({},b)):a.useStyle(b),a.style.decal=null,a.setColor(x,i&&i.symbolInnerColor),a.style.strokeNoScale=!0;var C=e.getItemVisual(t,`liftZ`),w=this._z2;C==null?w!=null&&(a.z2=w,this._z2=null):w??(this._z2=a.z2,a.z2+=C);var T=i&&i.useNameLabel;u_(a,p,{labelFetcher:o,labelDataIndex:t,defaultText:E,inheritColor:x,defaultOpacity:b.opacity});function E(t){return T?e.getName(t):cP(e,t)}this._sizeX=n[0]/2,this._sizeY=n[1]/2;var D=a.ensureState(`emphasis`);D.style=s,a.ensureState(`select`).style=l,a.ensureState(`blur`).style=c;var O=m==null||m===!0?Math.max(1.1,3/this._sizeY):isFinite(m)&&m>0?+m:1;D.scaleX=this._sizeX*O,D.scaleY=this._sizeY*O,this.setSymbolScale(1),Wp(this,u,d,f)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,t,n){var r=this.childAt(0),i=Wf(this).dataIndex,a=n&&n.animation;if(this.silent=r.silent=!0,n&&n.fadeLabel){var o=r.getTextContent();o&&sg(o,{style:{opacity:0}},t,{dataIndex:i,removeOpt:a,cb:function(){r.removeTextContent()}})}else r.removeTextContent();sg(r,{style:{opacity:0},scaleX:0,scaleY:0},t,{dataIndex:i,cb:e,removeOpt:a})},t.getSymbolSize=function(e,t){return rT(e.getItemVisual(t,`symbolSize`))},t.getSymbolZ2=function(e,t){return e.getItemVisual(t,`z2`)},t}(_s)}));function mP(e,t,n,r){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(r&&r.isIgnore&&r.isIgnore(n))&&!(r&&r.clipShape&&!r.clipShape.contain(t[0],t[1]))&&e.getItemVisual(n,`symbol`)!==`none`}function hP(e){return e!=null&&!H(e)&&(e={isIgnore:e}),e||{}}function gP(e){var t=e.hostModel,n=t.getModel(`emphasis`);return{emphasisItemStyle:n.getModel(`itemStyle`).getItemStyle(),blurItemStyle:t.getModel([`blur`,`itemStyle`]).getItemStyle(),selectItemStyle:t.getModel([`select`,`itemStyle`]).getItemStyle(),focus:n.get(`focus`),blurScope:n.get(`blurScope`),emphasisDisabled:n.get(`disabled`),hoverScale:n.get(`scale`),labelStatesModels:d_(t),cursorStyle:t.get(`cursor`)}}function _P(e,t,n,r,i,a,o){var s=new e(t,n,r,i);return s.setPosition(a),t.setItemGraphicEl(n,s),o.add(s),s}var vP,yP=n((()=>{s_(),pP(),K(),E_(),vP=function(){function e(e){this.group=new _s,this._SymbolCtor=e||fP}return e.prototype.updateData=function(e,t){this._progressiveEls=null,t=hP(t);var n=this.group,r=e.hostModel,i=this._data,a=this._SymbolCtor,o=t.disableAnimation,s=this._seriesScope=gP(e),c={disableAnimation:o},l=t.getSymbolPoint||function(t){return e.getItemLayout(t)};i||n.removeAll(),e.diff(i).add(function(r){var i=l(r);mP(e,i,r,t)&&_P(a,e,r,s,c,i,n)}).update(function(u,d){var f=i.getItemGraphicEl(d),p=l(u);if(!mP(e,p,u,t)){n.remove(f);return}var m=e.getItemVisual(u,`symbol`)||`circle`,h=f&&f.getSymbolType&&f.getSymbolType();if(!f||h&&h!==m)n.remove(f),f=new a(e,u,s,c),f.setPosition(p);else{f.updateData(e,u,s,c);var g={x:p[0],y:p[1]};o?f.attr(g):ig(f,g,r)}n.add(f),e.setItemGraphicEl(u,f)}).remove(function(e){var t=i.getItemGraphicEl(e);t&&t.fadeOut(function(){n.remove(t)},r)}).execute(),this._getSymbolPoint=l,this._data=e},e.prototype.updateLayout=function(e){var t=this._data;if(t)for(var n=this,r=t.getStore(),i=0,a=r.count();i<a;i++){var o=t.getItemGraphicEl(i),s=n._getSymbolPoint(i);mP(t,s,i,e)?(o||=_P(n._SymbolCtor,t,i,n._seriesScope,{disableAnimation:!0},s,n.group),o.stopAnimation(),o.setPosition(s),o.markRedraw()):o&&(n.group.remove(o),t.setItemGraphicEl(i,null))}},e.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=gP(e),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(e,t,n,r){this._progressiveEls=[],r=hP(r);function i(e){e.isGroup||(e.incremental=n,e.ensureState(`emphasis`).hoverLayer=2)}for(var a=e.start;a<e.end;a++){var o=t.getItemLayout(a);if(mP(t,o,a,r)){var s=new this._SymbolCtor(t,a,this._seriesScope);s.traverse(i),s.setPosition(o),this.group.add(s),t.setItemGraphicEl(a,s),this._progressiveEls.push(s)}}},e.prototype.eachRendered=function(e){Vg(this._progressiveEls||this.group,e)},e.prototype.remove=function(e){var t=this.group,n=this._data;n&&e?n.eachItemGraphicEl(function(e){e.fadeOut(function(){t.remove(e)},n.hostModel)}):t.removeAll()},e}()}));function bP(e,t,n){var r=e.getBaseAxis(),i=e.getOtherAxis(r),a=xP(i,n),o=r.dim,s=i.dim,c=t.mapDimension(s),l=t.mapDimension(o),u=+(s===`x`||s===`radius`),d=R(e.dimensions,function(e){return t.mapDimension(e)}),f=!1,p=t.getCalculationInfo(`stackResultDimension`);return QO(t,d[0])&&(f=!0,d[0]=p),QO(t,d[1])&&(f=!0,d[1]=p),{dataDimsForPoint:d,valueStart:a,valueAxisDim:s,baseAxisDim:o,stacked:!!f,valueDim:c,baseDim:l,baseDataOffset:u,stackedOverDimension:t.getCalculationInfo(`stackedOverDimension`)}}function xP(e,t){var n=0,r=e.scale.getExtent();return t===`start`?n=r[0]:t===`end`?n=r[1]:Ze(t)&&!isNaN(t)?n=t:r[0]>0?n=r[0]:r[1]<0&&(n=r[1]),n}function SP(e,t,n,r){var i=NaN;e.stacked&&(i=n.get(n.getCalculationInfo(`stackedOverDimension`),r)),isNaN(i)&&(i=e.valueStart);var a=e.baseDataOffset,o=[];return o[a]=n.get(e.baseDim,r),o[1-a]=i,t.dataToPoint(o)}function CP(e,t){return!isFinite(e)||!isFinite(t)}var wP=n((()=>{ek(),K()}));function TP(e){return EP({ctor:DP},e).arr}function EP(e,t){process.env.NODE_ENV!==`production`&&W(t!=null&&isFinite(t)&&t>=0&&e.hasOwnProperty(`ctor`));var n=e.arr,r=e.ctor;if(t>wc&&(t=wc),!n||e.typed&&n.length<t){var i=void 0;if(r)try{i=new r(t),e.typed=!0,n&&i.set(n)}catch(e){process.env.NODE_ENV!==`production`&&kc(e)}if(!i&&(i=[],e.typed=!1,n))for(var a=0,o=n.length;a<o;a++)i[a]=n[a];e.arr=i}return e}var DP,OP,kP=n((()=>{K(),Lc(),tp(),Y(),DP=typeof Float32Array<`u`?Float32Array:void 0,OP=typeof Float64Array<`u`?Float64Array:void 0}));function AP(e,t){var n=[];return t.diff(e).add(function(e){n.push({cmd:`+`,idx:e})}).update(function(e,t){n.push({cmd:`=`,idx:t,idx1:e})}).remove(function(e){n.push({cmd:`-`,idx:e})}).execute(),n}function jP(e,t,n,r,i,a,o,s){for(var c=AP(e,t),l=[],u=[],d=[],f=[],p=[],m=[],h=[],g=bP(i,t,o),_=e.getLayout(`points`)||[],v=t.getLayout(`points`)||[],y=0;y<c.length;y++){var b=c[y],x=!0,S=void 0,C=void 0;switch(b.cmd){case`=`:S=b.idx*2,C=b.idx1*2;var w=_[S],T=_[S+1],E=v[C],D=v[C+1];(isNaN(w)||isNaN(T))&&(w=E,T=D),l.push(w,T),u.push(E,D),d.push(n[S],n[S+1]),f.push(r[C],r[C+1]),h.push(t.getRawIndex(b.idx1));break;case`+`:var O=b.idx,k=g.dataDimsForPoint,A=i.dataToPoint([t.get(k[0],O),t.get(k[1],O)]);C=O*2,l.push(A[0],A[1]),u.push(v[C],v[C+1]);var j=SP(g,i,t,O);d.push(j[0],j[1]),f.push(r[C],r[C+1]),h.push(t.getRawIndex(O));break;case`-`:x=!1}x&&(p.push(b),m.push(m.length))}m.sort(function(e,t){return h[e]-h[t]});for(var ee=l.length,te=TP(ee),ne=TP(ee),M=TP(ee),re=TP(ee),ie=[],y=0;y<m.length;y++){var ae=m[y],oe=y*2,se=ae*2;te[oe]=l[se],te[oe+1]=l[se+1],ne[oe]=u[se],ne[oe+1]=u[se+1],M[oe]=d[se],M[oe+1]=d[se+1],re[oe]=f[se],re[oe+1]=f[se+1],ie[y]=p[ae]}return{current:te,next:ne,stackedOnCurrent:M,stackedOnNext:re,status:ie}}var MP=n((()=>{wP(),kP()}));function NP(e,t,n,r,i,a,o,s,c){for(var l,u,d,f,p,m,h=n,g=0;g<r;g++){var _=t[h*2],v=t[h*2+1];if(h>=i||h<0)break;if(CP(_,v)){if(c){h+=a;continue}break}if(h===n)e[a>0?`moveTo`:`lineTo`](_,v),d=_,f=v;else{var y=_-l,b=v-u;if(y*y+b*b<.5){h+=a;continue}if(o>0){for(var x=h+a,S=t[x*2],C=t[x*2+1];S===_&&C===v&&g<r;)g++,x+=a,h+=a,S=t[x*2],C=t[x*2+1],_=t[h*2],v=t[h*2+1],y=_-l,b=v-u;var w=g+1;if(c)for(;CP(S,C)&&w<r;)w++,x+=a,S=t[x*2],C=t[x*2+1];var T=.5,E=0,D=0,O=void 0,k=void 0;if(w>=r||CP(S,C))p=_,m=v;else{E=S-l,D=C-u;var A=_-l,j=S-_,ee=v-u,te=C-v,ne=void 0,M=void 0;if(s===`x`){ne=Math.abs(A),M=Math.abs(j);var re=E>0?1:-1;p=_-re*ne*o,m=v,O=_+re*M*o,k=v}else if(s===`y`){ne=Math.abs(ee),M=Math.abs(te);var ie=D>0?1:-1;p=_,m=v-ie*ne*o,O=_,k=v+ie*M*o}else ne=Math.sqrt(A*A+ee*ee),M=Math.sqrt(j*j+te*te),T=M/(M+ne),p=_-E*o*(1-T),m=v-D*o*(1-T),O=_+E*o*T,k=v+D*o*T,O=PP(O,FP(S,_)),k=PP(k,FP(C,v)),O=FP(O,PP(S,_)),k=FP(k,PP(C,v)),E=O-_,D=k-v,p=_-E*ne/M,m=v-D*ne/M,p=PP(p,FP(l,_)),m=PP(m,FP(u,v)),p=FP(p,PP(l,_)),m=FP(m,PP(u,v)),E=_-p,D=v-m,O=_+E*M/ne,k=v+D*M/ne}e.bezierCurveTo(d,f,p,m,_,v),d=O,f=k}else e.lineTo(_,v)}l=_,u=v,h+=a}return g}var PP,FP,IP,LP,RP,zP,BP=n((()=>{P(),af(),Td(),Fi(),Wy(),wP(),PP=Math.min,FP=Math.max,IP=function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e}(),LP=function(e){N(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`ec-polyline`,n}return t.prototype.getDefaultStyle=function(){return{stroke:Z.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new IP},t.prototype.buildPath=function(e,t){var n=t.points,r=0,i=n.length/2;if(t.connectNulls){for(;i>0&&CP(n[i*2-2],n[i*2-1]);i--);for(;r<i&&CP(n[r*2],n[r*2+1]);r++);}for(;r<i;)r+=NP(e,n,r,i,i,1,t.smooth,t.smoothMonotone,t.connectNulls)+1},t.prototype.getPointOn=function(e,t){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n=this.path.data,r=wd.CMD,i,a,o=t===`x`,s=[],c=0;c<n.length;){var l=n[c++],u=void 0,d=void 0,f=void 0,p=void 0,m=void 0,h=void 0,g=void 0;switch(l){case r.M:i=n[c++],a=n[c++];break;case r.L:if(u=n[c++],d=n[c++],g=o?(e-i)/(u-i):(e-a)/(d-a),g<=1&&g>=0){var _=o?(d-a)*g+a:(u-i)*g+i;return o?[e,_]:[_,e]}i=u,a=d;break;case r.C:u=n[c++],d=n[c++],f=n[c++],p=n[c++],m=n[c++],h=n[c++];var v=o?mi(i,u,f,m,e,s):mi(a,d,p,h,e,s);if(v>0)for(var y=0;y<v;y++){var b=s[y];if(b<=1&&b>=0){var _=o?fi(a,d,p,h,b):fi(i,u,f,m,b);return o?[e,_]:[_,e]}}i=m,a=h;break}}},t}(rf),RP=function(e){N(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(IP),zP=function(e){N(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`ec-polygon`,n}return t.prototype.getDefaultShape=function(){return new RP},t.prototype.buildPath=function(e,t){var n=t.points,r=t.stackedOnPoints,i=0,a=n.length/2,o=t.smoothMonotone;if(t.connectNulls){for(;a>0&&CP(n[a*2-2],n[a*2-1]);a--);for(;i<a&&CP(n[i*2],n[i*2+1]);i++);}for(;i<a;){var s=NP(e,n,i,a,a,1,t.smooth,o,t.connectNulls);NP(e,r,i+s-1,s,a,-1,t.stackedOnSmooth,o,t.connectNulls),i+=s+1,e.closePath()}},t}(rf)}));function VP(e,t,n,r,i){var a=e.getArea(),o=a.x,s=a.y,c=a.width,l=a.height,u=n.get([`lineStyle`,`width`])||0;o-=u/2,s-=u/2,c+=u,l+=u,c=Math.ceil(c),o!==Math.floor(o)&&(o=Math.floor(o),c++);var d=new Cf({shape:{x:o,y:s,width:c,height:l}});if(t){var f=e.getBaseAxis(),p=f.isHorizontal(),m=f.inverse;p?(m&&(d.shape.x+=c),d.shape.width=0):(m||(d.shape.y+=l),d.shape.height=0);var h=B(i)?function(e){i(e,d)}:null;ag(d,{shape:{width:c,height:l,x:o,y:s}},n,null,r,h)}return d}function HP(e,t,n){var r=e.getArea(),i=Bs(r.r0,1),a=Bs(r.r,1),o=new sh({shape:{cx:Bs(e.cx,1),cy:Bs(e.cy,1),r0:i,r:a,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}});return t&&(e.getBaseAxis().dim===`angle`?o.shape.endAngle=r.startAngle:o.shape.r=i,ag(o,{shape:{endAngle:r.endAngle,r:a}},n)),o}function UP(e,t,n,r,i){return e?e.type===`polar`?HP(e,t,n):e.type===`cartesian2d`?VP(e,t,n,r,i):null:null}var WP=n((()=>{s_(),Y(),K()}));function GP(e,t){return e.type===t}var KP=n((()=>{}));function qP(e,t){if(process.env.NODE_ENV!==`production`){var n=e+`^_^`+t;JP[n]||(console.warn(`[ECharts] DEPRECATED: "`+e+`" has been deprecated. `+t),JP[n]=!0)}}var JP,YP=n((()=>{JP={}}));function XP(e,t){if(e.length===t.length){for(var n=0;n<e.length;n++)if(e[n]!==t[n])return;return!0}}function ZP(e){for(var t=hl(),n=hl(),r=0;r<e.length;){var i=e[r++],a=e[r++];CP(i,a)||(gl(t,i),gl(n,a))}return[t,n]}function QP(e,t){var n=ZP(e),r=n[0],i=n[1],a=ZP(t),o=a[0],s=a[1];return Math.max(Math.abs(r[0]-o[0]),Math.abs(i[0]-s[0]),Math.abs(r[1]-o[1]),Math.abs(i[1]-s[1]))}function $P(e){return Ze(e)?e:e?.5:0}function eF(e,t,n){if(n.valueDim==null)return[];for(var r=t.count(),i=TP(r*2),a=0;a<r;a++){var o=SP(n,e,t,a);i[a*2]=o[0],i[a*2+1]=o[1]}return i}function tF(e,t,n,r,i){var a=n.getBaseAxis(),o=a.dim===`x`||a.dim===`radius`?0:1,s=[],c=0,l=[],u=[],d=[],f=[];if(i){for(c=0;c<e.length;c+=2){var p=t||e;CP(p[c],p[c+1])||f.push(e[c],e[c+1])}e=f}for(c=0;c<e.length-2;c+=2)switch(d[0]=e[c+2],d[1]=e[c+3],u[0]=e[c],u[1]=e[c+1],s.push(u[0],u[1]),r){case`end`:l[o]=d[o],l[1-o]=u[1-o],s.push(l[0],l[1]);break;case`middle`:var m=(u[o]+d[o])/2,h=[];l[o]=h[o]=m,l[1-o]=u[1-o],h[1-o]=d[1-o],s.push(l[0],l[1]),s.push(h[0],h[1]);break;default:l[o]=u[o],l[1-o]=d[1-o],s.push(l[0],l[1])}return s.push(e[c++],e[c++]),s}function nF(e,t){var n=[],r=e.length,i,a;function o(e,t,n){var r=e.coord;return{coord:n,color:ca((n-r)/(t.coord-r),[e.color,t.color])}}for(var s=0;s<r;s++){var c=e[s],l=c.coord;if(l<0)i=c;else if(l>t){a?n.push(o(a,c,t)):i&&n.push(o(i,c,0),o(i,c,t));break}else i&&=(n.push(o(i,c,0)),null),n.push(c),a=c}return n}function rF(e,t,n){var r=e.getVisual(`visualMeta`);if(!(!r||!r.length||!e.count())){if(t.type!==`cartesian2d`){process.env.NODE_ENV!==`production`&&console.warn(`Visual map on line style is only supported on cartesian2d.`);return}for(var i,a,o=r.length-1;o>=0;o--){var s=e.getDimensionInfo(r[o].dimension);if(i=s&&s.coordDim,i===`x`||i===`y`){a=r[o];break}}if(!a){process.env.NODE_ENV!==`production`&&console.warn(`Visual map on line style only support x or y dimension.`);return}var c=t.getAxis(i),l=R(a.stops,function(e){return{coord:c.toGlobalCoord(c.dataToCoord(e.value)),color:e.color}}),u=l.length,d=a.outerColors.slice();u&&l[0].coord>l[u-1].coord&&(l.reverse(),d.reverse());var f=nF(l,i===`x`?n.getWidth():n.getHeight()),p=f.length;if(!p&&u)return l[0].coord<0?d[1]?d[1]:l[u-1].color:d[0]?d[0]:l[0].color;var m=10,h=f[0].coord-m,g=f[p-1].coord+m,_=g-h;if(_<.001)return`transparent`;L(f,function(e){e.offset=(e.coord-h)/_}),f.push({offset:p?f[p-1].offset:.5,color:d[1]||`transparent`}),f.unshift({offset:p?f[0].offset:.5,color:d[0]||`transparent`});var v=new Rh(0,0,0,0,f,!0);return v[i]=h,v[i+`2`]=g,v}}function iF(e,t,n){var r=e.get(`showAllSymbol`),i=r===`auto`;if(!(r&&!i)){var a=n.getAxesByScale(`ordinal`)[0];if(a&&!(i&&aF(a,t))){var o=t.mapDimension(a.dim),s={};return L(a.getViewLabels(),function(e){e.tick.offInterval||(s[AA(a.scale,e.tick)]=1)}),function(e){return!s.hasOwnProperty(t.get(o,e))}}}}function aF(e,t){var n=e.getExtent(),r=Math.abs(n[1]-n[0])/e.scale.count();isNaN(r)&&(r=0);for(var i=t.count(),a=Math.max(1,Math.round(i/5)),o=0;o<i;o+=a)if(fP.getSymbolSize(t,o)[+!!e.isHorizontal()]*1.5>r)return!1;return!0}function oF(e){for(var t=e.length/2;t>0&&CP(e[t*2-2],e[t*2-1]);t--);return t-1}function sF(e,t){return[e[t*2],e[t*2+1]]}function cF(e,t,n){for(var r=e.length/2,i=n===`x`?0:1,a,o,s=0,c=-1,l=0;l<r;l++)if(o=e[l*2+i],!CP(o,e[l*2+1-i])){if(l===0){a=o;continue}if(a<=t&&o>=t||a>=t&&o<=t){c=l;break}s=l,a=o}return{range:[s,c],t:(t-a)/(o-a)}}function lF(e){if(e.get([`endLabel`,`show`]))return!0;for(var t=0;t<rm.length;t++)if(e.get([rm[t],`endLabel`,`show`]))return!0;return!1}function uF(e,t,n,r){if(GP(t,`cartesian2d`)){var i=r.getModel(`endLabel`),a=i.get(`valueAnimation`),o=r.getData(),s={lastFrameIndex:0},c=lF(r)?function(n,r){e._endLabelOnDuring(n,r,o,s,a,i,t)}:null,l=t.getBaseAxis().isHorizontal(),u=VP(t,n,r,function(){var t=e._endLabel;t&&n&&s.originalX!=null&&t.attr({x:s.originalX,y:s.originalY})},c);if(!r.get(`clip`,!0)){var d=u.shape,f=Math.max(d.width,d.height);l?(d.y-=f,d.height+=f*2):(d.x-=f,d.width+=f*2)}return c&&c(1,u),u}else return process.env.NODE_ENV!==`production`&&r.get([`endLabel`,`show`])&&console.warn(`endLabel is not supported for lines in polar systems.`),HP(t,n,r)}function dF(e,t){var n=t.getBaseAxis(),r=n.isHorizontal(),i=n.inverse,a=r?i?`right`:`left`:`center`,o=r?`middle`:i?`top`:`bottom`;return{normal:{align:e.get(`align`)||a,verticalAlign:e.get(`verticalAlign`)||o}}}var fF,pF=n((()=>{P(),K(),yP(),pP(),MP(),s_(),X(),BP(),MC(),wP(),WP(),KP(),pm(),E_(),uP(),Kf(),kP(),dy(),YP(),xa(),NA(),fF=function(e){N(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(){var e=new _s,t=new vP;this.group.add(t.group),this._symbolDraw=t,this._lineGroup=e,this._changePolyState=Mt(this._changePolyState,this)},t.prototype.render=function(e,t,n){var r=e.coordinateSystem,i=this.group,a=e.getData(),o=e.getModel(`lineStyle`),s=e.getModel(`areaStyle`),c=a.getLayout(`points`)||[],l=r.type===`polar`,u=this._coordSys,d=this._symbolDraw,f=this._polyline,p=this._polygon,m=this._lineGroup,h=!t.ssr&&e.get(`animation`),g=!s.isEmpty(),_=s.get(`origin`),v=bP(r,a,_),y=g&&eF(r,a,v),b=e.get(`showSymbol`),x=e.get(`connectNulls`),S=b&&!l&&iF(e,a,r),C=this._data;C&&C.eachItemGraphicEl(function(e,t){e.__temp&&(i.remove(e),C.setItemGraphicEl(t,null))}),b||d.remove(),i.add(m);var w=l?!1:e.get(`step`),T;r&&r.getArea&&e.get(`clip`,!0)&&(T=r.getArea(),T.width==null?T.r0&&(T.r0-=.5,T.r+=.5):(T.x-=.1,T.y-=.1,T.width+=.2,T.height+=.2)),this._clipShapeForSymbol=T;var E=rF(a,r,n)||a.getVisual(`style`)[a.getVisual(`drawType`)];if(!(f&&u.type===r.type&&w===this._step))b&&d.updateData(a,{isIgnore:S,clipShape:T,disableAnimation:!0,getSymbolPoint:function(e){return[c[e*2],c[e*2+1]]}}),h&&this._initSymbolLabelAnimation(a,r,T),w&&(y&&=tF(y,c,r,w,x),c=tF(c,null,r,w,x)),f=this._newPolyline(c),g?p=this._newPolygon(c,y):p&&=(m.remove(p),this._polygon=null),l||this._initOrUpdateEndLabel(e,r,sy(E)),m.setClipPath(uF(this,r,!0,e));else{g&&!p?p=this._newPolygon(c,y):p&&!g&&(m.remove(p),p=this._polygon=null),l||this._initOrUpdateEndLabel(e,r,sy(E));var D=m.getClipPath();D?ag(D,{shape:uF(this,r,!1,e).shape},e):m.setClipPath(uF(this,r,!0,e)),b&&d.updateData(a,{isIgnore:S,clipShape:T,disableAnimation:!0,getSymbolPoint:function(e){return[c[e*2],c[e*2+1]]}}),(!XP(this._stackedOnPoints,y)||!XP(this._points,c))&&(h?this._doUpdateAnimation(a,y,r,n,w,_,x):(w&&(y&&=tF(y,c,r,w,x),c=tF(c,null,r,w,x)),f.setShape({points:c}),p&&p.setShape({points:c,stackedOnPoints:y})))}var O=e.getModel(`emphasis`),k=O.get(`focus`),A=O.get(`blurScope`),j=O.get(`disabled`);if(f.useStyle(ze(o.getLineStyle(),{fill:`none`,stroke:E,lineJoin:`bevel`})),Kp(f,e,`lineStyle`),f.style.lineWidth>0&&e.get([`emphasis`,`lineStyle`,`width`])===`bolder`){var ee=f.getState(`emphasis`).style;ee.lineWidth=+f.style.lineWidth+1}Wf(f).seriesIndex=e.seriesIndex,Wp(f,k,A,j);var te=$P(e.get(`smooth`)),ne=e.get(`smoothMonotone`);if(f.setShape({smooth:te,smoothMonotone:ne,connectNulls:x}),p){var M=a.getCalculationInfo(`stackedOnSeries`),re=0;p.useStyle(ze(s.getAreaStyle(),{fill:E,opacity:.7,lineJoin:`bevel`,decal:a.getVisual(`style`).decal})),M&&(re=$P(M.get(`smooth`))),p.setShape({smooth:te,stackedOnSmooth:re,smoothMonotone:ne,connectNulls:x}),Kp(p,e,`areaStyle`),Wf(p).seriesIndex=e.seriesIndex,Wp(p,k,A,j)}var ie=this._changePolyState;a.eachItemGraphicEl(function(e){e&&(e.onHoverStateChange=ie)}),this._polyline.onHoverStateChange=ie,this._data=a,this._coordSys=r,this._stackedOnPoints=y,this._points=c,this._step=w,this._valueOrigin=_;var ae=e.get(`triggerEvent`),oe=e.get(`triggerLineEvent`);process.env.NODE_ENV!==`production`&&oe&&qP(`triggerLineEvent`,"Use the `triggerEvent` option instead.");var se=oe===!0||ae===!0||ae===`line`,ce=oe===!0||ae===!0||ae===`area`;this.packEventData(e,f,se),p&&this.packEventData(e,p,ce)},t.prototype.packEventData=function(e,t,n){Wf(t).eventData=n?{componentType:`series`,componentSubType:`line`,componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:`line`,selfType:t===this._polygon?`area`:`line`}:null},t.prototype.highlight=function(e,t,n,r){var i=e.getData(),a=al(i,r);if(this._changePolyState(`emphasis`),!(a instanceof Array)&&a!=null&&a>=0){var o=i.getLayout(`points`),s=i.getItemGraphicEl(a);if(!s){var c=o[a*2],l=o[a*2+1];if(CP(c,l)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,l))return;var u=e.get(`zlevel`)||0,d=e.get(`z`)||0;s=new fP(i,a),s.x=c,s.y=l,s.setZ(u,d);var f=s.getSymbolPath().getTextContent();f&&(f.zlevel=u,f.z=d,f.z2=this._polyline.z2+1),s.__temp=!0,i.setItemGraphicEl(a,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else AC.prototype.highlight.call(this,e,t,n,r)},t.prototype.downplay=function(e,t,n,r){var i=e.getData(),a=al(i,r);if(this._changePolyState(`normal`),a!=null&&a>=0){var o=i.getItemGraphicEl(a);o&&(o.__temp?(i.setItemGraphicEl(a,null),this.group.remove(o)):o.downplay())}else AC.prototype.downplay.call(this,e,t,n,r)},t.prototype._changePolyState=function(e){var t=this._polygon;gp(this._polyline,e),t&&gp(t,e)},t.prototype._newPolyline=function(e){var t=this._polyline;return t&&this._lineGroup.remove(t),t=new LP({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(t),this._polyline=t,t},t.prototype._newPolygon=function(e,t){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new zP({shape:{points:e,stackedOnPoints:t},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},t.prototype._initSymbolLabelAnimation=function(e,t,n){var r,i,a=t.getBaseAxis(),o=a.inverse;t.type===`cartesian2d`?(r=a.isHorizontal(),i=!1):t.type===`polar`&&(r=a.dim===`angle`,i=!0);var s=e.hostModel,c=s.get(`animationDuration`);B(c)&&(c=c(null));var l=s.get(`animationDelay`)||0,u=B(l)?l(null):l;e.eachItemGraphicEl(function(e,a){var s=e;if(s){var d=[e.x,e.y],f=void 0,p=void 0,m=void 0;if(n)if(i){var h=n,g=t.pointToCoord(d);r?(f=h.startAngle,p=h.endAngle,m=-g[1]/180*Math.PI):(f=h.r0,p=h.r,m=g[0])}else{var _=n;r?(f=_.x,p=_.x+_.width,m=e.x):(f=_.y+_.height,p=_.y,m=e.y)}var v=p===f?0:(m-f)/(p-f);o&&(v=1-v);var y=B(l)?l(a):c*v+u,b=s.getSymbolPath(),x=b.getTextContent();s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:y}),x&&x.animateFrom({style:{opacity:0}},{duration:300,delay:y}),b.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,t,n){var r=e.getModel(`endLabel`);if(lF(e)){var i=e.getData(),a=this._polyline,o=i.getLayout(`points`);if(!o){a.removeTextContent(),this._endLabel=null;return}var s=this._endLabel;s||(s=this._endLabel=new zf({z2:200}),s.ignoreClip=!0,a.setTextContent(this._endLabel),a.disableLabelAnimation=!0);var c=oF(o);c>=0&&(u_(a,d_(e,`endLabel`),{inheritColor:n,labelFetcher:e,labelDataIndex:c,defaultText:function(e,t,n){return n==null?cP(i,e):lP(i,n)},enableTextSetter:!0},dF(r,t)),a.textConfig.position=null)}else this._endLabel&&=(this._polyline.removeTextContent(),null)},t.prototype._endLabelOnDuring=function(e,t,n,r,i,a,o){var s=this._endLabel,c=this._polyline;if(s){e<1&&r.originalX==null&&(r.originalX=s.x,r.originalY=s.y);var l=n.getLayout(`points`),u=n.hostModel,d=u.get(`connectNulls`),f=a.get(`precision`),p=a.get(`distance`)||0,m=o.getBaseAxis(),h=m.isHorizontal(),g=m.inverse,_=t.shape,v=g?h?_.x:_.y+_.height:h?_.x+_.width:_.y,y=(h?p:0)*(g?-1:1),b=(h?0:-p)*(g?-1:1),x=h?`x`:`y`,S=cF(l,v,x),C=S.range,w=C[1]-C[0],T=void 0;if(w>=1){if(w>1&&!d){var E=sF(l,C[0]);s.attr({x:E[0]+y,y:E[1]+b}),i&&(T=u.getRawValue(C[0]))}else{var E=c.getPointOn(v,x);E&&s.attr({x:E[0]+y,y:E[1]+b});var D=u.getRawValue(C[0]),O=u.getRawValue(C[1]);i&&(T=ml(n,f,D,O,S.t))}r.lastFrameIndex=C[0]}else{var k=e===1||r.lastFrameIndex>0?C[0]:0,E=sF(l,k);i&&(T=u.getRawValue(k)),s.attr({x:E[0]+y,y:E[1]+b})}if(i){var A=w_(s);typeof A.setLabelText==`function`&&A.setLabelText(T)}}},t.prototype._doUpdateAnimation=function(e,t,n,r,i,a,o){var s=this._polyline,c=this._polygon,l=e.hostModel,u=jP(this._data,e,this._stackedOnPoints,t,this._coordSys,n,this._valueOrigin,a),d=u.current,f=u.stackedOnCurrent,p=u.next,m=u.stackedOnNext;if(i&&(f=tF(u.stackedOnCurrent,u.current,n,i,o),d=tF(u.current,null,n,i,o),m=tF(u.stackedOnNext,u.next,n,i,o),p=tF(u.next,null,n,i,o)),QP(d,p)>3e3||c&&QP(f,m)>3e3){s.stopAnimation(),s.setShape({points:p}),c&&(c.stopAnimation(),c.setShape({points:p,stackedOnPoints:m}));return}s.shape.__points=u.current,s.shape.points=d;var h={shape:{points:p}};u.current!==d&&(h.shape.__points=u.next),s.stopAnimation(),ig(s,h,l),c&&(c.setShape({points:d,stackedOnPoints:f}),c.stopAnimation(),ig(c,{shape:{stackedOnPoints:m}},l),s.shape.points!==c.shape.points&&(c.shape.points=s.shape.points));for(var g=[],_=u.status,v=0;v<_.length;v++)if(_[v].cmd===`=`){var y=e.getItemGraphicEl(_[v].idx1);y&&g.push({el:y,ptIdx:v})}s.animators&&s.animators.length&&s.animators[0].during(function(){c&&c.dirtyShape();for(var e=s.shape.__points,t=0;t<g.length;t++){var n=g[t].el,r=g[t].ptIdx*2;n.x=e[r],n.y=e[r+1],n.markRedraw()}})},t.prototype.remove=function(e){var t=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl(function(e,r){e.__temp&&(t.remove(e),n.setItemGraphicEl(r,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type=`line`,t}(AC)}));function mF(e,t){return{seriesType:e,plan:SC(),reset:function(e){var n=e.getData(),r=e.coordinateSystem,i=e.pipelineContext,a=t||i.large;if(r){var o=R(r.dimensions,function(e){return n.mapDimension(e)}).slice(0,2),s=o.length,c=n.getCalculationInfo(`stackResultDimension`);QO(n,o[0])&&(o[0]=c),QO(n,o[1])&&(o[1]=c);var l=n.getStore(),u=n.getDimensionIndex(o[0]),d=n.getDimensionIndex(o[1]);return s&&{progress:function(e,t){for(var n=e.end-e.start,i=a&&TP(n*s),o=[],c=[],f=e.start,p=0;f<e.end;f++){var m=void 0;if(s===1){var h=l.get(u,f);m=r.dataToPoint(h,null,c)}else o[0]=l.get(u,f),o[1]=l.get(d,f),m=r.dataToPoint(o,null,c);a?(i[p++]=m[0],i[p++]=m[1]):t.setItemLayout(f,m.slice())}a&&(t.setLayout(`points`,i),t.setLayout(`pointsRange`,{start:e.start,end:e.end}))}}}}}}var hF=n((()=>{K(),CC(),ek(),kP()}));function gF(e){return{seriesType:e,reset:function(e,t,n){var r=e.getData(),i=e.get(`sampling`),a=e.coordinateSystem,o=r.count();if(o>10&&a.type===`cartesian2d`&&i){var s=a.getBaseAxis(),c=a.getOtherAxis(s),l=s.getExtent(),u=n.getDevicePixelRatio(),d=Math.abs(l[1]-l[0])*(u||1),f=Math.round(o/d);if(isFinite(f)&&f>1){i===`lttb`?e.setData(r.lttbDownSample(r.mapDimension(c.dim),1/f)):i===`minmax`&&e.setData(r.minmaxDownSample(r.mapDimension(c.dim),1/f));var p=void 0;V(i)?p=_F[i]:B(i)&&(p=i),p&&e.setData(r.downSample(r.mapDimension(c.dim),1/f,p,vF))}}}}}var _F,vF,yF=n((()=>{K(),_F={average:function(e){for(var t=0,n=0,r=0;r<e.length;r++)isNaN(e[r])||(t+=e[r],n++);return n===0?NaN:t/n},sum:function(e){for(var t=0,n=0;n<e.length;n++)t+=e[n]||0;return t},max:function(e){for(var t=-1/0,n=0;n<e.length;n++)e[n]>t&&(t=e[n]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,n=0;n<e.length;n++)e[n]<t&&(t=e[n]);return isFinite(t)?t:NaN},nearest:function(e){return e[0]}},vF=function(e){return Math.round(e.length/2)}}));function bF(e){e.registerChartView(fF),e.registerSeriesModel(oP),e.registerLayout(mF(`line`,!0)),e.registerVisual({seriesType:`line`,reset:function(e){var t=e.getData(),n=e.getModel(`lineStyle`).getLineStyle();n&&!n.stroke&&(n.stroke=t.getVisual(`style`).fill),t.setVisual(`legendLineStyle`,n)}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,gF(`line`))}var xF=n((()=>{sP(),pF(),hF(),yF()})),SF,CF=n((()=>{P(),YM(),SF=function(e){N(t,e);function t(t,n,r,i,a){var o=e.call(this,t,n,r)||this;return o.index=0,o.type=i||`value`,o.position=a||`bottom`,o}return t.prototype.isHorizontal=function(){var e=this.position;return e===`top`||e===`bottom`},t.prototype.getGlobalExtent=function(e){var t=this.getExtent();return t[0]=this.toGlobalCoord(t[0]),t[1]=this.toGlobalCoord(t[1]),e&&t[0]>t[1]&&t.reverse(),t},t.prototype.pointToData=function(e,t){return this.coordToData(this.toLocalCoord(e[this.dim===`x`?0:1]),t)},t.prototype.setCategorySortInfo=function(e){if(this.type!==`category`)return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(JM)}));function wF(){return TF}var TF,EF=n((()=>{TF=null})),DF,OF=n((()=>{DF=`expandAxisBreak`}));function kF(e,t,n,r){var i=n.axis,a=t.ensureRecord(n),o=[],s,c=GF(e.axisName)&&TA(e.nameLocation);L(r,function(e){var t=ON(e);if(!(!t||t.label.ignore)){o.push(t);var n=a.transGroup;c&&(n.transform?ar(eI,n.transform):$n(eI),t.transform&&tr(eI,eI,t.transform),J.copy(tI,t.localRect),tI.applyTransform(eI),s?s.union(tI):J.copy(s=new J(0,0,0,0),tI))}});var l=Math.abs(a.dirVec.x)>.1?`x`:`y`,u=a.transGroup[l];if(o.sort(function(e,t){return Math.abs(e.label[l]-u)-Math.abs(t.label[l]-u)}),c&&s){var d=i.getExtent(),f=Math.min(d[0],d[1]),p=Math.max(d[0],d[1])-f;s.union(new J(f,0,p,1))}a.stOccupiedRect=s,a.labelInfoList=o}function AF(e,t,n){var r=new q;LN(e,t,r,{direction:Math.atan2(n.y,n.x),bidirectional:!1,touchThreshold:.05})&&jN(t,r)}function jF(e,t,n,r){for(var i=q.dot(r,t)>=0,a=0,o=e.length;a<o;a++){var s=e[i?a:o-1-a];s.label.ignore||AF(s,n,r)}}function MF(e,t,n,r,i,a,o,s){HF(t)||VF(e,t,i,s,r,o);var c=t.labelLayoutList;WF(e,r,c,a),qF(r,e.rotation,c);var l=e.optionHideOverlap;PF(r,c,l),l&&IN(Ge(c,function(e){return e&&!e.label.ignore})),kF(e,n,r,c)}function NF(e,t,n,r){var i=Xs(n-e),a,o,s=r[0]>r[1],c=t===`start`&&!s||t!==`start`&&s;return Zs(i-JF/2)?(o=c?`bottom`:`top`,a=`center`):Zs(i-JF*1.5)?(o=c?`top`:`bottom`,a=`center`):(o=`middle`,a=i<JF*1.5&&i>JF/2?c?`left`:`right`:c?`right`:`left`),{rotation:i,textAlign:a,textVerticalAlign:o}}function PF(e,t,n){var r=e.axis,i=e.get([`axisLabel`,`customValues`]);if(CA(r))return;function a(e,a,o){var s=ON(t[a]),c=ON(t[o]),l=r.scale;if(!(!s||!c)){if(e==null){if(!n&&i)return;var u=ZF(s.label).labelInfo.tick;if(Dk(l)&&u.notNice||kk(l)&&u.offInterval){IF(s.label);return}}if(e===!1||s.suggestIgnore){IF(s.label);return}if(c.suggestIgnore){IF(c.label);return}var d=.1;if(!n){var f=[0,0,0,0];s=MN({marginForce:f},s),c=MN({marginForce:f},c)}LN(s,c,null,{touchThreshold:d})&&IF(e?c.label:s.label)}}var o=e.get([`axisLabel`,`showMinLabel`]),s=e.get([`axisLabel`,`showMaxLabel`]),c=t.length;a(o,0,1),a(s,c-1,c-2)}function FF(e,t,n){e.showMinorTicks||L(t,function(e){if(e&&e.label.ignore)for(var t=0;t<n.length;t++){var r=n[t],i=QF(r),a=ZF(e.label);if(i.tickValue!=null&&!i.onBand&&i.tickValue===a.labelInfo.tick.value){IF(r);return}}})}function IF(e){e&&(e.ignore=!0)}function LF(e,t,n,r,i){for(var a=[],o=[],s=[],c=0;c<e.length;c++){var l=e[c].coord;o[0]=l,o[1]=0,s[0]=l,s[1]=n,t&&(an(o,o,t),an(s,s,t));var u=new wh({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:r,z2:2,autoBatch:!0,silent:!0});Sg(u.shape,u.style.lineWidth),u.anid=i+`_`+e[c].tickValue,a.push(u);var d=QF(u);d.onBand=!!e[c].onBand,d.tickValue=e[c].tickValue}return a}function RF(e,t,n,r){var i=r.axis,a=r.getModel(`axisTick`),o=a.get(`show`);if(o===`auto`&&(o=!0,e.raw.axisTickAutoShow!=null&&(o=!!e.raw.axisTickAutoShow)),!o||i.scale.isBlank())return[];for(var s=a.getModel(`lineStyle`),c=e.tickDirection*a.get(`length`),l=LF(i.getTicksCoords(),n.transform,c,ze(s.getLineStyle(),{stroke:r.get([`axisLine`,`lineStyle`,`color`])}),`ticks`),u=0;u<l.length;u++)t.add(l[u]);return l}function zF(e,t,n,r,i){var a=r.axis,o=r.getModel(`minorTick`);if(!(!e.showMinorTicks||a.scale.isBlank())){var s=a.getMinorTicksCoords();if(s.length)for(var c=o.getModel(`lineStyle`),l=i*o.get(`length`),u=ze(c.getLineStyle(),ze(r.getModel(`axisTick`).getLineStyle(),{stroke:r.get([`axisLine`,`lineStyle`,`color`])})),d=0;d<s.length;d++)for(var f=LF(s[d],n.transform,l,u,`minorticks_`+d),p=0;p<f.length;p++)t.add(f[p])}}function BF(e,t,n){if(HF(e)){var r=e.axisLabelsCreationContext;process.env.NODE_ENV!==`production`&&W(e.labelGroup&&r);var i=r.out.noPxChangeTryDetermine;if(n.noPxChange){for(var a=!0,o=0;o<i.length;o++)a&&=i[o]();if(a)return!1}i.length&&(t.remove(e.labelGroup),UF(e,null,null,null))}return!0}function VF(e,t,n,r,i,a){var o=i.axis,s=at(e.raw.axisLabelShow,i.get([`axisLabel`,`show`])),c=new _s;n.add(c);var l=_M(r);if(!s||o.scale.isBlank()){UF(t,[],c,l);return}var u=i.getModel(`axisLabel`),d=o.getViewLabels(l),f=(at(e.raw.labelRotate,u.get(`rotate`))||0)*JF/180,p=rI.innerTextLayout(e.rotation,f,e.labelDirection),m=i.getCategories&&i.getCategories(!0),h=[],g=i.get(`triggerEvent`),_=1/0,v=-1/0;L(d,function(e,t){var n=e.tick,r=e.formattedLabel,s=e.rawLabel,l=u,f=AA(o.scale,n);if(m&&m[f]){var y=m[f];H(y)&&y.textStyle&&(l=new B_(y.textStyle,u,i.ecModel))}var b=l.getTextColor()||i.get([`axisLine`,`lineStyle`,`color`]),x=l.getShallow(`align`,!0)||p.textAlign,S=U(l.getShallow(`alignMinLabel`,!0),x),C=U(l.getShallow(`alignMaxLabel`,!0),x),w=l.getShallow(`verticalAlign`,!0)||l.getShallow(`baseline`,!0)||p.textVerticalAlign,T=U(l.getShallow(`verticalAlignMinLabel`,!0),w),E=U(l.getShallow(`verticalAlignMaxLabel`,!0),w),D=10+(n.time?.level||0);_=Math.min(_,D),v=Math.max(v,D);var O=new zf({x:0,y:0,rotation:0,silent:rI.isLabelSilent(i),z2:D,style:f_(l,{text:r,align:t===0?S:t===d.length-1?C:x,verticalAlign:t===0?T:t===d.length-1?E:w,fill:B(b)?b(o.type===`category`?s:o.type===`value`?f+``:f,t):b})});O.anid=`label_`+f;var k=ZF(O);if(k.labelInfo=e,k.layoutRotation=p.rotation,zg({el:O,componentModel:i,itemName:r,formatterParamsExtra:{isTruncated:function(){return O.isTruncated},value:s,tickIndex:t}}),g){var A=rI.makeAxisEventDataBase(i);A.targetType=`axisLabel`,A.value=s,A.tickIndex=t;var j=e.tick.break;if(j){var ee=j.parsedBreak;A.break={start:ee.vmin,end:ee.vmax}}o.type===`category`&&(A.dataIndex=f),Wf(O).eventData=A,j&&KF(i,a,O,j)}h.push(O),c.add(O)}),UF(t,R(h,function(e){return{label:e,priority:ZF(e).labelInfo.tick.break?e.z2+(v-_+1):e.z2,defaultAttr:{ignore:e.ignore}}}),c,l)}function HF(e){return!!e.labelLayoutList}function UF(e,t,n,r){e.labelLayoutList=t,e.labelGroup=n,e.axisLabelsCreationContext=r}function WF(e,t,n,r){var i=t.get([`axisLabel`,`margin`]);L(n,function(n,a){var o=ON(n);if(o){var s=o.label,c=ZF(s);o.suggestIgnore=s.ignore,s.ignore=!1,Do(oI,sI);var l=t.axis;oI.x=l.dataToCoord(AA(l.scale,c.labelInfo.tick)),oI.y=e.labelOffset+e.labelDirection*i,oI.rotation=c.layoutRotation,r.add(oI),oI.updateTransform(),r.remove(oI),oI.decomposeTransform(),Do(s,oI),s.markRedraw(),EN(o,!0),ON(o)}})}function GF(e){return!!e}function KF(e,t,n,r){n.on(`click`,function(n){var i={type:DF,breaks:[{start:r.parsedBreak.breakOption.start,end:r.parsedBreak.breakOption.end}]};i[e.axis.dim+`AxisIndex`]=e.componentIndex,t.dispatchAction(i)})}function qF(e,t,n){var r=lv();if(r){var i=r.retrieveAxisBreakPairs(n,function(e){return e&&ZF(e.label).labelInfo.tick.break},!0),a=e.get([`breakLabelLayout`,`moveOverlap`],!0);(a===!0||a===`auto`)&&L(i,function(r){wF().adjustBreakLabelPair(e.axis.inverse,t,[ON(n[r[0]]),ON(n[r[1]])])})}}var JF,YF,XF,ZF,QF,$F,eI,tI,nI,rI,iI,aI,oI,sI,cI=n((()=>{K(),s_(),Kf(),E_(),V_(),Y(),pT(),sr(),fn(),NA(),UN(),X(),EF(),OF(),mv(),Ar(),cr(),Lo(),zM(),Rk(),JF=Math.PI,YF=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],XF=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],ZF=ol(),QF=ol(),$F=function(){function e(e){this.recordMap={},this.resolveAxisNameOverlap=e}return e.prototype.ensureRecord=function(e){var t=e.axis.dim,n=e.componentIndex,r=this.recordMap,i=r[t]||(r[t]=[]);return i[n]||(i[n]={ready:{}})},e}(),eI=Qn(),tI=new J(0,0,0,0),nI=function(e,t,n,r,i,a){if(TA(e.nameLocation)){var o=a.stOccupiedRect;o&&AF(AN({},o,a.transGroup.transform),r,i)}else jF(a.labelInfoList,a.dirVec,r,i)},rI=function(){function e(e,t,n,r){this.group=new _s,this._axisModel=e,this._api=t,this._local={},this._shared=r||new $F(nI),this._resetCfgDetermined(n)}return e.prototype.updateCfg=function(e){if(process.env.NODE_ENV!==`production`){var t=this._shared.ensureRecord(this._axisModel).ready;W(!t.axisLine&&!t.axisTickLabelDetermine),t.axisName=t.axisTickLabelEstimate=!1}var n=this._cfg.raw;n.position=e.position,n.labelOffset=e.labelOffset,this._resetCfgDetermined(n)},e.prototype.__getRawCfg=function(){return this._cfg.raw},e.prototype._resetCfgDetermined=function(e){var t=this._axisModel,n=t.getDefaultOption?t.getDefaultOption():{},r=U(e.axisName,t.get(`name`)),i=t.get(`nameMoveOverlap`);(i==null||i===`auto`)&&(i=U(e.defaultNameMoveOverlap,!0));var a={raw:e,position:e.position,rotation:e.rotation,nameDirection:U(e.nameDirection,1),tickDirection:U(e.tickDirection,1),labelDirection:U(e.labelDirection,1),labelOffset:U(e.labelOffset,0),silent:U(e.silent,!0),axisName:r,nameLocation:ot(t.get(`nameLocation`),n.nameLocation,`end`),shouldNameMoveOverlap:GF(r)&&i,optionHideOverlap:t.get([`axisLabel`,`hideOverlap`]),showMinorTicks:t.get([`minorTick`,`show`])};process.env.NODE_ENV!==`production`&&(W(a.position!=null),W(a.rotation!=null)),this._cfg=a;var o=new _s({x:a.position[0],y:a.position[1],rotation:a.rotation});o.updateTransform(),this._transformGroup=o;var s=this._shared.ensureRecord(t);s.transGroup=this._transformGroup,s.dirVec=new q(Math.cos(-a.rotation),Math.sin(-a.rotation))},e.prototype.build=function(e,t){var n=this;return e||={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0},L(iI,function(r){e[r]&&aI[r](n._cfg,n._local,n._shared,n._axisModel,n.group,n._transformGroup,n._api,t||{})}),this},e.innerTextLayout=function(e,t,n){var r=Xs(t-e),i,a;return Zs(r)?(a=n>0?`top`:`bottom`,i=`center`):Zs(r-JF)?(a=n>0?`bottom`:`top`,i=`center`):(a=`middle`,i=r>0&&r<JF?n>0?`right`:`left`:n>0?`left`:`right`),{rotation:r,textAlign:i,textVerticalAlign:a}},e.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+`Index`]=e.componentIndex,t},e.isLabelSilent=function(e){var t=e.get(`tooltip`);return e.get(`silent`)||!(e.get(`triggerEvent`)||t&&t.show)},e}(),iI=[`axisLine`,`axisTickLabelEstimate`,`axisTickLabelDetermine`,`axisName`],aI={axisLine:function(e,t,n,r,i,a,o){if(process.env.NODE_ENV!==`production`){var s=n.ensureRecord(r).ready;W(!s.axisLine),s.axisLine=!0}var c=r.get([`axisLine`,`show`]);if(c===`auto`&&(c=!0,e.raw.axisLineAutoShow!=null&&(c=!!e.raw.axisLineAutoShow)),c){var l=r.axis.getExtent(),u=a.transform,d=[l[0],0],f=[l[1],0],p=d[0]>f[0];u&&(an(d,d,u),an(f,f,u));var m=I({lineCap:`round`},r.getModel([`axisLine`,`lineStyle`]).getLineStyle()),h={strokeContainThreshold:e.raw.strokeContainThreshold||5,silent:!0,z2:1,style:m};if(r.get([`axisLine`,`breakLine`])&&fv(r.axis.scale))wF().buildAxisBreakLine(r,i,a,h);else{var g=new wh(I({shape:{x1:d[0],y1:d[1],x2:f[0],y2:f[1]}},h));Sg(g.shape,g.style.lineWidth),g.anid=`line`,i.add(g)}var _=r.get([`axisLine`,`symbol`]);if(_!=null){var v=r.get([`axisLine`,`symbolSize`]);V(_)&&(_=[_,_]),(V(v)||Ze(v))&&(v=[v,v]);var y=iT(r.get([`axisLine`,`symbolOffset`])||0,v),b=v[0],x=v[1];L([{rotate:e.rotation+Math.PI/2,offset:y[0],r:0},{rotate:e.rotation-Math.PI/2,offset:y[1],r:Math.sqrt((d[0]-f[0])*(d[0]-f[0])+(d[1]-f[1])*(d[1]-f[1]))}],function(t,n){if(_[n]!==`none`&&_[n]!=null){var r=nT(_[n],-b/2,-x/2,b,x,m.stroke,!0),a=t.r+t.offset,o=p?f:d;r.attr({rotation:t.rotate,x:o[0]+a*Math.cos(e.rotation),y:o[1]-a*Math.sin(e.rotation),silent:!0,z2:11}),i.add(r)}})}}},axisTickLabelEstimate:function(e,t,n,r,i,a,o,s){if(process.env.NODE_ENV!==`production`){var c=n.ensureRecord(r).ready;W(!c.axisTickLabelDetermine),c.axisTickLabelEstimate=!0}BF(t,i,s)&&MF(e,t,n,r,i,a,o,IM.estimate)},axisTickLabelDetermine:function(e,t,n,r,i,a,o,s){if(process.env.NODE_ENV!==`production`){var c=n.ensureRecord(r).ready;c.axisTickLabelDetermine=!0}BF(t,i,s)&&MF(e,t,n,r,i,a,o,IM.determine);var l=RF(e,i,a,r);FF(e,t.labelLayoutList,l),zF(e,i,a,r,e.tickDirection)},axisName:function(e,t,n,r,i,a,o,s){var c=n.ensureRecord(r);if(process.env.NODE_ENV!==`production`){var l=c.ready;W(l.axisTickLabelEstimate||l.axisTickLabelDetermine),l.axisName=!0}t.nameEl&&=(i.remove(t.nameEl),c.nameLayout=c.nameLocation=null);var u=e.axisName;if(GF(u)){var d=e.nameLocation,f=e.nameDirection,p=r.getModel(`nameTextStyle`),m=r.get(`nameGap`)||0,h=r.axis.getExtent(),g=r.axis.inverse?-1:1,_=new q(0,0),v=new q(0,0);d===`start`?(_.x=h[0]-g*m,v.x=-g):d===`end`?(_.x=h[1]+g*m,v.x=g):(_.x=(h[0]+h[1])/2,_.y=e.labelOffset+f*m,v.y=f);var y=Qn();v.transform(rr(y,y,e.rotation));var b=r.get(`nameRotate`);b!=null&&(b=b*JF/180);var x,S;TA(d)?x=rI.innerTextLayout(e.rotation,b??e.rotation,f):(x=NF(e.rotation,d,b||0,h),S=e.raw.axisNameAvailableWidth,S!=null&&(S=Math.abs(S/Math.sin(x.rotation)),!isFinite(S)&&(S=null)));var C=p.getFont(),w=r.get(`nameTruncate`,!0)||{},T=w.ellipsis,E=at(e.raw.nameTruncateMaxWidth,w.maxWidth,S),D=s.nameMarginLevel||0,O=new zf({x:_.x,y:_.y,rotation:x.rotation,silent:rI.isLabelSilent(r),style:f_(p,{text:u,font:C,overflow:`truncate`,width:E,ellipsis:T,fill:p.getTextColor()||r.get([`axisLine`,`lineStyle`,`color`]),align:p.get(`align`)||x.textAlign,verticalAlign:p.get(`verticalAlign`)||x.textVerticalAlign}),z2:1});if(zg({el:O,componentModel:r,itemName:u}),O.__fullText=u,O.anid=`name`,r.get(`triggerEvent`)){var k=rI.makeAxisEventDataBase(r);k.targetType=`axisName`,k.name=u,Wf(O).eventData=k}a.add(O),O.updateTransform(),t.nameEl=O;var A=c.nameLayout=ON({label:O,priority:O.z2,defaultAttr:{ignore:O.ignore},marginDefault:TA(d)?YF[D]:XF[D]});if(c.nameLocation=d,i.add(O),O.decomposeTransform(),e.shouldNameMoveOverlap&&A){var j=n.ensureRecord(r);process.env.NODE_ENV!==`production`&&W(j.labelInfoList),n.resolveAxisNameOverlap(e,n,r,A,v,j)}}}},oI=new Cf,sI=new Cf}));function lI(e,t,n){n||={};var r=t.axis,i={},a=r.getAxesOnZeroOf()[0],o=r.position,s=a?`onZero`:o,c=r.dim,l=[e.x,e.x+e.width,e.y,e.y+e.height],u={left:0,right:1,top:0,bottom:1,onZero:2},d=t.get(`offset`)||0,f=c===`x`?[l[2]-d,l[3]+d]:[l[0]-d,l[1]+d];if(a){var p=a.toGlobalCoord(a.dataToCoord(0));f[u.onZero]=Math.max(Math.min(p,f[1]),f[0])}i.position=[c===`y`?f[u[s]]:l[0],c===`x`?f[u[s]]:l[3]],i.rotation=Math.PI/2*(c===`x`?0:1),i.labelDirection=i.tickDirection=i.nameDirection={top:-1,bottom:1,left:-1,right:1}[o],i.labelOffset=a?f[u[o]]-f[u.onZero]:0,t.get([`axisTick`,`inside`])&&(i.tickDirection=-i.tickDirection),at(n.labelInside,t.get([`axisLabel`,`inside`]))&&(i.labelDirection=-i.labelDirection);var m=t.get([`axisLabel`,`rotate`]);return i.labelRotate=s===`top`?-m:m,i.z2=1,i}function uI(e){return e.coordinateSystem&&e.coordinateSystem.type===`cartesian2d`}function dI(e){var t={xAxisModel:null,yAxisModel:null};return L(t,function(n,r){var i=r.replace(/Model$/,``),a=e.getReferringComponents(i,Il).models[0];if(process.env.NODE_ENV!==`production`&&!a)throw Error(i+` "`+ot(e.get(i+`Index`),e.get(i+`Id`),0)+`" not found`);t[r]=a}),t}function fI(e,t,n,r,i,a){for(var o=lI(e,n),s=!1,c=!1,l=0;l<t.length;l++)Tk(t[l].getOtherAxis(n.axis).scale)&&(s=c=!0,n.axis.type===`category`&&n.axis.onBand&&(c=!1));return o.axisLineAutoShow=s,o.axisTickAutoShow=c,o.defaultNameMoveOverlap=a,new rI(n,r,o,i)}function pI(e,t,n){var r=lI(t,n);if(process.env.NODE_ENV!==`production`){var i=e.__getRawCfg();L(qe(r),function(e){e!==`position`&&e!==`labelOffset`&&W(r[e]===i[e])})}e.updateCfg(r)}var mI=n((()=>{K(),X(),cI(),Rk()}));function hI(){qA(`liPosMinGap`,gI)}function gI(e,t,n){var r=G(),i=n.serUids,a=n.liPosMinGap,o,s=t.axis,c=s.scale,l=c.needTransform(),u=c.getFilter?c.getFilter():null,d=iS(u);function f(n){UA(e,t.sers,function(e){var t=e.getRawData(),r=t.getDimensionIndex(t.mapDimension(s.dim));r>=0&&n(r,e,t.getStore())})}var p=0;if(f(function(e,t,n){r.set(t.uid,1),(!i||!i.hasKey(t.uid))&&(o=!0),p+=n.count()}),(!i||i.keys().length!==r.keys().length)&&(o=!0),!o&&a!=null){t.liPosMinGap=a;return}EP(_I,p);var m=0;f(function(e,t,n){for(var r=0,i=n.count();r<i;++r){var a=n.get(e,r);isFinite(a)&&(!u||aS(d,a))&&(l&&(a=c.transformIn(a,null)),_I.arr[m++]=a)}});var h=_I.typed?_I.arr.subarray(0,m):(_I.arr.length=m,_I.arr);_I.typed?h.sort():Hs(h);for(var g=1/0,_=1;_<m;++_){var v=h[_]-h[_-1];v>0&&v<g&&(g=v)}n.liPosMinGap=t.liPosMinGap=lc(g)?g:m>0?-2:-1,n.serUids=r}var _I,vI=n((()=>{K(),Y(),cS(),kP(),ij(),_I=EP({ctor:OP},50)}));function yI(e){return function(t,n){var r=BM(t,{fromStat:{key:e}});if(lc(r.w2))return[-r.w2/2,r.w2/2]}}function bI(e,t){return e+`|&`+t}function xI(e){return hI(),{liPosMinGap:!kk(e.scale)}}var SI=n((()=>{WM(),ij(),vI(),Rk(),Y()}));function CI(e,t,n,r){XA(e,{key:t,seriesType:n,coordSysType:r,getMetrics:xI})}function wI(e){var t=e.scale.rawExtentInfo.makeRenderInfo().startValue;return process.env.NODE_ENV!==`production`&&W(lc(t)),t}var TI=n((()=>{K(),SI(),ij(),Y()})),EI,DI,OI,kI,AI=n((()=>{P(),Vy(),Ly(),Wy(),EI={left:0,right:0,top:0,bottom:0},DI=[`25%`,`25%`],OI=`cartesian2d`,kI=function(e){N(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.mergeDefaultAndTheme=function(t,n){var r=Ay(t.outerBounds);e.prototype.mergeDefaultAndTheme.apply(this,arguments),r&&t.outerBounds&&ky(t.outerBounds,r)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&t.outerBounds&&ky(this.option.outerBounds,t.outerBounds)},t.type=`grid`,t.dependencies=[`xAxis`,`yAxis`],t.layoutMode=`box`,t.defaultOption={show:!1,z:0,left:`15%`,top:65,right:`10%`,bottom:80,containLabel:!1,outerBoundsMode:`auto`,outerBounds:EI,outerBoundsContain:`all`,outerBoundsClampWidth:DI[0],outerBoundsClampHeight:DI[1],backgroundColor:Z.color.transparent,borderWidth:1,borderColor:Z.color.neutral30},t}(By)}));function jI(e){return e.get(`stack`)||VI+e.seriesIndex}function MI(e,t){var n=NI(e,t);return n.columnMap=PI(n),n}function NI(e,t){var n=bI(t,OI),r=[],i=BM(e,{fromStat:{key:n},min:1});return HA(e,n,function(e){r.push({barWidth:Cc(e.get(`barWidth`),i.w),barMaxWidth:Cc(e.get(`barMaxWidth`),i.w),barMinWidth:Cc(e.get(`barMinWidth`)||(LI(e)?.5:1),i.w),barGap:e.get(`barGap`),barCategoryGap:e.get(`barCategoryGap`),defaultBarGap:e.get(`defaultBarGap`),stackId:jI(e)})}),{bandWidthResult:i,seriesInfo:r}}function PI(e){var t=e.bandWidthResult.w,n=t,r=0,i,a,o=[],s={};L(e.seriesInfo,function(e,t){t||(a=e.defaultBarGap||0);var c=e.stackId;gt(s,c)||r++;var l=s[c];l||(l=s[c]={width:0,maxWidth:0},o.push(c));var u=e.barWidth;u&&!l.width&&(l.width=u,u=fc(n,u),n-=u);var d=e.barMaxWidth;d&&(l.maxWidth=d);var f=e.barMinWidth;f&&(l.minWidth=f);var p=e.barGap;p!=null&&(a=p);var m=e.barCategoryGap;m!=null&&(i=m)}),i??=pc(35-o.length*4,15)+`%`;var c=Cc(i,t),l=Cc(a,1),u=(n-c)/(r+(r-1)*l);u=pc(u,0),L(o,function(e){var t=s[e],i=t.maxWidth,a=t.minWidth;if(t.width){var o=t.width;i&&(o=fc(o,i)),a&&(o=pc(o,a)),t.width=o,n-=o+l*o,r--}else{var o=u;i&&i<o&&(o=fc(i,n)),a&&a>o&&(o=a),o!==u&&(t.width=o,n-=o+l*o,r--)}}),u=(n-c)/(r+(r-1)*l),u=pc(u,0);var d=0,f;L(o,function(e){var t=s[e];t.width||=u,f=t,d+=t.width*(1+l)}),f&&(d-=f.width*l);var p={},m=-d/2;return L(o,function(e){var n=s[e];p[e]=p[e]||{bandWidth:t,offset:m,width:n.width},m+=n.width*(1+l)}),p}function FI(e){return{seriesType:e,overallReset:function(t){var n=bI(e,OI);WA(t,n,function(t){process.env.NODE_ENV!==`production`&&W(t instanceof SF);var r=MI(t,e);HA(t,n,function(e){var t=r.columnMap[jI(e)];e.getData().setLayout({bandWidth:t.bandWidth,offset:t.offset,size:t.width})})})}}}function II(e){return{seriesType:e,plan:SC(),reset:function(e){if(uI(e)){var t=e.getData(),n=e.coordinateSystem,r=n.getBaseAxis(),i=n.getOtherAxis(r),a=t.getDimensionIndex(t.mapDimension(i.dim)),o=t.getDimensionIndex(t.mapDimension(r.dim)),s=e.get(`showBackground`,!0),c=t.mapDimension(i.dim),l=t.getCalculationInfo(`stackResultDimension`),u=QO(t,c)&&!!t.getCalculationInfo(`stackedOnSeries`),d=i.isHorizontal(),f=i.toGlobalCoord(i.dataToCoord(wI(i))),p=LI(e),m=e.get(`barMinHeight`)||0,h=l&&t.getDimensionIndex(l),g=t.getLayout(`size`),_=t.getLayout(`offset`);return{progress:function(e,t){for(var r=e.count,i=p&&TP(r*3),c=p&&s&&TP(r*3),l=p&&TP(r),v=n.master.getRect(),y=d?v.width:v.height,b,x=t.getStore(),S=0;(b=e.next())!=null;){var C=x.get(u?h:a,b),w=x.get(o,b),T=f,E=void 0;u&&(E=+C-x.get(a,b));var D=void 0,O=void 0,k=void 0,A=void 0;if(d){var j=n.dataToPoint([C,w]);u&&(T=n.dataToPoint([E,w])[0]),D=T,O=j[1]+_,k=j[0]-T,A=g,mc(k)<m&&(k=(k<0?-1:1)*m)}else{var j=n.dataToPoint([w,C]);u&&(T=n.dataToPoint([w,E])[1]),D=j[0]+_,O=T,k=g,A=j[1]-T,mc(A)<m&&(A=(A<=0?-1:1)*m)}p?(i[S]=D,i[S+1]=O,i[S+2]=d?k:A,c&&(c[S]=d?v.x:D,c[S+1]=d?O:v.y,c[S+2]=y),l[b]=b):t.setItemLayout(b,{x:D,y:O,width:k,height:A}),S+=3}p&&t.setLayout({largePoints:i,largeDataIndices:l,largeBackgroundPoints:c,valueAxisHorizontal:d})}}}}}}function LI(e){return e.pipelineContext&&e.pipelineContext.large}function RI(e){return yI(bI(e,OI))}function zI(e){BI(e,function(){function t(t){var n=bI(t,OI);CI(e,n,t,OI),hj(n,RI(t))}t(`bar`),t(`pictorialBar`)})}var BI,VI,HI=n((()=>{K(),Y(),ek(),CC(),CF(),kP(),X(),mI(),Cj(),ij(),WM(),TI(),AI(),SI(),BI=wl(),VI=`__ec_stack_`})),UI,WI=n((()=>{P(),yC(),ok(),K(),UI=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(e,t){return rk(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e,t,n){var r=this.coordinateSystem;if(r&&r.clampData){var i=r.clampData(e),a=r.dataToPoint(i);if(n)L(r.getAxes(),function(e,n){if(e.type===`category`&&t!=null){var r=e.getTicksCoords(),o=e.getTickModel().get(`alignWithLabel`),s=i[n],c=t[n]===`x1`||t[n]===`y1`;if(c&&!o&&(s+=1),r.length<2)return;if(r.length===2){a[n]=e.toGlobalCoord(e.getExtent()[+!!c]);return}for(var l=void 0,u=void 0,d=1,f=0;f<r.length;f++){var p=r[f].coord,m=f===r.length-1?r[f-1].tickValue+d:r[f].tickValue;if(m===s){u=p;break}else if(m<s)l=p;else if(l!=null&&m>s){u=(p+l)/2;break}f===1&&(d=m-r[0].tickValue)}u??(l?l&&(u=r[r.length-1].coord):u=r[0].coord),a[n]=e.toGlobalCoord(u)}});else{var o=this.getData(),s=o.getLayout(`offset`),c=o.getLayout(`size`),l=+!r.getBaseAxis().isHorizontal();a[l]+=s+c/2}return a}return[NaN,NaN]},t.prototype.__requireStartValue=function(e){return this.getBaseAxis()!==e},t.type=`series.__base_bar__`,t.defaultOption={z:2,coordinateSystem:`cartesian2d`,legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:`mod`,defaultBarGap:`10%`},t}(vC),vC.registerClass(UI)})),GI,KI=n((()=>{P(),WI(),ok(),q_(),Wy(),X(),TI(),GI=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(){return rk(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get(`realtimeSort`,!0)||null})},t.prototype.getProgressive=function(){return this.get(`large`)?this.get(`progressive`):!1},t.prototype.__preparePipelineContext=function(e,t){var n=kl(this,e,t);return n.progressiveRender&&(n.large=!0),n},t.prototype.brushSelector=function(e,t,n){return n.rect(t.getItemLayout(e))},t.type=`series.bar`,t.dependencies=[`grid`,`polar`],t.defaultOption=G_(UI.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}),t}(UI)})),qI,JI,YI=n((()=>{P(),s_(),qI=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e}(),JI=function(e){N(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`sausage`,n}return t.prototype.getDefaultShape=function(){return new qI},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.max(t.r0||0,0),a=Math.max(t.r,0),o=(a-i)*.5,s=i+o,c=t.startAngle,l=t.endAngle,u=t.clockwise,d=Math.PI*2,f=u?l-c<d:c-l<d;f||(c=l-(u?d:-d));var p=Math.cos(c),m=Math.sin(c),h=Math.cos(l),g=Math.sin(l);f?(e.moveTo(p*i+n,m*i+r),e.arc(p*s+n,m*s+r,o,-Math.PI+c,c,!u)):e.moveTo(p*a+n,m*a+r),e.arc(n,r,a,c,l,!u),e.arc(h*s+n,g*s+r,o,l-Math.PI*2,l-Math.PI,!u),i!==0&&e.arc(n,r,i,l,c,u)},t}(rf)}));function XI(e,t){t||={};var n=t.isRoundCap;return function(t,r,i){var a=r.position;if(!a||a instanceof Array)return Jo(t,r,i);var o=e(a),s=r.distance==null?5:r.distance,c=this.shape,l=c.cx,u=c.cy,d=c.r,f=c.r0,p=(d+f)/2,m=c.startAngle,h=c.endAngle,g=(m+h)/2,_=n?Math.abs(d-f)/2:0,v=Math.cos,y=Math.sin,b=l+d*v(m),x=u+d*y(m),S=`left`,C=`top`;switch(o){case`startArc`:b=l+(f-s)*v(g),x=u+(f-s)*y(g),S=`center`,C=`top`;break;case`insideStartArc`:b=l+(f+s)*v(g),x=u+(f+s)*y(g),S=`center`,C=`bottom`;break;case`startAngle`:b=l+p*v(m)+QI(m,s+_,!1),x=u+p*y(m)+$I(m,s+_,!1),S=`right`,C=`middle`;break;case`insideStartAngle`:b=l+p*v(m)+QI(m,-s+_,!1),x=u+p*y(m)+$I(m,-s+_,!1),S=`left`,C=`middle`;break;case`middle`:b=l+p*v(g),x=u+p*y(g),S=`center`,C=`middle`;break;case`endArc`:b=l+(d+s)*v(g),x=u+(d+s)*y(g),S=`center`,C=`bottom`;break;case`insideEndArc`:b=l+(d-s)*v(g),x=u+(d-s)*y(g),S=`center`,C=`top`;break;case`endAngle`:b=l+p*v(h)+QI(h,s+_,!0),x=u+p*y(h)+$I(h,s+_,!0),S=`left`,C=`middle`;break;case`insideEndAngle`:b=l+p*v(h)+QI(h,-s+_,!0),x=u+p*y(h)+$I(h,-s+_,!0),S=`right`,C=`middle`;break;default:return Jo(t,r,i)}return t||={},t.x=b,t.y=x,t.align=S,t.verticalAlign=C,t}}function ZI(e,t,n,r){if(Ze(r)){e.setTextConfig({rotation:r});return}else if(z(t)){e.setTextConfig({rotation:0});return}var i=e.shape,a=i.clockwise?i.startAngle:i.endAngle,o=i.clockwise?i.endAngle:i.startAngle,s=(a+o)/2,c,l=n(t);switch(l){case`startArc`:case`insideStartArc`:case`middle`:case`insideEndArc`:case`endArc`:c=s;break;case`startAngle`:case`insideStartAngle`:c=a;break;case`endAngle`:case`insideEndAngle`:c=o;break;default:e.setTextConfig({rotation:0});return}var u=Math.PI*1.5-c;l===`middle`&&u>Math.PI/2&&u<Math.PI*1.5&&(u-=Math.PI),e.setTextConfig({rotation:u})}function QI(e,t,n){return t*Math.sin(e)*(n?-1:1)}function $I(e,t,n){return t*Math.cos(e)*(n?1:-1)}var eL=n((()=>{Qo(),K()}));function tL(e,t,n){var r=e.get(`borderRadius`);if(r==null)return n?{cornerRadius:0}:null;z(r)||(r=[r,r,r,r]);var i=Math.abs(t.r||0-t.r0||0);return{cornerRadius:R(r,function(e){return qo(e,i)})}}var nL=n((()=>{K(),Qo()}));function rL(e,t){var n=e.get(`realtimeSort`,!0),r=t.getBaseAxis();if(process.env.NODE_ENV!==`production`&&n&&(r.type!==`category`&&Oc("`realtimeSort` will not work because this bar series is not based on a category axis."),t.type!==`cartesian2d`&&Oc("`realtimeSort` will not work because this bar series is not on cartesian2d.")),n&&r.type===`category`&&t.type===`cartesian2d`)return{baseAxis:r,otherAxis:t.getOtherAxis(r)}}function iL(e,t,n,r,i,a,o,s){var c,l;a?(l={x:r.x,width:r.width},c={y:r.y,height:r.height}):(l={y:r.y,height:r.height},c={x:r.x,width:r.width}),s||(o?ig:ag)(n,{shape:c},t,i,null);var u=t?e.baseAxis.model:null;(o?ig:ag)(n,{shape:l},u,i)}function aL(e,t){for(var n=0;n<t.length;n++)if(!isFinite(e[t[n]]))return!0;return!1}function oL(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}function sL(e){return function(e){var t=e?`Arc`:`Angle`;return function(e){switch(e){case`start`:case`insideStart`:case`end`:case`insideEnd`:return e+t;default:return e}}}(e)}function cL(e,t,n,r,i,a,o,s){var c=t.getItemVisual(n,`style`);if(!s){var l=r.get([`itemStyle`,`borderRadius`])||0;e.setShape(`r`,l)}else if(!a.get(`roundCap`)){var u=e.shape;I(u,tL(r.getModel(`itemStyle`),u,!0)),e.setShape(u)}e.useStyle(c);var d=r.getShallow(`cursor`);d&&e.attr(`cursor`,d);var f=s?o?i.r>=i.r0?`endArc`:`startArc`:i.endAngle>=i.startAngle?`endAngle`:`startAngle`:o?mL(i,a.coordinateSystem):hL(i,a.coordinateSystem),p=d_(r);u_(e,p,{labelFetcher:a,labelDataIndex:n,defaultText:cP(a.getData(),n),inheritColor:c.fill,defaultOpacity:c.opacity,defaultOutsidePosition:f});var m=e.getTextContent();if(s&&m){var h=r.get([`label`,`position`]);e.textConfig.inside=h===`middle`?!0:null,ZI(e,h===`outside`?f:h,sL(o),r.get([`label`,`rotate`]))}v_(m,p,a.getRawValue(n),function(e){return lP(t,e)});var g=r.getModel([`emphasis`]);Wp(e,g.get(`focus`),g.get(`blurScope`),g.get(`disabled`)),Kp(e,r),oL(i)&&(e.style.fill=`none`,e.style.stroke=`none`,L(e.states,function(e){e.style&&(e.style.fill=e.style.stroke=`none`)}))}function lL(e,t){var n=e.get([`itemStyle`,`borderColor`]);if(!n||n===`none`)return 0;var r=e.get([`itemStyle`,`borderWidth`])||0,i=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),a=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(r,i,a)}function uL(e,t,n,r){var i=e.getData(),a=+!!i.getLayout(`valueAxisHorizontal`),o=i.getLayout(`largeDataIndices`),s=i.getLayout(`size`),c=e.getModel(`backgroundStyle`),l=i.getLayout(`largeBackgroundPoints`),u=r?Ol(e):0;if(l){var d=new EL({shape:{points:l},incremental:u,silent:!0,z2:0});d.baseDimIdx=a,d.largeDataIndices=o,d.barWidth=s,d.useStyle(c.getItemStyle()),t.add(d),n&&n.push(d)}var f=new EL({shape:{points:i.getLayout(`largePoints`)},incremental:u,ignoreCoarsePointer:!0,z2:1});f.baseDimIdx=a,f.largeDataIndices=o,f.barWidth=s,t.add(f),f.useStyle(i.getVisual(`style`)),f.style.stroke=null,Wf(f).seriesIndex=e.seriesIndex,e.get(`silent`)||(f.on(`mousedown`,DL),f.on(`mousemove`,DL)),n&&n.push(f)}function dL(e,t,n){for(var r=e.baseDimIdx,i=1-r,a=e.shape.points,o=e.largeDataIndices,s=[],c=[],l=e.barWidth,u=0,d=a.length/3;u<d;u++){var f=u*3;if(c[r]=l,c[i]=a[f+2],s[r]=a[f+r],s[i]=a[f+i],c[i]<0&&(s[i]+=c[i],c[i]=-c[i]),t>=s[0]&&t<=s[0]+c[0]&&n>=s[1]&&n<=s[1]+c[1])return o[u]}return-1}function fL(e,t,n){if(GP(n,`cartesian2d`)){var r=t,i=n.getArea();return{x:e?r.x:i.x,y:e?i.y:r.y,width:e?r.width:i.width,height:e?i.height:r.height}}else{var i=n.getArea(),a=t;return{cx:i.cx,cy:i.cy,r0:e?i.r0:a.r0,r:e?i.r:a.r,startAngle:e?a.startAngle:0,endAngle:e?a.endAngle:Math.PI*2}}}function pL(e,t,n){return new(e.type===`polar`?sh:Cf)({shape:fL(t,n,e),silent:!0,z2:0})}function mL(e,t){return e.height===0?t.getOtherAxis(t.getBaseAxis()).inverse?`bottom`:`top`:e.height>0?`bottom`:`top`}function hL(e,t){return e.width===0?t.getOtherAxis(t.getBaseAxis()).inverse?`left`:`right`:e.width>=0?`right`:`left`}var gL,_L,vL,yL,bL,xL,SL,CL,wL,TL,EL,DL,OL=n((()=>{P(),af(),vs(),K(),s_(),Kf(),pm(),E_(),zC(),WP(),YI(),MC(),KP(),uP(),Lc(),eL(),fg(),nL(),X(),TI(),gL=Math.max,_L=Math.min,vL=function(e){N(t,e);function t(){var t=e.call(this)||this;return t.type=`bar`,t._isFirstFrame=!0,t}return t.prototype.render=function(e,t,n,r){this._model=e,this._removeOnRenderedListener(n),this._updateDrawMode(e);var i=e.get(`coordinateSystem`);i===`cartesian2d`||i===`polar`?(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(e,t,n):this._renderNormal(e,t,n,r)):process.env.NODE_ENV!==`production`&&Oc(`Only cartesian2d and polar supported for bar.`)},t.prototype.incrementalPrepareRender=function(e){this._clear(),this._updateDrawMode(e),this._updateLargeClip(e)},t.prototype.incrementalRender=function(e,t){this._progressiveEls=[],this._incrementalRenderLarge(e,t)},t.prototype.eachRendered=function(e){Vg(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var t=e.pipelineContext.large;(this._isLargeDraw==null||t!==this._isLargeDraw)&&(this._isLargeDraw=t,this._clear())},t.prototype._renderNormal=function(e,t,n,r){var i=this.group,a=e.getData(),o=this._data,s=e.coordinateSystem,c=s.getBaseAxis(),l;s.type===`cartesian2d`?l=c.isHorizontal():s.type===`polar`&&(l=c.dim===`angle`);var u=e.isAnimationEnabled()?e:null,d=rL(e,s);d&&this._enableRealtimeSort(d,a,n);var f=e.get(`clip`,!0)||d,p=s.getArea();i.removeClipPath();var m=e.get(`roundCap`,!0),h=e.get(`showBackground`,!0),g=e.getModel(`backgroundStyle`),_=g.get(`borderRadius`)||0,v=[],y=this._backgroundEls,b=r&&r.isInitSort,x=r&&r.type===`changeAxisOrder`;function S(e){var t=wL[s.type](a,e);if(!t)return null;var n=pL(s,l,t);return n.useStyle(g.getItemStyle()),s.type===`cartesian2d`?n.setShape(`r`,_):n.setShape(`cornerRadius`,_),v[e]=n,n}a.diff(o).add(function(t){var n=a.getItemModel(t),r=wL[s.type](a,t,n);if(r&&(h&&S(t),!(!a.hasValue(t)||!CL[s.type](r)))){var o=!1;f&&(o=yL[s.type](p,r));var g=bL[s.type](e,a,t,r,l,u,c.model,!1,m);d&&(g.forceLabelAnimation=!0),cL(g,a,t,n,r,e,l,s.type===`polar`),b?g.attr({shape:r}):d?iL(d,u,g,r,t,l,!1,!1):ag(g,{shape:r},e,t),a.setItemGraphicEl(t,g),i.add(g),g.ignore=o}}).update(function(t,n){var r=a.getItemModel(t),C=wL[s.type](a,t,r);if(C){if(h){var w=void 0;y.length===0?w=S(n):(w=y[n],w.useStyle(g.getItemStyle()),s.type===`cartesian2d`?w.setShape(`r`,_):w.setShape(`cornerRadius`,_),v[t]=w);var T=wL[s.type](a,t),E=fL(l,T,s);ig(w,{shape:E},u,t)}var D=o.getItemGraphicEl(n);if(!a.hasValue(t)||!CL[s.type](C)){i.remove(D);return}var O=!1;if(f&&(O=yL[s.type](p,C),O&&i.remove(D)),D&&(D.type===`sector`&&m||D.type===`sausage`&&!m)&&(D&&lg(D,e,n),D=null),D?ug(D):D=bL[s.type](e,a,t,C,l,u,c.model,!0,m),d&&(D.forceLabelAnimation=!0),x){var k=D.getTextContent();if(k){var A=w_(k);A.prevValue!=null&&(A.prevValue=A.value)}}else cL(D,a,t,r,C,e,l,s.type===`polar`);b?D.attr({shape:C}):d?iL(d,u,D,C,t,l,!0,x):ig(D,{shape:C},e,t,null),a.setItemGraphicEl(t,D),D.ignore=O,i.add(D)}}).remove(function(t){var n=o.getItemGraphicEl(t);n&&lg(n,e,t)}).execute();var C=this._backgroundGroup||=new _s;C.removeAll();for(var w=0;w<v.length;++w)C.add(v[w]);i.add(C),this._backgroundEls=v,this._data=a},t.prototype._renderLarge=function(e,t,n){this._clear(),uL(e,this.group),this._updateLargeClip(e)},t.prototype._incrementalRenderLarge=function(e,t){this._removeBackground(),uL(t,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(e){var t=e.get(`clip`,!0)&&UP(e.coordinateSystem,!1,e),n=this.group;t?n.setClipPath(t):n.removeClipPath()},t.prototype._enableRealtimeSort=function(e,t,n){var r=this;if(t.count()){var i=e.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(t,e,n),this._isFirstFrame=!1;else{var a=function(e){var n=t.getItemGraphicEl(e),r=n&&n.shape;return r&&Math.abs(i.isHorizontal()?r.height:r.width)||0};this._onRendered=function(){r._updateSortWithinSameData(t,a,i,n)},n.getZr().on(`rendered`,this._onRendered)}}},t.prototype._dataSort=function(e,t,n){var r=[];return e.each(e.mapDimension(t.dim),function(e,t){var i=n(t);i??=NaN,r.push({dataIndex:t,mappedValue:i,ordinalNumber:e})}),r.sort(function(e,t){return t.mappedValue-e.mappedValue}),{ordinalNumbers:R(r,function(e){return e.ordinalNumber})}},t.prototype._isOrderChangedWithinSameData=function(e,t,n){for(var r=n.scale,i=e.mapDimension(n.dim),a=Number.MAX_VALUE,o=0,s=r.getOrdinalMeta().categories.length;o<s;++o){var c=e.rawIndexOf(i,r.getRawOrdinalNumber(o)),l=c<0?Number.MIN_VALUE:t(e.indexOfRawIndex(c));if(l>a)return!0;a=l}return!1},t.prototype._isOrderDifferentInView=function(e,t){for(var n=t.scale,r=n.getExtent(),i=Math.max(0,r[0]),a=Math.min(r[1],n.getOrdinalMeta().categories.length-1);i<=a;++i)if(e.ordinalNumbers[i]!==n.getRawOrdinalNumber(i))return!0},t.prototype._updateSortWithinSameData=function(e,t,n,r){if(this._isOrderChangedWithinSameData(e,t,n)){var i=this._dataSort(e,n,t);this._isOrderDifferentInView(i,n)&&(this._removeOnRenderedListener(r),r.dispatchAction({type:`changeAxisOrder`,componentType:n.dim+`Axis`,axisId:n.index,sortInfo:i}))}},t.prototype._dispatchInitSort=function(e,t,n){var r=t.baseAxis,i=this._dataSort(e,r,function(n){return e.get(e.mapDimension(t.otherAxis.dim),n)});n.dispatchAction({type:`changeAxisOrder`,componentType:r.dim+`Axis`,isInitSort:!0,axisId:r.index,sortInfo:i})},t.prototype.remove=function(e,t){this._clear(this._model),this._removeOnRenderedListener(t)},t.prototype.dispose=function(e,t){this._removeOnRenderedListener(t)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&=(e.getZr().off(`rendered`,this._onRendered),null)},t.prototype._clear=function(e){var t=this.group,n=this._data;e&&e.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(t){lg(t,e,Wf(t).dataIndex)})):t.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type=`bar`,t}(AC),yL={cartesian2d:function(e,t){var n=t.width<0?-1:1,r=t.height<0?-1:1;n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height);var i=e.x+e.width,a=e.y+e.height,o=gL(t.x,e.x),s=_L(t.x+t.width,i),c=gL(t.y,e.y),l=_L(t.y+t.height,a),u=s<o,d=l<c;return t.x=u&&o>i?s:o,t.y=d&&c>a?l:c,t.width=u?0:s-o,t.height=d?0:l-c,n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height),u||d},polar:function(e,t){var n=t.r0<=t.r?1:-1;if(n<0){var r=t.r;t.r=t.r0,t.r0=r}var i=_L(t.r,e.r),a=gL(t.r0,e.r0);t.r=i,t.r0=a;var o=i-a<0;if(n<0){var r=t.r;t.r=t.r0,t.r0=r}return o}},bL={cartesian2d:function(e,t,n,r,i,a,o,s,c){var l=new Cf({shape:I({},r),z2:1});if(l.__dataIndex=n,l.name=`item`,a){var u=l.shape,d=i?`height`:`width`;u[d]=0}return l},polar:function(e,t,n,r,i,a,o,s,c){var l=!i&&c?JI:sh,u=new l({shape:r,z2:1});if(u.name=`item`,u.calculateTextPosition=XI(sL(i),{isRoundCap:l===JI}),a){var d=u.shape,f=i?`r`:`endAngle`,p={};d[f]=i?r.r0:r.startAngle,p[f]=r[f],(s?ig:ag)(u,{shape:p},a)}return u}},xL=[`x`,`y`,`width`,`height`],SL=[`cx`,`cy`,`r`,`startAngle`,`endAngle`],CL={cartesian2d:function(e){return!aL(e,xL)},polar:function(e){return!aL(e,SL)}},wL={cartesian2d:function(e,t,n){var r=e.getItemLayout(t);if(!r)return null;var i=n?lL(n,r):0,a=r.width>0?1:-1,o=r.height>0?1:-1;return{x:r.x+a*i/2,y:r.y+o*i/2,width:r.width-a*i,height:r.height-o*i}},polar:function(e,t,n){var r=e.getItemLayout(t);return{cx:r.cx,cy:r.cy,r0:r.r0,r:r.r,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}}},TL=function(){function e(){}return e}(),EL=function(e){N(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`largeBar`,n}return t.prototype.getDefaultShape=function(){return new TL},t.prototype.buildPath=function(e,t){for(var n=t.points,r=this.baseDimIdx,i=1-this.baseDimIdx,a=[],o=[],s=this.barWidth,c=0;c<n.length;c+=3)o[r]=s,o[i]=n[c+2],a[r]=n[c+r],a[i]=n[c+i],e.rect(a[0],a[1],o[0],o[1])},t}(rf),DL=NC(function(e){var t=this,n=dL(t,e.offsetX,e.offsetY);Wf(t).dataIndex=n>=0?n:null},30,!1)}));function kL(e){e.registerChartView(vL),e.registerSeriesModel(GI),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,FI(`bar`)),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,II(`bar`)),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,gF(`bar`)),e.registerAction({type:`changeAxisOrder`,event:`changeAxisOrder`,update:`update`},function(e,t){var n=e.componentType||`series`;t.eachComponent({mainType:n,query:e},function(t){e.sortInfo&&t.axis.setCategorySortInfo(e.sortInfo)})}),zI(e)}var AL=n((()=>{HI(),yF(),KI(),OL(),TI()}));function jL(e){return{seriesType:e,reset:function(e,t){var n=t.findComponents({mainType:`legend`});if(!(!n||!n.length)){var r=e.getData();r.filterSelf(function(e){for(var t=r.getName(e),i=0;i<n.length;i++)if(!n[i].isSelected(t))return!1;return!0})}}}}var ML=n((()=>{}));function NL(e,t,n){t=z(t)&&{coordDimensions:t}||I({encodeDefine:e.getEncode()},t);var r=e.getSource(),i=VO(r,t).dimensions,a=new RO(i,e);return a.initData(r,n),a}var PL=n((()=>{WO(),zO(),K()})),FL,IL=n((()=>{FL=function(){function e(e,t){this._getDataWithEncodedVisual=e,this._getRawData=t}return e.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},e.prototype.containName=function(e){return this._getRawData().indexOfName(e)>=0},e.prototype.indexOfName=function(e){return this._getDataWithEncodedVisual().indexOfName(e)},e.prototype.getItemVisual=function(e,t){return this._getDataWithEncodedVisual().getItemVisual(e,t)},e}()})),LL,RL,zL=n((()=>{P(),PL(),K(),X(),Y(),ob(),IL(),yC(),xy(),LL=ol(),RL=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new FL(Mt(this.getData,this),Mt(this.getRawData,this)),this._defaultLabelLine(t)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return NL(this,{coordDimensions:[`value`],encodeDefaulter:Ye($y,this)})},t.prototype.getDataParams=function(t){var n=this.getData(),r=LL(n),i=r.seats;if(!i){var a=[];n.each(n.mapDimension(`value`),function(e){a.push(e)}),i=r.seats=Js(a,n.hostModel.get(`percentPrecision`))}var o=e.prototype.getDataParams.call(this,t);return o.percent=i[t]||0,o.$vars.push(`percent`),o},t.prototype._defaultLabelLine=function(e){Bc(e,`labelLine`,[`show`]);var t=e.labelLine,n=e.emphasis.labelLine;t.show=t.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},t.type=`series.pie`,t.defaultOption={z:2,legendHoverLink:!0,colorBy:`data`,center:[`50%`,`50%`],radius:[0,`50%`],clockwise:!0,startAngle:90,endAngle:`auto`,padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,coordinateSystemUsage:`box`,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:`truncate`,position:`outer`,alignTo:`none`,edgeDistance:`25%`,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:30,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:`solid`}},itemStyle:{borderWidth:1,borderJoin:`round`},showEmptyCircle:!0,emptyCircleStyle:{color:`lightgray`,opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:`expansion`,animationDuration:1e3,animationTypeUpdate:`transition`,animationEasingUpdate:`cubicInOut`,animationDurationUpdate:500,animationEasing:`cubicInOut`},t}(vC),py({fullType:RL.type,getCoord2:function(e){return e.getShallow(`center`)}})}));function BL(e,t,n,r,i,a,o,s,c,l){if(e.length<2)return;function u(e){for(var a=e.rB,o=a*a,s=0;s<e.list.length;s++){var c=e.list[s],l=Math.abs(c.label.y-n),u=r+c.len,d=u*u,f=t+(Math.sqrt(Math.abs((1-l*l/o)*d))+c.len2)*i,p=f-c.label.x;HL(c,c.targetTextWidth-p*i,!0),c.label.x=f}}function d(e){for(var a={list:[],maxY:0},o={list:[],maxY:0},s=0;s<e.length;s++)if(e[s].labelAlignTo===`none`){var c=e[s],l=c.label.y>n?o:a,d=Math.abs(c.label.y-n);if(d>=l.maxY){var f=c.label.x-t-c.len2*i,p=r+c.len;l.rB=Math.abs(f)<p?Math.sqrt(d*d/(1-f*f/p/p)):p,l.maxY=d}l.list.push(c)}u(a),u(o)}for(var f=e.length,p=0;p<f;p++)if(e[p].position===`outer`&&e[p].labelAlignTo===`labelLine`){var m=e[p].label.x-l;e[p].linePoints[1][0]+=m,e[p].label.x=l}PN(e,1,c,c+o)&&d(e)}function VL(e,t,n,r,i,a,o,s){for(var c=[],l=[],u=Number.MAX_VALUE,d=-Number.MAX_VALUE,f=0;f<e.length;f++){var p=e[f].label;WL(e[f])||(p.x<t?(u=Math.min(u,p.x),c.push(e[f])):(d=Math.max(d,p.x),l.push(e[f])))}for(var f=0;f<e.length;f++){var m=e[f];if(!WL(m)&&m.linePoints){if(m.labelStyleWidth!=null)continue;var p=m.label,h=m.linePoints,g=void 0;g=m.labelAlignTo===`edge`?p.x<t?h[2][0]-m.labelDistance-o-m.edgeDistance:o+i-m.edgeDistance-h[2][0]-m.labelDistance:m.labelAlignTo===`labelLine`?p.x<t?u-o-m.bleedMargin:o+i-d-m.bleedMargin:p.x<t?p.x-o-m.bleedMargin:o+i-p.x-m.bleedMargin,m.targetTextWidth=g,HL(m,g,!1)}}BL(l,t,n,r,1,i,a,o,s,d),BL(c,t,n,r,-1,i,a,o,s,u);for(var f=0;f<e.length;f++){var m=e[f];if(!WL(m)&&m.linePoints){var p=m.label,h=m.linePoints,_=m.labelAlignTo===`edge`,v=p.style.padding,y=v?v[1]+v[3]:0,b=p.style.backgroundColor?0:y,x=m.rect.width+b,S=h[1][0]-h[2][0];_?p.x<t?h[2][0]=o+m.edgeDistance+x+m.labelDistance:h[2][0]=o+i-m.edgeDistance-x-m.labelDistance:(p.x<t?h[2][0]=p.x+m.labelDistance:h[2][0]=p.x-m.labelDistance,h[1][0]=h[2][0]+S),h[1][1]=h[2][1]=p.y}}}function HL(e,t,n){if(e.labelStyleWidth==null){var r=e.label,i=r.style,a=e.rect,o=i.backgroundColor,s=i.padding,c=s?s[1]+s[3]:0,l=i.overflow,u=a.width+(o?0:c);if(t<u||n){if(l&&l.match(`break`)){r.setStyle(`backgroundColor`,null),r.setStyle(`width`,t-c);var d=r.getBoundingRect();r.setStyle(`width`,Math.ceil(d.width)),r.setStyle(`backgroundColor`,o)}else{var f=t-c,p=t<u?f:n?f>e.unconstrainedWidth?null:f:null;r.setStyle(`width`,p)}UL(a,r)}}}function UL(e,t){JL.rect=e,kN(JL,t,qL)}function WL(e){return e.position===`center`}function GL(e){var t=e.getData(),n=[],r,i,a=!1,o=(e.get(`minShowLabelAngle`)||0)*KL,s=t.getLayout(`viewRect`),c=t.getLayout(`r`),l=s.width,u=s.x,d=s.y,f=s.height;function p(e){e.ignore=!0}function m(e){if(!e.ignore)return!0;for(var t in e.states)if(e.states[t].ignore===!1)return!0;return!1}t.each(function(e){var s=t.getItemGraphicEl(e),d=s.shape,h=s.getTextContent(),g=s.getTextGuideLine(),_=t.getItemModel(e),v=_.getModel(`label`),y=v.get(`position`)||_.get([`emphasis`,`label`,`position`]),b=v.get(`distanceToLabelLine`),x=v.get(`alignTo`),S=Cc(v.get(`edgeDistance`),l),C=v.get(`bleedMargin`);C??=Math.min(l,f)>200?10:2;var w=_.getModel(`labelLine`),T=w.get(`length`);T=Cc(T,l);var E=w.get(`length2`);if(E=Cc(E,l),Math.abs(d.endAngle-d.startAngle)<o){L(h.states,p),h.ignore=!0,g&&(L(g.states,p),g.ignore=!0);return}if(m(h)){var D=(d.startAngle+d.endAngle)/2,O=Math.cos(D),k=Math.sin(D),A,j,ee,te;r=d.cx,i=d.cy;var ne=y===`inside`||y===`inner`;if(y===`center`)A=d.cx,j=d.cy,te=`center`;else{var M=(ne?(d.r+d.r0)/2*O:d.r*O)+r,re=(ne?(d.r+d.r0)/2*k:d.r*k)+i;if(A=M+O*3,j=re+k*3,!ne){var ie=M+O*(T+c-d.r),ae=re+k*(T+c-d.r),oe=ie+(O<0?-1:1)*E,se=ae;A=x===`edge`?O<0?u+S:u+l-S:oe+(O<0?-b:b),j=se,ee=[[M,re],[ie,ae],[oe,se]]}te=ne?`center`:x===`edge`?O>0?`right`:`left`:O>0?`left`:`right`}var ce=Math.PI,le=0,ue=v.get(`rotate`);if(Ze(ue))le=ce/180*ue;else if(y===`center`)le=0;else if(ue===`radial`||ue===!0)le=O<0?-D+ce:-D;else if(ue===`tangential`||ue===`tangential-noflip`&&y!==`outside`&&y!==`outer`){var de=Math.atan2(O,k);de<0&&(de=ce*2+de),k>0&&ue!==`tangential-noflip`&&(de=ce+de),le=de-ce}if(a=!!le,h.x=A,h.y=j,h.rotation=le,h.setStyle({verticalAlign:`middle`}),ne){h.setStyle({align:te});var fe=h.states.select;fe&&(fe.x+=h.x,fe.y+=h.y)}else{var pe=new J(0,0,0,0);UL(pe,h),n.push({label:h,labelLine:g,position:y,len:T,len2:E,minTurnAngle:w.get(`minTurnAngle`),maxSurfaceAngle:w.get(`maxSurfaceAngle`),surfaceNormal:new q(O,k),linePoints:ee,textAlign:te,labelDistance:b,labelAlignTo:x,edgeDistance:S,bleedMargin:C,rect:pe,unconstrainedWidth:pe.width,labelStyleWidth:h.style.width})}s.setTextConfig({inside:ne})}}),!a&&e.get(`avoidLabelOverlap`)&&VL(n,r,i,c,l,f,u,d);for(var h=0;h<n.length;h++){var g=n[h],_=g.label,v=g.labelLine,y=isNaN(_.x)||isNaN(_.y);if(_){_.setStyle({align:g.textAlign}),y&&(L(_.states,p),_.ignore=!0);var b=_.states.select;b&&(b.x+=_.x,b.y+=_.y)}if(v){var x=g.linePoints;y||!x?(L(v.states,p),v.ignore=!0):(cN(x,g.minTurnAngle),lN(x,g.surfaceNormal,g.maxSurfaceAngle),v.setShape({points:x}),_.__hostTarget.textGuideLineConfig={anchor:new q(x[0][0],x[0][1])})}}}var KL,qL,JL,YL=n((()=>{Y(),s_(),Ar(),K(),TN(),UN(),KL=Math.PI/180,qL={minMarginForce:[null,0,null,0],marginDefault:[1,0,1,0]},JL={}}));function XL(e,t){e.eachSeriesByType(`pie`,function(e){var n=e.getData(),r=n.mapDimension(`value`),i=Ty(e,t),a=i.cx,o=i.cy,s=i.r,c=i.r0,l=i.viewRect,u=-e.get(`startAngle`)*QL,d=e.get(`endAngle`),f=e.get(`padAngle`)*QL;d=d===`auto`?u-ZL:-d*QL;var p=e.get(`minAngle`)*QL+f,m=0;n.each(r,function(e){!isNaN(e)&&m++});var h=n.getSum(r),g=Math.PI/(h||m)*2,_=e.get(`clockwise`),v=e.get(`roseType`),y=e.get(`stillShowZeroSum`),b=n.getDataExtent(r);b[0]=0;var x=_?1:-1,S=[u,d],C=x*f/2;sd(S,!_),u=S[0],d=S[1];var w=eR(e);w.startAngle=u,w.endAngle=d,w.clockwise=_,w.cx=a,w.cy=o,w.r=s,w.r0=c;var T=Math.abs(d-u),E=T,D=0,O=u;if(n.setLayout({viewRect:l,r:s}),n.each(r,function(e,t){var r;if(isNaN(e)){n.setItemLayout(t,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:_,cx:a,cy:o,r0:c,r:v?NaN:s});return}r=v===`area`?T/m:h===0&&y?g:e*g,r<p?(r=p,E-=p):D+=e;var i=O+x*r,l=0,u=0;f>r?(l=O+x*r/2,u=l):(l=O+C,u=i-C),n.setItemLayout(t,{angle:r,startAngle:l,endAngle:u,clockwise:_,cx:a,cy:o,r0:c,r:v?Is(e,b,[c,s]):s}),O=i}),E<ZL&&m)if(E<=.001){var k=T/m;n.each(r,function(e,t){if(!isNaN(e)){var r=n.getItemLayout(t);r.angle=k;var i=0,a=0;k<f?(i=u+x*(t+1/2)*k,a=i):(i=u+x*t*k+C,a=u+x*(t+1)*k-C),r.startAngle=i,r.endAngle=a}})}else g=E/D,O=u,n.each(r,function(e,t){if(!isNaN(e)){var r=n.getItemLayout(t),i=r.angle===p?p:e*g,a=0,o=0;i<f?(a=O+x*i/2,o=a):(a=O+C,o=O+x*i-C),r.startAngle=a,r.endAngle=o,O+=x*i}})})}var ZL,QL,$L,eR,tR=n((()=>{Y(),zL(),Td(),X(),Ly(),ZL=Math.PI*2,QL=Math.PI/180,$L=Al(`pie`,XL),eR=ol()})),nR,rR,iR=n((()=>{P(),K(),s_(),pm(),MC(),zL(),YL(),TN(),E_(),nL(),fg(),tR(),nR=function(e){N(t,e);function t(t,n,r){var i=e.call(this)||this;i.z2=2;var a=new zf;return i.setTextContent(a),i.updateData(t,n,r,!0),i}return t.prototype.updateData=function(e,t,n,r){var i=this,a=e.hostModel,o=e.getItemModel(t),s=o.getModel(`emphasis`),c=e.getItemLayout(t),l=I(tL(o.getModel(`itemStyle`),c,!0),c);if(isNaN(l.startAngle)){i.setShape(l);return}if(r){i.setShape(l);var u=a.getShallow(`animationType`);a.ecModel.ssr?(ag(i,{scaleX:0,scaleY:0},a,{dataIndex:t,isFrom:!0}),i.originX=l.cx,i.originY=l.cy):u===`scale`?(i.shape.r=c.r0,ag(i,{shape:{r:c.r}},a,t)):n==null?(i.shape.endAngle=c.startAngle,ig(i,{shape:{endAngle:c.endAngle}},a,t)):(i.setShape({startAngle:n,endAngle:n}),ag(i,{shape:{startAngle:c.startAngle,endAngle:c.endAngle}},a,t))}else ug(i),ig(i,{shape:l},a,t);i.useStyle(e.getItemVisual(t,`style`)),Kp(i,o);var d=(c.startAngle+c.endAngle)/2,f=a.get(`selectedOffset`),p=Math.cos(d)*f,m=Math.sin(d)*f,h=o.getShallow(`cursor`);h&&i.attr(`cursor`,h),this._updateLabel(a,e,t),i.ensureState(`emphasis`).shape=I({r:c.r+(s.get(`scale`)&&s.get(`scaleSize`)||0)},tL(s.getModel(`itemStyle`),c)),I(i.ensureState(`select`),{x:p,y:m,shape:tL(o.getModel([`select`,`itemStyle`]),c)}),I(i.ensureState(`blur`),{shape:tL(o.getModel([`blur`,`itemStyle`]),c)});var g=i.getTextGuideLine(),_=i.getTextContent();g&&I(g.ensureState(`select`),{x:p,y:m}),I(_.ensureState(`select`),{x:p,y:m}),Wp(this,s.get(`focus`),s.get(`blurScope`),s.get(`disabled`))},t.prototype._updateLabel=function(e,t,n){var r=this,i=t.getItemModel(n),a=i.getModel(`labelLine`),o=t.getItemVisual(n,`style`),s=o&&o.fill,c=o&&o.opacity;u_(r,d_(i),{labelFetcher:t.hostModel,labelDataIndex:n,inheritColor:s,defaultOpacity:c,defaultText:e.getFormattedLabel(n,`normal`)||t.getName(n)});var l=r.getTextContent();r.setTextConfig({position:null,rotation:null}),l.attr({z2:10});var u=i.get([`label`,`position`]);if(u!==`outside`&&u!==`outer`)r.removeTextGuideLine();else{var d=this.getTextGuideLine();d||(d=new bh,this.setTextGuideLine(d)),fN(this,pN(i),{stroke:s,opacity:ot(a.get([`lineStyle`,`opacity`]),c,1)})}},t}(sh),rR=function(e){N(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`pie`,t.ignoreLabelLineUpdate=!0,t}return t.prototype.render=function(e,t,n,r){var i=e.getData(),a=this._data,o=this.group,s;if(!a&&i.count()>0){for(var c=i.getItemLayout(0),l=1;isNaN(c&&c.startAngle)&&l<i.count();++l)c=i.getItemLayout(l);c&&(s=c.startAngle)}if(this._emptyCircleSector&&o.remove(this._emptyCircleSector),i.count()===0&&e.get(`showEmptyCircle`)){var u=eR(e),d=new sh({shape:Fe(u)});d.useStyle(e.getModel(`emptyCircleStyle`).getItemStyle()),this._emptyCircleSector=d,o.add(d)}i.diff(a).add(function(e){var t=new nR(i,e,s);i.setItemGraphicEl(e,t),o.add(t)}).update(function(e,t){var n=a.getItemGraphicEl(t);n.updateData(i,e,s),n.off(`click`),o.add(n),i.setItemGraphicEl(e,n)}).remove(function(t){lg(a.getItemGraphicEl(t),e,t)}).execute(),GL(e),e.get(`animationTypeUpdate`)!==`expansion`&&(this._data=i)},t.prototype.dispose=function(){},t.prototype.containPoint=function(e,t){var n=t.getData().getItemLayout(0);if(n){var r=e[0]-n.cx,i=e[1]-n.cy,a=Math.sqrt(r*r+i*i);return a<=n.r&&a>=n.r0}},t.type=`pie`,t}(AC)}));function aR(e){return{seriesType:e,reset:function(e,t){var n=e.getData();n.filterSelf(function(e){var t=n.mapDimension(`value`),r=n.get(t,e);return!(Ze(r)&&!isNaN(r)&&r<0)})}}}var oR=n((()=>{K()}));function sR(e){e.registerChartView(rR),e.registerSeriesModel(RL),Aw(`pie`,e.registerAction),e.registerLayout($L),e.registerProcessor(jL(`pie`)),e.registerProcessor(aR(`pie`))}var cR=n((()=>{Nw(),ML(),iR(),zL(),oR(),tR()})),lR,uR=n((()=>{P(),K(),Vy(),FA(),X(),lR=function(e){N(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents(`grid`,Il).models[0]},t.type=`cartesian2dAxis`,t}(By),He(lR,PA)})),dR,fR,pR,mR,hR,gR,_R=n((()=>{K(),Wy(),dR={show:!0,z:0,inverse:!1,name:``,nameLocation:`end`,nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:`...`,placeholder:`.`},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:`auto`,onZeroAxisIndex:null,lineStyle:{color: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`}},fR=Ie({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:`auto`,show:`auto`},axisLabel:{interval:`auto`}},dR),pR=Ie({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}}},dR),mR=Ie({splitNumber:6,axisLabel:{rich:{primary:{fontWeight:`bold`}}},splitLine:{show:!1}},pR),hR=ze({logBase:10},pR),gR={category:fR,value:pR,time:mR,log:hR}}));function vR(e,t,n,r){L(pA,function(i,a){var o=Ie(Ie({},gR[a],!0),r,!0),s=function(e){N(n,e);function n(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t+`Axis.`+a,n}return n.prototype.mergeDefaultAndTheme=function(e,t){var n=Oy(this),r=n?Ay(e):{};Ie(e,t.getTheme().get(a+`Axis`)),Ie(e,this.getDefaultOption()),e.type=yR(e),n&&ky(e,r,n)},n.prototype.optionUpdated=function(){this.option.type===`category`&&(this.__ordinalMeta=dk.createByAxisModel(this))},n.prototype.getCategories=function(e){var t=this.option;if(t.type===`category`)return e?t.data:this.__ordinalMeta.categories},n.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},n.prototype.updateAxisBreaks=function(e){var t=wF();return t?t.updateModelAxisBreak(this,e):{breaks:[]}},n.type=t+`Axis.`+a,n.defaultOption=o,n}(n);e.registerComponentModel(s)}),e.registerSubTypeDefaulter(t+`Axis`,yR)}function yR(e){return e.type||(e.data?`category`:`value`)}var bR=n((()=>{P(),_R(),Ly(),fk(),mA(),K(),EF()})),xR,SR=n((()=>{K(),xR=function(){function e(e){this.type=`cartesian`,this._dimList=[],this._axes={},this.name=e||``}return e.prototype.getAxis=function(e){return this._axes[e]},e.prototype.getAxes=function(){return R(this._dimList,function(e){return this._axes[e]},this)},e.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),Ge(this.getAxes(),function(t){return t.scale.type===e})},e.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},e}()}));function CR(e){return(e.type===`interval`||e.type===`time`)&&!fv(e)}var wR,TR,ER=n((()=>{P(),Ar(),SR(),AI(),sr(),fn(),wk(),mv(),wR=[`x`,`y`],TR=function(e){N(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=OI,t.dimensions=wR,t}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis(`x`).scale,t=this.getAxis(`y`).scale;if(!(!CR(e)||!CR(t))){var n=_k(e,null),r=_k(t,null),i=this.dataToPoint([n[0],r[0]]),a=this.dataToPoint([n[1],r[1]]),o=n[1]-n[0],s=r[1]-r[0];if(!(!o||!s)){var c=(a[0]-i[0])/o,l=(a[1]-i[1])/s,u=i[0]-n[0]*c,d=i[1]-r[0]*l,f=this._transform=[c,0,0,l,u,d];this._invTransform=ar([],f)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale(`ordinal`)[0]||this.getAxesByScale(`time`)[0]||this.getAxis(`x`)},t.prototype.containPoint=function(e){var t=this.getAxis(`x`),n=this.getAxis(`y`);return t.contain(t.toLocalCoord(e[0]))&&n.contain(n.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis(`x`).containData(e[0])&&this.getAxis(`y`).containData(e[1])},t.prototype.containZone=function(e,t){var n=this.dataToPoint(e),r=this.dataToPoint(t),i=this.getArea(),a=new J(n[0],n[1],r[0]-n[0],r[1]-n[1]);return i.intersect(a)},t.prototype.dataToPoint=function(e,t,n){n||=[];var r=e[0],i=e[1];if(this._transform&&r!=null&&isFinite(r)&&i!=null&&isFinite(i))return an(n,e,this._transform);var a=this.getAxis(`x`),o=this.getAxis(`y`);return n[0]=a.toGlobalCoord(a.dataToCoord(r,t)),n[1]=o.toGlobalCoord(o.dataToCoord(i,t)),n},t.prototype.clampData=function(e,t){var n=this.getAxis(`x`).scale,r=this.getAxis(`y`).scale,i=n.getExtent(),a=r.getExtent(),o=n.parse(e[0]),s=r.parse(e[1]);return t||=[],t[0]=Math.min(Math.max(Math.min(i[0],i[1]),o),Math.max(i[0],i[1])),t[1]=Math.min(Math.max(Math.min(a[0],a[1]),s),Math.max(a[0],a[1])),t},t.prototype.pointToData=function(e,t,n){if(n||=[],this._invTransform)return an(n,e,this._invTransform);var r=this.getAxis(`x`),i=this.getAxis(`y`);return n[0]=r.coordToData(r.toLocalCoord(e[0]),t),n[1]=i.coordToData(i.toLocalCoord(e[1]),t),n},t.prototype.getOtherAxis=function(e){return this.getAxis(e.dim===`x`?`y`:`x`)},t.prototype.getArea=function(e){e||=0;var t=this.getAxis(`x`).getGlobalExtent(),n=this.getAxis(`y`).getGlobalExtent(),r=Math.min(t[0],t[1])-e,i=Math.min(n[0],n[1])-e;return new J(r,i,Math.max(t[0],t[1])-r+e,Math.max(n[0],n[1])-i+e)},t}(xR)}));function DR(e,t){var n=e.scale,r=e.model;process.env.NODE_ENV!==`production`&&W(n&&r&&(n instanceof Uk||n instanceof cA)&&(t instanceof Uk||t instanceof cA));var i=gj(n,r,r.ecModel,e,null),a=Ok(n),o=Ok(t)?t.intervalStub:t,s=a?n.intervalStub:n,c=n.base,l=o.getTicks(),u=o.getTicks({expandToNicedExtent:!0}),d=l.length-1;process.env.NODE_ENV!==`production`&&(W(!fv(t)&&!fv(n)),W(d>0),W(u.length===l.length),W(l[0].value<=l[d].value),W(u[0].value<=l[0].value&&l[d].value<=u[d].value),d>=2&&(W(u[1].value===l[1].value),W(u[d-1].value===l[d-1].value)));var f,p,m;if(d===1)f=p=0,m=1;else if(d===2){var h=mc(l[0].value-l[1].value),g=mc(l[1].value-l[2].value);f=p=0,h===g?m=2:(m=1,h<g?f=h/g:p=g/h)}else{var _=o.getConfig().interval;f=(1-(l[0].value-u[0].value)/_)%1,p=(1-(u[d].value-l[d].value)/_)%1,m=d-+!!f-!!p}process.env.NODE_ENV!==`production`&&W(m>=1);var v=i.zoomFixMM,y=v[0]||v[1],b=[i.fixMM[0]||y,i.fixMM[1]||y],x=n.getExtent(),S=s.getExtent(),C=Pk(S,b),w,T,E,D,O,k;function A(e){for(var t=50,n=0;n<t&&!e();n++)E=a?E*pc(c,2):Ak(E),D=jk(E);process.env.NODE_ENV!==`production`&&n>=t&&Oc("incorrect impl in `scaleCalcAlign`.")}function j(){w=Bs(k-E*f,D)}function ee(){T=Bs(O+E*p,D)}function te(){k=f?Bs(w+E*f,D):w}function ne(){O=p?Bs(T-E*p,D):T}if(b[0]&&b[1]){w=C[0],T=C[1],E=(T-w)/(m+f+p);var M=e.getExtent(),re=mc(M[1]-M[0]);D=Ks([T,w],re,.5/m),te(),ne(),lc(D)&&(E=Bs(E,D))}else{var ie=C[1]-C[0];E=a?pc($s(ie),1):tc(ie/m,2),D=jk(E),b[0]?(w=C[0],A(function(){if(te(),O=Bs(k+E*m,D),ee(),T>=C[1])return!0})):b[1]?(T=C[1],A(function(){if(ne(),k=Bs(O-E*m,D),j(),w<=C[0])return!0})):A(function(){k=Bs(_c(C[0]/E)*E,D),O=Bs(gc(C[1]/E)*E,D);var e=hc((O-k)/E);if(e<=m){var t=m-e,n=void 0,r=i.incl0||a;if(r&&C[0]===0)n=[0,t];else if(r&&C[1]===0)n=[t,0];else{var o=gc(t/2);n=t%2==0?[o,o]:w+T<C[0]+C[1]?[o,o+1]:[o+1,o]}if(k=Bs(k-E*n[0],D),O=Bs(O+E*n[1],D),j(),ee(),w<=C[0]&&T>=C[1])return!0}})}kA(n,b,S,[w,T],x,{interval:E,intervalCount:m,intervalPrecision:D,niceExtent:[k,O]}),process.env.NODE_ENV!==`production`&&n.freeze()}var OR=n((()=>{Y(),Wk(),fA(),NA(),Lc(),Rk(),K(),Cj(),mv()}));function kR(e,t){return e.getCoordSysModel()===t}function AR(e,t,n,r){n.getAxesOnZeroOf=function(){return a?[a]:[]};var i=e[t],a,o=n.model,s=o.get([`axisLine`,`onZero`]),c=o.get([`axisLine`,`onZeroAxisIndex`]);if(!s)return;if(c!=null)jR(s,i[c])&&(a=i[c]);else for(var l in i)if(gt(i,l)&&jR(s,i[l])&&!r[u(i[l])]){a=i[l];break}a&&(r[u(a)]=!0);function u(e){return e.dim+`_`+e.index}}function jR(e,t){if(!t)return!1;var n=t.scale,r=_A(n,0,!1),i=t&&t.type!==`category`&&t.type!==`time`&&r!==3;return i&&e===`auto`&&yA(t)&&(i=!1),i}function MR(e){for(var t=qe(e),n,r=[],i=t.length-1;i>=0;i--){var a=e[+t[i]];Tk(a.scale)&&DA(a.model,a.type,!0)==null&&(a.model.get(`alignTicks`)&&a.model.get(`interval`)==null?r.push(a):n=a)}n||=r.pop(),n&&L(r,function(e){e.__alignTo=n})}function NR(e,t){return fv(e.scale)||fv(t.scale)||t.scale.getTicks().length<2}function PR(e,t){var n=e.getExtent(),r=n[0]+n[1];e.toGlobalCoord=e.dim===`x`?function(e){return e+t}:function(e){return r-e+t},e.toLocalCoord=e.dim===`x`?function(e){return e-t}:function(e){return r-e+t}}function FR(e,t){L(e.x,function(e){return IR(e,t.x,t.width)}),L(e.y,function(e){return IR(e,t.y,t.height)})}function IR(e,t,n){var r=[0,n],i=+!!e.inverse;e.setExtent(r[i],r[1-i]),PR(e,t)}function LR(e,t,n,r,i,a,o){process.env.NODE_ENV!==`production`&&W(t===`all`||t===`axisLabel`),zR(r,i,IM.estimate,t,!1,o);var s=[0,0,0,0];l(0),l(1),u(r,0,NaN),u(r,1,NaN);var c=Ke(s,function(e){return e>0})==null;return Lg(r,s,!0,!0,n),FR(i,r),c;function l(e){L(i[$g[e]],function(t){if(EA(t.model)){var n=a.ensureRecord(t.model),r=n.labelInfoList;if(r)for(var i=0;i<r.length;i++){var o=r[i],s=t.scale.normalize(AA(t.scale,ZF(o.label).labelInfo.tick));s=e===1?1-s:s,u(o.rect,e,s),u(o.rect,1-e,NaN)}var c=n.nameLayout;if(c){var s=TA(n.nameLocation)?.5:NaN;u(c.rect,e,s),u(c.rect,1-e,NaN)}}})}function u(t,n,r){var i=e[$g[n]]-t[$g[n]],a=t[e_[n]]+t[$g[n]]-(e[e_[n]]+e[$g[n]]);i=d(i,1-r),a=d(a,r);var o=VR[n][0],c=VR[n][1];s[o]=pc(s[o],i),s[c]=pc(s[c],a)}function d(e,t){return e>0&&!it(t)&&t>1e-4&&(e/=t),e}}function RR(e,t,n,r,i){var a=new $F(WR);return L(n,function(n){return L(n,function(n){if(EA(n.model)){var o=!r;n.axisBuilder=fI(e,t,n.model,i,a,o)}})}),a}function zR(e,t,n,r,i,a){var o=n===IM.determine;L(t,function(t){return L(t,function(t){EA(t.model)&&(pI(t.axisBuilder,e,t.model),t.axisBuilder.build(o?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:i}))})});var s={x:0,y:0};c(0),c(1);function c(t){s[$g[1-t]]=e[e_[t]]<=a.refContainer[e_[t]]*.5?0:1-t==1?2:1}L(t,function(e,t){return L(e,function(e){EA(e.model)&&((r===`all`||o)&&e.axisBuilder.build({axisName:!0},{nameMarginLevel:s[t]}),o&&e.axisBuilder.build({axisLine:!0}))})})}function BR(e,t,n){var r,i=e.get(`outerBoundsMode`,!0);i===`same`?r=t.clone():i==null||i===`auto`?r=Ey(e.get(`outerBounds`,!0)||EI,n.refContainer):i!==`none`&&process.env.NODE_ENV!==`production`&&kc(`Invalid grid[`+e.componentIndex+`].outerBoundsMode.`);var a=e.get(`outerBoundsContain`,!0),o;a==null||a===`auto`?o=`all`:Be([`all`,`axisLabel`],a)<0?(process.env.NODE_ENV!==`production`&&kc(`Invalid grid[`+e.componentIndex+`].outerBoundsContain.`),o=`all`):o=a;var s=[Rs(U(e.get(`outerBoundsClampWidth`,!0),DI[0]),t.width),Rs(U(e.get(`outerBoundsClampHeight`,!0),DI[1]),t.height)];return{outerBoundsRect:r,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var VR,HR,UR,WR,GR=n((()=>{K(),Ly(),NA(),ER(),CF(),X(),AI(),mI(),Rk(),OR(),s_(),cI(),Lc(),zM(),xy(),Y(),jj(),CO(),Cj(),mv(),ij(),VR=[[3,1],[0,2]],HR=function(){function e(e,t,n){this.type=`grid`,this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=wR,this._initCartesian(e,t,n),this.model=e}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(e,t){var n=this._axesMap;L(this._axesList,function(e){dj(e,1);var t=e.scale;kk(t)&&t.setSortInfo(e.model.get(`categorySortInfo`))});function r(e){for(var t=qe(e),n=[],r=t.length-1;r>=0;r--){var i=e[+t[r]];i.__alignTo?n.push(i):Dj(i)}L(n,function(e){NR(e,e.__alignTo)?Dj(e):DR(e,e.__alignTo.scale)})}r(n.x),r(n.y);var i={};L(n.x,function(e){AR(n,`y`,e,i)}),L(n.y,function(e){AR(n,`x`,e,i)}),this.resize(this.model,t)},e.prototype.resize=function(e,t,n){var r=Dy(e,t),i=this._rect=Ey(e.getBoxLayoutParams(),r.refContainer),a=this._axesMap,o=this._coordsList,s=e.get(`containLabel`);if(FR(a,i),!n){var c=RR(i,o,a,s,t),l=void 0;if(s)UR?(UR(this._axesList,i),FR(a,i)):(process.env.NODE_ENV!==`production`&&Dc("Specified `grid.containLabel` but no `use(LegacyGridContainLabel)`;use `grid.outerBounds` instead.",!0),l=LR(i.clone(),`axisLabel`,null,i,a,c,r));else{var u=BR(e,i,r),d=u.outerBoundsRect,f=u.parsedOuterBoundsContain,p=u.outerBoundsClamp;d&&(l=LR(d,f,p,i,a,c,r))}zR(i,a,IM.determine,null,l,r),L(this._coordsList,function(e){e.calcAffineTransform()})}},e.prototype.getAxis=function(e,t){var n=this._axesMap[e];if(n!=null)return n[t||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(e,t){if(e!=null&&t!=null){var n=`x`+e+`y`+t;return this._coordsMap[n]}H(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var r=0,i=this._coordsList;r<i.length;r++)if(i[r].getAxis(`x`).index===e||i[r].getAxis(`y`).index===t)return i[r]},e.prototype.getCartesians=function(){return this._coordsList.slice()},e.prototype.convertToPixel=function(e,t,n){var r=this._findConvertTarget(t);return r.cartesian?r.cartesian.dataToPoint(n):r.axis?r.axis.toGlobalCoord(r.axis.dataToCoord(n)):null},e.prototype.convertFromPixel=function(e,t,n){var r=this._findConvertTarget(t);return r.cartesian?r.cartesian.pointToData(n):r.axis?r.axis.coordToData(r.axis.toLocalCoord(n)):null},e.prototype._findConvertTarget=function(e){var t=e.seriesModel,n=e.xAxisModel||t&&t.getReferringComponents(`xAxis`,Il).models[0],r=e.yAxisModel||t&&t.getReferringComponents(`yAxis`,Il).models[0],i=e.gridModel,a=this._coordsList,o,s;return t?(o=t.coordinateSystem,Be(a,o)<0&&(o=null)):n&&r?o=this.getCartesian(n.componentIndex,r.componentIndex):n?s=this.getAxis(`x`,n.componentIndex):r?s=this.getAxis(`y`,r.componentIndex):i&&i.coordinateSystem===this&&(o=this._coordsList[0]),{cartesian:o,axis:s}},e.prototype.containPoint=function(e){var t=this._coordsList[0];if(t)return t.containPoint(e)},e.prototype._initCartesian=function(e,t,n){var r=this,i=this,a={left:!1,right:!1,top:!1,bottom:!1},o={x:{},y:{}},s={x:0,y:0};if(t.eachComponent(`xAxis`,c(`x`),this),t.eachComponent(`yAxis`,c(`y`),this),!s.x||!s.y){this._axesMap={},this._axesList=[];return}this._axesMap=o,L(o.x,function(t,n){L(o.y,function(i,a){var o=`x`+n+`y`+a,s=new TR(o);s.master=r,s.model=e,r._coordsMap[o]=s,r._coordsList.push(s),s.addAxis(t),s.addAxis(i)})}),MR(o.x),MR(o.y);function c(t){return function(n,r){if(kR(n,e)){var c=n.get(`position`);t===`x`?c!==`top`&&c!==`bottom`&&(c=a.bottom?`top`:`bottom`):c!==`left`&&c!==`right`&&(c=a.left?`right`:`left`),a[c]=!0;var l=hA(n),u=new SF(t,gA(n,l,!0),[0,0],l,c);u.onBand=jA(u.scale,n),u.inverse=n.get(`inverse`),n.axis=u,u.model=n,u.grid=i,u.index=r,i._axesList.push(u),o[t][r]=u,s[t]++}}}},e.prototype.getTooltipAxes=function(e){var t=[],n=[];return L(this.getCartesians(),function(r){var i=e!=null&&e!==`auto`?r.getAxis(e):r.getBaseAxis(),a=r.getOtherAxis(i);Be(t,i)<0&&t.push(i),Be(n,a)<0&&n.push(a)}),{baseAxes:t,otherAxes:n}},e.create=function(t,n){var r=[];return t.eachComponent(`grid`,function(i,a){var o=new e(i,t,n);o.name=`grid_`+a,o.resize(i,n,!0),i.coordinateSystem=o,r.push(o),L(o._axesList,function(t){uj(t,e.dimIdxMap)})}),t.eachSeries(function(e){var t,n;gy({targetModel:e,coordSysType:OI,coordSysProvider:r});function r(){var r=dI(e),i=r.xAxisModel,a=r.yAxisModel;t=i.axis,n=a.axis;var o=i.getCoordSysModel();if(process.env.NODE_ENV!==`production`){if(!o)throw Error(`Grid "`+ot(i.get(`gridIndex`),i.get(`gridId`),0)+`" not found`);if(i.getCoordSysModel()!==a.getCoordSysModel())throw Error(`xAxis and yAxis must use the same grid`)}return o.coordinateSystem.getCartesian(i.componentIndex,a.componentIndex)}t&&n&&(JA(t,e,OI),JA(n,e,OI))},this),r},e.dimensions=wR,e.dimIdxMap=_O(wR),e}(),WR=function(e,t,n,r,i,a){var o=n.axis.dim===`x`?`y`:`x`;nI(e,t,n,r,i,a),TA(e.nameLocation)||L(t.recordMap[o],function(e){e&&e.labelInfoList&&e.dirVec&&jF(e.labelInfoList,e.dirVec,r,i)})}}));function KR(e,t){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return qR(n,e,t),n.seriesInvolved&&YR(n,e),n}function qR(e,t,n){var r=t.getComponent(`tooltip`),i=t.getComponent(`axisPointer`),a=i.get(`link`,!0)||[],o=[];L(n.getCoordinateSystems(),function(n){if(!n.axisPointerEnabled)return;var s=nz(n.model),c=e.coordSysAxesInfo[s]={};e.coordSysMap[s]=n;var l=n.model.getModel(`tooltip`,r);if(L(n.getAxes(),Ye(p,!1,null)),n.getTooltipAxes&&r&&l.get(`show`)){var u=l.get(`trigger`)===`axis`,d=l.get([`axisPointer`,`type`])===`cross`,f=n.getTooltipAxes(l.get([`axisPointer`,`axis`]));(u||d)&&L(f.baseAxes,Ye(p,d?`cross`:!0,u)),d&&L(f.otherAxes,Ye(p,`cross`,!1))}function p(r,s,u){var d=u.model.getModel(`axisPointer`,i),f=d.get(`show`);if(!(!f||f===`auto`&&!r&&!tz(d))){s??=d.get(`triggerTooltip`),d=r?JR(u,l,i,t,r,s):d;var p=d.get(`snap`),m=d.get(`triggerEmphasis`),h=nz(u.model),g=s||p||u.type===`category`,_=e.axesInfo[h]={key:h,axis:u,coordSys:n,axisPointerModel:d,triggerTooltip:s,triggerEmphasis:m,involveSeries:g,snap:p,useHandle:tz(d),seriesModels:[],linkGroup:null};c[h]=_,e.seriesInvolved=e.seriesInvolved||g;var v=XR(a,u);if(v!=null){var y=o[v]||(o[v]={axesInfo:{}});y.axesInfo[h]=_,y.mapper=a[v].mapper,_.linkGroup=y}}}})}function JR(e,t,n,r,i,a){var o=t.getModel(`axisPointer`),s=[`type`,`snap`,`lineStyle`,`shadowStyle`,`label`,`animation`,`animationDurationUpdate`,`animationEasingUpdate`,`z`],c={};L(s,function(e){c[e]=Fe(o.get(e))}),c.snap=e.type!==`category`&&!!a,o.get(`type`)===`cross`&&(c.type=`line`);var l=c.label||={};if(l.show??=!1,i===`cross`&&(l.show=o.get([`label`,`show`])??!0,!a)){var u=c.lineStyle=o.get(`crossStyle`);u&&ze(l,u.textStyle)}return e.model.getModel(`axisPointer`,new B_(c,n,r))}function YR(e,t){t.eachSeries(function(t){var n=t.coordinateSystem,r=t.get([`tooltip`,`trigger`],!0),i=t.get([`tooltip`,`show`],!0);!n||!n.model||r===`none`||r===!1||r===`item`||i===!1||t.get([`axisPointer`,`show`],!0)===!1||L(e.coordSysAxesInfo[nz(n.model)],function(e){var r=e.axis;n.getAxis(r.dim)===r&&(e.seriesModels.push(t),e.seriesDataCount??=0,e.seriesDataCount+=t.getData().count())})})}function XR(e,t){for(var n=t.model,r=t.dim,i=0;i<e.length;i++){var a=e[i]||{};if(ZR(a[r+`AxisId`],n.id)||ZR(a[r+`AxisIndex`],n.componentIndex)||ZR(a[r+`AxisName`],n.name))return i}}function ZR(e,t){return e===`all`||z(e)&&Be(e,t)>=0||e===t}function QR(e){var t=$R(e);if(t){var n=t.axisPointerModel,r=t.axis.scale,i=n.option,a=n.get(`status`),o=n.get(`value`);o!=null&&(o=r.parse(o));var s=tz(n);a??(i.status=s?`show`:`hide`);var c=r.getExtent();(o==null||o>c[1])&&(o=c[1]),o<c[0]&&(o=c[0]),i.value=o,s&&(i.status=t.axis.scale.isBlank()?`hide`:`show`)}}function $R(e){var t=(e.ecModel.getComponent(`axisPointer`)||{}).coordSysAxesInfo;return t&&t.axesInfo[nz(e)]}function ez(e){var t=$R(e);return t&&t.axisPointerModel}function tz(e){return!!e.get([`handle`,`show`])}function nz(e){return e.type+`||`+e.id}var rz=n((()=>{V_(),K()})),iz,az,oz=n((()=>{P(),rz(),xC(),iz={},az=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(t,n,r,i){this.axisPointerClass&&QR(t),e.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(t,r,!0)},t.prototype.updateAxisPointer=function(e,t,n,r){this._doUpdateAxisPointerClass(e,n,!1)},t.prototype.remove=function(e,t){var n=this._axisPointer;n&&n.remove(t)},t.prototype.dispose=function(t,n){this._disposeAxisPointer(n),e.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(e,n,r){var i=t.getAxisPointerClass(this.axisPointerClass);if(i){var a=ez(e);a?(this._axisPointer||=new i).render(e,a,n,r):this._disposeAxisPointer(n)}},t.prototype._disposeAxisPointer=function(e){this._axisPointer&&this._axisPointer.dispose(e),this._axisPointer=null},t.registerAxisPointerClass=function(e,t){if(process.env.NODE_ENV!==`production`&&iz[e])throw Error(`axisPointer `+e+` exists`);iz[e]=t},t.getAxisPointerClass=function(e){return e&&iz[e]},t.type=`axis`,t}(bC)}));function sz(e,t,n,r){var i=n.axis;if(!i.scale.isBlank()){var a=n.getModel(`splitArea`),o=a.getModel(`areaStyle`),s=o.get(`color`),c=r.coordinateSystem.getRect(),l=i.getTicksCoords({tickModel:a,breakTicks:`none`,pruneByBreak:`preserve_extent_bound`});if(l.length){var u=s.length,d=lz(e).splitAreaColors,f=G(),p=0;if(d)for(var m=0;m<l.length;m++){var h=d.get(l[m].tickValue);if(h!=null){p=(h+(u-1)*m)%u;break}}var g=i.toGlobalCoord(l[0].coord),_=o.getAreaStyle();s=z(s)?s:[s];for(var m=1;m<l.length;m++){var v=i.toGlobalCoord(l[m].coord),y=void 0,b=void 0,x=void 0,S=void 0;i.isHorizontal()?(y=g,b=c.y,x=v-y,S=c.height,g=y+x):(y=c.x,b=g,x=c.width,S=v-b,g=b+S);var C=l[m-1].tickValue;C!=null&&f.set(C,p),t.add(new Cf({anid:C==null?null:`area_`+C,shape:{x:y,y:b,width:x,height:S},style:ze({fill:s[p]},_),autoBatch:!0,silent:!0})),p=(p+1)%u}lz(e).splitAreaColors=f}}}function cz(e){lz(e).splitAreaColors=null}var lz,uz=n((()=>{K(),s_(),X(),lz=ol()})),dz,fz,pz,mz,hz,gz=n((()=>{P(),K(),s_(),oz(),uz(),EF(),NA(),dz=[`splitArea`,`splitLine`,`minorSplitLine`,`breakArea`],fz=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass=`CartesianAxisPointer`,n}return t.prototype.render=function(t,n,r,i){this.group.removeAll();var a=this._axisGroup;this._axisGroup=new _s,this.group.add(this._axisGroup),EA(t)&&(this._axisGroup.add(t.axis.axisBuilder.group),L(dz,function(e){t.get([e,`show`])&&pz[e](this,this._axisGroup,t,t.getCoordSysModel(),r)},this),i&&i.type===`changeAxisOrder`&&i.isInitSort||kg(a,this._axisGroup,t),e.prototype.render.call(this,t,n,r,i))},t.prototype.remove=function(){cz(this)},t.type=`cartesianAxis`,t}(az),pz={splitLine:function(e,t,n,r,i){var a=n.axis;if(!a.scale.isBlank()){var o=n.getModel(`splitLine`),s=o.getModel(`lineStyle`),c=s.get(`color`),l=o.get(`showMinLine`)!==!1,u=o.get(`showMaxLine`)!==!1;c=z(c)?c:[c];for(var d=r.coordinateSystem.getRect(),f=a.isHorizontal(),p=0,m=a.getTicksCoords({tickModel:o,breakTicks:`none`,pruneByBreak:`preserve_extent_bound`}),h=[],g=[],_=s.getLineStyle(),v=0;v<m.length;v++){var y=a.toGlobalCoord(m[v].coord);if(!(v===0&&!l||v===m.length-1&&!u)){var b=m[v].tickValue;f?(h[0]=y,h[1]=d.y,g[0]=y,g[1]=d.y+d.height):(h[0]=d.x,h[1]=y,g[0]=d.x+d.width,g[1]=y);var x=p++%c.length,S=new wh({anid:b==null?null:`line_`+b,autoBatch:!0,shape:{x1:h[0],y1:h[1],x2:g[0],y2:g[1]},style:ze({stroke:c[x]},_),silent:!0});Sg(S.shape,_.lineWidth),t.add(S)}}}},minorSplitLine:function(e,t,n,r,i){var a=n.axis,o=n.getModel(`minorSplitLine`).getModel(`lineStyle`),s=r.coordinateSystem.getRect(),c=a.isHorizontal(),l=a.getMinorTicksCoords();if(l.length)for(var u=[],d=[],f=o.getLineStyle(),p=0;p<l.length;p++)for(var m=0;m<l[p].length;m++){var h=a.toGlobalCoord(l[p][m].coord);c?(u[0]=h,u[1]=s.y,d[0]=h,d[1]=s.y+s.height):(u[0]=s.x,u[1]=h,d[0]=s.x+s.width,d[1]=h);var g=new wh({anid:`minor_line_`+l[p][m].tickValue,autoBatch:!0,shape:{x1:u[0],y1:u[1],x2:d[0],y2:d[1]},style:f,silent:!0});Sg(g.shape,f.lineWidth),t.add(g)}},splitArea:function(e,t,n,r,i){sz(e,t,n,r)},breakArea:function(e,t,n,r,i){var a=wF(),o=n.axis.scale;a&&o.type!==`ordinal`&&a.rectCoordBuildBreakAxis(t,e,n,r.coordinateSystem.getRect(),i)}},mz=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`xAxis`,t}(fz),hz=function(e){N(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=mz.type,t}return t.type=`yAxis`,t}(fz)}));function _z(e){e.registerComponentView(vz),e.registerComponentModel(kI),e.registerCoordinateSystem(`cartesian2d`,HR),vR(e,`x`,lR,yz),vR(e,`y`,lR,yz),e.registerComponentView(mz),e.registerComponentView(hz),e.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}var vz,yz,bz=n((()=>{P(),xC(),AI(),s_(),K(),uR(),bR(),GR(),gz(),vz=function(e){N(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`grid`,t}return t.prototype.render=function(e,t){this.group.removeAll(),e.get(`show`)&&this.group.add(new Cf({shape:e.coordinateSystem.getRect(),style:ze({fill:e.get(`backgroundColor`)},e.getItemStyle()),silent:!0,z2:-1}))},t.type=`grid`,t}(bC),yz={offset:0}})),xz=n((()=>{xF(),AL(),cR(),Hj(),P(),ok(),yC(),Wy(),yP(),s_(),pT(),Kf(),X(),hF(),MC(),WP(),bz(),WM(),CF(),AI(),Vy(),FA(),K(),Rk(),CC(),ML(),pm(),PL(),IL(),iC(),E_(),pf(),fg(),_R(),V_(),q_(),cI(),xC(),YM(),Wk(),Y(),OR(),Ly(),Cj(),ij(),_n(),Gn(),rO(),vs(),Bm(),wf(),Um(),Th(),vh(),xh(),sr(),Lm(),zh(),Vh(),cf(),xa(),Ar(),tM(),oM(),lE(),Lo(),ap(),fn(),Wu(),tp(),ob(),xy(),Nw(),Lc(),Fw(),pP(),ad(),zO(),WO(),af(),hb(),sO(),eu(),dy(),sC(),Fi(),nL(),Td(),YI(),TN(),zC(),NA(),jj(),bR(),pO(),SI(),kP(),Dd(),jd(),je(),KP(),uP(),TI(),WI(),HI(),BP(),Pd(),YP(),Ja(),Ww()})),Sz=n((()=>{xz()}));function Cz(e,t,n,r){wz(Oz(n).lastProp,r)||(Oz(n).lastProp=r,t?ig(n,r,e):(n.stopAnimation(),n.attr(r)))}function wz(e,t){if(H(e)&&H(t)){var n=!0;return L(t,function(t,r){n&&=wz(e[r],t)}),!!n}else return e===t}function Tz(e,t){e[t.get([`label`,`show`])?`show`:`hide`]()}function Ez(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function Dz(e,t,n){var r=t.get(`z`),i=t.get(`zlevel`);e&&e.traverse(function(e){e.type!==`group`&&(r!=null&&(e.z=r),i!=null&&(e.zlevel=i),e.silent=n)})}var Oz,kz,Az,jz,Mz=n((()=>{K(),s_(),rz(),Gn(),zC(),X(),WM(),Oz=ol(),kz=Fe,Az=Mt,jz=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(e,t,n,r){var i=t.get(`value`),a=t.get(`status`);if(this._axisModel=e,this._axisPointerModel=t,this._api=n,!(!r&&this._lastValue===i&&this._lastStatus===a)){this._lastValue=i,this._lastStatus=a;var o=this._group,s=this._handle;if(!a||a===`hide`){o&&o.hide(),s&&s.hide();return}o&&o.show(),s&&s.show();var c={};this.makeElOption(c,i,e,t,n);var l=c.graphicKey;l!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=l;var u=this._moveAnimation=this.determineAnimation(e,t);if(!o)o=this._group=new _s,this.createPointerEl(o,c,e,t),this.createLabelEl(o,c,e,t),n.getZr().add(o);else{var d=Ye(Cz,t,u);this.updatePointerEl(o,c,d),this.updateLabelEl(o,c,d,t)}Dz(o,t,!0),this._renderHandle(i)}},e.prototype.remove=function(e){this.clear(e)},e.prototype.dispose=function(e){this.clear(e)},e.prototype.determineAnimation=function(e,t){var n=t.get(`animation`),r=e.axis,i=r.type===`category`,a=t.get(`snap`);if(!a&&!i)return!1;if(n===`auto`||n==null){var o=this.animationThreshold;if(i&&BM(r).w>o)return!0;if(a){var s=$R(e).seriesDataCount,c=r.getExtent();return Math.abs(c[0]-c[1])/s>o}return!1}return n===!0},e.prototype.makeElOption=function(e,t,n,r,i){},e.prototype.createPointerEl=function(e,t,n,r){var i=t.pointer;if(i){var a=Oz(e).pointerEl=new pg[i.type](kz(t.pointer));e.add(a)}},e.prototype.createLabelEl=function(e,t,n,r){if(t.label){var i=Oz(e).labelEl=new zf(kz(t.label));e.add(i),Tz(i,r)}},e.prototype.updatePointerEl=function(e,t,n){var r=Oz(e).pointerEl;r&&t.pointer&&(r.setStyle(t.pointer.style),n(r,{shape:t.pointer.shape}))},e.prototype.updateLabelEl=function(e,t,n,r){var i=Oz(e).labelEl;i&&(i.setStyle(t.label.style),n(i,{x:t.label.x,y:t.label.y}),Tz(i,r))},e.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var t=this._axisPointerModel,n=this._api.getZr(),r=this._handle,i=t.getModel(`handle`),a=t.get(`status`);if(!i.get(`show`)||!a||a===`hide`){r&&n.remove(r),this._handle=null;return}var o;this._handle||(o=!0,r=this._handle=Mg(i.get(`icon`),{cursor:`move`,draggable:!0,onmousemove:function(e){Wn(e.event)},onmousedown:Az(this._onHandleDragMove,this,0,0),drift:Az(this._onHandleDragMove,this),ondragend:Az(this._onHandleDragEnd,this)}),n.add(r)),Dz(r,t,!1),r.setStyle(i.getItemStyle(null,[`color`,`borderColor`,`borderWidth`,`opacity`,`shadowColor`,`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`]));var s=i.get(`size`);z(s)||(s=[s,s]),r.scaleX=s[0]/2,r.scaleY=s[1]/2,PC(this,`_doDispatchAxisPointer`,i.get(`throttle`)||0,`fixRate`),this._moveHandleToValue(e,o)}},e.prototype._moveHandleToValue=function(e,t){Cz(this._axisPointerModel,!t&&this._moveAnimation,this._handle,Ez(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(e,t){var n=this._handle;if(n){this._dragging=!0;var r=this.updateHandleTransform(Ez(n),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=r,n.stopAnimation(),n.attr(Ez(r)),Oz(n).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){if(this._handle){var e=this._payloadInfo,t=this._axisModel;this._api.dispatchAction({type:`updateAxisPointer`,x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:t.axis.dim,axisIndex:t.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){if(this._dragging=!1,this._handle){var e=this._axisPointerModel.get(`value`);this._moveHandleToValue(e),this._api.dispatchAction({type:`hideTip`})}},e.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),n=this._group,r=this._handle;t&&n&&(this._lastGraphicKey=null,n&&t.remove(n),r&&t.remove(r),this._group=null,this._handle=null,this._payloadInfo=null),FC(this,`_doDispatchAxisPointer`)},e.prototype.doClear=function(){},e.prototype.buildLabel=function(e,t,n){return n||=0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}},e}()}));function Nz(e){var t=e.get(`type`),n=e.getModel(t+`Style`),r;return t===`line`?(r=n.getLineStyle(),r.fill=null):t===`shadow`&&(r=n.getAreaStyle(),r.stroke=null),r}function Pz(e,t,n,r,i){var a=Iz(n.get(`value`),t.axis,t.ecModel,n.get(`seriesDataIndices`),{precision:n.get([`label`,`precision`]),formatter:n.get([`label`,`formatter`])}),o=n.getModel(`label`),s=cy(o.get(`padding`)||0),c=o.getFont(),l=Uo(a,c),u=i.position,d=l.width+s[1]+s[3],f=l.height+s[0]+s[2],p=i.align;p===`right`&&(u[0]-=d),p===`center`&&(u[0]-=d/2);var m=i.verticalAlign;m===`bottom`&&(u[1]-=f),m===`middle`&&(u[1]-=f/2),Fz(u,d,f,r);var h=o.get(`backgroundColor`);(!h||h===`auto`)&&(h=t.get([`axisLine`,`lineStyle`,`color`])),e.label={x:u[0],y:u[1],style:f_(o,{text:a,font:c,fill:o.getTextColor(),padding:s,backgroundColor:h}),z2:10}}function Fz(e,t,n,r){var i=r.getWidth(),a=r.getHeight();e[0]=Math.min(e[0]+t,i)-t,e[1]=Math.min(e[1]+n,a)-n,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function Iz(e,t,n,r,i){e=t.scale.parse(e);var a=t.scale.getLabel({value:e},{precision:i.precision}),o=i.formatter;if(o){var s={value:xA(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};L(r,function(e){var t=n.getSeriesByIndex(e.seriesIndex),r=e.dataIndexInside,i=t&&t.getDataParams(r);i&&s.seriesData.push(i)}),V(o)?a=o.replace(`{value}`,a):B(o)&&(a=o(s))}return a}function Lz(e,t,n){var r=Qn();return rr(r,r,n.rotation),nr(r,r,n.position),Tg([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function Rz(e,t,n,r,i,a){var o=rI.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=i.get([`label`,`margin`]),Pz(t,r,i,a,{position:Lz(r.axis,e,n),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function zz(e,t,n){return n||=0,{x1:e[n],y1:e[1-n],x2:t[n],y2:t[1-n]}}function Bz(e,t,n){return n||=0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}}function Vz(e,t,n){return BM(e,{fromStat:{sers:R(t,function(e){return n.getSeriesByIndex(e.seriesIndex)})},min:1}).w}function Hz(e,t,n){return[pc(fc(t[0],t[1]),e-n/2),fc(e+n/2,pc(t[0],t[1]))]}var Uz=n((()=>{K(),s_(),Qo(),dy(),sr(),NA(),cI(),E_(),WM(),Y()}));function Wz(e,t){var n={};return n[t.dim+`AxisIndex`]=t.index,e.getCartesian(n)}function Gz(e){return e.dim===`x`?0:1}var Kz,qz,Jz=n((()=>{P(),Mz(),Uz(),mI(),Y(),Kz=function(e){N(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,t,n,r,i){var a=n.axis,o=a.grid,s=r.get(`type`),c=a.getGlobalExtent(),l=Wz(o,a).getOtherAxis(a).getGlobalExtent(),u=a.toGlobalCoord(a.dataToCoord(t,!0));if(s&&s!==`none`){var d=Nz(r),f=qz[s](a,u,c,l,r.get(`seriesDataIndices`),r.ecModel);f.style=d,e.graphicKey=f.type,e.pointer=f}Rz(t,e,lI(o.getRect(),n),n,r,i)},t.prototype.getHandleTransform=function(e,t,n){var r=lI(t.axis.grid.getRect(),t,{labelInside:!1});r.labelMargin=n.get([`handle`,`margin`]);var i=Lz(t.axis,e,r);return{x:i[0],y:i[1],rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,t,n,r){var i=n.axis,a=i.grid,o=i.getGlobalExtent(!0),s=Wz(a,i).getOtherAxis(i).getGlobalExtent(),c=i.dim===`x`?0:1,l=[e.x,e.y];l[c]+=t[c],l[c]=fc(o[1],l[c]),l[c]=pc(o[0],l[c]);var u=(s[1]+s[0])/2,d=[u,u];return d[c]=l[c],{x:l[0],y:l[1],rotation:e.rotation,cursorPoint:d,tooltipOption:[{verticalAlign:`middle`},{align:`center`}][c]}},t}(jz),qz={line:function(e,t,n,r){return{type:`Line`,subPixelOptimize:!0,shape:zz([t,r[0]],[t,r[1]],Gz(e))}},shadow:function(e,t,n,r,i,a){var o=Vz(e,i,a),s=r[1]-r[0],c=Hz(t,n,o),l=c[0],u=c[1];return{type:`Rect`,shape:Bz([l,r[0]],[u-l,s],Gz(e))}}}})),Yz,Xz=n((()=>{P(),Vy(),Wy(),Yz=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`axisPointer`,t.defaultOption={show:`auto`,z:50,type:`line`,snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color: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}},t}(By)}));function Zz(e,t,n){if(!F.node){var r=t.getZr();iB(r).records||(iB(r).records={}),Qz(r,t);var i=iB(r).records[e]||(iB(r).records[e]={});i.handler=n}}function Qz(e,t){if(iB(e).initialized)return;iB(e).initialized=!0,n(`click`,Ye(tB,`click`)),n(`mousemove`,Ye(tB,`mousemove`)),n(`mousewheel`,Ye(tB,`mousewheel`)),n(`globalout`,eB);function n(n,r){e.on(n,function(n){var i=nB(t);aB(iB(e).records,function(e){e&&r(e,n,i.dispatchAction)}),$z(i.pendings,t)})}}function $z(e,t){var n=e.showTip.length,r=e.hideTip.length,i;n?i=e.showTip[n-1]:r&&(i=e.hideTip[r-1]),i&&(i.dispatchAction=null,t.dispatchAction(i))}function eB(e,t,n){e.handler(`leave`,null,n)}function tB(e,t,n,r){t.handler(e,n,r)}function nB(e){var t={showTip:[],hideTip:[]},n=function(r){var i=t[r.type];i?i.push(r):(r.dispatchAction=n,e.dispatchAction(r))};return{dispatchAction:n,pendings:t}}function rB(e,t){if(!F.node){var n=t.getZr();(iB(n).records||{})[e]&&(iB(n).records[e]=null)}}var iB,aB,oB=n((()=>{K(),xe(),X(),iB=ol(),aB=L})),sB,cB=n((()=>{P(),oB(),xC(),sB=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){var r=t.getComponent(`tooltip`),i=e.get(`triggerOn`)||r&&r.get(`triggerOn`)||`mousemove|click|mousewheel`;Zz(`axisPointer`,n,function(e,t,n){i!==`none`&&(e===`leave`||i.indexOf(e)>=0)&&n({type:`updateAxisPointer`,currTrigger:e,x:t&&t.offsetX,y:t&&t.offsetY})})},t.prototype.remove=function(e,t){rB(`axisPointer`,t)},t.prototype.dispose=function(e,t){rB(`axisPointer`,t)},t.type=`axisPointer`,t}(bC)}));function lB(e,t){var n=[],r=e.seriesIndex,i;if(r==null||!(i=t.getSeriesByIndex(r)))return{point:[]};var a=i.getData(),o=al(a,e);if(o==null||o<0||z(o))return{point:[]};var s=a.getItemGraphicEl(o),c=i.coordinateSystem;if(i.getTooltipPosition)n=i.getTooltipPosition(o)||[];else if(c&&c.dataToPoint)if(e.isStacked){var l=c.getBaseAxis(),u=c.getOtherAxis(l).dim,d=l.dim,f=+(u===`x`||u===`radius`),p=a.mapDimension(d),m=[];m[f]=a.get(p,o),m[1-f]=a.get(a.getCalculationInfo(`stackResultDimension`),o),n=c.dataToPoint(m)||[]}else n=c.dataToPoint(a.getValues(R(c.dimensions,function(e){return a.mapDimension(e)}),o))||[];else if(s){var h=s.getBoundingRect().clone();h.applyTransform(s.transform),n=[h.x+h.width/2,h.y+h.height/2]}return{point:n,el:s}}var uB=n((()=>{K(),X()}));function dB(e,t,n){var r=e.currTrigger,i=[e.x,e.y],a=e,o=e.dispatchAction||Mt(n.dispatchAction,n),s=t.getComponent(`axisPointer`).coordSysAxesInfo;if(s){xB(i)&&(i=lB({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var c=xB(i),l=a.axesInfo,u=s.axesInfo,d=r===`leave`||xB(i),f={},p={},m={list:[],map:{}},h={showPointer:Ye(mB,p),showTooltip:Ye(hB,m)};L(s.coordSysMap,function(e,t){var n=c||e.containPoint(i);L(s.coordSysAxesInfo[t],function(e,t){var r=e.axis,a=yB(l,e);if(!d&&n&&(!l||a)){var o=a&&a.value;o==null&&!c&&(o=r.pointToData(i)),o!=null&&fB(e,o,h,!1,f)}})});var g={};return L(u,function(e,t){var n=e.linkGroup;n&&!p[t]&&L(n.axesInfo,function(t,r){var i=p[r];if(t!==e&&i){var a=i.value;n.mapper&&(a=e.axis.scale.parse(n.mapper(a,bB(t),bB(e)))),g[e.key]=a}})}),L(g,function(e,t){fB(u[t],e,h,!0,f)}),gB(p,u,f),_B(m,i,e,o),vB(u,o,n),f}}function fB(e,t,n,r,i){var a=e.axis;if(!(a.scale.isBlank()||!a.containData(t))){if(!e.involveSeries){n.showPointer(e,t);return}var o=pB(t,e),s=o.payloadBatch,c=o.snapToValue;s[0]&&i.seriesIndex==null&&I(i,s[0]),!r&&e.snap&&a.containData(c)&&c!=null&&(t=c),n.showPointer(e,t,s),n.showTooltip(e,o,c)}}function pB(e,t){var n=t.axis,r=n.dim,i=e,a=[],o=Number.MAX_VALUE,s=-1;return L(t.seriesModels,function(t,c){var l=t.getData().mapDimensionsAll(r),u,d;if(t.getAxisTooltipData){var f=t.getAxisTooltipData(l,e,n);d=f.dataIndices,u=f.nestestValue}else{if(d=t.indicesOfNearest(r,l[0],e,n.type===`category`?.5:null),!d.length)return;u=t.getData().get(l[0],d[0])}if(lc(u)){var p=e-u,m=Math.abs(p);m<=o&&((m<o||p>=0&&s<0)&&(o=m,s=p,i=u,a.length=0),L(d,function(e){a.push({seriesIndex:t.seriesIndex,dataIndexInside:e,dataIndex:t.getData().getRawIndex(e)})}))}}),{payloadBatch:a,snapToValue:i}}function mB(e,t,n,r){e[t.key]={value:n,payloadBatch:r}}function hB(e,t,n,r){var i=n.payloadBatch,a=t.axis,o=a.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!i.length)){var c=t.coordSys.model,l=nz(c),u=e.map[l];u||(u=e.map[l]={coordSysId:c.id,coordSysIndex:c.componentIndex,coordSysType:c.type,coordSysMainType:c.mainType,dataByAxis:[]},e.list.push(u)),u.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:r,valueLabelOpt:{precision:s.get([`label`,`precision`]),formatter:s.get([`label`,`formatter`])},seriesDataIndices:i.slice()})}}function gB(e,t,n){var r=n.axesInfo=[];L(t,function(t,n){var i=t.axisPointerModel.option,a=e[n];a?(!t.useHandle&&(i.status=`show`),i.value=a.value,i.seriesDataIndices=(a.payloadBatch||[]).slice()):!t.useHandle&&(i.status=`hide`),i.status===`show`&&r.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:i.value})})}function _B(e,t,n,r){if(xB(t)||!e.list.length){r({type:`hideTip`});return}var i=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:`showTip`,escapeConnect:!0,x:t[0],y:t[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:e.list})}function vB(e,t,n){var r=n.getZr(),i=`axisPointerLastHighlights`,a=SB(r)[i]||{},o=SB(r)[i]={};L(e,function(e,t){var n=e.axisPointerModel.option;n.status===`show`&&e.triggerEmphasis&&L(n.seriesDataIndices,function(e){o[e.seriesIndex+`|`+e.dataIndex]=e})});var s=[],c=[];function l(e){return{seriesIndex:e.seriesIndex,dataIndex:e.dataIndex}}L(a,function(e,t){!o[t]&&c.push(l(e))}),L(o,function(e,t){!a[t]&&s.push(l(e))}),c.length&&n.dispatchAction({type:`downplay`,escapeConnect:!0,notBlur:!0,batch:c}),s.length&&n.dispatchAction({type:`highlight`,escapeConnect:!0,notBlur:!0,batch:s})}function yB(e,t){for(var n=0;n<(e||[]).length;n++){var r=e[n];if(t.axis.dim===r.axisDim&&t.axis.model.componentIndex===r.axisIndex)return r}}function bB(e){var t=e.axis.model,n={},r=n.axisDim=e.axis.dim;return n.axisIndex=n[r+`AxisIndex`]=t.componentIndex,n.axisName=n[r+`AxisName`]=t.name,n.axisId=n[r+`AxisId`]=t.id,n}function xB(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}var SB,CB=n((()=>{X(),rz(),uB(),K(),Y(),SB=ol()}));function wB(e){az.registerAxisPointerClass(`CartesianAxisPointer`,Kz),e.registerComponentModel(Yz),e.registerComponentView(sB),e.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!z(t)&&(e.axisPointer.link=[t])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,{overallReset:function(e,t){e.getComponent(`axisPointer`).coordSysAxesInfo=KR(e,t)}}),e.registerAction({type:`updateAxisPointer`,event:`updateAxisPointer`,update:`:updateAxisPointer`},dB)}var TB=n((()=>{oz(),Jz(),Xz(),cB(),K(),rz(),CB()}));function EB(e){zj(_z),zj(wB)}var DB=n((()=>{bz(),TB(),Hj()}));function OB(e,t){var n=cy(t.get(`padding`)),r=t.getItemStyle([`color`,`opacity`]);return r.fill=t.get(`backgroundColor`),new Cf({shape:{x:e.x-n[3],y:e.y-n[0],width:e.width+n[1]+n[3],height:e.height+n[0]+n[2],r:t.get(`borderRadius`)},style:r,silent:!0,z2:-1})}var kB=n((()=>{dy(),s_()})),AB,jB=n((()=>{P(),Vy(),Wy(),AB=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`tooltip`,t.dependencies=[`axisPointer`],t.defaultOption={z:60,show:!0,showContent:!0,trigger:`item`,triggerOn:`mousemove|click|mousewheel`,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}},t}(By)}));function MB(e){var t=e.get(`confine`);return t==null?e.get(`renderMode`)===`richText`:!!t}function NB(e){if(F.domSupported){for(var t=document.documentElement.style,n=0,r=e.length;n<r;n++)if(e[n]in t)return e[n]}}function PB(e,t){if(!e)return t;t=ty(t,!0);var n=e.indexOf(t);return e=n===-1?t:`-`+e.slice(0,n)+`-`+t,e.toLowerCase()}function FB(e,t){var n=e.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e);return n?t?n[t]:n:null}var IB,LB,RB=n((()=>{dy(),xe(),IB=NB([`transform`,`webkitTransform`,`OTransform`,`MozTransform`,`msTransform`]),LB=NB([`webkitTransition`,`transition`,`OTransition`,`MozTransition`,`msTransition`])}));function zB(e){return e=e===`left`?`right`:e===`right`?`left`:e===`top`?`bottom`:`top`,e}function BB(e,t,n){if(!V(n)||n===`inside`)return``;var r=e.get(`backgroundColor`),i=e.get(`borderWidth`);t=sy(t);var a=zB(n),o=Math.max(Math.round(i)*1.5,6),s=``,c=qB+`:`,l;Be([`left`,`right`],a)>-1?(s+=`top:50%`,c+=`translateY(-50%) rotate(`+(l=a===`left`?-225:-45)+`deg)`):(s+=`left:50%`,c+=`translateX(-50%) rotate(`+(l=a===`top`?225:45)+`deg)`);var u=l*Math.PI/180,d=o+i,f=d*Math.abs(Math.cos(u))+d*Math.abs(Math.sin(u)),p=Math.round(((f-Math.SQRT2*i)/2+Math.SQRT2*i-(f-d)/2)*100)/100;s+=`;`+a+`:-`+p+`px`;var m=t+` solid `+i+`px;`;return`<div style="`+[`position:absolute;width:`+o+`px;height:`+o+`px;z-index:-1;`,s+`;`+c+`;`,`border-bottom:`+m,`border-right:`+m,`background-color:`+r+`;`].join(``)+`"></div>`}function VB(e,t,n){var r=`cubic-bezier(0.23,1,0.32,1)`,i=``,a=``;return n&&(i=` `+e/2+`s `+r,a=`opacity`+i+`,visibility`+i),t||(i=` `+e+`s `+r,a+=(a.length?`,`:``)+(F.transformSupported?``+qB+i:`,left`+i+`,top`+i)),KB+`:`+a}function HB(e,t,n){var r=e.toFixed(0)+`px`,i=t.toFixed(0)+`px`;if(!F.transformSupported)return n?`top:`+i+`;left:`+r+`;`:[[`top`,i],[`left`,r]];var a=F.transform3dSupported,o=`translate`+(a?`3d`:``)+`(`+r+`,`+i+(a?`,0`:``)+`)`;return n?`top:0;left:0;`+qB+`:`+o+`;`:[[`top`,0],[`left`,0],[IB,o]]}function UB(e){var t=[],n=e.get(`fontSize`),r=e.getTextColor();r&&t.push(`color:`+r),t.push(`font:`+e.getFont());var i=U(e.get(`lineHeight`),Math.round(n*3/2));n&&t.push(`line-height:`+i+`px`);var a=e.get(`textShadowColor`),o=e.get(`textShadowBlur`)||0,s=e.get(`textShadowOffsetX`)||0,c=e.get(`textShadowOffsetY`)||0;return a&&o&&t.push(`text-shadow:`+s+`px `+c+`px `+o+`px `+a),L([`decoration`,`align`],function(n){var r=e.get(n);r&&t.push(`text-`+n+`:`+r)}),t.join(`;`)}function WB(e,t,n,r){var i=[],a=e.get(`transitionDuration`),o=e.get(`backgroundColor`),s=e.get(`shadowBlur`),c=e.get(`shadowColor`),l=e.get(`shadowOffsetX`),u=e.get(`shadowOffsetY`),d=e.getModel(`textStyle`),f=$S(e,`html`),p=l+`px `+u+`px `+s+`px `+c;return i.push(`box-shadow:`+p),t&&a>0&&i.push(VB(a,n,r)),o&&i.push(`background-color:`+o),L([`width`,`color`,`radius`],function(t){var n=`border-`+t,r=ty(n),a=e.get(r);a!=null&&i.push(n+`:`+a+(t===`color`?``:`px`))}),i.push(UB(d)),f!=null&&i.push(`padding:`+cy(f).join(`px `)+`px`),i.join(`;`)+`;`}function GB(e,t,n,r,i){var a=t&&t.painter;if(n){var o=a&&a.getViewportRoot();o&&Sn(e,o,n,r,i)}else{e[0]=r,e[1]=i;var s=a&&a.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var KB,qB,JB,YB,XB=n((()=>{K(),Gn(),Nn(),xe(),dy(),RB(),iC(),KB=PB(LB,`transition`),qB=PB(IB,`transform`),JB=`position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;`+(F.transform3dSupported?`will-change:transform;`:``),YB=function(){function e(e,t){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,F.wxa)return null;var n=document.createElement(`div`);n.domBelongToZr=!0,this.el=n;var r=this._zr=e.getZr(),i=t.appendTo,a=i&&(V(i)?document.querySelector(i):et(i)?i:B(i)&&i(e.getDom()));GB(this._styleCoord,r,a,e.getWidth()/2,e.getHeight()/2),(a||e.getDom()).appendChild(n),this._api=e,this._container=a;var o=this;n.onmouseenter=function(){o._enterable&&(clearTimeout(o._hideTimeout),o._show=!0),o._inContent=!0},n.onmousemove=function(e){if(e||=window.event,!o._enterable){var t=r.handler;Ln(r.painter.getViewportRoot(),e,!0),t.dispatch(`mousemove`,e)}},n.onmouseleave=function(){o._inContent=!1,o._enterable&&o._show&&o.hideLater(o._hideDelay)}}return e.prototype.update=function(e){if(!this._container){var t=this._api.getDom(),n=FB(t,`position`),r=t.style;r.position!==`absolute`&&n!==`absolute`&&(r.position=`relative`)}var i=e.get(`alwaysShowContent`);i&&this._moveIfResized(),this._alwaysShowContent=i,this._enableDisplayTransition=e.get(`displayTransition`)&&e.get(`transitionDuration`)>0,this.el.className=e.get(`className`)||``},e.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,r=n.style,i=this._styleCoord;n.innerHTML?r.cssText=JB+WB(e,!this._firstShow,this._longHide,this._enableDisplayTransition)+HB(i[0],i[1],!0)+(`border-color:`+sy(t)+`;`)+(e.get(`extraCssText`)||``)+(`;pointer-events:`+(this._enterable?`auto`:`none`)):r.display=`none`,this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(e,t,n,r,i){var a=this.el;if(e==null){a.innerHTML=``;return}var o=``;if(V(i)&&n.get(`trigger`)===`item`&&!MB(n)&&(o=BB(n,r,i)),V(e))a.innerHTML=e+o;else if(e){a.innerHTML=``,z(e)||(e=[e]);for(var s=0;s<e.length;s++)et(e[s])&&e[s].parentNode!==a&&a.appendChild(e[s]);if(o&&a.childNodes.length){var c=document.createElement(`div`);c.innerHTML=o,a.appendChild(c)}}},e.prototype.setEnterable=function(e){this._enterable=e},e.prototype.getSize=function(){var e=this.el;return e?[e.offsetWidth,e.offsetHeight]:[0,0]},e.prototype.moveTo=function(e,t){if(this.el){var n=this._styleCoord;if(GB(n,this._zr,this._container,e,t),n[0]!=null&&n[1]!=null){var r=this.el.style;L(HB(n[0],n[1]),function(e){r[e[0]]=e[1]})}}},e.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},e.prototype.hide=function(){var e=this,t=this.el.style;this._enableDisplayTransition?(t.visibility=`hidden`,t.opacity=`0`):t.display=`none`,F.transform3dSupported&&(t.willChange=``),this._show=!1,this._longHideTimeout=setTimeout(function(){return e._longHide=!0},500)},e.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(Mt(this.hide,this),e)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var e=this._zr;Cn(e&&e.painter&&e.painter.getViewportRoot(),this._container);var t=this.el;if(t){t.onmouseenter=t.onmousemove=t.onmouseleave=null;var n=t.parentNode;n&&n.removeChild(t)}this.el=this._container=null},e}()}));function ZB(e){return Math.max(0,e)}function QB(e){var t=ZB(e.shadowBlur||0),n=ZB(e.shadowOffsetX||0),r=ZB(e.shadowOffsetY||0);return{left:ZB(t-n),right:ZB(t+n),top:ZB(t-r),bottom:ZB(t+r)}}function $B(e,t,n,r){e[0]=n,e[1]=r,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var eV,tV=n((()=>{K(),Uf(),iC(),Lc(),eV=function(){function e(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),$B(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return e.prototype.update=function(e){var t=e.get(`alwaysShowContent`);t&&this._moveIfResized(),this._alwaysShowContent=t},e.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},e.prototype.setContent=function(e,t,n,r,i){var a=this;H(e)&&Nc(process.env.NODE_ENV===`production`?``:`Passing DOM nodes as content is not supported in richText tooltip!`),this.el&&this._zr.remove(this.el);var o=n.getModel(`textStyle`);this.el=new zf({style:{rich:t.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:r,textShadowColor:o.get(`textShadowColor`),fill:n.get([`textStyle`,`color`]),padding:$S(n,`richText`),verticalAlign:`top`,align:`left`},z:n.get(`z`)}),L([`backgroundColor`,`borderRadius`,`shadowColor`,`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`],function(e){a.el.style[e]=n.get(e)}),L([`textShadowBlur`,`textShadowOffsetX`,`textShadowOffsetY`],function(e){a.el.style[e]=o.get(e)||0}),this._zr.add(this.el);var s=this;this.el.on(`mouseover`,function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0}),this.el.on(`mouseout`,function(){s._enterable&&s._show&&s.hideLater(s._hideDelay),s._inContent=!1})},e.prototype.setEnterable=function(e){this._enterable=e},e.prototype.getSize=function(){var e=this.el,t=this.el.getBoundingRect(),n=QB(e.style);return[t.width+n.left+n.right,t.height+n.top+n.bottom]},e.prototype.moveTo=function(e,t){var n=this.el;if(n){var r=this._styleCoord;$B(r,this._zr,e,t),e=r[0],t=r[1];var i=n.style,a=ZB(i.borderWidth||0),o=QB(i);n.x=e+a+o.left,n.y=t+a+o.top,n.markRedraw()}},e.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},e.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},e.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(Mt(this.hide,this),e)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this._zr.remove(this.el)},e}()}));function nV(e,t,n){var r=t.ecModel,i;n?(i=new B_(n,r,r),i=new B_(t.option,i,r)):i=t;for(var a=e.length-1;a>=0;a--){var o=e[a];o&&(o instanceof B_&&(o=o.get(`tooltip`,!0)),V(o)&&(o={formatter:o}),o&&(i=new B_(o,i,r)))}return i}function rV(e,t){return e.dispatchAction||Mt(t.dispatchAction,t)}function iV(e,t,n,r,i,a,o){var s=n.getSize(),c=s[0],l=s[1];return a!=null&&(e+c+a+2>r?e-=c+a:e+=a),o!=null&&(t+l+o>i?t-=l+o:t+=o),[e,t]}function aV(e,t,n,r,i){var a=n.getSize(),o=a[0],s=a[1];return e=Math.min(e+o,r)-o,t=Math.min(t+s,i)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function oV(e,t,n,r){var i=n[0],a=n[1],o=Math.ceil(Math.SQRT2*r)+8,s=0,c=0,l=t.width,u=t.height;switch(e){case`inside`:s=t.x+l/2-i/2,c=t.y+u/2-a/2;break;case`top`:s=t.x+l/2-i/2,c=t.y-a-o;break;case`bottom`:s=t.x+l/2-i/2,c=t.y+u+o;break;case`left`:s=t.x-i-o,c=t.y+u/2-a/2;break;case`right`:s=t.x+l+o,c=t.y+u/2-a/2}return[s,c]}function sV(e){return e===`center`||e===`middle`}function cV(e,t,n){var r=cl(e).queryOptionMap,i=r.keys()[0];if(!(!i||i===`series`)){var a=ll(t,i,r.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];if(a){var o=n.getViewOfComponentModel(a),s;if(o.group.traverse(function(t){var n=Wf(t).tooltipConfig;if(n&&n.name===e.name)return s=t,!0}),s)return{componentMainType:i,componentIndex:a.componentIndex,el:s}}}}var lV,uV,dV=n((()=>{P(),K(),xe(),XB(),tV(),dy(),Y(),s_(),uB(),Ly(),V_(),oB(),NA(),Uz(),X(),xC(),Zv(),Kf(),RB(),Qx(),iC(),Fw(),zC(),lV=new Cf({shape:{x:-1,y:-1,width:2,height:2}}),uV=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(e,t){if(!(F.node||!t.getDom())){var n=e.getComponent(`tooltip`),r=this._renderMode=pl(n.get(`renderMode`));this._tooltipContent=r===`richText`?new eV(t):new YB(t,{appendTo:n.get(`appendToBody`,!0)?`body`:n.get(`appendTo`,!0)})}},t.prototype.render=function(e,t,n){if(!(F.node||!n.getDom())){this.group.removeAll(),this._tooltipModel=e,this._ecModel=t,this._api=n;var r=this._tooltipContent;r.update(e),r.setEnterable(e.get(`enterable`)),this._initGlobalListener(),this._keepShow(),this._renderMode!==`richText`&&e.get(`transitionDuration`)?PC(this,`_updatePosition`,50,`fixRate`):FC(this,`_updatePosition`)}},t.prototype._initGlobalListener=function(){var e=this._tooltipModel.get(`triggerOn`);Zz(`itemTooltip`,this._api,Mt(function(t,n,r){e!==`none`&&(e.indexOf(t)>=0?this._tryShow(n,r):t===`leave`&&this._hide(r))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,t=this._ecModel,n=this._api,r=e.get(`triggerOn`);if(e.get(`trigger`)!==`axis`&&(this._lastDataByCoordSys=null,this._cbParamsList=null),this._lastX!=null&&this._lastY!=null&&r!==`none`&&r!==`click`){var i=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&i.manuallyShowTip(e,t,n,{x:i._lastX,y:i._lastY,dataByCoordSys:i._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,t,n,r){if(!(r.from===this.uid||F.node||!n.getDom())){var i=rV(r,n);this._ticket=``;var a=r.dataByCoordSys,o=cV(r,t,n);if(o){var s=o.el.getBoundingRect().clone();s.applyTransform(o.el.transform),this._tryShow({offsetX:s.x+s.width/2,offsetY:s.y+s.height/2,target:o.el,position:r.position,positionDefault:`bottom`},i)}else if(r.tooltip&&r.x!=null&&r.y!=null){var c=lV;c.x=r.x,c.y=r.y,c.update(),Wf(c).tooltipConfig={name:null,option:r.tooltip},this._tryShow({offsetX:r.x,offsetY:r.y,target:c},i)}else if(a)this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,dataByCoordSys:a,tooltipOption:r.tooltipOption},i);else if(r.seriesIndex!=null){if(this._manuallyAxisShowTip(e,t,n,r))return;var l=lB(r,t),u=l.point[0],d=l.point[1];u!=null&&d!=null&&this._tryShow({offsetX:u,offsetY:d,target:l.el,position:r.position,positionDefault:`bottom`},i)}else r.x!=null&&r.y!=null&&(n.dispatchAction({type:`updateAxisPointer`,x:r.x,y:r.y}),this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,target:n.getZr().findHover(r.x,r.y).target},i))}},t.prototype.manuallyHideTip=function(e,t,n,r){var i=this._tooltipContent;this._tooltipModel&&i.hideLater(this._tooltipModel.get(`hideDelay`)),this._lastX=this._lastY=this._lastDataByCoordSys=null,this._cbParamsList=null,r.from!==this.uid&&this._hide(rV(r,n))},t.prototype._manuallyAxisShowTip=function(e,t,n,r){var i=r.seriesIndex,a=r.dataIndex,o=t.getComponent(`axisPointer`).coordSysAxesInfo;if(!(i==null||a==null||o==null)){var s=t.getSeriesByIndex(i);if(s&&nV([s.getData().getItemModel(a),s,(s.coordinateSystem||{}).model],this._tooltipModel).get(`trigger`)===`axis`)return n.dispatchAction({type:`updateAxisPointer`,seriesIndex:i,dataIndex:a,position:r.position}),!0}},t.prototype._tryShow=function(e,t){var n=e.target;if(this._tooltipModel){this._lastX=e.offsetX,this._lastY=e.offsetY;var r=e.dataByCoordSys;if(r&&r.length)this._showAxisTooltip(r,e);else if(n){if(Wf(n).ssrType===`legend`)return;this._lastDataByCoordSys=null,this._cbParamsList=null;var i,a;Pw(n,function(e){if(e.tooltipDisabled)return i=a=null,!0;i||a||(Wf(e).dataIndex==null?Wf(e).tooltipConfig!=null&&(a=e):i=e)},!0),i?this._showSeriesItemTooltip(e,i,t):a?this._showComponentItemTooltip(e,a,t):this._hide(t)}else this._lastDataByCoordSys=null,this._cbParamsList=null,this._hide(t)}},t.prototype._showOrMove=function(e,t){var n=e.get(`showDelay`);t=Mt(t,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(t,n):t()},t.prototype._showAxisTooltip=function(e,t){var n=this._ecModel,r=this._tooltipModel,i=[t.offsetX,t.offsetY],a=nV([t.tooltipOption],r),o=this._renderMode,s=[],c=zS(`section`,{blocks:[],noHeader:!0}),l=[],u=new rC;L(e,function(e){L(e.dataByAxis,function(e){var t=n.getComponent(e.axisDim+`Axis`,e.axisIndex),i=e.value,a=t.axis,d=a.scale.parse(i);if(!(!t||i==null)){var f=Iz(i,a,n,e.seriesDataIndices,e.valueLabelOpt),p=zS(`section`,{header:f,noHeader:!lt(f),sortBlocks:!0,blocks:[]});c.blocks.push(p),L(e.seriesDataIndices,function(i){var a=n.getSeriesByIndex(i.seriesIndex),c=i.dataIndexInside,m=a.getDataParams(c);if(!(m.dataIndex<0)){m.axisDim=e.axisDim,m.axisIndex=e.axisIndex,m.axisType=e.axisType,m.axisId=e.axisId,m.axisValue=xA(t.axis,{value:d}),m.axisValueLabel=f,m.marker=u.makeTooltipMarker(`item`,sy(m.color),o);var h=Yx(a.formatTooltip(c,!0,null)),g=h.frag;if(g){var _=nV([a],r).get(`valueFormatter`);p.blocks.push(_?I({valueFormatter:_},g):g)}h.text&&l.push(h.text),s.push(m)}})}})}),c.blocks.reverse(),l.reverse();var d=t.position,f=GS(c,u,o,a.get(`order`),n.get(`useUTC`),a.get(`textStyle`));f&&l.unshift(f);var p=o===`richText`?`
|
|
29
|
-
|
|
30
|
-
`:`<br/>`,m=l.join(p);this._showOrMove(a,function(){this._updateContentNotChangedOnAxis(e,s)?this._updatePosition(a,d,i[0],i[1],this._tooltipContent,s):this._showTooltipContent(a,m,s,Math.random()+``,i[0],i[1],d,null,u)})},t.prototype._showSeriesItemTooltip=function(e,t,n){var r=this._ecModel,i=Wf(t),a=i.seriesIndex,o=r.getSeriesByIndex(a),s=i.dataModel||o,c=i.dataIndex,l=i.dataType,u=s.getData(l),d=this._renderMode,f=e.positionDefault,p=nV([u.getItemModel(c),s,o&&(o.coordinateSystem||{}).model],this._tooltipModel,f?{position:f}:null),m=p.get(`trigger`);if(!(m!=null&&m!==`item`)){var h=s.getDataParams(c,l),g=new rC;h.marker=g.makeTooltipMarker(`item`,sy(h.color),d);var _=Yx(s.formatTooltip(c,!1,l)),v=p.get(`order`),y=p.get(`valueFormatter`),b=_.frag,x=b?GS(y?I({valueFormatter:y},b):b,g,d,v,r.get(`useUTC`),p.get(`textStyle`)):_.text,S=`item_`+s.name+`_`+c;this._showOrMove(p,function(){this._showTooltipContent(p,x,h,S,e.offsetX,e.offsetY,e.position,e.target,g)}),n({type:`showTip`,dataIndexInside:c,dataIndex:u.getRawIndex(c),seriesIndex:a,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,t,n){var r=this._renderMode===`html`,i=Wf(t),a=i.tooltipConfig.option||{},o=a.encodeHTMLContent;if(V(a)){var s=a;a={content:s,formatter:s},o=!0}o&&r&&a.content&&(a=Fe(a),a.content=On(a.content));var c=[a],l=this._ecModel.getComponent(i.componentMainType,i.componentIndex);l&&c.push(l),c.push({formatter:a.content});var u=e.positionDefault,d=nV(c,this._tooltipModel,u?{position:u}:null),f=d.get(`content`),p=Math.random()+``,m=new rC;this._showOrMove(d,function(){var n=Fe(d.get(`formatterParams`)||{});this._showTooltipContent(d,f,n,p,e.offsetX,e.offsetY,e.position,t,m)}),n({type:`showTip`,from:this.uid})},t.prototype._showTooltipContent=function(e,t,n,r,i,a,o,s,c){if(this._ticket=``,!(!e.get(`showContent`)||!e.get(`show`))){var l=this._tooltipContent;l.setEnterable(e.get(`enterable`));var u=e.get(`formatter`);o||=e.get(`position`);var d=t,f=this._getNearestPoint([i,a],n,e.get(`trigger`),e.get(`borderColor`),e.get(`defaultBorderColor`,!0)).color;if(u)if(V(u)){var p=e.ecModel.get(`useUTC`),m=z(n)?n[0]:n,h=m&&m.axisType&&m.axisType.indexOf(`time`)>=0;d=u,h&&(d=xv(m.axisValue,d,p)),d=ry(d,n,!0)}else if(B(u)){var g=Mt(function(t,r){t===this._ticket&&(l.setContent(r,c,e,f,o),this._updatePosition(e,o,i,a,l,n,s))},this);this._ticket=r,d=u(n,r,g)}else d=u;l.setContent(d,c,e,f,o),l.show(e,f),this._updatePosition(e,o,i,a,l,n,s)}},t.prototype._getNearestPoint=function(e,t,n,r,i){if(n===`axis`||z(t))return{color:r||i};if(!z(t))return{color:r||t.color||t.borderColor}},t.prototype._updatePosition=function(e,t,n,r,i,a,o){var s=this._api.getWidth(),c=this._api.getHeight();t||=e.get(`position`);var l=i.getSize(),u=e.get(`align`),d=e.get(`verticalAlign`),f=o&&o.getBoundingRect().clone();if(o&&f.applyTransform(o.transform),B(t)&&(t=t([n,r],a,i.el,f,{viewSize:[s,c],contentSize:l.slice()})),z(t))n=Cc(t[0],s),r=Cc(t[1],c);else if(H(t)){var p=t;p.width=l[0],p.height=l[1];var m=Ey(p,{width:s,height:c});n=m.x,r=m.y,u=null,d=null}else if(V(t)&&o){var h=oV(t,f,l,e.get(`borderWidth`));n=h[0],r=h[1]}else{var h=iV(n,r,i,s,c,u?null:20,d?null:20);n=h[0],r=h[1]}if(u&&(n-=sV(u)?l[0]/2:u===`right`?l[0]:0),d&&(r-=sV(d)?l[1]/2:d===`bottom`?l[1]:0),MB(e)){var h=aV(n,r,i,s,c);n=h[0],r=h[1]}i.moveTo(n,r)},t.prototype._updateContentNotChangedOnAxis=function(e,t){var n=this._lastDataByCoordSys,r=this._cbParamsList,i=!!n&&n.length===e.length;return i&&L(n,function(n,a){var o=n.dataByAxis||[],s=(e[a]||{}).dataByAxis||[];i&&=o.length===s.length,i&&L(o,function(e,n){var a=s[n]||{},o=e.seriesDataIndices||[],c=a.seriesDataIndices||[];i=i&&e.value===a.value&&e.axisType===a.axisType&&e.axisId===a.axisId&&o.length===c.length,i&&L(o,function(e,t){var n=c[t];i=i&&e.seriesIndex===n.seriesIndex&&e.dataIndex===n.dataIndex}),r&&L(e.seriesDataIndices,function(e){var n=e.seriesIndex,a=t[n],o=r[n];a&&o&&o.data!==a.data&&(i=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=t,!!i},t.prototype._hide=function(e){this._lastDataByCoordSys=null,this._cbParamsList=null,e({type:`hideTip`,from:this.uid})},t.prototype.dispose=function(e,t){F.node||!t.getDom()||(FC(this,`_updatePosition`),this._tooltipContent.dispose(),rB(`itemTooltip`,t),this._tooltipContent=null,this._tooltipModel=null,this._lastDataByCoordSys=null,this._cbParamsList=null)},t.type=`tooltip`,t}(bC)}));function fV(e){zj(wB),e.registerComponentModel(AB),e.registerComponentView(uV),e.registerAction({type:`showTip`,event:`showTip`,update:`tooltip:manuallyShowTip`},_t),e.registerAction({type:`hideTip`,event:`hideTip`,update:`tooltip:manuallyHideTip`},_t)}var pV=n((()=>{TB(),Hj(),jB(),dV(),K()})),mV,hV,gV=n((()=>{P(),K(),V_(),X(),Vy(),Wy(),mV=function(e,t){if(t===`all`)return{type:`all`,title:e.getLocaleModel().get([`legend`,`selector`,`all`])};if(t===`inverse`)return{type:`inverse`,title:e.getLocaleModel().get([`legend`,`selector`,`inverse`])}},hV=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:`box`,ignoreSize:!0},n}return t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),e.selected=e.selected||{},this._updateSelector(e)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),this._updateSelector(t)},t.prototype._updateSelector=function(e){var t=e.selector,n=this.ecModel;t===!0&&(t=e.selector=[`all`,`inverse`]),z(t)&&L(t,function(e,r){V(e)&&(e={type:e}),t[r]=Ie(e,mV(n,e.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&this.get(`selectedMode`)===`single`){for(var t=!1,n=0;n<e.length;n++){var r=e[n].get(`name`);if(this.isSelected(r)){this.select(r),t=!0;break}}!t&&this.select(e[0].get(`name`))}},t.prototype._updateData=function(e){var t=[],n=[];e.eachRawSeries(function(r){var i=r.name;n.push(i);var a;if(r.legendVisualProvider){var o=r.legendVisualProvider.getAllNames();e.isSeriesFiltered(r)||(n=n.concat(o)),o.length?t=t.concat(o):a=!0}else a=!0;a&&tl(r)&&t.push(r.name)}),this._availableNames=n;var r=this.get(`data`)||t,i=G(),a=R(r,function(e){return(V(e)||Ze(e))&&(e={name:e}),i.get(e.name)?null:(i.set(e.name,!0),new B_(e,this,this.ecModel))},this);this._data=Ge(a,function(e){return!!e})},t.prototype.getData=function(){return this._data},t.prototype.select=function(e){var t=this.option.selected;if(this.get(`selectedMode`)===`single`){var n=this._data;L(n,function(e){t[e.get(`name`)]=!1})}t[e]=!0},t.prototype.unSelect=function(e){this.get(`selectedMode`)!==`single`&&(this.option.selected[e]=!1)},t.prototype.toggleSelected=function(e){var t=this.option.selected;t.hasOwnProperty(e)||(t[e]=!0),this[t[e]?`unSelect`:`select`](e)},t.prototype.allSelect=function(){var e=this._data,t=this.option.selected;L(e,function(e){t[e.get(`name`,!0)]=!0})},t.prototype.inverseSelect=function(){var e=this._data,t=this.option.selected;L(e,function(e){var n=e.get(`name`,!0);t.hasOwnProperty(n)||(t[n]=!0),t[n]=!t[n]})},t.prototype.isSelected=function(e){var t=this.option.selected;return!(t.hasOwnProperty(e)&&!t[e])&&Be(this._availableNames,e)>=0},t.prototype.getOrient=function(){return this.get(`orient`)===`vertical`?{index:1,name:`vertical`}:{index:0,name:`horizontal`}},t.type=`legend.plain`,t.dependencies=[`series`],t.defaultOption={z:4,show:!0,orient:`horizontal`,left:`center`,bottom: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},t}(By)}));function _V(e,t,n,r,i,a,o){function s(e,t){e.lineWidth===`auto`&&(e.lineWidth=t.lineWidth>0?2:0),CV(e,function(n,r){e[r]===`inherit`&&(e[r]=t[r])})}var c=t.getModel(`itemStyle`),l=c.getItemStyle(),u=e.lastIndexOf(`empty`,0)===0?`fill`:`stroke`,d=c.getShallow(`decal`);l.decal=!d||d===`inherit`?r.decal:eE(d,o),l.fill===`inherit`&&(l.fill=r[i]),l.stroke===`inherit`&&(l.stroke=r[u]),l.opacity===`inherit`&&(l.opacity=(i===`fill`?r:n).opacity),s(l,r);var f=t.getModel(`lineStyle`),p=f.getLineStyle();if(s(p,n),l.fill===`auto`&&(l.fill=r.fill),l.stroke===`auto`&&(l.stroke=r.fill),p.stroke===`auto`&&(p.stroke=r.fill),!a){var m=t.get(`inactiveBorderWidth`),h=l[u];l.lineWidth=m===`auto`?r.lineWidth>0&&h?2:0:l.lineWidth,l.fill=t.get(`inactiveColor`),l.stroke=t.get(`inactiveBorderColor`),p.stroke=f.get(`inactiveColor`),p.lineWidth=f.get(`inactiveWidth`)}return{itemStyle:l,lineStyle:p}}function vV(e){var t=e.icon||`roundRect`,n=nT(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return n.setStyle(e.itemStyle),n.rotation=(e.iconRotate||0)*Math.PI/180,n.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf(`empty`)>-1&&(n.style.stroke=n.style.fill,n.style.fill=Z.color.neutral00,n.style.lineWidth=2),n}function yV(e,t,n,r){xV(e,t,n,r),n.dispatchAction({type:`legendToggleSelect`,name:e??t}),bV(e,t,n,r)}function bV(e,t,n,r){n.usingTHL()||n.dispatchAction({type:`highlight`,seriesName:e,name:t,excludeSeriesId:r})}function xV(e,t,n,r){n.usingTHL()||n.dispatchAction({type:`downplay`,seriesName:e,name:t,excludeSeriesId:r})}var SV,CV,wV,TV,EV=n((()=>{P(),K(),xa(),s_(),pm(),E_(),kB(),Ly(),xC(),pT(),lE(),Kf(),Wy(),SV=Ye,CV=L,wV=_s,TV=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!1,n}return t.prototype.init=function(){this.group.add(this._contentGroup=new wV),this.group.add(this._selectorGroup=new wV),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,t,n){var r=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),e.get(`show`,!0)){var i=e.get(`align`),a=e.get(`orient`);(!i||i===`auto`)&&(i=e.get(`left`)===`right`&&a===`vertical`?`right`:`left`);var o=e.get(`selector`,!0),s=e.get(`selectorPosition`,!0);o&&(!s||s===`auto`)&&(s=a===`horizontal`?`end`:`start`),this.renderInner(i,e,t,n,o,a,s);var c=Dy(e,n).refContainer,l=e.getBoxLayoutParams(),u=e.get(`padding`),d=Ey(l,c,u),f=this.layoutInner(e,i,d,r,o,s),p=Ey(ze({width:f.width,height:f.height},l),c,u);this.group.x=p.x-f.x,this.group.y=p.y-f.y,this.group.markRedraw(),this.group.add(this._backgroundEl=OB(f,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,t,n,r,i,a,o){var s=this.getContentGroup(),c=G(),l=t.get(`selectedMode`),u=t.get(`triggerEvent`),d=[];n.eachRawSeries(function(e){!e.get(`legendHoverLink`)&&d.push(e.id)}),CV(t.getData(),function(i,a){var o=this,f=i.get(`name`);if(!this.newlineDisabled&&(f===``||f===`
|
|
31
|
-
`)){var p=new wV;p.newline=!0,s.add(p);return}var m=n.getSeriesByName(f)[0];if(!c.get(f)){if(m){var h=m.getData(),g=h.getVisual(`legendLineStyle`)||{},_=h.getVisual(`legendIcon`),v=h.getVisual(`style`),y=this._createItem(m,f,a,i,t,e,g,v,_,l,r);y.on(`click`,SV(yV,f,null,r,d)).on(`mouseover`,SV(bV,m.name,null,r,d)).on(`mouseout`,SV(xV,m.name,null,r,d)),n.ssr&&y.eachChild(function(e){var t=Wf(e);t.seriesIndex=m.seriesIndex,t.dataIndex=a,t.ssrType=`legend`}),u&&y.eachChild(function(e){o.packEventData(e,t,m,a,f)}),c.set(f,!0)}else n.eachRawSeries(function(o){var s=this;if(!c.get(f)&&o.legendVisualProvider){var p=o.legendVisualProvider;if(!p.containName(f))return;var m=p.indexOfName(f),h=p.getItemVisual(m,`style`),g=p.getItemVisual(m,`legendIcon`),_=na(h.fill);_&&_[3]===0&&(_[3]=.2,h=I(I({},h),{fill:da(_,`rgba`)}));var v=this._createItem(o,f,a,i,t,e,{},h,g,l,r);v.on(`click`,SV(yV,null,f,r,d)).on(`mouseover`,SV(bV,null,f,r,d)).on(`mouseout`,SV(xV,null,f,r,d)),n.ssr&&v.eachChild(function(e){var t=Wf(e);t.seriesIndex=o.seriesIndex,t.dataIndex=a,t.ssrType=`legend`}),u&&v.eachChild(function(e){s.packEventData(e,t,o,a,f)}),c.set(f,!0)}},this);process.env.NODE_ENV!==`production`&&(c.get(f)||console.warn(f+` series not exists. Legend data should be same with series name or data name.`))}},this),i&&this._createSelector(i,t,r,a,o)},t.prototype.packEventData=function(e,t,n,r,i){var a={componentType:`legend`,componentIndex:t.componentIndex,dataIndex:r,value:i,seriesIndex:n.seriesIndex};Wf(e).eventData=a},t.prototype._createSelector=function(e,t,n,r,i){var a=this.getSelectorGroup();CV(e,function(e){var r=e.type,i=new zf({style:{x:0,y:0,align:`center`,verticalAlign:`middle`},onclick:function(){n.dispatchAction({type:r===`all`?`legendAllSelect`:`legendInverseSelect`,legendId:t.id})}});a.add(i),u_(i,{normal:t.getModel(`selectorLabel`),emphasis:t.getModel([`emphasis`,`selectorLabel`])},{defaultText:e.title}),Hp(i)})},t.prototype._createItem=function(e,t,n,r,i,a,o,s,c,l,u){var d=e.visualDrawType,f=i.get(`itemWidth`),p=i.get(`itemHeight`),m=i.isSelected(t),h=r.get(`symbolRotate`),g=r.get(`symbolKeepAspect`),_=r.get(`icon`);c=_||c||`roundRect`;var v=_V(c,r,o,s,d,m,u),y=new wV,b=r.getModel(`textStyle`);if(B(e.getLegendIcon)&&(!_||_===`inherit`))y.add(e.getLegendIcon({itemWidth:f,itemHeight:p,icon:c,iconRotate:h,itemStyle:v.itemStyle,lineStyle:v.lineStyle,symbolKeepAspect:g}));else{var x=_===`inherit`&&e.getData().getVisual(`symbol`)?h===`inherit`?e.getData().getVisual(`symbolRotate`):h:0;y.add(vV({itemWidth:f,itemHeight:p,icon:c,iconRotate:x,itemStyle:v.itemStyle,lineStyle:v.lineStyle,symbolKeepAspect:g}))}var S=a===`left`?f+5:-5,C=a,w=i.get(`formatter`),T=t;V(w)&&w?T=w.replace(`{name}`,t??``):B(w)&&(T=w(t));var E=m?b.getTextColor():r.get(`inactiveColor`);y.add(new zf({style:f_(b,{text:T,x:S,y:p/2,fill:E,align:C,verticalAlign:`middle`},{inheritColor:E})}));var D=new Cf({shape:y.getBoundingRect(),style:{fill:`transparent`}}),O=r.getModel(`tooltip`);return O.get(`show`)&&zg({el:D,componentModel:i,itemName:t,itemTooltipOption:O.option}),y.add(D),y.eachChild(function(e){e.silent=!0}),D.silent=!l,this.getContentGroup().add(y),Hp(y),y.__legendDataIndex=n,y},t.prototype.layoutInner=function(e,t,n,r,i,a){var o=this.getContentGroup(),s=this.getSelectorGroup();Fy(e.get(`orient`),o,e.get(`itemGap`),n.width,n.height);var c=o.getBoundingRect(),l=[-c.x,-c.y];if(s.markRedraw(),o.markRedraw(),i){Fy(`horizontal`,s,e.get(`selectorItemGap`,!0));var u=s.getBoundingRect(),d=[-u.x,-u.y],f=e.get(`selectorButtonGap`,!0),p=e.getOrient().index,m=p===0?`width`:`height`,h=p===0?`height`:`width`,g=p===0?`y`:`x`;a===`end`?d[p]+=c[m]+f:l[p]+=u[m]+f,d[1-p]+=c[h]/2-u[h]/2,s.x=d[0],s.y=d[1],o.x=l[0],o.y=l[1];var _={x:0,y:0};return _[m]=c[m]+f+u[m],_[h]=Math.max(c[h],u[h]),_[g]=Math.min(0,u[g]+d[1-p]),_}else return o.x=l[0],o.y=l[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type=`legend.plain`,t}(bC)}));function DV(e,t,n){var r=e===`allSelect`||e===`inverseSelect`,i={},a=[];n.eachComponent({mainType:`legend`,query:t},function(n){r?n[e]():n[e](t.name),OV(n,i),a.push(n.componentIndex)});var o={};return n.eachComponent(`legend`,function(e){L(i,function(t,n){e[t?`select`:`unSelect`](n)}),OV(e,o)}),r?{selected:o,legendIndex:a}:{name:t.name,selected:o}}function OV(e,t){var n=t||{};return L(e.getData(),function(t){var r=t.get(`name`);if(!(r===`
|
|
32
|
-
`||r===``)){var i=e.isSelected(r);gt(n,r)?n[r]=n[r]&&i:n[r]=i}}),n}function kV(e){e.registerAction(`legendToggleSelect`,`legendselectchanged`,Ye(DV,`toggleSelected`)),e.registerAction(`legendAllSelect`,`legendselectall`,Ye(DV,`allSelect`)),e.registerAction(`legendInverseSelect`,`legendinverseselect`,Ye(DV,`inverseSelect`)),e.registerAction(`legendSelect`,`legendselected`,Ye(DV,`select`)),e.registerAction(`legendUnSelect`,`legendunselected`,Ye(DV,`unSelect`))}var AV=n((()=>{K()}));function jV(e){var t=e.findComponents({mainType:`legend`});t&&t.length&&e.filterSeries(function(e){for(var n=0;n<t.length;n++)if(!t[n].isSelected(e.name))return!1;return!0})}var MV,NV=n((()=>{X(),MV=jl(jV)}));function PV(e){e.registerComponentModel(hV),e.registerComponentView(TV),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,MV),e.registerSubTypeDefaulter(`legend`,function(){return`plain`}),kV(e)}var FV=n((()=>{gV(),EV(),AV(),NV()}));function IV(e,t,n){var r=e.getOrient(),i=[1,1];i[r.index]=0,ky(t,n,{type:`box`,ignoreSize:!!i})}var LV,RV=n((()=>{P(),gV(),Ly(),q_(),Wy(),LV=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.setScrollDataIndex=function(e){this.option.scrollDataIndex=e},t.prototype.init=function(t,n,r){var i=Ay(t);e.prototype.init.call(this,t,n,r),IV(this,t,i)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),IV(this,this.option,t)},t.type=`legend.scroll`,t.defaultOption=G_(hV.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}),t}(hV)})),zV,BV,VV,HV,UV=n((()=>{P(),K(),s_(),Ly(),EV(),zV=_s,BV=[`width`,`height`],VV=[`x`,`y`],HV=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!0,n._currentIndex=0,n}return t.prototype.init=function(){e.prototype.init.call(this),this.group.add(this._containerGroup=new zV),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new zV)},t.prototype.resetInner=function(){e.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(t,n,r,i,a,o,s){var c=this;e.prototype.renderInner.call(this,t,n,r,i,a,o,s);var l=this._controllerGroup,u=n.get(`pageIconSize`,!0),d=z(u)?u:[u,u];p(`pagePrev`,0);var f=n.getModel(`pageTextStyle`);l.add(new zf({name:`pageText`,style:{text:`xx/xx`,fill:f.getTextColor(),font:f.getFont(),verticalAlign:`middle`,align:`center`},silent:!0})),p(`pageNext`,1);function p(e,t){var r=e+`DataIndex`,a=Mg(n.get(`pageIcons`,!0)[n.getOrient().name][t],{onclick:Mt(c._pageGo,c,r,n,i)},{x:-d[0]/2,y:-d[1]/2,width:d[0],height:d[1]});a.name=e,l.add(a)}},t.prototype.layoutInner=function(e,t,n,r,i,a){var o=this.getSelectorGroup(),s=e.getOrient().index,c=BV[s],l=VV[s],u=BV[1-s],d=VV[1-s];i&&Fy(`horizontal`,o,e.get(`selectorItemGap`,!0));var f=e.get(`selectorButtonGap`,!0),p=o.getBoundingRect(),m=[-p.x,-p.y],h=Fe(n);i&&(h[c]=n[c]-p[c]-f);var g=this._layoutContentAndController(e,r,h,s,c,u,d,l);if(i){if(a===`end`)m[s]+=g[c]+f;else{var _=p[c]+f;m[s]-=_,g[l]-=_}g[c]+=p[c]+f,m[1-s]+=g[d]+g[u]/2-p[u]/2,g[u]=Math.max(g[u],p[u]),g[d]=Math.min(g[d],p[d]+m[1-s]),o.x=m[0],o.y=m[1],o.markRedraw()}return g},t.prototype._layoutContentAndController=function(e,t,n,r,i,a,o,s){var c=this.getContentGroup(),l=this._containerGroup,u=this._controllerGroup;Fy(e.get(`orient`),c,e.get(`itemGap`),r?n.width:null,r?null:n.height),Fy(`horizontal`,u,e.get(`pageButtonItemGap`,!0));var d=c.getBoundingRect(),f=u.getBoundingRect(),p=this._showController=d[i]>n[i],m=[-d.x,-d.y];t||(m[r]=c[s]);var h=[0,0],g=[-f.x,-f.y],_=U(e.get(`pageButtonGap`,!0),e.get(`itemGap`,!0));p&&(e.get(`pageButtonPosition`,!0)===`end`?g[r]+=n[i]-f[i]:h[r]+=f[i]+_),g[1-r]+=d[a]/2-f[a]/2,c.setPosition(m),l.setPosition(h),u.setPosition(g);var v={x:0,y:0};if(v[i]=p?n[i]:d[i],v[a]=Math.max(d[a],f[a]),v[o]=Math.min(0,f[o]+g[1-r]),l.__rectSize=n[i],p){var y={x:0,y:0};y[i]=Math.max(n[i]-f[i]-_,0),y[a]=v[a],l.setClipPath(new Cf({shape:y})),l.__rectSize=y[i]}else u.eachChild(function(e){e.attr({invisible:!0,silent:!0})});var b=this._getPageInfo(e);return b.pageIndex!=null&&ig(c,{x:b.contentPosition[0],y:b.contentPosition[1]},p?e:null),this._updatePageInfoView(e,b),v},t.prototype._pageGo=function(e,t,n){var r=this._getPageInfo(t)[e];r!=null&&n.dispatchAction({type:`legendScroll`,scrollDataIndex:r,legendId:t.id})},t.prototype._updatePageInfoView=function(e,t){var n=this._controllerGroup;L([`pagePrev`,`pageNext`],function(r){var i=t[r+`DataIndex`]!=null,a=n.childOfName(r);a&&(a.setStyle(`fill`,i?e.get(`pageIconColor`,!0):e.get(`pageIconInactiveColor`,!0)),a.cursor=i?`pointer`:`default`)});var r=n.childOfName(`pageText`),i=e.get(`pageFormatter`),a=t.pageIndex,o=a==null?0:a+1,s=t.pageCount;r&&i&&r.setStyle(`text`,V(i)?i.replace(`{current}`,o==null?``:o+``).replace(`{total}`,s==null?``:s+``):i({current:o,total:s}))},t.prototype._getPageInfo=function(e){var t=e.get(`scrollDataIndex`,!0),n=this.getContentGroup(),r=this._containerGroup.__rectSize,i=e.getOrient().index,a=BV[i],o=VV[i],s=this._findTargetItemIndex(t),c=n.children(),l=c[s],u=c.length,d=+!!u,f={contentPosition:[n.x,n.y],pageCount:d,pageIndex:d-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!l)return f;var p=v(l);f.contentPosition[i]=-p.s;for(var m=s+1,h=p,g=p,_=null;m<=u;++m)_=v(c[m]),(!_&&g.e>h.s+r||_&&!y(_,h.s))&&(h=g.i>h.i?g:_,h&&(f.pageNextDataIndex??=h.i,++f.pageCount)),g=_;for(var m=s-1,h=p,g=p,_=null;m>=-1;--m)_=v(c[m]),(!_||!y(g,_.s))&&h.i<g.i&&(g=h,f.pagePrevDataIndex??=h.i,++f.pageCount,++f.pageIndex),h=_;return f;function v(e){if(e){var t=e.getBoundingRect(),n=t[o]+e[o];return{s:n,e:n+t[a],i:e.__legendDataIndex}}}function y(e,t){return e.e>=t&&e.s<=t+r}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var t,n=this.getContentGroup(),r;return n.eachChild(function(n,i){var a=n.__legendDataIndex;r==null&&a!=null&&(r=i),a===e&&(t=i)}),t??r},t.type=`legend.scroll`,t}(TV)}));function WV(e){e.registerAction(`legendScroll`,`legendscroll`,function(e,t){var n=e.scrollDataIndex;n!=null&&t.eachComponent({mainType:`legend`,subType:`scroll`,query:e},function(e){e.setScrollDataIndex(n)})})}var GV=n((()=>{}));function KV(e){zj(PV),e.registerComponentModel(LV),e.registerComponentView(HV),WV(e)}var qV=n((()=>{Hj(),FV(),RV(),UV(),GV()}));function JV(e){zj(PV),zj(KV)}var YV=n((()=>{Hj(),FV(),qV()}));function XV(e){e.registerComponentModel(ZV),e.registerComponentView(QV)}var ZV,QV,$V=n((()=>{P(),Vy(),xC(),tp(),IS(),ZV=function(e){N(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`dataset`,t}return t.prototype.init=function(t,n,r){e.prototype.init.call(this,t,n,r),this._sourceManager=new FS(this),MS(this)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),MS(this)},t.prototype.optionUpdated=function(){this._sourceManager.dirty()},t.prototype.getSourceManager=function(){return this._sourceManager},t.type=`dataset`,t.defaultOption={seriesLayoutBy:ep},t}(By),QV=function(e){N(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`dataset`,t}return t.type=`dataset`,t}(bC)})),eH=n((()=>{bz(),DB(),P(),Hj(),oz(),Mz(),s_(),Uz(),sr(),cI(),TB(),Vy(),bR(),K(),FA(),X(),YM(),Qo(),Y(),NA(),Ly(),jj(),Cj(),ij(),E_(),V_(),Kf(),xC(),ek(),WM(),SI(),TI(),_R(),Wy(),q_(),Wk(),OR(),Rk(),Ar(),Lo(),ap(),fn(),vs(),pf(),Bm(),wf(),Um(),Th(),vh(),xh(),Lm(),zh(),Vh(),cf(),xa(),tM(),oM(),Lc(),PL(),yC(),ob(),iC(),pT(),xy(),tp(),_n(),Gn(),rO(),pm(),lE(),Wu(),Fw(),uz(),EF(),zC(),eu(),sO(),dy(),cv(),cr(),fk(),Bk(),bf(),YP(),Ja(),fg(),Xw(),kB(),Uf(),xe(),mI(),lb(),pV(),kw(),Kj(),zO(),Qx(),yP(),cS(),KP(),YV(),qV(),FV(),hb(),$V()})),tH=n((()=>{eH()}));function nH(e,t,n){var r=Ae.createCanvas(),i=t.getWidth(),a=t.getHeight(),o=r.style;return o&&(o.position=`absolute`,o.left=`0`,o.top=`0`,o.width=i+`px`,o.height=a+`px`,r.setAttribute(`data-zr-dom-id`,e)),r.width=i*n,r.height=a*n,r}function rH(e){return!e.__cursors.get(0)}function iH(e){var t=e.__cursors.get(0);return{startIdx:t?t.startIdx:0,endIdx:t?t.endIdx:0}}var aH,oH=n((()=>{P(),K(),To(),Qh(),_n(),xT(),$T(),Ar(),ei(),je(),aH=function(e){N(t,e);function t(t,n,r){var i=e.call(this)||this;i.motionBlur=!1,i.lastFrameAlpha=.7,i.dpr=1,i.virtual=!1,i.config={},i.zlevel=0,i.zlevel2=0,i.maxRepaintRectCount=5,i.__dirty=!0,i.__firstTimePaint=!0,i.__prevIdx={startIdx:0,endIdx:0};var a;r||=bo,typeof t==`string`?a=nH(t,n,r):H(t)&&(a=t,t=a.id),i.id=t,i.dom=a;var o=a.style;return o&&(ht(a),a.onselectstart=function(){return!1},o.padding=`0`,o.margin=`0`,o.borderWidth=`0`),i.painter=n,i.dpr=r,i}return t.prototype.afterBrush=function(){this.__prevIdx=iH(this)},t.prototype.initContext=function(){this.ctx=this.dom.getContext(`2d`),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var e=this.dpr;this.domBack=nH(`back-`+this.id,this.painter,e),this.ctxBack=this.domBack.getContext(`2d`),e!==1&&this.ctxBack.scale(e,e)},t.prototype.createRepaintRects=function(e,t,n,r){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var i=[],a=this.maxRepaintRectCount,o=!1,s=new J(0,0,0,0);function c(e){if(!(!e.isFinite()||e.isZero()))if(i.length===0){var t=new J(0,0,0,0);t.copy(e),i.push(t)}else{for(var n=!1,r=1/0,c=0,l=0;l<i.length;++l){var u=i[l];if(u.intersect(e)){var d=new J(0,0,0,0);d.copy(u),d.union(e),i[l]=d,n=!0;break}else if(o){s.copy(e),s.union(u);var f=e.width*e.height,p=u.width*u.height,m=s.width*s.height-f-p;m<r&&(r=m,c=l)}}if(o&&(i[c].union(e),n=!0),!n){var t=new J(0,0,0,0);t.copy(e),i.push(t)}o||=i.length>=a}}for(var l=iH(this),u=l.startIdx;u<l.endIdx;++u){var d=e[u];if(d){var f=d.shouldBePainted(n,r,!0,!0),p=d.__isRendered&&(d.__dirty&1||!f)?d.getPrevPaintRect():null;p&&c(p);var m=f&&(d.__dirty&1||!d.__isRendered)?d.getPaintRect():null;m&&c(m)}}for(var h=this.__prevIdx,u=h.startIdx;u<h.endIdx;++u){var d=t[u],f=d&&d.shouldBePainted(n,r,!0,!0);if(d&&(!f||!d.__zr)&&d.__isRendered){var p=d.getPrevPaintRect();p&&c(p)}}var g;do{g=!1;for(var u=0;u<i.length;){if(i[u].isZero()){i.splice(u,1);continue}for(var _=u+1;_<i.length;)i[u].intersect(i[_])?(g=!0,i[u].union(i[_]),i.splice(_,1)):_++;u++}}while(g);return this._paintRects=i,i},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(e,t){var n=this.dpr,r=this.dom,i=r.style,a=this.domBack;i&&(i.width=e+`px`,i.height=t+`px`),r.width=e*n,r.height=t*n,a&&(a.width=e*n,a.height=t*n,n!==1&&this.ctxBack.scale(n,n))},t.prototype.clear=function(e,t,n){var r=this.dom,i=this.ctx,a=r.width,o=r.height;t||=this.clearColor;var s=this.motionBlur&&!e,c=this.lastFrameAlpha,l=this.dpr,u=this;s&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation=`copy`,this.ctxBack.drawImage(r,0,0,a/l,o/l));var d=this.domBack;function f(e,n,r,a){if(i.clearRect(e,n,r,a),t&&t!==`transparent`){var o=void 0;tt(t)?(o=(t.global||t.__width===r&&t.__height===a)&&t.__canvasGradient||_T(i,t,{x:0,y:0,width:r,height:a}),t.__canvasGradient=o,t.__width=r,t.__height=a):nt(t)&&(t.scaleX=t.scaleX||l,t.scaleY=t.scaleY||l,o=AT(i,t,{dirty:function(){u.setUnpainted(),u.painter.refresh()}})),i.save(),i.fillStyle=o||t,i.fillRect(e,n,r,a),i.restore()}s&&(i.save(),i.globalAlpha=c,i.drawImage(d,e,n,r,a),i.restore())}!n||s?f(0,0,a,o):n.length&&L(n,function(e){f(e.x*l,e.y*l,e.width*l,e.height*l)})},t}(gn)}));function sH(e){return e?e.__builtin__?!0:!(typeof e.resize!=`function`||typeof e.refresh!=`function`):!1}function cH(e,t){var n=document.createElement(`div`);return n.style.cssText=[`position:relative`,`width:`+e+`px`,`height:`+t+`px`,`padding:0`,`margin:0`,`border-width:0`].join(`;`)+`;`,n}function lH(e,t,n,r){var i=new aH(e,t,t.dpr);return i.zlevel=n,i.zlevel2=r,i.__builtin__=!0,uH(i),i}function uH(e){e.__cursorStack=[],e.__cursors=G()}function dH(e){return e.startIdx=e.drawIdx=e.endIdx=e.endIdxNew=0,e.used=!1,e.first=e.last=NaN,e.notClearIdx=-1,e}function fH(e,t){var n=e.__cursors,r=+t;return n.get(r)||(e.__cursorStack.push(r),n.set(r,dH({key:r})))}function pH(e,t){for(var n=e.__cursorStack,r=0;r<n.length;r++)t(e.__cursors.get(n[r]))}function mH(e,t){var n=e.layers;return n[t]||(n[t]=[,,,])}function hH(e,t,n){for(var r=e.layerStack,i=0;i<r.length;i++){var a=r[i].zl,o=r[i].zl2,s=e.layers[a][o];(!n||(!(n&xH)||s.__builtin__)&&(!(n&SH)||!s.__builtin__)&&(!(n&CH)||s!==e.hoverlayer))&&t(s,a,o,i)}}var gH,_H,vH,yH,bH,xH,SH,CH,wH,TH,EH=n((()=>{To(),K(),oH(),si(),xe(),Qh(),$T(),ei(),xT(),je(),gH=1e5,_H=314159,vH=void 0,yH=1,bH=2,xH=1,SH=2,CH=4,wH=xH|CH,TH=function(){function e(e,t,n,r){this.type=`canvas`,this._prevDisplayList=[],this._layerConfig={},this._needsManuallyCompositing=!1,this.type=`canvas`,this._i={layerStack:[],layers:[]};var i=!e.nodeName||e.nodeName.toUpperCase()===`CANVAS`;if(this._opts=n=I({},n||{}),this.dpr=n.devicePixelRatio||bo,this._singleCanvas=i,this.root=e,e.style&&(ht(e),e.innerHTML=``),this.storage=t,this._prevDisplayList=[],i){var a=e,o=a.width,s=a.height;n.width!=null&&(o=n.width),n.height!=null&&(s=n.height),this.dpr=n.devicePixelRatio||1,a.width=o*this.dpr,a.height=s*this.dpr,this._width=o,this._height=s;var c=lH(a,this,_H,0);c.initContext(),this._insertLayer(c,_H,0,!0),this._domRoot=e}else{this._width=bT(e,0,n),this._height=bT(e,1,n);var l=this._domRoot=cH(this._width,this._height);e.appendChild(l)}}return e.prototype.getType=function(){return`canvas`},e.prototype.isSingleCanvas=function(){return this._singleCanvas},e.prototype.getViewportRoot=function(){return this._domRoot},e.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},e.prototype.refresh=function(e){var t=e&&!H(e)?{paintAll:!!e}:e||{},n=U(t.refresh,!0),r=U(t.refreshHover,!1);if(r&&(this._hoverLayerDirty=bH),!n)return r&&this._paintHoverList(this.storage.getDisplayList(!1)),this;var i=this.storage.getDisplayList(!0);this._updateLayerStatus(i,t.paintAll),this._redrawId=Math.random();var a=this._prevDisplayList;this._paintList(i,a,this._redrawId);var o=this._backgroundColor;return hH(this._i,function(e,t,n,r){e.refresh&&e.refresh(r===0?o:null)},SH),this._opts.useDirtyRect&&(this._prevDisplayList=i.slice()),this},e.prototype._paintHoverList=function(e){var t=this._i.hoverlayer,n=this._hoverLayerDirty;if(this._hoverLayerDirty=vH,n!==vH&&(!t&&n===bH&&(t=this._i.hoverlayer=this._ensureLayer(gH)),t)){t.clear();for(var r={inHover:!0,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{}},i,a=0,o=e.length;a<o;a++){var s=e[a];if(s.__inHover){i||(i=t.ctx,i.save());var c=s.__hoverStyle,l=void 0;c&&(l=s.style,s.style=c),UT(i,s,r),c&&(s.style=l)}}i&&(WT(i,r),i.restore())}},e.prototype.getHoverLayer=function(){return this._ensureLayer(gH)},e.prototype.paintOne=function(e,t){HT(e,t)},e.prototype._paintList=function(e,t,n){if(this._redrawId===n){var r=this._doPaintList(e,t);if(this._needsManuallyCompositing&&this._compositeManually(),r)hH(this._i,function(e){e.afterBrush&&e.afterBrush()},wH),this._paintHoverList(e);else{var i=this;oi(function(){i._paintList(e,t,n)})}}},e.prototype._compositeManually=function(){var e=this._ensureLayer(_H).ctx,t=this._domRoot.width,n=this._domRoot.height;e.clearRect(0,0,t,n),hH(this._i,function(r){r.virtual&&e.drawImage(r.dom,0,0,t,n)},xH)},e.prototype._doPaintList=function(e,t){var n=this,r=!0;return hH(this._i,function(i){var a=!1;if(pH(i,function(e){(e.drawIdx<e.endIdx||e.notClearIdx>=0)&&(a=!0)}),!(!a&&!i.__dirty)){var o=n._opts.useDirtyRect&&!rH(i)?i.createRepaintRects(e,t,n._width,n._height):null,s=n._i.layerStack[0],c=!0;if(i.__dirty){c=!1,i.__dirty=!1;var l=i.zlevel===s.zl&&i.zlevel2===s.zl2?n._backgroundColor:null;i.clear(!1,l,o)}pH(i,function(t){var a=n._paintPerCursor(i,t,e,o,c);r&&=a})}},wH),F.wxa&&hH(this._i,function(e){e&&e.ctx&&e.ctx.draw&&e.ctx.draw()}),r},e.prototype._paintPerCursor=function(e,t,n,r,i){var a=e.ctx;if(r)if(!r.length)t.drawIdx=t.endIdx;else for(var o=this.dpr,s=0;s<r.length;++s){var c=r[s];a.save(),a.beginPath(),a.rect(c.x*o,c.y*o,c.width*o,c.height*o),a.clip(),this._paintPerCursorInRect(e,t,n,c,i),a.restore()}else a.save(),this._paintPerCursorInRect(e,t,n,null,i),a.restore();return t.drawIdx>=t.endIdx},e.prototype._paintPerCursorInRect=function(e,t,n,r,i){for(var a={inHover:!1,allClipped:!1,prevEl:null,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{contentRetained:i}},o=e.ctx,s=rH(e),c=s&&Ae.getTime(),l=t.drawIdx,u=t.notClearIdx,d=u>=0?Math.min(u,l):l;d<t.endIdx;d++){var f=n[d];if(!(d<l&&!f.notClear)){if(f.__inHover&&(this._hoverLayerDirty=bH),r!=null){var p=f.getPaintRect();p&&p.intersect(r)&&(UT(o,f,a),f.setPrevPaintRect(p))}else UT(o,f,a);if(s&&Ae.getTime()-c>15){d++;break}}}WT(o,a),t.drawIdx=Math.max(d,l)},e.prototype.getLayer=function(e,t){return this._ensureLayer(e,0,t)},e.prototype._ensureLayer=function(e,t,n){t||=0;var r=this._singleCanvas;r&&!this._needsManuallyCompositing&&(e=_H,t=0);var i=mH(this._i,e)[t];return i||(i=lH(`zr_`+e+`.`+t,this,e,t),this._layerConfig[e]&&Ie(i,this._layerConfig[e],!0),(n||r&&e!==_H)&&(i.virtual=!0),this._insertLayer(i,e,t,!1),i.initContext()),i},e.prototype.insertLayer=function(e,t){this._insertLayer(t,e,0,!1)},e.prototype._insertLayer=function(e,t,n,r){var i=this._i,a=i.layers,o=i.layerStack,s=this._domRoot,c=null;if(a[t]&&a[t][n]){process.env.NODE_ENV!==`production`&&Pe(`ZLevel `+t+`.`+n+` has been used already`);return}if(!sH(e)){process.env.NODE_ENV!==`production`&&Pe(`Layer of zlevel `+t+` is not valid`);return}for(var l=o.length,u=0;u<l&&(o[u].zl<t||o[u].zl===t&&o[u].zl2<n);)u++;if(u>0&&(c=mH(i,o[u-1].zl)[o[u-1].zl2]),o.splice(u,0,{zl:t,zl2:n}),mH(i,t)[n]=e,!r&&!e.virtual)if(c){var d=c.dom;d.nextSibling?s.insertBefore(e.dom,d.nextSibling):s.appendChild(e.dom)}else s.firstChild?s.insertBefore(e.dom,s.firstChild):s.appendChild(e.dom);e.painter||=this},e.prototype.eachLayer=function(e,t){return hH(this._i,function(n,r){e.call(t,n,r)})},e.prototype.eachBuiltinLayer=function(e,t){return hH(this._i,function(n,r){e.call(t,n,r)},xH)},e.prototype.eachOtherLayer=function(e,t){return hH(this._i,function(n,r){e.call(t,n,r)},SH)},e.prototype.getLayers=function(){var e={};return hH(this._i,function(t,n,r){e[t.id]=t}),e},e.prototype._updateLayerStatus=function(e,t){var n=this;if(n._singleCanvas)for(var r=1;r<e.length;r++){var i=e[r];if(i.zlevel!==e[r-1].zlevel||i.incremental){n._needsManuallyCompositing=!0;break}}hH(n._i,function(e){e.__dirty=!1,pH(e,function(e){e.used=!1,e.endIdxNew=0,e.notClearIdx=-1})},wH);for(var a,o=null,s=null,c=!1,l=0,u=e.length;l<u;l++){var i=e[l],d=i.zlevel,f=i.incremental,p=void 0;if(a!==d&&(a=d,c=!1),f?(c=!0,p=1):p=c?2:0,(!o||d!==o.zlevel||p!==o.zlevel2)&&(o=n._ensureLayer(d,p),s=null,!o.__builtin__)){Pe(`ZLevel `+d+` has been used by unknown layer `+o.id);continue}if((!s||f!==s.key)&&(s=fH(o,f),!s.used))if(s.used=!0,!t&&s.first===i.id){var m=l-s.startIdx;s.startIdx=l,s.drawIdx+=m,s.endIdx+=m}else o.__dirty=!0,s.first=i.id,s.startIdx=s.drawIdx=l,s.endIdx=l+1;s.endIdxNew=l+1,i.__dirty&1&&!i.__inHover&&((!f||!i.notClear&&l<s.drawIdx)&&(o.__dirty=!0),f&&i.notClear&&s.notClearIdx<0&&(s.notClearIdx=l))}hH(n._i,function(t){for(var r=t.__cursorStack,i=t.__cursors,a=r.length-1;a>=0;a--){var o=i.get(r[a]);if(!o.used)t.__dirty=!0,i.removeKey(r[a]),r.splice(a,1);else{var s=o.endIdxNew;(rH(t)?s<o.drawIdx:s!==o.endIdx||!s||e[s-1].id!==o.last)&&(t.__dirty=!0),o.endIdx=o.endIdxNew,o.last=s?e[s-1].id:NaN}}t.__dirty&&(pH(t,function(e){e.drawIdx=e.startIdx}),n._hoverLayerDirty===vH&&(n._hoverLayerDirty=yH))},wH)},e.prototype.clear=function(){return hH(this._i,function(e){e.clear(),uH(e)},xH),this},e.prototype.setBackgroundColor=function(e){this._backgroundColor=e,hH(this._i,function(e){e.setUnpainted()})},e.prototype.configLayer=function(e,t){if(t){var n=this._layerConfig;n[e]?Ie(n[e],t,!0):n[e]=t,hH(this._i,function(e,t){Ie(e,n[t],!0)})}},e.prototype.delLayer=function(e){for(var t=this._i.layerStack,n=this._i.layers,r=t.length-1;r>=0;r--){var i=t[r];if(i.zl===e){var a=n[e][i.zl2];if(a.__builtin__)continue;if(t.splice(r,1),n[e][i.zl2]=void 0,!a.virtual){var o=a.dom.parentNode;o&&o.removeChild(a.dom)}}}},e.prototype.resize=function(e,t){if(this._domRoot.style){var n=this._domRoot;n.style.display=`none`;var r=this._opts,i=this.root;e!=null&&(r.width=e),t!=null&&(r.height=t),e=bT(i,0,r),t=bT(i,1,r),n.style.display=``,(this._width!==e||t!==this._height)&&(n.style.width=e+`px`,n.style.height=t+`px`,hH(this._i,function(n){n.resize(e,t)}),this.refresh({paintAll:!0})),this._width=e,this._height=t}else{if(e==null||t==null)return;this._width=e,this._height=t,this._ensureLayer(_H).resize(e,t)}return this},e.prototype.clearLayer=function(e){L(this._i.layers[e],function(e){e&&!e.__builtin__&&e.clear()})},e.prototype.dispose=function(){this.root.innerHTML=``,this.root=this.storage=this._domRoot=this._i=null},e.prototype.getRenderedCanvas=function(e){if(e||={},this._singleCanvas&&!this._compositeManually)return this._i.layers[_H][0].dom;var t=new aH(`image`,this,e.pixelRatio||this.dpr);t.initContext(),t.clear(!1,e.backgroundColor||this._backgroundColor);var n=t.ctx;if(e.pixelRatio<=this.dpr){this.refresh();var r=t.dom.width,i=t.dom.height;hH(this._i,function(e){e.__builtin__?n.drawImage(e.dom,0,0,r,i):e.renderToCanvas&&(n.save(),e.renderToCanvas(n),n.restore())})}else{for(var a={inHover:!1,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{}},o=this.storage.getDisplayList(!0),s=0,c=o.length;s<c;s++){var l=o[s];UT(n,l,a)}WT(n,a)}return t.dom},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e}()}));function DH(e){e.registerPainter(`canvas`,TH)}var OH=n((()=>{EH()})),kH=n((()=>{wa(),af(),pf(),Qo(),cf(),wT(),K(),Nn(),uu(),Lo(),Td(),Fh(),Ri(),Uf(),je(),xa(),Ps(),xT(),OH()})),AH=n((()=>{kH()}));function jH(e,t,n=!0){let r=t.map(e=>e.label),i=t.map(e=>e.value),a={animation:n,backgroundColor:`transparent`};return e===`spark`?{...a,grid:{left:0,right:0,top:4,bottom:4},xAxis:{type:`category`,show:!1,data:r},yAxis:{type:`value`,show:!1},series:[{type:`line`,data:i,smooth:!0,symbol:`none`,lineStyle:{width:2,color:`#2E9EFF`},areaStyle:{color:{type:`linear`,x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:`rgba(46,158,255,.28)`},{offset:1,color:`rgba(124,92,252,0)`}]}}}]}:e===`donut`||e===`pie`?{...a,tooltip:{trigger:`item`},legend:{bottom:0,icon:`circle`,itemWidth:8,itemHeight:8},series:[{type:`pie`,radius:e===`donut`?[`46%`,`72%`]:[`0%`,`72%`],itemStyle:{borderRadius:6,borderColor:`#fff`,borderWidth:2},label:{show:!1},emphasis:{scale:!0,scaleSize:6},data:t.map((e,t)=>({name:e.label,value:e.value,itemStyle:{color:[`#00C6FF`,`#2E9EFF`,`#2563EB`,`#7C5CFC`,`#a78bfa`,`#38bdf8`][t%6]}}))}]}:e===`line`||e===`area`?{...a,tooltip:{trigger:`axis`},xAxis:{type:`category`,data:r,boundaryGap:!1},yAxis:{type:`value`},series:[{type:`line`,data:i,smooth:!0,symbolSize:7,lineStyle:{width:3,color:PH},itemStyle:{color:`#2E9EFF`,borderColor:`#fff`,borderWidth:2},areaStyle:e===`area`?{color:{type:`linear`,x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:`rgba(46,158,255,.32)`},{offset:1,color:`rgba(124,92,252,0)`}]}}:void 0}]}:{...a,tooltip:{trigger:`axis`},xAxis:{type:`category`,data:r},yAxis:{type:`value`},series:[{type:`bar`,data:i,barMaxWidth:42,itemStyle:{borderRadius:[8,8,4,4],color:PH},emphasis:{itemStyle:{shadowBlur:12,shadowColor:`rgba(46,158,255,.35)`}}}]}}function MH(e){let t=(e??`bar`).toLowerCase();return t===`pie`?`donut`:t===`sparkline`?`spark`:[`bar`,`line`,`area`,`donut`,`spark`].includes(t)?t:`bar`}var NH,PH,FH=n((()=>{NH={color:[`#00C6FF`,`#2E9EFF`,`#2563EB`,`#7C5CFC`,`#a78bfa`,`#38bdf8`],backgroundColor:`transparent`,textStyle:{fontFamily:`Inter,Segoe UI,system-ui,sans-serif`,color:`#5B6478`},title:{textStyle:{color:`#0B1220`,fontWeight:700}},legend:{textStyle:{color:`#5B6478`}},grid:{left:12,right:12,top:48,bottom:28,containLabel:!0},categoryAxis:{axisLine:{lineStyle:{color:`rgba(11,18,32,.08)`}},axisTick:{show:!1},axisLabel:{color:`#5B6478`,fontSize:11},splitLine:{lineStyle:{color:`rgba(11,18,32,.06)`}}},valueAxis:{axisLine:{show:!1},axisTick:{show:!1},axisLabel:{color:`#5B6478`,fontSize:11},splitLine:{lineStyle:{color:`rgba(11,18,32,.06)`}}}},PH={type:`linear`,x:0,y:0,x2:1,y2:0,colorStops:[{offset:0,color:`#00C6FF`},{offset:.5,color:`#2E9EFF`},{offset:1,color:`#7C5CFC`}]}}));function IH(e,t=/[,;]/){return e?e.split(t).map(e=>e.trim()).filter(Boolean):[]}function LH(e){if(!e.includes(`|`)&&!e.includes(`/`))return e;let t=e.split(`||`).map(e=>e.trim()).filter(Boolean),n=e=>{if(e.includes(`/`)){let[t,...n]=e.split(`/`),r=n.join(`/`).trim();if(r.includes(`|`)){let e=r.split(`|`).map(e=>e.trim()).filter(Boolean);if(e.length>=2)return`${t.trim()} ${e.slice(0,-1).join(` `)} <em>${e[e.length-1]}</em>`}return`${t.trim()} <em>${r}</em>`}if(!e.includes(`|`))return e;let t=e.split(`|`).map(e=>e.trim()).filter(Boolean);return t.length===3?`${t[0]} <em>${t[1]}</em> ${t[2]}`:t.length===2?`${t[0]} <em>${t[1]}</em>`:t.map((e,t,n)=>t===n.length-1?`<em>${e}</em>`:e).join(` `)};return t.length>1?t.map(n).join(`<br>`):n(t[0]??e)}function RH(e,t=`;`){return IH(e,t).map(e=>{let[t,...n]=e.split(`|`);return{head:t?.trim()??``,body:n.join(`|`).trim()}})}function zH(e){let t=e.getAttribute(`plans`),n=Number(e.getAttribute(`popular`)??`1`);return t?IH(t,`;`).map((e,t)=>{let[r,i,a,o,s]=e.split(`|`);return{name:r?.trim()??`Plan`,price:i?.trim()??`0`,desc:a?.trim()??``,features:IH(o??``,/,/),cta:s?.trim()??`Choose`,popular:t===n}}):[{name:`STARTER`,price:`0`,desc:`For personal projects and quick starts.`,features:[`Core components`,`Responsive themes`,`Community updates`],cta:`Start free`},{name:`PRO`,price:`19`,desc:`For real products and ambitious teams.`,features:[`All widgets + pickers`,`Featured presets`,`Priority updates`],cta:`Choose Pro`,popular:!0},{name:`STUDIO`,price:`49`,desc:`For agencies shipping many experiences.`,features:[`Unlimited projects`,`Custom tokens`,`Team license`],cta:`Choose Studio`}]}function BH(e,t){let n=e.getAttribute(`items`);return n?IH(n,`;`).slice(0,t).map((e,t)=>{let n=e.split(`|`).map(e=>e.trim()).filter(Boolean);return n.length>=3?[n[0],n[1],n.slice(2).join(` | `)]:n.length===2?[String(t+1).padStart(2,`0`),n[0],n[1]]:[String(t+1).padStart(2,`0`),n[0]??`Feature`,`One short command.`]}):[[`01`,`Exceptional speed`,`Lightweight core — no heavy dependencies.`],[`02`,`Adaptive design`,`Looks great on every screen and direction.`],[`03`,`Scalable registry`,`Clear components that grow with your product.`],[`04`,`Living color map`,`One seed color dresses every widget.`]].slice(0,t)}function VH(e,t){let n=IH(e.getAttribute(`links`)??e.getAttribute(`nav`));return(n.length?n:t).map(e=>{let[t,n]=e.split(`|`).map(e=>e.trim());return`<a href="${n||`#`}">${t}</a>`}).join(``)}var $,HH=n((()=>{$=(e,t)=>e.includes(t)}));function UH(e){return QH+=1,`${e}${QH}`}function WH(e){let t=RH(e);return t.length?t.map(e=>{let t=Number(e.body.replace(/[^0-9.-]/g,``));return{label:e.head||`—`,value:Number.isFinite(t)?t:0}}).filter(e=>e.label):IH(e).map((e,t)=>{let n=Number(e.replace(/[^0-9.-]/g,``));return{label:String(t+1),value:Number.isFinite(n)?n:0}})}function GH(e){return Math.max(1,...e.map(e=>e.value))}function KH(e,t){let n=t<=1?0:e/(t-1);return n<.33?`var(--nexa-cyan,#00c6ff)`:n<.66?`var(--nexa-sky,#2e9eff)`:`var(--nexa-violet,#7c5cfc)`}function qH(e,t){let n=GH(e);return`<div class="nexa-chart-bars" role="img" aria-label="Bar chart">${e.map((r,i)=>`<div class="nexa-chart-bar" style="--h:${Math.round(r.value/n*100)}%;--c:${KH(i,e.length)};${t?`--d:${i*60}ms`:``}"><i></i><b>${r.value}</b><span>${r.label}</span></div>`).join(``)}</div>`}function JH(e,t,n){let r=GH(e),i=e.length<=1?0:92/Math.max(1,e.length-1),a=e.map((e,t)=>({x:4+t*i,y:52-e.value/r*48,p:e})),o=a.map((e,t)=>`${t?`L`:`M`}${e.x.toFixed(2)} ${e.y.toFixed(2)}`).join(` `),s=`M${a[0]?.x.toFixed(2)??4} 52 ${a.map(e=>`L${e.x.toFixed(2)} ${e.y.toFixed(2)}`).join(` `)} L${a.at(-1)?.x.toFixed(2)??96} 52 Z`,c=a.map((e,t)=>`<circle class="nexa-chart-dot" cx="${e.x}" cy="${e.y}" r="1.6" style="--d:${t*50}ms"><title>${e.p.label}: ${e.p.value}</title></circle>`).join(``),l=UH(`nexaLine`),u=UH(`nexaArea`),d=`<div class="nexa-chart-x">${e.map(e=>`<span>${e.label}</span>`).join(``)}</div>`;return`<div class="nexa-chart-line ${t?`is-area`:``} ${n?`is-anim`:``}" role="img" aria-label="${t?`Area`:`Line`} chart">
|
|
33
|
-
<svg viewBox="0 0 100 56" preserveAspectRatio="none" aria-hidden="true">
|
|
34
|
-
<defs>
|
|
35
|
-
<linearGradient id="${l}" x1="0" y1="0" x2="1" y2="0"><stop offset="0%" stop-color="#00c6ff"/><stop offset="50%" stop-color="#2e9eff"/><stop offset="100%" stop-color="#7c5cfc"/></linearGradient>
|
|
36
|
-
<linearGradient id="${u}" x1="0" y1="0" x2="0" y2="1"><stop offset="0%" stop-color="#2e9eff" stop-opacity=".35"/><stop offset="100%" stop-color="#7c5cfc" stop-opacity="0"/></linearGradient>
|
|
37
|
-
</defs>
|
|
38
|
-
${t?`<path class="nexa-chart-area" d="${s}" fill="url(#${u})"/>`:``}
|
|
39
|
-
<path class="nexa-chart-path" d="${o}" fill="none" stroke="url(#${l})" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"/>
|
|
40
|
-
${c}
|
|
41
|
-
</svg>${d}</div>`}function YH(e,t){let n=e.reduce((e,t)=>e+t.value,0)||1,r=2*Math.PI*42,i=0,a=e.map((t,a)=>{let o=t.value/n*r,s=`${o} ${r-o}`,c=`<circle class="nexa-chart-ring" r="42" cx="50" cy="50" stroke="${KH(a,e.length)}" stroke-dasharray="${s}" stroke-dashoffset="${-i}" pathLength="${r}" style="--len:${o};--gap:${r-o};--off:${-i};--d:${a*80}ms"><title>${t.label}: ${t.value}</title></circle>`;return i+=o,c}).join(``),o=e.map((t,r)=>`<li style="--c:${KH(r,e.length)}"><i></i><span>${t.label}</span><b>${Math.round(t.value/n*100)}%</b></li>`).join(``);return`<div class="nexa-chart-donut ${t?`is-anim`:``}" role="img" aria-label="Donut chart">
|
|
42
|
-
<svg viewBox="0 0 100 100" aria-hidden="true">
|
|
43
|
-
<circle class="nexa-chart-ring-bg" r="42" cx="50" cy="50"/>
|
|
44
|
-
${a}
|
|
45
|
-
<text x="50" y="48" text-anchor="middle" class="nexa-chart-donut-val">${n}</text>
|
|
46
|
-
<text x="50" y="58" text-anchor="middle" class="nexa-chart-donut-lbl">TOTAL</text>
|
|
47
|
-
</svg>
|
|
48
|
-
<ul class="nexa-chart-legend">${o}</ul>
|
|
49
|
-
</div>`}function XH(e){let t=GH(e),n=e.length<=1?0:116/Math.max(1,e.length-1),r=e.map((e,r)=>{let i=2+r*n,a=26-e.value/t*24;return`${r?`L`:`M`}${i.toFixed(1)} ${a.toFixed(1)}`}).join(` `),i=UH(`nexaSpark`);return`<div class="nexa-chart-spark" role="img" aria-label="Sparkline"><svg viewBox="0 0 120 28" preserveAspectRatio="none"><defs><linearGradient id="${i}" x1="0" y1="0" x2="1" y2="0"><stop offset="0%" stop-color="#00c6ff"/><stop offset="100%" stop-color="#7c5cfc"/></linearGradient></defs><path d="${r}" fill="none" stroke="url(#${i})" stroke-width="2" stroke-linecap="round"/></svg></div>`}function ZH(e){e.register(`chart`,({modifiers:e,element:t})=>{let n=[`bar`,`line`,`area`,`donut`,`pie`,`spark`,`sparkline`].find(t=>$(e,t))??`bar`,r=n===`pie`?`donut`:n===`sparkline`?`spark`:n;t.classList.add(`is-${r}`);let i=!$(e,`static`);i&&t.classList.add(`is-anim`);let a=t.getAttribute(`title`)??t.getAttribute(`label`)??``,o=t.getAttribute(`subtitle`)??t.getAttribute(`desc`)??``,s=t.getAttribute(`data`)??t.getAttribute(`values`)??t.getAttribute(`series`)??$H[r]??$H.bar,c=r===`spark`?s.includes(`|`)?WH(s):WH(s.split(/[,;\s]+/).filter(Boolean).map((e,t)=>`${t+1}|${e}`).join(`;`)):WH(s),l=a||o?`<header class="nexa-chart-head">${a?`<h3>${a}</h3>`:``}${o?`<p>${o}</p>`:``}</header>`:``;if(!$(e,`pro`)){let e=``;return e=r===`bar`?qH(c,i):r===`line`?JH(c,!1,i):r===`area`?JH(c,!0,i):r===`donut`?YH(c,i):XH(c),t.classList.add(`is-css`),`<div class="nexa-chart-card">${l}${e}</div>`}t.classList.add(`is-echarts`);let u=i?``:` data-static="true"`;return`<div class="nexa-chart-card is-pro">${l}${`<div class="nexa-echart-host" data-nexa-echart="${r}" data-chart="${(e=>e.replace(/&/g,`&`).replace(/"/g,`"`))(s)}"${u} role="img" aria-label="${r} chart"></div>`}</div>`})}var QH,$H,eU=n((()=>{HH(),QH=0,$H={bar:`Jan|42;Feb|58;Mar|71;Apr|65;May|88;Jun|96`,line:`Mon|12;Tue|19;Wed|15;Thu|28;Fri|24;Sat|32;Sun|30`,area:`W1|40;W2|55;W3|48;W4|72;W5|68;W6|90`,donut:`Pro|48;Studio|27;Starter|25`,spark:`12,18,14,22,19,28,26,34,30,38`}})),tU=r({NEXA_ECHARTS_THEME:()=>NH,buildNexaChartOption:()=>jH,echarts:()=>iP,mountNexaChart:()=>iU,wireEcharts:()=>aU});function nU(e){if(typeof document>`u`||globalThis.process?.env?.VITEST)return!1;try{let e=document.createElement(`canvas`);if(typeof e.getContext!=`function`||!e.getContext(`2d`))return!1}catch{return!1}return(e.clientHeight||parseInt(getComputedStyle(e).minHeight||`0`,10)||0)>=40||e.clientWidth>=40}function rU(e,t){return e===`spark`&&!t.includes(`|`)?WH(t.split(/[,;\s]+/).filter(Boolean).map((e,t)=>`${t+1}|${e}`).join(`;`)):WH(t)}function iU(e){if(!nU(e))return null;let t=MH(e.getAttribute(`data-nexa-echart`)),n=e.getAttribute(`data-chart`)??``,r=e.getAttribute(`data-static`)!==`true`,i=rU(t,n),a=oU.get(e);a&&(a.dispose(),oU.delete(e)),(e.clientHeight||0)<80&&(e.style.minHeight=`260px`);let o=oU.get(e);return o||(o=_E(e,null,{renderer:`canvas`}),oU.set(e,o)),o.setOption(jH(t,i,r),!0),o.resize(),o}function aU(e=document){e.querySelectorAll(`[data-nexa-echart]`).forEach(e=>{e.dataset.nexaEchartWired||(e.dataset.nexaEchartWired=`1`,nU(e)&&(iU(e),typeof ResizeObserver<`u`&&new ResizeObserver(()=>oU.get(e)?.resize()).observe(e)))})}var oU,sU=n((()=>{aP(),Sz(),tH(),AH(),FH(),eU(),zj([kL,bF,sR,EB,fV,JV,XV,DH]),oU=new WeakMap})),cU={button:`button`,badge:`span`,card:`article`,header:`header`,hero:`section`,features:`section`,logos:`section`,pricing:`section`,testimonials:`section`,cta:`section`,footer:`footer`,field:`div`,grid:`div`,stack:`div`,container:`div`,form:`form`,input:`input`,textarea:`textarea`,select:`select`,alert:`div`,modal:`div`,tabs:`div`,accordion:`div`,dropdown:`div`,spinner:`div`,progress:`div`,toast:`div`,breadcrumb:`nav`,pagination:`nav`,divider:`div`,avatar:`div`,auth:`main`,carousel:`div`,sheet:`div`,offcanvas:`div`,popover:`div`,tooltip:`span`,list:`div`,posts:`section`,checkout:`section`,table:`div`,collapse:`div`,stat:`div`,nav:`nav`,"button-group":`div`,"list-group":`div`,navbar:`nav`,"input-group":`div`,close:`button`,switch:`div`,scrollspy:`nav`,skeleton:`div`,figure:`figure`,chart:`div`,ico:`span`,datepicker:`div`,timepicker:`div`,chip:`span`,chips:`div`,rating:`div`,stepper:`div`,fab:`button`,autocomplete:`div`,tree:`div`,timeline:`div`,transfer:`div`},lU=new Set([`modern`,`luxury`,`minimal`]),uU=new Set([`blue`,`purple`,`gold`,`green`,`orange`,`black`,`violet`,`azure`,`emerald`,`coral`,`light`,`ivory`]);function dU(e){return e===`theme`||e===`map`||lU.has(e)}function fU(e,t){let n=o[t];n&&O(e,n)}function pU(e){let t=lU.has(e.component)?e.component:e.modifiers.find(e=>lU.has(e))??(e.component===`map`?`luxury`:`modern`),n=e.modifiers.find(e=>uU.has(e))??(uU.has(e.component)?e.component:`black`),r=new Set([t,n,`map`,...Object.keys(s)]),i=e.modifiers.filter(e=>!r.has(e)&&!lU.has(e)&&!uU.has(e)&&!y(e));return{classes:[`nexa-theme`,`nexa-${t}`,`nexa-${n}`,...i.map(e=>`nexa-${e}`)],color:n}}function mU(e,t){let n=pU(t);e.classList.add(...n.classes);let r=v(t.modifiers);if(r){E(e,r),e.dataset.nexaMapCmd=r;return}fU(e,n.color)}function hU(e,t,n){return t===`button`?n.join(` `)||`primary`:t===`input`||t===`textarea`||t===`select`?n.join(` `):[e,...n].join(` `).trim()}function gU({registry:e}){return{render(t){try{let n=t.getAttribute(`nexa`)??``,r=t.tagName.toLowerCase(),i=n.trim()?M(n):{component:r,modifiers:[],attributes:{},raw:n},a=i,o=e.resolve(a.component);if(!o&&e.resolve(r)&&(a={...i,component:r,modifiers:[i.component,...i.modifiers].filter(e=>e&&e!==r)},o=e.resolve(r)),!o&&(r===`body`||dU(a.component))){if(a.component===`map`&&!v(a.modifiers))throw Error(`استخدم: map #ec4899 · map pink · map:my-brand — مثال: nexa="luxury black map #ec4899"`);return mU(t,a),{ok:!0}}if(!o)throw Error(`Unknown “${a.component}”. Try: ${e.list().join(`, `)}`);let s=ce(a.component,a.modifiers);if(s)throw Error(s);t.className=`${t.className} nexa-host nexa-${a.component} ${a.modifiers.map(e=>`nexa-${e}`).join(` `)}`.trim();let c=t.innerHTML.trim()||a.label||``,l=o({...a,content:c,element:t});return r!==`input`&&l!==c&&(t.innerHTML=l),{ok:!0}}catch(e){return{ok:!1,error:e instanceof Error?e.message:`Render failed`}}},renderPage(e,t){try{let n=re(e);if(!n.length)throw Error(`Write at least one command, such as: btn primary`);let r=n.find(e=>dU(e.component)||e.modifiers.includes(`map`));if(n=n.filter(e=>!dU(e.component)&&e.component!==`map`),n[0]?.component===`page`){let e=n[0].modifiers,t=e.includes(`auth`);if(!r){let t=e.find(e=>lU.has(e))??`luxury`,n=e.find(e=>uU.has(e))??`blue`;r={component:`theme`,modifiers:[t,n],attributes:{},raw:`theme ${t} ${n}`}}n=t?[M(`auth`),...n.slice(1)]:e.includes(`portfolio`)?[M(`header simple`),M(`hero centered minimal`),M(`features cards-3`),M(`testimonials featured`),M(`cta bold`),M(`footer simple`),...n.slice(1)]:e.includes(`dashboard`)?[M(`header glass fixed`),M(`stat`),M(`features cards-4`),M(`pricing`),M(`cta`),M(`footer simple`),...n.slice(1)]:e.includes(`store`)?[M(`header glass fixed`),M(`hero split`),M(`logos`),M(`features cards-4`),M(`pricing`),M(`testimonials`),M(`cta bold`),M(`footer dark mega`),...n.slice(1)]:e.includes(`blog`)?[M(`header simple`),M(`hero minimal centered`),M(`posts cards-3`),M(`testimonials`),M(`cta`),M(`footer simple`),...n.slice(1)]:e.includes(`checkout`)?[M(`header simple`),M(`checkout`),M(`footer simple`),...n.slice(1)]:[M(`header glass fixed`),M(`hero split`),M(`logos`),M(`features cards-3`),M(`pricing`),M(`testimonials`),M(`cta`),M(`footer dark`),...n.slice(1)]}t.replaceChildren();let i=document.createElement(`main`);mU(i,r??{component:`modern`,modifiers:[`blue`]});let a=document.createElement(`div`),o=n.length===1&&n[0]?.component===`auth`,s=n.some(e=>e.component===`checkout`);a.className=o?`nexa-auth-stage`:s?`nexa-checkout-stage`:`nexa-short-stage`,i.appendChild(a),t.appendChild(i);for(let e of n){let t=te(e.component),n=cU[t]??`div`,r=document.createElement(n);r.setAttribute(`nexa`,hU(t,n,e.modifiers));for(let[t,n]of Object.entries(e.attributes))!/^on/i.test(t)&&t!==`srcdoc`&&r.setAttribute(t,n);e.label?r.textContent=e.label:t===`button`&&(r.textContent=`Button`),a.appendChild(r);let i=this.render(r);if(!i.ok)throw Error(`${e.raw}: ${i.error}`)}return{ok:!0}}catch(e){return{ok:!1,error:e instanceof Error?e.message:`Page render failed`}}},mount(e=document){let t=e.querySelectorAll(`[nexa]`),n;for(let e of t){let t=this.render(e);!t.ok&&!n&&(n=t.error,e.dataset.nexaError=t.error)}return le(e),e.querySelector(`[data-nexa-echart]`)&&Promise.resolve().then(()=>(sU(),tU)).then(({wireEcharts:t})=>t(e)),n?{ok:!1,error:n}:{ok:!0}}}}var _U=new class{components=new Map;register(e,t){return this.components.set(e,t),this}resolve(e){return this.components.get(e)}list(){return[...this.components.keys()]}},vU={mark:`/nexa-mark.png`,markSource:`/nexa-mark-source.png`,mark512:`/nexa-mark-512.png`,mark256:`/nexa-mark-256.png`,mark128:`/nexa-mark.png`,mark96:`/nexa-mark-96.png`,mark64:`/nexa-mark-64.png`,mark48:`/nexa-mark-48.png`,mark40:`/nexa-mark-40.png`,mark32:`/nexa-mark-32.png`,mark24:`/nexa-mark-24.png`,markApple:`/nexa-mark-apple.png`,markProduct:`/nexa-mark-product.png`,markProduct256:`/nexa-mark-product-256.png`,wordmark:`/nexa-wordmark.png`,heroSculpture:`/nexa-hero-sculpture.png`,heroSculpture640:`/nexa-hero-sculpture-640.png`,heroSculpture960:`/nexa-hero-sculpture-960.png`,heroSculpture1280:`/nexa-hero-sculpture-1280.png`,visionReference:`/nexa-palette-vision.png`,cardsVision:`/nexa-cards-vision.jpg`,cardsDir:`/cards/`,cardHeroArt:`hero`,favicon:`/favicon.svg`},yU={mark:`/nexa-mark.png`,wordmark:`/nexa-wordmark.png`,sculpture:`/nexa-hero-sculpture.png`,hero:`/nexa-hero-sculpture.png`};function bU(e){return yU[e.trim().toLowerCase()]??e}function xU(e){let t=e.trim().toLowerCase();return t===`hero`||t===`sculpture`||t===`vision`}function SU(e=40){let t=Math.ceil(e);return[`${vU.mark64} ${Math.round(t*1.5)}w`,`${vU.mark128} ${t*2}w`,`${vU.mark256} ${t*3}w`,`${vU.mark512} ${t*4}w`].join(`, `)}function CU(){return[`${vU.markProduct256} 256w`,`${vU.markProduct} 384w`,`${vU.mark512} 512w`].join(`, `)}function wU(){return[`${vU.heroSculpture640} 640w`,`${vU.heroSculpture960} 960w`,`${vU.heroSculpture1280} 1280w`,`${vU.heroSculpture} 3209w`].join(`, `)}function TU(){return`<div class="nexa-art nexa-sculpture" aria-hidden="true">
|
|
50
|
-
<div class="nexa-art-bloom"></div>
|
|
51
|
-
<img class="nexa-sculpture-img" src="${vU.heroSculpture}" alt="" decoding="async">
|
|
52
|
-
<div class="nexa-art-dots"></div>
|
|
53
|
-
</div>`}function EU(){return`<img class="nexa-card-product-mark" src="${vU.mark512}" srcset="${CU()}" sizes="128px" width="128" height="128" alt="" decoding="async">`}function DU(e=`cover`){return e===`product`?EU():`<div class="nexa-card-hero-art is-${e}" aria-hidden="true">
|
|
54
|
-
<div class="nexa-card-hero-bloom"></div>
|
|
55
|
-
${`<img class="nexa-card-hero-sculpture" src="${vU.heroSculpture960}" srcset="${wU()}" sizes="(max-width:640px) 40vw, 320px" alt="" decoding="async">`}
|
|
56
|
-
<div class="nexa-card-hero-dots"></div>
|
|
57
|
-
</div>`}var OU=[[`path`,{d:`M5 12h14`}],[`path`,{d:`m12 5 7 7-7 7`}]],kU=[[`path`,{d:`m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526`}],[`circle`,{cx:`12`,cy:`8`,r:`6`}]],AU=[[`path`,{d:`M10.268 21a2 2 0 0 0 3.464 0`}],[`path`,{d:`M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326`}]],jU=[[`path`,{d:`M17 3a2 2 0 0 1 2 2v15a1 1 0 0 1-1.496.868l-4.512-2.578a2 2 0 0 0-1.984 0l-4.512 2.578A1 1 0 0 1 5 20V5a2 2 0 0 1 2-2z`}]],MU=[[`path`,{d:`M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z`}],[`path`,{d:`m3.3 7 8.7 5 8.7-5`}],[`path`,{d:`M12 22V12`}]],NU=[[`path`,{d:`M8 2v3`}],[`path`,{d:`M16 2v3`}],[`rect`,{x:`3`,y:`3`,width:`18`,height:`18`,rx:`2`}],[`path`,{d:`M3 9h18`}]],PU=[[`path`,{d:`M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z`}],[`circle`,{cx:`12`,cy:`13`,r:`3`}]],FU=[[`path`,{d:`M3 3v16a2 2 0 0 0 2 2h16`}],[`path`,{d:`M18 17V9`}],[`path`,{d:`M13 17V5`}],[`path`,{d:`M8 17v-3`}]],IU=[[`path`,{d:`M3 3v16a2 2 0 0 0 2 2h16`}],[`path`,{d:`m19 9-5 5-4-4-3 3`}]],LU=[[`path`,{d:`M21 12c.552 0 1.005-.449.95-.998a10 10 0 0 0-8.953-8.951c-.55-.055-.998.398-.998.95v8a1 1 0 0 0 1 1z`}],[`path`,{d:`M21.21 15.89A10 10 0 1 1 8 2.83`}]],RU=[[`path`,{d:`M20 6 9 17l-5-5`}]],zU=[[`path`,{d:`m9 18 6-6-6-6`}]],BU=[[`circle`,{cx:`12`,cy:`12`,r:`10`}],[`path`,{d:`m16 9-5.5 5.5L8 12`}]],VU=[[`circle`,{cx:`12`,cy:`12`,r:`10`}],[`path`,{d:`M12 6v6l4 2`}]],HU=[[`path`,{d:`M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z`}]],UU=[[`path`,{d:`m16 18 6-6-6-6`}],[`path`,{d:`m8 6-6 6 6 6`}]],WU=[[`path`,{d:`M12 20v2`}],[`path`,{d:`M12 2v2`}],[`path`,{d:`M17 20v2`}],[`path`,{d:`M17 2v2`}],[`path`,{d:`M2 12h2`}],[`path`,{d:`M2 17h2`}],[`path`,{d:`M2 7h2`}],[`path`,{d:`M20 12h2`}],[`path`,{d:`M20 17h2`}],[`path`,{d:`M20 7h2`}],[`path`,{d:`M7 20v2`}],[`path`,{d:`M7 2v2`}],[`rect`,{x:`4`,y:`4`,width:`16`,height:`16`,rx:`2`}],[`rect`,{x:`8`,y:`8`,width:`8`,height:`8`,rx:`1`}]],GU=[[`rect`,{width:`20`,height:`14`,x:`2`,y:`5`,rx:`2`}],[`line`,{x1:`2`,x2:`22`,y1:`10`,y2:`10`}]],KU=[[`ellipse`,{cx:`12`,cy:`5`,rx:`9`,ry:`3`}],[`path`,{d:`M3 5V19A9 3 0 0 0 21 19V5`}],[`path`,{d:`M3 12A9 3 0 0 0 21 12`}]],qU=[[`path`,{d:`M12 15V3`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`}],[`path`,{d:`m7 10 5 5 5-5`}]],JU=[[`path`,{d:`M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0`}],[`circle`,{cx:`12`,cy:`12`,r:`3`}]],YU=[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`}]],XU=[[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`}]],ZU=[[`path`,{d:`M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z`}]],QU=[[`line`,{x1:`6`,x2:`10`,y1:`11`,y2:`11`}],[`line`,{x1:`8`,x2:`8`,y1:`9`,y2:`13`}],[`line`,{x1:`15`,x2:`15.01`,y1:`12`,y2:`12`}],[`line`,{x1:`18`,x2:`18.01`,y1:`10`,y2:`10`}],[`path`,{d:`M17.32 5H6.68a4 4 0 0 0-3.978 3.59c-.006.052-.01.101-.017.152C2.604 9.416 2 14.456 2 16a3 3 0 0 0 3 3c1 0 1.5-.5 2-1l1.414-1.414A2 2 0 0 1 9.828 16h4.344a2 2 0 0 1 1.414.586L17 18c.5.5 1 1 2 1a3 3 0 0 0 3-3c0-1.545-.604-6.584-.685-7.258-.007-.05-.011-.1-.017-.151A4 4 0 0 0 17.32 5z`}]],$U=[[`circle`,{cx:`12`,cy:`12`,r:`10`}],[`path`,{d:`M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20`}],[`path`,{d:`M2 12h20`}]],eW=[[`path`,{d:`M3 14h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-7a9 9 0 0 1 18 0v7a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3`}]],tW=[[`path`,{d:`M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5`}]],nW=[[`path`,{d:`M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8`}],[`path`,{d:`M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z`}]],rW=[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`}],[`circle`,{cx:`9`,cy:`9`,r:`2`}],[`path`,{d:`m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21`}]],iW=[[`polyline`,{points:`22 12 16 12 14 15 10 15 8 12 2 12`}],[`path`,{d:`M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z`}]],aW=[[`circle`,{cx:`12`,cy:`12`,r:`10`}],[`path`,{d:`M12 16v-4`}],[`path`,{d:`M12 8h.01`}]],oW=[[`path`,{d:`m2 21 9.6-9.6`}],[`path`,{d:`m7.5 15.5 2.3 2.3a1 1 0 0 1 0 1.4l-2.1 2.1a1 1 0 0 1-1.4 0L4 19`}],[`circle`,{cx:`15.5`,cy:`7.5`,r:`5.5`}]],sW=[[`path`,{d:`M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z`}],[`path`,{d:`M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12`}],[`path`,{d:`M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17`}]],cW=[[`rect`,{width:`7`,height:`7`,x:`3`,y:`3`,rx:`1`}],[`rect`,{width:`7`,height:`7`,x:`14`,y:`3`,rx:`1`}],[`rect`,{width:`7`,height:`7`,x:`14`,y:`14`,rx:`1`}],[`rect`,{width:`7`,height:`7`,x:`3`,y:`14`,rx:`1`}]],lW=[[`path`,{d:`M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71`}],[`path`,{d:`M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71`}]],uW=[[`path`,{d:`M13 5h8`}],[`path`,{d:`M13 12h8`}],[`path`,{d:`M13 19h8`}],[`path`,{d:`m3 17 2 2 4-4`}],[`rect`,{x:`3`,y:`4`,width:`6`,height:`6`,rx:`1`}]],dW=[[`rect`,{width:`18`,height:`11`,x:`3`,y:`11`,rx:`2`,ry:`2`}],[`path`,{d:`M7 11V7a5 5 0 0 1 10 0v4`}]],fW=[[`path`,{d:`m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7`}],[`rect`,{x:`2`,y:`4`,width:`20`,height:`16`,rx:`2`}]],pW=[[`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`}],[`circle`,{cx:`12`,cy:`10`,r:`3`}]],mW=[[`path`,{d:`M4 5h16`}],[`path`,{d:`M4 12h16`}],[`path`,{d:`M4 19h16`}]],hW=[[`path`,{d:`M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719`}]],gW=[[`path`,{d:`M5 12h14`}]],_W=[[`path`,{d:`M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401`}]],vW=[[`path`,{d:`M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z`}],[`path`,{d:`M12 22V12`}],[`polyline`,{points:`3.29 7 12 12 20.71 7`}],[`path`,{d:`m7.5 4.27 9 5.15`}]],yW=[[`path`,{d:`M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z`}],[`circle`,{cx:`13.5`,cy:`6.5`,r:`.5`,fill:`currentColor`}],[`circle`,{cx:`17.5`,cy:`10.5`,r:`.5`,fill:`currentColor`}],[`circle`,{cx:`6.5`,cy:`12.5`,r:`.5`,fill:`currentColor`}],[`circle`,{cx:`8.5`,cy:`7.5`,r:`.5`,fill:`currentColor`}]],bW=[[`path`,{d:`M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384`}]],xW=[[`path`,{d:`M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z`}]],SW=[[`path`,{d:`M5 12h14`}],[`path`,{d:`M12 5v14`}]],CW=[[`path`,{d:`M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z`}],[`path`,{d:`M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z`}]],wW=[[`path`,{d:`M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5`}],[`path`,{d:`M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09`}],[`path`,{d:`M9 12a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.4 22.4 0 0 1-4 2z`}],[`path`,{d:`M9 12H4s.55-3.03 2-4c1.62-1.08 5 .05 5 .05`}]],TW=[[`path`,{d:`m21 21-4.34-4.34`}],[`circle`,{cx:`11`,cy:`11`,r:`8`}]],EW=[[`path`,{d:`M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915`}],[`circle`,{cx:`12`,cy:`12`,r:`3`}]],DW=[[`circle`,{cx:`18`,cy:`5`,r:`3`}],[`circle`,{cx:`6`,cy:`12`,r:`3`}],[`circle`,{cx:`18`,cy:`19`,r:`3`}],[`line`,{x1:`8.59`,x2:`15.42`,y1:`13.51`,y2:`17.49`}],[`line`,{x1:`15.41`,x2:`8.59`,y1:`6.51`,y2:`10.49`}]],OW=[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`}]],kW=[[`path`,{d:`m2.05 2.05 1.099-.028a1 1 0 0 1 1.008.815l2.69 14.347A1 1 0 0 0 7.83 18H18`}],[`path`,{d:`M4.563 5h16.435a1 1 0 0 1 .981 1.204l-1.026 6.226A2 2 0 0 1 18.962 14H6.25`}],[`circle`,{cx:`18`,cy:`20`,r:`2`}],[`circle`,{cx:`8`,cy:`20`,r:`2`}]],AW=[[`path`,{d:`M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z`}],[`path`,{d:`M20 2v4`}],[`path`,{d:`M22 4h-4`}],[`circle`,{cx:`4`,cy:`20`,r:`2`}]],jW=[[`path`,{d:`M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7`}],[`path`,{d:`M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z`}]],MW=[[`path`,{d:`M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z`}]],NW=[[`circle`,{cx:`12`,cy:`12`,r:`4`}],[`path`,{d:`M12 2v2`}],[`path`,{d:`M12 20v2`}],[`path`,{d:`m4.93 4.93 1.41 1.41`}],[`path`,{d:`m17.66 17.66 1.41 1.41`}],[`path`,{d:`M2 12h2`}],[`path`,{d:`M20 12h2`}],[`path`,{d:`m6.34 17.66-1.41 1.41`}],[`path`,{d:`m19.07 4.93-1.41 1.41`}]],PW=[[`path`,{d:`M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z`}],[`circle`,{cx:`7.5`,cy:`7.5`,r:`.5`,fill:`currentColor`}]],FW=[[`circle`,{cx:`12`,cy:`12`,r:`10`}],[`circle`,{cx:`12`,cy:`12`,r:`6`}],[`circle`,{cx:`12`,cy:`12`,r:`2`}]],IW=[[`path`,{d:`M10 11v6`}],[`path`,{d:`M14 11v6`}],[`path`,{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6`}],[`path`,{d:`M3 6h18`}],[`path`,{d:`M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`}]],LW=[[`path`,{d:`M16 17h6v-6`}],[`path`,{d:`m22 17-8.5-8.5-5 5L2 7`}]],RW=[[`path`,{d:`M16 7h6v6`}],[`path`,{d:`m22 7-8.5 8.5-5-5L2 17`}]],zW=[[`path`,{d:`M12 3v12`}],[`path`,{d:`m17 8-5-5-5 5`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`}]],BW=[[`path`,{d:`M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2`}],[`circle`,{cx:`12`,cy:`7`,r:`4`}]],VW=[[`path`,{d:`M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2`}],[`path`,{d:`M16 3.128a4 4 0 0 1 0 7.744`}],[`path`,{d:`M22 21v-2a4 4 0 0 0-3-3.87`}],[`circle`,{cx:`9`,cy:`7`,r:`4`}]],HW=[[`path`,{d:`m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5`}],[`rect`,{x:`2`,y:`6`,width:`14`,height:`12`,rx:`2`}]],UW=[[`path`,{d:`M12 20h.01`}],[`path`,{d:`M2 8.82a15 15 0 0 1 20 0`}],[`path`,{d:`M5 12.859a10 10 0 0 1 14 0`}],[`path`,{d:`M8.5 16.429a5 5 0 0 1 7 0`}]],WW=[[`path`,{d:`M18 6 6 18`}],[`path`,{d:`m6 6 12 12`}]],GW=[[`path`,{d:`M15.914 4a1.5 1.5 0 00-2.474-1.561l-9 9A1.5 1.5 0 005.5 14h4.002a.5.5 0 01.471.666L8.086 20a1.5 1.5 0 002.475 1.56l9-9A1.5 1.5 0 0018.5 10h-3.997a.5.5 0 01-.472-.667z`}]],KW={zap:GW,bolt:GW,lightning:GW,calendar:NU,date:NU,event:NU,cart:kW,"shopping-cart":kW,bag:kW,user:BW,profile:BW,users:VW,team:VW,mail:fW,email:fW,message:hW,chat:hW,star:MW,rating:MW,heart:tW,like:tW,"trending-up":RW,trend:RW,"trending-down":LW,check:RU,done:RU,"circle-check":BU,"chevron-right":zU,arrow:OU,"arrow-right":OU,play:xW,video:HW,chart:FU,bar:FU,"bar-chart":FU,line:IU,"line-chart":IU,pie:LU,"pie-chart":LU,donut:LU,sparkles:AW,feature:AW,quote:CW,tasks:uW,task:uW,list:uW,pin:pW,location:pW,map:pW,package:vW,product:vW,box:MU,card:GU,pricing:GU,grid:cW,settings:EW,search:TW,menu:mW,close:WW,x:WW,plus:SW,minus:gW,home:nW,bell:AU,notification:AU,bookmark:jU,save:jU,camera:PU,cloud:HU,download:qU,upload:zW,edit:jW,pen:jW,eye:JU,view:JU,file:YU,folder:XU,globe:$U,world:$U,image:rW,photo:rW,inbox:iW,info:aW,key:oW,link:lW,lock:dW,moon:_W,sun:NW,phone:bW,call:bW,share:DW,shield:OW,tag:PW,trash:IW,delete:IW,wifi:UW,clock:VU,time:VU,filter:ZU,layers:sW,palette:yW,rocket:wW,target:FW,award:kU,code:UU,database:KU,db:KU,cpu:WU,game:QU,headphones:eW,audio:eW},qW={sm:18,md:24,lg:32,xl:40},JW=new Set([`regular`,`bold`,`fat`,`full`,`fill`,`filled`,`solid`,`thin`,`outline`,`light`]),YW=new Set([`sm`,`md`,`lg`,`xl`,`small`,`medium`,`large`,`compact`,`tall`]);function XW(e){return e.trim().toLowerCase().replace(/\s+/g,`-`).replace(/_/g,`-`)}function ZW(e){return e.some(e=>e===`xl`)?`xl`:e.some(e=>e===`lg`||e===`large`||e===`tall`)?`lg`:e.some(e=>e===`sm`||e===`small`||e===`compact`)?`sm`:(e.some(e=>e===`md`||e===`medium`),`md`)}function QW(e){return!!KW[XW(e)]}function $W(e){return KW[XW(e)]??null}function eG(){let e=new Set,t=[];for(let[n,r]of Object.entries(KW))e.has(r)||(e.add(r),t.push(n));return t.sort()}function tG(e){return e.replace(/&/g,`&`).replace(/"/g,`"`).replace(/</g,`<`)}function nG(e,t){let n=t?.trim().toLowerCase();return n===`fill`||n===`filled`||n===`solid`?`fill`:n===`thin`||n===`outline`||n===`light`?`thin`:n===`bold`||n===`fat`||n===`full`?`bold`:e.some(e=>[`fill`,`filled`,`solid`].includes(e))?`fill`:e.some(e=>[`thin`,`outline`,`light`].includes(e))?`thin`:e.some(e=>[`bold`,`fat`,`full`].includes(e))?`bold`:`regular`}function rG(e){return e===`fill`?{fill:`currentColor`,stroke:`none`,strokeWidth:`0`,classExtra:`is-fill`}:e===`thin`?{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,classExtra:`is-thin`}:e===`bold`?{fill:`none`,stroke:`currentColor`,strokeWidth:`2.5`,classExtra:`is-bold`}:{fill:`none`,stroke:`currentColor`,strokeWidth:`2`,classExtra:`is-regular`}}function iG(e,t){return e.map(([e,n])=>{let r={};for(let[e,t]of Object.entries(n))t!==void 0&&(r[e]=t);return t===`fill`&&(r.fill=`currentColor`,r.stroke=`none`),`<${e} ${Object.entries(r).map(([e,t])=>`${e}="${tG(String(t))}"`).join(` `)}/>`}).join(``)}function aG(e,t=`md`,n=`nexa-icon`,r=`regular`){let i=$W(e);if(!i)return``;let a=typeof t==`number`?t:qW[t]??qW.md,o=rG(r),s=`${n} ${o.classExtra}`.trim();return`<svg xmlns="http://www.w3.org/2000/svg" width="${a}" height="${a}" viewBox="0 0 24 24" fill="${o.fill}" stroke="${o.stroke}" stroke-width="${o.strokeWidth}" stroke-linecap="round" stroke-linejoin="round" class="${s}" aria-hidden="true">${iG(i,r)}</svg>`}function oG(e,t=24,n=`nexa-icon`,r=`regular`){let i=e.trim();return i?/^https?:\/\//.test(i)||i.startsWith(`/`)?`<img src="${tG(i)}" alt="" loading="lazy" class="${n} is-img">`:QW(i)?aG(i,t,n,r):`<span class="${n} is-emoji" aria-hidden="true">${i}</span>`:``}function sG(e){e.register(`ico`,({modifiers:e,element:t,label:n})=>{let r=(n??``).trim().split(/\s+/).map(XW).filter(Boolean),i=[...e.map(XW),...r],a=ZW(i),o=nG(i,t.getAttribute(`weight`));return aG(i.find(e=>!YW.has(e)&&!JW.has(e))??t.getAttribute(`name`)??t.getAttribute(`icon`)??`zap`,a,`nexa-icon`,o)})}HH();var cG=[`cover`,`product`,`video`,`event`,`promo`,`pricing`,`analytics`,`quote`,`tasks`,`profile`,`feature`,`media`,`icon`,`metric`];function lG(e,t){return e.includes(t)}function uG(e){for(let t of cG)if(lG(e,t))return t;return lG(e,`horizontal`),`default`}function dG(e){return e.getAttribute(`image`)??e.getAttribute(`img`)??e.getAttribute(`cover`)??``}function fG(e){let t=(e.getAttribute(`art`)??``).toLowerCase();if(t===`hero`||t===`sculpture`||t===`vision`)return!0;let n=dG(e);return n?xU(n):!1}function pG(e,t=``){let n=dG(e);if(!n)return t;if(xU(n))return``;let r=bU(n);return r.startsWith(`/`)||/^https?:\/\//.test(r)?r:`/cards/${r}`}function mG(e,t=bU(`mark`)){let n=e.getAttribute(`avatar`)??dG(e);if(!n||xU(n))return t;let r=bU(n);return r.startsWith(`/`)||/^https?:\/\//.test(r)?r:`/cards/${r}`}function hG(e,t,n=``,r=!1){if(fG(e)||r&&!dG(e))return DU(t);let i=pG(e,n);return i?`<img src="${i}" alt="" loading="lazy">`:r||t===`cover`?DU(t):``}function gG(e,t=!1){return t?`<button class="nexa-cta is-ghost" type="button">${e}</button>`:`<button class="nexa-cta nexa-card-cta" type="button"><span>${e}</span><i class="nexa-cta-arrow" aria-hidden="true"></i></button>`}function _G(e){return`<a class="nexa-card-link" href="#">${e}</a>`}function vG(e,t=``){return`<span class="nexa-card-badge${t?` ${t}`:``}">${e}</span>`}function yG(e){let t=IH(e,/,/).map(e=>Number(e.trim())).filter(e=>Number.isFinite(e));if(t.length<2)return``;let n=Math.max(...t),r=Math.min(...t),i=n-r||1;return`<svg class="nexa-card-spark" viewBox="0 0 220 52" preserveAspectRatio="none" aria-hidden="true"><polyline fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" points="${t.map((e,n)=>{let a=n/(t.length-1)*220,o=52-(e-r)/i*42-5;return`${a.toFixed(1)},${o.toFixed(1)}`}).join(` `)}"/></svg>`}function bG(e){let t=Math.min(5,Math.max(0,Math.round(Number(e)||0)));return`${`★`.repeat(t)}${`☆`.repeat(5-t)}`}function xG(e){return RH(e.getAttribute(`tasks`)??e.getAttribute(`items`)).map(e=>{let t=e.head,n=(e.body||`medium`).toLowerCase();return{checked:t.startsWith(`[x]`)||t.startsWith(`✓`),label:t.replace(/^\[x\]\s*|^\[ \]\s*|^✓\s*/,``).trim(),priority:n}})}function SG(e){return IH(e.getAttribute(`features`)??e.getAttribute(`items`))}function CG(e){return RH(e.getAttribute(`stats`)).map(e=>({label:e.head,value:e.body}))}function wG(e,t,n){let{badge:r,title:i,text:a,cta:o,tag:s}=n;switch(t){case`cover`:return TG(e,r,i,a,o,s);case`product`:return EG(e,r,i,a,o,s);case`video`:return DG(e,r,i,a,o,s);case`event`:return OG(e,i,a,o,s);case`promo`:return kG(e,r,i,a,o,s);case`pricing`:return AG(e,r,i,a,o,s);case`analytics`:return jG(e,i,a,s);case`quote`:return MG(e,i,a,s);case`tasks`:return NG(e,i,o,s);case`profile`:return PG(e,i,a,o,s);case`feature`:return FG(e,r,i,a,o,s);case`media`:return IG(e,r,i,a,o,s);case`icon`:return LG(e,r,i,a,o,s);case`metric`:return RG(e,i,a,o,s);default:return zG(e,r,i,a,o,s)}}function TG(e,t,n,r,i,a){let o=e.getAttribute(`badge`)??e.getAttribute(`eyebrow`)??t??`Featured`,s=e.getAttribute(`category`)??``,c=e.getAttribute(`price`)??``;return`<div class="nexa-card-cover">${hG(e,`cover`,``,!0)}<div class="nexa-card-cover-overlay">${o?vG(o,`is-light`):``}${s?`<small class="nexa-card-category">${s}</small>`:``}<h3>${n}</h3>${r?`<p>${r}</p>`:``}<div class="nexa-card-cover-foot">${c?`<b>${c}</b>`:``}${i?gG(i):``}</div></div></div>${a}`}function EG(e,t,n,r,i,a){let o=e.getAttribute(`badge`)??e.getAttribute(`eyebrow`)??t,s=e.getAttribute(`rating`)??`4.8`,c=e.getAttribute(`reviews`)??`128`,l=e.getAttribute(`price`)??`$199`,u=e.getAttribute(`compare`)??e.getAttribute(`was`)??``,d=i??``;return`<div class="nexa-card-product"><div class="nexa-card-media">${pG(e)?`<img class="nexa-card-product-photo" src="${pG(e)}" alt="" loading="lazy">`:EU()}</div><div class="nexa-card-body">${o?vG(o,`is-new`):``}<h3>${n}</h3><div class="nexa-card-rating"><span class="nexa-card-stars" aria-hidden="true">${bG(s)}</span><span>${s}</span><em>(${c})</em></div><p>${r}</p><div class="nexa-card-product-foot"><div class="nexa-card-prices"><b>${l}</b>${u?`<s>${u}</s>`:``}</div>${d?gG(d):``}</div></div></div>${a}`}function DG(e,t,n,r,i,a){let o=e.getAttribute(`category`)??t,s=e.getAttribute(`duration`)??`12:40`,c=e.getAttribute(`views`)??`2.4k views`;return`<div class="nexa-card-video"><div class="nexa-card-video-media">${hG(e,`cover`,``,!0)}<button class="nexa-card-play" type="button" aria-label="Play">▶</button></div><div class="nexa-card-body"><small>${o}</small><h3>${n}</h3><p>${r}</p><div class="nexa-card-meta"><span>${s}</span><span>${c}</span></div>${i?`<footer class="nexa-card-foot">${_G(i)}</footer>`:``}</div></div>${a}`}function OG(e,t,n,r,i){let a=e.getAttribute(`icon`)??`calendar`,o=e.getAttribute(`date`)??e.getAttribute(`when`)??`Oct 12, 2025`,s=e.getAttribute(`location`)??e.getAttribute(`where`)??`San Francisco`;return`<div class="nexa-card-event"><div class="nexa-card-event-icon" aria-hidden="true">${oG(a,22,`nexa-icon`)}</div><div><h3>${t}</h3><p>${n}</p><ul class="nexa-card-event-meta"><li>${o}</li><li>${s}</li></ul>${r?_G(r):``}</div></div>${i}`}function kG(e,t,n,r,i,a){let o=SG(e);return`<div class="nexa-card-promo"><div class="nexa-card-promo-visual">${hG(e,`inline`,``,!0)}</div><div class="nexa-card-body">${vG(t)}<h3>${n}</h3><p>${r}</p>${o.length?`<ul class="nexa-card-checklist">${o.map(e=>`<li>${e}</li>`).join(``)}</ul>`:``}${i?`<footer class="nexa-card-foot">${gG(i)}</footer>`:``}</div></div>${a}`}function AG(e,t,n,r,i,a){let o=e.getAttribute(`badge`)??e.getAttribute(`eyebrow`)??t,s=e.getAttribute(`price`)??`$29`,c=e.getAttribute(`period`)??`/month`,l=e.getAttribute(`hint`)??e.getAttribute(`subtext`)??``,u=SG(e),d=e.getAttribute(`text`)??e.getAttribute(`desc`)??r;return`<div class="nexa-card-pricing">${o?vG(o):``}<h3>${n||s}</h3><div class="nexa-card-price-line"><b>${s}</b><span>${c}</span></div>${d?`<p>${d}</p>`:``}${u.length?`<ul class="nexa-card-checklist">${u.map(e=>`<li>${e}</li>`).join(``)}</ul>`:``}${i?`<footer class="nexa-card-foot">${gG(i)}${l?`<em>${l}</em>`:``}</footer>`:``}</div>${a}`}function jG(e,t,n,r){let i=e.getAttribute(`value`)??e.getAttribute(`metric`)??`$24,780`,a=e.getAttribute(`label`)??t,o=e.getAttribute(`trend`)??`+12.5%`,s=e.getAttribute(`data`)??e.getAttribute(`chart`)??`42,58,54,71,65,88,96`,c=!o.trim().startsWith(`-`);return`<div class="nexa-card-analytics"><div class="nexa-card-analytics-head"><span>${a}</span>${o?`<b class="nexa-card-trend${c?` is-up`:` is-down`}">${c?`↑`:`↓`} ${o.replace(/^[-+]/,``)}</b>`:``}</div><div class="nexa-card-analytics-value">${i}</div>${n?`<p>${n}</p>`:``}${yG(s)}</div>${r}`}function MG(e,t,n,r){let i=e.getAttribute(`quote`)??n,a=e.getAttribute(`name`)??t,o=e.getAttribute(`role`)??e.getAttribute(`subtitle`)??``,s=mG(e),c=Number(e.getAttribute(`dots`)??`3`),l=Number(e.getAttribute(`active`)??`1`),u=s?`<img class="nexa-card-avatar" src="${s}" alt="" loading="lazy">`:`<span class="nexa-card-avatar is-initials" aria-hidden="true">${BG(a)}</span>`,d=c>1?`<div class="nexa-card-dots" aria-hidden="true">${Array.from({length:c},(e,t)=>`<i class="${t+1===l?`is-active`:``}"></i>`).join(``)}</div>`:``;return`<div class="nexa-card-quote"><div class="nexa-card-quote-mark" aria-hidden="true">"</div><blockquote>${i}</blockquote><div class="nexa-card-quote-user">${u}<div><strong>${a}</strong>${o?`<span>${o}</span>`:``}</div></div>${d}</div>${r}`}function NG(e,t,n,r){let i=xG(e);return`<div class="nexa-card-tasks" data-nexa-tasks><header><h3>${t}</h3><span class="nexa-card-count">${e.getAttribute(`count`)??String(i.length)}</span></header><ul>${i.map(e=>`<li class="is-${e.priority}${e.checked?` is-done`:``}"><label><input type="checkbox"${e.checked?` checked`:``}><span>${e.label}</span></label><em>${e.priority}</em></li>`).join(``)}</ul>${n?_G(n):``}</div>${r}`}function PG(e,t,n,r,i){let a=e.getAttribute(`name`)??t,o=e.getAttribute(`role`)??e.getAttribute(`subtitle`)??``,s=e.getAttribute(`location`)??e.getAttribute(`where`)??``,c=CG(e),l=mG(e),u=e.getAttribute(`cta2`);return`<div class="nexa-card-profile-stack">${l?`<img class="nexa-card-avatar" src="${l}" alt="" loading="lazy">`:`<span class="nexa-card-avatar is-initials" aria-hidden="true">${BG(a)}</span>`}<strong>${a}</strong>${o?`<span class="nexa-card-role">${o}</span>`:``}${s?`<span class="nexa-card-location">${s}</span>`:``}${c.length?`<div class="nexa-card-stats">${c.map(e=>`<div><b>${e.value}</b><span>${e.label}</span></div>`).join(``)}</div>`:``}${n?`<p>${n}</p>`:``}<div class="nexa-card-profile-actions">${u?`<button class="nexa-card-icon-btn" type="button" aria-label="${u}">${oG(`mail`,18,`nexa-icon`)}</button>`:``}${r?gG(r):``}</div></div>${i}`}function FG(e,t,n,r,i,a){let o=e.getAttribute(`icon`)??`zap`,s=e.getAttribute(`badge`)??e.getAttribute(`eyebrow`)??t,c=i??`Learn more →`;return`<div class="nexa-card-feature"><div class="nexa-card-icon">${oG(o,26,`nexa-icon`)}</div>${s?vG(s):``}<h3>${n}</h3><p>${r}</p>${c?_G(c):``}</div>${a}`}function IG(e,t,n,r,i,a){let o=``;if(fG(e)||!dG(e))o=`<div class="nexa-card-media is-hero">${hG(e,`cover`,``,!0)}</div>`;else{let t=pG(e);o=t?`<div class="nexa-card-media"><img src="${t}" alt="" loading="lazy"></div>`:`<div class="nexa-card-media is-placeholder" aria-hidden="true"></div>`}return`${o}<div class="nexa-card-body"><small>${t}</small><h3>${n}</h3><p>${r}</p>${i?`<footer class="nexa-card-foot">${gG(i)}</footer>`:``}</div>${a}`}function LG(e,t,n,r,i,a){let o=(e.getAttribute(`icon`)??e.getAttribute(`icons`)??`zap`).split(`,`).map(e=>e.trim()).filter(Boolean),s=e=>oG(e,22,`nexa-icon`);return`${o.length>1?`<div class="nexa-card-icons">${o.map(e=>`<span class="nexa-card-icon-item">${s(e)}</span>`).join(``)}</div>`:`<div class="nexa-card-icon">${s(o[0]??`zap`)}</div>`}<div class="nexa-card-body"><small>${t}</small><h3>${n}</h3><p>${r}</p>${i?`<footer class="nexa-card-foot">${gG(i)}</footer>`:``}</div>${a}`}function RG(e,t,n,r,i){return`<div class="nexa-card-metric"><b>${e.getAttribute(`value`)??e.getAttribute(`metric`)??`99+`}</b><span>${e.getAttribute(`label`)??t}</span></div><p>${n}</p>${r?`<footer class="nexa-card-foot">${gG(r)}</footer>`:``}${i}`}function zG(e,t,n,r,i,a){let o=pG(e);return`${o?`<div class="nexa-card-media"><img src="${o}" alt="" loading="lazy"></div>`:``}<small>${t}</small><h3>${n}</h3><p>${r}</p>${i?`<footer class="nexa-card-foot">${gG(i)}</footer>`:``}${a}`}function BG(e){return e.split(/\s+/).filter(Boolean).slice(0,2).map(e=>e[0]?.toUpperCase()??``).join(``)||`N`}var VG=[`soft`,`fade`,`slide`,`lift`,`tilt`,`flip`,`magnetic`,`float`,`glow`,`shine`,`aurora`,`bounce`,`zoom`,`pulse`,`reveal`],HG=[`plain`,`bordered`,`elevated`,`glass`,`horizontal`,`square`,`interactive`],UG={soft:{enter:`soft`,hover:`soft`},fade:{enter:`fade`,hover:`soft`},slide:{enter:`slide`,hover:`lift`},lift:{enter:`slide`,hover:`lift`},tilt:{enter:`fade`,hover:`tilt`,tilt:!0},flip:{enter:`fade`,hover:`flip`},magnetic:{enter:`fade`,hover:`magnetic`,magnetic:!0},float:{enter:`float`,hover:`none`},glow:{enter:`glow`,hover:`glow`},shine:{enter:`shine`,hover:`soft`},aurora:{enter:`aurora`,hover:`none`},bounce:{enter:`bounce`,hover:`soft`},zoom:{enter:`zoom`,hover:`soft`},pulse:{enter:`pulse`,hover:`none`},reveal:{enter:`reveal`,hover:`soft`,reveal:!0}};function WG(e,t){return e.includes(t)}function GG(e){return VG.find(t=>WG(e,t))??`soft`}function KG(e,t){t.some(e=>HG.includes(e))||e.classList.add(`nexa-elevated`);let n=uG(t);if(n!==`default`&&e.classList.add(`is-${n}`),WG(t,`static`))return;let r=GG(t),i=UG[r];e.classList.add(`nexa-anim-${i.enter}`),e.classList.add(`nexa-model-${r}`),e.setAttribute(`data-nexa-hover`,i.hover),i.tilt&&e.setAttribute(`data-nexa-tilt`,``),i.magnetic&&e.setAttribute(`data-nexa-magnetic`,``),i.reveal&&e.setAttribute(`data-nexa-reveal`,``);let a=e.getAttribute(`delay`);a&&e.style.setProperty(`--nexa-anim-delay`,`${a}ms`)}function qG(e,t,n=[]){if(t.trim())return t;let r=uG(n);return wG(e,r,{badge:e.getAttribute(`badge`)??e.getAttribute(`eyebrow`)??``,title:e.getAttribute(`title`)??(r===`default`?`Beautiful by default`:``),text:(e.getAttribute(`text`)??e.getAttribute(`desc`)??``)||(r===`default`?`Clean structure, refined spacing, and motion built in — one command.`:``),cta:e.getAttribute(`cta`)??void 0,tag:e.getAttribute(`data-model-label`)?`<span class="nexa-card-model-tag">${e.getAttribute(`data-model-label`)}</span>`:``})}HH();var JG=[`primary`,`secondary`,`outline`,`ghost`,`danger`];function YG(e){return e===`secondary`?`nexa-cta is-secondary`:e===`outline`?`nexa-cta is-outline`:e===`ghost`?`nexa-cta is-ghost`:e===`danger`?`nexa-cta is-danger`:`nexa-cta`}function XG(e){e.register(`button-group`,({element:e,modifiers:t})=>{let n=IH(e.getAttribute(`buttons`)??e.getAttribute(`labels`)??`Save,Cancel`),r=IH(e.getAttribute(`variants`)??``,/,/),i=$(t,`vertical`);return i&&e.classList.add(`is-vertical`),`<div class="nexa-btn-group${i?` is-vertical`:``}">${n.map((e,n)=>{let i=r[n]??t.find(e=>JG.includes(e))??(n===0?`primary`:`ghost`);return`<button type="button" class="${YG(JG.includes(i)?i:`ghost`)}">${e}</button>`}).join(``)}</div>`}),e.register(`list-group`,({element:e,modifiers:t})=>{let n=$(t,`flush`),r=RH(e.getAttribute(`items`)??`Home|active;Profile;Settings|badge 3;Messages|badge 12`);return n&&e.classList.add(`is-flush`),`<ul class="nexa-list-group">${r.map(e=>{let t=e.body.toLowerCase().includes(`active`),n=e.body.match(/badge\s+(\S+)/i)?.[1];return`<li class="nexa-list-group-item${t?` is-active`:``}"><span>${e.head}</span>${n?`<i>${n}</i>`:``}</li>`}).join(``)}</ul>`}),e.register(`navbar`,({element:e,modifiers:t})=>{e.setAttribute(`data-nexa-navbar`,``),$(t,`fixed`)&&e.classList.add(`is-fixed`),$(t,`dark`)&&e.classList.add(`is-dark`),$(t,`light`)&&e.classList.add(`is-light`);let n=e.getAttribute(`logo`)??`Nexa`,r=e.getAttribute(`logo-image`),i=e.getAttribute(`logo-href`)??`#`,a=e.getAttribute(`cta`)??`Get Started`,o=e.getAttribute(`cta-href`)??`#`,s=IH(e.getAttribute(`links`)??`Home,Features,Pricing,About`).map(e=>{let[t,n]=e.split(`|`).map(e=>e.trim());return`<a href="${n||`#`}">${t}</a>`}).join(``);return`<a class="nexa-navbar-brand nexa-logo" href="${i}">${r?`<img src="${r}" alt="">`:``}<span>${n}</span></a><button type="button" class="nexa-navbar-toggle" data-nav-toggle aria-label="Menu"><i></i><i></i><i></i></button><div class="nexa-navbar-menu" data-nav-menu><div class="nexa-navbar-links" role="navigation">${s}</div><a class="nexa-cta" href="${o}">${a}</a></div>`}),e.register(`input-group`,({element:e,modifiers:t})=>{let n=t.find(e=>[`text`,`email`,`password`,`search`,`tel`,`url`,`number`].includes(e))??`text`,r=e.getAttribute(`label`)??`Field`,i=e.getAttribute(`prefix`)??e.getAttribute(`prepend`)??``,a=e.getAttribute(`suffix`)??e.getAttribute(`append`)??``,o=e.getAttribute(`placeholder`)??``,s=e.getAttribute(`value`)??``;return`<label class="nexa-input-group"><span>${r}</span><div class="nexa-input-group-row">${i?`<i class="nexa-input-addon">${i}</i>`:``}<input type="${n}" placeholder="${o}" value="${s}">${a?`<i class="nexa-input-addon">${a}</i>`:``}</div></label>`}),e.register(`close`,({element:e})=>`<button type="button" class="nexa-close" data-nexa-close aria-label="${e.getAttribute(`label`)??`Close`}">×</button>`),e.register(`switch`,({element:e,modifiers:t})=>{let n=e.getAttribute(`label`)??`Toggle`,r=$(t,`checked`)||e.hasAttribute(`checked`);return`<label class="nexa-switch"><input type="checkbox" id="${`nexa-sw-${Math.random().toString(36).slice(2,8)}`}"${r?` checked`:``}${$(t,`disabled`)?` disabled`:``}><i aria-hidden="true"></i><span>${n}</span></label>`}),e.register(`scrollspy`,({element:e})=>(e.setAttribute(`data-nexa-scrollspy`,``),`<div class="nexa-scrollspy" role="navigation" aria-label="Scrollspy">${RH(e.getAttribute(`items`)??`#one|Section 1;#two|Section 2;#three|Section 3`).map((e,t)=>`<a href="${e.head.startsWith(`#`)?e.head:`#${e.head}`}" data-spy-link class="${t===0?`is-active`:``}">${e.body||e.head}</a>`).join(``)}</div>`)),e.register(`skeleton`,({modifiers:e})=>{let t=Number(e.find(e=>/^lines-\d+$/.test(e))?.split(`-`)[1]??`0`);return $(e,`card`)?`<div class="nexa-skeleton is-card"><i></i><b></b><b class="is-short"></b></div>`:$(e,`avatar`)?`<div class="nexa-skeleton is-avatar"></div>`:t>0?`<div class="nexa-skeleton is-lines">${Array.from({length:t},(e,n)=>`<i class="${n===t-1?`is-short`:``}"></i>`).join(``)}</div>`:`<div class="nexa-skeleton"><i></i></div>`}),e.register(`figure`,({element:e,modifiers:t})=>{let[n,r]=(t.find(e=>/^ratio-/.test(e))?.replace(`ratio-`,``)??e.getAttribute(`ratio`)??`16x9`).split(`x`).map(Number),i=e.getAttribute(`image`)??e.getAttribute(`src`)??``,a=e.getAttribute(`caption`)??e.getAttribute(`text`)??``,o=e.getAttribute(`alt`)??``;return e.style.setProperty(`--nexa-ratio`,`${n||16}/${r||9}`),`${i?`<div class="nexa-figure-media"><img src="${i}" alt="${o}" loading="lazy"></div>`:`<div class="nexa-figure-media is-empty"></div>`}${a?`<figcaption>${a}</figcaption>`:``}`}),e.register(`select`,({element:e,modifiers:t})=>{let n=e.getAttribute(`label`)??`Select`,r=IH(e.getAttribute(`options`)??e.getAttribute(`items`)??`Option 1,Option 2,Option 3`),i=$(t,`float`),a=`${$(t,`required`)?`required`:``} ${$(t,`disabled`)?`disabled`:``}`.trim(),o=e.getAttribute(`name`),s=o?` name="${o}"`:``,c=r.map((e,t)=>`<option value="${e}"${t===0?` selected`:``}>${e}</option>`).join(``);return i?`<label class="nexa-field-float"><select${s} ${a}>${c}</select><span>${n}</span></label>`:`<label class="nexa-field-wrap"><span>${n}</span><select${s} ${a}>${c}</select></label>`}),e.register(`textarea`,({element:e,modifiers:t})=>{let n=e.getAttribute(`label`)??`Message`,r=e.getAttribute(`rows`)??`4`,i=$(t,`float`),a=e.getAttribute(`placeholder`)??(i?` `:``),o=e.getAttribute(`value`)??e.textContent?.trim()??``,s=`${$(t,`required`)?`required`:``} ${$(t,`disabled`)?`disabled`:``}`.trim(),c=e.getAttribute(`name`),l=c?` name="${c}"`:``;return i?`<label class="nexa-field-float"><textarea${l} rows="${r}" placeholder="${a}" ${s}>${o}</textarea><span>${n}</span></label>`:`<label class="nexa-field-wrap"><span>${n}</span><textarea${l} rows="${r}" placeholder="${a}" ${s}>${o}</textarea></label>`})}HH();var ZG=[`يناير`,`فبراير`,`مارس`,`أبريل`,`مايو`,`يونيو`,`يوليو`,`أغسطس`,`سبتمبر`,`أكتوبر`,`نوفمبر`,`ديسمبر`],QG=[`أحد`,`إثن`,`ثلا`,`أرب`,`خمي`,`جمع`,`سبت`];function $G(e){return String(e).padStart(2,`0`)}function eK(e){if(!e)return null;let t=e.trim().match(/^(\d{4})-(\d{2})-(\d{2})$/);return t?{y:Number(t[1]),m:Number(t[2]),d:Number(t[3])}:null}function tK(e,t,n){return`${n} ${ZG[t-1]} ${e}`}function nK(e,t,n){let r=new Date(e,t-1,1).getDay(),i=new Date(e,t,0).getDate(),a=new Date,o=[];for(let e=0;e<r;e++)o.push(`<span class="nexa-cal-empty"></span>`);for(let r=1;r<=i;r++){let i=n&&n.y===e&&n.m===t&&n.d===r,s=a.getFullYear()===e&&a.getMonth()+1===t&&a.getDate()===r;o.push(`<button type="button" class="nexa-cal-day${i?` is-selected`:``}${s?` is-today`:``}" data-day="${r}">${r}</button>`)}return o.join(``)}function rK(e){e.register(`datepicker`,({element:e,modifiers:t})=>{e.setAttribute(`data-nexa-datepicker`,``);let n=e.getAttribute(`label`)??`التاريخ`,r=e.getAttribute(`placeholder`)??`اختر تاريخاً`,i=e.getAttribute(`value`)??``,a=eK(i),o=new Date,s=a?.y??o.getFullYear(),c=a?.m??o.getMonth()+1,l=a?tK(a.y,a.m,a.d):``,u=$(t,`required`)?` required`:``,d=$(t,`disabled`);return d&&e.classList.add(`is-disabled`),`<label class="nexa-picker-field"><span>${n}${u?`<b>*</b>`:``}</span><button type="button" class="nexa-picker-trigger" data-dp-toggle ${d?`disabled`:``} aria-haspopup="dialog" aria-expanded="false"><span data-dp-display class="${a?`has-value`:``}">${l||r}</span><i class="nexa-picker-ico" aria-hidden="true"></i></button><input type="hidden" data-dp-value value="${i}"${u}>
|
|
58
|
-
<div class="nexa-datepicker-panel" data-dp-panel hidden role="dialog" aria-label="${n}">
|
|
59
|
-
<div class="nexa-cal-head"><button type="button" data-dp-prev aria-label="السابق">‹</button><strong data-dp-title>${ZG[c-1]} ${s}</strong><button type="button" data-dp-next aria-label="التالي">›</button></div>
|
|
60
|
-
<div class="nexa-cal-weekdays">${QG.map(e=>`<span>${e}</span>`).join(``)}</div>
|
|
61
|
-
<div class="nexa-cal-grid" data-dp-grid data-year="${s}" data-month="${c}">${nK(s,c,a)}</div>
|
|
62
|
-
<div class="nexa-cal-foot"><button type="button" class="nexa-button nexa-ghost nexa-sm" data-dp-clear>مسح</button><button type="button" class="nexa-button nexa-primary nexa-sm nexa-pill" data-dp-today>اليوم</button></div>
|
|
63
|
-
</div></label>`}),e.register(`timepicker`,({element:e,modifiers:t})=>{e.setAttribute(`data-nexa-timepicker`,``);let n=e.getAttribute(`label`)??`الوقت`,r=e.getAttribute(`placeholder`)??`اختر وقتاً`,i=e.getAttribute(`value`)??``,a=Number(e.getAttribute(`step`)??`15`),o=[5,10,15,30].includes(a)?a:15,s=12,c=0,l=i.trim().match(/^(\d{1,2}):(\d{2})$/);l&&(s=Math.min(23,Number(l[1])),c=Math.min(59,Number(l[2])));let u=l?`${$G(s)}:${$G(c)}`:``,d=$(t,`required`)?` required`:``,f=$(t,`disabled`);f&&e.classList.add(`is-disabled`);let p=Array.from({length:24},(e,t)=>`<button type="button" class="nexa-tp-opt${t===s?` is-selected`:``}" data-tp-h="${t}">${$G(t)}</button>`).join(``),m=Array.from({length:Math.floor(60/o)},(e,t)=>{let n=t*o;return`<button type="button" class="nexa-tp-opt${n===c?` is-selected`:``}" data-tp-m="${n}">${$G(n)}</button>`}).join(``);return`<label class="nexa-picker-field"><span>${n}${d?`<b>*</b>`:``}</span><button type="button" class="nexa-picker-trigger" data-tp-toggle ${f?`disabled`:``} aria-haspopup="dialog" aria-expanded="false"><span data-tp-display class="${l?`has-value`:``}">${u||r}</span><i class="nexa-picker-ico is-clock" aria-hidden="true"></i></button><input type="hidden" data-tp-value value="${i}"${d}>
|
|
64
|
-
<div class="nexa-timepicker-panel" data-tp-panel hidden role="dialog" aria-label="${n}">
|
|
65
|
-
<div class="nexa-tp-cols"><div class="nexa-tp-col"><small>ساعة</small><div class="nexa-tp-list" data-tp-hours>${p}</div></div><div class="nexa-tp-col"><small>دقيقة</small><div class="nexa-tp-list" data-tp-mins>${m}</div></div></div>
|
|
66
|
-
<div class="nexa-cal-foot"><button type="button" class="nexa-button nexa-ghost nexa-sm" data-tp-clear>مسح</button><button type="button" class="nexa-button nexa-primary nexa-sm nexa-pill" data-tp-apply>تم</button></div>
|
|
67
|
-
</div></label>`}),e.register(`chip`,({element:e,modifiers:t,content:n,label:r})=>{let i=n||r||e.getAttribute(`text`)||`Chip`,a=$(t,`removable`)||$(t,`x`);return $(t,`active`)&&e.classList.add(`is-active`),$(t,`outline`)&&e.classList.add(`is-outline`),`<span class="nexa-chip-label">${i}</span>${a?`<button type="button" class="nexa-chip-x" data-chip-remove aria-label="إزالة">×</button>`:``}`}),e.register(`rating`,({element:e,modifiers:t})=>{e.setAttribute(`data-nexa-rating`,``);let n=Number(e.getAttribute(`max`)??`5`)||5,r=Number(e.getAttribute(`value`)??`0`)||0,i=$(t,`readonly`)||$(t,`static`);return i&&e.classList.add(`is-readonly`),`<div class="nexa-rating-row" role="slider" aria-valuemin="0" aria-valuemax="${n}" aria-valuenow="${r}">${Array.from({length:n},(e,t)=>{let n=t+1;return`<button type="button" class="nexa-star${n<=r?` is-on`:``}" data-star="${n}" aria-label="${n}" ${i?`tabindex="-1"`:``}>★</button>`}).join(``)}</div><input type="hidden" data-rating-value value="${r}">`}),e.register(`stepper`,({element:e})=>{e.setAttribute(`data-nexa-stepper`,``);let t=IH(e.getAttribute(`steps`)??e.getAttribute(`items`)??`الحساب,التفاصيل,الدفع,تأكيد`),n=Math.max(0,Number(e.getAttribute(`active`)??`1`)-1);return`<ol class="nexa-stepper-list">${t.map((e,t)=>`<li class="nexa-step ${t<n?`is-done`:t===n?`is-active`:``}" data-step="${t+1}"><i>${t<n?`✓`:t+1}</i><span>${e}</span></li>`).join(``)}</ol>`}),e.register(`fab`,({element:e,modifiers:t,content:n,label:r})=>{let i=n||r||e.getAttribute(`label`)||`+`,a=e.getAttribute(`href`);($(t,`extended`)||i.length>2)&&e.classList.add(`is-extended`),$(t,`bottom-start`)&&e.classList.add(`is-start`);let o=`nexa-fab-btn`;return a?`<a class="${o}" href="${a}"><span>${i}</span></a>`:`<button type="button" class="${o}"><span>${i}</span></button>`}),e.register(`chips`,({element:e})=>IH(e.getAttribute(`items`)??`تصميم,تطوير,تسويق`).map(e=>`<span class="nexa-chip is-inline"><span class="nexa-chip-label">${e}</span></span>`).join(``)),e.register(`autocomplete`,({element:e,modifiers:t})=>{e.setAttribute(`data-nexa-autocomplete`,``);let n=e.getAttribute(`label`)??`بحث`,r=e.getAttribute(`placeholder`)??`اكتب للبحث…`,i=e.getAttribute(`value`)??``,a=e.getAttribute(`empty`)??`لا نتائج`,o=IH(e.getAttribute(`items`)??e.getAttribute(`options`)??`Nexa,Bootstrap,Material,Tailwind,React,Vue`),s=$(t,`required`),c=$(t,`disabled`);c&&e.classList.add(`is-disabled`);let l=o.map((e,t)=>`<button type="button" class="nexa-ac-option" role="option" data-ac-opt="${t}" data-value="${e.replace(/"/g,`"`)}">${e}</button>`).join(``);return`<label class="nexa-picker-field nexa-ac-field"><span>${n}${s?`<b>*</b>`:``}</span><div class="nexa-ac-box"><input type="text" class="nexa-ac-input" data-ac-input value="${i.replace(/"/g,`"`)}" placeholder="${r}" autocomplete="off" role="combobox" aria-autocomplete="list" aria-expanded="false" ${c?`disabled`:``} ${s?`required`:``}><button type="button" class="nexa-ac-clear" data-ac-clear aria-label="مسح" hidden>×</button><i class="nexa-ac-caret" aria-hidden="true"></i></div><input type="hidden" data-ac-value value="${i.replace(/"/g,`"`)}"><div class="nexa-ac-menu" data-ac-menu hidden role="listbox"><div class="nexa-ac-list" data-ac-list>${l}</div><div class="nexa-ac-empty" data-ac-empty hidden>${a}</div></div></label>`})}HH();function iK(e){let t=[];for(let n of e){let e=n.split(/[/>]/).map(e=>e.trim()).filter(Boolean),r=t;for(let t of e){let e=r.find(e=>e.label===t);e||(e={label:t,children:[]},r.push(e)),r=e.children}}return t}function aK(e,t=0){return e.map(e=>{let n=e.children.length>0;return`<li class="nexa-tree-node" data-tree-node style="--depth:${t}">
|
|
68
|
-
<button type="button" class="nexa-tree-row${n?``:` is-leaf`}" data-tree-toggle aria-expanded="${n?`true`:`false`}">
|
|
69
|
-
${n?`<i class="nexa-tree-caret" aria-hidden="true"></i>`:`<i class="nexa-tree-dot" aria-hidden="true"></i>`}
|
|
70
|
-
<span>${e.label}</span>
|
|
71
|
-
</button>
|
|
72
|
-
${n?`<ul class="nexa-tree-children" data-tree-children>${aK(e.children,t+1)}</ul>`:``}
|
|
73
|
-
</li>`}).join(``)}function oK(e){e.register(`tree`,({element:e})=>(e.setAttribute(`data-nexa-tree`,``),`<ul class="nexa-tree" role="tree">${aK(iK(IH(e.getAttribute(`items`)??`Apps/Dashboard,Apps/Settings,Docs/API,Docs/Guides/Start,Docs/Guides/Theme`)))}</ul>`)),e.register(`timeline`,({element:e,modifiers:t})=>{let n=IH(e.getAttribute(`items`)??e.getAttribute(`steps`)??`إطلاق|اليوم|Nexa 0.1 جاهز للفحص;Pickers|أمس|Date · Time · Autocomplete;Foundation|آب|Header · Hero · Cards`,/;/).map(e=>{let[t,n,r]=e.split(`|`).map(e=>e.trim());return{title:t||`حدث`,meta:n||``,body:r||``}});return $(t,`compact`)&&e.classList.add(`is-compact`),`<ol class="nexa-timeline">${n.map(e=>`<li class="nexa-timeline-item"><i aria-hidden="true"></i><div><small>${e.meta}</small><h4>${e.title}</h4>${e.body?`<p>${e.body}</p>`:``}</div></li>`).join(``)}</ol>`}),e.register(`transfer`,({element:e})=>{e.setAttribute(`data-nexa-transfer`,``);let t=IH(e.getAttribute(`source`)??e.getAttribute(`items`)??`Dashboard,Billing,Team,API Keys,Webhooks,Logs`),n=IH(e.getAttribute(`target`)??e.getAttribute(`selected`)??``),r=e.getAttribute(`left-label`)??`Available`,i=e.getAttribute(`right-label`)??`Selected`,a=e.getAttribute(`add-label`)??`Add`,o=e.getAttribute(`remove-label`)??`Remove`,s=e.getAttribute(`empty-label`)??`Empty`,c=t.filter(e=>!n.includes(e)),l=(e,t)=>e.map(e=>`<button type="button" class="nexa-transfer-opt" data-transfer-opt data-side="${t}" data-value="${e.replace(/"/g,`"`)}">${e}</button>`).join(``)||`<span class="nexa-transfer-empty">${s}</span>`;return`<div class="nexa-transfer">
|
|
74
|
-
<div class="nexa-transfer-col"><b>${r}</b><div class="nexa-transfer-list" data-transfer-left>${l(c,`left`)}</div></div>
|
|
75
|
-
<div class="nexa-transfer-actions">
|
|
76
|
-
<button type="button" class="nexa-button nexa-primary nexa-sm nexa-pill" data-transfer-to-right>${a}</button>
|
|
77
|
-
<button type="button" class="nexa-button nexa-outline nexa-sm" data-transfer-to-left>${o}</button>
|
|
78
|
-
</div>
|
|
79
|
-
<div class="nexa-transfer-col"><b>${i}</b><div class="nexa-transfer-list" data-transfer-right>${l(n,`right`)}</div></div>
|
|
80
|
-
</div>`})}var sK={success:`✓`,warning:`!`,danger:`✕`,info:`i`};function cK(e){return e.replace(/&/g,`&`).replace(/</g,`<`).replace(/>/g,`>`).replace(/"/g,`"`)}function lK(e,t=`info`){let n=cK(e||`Done`);return`<span class="nexa-toast-icon nexa-toast-icon-${t}" aria-hidden="true">${sK[t]}</span><p>${n}</p><button type="button" data-toast-close aria-label="Close">×</button>`}function uK(){let e=document.querySelector(`.nexa-toast-stack`);return e||(e=document.createElement(`div`),e.className=`nexa-toast-stack`,e.setAttribute(`aria-live`,`polite`),e.setAttribute(`aria-relevant`,`additions`),document.body.appendChild(e)),e}function dK(e,t){let n=()=>{e.classList.add(`is-leaving`),window.setTimeout(()=>e.remove(),220)};return e.querySelector(`[data-toast-close]`)?.addEventListener(`click`,n),t>0&&window.setTimeout(n,t),n}function fK(e){let t=typeof e==`string`?{text:e}:e,n=t.tone??`info`,r=t.duration??3200,i=t.text||`Done`,a=uK(),o=document.createElement(`div`);return o.className=`nexa-toast nexa-toast-${n}`,o.setAttribute(`data-nexa-toast`,``),o.setAttribute(`role`,`status`),o.innerHTML=lK(i,n),a.appendChild(o),dK(o,r),o}function pK(){document.querySelectorAll(`.nexa-toast-stack .nexa-toast`).forEach(e=>e.remove())}HH(),eU();function mK(e){XG(e),ZH(e),sG(e),rK(e),oK(e),e.register(`button`,({modifiers:e,content:t,label:n,element:r})=>{$(e,`disabled`)&&r.setAttribute(`disabled`,``),$(e,`loading`)&&(r.setAttribute(`aria-busy`,`true`),r.classList.add(`is-loading`));let i=t||n||`Button`;return $(e,`loading`)?`<span class="nexa-btn-spin" aria-hidden="true"></span><span>${i}</span>`:`<span>${i}</span>`}),e.register(`input`,()=>``),e.register(`card`,({content:e,modifiers:t,element:n})=>(KG(n,t),qG(n,e,t))),e.register(`grid`,({content:e})=>e),e.register(`stack`,({content:e})=>e),e.register(`container`,({content:e})=>e),e.register(`form`,({content:e,modifiers:t,element:n})=>($(t,`validate`)&&(n.setAttribute(`data-nexa-form`,`validate`),n.setAttribute(`novalidate`,``)),e)),e.register(`badge`,({content:e})=>e||`New`),e.register(`field`,({modifiers:e,element:t})=>{let n=[`text`,`email`,`password`,`number`,`date`,`file`,`search`,`tel`,`url`,`color`,`range`,`checkbox`,`radio`,`hidden`].find(t=>$(e,t))??`text`,r=t.getAttribute(`label`)??(n===`password`?`Password`:n===`email`?`Email address`:`Field`),i=t.getAttribute(`hint`),a=t.getAttribute(`message`),o=$(e,`error`)?`is-error`:$(e,`success`)?`is-success`:``,s=`${$(e,`required`)?`required`:``} ${$(e,`disabled`)?`disabled`:``} ${$(e,`readonly`)?`readonly`:``}`.trim(),c=t.getAttribute(`name`)??``,l=t.getAttribute(`id`)??``,u=t.getAttribute(`autocomplete`)??``,d=`${c?` name="${c}"`:``}${l?` id="${l}"`:``}${u?` autocomplete="${u}"`:``}`;if(n===`hidden`)return`<input type="hidden" name="${c||`hidden-field`}" value="${t.getAttribute(`value`)??``}">`;if(n===`checkbox`||n===`radio`){let i=$(e,`checked`)||t.hasAttribute(`checked`),a=c?` name="${c}"`:``;return`<label class="nexa-choice ${n===`radio`?`is-radio`:`is-check`}"><input type="${n}"${a} ${s}${i?` checked`:``}><i aria-hidden="true"></i><span>${r}</span></label>`}return $(e,`float`)?`<label class="nexa-field-float ${o}"><input type="${n}"${d} placeholder=" " value="${t.getAttribute(`value`)??``}" ${s}><span>${r}${$(e,`required`)?`<b>*</b>`:``}</span>${a?`<em>${a}</em>`:``}</label>`:`<label class="nexa-field-wrap ${o}"><span>${r}${$(e,`required`)?`<b>*</b>`:``}</span><input type="${n}"${d} placeholder="${t.getAttribute(`placeholder`)??``}" value="${t.getAttribute(`value`)??``}" ${s}>${i?`<small>${i}</small>`:``}${a?`<em>${a}</em>`:``}</label>`}),e.register(`header`,({modifiers:e,element:t})=>{let n=$(e,`vision`),r=$(e,`simple`),i=$(e,`mega`),a=$(e,`bar`)?`bar`:$(e,`dock`)?`dock`:$(e,`float`)||$(e,`overlay`)||n?`float`:`bar`;$(e,`dark`)&&t.classList.add(`is-dark`),$(e,`light`)&&t.classList.add(`is-light`),($(e,`glass`)||a===`bar`&&!r)&&t.classList.add(`nexa-glass`),i&&t.classList.add(`is-mega`),t.classList.add(r?`is-simple`:`is-complete`),t.classList.add(`is-${a}`),n&&t.classList.add(`is-vision`),a===`float`&&t.setAttribute(`data-nexa-header-scroll`,``);let o=t.getAttribute(`logo`)??`Nexa`,s=t.getAttribute(`logo-image`)??vU.mark,c=t.getAttribute(`logo-wordmark`)??t.getAttribute(`logo-text-image`)??(n?vU.wordmark:void 0),l=t.getAttribute(`logo-href`)??`#`,u=t.getAttribute(`cta`)??`Get started`,d=t.getAttribute(`cta-href`)??`#`,f=`<div class="nexa-navlinks">${VH(t,n||!r?[`Features`,`Docs`,`Components`,`Templates`,`Community`,`Blog`]:[`Features`,`Docs`])}</div>`,p=i?`<div class="nexa-mega-panel"><div><b>Product</b><a href="#">Components</a><a href="#">Color Map</a><a href="#">Themes</a></div><div><b>Solutions</b><a href="#">SaaS</a><a href="#">Agency</a><a href="#">Startup</a></div><div><b>Resources</b><a href="#">Docs</a><a href="#">Examples</a></div></div>`:``,m=s,h=m===vU.mark||m.endsWith(`/nexa-mark.png`)?` srcset="${SU(40)}" sizes="40px"`:``;return`<a class="nexa-logo" href="${l}">${`<img class="nexa-mark" src="${m===vU.mark?vU.mark128:m}" alt="" width="40" height="40" decoding="async"${h}>`}${c?`<img class="nexa-wordmark" src="${c}" alt="${o}" decoding="async">`:`<span>${o}</span>`}</a>${f}${r?`<div class="nexa-header-actions"><a class="nexa-cta" href="${d}">${u}</a></div>`:`<div class="nexa-header-actions"><a class="nexa-cta" href="${d}">${u}</a><button class="nexa-menu-btn" type="button" aria-label="Menu"><i></i><i></i><i></i></button></div>`}${p}`}),e.register(`hero`,({modifiers:e,element:t})=>{let n=$(e,`vision`),r=$(e,`centered`),i=$(e,`minimal`),a=$(e,`image-left`),o=$(e,`image-right`);i?t.classList.add(`is-minimal`):r?t.classList.add(`is-centered`):t.classList.add(a?`is-image-left`:o?`is-image-right`:`is-split`),$(e,`luxury`)&&t.classList.add(`is-luxury`),n&&t.classList.add(`is-vision`);let s=t.getAttribute(`eyebrow`)??t.getAttribute(`small`)??``,c=LH(t.getAttribute(`title`)??(i?`Build with|one command.`:`Modern frameworks for digital|experiences`)),l=t.getAttribute(`text`)??t.getAttribute(`desc`)??`Nexa Framework is a complete toolkit for building modern web apps — fast, secure, and ready to scale.`,u=t.getAttribute(`cta`)??`Get started`,d=t.getAttribute(`cta2`)??`Explore features`,f=t.getAttribute(`cta-href`),p=t.getAttribute(`cta2-href`),m=`<div class="nexa-hero-actions">${f?`<a class="nexa-cta" href="${f}"><span>${u}</span><i class="nexa-cta-arrow" aria-hidden="true"></i></a>`:`<button class="nexa-cta" type="button"><span>${u}</span><i class="nexa-cta-arrow" aria-hidden="true"></i></button>`}${p?`<a class="nexa-cta is-ghost" href="${p}">${d}</a>`:`<button class="nexa-cta is-ghost" type="button">${d}</button>`}</div>`,h=`<div class="nexa-hero-copy">${s?`<small>${s}</small>`:``}<h2>${c}</h2><p>${l}</p>${m}</div>`,g=t.getAttribute(`image`)??t.getAttribute(`img`),_=g?`<div class="nexa-hero-media"><img src="${g}" alt="" loading="lazy"></div>`:i?``:TU();return r?`${h}<div class="nexa-hero-glow"></div>`:a?`${_}${h}`:`${h}${_}`}),e.register(`features`,({modifiers:e,element:t})=>{let n=Number(e.find(e=>/^cards-[1-4]$/.test(e))?.split(`-`)[1]??`3`);return`<div class="nexa-section-head"><div><small>${t.getAttribute(`eyebrow`)??`WHY NEXA`}</small><h2>${t.getAttribute(`title`)??`Simple without compromise.`}</h2></div></div><div class="nexa-card-grid" style="--cols:${n}">${BH(t,n).map((e,t)=>`<article style="--card-i:${t}"><b>${e[0]}</b><h3>${e[1]}</h3><p>${e[2]}</p></article>`).join(``)}</div>`}),e.register(`logos`,({element:e})=>{let t=e.getAttribute(`label`)??e.getAttribute(`eyebrow`)??`TRUSTED BY TEAMS BUILDING THE FUTURE`,n=IH(e.getAttribute(`brands`)??e.getAttribute(`logos`));return`<small>${t}</small><div>${(n.length?n:[`ORBIT`,`APEX`,`MONO`,`VERVE`,`SHIFT`]).map(e=>`<b>${e}</b>`).join(``)}</div>`}),e.register(`pricing`,({element:e})=>{let t=e.getAttribute(`eyebrow`)??`SIMPLE PRICING`,n=e.getAttribute(`title`)??`Start small. Scale without limits.`,r=zH(e),i=e.getAttribute(`cta-href`);return`<div class="nexa-section-head"><small>${t}</small><h2>${n}</h2></div><div class="nexa-price-grid">${r.map(e=>`<article class="${e.popular?`is-popular`:``}">${e.popular?`<i>POPULAR</i>`:``}<span>${e.name}</span><h3>$${e.price}<small>/month</small></h3><p>${e.desc}</p><ul>${e.features.map(e=>`<li>${e}</li>`).join(``)}</ul>${i?`<a class="nexa-cta" href="${i}">${e.cta}</a>`:`<button class="nexa-cta" type="button">${e.cta}</button>`}</article>`).join(``)}</div>`}),e.register(`testimonials`,({modifiers:e,element:t})=>{$(e,`featured`)&&t.classList.add(`is-featured`);let n=RH(t.getAttribute(`slides`)??t.getAttribute(`quotes`));if(n.length>1)return t.classList.add(`has-slides`),`<small>${t.getAttribute(`eyebrow`)??`TESTIMONIALS`}</small><div class="nexa-testimonial-slides">${n.map(e=>`<blockquote>“${e.body||e.head}”</blockquote>`).join(``)}</div>`;let r=t.getAttribute(`quote`)??n[0]?.body??`Nexa shortened the distance between our idea and the product.`,i=t.getAttribute(`name`)??`LAYLA HADDAD`,a=t.getAttribute(`role`)??`Product Designer · Dubai`;return`<small>${t.getAttribute(`eyebrow`)??`FROM OUR COMMUNITY`}</small><blockquote>“${r}”</blockquote><div><b>${i}</b><span>${a}</span></div>`}),e.register(`cta`,({modifiers:e,element:t})=>{$(e,`bold`)&&t.classList.add(`is-bold`,`nexa-bold`);let n=t.getAttribute(`eyebrow`)??`YOUR NEXT IDEA`,r=LH(t.getAttribute(`title`)??`Ready when|you are.`),i=t.getAttribute(`cta`)??`Start building now →`,a=t.getAttribute(`cta-href`);return`<small>${n}</small><h2>${r}</h2>${a?`<a class="nexa-cta" href="${a}">${i}</a>`:`<button class="nexa-cta" type="button">${i}</button>`}`}),e.register(`footer`,({modifiers:e,element:t})=>{$(e,`dark`)&&t.classList.add(`is-dark`),$(e,`mega`)&&t.classList.add(`is-mega`);let n=$(e,`simple`);n&&t.classList.add(`is-simple`);let r=t.getAttribute(`copy`)??`© 2026 Nexa Framework`,i=t.getAttribute(`logo`)??`Nexa`,a=t.getAttribute(`logo-image`),o=t.getAttribute(`logo-href`)??`#`,s=t.getAttribute(`tagline`)??`Build. Ship. Scale.`,c=`<a class="nexa-logo" href="${o}">${a?`<img src="${a}" alt="">`:``}<span>${i}</span></a>`,l=(e,n)=>RH(t.getAttribute(e)??n).map(e=>`<a href="${e.body}">${e.head}</a>`).join(``);if(n)return`<div class="nexa-footer-simple">${c}<span>${r}</span></div>`;let u=t.getAttribute(`headline`)??t.getAttribute(`title`),d=u?`<h2 class="nexa-footer-headline">${LH(u)}</h2>`:``;return`<div class="nexa-footer-top"><div>${c}<p class="nexa-footer-tag">${s}</p></div><div class="nexa-footer-cols"><div><b>Product</b>${l(`product-links`,`Features|/site/features.html;Components|/site/components.html;Pricing|/site/pricing.html`)}</div><div><b>Resources</b>${l(`resource-links`,`About|/site/about.html;Blog|/site/blog.html;Contact|/site/contact.html`)}</div><div><b>Company</b>${l(`company-links`,`Privacy|#;Terms|#;GitHub|#`)}</div></div></div>${d}<div class="nexa-footer-bottom"><span>${r}</span><nav>${l(`social-links`,`GitHub|#;Community|#;Updates|#`)}</nav></div>`}),e.register(`alert`,({modifiers:e,element:t})=>{let n=e.find(e=>[`success`,`warning`,`danger`,`info`].includes(e))??`info`,r=t.getAttribute(`title`)??{success:`نجاح`,warning:`تنبيه`,danger:`خطأ`,info:`معلومة`}[n],i=t.getAttribute(`text`)??t.textContent?.trim()??`تنبيه`;return`<div class="nexa-alert-inner nexa-alert-${n}" role="alert"><i class="nexa-alert-ico" aria-hidden="true">${{success:`✓`,warning:`!`,danger:`×`,info:`i`}[n]}</i><div><b>${r}</b><p>${i}</p></div></div>`}),e.register(`modal`,({element:e,modifiers:t})=>{e.setAttribute(`data-nexa-modal`,``),$(t,`open`)&&e.classList.add(`is-open`);let n=e.getAttribute(`title`)??`نافذة`,r=e.getAttribute(`text`)??`محتوى النافذة`,i=e.getAttribute(`cta`)??`تم`;return`<div class="nexa-modal-backdrop" data-modal-close></div><div class="nexa-modal-card" role="dialog" aria-modal="true"><header><h3>${n}</h3><button type="button" class="nexa-modal-x" data-modal-close aria-label="Close">×</button></header><div class="nexa-modal-body"><p>${r}</p></div><footer class="nexa-modal-foot"><button type="button" class="nexa-button nexa-ghost" data-modal-close>${e.getAttribute(`cancel`)??`إلغاء`}</button><button type="button" class="nexa-button nexa-primary nexa-pill" data-modal-close>${i}</button></footer></div>`}),e.register(`accordion`,({element:e})=>`<div class="nexa-accordion" data-nexa-accordion>${RH(e.getAttribute(`items`)??`What is Nexa?|Commands that render full components.;Color map?|One hex colors the whole site.;Is it like Tailwind?|No — complete blocks first.`).map(e=>`<article data-acc-item><button type="button" data-acc-trigger aria-expanded="false"><span>${e.head}</span><i class="nexa-acc-caret" aria-hidden="true"></i></button><div data-acc-panel>${e.body}</div></article>`).join(``)}</div>`),e.register(`tabs`,({element:e,modifiers:t})=>{let n=RH(e.getAttribute(`tabs`)??`Tab 1|Content one;Tab 2|Content two;Tab 3|Content three`);return($(t,`pills`)||$(t,`segmented`))&&e.classList.add(`is-pills`),`<div class="nexa-tabs" data-nexa-tabs><div class="nexa-tablist" role="tablist">${n.map((e,t)=>`<button type="button" data-tab class="${t===0?`is-active`:``}">${e.head}</button>`).join(``)}</div><div class="nexa-tabpanels">${n.map((e,t)=>`<div data-panel ${t?`hidden`:``}>${e.body}</div>`).join(``)}</div></div>`}),e.register(`dropdown`,({element:e,modifiers:t,label:n})=>{let r=(n??``).trim().split(/\s+/).filter(e=>{let t=e.toLowerCase();return![`primary`,`ghost`,`open`,`end`,`e`,`drop`,`menu`,`dd`].includes(t)}).join(` `),i=e.getAttribute(`label`)||r||`Menu`,a=IH(e.getAttribute(`items`)??e.getAttribute(`menu`)??`Profile,Settings,Billing,—,Logout|danger`).map(e=>{if(e===`—`||e===`-`||e===`---`||e===`sep`||e===`|`)return{sep:!0};let[t,n,r]=e.split(`|`).map(e=>e.trim());return{sep:!1,text:t||`Item`,href:!n||n===`danger`||n===`x`?`#`:n,danger:r===`danger`||n===`danger`||n===`x`}}),o=$(t,`open`),s=$(t,`end`),c=$(t,`primary`)?` is-primary`:$(t,`ghost`)?` is-ghost`:``;s&&e.classList.add(`is-end`),o&&e.classList.add(`is-open`);let l=a.map(e=>{if(e.sep)return`<hr class="nexa-drop-sep">`;let t=e.danger?` is-danger`:``;return`<a href="${e.href}" role="menuitem" class="nexa-drop-item${t}">${e.text}</a>`}).join(``);return`<div class="nexa-dropdown${o?` is-open`:``}${s?` is-end`:``}" data-nexa-dropdown><button type="button" class="nexa-drop-trigger${c}" data-drop-toggle aria-haspopup="menu" aria-expanded="${o?`true`:`false`}"><span>${i}</span><i class="nexa-drop-caret" aria-hidden="true"></i></button><div class="nexa-drop-menu" data-drop-menu role="menu">${l}</div></div>`}),e.register(`spinner`,({modifiers:e})=>`<span class="nexa-spinner${$(e,`large`)||$(e,`lg`)?` is-lg`:$(e,`small`)||$(e,`sm`)?` is-sm`:``}" role="status" aria-label="Loading"></span>`),e.register(`progress`,({element:e})=>{let t=Math.min(100,Math.max(0,Number(e.getAttribute(`value`)??`60`)));return`<label class="nexa-progress"><span><b>${e.getAttribute(`label`)??`Progress`}</b><i>${t}%</i></span><i style="--val:${t}%"></i></label>`}),e.register(`toast`,({modifiers:e,element:t})=>{let n=e.find(e=>[`success`,`warning`,`danger`,`info`].includes(e))??`info`,r=t.getAttribute(`text`)??`Saved successfully`;return t.classList.add(`is-static-preview`,`nexa-toast-${n}`),t.setAttribute(`data-nexa-toast`,``),t.setAttribute(`role`,`status`),lK(r,n)}),e.register(`breadcrumb`,({element:e})=>{let t=IH(e.getAttribute(`items`)??`Home,Products,Item`);return`<div class="nexa-breadcrumb" role="navigation" aria-label="Breadcrumb">${t.map((e,n)=>n<t.length-1?`<a href="#">${e}</a><span>/</span>`:`<span aria-current="page">${e}</span>`).join(``)}</div>`}),e.register(`pagination`,({element:e})=>{let t=Number(e.getAttribute(`pages`)??`5`),n=Number(e.getAttribute(`current`)??`1`);return`<div class="nexa-pagination" role="navigation" aria-label="Pagination"><a href="#" class="nexa-page is-nav" aria-label="Previous">‹</a>${Array.from({length:t},(e,t)=>{let r=t+1;return`<a href="#" class="nexa-page${r===n?` is-active`:``}" aria-current="${r===n?`page`:`false`}">${r}</a>`}).join(``)}<a href="#" class="nexa-page is-nav" aria-label="Next">›</a></div>`}),e.register(`divider`,()=>`<hr class="nexa-divider">`),e.register(`avatar`,({element:e,modifiers:t})=>{let n=e.getAttribute(`name`)??`N`,r=$(t,`large`)||$(t,`lg`)?` is-lg`:$(t,`small`)||$(t,`sm`)?` is-sm`:``,i=e.getAttribute(`src`)??e.getAttribute(`image`),a=$(t,`male`)||$(t,`user`)||e.getAttribute(`user`)===`male`,o=i||(a?`https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?w=160&h=160&fit=crop&crop=face`:``);return o?`<span class="nexa-avatar${r} is-photo"><img src="${o}" alt="${n}" loading="lazy"></span>`:`<span class="nexa-avatar${r}" aria-label="${n}">${n.slice(0,2).toUpperCase()}</span>`}),e.register(`auth`,({element:e,modifiers:t})=>($(t,`compact`)&&e.classList.add(`is-compact`),`<div class="nexa-auth-card"><small>NEXA</small><h2>${e.getAttribute(`title`)??`Welcome back`}</h2><p>${e.getAttribute(`subtitle`)??`Sign in to continue`}</p><div class="nexa-auth-fields"><label class="nexa-field-wrap"><span>Email<b>*</b></span><input type="email" placeholder="you@email.com" required></label><label class="nexa-field-wrap"><span>Password<b>*</b></span><input type="password" placeholder="••••••••" required></label><div class="nexa-auth-actions"><button class="nexa-cta nexa-block" type="button">Sign in</button><button class="nexa-cta is-ghost nexa-block" type="button">Create account</button></div></div></div>`)),e.register(`carousel`,({element:e,modifiers:t})=>{let n=RH(e.getAttribute(`slides`)??`Slide 1|First content.;Slide 2|Second content.;Slide 3|Third content.`);return($(t,`autoplay`)||$(t,`auto`))&&(e.setAttribute(`data-autoplay`,``),e.setAttribute(`data-interval`,e.getAttribute(`interval`)??`4000`)),`<div class="nexa-carousel" data-nexa-carousel><div class="nexa-carousel-track">${n.map((e,t)=>`<article data-slide ${t?`hidden`:``}><h3>${e.head}</h3><p>${e.body}</p></article>`).join(``)}</div><div class="nexa-carousel-bar"><button type="button" class="nexa-carousel-btn" data-carousel-prev aria-label="Previous">‹</button><div class="nexa-carousel-dots">${n.map((e,t)=>`<button type="button" class="nexa-carousel-dot${t===0?` is-active`:``}" data-carousel-dot="${t}" aria-label="Slide ${t+1}"></button>`).join(``)}</div><button type="button" class="nexa-carousel-btn" data-carousel-next aria-label="Next">›</button></div></div>`}),e.register(`sheet`,({element:e,modifiers:t})=>{e.setAttribute(`data-nexa-sheet`,``),$(t,`open`)&&e.classList.add(`is-open`);let n=e.getAttribute(`title`)??`خيارات`,r=e.getAttribute(`text`)??(e.innerHTML.trim()||`محتوى الـ bottom sheet`),i=e.getAttribute(`cta`)??`تم`;return`<div class="nexa-sheet-backdrop" data-sheet-close></div><div class="nexa-sheet-panel" role="dialog" aria-modal="true"><i class="nexa-sheet-handle" aria-hidden="true"></i><header><h3>${n}</h3><button type="button" class="nexa-modal-x" data-sheet-close aria-label="Close">×</button></header><div class="nexa-sheet-body"><p>${r}</p></div><footer class="nexa-sheet-foot"><button type="button" class="nexa-button nexa-ghost" data-sheet-close>${e.getAttribute(`cancel`)??`إلغاء`}</button><button type="button" class="nexa-button nexa-primary nexa-pill" data-sheet-close>${i}</button></footer></div>`}),e.register(`offcanvas`,({element:e,modifiers:t})=>(e.setAttribute(`data-nexa-offcanvas`,``),$(t,`open`)&&e.classList.add(`is-open`),`<div class="nexa-offcanvas-backdrop" data-offcanvas-close></div><aside class="nexa-offcanvas-panel ${$(t,`right`)?`is-right`:`is-left`}"><header><h3>${e.getAttribute(`title`)??`القائمة`}</h3><button type="button" data-offcanvas-close aria-label="Close">×</button></header><div class="nexa-offcanvas-body">${e.getAttribute(`text`)??(e.innerHTML.trim()||`محتوى اللوحة الجانبية`)}</div></aside>`)),e.register(`popover`,({element:e,modifiers:t})=>{let n=e.getAttribute(`label`)??`Info`,r=e.getAttribute(`text`)??`Popover content`;return`<div class="nexa-popover" data-nexa-popover><button type="button" class="nexa-cta is-ghost" data-pop-trigger>${n}</button><div class="nexa-popover-card" data-pop-card ${$(t,`open`)?``:`hidden`}><p>${r}</p></div></div>`}),e.register(`tooltip`,({element:e})=>{let t=e.getAttribute(`text`)??e.getAttribute(`tip`)??`Tooltip`,n=e.textContent?.trim()||e.getAttribute(`label`)||`?`;return`<span class="nexa-tooltip-wrap" data-nexa-tooltip="${t.replace(/"/g,`"`)}">${n}<i class="nexa-tooltip-bubble" role="tooltip">${t}</i></span>`}),e.register(`list`,({element:e,modifiers:t})=>{let n=IH(e.getAttribute(`items`)??`Item one,Item two,Item three`),r=$(t,`ordered`)?`ol`:`ul`;return`<${r} class="nexa-list">${n.map(e=>`<li>${e}</li>`).join(``)}</${r}>`}),e.register(`posts`,({element:e,modifiers:t})=>{let n=Number(t.find(e=>/^cards-[1-4]$/.test(e))?.split(`-`)[1]??`3`);$(t,`compact`)&&e.classList.add(`is-compact`);let r=e.getAttribute(`eyebrow`)??`BLOG`,i=e.getAttribute(`title`)??`Latest posts`,a=e.getAttribute(`cta`)??e.getAttribute(`link`)??`Read more →`,o=IH(e.getAttribute(`posts`)??e.getAttribute(`items`)??`Color Map|One hex dresses the whole site.|12 Aug;Components|Full blocks, not utilities.|8 Aug;Launch|Nexa is ready to ship.|1 Aug`,/;/).map(e=>{let[t,n,r]=e.split(`|`).map(e=>e.trim());return{title:t||`Post`,excerpt:n&&n!==t?n:``,meta:r||``}}).filter(e=>e.title),s=o.slice(0,n).map(e=>`<article class="nexa-post-card"><div class="nexa-post-card-body">${e.meta?`<time>${e.meta}</time>`:``}<h3>${e.title}</h3>${e.excerpt?`<p>${e.excerpt}</p>`:``}<a href="#">${a}</a></div></article>`).join(``);return`<div class="nexa-posts-inner"><div class="nexa-section-head"><small>${r}</small><h2>${i}</h2></div><div class="nexa-post-grid" style="--cols:${Math.min(n,o.length||1)}">${s}</div></div>`}),e.register(`checkout`,({element:e,modifiers:t})=>{$(t,`compact`)&&e.classList.add(`is-compact`);let n=e.getAttribute(`title`)??`Checkout`,r=e.getAttribute(`total`)??`$49`;return`<div class="nexa-checkout"><div class="nexa-checkout-form"><h2>${n}</h2><div class="nexa-checkout-fields"><label class="nexa-field-wrap"><span>Name<b>*</b></span><input type="text" placeholder="Full name" required></label><label class="nexa-field-wrap"><span>Email<b>*</b></span><input type="email" placeholder="you@email.com" required></label><label class="nexa-field-wrap"><span>Address<b>*</b></span><input type="text" placeholder="Street, city" required></label><label class="nexa-field-wrap"><span>Card<b>*</b></span><input type="text" placeholder="4242 4242 4242 4242" required></label><button class="nexa-cta nexa-block" type="button">Pay ${r}</button></div></div><aside class="nexa-checkout-summary"><small>Order summary</small><h3>${e.getAttribute(`plan`)??`Pro Plan`}</h3><p>${e.getAttribute(`period`)??`Monthly · auto-renews`}</p><div class="nexa-checkout-total"><span>Total</span><b>${r}</b></div></aside></div>`}),e.register(`table`,({element:e,modifiers:t})=>{$(t,`striped`)&&e.classList.add(`is-striped`),$(t,`hover`)&&e.classList.add(`is-hover`),$(t,`compact`)&&e.classList.add(`is-compact`);let n=IH(e.getAttribute(`headers`)??`Key|Value`,/\|/),r=IH(e.getAttribute(`rows`)??`Plan|Pro;Users|12;Status|Active`,/;/).map(e=>{let t=e.split(`|`).map(e=>e.trim());for(;t.length<n.length;)t.push(``);return t.slice(0,Math.max(n.length,t.length))}).filter(e=>e.some(e=>e)),i=Math.max(n.length,...r.map(e=>e.length),1);return`<div class="nexa-table-wrap"><table class="nexa-table"><thead><tr>${Array.from({length:i},(e,t)=>n[t]??`عمود ${t+1}`).map(e=>`<th>${e}</th>`).join(``)}</tr></thead><tbody>${r.map(e=>`<tr>${Array.from({length:i},(t,n)=>`<td>${e[n]??``}</td>`).join(``)}</tr>`).join(``)}</tbody></table></div>`}),e.register(`collapse`,({element:e})=>`<div class="nexa-collapse" data-nexa-collapse><button type="button" class="nexa-collapse-trigger" data-collapse-trigger aria-expanded="false">${e.getAttribute(`title`)??`تفاصيل`} ▾</button><div class="nexa-collapse-panel" data-collapse-panel hidden>${e.getAttribute(`text`)??e.textContent?.trim()??`محتوى قابل للطي`}</div></div>`),e.register(`stat`,({element:e})=>`<div class="nexa-stat-row">${RH(e.getAttribute(`stats`)??`Users|12.4k;Revenue|$48k;Uptime|99.9%;NPS|72`).map(e=>`<article><b>${e.head}</b><strong>${e.body}</strong></article>`).join(``)}</div>`),e.register(`nav`,({element:e})=>`<div class="nexa-nav" role="navigation" aria-label="Navigation">${VH(e,[`Home`,`Features`,`Pricing`,`About`])}</div>`)}FH(),mK(_U);var hK=gU({registry:_U}),gK=Object.assign(hK,{toast:fK,clearToasts:pK});async function _K(e=document){return(await Promise.resolve().then(()=>(sU(),tU))).wireEcharts(e)}async function vK(e){return(await Promise.resolve().then(()=>(sU(),tU))).mountNexaChart(e)}typeof document<`u`&&(document.readyState===`loading`?document.addEventListener(`DOMContentLoaded`,()=>gK.mount()):gK.mount()),e.CARD_LAYOUTS=cG,e.CARD_MODELS=VG,e.CARD_STYLES=HG,e.NEXA_ASSETS=vU,e.NEXA_ECHARTS_THEME=NH,e.applyBrandColor=E,e.applyBrandScale=T,e.applyColorMap=O,e.applyColorSeed=k,e.buildNexaChartOption=jH,e.clearToasts=pK,e.colorMapNames=i,e.componentSchemas=ie,e.createNexa=gU,e.deleteSavedMap=f,e.exportBrandScaleCss=D,e.generateBrandScale=w,e.getComponentSchema=ae,e.getSavedMaps=u,e.hasNexaIcon=QW,e.listNexaIconNames=eG,e.listSavedMapNames=p,e.mapPresets=s,e.mountNexaChart=vK,e.nexa=gK,e.normalizeHex=y,e.normalizeMapName=l,e.pushToast=fK,e.registerPrototypeComponents=mK,e.registry=_U,e.renderCardIcon=oG,e.renderIcon=aG,e.resolveMapSeed=v,e.saveBrandMap=d,e.validateModifiers=ce,e.wireBehaviors=le,e.wireEcharts=_K});
|