@weapp-vite/dashboard 6.17.1 → 6.17.3

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.
Files changed (33) hide show
  1. package/dist/assets/AppInsetPanel.vue_vue_type_script_setup_true_lang.js +1 -0
  2. package/dist/assets/AppMetricTile.vue_vue_type_script_setup_true_lang.js +1 -0
  3. package/dist/assets/AppRuntimeBadge.vue_vue_type_script_setup_true_lang.js +1 -0
  4. package/dist/assets/AppSectionHeading.vue_vue_type_script_setup_true_lang.js +1 -0
  5. package/dist/assets/activity.js +6 -5
  6. package/dist/assets/analyze.js +36 -30
  7. package/dist/assets/clipboard.js +1 -0
  8. package/dist/assets/css.worker-DBVD8oXr.js +93 -0
  9. package/dist/assets/echarts.js +4 -11
  10. package/dist/assets/editor.worker-CdQrwHl8.js +26 -0
  11. package/dist/assets/html.worker-CwpTb9lJ.js +470 -0
  12. package/dist/assets/index.css +1 -2
  13. package/dist/assets/index.js +1 -1
  14. package/dist/assets/index2.js +2 -0
  15. package/dist/assets/json.worker-BoL8UZqY.js +58 -0
  16. package/dist/assets/monaco.css +1 -1
  17. package/dist/assets/monaco.js +319 -288
  18. package/dist/assets/tokens.js +1 -1
  19. package/dist/assets/{ts.worker-B0J26iPs.js → ts.worker-BH9nVgjN.js} +237 -253
  20. package/dist/assets/vendor.js +8 -1
  21. package/dist/assets/vue.js +1 -1
  22. package/package.json +3 -3
  23. package/dist/assets/AppEmptyState.js +0 -1
  24. package/dist/assets/AppInsetPanel.js +0 -1
  25. package/dist/assets/AppMetricTile.js +0 -1
  26. package/dist/assets/AppRuntimeBadge.js +0 -1
  27. package/dist/assets/AppSectionHeading.js +0 -1
  28. package/dist/assets/css.worker-CvXBzhp8.js +0 -89
  29. package/dist/assets/editor.worker-Cn2oRESe.js +0 -26
  30. package/dist/assets/html.worker-BO6WuOEO.js +0 -502
  31. package/dist/assets/json.worker-BkJRGcCJ.js +0 -58
  32. package/dist/assets/pages.js +0 -2
  33. package/dist/assets/rolldown-runtime.js +0 -1
@@ -1 +1,8 @@
1
- var e=(e,t)=>{let n=Array(e.length+t.length);for(let t=0;t<e.length;t++)n[t]=e[t];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},t=(e,t)=>({classGroupId:e,validator:t}),n=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),r=`-`,i=[],a=`arbitrary..`,o=t=>{let n=l(t),{conflictingClassGroups:a,conflictingClassGroupModifiers:o}=t;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return c(e);let t=e.split(r);return s(t,+(t[0]===``&&t.length>1),n)},getConflictingClassGroupIds:(t,n)=>{if(n){let n=o[t],r=a[t];return n?r?e(r,n):n:r||i}return a[t]||i}}},s=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let i=e[t],a=n.nextPart.get(i);if(a){let n=s(e,t+1,a);if(n)return n}let o=n.validators;if(o===null)return;let c=t===0?e.join(r):e.slice(t).join(r),l=o.length;for(let e=0;e<l;e++){let t=o[e];if(t.validator(c))return t.classGroupId}},c=e=>e.slice(1,-1).indexOf(`:`)===-1?void 0:(()=>{let t=e.slice(1,-1),n=t.indexOf(`:`),r=t.slice(0,n);return r?a+r:void 0})(),l=e=>{let{theme:t,classGroups:n}=e;return u(n,t)},u=(e,t)=>{let r=n();for(let n in e){let i=e[n];d(i,r,n,t)}return r},d=(e,t,n,r)=>{let i=e.length;for(let a=0;a<i;a++){let i=e[a];f(i,t,n,r)}},f=(e,t,n,r)=>{if(typeof e==`string`){p(e,t,n);return}if(typeof e==`function`){m(e,t,n,r);return}h(e,t,n,r)},p=(e,t,n)=>{let r=e===``?t:g(t,e);r.classGroupId=n},m=(e,n,r,i)=>{if(_(e)){d(e(i),n,r,i);return}n.validators===null&&(n.validators=[]),n.validators.push(t(r,e))},h=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e<a;e++){let[a,o]=i[e];d(o,g(t,a),n,r)}},g=(e,t)=>{let i=e,a=t.split(r),o=a.length;for(let e=0;e<o;e++){let t=a[e],r=i.nextPart.get(t);r||(r=n(),i.nextPart.set(t,r)),i=r}return i},_=e=>`isThemeGetter`in e&&e.isThemeGetter===!0,v=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null),i=(i,a)=>{n[i]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];if(t!==void 0)return t;if((t=r[e])!==void 0)return i(e,t),t},set(e,t){e in n?n[e]=t:i(e,t)}}},y=`!`,b=`:`,x=[],S=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),ee=e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t=[],n=0,r=0,i=0,a,o=e.length;for(let s=0;s<o;s++){let o=e[s];if(n===0&&r===0){if(o===b){t.push(e.slice(i,s)),i=s+1;continue}if(o===`/`){a=s;continue}}o===`[`?n++:o===`]`?n--:o===`(`?r++:o===`)`&&r--}let s=t.length===0?e:e.slice(i),c=s,l=!1;s.endsWith(y)?(c=s.slice(0,-1),l=!0):s.startsWith(y)&&(c=s.slice(1),l=!0);let u=a&&a>i?a-i:void 0;return S(t,l,c,u)};if(t){let e=t+b,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):S(x,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},C=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{let n=[],r=[];for(let i=0;i<e.length;i++){let a=e[i],o=a[0]===`[`,s=t.has(a);o||s?(r.length>0&&(r.sort(),n.push(...r),r=[]),n.push(a)):r.push(a)}return r.length>0&&(r.sort(),n.push(...r)),n}},w=e=>({cache:v(e.cacheSize),parseClassName:ee(e),sortModifiers:C(e),postfixLookupClassGroupIds:te(e),...o(e)}),te=e=>{let t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let e=0;e<n.length;e++)t[n[e]]=!0;return t},ne=/\s+/,T=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a,postfixLookupClassGroupIds:o}=t,s=[],c=e.trim().split(ne),l=``;for(let e=c.length-1;e>=0;--e){let t=c[e],{isExternal:u,modifiers:d,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:m}=n(t);if(u){l=t+(l.length>0?` `+l:l);continue}let h=!!m,g;if(h){g=r(p.substring(0,m));let e=g&&o[g]?r(p):void 0;e&&e!==g&&(g=e,h=!1)}else g=r(p);if(!g){if(!h){l=t+(l.length>0?` `+l:l);continue}if(g=r(p),!g){l=t+(l.length>0?` `+l:l);continue}h=!1}let _=d.length===0?``:d.length===1?d[0]:a(d).join(`:`),v=f?_+y:_,b=v+g;if(s.indexOf(b)>-1)continue;s.push(b);let x=i(g,h);for(let e=0;e<x.length;++e){let t=x[e];s.push(v+t)}l=t+(l.length>0?` `+l:l)}return l},re=(...e)=>{let t=0,n,r,i=``;for(;t<e.length;)(n=e[t++])&&(r=E(n))&&(i&&(i+=` `),i+=r);return i},E=e=>{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r<e.length;r++)e[r]&&(t=E(e[r]))&&(n&&(n+=` `),n+=t);return n},D=(e,...t)=>{let n,r,i,a,o=o=>(n=w(t.reduce((e,t)=>t(e),e())),r=n.cache.get,i=n.cache.set,a=s,s(o)),s=e=>{let t=r(e);if(t)return t;let a=T(e,n);return i(e,a),a};return a=o,(...e)=>a(re(...e))},O=[],k=e=>{let t=t=>t[e]||O;return t.isThemeGetter=!0,t},A=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,j=/^\((?:(\w[\w-]*):)?(.+)\)$/i,ie=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,M=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ae=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,oe=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,se=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ce=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,N=e=>ie.test(e),P=e=>!!e&&!Number.isNaN(Number(e)),F=e=>!!e&&Number.isInteger(Number(e)),le=e=>e.endsWith(`%`)&&P(e.slice(0,-1)),I=e=>M.test(e),ue=()=>!0,L=e=>ae.test(e)&&!oe.test(e),R=()=>!1,z=e=>se.test(e),de=e=>ce.test(e),fe=e=>!B(e)&&!H(e),pe=e=>e.startsWith(`@container`)&&(e[10]===`/`&&e[11]!==void 0||e[11]===`s`&&e[16]!==void 0&&e.startsWith(`-size/`,10)||e[11]===`n`&&e[18]!==void 0&&e.startsWith(`-normal/`,10)),me=e=>G(e,Y,R),B=e=>A.test(e),V=e=>G(e,X,L),he=e=>G(e,Ee,P),ge=e=>G(e,Oe,ue),_e=e=>G(e,De,R),ve=e=>G(e,q,R),ye=e=>G(e,J,de),be=e=>G(e,ke,z),H=e=>j.test(e),U=e=>K(e,X),xe=e=>K(e,De),Se=e=>K(e,q),Ce=e=>K(e,Y),we=e=>K(e,J),W=e=>K(e,ke,!0),Te=e=>K(e,Oe,!0),G=(e,t,n)=>{let r=A.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},K=(e,t,n=!1)=>{let r=j.exec(e);return r?r[1]?t(r[1]):n:!1},q=e=>e===`position`||e===`percentage`,J=e=>e===`image`||e===`url`,Y=e=>e===`length`||e===`size`||e===`bg-size`,X=e=>e===`length`,Ee=e=>e===`number`,De=e=>e===`family-name`,Oe=e=>e===`number`||e===`weight`,ke=e=>e===`shadow`,Ae=()=>{let e=k(`color`),t=k(`font`),n=k(`text`),r=k(`font-weight`),i=k(`tracking`),a=k(`leading`),o=k(`breakpoint`),s=k(`container`),c=k(`spacing`),l=k(`radius`),u=k(`shadow`),d=k(`inset-shadow`),f=k(`text-shadow`),p=k(`drop-shadow`),m=k(`blur`),h=k(`perspective`),g=k(`aspect`),_=k(`ease`),v=k(`animate`),y=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],b=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],x=()=>[...b(),H,B],S=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],ee=()=>[`auto`,`contain`,`none`],C=()=>[H,B,c],w=()=>[N,`full`,`auto`,...C()],te=()=>[F,`none`,`subgrid`,H,B],ne=()=>[`auto`,{span:[`full`,F,H,B]},F,H,B],T=()=>[F,`auto`,H,B],re=()=>[`auto`,`min`,`max`,`fr`,H,B],E=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],D=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],O=()=>[`auto`,...C()],A=()=>[N,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...C()],j=()=>[N,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...C()],ie=()=>[N,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...C()],M=()=>[e,H,B],ae=()=>[...b(),Se,ve,{position:[H,B]}],oe=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],se=()=>[`auto`,`cover`,`contain`,Ce,me,{size:[H,B]}],ce=()=>[le,U,V],L=()=>[``,`none`,`full`,l,H,B],R=()=>[``,P,U,V],z=()=>[`solid`,`dashed`,`dotted`,`double`],de=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],G=()=>[P,le,Se,ve],K=()=>[``,`none`,m,H,B],q=()=>[`none`,P,H,B],J=()=>[`none`,P,H,B],Y=()=>[P,H,B],X=()=>[N,`full`,...C()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[I],breakpoint:[I],color:[ue],container:[I],"drop-shadow":[I],ease:[`in`,`out`,`in-out`],font:[fe],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[I],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[I],shadow:[I],spacing:[`px`,P],text:[I],"text-shadow":[I],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,N,B,H,g]}],container:[`container`],"container-type":[{"@container":[``,`normal`,`size`,H,B]}],"container-named":[pe],columns:[{columns:[P,B,H,s]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"break-inside":[{"break-inside":[`auto`,`avoid`,`avoid-page`,`avoid-column`]}],"box-decoration":[{"box-decoration":[`slice`,`clone`]}],box:[{box:[`border`,`content`]}],display:[`block`,`inline-block`,`inline`,`flex`,`inline-flex`,`table`,`inline-table`,`table-caption`,`table-cell`,`table-column`,`table-column-group`,`table-footer-group`,`table-header-group`,`table-row-group`,`table-row`,`flow-root`,`grid`,`inline-grid`,`contents`,`list-item`,`hidden`],sr:[`sr-only`,`not-sr-only`],float:[{float:[`right`,`left`,`none`,`start`,`end`]}],clear:[{clear:[`left`,`right`,`both`,`none`,`start`,`end`]}],isolation:[`isolate`,`isolation-auto`],"object-fit":[{object:[`contain`,`cover`,`fill`,`none`,`scale-down`]}],"object-position":[{object:x()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:ee()}],"overscroll-x":[{"overscroll-x":ee()}],"overscroll-y":[{"overscroll-y":ee()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:w()}],"inset-x":[{"inset-x":w()}],"inset-y":[{"inset-y":w()}],start:[{"inset-s":w(),start:w()}],end:[{"inset-e":w(),end:w()}],"inset-bs":[{"inset-bs":w()}],"inset-be":[{"inset-be":w()}],top:[{top:w()}],right:[{right:w()}],bottom:[{bottom:w()}],left:[{left:w()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[F,`auto`,H,B]}],basis:[{basis:[N,`full`,`auto`,s,...C()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[P,N,`auto`,`initial`,`none`,B]}],grow:[{grow:[``,P,H,B]}],shrink:[{shrink:[``,P,H,B]}],order:[{order:[F,`first`,`last`,`none`,H,B]}],"grid-cols":[{"grid-cols":te()}],"col-start-end":[{col:ne()}],"col-start":[{"col-start":T()}],"col-end":[{"col-end":T()}],"grid-rows":[{"grid-rows":te()}],"row-start-end":[{row:ne()}],"row-start":[{"row-start":T()}],"row-end":[{"row-end":T()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":re()}],"auto-rows":[{"auto-rows":re()}],gap:[{gap:C()}],"gap-x":[{"gap-x":C()}],"gap-y":[{"gap-y":C()}],"justify-content":[{justify:[...E(),`normal`]}],"justify-items":[{"justify-items":[...D(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...D()]}],"align-content":[{content:[`normal`,...E()]}],"align-items":[{items:[...D(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...D(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":E()}],"place-items":[{"place-items":[...D(),`baseline`]}],"place-self":[{"place-self":[`auto`,...D()]}],p:[{p:C()}],px:[{px:C()}],py:[{py:C()}],ps:[{ps:C()}],pe:[{pe:C()}],pbs:[{pbs:C()}],pbe:[{pbe:C()}],pt:[{pt:C()}],pr:[{pr:C()}],pb:[{pb:C()}],pl:[{pl:C()}],m:[{m:O()}],mx:[{mx:O()}],my:[{my:O()}],ms:[{ms:O()}],me:[{me:O()}],mbs:[{mbs:O()}],mbe:[{mbe:O()}],mt:[{mt:O()}],mr:[{mr:O()}],mb:[{mb:O()}],ml:[{ml:O()}],"space-x":[{"space-x":C()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":C()}],"space-y-reverse":[`space-y-reverse`],size:[{size:A()}],"inline-size":[{inline:[`auto`,...j()]}],"min-inline-size":[{"min-inline":[`auto`,...j()]}],"max-inline-size":[{"max-inline":[`none`,...j()]}],"block-size":[{block:[`auto`,...ie()]}],"min-block-size":[{"min-block":[`auto`,...ie()]}],"max-block-size":[{"max-block":[`none`,...ie()]}],w:[{w:[s,`screen`,...A()]}],"min-w":[{"min-w":[s,`screen`,`none`,...A()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...A()]}],h:[{h:[`screen`,`lh`,...A()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...A()]}],"max-h":[{"max-h":[`screen`,`lh`,...A()]}],"font-size":[{text:[`base`,n,U,V]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,Te,ge]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,le,B]}],"font-family":[{font:[xe,_e,t]}],"font-features":[{"font-features":[B]}],"fvn-normal":[`normal-nums`],"fvn-ordinal":[`ordinal`],"fvn-slashed-zero":[`slashed-zero`],"fvn-figure":[`lining-nums`,`oldstyle-nums`],"fvn-spacing":[`proportional-nums`,`tabular-nums`],"fvn-fraction":[`diagonal-fractions`,`stacked-fractions`],tracking:[{tracking:[i,H,B]}],"line-clamp":[{"line-clamp":[P,`none`,H,he]}],leading:[{leading:[a,...C()]}],"list-image":[{"list-image":[`none`,H,B]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,H,B]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:M()}],"text-color":[{text:M()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...z(),`wavy`]}],"text-decoration-thickness":[{decoration:[P,`from-font`,`auto`,H,V]}],"text-decoration-color":[{decoration:M()}],"underline-offset":[{"underline-offset":[P,`auto`,H,B]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:C()}],"tab-size":[{tab:[F,H,B]}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,H,B]}],whitespace:[{whitespace:[`normal`,`nowrap`,`pre`,`pre-line`,`pre-wrap`,`break-spaces`]}],break:[{break:[`normal`,`words`,`all`,`keep`]}],wrap:[{wrap:[`break-word`,`anywhere`,`normal`]}],hyphens:[{hyphens:[`none`,`manual`,`auto`]}],content:[{content:[`none`,H,B]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:ae()}],"bg-repeat":[{bg:oe()}],"bg-size":[{bg:se()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},F,H,B],radial:[``,H,B],conic:[F,H,B]},we,ye]}],"bg-color":[{bg:M()}],"gradient-from-pos":[{from:ce()}],"gradient-via-pos":[{via:ce()}],"gradient-to-pos":[{to:ce()}],"gradient-from":[{from:M()}],"gradient-via":[{via:M()}],"gradient-to":[{to:M()}],rounded:[{rounded:L()}],"rounded-s":[{"rounded-s":L()}],"rounded-e":[{"rounded-e":L()}],"rounded-t":[{"rounded-t":L()}],"rounded-r":[{"rounded-r":L()}],"rounded-b":[{"rounded-b":L()}],"rounded-l":[{"rounded-l":L()}],"rounded-ss":[{"rounded-ss":L()}],"rounded-se":[{"rounded-se":L()}],"rounded-ee":[{"rounded-ee":L()}],"rounded-es":[{"rounded-es":L()}],"rounded-tl":[{"rounded-tl":L()}],"rounded-tr":[{"rounded-tr":L()}],"rounded-br":[{"rounded-br":L()}],"rounded-bl":[{"rounded-bl":L()}],"border-w":[{border:R()}],"border-w-x":[{"border-x":R()}],"border-w-y":[{"border-y":R()}],"border-w-s":[{"border-s":R()}],"border-w-e":[{"border-e":R()}],"border-w-bs":[{"border-bs":R()}],"border-w-be":[{"border-be":R()}],"border-w-t":[{"border-t":R()}],"border-w-r":[{"border-r":R()}],"border-w-b":[{"border-b":R()}],"border-w-l":[{"border-l":R()}],"divide-x":[{"divide-x":R()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":R()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...z(),`hidden`,`none`]}],"divide-style":[{divide:[...z(),`hidden`,`none`]}],"border-color":[{border:M()}],"border-color-x":[{"border-x":M()}],"border-color-y":[{"border-y":M()}],"border-color-s":[{"border-s":M()}],"border-color-e":[{"border-e":M()}],"border-color-bs":[{"border-bs":M()}],"border-color-be":[{"border-be":M()}],"border-color-t":[{"border-t":M()}],"border-color-r":[{"border-r":M()}],"border-color-b":[{"border-b":M()}],"border-color-l":[{"border-l":M()}],"divide-color":[{divide:M()}],"outline-style":[{outline:[...z(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[P,H,B]}],"outline-w":[{outline:[``,P,U,V]}],"outline-color":[{outline:M()}],shadow:[{shadow:[``,`none`,u,W,be]}],"shadow-color":[{shadow:M()}],"inset-shadow":[{"inset-shadow":[`none`,d,W,be]}],"inset-shadow-color":[{"inset-shadow":M()}],"ring-w":[{ring:R()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:M()}],"ring-offset-w":[{"ring-offset":[P,V]}],"ring-offset-color":[{"ring-offset":M()}],"inset-ring-w":[{"inset-ring":R()}],"inset-ring-color":[{"inset-ring":M()}],"text-shadow":[{"text-shadow":[`none`,f,W,be]}],"text-shadow-color":[{"text-shadow":M()}],opacity:[{opacity:[P,H,B]}],"mix-blend":[{"mix-blend":[...de(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":de()}],"mask-clip":[{"mask-clip":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]},`mask-no-clip`],"mask-composite":[{mask:[`add`,`subtract`,`intersect`,`exclude`]}],"mask-image-linear-pos":[{"mask-linear":[P]}],"mask-image-linear-from-pos":[{"mask-linear-from":G()}],"mask-image-linear-to-pos":[{"mask-linear-to":G()}],"mask-image-linear-from-color":[{"mask-linear-from":M()}],"mask-image-linear-to-color":[{"mask-linear-to":M()}],"mask-image-t-from-pos":[{"mask-t-from":G()}],"mask-image-t-to-pos":[{"mask-t-to":G()}],"mask-image-t-from-color":[{"mask-t-from":M()}],"mask-image-t-to-color":[{"mask-t-to":M()}],"mask-image-r-from-pos":[{"mask-r-from":G()}],"mask-image-r-to-pos":[{"mask-r-to":G()}],"mask-image-r-from-color":[{"mask-r-from":M()}],"mask-image-r-to-color":[{"mask-r-to":M()}],"mask-image-b-from-pos":[{"mask-b-from":G()}],"mask-image-b-to-pos":[{"mask-b-to":G()}],"mask-image-b-from-color":[{"mask-b-from":M()}],"mask-image-b-to-color":[{"mask-b-to":M()}],"mask-image-l-from-pos":[{"mask-l-from":G()}],"mask-image-l-to-pos":[{"mask-l-to":G()}],"mask-image-l-from-color":[{"mask-l-from":M()}],"mask-image-l-to-color":[{"mask-l-to":M()}],"mask-image-x-from-pos":[{"mask-x-from":G()}],"mask-image-x-to-pos":[{"mask-x-to":G()}],"mask-image-x-from-color":[{"mask-x-from":M()}],"mask-image-x-to-color":[{"mask-x-to":M()}],"mask-image-y-from-pos":[{"mask-y-from":G()}],"mask-image-y-to-pos":[{"mask-y-to":G()}],"mask-image-y-from-color":[{"mask-y-from":M()}],"mask-image-y-to-color":[{"mask-y-to":M()}],"mask-image-radial":[{"mask-radial":[H,B]}],"mask-image-radial-from-pos":[{"mask-radial-from":G()}],"mask-image-radial-to-pos":[{"mask-radial-to":G()}],"mask-image-radial-from-color":[{"mask-radial-from":M()}],"mask-image-radial-to-color":[{"mask-radial-to":M()}],"mask-image-radial-shape":[{"mask-radial":[`circle`,`ellipse`]}],"mask-image-radial-size":[{"mask-radial":[{closest:[`side`,`corner`],farthest:[`side`,`corner`]}]}],"mask-image-radial-pos":[{"mask-radial-at":b()}],"mask-image-conic-pos":[{"mask-conic":[P]}],"mask-image-conic-from-pos":[{"mask-conic-from":G()}],"mask-image-conic-to-pos":[{"mask-conic-to":G()}],"mask-image-conic-from-color":[{"mask-conic-from":M()}],"mask-image-conic-to-color":[{"mask-conic-to":M()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:ae()}],"mask-repeat":[{mask:oe()}],"mask-size":[{mask:se()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,H,B]}],filter:[{filter:[``,`none`,H,B]}],blur:[{blur:K()}],brightness:[{brightness:[P,H,B]}],contrast:[{contrast:[P,H,B]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,W,be]}],"drop-shadow-color":[{"drop-shadow":M()}],grayscale:[{grayscale:[``,P,H,B]}],"hue-rotate":[{"hue-rotate":[P,H,B]}],invert:[{invert:[``,P,H,B]}],saturate:[{saturate:[P,H,B]}],sepia:[{sepia:[``,P,H,B]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,H,B]}],"backdrop-blur":[{"backdrop-blur":K()}],"backdrop-brightness":[{"backdrop-brightness":[P,H,B]}],"backdrop-contrast":[{"backdrop-contrast":[P,H,B]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,P,H,B]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[P,H,B]}],"backdrop-invert":[{"backdrop-invert":[``,P,H,B]}],"backdrop-opacity":[{"backdrop-opacity":[P,H,B]}],"backdrop-saturate":[{"backdrop-saturate":[P,H,B]}],"backdrop-sepia":[{"backdrop-sepia":[``,P,H,B]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":C()}],"border-spacing-x":[{"border-spacing-x":C()}],"border-spacing-y":[{"border-spacing-y":C()}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[``,`all`,`colors`,`opacity`,`shadow`,`transform`,`none`,H,B]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[P,`initial`,H,B]}],ease:[{ease:[`linear`,`initial`,_,H,B]}],delay:[{delay:[P,H,B]}],animate:[{animate:[`none`,v,H,B]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,H,B]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:q()}],"rotate-x":[{"rotate-x":q()}],"rotate-y":[{"rotate-y":q()}],"rotate-z":[{"rotate-z":q()}],scale:[{scale:J()}],"scale-x":[{"scale-x":J()}],"scale-y":[{"scale-y":J()}],"scale-z":[{"scale-z":J()}],"scale-3d":[`scale-3d`],skew:[{skew:Y()}],"skew-x":[{"skew-x":Y()}],"skew-y":[{"skew-y":Y()}],transform:[{transform:[H,B,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:X()}],"translate-x":[{"translate-x":X()}],"translate-y":[{"translate-y":X()}],"translate-z":[{"translate-z":X()}],"translate-none":[`translate-none`],zoom:[{zoom:[F,H,B]}],accent:[{accent:M()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:M()}],"color-scheme":[{scheme:[`normal`,`dark`,`light`,`light-dark`,`only-dark`,`only-light`]}],cursor:[{cursor:[`auto`,`default`,`pointer`,`wait`,`text`,`move`,`help`,`not-allowed`,`none`,`context-menu`,`progress`,`cell`,`crosshair`,`vertical-text`,`alias`,`copy`,`no-drop`,`grab`,`grabbing`,`all-scroll`,`col-resize`,`row-resize`,`n-resize`,`e-resize`,`s-resize`,`w-resize`,`ne-resize`,`nw-resize`,`se-resize`,`sw-resize`,`ew-resize`,`ns-resize`,`nesw-resize`,`nwse-resize`,`zoom-in`,`zoom-out`,H,B]}],"field-sizing":[{"field-sizing":[`fixed`,`content`]}],"pointer-events":[{"pointer-events":[`auto`,`none`]}],resize:[{resize:[`none`,``,`y`,`x`]}],"scroll-behavior":[{scroll:[`auto`,`smooth`]}],"scrollbar-thumb-color":[{"scrollbar-thumb":M()}],"scrollbar-track-color":[{"scrollbar-track":M()}],"scrollbar-gutter":[{"scrollbar-gutter":[`auto`,`stable`,`both`]}],"scrollbar-w":[{scrollbar:[`auto`,`thin`,`none`]}],"scroll-m":[{"scroll-m":C()}],"scroll-mx":[{"scroll-mx":C()}],"scroll-my":[{"scroll-my":C()}],"scroll-ms":[{"scroll-ms":C()}],"scroll-me":[{"scroll-me":C()}],"scroll-mbs":[{"scroll-mbs":C()}],"scroll-mbe":[{"scroll-mbe":C()}],"scroll-mt":[{"scroll-mt":C()}],"scroll-mr":[{"scroll-mr":C()}],"scroll-mb":[{"scroll-mb":C()}],"scroll-ml":[{"scroll-ml":C()}],"scroll-p":[{"scroll-p":C()}],"scroll-px":[{"scroll-px":C()}],"scroll-py":[{"scroll-py":C()}],"scroll-ps":[{"scroll-ps":C()}],"scroll-pe":[{"scroll-pe":C()}],"scroll-pbs":[{"scroll-pbs":C()}],"scroll-pbe":[{"scroll-pbe":C()}],"scroll-pt":[{"scroll-pt":C()}],"scroll-pr":[{"scroll-pr":C()}],"scroll-pb":[{"scroll-pb":C()}],"scroll-pl":[{"scroll-pl":C()}],"snap-align":[{snap:[`start`,`end`,`center`,`align-none`]}],"snap-stop":[{snap:[`normal`,`always`]}],"snap-type":[{snap:[`none`,`x`,`y`,`both`]}],"snap-strictness":[{snap:[`mandatory`,`proximity`]}],touch:[{touch:[`auto`,`none`,`manipulation`]}],"touch-x":[{"touch-pan":[`x`,`left`,`right`]}],"touch-y":[{"touch-pan":[`y`,`up`,`down`]}],"touch-pz":[`touch-pinch-zoom`],select:[{select:[`none`,`text`,`all`,`auto`]}],"will-change":[{"will-change":[`auto`,`scroll`,`contents`,`transform`,H,B]}],fill:[{fill:[`none`,...M()]}],"stroke-w":[{stroke:[P,U,V,he]}],stroke:[{stroke:[`none`,...M()]}],"forced-color-adjust":[{"forced-color-adjust":[`auto`,`none`]}]},conflictingClassGroups:{"container-named":[`container-type`],overflow:[`overflow-x`,`overflow-y`],overscroll:[`overscroll-x`,`overscroll-y`],inset:[`inset-x`,`inset-y`,`inset-bs`,`inset-be`,`start`,`end`,`top`,`right`,`bottom`,`left`],"inset-x":[`right`,`left`],"inset-y":[`top`,`bottom`],flex:[`basis`,`grow`,`shrink`],gap:[`gap-x`,`gap-y`],p:[`px`,`py`,`ps`,`pe`,`pbs`,`pbe`,`pt`,`pr`,`pb`,`pl`],px:[`pr`,`pl`],py:[`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mbs`,`mbe`,`mt`,`mr`,`mb`,`ml`],mx:[`mr`,`ml`],my:[`mt`,`mb`],size:[`w`,`h`],"font-size":[`leading`],"fvn-normal":[`fvn-ordinal`,`fvn-slashed-zero`,`fvn-figure`,`fvn-spacing`,`fvn-fraction`],"fvn-ordinal":[`fvn-normal`],"fvn-slashed-zero":[`fvn-normal`],"fvn-figure":[`fvn-normal`],"fvn-spacing":[`fvn-normal`],"fvn-fraction":[`fvn-normal`],"line-clamp":[`display`,`overflow`],rounded:[`rounded-s`,`rounded-e`,`rounded-t`,`rounded-r`,`rounded-b`,`rounded-l`,`rounded-ss`,`rounded-se`,`rounded-ee`,`rounded-es`,`rounded-tl`,`rounded-tr`,`rounded-br`,`rounded-bl`],"rounded-s":[`rounded-ss`,`rounded-es`],"rounded-e":[`rounded-se`,`rounded-ee`],"rounded-t":[`rounded-tl`,`rounded-tr`],"rounded-r":[`rounded-tr`,`rounded-br`],"rounded-b":[`rounded-br`,`rounded-bl`],"rounded-l":[`rounded-tl`,`rounded-bl`],"border-spacing":[`border-spacing-x`,`border-spacing-y`],"border-w":[`border-w-x`,`border-w-y`,`border-w-s`,`border-w-e`,`border-w-bs`,`border-w-be`,`border-w-t`,`border-w-r`,`border-w-b`,`border-w-l`],"border-w-x":[`border-w-r`,`border-w-l`],"border-w-y":[`border-w-t`,`border-w-b`],"border-color":[`border-color-x`,`border-color-y`,`border-color-s`,`border-color-e`,`border-color-bs`,`border-color-be`,`border-color-t`,`border-color-r`,`border-color-b`,`border-color-l`],"border-color-x":[`border-color-r`,`border-color-l`],"border-color-y":[`border-color-t`,`border-color-b`],translate:[`translate-x`,`translate-y`,`translate-none`],"translate-none":[`translate`,`translate-x`,`translate-y`,`translate-z`],"scroll-m":[`scroll-mx`,`scroll-my`,`scroll-ms`,`scroll-me`,`scroll-mbs`,`scroll-mbe`,`scroll-mt`,`scroll-mr`,`scroll-mb`,`scroll-ml`],"scroll-mx":[`scroll-mr`,`scroll-ml`],"scroll-my":[`scroll-mt`,`scroll-mb`],"scroll-p":[`scroll-px`,`scroll-py`,`scroll-ps`,`scroll-pe`,`scroll-pbs`,`scroll-pbe`,`scroll-pt`,`scroll-pr`,`scroll-pb`,`scroll-pl`],"scroll-px":[`scroll-pr`,`scroll-pl`],"scroll-py":[`scroll-pt`,`scroll-pb`],touch:[`touch-x`,`touch-y`,`touch-pz`],"touch-x":[`touch`],"touch-y":[`touch`],"touch-pz":[`touch`]},conflictingClassGroupModifiers:{"font-size":[`leading`]},postfixLookupClassGroups:[`container-type`],orderSensitiveModifiers:[`*`,`**`,`after`,`backdrop`,`before`,`details-content`,`file`,`first-letter`,`first-line`,`marker`,`placeholder`,`selection`]}},je=(e,{cacheSize:t,prefix:n,experimentalParseClassName:r,extend:i={},override:a={}})=>(Z(e,`cacheSize`,t),Z(e,`prefix`,n),Z(e,`experimentalParseClassName`,r),Me(e.theme,a.theme),Me(e.classGroups,a.classGroups),Me(e.conflictingClassGroups,a.conflictingClassGroups),Me(e.conflictingClassGroupModifiers,a.conflictingClassGroupModifiers),Z(e,`postfixLookupClassGroups`,a.postfixLookupClassGroups),Z(e,`orderSensitiveModifiers`,a.orderSensitiveModifiers),Ne(e.theme,i.theme),Ne(e.classGroups,i.classGroups),Ne(e.conflictingClassGroups,i.conflictingClassGroups),Ne(e.conflictingClassGroupModifiers,i.conflictingClassGroupModifiers),Pe(e,i,`postfixLookupClassGroups`),Pe(e,i,`orderSensitiveModifiers`),e),Z=(e,t,n)=>{n!==void 0&&(e[t]=n)},Me=(e,t)=>{if(t)for(let n in t)Z(e,n,t[n])},Ne=(e,t)=>{if(t)for(let n in t)Pe(e,t,n)},Pe=(e,t,n)=>{let r=t[n];r!==void 0&&(e[n]=e[n]?e[n].concat(r):r)},Fe=(e,...t)=>typeof e==`function`?D(Ae,e,...t):D(()=>je(Ae(),e),...t),Ie=D(Ae),Le=/\s+/g,Re=e=>typeof e!=`string`||!e?e:e.replace(Le,` `).trim(),ze=(...e)=>{let t=[],n=e=>{if(!e&&e!==0&&e!==0n)return;if(Array.isArray(e)){for(let t=0,r=e.length;t<r;t++)n(e[t]);return}let r=typeof e;if(r===`string`||r===`number`||r===`bigint`){if(r===`number`&&e!==e)return;t.push(String(e))}else if(r===`object`){let n=Object.keys(e);for(let r=0,i=n.length;r<i;r++){let i=n[r];e[i]&&t.push(i)}}};for(let t=0,r=e.length;t<r;t++){let r=e[t];r!=null&&n(r)}return t.length>0?Re(t.join(` `)):void 0},Be=e=>e===!1?`false`:e===!0?`true`:e===0?`0`:e,Q=e=>{if(!e||typeof e!=`object`)return!0;for(let t in e)return!1;return!0},Ve=(e,t)=>{if(e===t)return!0;if(!e||!t)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i=0;i<n.length;i++){let a=n[i];if(!r.includes(a)||e[a]!==t[a])return!1}return!0},He=(e,t)=>{for(let n in t)if(Object.prototype.hasOwnProperty.call(t,n)){let r=t[n];n in e?e[n]=ze(e[n],r):e[n]=r}return e},Ue=(e,t)=>{for(let n=0;n<e.length;n++){let r=e[n];Array.isArray(r)?Ue(r,t):r&&t.push(r)}},We=(...e)=>{let t=[];Ue(e,t);let n=[];for(let e=0;e<t.length;e++)t[e]&&n.push(t[e]);return n},Ge=(e,t)=>{let n={};for(let r in e){let i=e[r];if(r in t){let e=t[r];Array.isArray(i)||Array.isArray(e)?n[r]=We(e,i):typeof i==`object`&&typeof e==`object`&&i&&e?n[r]=Ge(i,e):n[r]=e+` `+i}else n[r]=i}for(let r in t)r in e||(n[r]=t[r]);return n},Ke={twMerge:!0,twMergeConfig:{}};function qe(){let e=null,t={},n=!1;return{get cachedTwMerge(){return e},set cachedTwMerge(t){e=t},get cachedTwMergeConfig(){return t},set cachedTwMergeConfig(e){t=e},get didTwMergeConfigChange(){return n},set didTwMergeConfigChange(e){n=e},reset(){e=null,t={},n=!1}}}var $=qe(),Je=e=>{let t=(t,n)=>{let{extend:r=null,slots:i={},variants:a={},compoundVariants:o=[],compoundSlots:s=[],defaultVariants:c={}}=t,l={...Ke,...n},u=r?.base?ze(r.base,t?.base):t?.base,d=r?.variants&&!Q(r.variants)?Ge(a,r.variants):a,f=r?.defaultVariants&&!Q(r.defaultVariants)?{...r.defaultVariants,...c}:c;!Q(l.twMergeConfig)&&!Ve(l.twMergeConfig,$.cachedTwMergeConfig)&&($.didTwMergeConfigChange=!0,$.cachedTwMergeConfig=l.twMergeConfig);let p=Q(r?.slots),m=Q(i)?{}:{base:ze(t?.base,p&&r?.base),...i},h=p?m:He({...r?.slots},Q(m)?{base:t?.base}:m),g=Q(r?.compoundVariants)?o:We(r?.compoundVariants,o),_=t=>{if(Q(d)&&Q(i)&&p)return e(u,t?.class,t?.className)(l);if(g&&!Array.isArray(g))throw TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof g}`);if(s&&!Array.isArray(s))throw TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof s}`);let n=(e,n=d,r=null,i=null)=>{let a=n[e];if(!a||Q(a))return null;let o=i?.[e]??t?.[e];if(o===null)return null;let s=Be(o);if(typeof s==`object`)return null;let c=f?.[e];return a[(s??Be(c))||`false`]},r=()=>{if(!d)return null;let e=Object.keys(d),t=[];for(let r=0;r<e.length;r++){let i=n(e[r],d);i&&t.push(i)}return t},a=(e,t)=>{if(!d||typeof d!=`object`)return null;let r=[];for(let i in d){let a=n(i,d,e,t),o=e===`base`&&typeof a==`string`?a:a&&a[e];o&&r.push(o)}return r},o={};for(let e in t){let n=t[e];n!==void 0&&(o[e]=n)}let c=(e,n)=>{let r=typeof t?.[e]==`object`?{[e]:t[e]?.initial}:{};return{...f,...o,...r,...n}},m=(e=[],t)=>{let n=[],r=e.length;for(let i=0;i<r;i++){let{class:r,className:a,...o}=e[i],s=!0,l=c(null,t);for(let e in o){let t=o[e],n=l[e];if(Array.isArray(t)){if(!t.includes(n)){s=!1;break}}else{if((t==null||t===!1)&&(n==null||n===!1))continue;if(n!==t){s=!1;break}}}s&&(r&&n.push(r),a&&n.push(a))}return n},_=t=>{let n=m(g,t);if(!Array.isArray(n))return n;let r={},i=e;for(let e=0;e<n.length;e++){let t=n[e];if(typeof t==`string`)r.base=i(r.base,t)(l);else if(typeof t==`object`)for(let e in t)r[e]=i(r[e],t[e])(l)}return r},v=e=>{if(s.length<1)return null;let t={},n=c(null,e);for(let e=0;e<s.length;e++){let{slots:r=[],class:i,className:a,...o}=s[e];if(!Q(o)){let e=!0;for(let t in o){let r=n[t],i=o[t];if(r===void 0||(Array.isArray(i)?!i.includes(r):i!==r)){e=!1;break}}if(!e)continue}for(let e=0;e<r.length;e++){let n=r[e];t[n]||(t[n]=[]),t[n].push([i,a])}}return t};if(!Q(i)||!p){let t={};if(typeof h==`object`&&!Q(h)){let n=e;for(let e in h)t[e]=t=>{let r=_(t),i=v(t);return n(h[e],a(e,t),r?r[e]:void 0,i?i[e]:void 0,t?.class,t?.className)(l)}}return t}return e(u,r(),m(g),t?.class,t?.className)(l)};return _.variantKeys=(()=>{if(!(!d||typeof d!=`object`))return Object.keys(d)})(),_.extend=r,_.base=u,_.slots=h,_.variants=d,_.defaultVariants=f,_.compoundSlots=s,_.compoundVariants=g,_};return{tv:t,createTV:e=>(n,r)=>t(n,r?Ge(e,r):e)}},Ye=e=>Q(e)?Ie:Fe({...e,extend:{theme:e.theme,classGroups:e.classGroups,conflictingClassGroupModifiers:e.conflictingClassGroupModifiers,conflictingClassGroups:e.conflictingClassGroups,...e.extend}}),Xe=(e,t)=>{let n=ze(e);return!n||!(t?.twMerge??!0)?n:((!$.cachedTwMerge||$.didTwMergeConfigChange)&&($.didTwMergeConfigChange=!1,$.cachedTwMerge=Ye($.cachedTwMergeConfig)),$.cachedTwMerge(n)||void 0)},{createTV:Ze,tv:Qe}=Je((...e)=>t=>Xe(e,t));export{Ie as n,Qe as t};
1
+ const xl=(r,t)=>{const e=new Array(r.length+t.length);for(let i=0;i<r.length;i++)e[i]=r[i];for(let i=0;i<t.length;i++)e[r.length+i]=t[i];return e},Sl=(r,t)=>({classGroupId:r,validator:t}),Jo=(r=new Map,t=null,e)=>({nextPart:r,validators:t,classGroupId:e});const Aa=[],Ml="arbitrary..",Pl=r=>{const t=Rl(r),{conflictingClassGroups:e,conflictingClassGroupModifiers:i}=r;return{getClassGroupId:o=>{if(o.startsWith("[")&&o.endsWith("]"))return Ll(o);const s=o.split("-"),l=s[0]===""&&s.length>1?1:0;return ts(s,l,t)},getConflictingClassGroupIds:(o,s)=>{if(s){const l=i[o],f=e[o];return l?f?xl(f,l):l:f||Aa}return e[o]||Aa}}},ts=(r,t,e)=>{if(r.length-t===0)return e.classGroupId;const n=r[t],a=e.nextPart.get(n);if(a){const f=ts(r,t+1,a);if(f)return f}const o=e.validators;if(o===null)return;const s=t===0?r.join("-"):r.slice(t).join("-"),l=o.length;for(let f=0;f<l;f++){const u=o[f];if(u.validator(s))return u.classGroupId}},Ll=r=>r.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=r.slice(1,-1),e=t.indexOf(":"),i=t.slice(0,e);return i?Ml+i:void 0})(),Rl=r=>{const{theme:t,classGroups:e}=r;return Al(e,t)},Al=(r,t)=>{const e=Jo();for(const i in r){const n=r[i];ca(n,e,i,t)}return e},ca=(r,t,e,i)=>{const n=r.length;for(let a=0;a<n;a++){const o=r[a];kl(o,t,e,i)}},kl=(r,t,e,i)=>{if(typeof r=="string"){Dl(r,t,e);return}if(typeof r=="function"){Il(r,t,e,i);return}El(r,t,e,i)},Dl=(r,t,e)=>{const i=r===""?t:rs(t,r);i.classGroupId=e},Il=(r,t,e,i)=>{if(Ol(r)){ca(r(i),t,e,i);return}t.validators===null&&(t.validators=[]),t.validators.push(Sl(e,r))},El=(r,t,e,i)=>{const n=Object.entries(r),a=n.length;for(let o=0;o<a;o++){const[s,l]=n[o];ca(l,rs(t,s),e,i)}},rs=(r,t)=>{let e=r;const i=t.split("-"),n=i.length;for(let a=0;a<n;a++){const o=i[a];let s=e.nextPart.get(o);s||(s=Jo(),e.nextPart.set(o,s)),e=s}return e},Ol=r=>"isThemeGetter"in r&&r.isThemeGetter===!0,zl=r=>{if(r<1)return{get:()=>{},set:()=>{}};let t=0,e=Object.create(null),i=Object.create(null);const n=(a,o)=>{e[a]=o,t++,t>r&&(t=0,i=e,e=Object.create(null))};return{get(a){let o=e[a];if(o!==void 0)return o;if((o=i[a])!==void 0)return n(a,o),o},set(a,o){a in e?e[a]=o:n(a,o)}}};const Bl=[],ka=(r,t,e,i,n)=>({modifiers:r,hasImportantModifier:t,baseClassName:e,maybePostfixModifierPosition:i,isExternal:n}),Fl=r=>{const{prefix:t,experimentalParseClassName:e}=r;let i=n=>{const a=[];let o=0,s=0,l=0,f;const u=n.length;for(let _=0;_<u;_++){const g=n[_];if(o===0&&s===0){if(g===":"){a.push(n.slice(l,_)),l=_+1;continue}if(g==="/"){f=_;continue}}g==="["?o++:g==="]"?o--:g==="("?s++:g===")"&&s--}const h=a.length===0?n:n.slice(l);let c=h,v=!1;h.endsWith("!")?(c=h.slice(0,-1),v=!0):h.startsWith("!")&&(c=h.slice(1),v=!0);const p=f&&f>l?f-l:void 0;return ka(a,v,c,p)};if(t){const n=t+":",a=i;i=o=>o.startsWith(n)?a(o.slice(n.length)):ka(Bl,!1,o,void 0,!0)}if(e){const n=i;i=a=>e({className:a,parseClassName:n})}return i},Hl=r=>{const t=new Map;return r.orderSensitiveModifiers.forEach((e,i)=>{t.set(e,1e6+i)}),e=>{const i=[];let n=[];for(let a=0;a<e.length;a++){const o=e[a],s=o[0]==="[",l=t.has(o);s||l?(n.length>0&&(n.sort(),i.push(...n),n=[]),i.push(o)):n.push(o)}return n.length>0&&(n.sort(),i.push(...n)),i}},Nl=r=>({cache:zl(r.cacheSize),parseClassName:Fl(r),sortModifiers:Hl(r),postfixLookupClassGroupIds:Gl(r),...Pl(r)}),Gl=r=>{const t=Object.create(null),e=r.postfixLookupClassGroups;if(e)for(let i=0;i<e.length;i++)t[e[i]]=!0;return t},Wl=/\s+/,Yl=(r,t)=>{const{parseClassName:e,getClassGroupId:i,getConflictingClassGroupIds:n,sortModifiers:a,postfixLookupClassGroupIds:o}=t,s=[],l=r.trim().split(Wl);let f="";for(let u=l.length-1;u>=0;u-=1){const h=l[u],{isExternal:c,modifiers:v,hasImportantModifier:p,baseClassName:_,maybePostfixModifierPosition:g}=e(h);if(c){f=h+(f.length>0?" "+f:f);continue}let d=!!g,m;if(d){const M=_.substring(0,g);m=i(M);const w=m&&o[m]?i(_):void 0;w&&w!==m&&(m=w,d=!1)}else m=i(_);if(!m){if(!d){f=h+(f.length>0?" "+f:f);continue}if(m=i(_),!m){f=h+(f.length>0?" "+f:f);continue}d=!1}const b=v.length===0?"":v.length===1?v[0]:a(v).join(":"),y=p?b+"!":b,C=y+m;if(s.indexOf(C)>-1)continue;s.push(C);const T=n(m,d);for(let M=0;M<T.length;++M){const w=T[M];s.push(y+w)}f=h+(f.length>0?" "+f:f)}return f},Vl=(...r)=>{let t=0,e,i,n="";for(;t<r.length;)(e=r[t++])&&(i=es(e))&&(n&&(n+=" "),n+=i);return n},es=r=>{if(typeof r=="string")return r;let t,e="";for(let i=0;i<r.length;i++)r[i]&&(t=es(r[i]))&&(e&&(e+=" "),e+=t);return e},Dn=(r,...t)=>{let e,i,n,a;const o=l=>{const f=t.reduce((u,h)=>h(u),r());return e=Nl(f),i=e.cache.get,n=e.cache.set,a=s,s(l)},s=l=>{const f=i(l);if(f)return f;const u=Yl(l,e);return n(l,u),u};return a=o,(...l)=>a(Vl(...l))},Xl=[],rt=r=>{const t=e=>e[r]||Xl;return t.isThemeGetter=!0,t},is=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,ns=/^\((?:(\w[\w-]*):)?(.+)\)$/i,$l=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,ql=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ul=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Zl=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Ql=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Kl=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Qt=r=>$l.test(r),H=r=>!!r&&!Number.isNaN(Number(r)),It=r=>!!r&&Number.isInteger(Number(r)),Wi=r=>r.endsWith("%")&&H(r.slice(0,-1)),Xt=r=>ql.test(r),as=()=>!0,jl=r=>Ul.test(r)&&!Zl.test(r),va=()=>!1,Jl=r=>Ql.test(r),tf=r=>Kl.test(r),rf=r=>!A(r)&&!k(r),ef=r=>r.startsWith("@container")&&(r[10]==="/"&&r[11]!==void 0||r[11]==="s"&&r[16]!==void 0&&r.startsWith("-size/",10)||r[11]==="n"&&r[18]!==void 0&&r.startsWith("-normal/",10)),nf=r=>ar(r,ls,va),A=r=>is.test(r),sr=r=>ar(r,fs,jl),Da=r=>ar(r,cf,H),af=r=>ar(r,hs,as),of=r=>ar(r,us,va),Ia=r=>ar(r,os,va),sf=r=>ar(r,ss,tf),Be=r=>ar(r,cs,Jl),k=r=>ns.test(r),he=r=>Fr(r,fs),lf=r=>Fr(r,us),Ea=r=>Fr(r,os),ff=r=>Fr(r,ls),uf=r=>Fr(r,ss),Fe=r=>Fr(r,cs,!0),hf=r=>Fr(r,hs,!0),ar=(r,t,e)=>{const i=is.exec(r);return i?i[1]?t(i[1]):e(i[2]):!1},Fr=(r,t,e=!1)=>{const i=ns.exec(r);return i?i[1]?t(i[1]):e:!1},os=r=>r==="position"||r==="percentage",ss=r=>r==="image"||r==="url",ls=r=>r==="length"||r==="size"||r==="bg-size",fs=r=>r==="length",cf=r=>r==="number",us=r=>r==="family-name",hs=r=>r==="number"||r==="weight",cs=r=>r==="shadow",In=()=>{const r=rt("color"),t=rt("font"),e=rt("text"),i=rt("font-weight"),n=rt("tracking"),a=rt("leading"),o=rt("breakpoint"),s=rt("container"),l=rt("spacing"),f=rt("radius"),u=rt("shadow"),h=rt("inset-shadow"),c=rt("text-shadow"),v=rt("drop-shadow"),p=rt("blur"),_=rt("perspective"),g=rt("aspect"),d=rt("ease"),m=rt("animate"),b=()=>["auto","avoid","all","avoid-page","page","left","right","column"],y=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],C=()=>[...y(),k,A],T=()=>["auto","hidden","clip","visible","scroll"],M=()=>["auto","contain","none"],w=()=>[k,A,l],S=()=>[Qt,"full","auto",...w()],P=()=>[It,"none","subgrid",k,A],R=()=>["auto",{span:["full",It,k,A]},It,k,A],O=()=>[It,"auto",k,A],D=()=>["auto","min","max","fr",k,A],x=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],I=()=>["start","end","center","stretch","center-safe","end-safe"],E=()=>["auto",...w()],z=()=>[Qt,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...w()],F=()=>[Qt,"screen","full","dvw","lvw","svw","min","max","fit",...w()],V=()=>[Qt,"screen","full","lh","dvh","lvh","svh","min","max","fit",...w()],L=()=>[r,k,A],j=()=>[...y(),Ea,Ia,{position:[k,A]}],G=()=>["no-repeat",{repeat:["","x","y","space","round"]}],X=()=>["auto","cover","contain",ff,nf,{size:[k,A]}],Q=()=>[Wi,he,sr],W=()=>["","none","full",f,k,A],U=()=>["",H,he,sr],mt=()=>["solid","dashed","dotted","double"],Dt=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],$=()=>[H,Wi,Ea,Ia],et=()=>["","none",p,k,A],B=()=>["none",H,k,A],N=()=>["none",H,k,A],Vt=()=>[H,k,A],ft=()=>[Qt,"full",...w()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Xt],breakpoint:[Xt],color:[as],container:[Xt],"drop-shadow":[Xt],ease:["in","out","in-out"],font:[rf],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Xt],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Xt],shadow:[Xt],spacing:["px",H],text:[Xt],"text-shadow":[Xt],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Qt,A,k,g]}],container:["container"],"container-type":[{"@container":["","normal","size",k,A]}],"container-named":[ef],columns:[{columns:[H,A,k,s]}],"break-after":[{"break-after":b()}],"break-before":[{"break-before":b()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:C()}],overflow:[{overflow:T()}],"overflow-x":[{"overflow-x":T()}],"overflow-y":[{"overflow-y":T()}],overscroll:[{overscroll:M()}],"overscroll-x":[{"overscroll-x":M()}],"overscroll-y":[{"overscroll-y":M()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:S()}],"inset-x":[{"inset-x":S()}],"inset-y":[{"inset-y":S()}],start:[{"inset-s":S(),start:S()}],end:[{"inset-e":S(),end:S()}],"inset-bs":[{"inset-bs":S()}],"inset-be":[{"inset-be":S()}],top:[{top:S()}],right:[{right:S()}],bottom:[{bottom:S()}],left:[{left:S()}],visibility:["visible","invisible","collapse"],z:[{z:[It,"auto",k,A]}],basis:[{basis:[Qt,"full","auto",s,...w()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[H,Qt,"auto","initial","none",A]}],grow:[{grow:["",H,k,A]}],shrink:[{shrink:["",H,k,A]}],order:[{order:[It,"first","last","none",k,A]}],"grid-cols":[{"grid-cols":P()}],"col-start-end":[{col:R()}],"col-start":[{"col-start":O()}],"col-end":[{"col-end":O()}],"grid-rows":[{"grid-rows":P()}],"row-start-end":[{row:R()}],"row-start":[{"row-start":O()}],"row-end":[{"row-end":O()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":D()}],"auto-rows":[{"auto-rows":D()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:[...x(),"normal"]}],"justify-items":[{"justify-items":[...I(),"normal"]}],"justify-self":[{"justify-self":["auto",...I()]}],"align-content":[{content:["normal",...x()]}],"align-items":[{items:[...I(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...I(),{baseline:["","last"]}]}],"place-content":[{"place-content":x()}],"place-items":[{"place-items":[...I(),"baseline"]}],"place-self":[{"place-self":["auto",...I()]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pbs:[{pbs:w()}],pbe:[{pbe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:E()}],mx:[{mx:E()}],my:[{my:E()}],ms:[{ms:E()}],me:[{me:E()}],mbs:[{mbs:E()}],mbe:[{mbe:E()}],mt:[{mt:E()}],mr:[{mr:E()}],mb:[{mb:E()}],ml:[{ml:E()}],"space-x":[{"space-x":w()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":w()}],"space-y-reverse":["space-y-reverse"],size:[{size:z()}],"inline-size":[{inline:["auto",...F()]}],"min-inline-size":[{"min-inline":["auto",...F()]}],"max-inline-size":[{"max-inline":["none",...F()]}],"block-size":[{block:["auto",...V()]}],"min-block-size":[{"min-block":["auto",...V()]}],"max-block-size":[{"max-block":["none",...V()]}],w:[{w:[s,"screen",...z()]}],"min-w":[{"min-w":[s,"screen","none",...z()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[o]},...z()]}],h:[{h:["screen","lh",...z()]}],"min-h":[{"min-h":["screen","lh","none",...z()]}],"max-h":[{"max-h":["screen","lh",...z()]}],"font-size":[{text:["base",e,he,sr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,hf,af]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Wi,A]}],"font-family":[{font:[lf,of,t]}],"font-features":[{"font-features":[A]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[n,k,A]}],"line-clamp":[{"line-clamp":[H,"none",k,Da]}],leading:[{leading:[a,...w()]}],"list-image":[{"list-image":["none",k,A]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",k,A]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:L()}],"text-color":[{text:L()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...mt(),"wavy"]}],"text-decoration-thickness":[{decoration:[H,"from-font","auto",k,sr]}],"text-decoration-color":[{decoration:L()}],"underline-offset":[{"underline-offset":[H,"auto",k,A]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:w()}],"tab-size":[{tab:[It,k,A]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",k,A]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",k,A]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:j()}],"bg-repeat":[{bg:G()}],"bg-size":[{bg:X()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},It,k,A],radial:["",k,A],conic:[It,k,A]},uf,sf]}],"bg-color":[{bg:L()}],"gradient-from-pos":[{from:Q()}],"gradient-via-pos":[{via:Q()}],"gradient-to-pos":[{to:Q()}],"gradient-from":[{from:L()}],"gradient-via":[{via:L()}],"gradient-to":[{to:L()}],rounded:[{rounded:W()}],"rounded-s":[{"rounded-s":W()}],"rounded-e":[{"rounded-e":W()}],"rounded-t":[{"rounded-t":W()}],"rounded-r":[{"rounded-r":W()}],"rounded-b":[{"rounded-b":W()}],"rounded-l":[{"rounded-l":W()}],"rounded-ss":[{"rounded-ss":W()}],"rounded-se":[{"rounded-se":W()}],"rounded-ee":[{"rounded-ee":W()}],"rounded-es":[{"rounded-es":W()}],"rounded-tl":[{"rounded-tl":W()}],"rounded-tr":[{"rounded-tr":W()}],"rounded-br":[{"rounded-br":W()}],"rounded-bl":[{"rounded-bl":W()}],"border-w":[{border:U()}],"border-w-x":[{"border-x":U()}],"border-w-y":[{"border-y":U()}],"border-w-s":[{"border-s":U()}],"border-w-e":[{"border-e":U()}],"border-w-bs":[{"border-bs":U()}],"border-w-be":[{"border-be":U()}],"border-w-t":[{"border-t":U()}],"border-w-r":[{"border-r":U()}],"border-w-b":[{"border-b":U()}],"border-w-l":[{"border-l":U()}],"divide-x":[{"divide-x":U()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":U()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...mt(),"hidden","none"]}],"divide-style":[{divide:[...mt(),"hidden","none"]}],"border-color":[{border:L()}],"border-color-x":[{"border-x":L()}],"border-color-y":[{"border-y":L()}],"border-color-s":[{"border-s":L()}],"border-color-e":[{"border-e":L()}],"border-color-bs":[{"border-bs":L()}],"border-color-be":[{"border-be":L()}],"border-color-t":[{"border-t":L()}],"border-color-r":[{"border-r":L()}],"border-color-b":[{"border-b":L()}],"border-color-l":[{"border-l":L()}],"divide-color":[{divide:L()}],"outline-style":[{outline:[...mt(),"none","hidden"]}],"outline-offset":[{"outline-offset":[H,k,A]}],"outline-w":[{outline:["",H,he,sr]}],"outline-color":[{outline:L()}],shadow:[{shadow:["","none",u,Fe,Be]}],"shadow-color":[{shadow:L()}],"inset-shadow":[{"inset-shadow":["none",h,Fe,Be]}],"inset-shadow-color":[{"inset-shadow":L()}],"ring-w":[{ring:U()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:L()}],"ring-offset-w":[{"ring-offset":[H,sr]}],"ring-offset-color":[{"ring-offset":L()}],"inset-ring-w":[{"inset-ring":U()}],"inset-ring-color":[{"inset-ring":L()}],"text-shadow":[{"text-shadow":["none",c,Fe,Be]}],"text-shadow-color":[{"text-shadow":L()}],opacity:[{opacity:[H,k,A]}],"mix-blend":[{"mix-blend":[...Dt(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Dt()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[H]}],"mask-image-linear-from-pos":[{"mask-linear-from":$()}],"mask-image-linear-to-pos":[{"mask-linear-to":$()}],"mask-image-linear-from-color":[{"mask-linear-from":L()}],"mask-image-linear-to-color":[{"mask-linear-to":L()}],"mask-image-t-from-pos":[{"mask-t-from":$()}],"mask-image-t-to-pos":[{"mask-t-to":$()}],"mask-image-t-from-color":[{"mask-t-from":L()}],"mask-image-t-to-color":[{"mask-t-to":L()}],"mask-image-r-from-pos":[{"mask-r-from":$()}],"mask-image-r-to-pos":[{"mask-r-to":$()}],"mask-image-r-from-color":[{"mask-r-from":L()}],"mask-image-r-to-color":[{"mask-r-to":L()}],"mask-image-b-from-pos":[{"mask-b-from":$()}],"mask-image-b-to-pos":[{"mask-b-to":$()}],"mask-image-b-from-color":[{"mask-b-from":L()}],"mask-image-b-to-color":[{"mask-b-to":L()}],"mask-image-l-from-pos":[{"mask-l-from":$()}],"mask-image-l-to-pos":[{"mask-l-to":$()}],"mask-image-l-from-color":[{"mask-l-from":L()}],"mask-image-l-to-color":[{"mask-l-to":L()}],"mask-image-x-from-pos":[{"mask-x-from":$()}],"mask-image-x-to-pos":[{"mask-x-to":$()}],"mask-image-x-from-color":[{"mask-x-from":L()}],"mask-image-x-to-color":[{"mask-x-to":L()}],"mask-image-y-from-pos":[{"mask-y-from":$()}],"mask-image-y-to-pos":[{"mask-y-to":$()}],"mask-image-y-from-color":[{"mask-y-from":L()}],"mask-image-y-to-color":[{"mask-y-to":L()}],"mask-image-radial":[{"mask-radial":[k,A]}],"mask-image-radial-from-pos":[{"mask-radial-from":$()}],"mask-image-radial-to-pos":[{"mask-radial-to":$()}],"mask-image-radial-from-color":[{"mask-radial-from":L()}],"mask-image-radial-to-color":[{"mask-radial-to":L()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":y()}],"mask-image-conic-pos":[{"mask-conic":[H]}],"mask-image-conic-from-pos":[{"mask-conic-from":$()}],"mask-image-conic-to-pos":[{"mask-conic-to":$()}],"mask-image-conic-from-color":[{"mask-conic-from":L()}],"mask-image-conic-to-color":[{"mask-conic-to":L()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:j()}],"mask-repeat":[{mask:G()}],"mask-size":[{mask:X()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",k,A]}],filter:[{filter:["","none",k,A]}],blur:[{blur:et()}],brightness:[{brightness:[H,k,A]}],contrast:[{contrast:[H,k,A]}],"drop-shadow":[{"drop-shadow":["","none",v,Fe,Be]}],"drop-shadow-color":[{"drop-shadow":L()}],grayscale:[{grayscale:["",H,k,A]}],"hue-rotate":[{"hue-rotate":[H,k,A]}],invert:[{invert:["",H,k,A]}],saturate:[{saturate:[H,k,A]}],sepia:[{sepia:["",H,k,A]}],"backdrop-filter":[{"backdrop-filter":["","none",k,A]}],"backdrop-blur":[{"backdrop-blur":et()}],"backdrop-brightness":[{"backdrop-brightness":[H,k,A]}],"backdrop-contrast":[{"backdrop-contrast":[H,k,A]}],"backdrop-grayscale":[{"backdrop-grayscale":["",H,k,A]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[H,k,A]}],"backdrop-invert":[{"backdrop-invert":["",H,k,A]}],"backdrop-opacity":[{"backdrop-opacity":[H,k,A]}],"backdrop-saturate":[{"backdrop-saturate":[H,k,A]}],"backdrop-sepia":[{"backdrop-sepia":["",H,k,A]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",k,A]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[H,"initial",k,A]}],ease:[{ease:["linear","initial",d,k,A]}],delay:[{delay:[H,k,A]}],animate:[{animate:["none",m,k,A]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[_,k,A]}],"perspective-origin":[{"perspective-origin":C()}],rotate:[{rotate:B()}],"rotate-x":[{"rotate-x":B()}],"rotate-y":[{"rotate-y":B()}],"rotate-z":[{"rotate-z":B()}],scale:[{scale:N()}],"scale-x":[{"scale-x":N()}],"scale-y":[{"scale-y":N()}],"scale-z":[{"scale-z":N()}],"scale-3d":["scale-3d"],skew:[{skew:Vt()}],"skew-x":[{"skew-x":Vt()}],"skew-y":[{"skew-y":Vt()}],transform:[{transform:[k,A,"","none","gpu","cpu"]}],"transform-origin":[{origin:C()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ft()}],"translate-x":[{"translate-x":ft()}],"translate-y":[{"translate-y":ft()}],"translate-z":[{"translate-z":ft()}],"translate-none":["translate-none"],zoom:[{zoom:[It,k,A]}],accent:[{accent:L()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:L()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",k,A]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":L()}],"scrollbar-track-color":[{"scrollbar-track":L()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mbs":[{"scroll-mbs":w()}],"scroll-mbe":[{"scroll-mbe":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pbs":[{"scroll-pbs":w()}],"scroll-pbe":[{"scroll-pbe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",k,A]}],fill:[{fill:["none",...L()]}],"stroke-w":[{stroke:[H,he,sr,Da]}],stroke:[{stroke:["none",...L()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},vf=(r,{cacheSize:t,prefix:e,experimentalParseClassName:i,extend:n={},override:a={}})=>(Ur(r,"cacheSize",t),Ur(r,"prefix",e),Ur(r,"experimentalParseClassName",i),He(r.theme,a.theme),He(r.classGroups,a.classGroups),He(r.conflictingClassGroups,a.conflictingClassGroups),He(r.conflictingClassGroupModifiers,a.conflictingClassGroupModifiers),Ur(r,"postfixLookupClassGroups",a.postfixLookupClassGroups),Ur(r,"orderSensitiveModifiers",a.orderSensitiveModifiers),Ne(r.theme,n.theme),Ne(r.classGroups,n.classGroups),Ne(r.conflictingClassGroups,n.conflictingClassGroups),Ne(r.conflictingClassGroupModifiers,n.conflictingClassGroupModifiers),En(r,n,"postfixLookupClassGroups"),En(r,n,"orderSensitiveModifiers"),r),Ur=(r,t,e)=>{e!==void 0&&(r[t]=e)},He=(r,t)=>{if(t)for(const e in t)Ur(r,e,t[e])},Ne=(r,t)=>{if(t)for(const e in t)En(r,t,e)},En=(r,t,e)=>{const i=t[e];i!==void 0&&(r[e]=r[e]?r[e].concat(i):i)},df=(r,...t)=>typeof r=="function"?Dn(In,r,...t):Dn(()=>vf(In(),r),...t),pf=Dn(In);var gf=/\s+/g,_f=r=>typeof r!="string"||!r?r:r.replace(gf," ").trim(),wi=(...r)=>{const t=[],e=i=>{if(!i&&i!==0&&i!==0n)return;if(Array.isArray(i)){for(let a=0,o=i.length;a<o;a++)e(i[a]);return}const n=typeof i;if(n==="string"||n==="number"||n==="bigint"){if(n==="number"&&i!==i)return;t.push(String(i))}else if(n==="object"){const a=Object.keys(i);for(let o=0,s=a.length;o<s;o++){const l=a[o];i[l]&&t.push(l)}}};for(let i=0,n=r.length;i<n;i++){const a=r[i];a!=null&&e(a)}return t.length>0?_f(t.join(" ")):void 0},Oa=r=>r===!1?"false":r===!0?"true":r===0?"0":r,dt=r=>{if(!r||typeof r!="object")return!0;for(const t in r)return!1;return!0},mf=(r,t)=>{if(r===t)return!0;if(!r||!t)return!1;const e=Object.keys(r),i=Object.keys(t);if(e.length!==i.length)return!1;for(let n=0;n<e.length;n++){const a=e[n];if(!i.includes(a)||r[a]!==t[a])return!1}return!0},yf=(r,t)=>{for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e)){const i=t[e];e in r?r[e]=wi(r[e],i):r[e]=i}return r},vs=(r,t)=>{for(let e=0;e<r.length;e++){const i=r[e];Array.isArray(i)?vs(i,t):i&&t.push(i)}},ds=(...r)=>{const t=[];vs(r,t);const e=[];for(let i=0;i<t.length;i++)t[i]&&e.push(t[i]);return e},On=(r,t)=>{const e={};for(const i in r){const n=r[i];if(i in t){const a=t[i];Array.isArray(n)||Array.isArray(a)?e[i]=ds(a,n):typeof n=="object"&&typeof a=="object"&&n&&a?e[i]=On(n,a):e[i]=a+" "+n}else e[i]=n}for(const i in t)i in r||(e[i]=t[i]);return e},bf={twMerge:!0,twMergeConfig:{}};function wf(){let r=null,t={},e=!1;return{get cachedTwMerge(){return r},set cachedTwMerge(i){r=i},get cachedTwMergeConfig(){return t},set cachedTwMergeConfig(i){t=i},get didTwMergeConfigChange(){return e},set didTwMergeConfigChange(i){e=i},reset(){r=null,t={},e=!1}}}var Zt=wf(),Tf=r=>{const t=(i,n)=>{const{extend:a=null,slots:o={},variants:s={},compoundVariants:l=[],compoundSlots:f=[],defaultVariants:u={}}=i,h={...bf,...n},c=a?.base?wi(a.base,i?.base):i?.base,v=a?.variants&&!dt(a.variants)?On(s,a.variants):s,p=a?.defaultVariants&&!dt(a.defaultVariants)?{...a.defaultVariants,...u}:u;!dt(h.twMergeConfig)&&!mf(h.twMergeConfig,Zt.cachedTwMergeConfig)&&(Zt.didTwMergeConfigChange=!0,Zt.cachedTwMergeConfig=h.twMergeConfig);const _=dt(a?.slots),g=dt(o)?{}:{base:wi(i?.base,_&&a?.base),...o},d=_?g:yf({...a?.slots},dt(g)?{base:i?.base}:g),m=dt(a?.compoundVariants)?l:ds(a?.compoundVariants,l),b=C=>{if(dt(v)&&dt(o)&&_)return r(c,C?.class,C?.className)(h);if(m&&!Array.isArray(m))throw new TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof m}`);if(f&&!Array.isArray(f))throw new TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof f}`);const T=(x,I=v,E=null,z=null)=>{const F=I[x];if(!F||dt(F))return null;const V=z?.[x]??C?.[x];if(V===null)return null;const L=Oa(V);if(typeof L=="object")return null;const j=p?.[x],G=L??Oa(j);return F[G||"false"]},M=()=>{if(!v)return null;const x=Object.keys(v),I=[];for(let E=0;E<x.length;E++){const z=T(x[E],v);z&&I.push(z)}return I},w=(x,I)=>{if(!v||typeof v!="object")return null;const E=[];for(const z in v){const F=T(z,v,x,I),V=x==="base"&&typeof F=="string"?F:F&&F[x];V&&E.push(V)}return E},S={};for(const x in C){const I=C[x];I!==void 0&&(S[x]=I)}const P=(x,I)=>{const E=typeof C?.[x]=="object"?{[x]:C[x]?.initial}:{};return{...p,...S,...E,...I}},R=(x=[],I)=>{const E=[],z=x.length;for(let F=0;F<z;F++){const{class:V,className:L,...j}=x[F];let G=!0;const X=P(null,I);for(const Q in j){const W=j[Q],U=X[Q];if(Array.isArray(W)){if(!W.includes(U)){G=!1;break}}else{if((W==null||W===!1)&&(U==null||U===!1))continue;if(U!==W){G=!1;break}}}G&&(V&&E.push(V),L&&E.push(L))}return E},O=x=>{const I=R(m,x);if(!Array.isArray(I))return I;const E={},z=r;for(let F=0;F<I.length;F++){const V=I[F];if(typeof V=="string")E.base=z(E.base,V)(h);else if(typeof V=="object")for(const L in V)E[L]=z(E[L],V[L])(h)}return E},D=x=>{if(f.length<1)return null;const I={},E=P(null,x);for(let z=0;z<f.length;z++){const{slots:F=[],class:V,className:L,...j}=f[z];if(!dt(j)){let G=!0;for(const X in j){const Q=E[X],W=j[X];if(Q===void 0||(Array.isArray(W)?!W.includes(Q):W!==Q)){G=!1;break}}if(!G)continue}for(let G=0;G<F.length;G++){const X=F[G];I[X]||(I[X]=[]),I[X].push([V,L])}}return I};if(!dt(o)||!_){const x={};if(typeof d=="object"&&!dt(d)){const I=r;for(const E in d)x[E]=z=>{const F=O(z),V=D(z);return I(d[E],w(E,z),F?F[E]:void 0,V?V[E]:void 0,z?.class,z?.className)(h)}}return x}return r(c,M(),R(m),C?.class,C?.className)(h)},y=()=>{if(!(!v||typeof v!="object"))return Object.keys(v)};return b.variantKeys=y(),b.extend=a,b.base=c,b.slots=d,b.variants=v,b.defaultVariants=p,b.compoundSlots=f,b.compoundVariants=m,b};return{tv:t,createTV:i=>(n,a)=>t(n,a?On(i,a):i)}},Cf=r=>dt(r)?pf:df({...r,extend:{theme:r.theme,classGroups:r.classGroups,conflictingClassGroupModifiers:r.conflictingClassGroupModifiers,conflictingClassGroups:r.conflictingClassGroups,...r.extend}}),xf=(r,t)=>{const e=wi(r);return!e||!(t?.twMerge??!0)?e:((!Zt.cachedTwMerge||Zt.didTwMergeConfigChange)&&(Zt.didTwMergeConfigChange=!1,Zt.cachedTwMerge=Cf(Zt.cachedTwMergeConfig)),Zt.cachedTwMerge(e)||void 0)},Sf=(...r)=>t=>xf(r,t),{tv:Iv}=Tf(Sf);var zn=function(r,t){return zn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,i){e.__proto__=i}||function(e,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])},zn(r,t)};function Z(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");zn(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var da=12,Mf="sans-serif",nr=da+"px "+Mf,Pf=20,Lf=100,Rf="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function Af(r){var t={};if(typeof JSON>"u")return t;for(var e=0;e<r.length;e++){var i=String.fromCharCode(e+32),n=(r.charCodeAt(e)-Pf)/Lf;t[i]=n}return t}var kf=Af(Rf),bt={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:(function(){var r,t;return function(e,i){if(!r){var n=bt.createCanvas();r=n&&n.getContext("2d")}if(r)return t!==i&&(t=r.font=i||nr),r.measureText(e);e=e||"",i=i||nr;var a=/((?:\d+)?\.?\d*)px/.exec(i),o=a&&+a[1]||da,s=0;if(i.indexOf("mono")>=0)s=o*e.length;else for(var l=0;l<e.length;l++){var f=kf[e[l]];s+=f==null?o:f*o}return{width:s}}})(),loadImage:function(r,t,e){var i=new Image;return i.onload=t,i.onerror=e,i.src=r,i},getTime:function(){return Date.now?Date.now():+new Date}};function Ev(r){for(var t in bt)bt.hasOwnProperty(t)&&r[t]&&(bt[t]=r[t])}var ps=Ie(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(r,t){return r["[object "+t+"]"]=!0,r},{}),gs=Ie(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(r,t){return r["[object "+t+"Array]"]=!0,r},{}),fe=Object.prototype.toString,Ii=Array.prototype,Df=Ii.forEach,If=Ii.filter,pa=Ii.slice,Ef=Ii.map,za=(function(){}).constructor,Ge=za?za.prototype:null,ga="__proto__",Yi=2311,Of=Math.pow(2,53)-1;function _a(){return Yi>=Of&&(Yi=0),Yi++}function Ei(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];typeof console<"u"&&console.error.apply(console,r)}function zr(r){if(r==null||typeof r!="object")return r;var t=r,e=fe.call(r);if(e==="[object Array]"){if(!ee(r)){t=[];for(var i=0,n=r.length;i<n;i++)t[i]=zr(r[i])}}else if(gs[e]){if(!ee(r)){var a=r.constructor;if(a.from)t=a.from(r);else{t=new a(r.length);for(var i=0,n=r.length;i<n;i++)t[i]=r[i]}}}else if(!ps[e]&&!ee(r)&&!Ti(r)){t={};for(var o in r)r.hasOwnProperty(o)&&o!==ga&&(t[o]=zr(r[o]))}return t}function re(r,t,e){if(!Gt(t)||!Gt(r))return e?zr(t):r;for(var i in t)if(t.hasOwnProperty(i)&&i!==ga){var n=r[i],a=t[i];Gt(a)&&Gt(n)&&!oe(a)&&!oe(n)&&!Ti(a)&&!Ti(n)&&!Fn(a)&&!Fn(n)&&!ee(a)&&!ee(n)?re(n,a,e):(e||!(i in r))&&(r[i]=zr(t[i]))}return r}function zf(r,t){for(var e=r[0],i=1,n=r.length;i<n;i++)e=re(e,r[i],t);return e}function K(r,t){if(Object.assign)Object.assign(r,t);else for(var e in t)t.hasOwnProperty(e)&&e!==ga&&(r[e]=t[e]);return r}function _s(r,t,e){r=r||{};for(var i=0;i<e.length;i++){var n=e[i];r[n]=t[n]}return r}function or(r,t,e){for(var i=_t(t),n=0,a=i.length;n<a;n++){var o=i[n];(e?t[o]!=null:r[o]==null)&&(r[o]=t[o])}return r}var Bf=bt.createCanvas;function Ht(r,t){if(r){if(r.indexOf)return r.indexOf(t);for(var e=0,i=r.length;e<i;e++)if(r[e]===t)return e}return-1}function Ff(r,t){var e=r.prototype;function i(){}i.prototype=t.prototype,r.prototype=new i;for(var n in e)e.hasOwnProperty(n)&&(r.prototype[n]=e[n]);r.prototype.constructor=r,r.superClass=t}function ma(r,t,e){if(r="prototype"in r?r.prototype:r,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var i=Object.getOwnPropertyNames(t),n=0;n<i.length;n++){var a=i[n];a!=="constructor"&&(e?t[a]!=null:r[a]==null)&&(r[a]=t[a])}else or(r,t,e)}function kt(r){return!r||typeof r=="string"?!1:typeof r.length=="number"}function gt(r,t,e){if(r&&t)if(r.forEach&&r.forEach===Df)r.forEach(t,e);else if(r.length===+r.length)for(var i=0,n=r.length;i<n;i++)t.call(e,r[i],i,r);else for(var a in r)r.hasOwnProperty(a)&&t.call(e,r[a],a,r)}function Br(r,t,e){if(!r)return[];if(!t)return ya(r);if(r.map&&r.map===Ef)return r.map(t,e);for(var i=[],n=0,a=r.length;n<a;n++)i.push(t.call(e,r[n],n,r));return i}function Ie(r,t,e,i){if(r&&t){for(var n=0,a=r.length;n<a;n++)e=t.call(i,e,r[n],n,r);return e}}function Bn(r,t,e){if(!r)return[];if(!t)return ya(r);if(r.filter&&r.filter===If)return r.filter(t,e);for(var i=[],n=0,a=r.length;n<a;n++)t.call(e,r[n],n,r)&&i.push(r[n]);return i}function Hf(r,t,e){if(r&&t){for(var i=0,n=r.length;i<n;i++)if(t.call(e,r[i],i,r))return r[i]}}function _t(r){if(!r)return[];if(Object.keys)return Object.keys(r);var t=[];for(var e in r)r.hasOwnProperty(e)&&t.push(e);return t}function Nf(r,t){for(var e=[],i=2;i<arguments.length;i++)e[i-2]=arguments[i];return function(){return r.apply(t,e.concat(pa.call(arguments)))}}var Gf=Ge&&Ar(Ge.bind)?Ge.call.bind(Ge.bind):Nf;function Wf(r){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];return function(){return r.apply(this,t.concat(pa.call(arguments)))}}function oe(r){return Array.isArray?Array.isArray(r):fe.call(r)==="[object Array]"}function Ar(r){return typeof r=="function"}function Le(r){return typeof r=="string"}function Yf(r){return fe.call(r)==="[object String]"}function Te(r){return typeof r=="number"}function Gt(r){var t=typeof r;return t==="function"||!!r&&t==="object"}function Fn(r){return!!ps[fe.call(r)]}function ms(r){return!!gs[fe.call(r)]}function Ti(r){return typeof r=="object"&&typeof r.nodeType=="number"&&typeof r.ownerDocument=="object"}function Ee(r){return r.colorStops!=null}function ys(r){return r.image!=null}function Vf(r){return fe.call(r)==="[object RegExp]"}function bs(r){return r!==r}function Xf(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];for(var e=0,i=r.length;e<i;e++)if(r[e]!=null)return r[e]}function ct(r,t){return r??t}function Ce(r,t,e){return r??t??e}function ya(r){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];return pa.apply(r,t)}function ws(r){if(typeof r=="number")return[r,r,r,r];var t=r.length;return t===2?[r[0],r[1],r[0],r[1]]:t===3?[r[0],r[1],r[2],r[1]]:r}function $f(r,t){if(!r)throw new Error(t)}function Qr(r){return r==null?null:typeof r.trim=="function"?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var Ts="__ec_primitive__";function qf(r){r[Ts]=!0}function ee(r){return r[Ts]}var Uf=(function(){function r(){this.data={}}return r.prototype.delete=function(t){var e=this.has(t);return e&&delete this.data[t],e},r.prototype.has=function(t){return this.data.hasOwnProperty(t)},r.prototype.get=function(t){return this.data[t]},r.prototype.set=function(t,e){return this.data[t]=e,this},r.prototype.keys=function(){return _t(this.data)},r.prototype.forEach=function(t){var e=this.data;for(var i in e)e.hasOwnProperty(i)&&t(e[i],i)},r})(),Cs=typeof Map=="function";function Zf(){return Cs?new Map:new Uf}var xs=(function(){function r(t){var e=oe(t);this.data=Zf();var i=this;t instanceof r?t.each(n):t&&gt(t,n);function n(a,o){e?i.set(a,o):i.set(o,a)}}return r.prototype.hasKey=function(t){return this.data.has(t)},r.prototype.get=function(t){return this.data.get(t)},r.prototype.set=function(t,e){return this.data.set(t,e),e},r.prototype.each=function(t,e){this.data.forEach(function(i,n){t.call(e,i,n)})},r.prototype.keys=function(){var t=this.data.keys();return Cs?Array.from(t):t},r.prototype.removeKey=function(t){this.data.delete(t)},r})();function Ss(r){return new xs(r)}function Qf(r,t){for(var e=new r.constructor(r.length+t.length),i=0;i<r.length;i++)e[i]=r[i];for(var n=r.length,i=0;i<t.length;i++)e[i+n]=t[i];return e}function Oe(r,t){var e;if(Object.create)e=Object.create(r);else{var i=function(){};i.prototype=r,e=new i}return t&&K(e,t),e}function ba(r){var t=r.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function Kf(r,t){return r.hasOwnProperty(t)}function kr(){}var Ms=180/Math.PI,jf=Number.EPSILON||Math.pow(2,-52);const Ov=Object.freeze(Object.defineProperty({__proto__:null,EPSILON:jf,HashMap:xs,RADIAN_TO_DEGREE:Ms,assert:$f,assignProps:_s,bind:Gf,clone:zr,concatArray:Qf,createCanvas:Bf,createHashMap:Ss,createObject:Oe,curry:Wf,defaults:or,disableUserSelect:ba,each:gt,eqNaN:bs,extend:K,filter:Bn,find:Hf,guid:_a,hasOwn:Kf,indexOf:Ht,inherits:Ff,isArray:oe,isArrayLike:kt,isBuiltInObject:Fn,isDom:Ti,isFunction:Ar,isGradientObject:Ee,isImagePatternObject:ys,isNumber:Te,isObject:Gt,isPrimitive:ee,isRegExp:Vf,isString:Le,isStringSafe:Yf,isTypedArray:ms,keys:_t,logError:Ei,map:Br,merge:re,mergeAll:zf,mixin:ma,noop:kr,normalizeCssArray:ws,reduce:Ie,retrieve:Xf,retrieve2:ct,retrieve3:Ce,setAsPrimitive:qf,slice:ya,trim:Qr},Symbol.toStringTag,{value:"Module"}));var Jf=(function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r})(),tu=(function(){function r(){this.browser=new Jf,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return r})(),J=new tu;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(J.wxa=!0,J.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?J.worker=!0:!J.hasGlobalWindow||"Deno"in window||typeof navigator<"u"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Node.js")>-1?(J.node=!0,J.svgSupported=!0):ru(navigator.userAgent,J);function ru(r,t){var e=t.browser,i=r.match(/Firefox\/([\d.]+)/),n=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),a=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);i&&(e.firefox=!0,e.version=i[1]),n&&(e.ie=!0,e.version=n[1]),a&&(e.edge=!0,e.version=a[1],e.newEdge=+a[1].split(".")[0]>18),o&&(e.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!e.ie&&!e.edge,t.pointerEventsSupported="onpointerdown"in window&&(e.edge||e.ie&&+e.version>=11);var s=t.domSupported=typeof document<"u";if(s){var l=document.documentElement.style;t.transform3dSupported=(e.ie&&"transition"in l||e.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in l)&&!("OTransition"in l),t.transformSupported=t.transform3dSupported||e.ie&&+e.version>=9}}var Ps=(function(){function r(t){this.value=t}return r})(),eu=(function(){function r(){this._len=0}return r.prototype.insert=function(t){var e=new Ps(t);return this.insertEntry(e),e},r.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},r.prototype.remove=function(t){var e=t.prev,i=t.next;e?e.next=i:this.head=i,i?i.prev=e:this.tail=e,t.next=t.prev=null,this._len--},r.prototype.len=function(){return this._len},r.prototype.clear=function(){this.head=this.tail=null,this._len=0},r})(),Re=(function(){function r(t){this._list=new eu,this._maxSize=10,this._map={},this._maxSize=t}return r.prototype.put=function(t,e){var i=this._list,n=this._map,a=null;if(n[t]==null){var o=i.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=i.head;i.remove(l),delete n[l.key],a=l.value,this._lastRemovedEntry=l}s?s.value=e:s=new Ps(e),s.key=t,i.insertEntry(s),n[t]=s}return a},r.prototype.get=function(t){var e=this._map[t],i=this._list;if(e!=null)return e!==i.tail&&(i.remove(e),i.insertEntry(e)),e.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r})(),Hn=new Re(50);function iu(r){if(typeof r=="string"){var t=Hn.get(r);return t&&t.image}else return r}function Ls(r,t,e,i,n){if(r)if(typeof r=="string"){if(t&&t.__zrImageSrc===r||!e)return t;var a=Hn.get(r),o={hostEl:e,cb:i,cbPayload:n};return a?(t=a.image,!Oi(t)&&a.pending.push(o)):(t=bt.loadImage(r,Ba,Ba),t.__zrImageSrc=r,Hn.put(r,t.__cachedImgObj={image:t,pending:[o]})),t}else return r;else return t}function Ba(){var r=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<r.pending.length;t++){var e=r.pending[t],i=e.cb;i&&i(this,e.cbPayload),e.hostEl.dirty()}r.pending.length=0}function Oi(r){return r&&r.width&&r.height}function Dr(){return[1,0,0,1,0,0]}function wa(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function Ta(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r[4]=t[4],r[5]=t[5],r}function ui(r,t,e){var i=t[0]*e[0]+t[2]*e[1],n=t[1]*e[0]+t[3]*e[1],a=t[0]*e[2]+t[2]*e[3],o=t[1]*e[2]+t[3]*e[3],s=t[0]*e[4]+t[2]*e[5]+t[4],l=t[1]*e[4]+t[3]*e[5]+t[5];return r[0]=i,r[1]=n,r[2]=a,r[3]=o,r[4]=s,r[5]=l,r}function Nn(r,t,e){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r[4]=t[4]+e[0],r[5]=t[5]+e[1],r}function Rs(r,t,e,i){i===void 0&&(i=[0,0]);var n=t[0],a=t[2],o=t[4],s=t[1],l=t[3],f=t[5],u=Math.sin(e),h=Math.cos(e);return r[0]=n*h+s*u,r[1]=-n*u+s*h,r[2]=a*h+l*u,r[3]=-a*u+h*l,r[4]=h*(o-i[0])+u*(f-i[1])+i[0],r[5]=h*(f-i[1])-u*(o-i[0])+i[1],r}function As(r,t,e){var i=e[0],n=e[1];return r[0]=t[0]*i,r[1]=t[1]*n,r[2]=t[2]*i,r[3]=t[3]*n,r[4]=t[4]*i,r[5]=t[5]*n,r}function Ca(r,t){var e=t[0],i=t[2],n=t[4],a=t[1],o=t[3],s=t[5],l=e*o-a*i;return l?(l=1/l,r[0]=o*l,r[1]=-a*l,r[2]=-i*l,r[3]=e*l,r[4]=(i*s-o*n)*l,r[5]=(a*n-e*s)*l,r):null}function nu(r){var t=Dr();return Ta(t,r),t}const zv=Object.freeze(Object.defineProperty({__proto__:null,clone:nu,copy:Ta,create:Dr,identity:wa,invert:Ca,mul:ui,rotate:Rs,scale:As,translate:Nn},Symbol.toStringTag,{value:"Module"}));function Hr(r,t){return r==null&&(r=0),t==null&&(t=0),[r,t]}function au(r,t){return r[0]=t[0],r[1]=t[1],r}function ks(r){return[r[0],r[1]]}function hi(r,t,e){return r[0]=t,r[1]=e,r}function Gn(r,t,e){return r[0]=t[0]+e[0],r[1]=t[1]+e[1],r}function ou(r,t,e,i){return r[0]=t[0]+e[0]*i,r[1]=t[1]+e[1]*i,r}function Ds(r,t,e){return r[0]=t[0]-e[0],r[1]=t[1]-e[1],r}function xa(r){return Math.sqrt(Sa(r))}var su=xa;function Sa(r){return r[0]*r[0]+r[1]*r[1]}var lu=Sa;function fu(r,t,e){return r[0]=t[0]*e[0],r[1]=t[1]*e[1],r}function uu(r,t,e){return r[0]=t[0]/e[0],r[1]=t[1]/e[1],r}function hu(r,t){return r[0]*t[0]+r[1]*t[1]}function ci(r,t,e){return r[0]=t[0]*e,r[1]=t[1]*e,r}function Is(r,t){var e=xa(t);return e===0?(r[0]=0,r[1]=0):(r[0]=t[0]/e,r[1]=t[1]/e),r}function Ci(r,t){return Math.sqrt((r[0]-t[0])*(r[0]-t[0])+(r[1]-t[1])*(r[1]-t[1]))}var Es=Ci;function Os(r,t){return(r[0]-t[0])*(r[0]-t[0])+(r[1]-t[1])*(r[1]-t[1])}var Ir=Os;function cu(r,t){return r[0]=-t[0],r[1]=-t[1],r}function vu(r,t,e,i){return r[0]=t[0]+i*(e[0]-t[0]),r[1]=t[1]+i*(e[1]-t[1]),r}function ie(r,t,e){var i=t[0],n=t[1];return r[0]=e[0]*i+e[2]*n+e[4],r[1]=e[1]*i+e[3]*n+e[5],r}function xr(r,t,e){return r[0]=Math.min(t[0],e[0]),r[1]=Math.min(t[1],e[1]),r}function Sr(r,t,e){return r[0]=Math.max(t[0],e[0]),r[1]=Math.max(t[1],e[1]),r}const Bv=Object.freeze(Object.defineProperty({__proto__:null,add:Gn,applyTransform:ie,clone:ks,copy:au,create:Hr,dist:Es,distSquare:Ir,distance:Ci,distanceSquare:Os,div:uu,dot:hu,len:xa,lenSquare:Sa,length:su,lengthSquare:lu,lerp:vu,max:Sr,min:xr,mul:fu,negate:cu,normalize:Is,scale:ci,scaleAndAdd:ou,set:hi,sub:Ds},Symbol.toStringTag,{value:"Module"}));var tt=(function(){function r(t,e){this.x=t||0,this.y=e||0}return r.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},r.prototype.clone=function(){return new r(this.x,this.y)},r.prototype.set=function(t,e){return this.x=t,this.y=e,this},r.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},r.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},r.prototype.scale=function(t){this.x*=t,this.y*=t},r.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},r.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},r.prototype.dot=function(t){return this.x*t.x+this.y*t.y},r.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},r.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},r.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},r.prototype.distance=function(t){var e=this.x-t.x,i=this.y-t.y;return Math.sqrt(e*e+i*i)},r.prototype.distanceSquare=function(t){var e=this.x-t.x,i=this.y-t.y;return e*e+i*i},r.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},r.prototype.transform=function(t){if(t){var e=this.x,i=this.y;return this.x=t[0]*e+t[2]*i+t[4],this.y=t[1]*e+t[3]*i+t[5],this}},r.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},r.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},r.set=function(t,e,i){t.x=e,t.y=i},r.copy=function(t,e){t.x=e.x,t.y=e.y},r.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},r.lenSquare=function(t){return t.x*t.x+t.y*t.y},r.dot=function(t,e){return t.x*e.x+t.y*e.y},r.add=function(t,e,i){t.x=e.x+i.x,t.y=e.y+i.y},r.sub=function(t,e,i){t.x=e.x-i.x,t.y=e.y-i.y},r.scale=function(t,e,i){t.x=e.x*i,t.y=e.y*i},r.scaleAndAdd=function(t,e,i,n){t.x=e.x+i.x*n,t.y=e.y+i.y*n},r.lerp=function(t,e,i,n){var a=1-n;t.x=a*e.x+n*i.x,t.y=a*e.y+n*i.y},r})(),Mr=Math.min,Kr=Math.max,Wn=Math.abs,Fa=["x","y"],du=["width","height"],lr=new tt,fr=new tt,ur=new tt,hr=new tt,yt=zs(),me=yt.minTv,Yn=yt.maxTv,xe=[0,0],Y=(function(){function r(t,e,i,n){Vi(this,t,e,i,n)}return r.set=function(t,e,i,n,a){return n<0&&(e=e+n,n=-n),a<0&&(i=i+a,a=-a),t.x=e,t.y=i,t.width=n,t.height=a,t},r.prototype.union=function(t){var e=Mr(t.x,this.x),i=Mr(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Kr(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Kr(t.y+t.height,this.y+this.height)-i:this.height=t.height,this.x=e,this.y=i},r.prototype.applyTransform=function(t){r.applyTransform(this,this,t)},r.prototype.calculateTransform=function(t){return pu(Dr(),this,t)},r.prototype.intersect=function(t,e,i){return r.intersect(this,t,e,i)},r.intersect=function(t,e,i,n){i&&tt.set(i,0,0);var a=n&&n.outIntersectRect||null,o=n&&n.clamp;if(a&&(a.x=a.y=a.width=a.height=NaN),!t||!e)return!1;t instanceof r||(t=Vi(gu,t.x,t.y,t.width,t.height)),e instanceof r||(e=Vi(_u,e.x,e.y,e.width,e.height));var s=!!i;yt.reset(n,s);var l=yt.touchThreshold,f=t.x+l,u=t.x+t.width-l,h=t.y+l,c=t.y+t.height-l,v=e.x+l,p=e.x+e.width-l,_=e.y+l,g=e.y+e.height-l;if(f>u||h>c||v>p||_>g)return!1;var d=!(u<v||p<f||c<_||g<h);return(s||a)&&(xe[0]=1/0,xe[1]=0,Na(f,u,v,p,0,s,a,o),Na(h,c,_,g,1,s,a,o),s&&tt.copy(i,d?yt.useDir?yt.dirMinTv:me:Yn)),d},r.contain=function(t,e,i){return e>=t.x&&e<=t.x+t.width&&i>=t.y&&i<=t.y+t.height},r.prototype.contain=function(t,e){return r.contain(this,t,e)},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(t){Ha(this,t)},r.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},r.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},r.prototype.isZero=function(){return this.width===0||this.height===0},r.create=function(t){return new r(t?t.x:0,t?t.y:0,t?t.width:0,t?t.height:0)},r.copy=function(t,e){return t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height,t},r.applyTransform=function(t,e,i){if(!i){t!==e&&Ha(t,e);return}if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var n=i[0],a=i[3],o=i[4],s=i[5];t.x=e.x*n+o,t.y=e.y*a+s,t.width=e.width*n,t.height=e.height*a,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}lr.x=ur.x=e.x,lr.y=hr.y=e.y,fr.x=hr.x=e.x+e.width,fr.y=ur.y=e.y+e.height,lr.transform(i),hr.transform(i),fr.transform(i),ur.transform(i),t.x=Mr(lr.x,fr.x,ur.x,hr.x),t.y=Mr(lr.y,fr.y,ur.y,hr.y);var l=Kr(lr.x,fr.x,ur.x,hr.x),f=Kr(lr.y,fr.y,ur.y,hr.y);t.width=l-t.x,t.height=f-t.y},r.calculateTransform=function(t,e,i){var n=i.width/e.width,a=i.height/e.height;return t=wa(t||[]),Nn(t,t,hi(Xi,-e.x,-e.y)),As(t,t,hi(Xi,n,a)),Nn(t,t,hi(Xi,i.x,i.y)),t},r})(),Fv=Y.create,Vi=Y.set,Ha=Y.copy,pu=Y.calculateTransform,Hv=Y.applyTransform,Nv=Y.contain,gu=new Y(0,0,0,0),_u=new Y(0,0,0,0),Xi=[];function Na(r,t,e,i,n,a,o,s){var l=Wn(t-e),f=Wn(i-r),u=Mr(l,f),h=Fa[n],c=Fa[1-n],v=du[n];t<e||i<r?l<f?(a&&(Yn[h]=-l),s&&(o[h]=t,o[v]=0)):(a&&(Yn[h]=f),s&&(o[h]=r,o[v]=0)):(o&&(o[h]=Kr(r,e),o[v]=Mr(t,i)-o[h]),a&&(u<xe[0]||yt.useDir)&&(xe[0]=Mr(u,xe[0]),(l<f||!yt.bidirectional)&&(me[h]=l,me[c]=0,yt.useDir&&yt.calcDirMTV()),(l>=f||!yt.bidirectional)&&(me[h]=-f,me[c]=0,yt.useDir&&yt.calcDirMTV())))}function zs(){var r=0,t=new tt,e=new tt,i={minTv:new tt,maxTv:new tt,useDir:!1,dirMinTv:new tt,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(a,o){i.touchThreshold=0,a&&a.touchThreshold!=null&&(i.touchThreshold=Kr(0,a.touchThreshold)),i.negativeSize=!1,o&&(i.minTv.set(1/0,1/0),i.maxTv.set(0,0),i.useDir=!1,a&&a.direction!=null&&(i.useDir=!0,i.dirMinTv.copy(i.minTv),e.copy(i.minTv),r=a.direction,i.bidirectional=a.bidirectional==null||!!a.bidirectional,i.bidirectional||t.set(Math.cos(r),Math.sin(r))))},calcDirMTV:function(){var a=i.minTv,o=i.dirMinTv,s=a.y*a.y+a.x*a.x,l=Math.sin(r),f=Math.cos(r),u=l*a.y+f*a.x;if(n(u)){n(a.x)&&n(a.y)&&o.set(0,0);return}if(e.x=s*f/u,e.y=s*l/u,n(e.x)&&n(e.y)){o.set(0,0);return}(i.bidirectional||t.dot(e)>0)&&e.len()<o.len()&&o.copy(e)}};function n(a){return Wn(a)<1e-10}return i}function Wt(r){We||(We=new Re(100)),r=r||nr;var t=We.get(r);return t||(t={font:r,strWidthCache:new Re(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:bt.measureText("国",r).width,asciiCharWidth:bt.measureText("a",r).width},We.put(r,t)),t}var We;function mu(r){if(!($i>=Ga)){r=r||nr;for(var t=[],e=+new Date,i=0;i<=127;i++)t[i]=bt.measureText(String.fromCharCode(i),r).width;var n=+new Date-e;return n>16?$i=Ga:n>2&&$i++,t}}var $i=0,Ga=5;function Bs(r,t){return r.asciiWidthMapTried||(r.asciiWidthMap=mu(r.font),r.asciiWidthMapTried=!0),0<=t&&t<=127?r.asciiWidthMap!=null?r.asciiWidthMap[t]:r.asciiCharWidth:r.stWideCharWidth}function Yt(r,t){var e=r.strWidthCache,i=e.get(t);return i==null&&(i=bt.measureText(t,r.font).width,e.put(t,i)),i}function Wa(r,t,e,i){var n=Yt(Wt(t),r),a=zi(t),o=se(0,n,e),s=Er(0,a,i),l=new Y(o,s,n,a);return l}function Gv(r,t,e,i){var n=((r||"")+"").split(`
2
+ `),a=n.length;if(a===1)return Wa(n[0],t,e,i);for(var o=new Y(0,0,0,0),s=0;s<n.length;s++){var l=Wa(n[s],t,e,i);s===0?o.copy(l):o.union(l)}return o}function se(r,t,e,i){return e==="right"?i?r+=t:r-=t:e==="center"&&(i?r+=t/2:r-=t/2),r}function Er(r,t,e,i){return e==="middle"?i?r+=t/2:r-=t/2:e==="bottom"&&(i?r+=t:r-=t),r}function zi(r){return Wt(r).stWideCharWidth}function Ae(r,t){return typeof r=="string"?r.lastIndexOf("%")>=0?parseFloat(r)/100*t:parseFloat(r):r}function yu(r,t,e){var i=t.position||"inside",n=t.distance!=null?t.distance:5,a=e.height,o=e.width,s=a/2,l=e.x,f=e.y,u="left",h="top";if(i instanceof Array)l+=Ae(i[0],e.width),f+=Ae(i[1],e.height),u=null,h=null;else switch(i){case"left":l-=n,f+=s,u="right",h="middle";break;case"right":l+=n+o,f+=s,h="middle";break;case"top":l+=o/2,f-=n,u="center",h="bottom";break;case"bottom":l+=o/2,f+=a+n,u="center";break;case"inside":l+=o/2,f+=s,u="center",h="middle";break;case"insideLeft":l+=n,f+=s,h="middle";break;case"insideRight":l+=o-n,f+=s,u="right",h="middle";break;case"insideTop":l+=o/2,f+=n,u="center";break;case"insideBottom":l+=o/2,f+=a-n,u="center",h="bottom";break;case"insideTopLeft":l+=n,f+=n;break;case"insideTopRight":l+=o-n,f+=n,u="right";break;case"insideBottomLeft":l+=n,f+=a-n,h="bottom";break;case"insideBottomRight":l+=o-n,f+=a-n,u="right",h="bottom";break}return r=r||{},r.x=l,r.y=f,r.align=u,r.verticalAlign=h,r}var qi=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function Wv(r,t,e,i,n){var a={};return Fs(a,r,t,e,i,n),a.text}function Fs(r,t,e,i,n,a){if(!e){r.text="",r.isTruncated=!1;return}var o=(t+"").split(`
3
+ `);a=Hs(e,i,n,a);for(var s=!1,l={},f=0,u=o.length;f<u;f++)Ns(l,o[f],a),o[f]=l.textLine,s=s||l.isTruncated;r.text=o.join(`
4
+ `),r.isTruncated=s}function Hs(r,t,e,i){i=i||{};var n=K({},i);e=ct(e,"..."),n.maxIterations=ct(i.maxIterations,2);var a=n.minChar=ct(i.minChar,0),o=n.fontMeasureInfo=Wt(t),s=o.asciiCharWidth;n.placeholder=ct(i.placeholder,"");for(var l=r=Math.max(0,r-1),f=0;f<a&&l>=s;f++)l-=s;var u=Yt(o,e);return u>l&&(e="",u=0),l=r-u,n.ellipsis=e,n.ellipsisWidth=u,n.contentWidth=l,n.containerWidth=r,n}function Ns(r,t,e){var i=e.containerWidth,n=e.contentWidth,a=e.fontMeasureInfo;if(!i){r.textLine="",r.isTruncated=!1;return}var o=Yt(a,t);if(o<=i){r.textLine=t,r.isTruncated=!1;return}for(var s=0;;s++){if(o<=n||s>=e.maxIterations){t+=e.ellipsis;break}var l=s===0?bu(t,n,a):o>0?Math.floor(t.length*n/o):0;t=t.substr(0,l),o=Yt(a,t)}t===""&&(t=e.placeholder),r.textLine=t,r.isTruncated=!0}function bu(r,t,e){for(var i=0,n=0,a=r.length;n<a&&i<t;n++)i+=Bs(e,r.charCodeAt(n));return n}function wu(r,t,e,i){var n=Ma(r),a=t.overflow,o=t.padding,s=o?o[1]+o[3]:0,l=o?o[0]+o[2]:0,f=t.font,u=a==="truncate",h=zi(f),c=ct(t.lineHeight,h),v=t.lineOverflow==="truncate",p=!1,_=t.width;_==null&&e!=null&&(_=e-s);var g=t.height;g==null&&i!=null&&(g=i-l);var d;_!=null&&(a==="break"||a==="breakAll")?d=n?Gs(n,t.font,_,a==="breakAll",0).lines:[]:d=n?n.split(`
5
+ `):[];var m=d.length*c;if(g==null&&(g=m),m>g&&v){var b=Math.floor(g/c);p=p||d.length>b,d=d.slice(0,b),m=d.length*c}if(n&&u&&_!=null)for(var y=Hs(_,f,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),C={},T=0;T<d.length;T++)Ns(C,d[T],y),d[T]=C.textLine,p=p||C.isTruncated;for(var M=g,w=0,S=Wt(f),T=0;T<d.length;T++)w=Math.max(Yt(S,d[T]),w);_==null&&(_=w);var P=_;return M+=l,P+=s,{lines:d,height:g,outerWidth:P,outerHeight:M,lineHeight:c,calculatedLineHeight:h,contentWidth:w,contentHeight:m,width:_,isTruncated:p}}var Tu=(function(){function r(){}return r})(),Ya=(function(){function r(t){this.tokens=[],t&&(this.tokens=t)}return r})(),Cu=(function(){function r(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return r})();function xu(r,t,e,i,n){var a=new Cu,o=Ma(r);if(!o)return a;var s=t.padding,l=s?s[1]+s[3]:0,f=s?s[0]+s[2]:0,u=t.width;u==null&&e!=null&&(u=e-l);var h=t.height;h==null&&i!=null&&(h=i-f);for(var c=t.overflow,v=(c==="break"||c==="breakAll")&&u!=null?{width:u,accumWidth:0,breakAll:c==="breakAll"}:null,p=qi.lastIndex=0,_;(_=qi.exec(o))!=null;){var g=_.index;g>p&&Ui(a,o.substring(p,g),t,v),Ui(a,_[2],t,v,_[1]),p=qi.lastIndex}p<o.length&&Ui(a,o.substring(p,o.length),t,v);var d=[],m=0,b=0,y=c==="truncate",C=t.lineOverflow==="truncate",T={};function M(U,mt,Dt){U.width=mt,U.lineHeight=Dt,m+=Dt,b=Math.max(b,mt)}t:for(var w=0;w<a.lines.length;w++){for(var S=a.lines[w],P=0,R=0,O=0;O<S.tokens.length;O++){var D=S.tokens[O],x=D.styleName&&t.rich[D.styleName]||{},I=D.textPadding=x.padding,E=I?I[1]+I[3]:0,z=D.font=x.font||t.font;D.contentHeight=zi(z);var F=ct(x.height,D.contentHeight);if(D.innerHeight=F,I&&(F+=I[0]+I[2]),D.height=F,D.lineHeight=Ce(x.lineHeight,t.lineHeight,F),D.align=x&&x.align||n,D.verticalAlign=x&&x.verticalAlign||"middle",C&&h!=null&&m+D.lineHeight>h){var V=a.lines.length;O>0?(S.tokens=S.tokens.slice(0,O),M(S,R,P),a.lines=a.lines.slice(0,w+1)):a.lines=a.lines.slice(0,w),a.isTruncated=a.isTruncated||a.lines.length<V;break t}var L=x.width,j=L==null||L==="auto";if(typeof L=="string"&&L.charAt(L.length-1)==="%")D.percentWidth=L,d.push(D),D.contentWidth=Yt(Wt(z),D.text);else{if(j){var G=x.backgroundColor,X=G&&G.image;X&&(X=iu(X),Oi(X)&&(D.width=Math.max(D.width,X.width*F/X.height)))}var Q=y&&u!=null?u-R:null;Q!=null&&Q<D.width?!j||Q<E?(D.text="",D.width=D.contentWidth=0):(Fs(T,D.text,Q-E,z,t.ellipsis,{minChar:t.truncateMinChar}),D.text=T.text,a.isTruncated=a.isTruncated||T.isTruncated,D.width=D.contentWidth=Yt(Wt(z),D.text)):D.contentWidth=Yt(Wt(z),D.text)}D.width+=E,R+=D.width,x&&(P=Math.max(P,D.lineHeight))}M(S,R,P)}a.outerWidth=a.width=ct(u,b),a.outerHeight=a.height=ct(h,m),a.contentHeight=m,a.contentWidth=b,a.outerWidth+=l,a.outerHeight+=f;for(var w=0;w<d.length;w++){var D=d[w],W=D.percentWidth;D.width=parseInt(W,10)/100*a.width}return a}function Ui(r,t,e,i,n){var a=t==="",o=n&&e.rich[n]||{},s=r.lines,l=o.font||e.font,f=!1,u,h;if(i){var c=o.padding,v=c?c[1]+c[3]:0;if(o.width!=null&&o.width!=="auto"){var p=Ae(o.width,i.width)+v;s.length>0&&p+i.accumWidth>i.width&&(u=t.split(`
6
+ `),f=!0),i.accumWidth=p}else{var _=Gs(t,l,i.width,i.breakAll,i.accumWidth);i.accumWidth=_.accumWidth+v,h=_.linesWidths,u=_.lines}}u||(u=t.split(`
7
+ `));for(var g=Wt(l),d=0;d<u.length;d++){var m=u[d],b=new Tu;if(b.styleName=n,b.text=m,b.isLineHolder=!m&&!a,typeof o.width=="number"?b.width=o.width:b.width=h?h[d]:Yt(g,m),!d&&!f){var y=(s[s.length-1]||(s[0]=new Ya)).tokens,C=y.length;C===1&&y[0].isLineHolder?y[0]=b:(m||!C||a)&&y.push(b)}else s.push(new Ya([b]))}}function Su(r){var t=r.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var Mu=Ie(",&?/;] ".split(""),function(r,t){return r[t]=!0,r},{});function Pu(r){return Su(r)?!!Mu[r]:!0}function Gs(r,t,e,i,n){for(var a=[],o=[],s="",l="",f=0,u=0,h=Wt(t),c=0;c<r.length;c++){var v=r.charAt(c);if(v===`
8
+ `){l&&(s+=l,u+=f),a.push(s),o.push(u),s="",l="",f=0,u=0;continue}var p=Bs(h,v.charCodeAt(0)),_=i?!1:!Pu(v);if(a.length?u+p>e:n+u+p>e){u?(s||l)&&(_?(s||(s=l,l="",f=0,u=f),a.push(s),o.push(u-f),l+=v,f+=p,s="",u=f):(l&&(s+=l,l="",f=0),a.push(s),o.push(u),s=v,u=p)):_?(a.push(l),o.push(f),l=v,f=p):(a.push(v),o.push(p));continue}u+=p,_?(l+=v,f+=p):(l&&(s+=l,l="",f=0),s+=v)}return l&&(s+=l),s&&(a.push(s),o.push(u)),a.length===1&&(u+=n),{accumWidth:u,lines:a,linesWidths:o}}function Va(r,t,e,i,n,a){if(r.baseX=e,r.baseY=i,r.outerWidth=r.outerHeight=null,!!t){var o=t.width*2,s=t.height*2;Y.set(Xa,se(e,o,n),Er(i,s,a),o,s),Y.intersect(t,Xa,null,$a);var l=$a.outIntersectRect;r.outerWidth=l.width,r.outerHeight=l.height,r.baseX=se(l.x,l.width,n,!0),r.baseY=Er(l.y,l.height,a,!0)}}var Xa=new Y(0,0,0,0),$a={outIntersectRect:{},clamp:!0};function Ma(r){return r!=null?r+="":r=""}function Lu(r){var t=Ma(r.text),e=r.font,i=Yt(Wt(e),t),n=zi(e);return Vn(r,i,n,null)}function Vn(r,t,e,i){var n=new Y(se(r.x||0,t,r.textAlign),Er(r.y||0,e,r.textBaseline),t,e),a=i??(Ws(r)?r.lineWidth:0);return a>0&&(n.x-=a/2,n.y-=a/2,n.width+=a,n.height+=a),n}function Ws(r){var t=r.stroke;return t!=null&&t!=="none"&&r.lineWidth>0}var qa=wa,Ua=5e-5;function cr(r){return r>Ua||r<-Ua}var vr=[],Gr=[],Zi=Dr(),Qi=Math.abs,Bi=(function(){function r(){}return r.prototype.getLocalTransform=function(t){return Ru(this,t)},r.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},r.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},r.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},r.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},r.prototype.needLocalTransform=function(){return cr(this.rotation)||cr(this.x)||cr(this.y)||cr(this.scaleX-1)||cr(this.scaleY-1)||cr(this.skewX)||cr(this.skewY)},r.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),i=this.transform;if(!(e||t)){i&&(qa(i),this.invTransform=null);return}i=i||Dr(),e?this.getLocalTransform(i):qa(i),t&&(e?ui(i,t,i):Ta(i,t)),this.transform=i,this._resolveGlobalScaleRatio(i),this.invTransform=this.invTransform||Dr(),Ca(this.invTransform,i)},r.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(e!=null&&e!==1){this.getGlobalScale(vr);var i=vr[0]<0?-1:1,n=vr[1]<0?-1:1,a=((vr[0]-i)*e+i)/vr[0]||0,o=((vr[1]-n)*e+n)/vr[1]||0;t[0]*=a,t[1]*=a,t[2]*=o,t[3]*=o}},r.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},r.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],i=t[2]*t[2]+t[3]*t[3],n=Math.atan2(t[1],t[0]),a=Math.PI/2+n-Math.atan2(t[3],t[2]);i=Math.sqrt(i)*Math.cos(a),e=Math.sqrt(e),this.skewX=a,this.skewY=0,this.rotation=-n,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=i,this.originX=0,this.originY=0}},r.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||Dr(),ui(Gr,t.invTransform,e),e=Gr);var i=this.originX,n=this.originY;(i||n)&&(Zi[4]=i,Zi[5]=n,ui(Gr,e,Zi),Gr[4]-=i,Gr[5]-=n,e=Gr),this.setLocalTransform(e)}},r.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},r.prototype.transformCoordToLocal=function(t,e){var i=[t,e],n=this.invTransform;return n&&ie(i,i,n),i},r.prototype.transformCoordToGlobal=function(t,e){var i=[t,e],n=this.transform;return n&&ie(i,i,n),i},r.prototype.getLineScale=function(){var t=this.transform;return t&&Qi(t[0]-1)>1e-10&&Qi(t[3]-1)>1e-10?Math.sqrt(Qi(t[0]*t[3]-t[2]*t[1])):1},r.prototype.copyTransform=function(t){Au(this,t)},r.getLocalTransform=function(t,e){e=e||[];var i=t.originX||0,n=t.originY||0,a=t.scaleX,o=t.scaleY,s=t.anchorX,l=t.anchorY,f=t.rotation||0,u=t.x,h=t.y,c=t.skewX?Math.tan(t.skewX):0,v=t.skewY?Math.tan(-t.skewY):0;if(i||n||s||l){var p=i+s,_=n+l;e[4]=-p*a-c*_*o,e[5]=-_*o-v*p*a}else e[4]=e[5]=0;return e[0]=a,e[3]=o,e[1]=v*a,e[2]=c*o,f&&Rs(e,e,f),e[4]+=i+u,e[5]+=n+h,e},r.initDefaultProps=(function(){var t=r.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})(),r})(),Ru=Bi.getLocalTransform;function Yv(){return new Bi}var Fi=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Au(r,t){return _s(r,t,Fi)}var Se={linear:function(r){return r},quadraticIn:function(r){return r*r},quadraticOut:function(r){return r*(2-r)},quadraticInOut:function(r){return(r*=2)<1?.5*r*r:-.5*(--r*(r-2)-1)},cubicIn:function(r){return r*r*r},cubicOut:function(r){return--r*r*r+1},cubicInOut:function(r){return(r*=2)<1?.5*r*r*r:.5*((r-=2)*r*r+2)},quarticIn:function(r){return r*r*r*r},quarticOut:function(r){return 1- --r*r*r*r},quarticInOut:function(r){return(r*=2)<1?.5*r*r*r*r:-.5*((r-=2)*r*r*r-2)},quinticIn:function(r){return r*r*r*r*r},quinticOut:function(r){return--r*r*r*r*r+1},quinticInOut:function(r){return(r*=2)<1?.5*r*r*r*r*r:.5*((r-=2)*r*r*r*r+2)},sinusoidalIn:function(r){return 1-Math.cos(r*Math.PI/2)},sinusoidalOut:function(r){return Math.sin(r*Math.PI/2)},sinusoidalInOut:function(r){return .5*(1-Math.cos(Math.PI*r))},exponentialIn:function(r){return r===0?0:Math.pow(1024,r-1)},exponentialOut:function(r){return r===1?1:1-Math.pow(2,-10*r)},exponentialInOut:function(r){return r===0?0:r===1?1:(r*=2)<1?.5*Math.pow(1024,r-1):.5*(-Math.pow(2,-10*(r-1))+2)},circularIn:function(r){return 1-Math.sqrt(1-r*r)},circularOut:function(r){return Math.sqrt(1- --r*r)},circularInOut:function(r){return(r*=2)<1?-.5*(Math.sqrt(1-r*r)-1):.5*(Math.sqrt(1-(r-=2)*r)+1)},elasticIn:function(r){var t,e=.1,i=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=i/4):t=i*Math.asin(1/e)/(2*Math.PI),-(e*Math.pow(2,10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/i)))},elasticOut:function(r){var t,e=.1,i=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=i/4):t=i*Math.asin(1/e)/(2*Math.PI),e*Math.pow(2,-10*r)*Math.sin((r-t)*(2*Math.PI)/i)+1)},elasticInOut:function(r){var t,e=.1,i=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=i/4):t=i*Math.asin(1/e)/(2*Math.PI),(r*=2)<1?-.5*(e*Math.pow(2,10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/i)):e*Math.pow(2,-10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/i)*.5+1)},backIn:function(r){var t=1.70158;return r*r*((t+1)*r-t)},backOut:function(r){var t=1.70158;return--r*r*((t+1)*r+t)+1},backInOut:function(r){var t=2.5949095;return(r*=2)<1?.5*(r*r*((t+1)*r-t)):.5*((r-=2)*r*((t+1)*r+t)+2)},bounceIn:function(r){return 1-Se.bounceOut(1-r)},bounceOut:function(r){return r<1/2.75?7.5625*r*r:r<2/2.75?7.5625*(r-=1.5/2.75)*r+.75:r<2.5/2.75?7.5625*(r-=2.25/2.75)*r+.9375:7.5625*(r-=2.625/2.75)*r+.984375},bounceInOut:function(r){return r<.5?Se.bounceIn(r*2)*.5:Se.bounceOut(r*2-1)*.5+.5}},Ye=Math.pow,er=Math.sqrt,xi=1e-8,Ys=1e-4,Za=er(3),Ve=1/3,Nt=Hr(),Ct=Hr(),ne=Hr();function tr(r){return r>-xi&&r<xi}function Vs(r){return r>xi||r<-xi}function nt(r,t,e,i,n){var a=1-n;return a*a*(a*r+3*n*t)+n*n*(n*i+3*a*e)}function Qa(r,t,e,i,n){var a=1-n;return 3*(((t-r)*a+2*(e-t)*n)*a+(i-e)*n*n)}function Xs(r,t,e,i,n,a){var o=i+3*(t-e)-r,s=3*(e-t*2+r),l=3*(t-r),f=r-n,u=s*s-3*o*l,h=s*l-9*o*f,c=l*l-3*s*f,v=0;if(tr(u)&&tr(h))if(tr(s))a[0]=0;else{var p=-l/s;p>=0&&p<=1&&(a[v++]=p)}else{var _=h*h-4*u*c;if(tr(_)){var g=h/u,p=-s/o+g,d=-g/2;p>=0&&p<=1&&(a[v++]=p),d>=0&&d<=1&&(a[v++]=d)}else if(_>0){var m=er(_),b=u*s+1.5*o*(-h+m),y=u*s+1.5*o*(-h-m);b<0?b=-Ye(-b,Ve):b=Ye(b,Ve),y<0?y=-Ye(-y,Ve):y=Ye(y,Ve);var p=(-s-(b+y))/(3*o);p>=0&&p<=1&&(a[v++]=p)}else{var C=(2*u*s-3*o*h)/(2*er(u*u*u)),T=Math.acos(C)/3,M=er(u),w=Math.cos(T),p=(-s-2*M*w)/(3*o),d=(-s+M*(w+Za*Math.sin(T)))/(3*o),S=(-s+M*(w-Za*Math.sin(T)))/(3*o);p>=0&&p<=1&&(a[v++]=p),d>=0&&d<=1&&(a[v++]=d),S>=0&&S<=1&&(a[v++]=S)}}return v}function $s(r,t,e,i,n){var a=6*e-12*t+6*r,o=9*t+3*i-3*r-9*e,s=3*t-3*r,l=0;if(tr(o)){if(Vs(a)){var f=-s/a;f>=0&&f<=1&&(n[l++]=f)}}else{var u=a*a-4*o*s;if(tr(u))n[0]=-a/(2*o);else if(u>0){var h=er(u),f=(-a+h)/(2*o),c=(-a-h)/(2*o);f>=0&&f<=1&&(n[l++]=f),c>=0&&c<=1&&(n[l++]=c)}}return l}function Si(r,t,e,i,n,a){var o=(t-r)*n+r,s=(e-t)*n+t,l=(i-e)*n+e,f=(s-o)*n+o,u=(l-s)*n+s,h=(u-f)*n+f;a[0]=r,a[1]=o,a[2]=f,a[3]=h,a[4]=h,a[5]=u,a[6]=l,a[7]=i}function ku(r,t,e,i,n,a,o,s,l,f,u){var h,c=.005,v=1/0,p,_,g,d;Nt[0]=l,Nt[1]=f;for(var m=0;m<1;m+=.05)Ct[0]=nt(r,e,n,o,m),Ct[1]=nt(t,i,a,s,m),g=Ir(Nt,Ct),g<v&&(h=m,v=g);v=1/0;for(var b=0;b<32&&!(c<Ys);b++)p=h-c,_=h+c,Ct[0]=nt(r,e,n,o,p),Ct[1]=nt(t,i,a,s,p),g=Ir(Ct,Nt),p>=0&&g<v?(h=p,v=g):(ne[0]=nt(r,e,n,o,_),ne[1]=nt(t,i,a,s,_),d=Ir(ne,Nt),_<=1&&d<v?(h=_,v=d):c*=.5);return u&&(u[0]=nt(r,e,n,o,h),u[1]=nt(t,i,a,s,h)),er(v)}function Du(r,t,e,i,n,a,o,s,l){for(var f=r,u=t,h=0,c=1/l,v=1;v<=l;v++){var p=v*c,_=nt(r,e,n,o,p),g=nt(t,i,a,s,p),d=_-f,m=g-u;h+=Math.sqrt(d*d+m*m),f=_,u=g}return h}function st(r,t,e,i){var n=1-i;return n*(n*r+2*i*t)+i*i*e}function Ka(r,t,e,i){return 2*((1-i)*(t-r)+i*(e-t))}function Iu(r,t,e,i,n){var a=r-2*t+e,o=2*(t-r),s=r-i,l=0;if(tr(a)){if(Vs(o)){var f=-s/o;f>=0&&f<=1&&(n[l++]=f)}}else{var u=o*o-4*a*s;if(tr(u)){var f=-o/(2*a);f>=0&&f<=1&&(n[l++]=f)}else if(u>0){var h=er(u),f=(-o+h)/(2*a),c=(-o-h)/(2*a);f>=0&&f<=1&&(n[l++]=f),c>=0&&c<=1&&(n[l++]=c)}}return l}function qs(r,t,e){var i=r+e-2*t;return i===0?.5:(r-t)/i}function Mi(r,t,e,i,n){var a=(t-r)*i+r,o=(e-t)*i+t,s=(o-a)*i+a;n[0]=r,n[1]=a,n[2]=s,n[3]=s,n[4]=o,n[5]=e}function Eu(r,t,e,i,n,a,o,s,l){var f,u=.005,h=1/0;Nt[0]=o,Nt[1]=s;for(var c=0;c<1;c+=.05){Ct[0]=st(r,e,n,c),Ct[1]=st(t,i,a,c);var v=Ir(Nt,Ct);v<h&&(f=c,h=v)}h=1/0;for(var p=0;p<32&&!(u<Ys);p++){var _=f-u,g=f+u;Ct[0]=st(r,e,n,_),Ct[1]=st(t,i,a,_);var v=Ir(Ct,Nt);if(_>=0&&v<h)f=_,h=v;else{ne[0]=st(r,e,n,g),ne[1]=st(t,i,a,g);var d=Ir(ne,Nt);g<=1&&d<h?(f=g,h=d):u*=.5}}return l&&(l[0]=st(r,e,n,f),l[1]=st(t,i,a,f)),er(h)}function Ou(r,t,e,i,n,a,o){for(var s=r,l=t,f=0,u=1/o,h=1;h<=o;h++){var c=h*u,v=st(r,e,n,c),p=st(t,i,a,c),_=v-s,g=p-l;f+=Math.sqrt(_*_+g*g),s=v,l=p}return f}var zu=/cubic-bezier\(([0-9,\.e ]+)\)/;function Us(r){var t=r&&zu.exec(r);if(t){var e=t[1].split(","),i=+Qr(e[0]),n=+Qr(e[1]),a=+Qr(e[2]),o=+Qr(e[3]);if(isNaN(i+n+a+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:Xs(0,i,a,1,l,s)&&nt(0,n,o,1,s[0])}}}var Bu=(function(){function r(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||kr,this.ondestroy=t.ondestroy||kr,this.onrestart=t.onrestart||kr,t.easing&&this.setEasing(t.easing)}return r.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=e;return}var i=this._life,n=t-this._startTime-this._pausedTime,a=n/i;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),a===1)if(this.loop){var l=n%i;this._startTime=t-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},r.prototype.pause=function(){this._paused=!0},r.prototype.resume=function(){this._paused=!1},r.prototype.setEasing=function(t){this.easing=t,this.easingFunc=Ar(t)?t:Se[t]||Us(t)},r})(),ja={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function At(r){return r=Math.round(r),r<0?0:r>255?255:r}function Fu(r){return r=Math.round(r),r<0?0:r>360?360:r}function ke(r){return r<0?0:r>1?1:r}function vi(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?At(parseFloat(t)/100*255):At(parseInt(t,10))}function ir(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?ke(parseFloat(t)/100):ke(parseFloat(t))}function Ki(r,t,e){return e<0?e+=1:e>1&&(e-=1),e*6<1?r+(t-r)*e*6:e*2<1?t:e*3<2?r+(t-r)*(2/3-e)*6:r}function rr(r,t,e){return r+(t-r)*e}function wt(r,t,e,i,n){return r[0]=t,r[1]=e,r[2]=i,r[3]=n,r}function Xn(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r}var Zs=new Re(20),Xe=null;function Wr(r,t){Xe&&Xn(Xe,t),Xe=Zs.put(r,Xe||t.slice())}function Mt(r,t){if(r){t=t||[];var e=Zs.get(r);if(e)return Xn(t,e);r=r+"";var i=r.replace(/ /g,"").toLowerCase();if(i in ja)return Xn(t,ja[i]),Wr(r,t),t;var n=i.length;if(i.charAt(0)==="#"){if(n===4||n===5){var a=parseInt(i.slice(1,4),16);if(!(a>=0&&a<=4095)){wt(t,0,0,0,1);return}return wt(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,n===5?parseInt(i.slice(4),16)/15:1),Wr(r,t),t}else if(n===7||n===9){var a=parseInt(i.slice(1,7),16);if(!(a>=0&&a<=16777215)){wt(t,0,0,0,1);return}return wt(t,(a&16711680)>>16,(a&65280)>>8,a&255,n===9?parseInt(i.slice(7),16)/255:1),Wr(r,t),t}return}var o=i.indexOf("("),s=i.indexOf(")");if(o!==-1&&s+1===n){var l=i.substr(0,o),f=i.substr(o+1,s-(o+1)).split(","),u=1;switch(l){case"rgba":if(f.length!==4)return f.length===3?wt(t,+f[0],+f[1],+f[2],1):wt(t,0,0,0,1);u=ir(f.pop());case"rgb":if(f.length>=3)return wt(t,vi(f[0]),vi(f[1]),vi(f[2]),f.length===3?u:ir(f[3])),Wr(r,t),t;wt(t,0,0,0,1);return;case"hsla":if(f.length!==4){wt(t,0,0,0,1);return}return f[3]=ir(f[3]),$n(f,t),Wr(r,t),t;case"hsl":if(f.length!==3){wt(t,0,0,0,1);return}return $n(f,t),Wr(r,t),t;default:return}}wt(t,0,0,0,1)}}function $n(r,t){var e=(parseFloat(r[0])%360+360)%360/360,i=ir(r[1]),n=ir(r[2]),a=n<=.5?n*(i+1):n+i-n*i,o=n*2-a;return t=t||[],wt(t,At(Ki(o,a,e+1/3)*255),At(Ki(o,a,e)*255),At(Ki(o,a,e-1/3)*255),1),r.length===4&&(t[3]=r[3]),t}function Hu(r){if(r){var t=r[0]/255,e=r[1]/255,i=r[2]/255,n=Math.min(t,e,i),a=Math.max(t,e,i),o=a-n,s=(a+n)/2,l,f;if(o===0)l=0,f=0;else{s<.5?f=o/(a+n):f=o/(2-a-n);var u=((a-t)/6+o/2)/o,h=((a-e)/6+o/2)/o,c=((a-i)/6+o/2)/o;t===a?l=c-h:e===a?l=1/3+u-c:i===a&&(l=2/3+h-u),l<0&&(l+=1),l>1&&(l-=1)}var v=[l*360,f,s];return r[3]!=null&&v.push(r[3]),v}}function qn(r,t){var e=Mt(r);if(e){for(var i=0;i<3;i++)t<0?e[i]=e[i]*(1-t)|0:e[i]=(255-e[i])*t+e[i]|0,e[i]>255?e[i]=255:e[i]<0&&(e[i]=0);return Nr(e,e.length===4?"rgba":"rgb")}}function Nu(r){var t=Mt(r);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)}function Qs(r,t,e){if(!(!(t&&t.length)||!(r>=0&&r<=1))){e=e||[];var i=r*(t.length-1),n=Math.floor(i),a=Math.ceil(i),o=t[n],s=t[a],l=i-n;return e[0]=At(rr(o[0],s[0],l)),e[1]=At(rr(o[1],s[1],l)),e[2]=At(rr(o[2],s[2],l)),e[3]=ke(rr(o[3],s[3],l)),e}}var Gu=Qs;function Ks(r,t,e){if(!(!(t&&t.length)||!(r>=0&&r<=1))){var i=r*(t.length-1),n=Math.floor(i),a=Math.ceil(i),o=Mt(t[n]),s=Mt(t[a]),l=i-n,f=Nr([At(rr(o[0],s[0],l)),At(rr(o[1],s[1],l)),At(rr(o[2],s[2],l)),ke(rr(o[3],s[3],l))],"rgba");return e?{color:f,leftIndex:n,rightIndex:a,value:i}:f}}var Wu=Ks;function Yu(r,t,e,i){var n=Mt(r);if(r)return n=Hu(n),t!=null&&(n[0]=Fu(Ar(t)?t(n[0]):t)),e!=null&&(n[1]=ir(Ar(e)?e(n[1]):e)),i!=null&&(n[2]=ir(Ar(i)?i(n[2]):i)),Nr($n(n),"rgba")}function Vu(r,t){var e=Mt(r);if(e&&t!=null)return e[3]=ke(t),Nr(e,"rgba")}function Nr(r,t){if(!(!r||!r.length)){var e=r[0]+","+r[1]+","+r[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(e+=","+r[3]),t+"("+e+")"}}function De(r,t){var e=Mt(r);return e?(.299*e[0]+.587*e[1]+.114*e[2])*e[3]/255+(1-e[3])*t:0}function Xu(){return Nr([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],"rgb")}var Ja=new Re(100);function $u(r){if(Le(r)){var t=Ja.get(r);return t||(t=qn(r,-.1),Ja.put(r,t)),t}else if(Ee(r)){var e=K({},r);return e.colorStops=Br(r.colorStops,function(i){return{offset:i.offset,color:qn(i.color,-.1)}}),e}return r}const Vv=Object.freeze(Object.defineProperty({__proto__:null,fastLerp:Qs,fastMapToColor:Gu,lerp:Ks,lift:qn,liftColor:$u,lum:De,mapToColor:Wu,modifyAlpha:Vu,modifyHSL:Yu,parse:Mt,parseCssFloat:ir,parseCssInt:vi,random:Xu,stringify:Nr,toHex:Nu},Symbol.toStringTag,{value:"Module"}));function qu(r){return r.type==="linear"}function Uu(r){return r.type==="radial"}(function(){return typeof Buffer<"u"&&typeof Buffer.from=="function"?function(r){return Buffer.from(r).toString("base64")}:typeof btoa=="function"&&typeof unescape=="function"&&typeof encodeURIComponent=="function"?function(r){return btoa(unescape(encodeURIComponent(r)))}:function(r){return null}})();var Un=Array.prototype.slice;function qt(r,t,e){return(t-r)*e+r}function ji(r,t,e,i){for(var n=t.length,a=0;a<n;a++)r[a]=qt(t[a],e[a],i);return r}function Zu(r,t,e,i){for(var n=t.length,a=n&&t[0].length,o=0;o<n;o++){r[o]||(r[o]=[]);for(var s=0;s<a;s++)r[o][s]=qt(t[o][s],e[o][s],i)}return r}function $e(r,t,e,i){for(var n=t.length,a=0;a<n;a++)r[a]=t[a]+e[a]*i;return r}function to(r,t,e,i){for(var n=t.length,a=n&&t[0].length,o=0;o<n;o++){r[o]||(r[o]=[]);for(var s=0;s<a;s++)r[o][s]=t[o][s]+e[o][s]*i}return r}function Qu(r,t){for(var e=r.length,i=t.length,n=e>i?t:r,a=Math.min(e,i),o=n[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(e,i);s++)n.push({offset:o.offset,color:o.color.slice()})}function Ku(r,t,e){var i=r,n=t;if(!(!i.push||!n.push)){var a=i.length,o=n.length;if(a!==o){var s=a>o;if(s)i.length=o;else for(var l=a;l<o;l++)i.push(e===1?n[l]:Un.call(n[l]))}for(var f=i[0]&&i[0].length,l=0;l<i.length;l++)if(e===1)isNaN(i[l])&&(i[l]=n[l]);else for(var u=0;u<f;u++)isNaN(i[l][u])&&(i[l][u]=n[l][u])}}function di(r){if(kt(r)){var t=r.length;if(kt(r[0])){for(var e=[],i=0;i<t;i++)e.push(Un.call(r[i]));return e}return Un.call(r)}return r}function pi(r){return r[0]=Math.floor(r[0])||0,r[1]=Math.floor(r[1])||0,r[2]=Math.floor(r[2])||0,r[3]=r[3]==null?1:r[3],"rgba("+r.join(",")+")"}function ju(r){return kt(r&&r[0])?2:1}var qe=0,gi=1,js=2,ye=3,Zn=4,Qn=5,ro=6;function eo(r){return r===Zn||r===Qn}function Ue(r){return r===gi||r===js}var ce=[0,0,0,0],Ju=(function(){function r(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return r.prototype.isFinished=function(){return this._finished},r.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},r.prototype.needsAnimate=function(){return this.keyframes.length>=1},r.prototype.getAdditiveTrack=function(){return this._additiveTrack},r.prototype.addKeyframe=function(t,e,i){this._needsSort=!0;var n=this.keyframes,a=n.length,o=!1,s=ro,l=e;if(kt(e)){var f=ju(e);s=f,(f===1&&!Te(e[0])||f===2&&!Te(e[0][0]))&&(o=!0)}else if(Te(e)&&!bs(e))s=qe;else if(Le(e))if(!isNaN(+e))s=qe;else{var u=Mt(e);u&&(l=u,s=ye)}else if(Ee(e)){var h=K({},l);h.colorStops=Br(e.colorStops,function(v){return{offset:v.offset,color:Mt(v.color)}}),qu(e)?s=Zn:Uu(e)&&(s=Qn),l=h}a===0?this.valType=s:(s!==this.valType||s===ro)&&(o=!0),this.discrete=this.discrete||o;var c={time:t,value:l,rawValue:e,percent:0};return i&&(c.easing=i,c.easingFunc=Ar(i)?i:Se[i]||Us(i)),n.push(c),c},r.prototype.prepare=function(t,e){var i=this.keyframes;this._needsSort&&i.sort(function(_,g){return _.time-g.time});for(var n=this.valType,a=i.length,o=i[a-1],s=this.discrete,l=Ue(n),f=eo(n),u=0;u<a;u++){var h=i[u],c=h.value,v=o.value;h.percent=h.time/t,s||(l&&u!==a-1?Ku(c,v,n):f&&Qu(c.colorStops,v.colorStops))}if(!s&&n!==Qn&&e&&this.needsAnimate()&&e.needsAnimate()&&n===e.valType&&!e._finished){this._additiveTrack=e;for(var p=i[0].value,u=0;u<a;u++)n===qe?i[u].additiveValue=i[u].value-p:n===ye?i[u].additiveValue=$e([],i[u].value,p,-1):Ue(n)&&(i[u].additiveValue=n===gi?$e([],i[u].value,p,-1):to([],i[u].value,p,-1))}},r.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var i=this._additiveTrack!=null,n=i?"additiveValue":"value",a=this.valType,o=this.keyframes,s=o.length,l=this.propName,f=a===ye,u,h=this._lastFr,c=Math.min,v,p;if(s===1)v=p=o[0];else{if(e<0)u=0;else if(e<this._lastFrP){var _=c(h+1,s-1);for(u=_;u>=0&&!(o[u].percent<=e);u--);u=c(u,s-2)}else{for(u=h;u<s&&!(o[u].percent>e);u++);u=c(u-1,s-2)}p=o[u+1],v=o[u]}if(v&&p){this._lastFr=u,this._lastFrP=e;var g=p.percent-v.percent,d=g===0?1:c((e-v.percent)/g,1);p.easingFunc&&(d=p.easingFunc(d));var m=i?this._additiveValue:f?ce:t[l];if((Ue(a)||f)&&!m&&(m=this._additiveValue=[]),this.discrete)t[l]=d<1?v.rawValue:p.rawValue;else if(Ue(a))a===gi?ji(m,v[n],p[n],d):Zu(m,v[n],p[n],d);else if(eo(a)){var b=v[n],y=p[n],C=a===Zn;t[l]={type:C?"linear":"radial",x:qt(b.x,y.x,d),y:qt(b.y,y.y,d),colorStops:Br(b.colorStops,function(M,w){var S=y.colorStops[w];return{offset:qt(M.offset,S.offset,d),color:pi(ji([],M.color,S.color,d))}}),global:y.global},C?(t[l].x2=qt(b.x2,y.x2,d),t[l].y2=qt(b.y2,y.y2,d)):t[l].r=qt(b.r,y.r,d)}else if(f)ji(m,v[n],p[n],d),i||(t[l]=pi(m));else{var T=qt(v[n],p[n],d);i?this._additiveValue=T:t[l]=T}i&&this._addToTarget(t)}}},r.prototype._addToTarget=function(t){var e=this.valType,i=this.propName,n=this._additiveValue;e===qe?t[i]=t[i]+n:e===ye?(Mt(t[i],ce),$e(ce,ce,n,1),t[i]=pi(ce)):e===gi?$e(t[i],t[i],n,1):e===js&&to(t[i],t[i],n,1)},r})(),Pa=(function(){function r(t,e,i,n){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&n){Ei("Can' use additive animation on looped animation.");return}this._additiveAnimators=n,this._allowDiscrete=i}return r.prototype.getMaxTime=function(){return this._maxTime},r.prototype.getDelay=function(){return this._delay},r.prototype.getLoop=function(){return this._loop},r.prototype.getTarget=function(){return this._target},r.prototype.changeTarget=function(t){this._target=t},r.prototype.when=function(t,e,i){return this.whenWithKeys(t,e,_t(e),i)},r.prototype.whenWithKeys=function(t,e,i,n){for(var a=this._tracks,o=0;o<i.length;o++){var s=i[o],l=a[s];if(!l){l=a[s]=new Ju(s);var f=void 0,u=this._getAdditiveTrack(s);if(u){var h=u.keyframes,c=h[h.length-1];f=c&&c.value,u.valType===ye&&f&&(f=pi(f))}else f=this._target[s];if(f==null)continue;t>0&&l.addKeyframe(0,di(f),n),this._trackKeys.push(s)}l.addKeyframe(t,di(e[s]),n)}return this._maxTime=Math.max(this._maxTime,t),this},r.prototype.pause=function(){this._clip.pause(),this._paused=!0},r.prototype.resume=function(){this._clip.resume(),this._paused=!1},r.prototype.isPaused=function(){return!!this._paused},r.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},r.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,i=0;i<e;i++)t[i].call(this)},r.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,e=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,e)for(var i=0;i<e.length;i++)e[i].call(this)},r.prototype._setTracksFinished=function(){for(var t=this._tracks,e=this._trackKeys,i=0;i<e.length;i++)t[e[i]].setFinished()},r.prototype._getAdditiveTrack=function(t){var e,i=this._additiveAnimators;if(i)for(var n=0;n<i.length;n++){var a=i[n].getTrack(t);a&&(e=a)}return e},r.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var e=this,i=[],n=this._maxTime||0,a=0;a<this._trackKeys.length;a++){var o=this._trackKeys[a],s=this._tracks[o],l=this._getAdditiveTrack(o),f=s.keyframes,u=f.length;if(s.prepare(n,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var h=f[u-1];h&&(e._target[s.propName]=h.rawValue),s.setFinished()}else i.push(s)}if(i.length||this._force){var c=new Bu({life:n,loop:this._loop,delay:this._delay||0,onframe:function(v){e._started=2;var p=e._additiveAnimators;if(p){for(var _=!1,g=0;g<p.length;g++)if(p[g]._clip){_=!0;break}_||(e._additiveAnimators=null)}for(var g=0;g<i.length;g++)i[g].step(e._target,v);var d=e._onframeCbs;if(d)for(var g=0;g<d.length;g++)d[g](e._target,v)},ondestroy:function(){e._doneCallback()}});this._clip=c,this.animation&&this.animation.addClip(c),t&&c.setEasing(t)}else this._doneCallback();return this}},r.prototype.stop=function(t){if(this._clip){var e=this._clip;t&&e.onframe(1),this._abortedCallback()}},r.prototype.delay=function(t){return this._delay=t,this},r.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},r.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},r.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},r.prototype.getClip=function(){return this._clip},r.prototype.getTrack=function(t){return this._tracks[t]},r.prototype.getTracks=function(){var t=this;return Br(this._trackKeys,function(e){return t._tracks[e]})},r.prototype.stopTracks=function(t,e){if(!t.length||!this._clip)return!0;for(var i=this._tracks,n=this._trackKeys,a=0;a<t.length;a++){var o=i[t[a]];o&&!o.isFinished()&&(e?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,a=0;a<n.length;a++)if(!i[n[a]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},r.prototype.saveTo=function(t,e,i){if(t){e=e||this._trackKeys;for(var n=0;n<e.length;n++){var a=e[n],o=this._tracks[a];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[i?0:s.length-1];l&&(t[a]=di(l.rawValue))}}}},r.prototype.__changeFinalValue=function(t,e){e=e||_t(t);for(var i=0;i<e.length;i++){var n=e[i],a=this._tracks[n];if(a){var o=a.keyframes;if(o.length>1){var s=o.pop();a.addKeyframe(s.time,t[n]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},r})(),ue=(function(){function r(t){t&&(this._$eventProcessor=t)}return r.prototype.on=function(t,e,i,n){this._$handlers||(this._$handlers={});var a=this._$handlers;if(typeof e=="function"&&(n=i,i=e,e=null),!i||!t)return this;var o=this._$eventProcessor;e!=null&&o&&o.normalizeQuery&&(e=o.normalizeQuery(e)),a[t]||(a[t]=[]);for(var s=0;s<a[t].length;s++)if(a[t][s].h===i)return this;var l={h:i,query:e,ctx:n||this,callAtLast:i.zrEventfulCallAtLast},f=a[t].length-1,u=a[t][f];return u&&u.callAtLast?a[t].splice(f,0,l):a[t].push(l),this},r.prototype.isSilent=function(t){var e=this._$handlers;return!e||!e[t]||!e[t].length},r.prototype.off=function(t,e){var i=this._$handlers;if(!i)return this;if(!t)return this._$handlers={},this;if(e){if(i[t]){for(var n=[],a=0,o=i[t].length;a<o;a++)i[t][a].h!==e&&n.push(i[t][a]);i[t]=n}i[t]&&i[t].length===0&&delete i[t]}else delete i[t];return this},r.prototype.trigger=function(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];if(!this._$handlers)return this;var n=this._$handlers[t],a=this._$eventProcessor;if(n)for(var o=e.length,s=n.length,l=0;l<s;l++){var f=n[l];if(!(a&&a.filter&&f.query!=null&&!a.filter(t,f.query)))switch(o){case 0:f.h.call(f.ctx);break;case 1:f.h.call(f.ctx,e[0]);break;case 2:f.h.call(f.ctx,e[0],e[1]);break;default:f.h.apply(f.ctx,e);break}}return a&&a.afterTrigger&&a.afterTrigger(t),this},r.prototype.triggerWithContext=function(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];if(!this._$handlers)return this;var n=this._$handlers[t],a=this._$eventProcessor;if(n)for(var o=e.length,s=e[o-1],l=n.length,f=0;f<l;f++){var u=n[f];if(!(a&&a.filter&&u.query!=null&&!a.filter(t,u.query)))switch(o){case 0:u.h.call(s);break;case 1:u.h.call(s,e[0]);break;case 2:u.h.call(s,e[0],e[1]);break;default:u.h.apply(s,e.slice(1,o-1));break}}return a&&a.afterTrigger&&a.afterTrigger(t),this},r})(),Js=1;J.hasGlobalWindow&&(Js=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Pi=Js,Kn=.4,jn="#333",Jn="#ccc",th="#eee",pt=1,be=2,Zr=4,Ji="__zr_normal__",tn=Fi.concat(["ignore"]),rh=Ie(Fi,function(r,t){return r[t]=!0,r},{ignore:!1}),Yr={},eh=new Y(0,0,0,0),Ze=[],_i=0,Hi=1,Ni=(function(){function r(t){this.id=_a(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return r.prototype._init=function(t){this.attr(t)},r.prototype.drift=function(t,e,i){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0;break}var n=this.transform;n||(n=this.transform=[1,0,0,1,0,0]),n[4]+=t,n[5]+=e,this.decomposeTransform(),this.markRedraw()},r.prototype.beforeUpdate=function(){},r.prototype.afterUpdate=function(){},r.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},r.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var i=this.textConfig,n=i.local,a=e.innerTransformable,o=void 0,s=void 0,l=!1;a.parent=n?this:null;var f=!1;a.copyTransform(e);var u=i.position!=null,h=i.autoOverflowArea,c=void 0;if((h||u)&&(c=eh,i.layoutRect?c.copy(i.layoutRect):c.copy(this.getBoundingRect()),n||c.applyTransform(this.transform)),u){this.calculateTextPosition?this.calculateTextPosition(Yr,i,c):yu(Yr,i,c),a.x=Yr.x,a.y=Yr.y,o=Yr.align,s=Yr.verticalAlign;var v=i.origin;if(v&&i.rotation!=null){var p=void 0,_=void 0;v==="center"?(p=c.width*.5,_=c.height*.5):(p=Ae(v[0],c.width),_=Ae(v[1],c.height)),f=!0,a.originX=-a.x+p+(n?0:c.x),a.originY=-a.y+_+(n?0:c.y)}}i.rotation!=null&&(a.rotation=i.rotation);var g=i.offset;g&&(a.x+=g[0],a.y+=g[1],f||(a.originX=-g[0],a.originY=-g[1]));var d=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={});if(h){var m=d.overflowRect=d.overflowRect||new Y(0,0,0,0);a.getLocalTransform(Ze),Ca(Ze,Ze),Y.copy(m,c),m.applyTransform(Ze)}else d.overflowRect=null;var b=i.inside==null?typeof i.position=="string"&&i.position.indexOf("inside")>=0:i.inside,y=void 0,C=void 0,T=void 0;b&&this.canBeInsideText()?(y=i.insideFill,C=i.insideStroke,(y==null||y==="auto")&&(y=this.getInsideTextFill()),(C==null||C==="auto")&&(C=this.getInsideTextStroke(y),T=!0)):(y=i.outsideFill,C=i.outsideStroke,(y==null||y==="auto")&&(y=this.getOutsideFill()),(C==null||C==="auto")&&(C=this.getOutsideStroke(y),T=!0)),y=y||"#000",(y!==d.fill||C!==d.stroke||T!==d.autoStroke||o!==d.align||s!==d.verticalAlign)&&(l=!0,d.fill=y,d.stroke=C,d.autoStroke=T,d.align=o,d.verticalAlign=s,e.setDefaultTextStyle(d)),e.__dirty|=pt,l&&e.dirtyStyle(!0)}},r.prototype.canBeInsideText=function(){return!0},r.prototype.getInsideTextFill=function(){return"#fff"},r.prototype.getInsideTextStroke=function(t){return"#000"},r.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Jn:jn},r.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),i=typeof e=="string"&&Mt(e);i||(i=[255,255,255,1]);for(var n=i[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)i[o]=i[o]*n+(a?0:255)*(1-n);return i[3]=1,Nr(i,"rgba")},r.prototype.traverse=function(t,e){},r.prototype.attrKV=function(t,e){t==="textConfig"?this.setTextConfig(e):t==="textContent"?this.setTextContent(e):t==="clipPath"?this.setClipPath(e):t==="extra"?(this.extra=this.extra||{},K(this.extra,e)):this[t]=e},r.prototype.hide=function(){this.ignore=!0,this.markRedraw()},r.prototype.show=function(){this.ignore=!1,this.markRedraw()},r.prototype.attr=function(t,e){if(typeof t=="string")this.attrKV(t,e);else if(Gt(t))for(var i=t,n=_t(i),a=0;a<n.length;a++){var o=n[a];this.attrKV(o,t[o])}return this.markRedraw(),this},r.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var e=this._normalState,i=0;i<this.animators.length;i++){var n=this.animators[i],a=n.__fromStateTransition;if(!(n.getLoop()||a&&a!==Ji)){var o=n.targetName,s=o?e[o]:e;n.saveTo(s)}}},r.prototype._innerSaveToNormal=function(t){var e=this._normalState;e||(e=this._normalState={}),t.textConfig&&!e.textConfig&&(e.textConfig=this.textConfig),this._savePrimaryToNormal(t,e,tn)},r.prototype._savePrimaryToNormal=function(t,e,i){for(var n=0;n<i.length;n++){var a=i[n];t[a]!=null&&!(a in e)&&(e[a]=this[a])}},r.prototype.hasState=function(){return this.currentStates.length>0},r.prototype.getState=function(t){return this.states[t]},r.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},r.prototype.clearStates=function(t){this.useState(Ji,!1,t)},r.prototype.useState=function(t,e,i,n){var a=t===Ji,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,l=this.stateTransition;if(!(Ht(s,t)>=0&&(e||s.length===1))){var f;if(this.stateProxy&&!a&&(f=this.stateProxy(t)),f||(f=this.states&&this.states[t]),!f&&!a){Ei("State "+t+" not exists.");return}a||this.saveCurrentToNormalState(f);var u=this._textContent,h=io(this,u,f,n);h&&!this.__inHover&&(this.__inHover=h),this._applyStateObj(t,f,this._normalState,e,ao(this,i,l),l);var c=this._textGuide;return u&&u.useState(t,e,i,!!h),c&&c.useState(t,e,i,!!h),a?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!h&&this.__inHover&&(this.__inHover=_i,this.__dirty&=~pt),f}}},r.prototype.useStates=function(t,e,i){if(!t.length)this.clearStates();else{var n=[],a=this.currentStates,o=t.length,s=o===a.length;if(s){for(var l=0;l<o;l++)if(t[l]!==a[l]){s=!1;break}}if(s)return;for(var l=0;l<o;l++){var f=t[l],u=void 0;this.stateProxy&&(u=this.stateProxy(f,t)),u||(u=this.states[f]),u&&n.push(u)}var h=n[o-1],c=this._textContent,v=io(this,c,h,i);v&&!this.__inHover&&(this.__inHover=v);var p=this._mergeStates(n),_=this.stateTransition;this.saveCurrentToNormalState(p),this._applyStateObj(t.join(","),p,this._normalState,!1,ao(this,e,_),_);var g=this._textGuide;c&&c.useStates(t,e,!!v),g&&g.useStates(t,e,!!v),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!v&&this.__inHover&&(this.__inHover=_i,this.__dirty&=~pt)}},r.prototype.isSilent=function(){for(var t=this;t;){if(t.silent)return!0;var e=t.__hostTarget;t=e?t.ignoreHostSilent?null:e:t.parent}return!1},r.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var e=this.animators[t];e.targetName&&e.changeTarget(this[e.targetName])}},r.prototype.removeState=function(t){var e=Ht(this.currentStates,t);if(e>=0){var i=this.currentStates.slice();i.splice(e,1),this.useStates(i)}},r.prototype.replaceState=function(t,e,i){var n=this.currentStates.slice(),a=Ht(n,t),o=Ht(n,e)>=0;a>=0?o?n.splice(a,1):n[a]=e:i&&!o&&n.push(e),this.useStates(n)},r.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},r.prototype._mergeStates=function(t){for(var e={},i,n=0;n<t.length;n++){var a=t[n];K(e,a),a.textConfig&&(i=i||{},K(i,a.textConfig))}return i&&(e.textConfig=i),e},r.prototype._applyStateObj=function(t,e,i,n,a,o){if(this.__inHover!==Hi){var s=!(e&&n);e&&e.textConfig?(this.textConfig=K({},n?this.textConfig:i.textConfig),K(this.textConfig,e.textConfig)):s&&i.textConfig&&(this.textConfig=i.textConfig);for(var l={},f=!1,u=0;u<tn.length;u++){var h=tn[u],c=a&&rh[h];e&&e[h]!=null?c?(f=!0,l[h]=e[h]):this[h]=e[h]:s&&i[h]!=null&&(c?(f=!0,l[h]=i[h]):this[h]=i[h])}if(!a)for(var u=0;u<this.animators.length;u++){var v=this.animators[u],p=v.targetName;v.getLoop()||v.__changeFinalValue(p?(e||i)[p]:e||i)}f&&this._transitionState(t,l,o)}},r.prototype._attachComponent=function(t){if(!(t.__zr&&!t.__hostTarget)&&t!==this){var e=this.__zr;e&&t.addSelfToZr(e),t.__zr=e,t.__hostTarget=this}},r.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},r.prototype.getClipPath=function(){return this._clipPath},r.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},r.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},r.prototype.getTextContent=function(){return this._textContent},r.prototype.setTextContent=function(t){var e=this._textContent;e!==t&&(e&&e!==t&&this.removeTextContent(),t.innerTransformable=new Bi,this._attachComponent(t),this._textContent=t,this.markRedraw())},r.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),K(this.textConfig,t),this.markRedraw()},r.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},r.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},r.prototype.getTextGuideLine=function(){return this._textGuide},r.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},r.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},r.prototype.markRedraw=function(){this.__dirty|=pt;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},r.prototype.dirty=function(){this.markRedraw()},r.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var e=this.animators;if(e)for(var i=0;i<e.length;i++)t.animation.addAnimator(e[i]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},r.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var e=this.animators;if(e)for(var i=0;i<e.length;i++)t.animation.removeAnimator(e[i]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},r.prototype.animate=function(t,e,i){var n=t?this[t]:this,a=new Pa(n,e,i);return t&&(a.targetName=t),this.addAnimator(a,t),a},r.prototype.addAnimator=function(t,e){var i=this.__zr,n=this;t.during(function(){n.updateDuringAnimation(e)}).done(function(){var a=n.animators,o=Ht(a,t);o>=0&&a.splice(o,1)}),this.animators.push(t),i&&i.animation.addAnimator(t),i&&i.wakeUp()},r.prototype.updateDuringAnimation=function(t){this.markRedraw()},r.prototype.stopAnimation=function(t,e){for(var i=this.animators,n=i.length,a=[],o=0;o<n;o++){var s=i[o];!t||t===s.scope?s.stop(e):a.push(s)}return this.animators=a,this},r.prototype.animateTo=function(t,e,i){rn(this,t,e,i)},r.prototype.animateFrom=function(t,e,i){rn(this,t,e,i,!0)},r.prototype._transitionState=function(t,e,i,n){for(var a=rn(this,e,i,n),o=0;o<a.length;o++)a[o].__fromStateTransition=t},r.prototype.getBoundingRect=function(){return null},r.prototype.getPaintRect=function(){return null},r.initDefaultProps=(function(){var t=r.prototype;t.type="element",t.name="",t.ignore=t.silent=t.ignoreHostSilent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=!1,t.__inHover=_i,t.__dirty=pt;function e(i,n,a,o){Object.defineProperty(t,i,{get:function(){if(!this[n]){var l=this[n]=[];s(this,l)}return this[n]},set:function(l){this[a]=l[0],this[o]=l[1],this[n]=l,s(this,l)}});function s(l,f){Object.defineProperty(f,0,{get:function(){return l[a]},set:function(u){l[a]=u}}),Object.defineProperty(f,1,{get:function(){return l[o]},set:function(u){l[o]=u}})}}Object.defineProperty&&(e("position","_legacyPos","x","y"),e("scale","_legacyScale","scaleX","scaleY"),e("origin","_legacyOrigin","originX","originY"))})(),r})();ma(Ni,ue);ma(Ni,Bi);function rn(r,t,e,i,n){e=e||{};var a=[];tl(r,"",r,t,e,i,a,n);var o=a.length,s=!1,l=e.done,f=e.aborted,u=function(){s=!0,o--,o<=0&&(s?l&&l():f&&f())},h=function(){o--,o<=0&&(s?l&&l():f&&f())};o||l&&l(),a.length>0&&e.during&&a[0].during(function(p,_){e.during(_)});for(var c=0;c<a.length;c++){var v=a[c];u&&v.done(u),h&&v.aborted(h),e.force&&v.duration(e.duration),v.start(e.easing)}return a}function en(r,t,e){for(var i=0;i<e;i++)r[i]=t[i]}function ih(r){return kt(r[0])}function nh(r,t,e){if(kt(t[e]))if(kt(r[e])||(r[e]=[]),ms(t[e])){var i=t[e].length;r[e].length!==i&&(r[e]=new t[e].constructor(i),en(r[e],t[e],i))}else{var n=t[e],a=r[e],o=n.length;if(ih(n))for(var s=n[0].length,l=0;l<o;l++)a[l]?en(a[l],n[l],s):a[l]=Array.prototype.slice.call(n[l]);else en(a,n,o);a.length=n.length}else r[e]=t[e]}function ah(r,t){return r===t||kt(r)&&kt(t)&&oh(r,t)}function oh(r,t){var e=r.length;if(e!==t.length)return!1;for(var i=0;i<e;i++)if(r[i]!==t[i])return!1;return!0}function tl(r,t,e,i,n,a,o,s){for(var l=_t(i),f=n.duration,u=n.delay,h=n.additive,c=n.setToFinal,v=!Gt(a),p=r.animators,_=[],g=0;g<l.length;g++){var d=l[g],m=i[d];if(m!=null&&e[d]!=null&&(v||a[d]))if(Gt(m)&&!kt(m)&&!Ee(m)){if(t){s||(e[d]=m,r.updateDuringAnimation(t));continue}tl(r,d,e[d],m,n,a&&a[d],o,s)}else _.push(d);else s||(e[d]=m,r.updateDuringAnimation(t),_.push(d))}var b=_.length;if(!h&&b)for(var y=0;y<p.length;y++){var C=p[y];if(C.targetName===t){var T=C.stopTracks(_);if(T){var M=Ht(p,C);p.splice(M,1)}}}if(n.force||(_=Bn(_,function(R){return!ah(i[R],e[R])}),b=_.length),b>0||n.force&&!o.length){var w=void 0,S=void 0,P=void 0;if(s){S={},c&&(w={});for(var y=0;y<b;y++){var d=_[y];S[d]=e[d],c?w[d]=i[d]:e[d]=i[d]}}else if(c){P={};for(var y=0;y<b;y++){var d=_[y];P[d]=di(e[d]),nh(e,i,d)}}var C=new Pa(e,!1,!1,h?Bn(p,function(O){return O.targetName===t}):null);C.targetName=t,n.scope&&(C.scope=n.scope),c&&w&&C.whenWithKeys(0,w,_),P&&C.whenWithKeys(0,P,_),C.whenWithKeys(f??500,s?S:i,_).delay(u||0),r.addAnimator(C,t),o.push(C)}}function io(r,t,e,i){return!(e&&e.hoverLayer||i)||no(r)||t&&no(t)?_i:Hi}function no(r){return r.type==="text"||r.type==="tspan"}function ao(r,t,e){return!t&&!r.__inHover&&e&&e.duration>0}var ta="__zr_style_"+Math.round(Math.random()*10),Or={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Gi={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Or[ta]=!0;var oo=["z","z2","invisible"],sh=["invisible"],ze=(function(r){Z(t,r);function t(e){return r.call(this,e)||this}return t.prototype._init=function(e){for(var i=_t(e),n=0;n<i.length;n++){var a=i[n];a==="style"?this.useStyle(e[a]):r.prototype.attrKV.call(this,a,e[a])}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,i,n,a){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&lh(this,e,i)||o&&!o[0]&&!o[3])return!1;if(n&&this.__clipPaths&&this.__clipPaths.length){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(a&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},t.prototype.contain=function(e,i){return this.rectContain(e,i)},t.prototype.traverse=function(e,i){e.call(i,this)},t.prototype.rectContain=function(e,i){var n=this.transformCoordToLocal(e,i),a=this.getBoundingRect();return a.contain(n[0],n[1])},t.prototype.getPaintRect=function(){var e=this._paintRect;if(!this._paintRect||this.__dirty){var i=this.transform,n=this.getBoundingRect(),a=this.style,o=a.shadowBlur||0,s=a.shadowOffsetX||0,l=a.shadowOffsetY||0;e=this._paintRect||(this._paintRect=new Y(0,0,0,0)),i?Y.applyTransform(e,n,i):e.copy(n),(o||s||l)&&(e.width+=o*2+Math.abs(s),e.height+=o*2+Math.abs(l),e.x=Math.min(e.x,e.x+s-o),e.y=Math.min(e.y,e.y+l-o));var f=this.dirtyRectTolerance;e.isZero()||(e.x=Math.floor(e.x-f),e.y=Math.floor(e.y-f),e.width=Math.ceil(e.width+1+f*2),e.height=Math.ceil(e.height+1+f*2))}return e},t.prototype.setPrevPaintRect=function(e){e?(this._prevPaintRect=this._prevPaintRect||new Y(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(e,i){e!=="style"?r.prototype.attrKV.call(this,e,i):this.style?this.setStyle(i):this.useStyle(i)},t.prototype.setStyle=function(e,i){return typeof e=="string"?this.style[e]=i:K(this.style,e),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(e){e||this.markRedraw(),this.__dirty|=be,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&be)},t.prototype.styleUpdated=function(){this.__dirty&=~be},t.prototype.createStyle=function(e){return Oe(Or,e)},t.prototype.useStyle=function(e){e[ta]||(e=this.createStyle(e)),this.style=e,this.dirtyStyle()},t.prototype._useHoverStyle=function(e){this.__hoverStyle=e},t.prototype.isStyleObject=function(e){return e[ta]},t.prototype._innerSaveToNormal=function(e){r.prototype._innerSaveToNormal.call(this,e);var i=this._normalState;e.style&&!i.style&&(i.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(e,i,oo)},t.prototype._applyStateObj=function(e,i,n,a,o,s){r.prototype._applyStateObj.call(this,e,i,n,a,o,s);var l=!(i&&a),f=this.__inHover===Hi,u;if(i&&i.style?o?a?u=i.style:(u=this._mergeStyle(this.createStyle(),n.style),this._mergeStyle(u,i.style)):(u=this._mergeStyle(this.createStyle(),a?this.style:n.style),this._mergeStyle(u,i.style)):l&&(u=n.style),u)if(o){var h=this.style;if(this.style=this.createStyle(l?{}:h),l)for(var c=_t(h),v=0;v<c.length;v++){var p=c[v];p in u&&(u[p]=u[p],this.style[p]=h[p])}for(var _=_t(u),v=0;v<_.length;v++){var p=_[v];this.style[p]=this.style[p]}this._transitionState(e,{style:u},s,this.getAnimationStyleProps())}else f?this._useHoverStyle(u):this.useStyle(u);if(!f)for(var g=this.__inHover?sh:oo,v=0;v<g.length;v++){var p=g[v];i&&i[p]!=null?this[p]=i[p]:l&&n[p]!=null&&(this[p]=n[p])}},t.prototype._mergeStates=function(e){for(var i=r.prototype._mergeStates.call(this,e),n,a=0;a<e.length;a++){var o=e[a];o.style&&(n=n||{},this._mergeStyle(n,o.style))}return n&&(i.style=n),i},t.prototype._mergeStyle=function(e,i){return K(e,i),e},t.prototype.getAnimationStyleProps=function(){return Gi},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=pt|be})(),t})(Ni),nn=new Y(0,0,0,0),an=new Y(0,0,0,0);function lh(r,t,e){return nn.copy(r.getBoundingRect()),r.transform&&nn.applyTransform(r.transform),an.width=t,an.height=e,!nn.intersect(an)}var xt=Math.min,St=Math.max,on=Math.sin,sn=Math.cos,dr=Math.PI*2,Qe=Hr(),Ke=Hr(),je=Hr();function so(r,t,e,i,n,a){n[0]=xt(r,e),n[1]=xt(t,i),a[0]=St(r,e),a[1]=St(t,i)}var lo=[],fo=[];function fh(r,t,e,i,n,a,o,s,l,f){var u=$s,h=nt,c=u(r,e,n,o,lo);l[0]=1/0,l[1]=1/0,f[0]=-1/0,f[1]=-1/0;for(var v=0;v<c;v++){var p=h(r,e,n,o,lo[v]);l[0]=xt(p,l[0]),f[0]=St(p,f[0])}c=u(t,i,a,s,fo);for(var v=0;v<c;v++){var _=h(t,i,a,s,fo[v]);l[1]=xt(_,l[1]),f[1]=St(_,f[1])}l[0]=xt(r,l[0]),f[0]=St(r,f[0]),l[0]=xt(o,l[0]),f[0]=St(o,f[0]),l[1]=xt(t,l[1]),f[1]=St(t,f[1]),l[1]=xt(s,l[1]),f[1]=St(s,f[1])}function uh(r,t,e,i,n,a,o,s){var l=qs,f=st,u=St(xt(l(r,e,n),1),0),h=St(xt(l(t,i,a),1),0),c=f(r,e,n,u),v=f(t,i,a,h);o[0]=xt(r,n,c),o[1]=xt(t,a,v),s[0]=St(r,n,c),s[1]=St(t,a,v)}function hh(r,t,e,i,n,a,o,s,l){var f=xr,u=Sr,h=Math.abs(n-a);if(h%dr<1e-4&&h>1e-4){s[0]=r-e,s[1]=t-i,l[0]=r+e,l[1]=t+i;return}if(Qe[0]=sn(n)*e+r,Qe[1]=on(n)*i+t,Ke[0]=sn(a)*e+r,Ke[1]=on(a)*i+t,f(s,Qe,Ke),u(l,Qe,Ke),n=n%dr,n<0&&(n=n+dr),a=a%dr,a<0&&(a=a+dr),n>a&&!o?a+=dr:n<a&&o&&(n+=dr),o){var c=a;a=n,n=c}for(var v=0;v<a;v+=Math.PI/2)v>n&&(je[0]=sn(v)*e+r,je[1]=on(v)*i+t,f(s,je,s),u(l,je,l))}var q={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},pr=[],gr=[],Et=[],Kt=[],Ot=[],zt=[],ln=Math.min,fn=Math.max,_r=Math.cos,mr=Math.sin,$t=Math.abs,ra=Math.PI,Jt=ra*2,un=typeof Float32Array<"u",ve=[];function hn(r){var t=Math.round(r/ra*1e8)/1e8;return t%2*ra}function ch(r,t){var e=hn(r[0]);e<0&&(e+=Jt);var i=e-r[0],n=r[1];n+=i,!t&&n-e>=Jt?n=e+Jt:t&&e-n>=Jt?n=e-Jt:!t&&e>n?n=e+(Jt-hn(e-n)):t&&e<n&&(n=e-(Jt-hn(n-e))),r[0]=e,r[1]=n}var le=(function(){function r(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}return r.prototype.increaseVersion=function(){this._version++},r.prototype.getVersion=function(){return this._version},r.prototype.setScale=function(t,e,i){i=i||0,i>0&&(this._ux=$t(i/Pi/t)||0,this._uy=$t(i/Pi/e)||0)},r.prototype.setDPR=function(t){this.dpr=t},r.prototype.setContext=function(t){this._ctx=t},r.prototype.getContext=function(){return this._ctx},r.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},r.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},r.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(q.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},r.prototype.lineTo=function(t,e){var i=$t(t-this._xi),n=$t(e-this._yi),a=i>this._ux||n>this._uy;if(this.addData(q.L,t,e),this._ctx&&a&&this._ctx.lineTo(t,e),a)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=i*i+n*n;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},r.prototype.bezierCurveTo=function(t,e,i,n,a,o){return this._drawPendingPt(),this.addData(q.C,t,e,i,n,a,o),this._ctx&&this._ctx.bezierCurveTo(t,e,i,n,a,o),this._xi=a,this._yi=o,this},r.prototype.quadraticCurveTo=function(t,e,i,n){return this._drawPendingPt(),this.addData(q.Q,t,e,i,n),this._ctx&&this._ctx.quadraticCurveTo(t,e,i,n),this._xi=i,this._yi=n,this},r.prototype.arc=function(t,e,i,n,a,o){this._drawPendingPt(),ve[0]=n,ve[1]=a,ch(ve,o),n=ve[0],a=ve[1];var s=a-n;return this.addData(q.A,t,e,i,i,n,s,0,o?0:1),this._ctx&&this._ctx.arc(t,e,i,n,a,o),this._xi=_r(a)*i+t,this._yi=mr(a)*i+e,this},r.prototype.arcTo=function(t,e,i,n,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,i,n,a),this},r.prototype.rect=function(t,e,i,n){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,i,n),this.addData(q.R,t,e,i,n),this},r.prototype.closePath=function(){this._drawPendingPt(),this.addData(q.Z);var t=this._ctx,e=this._x0,i=this._y0;return t&&t.closePath(),this._xi=e,this._yi=i,this},r.prototype.fill=function(t){t&&t.fill(),this.toStatic()},r.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},r.prototype.len=function(){return this._len},r.prototype.setData=function(t){if(this._saveData){var e=t.length;!(this.data&&this.data.length===e)&&un&&(this.data=new Float32Array(e));for(var i=0;i<e;i++)this.data[i]=t[i];this._len=e}},r.prototype.appendPath=function(t){if(this._saveData){t instanceof Array||(t=[t]);for(var e=t.length,i=0,n=this._len,a=0;a<e;a++)i+=t[a].len();var o=this.data;if(un&&(o instanceof Float32Array||!o)&&(this.data=new Float32Array(n+i),n>0&&o))for(var s=0;s<n;s++)this.data[s]=o[s];for(var a=0;a<e;a++)for(var l=t[a].data,s=0;s<l.length;s++)this.data[n++]=l[s];this._len=n}},r.prototype.addData=function(t,e,i,n,a,o,s,l,f){if(this._saveData){var u=this.data;this._len+arguments.length>u.length&&(this._expandData(),u=this.data);for(var h=0;h<arguments.length;h++)u[this._len++]=arguments[h]}},r.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},r.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e<this._len;e++)t[e]=this.data[e];this.data=t}},r.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,un&&this._len>11&&(this.data=new Float32Array(t)))}},r.prototype.getBoundingRect=function(){Et[0]=Et[1]=Ot[0]=Ot[1]=Number.MAX_VALUE,Kt[0]=Kt[1]=zt[0]=zt[1]=-Number.MAX_VALUE;var t=this.data,e=0,i=0,n=0,a=0,o;for(o=0;o<this._len;){var s=t[o++],l=o===1;switch(l&&(e=t[o],i=t[o+1],n=e,a=i),s){case q.M:e=n=t[o++],i=a=t[o++],Ot[0]=n,Ot[1]=a,zt[0]=n,zt[1]=a;break;case q.L:so(e,i,t[o],t[o+1],Ot,zt),e=t[o++],i=t[o++];break;case q.C:fh(e,i,t[o++],t[o++],t[o++],t[o++],t[o],t[o+1],Ot,zt),e=t[o++],i=t[o++];break;case q.Q:uh(e,i,t[o++],t[o++],t[o],t[o+1],Ot,zt),e=t[o++],i=t[o++];break;case q.A:var f=t[o++],u=t[o++],h=t[o++],c=t[o++],v=t[o++],p=t[o++]+v;o+=1;var _=!t[o++];l&&(n=_r(v)*h+f,a=mr(v)*c+u),hh(f,u,h,c,v,p,_,Ot,zt),e=_r(p)*h+f,i=mr(p)*c+u;break;case q.R:n=e=t[o++],a=i=t[o++];var g=t[o++],d=t[o++];so(n,a,n+g,a+d,Ot,zt);break;case q.Z:e=n,i=a;break}xr(Et,Et,Ot),Sr(Kt,Kt,zt)}return o===0&&(Et[0]=Et[1]=Kt[0]=Kt[1]=0),new Y(Et[0],Et[1],Kt[0]-Et[0],Kt[1]-Et[1])},r.prototype._calculateLength=function(){var t=this.data,e=this._len,i=this._ux,n=this._uy,a=0,o=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var f=this._pathSegLen,u=0,h=0,c=0;c<e;){var v=t[c++],p=c===1;p&&(a=t[c],o=t[c+1],s=a,l=o);var _=-1;switch(v){case q.M:a=s=t[c++],o=l=t[c++];break;case q.L:{var g=t[c++],d=t[c++],m=g-a,b=d-o;($t(m)>i||$t(b)>n||c===e-1)&&(_=Math.sqrt(m*m+b*b),a=g,o=d);break}case q.C:{var y=t[c++],C=t[c++],g=t[c++],d=t[c++],T=t[c++],M=t[c++];_=Du(a,o,y,C,g,d,T,M,10),a=T,o=M;break}case q.Q:{var y=t[c++],C=t[c++],g=t[c++],d=t[c++];_=Ou(a,o,y,C,g,d,10),a=g,o=d;break}case q.A:var w=t[c++],S=t[c++],P=t[c++],R=t[c++],O=t[c++],D=t[c++],x=D+O;c+=1,p&&(s=_r(O)*P+w,l=mr(O)*R+S),_=fn(P,R)*ln(Jt,Math.abs(D)),a=_r(x)*P+w,o=mr(x)*R+S;break;case q.R:{s=a=t[c++],l=o=t[c++];var I=t[c++],E=t[c++];_=I*2+E*2;break}case q.Z:{var m=s-a,b=l-o;_=Math.sqrt(m*m+b*b),a=s,o=l;break}}_>=0&&(f[h++]=_,u+=_)}return this._pathLen=u,u},r.prototype.rebuildPath=function(t,e){var i=this.data,n=this._ux,a=this._uy,o=this._len,s,l,f,u,h,c,v=e<1,p,_,g=0,d=0,m,b=0,y,C;if(!(v&&(this._pathSegLen||this._calculateLength(),p=this._pathSegLen,_=this._pathLen,m=e*_,!m)))t:for(var T=0;T<o;){var M=i[T++],w=T===1;switch(w&&(f=i[T],u=i[T+1],s=f,l=u),M!==q.L&&b>0&&(t.lineTo(y,C),b=0),M){case q.M:s=f=i[T++],l=u=i[T++],t.moveTo(f,u);break;case q.L:{h=i[T++],c=i[T++];var S=$t(h-f),P=$t(c-u);if(S>n||P>a){if(v){var R=p[d++];if(g+R>m){var O=(m-g)/R;t.lineTo(f*(1-O)+h*O,u*(1-O)+c*O);break t}g+=R}t.lineTo(h,c),f=h,u=c,b=0}else{var D=S*S+P*P;D>b&&(y=h,C=c,b=D)}break}case q.C:{var x=i[T++],I=i[T++],E=i[T++],z=i[T++],F=i[T++],V=i[T++];if(v){var R=p[d++];if(g+R>m){var O=(m-g)/R;Si(f,x,E,F,O,pr),Si(u,I,z,V,O,gr),t.bezierCurveTo(pr[1],gr[1],pr[2],gr[2],pr[3],gr[3]);break t}g+=R}t.bezierCurveTo(x,I,E,z,F,V),f=F,u=V;break}case q.Q:{var x=i[T++],I=i[T++],E=i[T++],z=i[T++];if(v){var R=p[d++];if(g+R>m){var O=(m-g)/R;Mi(f,x,E,O,pr),Mi(u,I,z,O,gr),t.quadraticCurveTo(pr[1],gr[1],pr[2],gr[2]);break t}g+=R}t.quadraticCurveTo(x,I,E,z),f=E,u=z;break}case q.A:var L=i[T++],j=i[T++],G=i[T++],X=i[T++],Q=i[T++],W=i[T++],U=i[T++],mt=!i[T++],Dt=G>X?G:X,$=$t(G-X)>.001,et=Q+W,B=!1;if(v){var R=p[d++];g+R>m&&(et=Q+W*(m-g)/R,B=!0),g+=R}if($&&t.ellipse?t.ellipse(L,j,G,X,U,Q,et,mt):t.arc(L,j,Dt,Q,et,mt),B)break t;w&&(s=_r(Q)*G+L,l=mr(Q)*X+j),f=_r(et)*G+L,u=mr(et)*X+j;break;case q.R:s=f=i[T],l=u=i[T+1],h=i[T++],c=i[T++];var N=i[T++],Vt=i[T++];if(v){var R=p[d++];if(g+R>m){var ft=m-g;t.moveTo(h,c),t.lineTo(h+ln(ft,N),c),ft-=N,ft>0&&t.lineTo(h+N,c+ln(ft,Vt)),ft-=Vt,ft>0&&t.lineTo(h+fn(N-ft,0),c+Vt),ft-=N,ft>0&&t.lineTo(h,c+fn(Vt-ft,0));break t}g+=R}t.rect(h,c,N,Vt);break;case q.Z:if(v){var R=p[d++];if(g+R>m){var O=(m-g)/R;t.lineTo(f*(1-O)+s*O,u*(1-O)+l*O);break t}g+=R}t.closePath(),f=s,u=l}}},r.prototype.clone=function(){var t=new r,e=this.data;return t.data=e.slice?e.slice():Array.prototype.slice.call(e),t._len=this._len,t},r.prototype.canSave=function(){return!!this._saveData},r.CMD=q,r.initDefaultProps=(function(){var t=r.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0})(),r})();function Vr(r,t,e,i,n,a,o){if(n===0)return!1;var s=n,l=0,f=r;if(o>t+s&&o>i+s||o<t-s&&o<i-s||a>r+s&&a>e+s||a<r-s&&a<e-s)return!1;if(r!==e)l=(t-i)/(r-e),f=(r*i-e*t)/(r-e);else return Math.abs(a-r)<=s/2;var u=l*a-o+f,h=u*u/(l*l+1);return h<=s/2*s/2}function vh(r,t,e,i,n,a,o,s,l,f,u){if(l===0)return!1;var h=l;if(u>t+h&&u>i+h&&u>a+h&&u>s+h||u<t-h&&u<i-h&&u<a-h&&u<s-h||f>r+h&&f>e+h&&f>n+h&&f>o+h||f<r-h&&f<e-h&&f<n-h&&f<o-h)return!1;var c=ku(r,t,e,i,n,a,o,s,f,u,null);return c<=h/2}function dh(r,t,e,i,n,a,o,s,l){if(o===0)return!1;var f=o;if(l>t+f&&l>i+f&&l>a+f||l<t-f&&l<i-f&&l<a-f||s>r+f&&s>e+f&&s>n+f||s<r-f&&s<e-f&&s<n-f)return!1;var u=Eu(r,t,e,i,n,a,s,l,null);return u<=f/2}var uo=Math.PI*2;function Je(r){return r%=uo,r<0&&(r+=uo),r}var de=Math.PI*2;function ph(r,t,e,i,n,a,o,s,l){if(o===0)return!1;var f=o;s-=r,l-=t;var u=Math.sqrt(s*s+l*l);if(u-f>e||u+f<e)return!1;if(Math.abs(i-n)%de<1e-4)return!0;if(a){var h=i;i=Je(n),n=Je(h)}else i=Je(i),n=Je(n);i>n&&(n+=de);var c=Math.atan2(l,s);return c<0&&(c+=de),c>=i&&c<=n||c+de>=i&&c+de<=n}function Ut(r,t,e,i,n,a){if(a>t&&a>i||a<t&&a<i||i===t)return 0;var o=(a-t)/(i-t),s=i<t?1:-1;(o===1||o===0)&&(s=i<t?.5:-.5);var l=o*(e-r)+r;return l===n?1/0:l>n?s:0}var jt=le.CMD,yr=Math.PI*2,gh=1e-4;function _h(r,t){return Math.abs(r-t)<gh}var ut=[-1,-1,-1],Tt=[-1,-1];function mh(){var r=Tt[0];Tt[0]=Tt[1],Tt[1]=r}function yh(r,t,e,i,n,a,o,s,l,f){if(f>t&&f>i&&f>a&&f>s||f<t&&f<i&&f<a&&f<s)return 0;var u=Xs(t,i,a,s,f,ut);if(u===0)return 0;for(var h=0,c=-1,v=void 0,p=void 0,_=0;_<u;_++){var g=ut[_],d=g===0||g===1?.5:1,m=nt(r,e,n,o,g);m<l||(c<0&&(c=$s(t,i,a,s,Tt),Tt[1]<Tt[0]&&c>1&&mh(),v=nt(t,i,a,s,Tt[0]),c>1&&(p=nt(t,i,a,s,Tt[1]))),c===2?g<Tt[0]?h+=v<t?d:-d:g<Tt[1]?h+=p<v?d:-d:h+=s<p?d:-d:g<Tt[0]?h+=v<t?d:-d:h+=s<v?d:-d)}return h}function bh(r,t,e,i,n,a,o,s){if(s>t&&s>i&&s>a||s<t&&s<i&&s<a)return 0;var l=Iu(t,i,a,s,ut);if(l===0)return 0;var f=qs(t,i,a);if(f>=0&&f<=1){for(var u=0,h=st(t,i,a,f),c=0;c<l;c++){var v=ut[c]===0||ut[c]===1?.5:1,p=st(r,e,n,ut[c]);p<o||(ut[c]<f?u+=h<t?v:-v:u+=a<h?v:-v)}return u}else{var v=ut[0]===0||ut[0]===1?.5:1,p=st(r,e,n,ut[0]);return p<o?0:a<t?v:-v}}function wh(r,t,e,i,n,a,o,s){if(s-=t,s>e||s<-e)return 0;var l=Math.sqrt(e*e-s*s);ut[0]=-l,ut[1]=l;var f=Math.abs(i-n);if(f<1e-4)return 0;if(f>=yr-1e-4){i=0,n=yr;var u=a?1:-1;return o>=ut[0]+r&&o<=ut[1]+r?u:0}if(i>n){var h=i;i=n,n=h}i<0&&(i+=yr,n+=yr);for(var c=0,v=0;v<2;v++){var p=ut[v];if(p+r>o){var _=Math.atan2(s,p),u=a?1:-1;_<0&&(_=yr+_),(_>=i&&_<=n||_+yr>=i&&_+yr<=n)&&(_>Math.PI/2&&_<Math.PI*1.5&&(u=-u),c+=u)}}return c}function rl(r,t,e,i,n){for(var a=r.data,o=r.len(),s=0,l=0,f=0,u=0,h=0,c,v,p=0;p<o;){var _=a[p++],g=p===1;switch(_===jt.M&&p>1&&(e||(s+=Ut(l,f,u,h,i,n))),g&&(l=a[p],f=a[p+1],u=l,h=f),_){case jt.M:u=a[p++],h=a[p++],l=u,f=h;break;case jt.L:if(e){if(Vr(l,f,a[p],a[p+1],t,i,n))return!0}else s+=Ut(l,f,a[p],a[p+1],i,n)||0;l=a[p++],f=a[p++];break;case jt.C:if(e){if(vh(l,f,a[p++],a[p++],a[p++],a[p++],a[p],a[p+1],t,i,n))return!0}else s+=yh(l,f,a[p++],a[p++],a[p++],a[p++],a[p],a[p+1],i,n)||0;l=a[p++],f=a[p++];break;case jt.Q:if(e){if(dh(l,f,a[p++],a[p++],a[p],a[p+1],t,i,n))return!0}else s+=bh(l,f,a[p++],a[p++],a[p],a[p+1],i,n)||0;l=a[p++],f=a[p++];break;case jt.A:var d=a[p++],m=a[p++],b=a[p++],y=a[p++],C=a[p++],T=a[p++];p+=1;var M=!!(1-a[p++]);c=Math.cos(C)*b+d,v=Math.sin(C)*y+m,g?(u=c,h=v):s+=Ut(l,f,c,v,i,n);var w=(i-d)*y/b+d;if(e){if(ph(d,m,y,C,C+T,M,t,w,n))return!0}else s+=wh(d,m,y,C,C+T,M,w,n);l=Math.cos(C+T)*b+d,f=Math.sin(C+T)*y+m;break;case jt.R:u=l=a[p++],h=f=a[p++];var S=a[p++],P=a[p++];if(c=u+S,v=h+P,e){if(Vr(u,h,c,h,t,i,n)||Vr(c,h,c,v,t,i,n)||Vr(c,v,u,v,t,i,n)||Vr(u,v,u,h,t,i,n))return!0}else s+=Ut(c,h,c,v,i,n),s+=Ut(u,v,u,h,i,n);break;case jt.Z:if(e){if(Vr(l,f,u,h,t,i,n))return!0}else s+=Ut(l,f,u,h,i,n);l=u,f=h;break}}return!e&&!_h(f,h)&&(s+=Ut(l,f,u,h,i,n)||0),s!==0}function Th(r,t,e){return rl(r,0,!1,t,e)}function Ch(r,t,e,i){return rl(r,t,!0,e,i)}var el=or({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Or),xh={style:or({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Gi.style)},cn=Fi.concat(["invisible","culling","z","z2","zlevel","parent"]),lt=(function(r){Z(t,r);function t(e){return r.call(this,e)||this}return t.prototype.update=function(){var e=this;r.prototype.update.call(this);var i=this.style;if(i.decal){var n=this._decalEl=this._decalEl||new t;n.buildPath===t.prototype.buildPath&&(n.buildPath=function(l){e.buildPath(l,e.shape)}),n.silent=!0;var a=n.style;for(var o in i)a[o]!==i[o]&&(a[o]=i[o]);a.fill=i.fill?i.decal:null,a.decal=null,a.shadowColor=null,i.strokeFirst&&(a.stroke=null);for(var s=0;s<cn.length;++s)n[cn[s]]=this[cn[s]];n.__dirty|=pt}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(e){var i=_t(e);this.shape=this.getDefaultShape();var n=this.getDefaultStyle();n&&this.useStyle(n);for(var a=0;a<i.length;a++){var o=i[a],s=e[o];o==="style"?this.style?K(this.style,s):this.useStyle(s):o==="shape"?K(this.shape,s):r.prototype.attrKV.call(this,o,s)}this.style||this.useStyle({})},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(Le(e)){var i=De(e,0);return i>.5?jn:i>.2?th:Jn}else if(e)return Jn}return jn},t.prototype.getInsideTextStroke=function(e){var i=this.style.fill;if(Le(i)){var n=this.__zr,a=!!(n&&n.isDarkMode()),o=De(e,0)<Kn;if(a===o)return i}},t.prototype.buildPath=function(e,i,n){},t.prototype.pathUpdated=function(){this.__dirty&=~Zr},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 le(!1)},t.prototype.hasStroke=function(){var e=this.style,i=e.stroke;return!(i==null||i==="none"||!(e.lineWidth>0))},t.prototype.hasFill=function(){var e=this.style,i=e.fill;return i!=null&&i!=="none"},t.prototype.getBoundingRect=function(){var e=this._rect,i=this.style,n=!e;if(n){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&Zr)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),e=o.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=e.clone());if(this.__dirty||n){s.copy(e);var l=i.strokeNoScale?this.getLineScale():1,f=i.lineWidth;if(!this.hasFill()){var u=this.strokeContainThreshold;f=Math.max(f,u??4)}l>1e-10&&(s.width+=f/l,s.height+=f/l,s.x-=f/l/2,s.y-=f/l/2)}return s}return e},t.prototype.contain=function(e,i){var n=this.transformCoordToLocal(e,i),a=this.getBoundingRect(),o=this.style;if(e=n[0],i=n[1],a.contain(e,i)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,f=o.strokeNoScale?this.getLineScale():1;if(f>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),Ch(s,l/f,e,i)))return!0}if(this.hasFill())return Th(s,e,i)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=Zr,this._rect&&(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(e,i){e==="shape"?this.setShape(i):r.prototype.attrKV.call(this,e,i)},t.prototype.setShape=function(e,i){var n=this.shape;return n||(n=this.shape={}),typeof e=="string"?n[e]=i:K(n,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&Zr)},t.prototype.createStyle=function(e){return Oe(el,e)},t.prototype._innerSaveToNormal=function(e){r.prototype._innerSaveToNormal.call(this,e);var i=this._normalState;e.shape&&!i.shape&&(i.shape=K({},this.shape))},t.prototype._applyStateObj=function(e,i,n,a,o,s){if(r.prototype._applyStateObj.call(this,e,i,n,a,o,s),this.__inHover!==Hi){var l=!(i&&a),f;if(i&&i.shape?o?a?f=i.shape:(f=K({},n.shape),K(f,i.shape)):(f=K({},a?this.shape:n.shape),K(f,i.shape)):l&&(f=n.shape),f)if(o){this.shape=K({},this.shape);for(var u={},h=_t(f),c=0;c<h.length;c++){var v=h[c];typeof f[v]=="object"?this.shape[v]=f[v]:u[v]=f[v]}this._transitionState(e,{shape:u},s)}else this.shape=f,this.dirtyShape()}},t.prototype._mergeStates=function(e){for(var i=r.prototype._mergeStates.call(this,e),n,a=0;a<e.length;a++){var o=e[a];o.shape&&(n=n||{},this._mergeStyle(n,o.shape))}return n&&(i.shape=n),i},t.prototype.getAnimationStyleProps=function(){return xh},t.prototype.isZeroArea=function(){return!1},t.extend=function(e){var i=(function(a){Z(o,a);function o(s){var l=a.call(this,s)||this;return e.init&&e.init.call(l,s),l}return o.prototype.getDefaultStyle=function(){return zr(e.style)},o.prototype.getDefaultShape=function(){return zr(e.shape)},o})(t);for(var n in e)typeof e[n]=="function"&&(i.prototype[n]=e[n]);return i},t.initDefaultProps=(function(){var e=t.prototype;e.type="path",e.strokeContainThreshold=5,e.segmentIgnoreThreshold=0,e.subPixelOptimize=!1,e.autoBatch=!1,e.__dirty=pt|be|Zr})(),t})(ze),Sh=or({strokeFirst:!0,font:nr,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},el),Li=(function(r){Z(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.hasStroke=function(){return Ws(this.style)},t.prototype.hasFill=function(){var e=this.style,i=e.fill;return i!=null&&i!=="none"},t.prototype.createStyle=function(e){return Oe(Sh,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){return this._rect||(this._rect=Lu(this.style)),this._rect},t.initDefaultProps=(function(){var e=t.prototype;e.dirtyRectTolerance=10})(),t})(ze);Li.prototype.type="tspan";var Mh=or({x:0,y:0},Or),Ph={style:or({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Gi.style)};function Lh(r){return!!(r&&typeof r!="string"&&r.width&&r.height)}var La=(function(r){Z(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.createStyle=function(e){return Oe(Mh,e)},t.prototype._getSize=function(e){var i=this.style,n=i[e];if(n!=null)return n;var a=Lh(i.image)?i.image:this.__image;if(!a)return 0;var o=e==="width"?"height":"width",s=i[o];return s==null?a[e]:a[e]/a[o]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return Ph},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||(this._rect=new Y(e.x||0,e.y||0,this.getWidth(),this.getHeight())),this._rect},t})(ze);La.prototype.type="image";function Rh(r,t){var e=t.x,i=t.y,n=t.width,a=t.height,o=t.r,s,l,f,u;n<0&&(e=e+n,n=-n),a<0&&(i=i+a,a=-a),typeof o=="number"?s=l=f=u=o:o instanceof Array?o.length===1?s=l=f=u=o[0]:o.length===2?(s=f=o[0],l=u=o[1]):o.length===3?(s=o[0],l=u=o[1],f=o[2]):(s=o[0],l=o[1],f=o[2],u=o[3]):s=l=f=u=0;var h;s+l>n&&(h=s+l,s*=n/h,l*=n/h),f+u>n&&(h=f+u,f*=n/h,u*=n/h),l+f>a&&(h=l+f,l*=a/h,f*=a/h),s+u>a&&(h=s+u,s*=a/h,u*=a/h),r.moveTo(e+s,i),r.lineTo(e+n-l,i),l!==0&&r.arc(e+n-l,i+l,l,-Math.PI/2,0),r.lineTo(e+n,i+a-f),f!==0&&r.arc(e+n-f,i+a-f,f,0,Math.PI/2),r.lineTo(e+u,i+a),u!==0&&r.arc(e+u,i+a-u,u,Math.PI/2,Math.PI),r.lineTo(e,i+s),s!==0&&r.arc(e+s,i+s,s,Math.PI,Math.PI*1.5),r.closePath()}var jr=Math.round;function Ah(r,t,e){if(t){var i=t.x1,n=t.x2,a=t.y1,o=t.y2;r.x1=i,r.x2=n,r.y1=a,r.y2=o;var s=e&&e.lineWidth;return s&&(jr(i*2)===jr(n*2)&&(r.x1=r.x2=Jr(i,s,!0)),jr(a*2)===jr(o*2)&&(r.y1=r.y2=Jr(a,s,!0))),r}}function kh(r,t,e){if(t){var i=t.x,n=t.y,a=t.width,o=t.height;r.x=i,r.y=n,r.width=a,r.height=o;var s=e&&e.lineWidth;return s&&(r.x=Jr(i,s,!0),r.y=Jr(n,s,!0),r.width=Math.max(Jr(i+a,s,!1)-r.x,a===0?0:1),r.height=Math.max(Jr(n+o,s,!1)-r.y,o===0?0:1)),r}}function Jr(r,t,e){if(!t)return r;var i=jr(r*2);return(i+jr(t))%2===0?i/2:(i+(e?1:-1))/2}var Dh=(function(){function r(){this.x=0,this.y=0,this.width=0,this.height=0}return r})(),Ih={},il=(function(r){Z(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new Dh},t.prototype.buildPath=function(e,i){var n,a,o,s;if(this.subPixelOptimize){var l=kh(Ih,i,this.style);n=l.x,a=l.y,o=l.width,s=l.height,l.r=i.r,i=l}else n=i.x,a=i.y,o=i.width,s=i.height;i.r?Rh(e,i):e.rect(n,a,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t})(lt);il.prototype.type="rect";var ho={fill:"#000"},co=2,Bt={},Eh={style:or({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},Gi.style)},Oh=(function(r){Z(t,r);function t(e){var i=r.call(this)||this;return i.type="text",i._children=[],i._defaultStyle=ho,i.attr(e),i}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){r.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;e<this._children.length;e++){var i=this._children[e];i.zlevel=this.zlevel,i.z=this.z,i.z2=this.z2,i.culling=this.culling,i.cursor=this.cursor,i.invisible=this.invisible}},t.prototype.updateTransform=function(){var e=this.innerTransformable;e?(e.updateTransform(),e.transform&&(this.transform=e.transform)):r.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(e){var i=this.innerTransformable;return i?i.getLocalTransform(e):r.prototype.getLocalTransform.call(this,e)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),r.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){this._childCursor=0,Nh(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(e){r.prototype.addSelfToZr.call(this,e);for(var i=0;i<this._children.length;i++)this._children[i].__zr=e},t.prototype.removeSelfFromZr=function(e){r.prototype.removeSelfFromZr.call(this,e);for(var i=0;i<this._children.length;i++)this._children[i].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var e=new Y(0,0,0,0),i=this._children,n=[],a=null,o=0;o<i.length;o++){var s=i[o],l=s.getBoundingRect(),f=s.getLocalTransform(n);f?(e.copy(l),e.applyTransform(f),a=a||e.clone(),a.union(e)):(a=a||l.clone(),a.union(l))}this._rect=a||e}return this._rect},t.prototype.setDefaultTextStyle=function(e){this._defaultStyle=e||ho},t.prototype.setTextContent=function(e){},t.prototype._mergeStyle=function(e,i){if(!i)return e;var n=i.rich,a=e.rich||n&&{};return K(e,i),n&&a?(this._mergeRich(a,n),e.rich=a):a&&(e.rich=a),e},t.prototype._mergeRich=function(e,i){for(var n=_t(i),a=0;a<n.length;a++){var o=n[a];e[o]=e[o]||{},K(e[o],i[o])}},t.prototype.getAnimationStyleProps=function(){return Eh},t.prototype._getOrCreateChild=function(e){var i=this._children[this._childCursor];return(!i||!(i instanceof e))&&(i=new e),this._children[this._childCursor++]=i,i.__zr=this.__zr,i.parent=this,i},t.prototype._updatePlainTexts=function(){var e=this.style,i=e.font||nr,n=e.padding,a=this._defaultStyle,o=e.x||0,s=e.y||0,l=e.align||a.align||"left",f=e.verticalAlign||a.verticalAlign||"top";Va(Bt,a.overflowRect,o,s,l,f),o=Bt.baseX,s=Bt.baseY;var u=bo(e),h=wu(u,e,Bt.outerWidth,Bt.outerHeight),c=vn(e),v=!!e.backgroundColor,p=h.outerHeight,_=h.outerWidth,g=h.lines,d=h.lineHeight;this.isTruncated=!!h.isTruncated;var m=o,b=Er(s,h.contentHeight,f);if(c||n){var y=se(o,_,l),C=Er(s,p,f);c&&this._renderBackground(e,e,y,C,_,p)}b+=d/2,n&&(m=yo(o,l,n),f==="top"?b+=n[0]:f==="bottom"&&(b-=n[2]));for(var T=0,M=!1,w=!1,S=mo("fill"in e?e.fill:(w=!0,a.fill)),P=_o("stroke"in e?e.stroke:!v&&(!a.autoStroke||w)?(T=co,M=!0,a.stroke):null),R=e.textShadowBlur>0,O=0;O<g.length;O++){var D=this._getOrCreateChild(Li),x=D.createStyle();D.useStyle(x),x.text=g[O],x.x=m,x.y=b,x.textAlign=l,x.textBaseline="middle",x.opacity=e.opacity,x.strokeFirst=!0,R&&(x.shadowBlur=e.textShadowBlur||0,x.shadowColor=e.textShadowColor||"transparent",x.shadowOffsetX=e.textShadowOffsetX||0,x.shadowOffsetY=e.textShadowOffsetY||0),x.stroke=P,x.fill=S,P&&(x.lineWidth=e.lineWidth||T,x.lineDash=e.lineDash,x.lineDashOffset=e.lineDashOffset||0),x.font=i,po(x,e),b+=d,D.setBoundingRect(Vn(x,h.contentWidth,h.calculatedLineHeight,M?0:null))}},t.prototype._updateRichTexts=function(){var e=this.style,i=this._defaultStyle,n=e.align||i.align,a=e.verticalAlign||i.verticalAlign,o=e.x||0,s=e.y||0;Va(Bt,i.overflowRect,o,s,n,a),o=Bt.baseX,s=Bt.baseY;var l=bo(e),f=xu(l,e,Bt.outerWidth,Bt.outerHeight,n),u=f.width,h=f.outerWidth,c=f.outerHeight,v=e.padding;this.isTruncated=!!f.isTruncated;var p=se(o,h,n),_=Er(s,c,a),g=p,d=_;v&&(g+=v[3],d+=v[0]);var m=g+u;vn(e)&&this._renderBackground(e,e,p,_,h,c);for(var b=!!e.backgroundColor,y=0;y<f.lines.length;y++){for(var C=f.lines[y],T=C.tokens,M=T.length,w=C.lineHeight,S=C.width,P=0,R=g,O=m,D=M-1,x=void 0;P<M&&(x=T[P],!x.align||x.align==="left");)this._placeToken(x,e,w,d,R,"left",b),S-=x.width,R+=x.width,P++;for(;D>=0&&(x=T[D],x.align==="right");)this._placeToken(x,e,w,d,O,"right",b),S-=x.width,O-=x.width,D--;for(R+=(u-(R-g)-(m-O)-S)/2;P<=D;)x=T[P],this._placeToken(x,e,w,d,R+x.width/2,"center",b),R+=x.width,P++;d+=w}},t.prototype._placeToken=function(e,i,n,a,o,s,l){var f=i.rich[e.styleName]||{};f.text=e.text;var u=e.verticalAlign,h=a+n/2;u==="top"?h=a+e.height/2:u==="bottom"&&(h=a+n-e.height/2);var c=!e.isLineHolder&&vn(f);c&&this._renderBackground(f,i,s==="right"?o-e.width:s==="center"?o-e.width/2:o,h-e.height/2,e.width,e.height);var v=!!f.backgroundColor,p=e.textPadding;p&&(o=yo(o,s,p),h-=e.height/2-p[0]-e.innerHeight/2);var _=this._getOrCreateChild(Li),g=_.createStyle();_.useStyle(g);var d=this._defaultStyle,m=!1,b=0,y=!1,C=mo("fill"in f?f.fill:"fill"in i?i.fill:(m=!0,d.fill)),T=_o("stroke"in f?f.stroke:"stroke"in i?i.stroke:!v&&!l&&(!d.autoStroke||m)?(b=co,y=!0,d.stroke):null),M=f.textShadowBlur>0||i.textShadowBlur>0;g.text=e.text,g.x=o,g.y=h,M&&(g.shadowBlur=f.textShadowBlur||i.textShadowBlur||0,g.shadowColor=f.textShadowColor||i.textShadowColor||"transparent",g.shadowOffsetX=f.textShadowOffsetX||i.textShadowOffsetX||0,g.shadowOffsetY=f.textShadowOffsetY||i.textShadowOffsetY||0),g.textAlign=s,g.textBaseline="middle",g.font=e.font||nr,g.opacity=Ce(f.opacity,i.opacity,1),po(g,f),T&&(g.lineWidth=Ce(f.lineWidth,i.lineWidth,b),g.lineDash=ct(f.lineDash,i.lineDash),g.lineDashOffset=i.lineDashOffset||0,g.stroke=T),C&&(g.fill=C),_.setBoundingRect(Vn(g,e.contentWidth,e.contentHeight,y?0:null))},t.prototype._renderBackground=function(e,i,n,a,o,s){var l=e.backgroundColor,f=e.borderWidth,u=e.borderColor,h=l&&l.image,c=l&&!h,v=e.borderRadius,p=this,_,g;if(c||e.lineHeight||f&&u){_=this._getOrCreateChild(il),_.useStyle(_.createStyle()),_.style.fill=null;var d=_.shape;d.x=n,d.y=a,d.width=o,d.height=s,d.r=v,_.dirtyShape()}if(c){var m=_.style;m.fill=l||null,m.fillOpacity=ct(e.fillOpacity,1)}else if(h){g=this._getOrCreateChild(La),g.onload=function(){p.dirtyStyle()};var b=g.style;b.image=l.image,b.x=n,b.y=a,b.width=o,b.height=s}if(f&&u){var m=_.style;m.lineWidth=f,m.stroke=u,m.strokeOpacity=ct(e.strokeOpacity,1),m.lineDash=e.borderDash,m.lineDashOffset=e.borderDashOffset||0,_.strokeContainThreshold=0,_.hasFill()&&_.hasStroke()&&(m.strokeFirst=!0,m.lineWidth*=2)}var y=(_||g).style;y.shadowBlur=e.shadowBlur||0,y.shadowColor=e.shadowColor||"transparent",y.shadowOffsetX=e.shadowOffsetX||0,y.shadowOffsetY=e.shadowOffsetY||0,y.opacity=Ce(e.opacity,i.opacity,1)},t.makeFont=function(e){var i="";return Hh(e)&&(i=[e.fontStyle,e.fontWeight,Fh(e.fontSize),e.fontFamily||"sans-serif"].join(" ")),i&&Qr(i)||e.textFont||e.font},t})(ze),zh={left:!0,right:1,center:1},Bh={top:1,bottom:1,middle:1},vo=["fontStyle","fontWeight","fontSize","fontFamily"];function Fh(r){return typeof r=="string"&&(r.indexOf("px")!==-1||r.indexOf("rem")!==-1||r.indexOf("em")!==-1)?r:isNaN(+r)?da+"px":r+"px"}function po(r,t){for(var e=0;e<vo.length;e++){var i=vo[e],n=t[i];n!=null&&(r[i]=n)}}function Hh(r){return r.fontSize!=null||r.fontFamily||r.fontWeight}function Nh(r){return go(r),gt(r.rich,go),r}function go(r){if(r){r.font=Oh.makeFont(r);var t=r.align;t==="middle"&&(t="center"),r.align=t==null||zh[t]?t:"left";var e=r.verticalAlign;e==="center"&&(e="middle"),r.verticalAlign=e==null||Bh[e]?e:"top";var i=r.padding;i&&(r.padding=ws(r.padding))}}function _o(r,t){return r==null||t<=0||r==="transparent"||r==="none"?null:r.image||r.colorStops?"#000":r}function mo(r){return r==null||r==="none"?null:r.image||r.colorStops?"#000":r}function yo(r,t,e){return t==="right"?r-e[1]:t==="center"?r+e[3]/2-e[1]/2:r+e[3]}function bo(r){var t=r.text;return t!=null&&(t+=""),t}function vn(r){return!!(r.backgroundColor||r.lineHeight||r.borderWidth&&r.borderColor)}var Xr=le.CMD,Gh=[[],[],[]],wo=Math.sqrt,Wh=Math.atan2;function Yh(r,t){if(t){var e=r.data,i=r.len(),n,a,o,s,l,f,u=Xr.M,h=Xr.C,c=Xr.L,v=Xr.R,p=Xr.A,_=Xr.Q;for(o=0,s=0;o<i;){switch(n=e[o++],s=o,a=0,n){case u:a=1;break;case c:a=1;break;case h:a=3;break;case _:a=2;break;case p:var g=t[4],d=t[5],m=wo(t[0]*t[0]+t[1]*t[1]),b=wo(t[2]*t[2]+t[3]*t[3]),y=Wh(-t[1]/b,t[0]/m);e[o]*=m,e[o++]+=g,e[o]*=b,e[o++]+=d,e[o++]*=m,e[o++]*=b,e[o++]+=y,e[o++]+=y,o+=2,s=o;break;case v:f[0]=e[o++],f[1]=e[o++],ie(f,f,t),e[s++]=f[0],e[s++]=f[1],f[0]+=e[o++],f[1]+=e[o++],ie(f,f,t),e[s++]=f[0],e[s++]=f[1]}for(l=0;l<a;l++){var C=Gh[l];C[0]=e[o++],C[1]=e[o++],ie(C,C,t),e[s++]=C[0],e[s++]=C[1]}}r.increaseVersion()}}var dn=Math.sqrt,ti=Math.sin,ri=Math.cos,pe=Math.PI;function To(r){return Math.sqrt(r[0]*r[0]+r[1]*r[1])}function ea(r,t){return(r[0]*t[0]+r[1]*t[1])/(To(r)*To(t))}function Co(r,t){return(r[0]*t[1]<r[1]*t[0]?-1:1)*Math.acos(ea(r,t))}function xo(r,t,e,i,n,a,o,s,l,f,u){var h=l*(pe/180),c=ri(h)*(r-e)/2+ti(h)*(t-i)/2,v=-1*ti(h)*(r-e)/2+ri(h)*(t-i)/2,p=c*c/(o*o)+v*v/(s*s);p>1&&(o*=dn(p),s*=dn(p));var _=(n===a?-1:1)*dn((o*o*(s*s)-o*o*(v*v)-s*s*(c*c))/(o*o*(v*v)+s*s*(c*c)))||0,g=_*o*v/s,d=_*-s*c/o,m=(r+e)/2+ri(h)*g-ti(h)*d,b=(t+i)/2+ti(h)*g+ri(h)*d,y=Co([1,0],[(c-g)/o,(v-d)/s]),C=[(c-g)/o,(v-d)/s],T=[(-1*c-g)/o,(-1*v-d)/s],M=Co(C,T);if(ea(C,T)<=-1&&(M=pe),ea(C,T)>=1&&(M=0),M<0){var w=Math.round(M/pe*1e6)/1e6;M=pe*2+w%2*pe}u.addData(f,m,b,o,s,y,M,h,a)}var Vh=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,Xh=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function $h(r){var t=new le;if(!r)return t;var e=0,i=0,n=e,a=i,o,s=le.CMD,l=r.match(Vh);if(!l)return t;for(var f=0;f<l.length;f++){for(var u=l[f],h=u.charAt(0),c=void 0,v=u.match(Xh)||[],p=v.length,_=0;_<p;_++)v[_]=parseFloat(v[_]);for(var g=0;g<p;){var d=void 0,m=void 0,b=void 0,y=void 0,C=void 0,T=void 0,M=void 0,w=e,S=i,P=void 0,R=void 0;switch(h){case"l":e+=v[g++],i+=v[g++],c=s.L,t.addData(c,e,i);break;case"L":e=v[g++],i=v[g++],c=s.L,t.addData(c,e,i);break;case"m":e+=v[g++],i+=v[g++],c=s.M,t.addData(c,e,i),n=e,a=i,h="l";break;case"M":e=v[g++],i=v[g++],c=s.M,t.addData(c,e,i),n=e,a=i,h="L";break;case"h":e+=v[g++],c=s.L,t.addData(c,e,i);break;case"H":e=v[g++],c=s.L,t.addData(c,e,i);break;case"v":i+=v[g++],c=s.L,t.addData(c,e,i);break;case"V":i=v[g++],c=s.L,t.addData(c,e,i);break;case"C":c=s.C,t.addData(c,v[g++],v[g++],v[g++],v[g++],v[g++],v[g++]),e=v[g-2],i=v[g-1];break;case"c":c=s.C,t.addData(c,v[g++]+e,v[g++]+i,v[g++]+e,v[g++]+i,v[g++]+e,v[g++]+i),e+=v[g-2],i+=v[g-1];break;case"S":d=e,m=i,P=t.len(),R=t.data,o===s.C&&(d+=e-R[P-4],m+=i-R[P-3]),c=s.C,w=v[g++],S=v[g++],e=v[g++],i=v[g++],t.addData(c,d,m,w,S,e,i);break;case"s":d=e,m=i,P=t.len(),R=t.data,o===s.C&&(d+=e-R[P-4],m+=i-R[P-3]),c=s.C,w=e+v[g++],S=i+v[g++],e+=v[g++],i+=v[g++],t.addData(c,d,m,w,S,e,i);break;case"Q":w=v[g++],S=v[g++],e=v[g++],i=v[g++],c=s.Q,t.addData(c,w,S,e,i);break;case"q":w=v[g++]+e,S=v[g++]+i,e+=v[g++],i+=v[g++],c=s.Q,t.addData(c,w,S,e,i);break;case"T":d=e,m=i,P=t.len(),R=t.data,o===s.Q&&(d+=e-R[P-4],m+=i-R[P-3]),e=v[g++],i=v[g++],c=s.Q,t.addData(c,d,m,e,i);break;case"t":d=e,m=i,P=t.len(),R=t.data,o===s.Q&&(d+=e-R[P-4],m+=i-R[P-3]),e+=v[g++],i+=v[g++],c=s.Q,t.addData(c,d,m,e,i);break;case"A":b=v[g++],y=v[g++],C=v[g++],T=v[g++],M=v[g++],w=e,S=i,e=v[g++],i=v[g++],c=s.A,xo(w,S,e,i,T,M,b,y,C,c,t);break;case"a":b=v[g++],y=v[g++],C=v[g++],T=v[g++],M=v[g++],w=e,S=i,e+=v[g++],i+=v[g++],c=s.A,xo(w,S,e,i,T,M,b,y,C,c,t);break}}(h==="z"||h==="Z")&&(c=s.Z,t.addData(c),e=n,i=a),o=c}return t.toStatic(),t}var nl=(function(r){Z(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.applyTransform=function(e){},t})(lt);function al(r){return r.setData!=null}function ol(r,t){var e=$h(r),i=K({},t);return i.buildPath=function(n){var a=al(n);if(a&&n.canSave()){n.appendPath(e);var o=n.getContext();o&&n.rebuildPath(o,1)}else{var o=a?n.getContext():n;o&&e.rebuildPath(o,1)}},i.applyTransform=function(n){Yh(e,n),this.dirtyShape()},i}function Xv(r,t){return new nl(ol(r,t))}function $v(r,t){var e=ol(r,t),i=(function(n){Z(a,n);function a(o){var s=n.call(this,o)||this;return s.applyTransform=e.applyTransform,s.buildPath=e.buildPath,s}return a})(nl);return i}function qv(r,t){for(var e=[],i=r.length,n=0;n<i;n++){var a=r[n];e.push(a.getUpdatedPathProxy(!0))}var o=new lt(t);return o.createPathProxy(),o.buildPath=function(s){if(al(s)){s.appendPath(e);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}var sl=(function(r){Z(t,r);function t(e){var i=r.call(this)||this;return i.isGroup=!0,i._children=[],i.attr(e),i}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 i=this._children,n=0;n<i.length;n++)if(i[n].name===e)return i[n]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(e){return e&&e!==this&&e.parent!==this&&(this._children.push(e),this._doAdd(e)),this},t.prototype.addBefore=function(e,i){if(e&&e!==this&&e.parent!==this&&i&&i.parent===this){var n=this._children,a=n.indexOf(i);a>=0&&(n.splice(a,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,i){var n=Ht(this._children,e);return n>=0&&this.replaceAt(i,n),this},t.prototype.replaceAt=function(e,i){var n=this._children,a=n[i];if(e&&e!==this&&e.parent!==this&&e!==a){n[i]=e,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var i=this.__zr;i&&i!==e.__zr&&e.addSelfToZr(i),i&&i.refresh()},t.prototype.remove=function(e){var i=this.__zr,n=this._children,a=Ht(n,e);return a<0?this:(n.splice(a,1),e.parent=null,i&&e.removeSelfFromZr(i),i&&i.refresh(),this)},t.prototype.removeAll=function(){for(var e=this._children,i=this.__zr,n=0;n<e.length;n++){var a=e[n];i&&a.removeSelfFromZr(i),a.parent=null}return e.length=0,this},t.prototype.eachChild=function(e,i){for(var n=this._children,a=0;a<n.length;a++){var o=n[a];e.call(i,o,a)}return this},t.prototype.traverse=function(e,i){for(var n=0;n<this._children.length;n++){var a=this._children[n],o=e.call(i,a);a.isGroup&&!o&&a.traverse(e,i)}return this},t.prototype.addSelfToZr=function(e){r.prototype.addSelfToZr.call(this,e);for(var i=0;i<this._children.length;i++){var n=this._children[i];n.addSelfToZr(e)}},t.prototype.removeSelfFromZr=function(e){r.prototype.removeSelfFromZr.call(this,e);for(var i=0;i<this._children.length;i++){var n=this._children[i];n.removeSelfFromZr(e)}},t.prototype.getBoundingRect=function(e){for(var i=new Y(0,0,0,0),n=e||this._children,a=[],o=null,s=0;s<n.length;s++){var l=n[s];if(!(l.ignore||l.invisible)){var f=l.getBoundingRect(),u=l.getLocalTransform(a);u?(Y.applyTransform(i,f,u),o=o||i.clone(),o.union(i)):(o=o||f.clone(),o.union(f))}}return o||i},t})(Ni);sl.prototype.type="group";var qh=(function(){function r(){this.cx=0,this.cy=0,this.r=0}return r})(),Uh=(function(r){Z(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new qh},t.prototype.buildPath=function(e,i){e.moveTo(i.cx+i.r,i.cy),e.arc(i.cx,i.cy,i.r,0,Math.PI*2)},t})(lt);Uh.prototype.type="circle";var Zh=(function(){function r(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return r})(),Qh=(function(r){Z(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new Zh},t.prototype.buildPath=function(e,i){var n=.5522848,a=i.cx,o=i.cy,s=i.rx,l=i.ry,f=s*n,u=l*n;e.moveTo(a-s,o),e.bezierCurveTo(a-s,o-u,a-f,o-l,a,o-l),e.bezierCurveTo(a+f,o-l,a+s,o-u,a+s,o),e.bezierCurveTo(a+s,o+u,a+f,o+l,a,o+l),e.bezierCurveTo(a-f,o+l,a-s,o+u,a-s,o),e.closePath()},t})(lt);Qh.prototype.type="ellipse";var ll=Math.PI,pn=ll*2,br=Math.sin,$r=Math.cos,Kh=Math.acos,at=Math.atan2,So=Math.abs,Me=Math.sqrt,we=Math.max,Ft=Math.min,Pt=1e-4;function jh(r,t,e,i,n,a,o,s){var l=e-r,f=i-t,u=o-n,h=s-a,c=h*l-u*f;if(!(c*c<Pt))return c=(u*(t-a)-h*(r-n))/c,[r+c*l,t+c*f]}function ei(r,t,e,i,n,a,o){var s=r-e,l=t-i,f=(o?a:-a)/Me(s*s+l*l),u=f*l,h=-f*s,c=r+u,v=t+h,p=e+u,_=i+h,g=(c+p)/2,d=(v+_)/2,m=p-c,b=_-v,y=m*m+b*b,C=n-a,T=c*_-p*v,M=(b<0?-1:1)*Me(we(0,C*C*y-T*T)),w=(T*b-m*M)/y,S=(-T*m-b*M)/y,P=(T*b+m*M)/y,R=(-T*m+b*M)/y,O=w-g,D=S-d,x=P-g,I=R-d;return O*O+D*D>x*x+I*I&&(w=P,S=R),{cx:w,cy:S,x0:-u,y0:-h,x1:w*(n/C-1),y1:S*(n/C-1)}}function Jh(r){var t;if(oe(r)){var e=r.length;if(!e)return r;e===1?t=[r[0],r[0],0,0]:e===2?t=[r[0],r[0],r[1],r[1]]:e===3?t=r.concat(r[2]):t=r}else t=[r,r,r,r];return t}function tc(r,t){var e,i=we(t.r,0),n=we(t.r0||0,0),a=i>0,o=n>0;if(!(!a&&!o)){if(a||(i=n,n=0),n>i){var s=i;i=n,n=s}var l=t.startAngle,f=t.endAngle;if(!(isNaN(l)||isNaN(f))){var u=t.cx,h=t.cy,c=!!t.clockwise,v=So(f-l),p=v>pn&&v%pn;if(p>Pt&&(v=p),!(i>Pt))r.moveTo(u,h);else if(v>pn-Pt)r.moveTo(u+i*$r(l),h+i*br(l)),r.arc(u,h,i,l,f,!c),n>Pt&&(r.moveTo(u+n*$r(f),h+n*br(f)),r.arc(u,h,n,f,l,c));else{var _=void 0,g=void 0,d=void 0,m=void 0,b=void 0,y=void 0,C=void 0,T=void 0,M=void 0,w=void 0,S=void 0,P=void 0,R=void 0,O=void 0,D=void 0,x=void 0,I=i*$r(l),E=i*br(l),z=n*$r(f),F=n*br(f),V=v>Pt;if(V){var L=t.cornerRadius;L&&(e=Jh(L),_=e[0],g=e[1],d=e[2],m=e[3]);var j=So(i-n)/2;if(b=Ft(j,d),y=Ft(j,m),C=Ft(j,_),T=Ft(j,g),S=M=we(b,y),P=w=we(C,T),(M>Pt||w>Pt)&&(R=i*$r(f),O=i*br(f),D=n*$r(l),x=n*br(l),v<ll)){var G=jh(I,E,D,x,R,O,z,F);if(G){var X=I-G[0],Q=E-G[1],W=R-G[0],U=O-G[1],mt=1/br(Kh((X*W+Q*U)/(Me(X*X+Q*Q)*Me(W*W+U*U)))/2),Dt=Me(G[0]*G[0]+G[1]*G[1]);S=Ft(M,(i-Dt)/(mt+1)),P=Ft(w,(n-Dt)/(mt-1))}}}if(!V)r.moveTo(u+I,h+E);else if(S>Pt){var $=Ft(d,S),et=Ft(m,S),B=ei(D,x,I,E,i,$,c),N=ei(R,O,z,F,i,et,c);r.moveTo(u+B.cx+B.x0,h+B.cy+B.y0),S<M&&$===et?r.arc(u+B.cx,h+B.cy,S,at(B.y0,B.x0),at(N.y0,N.x0),!c):($>0&&r.arc(u+B.cx,h+B.cy,$,at(B.y0,B.x0),at(B.y1,B.x1),!c),r.arc(u,h,i,at(B.cy+B.y1,B.cx+B.x1),at(N.cy+N.y1,N.cx+N.x1),!c),et>0&&r.arc(u+N.cx,h+N.cy,et,at(N.y1,N.x1),at(N.y0,N.x0),!c))}else r.moveTo(u+I,h+E),r.arc(u,h,i,l,f,!c);if(!(n>Pt)||!V)r.lineTo(u+z,h+F);else if(P>Pt){var $=Ft(_,P),et=Ft(g,P),B=ei(z,F,R,O,n,-et,c),N=ei(I,E,D,x,n,-$,c);r.lineTo(u+B.cx+B.x0,h+B.cy+B.y0),P<w&&$===et?r.arc(u+B.cx,h+B.cy,P,at(B.y0,B.x0),at(N.y0,N.x0),!c):(et>0&&r.arc(u+B.cx,h+B.cy,et,at(B.y0,B.x0),at(B.y1,B.x1),!c),r.arc(u,h,n,at(B.cy+B.y1,B.cx+B.x1),at(N.cy+N.y1,N.cx+N.x1),c),$>0&&r.arc(u+N.cx,h+N.cy,$,at(N.y1,N.x1),at(N.y0,N.x0),!c))}else r.lineTo(u+z,h+F),r.arc(u,h,n,f,l,c)}r.closePath()}}}var rc=(function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return r})(),ec=(function(r){Z(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new rc},t.prototype.buildPath=function(e,i){tc(e,i)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t})(lt);ec.prototype.type="sector";var ic=(function(){function r(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return r})(),nc=(function(r){Z(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new ic},t.prototype.buildPath=function(e,i){var n=i.cx,a=i.cy,o=Math.PI*2;e.moveTo(n+i.r,a),e.arc(n,a,i.r,0,o,!1),e.moveTo(n+i.r0,a),e.arc(n,a,i.r0,0,o,!0)},t})(lt);nc.prototype.type="ring";function ac(r,t,e,i){var n=[],a=[],o=[],s=[],l,f,u,h;if(i){u=[1/0,1/0],h=[-1/0,-1/0];for(var c=0,v=r.length;c<v;c++)xr(u,u,r[c]),Sr(h,h,r[c]);xr(u,u,i[0]),Sr(h,h,i[1])}for(var c=0,v=r.length;c<v;c++){var p=r[c];if(e)l=r[c?c-1:v-1],f=r[(c+1)%v];else if(c===0||c===v-1){n.push(ks(r[c]));continue}else l=r[c-1],f=r[c+1];Ds(a,f,l),ci(a,a,t);var _=Ci(p,l),g=Ci(p,f),d=_+g;d!==0&&(_/=d,g/=d),ci(o,a,-_),ci(s,a,g);var m=Gn([],p,o),b=Gn([],p,s);i&&(Sr(m,m,u),xr(m,m,h),Sr(b,b,u),xr(b,b,h)),n.push(m),n.push(b)}return e&&n.push(n.shift()),n}function fl(r,t,e){var i=t.smooth,n=t.points;if(n&&n.length>=2){if(i){var a=ac(n,i,e,t.smoothConstraint);r.moveTo(n[0][0],n[0][1]);for(var o=n.length,s=0;s<(e?o:o-1);s++){var l=a[s*2],f=a[s*2+1],u=n[(s+1)%o];r.bezierCurveTo(l[0],l[1],f[0],f[1],u[0],u[1])}}else{r.moveTo(n[0][0],n[0][1]);for(var s=1,h=n.length;s<h;s++)r.lineTo(n[s][0],n[s][1])}e&&r.closePath()}}var oc=(function(){function r(){this.points=null,this.smooth=0,this.smoothConstraint=null}return r})(),sc=(function(r){Z(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new oc},t.prototype.buildPath=function(e,i){fl(e,i,!0)},t})(lt);sc.prototype.type="polygon";var lc=(function(){function r(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return r})(),fc=(function(r){Z(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new lc},t.prototype.buildPath=function(e,i){fl(e,i,!1)},t})(lt);fc.prototype.type="polyline";var uc={},hc=(function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return r})(),cc=(function(r){Z(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new hc},t.prototype.buildPath=function(e,i){var n,a,o,s;if(this.subPixelOptimize){var l=Ah(uc,i,this.style);n=l.x1,a=l.y1,o=l.x2,s=l.y2}else n=i.x1,a=i.y1,o=i.x2,s=i.y2;var f=i.percent;f!==0&&(e.moveTo(n,a),f<1&&(o=n*(1-f)+o*f,s=a*(1-f)+s*f),e.lineTo(o,s))},t.prototype.pointAt=function(e){var i=this.shape;return[i.x1*(1-e)+i.x2*e,i.y1*(1-e)+i.y2*e]},t})(lt);cc.prototype.type="line";var vt=[],vc=(function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return r})();function Mo(r,t,e){var i=r.cpx2,n=r.cpy2;return i!=null||n!=null?[(e?Qa:nt)(r.x1,r.cpx1,r.cpx2,r.x2,t),(e?Qa:nt)(r.y1,r.cpy1,r.cpy2,r.y2,t)]:[(e?Ka:st)(r.x1,r.cpx1,r.x2,t),(e?Ka:st)(r.y1,r.cpy1,r.y2,t)]}var dc=(function(r){Z(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new vc},t.prototype.buildPath=function(e,i){var n=i.x1,a=i.y1,o=i.x2,s=i.y2,l=i.cpx1,f=i.cpy1,u=i.cpx2,h=i.cpy2,c=i.percent;c!==0&&(e.moveTo(n,a),u==null||h==null?(c<1&&(Mi(n,l,o,c,vt),l=vt[1],o=vt[2],Mi(a,f,s,c,vt),f=vt[1],s=vt[2]),e.quadraticCurveTo(l,f,o,s)):(c<1&&(Si(n,l,u,o,c,vt),l=vt[1],u=vt[2],o=vt[3],Si(a,f,h,s,c,vt),f=vt[1],h=vt[2],s=vt[3]),e.bezierCurveTo(l,f,u,h,o,s)))},t.prototype.pointAt=function(e){return Mo(this.shape,e,!1)},t.prototype.tangentAt=function(e){var i=Mo(this.shape,e,!0);return Is(i,i)},t})(lt);dc.prototype.type="bezier-curve";var pc=(function(){function r(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r})(),gc=(function(r){Z(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new pc},t.prototype.buildPath=function(e,i){var n=i.cx,a=i.cy,o=Math.max(i.r,0),s=i.startAngle,l=i.endAngle,f=i.clockwise,u=Math.cos(s),h=Math.sin(s);e.moveTo(u*o+n,h*o+a),e.arc(n,a,o,s,l,!f)},t})(lt);gc.prototype.type="arc";var Uv=(function(r){Z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="compound",e}return t.prototype._updatePathDirty=function(){for(var e=this.shape.paths,i=this.shapeChanged(),n=0;n<e.length;n++)i=i||e[n].shapeChanged();i&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var e=this.shape.paths||[],i=this.getGlobalScale(),n=0;n<e.length;n++)e[n].path||e[n].createPathProxy(),e[n].path.setScale(i[0],i[1],e[n].segmentIgnoreThreshold)},t.prototype.buildPath=function(e,i){for(var n=i.paths||[],a=0;a<n.length;a++)n[a].buildPath(e,n[a].shape,!0)},t.prototype.afterBrush=function(){for(var e=this.shape.paths||[],i=0;i<e.length;i++)e[i].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),lt.prototype.getBoundingRect.call(this)},t})(lt),ul=(function(){function r(t){this.colorStops=t||[]}return r.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})},r})(),Zv=(function(r){Z(t,r);function t(e,i,n,a,o,s){var l=r.call(this,o)||this;return l.x=e??0,l.y=i??0,l.x2=n??1,l.y2=a??0,l.type="linear",l.global=s||!1,l}return t})(ul),Qv=(function(r){Z(t,r);function t(e,i,n,a,o){var s=r.call(this,a)||this;return s.x=e??.5,s.y=i??.5,s.r=n??.5,s.type="radial",s.global=o||!1,s}return t})(ul),gn=Math.min,_c=Math.max,ii=Math.abs,wr=[0,0],Tr=[0,0],it=zs(),ni=it.minTv,ai=it.maxTv,Kv=(function(){function r(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var i=0;i<4;i++)this._corners[i]=new tt;for(var i=0;i<2;i++)this._axes[i]=new tt;t&&this.fromBoundingRect(t,e)}return r.prototype.fromBoundingRect=function(t,e){var i=this._corners,n=this._axes,a=t.x,o=t.y,s=a+t.width,l=o+t.height;if(i[0].set(a,o),i[1].set(s,o),i[2].set(s,l),i[3].set(a,l),e)for(var f=0;f<4;f++)i[f].transform(e);tt.sub(n[0],i[1],i[0]),tt.sub(n[1],i[3],i[0]),n[0].normalize(),n[1].normalize();for(var f=0;f<2;f++)this._origin[f]=n[f].dot(i[0])},r.prototype.intersect=function(t,e,i){var n=!0,a=!e;return e&&tt.set(e,0,0),it.reset(i,!a),!this._intersectCheckOneSide(this,t,a,1)&&(n=!1,a)||!this._intersectCheckOneSide(t,this,a,-1)&&(n=!1,a)||!a&&!it.negativeSize&&tt.copy(e,n?it.useDir?it.dirMinTv:ni:ai),n},r.prototype._intersectCheckOneSide=function(t,e,i,n){for(var a=!0,o=0;o<2;o++){var s=t._axes[o];if(t._getProjMinMaxOnAxis(o,t._corners,wr),t._getProjMinMaxOnAxis(o,e._corners,Tr),it.negativeSize||wr[1]<Tr[0]||wr[0]>Tr[1]){if(a=!1,it.negativeSize||i)return a;var l=ii(Tr[0]-wr[1]),f=ii(wr[0]-Tr[1]);gn(l,f)>ai.len()&&(l<f?tt.scale(ai,s,-l*n):tt.scale(ai,s,f*n))}else if(!i){var l=ii(Tr[0]-wr[1]),f=ii(wr[0]-Tr[1]);(it.useDir||gn(l,f)<ni.len())&&((l<f||!it.bidirectional)&&(tt.scale(ni,s,l*n),it.useDir&&it.calcDirMTV()),(l>=f||!it.bidirectional)&&(tt.scale(ni,s,-f*n),it.useDir&&it.calcDirMTV()))}}return a},r.prototype._getProjMinMaxOnAxis=function(t,e,i){for(var n=this._axes[t],a=this._origin,o=e[0].dot(n)+a[t],s=o,l=o,f=1;f<e.length;f++){var u=e[f].dot(n)+a[t];s=gn(u,s),l=_c(u,l)}i[0]=s+it.touchThreshold,i[1]=l-it.touchThreshold,it.negativeSize=i[1]<i[0]},r})(),hl=0,mc=1,yc=2,bc=1,mi=0,wc=[],jv=(function(r){Z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.notClear=!0,e.incremental=mc,e._displayables=[],e._temporaryDisplayables=[],e._cursor=0,e}return t.prototype.traverse=function(e,i){e.call(i,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,i){i?this._temporaryDisplayables.push(e):this._displayables.push(e),this.markRedraw()},t.prototype.addDisplayables=function(e,i){i=i||!1;for(var n=0;n<e.length;n++)this.addDisplayable(e[n],i)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(e){for(var i=this._cursor;i<this._displayables.length;i++)e&&e(this._displayables[i]);for(var i=0;i<this._temporaryDisplayables.length;i++)e&&e(this._temporaryDisplayables[i])},t.prototype.update=function(){this.updateTransform();for(var e=this._cursor;e<this._displayables.length;e++){var i=this._displayables[e];i.parent=this,i.update(),i.parent=null}for(var e=0;e<this._temporaryDisplayables.length;e++){var i=this._temporaryDisplayables[e];i.parent=this,i.update(),i.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var e=new Y(1/0,1/0,-1/0,-1/0),i=0;i<this._displayables.length;i++){var n=this._displayables[i],a=n.getBoundingRect().clone();n.needLocalTransform()&&a.applyTransform(n.getLocalTransform(wc)),e.union(a)}this._rect=e}return this._rect},t.prototype.contain=function(e,i){var n=this.transformCoordToLocal(e,i),a=this.getBoundingRect();if(a.contain(n[0],n[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(e,i))return!0}return!1},t})(ze),Tc=Math.log(2);function ia(r,t,e,i,n,a){var o=i+"-"+n,s=r.length;if(a.hasOwnProperty(o))return a[o];if(t===1){var l=Math.round(Math.log((1<<s)-1&~n)/Tc);return r[e][l]}for(var f=i|1<<e,u=e+1;i&1<<u;)u++;for(var h=0,c=0,v=0;c<s;c++){var p=1<<c;p&n||(h+=(v%2?-1:1)*r[e][c]*ia(r,t-1,u,f,n|p,a),v++)}return a[o]=h,h}function Po(r,t){var e=[[r[0],r[1],1,0,0,0,-t[0]*r[0],-t[0]*r[1]],[0,0,0,r[0],r[1],1,-t[1]*r[0],-t[1]*r[1]],[r[2],r[3],1,0,0,0,-t[2]*r[2],-t[2]*r[3]],[0,0,0,r[2],r[3],1,-t[3]*r[2],-t[3]*r[3]],[r[4],r[5],1,0,0,0,-t[4]*r[4],-t[4]*r[5]],[0,0,0,r[4],r[5],1,-t[5]*r[4],-t[5]*r[5]],[r[6],r[7],1,0,0,0,-t[6]*r[6],-t[6]*r[7]],[0,0,0,r[6],r[7],1,-t[7]*r[6],-t[7]*r[7]]],i={},n=ia(e,8,0,0,0,i);if(n!==0){for(var a=[],o=0;o<8;o++)for(var s=0;s<8;s++)a[s]==null&&(a[s]=0),a[s]+=((o+s)%2?-1:1)*ia(e,7,o===0?1:0,1<<o,1<<s,i)/n*t[o];return function(l,f,u){var h=f*a[6]+u*a[7]+1;l[0]=(f*a[0]+u*a[1]+a[2])/h,l[1]=(f*a[3]+u*a[4]+a[5])/h}}}var Ri="___zrEVENTSAVED",_n=[];function Jv(r,t,e,i,n){return na(_n,t,i,n,!0)&&na(r,e,_n[0],_n[1])}function td(r,t){r&&e(r),t&&e(t);function e(i){var n=i[Ri];n&&(n.clearMarkers&&n.clearMarkers(),delete i[Ri])}}function na(r,t,e,i,n){if(t.getBoundingClientRect&&J.domSupported&&!cl(t)){var a=t[Ri]||(t[Ri]={}),o=Cc(t,a),s=xc(o,a,n);if(s)return s(r,e,i),!0}return!1}function Cc(r,t){var e=t.markers;if(e)return e;e=t.markers=[];for(var i=["left","right"],n=["top","bottom"],a=0;a<4;a++){var o=document.createElement("div"),s=o.style,l=a%2,f=(a>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[l]+":0",n[f]+":0",i[1-l]+":auto",n[1-f]+":auto",""].join("!important;"),r.appendChild(o),e.push(o)}return t.clearMarkers=function(){gt(e,function(u){u.parentNode&&u.parentNode.removeChild(u)})},e}function xc(r,t,e){for(var i=e?"invTrans":"trans",n=t[i],a=t.srcCoords,o=[],s=[],l=!0,f=0;f<4;f++){var u=r[f].getBoundingClientRect(),h=2*f,c=u.left,v=u.top;o.push(c,v),l=l&&a&&c===a[h]&&v===a[h+1],s.push(r[f].offsetLeft,r[f].offsetTop)}return l&&n?n:(t.srcCoords=o,t[i]=e?Po(s,o):Po(o,s))}function cl(r){return r.nodeName.toUpperCase()==="CANVAS"}var Sc=/([&<>"'])/g,Mc={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function rd(r){return r==null?"":(r+"").replace(Sc,function(t,e){return Mc[e]})}var qr=(function(){function r(t,e){this.target=t,this.topTarget=e&&e.topTarget}return r})(),Pc=(function(){function r(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return r.prototype._dragStart=function(t){for(var e=t.target;e&&!e.draggable;)e=e.parent||e.__hostTarget;e&&(this._draggingTarget=e,e.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new qr(e,t),"dragstart",t.event))},r.prototype._drag=function(t){var e=this._draggingTarget;if(e){var i=t.offsetX,n=t.offsetY,a=i-this._x,o=n-this._y;this._x=i,this._y=n,e.drift(a,o,t),this.handler.dispatchToElement(new qr(e,t),"drag",t.event);var s=this.handler.findHover(i,n,e).target,l=this._dropTarget;this._dropTarget=s,e!==s&&(l&&s!==l&&this.handler.dispatchToElement(new qr(l,t),"dragleave",t.event),s&&s!==l&&this.handler.dispatchToElement(new qr(s,t),"dragenter",t.event))}},r.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new qr(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new qr(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},r})(),Lc=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,mn=[],Rc=J.browser.firefox&&+J.browser.version.split(".")[0]<39;function aa(r,t,e,i){return e=e||{},i?Lo(r,t,e):Rc&&t.layerX!=null&&t.layerX!==t.offsetX?(e.zrX=t.layerX,e.zrY=t.layerY):t.offsetX!=null?(e.zrX=t.offsetX,e.zrY=t.offsetY):Lo(r,t,e),e}function Lo(r,t,e){if(J.domSupported&&r.getBoundingClientRect){var i=t.clientX,n=t.clientY;if(cl(r)){var a=r.getBoundingClientRect();e.zrX=i-a.left,e.zrY=n-a.top;return}else if(na(mn,r,i,n)){e.zrX=mn[0],e.zrY=mn[1];return}}e.zrX=e.zrY=0}function Ra(r){return r||window.event}function Lt(r,t,e){if(t=Ra(t),t.zrX!=null)return t;var i=t.type,n=i&&i.indexOf("touch")>=0;if(n){var o=i!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&aa(r,o,t,e)}else{aa(r,t,t,e);var a=Ac(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&Lc.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function Ac(r){var t=r.wheelDelta;if(t)return t;var e=r.deltaX,i=r.deltaY;if(e==null||i==null)return t;var n=Math.abs(i!==0?i:e),a=i>0?-1:i<0?1:e>0?-1:1;return 3*n*a}function kc(r,t,e,i){r.addEventListener(t,e,i)}function Dc(r,t,e,i){r.removeEventListener(t,e,i)}var Ic=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};function ed(r){return r.which===2||r.which===3}var Ec=(function(){function r(){this._track=[]}return r.prototype.recognize=function(t,e,i){return this._doTrack(t,e,i),this._recognize(t)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(t,e,i){var n=t.touches;if(n){for(var a={points:[],touches:[],target:e,event:t},o=0,s=n.length;o<s;o++){var l=n[o],f=aa(i,l,{});a.points.push([f.zrX,f.zrY]),a.touches.push(l)}this._track.push(a)}},r.prototype._recognize=function(t){for(var e in yn)if(yn.hasOwnProperty(e)){var i=yn[e](this._track,t);if(i)return i}},r})();function Ro(r){var t=r[1][0]-r[0][0],e=r[1][1]-r[0][1];return Math.sqrt(t*t+e*e)}function Oc(r){return[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]}var yn={pinch:function(r,t){var e=r.length;if(e){var i=(r[e-1]||{}).points,n=(r[e-2]||{}).points||i;if(n&&n.length>1&&i&&i.length>1){var a=Ro(i)/Ro(n);!isFinite(a)&&(a=1),t.pinchScale=a;var o=Oc(i);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:r[0].target,event:t}}}}},vl="silent";function zc(r,t,e){return{type:r,event:e,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:e.zrX,offsetY:e.zrY,gestureEvent:e.gestureEvent,pinchX:e.pinchX,pinchY:e.pinchY,pinchScale:e.pinchScale,wheelDelta:e.zrDelta,zrByTouch:e.zrByTouch,which:e.which,stop:Bc}}function Bc(){Ic(this.event)}var Fc=(function(r){Z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.handler=null,e}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t})(ue),ge=(function(){function r(t,e){this.x=t,this.y=e}return r})(),Hc=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],bn=new Y(0,0,0,0),dl=(function(r){Z(t,r);function t(e,i,n,a,o){var s=r.call(this)||this;return s._hovered=new ge(0,0),s.storage=e,s.painter=i,s.painterRoot=a,s._pointerSize=o,n=n||new Fc,s.proxy=null,s.setHandlerProxy(n),s._draggingMgr=new Pc(s),s}return t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(gt(Hc,function(i){e.on&&e.on(i,this[i],this)},this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var i=e.zrX,n=e.zrY,a=pl(this,i,n),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=a?new ge(i,n):this.findHover(i,n),f=l.target,u=this.proxy;u.setCursor&&u.setCursor(f?f.cursor:"default"),s&&f!==s&&this.dispatchToElement(o,"mouseout",e),this.dispatchToElement(l,"mousemove",e),f&&f!==s&&this.dispatchToElement(l,"mouseover",e)},t.prototype.mouseout=function(e){var i=e.zrEventControl;i!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",e),i!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:e})},t.prototype.resize=function(){this._hovered=new ge(0,0)},t.prototype.dispatch=function(e,i){var n=this[e];n&&n.call(this,i)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var i=this.proxy;i.setCursor&&i.setCursor(e)},t.prototype.dispatchToElement=function(e,i,n){e=e||{};var a=e.target;if(!(a&&a.silent)){for(var o="on"+i,s=zc(i,e,n);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(i,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(i,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(i,s)}))}},t.prototype.findHover=function(e,i,n){var a=this.storage.getDisplayList(),o=new ge(e,i);if(Ao(a,o,e,i,n),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,f=l/2,u=new Y(e-f,i-f,l,l),h=a.length-1;h>=0;h--){var c=a[h];c!==n&&!c.ignore&&!c.ignoreCoarsePointer&&(!c.parent||!c.parent.ignoreCoarsePointer)&&(bn.copy(c.getBoundingRect()),c.transform&&bn.applyTransform(c.transform),bn.intersect(u)&&s.push(c))}if(s.length)for(var v=4,p=Math.PI/12,_=Math.PI*2,g=0;g<f;g+=v)for(var d=0;d<_;d+=p){var m=e+g*Math.cos(d),b=i+g*Math.sin(d);if(Ao(s,o,m,b,n),o.target)return o}}return o},t.prototype.processGesture=function(e,i){this._gestureMgr||(this._gestureMgr=new Ec);var n=this._gestureMgr;i==="start"&&n.clear();var a=n.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom);if(i==="end"&&n.clear(),a){var o=a.type;e.gestureEvent=o;var s=new ge;s.target=a.target,this.dispatchToElement(s,o,a.event)}},t})(ue);gt(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(r){dl.prototype[r]=function(t){var e=t.zrX,i=t.zrY,n=pl(this,e,i),a,o;if((r!=="mouseup"||!n)&&(a=this.findHover(e,i),o=a.target),r==="mousedown")this._downEl=o,this._downPoint=[t.zrX,t.zrY],this._upEl=o;else if(r==="mouseup")this._upEl=o;else if(r==="click"){if(this._downEl!==this._upEl||!this._downPoint||Es(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,r,t)}});function Nc(r,t,e){if(r[r.rectHover?"rectContain":"contain"](t,e)){for(var i=r,n=void 0,a=!1;i;){if(i.ignoreClip&&(a=!0),!a){var o=i.getClipPath();if(o&&!o.contain(t,e))return!1}i.silent&&(n=!0);var s=i.__hostTarget;i=s?i.ignoreHostSilent?null:s:i.parent}return n?vl:!0}return!1}function Ao(r,t,e,i,n){for(var a=r.length-1;a>=0;a--){var o=r[a],s=void 0;if(o!==n&&!o.ignore&&(s=Nc(o,e,i))&&(!t.topTarget&&(t.topTarget=o),s!==vl)){t.target=o;break}}}function pl(r,t,e){var i=r.painter;return t<0||t>i.getWidth()||e<0||e>i.getHeight()}var gl=32,_e=7;function Gc(r){for(var t=0;r>=gl;)t|=r&1,r>>=1;return r+t}function ko(r,t,e,i){var n=t+1;if(n===e)return 1;if(i(r[n++],r[t])<0){for(;n<e&&i(r[n],r[n-1])<0;)n++;Wc(r,t,n)}else for(;n<e&&i(r[n],r[n-1])>=0;)n++;return n-t}function Wc(r,t,e){for(e--;t<e;){var i=r[t];r[t++]=r[e],r[e--]=i}}function Do(r,t,e,i,n){for(i===t&&i++;i<e;i++){for(var a=r[i],o=t,s=i,l;o<s;)l=o+s>>>1,n(a,r[l])<0?s=l:o=l+1;var f=i-o;switch(f){case 3:r[o+3]=r[o+2];case 2:r[o+2]=r[o+1];case 1:r[o+1]=r[o];break;default:for(;f>0;)r[o+f]=r[o+f-1],f--}r[o]=a}}function wn(r,t,e,i,n,a){var o=0,s=0,l=1;if(a(r,t[e+n])>0){for(s=i-n;l<s&&a(r,t[e+n+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}else{for(s=n+1;l<s&&a(r,t[e+n-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var f=o;o=n-l,l=n-f}for(o++;o<l;){var u=o+(l-o>>>1);a(r,t[e+u])>0?o=u+1:l=u}return l}function Tn(r,t,e,i,n,a){var o=0,s=0,l=1;if(a(r,t[e+n])<0){for(s=n+1;l<s&&a(r,t[e+n-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var f=o;o=n-l,l=n-f}else{for(s=i-n;l<s&&a(r,t[e+n+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}for(o++;o<l;){var u=o+(l-o>>>1);a(r,t[e+u])<0?l=u:o=u+1}return l}function Yc(r,t){var e=_e,i,n,a=0,o=[];i=[],n=[];function s(v,p){i[a]=v,n[a]=p,a+=1}function l(){for(;a>1;){var v=a-2;if(v>=1&&n[v-1]<=n[v]+n[v+1]||v>=2&&n[v-2]<=n[v]+n[v-1])n[v-1]<n[v+1]&&v--;else if(n[v]>n[v+1])break;u(v)}}function f(){for(;a>1;){var v=a-2;v>0&&n[v-1]<n[v+1]&&v--,u(v)}}function u(v){var p=i[v],_=n[v],g=i[v+1],d=n[v+1];n[v]=_+d,v===a-3&&(i[v+1]=i[v+2],n[v+1]=n[v+2]),a--;var m=Tn(r[g],r,p,_,0,t);p+=m,_-=m,_!==0&&(d=wn(r[p+_-1],r,g,d,d-1,t),d!==0&&(_<=d?h(p,_,g,d):c(p,_,g,d)))}function h(v,p,_,g){var d=0;for(d=0;d<p;d++)o[d]=r[v+d];var m=0,b=_,y=v;if(r[y++]=r[b++],--g===0){for(d=0;d<p;d++)r[y+d]=o[m+d];return}if(p===1){for(d=0;d<g;d++)r[y+d]=r[b+d];r[y+g]=o[m];return}for(var C=e,T,M,w;;){T=0,M=0,w=!1;do if(t(r[b],o[m])<0){if(r[y++]=r[b++],M++,T=0,--g===0){w=!0;break}}else if(r[y++]=o[m++],T++,M=0,--p===1){w=!0;break}while((T|M)<C);if(w)break;do{if(T=Tn(r[b],o,m,p,0,t),T!==0){for(d=0;d<T;d++)r[y+d]=o[m+d];if(y+=T,m+=T,p-=T,p<=1){w=!0;break}}if(r[y++]=r[b++],--g===0){w=!0;break}if(M=wn(o[m],r,b,g,0,t),M!==0){for(d=0;d<M;d++)r[y+d]=r[b+d];if(y+=M,b+=M,g-=M,g===0){w=!0;break}}if(r[y++]=o[m++],--p===1){w=!0;break}C--}while(T>=_e||M>=_e);if(w)break;C<0&&(C=0),C+=2}if(e=C,e<1&&(e=1),p===1){for(d=0;d<g;d++)r[y+d]=r[b+d];r[y+g]=o[m]}else{if(p===0)throw new Error;for(d=0;d<p;d++)r[y+d]=o[m+d]}}function c(v,p,_,g){var d=0;for(d=0;d<g;d++)o[d]=r[_+d];var m=v+p-1,b=g-1,y=_+g-1,C=0,T=0;if(r[y--]=r[m--],--p===0){for(C=y-(g-1),d=0;d<g;d++)r[C+d]=o[d];return}if(g===1){for(y-=p,m-=p,T=y+1,C=m+1,d=p-1;d>=0;d--)r[T+d]=r[C+d];r[y]=o[b];return}for(var M=e;;){var w=0,S=0,P=!1;do if(t(o[b],r[m])<0){if(r[y--]=r[m--],w++,S=0,--p===0){P=!0;break}}else if(r[y--]=o[b--],S++,w=0,--g===1){P=!0;break}while((w|S)<M);if(P)break;do{if(w=p-Tn(o[b],r,v,p,p-1,t),w!==0){for(y-=w,m-=w,p-=w,T=y+1,C=m+1,d=w-1;d>=0;d--)r[T+d]=r[C+d];if(p===0){P=!0;break}}if(r[y--]=o[b--],--g===1){P=!0;break}if(S=g-wn(r[m],o,0,g,g-1,t),S!==0){for(y-=S,b-=S,g-=S,T=y+1,C=b+1,d=0;d<S;d++)r[T+d]=o[C+d];if(g<=1){P=!0;break}}if(r[y--]=r[m--],--p===0){P=!0;break}M--}while(w>=_e||S>=_e);if(P)break;M<0&&(M=0),M+=2}if(e=M,e<1&&(e=1),g===1){for(y-=p,m-=p,T=y+1,C=m+1,d=p-1;d>=0;d--)r[T+d]=r[C+d];r[y]=o[b]}else{if(g===0)throw new Error;for(C=y-(g-1),d=0;d<g;d++)r[C+d]=o[d]}}return{mergeRuns:l,forceMergeRuns:f,pushRun:s}}function Vc(r,t,e,i){e||(e=0),i||(i=r.length);var n=i-e;if(!(n<2)){var a=0;if(n<gl){a=ko(r,e,i,t),Do(r,e,i,e+a,t);return}var o=Yc(r,t),s=Gc(n);do{if(a=ko(r,e,i,t),a<s){var l=n;l>s&&(l=s),Do(r,e,e+l,e+a,t),a=l}o.pushRun(e,a),o.mergeRuns(),n-=a,e+=a}while(n!==0);o.forceMergeRuns()}}var Io=!1;function Cn(){Io||(Io=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Eo(r,t){return r.zlevel===t.zlevel?r.z===t.z?r.z2-t.z2:r.z-t.z:r.zlevel-t.zlevel}var Xc=(function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Eo}return r.prototype.traverse=function(t,e){for(var i=0;i<this._roots.length;i++)this._roots[i].traverse(t,e)},r.prototype.getDisplayList=function(t,e){e=e||!1;var i=this._displayList;return(t||!i.length)&&this.updateDisplayList(e),i},r.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var e=this._roots,i=this._displayList,n=0,a=e.length;n<a;n++)this._updateAndAddDisplayable(e[n],null,t);i.length=this._displayListLen,Vc(i,Eo)},r.prototype._updateAndAddDisplayable=function(t,e,i){if(!(t.ignore&&!i)){t.beforeUpdate(),t.update(),t.afterUpdate();var n=t.getClipPath(),a=e&&e.length,o=0,s=t.__clipPaths;if(!t.ignoreClip&&(a||n)){if(s||(s=t.__clipPaths=[]),a)for(var l=0;l<e.length;l++)s[o++]=e[l];for(var f=n,u=t;f;)f.parent=u,f.updateTransform(),s[o++]=f,u=f,f=f.getClipPath()}if(s&&(s.length=o),t.childrenRef){for(var h=t.childrenRef(),c=0;c<h.length;c++){var v=h[c];t.__dirty&&(v.__dirty|=pt),this._updateAndAddDisplayable(v,s,i)}t.__dirty=0}else{var p=t;isNaN(p.z)&&(Cn(),p.z=0),isNaN(p.z2)&&(Cn(),p.z2=0),isNaN(p.zlevel)&&(Cn(),p.zlevel=0),this._displayList[this._displayListLen++]=p}var _=t.getDecalElement&&t.getDecalElement();_&&this._updateAndAddDisplayable(_,s,i);var g=t.getTextGuideLine();g&&this._updateAndAddDisplayable(g,s,i);var d=t.getTextContent();d&&this._updateAndAddDisplayable(d,s,i)}},r.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},r.prototype.delRoot=function(t){if(t instanceof Array){for(var e=0,i=t.length;e<i;e++)this.delRoot(t[e]);return}var n=Ht(this._roots,t);n>=0&&this._roots.splice(n,1)},r.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},r.prototype.getRoots=function(){return this._roots},r.prototype.dispose=function(){this._displayList=null,this._roots=null},r})(),Ai;Ai=J.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};function te(){return new Date().getTime()}var $c=(function(r){Z(t,r);function t(e){var i=r.call(this)||this;return i._running=!1,i._time=0,i._pausedTime=0,i._pauseStart=0,i._paused=!1,e=e||{},i.stage=e.stage||{},i}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 i=e.getClip();i&&this.addClip(i)},t.prototype.removeClip=function(e){if(e.animation){var i=e.prev,n=e.next;i?i.next=n:this._head=n,n?n.prev=i:this._tail=i,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var i=e.getClip();i&&this.removeClip(i),e.animation=null},t.prototype.update=function(e){for(var i=te()-this._pausedTime,n=i-this._time,a=this._head;a;){var o=a.next,s=a.step(i,n);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=i,e||(this.trigger("frame",n),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0;function i(){e._running&&(Ai(i),!e._paused&&e.update())}Ai(i)},t.prototype.start=function(){this._running||(this._time=te(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=te(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=te()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var e=this._head;e;){var i=e.next;e.prev=e.next=e.animation=null,e=i}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(e,i){i=i||{},this.start();var n=new Pa(e,i.loop);return this.addAnimator(n),n},t})(ue),qc=300,xn=J.domSupported,Sn=(function(){var r=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],e={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},i=Br(r,function(n){var a=n.replace("mouse","pointer");return e.hasOwnProperty(a)?a:n});return{mouse:r,touch:t,pointer:i}})(),Oo={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},zo=!1;function oa(r){var t=r.pointerType;return t==="pen"||t==="touch"}function Uc(r){r.touching=!0,r.touchTimer!=null&&(clearTimeout(r.touchTimer),r.touchTimer=null),r.touchTimer=setTimeout(function(){r.touching=!1,r.touchTimer=null},700)}function Mn(r){r&&(r.zrByTouch=!0)}function Zc(r,t){return Lt(r.dom,new Qc(r,t),!0)}function _l(r,t){for(var e=t,i=!1;e&&e.nodeType!==9&&!(i=e.domBelongToZr||e!==t&&e===r.painterRoot);)e=e.parentNode;return i}var Qc=(function(){function r(t,e){this.stopPropagation=kr,this.stopImmediatePropagation=kr,this.preventDefault=kr,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}return r})(),Rt={mousedown:function(r){r=Lt(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=Lt(this.dom,r);var t=this.__mayPointerCapture;t&&(r.zrX!==t[0]||r.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",r)},mouseup:function(r){r=Lt(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=Lt(this.dom,r);var t=r.toElement||r.relatedTarget;_l(this,t)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){zo=!0,r=Lt(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){zo||(r=Lt(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=Lt(this.dom,r),Mn(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),Rt.mousemove.call(this,r),Rt.mousedown.call(this,r)},touchmove:function(r){r=Lt(this.dom,r),Mn(r),this.handler.processGesture(r,"change"),Rt.mousemove.call(this,r)},touchend:function(r){r=Lt(this.dom,r),Mn(r),this.handler.processGesture(r,"end"),Rt.mouseup.call(this,r),+new Date-+this.__lastTouchMoment<qc&&Rt.click.call(this,r)},pointerdown:function(r){Rt.mousedown.call(this,r)},pointermove:function(r){oa(r)||Rt.mousemove.call(this,r)},pointerup:function(r){Rt.mouseup.call(this,r)},pointerout:function(r){oa(r)||Rt.mouseout.call(this,r)}};gt(["click","dblclick","contextmenu"],function(r){Rt[r]=function(t){t=Lt(this.dom,t),this.trigger(r,t)}});var sa={pointermove:function(r){oa(r)||sa.mousemove.call(this,r)},pointerup:function(r){sa.mouseup.call(this,r)},mousemove:function(r){this.trigger("mousemove",r)},mouseup:function(r){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",r),t&&(r.zrEventControl="only_globalout",this.trigger("mouseout",r))}};function Kc(r,t){var e=t.domHandlers;J.pointerEventsSupported?gt(Sn.pointer,function(i){yi(t,i,function(n){e[i].call(r,n)})}):(J.touchEventsSupported&&gt(Sn.touch,function(i){yi(t,i,function(n){e[i].call(r,n),Uc(t)})}),gt(Sn.mouse,function(i){yi(t,i,function(n){n=Ra(n),t.touching||e[i].call(r,n)})}))}function jc(r,t){J.pointerEventsSupported?gt(Oo.pointer,e):J.touchEventsSupported||gt(Oo.mouse,e);function e(i){function n(a){a=Ra(a),_l(r,a.target)||(a=Zc(r,a),t.domHandlers[i].call(r,a))}yi(t,i,n,{capture:!0})}}function yi(r,t,e,i){r.mounted[t]=e,r.listenerOpts[t]=i,kc(r.domTarget,t,e,i)}function Pn(r){var t=r.mounted;for(var e in t)t.hasOwnProperty(e)&&Dc(r.domTarget,e,t[e],r.listenerOpts[e]);r.mounted={}}var Bo=(function(){function r(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e}return r})(),Jc=(function(r){Z(t,r);function t(e,i){var n=r.call(this)||this;return n.__pointerCapturing=!1,n.dom=e,n.painterRoot=i,n._localHandlerScope=new Bo(e,Rt),xn&&(n._globalHandlerScope=new Bo(document,sa)),Kc(n,n._localHandlerScope),n}return t.prototype.dispose=function(){Pn(this._localHandlerScope),xn&&Pn(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,xn&&+this.__pointerCapturing^+e){this.__pointerCapturing=e;var i=this._globalHandlerScope;e?jc(this,i):Pn(i)}},t})(ue);var bi={},Pr={};function tv(r){delete Pr[r]}function rv(r){if(!r)return!1;if(typeof r=="string")return De(r,1)<Kn;if(r.colorStops){for(var t=r.colorStops,e=0,i=t.length,n=0;n<i;n++)e+=De(t[n].color,1);return e/=i,e<Kn}return!1}var ev=(function(){function r(t,e,i){var n=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!1,this._darkMode=!1,i=i||{},this.dom=e,this.id=t;var a=new Xc,o=i.renderer||"canvas";bi[o]||(o=_t(bi)[0]),i.useDirtyRect=i.useDirtyRect==null?!1:i.useDirtyRect;var s=new bi[o](e,a,i,t),l=i.ssr||s.ssrOnly;this.storage=a,this.painter=s;var f=!J.node&&!J.worker&&!l?new Jc(s.getViewportRoot(),s.root):null,u=i.useCoarsePointer,h=u==null||u==="auto"?J.touchEventsSupported:!!u,c=44,v;h&&(v=ct(i.pointerSize,c)),this.handler=new dl(a,s,f,s.root,v),this.animation=new $c({stage:{update:l?null:function(){return n._flush(!1)}}}),l||this.animation.start()}return r.prototype.add=function(t){this._disposed||!t||(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},r.prototype.remove=function(t){this._disposed||!t||(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},r.prototype.configLayer=function(t,e){this._disposed||(this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh())},r.prototype.setBackgroundColor=function(t){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=rv(t))},r.prototype.getBackgroundColor=function(){return this._backgroundColor},r.prototype.setDarkMode=function(t){this._darkMode=t},r.prototype.isDarkMode=function(){return this._darkMode},r.prototype.refreshImmediately=function(t){this._disposed||this._refresh({animUpdate:!t,refresh:!0,refreshHover:!1})},r.prototype._refresh=function(t){t.animUpdate&&this.animation.update(!0),this._needsRefresh=this._needsRefreshHover=!1,this.painter.refresh({refresh:t.refresh,refreshHover:t.refreshHover}),this._needsRefresh=this._needsRefreshHover=!1},r.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},r.prototype.flush=function(){this._disposed||this._flush(!0)},r.prototype._flush=function(t){var e,i=te(),n=this._needsRefresh,a=this._needsRefreshHover;(n||a)&&(e=!0,this._refresh({animUpdate:t,refresh:n,refreshHover:a}));var o=te();e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:o-i})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},r.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},r.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},r.prototype.refreshHover=function(){this._needsRefreshHover=!0},r.prototype.refreshHoverImmediately=function(){this._disposed||this._refresh({animUpdate:!1,refresh:!1,refreshHover:!0})},r.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},r.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},r.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},r.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},r.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},r.prototype.findHover=function(t,e){if(!this._disposed)return this.handler.findHover(t,e)},r.prototype.on=function(t,e,i){return this._disposed||this.handler.on(t,e,i),this},r.prototype.off=function(t,e){this._disposed||this.handler.off(t,e)},r.prototype.trigger=function(t,e){this._disposed||this.handler.trigger(t,e)},r.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),e=0;e<t.length;e++)t[e]instanceof sl&&t[e].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},r.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,tv(this.id))},r})();function iv(r,t){var e=new ev(_a(),r,t);return Pr[e.id]=e,e}function nv(r){r.dispose()}function av(){for(var r in Pr)Pr.hasOwnProperty(r)&&Pr[r].dispose();Pr={}}function ov(r){return Pr[r]}function sv(r,t){bi[r]=t}var la;function lv(r){if(typeof la=="function")return la(r)}function fv(r){la=r}var uv="6.1.0";const id=Object.freeze(Object.defineProperty({__proto__:null,dispose:nv,disposeAll:av,getElementSSRData:lv,getInstance:ov,init:iv,registerPainter:sv,registerSSRDataGetter:fv,version:uv},Symbol.toStringTag,{value:"Module"}));var hv=Math.round(Math.random()*9),cv=typeof Object.defineProperty=="function",nd=(function(){function r(){this._id="__ec_inner_"+hv++}return r.prototype.get=function(t){return this._guard(t)[this._id]},r.prototype.set=function(t,e){var i=this._guard(t);return cv?Object.defineProperty(i,this._id,{value:e,enumerable:!1,configurable:!0}):i[this._id]=e,this},r.prototype.delete=function(t){return this.has(t)?(delete this._guard(t)[this._id],!0):!1},r.prototype.has=function(t){return!!this._guard(t)[this._id]},r.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},r})();function Lr(r){return isFinite(r)}function vv(r,t,e){var i=t.x==null?0:t.x,n=t.x2==null?1:t.x2,a=t.y==null?0:t.y,o=t.y2==null?0:t.y2;t.global||(i=i*e.width+e.x,n=n*e.width+e.x,a=a*e.height+e.y,o=o*e.height+e.y),i=Lr(i)?i:0,n=Lr(n)?n:1,a=Lr(a)?a:0,o=Lr(o)?o:0;var s=r.createLinearGradient(i,a,n,o);return s}function dv(r,t,e){var i=e.width,n=e.height,a=Math.min(i,n),o=t.x==null?.5:t.x,s=t.y==null?.5:t.y,l=t.r==null?.5:t.r;t.global||(o=o*i+e.x,s=s*n+e.y,l=l*a),o=Lr(o)?o:.5,s=Lr(s)?s:.5,l=l>=0&&Lr(l)?l:.5;var f=r.createRadialGradient(o,s,0,o,s,l);return f}function fa(r,t,e){for(var i=t.type==="radial"?dv(r,t,e):vv(r,t,e),n=t.colorStops,a=0;a<n.length;a++)i.addColorStop(n[a].offset,n[a].color);return i}function pv(r,t){if(r===t||!r&&!t)return!1;if(!r||!t||r.length!==t.length)return!0;for(var e=0;e<r.length;e++)if(r[e]!==t[e])return!0;return!1}function oi(r){return parseInt(r,10)}function si(r,t,e){var i=["width","height"][t],n=["clientWidth","clientHeight"][t],a=["paddingLeft","paddingTop"][t],o=["paddingRight","paddingBottom"][t];if(e[i]!=null&&e[i]!=="auto")return parseFloat(e[i]);var s=document.defaultView.getComputedStyle(r);return(r[n]||oi(s[i])||oi(r.style[i]))-(oi(s[a])||0)-(oi(s[o])||0)||0}function gv(r,t){return!r||r==="solid"||!(t>0)?null:r==="dashed"?[4*t,2*t]:r==="dotted"?[t]:Te(r)?[r]:oe(r)?r:null}function ml(r){var t=r.style,e=t.lineDash&&t.lineWidth>0&&gv(t.lineDash,t.lineWidth),i=t.lineDashOffset;if(e){var n=t.strokeNoScale&&r.getLineScale?r.getLineScale():1;n&&n!==1&&(e=Br(e,function(a){return a/n}),i/=n)}return[e,i]}var _v=new le(!0);function ki(r){var t=r.stroke;return!(t==null||t==="none"||!(r.lineWidth>0))}function Fo(r){return typeof r=="string"&&r!=="none"}function Di(r){var t=r.fill;return t!=null&&t!=="none"}function Ho(r,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var e=r.globalAlpha;r.globalAlpha=t.fillOpacity*t.opacity,r.fill(),r.globalAlpha=e}else r.fill()}function No(r,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var e=r.globalAlpha;r.globalAlpha=t.strokeOpacity*t.opacity,r.stroke(),r.globalAlpha=e}else r.stroke()}function ua(r,t,e){var i=Ls(t.image,t.__image,e);if(Oi(i)){var n=r.createPattern(i,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&n&&n.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*Ms),a.scaleSelf(t.scaleX||1,t.scaleY||1),n.setTransform(a)}return n}}function mv(r,t,e,i,n){var a,o=ki(e),s=Di(e),l=e.strokePercent,f=l<1,u=!t.path;(!t.silent||f)&&u&&t.createPathProxy();var h=t.path||_v,c=t.__dirty;if(!i){var v=e.fill,p=e.stroke,_=s&&!!v.colorStops,g=o&&!!p.colorStops,d=s&&!!v.image,m=o&&!!p.image,b=void 0,y=void 0,C=void 0,T=void 0,M=void 0;(_||g)&&(M=t.getBoundingRect()),_&&(b=c?fa(r,v,M):t.__canvasFillGradient,t.__canvasFillGradient=b),g&&(y=c?fa(r,p,M):t.__canvasStrokeGradient,t.__canvasStrokeGradient=y),d&&(C=c||!t.__canvasFillPattern?ua(r,v,t):t.__canvasFillPattern,t.__canvasFillPattern=C),m&&(T=c||!t.__canvasStrokePattern?ua(r,p,t):t.__canvasStrokePattern,t.__canvasStrokePattern=T),_?r.fillStyle=b:d&&(C?r.fillStyle=C:s=!1),g?r.strokeStyle=y:m&&(T?r.strokeStyle=T:o=!1)}var w=t.getGlobalScale();h.setScale(w[0],w[1],t.segmentIgnoreThreshold);var S,P;r.setLineDash&&e.lineDash&&(a=ml(t),S=a[0],P=a[1]);var R=!0;(u||c&Zr)&&(h.setDPR(r.dpr),f?h.setContext(null):(h.setContext(r),R=!1),h.reset(),t.buildPath(h,t.shape,i),h.toStatic(),t.pathUpdated()),R&&h.rebuildPath(r,f?l:1),S&&(r.setLineDash(S),r.lineDashOffset=P),i?(n.batchFill=s,n.batchStroke=o):e.strokeFirst?(o&&No(r,e),s&&Ho(r,e)):(s&&Ho(r,e),o&&No(r,e)),S&&r.setLineDash([])}function yv(r,t,e){var i=t.__image=Ls(e.image,t.__image,t,t.onload);if(!(!i||!Oi(i))){var n=e.x||0,a=e.y||0,o=t.getWidth(),s=t.getHeight(),l=i.width/i.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=i.width,s=i.height),e.sWidth&&e.sHeight){var f=e.sx||0,u=e.sy||0;r.drawImage(i,f,u,e.sWidth,e.sHeight,n,a,o,s)}else if(e.sx&&e.sy){var f=e.sx,u=e.sy,h=o-f,c=s-u;r.drawImage(i,f,u,h,c,n,a,o,s)}else r.drawImage(i,n,a,o,s)}}function bv(r,t,e){var i,n=e.text;if(n!=null&&(n+=""),n){r.font=e.font||nr,r.textAlign=e.textAlign,r.textBaseline=e.textBaseline;var a=void 0,o=void 0;r.setLineDash&&e.lineDash&&(i=ml(t),a=i[0],o=i[1]),a&&(r.setLineDash(a),r.lineDashOffset=o),e.strokeFirst?(ki(e)&&r.strokeText(n,e.x,e.y),Di(e)&&r.fillText(n,e.x,e.y)):(Di(e)&&r.fillText(n,e.x,e.y),ki(e)&&r.strokeText(n,e.x,e.y)),a&&r.setLineDash([])}}var Go=["shadowBlur","shadowOffsetX","shadowOffsetY"],Wo=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function yl(r,t,e,i,n){var a=!1;if(!i&&(e=e||{},t===e))return!1;if(i||t.opacity!==e.opacity){ht(r,n),a=!0;var o=Math.max(Math.min(t.opacity,1),0);r.globalAlpha=isNaN(o)?Or.opacity:o}(i||t.blend!==e.blend)&&(a||(ht(r,n),a=!0),r.globalCompositeOperation=t.blend||Or.blend);for(var s=0;s<Go.length;s++){var l=Go[s];(i||t[l]!==e[l])&&(a||(ht(r,n),a=!0),r[l]=r.dpr*(t[l]||0))}return(i||t.shadowColor!==e.shadowColor)&&(a||(ht(r,n),a=!0),r.shadowColor=t.shadowColor||Or.shadowColor),a}function Yo(r,t,e,i,n){var a=t.style,o=i?null:e&&e.style||{};if(a===o)return!1;var s=yl(r,a,o,i,n);if((i||a.fill!==o.fill)&&(s||(ht(r,n),s=!0),Fo(a.fill)&&(r.fillStyle=a.fill)),(i||a.stroke!==o.stroke)&&(s||(ht(r,n),s=!0),Fo(a.stroke)&&(r.strokeStyle=a.stroke)),(i||a.opacity!==o.opacity)&&(s||(ht(r,n),s=!0),r.globalAlpha=a.opacity==null?1:a.opacity),t.hasStroke()){var l=a.lineWidth,f=l/(a.strokeNoScale&&t.getLineScale?t.getLineScale():1);r.lineWidth!==f&&(s||(ht(r,n),s=!0),r.lineWidth=f)}for(var u=0;u<Wo.length;u++){var h=Wo[u],c=h[0];(i||a[c]!==o[c])&&(s||(ht(r,n),s=!0),r[c]=a[c]||h[1])}return s}function wv(r,t,e,i,n){return yl(r,t.style,e&&e.style,i,n)}function bl(r,t){var e=t.transform,i=r.dpr||1;e?r.setTransform(i*e[0],i*e[1],i*e[2],i*e[3],i*e[4],i*e[5]):r.setTransform(i,0,0,i,0,0)}function Tv(r,t,e){for(var i=!1,n=0;n<r.length;n++){var a=r[n];i=i||a.isZeroArea(),bl(t,a),t.beginPath(),a.buildPath(t,a.shape),t.clip()}e.allClipped=i}function Cv(r,t){return r&&t?r[0]!==t[0]||r[1]!==t[1]||r[2]!==t[2]||r[3]!==t[3]||r[4]!==t[4]||r[5]!==t[5]:!(!r&&!t)}var Vo=1,Xo=2,$o=3,qo=4;function xv(r){var t=Di(r),e=ki(r);return!(r.lineDash||!(+t^+e)||t&&typeof r.fill!="string"||e&&typeof r.stroke!="string"||r.strokePercent<1||r.strokeOpacity<1||r.fillOpacity<1)}function ht(r,t){t.batchFill&&(t.batchFill=!1,r.fill()),t.batchStroke&&(t.batchStroke=!1,r.stroke())}function Sv(r,t){var e={inHover:!1,viewWidth:0,viewHeight:0,beforeBrushParam:{}};Rr(r,t,e),ae(r,e)}function Rr(r,t,e){var i=t.transform;if(!t.shouldBePainted(e.viewWidth,e.viewHeight,!1,!1)){t.__dirty&=~pt,t.__isRendered=!1;return}var n=t.__clipPaths,a=e.prevElClipPaths,o=t.style,s=!1,l=!1;if((!a||pv(n,a))&&(a&&(ht(r,e),r.restore(),l=s=!0,e.prevElClipPaths=null,e.allClipped=!1,e.prevEl=null),n&&n.length&&(ht(r,e),r.save(),Tv(n,r,e),s=!0,e.prevElClipPaths=n)),e.allClipped){t.__dirty&=~pt,t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(e.beforeBrushParam),t.innerBeforeBrush();var f=e.prevEl;f||(l=s=!0);var u=t instanceof lt&&t.autoBatch&&xv(o);s||Cv(i,f.transform)?(ht(r,e),bl(r,t)):u||ht(r,e),t instanceof lt?(e.lastDrawType!==Vo&&(l=!0,e.lastDrawType=Vo),Yo(r,t,f,l,e),(!u||!e.batchFill&&!e.batchStroke)&&r.beginPath(),mv(r,t,o,u,e)):t instanceof Li?(e.lastDrawType!==$o&&(l=!0,e.lastDrawType=$o),Yo(r,t,f,l,e),bv(r,t,o)):t instanceof La?(e.lastDrawType!==Xo&&(l=!0,e.lastDrawType=Xo),wv(r,t,f,l,e),yv(r,t,o)):t.getTemporalDisplayables&&(e.lastDrawType!==qo&&(l=!0,e.lastDrawType=qo),Mv(r,t,e)),t.innerAfterBrush(),t.afterBrush&&(u&&ht(r,e),t.afterBrush()),e.prevEl=t,t.__dirty=0,t.__isRendered=!0}function ae(r,t){ht(r,t),t.prevElClipPaths&&r.restore()}function Mv(r,t,e){var i=t.getDisplayables(),n=t.getTemporalDisplayables();r.save();var a={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:e.viewWidth,viewHeight:e.viewHeight,inHover:e.inHover,beforeBrushParam:{}},o,s;for(o=t.getCursor(),s=i.length;o<s;o++){var l=i[o];l.beforeBrush&&l.beforeBrush(e.beforeBrushParam),l.innerBeforeBrush(),Rr(r,l,a),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}ae(r,a);for(var f=0,u=n.length;f<u;f++){var l=n[f];l.beforeBrush&&l.beforeBrush(e.beforeBrushParam),l.innerBeforeBrush(),Rr(r,l,a),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}ae(r,a),t.clearTemporalDisplayables(),t.notClear=!0,r.restore()}var Pv=1e-8;function Uo(r,t){return Math.abs(r-t)<Pv}function ad(r,t,e){var i=0,n=r[0];if(!n)return!1;for(var a=1;a<r.length;a++){var o=r[a];i+=Ut(n[0],n[1],o[0],o[1],t,e),n=o}var s=r[0];return(!Uo(n[0],s[0])||!Uo(n[1],s[1]))&&(i+=Ut(n[0],n[1],s[0],s[1],t,e)),i!==0}function Zo(r,t,e){var i=bt.createCanvas(),n=t.getWidth(),a=t.getHeight(),o=i.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=n+"px",o.height=a+"px",i.setAttribute("data-zr-dom-id",r)),i.width=n*e,i.height=a*e,i}function Ln(r){return!r.__cursors.get(hl)}function Qo(r){var t=r.__cursors.get(hl);return{startIdx:t?t.startIdx:0,endIdx:t?t.endIdx:0}}var wl=(function(r){Z(t,r);function t(e,i,n){var a=r.call(this)||this;a.motionBlur=!1,a.lastFrameAlpha=.7,a.dpr=1,a.virtual=!1,a.config={},a.zlevel=0,a.zlevel2=mi,a.maxRepaintRectCount=5,a.__dirty=!0,a.__firstTimePaint=!0,a.__prevIdx={startIdx:0,endIdx:0};var o;n=n||Pi,typeof e=="string"?o=Zo(e,i,n):Gt(e)&&(o=e,e=o.id),a.id=e,a.dom=o;var s=o.style;return s&&(ba(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),a.painter=i,a.dpr=n,a}return t.prototype.afterBrush=function(){this.__prevIdx=Qo(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=Zo("back-"+this.id,this.painter,e),this.ctxBack=this.domBack.getContext("2d"),e!==1&&this.ctxBack.scale(e,e)},t.prototype.createRepaintRects=function(e,i,n,a){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,l=!1,f=new Y(0,0,0,0);function u(y){if(!(!y.isFinite()||y.isZero()))if(o.length===0){var C=new Y(0,0,0,0);C.copy(y),o.push(C)}else{for(var T=!1,M=1/0,w=0,S=0;S<o.length;++S){var P=o[S];if(P.intersect(y)){var R=new Y(0,0,0,0);R.copy(P),R.union(y),o[S]=R,T=!0;break}else if(l){f.copy(y),f.union(P);var O=y.width*y.height,D=P.width*P.height,x=f.width*f.height,I=x-O-D;I<M&&(M=I,w=S)}}if(l&&(o[w].union(y),T=!0),!T){var C=new Y(0,0,0,0);C.copy(y),o.push(C)}l||(l=o.length>=s)}}for(var h=Qo(this),c=h.startIdx;c<h.endIdx;++c){var v=e[c];if(v){var p=v.shouldBePainted(n,a,!0,!0),_=v.__isRendered&&(v.__dirty&pt||!p)?v.getPrevPaintRect():null;_&&u(_);var g=p&&(v.__dirty&pt||!v.__isRendered)?v.getPaintRect():null;g&&u(g)}}for(var d=this.__prevIdx,c=d.startIdx;c<d.endIdx;++c){var v=i[c],p=v&&v.shouldBePainted(n,a,!0,!0);if(v&&(!p||!v.__zr)&&v.__isRendered){var _=v.getPrevPaintRect();_&&u(_)}}var m;do{m=!1;for(var c=0;c<o.length;){if(o[c].isZero()){o.splice(c,1);continue}for(var b=c+1;b<o.length;)o[c].intersect(o[b])?(m=!0,o[c].union(o[b]),o.splice(b,1)):b++;c++}}while(m);return this._paintRects=o,o},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(e,i){var n=this.dpr,a=this.dom,o=a.style,s=this.domBack;o&&(o.width=e+"px",o.height=i+"px"),a.width=e*n,a.height=i*n,s&&(s.width=e*n,s.height=i*n,n!==1&&this.ctxBack.scale(n,n))},t.prototype.clear=function(e,i,n){var a=this.dom,o=this.ctx,s=a.width,l=a.height;i=i||this.clearColor;var f=this.motionBlur&&!e,u=this.lastFrameAlpha,h=this.dpr,c=this;f&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(a,0,0,s/h,l/h));var v=this.domBack;function p(_,g,d,m){if(o.clearRect(_,g,d,m),i&&i!=="transparent"){var b=void 0;if(Ee(i)){var y=i.global||i.__width===d&&i.__height===m;b=y&&i.__canvasGradient||fa(o,i,{x:0,y:0,width:d,height:m}),i.__canvasGradient=b,i.__width=d,i.__height=m}else ys(i)&&(i.scaleX=i.scaleX||h,i.scaleY=i.scaleY||h,b=ua(o,i,{dirty:function(){c.setUnpainted(),c.painter.refresh()}}));o.save(),o.fillStyle=b||i,o.fillRect(_,g,d,m),o.restore()}f&&(o.save(),o.globalAlpha=u,o.drawImage(v,_,g,d,m),o.restore())}!n||f?p(0,0,s,l):n.length&&gt(n,function(_){p(_.x*h,_.y*h,_.width*h,_.height*h)})},t})(ue),Ko=1e5,Cr=314159,Rn=void 0,Lv=1,An=2;function Rv(r){return r?r.__builtin__?!0:!(typeof r.resize!="function"||typeof r.refresh!="function"):!1}function Av(r,t){var e=document.createElement("div");return e.style.cssText=["position:relative","width:"+r+"px","height:"+t+"px","padding:0","margin:0","border-width:0"].join(";")+";",e}function jo(r,t,e,i){var n=new wl(r,t,t.dpr);return n.zlevel=e,n.zlevel2=i,n.__builtin__=!0,Tl(n),n}function Tl(r){r.__cursorStack=[],r.__cursors=Ss()}function kv(r){return r.startIdx=r.drawIdx=r.endIdx=r.endIdxNew=0,r.used=!1,r.first=r.last=NaN,r.notClearIdx=-1,r}function Dv(r,t){var e=r.__cursors,i=+t;return e.get(i)||(r.__cursorStack.push(i),e.set(i,kv({key:i})))}function li(r,t){for(var e=r.__cursorStack,i=0;i<e.length;i++)t(r.__cursors.get(e[i]))}function kn(r,t){var e=r.layers;return e[t]||(e[t]=new Array(3))}function ot(r,t,e){for(var i=r.layerStack,n=0;n<i.length;n++){var a=i[n].zl,o=i[n].zl2,s=r.layers[a][o];(!e||(!(e&Pe)||s.__builtin__)&&(!(e&ha)||!s.__builtin__)&&(!(e&Cl)||s!==r.hoverlayer))&&t(s,a,o,n)}}var Pe=1,ha=2,Cl=4,fi=Pe|Cl,od=(function(){function r(t,e,i,n){this.type="canvas",this._prevDisplayList=[],this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas",this._i={layerStack:[],layers:[]};var a=!t.nodeName||t.nodeName.toUpperCase()==="CANVAS";this._opts=i=K({},i||{}),this.dpr=i.devicePixelRatio||Pi,this._singleCanvas=a,this.root=t;var o=t.style;if(o&&(ba(t),t.innerHTML=""),this.storage=e,this._prevDisplayList=[],a){var l=t,f=l.width,u=l.height;i.width!=null&&(f=i.width),i.height!=null&&(u=i.height),this.dpr=i.devicePixelRatio||1,l.width=f*this.dpr,l.height=u*this.dpr,this._width=f,this._height=u;var h=jo(l,this,Cr,mi);h.initContext(),this._insertLayer(h,Cr,mi,!0),this._domRoot=t}else{this._width=si(t,0,i),this._height=si(t,1,i);var s=this._domRoot=Av(this._width,this._height);t.appendChild(s)}}return r.prototype.getType=function(){return"canvas"},r.prototype.isSingleCanvas=function(){return this._singleCanvas},r.prototype.getViewportRoot=function(){return this._domRoot},r.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},r.prototype.refresh=function(t){var e;t&&!Gt(t)?e={paintAll:!!t}:e=t||{};var i=ct(e.refresh,!0),n=ct(e.refreshHover,!1);if(n&&(this._hoverLayerDirty=An),!i)return n&&this._paintHoverList(this.storage.getDisplayList(!1)),this;var a=this.storage.getDisplayList(!0);this._updateLayerStatus(a,e.paintAll),this._redrawId=Math.random();var o=this._prevDisplayList;this._paintList(a,o,this._redrawId);var s=this._backgroundColor;return ot(this._i,function(l,f,u,h){l.refresh&&l.refresh(h===0?s:null)},ha),this._opts.useDirtyRect&&(this._prevDisplayList=a.slice()),this},r.prototype._paintHoverList=function(t){var e=this._i.hoverlayer,i=this._hoverLayerDirty;if(this._hoverLayerDirty=Rn,i!==Rn&&(!e&&i===An&&(e=this._i.hoverlayer=this._ensureLayer(Ko)),!!e)){e.clear();for(var n={inHover:!0,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{}},a,o=0,s=t.length;o<s;o++){var l=t[o];if(l.__inHover){a||(a=e.ctx,a.save());var f=l.__hoverStyle,u=void 0;f&&(u=l.style,l.style=f),Rr(a,l,n),f&&(l.style=u)}}a&&(ae(a,n),a.restore())}},r.prototype.getHoverLayer=function(){return this._ensureLayer(Ko)},r.prototype.paintOne=function(t,e){Sv(t,e)},r.prototype._paintList=function(t,e,i){if(this._redrawId===i){var n=this._doPaintList(t,e);if(this._needsManuallyCompositing&&this._compositeManually(),n)ot(this._i,function(o){o.afterBrush&&o.afterBrush()},fi),this._paintHoverList(t);else{var a=this;Ai(function(){a._paintList(t,e,i)})}}},r.prototype._compositeManually=function(){var t=this._ensureLayer(Cr).ctx,e=this._domRoot.width,i=this._domRoot.height;t.clearRect(0,0,e,i),ot(this._i,function(n){n.virtual&&t.drawImage(n.dom,0,0,e,i)},Pe)},r.prototype._doPaintList=function(t,e){var i=this,n=!0;return ot(this._i,function(a){var o=!1;if(li(a,function(h){(h.drawIdx<h.endIdx||h.notClearIdx>=0)&&(o=!0)}),!(!o&&!a.__dirty)){var s=i._opts.useDirtyRect&&!Ln(a)?a.createRepaintRects(t,e,i._width,i._height):null,l=i._i.layerStack[0],f=!0;if(a.__dirty){f=!1,a.__dirty=!1;var u=a.zlevel===l.zl&&a.zlevel2===l.zl2?i._backgroundColor:null;a.clear(!1,u,s)}li(a,function(h){var c=i._paintPerCursor(a,h,t,s,f);n=n&&c})}},fi),J.wxa&&ot(this._i,function(a){a&&a.ctx&&a.ctx.draw&&a.ctx.draw()}),n},r.prototype._paintPerCursor=function(t,e,i,n,a){var o=t.ctx;if(n)if(!n.length)e.drawIdx=e.endIdx;else for(var s=this.dpr,l=0;l<n.length;++l){var f=n[l];o.save(),o.beginPath(),o.rect(f.x*s,f.y*s,f.width*s,f.height*s),o.clip(),this._paintPerCursorInRect(t,e,i,f,a),o.restore()}else o.save(),this._paintPerCursorInRect(t,e,i,null,a),o.restore();return e.drawIdx>=e.endIdx},r.prototype._paintPerCursorInRect=function(t,e,i,n,a){for(var o={inHover:!1,allClipped:!1,prevEl:null,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{contentRetained:a}},s=t.ctx,l=Ln(t),f=l&&bt.getTime(),u=e.drawIdx,h=e.notClearIdx,c=h>=0?Math.min(h,u):u;c<e.endIdx;c++){var v=i[c];if(!(c<u&&!v.notClear)){if(v.__inHover&&(this._hoverLayerDirty=An),n!=null){var p=v.getPaintRect();p&&p.intersect(n)&&(Rr(s,v,o),v.setPrevPaintRect(p))}else Rr(s,v,o);if(l){var _=bt.getTime()-f;if(_>15){c++;break}}}}ae(s,o),e.drawIdx=Math.max(c,u)},r.prototype.getLayer=function(t,e){return this._ensureLayer(t,0,e)},r.prototype._ensureLayer=function(t,e,i){e=e||0;var n=this._singleCanvas;n&&!this._needsManuallyCompositing&&(t=Cr,e=0);var a=kn(this._i,t)[e];return a||(a=jo("zr_"+t+"."+e,this,t,e),this._layerConfig[t]&&re(a,this._layerConfig[t],!0),(i||n&&t!==Cr)&&(a.virtual=!0),this._insertLayer(a,t,e,!1),a.initContext()),a},r.prototype.insertLayer=function(t,e){this._insertLayer(e,t,0,!1)},r.prototype._insertLayer=function(t,e,i,n){var a=this._i,o=a.layers,s=a.layerStack,l=this._domRoot,f=null;if(!(o[e]&&o[e][i])&&Rv(t)){for(var u=s.length,h=0;h<u&&(s[h].zl<e||s[h].zl===e&&s[h].zl2<i);)h++;if(h>0&&(f=kn(a,s[h-1].zl)[s[h-1].zl2]),s.splice(h,0,{zl:e,zl2:i}),kn(a,e)[i]=t,!n&&!t.virtual)if(f){var c=f.dom;c.nextSibling?l.insertBefore(t.dom,c.nextSibling):l.appendChild(t.dom)}else l.firstChild?l.insertBefore(t.dom,l.firstChild):l.appendChild(t.dom);t.painter||(t.painter=this)}},r.prototype.eachLayer=function(t,e){return ot(this._i,function(i,n){t.call(e,i,n)})},r.prototype.eachBuiltinLayer=function(t,e){return ot(this._i,function(i,n){t.call(e,i,n)},Pe)},r.prototype.eachOtherLayer=function(t,e){return ot(this._i,function(i,n){t.call(e,i,n)},ha)},r.prototype.getLayers=function(){var t={};return ot(this._i,function(e,i,n){t[e.id]=e}),t},r.prototype._updateLayerStatus=function(t,e){var i=this;if(i._singleCanvas)for(var n=1;n<t.length;n++){var a=t[n];if(a.zlevel!==t[n-1].zlevel||a.incremental){i._needsManuallyCompositing=!0;break}}ot(i._i,function(g){g.__dirty=!1,li(g,function(d){d.used=!1,d.endIdxNew=0,d.notClearIdx=-1})},fi);for(var o,s=null,l=null,f=!1,u=0,h=t.length;u<h;u++){var a=t[u],c=a.zlevel,v=a.incremental,p=void 0;if(o!==c&&(o=c,f=!1),v?(f=!0,p=bc):p=f?yc:mi,(!s||c!==s.zlevel||p!==s.zlevel2)&&(s=i._ensureLayer(c,p),l=null,!s.__builtin__)){Ei("ZLevel "+c+" has been used by unknown layer "+s.id);continue}if((!l||v!==l.key)&&(l=Dv(s,v),!l.used))if(l.used=!0,!e&&l.first===a.id){var _=u-l.startIdx;l.startIdx=u,l.drawIdx+=_,l.endIdx+=_}else s.__dirty=!0,l.first=a.id,l.startIdx=l.drawIdx=u,l.endIdx=u+1;l.endIdxNew=u+1,a.__dirty&pt&&!a.__inHover&&((!v||!a.notClear&&u<l.drawIdx)&&(s.__dirty=!0),v&&a.notClear&&l.notClearIdx<0&&(l.notClearIdx=u))}ot(i._i,function(g){for(var d=g.__cursorStack,m=g.__cursors,b=d.length-1;b>=0;b--){var y=m.get(d[b]);if(!y.used)g.__dirty=!0,m.removeKey(d[b]),d.splice(b,1);else{var C=y.endIdxNew;(Ln(g)?C<y.drawIdx:C!==y.endIdx||!C||t[C-1].id!==y.last)&&(g.__dirty=!0),y.endIdx=y.endIdxNew,y.last=C?t[C-1].id:NaN}}g.__dirty&&(li(g,function(T){T.drawIdx=T.startIdx}),i._hoverLayerDirty===Rn&&(i._hoverLayerDirty=Lv))},fi)},r.prototype.clear=function(){return ot(this._i,function(t){t.clear(),Tl(t)},Pe),this},r.prototype.setBackgroundColor=function(t){this._backgroundColor=t,ot(this._i,function(e){e.setUnpainted()})},r.prototype.configLayer=function(t,e){if(e){var i=this._layerConfig;i[t]?re(i[t],e,!0):i[t]=e,ot(this._i,function(n,a){re(n,i[a],!0)})}},r.prototype.delLayer=function(t){for(var e=this._i.layerStack,i=this._i.layers,n=e.length-1;n>=0;n--){var a=e[n];if(a.zl===t){var o=i[t][a.zl2];if(o.__builtin__)continue;if(e.splice(n,1),i[t][a.zl2]=void 0,!o.virtual){var s=o.dom.parentNode;s&&s.removeChild(o.dom)}}}},r.prototype.resize=function(t,e){if(this._domRoot.style){var i=this._domRoot;i.style.display="none";var n=this._opts,a=this.root;t!=null&&(n.width=t),e!=null&&(n.height=e),t=si(a,0,n),e=si(a,1,n),i.style.display="",(this._width!==t||e!==this._height)&&(i.style.width=t+"px",i.style.height=e+"px",ot(this._i,function(o){o.resize(t,e)}),this.refresh({paintAll:!0})),this._width=t,this._height=e}else{if(t==null||e==null)return;this._width=t,this._height=e,this._ensureLayer(Cr).resize(t,e)}return this},r.prototype.clearLayer=function(t){gt(this._i.layers[t],function(e){e&&!e.__builtin__&&e.clear()})},r.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._i=null},r.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._i.layers[Cr][0].dom;var e=new wl("image",this,t.pixelRatio||this.dpr);e.initContext(),e.clear(!1,t.backgroundColor||this._backgroundColor);var i=e.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var n=e.dom.width,a=e.dom.height;ot(this._i,function(h){h.__builtin__?i.drawImage(h.dom,0,0,n,a):h.renderToCanvas&&(i.save(),h.renderToCanvas(i),i.restore())})}else{for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{}},s=this.storage.getDisplayList(!0),l=0,f=s.length;l<f;l++){var u=s[l];Rr(i,u,o)}ae(i,o)}return e.dom},r.prototype.getWidth=function(){return this._width},r.prototype.getHeight=function(){return this._height},r})();export{jv as $,or as A,Ta as B,Au as C,Y as D,Xv as E,Kf as F,Ah as G,kh as H,$v as I,zr as J,Dr as K,Uh as L,Qh as M,sc as N,fc as O,lt as P,il as Q,nc as R,ec as S,Bi as T,cc as U,dc as V,gc as W,Uv as X,sl as Y,La as Z,Z as _,Ar as a,td as a$,Zv as a0,Kv as a1,tt as a2,Qv as a3,Oh as a4,ws as a5,Ce as a6,Qr as a7,re as a8,ma as a9,iv as aA,Vc as aB,Ev as aC,fv as aD,sv as aE,ed as aF,Ic as aG,ad as aH,xr as aI,Sr as aJ,Yv as aK,Ru as aL,au as aM,Ha as aN,Hv as aO,Nv as aP,Fv as aQ,Nn as aR,As as aS,ze as aT,Nr as aU,Qs as aV,Mt as aW,Vu as aX,Ti as aY,Lt as aZ,Jv as a_,ms as aa,ya as ab,Wf as ac,rd as ad,qf as ae,Yu as af,Qf as ag,yu as ah,kr as ai,Bn as aj,Gv as ak,Rs as al,Xf as am,bs as an,Ae as ao,Es as ap,vu as aq,le as ar,Eu as as,ku as at,Je as au,ue as av,nd as aw,Re as ax,bt as ay,Sv as az,gt as b,Hf as b0,Wv as b1,od as b2,Vv as b3,zv as b4,Bv as b5,Ov as b6,id as b7,pf as b8,Iv as b9,$f as c,Ht as d,K as e,Le as f,Ss as g,Gt as h,Ff as i,Te as j,Yf as k,oe as l,Br as m,J as n,Gf as o,$u as p,kt as q,Ie as r,_t as s,ct as t,qv as u,Jr as v,Ca as w,ie as x,wa as y,ui as z};